"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(G){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=G||[]};
(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
*/
/*

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.
*/
/*


 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 Goj,HWW,ZWv,Quf,p3j,lUf,ZU,IUj,BfR,pW,Iu,JMR,t2b,c3,v3,kof,DXR,dXj,zo,V2e,$XU,j2,Tfu,Kve,Pej,w3X,iWv,OWW,yMv,UX3,Rj2,AMe,ZT,gG,q7,ERv,Sp,ua,Yj3,dG,vd,bW3,GxW,h_,Cw,ste,gw2,ITW,y4,ua2,BGj,m2,J_R,tpo,kxb,Rt,qRf,A_,d7e,Vpu,fTW,t6,vwj,W2j,J6,XdR,Sc,c_3,TGb,hNW,iwv,Owf,XL,owf,y_f,m7u,U7v,RNo,A_f,x7W,YRj,F23,Hmv,Zmb,pDf,Sqj,Bkj,uLR,io,J6f,nAe,yh,$af,ft3,c63,vAf,Tkj,ms,NGj,Uq,Rj,Na,Wsv,xA,Mcu,ziu,Kso,FL,jje,Pob,r6j,wDX,CoM,hif,imf,OmR,atW,Eq,oAW,Uab,Nkv,xaM,pq,EAu,bmb,g0,syf,pOX,Fsb,lM2,IMR,q_R,DUM,
B0f,edv,V7v,$Uj,cNo,T02,zd2,K0f,PIu,wO3,iqW,aM2,yN2,mUj,N0v,F0j,z4,GOo,ssu,Z0j,hN,Cq,O_,AN,Lq,Fx,uVf,p0,JwX,D_j,eLb,nbe,Vl2,Bg,$_j,tw,kb,D6,dJ,cw3,TJo,f6b,vbM,Wi3,Kif,Mlb,js3,PEW,wgj,$b,Vk,hL3,CEj,i0o,a6j,O0M,ywv,obe,m_M,M_,jl,Pg,wJ,C0,RLW,iE,Aw2,Fif,as,b0e,G5b,HEf,UP,sN3,ZEU,QNu,N_,gru,xb,SAU,ukb,L0,JaM,B3e,ttj,k53,D4M,d4b,FV,eOf,nru,bE,VtX,$4X,G5,Hl,sA,Zw,Xlj,T3b,caW,QB,vrv,WTb,zOj,lG,uG,Bl,Ja,ta,Dw,KTX,MtU,PGe,ra2,hOW,CGo,iEu,OEf,awv,yaf,nE,orf,m43,ROU,N3u,AaR,x4f,LTo,ErM,YAU,Xk,FTW,T5,fE,bEU,
sfR,ZuW,QfU,lSM,g5b,ISR,BIf,JRU,t_b,k$o,DjR,djf,eKj,X7v,z5,cRo,TIb,fSU,v5X,Wu3,zKo,M_j,mjW,Ujj,RKj,xjf,LuU,iG,E52,buf,sMR,Zbb,QM2,pSv,l0b,gFU,I02,qvu,uM3,BnR,GyW,Jsf,tgb,ky2,Dfv,dfR,eyf,nFv,VgX,$fM,f0j,csf,zyU,vFj,Wfv,jMb,PVj,rsj,Kfj,hyM,Mgj,ib2,s1,ObU,ZS,pu,a0j,oF3,mfv,NnM,szv,xfv,As2,EFo,Ffu,Lfe,I23,ptR,qJR,SJ3,uUX,BOf,JeU,kIW,tKj,DVX,dVv,e_j,nI2,$Vj,ceo,TOj,f2f,WRe,vIo,a2R,qj,yeM,mVv,UVu,R_j,NOR,AeW,LRR,EIj,YJo,DS,dI,FRX,QJj,Vx,$5,IkR,Sdf,VAv,v7,cpW,T7o,zRR,vMv,WKj,j_,KKW,MAj,P0W,rpW,wUj,hRf,C0e,
i$v,O$X,ypo,oMb,UYb,mYj,Apf,of,Rf,LK2,EMj,Ydj,FKu,b$u,GBo,s1f,Q1j,Zgj,pb,gn,tdf,uV,VdW,$hb,BS,c3b,XPM,P7j,r33,wPU,C7j,y3f,mhj,Uhf,RIj,Ntj,xho,ENe,Yif,D0,bgX,VN,HT3,sp2,ZT2,pWj,G_f,FIU,Qp2,eg,gJU,uNo,qN3,tyR,k_M,d1R,elf,nJM,Vy2,WS,$1u,cLX,XWf,TMu,vJu,Mf,EJj,sAU,pxX,QA2,IYM,wn,uZo,iV,aM,Ov,kUM,SSb,DKf,ekW,nP2,mf,XxW,Nf,As,fYb,zk2,Msu,jAv,Puu,Lb,rkf,Ev,wx3,Cuj,i1M,O1M,aYe,oPf,GI,mKj,UKe,sJ,pl,Akj,xKU,Lgj,Fgo,b1o,H6W,sZe,qW2,SWb,lZM,Bgf,Jco,tnf,D2,eK,nl,eMf,niW,XU,VnX,$2M,XEo,cc3,fZo,vif,W_u,zMR,TgM,
K_R,fl,jZf,C4j,vt,hMX,i6b,Mnb,O6e,zI,ycR,oie,m2X,U2X,Ngj,RMo,Ac3,Ei3,x2j,F_2,QOe,lQb,IQU,utR,Slj,qlb,Bj2,JZf,khv,d5j,D52,nkf,OJ,$5f,Xfv,cZv,Tju,Wj3,KjX,zvR,Muu,jOM,UJ,PJj,rZb,hvf,i9e,yZb,m5f,okR,u0,U53,CJM,Ylj,b9R,GDo,Hov,d7,s52,Q5f,gKW,S3U,q33,te3,kDX,Dmu,dmb,nKX,T8b,Vej,XAj,cUo,fg3,vKo,zEo,Wh3,Me2,KhR,MY,j5X,rUe,wAX,Oou,Od,aJ,agR,yUo,yD,REM,RJ,NY,Ap,LhW,xM,FhX,YM,bob,G9j,HN3,sq2,GB,ZN2,Qqj,pvX,gaR,q7o,BcU,tSR,Sd,k9M,DvM,dvX,e8j,naf,VSb,$vU,Xvj,J3,ff2,vaR,Wmv,z8R,KmU,MSj,jq3,PXj,ryu,wvb,h8j,CXb,
iNe,$N,EaW,Y7X,Xq,cP,TB,Fmv,bN2,Gzb,H3u,s_R,Z3M,Q_U,qDv,SDv,u92,BTW,J0u,zB,Mh,jd,PP,h3,Cg,i7,kzM,a1,dl3,yL,eGe,nTj,o1,VXR,$lf,X$R,j_2,r0R,O3j,mlX,oTf,PSR,Ulu,A0f,gQj,b3j,Bx2,HHo,uTM,Jv3,xN,kqj,Ei,d6f,e2e,V9M,$6b,XG2,TxW,b7,vQu,WlW,z2j,KlM,M9o,jKU,Pqb,fIW,h2v,Cqb,iHM,HW,U6u,R2j,m6j,Avf,x6j,EQj,YIU,LlR,QXv,lJR,IJ2,S62,uc,d$v,kt2,D$f,XTR,Trj,fJ2,vCv,W33,zo2,K32,$J,OXR,ytb,CbW,hoo,aJj,jXu,m$v,G3u,Nrb,Atj,x$3,SOR,Bbb,qOX,ehX,Ioo,Mkj,di2,Rov,bXW,uDe,oCR,rt2,Pb2,wTe,iXv,gVb,ON,Plo,wh2,hho,ClU,iIW,AQM,FGe,
bI2,EN,HGW,QSe,Iqf,gX2,Swb,uuo,JWX,kkj,tP2,DBX,dBb,e3f,nXu,$BM,VP2,Ss,WwU,vXf,fqj,jS3,z3W,PPU,MPj,rWv,wV3,OGe,CPj,iGf,yWj,UBo,R3o,xBb,Lw3,EXb,YwX,bGu,HAW,DY,ZAb,lxf,Q9o,gGf,uyX,BpW,kGb,dcW,$P,XZ,$ce,X8R,cx,TU,clf,f1,vx,Tpo,Wx,fxb,zU,vG2,WU3,MK,zfM,KUu,MOX,j9u,PLf,w8u,rlR,CLX,axf,OAf,ylM,oGj,hfu,mcf,Npf,Rfu,iAj,Al3,xco,hk,LUf,YzX,EGu,FUf,bAu,HMW,G1v,s6R,iu,Q6v,pMe,ZMf,gjU,IGj,qV3,JBW,DWo,$WU,fGv,OS,zcj,KnW,aA,MVb,US,RA,C$j,oA,xP,iMe,OMf,yBf,ojj,UWb,Nqu,ABo,xWX,LnX,Fn3,ZYu,HYe,YVv,QEj,p4M,GE,sE3,lHb,
ZZ,gHW,IHM,qyf,Syf,tDj,uze,Jgj,exe,nHe,Tmf,cgb,Wyf,rg2,w4f,C62,OYf,aH2,oH3,m8W,U83,NmW,Agu,x8f,YyX,HOf,sxf,Fyb,Qxj,l_3,pne,ZOU,guu,qKj,SKu,uCv,BPv,JHf,ki,DZ,n6,$i,DEe,dER,nuU,Xnu,Xr,cE,cHf,TE,vuj,WWf,zP2,vE,rHM,iOU,a_f,yHf,ouR,UEj,RPM,NPR,LWR,zE,EuW,bOu,K6,Gw2,QvM,M2,gf3,jn,wg,hc,IAb,SxX,qxb,BlU,Jrj,tau,kwj,uQb,Vae,$no,crb,fAW,KDU,zue,Maj,P5e,rr3,wQf,huj,C5f,iK2,OKW,ofv,aAj,yg,Unb,oZ,RuW,UW,RZ,Nlb,Aro,xnf,LD3,Efj,N2,Yxf,FDo,bK3,GjU,sQj,ZpW,QQM,pyW,l$2,I$j,g_b,Ac,Saj,Jq3,tb3,kjj,DQj,n_f,$Qe,Yi,cqe,
f$f,v_U,WN2,zSR,KNW,Mb2,jQo,PnU,Vbb,Xy2,rq3,wyb,OpX,a$X,yqU,o_b,ZVM,lNe,gq3,INv,psf,tGW,dOf,kvj,eA3,$O3,cA2,fNR,K12,zAR,rAo,IO,wsM,hAX,q5,COf,Su,iVR,OVe,aN3,oqU,yAU,mOW,UOM,RAv,NKe,bVX,Ht2,Zt3,sBe,Eqb,xOM,pKf,gh3,BaX,JOj,Ddv,XKR,Tae,tZ,fy2,Wrb,zee,MMf,wKf,ite,yO3,oho,mdj,Udu,LrU,Reb,btv,Gs2,HF3,ZFW,eu,Q$R,lRu,gxW,IRU,qs2,Ss3,uvj,B5v,tLe,ksX,Xt,DoR,doo,nxX,Th,ebf,$oW,fRR,Wf,vxe,WLf,zbf,j$e,PMf,KL3,wZu,OFu,aRv,ySb,rj,oxb,N5u,ASe,iJ,ExM,xov,LLR,bFf,Gmf,Hsb,pe2,I8f,glb,l8W,qLj,uwj,BSU,due,J$2,eHb,VjW,
nlU,vlf,KX3,jHM,r$e,is3,RHM,no,A$X,YLf,bsW,d8,Ko,pNW,qgj,IDb,uo3,BUf,twj,JPj,kee,DzU,Mm,ape,lDe,SgR,g9M,WA,n9j,Vwj,$zR,XNM,v9R,zsU,KdR,Mwb,jIf,PZb,mh,rPb,wNR,hsj,CZb,iQR,AU,OQu,o9f,Uze,Rse,Fd3,GPj,H2f,sTo,QTb,p9e,s7,gyU,IOj,qrj,Srv,ueu,BWf,t5X,DPU,eBW,nyj,fOR,c9j,vyj,K$f,M5X,SS,jTv,P3U,r9v,C3f,O2W,i2b,y9W,mPR,ka,RBo,NWb,UP3,A9v,xPR,EyR,F$e,Yrf,b2M,L$R,Gpo,Hij,sif,Zie,QiR,pY3,l7f,ggU,I7R,uYe,SMv,BvW,t8b,Jfo,Df,kpX,e1u,XYb,DZu,f7e,vgj,WHv,z1W,ji2,Oie,a7W,ogR,mZo,KN,Afv,YMe,GZe,jS,Qae,Hrf,saM,Zrv,p5j,
Spf,hy,uif,BQj,tEe,kZf,DHW,dHf,EOb,Ypj,lKf,sPR,QPv,IKR,gEj,qnM,Snf,BV2,tiv,Dtu,enM,nEj,$tj,jPu,wkW,CUR,iBv,OBj,aK2,yDW,mte,Utj,ADu,xtj,LO2,EE3,Ynj,FOW,bBe,Gij,Zdf,g32,xa,LN,E7,I9R,q5U,bX,ulu,Vrv,v3M,Tyj,mJo,UJX,Rg2,Ji3,n3R,DJj,Aif,xJo,L9e,E3W,Xru,Y53,bdf,HJ3,Qko,pbj,ql,to3,DAU,e9W,nzo,Xbb,TBe,cze,Waj,KaR,Cxj,wbv,jkb,h9R,Pxv,iJu,ozj,Tz,f3,Y02,xAM,bJf,Gf2,soo,Zej,W$,Qoj,gn3,IEj,qFX,SFU,eWj,dyX,h0,TYM,y$,vnj,Wob,zWU,Ko2,MYj,joM,PTe,rVj,wRj,hWo,CTj,mA,ieX,OeX,aEj,yVW,onf,myj,Uyo,RWf,R_,NYR,AVo,xyu,Lov,
EnR,YF2,Foe,bef,GQo,Hnf,sV3,ZnX,QVb,A0,lzo,Izo,Sh2,JjR,Dgu,dgj,erU,V$f,XFW,cje,TXj,Qy,K52,W5U,M$3,jVU,PCR,hrR,CCj,inj,azu,DI,oUf,tv,UgR,RrM,dx,NXb,Ajj,xg3,L5v,nH,bnR,H8f,lnW,p6j,Inu,qUe,vG,SUu,u$f,JJU,k7f,DTR,eF2,ncf,tBf,VBf,fnf,K4M,MBj,WG,jbR,PrM,i82,rJo,hFf,Cro,UTj,anX,RFj,AJM,L43,Ecj,YUf,F4o,b8o,GKW,swX,Z5u,QwX,p_f,luU,Iuu,SEj,J7X,dRf,VfM,X_v,fuR,wx,vZj,WEX,zmf,KEb,MfX,PRo,r7b,w_j,hmv,CRM,i5b,O5W,au2,y7M,oZb,mRf,Rmf,UR3,xRv,EZf,iq,YEf,GSj,b5W,ZSo,Qnb,pi3,IcM,uhb,SYj,gL3,tvM,JGe,nLM,kSf,ml,d3f,
vLv,XiM,cGj,Tzf,fcW,WkW,KkM,zXb,UI,RK,CBv,jnf,hXj,wiR,PBv,rGR,acu,oLu,U3W,m3j,RXf,Lku,x3o,YYf,GYU,sh3,bSv,Z_u,pcf,Qhj,g1U,ScW,EI,umW,Bif,kYf,VWe,v1v,FT,z$v,MWj,wcu,r5e,jhj,PFb,ZJ,O_f,h$v,CF3,are,o1f,y5W,R$u,Niv,xxf,LxX,E1f,YcU,FxU,G6R,HcW,dr,Zcf,Q4f,Isf,qTv,Xg,STf,BdW,$Ij,WT,DIU,Vzv,dIe,e5u,fsj,Tdf,K8j,vdo,MzM,j43,KX,rhj,wwv,h5f,Psj,PT,Csu,M$,yhM,xI3,L8R,EdM,YT2,F82,bcv,ZCj,HCR,scf,Gnj,pXf,IVj,uIb,B6b,t0v,dpf,knf,Dpo,ewW,V02,$pe,XXb,cnR,T6U,fVj,WBf,yw,KBj,Pge,jcM,wXj,rnj,hwj,CgW,OCj,aVj,LB2,Anf,FB2,
bCX,pJo,lm2,g7e,ImX,q8u,S8X,JTe,tZj,k0f,dDo,e6X,n7v,VZM,$DU,XJM,T4R,fme,v72,sO,MZU,Kbj,z6j,Wbj,Phf,h6e,rTf,iPv,OPR,amf,yTR,o7b,mDb,UDR,R6e,E7u,N4b,AT3,xD3,Y8R,Fbo,bPv,Lbj,gb,s8f,Q8e,Z72,qi,pj3,geb,Iej,qQf,lev,SQj,u23,BFW,JXv,tRo,Dw2,dwW,eC2,nev,Xje,$wf,W6W,VRf,ul,zCj,cXu,veX,MRW,j8R,PpU,rXu,wjj,Cpj,i7u,O7U,yXj,mwf,RC2,AXe,F6b,EeM,YQf,L6j,xwR,b7X,VF,Ggj,$V,HDb,sDM,fI,lhf,Ihv,qBM,SBR,u0W,BDf,JCb,Wh,z3,eQf,kgo,thj,DGv,Mhu,Wtf,dGW,v2u,iDv,ODe,ahR,yCb,o2f,RQ2,AC2,Ltj,YBX,Ftb,bDu,ZRe,sWo,QWj,lbv,xV,qto,
Stj,uXo,BA2,Jdo,tIW,kHf,EO,YV,eqU,n$j,$Mo,TAU,MIe,hqb,wpU,Cdf,OR2,abv,ydo,o$2,mMM,UMj,Zq,RqR,Fqj,bRj,Lqu,xM2,Ytf,E$j,QLM,pIR,ljb,g62,IjM,q9U,BL3,ud3,S9o,$CM,n6b,XI3,cb3,TLj,WFv,z0X,fjb,v6v,Cio,OZf,ybj,mCX,R0X,Abv,Y9v,FFX,bZj,sgj,HLj,GTv,ZLf,QgX,paj,lPu,gtf,IPR,qmf,Smj,u5W,B2f,kTo,DLo,dLM,ep3,ntR,VFv,Xav,cxj,T2f,fPj,vtu,Wzo,jgb,Pku,wav,Cke,hpv,iLe,kX,OLW,aPM,yxb,otW,N2v,Rp2,Ax2,xLW,LzX,Etf,bLv,HUM,sY2,ZUf,QYj,pBe,lXf,gob,IXU,quf,Sue,B9o,un2,JF3,tmj,k2j,DSX,dSW,ea2,nof,VmW,cV,XBj,cF3,fXR,vof,WCU,zaM,
KCU,Mmu,P92,rFW,haj,WV,OUb,USb,ooe,yF3,aXu,mSX,Rav,N9u,AF3,EoX,Yub,FCX,bU2,Hfe,s7f,Zfj,pCo,Q7R,lLb,gsv,ILX,u6v,BRX,JIo,tCb,kMj,DNU,nso,VCR,hW,vsf,W72,K7X,PHf,j7f,rIU,wCM,CG,Ow,CHb,ifu,mw,Uw,osM,OfW,aLv,R72,NRU,AIj,xNW,F7X,GlW,Hae,sR2,Zaf,QRj,l4f,g0b,I4v,qkf,SkW,uKM,BEo,AW,JEo,tqW,LG,klo,Dk3,dkW,eV2,n0e,Vqj,Fu,bP,$ko,Xuf,GG,cEf,TER,f4R,v0U,zVX,KQR,jR3,Cw2,hVu,wue,iaf,OaW,NEf,o0M,mkb,Ukf,yER,RVv,AEX,LQR,Ykv,sz,GRu,HzM,seU,ZzX,QeX,l52,I5R,uFR,kRv,J13,Zx,BHb,V12,X2f,Qj,c1u,THU,f5e,vWU,WJv,KJe,M1o,jee,
r1f,w2R,Ctf,izv,oWR,y1b,U9v,RYj,NHu,x9f,LJj,EW3,YHX,s2j,Zvb,Q2M,p1X,I3f,uL,Jl,B8,uSW,B_u,JYo,tTj,kAf,Dqu,eZW,npR,VTu,$q2,cYX,T_u,f3j,kG,vpf,WVf,MTe,j23,Dx,dp,w1v,Pj2,hZf,Ovf,CjR,a3j,op2,$G,mqR,UqM,AYe,LVb,Xy,YfM,FV2,bvf,GbM,H4W,sme,Z4e,Qmj,IBX,ucu,qG2,SGU,BoW,DFe,J8f,kbW,dFf,ezj,nBu,XLv,c8v,ToM,vBR,Wpe,r8W,PKR,aBv,mFf,P8,UFb,oIe,Rzj,Nou,xFe,YGR,Fpb,pmb,ldo,g4f,IdR,qZW,SZj,BZb,JoU,kX3,dsf,tJv,Dsf,n4W,eJb,$su,TZf,XmW,fdo,v4e,Wcf,zJo,Kcb,MJX,PQf,jG3,CQu,adU,ihu,yoW,o4v,ms3,o9,Usv,RJu,Uz,AoW,NZM,xsb,
E4o,LcW,Gu3,Hy2,Zyv,Qlj,lC2,g82,ICb,qXv,B1R,t3u,dbv,Dbf,eDo,n8R,V3f,cue,ruX,WPu,hDU,CDf,Oy3,aCf,Ubv,RDf,N1o,Auv,xbf,LP3,YXj,FP3,by3,Gd3,Zxf,poX,QU3,SC2,u7W,Bwu,J2j,tHb,kd2,D0f,eU2,$0o,Xoo,c22,TwX,f1v,vmM,KMj,zUb,P8j,wof,hUX,C8o,ixf,Oxo,y2o,a12,m0j,x0u,FMj,YCj,bxv,GCR,Hku,Zko,tB,pzb,eV,gSj,qoR,Sov,kCe,dee,V6f,Xzb,cmo,fWj,vSW,WZj,KZj,jFj,Pm2,wzf,ik3,CmX,hTv,fM,aWf,Ok2,ymX,oSb,me2,Uef,RTb,NeR,AmW,LZo,ESf,You,FZU,bkM,GrU,HjM,sCb,Zjb,pHf,llf,txf,kr3,Dr3,etR,nDf,Vxo,cKj,PM,KYe,Mxv,Pvj,rKf,wHu,htM,Cve,wq,
lV,hB,i$,AKf,xrW,YbR,bjf,FYu,a6,GoN,HWw,sut;Goj=function(){var G,H;return typeof CSS!=="undefined"&&((H=(G=CSS).supports)==null?void 0:H.call(G,"selector(:has(*))"))};
HWW=function(G){return G.visibility!=="hidden"&&G.display!=="none"};
ZWv=function(G){if(Goj()||G.tagName!=="DETAILS"?!G.matches(suu):G.querySelector("summary")!==null)return-1;G=G.getAttribute("tabindex")||"0";return Number(G)};
Quf=function(G){return G.some(function(H){return ZWv(H)>0})};
p3j=function(G){if(G.textContent||G.ariaLabel)return!0;if(G instanceof HTMLInputElement){if(!G.labels)return!1;G=_.I(G.labels);for(var H=G.next();!H.done;H=G.next())if(H.value.textContent)return!0}return!1};
lUf=function(G){return G.sort(function(H,Z){return ZWv(Z)-ZWv(H)})};
_.gRo=function(G){G=Array.from(G.querySelectorAll(suu)).filter(function(H){return(HWW(H.style)?HWW(window.getComputedStyle(H)):!1)&&p3j(H)});
return Quf(G)?lUf(G):G};
_.sj=function(G,H){if(Error.captureStackTrace)Error.captureStackTrace(this,_.sj);else{var Z=Error().stack;Z&&(this.stack=Z)}G&&(this.message=String(G));H!==void 0&&(this.cause=H)};
ZU=function(){throw Error("E");};
IUj=function(G,H){H=String.fromCharCode.apply(null,H);return G==null?H:G+H};
BfR=function(G){var H=!1;H=H===void 0?!1:H;if(qjb){if(H&&(Sj2?!G.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(G)))throw Error("F");G=(ubM||(ubM=new TextEncoder)).encode(G)}else{for(var Z=0,Q=new Uint8Array(3*G.length),p=0;p<G.length;p++){var l=G.charCodeAt(p);if(l<128)Q[Z++]=l;else{if(l<2048)Q[Z++]=l>>6|192;else{if(l>=55296&&l<=57343){if(l<=56319&&p<G.length){var q=G.charCodeAt(++p);if(q>=56320&&q<=57343){l=(l-55296)*1024+q-56320+65536;Q[Z++]=l>>18|
240;Q[Z++]=l>>12&63|128;Q[Z++]=l>>6&63|128;Q[Z++]=l&63|128;continue}else p--}if(H)throw Error("F");l=65533}Q[Z++]=l>>12|224;Q[Z++]=l>>6&63|128}Q[Z++]=l&63|128}}G=Z===Q.length?Q:Q.subarray(0,Z)}return G};
pW=function(G){_.Qf.setTimeout(function(){throw G;},0)};
_.le=function(G,H){return G.lastIndexOf(H,0)==0};
Iu=function(G,H){var Z=G.length-H.length;return Z>=0&&G.indexOf(H,Z)==Z};
_.ue=function(G){return/^[\s\xa0]*$/.test(G)};
_.JM=function(G,H){return G.indexOf(H)!=-1};
_.tM=function(G,H){return _.JM(G.toLowerCase(),H.toLowerCase())};
_.DU=function(G,H){var Z=0;G=kR(String(G)).split(".");H=kR(String(H)).split(".");for(var Q=Math.max(G.length,H.length),p=0;Z==0&&p<Q;p++){var l=G[p]||"",q=H[p]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];q=/(\d*)(\D*)(.*)/.exec(q)||["","","",""];if(l[0].length==0&&q[0].length==0)break;Z=JMR(l[1].length==0?0:parseInt(l[1],10),q[1].length==0?0:parseInt(q[1],10))||JMR(l[2].length==0,q[2].length==0)||JMR(l[2],q[2]);l=l[3];q=q[3]}while(Z==0)}return Z};
JMR=function(G,H){return G<H?-1:G>H?1:0};
_.nW=function(){var G=_.Qf.navigator;return G&&(G=G.userAgent)?G:""};
t2b=function(G){if(!Vf||!Xb)return!1;for(var H=0;H<Xb.brands.length;H++){var Z=Xb.brands[H].brand;if(Z&&_.JM(Z,G))return!0}return!1};
c3=function(G){return _.JM(_.nW(),G)};
v3=function(){return Vf?!!Xb&&Xb.brands.length>0:!1};
kof=function(){return v3()?!1:c3("Opera")};
DXR=function(){return v3()?!1:c3("Trident")||c3("MSIE")};
dXj=function(){return v3()?t2b("Microsoft Edge"):c3("Edg/")};
zo=function(){return c3("Firefox")||c3("FxiOS")};
_.ejj=function(){return c3("Safari")&&!(_.MX()||(v3()?0:c3("Coast"))||kof()||(v3()?0:c3("Edge"))||dXj()||(v3()?t2b("Opera"):c3("OPR"))||zo()||c3("Silk")||c3("Android"))};
_.MX=function(){return v3()?t2b("Chromium"):(c3("Chrome")||c3("CriOS"))&&!(v3()?0:c3("Edge"))||c3("Silk")};
_.nRW=function(){return c3("Android")&&!(_.MX()||zo()||kof()||c3("Silk"))};
V2e=function(G){var H={};G.forEach(function(Z){H[Z[0]]=Z[1]});
return function(Z){return H[Z.find(function(Q){return Q in H})]||""}};
$XU=function(G){var H=_.nW();if(G==="Internet Explorer"){if(DXR())if((G=/rv: *([\d\.]*)/.exec(H))&&G[1])H=G[1];else{G="";var Z=/MSIE +([\d\.]+)/.exec(H);if(Z&&Z[1])if(H=/Trident\/(\d.\d)/.exec(H),Z[1]=="7.0")if(H&&H[1])switch(H[1]){case "4.0":G="8.0";break;case "5.0":G="9.0";break;case "6.0":G="10.0";break;case "7.0":G="11.0"}else G="7.0";else G=Z[1];H=G}else H="";return H}var Q=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");Z=[];for(var p;p=Q.exec(H);)Z.push([p[1],p[2],p[3]||void 0]);
H=V2e(Z);switch(G){case "Opera":if(kof())return H(["Version","Opera"]);if(v3()?t2b("Opera"):c3("OPR"))return H(["OPR"]);break;case "Microsoft Edge":if(v3()?0:c3("Edge"))return H(["Edge"]);if(dXj())return H(["Edg"]);break;case "Chromium":if(_.MX())return H(["Chrome","CriOS","HeadlessChrome"])}return G==="Firefox"&&zo()||G==="Safari"&&_.ejj()||G==="Android Browser"&&_.nRW()||G==="Silk"&&c3("Silk")?(H=Z[2])&&H[1]||"":""};
_.X3v=function(G){if(v3()&&G!=="Silk"){var H=Xb.brands.find(function(Z){return Z.brand===G});
if(!H||!H.version)return NaN;H=H.version.split(".")}else{H=$XU(G);if(H==="")return NaN;H=H.split(".")}return H.length===0?NaN:Number(H[0])};
j2=function(){return Vf?!!Xb&&!!Xb.platform:!1};
_.cMU=function(){return j2()?Xb.platform==="Android":c3("Android")};
Tfu=function(){return c3("iPhone")&&!c3("iPod")&&!c3("iPad")};
_.P3=function(){return Tfu()||c3("iPad")||c3("iPod")};
_.fUo=function(){return j2()?Xb.platform==="macOS":c3("Macintosh")};
_.vRj=function(){return j2()?Xb.platform==="Windows":c3("Windows")};
_.Wvf=function(){return j2()?Xb.platform==="Chrome OS":c3("CrOS")};
_.wf=function(G){return G[G.length-1]};
_.hM=function(G,H,Z){H=_.zjU(G,H,Z);return H<0?null:typeof G==="string"?G.charAt(H):G[H]};
_.zjU=function(G,H,Z){for(var Q=G.length,p=typeof G==="string"?G.split(""):G,l=0;l<Q;l++)if(l in p&&H.call(Z,p[l],l,G))return l;return-1};
Kve=function(G){for(var H=_.CW,Z=typeof G==="string"?G.split(""):G,Q=G.length-1;Q>=0;Q--)if(Q in Z&&H.call(void 0,Z[Q],Q,G))return Q;return-1};
_.yf=function(G,H){return _.Oj(G,H)>=0};
_.M2v=function(G,H){_.yf(G,H)||G.push(H)};
_.ou=function(G,H){H=_.Oj(G,H);var Z;(Z=H>=0)&&_.juv(G,H);return Z};
_.juv=function(G,H){Array.prototype.splice.call(G,H,1)};
_.mv=function(G){var H=G.length;if(H>0){for(var Z=Array(H),Q=0;Q<H;Q++)Z[Q]=G[Q];return Z}return[]};
_.Ru=function(G,H){for(var Z=1;Z<arguments.length;Z++){var Q=arguments[Z];if(_.Uj(Q)){var p=G.length||0,l=Q.length||0;G.length=p+l;for(var q=0;q<l;q++)G[p+q]=Q[q]}else G.push(Q)}};
_.rMU=function(G,H,Z,Q){Array.prototype.splice.apply(G,Pej(arguments,1))};
Pej=function(G,H,Z){return arguments.length<=2?Array.prototype.slice.call(G,H):Array.prototype.slice.call(G,H,Z)};
w3X=function(G,H){H=H||G;for(var Z=0,Q=0,p={};Q<G.length;){var l=G[Q++],q=_.AM(l)?"o"+_.LW(l):(typeof l).charAt(0)+l;Object.prototype.hasOwnProperty.call(p,q)||(p[q]=!0,H[Z++]=l)}H.length=Z};
_.Ce2=function(G,H,Z){Z=Z||_.hjW;for(var Q=0,p=G.length,l;Q<p;){var q=Q+(p-Q>>>1);var u=Z(H,G[q]);u>0?Q=q+1:(p=q,l=!u)}return l?Q:-Q-1};
_.Ej=function(G,H,Z){if(!_.Uj(G)||!_.Uj(H)||G.length!=H.length)return!1;var Q=G.length;Z=Z||iWv;for(var p=0;p<Q;p++)if(!Z(G[p],H[p]))return!1;return!0};
_.hjW=function(G,H){return G>H?1:G<H?-1:0};
iWv=function(G,H){return G===H};
OWW=function(G,H,Z){H=Array.prototype.splice.call(G,H,1);Array.prototype.splice.call(G,Z,0,H[0])};
yMv=function(G){return aUj[G]||""};
UX3=function(G){if(!oRW)return _.YR(G);G=mXo.test(G)?G.replace(mXo,yMv):G;G=atob(G);for(var H=new Uint8Array(G.length),Z=0;Z<G.length;Z++)H[Z]=G.charCodeAt(Z);return H};
Rj2=function(G,H){G.__closure__error__context__984382||(G.__closure__error__context__984382={});G.__closure__error__context__984382.severity=H};
_.Hd=function(G){G=Error(G);Rj2(G,"warning");return G};
AMe=function(G,H){if(G!=null){var Z;var Q=(Z=NfM)!=null?Z:NfM={};Z=Q[G]||0;Z>=H||(Q[G]=Z+1,G=Error(),Rj2(G,"incident"),pW(G))}};
ZT=function(G,H,Z){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(Z===void 0?0:Z)&&Symbol.for&&G?Symbol.for(G):G!=null?Symbol(G):Symbol():H};
gG=function(G,H){Q4||_.pw in G||xXu(G,Lvj);G[_.pw]|=H};
q7=function(G,H){Q4||_.pw in G||xXu(G,Lvj);G[_.pw]=H};
ERv=function(G){if(4&G)return 512&G?512:1024&G?1024:0};
Sp=function(G){gG(G,34);return G};
ua=function(G){gG(G,8192);return G};
Yj3=function(G){gG(G,32);return G};
dG=function(){return typeof BigInt==="function"};
vd=function(G,H){return H===void 0?G.copyOnWrite!==cd&&!!(2&(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.pw]|0)):!!(2&H)&&G.copyOnWrite!==cd};
_.Pd=function(G,H){if(G!=null)if(typeof G==="string")G=G?new Wd(G,M7):_.jp();else if(G.constructor!==Wd)if(Fve&&G!=null&&G instanceof Uint8Array)G=G.length?new Wd(new Uint8Array(G),M7):_.jp();else{if(!H)throw Error();G=void 0}return G};
bW3=function(G,H){if(typeof H!=="number"||H<0||H>=G.length)throw Error();};
GxW=function(G,H,Z){var Q=H&128?0:-1,p=G.length,l;if(l=!!p)l=G[p-1],l=l!=null&&typeof l==="object"&&l.constructor===Object;var q=p+(l?-1:0);for(H=H&128?1:0;H<q;H++)Z(H-Q,G[H]);if(l){G=G[p-1];for(var u in G)!isNaN(u)&&Z(+u,G[u])}};
h_=function(G){return G&128?wG:void 0};
Cw=function(G){G.isGuard_doNotManuallySetPrettyPlease=!0;return G};
ste=function(){var G=Hwo;return Cw(function(H){for(var Z in G)if(H===G[Z]&&!/^[0-9]+$/.test(Z))return!0;return!1})};
_.ia=function(G){var H=G;if(Zwo(H)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(H))throw Error(String(H));}else if(Qto(H)&&!Number.isSafeInteger(H))throw Error(String(H));return pdj?BigInt(G):G=lTf(G)?G?"1":"0":Zwo(G)?G.trim()||"0":String(G)};
gw2=function(G,H){if(G.length>H.length)return!1;if(G.length<H.length||G===H)return!0;for(var Z=0;Z<G.length;Z++){var Q=G[Z],p=H[Z];if(Q>p)return!1;if(Q<p)return!0}};
ITW=function(G){var H=G>>>0;OR=H;at=(G-H)/4294967296>>>0};
y4=function(G){if(G<0){ITW(-G);var H=_.I(qRf(OR,at));G=H.next().value;H=H.next().value;OR=G>>>0;at=H>>>0}else ITW(G)};
ua2=function(G){var H=SRW||(SRW=new DataView(new ArrayBuffer(8)));H.setFloat32(0,+G,!0);at=0;OR=H.getUint32(0,!0)};
BGj=function(G,H){var Z=H*4294967296+(G>>>0);return Number.isSafeInteger(Z)?Z:_.ot(G,H)};
m2=function(G,H){var Z=H&2147483648;Z&&(G=~G+1>>>0,H=~H>>>0,G==0&&(H=H+1>>>0));G=BGj(G,H);return typeof G==="number"?Z?-G:G:Z?"-"+G:G};
J_R=function(G){var H=OR,Z=at,Q=Z>>31;Z=(Z<<1|H>>>31)^Q;G(H<<1^Q,Z)};
tpo=function(G,H){var Z=-(G&1);G=(G>>>1|H<<31)^Z;return m2(G,H>>>1^Z)};
_.ot=function(G,H){H>>>=0;G>>>=0;if(H<=2097151)var Z=""+(4294967296*H+G);else dG()?Z=""+(BigInt(H)<<BigInt(32)|BigInt(G)):(Z=(G>>>24|H<<8)&16777215,H=H>>16&65535,G=(G&16777215)+Z*6777216+H*6710656,Z+=H*8147497,H*=2,G>=1E7&&(Z+=G/1E7>>>0,G%=1E7),Z>=1E7&&(H+=Z/1E7>>>0,Z%=1E7),Z=H+kxb(Z)+kxb(G));return Z};
kxb=function(G){G=String(G);return"0000000".slice(G.length)+G};
_.D7X=function(G,H){H&2147483648?dG()?G=""+(BigInt(H|0)<<BigInt(32)|BigInt(G>>>0)):(H=_.I(qRf(G,H)),G=H.next().value,H=H.next().value,G="-"+_.ot(G,H)):G=_.ot(G,H);return G};
Rt=function(G){if(G.length<16)y4(Number(G));else if(dG())G=BigInt(G),OR=Number(G&BigInt(4294967295))>>>0,at=Number(G>>BigInt(32)&BigInt(4294967295));else{var H=+(G[0]==="-");at=OR=0;for(var Z=G.length,Q=H,p=(Z-H)%6+H;p<=Z;Q=p,p+=6)Q=Number(G.slice(Q,p)),at*=1E6,OR=OR*1E6+Q,OR>=4294967296&&(at+=Math.trunc(OR/4294967296),at>>>=0,OR>>>=0);H&&(H=_.I(qRf(OR,at)),G=H.next().value,H=H.next().value,OR=G,at=H)}};
qRf=function(G,H){H=~H;G?G=~G+1:H+=1;return[G,H]};
A_=function(G){return Array.prototype.slice.call(G)};
_.Lw=function(G,H){throw Error(H===void 0?"unexpected value "+G+"!":H);};
_.ER=function(G){if(G!=null&&typeof G!=="number")throw Error("L`"+typeof G+"`"+G);return G};
_.Fa=function(G){if(G==null||typeof G==="number")return G;if(G==="NaN"||G==="Infinity"||G==="-Infinity")return Number(G)};
d7e=function(G){if(G!=null&&typeof G!=="boolean")throw Error("M`"+_.ba(G)+"`"+G);return G};
_.eNW=function(G){if(G==null||typeof G==="boolean")return G;if(typeof G==="number")return!!G};
_.sq=function(G){switch(typeof G){case "bigint":return!0;case "number":return G8(G);case "string":return nwf.test(G);default:return!1}};
_.pm=function(G){if(!G8(G))throw _.Hd("enum");return G|0};
_.lo=function(G){return G==null?G:G8(G)?G|0:void 0};
Vpu=function(G){if(typeof G!=="number")throw _.Hd("int32");if(!G8(G))throw _.Hd("int32");return G|0};
_.Ij=function(G){return G==null?G:Vpu(G)};
_.qa=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return G8(G)?G|0:void 0};
_.$7X=function(G){if(G==null)return G;if(typeof G==="string"&&G)G=+G;else if(typeof G!=="number")return;return G8(G)?G>>>0:void 0};
fTW=function(G){var H=0;H=H===void 0?0:H;if(!_.sq(G))throw _.Hd("int64");var Z=typeof G;switch(H){case 512:switch(Z){case "string":return Sc(G);case "bigint":return String(uo(64,G));default:return XdR(G)}case 1024:switch(Z){case "string":return c_3(G);case "bigint":return _.ia(uo(64,G));default:return TGb(G)}case 0:switch(Z){case "string":return Sc(G);case "bigint":return _.ia(uo(64,G));default:return J6(G)}default:return _.Lw(H,"Unknown format requested type for int64")}};
t6=function(G){return G==null?G:fTW(G)};
vwj=function(G){var H=G.length;if(G[0]==="-"?H<20||H===20&&G<="-9223372036854775808":H<19||H===19&&G<="9223372036854775807")return G;Rt(G);return _.D7X(OR,at)};
W2j=function(G){if(G[0]==="-")var H=!1;else H=G.length,H=H<20?!0:H===20&&G<="18446744073709551615";if(H)return G;Rt(G);return _.ot(OR,at)};
J6=function(G){G=kA(G);Dt(G)||(y4(G),G=m2(OR,at));return G};
_.zNo=function(G){G=kA(G);G>=0&&Dt(G)||(y4(G),G=BGj(OR,at));return G};
XdR=function(G){G=kA(G);Dt(G)?G=String(G):(y4(G),G=_.D7X(OR,at));return G};
_.K22=function(G){G=kA(G);G>=0&&Dt(G)?G=String(G):(y4(G),G=_.ot(OR,at));return G};
Sc=function(G){var H=kA(Number(G));if(Dt(H))return String(H);H=G.indexOf(".");H!==-1&&(G=G.substring(0,H));return vwj(G)};
c_3=function(G){var H=kA(Number(G));if(Dt(H))return _.ia(H);H=G.indexOf(".");H!==-1&&(G=G.substring(0,H));return dG()?_.ia(uo(64,BigInt(G))):_.ia(vwj(G))};
TGb=function(G){return Dt(G)?_.ia(J6(G)):_.ia(XdR(G))};
_.Mpu=function(G){return Dt(G)?_.ia(_.zNo(G)):_.ia(_.K22(G))};
_.jtX=function(G){var H=kA(Number(G));if(Dt(H)&&H>=0)return String(H);H=G.indexOf(".");H!==-1&&(G=G.substring(0,H));return W2j(G)};
_.Pae=function(G){var H=kA(Number(G));if(Dt(H)&&H>=0)return _.ia(H);H=G.indexOf(".");H!==-1&&(G=G.substring(0,H));return dG()?_.ia((0,_.dk)(64,BigInt(G))):_.ia(W2j(G))};
_.wdU=function(G){if(G==null)return G;if(typeof G==="bigint")return r_f(G)?G=Number(G):(G=uo(64,G),G=r_f(G)?Number(G):String(G)),G;if(_.sq(G))return typeof G==="number"?J6(G):Sc(G)};
hNW=function(G,H){H=H===void 0?!1:H;var Z=typeof G;if(G==null)return G;if(Z==="bigint")return String(uo(64,G));if(_.sq(G))return Z==="string"?Sc(G):H?XdR(G):J6(G)};
_.Ca2=function(G){var H=typeof G;if(G==null)return G;if(H==="bigint")return _.ia(uo(64,G));if(_.sq(G))return H==="string"?c_3(G):TGb(G)};
iwv=function(G){if(G==null)return G;var H=typeof G;if(H==="bigint")return String(uo(64,G));if(_.sq(G)){if(H==="string")return Sc(G);if(H==="number")return J6(G)}};
Owf=function(G){if(G==null)return G;var H=typeof G;if(H==="bigint")return String((0,_.dk)(64,G));if(_.sq(G)){if(H==="string")return _.jtX(G);if(H==="number")return _.zNo(G)}};
_.$A=function(G){if(typeof G!=="string")throw Error();return G};
XL=function(G){if(G!=null&&typeof G!=="string")throw Error();return G};
_.T8=function(G){return G==null||typeof G==="string"?G:void 0};
owf=function(G,H,Z,Q){if(G!=null&&G[fm]===z8)return G;if(!Array.isArray(G))return Z?Q&2?H[aTR]||(H[aTR]=y_f(H)):new H:void 0;Z=G[_.pw]|0;Q=Z|Q&32|Q&2;Q!==Z&&q7(G,Q);return new H(G)};
y_f=function(G){G=new G;Sp(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
m7u=function(G,H,Z){G=H?Vpu(G):_.qa(G);return G==null?Z?0:void 0:G|0};
U7v=function(G){return G};
RNo=function(G){return G};
A_f=function(G,H,Z,Q,p,l){G=owf(G,Q,Z,l);p&&(G=NGj(G));return G};
x7W=function(G){return[G,this.get(G)]};
YRj=function(){return L2j||(L2j=new Km(Sp([]),void 0,void 0,void 0,Ewo))};
F23=function(G){var H=rk(wk);return H?G[H]:void 0};
Hmv=function(G,H){var Z=Z===void 0?!1:Z;if(rk(bwu)&&rk(wk)&&void 0===bwu){var Q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=Q[wk];if(!p)return;if(p=p.reviveUnknownFields)try{p(Q,H,G8b);return}catch(l){pW(l)}}Z&&(G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(Z=rk(wk))&&Z in G&&(G=G[Z])&&delete G[H])};
Zmb=function(G,H){var Z=rk(wk),Q;Q4&&Z&&((Q=G[Z])==null?void 0:Q[H])!=null&&AMe(sjv,3)};
pDf=function(G,H){H<100||AMe(Qj3,1)};
Sqj=function(G,H,Z,Q){var p=Q!==void 0;Q=!!Q;var l=rk(wk),q;!p&&Q4&&l&&(q=G[l])&&lto(q,pDf);l=[];var u=G.length;q=4294967295;var B=!1,t=!!(H&64),D=t?H&128?0:-1:void 0;if(!(H&1)){var d=u&&G[u-1];d!=null&&typeof d==="object"&&d.constructor===Object?(u--,q=u):d=void 0;if(t&&!(H&128)&&!p){B=!0;var e;q=((e=gAX)!=null?e:U7v)(q-D,D,G,d,void 0)+D}}H=void 0;for(e=0;e<u;e++){var n=G[e];if(n!=null&&(n=Z(n,Q))!=null)if(t&&e>=q){var c=e-D,W=void 0;((W=H)!=null?W:H={})[c]=n}else l[e]=n}if(d)for(var M in d)u=d[M],
u!=null&&(u=Z(u,Q))!=null&&(e=+M,n=void 0,t&&!Number.isNaN(e)&&(n=e+D)<q?l[n]=u:(e=void 0,((e=H)!=null?e:H={})[M]=u));H&&(B?l.push(H):l[q]=H);p&&rk(wk)&&(G=F23(G))&&G instanceof ItX&&(l[wk]=qq3(G));return l};
Bkj=function(G){G[0]=uLR(G[0]);G[1]=uLR(G[1]);return G};
uLR=function(G){switch(typeof G){case "number":return Number.isFinite(G)?G:""+G;case "bigint":return r_f(G)?Number(G):""+G;case "boolean":return G?1:0;case "object":if(Array.isArray(G)){var H=G[_.pw]|0;return G.length===0&&H&1?void 0:Sqj(G,H,uLR)}if(G!=null&&G[fm]===z8)return J6f(G);if(G instanceof Wd){H=G.JSC$8829_value_;if(H==null)G="";else if(typeof H==="string")G=H;else{if(oRW){for(var Z="",Q=0,p=H.length-10240;Q<p;)Z+=String.fromCharCode.apply(null,H.subarray(Q,Q+=10240));Z+=String.fromCharCode.apply(null,
Q?H.subarray(Q):H);H=btoa(Z)}else H=_.Cm(H);G=G.JSC$8829_value_=H}return G}if(G instanceof Km)return G=G.size!==0?tcM(G,Bkj):void 0,G;return}return G};
io=function(G,H){if(H){gAX=H==null||H===U7v||H[k8X]!==Daf?U7v:H;try{return J6f(G)}finally{gAX=void 0}}return J6f(G)};
J6f=function(G){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Sqj(G,G[_.pw]|0,uLR)};
nAe=function(G){switch(typeof G){case "boolean":return daW||(daW=[0,void 0,!0]);case "number":return G>0?void 0:G===0?eiW||(eiW=[0,void 0]):[-G,void 0];case "string":return[0,G];case "object":return G}};
yh=function(G,H,Z){return G=_.aj(G,H[0],H[1],Z?1:2)};
_.aj=function(G,H,Z,Q){Q=Q===void 0?0:Q;if(G==null){var p=32;Z?(G=[Z],p|=128):G=[];H&&(p=p&-16760833|(H&1023)<<14)}else{if(!Array.isArray(G))throw Error("O");p=G[_.pw]|0;if(VcU&&1&p)throw Error("P");2048&p&&!(2&p)&&$af();if(p&256)throw Error("Q");if(p&64)return Q!==0||p&2048||q7(G,p|2048),G;if(Z&&(p|=128,Z!==G[0]))throw Error("R");a:{Z=G;p|=64;var l=Z.length;if(l){var q=l-1,u=Z[q];if(u!=null&&typeof u==="object"&&u.constructor===Object){H=p&128?0:-1;q-=H;if(q>=1024)throw Error("T");for(var B in u)l=
+B,l<q&&(Z[l+H]=u[B],delete u[B]);p=p&-16760833|(q&1023)<<14;break a}}if(H){B=Math.max(H,l-(p&128?0:-1));if(B>1024)throw Error("U");p=p&-16760833|(B&1023)<<14}}}p|=64;Q===0&&(p|=2048);q7(G,p);return G};
$af=function(){if(VcU)throw Error("S");AMe(XDX,5)};
ft3=function(G,H){if(typeof G!=="object")return G;if(Array.isArray(G)){var Z=G[_.pw]|0;return G.length===0&&Z&1?void 0:c63(G,Z,H)}if(G!=null&&G[fm]===z8)return Tkj(G);if(G instanceof Km){H=G.arrayState;if(H&2)return G;if(!G.size)return;Z=Sp(tcM(G));if(G.valueCtor)for(G=0;G<Z.length;G++){var Q=Z[G],p=Q[1];p==null||typeof p!=="object"?p=void 0:p!=null&&p[fm]===z8?p=Tkj(p):Array.isArray(p)?p=c63(p,p[_.pw]|0,!!(H&32)):p=void 0;Q[1]=p}return Z}if(G instanceof Wd)return G};
c63=function(G,H,Z){if(H&2)return G;!Z||4096&H||16&H?G=ms(G,H,!1,Z&&!(H&16)):(gG(G,34),H&4&&Object.freeze(G));return G};
vAf=function(G,H,Z){G=new G.constructor(H);Z&&(G.copyOnWrite=cd);G.noLegacyNull=cd;return G};
Tkj=function(G){var H=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=H[_.pw]|0;return vd(G,Z)?G:Wsv(G,H,Z)?vAf(G,H):ms(H,Z)};
ms=function(G,H,Z,Q){Q!=null||(Q=!!(34&H));G=Sqj(G,H,ft3,Q);Q=32;Z&&(Q|=2);H=H&16769217|Q;q7(G,H);return G};
NGj=function(G){var H=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=H[_.pw]|0;return vd(G,Z)?Wsv(G,H,Z)?vAf(G,H,!0):new G.constructor(ms(H,Z,!1)):G};
Uq=function(G){if(G.copyOnWrite!==cd)return!1;var H=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=ms(H,H[_.pw]|0);gG(H,2048);G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=H;G.copyOnWrite=void 0;G.noLegacyNull=void 0;return!0};
Rj=function(G){if(!Uq(G)&&vd(G,G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.pw]|0))throw Error();};
Na=function(G,H){H===void 0&&(H=G[_.pw]|0);H&32&&!(H&4096)&&q7(G,H|4096)};
Wsv=function(G,H,Z){return Z&2?!0:Z&32&&!(Z&4096)?(q7(H,Z|2),G.copyOnWrite=cd,!0):!1};
xA=function(G,H,Z,Q,p){var l=Z+(p?0:-1),q=G.length-1;if(q>=1+(p?0:-1)&&l>=q){var u=G[q];if(u!=null&&typeof u==="object"&&u.constructor===Object)return u[Z]=Q,H}if(l<=q)return G[l]=Q,H;if(Q!==void 0){var B;q=((B=H)!=null?B:H=G[_.pw]|0)>>14&1023||536870912;Z>=q?Q!=null&&(l={},G[q+(p?0:-1)]=(l[Z]=Q,l)):G[l]=Q}return H};
_.YA=function(G,H,Z,Q,p){var l=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=l[_.pw]|0;Q=vd(G,q)?1:Q;p=!!p||Q===3;Q===2&&Uq(G)&&(l=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=l[_.pw]|0);G=ziu(l,H);var u=G===Lm?7:G[_.pw]|0,B=Kso(u,q);var t=4&B?!1:!0;if(t){4&B&&(G=A_(G),u=0,B=Eq(B,q),q=xA(l,q,H,G));for(var D=0,d=0;D<G.length;D++){var e=Z(G[D]);e!=null&&(G[d++]=e)}d<D&&(G.length=d);Z=(B|4)&-513;B=Z&=-1025;B&=-4097}B!==u&&(q7(G,B),2&B&&Object.freeze(G));return G=Mcu(G,B,l,
q,H,Q,t,p)};
Mcu=function(G,H,Z,Q,p,l,q,u){var B=H;l===1||(l!==4?0:2&H||!(16&H)&&32&Q)?FL(H)||(H|=!G.length||q&&!(4096&H)||32&Q&&!(4096&H||16&H)?2:256,H!==B&&q7(G,H),Object.freeze(G)):(l===2&&FL(H)&&(G=A_(G),B=0,H=Eq(H,Q),Q=xA(Z,Q,p,G)),FL(H)||(u||(H|=16),H!==B&&q7(G,H)));2&H||!(4096&H||16&H)||Na(Z,Q);return G};
ziu=function(G,H,Z){G=bo(G,H,Z);return Array.isArray(G)?G:Lm};
Kso=function(G,H){2&H&&(G|=2);return G|1};
FL=function(G){return!!(2&G)&&!!(4&G)||!!(256&G)};
jje=function(G){return _.Pd(G,!0)};
Pob=function(G){G=A_(G);for(var H=0;H<G.length;H++){var Z=G[H]=A_(G[H]);Array.isArray(Z[1])&&(Z[1]=Sp(Z[1]))}return ua(G)};
r6j=function(G,H){var Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=Z[_.pw]|0;a:{var p=Q;Q=vd(G,Q);!Q&&Uq(G)&&(Z=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=Z[_.pw]|0);var l=bo(Z,H);G=!1;if(l==null){if(Q){H=YRj();break a}l=[]}else if(l.constructor===Km)if(l.arrayState&2&&!Q)l=tcM(l);else{H=l;break a}else Array.isArray(l)?G=!!((l[_.pw]|0)&2):l=[];if(Q){if(!l.length){H=YRj();break a}G||(G=!0,Sp(l))}else G&&(G=!1,ua(l),l=Pob(l));!G&&p&32&&Yj3(l);Q=new Km(l,void 0,m7u,m7u);
p=xA(Z,p,H,Q);G||Na(Z,p);H=Q}return H};
_.G4=function(G,H,Z,Q){Rj(G);var p=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=p[_.pw]|0;if(Z==null)return xA(p,l,H),G;var q=Z===Lm?7:Z[_.pw]|0,u=q,B=FL(q),t=B||Object.isFrozen(Z);B||(q=0);t||(Z=A_(Z),u=0,q=Eq(q,l),t=!1);q|=5;var D;B=(D=ERv(q))!=null?D:0;for(D=0;D<Z.length;D++){var d=Z[D],e=Q(d,B);Object.is(d,e)||(t&&(Z=A_(Z),u=0,q=Eq(q,l),t=!1),Z[D]=e)}q!==u&&(t&&(Z=A_(Z),q=Eq(q,l)),q7(Z,q));xA(p,l,H,Z);return G};
_.HO=function(G,H,Z,Q,p){Rj(G);var l=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;xA(l,l[_.pw]|0,H,(Q==="0"?Number(Z)===0:Z===Q)?void 0:Z,p);return G};
_.s_=function(G,H,Z){if(H&2)throw Error();var Q=h_(H),p=ziu(G,Z,Q),l=p===Lm?7:p[_.pw]|0,q=Kso(l,H);if(2&q||FL(q)||16&q)q===l||FL(q)||q7(p,q),p=A_(p),l=0,q=Eq(q,H),xA(G,H,Z,p,Q);q&=-13;q!==l&&q7(p,q);return p};
wDX=function(G){if(Q4){var H;return(H=G[ZM])!=null?H:G[ZM]=new Map}if(ZM in G)return G[ZM];H=new Map;Object.defineProperty(G,ZM,{value:H});return H};
CoM=function(G,H,Z,Q,p){var l=wDX(G),q=hif(l,G,H,Z,p);q!==Q&&(q&&(H=xA(G,H,q,void 0,p)),l.set(Z,Q));return H};
hif=function(G,H,Z,Q,p){var l=G.get(Q);if(l!=null)return l;for(var q=l=0;q<Q.length;q++){var u=Q[q];bo(H,u,p)!=null&&(l!==0&&(Z=xA(H,Z,l,void 0,p)),l=u)}G.set(Q,l);return l};
imf=function(G,H,Z,Q,p){var l=!1;Q=bo(G,Q,p,function(q){var u=owf(q,Z,!1,H);l=u!==q&&u!=null;return u});
if(Q!=null)return l&&!vd(Q)&&Na(G,H),Q};
OmR=function(G,H,Z,Q,p,l,q,u){var B=vd(G,Z);l=B?1:l;q=!!q||l===3;B=u&&!B;(l===2||B)&&Uq(G)&&(H=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=H[_.pw]|0);G=ziu(H,p);var t=G===Lm?7:G[_.pw]|0,D=Kso(t,Z);if(u=!(4&D)){var d=G,e=Z,n=!!(2&D);n&&(e|=2);for(var c=!n,W=!0,M=0,r=0;M<d.length;M++){var w=owf(d[M],Q,!1,e);if(w instanceof Q){if(!n){var x=vd(w);c&&(c=!x);W&&(W=x)}d[r++]=w}}r<M&&(d.length=r);D|=4;D=W?D&-4097:D|4096;D=c?D|8:D&-9}D!==t&&(q7(G,D),2&D&&Object.freeze(G));if(B&&!(8&D||!G.length&&
(l===1||(l!==4?0:2&D||!(16&D)&&32&Z)))){FL(D)&&(G=A_(G),D=Eq(D,Z),Z=xA(H,Z,p,G));Q=G;B=D;for(t=0;t<Q.length;t++)d=Q[t],D=NGj(d),d!==D&&(Q[t]=D);B|=8;D=B=Q.length?B|4096:B&-4097;q7(G,D)}return G=Mcu(G,D,H,Z,p,l,u,q)};
atW=function(G){G==null&&(G=void 0);return G};
Eq=function(G,H){return G=(2&H?G|2:G&-3)&-273};
_.y63=function(G,H,Z,Q,p){Rj(G);H=_.YA(G,H,p,2,!0);var l;p=(l=ERv(H===Lm?7:H[_.pw]|0))!=null?l:0;H.push(Z(Q,p));return G};
oAW=function(G,H,Z,Q,p,l,q){Rj(G);var u=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=OmR(G,u,u[_.pw]|0,Z,H,2,!0);if(l&&q)p!=null||(p=G.length-1),bW3(G,p),G.splice(p,l),G.length||(G[_.pw]&=-4097);else{if(l){if(typeof p!=="number"||p<0||p>G.length)throw Error();}else Q=Q!=null?Q:new Z;p!=void 0?G.splice(p,l,Q):G.push(Q);p=Z=G===Lm?7:G[_.pw]|0;(Q=vd(Q))?(Z&=-9,G.length===1&&(Z&=-4097)):Z|=4096;Z!==p&&q7(G,Z);Q||Na(u)}};
Uab=function(G,H){if(typeof G==="string")return new Q2(UX3(G),H);if(Array.isArray(G))return new Q2(new Uint8Array(G),H);if(G.constructor===Uint8Array)return new Q2(G,!1);if(G.constructor===ArrayBuffer)return G=new Uint8Array(G),new Q2(G,!1);if(G.constructor===Wd)return H=ma2(G)||new Uint8Array(0),new Q2(H,!0,G);if(G instanceof Uint8Array)return G=G.constructor===Uint8Array?G:new Uint8Array(G.buffer,G.byteOffset,G.byteLength),new Q2(G,!1);throw Error();};
Nkv=function(G){switch(typeof G){case "string":Ri2(G)}};
xaM=function(G){switch(typeof G){case "string":A6f(G)}};
pq=function(){var G=function(){throw Error();};
Object.setPrototypeOf(G,G.prototype);return G};
EAu=function(G,H){var Z=Z===void 0?Lsb:Z;return new lI(G,H,Z)};
bmb=function(G,H,Z,Q,p){Yqf(G,Z,Fsb(H,Q),p)};
g0=function(G,H,Z,Q){var p=Q[G];if(p)return p;p={};p.binaryFields=Q;p.messageMetadata=nAe(Q[0]);var l=Q[1],q=1;l&&l.constructor===Object&&(p.extensions=l,l=Q[++q],typeof l==="function"&&(p.isMessageSet=!0,G4v!=null||(G4v=l),Hqb!=null||(Hqb=Q[q+1]),l=Q[q+=2]));for(var u={};l&&syf(l);){for(var B=0;B<l.length;B++)u[l[B]]=l;l=Q[++q]}for(B=1;l!==void 0;){typeof l==="number"&&(B+=l,l=Q[++q]);var t=void 0;if(l instanceof lI)var D=l;else D=Zqv,q--;l=void 0;if((l=D)==null?0:l.$$isMsg){l=Q[++q];t=Q;var d=q;
typeof l==="function"&&(l=l(),t[d]=l);t=l}l=Q[++q];d=B+1;typeof l==="number"&&l<0&&(d-=l,l=Q[++q]);for(;B<d;B++){var e=u[B];t?Z(p,B,D,t,e):H(p,B,D,e)}}return Q[G]=p};
syf=function(G){return Array.isArray(G)&&!!G.length&&typeof G[0]==="number"&&G[0]>0};
pOX=function(G){return Array.isArray(G)?G[0]instanceof lI?G:[Qy2,G]:[G,void 0]};
Fsb=function(G,H){if(G instanceof _.Iy)return G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(G))return yh(G,H,!1)};
lM2=function(G,H,Z,Q){var p=Z.$$binaryReaderFn;G[H]=Q?function(l,q,u){return p(l,q,u,Q)}:p};
IMR=function(G,H,Z,Q,p){var l=Z.$$binaryReaderFn,q,u;G[H]=function(B,t,D){return l(B,t,D,u||(u=g0(gY3,lM2,IMR,Q).messageMetadata),q||(q=q_R(Q)),p)}};
q_R=function(G){var H=G[S_3];if(H!=null)return H;var Z=g0(gY3,lM2,IMR,G);H=Z.isMessageSet?function(Q,p){return G4v(Q,p,Z)}:function(Q,p){for(;uxu(p)&&p.nextWireType_!=4;){var l=p.nextField_,q=Z[l];
if(q==null){var u=Z.extensions;u&&(u=u[l])&&(u=B0f(u),u!=null&&(q=Z[l]=u))}if(q==null||!q(p,Q,l)){u=p;q=u.fieldCursor_;JNe(u);if(u.discardUnknownFields)var B=void 0;else{var t=u.decoder_.cursor_-q;u.decoder_.cursor_=q;B=t7v(u.decoder_,t)}t=u=q=void 0;var D=Q;B&&((q=(u=(t=D[wk])!=null?t:D[wk]=new ItX)[l])!=null?q:u[l]=[]).push(B)}}if(Q=F23(Q))Q.reviveUnknownFields=Z.binaryFields[k4R];return!0};
G[S_3]=H;G[k4R]=DUM.bind(G);return H};
DUM=function(G,H,Z,Q){var p=this[gY3],l=this[S_3],q=yh(void 0,p.messageMetadata,!1),u=F23(G);if(u){var B=!1,t=p.extensions;if(t){p=function(c,W,M){if(M.length!==0)if(t[W])for(c=_.I(M),W=c.next();!W.done;W=c.next()){W=dUf(W.value);try{B=!0,l(q,W)}finally{W.free()}}else Q==null||Q(G,W,M)};
if(H==null)lto(u,p);else if(u!=null){var D=u[H];D&&p(u,H,D)}if(B){var d=G[_.pw]|0;if(d&2&&d&2048&&(Z==null||!Z.reviveIntoImmutable))throw Error();var e=h_(d),n=function(c,W){if(bo(G,c,e)!=null)switch(Z==null?void 0:Z.resolutionBehavior){case 1:return;default:throw Error();}W!=null&&(d=xA(G,d,c,W,e));delete u[c]};
H==null?GxW(q,q[_.pw]|0,function(c,W){n(c,W)}):n(H,bo(q,H,e))}}}};
B0f=function(G){G=pOX(G);var H=G[0].$$binaryReaderFn;if(G=G[1]){var Z=q_R(G),Q=g0(gY3,lM2,IMR,G).messageMetadata;return function(p,l,q){return H(p,l,q,Q,Z)}}return H};
edv=function(G,H,Z){G[H]=Z.$$binaryWriterFn};
V7v=function(G,H,Z,Q){var p,l,q=Z.$$binaryWriterFn;G[H]=function(u,B,t){return q(u,B,t,l||(l=g0(nYu,edv,V7v,Q).messageMetadata),p||(p=$Uj(Q)))}};
$Uj=function(G){var H=G[XOo];if(!H){var Z=g0(nYu,edv,V7v,G);H=function(Q,p){return cNo(Q,p,Z)};
G[XOo]=H}return H};
cNo=function(G,H,Z){GxW(G,G[_.pw]|0,function(Q,p){if(p!=null){var l=T02(Z,Q);l?l(H,p,Q):Q<500||AMe(fMU,3)}});
(G=F23(G))&&lto(G,function(Q,p,l){qU(H,H.encoder_.end());for(Q=0;Q<l.length;Q++)qU(H,ma2(l[Q])||new Uint8Array(0))})};
T02=function(G,H){var Z=G[H];if(Z)return Z;if(Z=G.extensions)if(Z=Z[H]){Z=pOX(Z);var Q=Z[0].$$binaryWriterFn;if(Z=Z[1]){var p=$Uj(Z),l=g0(nYu,edv,V7v,Z).messageMetadata;Z=G.isMessageSet?Hqb(l,p):function(q,u,B){return Q(q,u,B,l,p)}}else Z=Q;
return G[H]=Z}};
_.vYf=function(G,H,Z){if(Array.isArray(H)){var Q=H[_.pw]|0;if(Q&4)return H;for(var p=0,l=0;p<H.length;p++){var q=G(H[p]);q!=null&&(H[l++]=q)}l<p&&(H.length=l);G=Q|1;Z&&(G=(G|4)&-1537);G!==Q&&q7(H,G);Z&&G&2&&Object.freeze(H);return H}};
_.uI=function(G,H,Z){return new lI(G,H,Z)};
_.W0U=function(G,H,Z){return new lI(G,H,Z)};
_.BO=function(G,H,Z){xA(G,G[_.pw]|0,H,Z,h_(G[_.pw]|0))};
zd2=function(G,H,Z){H=_.Fa(H);H!=null&&(_.JN(G,Z,1),G=G.encoder_,Z=SRW||(SRW=new DataView(new ArrayBuffer(8))),Z.setFloat64(0,+H,!0),OR=Z.getUint32(0,!0),at=Z.getUint32(4,!0),_.tN(G,OR),_.tN(G,at))};
K0f=function(G,H,Z){H=_.Fa(H);H!=null&&(_.JN(G,Z,5),G=G.encoder_,ua2(H),_.tN(G,OR))};
_.DM=function(G,H,Z){H=iwv(H);if(H!=null&&(Nkv(H),H!=null))switch(_.JN(G,Z,0),typeof H){case "number":G=G.encoder_;y4(H);kY(G,OR,at);break;case "bigint":Z=BigInt.asUintN(64,H);Z=new M7W(Number(Z&BigInt(4294967295)),Number(Z>>BigInt(32)));kY(G.encoder_,Z.JSC$8872_lo,Z.JSC$8872_hi);break;default:Z=Ri2(H),kY(G.encoder_,Z.JSC$8872_lo,Z.JSC$8872_hi)}};
PIu=function(G,H,Z){H=Owf(H);if(H!=null&&(xaM(H),H!=null))switch(_.JN(G,Z,0),typeof H){case "number":G=G.encoder_;y4(H);kY(G,OR,at);break;case "bigint":Z=jyo(H);kY(G.encoder_,Z.JSC$8870_lo,Z.JSC$8870_hi);break;default:Z=A6f(H),kY(G.encoder_,Z.JSC$8870_lo,Z.JSC$8870_hi)}};
wO3=function(G,H,Z){H=_.qa(H);H!=null&&H!=null&&(_.JN(G,Z,0),_.rNe(G.encoder_,H))};
_.CI3=function(G,H,Z){hdU(G,Z,Owf(H))};
iqW=function(G,H,Z){H=_.eNW(H);H!=null&&(_.JN(G,Z,0),G.encoder_.JSC$8874_buffer_.push(H?1:0))};
aM2=function(G,H,Z){H=_.T8(H);H!=null&&Oqe(G,Z,BfR(H))};
yN2=function(G,H,Z,Q,p){Yqf(G,Z,Fsb(H,Q),p)};
_.oYj=function(G,H,Z){H=H==null||typeof H=="string"||H instanceof Wd?H:void 0;H!=null&&Oqe(G,Z,Uab(H,!0).buffer)};
mUj=function(G,H,Z){H=_.$7X(H);H!=null&&H!=null&&(_.JN(G,Z,0),d0(G.encoder_,H))};
_.UUo=function(G,H,Z){H=_.qa(H);H!=null&&(H=parseInt(H,10),_.JN(G,Z,0),_.rNe(G.encoder_,H))};
_.e7=function(G,H){return function(Z,Q){var p={treatNewDataAsImmutable:!0};Q&&Object.assign(p,Q);Z=dUf(Z,void 0,void 0,p);try{var l=new G,q=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q_R(H)(q,Z);var u=l}finally{Z.free()}return u}};
_.V2=function(G){return function(H){return Rdo(H,G)}};
N0v=function(G){return function(){return Rdo(this,G)}};
_.ANu=function(G){return Cw(function(H){return H instanceof G&&!vd(H)})};
_.cO=function(G){return function(H){return xUf(G,H)}};
F0j=function(G,H){return L0M({child:G,origin:H||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:EYU,getPayloadCase:function(Z){return Z.getPayloadCase()},
createInitMessage:function(Z){var Q=new T4,p=new Y_f;Z=_.fq(p,1,Z);return _.vO(Q,5,WO,Z)}})};
z4=function(G){return{valueOf:G}.valueOf()};
GOo=function(){var G=null;if(!bq2)return G;try{var H=function(Z){return Z};
G=bq2.createPolicy("goog#html",{createHTML:H,createScript:H,createScriptURL:H})}catch(Z){}return G};
ssu=function(){H0M===void 0&&(H0M=GOo());return H0M};
_.j7=function(G){var H=ssu();G=H?H.createScriptURL(G):G;return new Kq(G)};
_.PO=function(G){if(G instanceof Kq)return G.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.r0=function(G){return Object.isFrozen(G)&&Object.isFrozen(G.raw)};
Z0j=function(G){return G.toString().indexOf("`")===-1};
hN=function(G){return new _.w0(Qsv,G)};
Cq=function(G){return G instanceof _.w0};
_.iI=function(G){if(Cq(G))return G.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
O_=function(G){return new pgu(function(H){return H.substr(0,G.length+1).toLowerCase()===G+":"})};
_.y2=function(G,H){H=H===void 0?l6u:H;if(Cq(G))return G;for(var Z=0;Z<H.length;++Z){var Q=H[Z];if(Q instanceof pgu&&Q.isValid(G))return hN(G)}};
_.m0=function(G,H){H=H===void 0?l6u:H;return _.y2(G,H)||oy};
_.U_=function(G){var H=window;if(typeof MediaSource!=="undefined"&&G instanceof MediaSource||typeof H.ManagedMediaSource!=="undefined"&&G instanceof H.ManagedMediaSource)return hN(URL.createObjectURL(G));H=G.type;H.toLowerCase()==="application/octet-stream"?H=!0:(H=H.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),H=(H==null?void 0:H.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(H[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(H[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(H[1])||/^font\/[\w-]+$/i.test(H[1])));if(!H)throw Error("Z");return hN(URL.createObjectURL(G))};
_.gb2=function(G){for(var H=_.Ry.apply(1,arguments),Z=[G[0]],Q=0;Q<H.length;Q++)Z.push(String(H[Q])),Z.push(G[Q+1]);return hN(Z.join(""))};
_.qPX=function(G){if(!I63){a:{var H=document.createElement("a");try{H.href=G}catch(Z){G=void 0;break a}G=H.protocol;G=G===":"||G===""?"https:":G}return G}try{H=new URL(G)}catch(Z){return"https:"}return H.protocol};
_.NU=function(G){G instanceof _.w0?G=_.iI(G):G=SPj.test(G)?G:void 0;return G};
AN=function(G,H){H=_.NU(H);H!==void 0&&(G.href=H)};
Lq=function(G){var H=ssu();G=H?H.createHTML(G):G;return new xY(G)};
Fx=function(G){if(G instanceof xY)return G.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.bI=function(G,H){G.src=_.PO(H).toString()};
uVf=function(G,H){G.setAttribute("sandbox","");for(var Z=0;Z<H.length;Z++)G.sandbox.supports&&!G.sandbox.supports(H[Z])||G.sandbox.add(H[Z])};
_.GO=function(G,H,Z){G.removeAttribute("srcdoc");switch(H){case 0:if(Z instanceof Kq)throw new BJW("TrustedResourceUrl",0);uVf(G,[]);H=_.NU(Z);H!==void 0&&(G.src=H);break;case 1:if(!(Z instanceof Kq))throw new BJW(typeof Z,1);uVf(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.bI(G,Z);break;case 2:if(Z instanceof Kq)throw new BJW("TrustedResourceUrl",2);uVf(G,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
H=_.NU(Z);H!==void 0&&(G.src=H);break;default:_.Lw(H)}};
_.Hg=function(G,H,Z,Q){H=_.NU(H);return H!==void 0?G.open(H,Z,Q):null};
_.sP=function(G){G=G===void 0?document:G;var H,Z;G=(Z=(H=G).querySelector)==null?void 0:Z.call(H,"script[nonce]");return G==null?"":G.nonce||G.getAttribute("nonce")||""};
_.Qk=function(G){var H=ssu();G=H?H.createScript(G):G;return new _.Z6(G)};
p0=function(G){if(G instanceof _.Z6)return G.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
JwX=function(G){var H=_.sP(G.ownerDocument);H&&G.setAttribute("nonce",H)};
_.lE=function(G,H){G.textContent=p0(H);JwX(G)};
_.gJ=function(G,H){G.src=_.PO(H);JwX(G)};
_.Is=function(G,H){if(G.nodeType===1&&/^(script|style)$/i.test(G.tagName))throw Error("Z");G.innerHTML=Fx(H)};
_.q_=function(G,H,Z,Q){if(G.length===0)throw Error("Z");G=G.map(function(l){if(l instanceof tlU)l=l.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return l});
var p=Z.toLowerCase();if(G.every(function(l){return p.indexOf(l)!==0}))throw Error("aa`"+Z);
H.setAttribute(Z,Q)};
_.Sl=function(G,H,Z){if(H instanceof Kq)G.href=_.PO(H).toString(),G.rel=Z;else{if(kOX.indexOf(Z)===-1)throw Error("ba`"+Z);H=_.NU(H);H!==void 0&&(G.href=H,G.rel=Z)}};
D_j=function(G){if(G instanceof uE)return G.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.d_j=function(G,H){H=_.NU(H);H!==void 0&&(G.href=H)};
eLb=function(G){return new Worker(_.PO(G),void 0)};
nbe=function(G){return _.j7(G)};
Vl2=function(G,H){G&&(H=G.indexOf(H),0<=H&&G.splice(H,1))};
Bg=function(G){return typeof G==="function"};
$_j=function(G){return G instanceof Jw||G&&"closed"in G&&Bg(G.remove)&&Bg(G.add)&&Bg(G.unsubscribe)};
tw=function(){};
kb=function(G){Xgb(function(){throw G;})};
D6=function(G){return G};
dJ=function(){return cw3(_.Ry.apply(0,arguments))};
cw3=function(G){return G.length===0?D6:G.length===1?G[0]:function(H){return G.reduce(function(Z,Q){return Q(Z)},H)}};
TJo=function(G){var H;return(H=G!=null?G:void 0)!=null?H:Promise};
f6b=function(G,H){return new el(function(Z){var Q=0;return H.schedule(function(){Q===G.length?Z.complete():(Z.next(G[Q++]),Z.closed||this.schedule())})})};
vbM=function(G,H){if(!G)throw Error("ca");return new el(function(Z){var Q=new Jw;Q.add(H.schedule(function(){var p=G[Symbol.asyncIterator]();Q.add(H.schedule(function(){var l=this;p.next().then(function(q){q.done?Z.complete():(Z.next(q.value),l.schedule())})}))}));
return Q})};
Wi3=function(G,H,Z){H=H.schedule(function(){try{Z.call(this)}catch(Q){G.error(Q)}},0);
G.add(H)};
Kif=function(G,H){return new el(function(Z){var Q;Z.add(H.schedule(function(){Q=G[zL3]();Wi3(Z,H,function(){var p=Q.next(),l=p.value;p.done?Z.complete():(Z.next(l),this.schedule())})}));
return function(){var p;return Bg((p=Q)==null?void 0:p.return)&&Q.return()}})};
Mlb=function(G,H){return new el(function(Z){var Q=new Jw;Q.add(H.schedule(function(){var p=G[n0]();Q.add(p.subscribe({next:function(l){Q.add(H.schedule(function(){return Z.next(l)}))},
error:function(l){Q.add(H.schedule(function(){return Z.error(l)}))},
complete:function(){Q.add(H.schedule(function(){return Z.complete()}))}}))}));
return Q})};
js3=function(G,H){return new el(function(Z){return H.schedule(function(){return G.then(function(Q){Z.add(H.schedule(function(){Z.next(Q);Z.add(H.schedule(function(){return Z.complete()}))}))},function(Q){Z.add(H.schedule(function(){return Z.error(Q)}))})})})};
PEW=function(G){return new TypeError("da`"+(G!==null&&typeof G==="object"?"an invalid object":"'"+G+"'"))};
wgj=function(G,H){if(G!=null){if(Bg(G[n0]))return Mlb(G,H);if(rwu(G))return f6b(G,H);if(Bg(G==null?void 0:G.then))return js3(G,H);if(Symbol.asyncIterator&&Bg(G==null?void 0:G[Symbol.asyncIterator]))return vbM(G,H);if(Bg(G==null?void 0:G[zL3]))return Kif(G,H)}throw PEW(G);};
$b=function(G,H){return H?wgj(G,H):Vk(G)};
Vk=function(G){if(G instanceof el)return G;if(G!=null){if(Bg(G[n0]))return hL3(G);if(rwu(G))return CEj(G);if(Bg(G==null?void 0:G.then))return i0o(G);if(Symbol.asyncIterator&&Bg(G==null?void 0:G[Symbol.asyncIterator]))return O0M(G);if(Bg(G==null?void 0:G[zL3]))return a6j(G)}throw PEW(G);};
hL3=function(G){return new el(function(H){var Z=G[n0]();if(Bg(Z.subscribe))return Z.subscribe(H);throw new TypeError("ea");})};
CEj=function(G){return new el(function(H){for(var Z=0;Z<G.length&&!H.closed;Z++)H.next(G[Z]);H.complete()})};
i0o=function(G){return new el(function(H){G.then(function(Z){H.closed||(H.next(Z),H.complete())},function(Z){return H.error(Z)}).then(null,kb)})};
a6j=function(G){return new el(function(H){for(var Z=G[zL3]();!H.closed;){var Q=Z.next(),p=Q.value;Q.done?H.complete():H.next(p)}return function(){return Bg(Z==null?void 0:Z.return)&&Z.return()}})};
O0M=function(G){return new el(function(H){ywv(G,H).catch(function(Z){return H.error(Z)})})};
ywv=function(G,H){var Z,Q,p,l,q,u;return _.S(function(B){switch(B.nextAddress){case 1:_.XV(B,2,3),l=_.cg(G);case 5:return B.yield(l.next(),8);case 8:Q=B.yieldResult;if(Q.done){B.jumpTo(3);break}q=Q.value;H.next(q);B.jumpTo(5);break;case 3:_.TO(B);_.f0(B,9);if(!Q||Q.done||!(p=l.return)){B.jumpTo(9);break}return B.yield(p.call(l),9);case 9:_.TO(B,0,0,1);if(Z)throw Z.error;_.vg(B,10,1);break;case 10:_.vg(B,4);break;case 2:u=_.Wg(B);Z={error:u};B.jumpTo(3);break;case 4:H.complete(),_.K0(B)}})};
obe=function(G,H){return H?f6b(G,H):CEj(G)};
m_M=function(G){return Bg(G[G.length-1])?G.pop():void 0};
M_=function(G){var H=G[G.length-1];return H&&Bg(H.schedule)?G.pop():void 0};
jl=function(){var G=_.Ry.apply(0,arguments),H=M_(G);return H?f6b(G,H):obe(G)};
Pg=function(G){var H=Bg(G)?G:function(){return G};
return new el(function(Z){return Z.error(H())})};
wJ=function(G){return function(H){if(Bg(H==null?void 0:H.lift))return H.lift(function(Z){try{return G(Z,this)}catch(Q){this.error(Q)}});
throw new TypeError("fa");}};
C0=function(){return wJ(function(G,H){var Z=null;G._refCount++;var Q=new hw(H,void 0,void 0,void 0,function(){if(!G||G._refCount<=0||0<--G._refCount)Z=null;else{var p=G._connection,l=Z;Z=null;!p||l&&p!==l||p.unsubscribe();H.unsubscribe()}});
G.subscribe(Q);Q.closed||(Z=G.connect())})};
RLW=function(){var G=U_e;var H=H===void 0?0:H;return wJ(function(Z,Q){Q.add(G.schedule(function(){return Z.subscribe(Q)},H))})};
iE=function(G){return wJ(function(H,Z){var Q=0;H.subscribe(new hw(Z,function(p){Z.next(G.call(void 0,p,Q++))}))})};
Aw2=function(G){return iE(function(H){return NJM(H)?G.apply(null,_.OP(H)):G(H)})};
Fif=function(G){if(G.length===1){var H=G[0];if(x_u(H))return{args:H,keys:null};if(H&&typeof H==="object"&&Li2(H)===EbR)return G=YPj(H),{args:G.map(function(Z){return H[Z]}),
keys:G}}return{args:G,keys:null}};
as=function(){var G=_.Ry.apply(0,arguments),H=M_(G),Z=m_M(G);G=Fif(G);var Q=G.args,p=G.keys;if(Q.length===0)return $b([],H);H=new el(b0e(Q,H,p?function(l){for(var q={},u=0;u<l.length;u++)q[p[u]]=l[u];return q}:D6));
return Z?H.pipe(Aw2(Z)):H};
b0e=function(G,H,Z){Z=Z===void 0?D6:Z;return function(Q){G5b(H,function(){for(var p=G.length,l=Array(p),q=p,u=G.map(function(){return!1}),B=!0,t={i$jscomp$217:0};t.i$jscomp$217<p;t={i$jscomp$217:t.i$jscomp$217},t.i$jscomp$217++)G5b(H,function(D){return function(){$b(G[D.i$jscomp$217],H).subscribe(new mi(Q,function(d){l[D.i$jscomp$217]=d;
B&&(u[D.i$jscomp$217]=!0,B=!u.every(D6));B||Q.next(Z(l.slice()))},function(){return--q===0}))}}(t),Q)},Q)}};
G5b=function(G,H,Z){G?Z.add(G.schedule(H)):H()};
HEf=function(G,H,Z,Q){var p=[],l=0,q=0,u=!1,B=function(t){l++;Vk(Z(t,q++)).subscribe(new hw(H,function(D){H.next(D)},void 0,function(){l--;
for(var D={};p.length&&l<Q;D={bufferedValue:void 0})D.bufferedValue=p.shift(),B(D.bufferedValue);!u||p.length||l||H.complete()}))};
G.subscribe(new hw(H,function(t){return l<Q?B(t):p.push(t)},void 0,function(){u=!0;
!u||p.length||l||H.complete()}));
return function(){p=null}};
UP=function(G,H){var Z=Z===void 0?Infinity:Z;if(Bg(H))return UP(function(Q,p){return iE(function(l,q){return H(Q,l,p,q)})(Vk(G(Q,p)))},Z);
typeof H==="number"&&(Z=H);return wJ(function(Q,p){return HEf(Q,p,G,Z)})};
sN3=function(G){G=G===void 0?Infinity:G;return UP(D6,G)};
ZEU=function(){var G=_.Ry.apply(0,arguments);return sN3(1)(obe(G,M_(G)))};
QNu=function(G){return new el(function(H){Vk(G()).subscribe(H)})};
N_=function(G,H,Z){if(Bg(Z)){var Q=Z;Z=void 0}if(Q)return N_(G,H,Z).pipe(Aw2(Q));Q=_.I(Bg(G.addEventListener)&&Bg(G.removeEventListener)?plX.map(function(q){return function(u){return G[q](H,u,Z)}}):Bg(G.addListener)&&Bg(G.removeListener)?lw3.map(gru(G,H)):Bg(G.on)&&Bg(G.off)?Iwe.map(gru(G,H)):[]);
var p=Q.next().value,l=Q.next().value;return!p&&rwu(G)?UP(function(q){return N_(q,H,Z)})(obe(G)):new el(function(q){if(!p)throw new TypeError("ga");
var u=function(){var B=_.Ry.apply(0,arguments);return q.next(1<B.length?B:B[0])};
p(u);return function(){return l(u)}})};
gru=function(G,H){return function(Z){return function(Q){return G[Z](H,Q)}}};
xb=function(){var G=_.Ry.apply(0,arguments),H=M_(G);var Z=typeof G[G.length-1]==="number"?G.pop():Infinity;return G.length?G.length===1?Vk(G[0]):sN3(Z)(obe(G,H)):Aw};
SAU=function(G){return G.length===1&&qAW(G[0])?G[0]:G};
ukb=function(){var G=SAU(_.Ry.apply(0,arguments));return wJ(function(H,Z){var Q=[H].concat(_.OP(G)),p=function(){if(!Z.closed)if(Q.length>0){try{var l=Vk(Q.shift())}catch(u){p();return}var q=new hw(Z,void 0,tw,tw);Z.add(l.subscribe(q));q.add(p)}else Z.complete()};
p()})};
L0=function(G){return wJ(function(H,Z){var Q=0;H.subscribe(new hw(Z,function(p){return G.call(void 0,p,Q++)&&Z.next(p)}))})};
JaM=function(){var G=_.Ry.apply(0,arguments);G=SAU(G);return G.length===1?Vk(G[0]):new el(B3e(G))};
B3e=function(G){return function(H){for(var Z=[],Q={i$jscomp$220:0};Z&&!H.closed&&Q.i$jscomp$220<G.length;Q={i$jscomp$220:Q.i$jscomp$220},Q.i$jscomp$220++)Z.push(Vk(G[Q.i$jscomp$220]).subscribe(new hw(H,function(p){return function(l){if(Z){for(var q=0;q<Z.length;q++)q!==p.i$jscomp$220&&Z[q].unsubscribe();Z=null}H.next(l)}}(Q))))}};
ttj=function(){var G=_.Ry.apply(0,arguments),H=m_M(G),Z=SAU(G);return Z.length?new el(function(Q){var p=Z.map(function(){return[]}),l=Z.map(function(){return!1});
Q.add(function(){p=l=null});
for(var q={sourceIndex$jscomp$1:0};!Q.closed&&q.sourceIndex$jscomp$1<Z.length;q={sourceIndex$jscomp$1:q.sourceIndex$jscomp$1},q.sourceIndex$jscomp$1++)Vk(Z[q.sourceIndex$jscomp$1]).subscribe(new hw(Q,function(u){return function(B){p[u.sourceIndex$jscomp$1].push(B);p.every(function(t){return t.length})&&(B=p.map(function(t){return t.shift()}),Q.next(H?H.apply(null,_.OP(B)):B),p.some(function(t,D){return!t.length&&l[D]})&&Q.complete())}}(q),void 0,function(u){return function(){l[u.sourceIndex$jscomp$1]=
!0;
!p[u.sourceIndex$jscomp$1].length&&Q.complete()}}(q)));
return function(){p=l=null}}):Aw};
k53=function(G){var H,Z,Q;return!!G&&typeof G.active==="boolean"&&typeof((H=G.clock)==null?void 0:H.now)==="function"&&((Z=G.clock)==null?void 0:Z.timeline)!==void 0&&!((Q=G.lastMeasurement)==null||!Q.timestamp)&&typeof G.equivalentTo==="function"&&typeof G.extrapolateToNow==="function"&&typeof G.extrapolateToTime==="function"&&typeof G.map==="function"&&typeof G.joinWith==="function"};
D4M=function(G){function H(Z){return typeof Z==="boolean"||typeof Z==="string"||typeof Z==="number"||Z===void 0||Z===null}
return H(G)?!0:Array.isArray(G)?G.every(H):typeof G==="object"?Object.keys(G).every(function(Z){return typeof Z==="string"})&&Object.values(G).every(function(Z){return Array.isArray(Z)?Z.every(H):H(Z)}):!1};
d4b=function(G){if(D4M(G))return G;if(k53(G))return{lastMeasurement:{value:d4b(G.lastMeasurement.value),timestamp:EP(G.lastMeasurement.timestamp,new Yb(0,G.lastMeasurement.timestamp.timeline))},active:G.active};try{return JSON.parse(JSON.stringify(G))}catch(H){}return String(G)};
FV=function(G,H){return function(Z){return new el(function(Q){return Z.subscribe(function(p){G.timeExecution(H,function(){Q.next(p)})()},function(p){G.timeExecution(H,function(){Q.error(p)})()},function(){G.timeExecution(H,function(){Q.complete()})()})})}};
eOf=function(G,H){var Z=!1;return new el(function(Q){var p=G.setTimeout(function(){Z=!0;Q.next(!0);Q.complete()},H);
return function(){Z||G.clearTimeout(p)}})};
nru=function(G){G=G.global;if(G.fetchLater)return G.fetchLater.bind(G)};
bE=function(G){return wJ(function(H,Z){var Q=null,p=!1,l;Q=H.subscribe(new hw(Z,void 0,function(q){l=Vk(G(q,bE(G)(H)));Q?(Q.unsubscribe(),Q=null,l.subscribe(Z)):p=!0}));
p&&(Q.unsubscribe(),Q=null,l.subscribe(Z))})};
VtX=function(G,H,Z){return function(Q,p){var l=Z,q=H,u=0;Q.subscribe(new hw(p,function(B){var t=u++;q=l?G(q,B,t):(l=!0,B);p.next(q)},void 0,void 0))}};
$4X=function(G){G=G===void 0?null:G;return wJ(function(H,Z){var Q=!1;H.subscribe(new hw(Z,function(p){Q=!0;Z.next(p)},void 0,function(){Q||Z.next(G);
Z.complete()}))})};
G5=function(){return wJ(function(G,H){G.subscribe(new hw(H,tw))})};
Hl=function(G){return wJ(function(H,Z){H.subscribe(new hw(Z,function(){return Z.next(G)}))})};
sA=function(G){return G<=0?function(){return Aw}:wJ(function(H,Z){var Q=0;
H.subscribe(new hw(Z,function(p){++Q<=G&&(Z.next(p),G<=Q&&Z.complete())}))})};
Zw=function(G){var H=H===void 0?D6:H;var Z;G=(Z=G)!=null?Z:Xlj;return wJ(function(Q,p){var l,q=!0;Q.subscribe(new hw(p,function(u){var B=H(u);if(q||!G(l,B))q=!1,l=B,p.next(u)}))})};
Xlj=function(G,H){return G===H};
T3b=function(G){G=G===void 0?caW:G;return wJ(function(H,Z){var Q=!1;H.subscribe(new hw(Z,function(p){Q=!0;Z.next(p)},void 0,function(){return Q?Z.complete():Z.error(G())}))})};
caW=function(){return new fwf};
QB=function(){var G=_.Ry.apply(0,arguments);return function(H){return ZEU(H,jl.apply(null,_.OP(G)))}};
vrv=function(G){return wJ(function(H,Z){var Q=0;H.subscribe(new hw(Z,function(p){G.call(void 0,p,Q++,H)||(Z.next(!1),Z.complete())},void 0,function(){Z.next(!0);
Z.complete()}))})};
WTb=function(){return wJ(function(G,H){var Z=[];G.subscribe(new hw(H,function(Q){Z.push(Q);1<Z.length&&Z.shift()},void 0,function(){for(var Q=_.I(Z),p=Q.next();!p.done;p=Q.next())H.next(p.value);
H.complete()},function(){Z=null}))})};
zOj=function(G,H){var Z=arguments.length>=2;return function(Q){return Q.pipe(G?L0(function(p,l){return G(p,l,Q)}):D6,WTb(),Z?$4X(H):T3b(function(){return new fwf}))}};
lG=function(G){var H=Bg(G)?G:function(){return G};
return Bg()?wJ(function(Z,Q){var p=H();(void 0)(p).subscribe(Q).add(Z.subscribe(p))}):function(Z){var Q=new pE(Z,H);
Bg(Z==null?void 0:Z.lift)&&(Q.lift=Z.lift);Q.source=Z;Q.subjectFactory=H;return Q}};
uG=function(G){var H=new g3(G,void 0,void 0);return function(Z){return lG(function(){return H})(Z)}};
Bl=function(G,H){return wJ(VtX(G,H,arguments.length>=2))};
Ja=function(){var G=_.Ry.apply(0,arguments),H=M_(G);return wJ(function(Z,Q){(H?ZEU(G,Z,H):ZEU(G,Z)).subscribe(Q)})};
ta=function(G){return wJ(function(H,Z){var Q=null,p=0,l=!1;H.subscribe(new hw(Z,function(q){var u;(u=Q)==null||u.unsubscribe();u=p++;Vk(G(q,u)).subscribe(Q=new hw(Z,function(B){return Z.next(B)},void 0,function(){Q=null;
l&&!Q&&Z.complete()}))},void 0,function(){(l=!0,!Q)&&Z.complete()}))})};
Dw=function(G,H){H=H===void 0?!1:H;return wJ(function(Z,Q){var p=0;Z.subscribe(new hw(Q,function(l){var q=G(l,p++);(q||H)&&Q.next(l);!q&&Q.complete()}))})};
KTX=function(G,H,Z){var Q=Bg(G)||H||Z?{next:G,error:H,complete:Z}:G;return Q?wJ(function(p,l){p.subscribe(new hw(l,function(q){var u;(u=Q.next)==null||u.call(Q,q);l.next(q)},function(q){var u;
(u=Q.error)==null||u.call(Q,q);l.error(q)},function(){var q;
(q=Q.complete)==null||q.call(Q);l.complete()}))}):D6};
MtU=function(){var G=_.Ry.apply(0,arguments),H=m_M(G);return wJ(function(Z,Q){for(var p=G.length,l=Array(p),q=G.map(function(){return!1}),u=!1,B={i$jscomp$230:0};B.i$jscomp$230<p;B={i$jscomp$230:B.i$jscomp$230},B.i$jscomp$230++)Vk(G[B.i$jscomp$230]).subscribe(new hw(Q,function(t){return function(D){l[t.i$jscomp$230]=D;
u||q[t.i$jscomp$230]||(q[t.i$jscomp$230]=!0,(u=q.every(D6))&&(q=null))}}(B),void 0,tw));
Z.subscribe(new hw(Q,function(t){u&&(t=[t].concat(_.OP(l)),Q.next(H?H.apply(null,_.OP(t)):t))}))})};
PGe=function(G){var H=jNf;if(H)for(var Z in H)Object.prototype.hasOwnProperty.call(H,Z)&&G(H[Z],Z,H)};
ra2=function(){var G=[];PGe(function(H){G.push(H)});
return G};
hOW=function(G){try{return!!G&&G.location.href!=null&&wlj(G,"foo")}catch(H){return!1}};
_.et=function(G){return new tlU(G[0].toLowerCase())};
CGo=function(G){for(var H=_.Ry.apply(1,arguments),Z=G[0],Q=0;Q<G.length-1;Q++)Z+=String(H[Q]),Z+=G[Q+1];H=document.implementation.createHTMLDocument("");Q=H.createElement("style");H.head.appendChild(Q);H=Q.sheet;H.insertRule(Z,0);if(H.cssRules.length===1&&(Z=H.cssRules[0],Z instanceof CSSStyleRule))return new uE(Z.cssText.replace(/</g,"\\3C "))};
iEu=function(G){try{return new URL(G,window.document.baseURI)}catch(H){return new URL("about:invalid")}};
OEf=function(G,H){var Z=H.createRange();Z.selectNode(H.body);G=Lq(G);return Z.createContextualFragment(Fx(G))};
awv=function(G){G=G.nodeName;return typeof G==="string"?G:"FORM"};
yaf=function(G){G=G.nodeType;return G===1||typeof G!=="number"};
nE=function(G,H,Z){G.setAttribute(H,Z)};
orf=function(G){return G.parts.map(function(H){var Z=H.descriptor;return""+H.url+(Z?" "+Z:"")}).join(" , ")};
_.VB=function(G){var H=_.Ry.apply(1,arguments);if(H.length===0)return _.j7(G[0]);for(var Z=G[0],Q=0;Q<H.length;Q++)Z+=encodeURIComponent(H[Q])+G[Q+1];return _.j7(Z)};
_.$r=function(G,H){G=_.PO(G).toString();var Z=G.split(/[?#]/),Q=/[?]/.test(G)?"?"+Z[1]:"";return m43(Z[0],Q,/[#]/.test(G)?"#"+(Q?Z[2]:Z[1]):"",H)};
m43=function(G,H,Z,Q){function p(q,u){q!=null&&(Array.isArray(q)?q.forEach(function(B){return p(B,u)}):(H+=l+encodeURIComponent(u)+"="+encodeURIComponent(q),l="&"))}
var l=H.length?"&":"?";Q.constructor===Object&&(Q=Object.entries(Q));Array.isArray(Q)?Q.forEach(function(q){return p(q[1],q[0])}):Q.forEach(p);
return _.j7(G+H+Z)};
ROU=function(){var G=p0(U4e).toString();return _.j7(URL.createObjectURL(new Blob([G],{type:"text/javascript"})))};
N3u=function(G){var H=[],Z=0,Q;for(Q in G)H[Z++]=Q;return H};
AaR=function(G,H){for(var Z in G)if(G[Z]==H)return!0;return!1};
x4f=function(G,H,Z){for(var Q in G)if(H.call(Z,G[Q],Q,G))return Q};
LTo=function(G){if(!G||typeof G!=="object")return G;if(typeof G.clone==="function")return G.clone();if(typeof Map!=="undefined"&&G instanceof Map)return new Map(G);if(typeof Set!=="undefined"&&G instanceof Set)return new Set(G);if(G instanceof Date)return new Date(G.getTime());var H=Array.isArray(G)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(G)||G instanceof DataView?{}:new G.constructor(G.length),Z;for(Z in G)H[Z]=LTo(G[Z]);return H};
ErM=function(G){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return ErM.apply(null,arguments[0]);if(H%2)throw Error("ma");for(var Z={},Q=0;Q<H;Q+=2)Z[arguments[Q]]=arguments[Q+1];return Z};
YAU=function(G){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return YAU.apply(null,arguments[0]);for(var Z={},Q=0;Q<H;Q++)Z[arguments[Q]]=!0;return Z};
Xk=function(G,H,Z,Q){this.top=G;this.right=H;this.bottom=Z;this.left=Q};
FTW=function(G){G=G.global;if(G.PendingGetBeacon)return G.PendingGetBeacon};
T5=function(G){return function(H){return H.pipe(bEU(G,lG(new cl)))}};
fE=function(G){return function(H){return H.pipe(bEU(G,uG(1)))}};
bEU=function(G,H){function Z(Q){return new el(function(p){return Q.subscribe(function(l){vl(G,function(){return void p.next(l)},3)},function(l){vl(G,function(){return void p.error(l)},3)},function(){vl(G,function(){return void p.complete()},3)})})}
return dJ(Z,RLW(),H,C0(),Z)};
sfR=function(G){var H=G$f(G);return H===null?new Wl(null):H.pipe(iE(function(Z){Z=Z.serialize();if(Huo)Z=_.Qf.btoa(Z);else{for(var Q=[],p=0,l=0;l<Z.length;l++){var q=Z.charCodeAt(l);q>255&&(Q[p++]=q&255,q>>=8);Q[p++]=q}Z=_.Cm(Q)}return Z}),sA(1),fE(G.queue))};
ZuW=function(G){var H=H===void 0?{}:H;if(typeof Event==="function")return new Event(G,H);if(typeof document!=="undefined"){var Z=document.createEvent("CustomEvent");Z.initCustomEvent(G,H.bubbles||!1,H.cancelable||!1,H.detail);return Z}throw Error();};
QfU=function(G){return typeof G==="string"?document.getElementById(G):G};
lSM=function(G){var H=!1;H=H===void 0?!1:H;if(G.tagName==="IMG"){if(G.complete&&(!G.naturalWidth||!G.naturalHeight))return!0;var Z;if(H&&((Z=G.style)==null?void 0:Z.display)==="none")return!0}var Q,p;return p7R.test((Q=G.getAttribute("width"))!=null?Q:"")&&p7R.test((p=G.getAttribute("height"))!=null?p:"")};
g5b=function(G,H){if(G.tagName==="IMG")return G.naturalWidth&&G.naturalHeight?!0:!1;try{if(G.readyState)var Z=G.readyState;else{var Q,p;Z=(Q=G.contentWindow)==null?void 0:(p=Q.document)==null?void 0:p.readyState}return Z==="complete"}catch(l){return H===void 0?!1:H}};
ISR=function(G){G||(G=function(H,Z,Q){H.addEventListener(Z,Q)});
return G};
BIf=function(G,H){var Z=q12();Z=Z===void 0?new S1j:Z;if(G=QfU(G)){var Q=ISR(Q);for(var p=!1,l=function(M){p||(p=!0,H(M))},q,u=2,B=0;B<uGo.length;++B)if(uGo[B]===G.tagName){u=3;
q=[G];break}q||(q=G.querySelectorAll(uGo.join(",")));var t=0,D=0,d=!0,e=G=!1;B={};for(var n=0;n<q.length;B={isImg:void 0},n++){var c=q[n];if(!lSM(c))if(B.isImg=c.tagName==="IMG",g5b(c,Z.crossDomainLoadedDefault))G=!0,B.isImg&&(d=!0);else{t++;var W=function(M){return function(r){t--;!t&&d&&l(u);M.isImg&&(r=r&&r.type==="error",D--,r||(d=!0),!D&&e&&d&&l(u))}}(B);
Q(c,"load",W);B.isImg&&(D++,Q(c,"error",W))}}D===0&&(d=!0);q=null;q=_.Qf.document.readyState==="complete";if(t===0&&!G&&q)u=5;else if(t||!G){Q(_.Qf,"load",function(){!Z.pendingImagesBlockLoad||!D&&d?l(4):e=!0});
return}l(u)}};
JRU=function(G,H,Z){if(G)for(var Q=0;G!=null&&Q<500&&!Z(G);++Q)G=H(G)};
t_b=function(G,H){JRU(G,function(Z){try{return Z===Z.parent?null:Z.parent}catch(Q){}return null},H)};
k$o=function(G,H){if(G.tagName=="IFRAME")H(G);else{G=G.querySelectorAll("IFRAME");for(var Z=0;Z<G.length&&!H(G[Z]);++Z);}};
DjR=function(G){return(G=G.ownerDocument)&&(G.parentWindow||G.defaultView)||null};
djf=function(G,H,Z){try{var Q=JSON.parse(Z.data)}catch(q){}if(typeof Q==="object"&&Q&&Q.type==="creativeLoad"){var p=DjR(G);if(Z.source&&p){var l;t_b(Z.source,function(q){try{if(q.parent===p)return l=q,!0}catch(u){}});
l&&k$o(G,function(q){if(q.contentWindow===l)return H(Q),!0})}}};
eKj=function(G){return typeof G==="string"?document.getElementById(G):G};
X7v=function(){var G={};return G[0]=_.VB(n5f,"current"),G[1]=_.VB(V_R),G[2]=_.VB($j3),G};
z5=function(G,H){return G.left===H.left&&G.top===H.top&&G.width===H.width&&G.height===H.height};
cRo=function(G,H){return{left:Math.max(G.left,H.left),top:Math.max(G.top,H.top),width:Math.max(0,Math.min(G.left+G.width,H.left+H.width)-Math.max(G.left,H.left)),height:Math.max(0,Math.min(G.top+G.height,H.top+H.height)-Math.max(G.top,H.top))}};
TIb=function(G,H){return{left:Math.round(G.left+H.x),top:Math.round(G.top+H.y),width:G.width,height:G.height}};
fSU=function(G,H,Z){if(G&&H!==null&&H!=H.top){if(!H.top)return new _.M4(-12245933,-12245933);H=H.top}try{return(Z===void 0?0:Z)?(new _.M4(H.innerWidth,H.innerHeight)).round():_.jt(H).round()}catch(Q){return new _.M4(-12245933,-12245933)}};
v5X=function(G,H,Z){try{if(G){if(!H.top)return new Xk(-12245933,-12245933,-12245933,-12245933);H=H.top}var Q=fSU(G,H,Z),p=Q.height,l=Q.width;if(l===-12245933)return new Xk(l,l,l,l);var q=Pl(r3(H.document)),u=q.x,B=q.y;return new Xk(B,u+l,B+p,u)}catch(t){return new Xk(-12245933,-12245933,-12245933,-12245933)}};
Wu3=function(G){var H;return(H=G.google_tag_data)!=null?H:G.google_tag_data={}};
zKo=function(G){var H,Z;return typeof((H=G.navigator)==null?void 0:(Z=H.userAgentData)==null?void 0:Z.getHighEntropyValues)==="function"};
M_j=function(G){if(!zKo(G))return null;var H=Wu3(G);if(H.uach_promise)return H.uach_promise;G=G.navigator.userAgentData.getHighEntropyValues(Kuf).then(function(Z){H.uach!=null||(H.uach=Z);return Z});
return H.uach_promise=G};
mjW=function(G){var H;return jfj(PY2(rRM(w7f(hKf(CYM(iuo(Ouf(aSj(new yRU,G.architecture||""),G.bitness||""),G.mobile||!1),G.model||""),G.platform||""),G.platformVersion||""),G.uaFullVersion||""),((H=G.fullVersionList)==null?void 0:H.map(function(Z){var Q=new o5j;Q=_.ha(Q,1,Z.brand);return _.ha(Q,2,Z.version)}))||[]),G.wow64||!1)};
Ujj=function(G){var H,Z;return(Z=(H=M_j(G))==null?void 0:H.then(function(Q){return mjW(Q)}))!=null?Z:null};
RKj=function(G,H){return new el(function(Z){var Q=!1,p=Array(H.length);p.fill(void 0);var l=new Set,q=new Set,u=function(d,e){G.running?(p[e]=d,l.add(e),Q||(Q=!0,vl(G,function(){Q=!1;Z.next(_.mv(p))},1))):Z.error(new CE(e))},B=function(d,e){q.add(e);
l.add(e);vl(G,function(){Z.error(d)},1)},t=function(d){q.add(d);
vl(G,function(){q.size===H.length&&Z.complete()},1)},D=H.map(function(d,e){return d.subscribe(function(n){return void u(n,e)},function(n){return void B(n,e)},function(){return void t(e)})});
return function(){D.forEach(function(d){return void d.unsubscribe()})}})};
xjf=function(G,H,Z){function Q(){if(H.debugChannel){var M=H.debugChannel,r=M.next;var w={creativeId:H.debugNames.getName(Z),requiredSignals:p,signals:Object.assign({},l),hasPrematurelyCompleted:q,errorMessage:u,erroredSignalKey:B};w={specMajor:2,specMinor:0,specPatch:0,timestamp:EP(H.timeProvider.now(),new Yb(0,H.timeProvider.timeline)),instanceId:H.debugNames.getName(H.symbol),creativeState:w};r.call(M,w)}}
for(var p=Object.keys(G),l={},q=!1,u=null,B=null,t={},D=new Set,d=[],e=[],n=_.I(p),c=n.next(),W={};!c.done;W={key$jscomp$394:void 0},c=n.next())W.key$jscomp$394=c.value,c=G[W.key$jscomp$394],c instanceof Wl?(t[W.key$jscomp$394]=c.value,D.add(W.key$jscomp$394),H.debugChannel&&(l[String(W.key$jscomp$394)]=d4b(c.value))):(c=c.pipe(Zw(function(M,r){return k53(M)||k53(r)?!1:M===r}),iE(function(M){return function(r){H.debugChannel&&(l[String(M.key$jscomp$394)]=d4b(r),Q());
var w={};return w[M.key$jscomp$394]=r,w}}(W)),bE(function(M){return function(r){if(r instanceof CE)throw new NIf(String(M.key$jscomp$394));
throw r;}}(W)),KTX(function(M){return function(){D.add(M.key$jscomp$394)}}(W),function(M){return function(r){B=String(M.key$jscomp$394);
u=String(r);Q()}}(W),function(M){return function(){D.has(M.key$jscomp$394)||(q=!0,Q())}}(W))),e.push(W.key$jscomp$394),d.push(c));
(G=Object.keys(l).length>0)&&Q();n=RKj(H.queue,d).pipe(bE(function(M){if(M instanceof CE)throw new ARj(String(e[M.inputObservableIndex]));throw M;}),iE(function(M){return Object.freeze(Object.assign.apply(Object,[{},
t].concat(_.OP(M))))}));
return(d=d.length>0)&&G?xb(jl(Object.freeze(t)),n):d?n:jl(Object.freeze(t))};
LuU=function(G,H,Z,Q,p){return G.performanceMonitor.timeExecution.bind(G.performanceMonitor)(733,function(){var l={};try{return H.pipe(bE(function(q){Q(Object.assign({},l,{error:q}));return Aw}),UP(function(q){try{var u=Z(G,q)}catch(t){return Q(Object.assign({},l,{error:t instanceof Error?t:String(t)})),Aw}var B={};
return xjf(u,G,q.symbol).pipe(KTX(function(t){B=t}),uG(1),C0()).pipe(p,bE(function(t){Q(Object.assign({},B,{error:t}));
return Aw}),QB(void 0),iE(function(){return!0}))})).pipe(Bl(function(q){return q+1},0),bE(function(q){Q(Object.assign({},l,{error:q}));
return Aw}))}catch(q){return Q(Object.assign({},l,{error:q})),Aw}})()};
iG=function(G){var H=new Map;if(typeof G!=="object"||G===null)return H;Object.values(G).forEach(function(Z){Z&&typeof Z.extrapolateToNow==="function"&&(H.has(Z.clock.timeline)||H.set(Z.clock.timeline,Z.clock.now()))});
return H};
E52=function(G,H){return typeof G==="string"?encodeURIComponent(G):typeof G==="number"?String(G):Array.isArray(G)?G.map(function(Z){return E52(Z,H)}).join(","):G instanceof Yb?G.toString():G&&typeof G.extrapolateToNow==="function"?E52(G.extrapolateUsingTimestampMap(H).value,H):G===!0?"1":G===!1?"0":G===void 0||G===null?null:G instanceof Y12?Fuj(G):[G.top,
G.left,G.top+G.height,G.left+G.width].join()};
buf=function(G,H){G=Object.entries(G).map(function(Z){var Q=_.I(Z);Z=Q.next().value;Q=Q.next().value;Q=E52(Q,H);return Q===null?"":Z+"="+Q}).filter(function(Z){return Z!==""});
return G.length?G.join("&"):""};
sMR=function(G,H){var Z=GyW,Q=Hbv;H=H===void 0?.01:H;return function(p){H>0&&Math.random()<=H&&(G.global.HTMLFencedFrameElement&&G.global.fence&&typeof G.global.fence.reportEvent==="function"&&G.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),p=Object.assign({},p,{errorMessage:p.error instanceof Error&&p.error.message?p.error.message:String(p.error),errorStack:p.error instanceof Error&&p.error.stack?String(p.error.stack):null,errorName:p.error instanceof
Error&&p.error.name?String(p.error.name):null,errorContext:String(G.performanceMonitor.timedFunctionContext),errorEscapedQueryId:p.escapedQueryId}),Z(Object.assign({},p,{payloadMapper:function(){return function(l){try{return Q(Object.assign({},l))}catch(q){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),iG(p)).forEach(function(l){G.beaconFactory.makeBeacon(l).sendNow()}))}};
Zbb=function(){var G=_.Ry.apply(0,arguments);return function(H){var Z=H.pipe(uG(1),C0());H=G.map(function(Q){return Z.pipe(Q,QB(!0))});
return as(H).pipe(sA(1),G5())}};
QM2=function(){var G=_.Ry.apply(0,arguments);return function(H){var Z=H.pipe(uG(1),C0());H=G.map(function(Q){return Z.pipe(Q,QB(!0))});
return xb.apply(null,_.OP(H)).pipe(sA(1),G5())}};
pSv=function(G,H){return function(Z){var Q=Z.pipe(uG(1),C0());Z=Q.pipe(G,QB(!0));Q=Q.pipe(dJ(H,uG(),C0()),QB(!0));Z=as([Z,Q]);return JaM(Z,Q).pipe(sA(1),G5())}};
l0b=function(G,H,Z){Z(!0)};
gFU=function(G,H){return dJ(ta(function(Z){var Q=G(Z),p=H(Z),l={};return Q&&p&&l?new el(function(q){p(Q,l,function(u){q.next(Object.assign({},Z,{canEmit:u}));q.complete()});
return function(){}}):OA}),L0(function(Z){return Z.canEmit}))};
I02=function(G){var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(Z){return Z.pipe(ta(function(Q){return new el(function(p){function l(){u.disconnect();B.unsubscribe()}
var q=G.MutationObserver;if(q&&Q.ref!==void 0){var u=new q(function(t){p.next(t)});
u.observe(Q.ref,H);var B=Q.JSC$9369_released.subscribe(l);return l}})}))}};
qvu=function(G){if(G.measurementDeferralState===3)return null;if(G.timeOnScreenReason!==void 0){var H=G.creativeFound===!1?"n":null;if(H!==null)return H}return G.geometricMeasurementErrors instanceof aN?"msf":G.contextValidationErrors instanceof yB?"c":G.contextVisibilityKnown===!1?"pv":G.geometricMeasurementErrors||G.contextValidationErrors?"x":null};
uM3=function(G,H){return G.replace(Sv3,function(Z,Q){try{var p=_.oN.get(H,Q);if(p==null||p.toString()==null)return Z;p=p.toString();if(p==""||!_.ue(p==null?"":String(p)))return encodeURIComponent(p).replace(/%2C/g,",")}catch(l){}return Z})};
BnR=function(G,H){var Z=Object.assign({},G),Q=G.userAgentClientHints;Z=(delete Z.userAgentClientHints,Z);Z=G.payloadMapper(Z);var p=buf(Z,H);return _.mT(G.urlPrefixes,function(l){var q="";typeof Q==="string"&&(q="&"+buf({uach:Q},H));var u={};return uM3(l,(u.VIEWABILITY=p,u))+q})};
GyW=function(G,H){var Z=G.payloadMapper(G),Q=buf(Z,H);return Q?_.mT(G.urlPrefixes,function(p){p=p.indexOf("?")>=0?p:p+"?";p="?&".indexOf(p.slice(-1))>=0?p:p+"&";return p+Q}):G.urlPrefixes};
Jsf=function(){return dJ(L0(function(G){return G!==void 0}),iE(function(G){return G}))};
tgb=function(G){return dJ(iE(function(){return!0}),Ja(!1),fE(G))};
ky2=function(G){return G.length<=0?Aw:as(G.map(function(H){var Z=0;return H.pipe(iE(function(Q){return{index:Z++,value:Q}}))})).pipe(L0(function(H){return H.every(function(Z){return Z.index===H[0].index})}),iE(function(H){return H.map(function(Z){return Z.value})}))};
Dfv=function(G,H){G.currentState&&(G.previousState=G.currentState);G.currentState=H;G.previousState&&G.previousState.value?(H=Math.max(0,EP(H.timestamp,G.previousState.timestamp)),G.totalTime+=H,G.consecutiveTime+=H):G.consecutiveTime=0;return G};
dfR=function(){return dJ(Bl(Dfv,{totalTime:0,consecutiveTime:0}),iE(function(G){return G.totalTime}))};
eyf=function(){return dJ(Bl(Dfv,{totalTime:0,consecutiveTime:0}),iE(function(G){return G.consecutiveTime}))};
nFv=function(G,H){return function(Z){return ky2(H.map(function(Q){return Z.pipe(G(Q))}))}};
VgX=function(){var G;return dJ(KTX(function(H){return void(G=H.timestamp)}),eyf(),iE(function(H){return{timestamp:G,
value:Math.round(H)}}))};
$fM=function(G,H){return z5(G.topWindowViewportExternalGeometry,H.topWindowViewportExternalGeometry)&&z5(G.elementGeometry,H.elementGeometry)&&z5(G.exposedViewportLocalGeometry,H.exposedViewportLocalGeometry)&&z5(G.intersectionGeometry,H.intersectionGeometry)&&G.elementGeometrySourceName===H.elementGeometrySourceName&&G.measurementRequests===H.measurementRequests&&G.viewportGeometrySourceName===H.viewportGeometrySourceName&&G.viewportLocalAppOffset.x===H.viewportLocalAppOffset.x&&G.viewportLocalAppOffset.y===
H.viewportLocalAppOffset.y};
f0j=function(G,H){return function(Z){return function(Q){var p=Q.pipe(lG(new cl),C0());Q=Z.element.pipe(Zw());p=p.pipe(iE(function(l){return l.value}));
return as([Q,p,H]).pipe(iE(function(l){var q=_.I(l);l=q.next().value;var u=q.next().value;q=q.next().value;if(l.ref===void 0)var B={top:0,left:0,width:0,height:0};else{B=l.ref.getBoundingClientRect();var t=l.ref,D=G.global,d=new _.UA(0,0),e=RN(_.N4(t));if(wlj(e,"parent")){do{if(e==D)var n=_.Aa(t);else n=XSb(t),n=new _.UA(n.left,n.top);d.x+=n.x;d.y+=n.y}while(e&&e!=D&&e!=e.parent&&(t=e.frameElement)&&(e=e.parent))}B={top:d.y,left:d.x,width:B.width,height:B.height}}B=TIb(B,u.viewportLocalAppOffset);
D=cRo(B,u.exposedViewportLocalGeometry);d=G.timeProvider.now();e=Object;t=e.assign;if(q!==2||G.inCrossDomainIframe||D.width<=0||D.height<=0)var c=!1;else try{var W=G.document.elementFromPoint(D.left+D.width/2,D.top+D.height/2);c=W?!csf(W,l):!1}catch(M){c=!1}return{timestamp:d,value:t.call(e,{},u,{elementGeometrySourceName:"geo",intersectionGeometry:c?TnX.intersectionGeometry:D,elementGeometry:B})}}),T5(G.queue))}}};
csf=function(G,H,Z){Z=Z===void 0?0:Z;return G.ref===void 0||H.ref===void 0?!1:G.ref===H.ref||_.xr(H.ref,function(Q){return Q===G.ref})?!0:H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView===H.ref.ownerDocument.defaultView.top?!1:Z<10&&H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView.frameElement?csf(G,new LE(H.ref.ownerDocument.defaultView.frameElement),Z+1):!0};
zyU=function(G){return function(H){return H.pipe(G.ResizeObserver?vFj(G):Wfv(G),uG(1),C0())}};
vFj=function(G){return function(H){return H.pipe(ta(function(Z){var Q=G.ResizeObserver;if(!Q||Z.ref===void 0)return jl(TnX.elementGeometry);var p=(new el(function(l){function q(){Z.ref!==void 0&&u.unobserve(Z.ref);u.disconnect();B.unsubscribe()}
if(Z.ref===void 0)return l.complete(),function(){};
var u=new Q(function(t){t.forEach(function(D){l.next(D)})});
u.observe(Z.ref);var B=Z.JSC$9369_released.subscribe(q);return q})).pipe(FV(G.performanceMonitor,736),iE(function(l){return l.contentRect}));
return xb(jl(Z.ref.getBoundingClientRect()),p)}),Zw(z5))}};
Wfv=function(G){return function(H){var Z=H.pipe(I02(G)),Q=G.onResize;Z=xb(H.pipe(iE(function(){return ZuW("resize")})),Z,Q);
return as(H,Z).pipe(FV(G.performanceMonitor,737),iE(function(p){p=_.I(p).next().value;return p.ref===void 0?void 0:p.ref.getBoundingClientRect()}),Jsf(),Zw(z5))}};
jMb=function(G,H){var Z=Kfj(G,H).pipe(uG(1),C0());return function(Q){return function(p){p=p.pipe(ta(function(l){return l.element}),Zw());
return as([Z,p]).pipe(ta(function(l){var q=_.I(l);l=q.next().value;q=q.next().value;return Mgj(G,l.intersectionObserver,zyU(G),l.observations,Q,l.flushRecords,q)}),T5(G.queue))}}};
PVj=function(G){return iE(function(H){return H.value.viewportGeometrySourceName!=="nio"?H:Object.assign({},H,{value:Object.assign({},H.value,{exposedViewportLocalGeometry:Fk(G,!0),topWindowViewportExternalGeometry:Fk(G,!0)})})})};
rsj=function(G,H){return jl(H).pipe(G,iE(function(){return H}))};
Kfj=function(G,H){return G.timeProvider.timeline!==wS2?Pg(new aN(2)):G.MutationObserver?typeof IntersectionObserver==="undefined"?Pg(new aN(0)):(new el(function(Z){var Q=new cl,p=new bG(Q.next.bind(Q),{threshold:[].concat(_.OP(H))});Z.next({observations:Q.pipe(FV(G.performanceMonitor,735)),intersectionObserver:p,flushRecords:function(l){l=p.takeRecords(l);l.length>0&&Q.next(l)}})})).pipe(sA(1),uG(1),C0()):Pg(new aN(1))};
hyM=function(G){return wgj(G.sort(function(H,Z){return H.time-Z.time}),U_e)};
Mgj=function(G,H,Z,Q,p,l,q){return new el(function(u){function B(){c||(c=!0,q.ref!==void 0&&H.unobserve(p,q.ref),D.unsubscribe(),n.unsubscribe(),e.unsubscribe(),W.unsubscribe())}
if(q.ref!==void 0){CV3(H,p);H.observe(p,q.ref);var t=new G$({timestamp:G.timeProvider.now(),value:Object.assign({},TnX,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),D=Q.pipe(UP(function(M){return hyM(M)}),L0(function(M){return M.target===q.ref}),iE(function(M){return{timestamp:new Yb(M.time,wS2),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:M.rootBounds||H7,topWindowViewportExternalGeometry:M.rootBounds||Fk(G,!0),measurementRequests:d,elementGeometrySourceName:"nio",intersectionGeometry:M.intersectionRect,elementGeometry:M.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:M.isIntersecting,isV2Visible:M.isVisible}}}),lG(t),C0()).subscribe(u),d=new cl,e=d.subscribe(function(){l(p);
u.next({timestamp:G.timeProvider.now(),value:t.value.value});q.ref!==void 0&&(H.unobserve(p,q.ref),H.observe(p,q.ref))}),n=rsj(Z,q).subscribe(function(){d.next()}),c=!1,W=q.JSC$9369_released.subscribe(function(){return B()});
return B}})};
ib2=function(G,H){var Z=G.getOnBackgrounded().pipe(iE(function(){return"b"}));
return JaM(H,Z).pipe(sA(1),fE(G.queue))};
s1=function(G){return function(H){var Z;return H.pipe(KTX(function(Q){return void(Z=Q.timestamp)}),iE(function(Q){return Q.value}),G,iE(function(Q){return{timestamp:Z,
value:Q}}))}};
ObU=function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.elementGeometry.width*G.elementGeometry.height)};
ZS=function(G,H,Z){Z=Z===void 0?function(Q,p){return Q===p}:Z;
return G.timestamp.equals(H.timestamp)&&Z(G.value,H.value)};
pu=function(G,H){return H.pipe(iE(function(Z){return new Qx(G.timeProvider,{timestamp:G.timeProvider.now(),value:Z})}))};
a0j=function(G){return function(H){return H.pipe(MtU(G),iE(function(Z){var Q=_.I(Z);Z=Q.next().value;Q=Q.next().value;var p=Z.value;return{timestamp:Z.timestamp,value:p>=1?!0:p<=0?!1:p>=Q}}))}};
oF3=function(){return dJ(L0(function(G,H){return H>0}),yse,Ja(-1),Zw())};
mfv=function(G,H,Z){return G?as([H,Z]).pipe(L0(function(Q){var p=_.I(Q);Q=p.next().value;p=p.next().value;return Q.timestamp.equals(p.timestamp)}),iE(function(Q){var p=_.I(Q);
Q=p.next().value;p=p.next().value;return Q.value>p.value?Q:p})):H};
NnM=function(G){return function(H){var Z=H.pipe(Uf3),Q=H.pipe(RyM);return G instanceof el?G.pipe(ta(function(p){return mfv(p,Z,Q)})):mfv(G.value,Z,Q)}};
szv=function(G,H,Z,Q){var p=Q.geometryIsOccluded,l=Q.exposureThreshold,q=Q.wasLargeAdAtRender,u=Q.allowLargeAdThreshold,B=Q.largeAdExposureThreshold,t=Q.mayUseViewportShareExposure,D=Q.hasMeasurementStarted;Q=Q.useIntersectionObserverV2;H=As2(G,Z,H);Z=xfv(G,Z);Q=Lfe(H,Q);var d=EFo(G,p,t,H),e=d.pipe(iE(function(R){return R.value}),Zw(),fE(G),Bl(function(R,L){return Math.max(R,L)},0)),n=d.pipe(iE(function(R){return R.value}),oF3(),fE(G)),c=H.pipe(YvW,iE(function(R){return R.value}),sA(2),Zw(),fE(G));
q=Ffu(G,H,q,u);var W=q.pipe(Ja(!1),Zw(),iE(function(R){return R?B:l}));
u=d.pipe(a0j(W),Zw(),fE(G));var M=as([u,H]).pipe(L0(function(R){var L=_.I(R);R=L.next().value;L=L.next().value;return R.timestamp.equals(L.timestamp)}),iE(function(R){var L=_.I(R);
R=L.next().value;L=L.next().value;return{visible:R.value,geometry:L.value.elementGeometry}}),Bl(function(R,L){return!L.visible&&R.visible?R:L},{visible:!1,
geometry:H7}),iE(function(R){return R.geometry}),Ja(H7),fE(G),Zw(z5));
t=t instanceof el?t.pipe(Zw(),Hl()):OA;W=as([t,W]).pipe(Hl());var r=H.pipe(L0(function(R){return R.value.viewportGeometrySourceName!=="ns"&&R.value.elementGeometrySourceName!=="ns"}),Bl(function(R){return R+1},0),Ja(0),fE(G)),w=Z.pipe(Hl(!0),Ja(!1),fE(G));
w=as([D,w]).pipe(iE(function(R){var L=_.I(R);R=L.next().value;L=L.next().value;return R&&!L}),fE(G));
var x=H.pipe(bb3,Zw()),U=x.pipe(iE(function(R){return R.value}),Bl(function(R,L){return Math.max(R,L)},0),Zw(),fE(G));
G=x.pipe(iE(function(R){return R.value}),oF3(),fE(G));
return{shouldResetExposureSignals:t,shouldResetViewabilitySignals:W,geometrySignals:{readyGeometryWithDefault:H,measurementStrategy:H.pipe(GIu),creativePosition:M.pipe(Zw(z5)),visible:u.pipe(Zw(ZS)),timestampedExposure:d.pipe(Zw(ZS)),maximumExposure:e,minimumExposure:n,browserSize:H.pipe(Hlu,Zw(_.Ej)),timestampedScreenShare:x,maxScreenShare:U,minScreenShare:G,geometricMeasurementErrors:Z,measurementRequests:H.pipe(iE(function(R){return R.value.measurementRequests})),
isLargeAd:q,geometryIsOccluded:p,hasMeasurementStarted:D,geometryMeasurable:w,validMeasurementCount:r,loadTimeExposure:c,v2VisibilityBitVector:Q}}};
xfv=function(G,H){return H.pipe(L0(function(){return!1}),iE(function(Z){return Z}),bE(function(Z){return lY(new Wl(Z),G)}))};
As2=function(G,H,Z){return H.pipe(ukb(OA),fE(G)).pipe(Zw(function(Q,p){return ZS(Q,p,$fM)}),Ja({timestamp:Z.now(),
value:TnX}),fE(G))};
EFo=function(G,H,Z,Q){Z=Q.pipe(NnM(Z),s1(iE(function(p){return Math.round(p*100)/100})),fE(G));
return H instanceof Wl?Z:as([Z,H]).pipe(iE(function(p){var l=_.I(p);p=l.next().value;l=l.next().value;return{timestamp:l.timestamp.maximum(p.timestamp),value:l.value?0:p.value}}),Zw(ZS),fE(G))};
Ffu=function(G,H,Z,Q){H=[H.pipe(iE(function(p){return p.value.elementGeometry.width*p.value.elementGeometry.height>=242500}))];
Z instanceof el&&H.push(Z.pipe(iE(function(p){return!!p})));
Z=as(H);return Q?Z.pipe(iE(function(p){return p.some(function(l){return l})}),Ja(!1),Zw(),fE(G)):lY(new Wl(!1),G)};
Lfe=function(G,H){G=as([G,H]).pipe(iE(function(p){var l=_.I(p);p=l.next().value;if(l.next().value&&p.value.isIntersecting)return p.value.isV2Visible}),Zw());
var Z=G.pipe(iE(function(p){return p===void 0?!0:p}),Bl(function(p,l){return p||!l},!1)),Q=G.pipe(Bl(function(p,l){return l===void 0?p:l?!1:p!=null?p:!0},void 0),iE(function(p){return!!p}));
return as([H,ttj(G,Z,Q)]).pipe(iE(function(p){var l=_.I(p);p=l.next().value;var q=_.I(l.next().value);l=q.next().value;var u=q.next().value;q=q.next().value;var B=0;if(!p)return 0;if(l===void 0)return 16;l&&(B|=1);l||(B|=2);u&&(B|=4);q&&(B|=8);return B}))};
I23=function(G,H,Z,Q,p){var l=ZlM.timeThresholdMs;var q=q===void 0?new QzU(H,Q):q;return(new el(function(u){var B=Z.pipe(Ja(void 0),ta(function(){return ptR(p)})).pipe(iE(function(t){var D=t.value;
t=t.timestamp;var d=D.visible;D=D.consecutiveViewTime;var e=D>=l;e||!d?l2f(q):(t=Math.max(0,EP(H.now(),t)),gIR(q,Math.max(0,l-D-t)));return e}),Bl(function(t,D){return D||t},!1),Zw()).subscribe(u);
return function(){q.dispose();B.unsubscribe()}})).pipe(Dw(function(u){return!u},!0),fE(G))};
ptR=function(G){return ky2([G,G.pipe(VgX())]).pipe(iE(function(H){var Z=_.I(H);H=Z.next().value;Z=Z.next().value;return{timestamp:H.timestamp,value:{visible:H.value,consecutiveViewTime:Z.value}}}),Zw(function(H,Z){return ZS(H,Z,function(Q,p){return Q.consecutiveViewTime===p.consecutiveViewTime&&Q.visible===p.visible})}))};
qJR=function(){return dJ(eyf(),Bl(function(G,H){return Math.max(G,H)},0),iE(function(G){return Math.round(G)}))};
SJ3=function(G){return dJ(a0j(jl(G)),qJR())};
uUX=function(G,H){return H instanceof el?H.pipe(ta(function(Z){return(Z=Z?15:null)?Pg(new aN(Z)):G})):(H=H.value?15:null)?Pg(new aN(H)):G};
BOf=function(G){var H=new aN(13);if(G.length<1)return{chain:Aw,capturedErrors:Aw};var Z=new cl,Q=G[0];return{chain:G.slice(1).reduce(function(p,l){return p.pipe(bE(function(q){Z.next(q);return l}))},Q).pipe(bE(function(p){Z.next(p);
return Pg(H)}),lG(new cl),C0()),
capturedErrors:Z}};
JeU=function(G,H){var Z=G.pipe(lG(new cl),C0());return ta(function(Q){return Z.pipe(H(Q))})};
kIW=function(G,H){if(G.inCrossDomainIframe)return Pg(new aN(6));var Z=new cl;return xb(jl({}),H,Z).pipe(iE(function(){return{timestamp:G.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:tKj(G),topWindowViewportExternalGeometry:Fk(G,!0),measurementRequests:Z,viewportLocalAppOffset:{x:0,y:0}}}}),T5(G.queue))};
tKj=function(G){var H=Fk(G,!1);if(!G.inIframe||!hOW(G.global.parent)||G.global.parent===G.global)return H;var Z=new gI(G.global.parent,G.debugChannel);Z.beaconFactory=G.beaconFactory;Z=tKj(Z);G=G.global.frameElement.getBoundingClientRect();return cRo(TIb(cRo(Z,G),{x:H.left-G.left,y:H.top-G.top}),H)};
DVX=function(G){if(G.prerendering)return 3;var H;return(H={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[G.visibilityState||G.webkitVisibilityState||G.mozVisibilityState||""])!=null?H:0};
dVv=function(G){return G.document.JSC$9380_onVisibilityChange.pipe(iE(function(H){return H==="visible"}),Zw(),fE(G.queue))};
e_j=function(G,H,Z){var Q;return H.pipe(Zw(),ta(function(p){return Z.pipe(iE(function(){if(!Q){Q=!0;try{p.next()}finally{Q=!1}}return!0}))}),Ja(!1),fE(G.queue))};
nI2=function(G){return dJ(s1(iE(function(H){return H>=1?!0:H<=0?!1:H>=G})),dfR(),iE(function(H){return Math.round(H)}))};
$Vj=function(G,H,Z,Q,p){var l=VKf;if(l.length>1)for(var q=0;q<l.length-1;q++)if(l[q]<l[q+1])throw Error();q=p.pipe(Ja(void 0),ta(function(){return Z.pipe(VgX())}),Zw(),fE(G));
p=p.pipe(Ja(void 0),ta(function(){return Z.pipe(qJR())}),Zw(),fE(G));
return{totalMeasurementTime:Q.pipe(Ja(void 0),ta(function(){return H.pipe(iE(function(u){return{timestamp:u.timestamp,value:!0}}),dfR())}),Zw(),fE(G)),
totalUnviewedTime:Q.pipe(Ja(void 0),ta(function(){return H.pipe(iE(function(u){return{timestamp:u.timestamp,value:u.value===0}}),dfR())}),Zw(),fE(G)),
maxTimeOnScreen:Q.pipe(Ja(void 0),ta(function(){return H.pipe(nFv(SJ3,l))}),Zw(_.Ej),fE(G)),
timeOnScreen:Q.pipe(Ja(void 0),ta(function(){return H.pipe(nFv(nI2,l),iE(function(u){return u.map(function(B,t){return t>0?B-u[t-1]:B})}))}),Zw(_.Ej),fE(G)),
maxConsecutiveViewTime:p,consecutiveViewTime:q.pipe(Zw(ZS),fE(G))}};
ceo=function(G){var H=!0;H=H===void 0?!1:H;return dJ(ta(function(Z){return Xt2(G.document,Z,H)}),fE(G.queue))};
TOj=function(G,H,Z){var Q=Z.pipe(iE(function(p){return{value:p,timestamp:G.timeProvider.now()}}),Zw(ZS));
return H instanceof el?H.pipe(Zw(),ta(function(p){return p?lY(new Wl({value:!1,timestamp:G.timeProvider.now()}),G.queue):Q})):H.value===!1?Q:new Wl(!1)};
f2f=function(G,H,Z,Q,p,l,q){var u=ZlM;H=H instanceof el?H.pipe(Ja(!1),Zw()):H;var B=!G.isMobile();Z=TOj(G,Z,Q);G=q.measurableCreative.pipe(tgb(G.queue));return Object.assign({},u,{geometryIsOccluded:Z,wasLargeAdAtRender:p,allowLargeAdThreshold:B,mayUseViewportShareExposure:H,hasMeasurementStarted:G,useIntersectionObserverV2:l})};
WRe=function(G,H,Z,Q,p,l){var q=1;l=l===void 0?!0:l;q=q===void 0?.01:q;var u=u===void 0?G.timeProvider.intervalObservable(100).pipe(fE(G.queue)):u;return G.performanceMonitor.timeExecution(916,function(){return vIo(G,H.pipe(T5(G.queue)),Z.pipe(T5(G.queue)),Q,p,l,q,u)})()};
vIo=function(G,H,Z,Q,p,l,q,u){var B=dVv(G).pipe(iE(function(D){return!D})),t=new z_W(G,[new KRu(G,VKf),
new MKf(G,u)]);u=Zbb(jz3,PWU);return LuU(G,H,function(D,d){var e=lY(new Wl(d.element),D.queue).pipe(ceo(D),fE(D.queue)),n={loadedElement:e,shouldMeasure:e.pipe(Hl(!0)),measurableCreative:e.pipe(iE(function(R){var L=L===void 0?Symbol():L;return Object.freeze({symbol:L,element:lY(new Wl(R),D.queue)})})),
creativeSearchResult:lY(new Wl("mue"),D.queue)},c=new Wl(!1),W=new Wl(!1),M=new Wl(17),r=new Wl(!1),w=new Wl(!1),x=lY(If,D.queue);c=t.buildGeometrySource(n,{inApp:c,useV2:!1,requestSource:lY(M,D.queue)}).geometrySource;n=f2f(D,r,W,B,w,x,n);W=szv(D.queue,D.timeProvider,c,n);n=W.geometrySignals;r=W.shouldResetViewabilitySignals;W=$Vj(D.queue,n.timestampedExposure,n.visible,W.shouldResetExposureSignals,r);r=I23(D.queue,D.timeProvider,r,n.measurementRequests,n.visible);w=Z.pipe(L0(function(R){return R===
d.element.ref}),iE(function(){return"ur"}));
x=eOf(D.timeProvider,p).pipe(Hl("t"));w=ib2(D,xb(w,x));x=e_j(D,n.measurementRequests,w.pipe(L0(function(R){return R!==null})));
c=w.pipe(L0(function(R){return R!==null}),iE(function(){return DVX(D.global.document)===1}));
var U=rev(D.document);return Object.assign({},{beaconFactory:new Wl(D.beaconFactory),context:new Wl(D),inferredPingId:new Wl("lidar2"),timeOnScreenPingId:new Wl("lidartos"),binaryContext:new Wl(17),binaryVersion:new Wl(Q),requestSource:M,contextValidationErrors:new Wl(D.validate()?null:new yB),contextVisibilityKnown:new Wl(U),payloadMapper:new Wl(Hbv),endOfSessionReason:w,timeOnScreenReason:w,requestMeasurementOnEndOfSession:x,hasImpressionFired:wto,crossDomainIframeState:new Wl(D.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:If,inFetchLaterBeaconExperiment:If,isTurtlex:If,turtlexReportEventData:new Wl(""),reportFencedFrameEvent:OA,isViewableAttributionEnabled:If,inViewableAttributionExperiment:new Wl(0),fetchBeaconFactory:OA,supportsPendingBeacon:If,supportsFetchLater:If,emit:new Wl(l0b),beginToRenderEvent:new Wl(Symbol()),activeViewUnmeasurableEvent:new Wl(Symbol()),activeViewViewableEvent:new Wl(Symbol()),creativeFound:wto,immediateUrlPrefixes:new Wl(d.immediateUrls),timeOnScreenUrlPrefixes:new Wl(d.timeOnScreenUrls),
cpmavUrls:OA,viewableRelayUrls:OA,measurementDeferralState:new Wl(2),urlSerializer:new Wl(BnR),viewUrlSerializer:new Wl(h_e),isCreativeLoaded:e.pipe(tgb(D.queue)),pageVisible:B.pipe(iE(function(R){return!R})),
eosPageVisible:c,timestampedExposureHistory:n.timestampedExposure.pipe(Bl(function(R,L){R.push(L);return R},[]))},n,{viewable:pu(D,r),
maxTimeOnScreen:pu(D,W.maxTimeOnScreen),timeOnScreen:pu(D,W.timeOnScreen),maxConsecutiveViewTime:pu(D,W.maxConsecutiveViewTime),consecutiveViewTime:W.consecutiveViewTime.pipe(iE(function(R){return new Qx(D.timeProvider,R)})),
totalMeasurementTime:pu(D,W.totalMeasurementTime),totalUnviewedTime:pu(D,W.totalUnviewedTime),userAgentClientHints:sfR(D),clientOrderPingCounter:new Wl(new Y12)})},sMR(G,q),QM2(l?pSv(u,CWM):pSv(u,ilM),Olj))};
a2R=function(G){var H=_.Ry.apply(1,arguments).filter(Boolean).join("&");if(!H)return G;var Z=G.match(/[?&]adurl=/);return Z?G.slice(0,Z.index+1)+H+"&"+G.slice(Z.index+1):G+(G.indexOf("?")<0?"?":"&")+H};
qj=function(G,H){return H?"&"+G+"="+encodeURIComponent(H):""};
yeM=function(){try{var G,H;return!!((G=window)==null?0:(H=G.top)==null?0:H.location.href)&&!1}catch(Z){return!0}};
_.S_=function(G){G&&typeof G.dispose=="function"&&G.dispose()};
_.uY=function(G){for(var H=0,Z=arguments.length;H<Z;++H){var Q=arguments[H];_.Uj(Q)?_.uY.apply(null,Q):_.S_(Q)}};
mVv=function(){var G=oIe();G=G===void 0?"bevasrsg":G;return new Promise(function(H){var Z=window===window.top?window:yeM()?window:window.top,Q=Z[G],p;((p=Q)==null?0:p.bevasrs)?H(new B7(Q.bevasrs)):(Q||(Q={},Q=(Q.nqfbel=[],Q),Z[G]=Q),Q.nqfbel.push(function(l){H(new B7(l))}))})};
UVu=function(G){var H={c:G.ko,e:G.hvQ,mc:G.nAX,me:G.rtB};G.aR&&(H.co={c:G.aR.dd3,a:G.aR.oDT,s:G.aR.xMn});return H};
R_j=function(G){var H,Z,Q={ko:G.c,hvQ:G.e,nAX:(H=G.mc)!=null?H:!1,rtB:(Z=G.me)!=null?Z:!1};G.co&&(Q.aR={dd3:G.co.c,oDT:G.co.a,xMn:G.co.s});return Q};
NOR=function(G){return function(){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G(),2);H=Z.yieldResult;return Z.return({f:function(){return H.iSx()},
c:function(Q){return H.nmI(Q)},
m:function(Q){return H.jD(R_j(Q))},
mws:function(Q){return H.fpu(R_j(Q))}})})}};
AeW=function(G,H){var Z=oIe();Z=Z===void 0?"bevasrsg":Z;H={s:function(l){var q;return G.snapshot(Object.assign({},l.c&&{ko:l.c},l.s&&{tH6:l.s},{kTX:(q=l.p)!=null?q:!0}))},
e:function(l){var q;return void((q=G.eRp)==null?void 0:q.call(G,l))},
c:function(l,q){return G.xeQ(l,q)},
p:G.hXW,l:function(){return G.stN()},
wpc:H?NOR(H):void 0};var Q=window===window.top?window:yeM()?window:window.top,p=Q[Z];if(p){p.bevasrs=H;if(p.nqfbel!==void 0)for(Z=_.I(p.nqfbel),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q(H);p.nqfbel=void 0}else p={},p=(p.bevasrs=H,p.nqfbel=void 0,p),Q[Z]=p};
LRR=function(G){var H=H===void 0?51:H;var Z=[];_.JR(G,xVM,6,_.tR()).forEach(function(Q){_.k5(Q,2)<=H&&Z.push(_.k5(Q,1))});
return Z};
EIj=function(G){var H=H===void 0?51:H;var Z=[];_.JR(G,xVM,6,_.tR()).forEach(function(Q){_.k5(Q,2)>H&&Z.push(_.k5(Q,1))});
return Z};
YJo=function(G){G.then(function(){},function(){})};
DS=function(G){return{fieldType:1,fieldName:G}};
dI=function(G){return{fieldType:2,fieldName:G}};
_.e_=function(G){return{fieldType:3,fieldName:G}};
FRX=function(){function G(){p[0]=1732584193;p[1]=4023233417;p[2]=2562383102;p[3]=271733878;p[4]=3285377520;D=t=0}
function H(d){for(var e=q,n=0;n<64;n+=4)e[n/4]=d[n]<<24|d[n+1]<<16|d[n+2]<<8|d[n+3];for(n=16;n<80;n++)d=e[n-3]^e[n-8]^e[n-14]^e[n-16],e[n]=(d<<1|d>>>31)&4294967295;d=p[0];var c=p[1],W=p[2],M=p[3],r=p[4];for(n=0;n<80;n++){if(n<40)if(n<20){var w=M^c&(W^M);var x=1518500249}else w=c^W^M,x=1859775393;else n<60?(w=c&W|M&(c|W),x=2400959708):(w=c^W^M,x=3395469782);w=((d<<5|d>>>27)&4294967295)+w+r+x+e[n]&4294967295;r=M;M=W;W=(c<<30|c>>>2)&4294967295;c=d;d=w}p[0]=p[0]+d&4294967295;p[1]=p[1]+c&4294967295;p[2]=
p[2]+W&4294967295;p[3]=p[3]+M&4294967295;p[4]=p[4]+r&4294967295}
function Z(d,e){if(typeof d==="string"){d=unescape(encodeURIComponent(d));for(var n=[],c=0,W=d.length;c<W;++c)n.push(d.charCodeAt(c));d=n}e||(e=d.length);n=0;if(t==0)for(;n+64<e;)H(d.slice(n,n+64)),n+=64,D+=64;for(;n<e;)if(l[t++]=d[n++],D++,t==64)for(t=0,H(l);n+64<e;)H(d.slice(n,n+64)),n+=64,D+=64}
function Q(){var d=[],e=D*8;t<56?Z(u,56-t):Z(u,64-(t-56));for(var n=63;n>=56;n--)l[n]=e&255,e>>>=8;H(l);for(n=e=0;n<5;n++)for(var c=24;c>=0;c-=8)d[e++]=p[n]>>c&255;return d}
for(var p=[],l=[],q=[],u=[128],B=1;B<64;++B)u[B]=0;var t,D;G();return{reset:G,update:Z,digest:Q,digestString:function(){for(var d=Q(),e="",n=0;n<d.length;n++)e+="0123456789ABCDEF".charAt(Math.floor(d[n]/16))+"0123456789ABCDEF".charAt(d[n]%16);return e}}};
QJj=function(G,H){H=H===void 0?bl3:H;if(!GFu){var Z;G=(Z=G.navigator)==null?void 0:Z.userAgentData;if(!G||typeof G.getHighEntropyValues!=="function"||G.brands&&typeof G.brands.map!=="function")return Promise.reject(Error("ua"));H$b((G.brands||[]).map(function(p){var l=new sJb;l=_.ha(l,1,p.brand);return _.ha(l,2,p.version)}));
typeof G.mobile==="boolean"&&_.nu(Z$M,2,G.mobile);GFu=G.getHighEntropyValues(H)}var Q=new Set(H);return GFu.then(function(p){var l=Z$M.clone();Q.has("platform")&&_.ha(l,3,p.platform);Q.has("platformVersion")&&_.ha(l,4,p.platformVersion);Q.has("architecture")&&_.ha(l,5,p.architecture);Q.has("model")&&_.ha(l,6,p.model);Q.has("uaFullVersion")&&_.ha(l,7,p.uaFullVersion);return l.serialize()}).catch(function(){return Z$M.serialize()})};
Vx=function(G,H,Z,Q){this.initialValue_=G;this.maxValue_=H;this.currBaseValue_=this.currValue_=G;this.randomFactor_=Z||0;this.backoffFactor_=Q||2};
$5=function(G){this.src=G;this.listeners={};this.typeCount_=0};
IkR=function(){for(var G;G=pUf.remove();){try{G.fn.call(G.scope)}catch(H){pW(H)}lkR.put(G)}gMe=!1};
_.qdu=function(G){switch(G){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}};
Sdf=function(G){switch(G){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""}};
_.uPf=function(){};
VAv=function(G,H,Z,Q){G=B7o(Jp2(tAu(new _.c7(1828,"0"),G),new kFj)).disableWithCredentials();H.length&&DYf(G,dYj(new eR3,H));Q!==void 0&&(G.destinationUrl=Q);var p=new nMj(1828,"","",!1,"",G.build());_.T$(p,G);var l=new fu({flush:function(q){try{p.flush(q)}catch(u){Z(u)}}});
l.addOnDisposeCallback(function(){setTimeout(function(){try{l.snapshotAndFlush()}finally{p.dispose()}})});
l.invocationLimit=1E5;l.flushInterval=3E4;l.JSC$9796_flushTimer.setInterval(3E4);return l};
v7=function(){var G,H,Z;return(Z=(G=globalThis.performance)==null?void 0:(H=G.now)==null?void 0:H.call(G))!=null?Z:Date.now()};
cpW=function(G,H){if(G.disable)return new $Yf;H=H?LRR(H):[];G={dY:G.dY,nbN:G.omI,hQX:G.xra,destinationUrl:G.destinationUrl,fw7:G.fw7,bS3:G.bS3};H=H===void 0?[]:H;return new XUv(G,H)};
T7o=function(G){if(!G)return null;G=_.W7(G,2);return G===null||G===void 0?null:Lq(G)};
_.fkj=function(G){if(!G)return null;G=_.W7(G,4);return G===null||G===void 0?null:_.j7(G)};
zRR=function(G,H){return H?vMv(H):G?WKj(G):Promise.resolve()};
vMv=function(G){return new Promise(function(H,Z){var Q=_.z$("SCRIPT"),p=_.fkj(G);_.gJ(Q,p);Q.onload=function(){_.Ku(Q);H()};
Q.onerror=function(){_.Ku(Q);Z(Error("Fa"))};
(Mj("HEAD")[0]||document.documentElement).appendChild(Q)})};
WKj=function(G){return new Promise(function(H){var Z=_.z$("SCRIPT");if(G){var Q=_.W7(G,6);Q=Q===null||Q===void 0?null:_.Qk(Q)}else Q=null;_.lE(Z,Q);(Mj("HEAD")[0]||document.documentElement).appendChild(Z);_.Ku(Z);H()})};
j_=function(G,H,Z){var Q,p=new Promise(function(l){Q=setTimeout(l,H)});
return Promise.race([G.finally(function(){return void clearTimeout(Q)}),
p.then(Z)])};
KKW=function(G,H){try{return globalThis.sessionStorage.setItem(G,H),!0}catch(Z){return!1}};
MAj=function(G,H,Z,Q){H=H===void 0?0:H;Z=Z===void 0?G.length:Z;var p=0;for(Q&&(p=MAj(Q));H<Z;H++)Q=typeof G==="string"?G.charCodeAt(H):G[H],p=jJ3(31,p)+Q|0;return p};
P0W=function(G,H){return[MAj(G,0,G.length>>1,H),MAj(G,G.length>>1)]};
rpW=function(G){var H=_.I(P0W(G,P7));G=H.next().value;H=H.next().value;return G.toString(16)+H.toString(16)};
wUj=function(G,H){var Z=P0W(H);G=new Uint32Array(G.buffer);H=G[0];var Q=_.I(Z);Z=Q.next().value;Q=Q.next().value;for(var p=1;p<G.length;p+=2){for(var l=H,q=p,u=Z,B=Q,t=0;t<22;t++)q=q>>>8|q<<24,q+=l|0,q^=u+38293,l=l<<3|l>>>29,l^=q,B=B>>>8|B<<24,B+=u|0,B^=t+38293,u=u<<3|u>>>29,u^=B;l=[l,q];G[p]^=l[0];p+1<G.length&&(G[p+1]^=l[1])}};
hRf=function(G,H,Z,Q,p){var l=(4-(P7.length+Z.length)%4)%4,q=new Uint8Array(4+l+P7.length+4+Z.length),u=new DataView(q.buffer),B=0;u.setUint32(B,Math.random()*4294967295);B=B+4+l;q.set(P7,B);B+=P7.length;u.setUint32(B,p);q.set(Z,B+4);wUj(q,Q);return G.insert(H,function(t){return void globalThis.sessionStorage.removeItem(t)})?KKW(H,_.Cm(q))?"s":"t":"i"};
C0e=function(G,H){var Z=globalThis.sessionStorage.getItem(G);if(!Z)return["m"];try{var Q=_.YR(Z);wUj(Q,H)}catch(p){return globalThis.sessionStorage.removeItem(G),["c"]}for(H=4;H<7&&Q[H]===0;)H++;for(Z=0;Z<P7.length;Z++)if(Q[H++]!==P7[Z])return globalThis.sessionStorage.removeItem(G),["d"];Z=(new DataView(Q.buffer)).getUint32(H);return Math.floor(Date.now()/1E3)>=Z?(globalThis.sessionStorage.removeItem(G),["e"]):["a",new Uint8Array(Q.buffer,H+4)]};
i$v=function(G){return globalThis.TextEncoder?(new TextEncoder).encode(G):_.rI(G)};
O$X=function(G){var H=G,Z;return function(){if(H){var Q=H;H=void 0;Z=Q.apply(this,arguments)}return Z}};
ypo=function(G){return Cw(function(H){if(H instanceof G)return!0;var Z,Q,p=H==null?void 0:(Z=H.ownerDocument)==null?void 0:(Q=Z.defaultView)==null?void 0:Q[G.name];return akf(p)&&H instanceof p})};
_.iY=function(G,H,Z){_.wI.call(this);this.JSC$10010_listener_=G;this.JSC$10010_interval_=H||0;this.handler_=Z;this.callback_=(0,_.Cu)(this.JSC$10012_doAction_,this)};
_.O1=function(G){G=oMb(G);return _.j7(G)};
oMb=function(G){return G===null?"null":G===void 0?"undefined":G};
UYb=function(G){if(G&&G.focus)if(G!==document.activeElement)G.focus();else return mYj(function(){return _.S(function(H){document.activeElement&&document.activeElement.blur();return H.return(mYj(function(){G.focus()}))})})};
_.RRf=function(G){var H=H===void 0?5:H;setTimeout(function(){var Z;return _.S(function(Q){Q.nextAddress==1&&(Z=document.activeElement);if(Q.nextAddress!=5)return(document.activeElement===Z||document.activeElement===document.body)&&H>=0&&G?Q.yield(UYb(G),5):Q.jumpTo(0);if(document.activeElement===G)return Q.return();G=G.parentElement;--H;return Q.jumpTo(2)})},15)};
mYj=function(G){return new Promise(function(H){requestAnimationFrame(function(){H(G())})})};
Apf=function(G){if(_.af)G(_.af);else{var H;((H=N7v)!=null?H:N7v=[]).push(G)}};
of=function(){!_.af&&_.yx&&_.xYo(_.yx());return _.af};
_.xYo=function(G){_.af=G;var H;(H=N7v)==null||H.forEach(Apf);N7v=void 0};
_.mu=function(G){_.af&&_.af.beforeLoadModuleCode(G)};
_.U1=function(){_.af&&_.af.JSC$11063_setLoaded()};
Rf=function(G){return r_f(G)?Number(G):String(G)};
LK2=function(G){this.action=G;this.wfv=!1};
EMj=function(G,H){LK2.call(this,"set-drive-options");this.appId=G;this.appOrigin=H};
Ydj=function(G){LK2.call(this,"visibility");this.visible=G};
FKu=function(G,H,Z){x5.call(this,G,H,Z)};
b$u=function(G){Lu.call(this,G)};
GBo=function(G){G=G&&G.getWindow()||window;return G.gadgets&&G.gadgets.rpc};
s1f=function(G,H){var Z=H&&H.getWindow()||window;if(GBo(H))G();else if(Hg3)Hg3.push(G);else var Q=Hg3=[G],p=Z.setInterval(function(){if(GBo(H)){Z.clearInterval(p);for(var l=0;l<Q.length;l++)Q[l]();Hg3=null}},100)};
Q1j=function(G,H){var Z=new E1(G);_.T$(H,Z);var Q={passive:!1};H.listen(Z,"mousewheel",function(p){return void Zgj(G,p)},Q).listen(G,"scroll",function(p){return void Zgj(G,p)},Q)};
Zgj=function(G,H){var Z;a:{for(Z=H.target;Z;){if(Z.nodeType==1){var Q=_.Y5(Z,"overflowY");if(Q=="auto"||Q=="scroll")break a}Z=Z.parentNode}Z=null}if(!Z||!_.FG(G,Z)||Z.scrollHeight==Z.clientHeight||H.deltaY>0&&Math.abs(Z.scrollTop-(Z.scrollHeight-Z.clientHeight))<=1||H.deltaY<0&&Z.scrollTop==0)H.preventDefault(),H.stopPropagation()};
pb=function(G,H,Z,Q,p,l,q,u,B){u=u===void 0?!1:u;B=B===void 0?!1:B;x5.call(this,void 0,void 0,void 0);x5.call(this,l?l+" picker modal-dialog":"picker modal-dialog",!0,Z);_.bY(G,"protocol");this.iframeManager_=new pPf;this.targetId_=Gy();this.rpcToken_=Gy();G=_.HS(G);_.sv(G,"hostId");this.useGapi_=!B;u&&_.Z0(G,"fv2","true");this.setUrl(G.toString());this.preferredDialogWidth_=Q;this.preferredDialogHeight_=p;Q!==void 0||p!==void 0?Q=!0:(Q=_.sv(_.HS(G.toString()),"hostId"),lav||(lav=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
Q=!lav.has(Q));this.autoSizeDialog_=Q;this.JSC$10200_gadgetsDomHelper_=q||this.JSC$10151_dom_;H&&(q=this.JSC$10200_gadgetsDomHelper_,H=_.sv(_.HS(this.JSC$10202_url_),"grugl")=="true"?gNf:IaR,GBo(q)||(q=q||r3(document),Q=q.createElement("SCRIPT"),_.gJ(Q,H),Q.type="text/javascript",q.JSC$9335_document_.body.appendChild(Q)));G=G.toString();H=null;q=G.indexOf("/picker?");q>-1?H=G.substring(0,q+8-1):Iu(G,"/picker")&&(H=G);H&&this.setRelayUrl(H+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(G=this.buttons_,G.JSC$10185_element_=this.buttonEl_,G.render()):_.Is(this.buttonEl_,qie),_.QN(this.buttonEl_,!!this.buttons_))};
_.J3M=function(G){var H=H===void 0?Sib:H;var Z=_.LW(G),Q=function(l){l=_.I(l);l.next();l=lV(l);return H(Z,l)},p=function(l){var q=_.I(l);
l=q.next().value;q=lV(q);return G.apply(l,q)};
return function(){var l=_.Ry.apply(0,arguments),q=this||_.Qf,u=uqW.get(q);u||(u={},uqW.set(q,u));return BtX(u,[this].concat(_.OP(l)),p,Q)}};
gn=function(G){var H={};G=G.replace(/\r/g,"").split("\n");for(var Z=0;Z<G.length;Z++){var Q=G[Z],p=Q.indexOf(":");p<0||(H[Q.substring(0,p)]=Q.substring(p+2,Q.length))}return H};
tdf=function(G,H,Z){Z=Z===void 0?function(){}:Z;
return G?H():Z()};
_.Dhe=function(G){var H;return((H=kBb.documentOverride)!=null?H:G).__wizdispatcher};
_.qf=function(G){var H=IM;IM=G;return H};
_.eIW=function(G){return G===dh3||(G==null?void 0:G.name)==="\u0275NotFound"};
_.Sg=function(G,H){var Z;if((Z=G)==null?0:Z.isDisposed)throw Error("jb`"+String(G.debugName));for(;G!==void 0;){Z=G;if(Z.retrieve)return Z.retrieve(H,{optional:!0});G=G.parent}return dh3};
uV=function(G){return{"\u0275prov":{providedIn:"root",token:Symbol(G),factory:void 0,value:void 0}}};
_.nNR=function(G){var H=IM;if(!H){switch(G===void 0?3:G){case 0:G=Error("ib");break;case 1:G=Error("kb");break;case 2:G=Error("lb");break;default:G=Error("mb")}throw G;}return H};
VdW=function(G){var H=_.qf(G);G={};return G[Symbol.dispose]=function(){_.qf(H)},G};
$hb=function(G,H){G.disposables||(G.disposables=[]);G.disposables.push(H)};
BS=function(G){var H=IM;H&&!H.isDisposed&&($hb(H,G),G.parent=H)};
c3b=function(G){if(G.disposables){for(var H=_.I(G.disposables),Z=H.next();!Z.done;Z=H.next())Z=Z.value,typeof Z==="function"?Z():XPM(Z);G.disposables.length=0}};
XPM=function(G){if(!G.isDisposed){G.isDisposed=!0;var H;(H=G[Symbol.dispose])==null||H.call(G);delete G.parent;c3b(G)}};
P7j=function(G){var H={retrieve:function(Z){switch(Z.\u0275prov.token){case TtM.\u0275prov.token:var Q=G.asyncDeps;break;case _.faM.\u0275prov.token:Q=G.rootElement;break;case vNW.\u0275prov.token:Q=G.modelRootElement;break;case WIj.\u0275prov.token:Q=G.appContext;break;case zIX.\u0275prov.token:Q=G.rendererData;break;case KIU.\u0275prov.token:Q=G.injectingConstructor;break;case Mdf.\u0275prov.token:Q=G.dispatcher}if(Q)Z=Q;else a:{for(Q=H.parent;Q;){var p=Q;if(p.retrieve){Z=p.retrieve(Z);break a}Q=
Q.parent}Q=Z.\u0275prov.token;p=j1M[Q];p!==void 0?Z=p:(p=Z.\u0275prov.providedIn,Z.\u0275prov.factory?(Z=Z.\u0275prov.factory(),Q&&p==="root"&&(j1M[Q]=Z)):Z=dh3)}return Z}};
BS(H);return H};
r33=function(){var G=_.nNR(1),H=_.Sg(G,WIj);if(!_.eIW(H))return H;G=_.Sg(G,Mdf);if(!_.eIW(G))return G.getOptionalAppContext()};
wPU=function(G){if(typeof document!=="undefined"&&document&&document.getElementById&&(G=document.getElementById(G))){var H=G.tagName.toUpperCase();if(H=="SCRIPT"||H=="LINK")return G}return null};
C7j=function(G,H){if((G=G===void 0?"":G)&&H)throw Error("sb");var Z="";var Q=_.Qf._F_jsUrl;(G=H||wPU(G))&&(Z=G.src?G.src:G.getAttribute("href"));if(Q&&Z){if(Q!=Z)throw Error("tb`"+Q+"`"+Z);Z=Q}else Z=Q||Z;if(!hIe(Z))throw Error("ub");return Z};
y3f=function(){if(!igW){igW=!0;try{var G=C7j(_.Qf._F_jsUrl?"":"base-js")}catch(Q){return}var H=OgR(aae(G)),Z=Object.keys(H);Z.length!==0&&Apf(function(Q){for(var p=_.I(Z),l=p.next();!l.done;l=p.next()){l=l.value;for(var q=_.I(Object.keys(H[l])),u=q.next();!u.done;u=q.next())Q.addExtraEdge(l,u.value)}})}};
mhj=function(){var G=Object.assign({},oNX);Object.getOwnPropertyNames(oNX).forEach(function(H){Js[H]!==void 0&&(G[H]=Js[H])});
return G};
Uhf=function(G,H){if(Js.enablePerformanceTiming){var Z,Q;(Q=(Z=performance).mark)==null||Q.call(Z,G+"Start__"+H)}};
RIj=function(G,H){if(Js.enablePerformanceTiming){var Z,Q;(Q=(Z=performance).measure)==null||Q.call(Z,G+"__"+H,G+"Start__"+H)}};
Ntj=function(G,H,Z){var Q;return G&&H?G+"__"+H:(Q=G!=null?G:H)!=null?Q:Z};
xho=function(G,H){var Z=Object.create(A3f);Z.debugName=H;!IM||BS(Z);H=_.qf(Z);try{G(Z)}finally{_.qf(H)}return function(){return void XPM(Z)}};
ENe=function(G){return ts(G)&&LIu in G};
Yif=function(G,H){return Object.is(G,H)};
D0=function(G){var H=kF;kF=G;return H};
bgX=function(G){if(dn)throw Error("Z");if(kF!==null){var H=kF.producersTail;if(H===void 0||H.producer!==G){var Z=void 0,Q=kF.recomputing;if(Q&&(Z=H!==void 0?H.nextProducer:kF.producers,Z!==void 0&&Z.producer===G)){kF.producersTail=Z;Z.lastReadVersion=G.version;return}var p=G.consumersTail,l;if(!(l=p===void 0||p.consumer!==kF)){if(Q){a:{l=kF;Q=l.producersTail;if(Q!==void 0){l=l.producers;do{if(l===p){Q=!0;break a}if(l===Q)break;l=l.nextProducer}while(l!==void 0)}Q=!1}Q=!Q}l=Q}l&&(Q=eg(kF),Z={producer:G,
consumer:kF,nextProducer:Z,prevConsumer:p,lastReadVersion:G.version,nextConsumer:void 0},kF.producersTail=Z,H!==void 0?H.nextProducer=Z:kF.producers=Z,Q&&FIU(G,Z))}}};
VN=function(G){if(!eg(G)||G.dirty)if(G.dirty||G.lastCleanEpoch!==nb)(G.producerMustRecompute(G)||G_f(G))&&G.producerRecomputeValue(G),G.dirty=!1,G.lastCleanEpoch=nb};
HT3=function(G){if(G.consumers!==void 0){var H=dn;dn=!0;try{for(var Z=G.consumers;Z!==void 0;Z=Z.nextConsumer){var Q=Z.consumer;Q.dirty||(G=void 0,Q.dirty=!0,HT3(Q),(G=Q.consumerMarkedDirty)==null||G.call(Q,Q))}}finally{dn=H}}};
sp2=function(){var G;return((G=kF)==null?void 0:G.consumerAllowSignalWrites)!==!1};
ZT2=function(G){G&&(G.producersTail=void 0,G.recomputing=!0);return D0(G)};
pWj=function(G){G.recomputing=!1;var H=G.producersTail,Z=H!==void 0?H.nextProducer:G.producers;if(Z!==void 0){if(eg(G)){do Z=Qp2(Z);while(Z!==void 0)}H!==void 0?H.nextProducer=void 0:G.producers=void 0}};
G_f=function(G){for(G=G.producers;G!==void 0;G=G.nextProducer){var H=G.producer,Z=G.lastReadVersion;if(Z!==H.version)return!0;VN(H);if(Z!==H.version)return!0}return!1};
FIU=function(G,H){var Z=G.consumersTail,Q=eg(G);Z!==void 0?(H.nextConsumer=Z.nextConsumer,Z.nextConsumer=H):(H.nextConsumer=void 0,G.consumers=H);H.prevConsumer=Z;G.consumersTail=H;if(!Q)for(G=G.producers;G!==void 0;G=G.nextProducer)FIU(G.producer,G)};
Qp2=function(G){var H=G.producer,Z=G.nextProducer,Q=G.nextConsumer,p=G.prevConsumer;G.nextConsumer=void 0;G.prevConsumer=void 0;Q!==void 0?Q.prevConsumer=p:H.consumersTail=p;if(p!==void 0)p.nextConsumer=Q;else if(H.consumers=Q,!eg(H))for(G=H.producers;G!==void 0;)G=Qp2(G);return Z};
eg=function(G){return G.consumerIsAlwaysLive||G.consumers!==void 0};
gJU=function(G){var H=Object.create(lvj);H.computation=G;G=function(){VN(H);bgX(H);if(H.value===$F)throw H.error;return H.value};
G[XM]=H;return G};
uNo=function(G,H){var Z=Object.create(Ivb);Z.value=G;H!==void 0&&(Z.equal=H);G=function(){bgX(Z);return Z.value};
G[XM]=Z;return[G,function(Q){return qN3(Z,Q)},
function(Q){sp2()||SNe(Z);qN3(Z,Q(Z.value))}]};
qN3=function(G,H){sp2()||SNe(G);if(!G.equal(G.value,H)){G.value=H;G.version++;nb++;HT3(G);var Z;(Z=BM3)==null||Z(G)}};
tyR=function(G,H,Z){var Q=Object.create(JLj);Q.source=G;Q.computation=H;Z!=void 0&&(Q.equal=Z);G=function(){VN(Q);bgX(Q);if(Q.value===$F)throw Q.error;return Q.value};
G[XM]=Q;return G};
_.cS=function(G){var H=D0(null);try{return G()}finally{D0(H)}};
_.Ty=function(G,H,Z){Z=Z===void 0?"":Z;G=uNo(G,H==null?void 0:H.equals);var Q=G[0],p=Q[XM];p.debugName=Ntj(H==null?void 0:H.debugName,Z,"[signal]");if(!Js.enablePerformanceTiming)return G;var l=G[1],q=G[2];return[Q,function(u){k_M(function(){return void l(u)},p)},
function(u){k_M(function(){return void q(u)},p)}]};
k_M=function(G,H){Uhf("signalSet",H.debugName);try{G()}finally{RIj("signalSet",H.debugName)}};
d1R=function(G,H){var Z=_.I(_.Ty(G,void 0,"cPpJzc"));G=Z.next().value;Z=Z.next().value;G[D1W]=Z;G[fb]=H;return G};
elf=function(G){return!!G&&typeof G==="object"&&Object.getPrototypeOf(G)===Object.prototype};
nJM=function(G){return typeof G==="function"&&D1W in G&&typeof G[D1W]==="function"};
Vy2=function(G,H){Object.defineProperty(G,fb,{get:function(){return H}})};
WS=function(G,H){if(vS(G)){var Z=G.map(function(l){return WS(l,H)});
Vy2(Z,H);return Z}if(elf(G)){Z={};G=_.I(Object.entries(G));for(var Q=G.next();!Q.done;Q=G.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;Z[Q]=WS(p,H)}Vy2(Z,H);return Z}return d1R(G,H)};
$1u=function(G){if(vS(G))return G.map(function(p){return $1u(p)});
if(elf(G)){var H={};G=_.I(Object.entries(G));for(var Z=G.next();!Z.done;Z=G.next()){var Q=_.I(Z.value);Z=Q.next().value;Q=Q.next().value;H[Z]=$1u(Q)}return H}return nJM(G)?G():G};
cLX=function(){var G={height:0,width:0};if(!elf(G))throw Error("Jb");var H=Symbol("Kb");return[WS(G,H),function(Z,Q){if(Z[fb]===H)if(typeof Q==="function"){var p=[].concat(_.OP($1u(Z)));Q=Q(p)||p;XWf(Z,[].concat(_.OP(Q)))}else XWf(Z,Q);else throw Error("Lb");}]};
XWf=function(G,H){if(nJM(G))G[D1W](H);else if(vS(G)&&vS(H))H=WS(H,G[fb]),G.length=0,G.push.apply(G,_.OP(H));else if((elf(G)||vS(G))&&(vS(H)||typeof H==="object"&&H!==null)){H=_.I(Object.entries(H));for(var Z=H.next();!Z.done;Z=H.next()){var Q=_.I(Z.value);Z=Q.next().value;Q=Q.next().value;var p=G,l=p[Z];Object.hasOwn(G,Z)?XWf(l,Q):p[Z]=WS(Q,G[fb])}}else throw Error("Mb");};
TMu=function(G){return Object.create(Object.assign({},zy,G))};
vJu=function(){var G;return(G=fvM)!=null?G:fvM=TMu({consumerAllowSignalWrites:!0})};
_.Kb=function(G,H,Z){Z=Z===void 0?"":Z;G=gJU(G);var Q=G[XM];Q.debugName=Ntj(H==null?void 0:H.debugName,Z,"[computed]");(H==null?void 0:H.equals)!=null&&(Q.equal=H.equals);return G};
Mf=function(G){var H=D0(WeU);try{G()}finally{D0(H)}};
EJj=function(G){switch(G.onInitType){case zlf:Keu.schedule(G);break;case x12:Js.enableQueueEffectAndOnInitInitialRuns?Le2.enqueue(G):Le2.schedule(G);break;default:_.Lw(G.onInitType)}};
sAU=function(G){if(!G.isDisposed)switch(G.effectType){case jg:YN3.schedule(G);break;case Fee:bTj.schedule(G);break;case GUU:Js.enableQueueEffectAndOnInitInitialRuns||G.hasRun?H1u.enqueue(G):H1u.schedule(G);break;default:_.Lw(G.effectType)}};
pxX=function(){if(PS>0)Js.flushRenderEffectsDuringRender&&YN3.flush();else{for(var G=_.I(Z1f),H=G.next();!H.done;H=G.next())H.value.flush();QA2()}};
QA2=function(){_.S(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);for(var H=_.I(lYb),Z=H.next();!Z.done;Z=H.next())Z.value.flush();_.K0(G)})};
IYM=function(G){rn=!0;try{for(var H=_.I(G),Z=H.next();!Z.done;Z=H.next()){for(var Q=Z.value,p=[Q],l=Q;l.parent!==void 0;)l=l.parent,gPe(l)&&G.has(l)&&p.push(l);for(;p.length>0;){var q=p.pop();G.delete(q);q.run()}}}finally{rn=!1}};
wn=function(G){PS--;if(G){G=_.I(qSj);for(var H=G.next();!H.done;H=G.next())H.value.clear()}else PS>0||rn&&!Js.flushRenderEffectsDuringRender||pxX()};
uZo=function(G,H,Z){var Q=SSb(G);hs={name:Z?Q+" ("+Z+")":Q,isReactive:G.componentType!==Cb,parent:hs};G=H();hs=hs.parent;return G};
iV=function(){var G=hs;return G?G.isReactive:!1};
aM=function(G,H,Z){var Q=hs;H&&(hs=H);try{return Z==null?G():G.call(Z)}catch(l){G=l;Ov(G,hs);if(G!==BNo){Jku=hs;H=[];for(Z=IM;Z;){var p=void 0;H.push((p=Z.debugName)!=null?p:"[context]");p=void 0;Z=(p=Z.parent)!=null?p:null}tsj=H.reverse()}BNo=G;throw G;}finally{hs=Q}};
Ov=function(G,H){try{var Z=kUM(H);if(Z&&!G.componentStack&&(G.componentStack=Z,Js.enableComponentStacksInErrorMessages)){var Q=G.message+"\n\nComponent stack: "+Z;G.stack&&(G.stack=G.stack.replace(G.message,Q));G.message=Q}}catch(p){}};
kUM=function(G){if(ts(G)&&G.name!==void 0&&G.isReactive!==void 0&&G.parent!==void 0||G===null){for(var H=0,Z="";H<20&&G;)Z+=G.name+" > ",G=G.parent,H++;G=Z.slice(0,-3)}else if(Js.enableContextBasedComponentStacks){a:{for(G=G===void 0?IM:G;G;){if(ENe(G))break a;H=void 0;G=(H=G.parent)!=null?H:null}G=null}G=G.getComponentStack().slice(0,20).join(" > ")}else G="";return G};
SSb=function(G){return G.debugName||G.name||"[component]"};
DKf=function(G,H,Z){H=Object.create(H);G&&(H.effectFn=G);Z&&(H.debugName=Z);BS(H);H.componentStack=hs;return H};
_.yN=function(G,H){G=DKf(G,dKo,H);sAU(G)};
ekW=function(G){return G};
nP2=function(G,H){function Z(){return p()}
var Q=Q===void 0?"":Q;var p=typeof G==="function"?tyR(G,ekW,H==null?void 0:H.equals):tyR(G.source,G.computation,H==null?void 0:H.equals);var l=p[XM];l.debugName=Ntj(H==null?void 0:H.debugName,Q,"[linkedSignal]");Z[XM]=l;return[Z,function(q){k_M(function(){VN(l);qN3(l,q);l.dirty=!1;l.lastCleanEpoch=nb},l)},
function(q){k_M(function(){VN(l);sp2()||SNe(l);qN3(l,q(l.value));l.dirty=!1;l.lastCleanEpoch=nb},l)}]};
_.oM=function(G){var H=IM;if(H){var Z=hs;$hb(H,function(){var Q=D0(vJu());try{aM(function(){return void G()},Z)}catch(p){throw Js.enableContextBasedComponentStacks&&Ov(p),p;
}finally{D0(Q)}})}};
mf=function(G,H){var Z={};(H===void 0||H)&&BS(Z);H=_.qf(Z);try{G(Z)}finally{_.qf(H)}return function(){return void XPM(Z)}};
_.Uv=function(G){return typeof G==="function"?G():(G==null?0:G[Vsu])?G.get():G};
_.RM=function(G,H){G=DKf(G,$KR,H);sAU(G)};
XxW=function(G){if(IM)throw Error("nb");mf(G,!1)};
Nf=function(G,H){G=_.qf(G);try{return _.cS(H)}finally{_.qf(G)}};
As=function(G,H){var Z=kUM(Jku),Q,p;var l=(p=(Q=tsj)==null?void 0:Q.slice())!=null?p:[];H={componentStack:Z,contextTrace:l,errorSeverity:3,featureFlags:mhj(),tagName:H};return[G,H]};
fYb=function(G,H,Z){if(Object.hasOwnProperty.call(ckf,G)&&(G=ckf[G],Object.hasOwnProperty.call(G,H)&&(G=G[H],G instanceof Array))){for(var Q=null,p=!1,l=0,q=G.length;l<q;++l){var u=G[l],B=u.contingentAttribute;if(!B)return u.contract;Q===null&&(Q={});B=Object.hasOwnProperty.call(Q,B)?Q[B]:Q[B]=Z(B);if(B===u.requiredValue)return u.contract;B==null&&(p=!0)}if(p)return null}H=TNu[H];return typeof H==="number"?H:null};
zk2=function(G,H,Z){var Q=null;(G=vPf[G])&&(Q=G[H]);return typeof Q!=="number"&&((G=vPf["*"])&&(Q=G[H]),typeof Q!=="number")?!1:!0===WgR[Q][String(Z).toLowerCase()]};
Msu=function(G,H){H=fYb(G.toLowerCase(),H,function(){var Q;(Q=Js.handleError)==null||Q.call.apply(Q,[Js].concat(_.OP(As(Error("Tb"),G.toLowerCase()))))});
if(H===null)return null;var Z;return(Z=Kge[H])!=null?Z:null};
jAv=function(G,H,Z){if(Z===null||Z===void 0)return Z;H=H.toLowerCase();G=Msu(G,H);return G===null?Z:G(H,Z)};
Puu=function(){};
Lb=function(G,H){for(;G.length>H;)G.pop()};
rkf=function(G){G=Array(G);Lb(G,0);return G};
Ev=function(G,H,Z){if(Z==null)G.removeAttribute(H);else{var Q;(Q=H.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":H.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?G.setAttributeNS(Q,H,Z):G.setAttribute(H,Z)}};
wx3=function(G,H,Z){G[H]=Z};
Cuj=function(G,H,Z){G=G.style;if(typeof Z==="string")G.cssText=Z;else{G.cssText="";for(var Q in Z)if(hkR.call(Z,Q)){H=G;var p=Q,l=Z[Q];p.indexOf("-")>=0?H.setProperty(p,l):H[p]=l}}};
i1M=function(G,H,Z){var Q=typeof Z;Q==="object"||Q==="function"?G[H]=Z:Ev(G,H,Z)};
O1M=function(){var G=new Puu;G[YF.default]=i1M;G.style=Cuj;return G};
aYe=function(G,H,Z,Q){(Q[H]||Q[YF.default])(G,H,Z)};
oPf=function(G,H,Z){H=new ykf(H,Z);return G.__incrementalDOMData=H};
GI=function(G,H){if(G.__incrementalDOMData)return G.__incrementalDOMData;var Z=G.nodeType===1?G.localName:G.nodeName,Q=G.nodeType===1?G.getAttribute("key"):null;H=oPf(G,Z,G.nodeType===1?Q||H:null);if(G.nodeType===1&&(G=G.attributes,Z=G.length)){Q=H._attrsArr||(H._attrsArr=rkf(Z*2));for(var p=0,l=0;p<Z;p+=1,l+=2){var q=G[p],u=q.value;Q[l]=q.name;Q[l+1]=u}}return H};
mKj=function(G,H,Z,Q,p){return H==Z&&Q==p};
UKe=function(G){for(var H=Ht,Z=sJ();Z!==G;){var Q=Z.nextSibling;H.removeChild(Z);Z2.deleted.push(Z);Z=Q}};
sJ=function(){return QP?QP.nextSibling:Ht.firstChild};
pl=function(){QP=sJ()};
Akj=function(G,H,Z){pl();var Q;a:{if(Q=QP){do{var p=Q,l=G,q=H,u=GI(p,q);if(Rk3(p,l,u.nameOrCtor,q,u.key))break a}while(H&&(Q=Q.nextSibling))}Q=null}Q||(G==="#text"?(Z=lW.createTextNode(""),oPf(Z,"#text",null),G=Z):(Q=lW,p=Ht,typeof G==="function"?Q=new G:Q=(p=G==="svg"?"http://www.w3.org/2000/svg":G==="math"?"http://www.w3.org/1998/Math/MathML":p==null||GI(p).nameOrCtor==="foreignObject"?null:p.namespaceURI)?Q.createElementNS(p,G):Q.createElement(G),oPf(Q,G,H),G=Q,Z&&G.setAttribute("nonce",Z)),Z2.created.push(G),
Q=G);Z=Q;if(Z!==QP){if(NNj.indexOf(Z)>=0)for(G=Ht,H=Z.nextSibling,Q=QP;Q!==null&&Q!==Z;)p=Q.nextSibling,G.insertBefore(Q,H),Q=p;else Ht.insertBefore(Z,QP);QP=Z}};
xKU=function(G,H,Z){Akj(G,H,Z);Ht=QP;QP=null;return Ht};
Lgj=function(){UKe(null);QP=Ht;Ht=Ht.parentNode};
Fgo=function(G,H){H=H===void 0?{}:H;var Z=H.matches===void 0?mKj:H.matches;return function(Q,p,l){var q=Z2,u=lW,B=NNj,t=gO,D=Iz,d=QP,e=Ht,n=Rk3;lW=Q.ownerDocument;Z2=new EPu(Q);Rk3=Z;gO=[];Iz=[];QP=null;var c=Ht=Q.parentNode,W,M=YSo.call(Q);if((W=M.nodeType===11||M.nodeType===9?M.activeElement:null)&&Q.contains(W)){for(M=[];W!==c;)M.push(W),W=W.parentNode||(c?W.host:null);c=M}else c=[];NNj=c;try{return G(Q,p,l)}finally{Q=Z2,qV&&Q.deleted.length>0&&qV(Q.deleted),lW=u,Z2=q,Rk3=n,gO=t,Iz=D,QP=d,Ht=e,
NNj=B}}};
b1o=function(G,H,Z,Q){SK.push(aYe);SK.push(G);SK.push(H);SK.push(Z);SK.push(Q)};
H6W=function(G,H,Z){var Q=Iz;H=H._attrsArr||(H._attrsArr=rkf(Q.length));for(var p=!H.length||!1,l=0;l<Q.length;l+=2){var q=Q[l];if(p)H[l]=q;else if(H[l]!==q)break;var u=Q[l+1];if(p||H[l+1]!==u)H[l+1]=u,b1o(G,q,u,Z)}if(l<Q.length||l<H.length){for(l=p=l;l<H.length;l+=2)uW[H[l]]=H[l+1];for(l=p;l<Q.length;l+=2)p=Q[l],q=Q[l+1],uW[p]!==q&&b1o(G,p,q,Z),H[l]=p,H[l+1]=q,delete uW[p];Lb(H,Q.length);for(var B in uW)b1o(G,B,void 0,Z),delete uW[B]}G=GER;GER=Z=SK.length;for(B=G;B<Z;B+=5)(0,SK[B])(SK[B+1],SK[B+
2],SK[B+3],SK[B+4]);GER=G;Lb(SK,G);Lb(Q,0)};
sZe=function(G){Akj("#text",null);var H=QP;var Z=GI(H);if(Z.text!==G){Z=Z.text=G;for(var Q=1;Q<arguments.length;Q+=1)Z=(0,arguments[Q])(Z);H.data!==Z&&(H.data=Z)}};
qW2=function(G,H,Z){if(Z===!1&&Z6f.has(H))Ev(G,H,null);else if(H!=="idomKey"&&H!=="skip"&&H!=="skipchildren"&&H!=="children"&&H!=="el")if(H.startsWith("on")){if(H[2]!==":")throw Error("Sb`"+H);if(Z===void 0||Z===null){var Q;(Q=Js.handleError)==null||Q.call.apply(Q,[Js].concat(_.OP(As(Error("Xb`"+H),G.tagName))));G[H]=void 0}else{var p=H.slice(3);Q=iV();if(p==="jsaction"){Z=Array.isArray(Z)?Z:[Z];Z=_.I(Z);for(var l=Z.next();!l.done;l=Z.next()){l=l.value;if(typeof l!=="object"||l===null||typeof l.selfReg!==
"function")throw Error("$b`"+H);l.selfReg(0,G,Q?_.oM:function(){})}}else{if(typeof Z!=="object"||Z===null)throw Error("Yb`"+H+"`"+typeof Z);
if(typeof Z.getFn!=="function")throw Error("Zb`"+H+"`"+Object.keys(Z));if(Z.selfReg)Z.selfReg(0,G,p,Q?_.oM:function(){});
else if(Q&&G["on"+p]===void 0){var q=Z.getFn(0);G.addEventListener(p,q);_.oM(function(){return void G.removeEventListener(p,q)})}else if(Q||!QZb.includes(p))G["on"+p]=Z.getFn(0)}}}else{if(H.startsWith("data-")&&typeof Z==="string")try{Z=pEu(Z)}catch(u){Z="zSoyz"}typeof Z!=="function"||G._disposeEffects!=null?((Q=H.startsWith("prop:"))&&(H=H.slice(5)),Js.enableAttributeSanitization&&(Q&&lZM(G.tagName)||(Z=jAv(G.tagName,H,Z))),H==="style"?("function"==typeof _.Bt&&Z instanceof _.Bt&&(Z=Z.toString()),
giW(G,H,Z)):Q?G[H]=Z:IZo(G,H,Z)):(G._signalProps||(G._signalProps=[]),G._signalValues||(G._signalValues=[]),G._signalProps.push(H))}};
SWb=function(G,H,Z){Z=(Z===void 0?{}:Z).isReactive;if(H==null?0:H.el){var Q=H.el,p;(p=Q.onRender)==null||p.call(Q,G);G._disposeRef||(G._disposeRef=function(){var l;(l=Q.onUnmount)==null||l.call(Q);delete G._disposeRef},Z&&_.oM(function(){var l;
(l=G._disposeRef)==null||l.call(G)}))}};
lZM=function(G){return G.length>0&&G.includes("-")&&!urf.includes(G.toLowerCase())};
Bgf=function(G){return ts(G)&&Je in G};
Jco=function(G){return Bgf(G)?G[Je].flattened:G};
tnf=function(G,H){var Z=_.Ry.apply(2,arguments),Q;H=(Q=H)!=null?Q:{};Q={};return Q.type=G,Q.props=H,Q.children=Z,Q[te]=!0,Q};
_.kI=function(G){return G.children};
D2=function(G){var H=kEM!==tnf;kEM=G?D23:tnf;return H};
_.dO=function(G){return _.AM(G)?"nodeType"in G:!1};
eK=function(){return document.createTextNode("")};
nl=function(G){G=document.createTextNode(String(G));G._isSignalTextNode=!0;return G};
eMf=function(G){return G!=null&&G.contentKind===$I||G instanceof xY||d2b(G)};
niW=function(G){var H=document.createElement("div");if(d2b(G)&&T7o(G))_.Is(H,T7o(G));else if(G instanceof xY)_.Is(H,G);else if(G!=null&&G.contentKind===$I){if(G.contentKind!==$I)throw Error("Wb");G=Lq(G.toString());_.Is(H,G)}G=_.I(H.childNodes);for(var Z=G.next();!Z.done;Z=G.next())Z.value._isSafeOrSanitizedHtmlNode=!0;return H};
XU=function(G){G=typeof G;return G==="string"||G==="number"||G==="boolean"};
VnX=function(G){return G instanceof Kq||Cq(G)||G instanceof uE||"function"==typeof _.Bt&&G instanceof _.Bt};
$2M=function(G,H){var Z=G.parentElement;if(!Z)return H;Z.replaceChild(H,G);return H};
XEo=function(G,H){var Z=G[0].parentElement;if(Z)if(G[0].previousSibling||G[G.length-1].nextSibling){Z.insertBefore(H,G[0]);for(var Q=G.length-1;Q>=0;Q--)Z.removeChild(G[Q])}else Z.textContent="",Z.appendChild(H);return H};
cc3=function(G,H){if(G[0].parentElement)for(var Z=G[0].parentElement,Q=H.length,p=G.length,l=Q,q=0,u=0,B=G[p-1].nextSibling,t=null;q<p||u<l;)if(G[q]===H[u])q++,u++;else{for(;G[p-1]===H[l-1];)p--,l--;if(p===q)for(var D=l<Q?u?H[u-1].nextSibling:H[l-u]:B;u<l;){var d=H[u++];Z.insertBefore(d,D)}else if(l===u)for(;q<p;)D=G[q],t&&t.has(D)||Z.removeChild(D),q++;else if(G[q]===H[l-1]&&H[u]===G[p-1])D=G[--p].nextSibling,Z.insertBefore(H[u++],G[q++].nextSibling),Z.insertBefore(H[--l],D),G[p]=H[l];else{if(!t)for(t=
new Map,D=u;D<l;)t.set(H[D],D++);D=t.get(G[q]);if(D==null)Z.removeChild(G[q]),q++;else if(u<D&&D<l){d=q;for(var e=1,n=void 0;++d<p&&d<l&&(n=t.get(G[d]))!=null&&n===D+e;)e++;if(e>D-u)for(d=G[q];u<D;)Z.insertBefore(H[u++],d);else Z.replaceChild(H[u++],G[q++])}else q++}}return H};
fZo=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("jc`"+G.length+"`"+G.map(TgM).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof _.Z6)){var H,Z;if((H=window)==null?0:(Z=H.trustedTypes)==null?0:Z.isScript(G))throw Error("ic");if(String(G).trim().length===0)return null;throw Error("kc`"+TgM(G));}return G};
vif=function(G,H){H=fZo(H);H!==null&&_.lE(G,H)};
W_u=function(G){if(Array.isArray(G)){if(G.length>1)throw Error("lc`"+G.length+"`"+G.map(TgM).join(", "));G=G[0]}if(G==null)return null;if(!(G instanceof uE)){if(String(G).trim().length===0)return null;throw Error("mc`"+TgM(G));}return G};
zMR=function(G,H){H=W_u(H);H!==null&&(G.textContent=D_j(H))};
TgM=function(G){return"("+typeof G+") "+(G!=null&&typeof G==="object"?G.constructor.name:typeof G)+" "+G};
K_R=function(){};
fl=function(G,H){H=H===void 0?{}:H;var Z=Mnb(),Q=!0,p,l=!!Js.legacyTriggerSoyRendererEvents;l&&(p=r33());_.RM(function(){var q=!Q&&H.isControlFlowComponent&&l,u=q?Z[Je].flattened[0].parentElement:void 0;Q=!1;_.ct.setUp();H.isControlFlowComponent&&PS++;var B=Z[0],t=Z[Je].flattened,D=D2(!0);try{var d=G(),e=jZf(B,d,Z);Array.isArray(e)||(Z[Je].flattened=[e]);var n=Z[Je].flattened;if(t&&(!Array.isArray(t)||t.length!==0)){var c=Array.isArray(t)?t[0]:t,W=c[TI],M=c._disposeEffects;c._disposeEffects=void 0;
c=Array.isArray(n)?n[0]:n;c[TI]=W;c[TI]&&(c[TI].numNodes=c===n?1:n.length);c._disposeEffects=M}Z[0]=e;H.isControlFlowComponent&&wn(!1)}catch(r){throw H.isControlFlowComponent&&wn(!0),r;}finally{D2(D),_.ct.tearDown()}q&&(q=p,q!=null||(q=_.Dhe(document).getAppContext()),q.get(P4j).JSC$29379_getEventTarget().dispatchEvent(new rcR(wEj,u,$I)))},H.debugName);
return Z};
jZf=function(G,H,Z){for(;typeof H==="function";)H=H();if(H!=null&&H[te]){var Q,p,l;(l=Js.handleError)==null||l.call.apply(l,[Js].concat(_.OP(As(Error("nc`"+((Q=H.type)==null?void 0:Q.TAG_NAME)),(p=H.type)==null?void 0:p.TAG_NAME))))}if(G==null)return H==null?eK():XU(H)?nl(H):VnX(H)?nl(H.toString()):_.dO(H)?H:H.length===0?eK():hMX(H,Z);if(_.dO(G)){if(H==null)return $2M(G,eK());if(XU(H))return C4j(G,H);if(VnX(H))return C4j(G,H.toString());if(_.dO(H))return $2M(G,H);if(H.length===0)return $2M(G,eK());
H=hMX(H,Z);cc3([G],Z[Je].flattened);return H}G=vt(G);if(H==null)return XEo(G,eK());if(XU(H))return XEo(G,nl(H));if(VnX(H))return XEo(G,nl(H.toString()));if(_.dO(H))return cc3(G,[H])[0];if(H.length===0)return XEo(G,eK());H=hMX(H,Z);cc3(G,Z[Je].flattened);return H};
C4j=function(G,H){G.nodeType===Node.TEXT_NODE?G.textContent!==String(H)&&(G.textContent=String(H)):G=$2M(G,nl(H));return G};
vt=function(G,H,Z){return i6b(G,H!=null?H:[],Z===void 0?!1:Z)};
hMX=function(G,H){var Z=vt(G,void 0,!0);if(Z.length===0)return eK();H[Je].flattened=Z;return G};
i6b=function(G,H,Z,Q,p){H=H===void 0?[]:H;Z=Z===void 0?!1:Z;p=p===void 0?-1:p;if(G==null)return H;if(G instanceof Wt){var l=G.render();return i6b(l,H,Z,Q,p)}if(_.dO(H)&&H.nodeType===Node.ELEMENT_NODE)switch(H.tagName){case "SCRIPT":vif(H,G);return;case "STYLE":zMR(H,G);return}XU(G)&&(G=nl(G),Q&&Z&&(Q[p]=G));if(eMf(G)){Z=niW(G);Z=Array.from(Z.childNodes);Z=_.I(Z);for(l=Z.next();!l.done;l=Z.next())O6e(H,l.value);return H}VnX(G)&&(G=nl(G.toString()),Q&&Z&&(Q[p]=G));if(_.dO(G))return O6e(H,G);if(Array.isArray(G)){for(l=
0;l<G.length;l++)i6b(G[l],H,Z,G,l);return H}if(typeof G==="function"){l=fl(function(){var u=G();return u!=null&&!XU(u)&&eMf(u)?(u=niW(u),Array.from(u.childNodes)):u},{debugName:"qmF2ne",
debugFn:G})[0];if(Array.isArray(l)){Z=_.I(l);for(l=Z.next();!l.done;l=Z.next())O6e(H,l.value);return H}Q&&Z&&(Q[p]=l);return O6e(H,l)}if(G!=null&&G[te]){Q=G;p=D2(!0);var q=kEM;try{l=q.apply(null,[Q.type,Q.props].concat(_.OP(Q.children)))}finally{D2(p)}return i6b(l,H,Z)}(q=Js.handleError)==null||q.call.apply(q,[Js].concat(_.OP(As(Error("oc")))));return H};
Mnb=function(G){var H={};H=Object.assign([],(H[Je]={flattened:[]},H));if(!G)return H;H[0]=hMX(G,H);return H};
O6e=function(G,H){Array.isArray(G)?G.push(H):G.appendChild(H);return G};
zI=function(G){if(!Js.enableLazyTsx)return G;if(Array.isArray(G)){for(var H=0;H<G.length;H++)G[H]=zI(G[H]);return G}return G instanceof Wt?(G=G.render(),zI(G)):G};
ycR=function(G,H){var Z,Q,p=SSb(G),l=function(n){Q=n;n=D2(!0);var c=D0(Kl);Uhf("render",p);try{Z=zI(G(H))}finally{RIj("render",p),D0(c),D2(n)}};
l=Js.enableContextPerComponent?xho(l,p):mf(l,Js.alwaysTrackContexts||!!IM);ENe(Q);if(!H.renderedFromIdom){var q=_.qf(Q);try{return aZe(G,H,Z),Z}finally{_.qf(q)}}!Bgf(Z)&&Array.isArray(Z)&&(Z=Mnb(Z));var u=Jco(Z);q=Array.isArray(u)?u[0]:u;var B=!1;if(q){var t,D=(t=H==null?void 0:H.idomKey)!=null?t:G;t=u!==q;q._disposeEffects=l;var d=q[TI]||{},e=Bgf(Z)?Z:d.sourceDynamicRange;Object.assign(d,{key:D,numNodes:t?u.length:1,context:Q,higherOrder:!!q[TI],sourceDynamicRange:e});q[TI]=d}else B=!0;(function(){var n=
_.qf(Q);try{aZe(G,H,u)}finally{_.qf(n)}})();
B&&l();return Z};
oie=function(G){var H={},Z;for(Z in G)H={prev$jscomp$24:void 0,next$jscomp$33:void 0},H.prev$jscomp$24=MV[Z],H.next$jscomp$33=G[Z],MV[Z]=function(Q){return function(){var p=_.Ry.apply(0,arguments);Q.prev$jscomp$24.apply(null,_.OP(p));Q.next$jscomp$33.apply(null,_.OP(p))}}(H)};
m2X=function(){if(iV())throw Error("pc");return jK};
U2X=function(G,H){if(!G.__unmounted&&H){G.__unmounted=!0;try{G.didUnmount()}catch(p){var Z,Q;(Q=Js.handleError)==null||Q.call.apply(Q,[Js].concat(_.OP(As(p,(Z=G.__type)==null?void 0:Z.TAG_NAME))))}MV.didUnmount(G);G.el=null;H.__instance&&delete H.__instance}};
Ngj=function(G,H,Z){G._signalProps!=null&&G._disposeEffects==null&&((Z===void 0?0:Z)?G._disposeEffects=mf(function(){return void RMo(G,H)},Js.alwaysTrackContexts||!!IM):RMo(G,H))};
RMo=function(G,H){_.RM(function(){for(var Z=G._signalProps,Q=G._signalValues,p=0;p<Z.length;p++){var l=Z[p],q=H[l]();Q[p]!==q&&(Q[p]=q,qW2(G,l,q))}},"e3YVbb")};
Ac3=function(G,H,Z){var Q,p=[];G._disposeEffects=mf(function(){_.RM(function(){var l=Z();if(l===null||l===void 0)l="";if(XU(l)||l===null)Q!=null||(Q=document.createTextNode("")),Q.parentNode!==G&&(Q._isSignalTextNode=!0,G.insertBefore(Q,H)),Q.textContent=String(l);else if(eMf(l)){for(var q=p.length>0?p[p.length-1].nextSibling:H,u=_.I(p),B=u.next();!B.done;B=u.next())G.removeChild(B.value);l=niW(l);p=Array.from(l.childNodes);l=_.I(p);for(u=l.next();!u.done;u=l.next())G.insertBefore(u.value,q)}else throw B=
(u=(q=hs)==null?void 0:q.name)!=null?u:"unknown",Error("ec`"+B+"`"+typeof l);},"VvDgC")},Js.alwaysTrackContexts||!!IM)};
Ei3=function(G,H){var Z=_.Ry.apply(2,arguments);H!=null||(H={});return!Js.enableLazyTsx||hs!=null&&!iV()?x2j(G,H,Z):new L_X(G,H,Z)};
x2j=function(G,H,Z){if(G===_.kI)return Z;if(typeof G==="function")return hs&&!iV()&&(H.renderedFromIdom=!0),uZo(G,function(){var l=YWu(G,H,Z);if(l)return l;Z.length>0&&(H.children=Z.length===1?Z[0]:Z);if(G.componentType===Cb){var q;xho(function(){var u=H;if(G.componentType!==Cb)q=!1;else{u||(u={});var B=new Pt(u,G),t=D0(Kl);try{var D=B.render(u)}finally{D0(t)}D instanceof HTMLElement?(D.__instance=B,B.el=D,B.__type=G,G.TAG_NAME=D.tagName.toLowerCase(),MV.didPatch(B),q=D):q=D}},G.name);
if(q)return q}return ycR(G,H)},H.debugInstance);
var Q=F_2(G,H),p;for(p in H)qW2(Q,p,H[p]);Ngj(Q,H);vt(Z,Q);SWb(Q,H,{isReactive:!0});b63(Q,H);return Q};
F_2=function(G,H){G=(GhX.has(G.toLowerCase())?0:H9u.has(G.startsWith("svg:")?G.replace("svg:",""):G))?document.createElementNS("http://www.w3.org/2000/svg",G.startsWith("svg:")?G.replace("svg:",""):G):sOj(G,H)||document.createElement(G);G[Z9v]=!0;return G};
QOe=function(G){if(G){var H;(H=G._disposeRef)==null||H.call(G);var Z;(Z=G._disposeEffects)==null||Z.call(G);G.__instance&&G.__instance instanceof rO&&(H=G.__instance,U2X(H,G),H instanceof Pt&&H.disposeEffects());for(H=0;H<G.childNodes.length;H++)QOe(G.childNodes[H])}};
lQb=function(G){pfu.push(G)===1&&requestAnimationFrame(function(){setTimeout(function(){var H=[].concat(_.OP(pfu));pfu=[];H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;try{for(var Q=0;Q<Z.length;Q++)QOe(Z[Q])}catch(p){Q=Z=void 0,(Q=(Z=Js).handleError)==null||Q.call.apply(Q,[Z].concat(_.OP(As(p))))}}})})};
_.J=function(G,H){return kEM.apply(null,[G,H].concat(_.OP(_.Ry.apply(2,arguments))))};
_.wO=function(G){return G};
_.he=function(G){return{isDefault:!0,children:G.children}};
_.k=function(G){var H=G.cond;if(H===void 0)return G.else&&G.else();var Z=_.Kb(function(){return!!H()},void 0,"JHVi8"),Q=function(){var p=H();
if(!p){var l;(l=Js.handleError)==null||l.call.apply(l,[Js].concat(_.OP(As(gkj.nonNullableCondIsNull()))))}return p};
return fl(function(){var p=Z(),l;mf(function(){var q=D0(Kl);try{l=zI(p?G.then(Q):G.else&&G.else())}finally{D0(q)}},!0);
return l},{debugName:G.debugInstance,
debugFn:G.then,isControlFlowComponent:!0})};
IQU=function(G){return _.k(G)};
_.Cl=function(G){return G.keyBy==="INDEX"?qlb(G):Slj(G)};
utR=function(G){G=_.I(G);for(var H=G.next();!H.done;H=G.next()){var Z=void 0;(Z=H.value)==null||Z()}};
Slj=function(G){var H=G.keyBy===void 0||G.keyBy==="REFERENCE",Z=H?function(D){return D}:G.keyBy,Q=[],p=[],l=[],q=[],u=[],B=[],t=!0;
_.oM(function(){utR(q)});
return fl(function(){var D=Bj2(G),d=D.length;if(d===0){if(Q.length===0&&!t)return l;utR(q);Q=D;p=[];for(D=0;D<Q.length;D++)p.push(Z(Q[D]));l=[];q=[];u=[];B=[];G.fallback&&(q[0]=JZf(function(){l[0]=zI(G.fallback())}));
t=!1;return l}for(var e=new tuU,n=Q.length-1;n>=0;n--)e.push(p[n],n);n=Array(d);for(var c=Array(d),W=Array(d),M=Array(d),r=Array(H?0:d),w={i$jscomp$450:0};w.i$jscomp$450<d;w={i$jscomp$450:w.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},w.i$jscomp$450++){w.item$jscomp$104=D[w.i$jscomp$450];w.key$jscomp$563=Z(w.item$jscomp$104);var x=e.pop(w.key$jscomp$563);x!=null?(W[w.i$jscomp$450]=l[x],c[w.i$jscomp$450]=p[x],n[w.i$jscomp$450]=q[x],M[w.i$jscomp$450]=u[x],H||(r[w.i$jscomp$450]=B[x]),Mf(function(U){return function(){M[U.i$jscomp$450](U.i$jscomp$450);
if(!H)r[U.i$jscomp$450](U.item$jscomp$104)}}(w)),delete q[x]):n[w.i$jscomp$450]=JZf(function(U){return function(){var R=_.I(_.Ty(U.i$jscomp$450,void 0,"Fqk1zd")),L=R.next().value;
R=R.next().value;M[U.i$jscomp$450]=R;c[U.i$jscomp$450]=U.key$jscomp$563;if(H)W[U.i$jscomp$450]=zI(G.children(U.item$jscomp$104,L));else{var H3=_.I(_.Ty(U.item$jscomp$104,void 0,"GBj5de"));R=H3.next().value;H3=H3.next().value;r[U.i$jscomp$450]=H3;W[U.i$jscomp$450]=zI(G.children(R,L))}}}(w))}utR(q);
Q=D;p=c;l=W;q=n;u=M;B=r;t=!1;return W},{debugName:G.debugInstance,
debugFn:G.each,isControlFlowComponent:!0})};
qlb=function(G){var H=[],Z=[],Q=[],p=[],l=!1;_.oM(function(){for(var q=_.I(p),u=q.next();!u.done;u=q.next())u=u.value,u()});
return fl(function(){var q=Bj2(G);l&&q.length>0&&(p.pop()(),H.pop(),l=!1);for(var u=Array(q.length),B={i$jscomp$451:0};B.i$jscomp$451<q.length;B={i$jscomp$451:B.i$jscomp$451},B.i$jscomp$451++)if(B.i$jscomp$451<H.length)H[B.i$jscomp$451]!==q[B.i$jscomp$451]&&(Mf(function(D){return function(){return void Z[D.i$jscomp$451](q[D.i$jscomp$451])}}(B)),H[B.i$jscomp$451]=q[B.i$jscomp$451]),u[B.i$jscomp$451]=Q[B.i$jscomp$451];
else{var t=JZf(function(D){return function(){H[D.i$jscomp$451]=q[D.i$jscomp$451];var d=_.I(_.Ty(q[D.i$jscomp$451],void 0,"JMMLmd")),e=d.next().value;d=d.next().value;Z[D.i$jscomp$451]=d;u[D.i$jscomp$451]=zI(G.children(e,D.i$jscomp$451))}}(B));
p[B.i$jscomp$451]=t}for(;H.length>q.length;)H.pop(),p.pop()(),Z.pop();q.length===0&&!l&&G.fallback&&(B=JZf(function(){u[0]=zI(G.fallback())}),p[0]=B,l=!0);
return Q=u},{debugName:G.debugInstance,
isControlFlowComponent:!0})};
Bj2=function(G){G=G.each();return Array.isArray(G)?G:Array.from(G)};
JZf=function(G){var H=IM;return mf(function(Z){var Q=D0(Kl);try{Z.parent=H,G(Z)}finally{D0(Q)}},!1)};
_.iW=function(G){var H=khv(G),Z=_.Kb(function(){return D52(H)},void 0,"F1PF4");
return fl(function(){var Q=Z(),p;mf(function(){var l=D0(Kl);try{p=zI(Q())}finally{D0(l)}});
return p},{debugName:G.debugInstance,
isControlFlowComponent:!0})};
khv=function(G){G=G.children;return Array.isArray(G)?G:[G]};
d5j=function(G){var H=G.props;G=G.getChildren()[0];return H.when?{when:H.when,children:G}:{isDefault:!0,children:G}};
D52=function(G){var H=function(){return null};
G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z!=null&&Z[te]&&(Z=Z.type===_.he?{isDefault:!0,children:Z.children[0]}:{when:Z.props.when,children:Z.children[0]}),Z instanceof Wt&&(Z=d5j(Z)),Z.isDefault)H=Z.children;else if(Z.when())return Z.children;return H};
nkf=function(G){var H=null,Z,Q={get value(){var l,q;(q=(l=p).validateGetValue)==null||q.call(l);return p.__value},set value(l){var q,u;(u=(q=p).validateSetValue)==null||u.call(q,l);p.__value=l;p.__hasBeenSet=!0}},p=(Q.__value=null,Q.__hasBeenSet=!1,Q.__hasErrored=!1,Q.onRender=function(l){if(Z&&l!==Z){Z._disposeRef=void 0;var q;(q=H)==null||q()}Z=l;H=G(l)||null},Q.onUnmount=function(){var l;
(l=H)==null||l();H=p.value=null},Q[_.evW]=!0,Q);
return p};
OJ=function(G){return typeof G==="symbol"};
$5f=function(G){var H=m2X();if(H==null)throw _.Vuo.PRIMITIVE_INVALID_HOOK_CALL();var Z=H.hookCounter++;H.hooks||(H.hooks=[]);var Q=H.hooks;Q[Z]||(Q[Z]={key:G,host:H});if(G!==Q[Z].key){if(H.__type){var p;G=(p=H.__type)==null?void 0:p.name}else G=H instanceof Pt?SSb(H.functionComponent):"<"+H.el.tagName.toLowerCase()+">";throw _.Vuo.OUT_OF_ORDER_HOOK_CALL(G);}return Q[Z]};
Xfv=function(G,H){return!G||G.length!==(H==null?void 0:H.length)||G.some(function(Z,Q){return Z!==H[Q]})};
cZv=function(G,H){var Z=$5f("onChange"),Q=m2X();Xfv(Z.deps,H)&&(Z.deps=H,Z.pendingEffect=G,Q.__syncEffects||(Q.__syncEffects=[]),Q.__syncEffects.push(Z))};
_.az=function(G,H,Z){Z!=null||(Z={});Z=Z.appContext;var Q=!!Js.legacyTriggerSoyRendererEvents;_.ct.setUp();try{var p=Tju(G,H,Z);Q&&(H=Z,H!=null||(H=_.Dhe(document).getAppContext()),H.get(P4j).JSC$29379_getEventTarget().dispatchEvent(new rcR(fQb,G,$I)));_.ct.log(G);return p}finally{_.ct.tearDown()}};
Tju=function(G,H,Z){var Q=aM(function(){var p=D0(Kl);try{return mf(function(){var l=_.Dhe(_.N4(G)),q;var u=P7j({rootElement:{value:G},appContext:Z||(l==null?void 0:(q=l.getOptionalAppContext)==null?void 0:q.call(l)),dispatcher:l});l=_.qf(u);u=D2(!0);PS++;try{vt(H(),G),wn(!1)}catch(B){throw wn(!0),B;}finally{D2(u),_.qf(l)}},!1)}catch(l){throw Js.enableContextBasedComponentStacks&&Ov(l),l;
}finally{D0(p)}});
G[vkj]=!0;return function(){G.textContent="";Q();G[vkj]=!1}};
_.yP=function(G){if(gPe(kF)){var H;(H=Js.handleError)==null||H.call.apply(H,[Js].concat(_.OP(As(Error("dc")))))}var Z=IM,Q=hs;EJj({onInitType:x12,run:function(){if(Z&&!Z.isDisposed){var p=_.qf(Z);try{aM(function(){return void G()},Q)}catch(l){throw Js.enableContextBasedComponentStacks&&Ov(l),l;
}finally{_.qf(p)}}}})};
Wj3=function(G,H){cZv(function(){return _.cS(G)},H)};
_.mR=function(G){iV()?_.yP(function(){_.cS(G)}):cZv(function(){return _.cS(G)},[])};
KjX=function(G){var H=[].concat(_.OP(G));G.length=0;G=_.I(H);for(H=G.next();!H.done;H=G.next()){H=H.value;zvR(H);var Z=H.pendingEffect;H.pendingEffect=null;if(Z=Z==null?void 0:Z())H.pendingCleanup=Z}};
zvR=function(G){var H=G.pendingCleanup;G.pendingCleanup=null;H==null||H()};
Muu=function(G,H){if(iV())return G();var Z=$5f("useMemoInternal");Xfv(Z.deps,H)&&(Z.deps=H,Z.value=G());return Z.value};
jOM=function(G,H){return Muu(G,H)};
UJ=function(G){return Muu(G,[])};
PJj=function(G){return UJ(function(){return{value:G}})};
_.Rz=function(G,H){if(!G)return null;G=Object.keys(G);G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;var Q=Z.toLowerCase();if(Q.indexOf(H,Q.length-H.length)>-1)return Z}return null};
_.Ae=function(){var G=arguments,H=_.NV;G.length>1?H[G[0]]=G[1]:G.length===1&&Object.assign(H,G[0])};
_.xI=function(G,H){return G in _.NV?_.NV[G]:H};
_.YI=function(G,H){return!!_.xI(G,H)};
rZb=function(G){var H=_.NV.EXPERIMENT_FLAGS;return H?H[G]:void 0};
hvf=function(G){wfR.forEach(function(H){return H(G)})};
_.bW=function(G){return G&&window.yterr?function(){try{return G.apply(this,arguments)}catch(H){_.FU(H)}}:G};
_.FU=function(G){var H=_.GF("yt.logging.errors.log");H?H(G,"ERROR",void 0,void 0,void 0,void 0,void 0):(H=_.xI("ERRORS",[]),H.push([G,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Ae("ERRORS",H));hvf(G)};
_.HU=function(G,H,Z,Q,p){var l=_.GF("yt.logging.errors.log");l?l(G,"WARNING",H,Z,Q,void 0,p):(l=_.xI("ERRORS",[]),l.push([G,"WARNING",H,Z,Q,void 0,p]),_.Ae("ERRORS",l))};
i9e=function(G,H){H=G.split(H);for(var Z={},Q=0,p=H.length;Q<p;Q++){var l=H[Q].split("=");if(l.length===1&&l[0]||l.length===2)try{var q=CJM(l[0]||""),u=CJM(l[1]||"");if(q in Z){var B=Z[q];Array.isArray(B)?_.Ru(B,u):Z[q]=[B,u]}else Z[q]=u}catch(e){var t=e,D=l[0],d=String(i9e);t.args=[{key:D,value:l[1],query:G,method:O9f===d?"unchanged":d}];aQv.hasOwnProperty(D)||_.HU(t)}}return Z};
yZb=function(G){var H=[];_.oN.forEach(G,function(Z,Q){var p=_.sd(Q);Z=Array.isArray(Z)?Z:[Z];_.Zk(Z,function(l){l==""?H.push(p):H.push(p+"="+_.sd(l))})});
return H.join("&")};
_.QD=function(G){G.charAt(0)==="?"&&(G=G.substring(1));return i9e(G,"&")};
_.p$=function(G){return G.indexOf("?")!==-1?(G=(G||"").split("#")[0],G=G.split("?",2),_.QD(G.length>1?G[1]:G[0])):{}};
_.l0=function(G,H){return okR(G,H||{},!0)};
m5f=function(G,H){return okR(G,H||{},!1)};
okR=function(G,H,Z){var Q=G.split("#",2);G=Q[0];Q=Q.length>1?"#"+Q[1]:"";var p=G.split("?",2);G=p[0];p=_.QD(p[1]||"");for(var l in H)if(Z||!_.oN.containsKey(p,l))p[l]=H[l];return _.g7(G,p)+Q};
u0=function(G){if(!H)var H=window.location.href;var Z=_.IJ(G)[1]||null,Q=_.qY(G);return Z&&Q?SA(G,H):Q?_.qY(H)===Q&&(Number(_.IJ(H)[4]||null)||null)===(Number(_.IJ(G)[4]||null)||null):!0};
_.Rv3=function(G){G=U53(G);return G===null?!1:G[0]==="com"&&G[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
U53=function(G){G=_.qY(G);return G!==null?G.split(".").reverse():null};
CJM=function(G){return G&&G.match(NjW)?G:BU(G)};
_.Jp=function(G){return new AZ3(G)};
_.tp=function(){x5f||(x5f=new Lj2);return x5f};
Ylj=function(){var G=EkW;return function(){var H=_.tp();if(!H.resolve(_.Jp(G))){var Z={};H.addProvider((Z.provide=G,Z.useClass=G,Z[kM]=void 0,Z))}return H.resolve(G)}};
b9R=function(G){var H=_.Dk,Z,Q;_.S(function(p){Z=_.tp();return(Q=Z.resolve(_.Jp(H)))?(G(Q),p.return(Promise.resolve(Q))):p.return(Z.resolve(new Fjf(H)).then(function(l){G(l);return l}))})};
_.V=function(G){G=d7(G);return typeof G==="string"&&G==="false"?!1:!!G};
_.eA=function(G,H){G=d7(G);return G===void 0&&H!==void 0?H:Number(G||0)};
GDo=function(G){G=d7(G);return Array.isArray(G)?_.mT(G,function(H){return Number(H||0)}):[Number(G||0)]};
_.n$=function(G){G=d7(G);return G!==void 0?String(G):""};
_.$M=function(G){G=d7(G);return Array.isArray(G)?_.mT(G,function(H){return String(H||"")}):[String(G||"")]};
Hov=function(){return _.xI("EXPERIMENTS_TOKEN","")};
d7=function(G){return _.xI("EXPERIMENT_FLAGS",{})[G]};
s52=function(){for(var G=[],H=_.xI("EXPERIMENTS_FORCED_FLAGS",{}),Z=_.I(Object.keys(H)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,G.push({key:Q,value:String(H[Q])});Z=_.xI("EXPERIMENT_FLAGS",{});Q=_.I(Object.keys(Z));for(var p=Q.next();!p.done;p=Q.next())p=p.value,p.startsWith("force_")&&H[p]===void 0&&G.push({key:p,value:String(Z[p])});return G};
Q5f=function(){if(!Zob)return null;var G=Zob();return"open"in G?G:null};
_.pAW=function(G){switch(_.XP(G)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.XP=function(G){return G&&"status"in G?G.status:-1};
_.cU=function(G,H){typeof G==="function"&&(G=_.bW(G));return window.setTimeout(G,H)};
_.TF=function(G,H){typeof G==="function"&&(G=_.bW(G));return window.setInterval(G,H)};
_.f$=function(G){window.clearTimeout(G)};
gKW=function(G){G=_.p$(G);for(var H=_.I(lgo),Z=H.next();!Z.done;Z=H.next())if(G[Z.value]!==void 0)return!0;return!1};
S3U=function(G,H,Z,Q,p,l,q,u,B){Z=Z===void 0?"GET":Z;Q=Q===void 0?"":Q;u=u===void 0?!1:u;var t=Q5f();if(!t)return null;var D=function(){(t&&"readyState"in t?t.readyState:0)===4&&H&&_.bW(H)(t)};
"onloadend"in t?t.addEventListener("loadend",D,!1):t.onreadystatechange=D;_.V("debug_forward_web_query_parameters")&&(G=IgU(G,window.location.search));t.open(Z,G,!0);l&&(t.responseType=l);q&&(t.withCredentials=!0);Z=Z==="POST"&&(window.FormData===void 0||!(Q instanceof FormData));if(p=q33(G,p))for(var d in p)t.setRequestHeader(d,p[d]),"content-type"===d.toLowerCase()&&(Z=!1);Z&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");B&&"onprogress"in t&&(t.onprogress=function(){B(t.responseText)});
if(u&&"setAttributionReporting"in XMLHttpRequest.prototype){G={eventSourceEligible:!0,triggerEligible:!1};try{t.setAttributionReporting(G)}catch(e){_.HU(e)}}t.send(Q);return t};
q33=function(G,H){H=H===void 0?{}:H;var Z=u0(G),Q=_.xI("INNERTUBE_CLIENT_NAME"),p=_.V("web_ajax_ignore_global_headers_if_set"),l;for(l in usv){var q=_.xI(usv[l]),u=l==="X-Goog-AuthUser"||l==="X-Goog-PageId";l!=="X-Goog-Visitor-Id"||q||(q=_.xI("VISITOR_DATA"));var B;if(!(B=!q)){if(!(B=Z||(_.qY(G)?!1:!0))){B=G;var t;if(t=_.V("add_auth_headers_to_remarketing_google_dot_com_ping")&&l==="Authorization"&&(Q==="TVHTML5"||Q==="TVHTML5_UNPLUGGED"||Q==="TVHTML5_SIMPLY"))t=U53(B),t=t===null?!1:t[1]==="google"?
!0:t[2]==="google"?t[0]==="au"&&t[1]==="com"?!0:t[0]==="uk"&&t[1]==="co"?!0:!1:!1;t&&(B=_.vU(B)||"",B=B.split("/"),B="/"+(B.length>1?B[1]:""),t=B==="/pagead");B=t?!0:!1}B=!B}B||p&&H[l]!==void 0||Q==="TVHTML5_UNPLUGGED"&&u||(H[l]=q)}"X-Goog-EOM-Visitor-Id"in H&&"X-Goog-Visitor-Id"in H&&delete H["X-Goog-Visitor-Id"];if(Z||!_.qY(G))H["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(Z||!_.qY(G)){try{var D=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(d){}D&&(H["X-YouTube-Time-Zone"]=
D)}document.location.hostname.endsWith("youtubeeducation.com")||!Z&&_.qY(G)||(H["X-YouTube-Ad-Signals"]=yZb(B8X()));return H};
_.JUj=function(G,H){var Z=_.qY(G);_.V("debug_handle_relative_url_for_query_forward_killswitch")||!Z&&u0(G)&&(Z=document.location.hostname);var Q=_.vU(G);Q=(Z=Z&&(Z.endsWith("youtube.com")||Z.endsWith("youtube-nocookie.com")))&&Q&&Q.startsWith("/api/");if(!Z||Q)return G;var p=_.QD(H),l={};_.Zk(lgo,function(q){p[q]&&(l[q]=p[q])});
return m5f(G,l)};
te3=function(G,H){H.method="POST";H.postParams||(H.postParams={});return _.WU(G,H)};
kDX=function(G,H){var Z=_.xI("XSRF_FIELD_NAME"),Q;H.headers&&(Q=H.headers["Content-Type"]);return!H.excludeXsrf&&(!_.qY(G)||H.withCredentials||_.qY(G)===document.location.hostname)&&H.method==="POST"&&(!Q||Q==="application/x-www-form-urlencoded")&&!(H.postParams&&H.postParams[Z])};
_.WU=function(G,H){var Z=H.format||"JSON";G=Dmu(G,H);var Q=dmb(G,H),p=!1,l=eEX(G,function(B){if(!p){p=!0;u&&_.f$(u);var t=_.pAW(B),D=null,d=400<=B.status&&B.status<500,e=500<=B.status&&B.status<600;if(t||d||e)D=nKX(G,Z,B,H.convertToSafeHtml);t&&(t=Vej(Z,B,D));D=D||{};d=H.context||_.Qf;t?H.onSuccess&&H.onSuccess.call(d,B,D):H.onError&&H.onError.call(d,B,D);H.onFinish&&H.onFinish.call(d,B,D)}},H.method,Q,H.headers,H.responseType,H.withCredentials,!1,H.onProgress);
Q=H.timeout||0;if(H.onTimeout&&Q>0){var q=H.onTimeout;var u=_.cU(function(){p||(p=!0,l.abort(),_.f$(u),q.call(H.context||_.Qf,l))},Q)}return l};
Dmu=function(G,H){H.includeDomain&&(G=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+G);var Z=_.xI("XSRF_FIELD_NAME");if(H=H.urlParams)H[Z]&&delete H[Z],G=_.l0(G,H);return G};
dmb=function(G,H){var Z=_.xI("XSRF_FIELD_NAME"),Q=_.xI("XSRF_TOKEN"),p=H.postBody||"",l=H.postParams;kDX(G,H)&&(l||(l={}),l[Z]=Q);(_.V("ajax_parse_query_data_only_when_filled")&&l&&Object.keys(l).length>0||l)&&typeof p==="string"&&(p=_.QD(p),_.oN.extend(p,l),p=H.postBodyFormat&&H.postBodyFormat==="JSON"?JSON.stringify(p):_.zF(p));l=p||l&&!_.oN.isEmpty(l);!$mU&&l&&H.method!=="POST"&&($mU=!0,_.FU(Error("Jc")));return p};
nKX=function(G,H,Z,Q){var p=null;switch(H){case "JSON":try{var l=Z.responseText}catch(q){throw Q=Error("Kc"),Q.params=G,_.HU(Q),q;}G=Z.getResponseHeader("Content-Type")||"";l&&G.indexOf("json")>=0&&(l.substring(0,5)===")]}'\n"&&(l=l.substring(5)),p=JSON.parse(l));break;case "XML":if(G=(G=Z.responseXML)?XAj(G):null)p={},_.Zk(G.getElementsByTagName("*"),function(q){p[q.tagName]=cUo(q)})}Q&&T8b(p);
return p};
T8b=function(G){if(_.AM(G))for(var H in G)H==="html_content"||Iu(H,"_html")?G[H]=Lq(G[H]):T8b(G[H])};
Vej=function(G,H,Z){if(H&&H.status===204)return!0;switch(G){case "JSON":return!!Z;case "XML":return Number(Z&&Z.return_code)===0;case "RAW":return!0;default:return!!Z}};
XAj=function(G){return G?(G=("responseXML"in G?G.responseXML:G).getElementsByTagName("root"))&&G.length>0?G[0]:null:null};
cUo=function(G){var H="";_.Zk(G.childNodes,function(Z){H+=Z.nodeValue});
return H};
fg3=function(G){if(G.name==="JavaException")return!0;G=G.stack;return G.includes("chrome://")||G.includes("-extension://")||G.includes("webkit-masked-url://")};
vKo=function(G){if(!G.stack)return!0;var H=!G.stack.includes("\n");return H&&G.stack.includes("ErrorType: ")||H&&G.stack.includes("Anonymous function (Unknown script")||G.stack.toLowerCase()==="not available"||G.fileName==="user-script"||G.fileName.startsWith("user-script:")?!0:!1};
_.K$=function(G){_.wI.call(this);this.JSC$10527_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!G};
zEo=function(G,H){var Z=G.length,Q=0,p=function(){return G.charCodeAt(Q++)};
do{var l=Wh3(p);if(l===Infinity)break;var q=l>>3;switch(l&7){case 0:l=Wh3(p);if(q===H)return l;break;case 1:if(q===H)return;Q+=8;break;case 2:l=Wh3(p);if(q===H)return G.substr(Q,l);Q+=l;break;case 5:if(q===H)return;Q+=4;break;default:return}}while(Q<Z)};
Wh3=function(G){var H=G(),Z=H&127;if(H<128)return Z;H=G();Z|=(H&127)<<7;if(H<128)return Z;H=G();Z|=(H&127)<<14;if(H<128)return Z;H=G();return H<128?Z|(H&127)<<21:Infinity};
Me2=function(G,H,Z,Q){if(G)if(Array.isArray(G)){var p=Q;for(Q=0;Q<G.length&&!(G[Q]&&(p+=KhR(Q,G[Q],H,Z),p>500));Q++);Q=p}else if(typeof G==="object")for(p in G){if(G[p]){var l=p;var q=G[p],u=H,B=Z;l=typeof q!=="string"||l!=="clickTrackingParams"&&l!=="trackingParams"?0:(q=zEo(atob(q.replace(/-/g,"+").replace(/_/g,"/")),2))?KhR(l+".ve",q,u,B):0;Q+=l;Q+=KhR(p,G[p],H,Z);if(Q>500)break}}else Z[H]=MY(G),Q+=Z[H].length;else Z[H]=MY(G),Q+=Z[H].length;return Q};
KhR=function(G,H,Z,Q){Z+="."+G;G=MY(H);Q[Z]=G;return Z.length+G.length};
MY=function(G){try{return(typeof G==="string"?G:String(JSON.stringify(G))).substr(0,500)}catch(H){return"unable to serialize "+typeof G+" ("+H.message+")"}};
j5X=function(G){switch(G){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}};
_.PU=function(G,H,Z,Q,p){_.jA.set(G,H,{maxAge:Z,path:"/",domain:Q===void 0?"youtube.com":Q,secure:p===void 0?!1:p})};
_.PfR=function(G,H,Z){_.jA.remove(G,H===void 0?"/":H,Z===void 0?"youtube.com":Z)};
_.r7=function(){if(_.V("embeds_web_enable_cookie_detection_fix")){if(!_.Qf.navigator.cookieEnabled)return!1}else if(!_.jA.isEnabled())return!1;if(!_.jA.isEmpty())return!0;_.V("embeds_web_enable_cookie_detection_fix")?_.jA.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.jA.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.jA.get("TESTCOOKIESENABLED")!=="1")return!1;_.jA.remove("TESTCOOKIESENABLED");return!0};
rUe=function(){var G=_.Qf.navigator;return G?G.connection:void 0};
wAX=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(G){}};
_.CfU=function(){var G=rUe();if(G){var H=hEv[G.type||"unknown"]||"CONN_UNKNOWN";G=hEv[G.effectiveType||"unknown"]||"CONN_UNKNOWN";H==="CONN_CELLULAR_UNKNOWN"&&G!=="CONN_UNKNOWN"&&(H=G);if(H!=="CONN_UNKNOWN")return H;if(G!=="CONN_UNKNOWN")return G}};
Oou=function(){var G=rUe();if(G!=null&&G.effectiveType)return ioj.hasOwnProperty(G.effectiveType)?ioj[G.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.hp=function(){try{return _.w7(),!0}catch(G){return!1}};
_.w7=function(G){if(_.xI("DATASYNC_ID")!==void 0)return _.xI("DATASYNC_ID");throw new _.C$("Datasync ID not set",G===void 0?"unknown":G);};
_.i0=function(G){this.mechanism=G};
Od=function(G){this.mechanism=G};
aJ=function(G){this.storage_=G;this.cachedIsStorageAvailable_=null};
agR=function(){var G=null;try{G=_.Qf.localStorage||null}catch(H){}aJ.call(this,G)};
yUo=function(){var G=null;try{G=_.Qf.sessionStorage||null}catch(H){}aJ.call(this,G)};
yD=function(G,H){this.mechanism_=G;this.JSC$10629_prefix_=H+"::"};
_.oKX=function(G){var H=new agR;return H.isAvailable()?G?new yD(H,G):H:null};
_.mm2=function(G){var H=new yUo;return H.isAvailable()?G?new yD(H,G):H:null};
REM=function(){var G;return(G=Ume())==null?void 0:G.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Ud=function(G){N83||(_.oJ?_.oJ.logError(G):(_.mK.push({type:"ERROR",payload:G}),_.mK.length>10&&_.mK.shift()))};
RJ=function(G,H){N83||(_.oJ?_.oJ.logEvent(G,H):(_.mK.push({type:"EVENT",eventType:G,payload:H}),_.mK.length>10&&_.mK.shift()))};
NY=function(G){if(G.indexOf(":")>=0)throw Error("Rc");};
Ap=function(G){return G.substr(0,G.indexOf(":"))||G};
LhW=function(){return(AUR||xmR)&&xM("applewebkit")&&!xM("version")&&(!xM("safari")||xM("gsa/"))};
xM=function(G){var H=_.nW();return H?H.toLowerCase().indexOf(G)>=0:!1};
FhX=function(G,H,Z,Q){H=Ap(H);var p=G instanceof Error?G:Error("Sc`"+G);if(p instanceof L$)return p;G={objectStoreNames:Z,dbName:H,dbVersion:Q};if(p.name==="QuotaExceededError")return new L$("QUOTA_EXCEEDED",G);if(_.Ed&&p.name==="UnknownError")return new L$("QUOTA_MAYBE_EXCEEDED",G);if(p instanceof EKu)return new L$("MISSING_INDEX",Object.assign({},G,{objectStore:p.objectStore,index:p.index}));if(p.name==="InvalidStateError"&&Y3u.some(function(l){return p.message.includes(l)}))return new L$("EXECUTE_TRANSACTION_ON_CLOSED_DB",
G);
if(p.name==="AbortError")return new L$("UNKNOWN_ABORT",G,p.message);p.args=[Object.assign({},G,{name:"IdbError",originalName:p.name})];p.level="WARNING";return p};
YM=function(G,H,Z){var Q=REM();return new L$("IDB_NOT_SUPPORTED",{context:{caller:G,publicName:H,version:Z,hasSucceededOnce:Q==null?void 0:Q.hasSucceededOnce}})};
bob=function(G){if(!G)throw Error();throw G;};
G9j=function(G){return G};
HN3=function(G,H,Z){var Q=function(){try{G.removeEventListener("success",p),G.removeEventListener("error",l)}catch(q){}},p=function(){H(G.result);
Q()},l=function(){Z(G.error);
Q()};
G.addEventListener("success",p);G.addEventListener("error",l)};
sq2=function(G){return new Promise(function(H,Z){HN3(G,H,Z)})};
GB=function(G){return new FP(new b0(function(H,Z){HN3(G,H,Z)}))};
ZN2=function(G,H){return new FP(new b0(function(Z,Q){var p=function(){var l=G?H(G):null;l?l.then(function(q){G=q;p()},Q):Z()};
p()}))};
Qqj=function(G,H,Z){return new Promise(function(Q,p){var l=H!==void 0?self.indexedDB.open(G,H):self.indexedDB.open(G);var q=Z.blocked,u=Z.blocking,B=Z.terminated,t=Z.upgrade,D=Z.closed,d,e=function(){d||(d=new HP(l.result,{closed:D}));return d};
l.addEventListener("upgradeneeded",function(n){try{if(n.newVersion===null)throw Error("Xc");if(l.transaction===null)throw Error("Yc");n.dataLoss&&n.dataLoss!=="none"&&RJ("IDB_DATA_CORRUPTED",{reason:n.dataLossMessage||"unknown reason",dbName:Ap(G)});var c=e(),W=new si(l.transaction);t&&t(c,function(M){return n.oldVersion<M&&n.newVersion>=M},W);
W.done.catch(function(M){p(M)})}catch(M){p(M)}});
l.addEventListener("success",function(){var n=l.result;u&&n.addEventListener("versionchange",function(){u(e())});
n.addEventListener("close",function(){RJ("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ap(G),dbVersion:n.version});B&&B()});
Q(e())});
l.addEventListener("error",function(){p(l.error)});
q&&l.addEventListener("blocked",function(){q()})})};
pvX=function(G,H,Z){Z=Z===void 0?{}:Z;return Qqj(G,H,Z)};
_.QL=function(G,H){H=H===void 0?{}:H;var Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return _.XV(q,2),Z=self.indexedDB.deleteDatabase(G),Q=H,(p=Q.blocked)&&Z.addEventListener("blocked",function(){p()}),q.yield(sq2(Z),4);
if(q.nextAddress!=2)return _.Za(q,0);l=_.Wg(q);throw FhX(l,G,"",-1);})};
gaR=function(G,H){var Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.pg(lfR,H),2);Z=Q.yieldResult;return Q.return(_.l7(Z,["databases"],{enableRetries:!0,mode:"readwrite"},function(p){var l=p.objectStore("databases");return l.get(G.actualName).then(function(q){if(q?G.actualName!==q.actualName||G.publicName!==q.publicName||G.userIdentifier!==q.userIdentifier:1)return l.put(G).then(function(){})})}))})};
_.gt=function(G,H){var Z;return _.S(function(Q){if(Q.nextAddress==1)return G?Q.yield(_.pg(lfR,H),2):Q.return();Z=Q.yieldResult;return Q.return(Z.delete("databases",G))})};
_.If2=function(G,H){var Z,Q;return _.S(function(p){return p.nextAddress==1?(Z=[],p.yield(_.pg(lfR,H),2)):p.nextAddress!=3?(Q=p.yieldResult,p.yield(_.l7(Q,["databases"],{enableRetries:!0,mode:"readonly"},function(l){Z.length=0;return I1(l.objectStore("databases"),{},function(q){G(q.getValue())&&Z.push(q.getValue());return q.continue()})}),3)):p.return(Z)})};
q7o=function(G,H){return _.If2(function(Z){return Z.publicName===G&&Z.userIdentifier!==void 0},H)};
BcU=function(){var G,H,Z,Q;return _.S(function(p){switch(p.nextAddress){case 1:G=REM();if((H=G)==null?0:H.hasSucceededOnce)return p.return(!0);var l;if(l=S7f)l=/WebKit\/([0-9]+)/.exec(_.nW()),l=!!(l&&parseInt(l[1],10)>=600);l&&(l=/WebKit\/([0-9]+)/.exec(_.nW()),l=!(l&&parseInt(l[1],10)>=602));if(l||qh)return p.return(!1);try{if(Z=self,!(Z.indexedDB&&Z.IDBIndex&&Z.IDBKeyRange&&Z.IDBObjectStore))return p.return(!1)}catch(q){return p.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return p.return(!1);
_.XV(p,2);Q={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return p.yield(gaR(Q,u8o),4);case 4:return p.yield(_.gt("yt-idb-test-do-not-use",u8o),5);case 5:return p.return(!0);case 2:return _.Wg(p),p.return(!1)}})};
tSR=function(){if(JyX!==void 0)return JyX;N83=!0;return JyX=BcU().then(function(G){N83=!1;var H;if((H=Ume())!=null&&H.hasLocalStorage()){var Z;H={hasSucceededOnce:((Z=REM())==null?void 0:Z.hasSucceededOnce)||G};var Q;(Q=Ume())==null||Q.set("LAST_RESULT_ENTRY_KEY",H,2592E3,!0)}return G})};
Sd=function(){return _.GF("ytglobal.idbToken_")||void 0};
_.BP=function(){var G=Sd();return G?Promise.resolve(G):tSR().then(function(H){(H=H?u8o:void 0)&&_.u7("ytglobal.idbToken_",H);return H})};
k9M=function(G){if(!_.hp())throw G=new L$("AUTH_INVALID",{dbName:G}),_.Ud(G),G;var H=_.w7();return{actualName:G+":"+H,publicName:G,userIdentifier:H}};
DvM=function(G,H,Z,Q){var p,l,q,u,B,t;return _.S(function(D){switch(D.nextAddress){case 1:return l=(p=Error().stack)!=null?p:"",D.yield(_.BP(),2);case 2:q=D.yieldResult;if(!q)throw u=YM("openDbImpl",G,H),_.V("ytidb_async_stack_killswitch")||(u.stack=u.stack+"\n"+l.substring(l.indexOf("\n")+1)),_.Ud(u),u;NY(G);B=Z?{actualName:G,publicName:G,userIdentifier:void 0}:k9M(G);_.XV(D,3);return D.yield(gaR(B,q),5);case 5:return D.yield(pvX(B.actualName,H,Q),6);case 6:return D.return(D.yieldResult);case 3:return t=
_.Wg(D),_.XV(D,7),D.yield(_.gt(B.actualName,q),9);case 9:_.Za(D,8);break;case 7:_.Wg(D);case 8:throw t;}})};
dvX=function(G,H,Z){Z=Z===void 0?{}:Z;return DvM(G,H,!1,Z)};
e8j=function(G,H,Z){Z=Z===void 0?{}:Z;return DvM(G,H,!0,Z)};
naf=function(G,H){H=H===void 0?{}:H;var Z,Q;return _.S(function(p){if(p.nextAddress==1)return p.yield(_.BP(),2);if(p.nextAddress!=3){Z=p.yieldResult;if(!Z)return p.return();NY(G);Q=k9M(G);return p.yield(_.QL(Q.actualName,H),3)}return p.yield(_.gt(Q.actualName,Z),0)})};
VSb=function(G,H,Z){G=G.map(function(Q){return _.S(function(p){return p.nextAddress==1?p.yield(_.QL(Q.actualName,H),2):p.yield(_.gt(Q.actualName,Z),0)})});
return Promise.all(G).then(function(){})};
$vU=function(G){var H=H===void 0?{}:H;var Z,Q;return _.S(function(p){if(p.nextAddress==1)return p.yield(_.BP(),2);if(p.nextAddress!=3){Z=p.yieldResult;if(!Z)return p.return();NY(G);return p.yield(q7o(G,Z),3)}Q=p.yieldResult;return p.yield(VSb(Q,H,Z),0)})};
Xvj=function(G,H){H=H===void 0?{}:H;var Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.BP(),2);if(Q.nextAddress!=3){Z=Q.yieldResult;if(!Z)return Q.return();NY(G);return Q.yield(_.QL(G,H),3)}return Q.yield(_.gt(G,Z),0)})};
J3=function(G,H){return cy3(G,H)};
ff2=function(G){return _.pg(TcM(),G)};
vaR=function(G,H,Z,Q){var p,l,q;return _.S(function(u){switch(u.nextAddress){case 1:return p={config:G,hashData:H,timestamp:Q!==void 0?Q:(0,_.t3)()},u.yield(ff2(Z),2);case 2:return l=u.yieldResult,u.yield(l.clear("hotConfigStore"),3);case 3:return u.yield(l.put("hotConfigStore",p),4);case 4:return q=u.yieldResult,u.return(q)}})};
Wmv=function(G,H,Z,Q,p){var l,q,u;return _.S(function(B){switch(B.nextAddress){case 1:return l={config:G,hashData:H,configData:Z,timestamp:p!==void 0?p:(0,_.t3)()},B.yield(ff2(Q),2);case 2:return q=B.yieldResult,B.yield(q.clear("coldConfigStore"),3);case 3:return B.yield(q.put("coldConfigStore",l),4);case 4:return u=B.yieldResult,B.return(u)}})};
z8R=function(G){var H,Z;return _.S(function(Q){return Q.nextAddress==1?Q.yield(ff2(G),2):Q.nextAddress!=3?(H=Q.yieldResult,Z=void 0,Q.yield(_.l7(H,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(p){return _.kN(p.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(l){Z=l.getValue()})}),3)):Q.return(Z)})};
KmU=function(G){var H,Z;return _.S(function(Q){return Q.nextAddress==1?Q.yield(ff2(G),2):Q.nextAddress!=3?(H=Q.yieldResult,Z=void 0,Q.yield(_.l7(H,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(p){return _.kN(p.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(l){Z=l.getValue()})}),3)):Q.return(Z)})};
MSj=function(){return _.S(function(G){return G.yield($vU("ytGcfConfig"),0)})};
jq3=function(){return"INNERTUBE_API_KEY"in _.NV&&"INNERTUBE_API_VERSION"in _.NV};
_.Da=function(){return{innertubeApiKey:_.xI("INNERTUBE_API_KEY"),innertubeApiVersion:_.xI("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.xI("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.xI("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.xI("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.xI("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.xI("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.xI("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.xI("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.YI("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.YI("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.xI("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.ON2=function(G){var H={client:{hl:G.innertubeContextHostLanguage,gl:G.innertubeContextGeoLocation,clientName:G.innertubeContextClientName,clientVersion:G.innertubeContextClientVersion,configInfo:G.innertubeContextClientConfigInfo}};navigator.userAgent&&(H.client.userAgent=String(navigator.userAgent));var Z=_.Qf.devicePixelRatio;Z&&Z!=1&&(H.client.screenDensityFloat=String(Z));Z=Hov();Z!==""&&(H.client.experimentsToken=Z);Z=s52();Z.length>0&&(H.request={internalExperimentFlags:Z});PXj(G,void 0,H);
ryu(void 0,H);wvb(void 0,H);h8j(G,void 0,H);CXb(void 0,H);_.V("start_client_gcf")&&iNe(void 0,H);_.xI("DELEGATED_SESSION_ID")&&!_.V("pageid_as_header_web")&&(H.user={onBehalfOfUser:_.xI("DELEGATED_SESSION_ID")});!_.V("fill_delegate_context_in_gel_killswitch")&&(G=_.xI("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(H.user=Object.assign({},H.user,{serializedDelegationContext:G}));G=_.xI("INNERTUBE_CONTEXT");var Q;if(_.V("enable_persistent_device_token")&&(G==null?0:(Q=G.client)==null?0:Q.rolloutToken)){var p;
H.client.rolloutToken=G==null?void 0:(p=G.client)==null?void 0:p.rolloutToken}Q=Object;p=Q.assign;G=H.client;Z={};for(var l=_.I(Object.entries(_.QD(_.xI("DEVICE","")))),q=l.next();!q.done;q=l.next()){var u=_.I(q.value);q=u.next().value;u=u.next().value;q==="cbrand"?Z.deviceMake=u:q==="cmodel"?Z.deviceModel=u:q==="cbr"?Z.browserName=u:q==="cbrver"?Z.browserVersion=u:q==="cos"?Z.osName=u:q==="cosver"?Z.osVersion=u:q==="cplatform"&&(Z.platform=u)}H.client=p.call(Q,G,Z);return H};
PXj=function(G,H,Z){G=G.innertubeContextClientName;if(G==="WEB"||G==="MWEB"||G===1||G===2)if(H){Z=_.dt(H,afW,96)||new afW;var Q=yye();Q=Object.keys(oaW).indexOf(Q);Q=Q===-1?null:Q;Q!==null&&_.ed(Z,3,Q);_.fq(H,96,Z)}else Z&&(Z.client.mainAppWebInfo=(Q=Z.client.mainAppWebInfo)!=null?Q:{},Z.client.mainAppWebInfo.webDisplayMode=yye())};
ryu=function(G,H){var Z=_.GF("yt.embedded_player.embed_url");Z&&(G?(H=_.dt(G,mvf,7)||new mvf,_.ha(H,4,Z),_.fq(G,7,H)):H&&(H.thirdParty={embedUrl:Z}))};
wvb=function(G,H){var Z;if(_.V("web_log_memory_total_kbytes")&&((Z=_.Qf.navigator)==null?0:Z.deviceMemory)){var Q;Z=(Q=_.Qf.navigator)==null?void 0:Q.deviceMemory;G?_.ng(G,95,t6(Z*1E6)):H&&(H.client.memoryTotalKbytes=""+Z*1E6)}};
h8j=function(G,H,Z){if(G.appInstallData)if(H){var Q;Z=(Q=_.dt(H,VL,62))!=null?Q:new VL;_.ha(Z,6,G.appInstallData);_.fq(H,62,Z)}else Z&&(Z.client.configInfo=Z.client.configInfo||{},Z.client.configInfo.appInstallData=G.appInstallData)};
CXb=function(G,H){var Z=_.CfU();Z&&(G?_.ed(G,61,UvR[Z]):H&&(H.client.connectionType=Z));_.V("web_log_effective_connection_type")&&(Z=Oou())&&(G?_.ed(G,94,R8u[Z]):H&&(H.client.effectiveConnectionType=Z))};
_.xv2=function(G,H,Z){Z=Z===void 0?{}:Z;var Q={};_.xI("EOM_VISITOR_DATA")?Q={"X-Goog-EOM-Visitor-Id":_.xI("EOM_VISITOR_DATA")}:Q={"X-Goog-Visitor-Id":Z.visitorData||_.xI("VISITOR_DATA","")};if(H&&H.includes("www.youtube-nocookie.com"))return Q;H=Z.authorization||_.xI("AUTHORIZATION");H||(G?H="Bearer "+_.GF("gapi.auth.getToken")().access_token:(Ncj.instance||(Ncj.instance=new Ncj),G=Ay3(),_.V("pageid_as_header_web")||delete G["X-Goog-PageId"],Q=Object.assign({},Q,G)));H&&(Q.Authorization=H);return Q};
iNe=function(G,H){var Z=Lmj();if(Z){var Q=Z.coldConfigData,p=Z.coldHashData;Z=Z.hotHashData;if(G){var l;H=(l=_.dt(G,VL,62))!=null?l:new VL;Q=_.ha(H,1,Q);_.ha(Q,3,p).setHotHashData(Z);_.fq(G,62,H)}else H&&(H.client.configInfo=H.client.configInfo||{},Q&&(H.client.configInfo.coldConfigData=Q),p&&(H.client.configInfo.coldHashData=p),Z&&(H.client.configInfo.hotHashData=Z))}};
$N=function(G){for(var H=G.length;--H>=0;)G[H]=0};
EaW=function(G,H,Z,Q,p){this.static_tree=G;this.extra_bits=H;this.extra_base=Z;this.elems=Q;this.max_length=p;this.has_stree=G&&G.length};
Y7X=function(G,H){this.dyn_tree=G;this.max_code=0;this.stat_desc=H};
Xq=function(G,H){G.pending_buf[G.pending++]=H&255;G.pending_buf[G.pending++]=H>>>8&255};
cP=function(G,H,Z){G.bi_valid>16-Z?(G.bi_buf|=H<<G.bi_valid&65535,Xq(G,G.bi_buf),G.bi_buf=H>>16-G.bi_valid,G.bi_valid+=Z-16):(G.bi_buf|=H<<G.bi_valid&65535,G.bi_valid+=Z)};
TB=function(G,H,Z){cP(G,Z[H*2],Z[H*2+1])};
Fmv=function(G,H){var Z=0;do Z|=G&1,G>>>=1,Z<<=1;while(--H>0);return Z>>>1};
bN2=function(G,H,Z){var Q=Array(16),p=0,l;for(l=1;l<=15;l++)Q[l]=p=p+Z[l-1]<<1;for(Z=0;Z<=H;Z++)p=G[Z*2+1],p!==0&&(G[Z*2]=Fmv(Q[p]++,p))};
Gzb=function(G){var H;for(H=0;H<286;H++)G.dyn_ltree[H*2]=0;for(H=0;H<30;H++)G.dyn_dtree[H*2]=0;for(H=0;H<19;H++)G.bl_tree[H*2]=0;G.dyn_ltree[512]=1;G.opt_len=G.static_len=0;G.last_lit=G.matches=0};
H3u=function(G){G.bi_valid>8?Xq(G,G.bi_buf):G.bi_valid>0&&(G.pending_buf[G.pending++]=G.bi_buf);G.bi_buf=0;G.bi_valid=0};
s_R=function(G,H,Z){H3u(G);Xq(G,Z);Xq(G,~Z);fg.arraySet(G.pending_buf,G.window,H,Z,G.pending);G.pending+=Z};
Z3M=function(G,H,Z,Q){var p=H*2,l=Z*2;return G[p]<G[l]||G[p]===G[l]&&Q[H]<=Q[Z]};
Q_U=function(G,H,Z){for(var Q=G.heap[Z],p=Z<<1;p<=G.heap_len;){p<G.heap_len&&Z3M(H,G.heap[p+1],G.heap[p],G.depth)&&p++;if(Z3M(H,Q,G.heap[p],G.depth))break;G.heap[Z]=G.heap[p];Z=p;p<<=1}G.heap[Z]=Q};
qDv=function(G,H,Z){var Q=0;if(G.last_lit!==0){do{var p=G.pending_buf[G.d_buf+Q*2]<<8|G.pending_buf[G.d_buf+Q*2+1];var l=G.pending_buf[G.l_buf+Q];Q++;if(p===0)TB(G,l,H);else{var q=vP[l];TB(G,q+256+1,H);var u=p$2[q];u!==0&&(l-=lpR[q],cP(G,l,u));p--;q=p<256?WP[p]:WP[256+(p>>>7)];TB(G,q,Z);u=gTu[q];u!==0&&(p-=Ipu[q],cP(G,p,u))}}while(Q<G.last_lit)}TB(G,256,H)};
SDv=function(G,H){var Z=H.dyn_tree,Q=H.stat_desc.static_tree,p=H.stat_desc.has_stree,l=H.stat_desc.elems,q,u=-1;G.heap_len=0;G.heap_max=573;for(q=0;q<l;q++)Z[q*2]!==0?(G.heap[++G.heap_len]=u=q,G.depth[q]=0):Z[q*2+1]=0;for(;G.heap_len<2;){var B=G.heap[++G.heap_len]=u<2?++u:0;Z[B*2]=1;G.depth[B]=0;G.opt_len--;p&&(G.static_len-=Q[B*2+1])}H.max_code=u;for(q=G.heap_len>>1;q>=1;q--)Q_U(G,Z,q);B=l;do q=G.heap[1],G.heap[1]=G.heap[G.heap_len--],Q_U(G,Z,1),Q=G.heap[1],G.heap[--G.heap_max]=q,G.heap[--G.heap_max]=
Q,Z[B*2]=Z[q*2]+Z[Q*2],G.depth[B]=(G.depth[q]>=G.depth[Q]?G.depth[q]:G.depth[Q])+1,Z[q*2+1]=Z[Q*2+1]=B,G.heap[1]=B++,Q_U(G,Z,1);while(G.heap_len>=2);G.heap[--G.heap_max]=G.heap[1];q=H.dyn_tree;B=H.max_code;Q=H.stat_desc.static_tree;p=H.stat_desc.has_stree;l=H.stat_desc.extra_bits;var t=H.stat_desc.extra_base,D=H.stat_desc.max_length,d,e=0;for(d=0;d<=15;d++)G.bl_count[d]=0;q[G.heap[G.heap_max]*2+1]=0;for(H=G.heap_max+1;H<573;H++){var n=G.heap[H];d=q[q[n*2+1]*2+1]+1;d>D&&(d=D,e++);q[n*2+1]=d;if(!(n>
B)){G.bl_count[d]++;var c=0;n>=t&&(c=l[n-t]);var W=q[n*2];G.opt_len+=W*(d+c);p&&(G.static_len+=W*(Q[n*2+1]+c))}}if(e!==0){do{for(d=D-1;G.bl_count[d]===0;)d--;G.bl_count[d]--;G.bl_count[d+1]+=2;G.bl_count[D]--;e-=2}while(e>0);for(d=D;d!==0;d--)for(n=G.bl_count[d];n!==0;)Q=G.heap[--H],Q>B||(q[Q*2+1]!==d&&(G.opt_len+=(d-q[Q*2+1])*q[Q*2],q[Q*2+1]=d),n--)}bN2(Z,u,G.bl_count)};
u92=function(G,H,Z){var Q,p=-1,l=H[1],q=0,u=7,B=4;l===0&&(u=138,B=3);H[(Z+1)*2+1]=65535;for(Q=0;Q<=Z;Q++){var t=l;l=H[(Q+1)*2+1];++q<u&&t===l||(q<B?G.bl_tree[t*2]+=q:t!==0?(t!==p&&G.bl_tree[t*2]++,G.bl_tree[32]++):q<=10?G.bl_tree[34]++:G.bl_tree[36]++,q=0,p=t,l===0?(u=138,B=3):t===l?(u=6,B=3):(u=7,B=4))}};
BTW=function(G,H,Z){var Q,p=-1,l=H[1],q=0,u=7,B=4;l===0&&(u=138,B=3);for(Q=0;Q<=Z;Q++){var t=l;l=H[(Q+1)*2+1];if(!(++q<u&&t===l)){if(q<B){do TB(G,t,G.bl_tree);while(--q!==0)}else t!==0?(t!==p&&(TB(G,t,G.bl_tree),q--),TB(G,16,G.bl_tree),cP(G,q-3,2)):q<=10?(TB(G,17,G.bl_tree),cP(G,q-3,3)):(TB(G,18,G.bl_tree),cP(G,q-11,7));q=0;p=t;l===0?(u=138,B=3):t===l?(u=6,B=3):(u=7,B=4)}}};
J0u=function(G){var H=4093624447,Z;for(Z=0;Z<=31;Z++,H>>>=1)if(H&1&&G.dyn_ltree[Z*2]!==0)return 0;if(G.dyn_ltree[18]!==0||G.dyn_ltree[20]!==0||G.dyn_ltree[26]!==0)return 1;for(Z=32;Z<256;Z++)if(G.dyn_ltree[Z*2]!==0)return 1;return 0};
zB=function(G,H,Z){G.pending_buf[G.d_buf+G.last_lit*2]=H>>>8&255;G.pending_buf[G.d_buf+G.last_lit*2+1]=H&255;G.pending_buf[G.l_buf+G.last_lit]=Z&255;G.last_lit++;H===0?G.dyn_ltree[Z*2]++:(G.matches++,H--,G.dyn_ltree[(vP[Z]+256+1)*2]++,G.dyn_dtree[(H<256?WP[H]:WP[256+(H>>>7)])*2]++);return G.last_lit===G.lit_bufsize-1};
Mh=function(G,H){G.msg=Kg[H];return H};
jd=function(G){for(var H=G.length;--H>=0;)G[H]=0};
PP=function(G){var H=G.state,Z=H.pending;Z>G.avail_out&&(Z=G.avail_out);Z!==0&&(fg.arraySet(G.output,H.pending_buf,H.pending_out,Z,G.next_out),G.next_out+=Z,H.pending_out+=Z,G.total_out+=Z,G.avail_out-=Z,H.pending-=Z,H.pending===0&&(H.pending_out=0))};
h3=function(G,H){var Z=G.block_start>=0?G.block_start:-1,Q=G.strstart-G.block_start,p=0;if(G.level>0){G.strm.data_type===2&&(G.strm.data_type=J0u(G));SDv(G,G.l_desc);SDv(G,G.d_desc);u92(G,G.dyn_ltree,G.l_desc.max_code);u92(G,G.dyn_dtree,G.d_desc.max_code);SDv(G,G.bl_desc);for(p=18;p>=3&&G.bl_tree[tX2[p]*2+1]===0;p--);G.opt_len+=3*(p+1)+5+5+4;var l=G.opt_len+3+7>>>3;var q=G.static_len+3+7>>>3;q<=l&&(l=q)}else l=q=Q+5;if(Q+4<=l&&Z!==-1)cP(G,H?1:0,3),s_R(G,Z,Q);else if(G.strategy===4||q===l)cP(G,2+(H?
1:0),3),qDv(G,rt,wt);else{cP(G,4+(H?1:0),3);Z=G.l_desc.max_code+1;Q=G.d_desc.max_code+1;p+=1;cP(G,Z-257,5);cP(G,Q-1,5);cP(G,p-4,4);for(l=0;l<p;l++)cP(G,G.bl_tree[tX2[l]*2+1],3);BTW(G,G.dyn_ltree,Z-1);BTW(G,G.dyn_dtree,Q-1);qDv(G,G.dyn_ltree,G.dyn_dtree)}Gzb(G);H&&H3u(G);G.block_start=G.strstart;PP(G.strm)};
Cg=function(G,H){G.pending_buf[G.pending++]=H};
i7=function(G,H){G.pending_buf[G.pending++]=H>>>8&255;G.pending_buf[G.pending++]=H&255};
kzM=function(G,H){var Z=G.max_chain_length,Q=G.strstart,p=G.prev_length,l=G.nice_match,q=G.strstart>G.w_size-262?G.strstart-(G.w_size-262):0,u=G.window,B=G.w_mask,t=G.prev,D=G.strstart+258,d=u[Q+p-1],e=u[Q+p];G.prev_length>=G.good_match&&(Z>>=2);l>G.lookahead&&(l=G.lookahead);do{var n=H;if(u[n+p]===e&&u[n+p-1]===d&&u[n]===u[Q]&&u[++n]===u[Q+1]){Q+=2;for(n++;u[++Q]===u[++n]&&u[++Q]===u[++n]&&u[++Q]===u[++n]&&u[++Q]===u[++n]&&u[++Q]===u[++n]&&u[++Q]===u[++n]&&u[++Q]===u[++n]&&u[++Q]===u[++n]&&Q<D;);
n=258-(D-Q);Q=D-258;if(n>p){G.match_start=H;p=n;if(n>=l)break;d=u[Q+p-1];e=u[Q+p]}}}while((H=t[H&B])>q&&--Z!==0);return p<=G.lookahead?p:G.lookahead};
a1=function(G){var H=G.w_size,Z;do{var Q=G.window_size-G.lookahead-G.strstart;if(G.strstart>=H+(H-262)){fg.arraySet(G.window,G.window,H,H,0);G.match_start-=H;G.strstart-=H;G.block_start-=H;var p=Z=G.hash_size;do{var l=G.head[--p];G.head[p]=l>=H?l-H:0}while(--Z);p=Z=H;do l=G.prev[--p],G.prev[p]=l>=H?l-H:0;while(--Z);Q+=H}if(G.strm.avail_in===0)break;p=G.strm;Z=G.window;l=G.strstart+G.lookahead;var q=p.avail_in;q>Q&&(q=Q);q===0?Z=0:(p.avail_in-=q,fg.arraySet(Z,p.input,p.next_in,q,l),p.state.wrap===
1?p.adler=Dl2(p.adler,Z,q,l):p.state.wrap===2&&(p.adler=Oi(p.adler,Z,q,l)),p.next_in+=q,p.total_in+=q,Z=q);G.lookahead+=Z;if(G.lookahead+G.insert>=3)for(Q=G.strstart-G.insert,G.ins_h=G.window[Q],G.ins_h=(G.ins_h<<G.hash_shift^G.window[Q+1])&G.hash_mask;G.insert&&!(G.ins_h=(G.ins_h<<G.hash_shift^G.window[Q+3-1])&G.hash_mask,G.prev[Q&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=Q,Q++,G.insert--,G.lookahead+G.insert<3););}while(G.lookahead<262&&G.strm.avail_in!==0)};
dl3=function(G,H){for(var Z;;){if(G.lookahead<262){a1(G);if(G.lookahead<262&&H===0)return 1;if(G.lookahead===0)break}Z=0;G.lookahead>=3&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,Z=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);Z!==0&&G.strstart-Z<=G.w_size-262&&(G.match_length=kzM(G,Z));if(G.match_length>=3)if(Z=zB(G,G.strstart-G.match_start,G.match_length-3),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=3){G.match_length--;
do G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart;while(--G.match_length!==0);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else Z=zB(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(Z&&(h3(G,!1),G.strm.avail_out===0))return 1}G.insert=G.strstart<2?G.strstart:2;return H===4?(h3(G,
!0),G.strm.avail_out===0?3:4):G.last_lit&&(h3(G,!1),G.strm.avail_out===0)?1:2};
yL=function(G,H){for(var Z,Q;;){if(G.lookahead<262){a1(G);if(G.lookahead<262&&H===0)return 1;if(G.lookahead===0)break}Z=0;G.lookahead>=3&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,Z=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);G.prev_length=G.match_length;G.prev_match=G.match_start;G.match_length=2;Z!==0&&G.prev_length<G.max_lazy_match&&G.strstart-Z<=G.w_size-262&&(G.match_length=kzM(G,Z),G.match_length<=5&&(G.strategy===1||G.match_length===3&&
G.strstart-G.match_start>4096)&&(G.match_length=2));if(G.prev_length>=3&&G.match_length<=G.prev_length){Q=G.strstart+G.lookahead-3;Z=zB(G,G.strstart-1-G.prev_match,G.prev_length-3);G.lookahead-=G.prev_length-1;G.prev_length-=2;do++G.strstart<=Q&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+3-1])&G.hash_mask,G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart);while(--G.prev_length!==0);G.match_available=0;G.match_length=2;G.strstart++;if(Z&&(h3(G,!1),G.strm.avail_out===0))return 1}else if(G.match_available){if((Z=
zB(G,0,G.window[G.strstart-1]))&&h3(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return 1}else G.match_available=1,G.strstart++,G.lookahead--}G.match_available&&(zB(G,0,G.window[G.strstart-1]),G.match_available=0);G.insert=G.strstart<2?G.strstart:2;return H===4?(h3(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(h3(G,!1),G.strm.avail_out===0)?1:2};
eGe=function(G,H){for(var Z,Q,p,l=G.window;;){if(G.lookahead<=258){a1(G);if(G.lookahead<=258&&H===0)return 1;if(G.lookahead===0)break}G.match_length=0;if(G.lookahead>=3&&G.strstart>0&&(Q=G.strstart-1,Z=l[Q],Z===l[++Q]&&Z===l[++Q]&&Z===l[++Q])){for(p=G.strstart+258;Z===l[++Q]&&Z===l[++Q]&&Z===l[++Q]&&Z===l[++Q]&&Z===l[++Q]&&Z===l[++Q]&&Z===l[++Q]&&Z===l[++Q]&&Q<p;);G.match_length=258-(p-Q);G.match_length>G.lookahead&&(G.match_length=G.lookahead)}G.match_length>=3?(Z=zB(G,1,G.match_length-3),G.lookahead-=
G.match_length,G.strstart+=G.match_length,G.match_length=0):(Z=zB(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++);if(Z&&(h3(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return H===4?(h3(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(h3(G,!1),G.strm.avail_out===0)?1:2};
nTj=function(G,H){for(var Z;;){if(G.lookahead===0&&(a1(G),G.lookahead===0)){if(H===0)return 1;break}G.match_length=0;Z=zB(G,0,G.window[G.strstart]);G.lookahead--;G.strstart++;if(Z&&(h3(G,!1),G.strm.avail_out===0))return 1}G.insert=0;return H===4?(h3(G,!0),G.strm.avail_out===0?3:4):G.last_lit&&(h3(G,!1),G.strm.avail_out===0)?1:2};
o1=function(G,H,Z,Q,p){this.good_length=G;this.max_lazy=H;this.nice_length=Z;this.max_chain=Q;this.func=p};
VXR=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 fg.Buf16(1146);this.dyn_dtree=new fg.Buf16(122);this.bl_tree=new fg.Buf16(78);jd(this.dyn_ltree);jd(this.dyn_dtree);jd(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new fg.Buf16(16);this.heap=new fg.Buf16(573);jd(this.heap);this.heap_max=this.heap_len=0;this.depth=new fg.Buf16(573);jd(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};
$lf=function(G,H){if(!G||!G.state||H>5||H<0)return G?Mh(G,-2):-2;var Z=G.state;if(!G.output||!G.input&&G.avail_in!==0||Z.status===666&&H!==4)return Mh(G,G.avail_out===0?-5:-2);Z.strm=G;var Q=Z.last_flush;Z.last_flush=H;if(Z.status===42)if(Z.wrap===2)G.adler=0,Cg(Z,31),Cg(Z,139),Cg(Z,8),Z.gzhead?(Cg(Z,(Z.gzhead.text?1:0)+(Z.gzhead.hcrc?2:0)+(Z.gzhead.extra?4:0)+(Z.gzhead.name?8:0)+(Z.gzhead.comment?16:0)),Cg(Z,Z.gzhead.time&255),Cg(Z,Z.gzhead.time>>8&255),Cg(Z,Z.gzhead.time>>16&255),Cg(Z,Z.gzhead.time>>
24&255),Cg(Z,Z.level===9?2:Z.strategy>=2||Z.level<2?4:0),Cg(Z,Z.gzhead.os&255),Z.gzhead.extra&&Z.gzhead.extra.length&&(Cg(Z,Z.gzhead.extra.length&255),Cg(Z,Z.gzhead.extra.length>>8&255)),Z.gzhead.hcrc&&(G.adler=Oi(G.adler,Z.pending_buf,Z.pending,0)),Z.gzindex=0,Z.status=69):(Cg(Z,0),Cg(Z,0),Cg(Z,0),Cg(Z,0),Cg(Z,0),Cg(Z,Z.level===9?2:Z.strategy>=2||Z.level<2?4:0),Cg(Z,3),Z.status=113);else{var p=8+(Z.w_bits-8<<4)<<8;p|=(Z.strategy>=2||Z.level<2?0:Z.level<6?1:Z.level===6?2:3)<<6;Z.strstart!==0&&(p|=
32);Z.status=113;i7(Z,p+(31-p%31));Z.strstart!==0&&(i7(Z,G.adler>>>16),i7(Z,G.adler&65535));G.adler=1}if(Z.status===69)if(Z.gzhead.extra){for(p=Z.pending;Z.gzindex<(Z.gzhead.extra.length&65535)&&(Z.pending!==Z.pending_buf_size||(Z.gzhead.hcrc&&Z.pending>p&&(G.adler=Oi(G.adler,Z.pending_buf,Z.pending-p,p)),PP(G),p=Z.pending,Z.pending!==Z.pending_buf_size));)Cg(Z,Z.gzhead.extra[Z.gzindex]&255),Z.gzindex++;Z.gzhead.hcrc&&Z.pending>p&&(G.adler=Oi(G.adler,Z.pending_buf,Z.pending-p,p));Z.gzindex===Z.gzhead.extra.length&&
(Z.gzindex=0,Z.status=73)}else Z.status=73;if(Z.status===73)if(Z.gzhead.name){p=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>p&&(G.adler=Oi(G.adler,Z.pending_buf,Z.pending-p,p)),PP(G),p=Z.pending,Z.pending===Z.pending_buf_size)){var l=1;break}l=Z.gzindex<Z.gzhead.name.length?Z.gzhead.name.charCodeAt(Z.gzindex++)&255:0;Cg(Z,l)}while(l!==0);Z.gzhead.hcrc&&Z.pending>p&&(G.adler=Oi(G.adler,Z.pending_buf,Z.pending-p,p));l===0&&(Z.gzindex=0,Z.status=91)}else Z.status=91;if(Z.status===
91)if(Z.gzhead.comment){p=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>p&&(G.adler=Oi(G.adler,Z.pending_buf,Z.pending-p,p)),PP(G),p=Z.pending,Z.pending===Z.pending_buf_size)){l=1;break}l=Z.gzindex<Z.gzhead.comment.length?Z.gzhead.comment.charCodeAt(Z.gzindex++)&255:0;Cg(Z,l)}while(l!==0);Z.gzhead.hcrc&&Z.pending>p&&(G.adler=Oi(G.adler,Z.pending_buf,Z.pending-p,p));l===0&&(Z.status=103)}else Z.status=103;Z.status===103&&(Z.gzhead.hcrc?(Z.pending+2>Z.pending_buf_size&&PP(G),
Z.pending+2<=Z.pending_buf_size&&(Cg(Z,G.adler&255),Cg(Z,G.adler>>8&255),G.adler=0,Z.status=113)):Z.status=113);if(Z.pending!==0){if(PP(G),G.avail_out===0)return Z.last_flush=-1,0}else if(G.avail_in===0&&(H<<1)-(H>4?9:0)<=(Q<<1)-(Q>4?9:0)&&H!==4)return Mh(G,-5);if(Z.status===666&&G.avail_in!==0)return Mh(G,-5);if(G.avail_in!==0||Z.lookahead!==0||H!==0&&Z.status!==666){Q=Z.strategy===2?nTj(Z,H):Z.strategy===3?eGe(Z,H):mI[Z.level].func(Z,H);if(Q===3||Q===4)Z.status=666;if(Q===1||Q===3)return G.avail_out===
0&&(Z.last_flush=-1),0;if(Q===2&&(H===1?(cP(Z,2,3),TB(Z,256,rt),Z.bi_valid===16?(Xq(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):Z.bi_valid>=8&&(Z.pending_buf[Z.pending++]=Z.bi_buf&255,Z.bi_buf>>=8,Z.bi_valid-=8)):H!==5&&(cP(Z,0,3),s_R(Z,0,0),H===3&&(jd(Z.head),Z.lookahead===0&&(Z.strstart=0,Z.block_start=0,Z.insert=0))),PP(G),G.avail_out===0))return Z.last_flush=-1,0}if(H!==4)return 0;if(Z.wrap<=0)return 1;Z.wrap===2?(Cg(Z,G.adler&255),Cg(Z,G.adler>>8&255),Cg(Z,G.adler>>16&255),Cg(Z,G.adler>>24&255),Cg(Z,
G.total_in&255),Cg(Z,G.total_in>>8&255),Cg(Z,G.total_in>>16&255),Cg(Z,G.total_in>>24&255)):(i7(Z,G.adler>>>16),i7(Z,G.adler&65535));PP(G);Z.wrap>0&&(Z.wrap=-Z.wrap);return Z.pending!==0?0:1};
X$R=function(G){if(!(this instanceof X$R))return new X$R(G);G=this.options=fg.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},G||{});G.raw&&G.windowBits>0?G.windowBits=-G.windowBits:G.gzip&&G.windowBits>0&&G.windowBits<16&&(G.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new c0o;this.strm.avail_out=0;var H=this.strm;var Z=G.level,Q=G.method,p=G.windowBits,l=G.memLevel,q=G.strategy;if(H){var u=1;Z===-1&&(Z=6);p<0?(u=0,p=-p):p>15&&
(u=2,p-=16);if(l<1||l>9||Q!==8||p<8||p>15||Z<0||Z>9||q<0||q>4)H=Mh(H,-2);else{p===8&&(p=9);var B=new VXR;H.state=B;B.strm=H;B.wrap=u;B.gzhead=null;B.w_bits=p;B.w_size=1<<B.w_bits;B.w_mask=B.w_size-1;B.hash_bits=l+7;B.hash_size=1<<B.hash_bits;B.hash_mask=B.hash_size-1;B.hash_shift=~~((B.hash_bits+3-1)/3);B.window=new fg.Buf8(B.w_size*2);B.head=new fg.Buf16(B.hash_size);B.prev=new fg.Buf16(B.w_size);B.lit_bufsize=1<<l+6;B.pending_buf_size=B.lit_bufsize*4;B.pending_buf=new fg.Buf8(B.pending_buf_size);
B.d_buf=B.lit_bufsize;B.l_buf=3*B.lit_bufsize;B.level=Z;B.strategy=q;B.method=Q;if(H&&H.state){H.total_in=H.total_out=0;H.data_type=2;Z=H.state;Z.pending=0;Z.pending_out=0;Z.wrap<0&&(Z.wrap=-Z.wrap);Z.status=Z.wrap?42:113;H.adler=Z.wrap===2?0:1;Z.last_flush=0;if(!TTf){Q=Array(16);for(l=q=0;l<28;l++)for(lpR[l]=q,p=0;p<1<<p$2[l];p++)vP[q++]=l;vP[q-1]=l;for(l=q=0;l<16;l++)for(Ipu[l]=q,p=0;p<1<<gTu[l];p++)WP[q++]=l;for(q>>=7;l<30;l++)for(Ipu[l]=q<<7,p=0;p<1<<gTu[l]-7;p++)WP[256+q++]=l;for(p=0;p<=15;p++)Q[p]=
0;for(p=0;p<=143;)rt[p*2+1]=8,p++,Q[8]++;for(;p<=255;)rt[p*2+1]=9,p++,Q[9]++;for(;p<=279;)rt[p*2+1]=7,p++,Q[7]++;for(;p<=287;)rt[p*2+1]=8,p++,Q[8]++;bN2(rt,287,Q);for(p=0;p<30;p++)wt[p*2+1]=5,wt[p*2]=Fmv(p,5);fpM=new EaW(rt,p$2,257,286,15);vT3=new EaW(wt,gTu,0,30,15);WAo=new EaW([],zG3,0,19,7);TTf=!0}Z.l_desc=new Y7X(Z.dyn_ltree,fpM);Z.d_desc=new Y7X(Z.dyn_dtree,vT3);Z.bl_desc=new Y7X(Z.bl_tree,WAo);Z.bi_buf=0;Z.bi_valid=0;Gzb(Z);Z=0}else Z=Mh(H,-2);Z===0&&(H=H.state,H.window_size=2*H.w_size,jd(H.head),
H.max_lazy_match=mI[H.level].max_lazy,H.good_match=mI[H.level].good_length,H.nice_match=mI[H.level].nice_length,H.max_chain_length=mI[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=2,H.match_available=0,H.ins_h=0);H=Z}}else H=-2;if(H!==0)throw Error(Kg[H]);G.header&&(H=this.strm)&&H.state&&H.state.wrap===2&&(H.state.gzhead=G.header);if(G.dictionary){var t;typeof G.dictionary==="string"?t=KAX(G.dictionary):MXv.call(G.dictionary)==="[object ArrayBuffer]"?
t=new Uint8Array(G.dictionary):t=G.dictionary;G=this.strm;l=t;q=l.length;if(G&&G.state)if(t=G.state,H=t.wrap,H===2||H===1&&t.status!==42||t.lookahead)H=-2;else{H===1&&(G.adler=Dl2(G.adler,l,q,0));t.wrap=0;q>=t.w_size&&(H===0&&(jd(t.head),t.strstart=0,t.block_start=0,t.insert=0),Z=new fg.Buf8(t.w_size),fg.arraySet(Z,l,q-t.w_size,t.w_size,0),l=Z,q=t.w_size);Z=G.avail_in;Q=G.next_in;p=G.input;G.avail_in=q;G.next_in=0;G.input=l;for(a1(t);t.lookahead>=3;){l=t.strstart;q=t.lookahead-2;do t.ins_h=(t.ins_h<<
t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++;while(--q);t.strstart=l;t.lookahead=2;a1(t)}t.strstart+=t.lookahead;t.block_start=t.strstart;t.insert=t.lookahead;t.lookahead=0;t.match_length=t.prev_length=2;t.match_available=0;G.next_in=Q;G.input=p;G.avail_in=Z;t.wrap=H;H=0}else H=-2;if(H!==0)throw Error(Kg[H]);this._dict_set=!0}};
j_2=function(G,H){H=H||{};H.gzip=!0;H=new X$R(H);H.push(G,!0);if(H.err)throw H.msg||Kg[H.err];return H.result};
r0R=function(G,H){var Z=PSR();Z&&Z.publish.call(Z,G.toString(),G,H)};
O3j=function(G,H,Z){var Q=PSR();if(!Q)return 0;var p=Q.subscribe(G.toString(),function(l,q){var u=_.GF("ytPubsub2Pubsub2SkipSubKey");u&&u==p||(u=function(){if(w$o[p])try{if(q&&G instanceof hGj&&G!=l)try{var B=G.dataClass,t=q;if(!t.args||!t.version)throw Error("$c");try{if(!B.version_){var D=new B;B.version_=D.version}var d=B.version_}catch(e){}if(!d||t.version!=d)throw Error("ad");try{q=Reflect.construct(B,_.mv(t.args))}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}}catch(e){throw e.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+G.toString()+": "+e.message,e;}H.call(Z||window,q)}catch(e){_.FU(e)}},CSf[G.toString()]?_.GF("yt.scheduler.instance")?_.Ui.addLowPriorityJob(u):_.cU(u,0):u())});
w$o[p]=!0;i33[G.toString()]||(i33[G.toString()]=[]);i33[G.toString()].push(p);return p};
mlX=function(){var G=ape,H=O3j(y0b,function(Z){G.apply(void 0,arguments);oTf(H)});
return H};
oTf=function(G){var H=PSR();H&&(typeof G==="number"&&(G=[G]),_.Zk(G,function(Z){H.unsubscribeByKey(Z);delete w$o[Z]}))};
PSR=function(){return _.GF("ytPubsub2Pubsub2Instance")};
Ulu=function(G,H,Z){Z=Z===void 0?{sampleRate:.1}:Z;Math.random()<Math.min(.02,Z.sampleRate/100)&&r0R("meta_logging_csi_event",{timerName:G,timelineData:H})};
_.RG2=function(G){return G?(G=G.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Qk(G):null:null};
_.R1=function(G){return G?(G=G.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.j7(G):null:null};
A0f=function(){NTW||(NTW=_.R1(_.xI("WORKER_SERIALIZATION_URL")));return NTW||void 0};
_.LA3=function(){var G=A0f();xlj||G===void 0||(xlj=eLb(G));return xlj};
_.ETf=function(){return typeof Worker==="function"&&A0f()?!0:!1};
_.Gqj=function(){if(_.ETf()&&!YD3){var G=function(Z){Z=Z.data;if(Z.op==="gzippedGelBatch"){var Q=FAj.get(Z.key);Q&&(b3j(Z.gzippedBatch,Q.latencyPayload,Q.url,Q.options,Q.sendFn),FAj.delete(Z.key))}},H=_.LA3();
H&&(H.addEventListener("message",G),H.onerror=function(){FAj.clear()},YD3=!0)}};
gQj=function(G,H,Z,Q,p){p=p===void 0?!1:p;var l={startTime:(0,_.t3)(),ticks:{},infos:{}};if(Nh)try{var q=HHo(H);if(q!=null&&(q>sKM||q<ZHo))Q(G,Z);else{if(_.V("gzip_gel_with_worker")&&(_.V("initial_gzip_use_main_thread")&&!QKe||!_.V("initial_gzip_use_main_thread"))){YD3||_.Gqj();var u=_.LA3();if(u&&!p){FAj.set(pGU,{latencyPayload:l,url:G,options:Z,sendFn:Q});u.postMessage({op:"gelBatchToGzip",serializedBatch:H,key:pGU});pGU++;return}}var B=j_2(lIo(H));b3j(B,l,G,Z,Q)}}catch(t){_.HU(t),Q(G,Z)}else Q(G,
Z)};
b3j=function(G,H,Z,Q,p){QKe=!1;var l=(0,_.t3)();H.ticks.gelc=l;A3++;_.V("disable_compression_due_to_performance_degredation")&&l-H.startTime>=IIo&&(qIj++,_.V("abandon_compression_after_N_slow_zips")?A3===_.eA("compression_disable_point")&&qIj>SI3&&(Nh=!1):Nh=!1);uTM(H);Q.headers||(Q.headers={});Q.headers["Content-Encoding"]="gzip";Q.postBody=G;Q.postParams=void 0;p(Z,Q)};
Bx2=function(G){var H=H===void 0?!1:H;var Z=Z===void 0?!1:Z;var Q=(0,_.t3)(),p={startTime:Q,ticks:{},infos:{}},l=H?_.GF("yt.logging.gzipForFetch",!1):!0;if(Nh&&l){if(!G.body)return G;try{var q=Z?G.body:typeof G.body==="string"?G.body:JSON.stringify(G.body);l=q;if(!Z&&typeof q==="string"){var u=HHo(q);if(u!=null&&(u>sKM||u<ZHo))return G;Z=H?{level:1}:void 0;l=j_2(lIo(q),Z);var B=(0,_.t3)();p.ticks.gelc=B;if(H){A3++;if((_.V("disable_compression_due_to_performance_degredation")||_.V("disable_compression_due_to_performance_degradation_lr"))&&
B-Q>=IIo)if(qIj++,_.V("abandon_compression_after_N_slow_zips")||_.V("abandon_compression_after_N_slow_zips_lr")){H=qIj/A3;var t=SI3/_.eA("compression_disable_point");A3>0&&A3%_.eA("compression_disable_point")===0&&H>=t&&(Nh=!1)}else Nh=!1;uTM(p)}}G.headers=Object.assign({},{"Content-Encoding":"gzip"},G.headers||{});G.body=l;return G}catch(D){return _.HU(D),G}}else return G};
HHo=function(G){try{return(new Blob(G.split(""))).size}catch(H){return _.HU(H),null}};
uTM=function(G){_.V("gel_compression_csi_killswitch")||!_.V("log_gel_compression_latency")&&!_.V("log_gel_compression_latency_lr")||Ulu("gel_compression",G,{sampleRate:.1})};
Jv3=function(){this.blockSize=-1};
xN=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var G=1;G<this.blockSize;++G)this.pad_[G]=0;this.total_=this.inbuf_=0;this.reset()};
kqj=function(G){G=Object.assign({},G);delete G.Authorization;var H=_.t9b();if(H){var Z=new xN;Z.update(_.xI("INNERTUBE_API_KEY"));Z.update(H);G.hash=_.Cm(Z.digest(),3)}return G};
Ei=function(){D6e||(D6e=new _.Lg("yt.innertube"));return D6e};
d6f=function(G,H,Z,Q){if(Q)return null;Q=Ei().get("nextId",!0)||1;var p=Ei().get("requests",!0)||{};p[Q]={method:G,request:H,authState:kqj(Z),requestTime:Math.round((0,_.t3)())};Ei().set("nextId",Q+1,86400,!0);Ei().set("requests",p,86400,!0);return Q};
e2e=function(G){var H=Ei().get("requests",!0)||{};delete H[G];Ei().set("requests",H,86400,!0)};
V9M=function(G){var H=Ei().get("requests",!0);if(H){for(var Z in H){var Q=H[Z];if(!(Math.round((0,_.t3)())-Q.requestTime<6E4)){var p=Q.authState,l=kqj(_.xv2(!1));_.oN.equals(p,l)&&(p=Q.request,"requestTimeMs"in p&&(p.requestTimeMs=Math.round((0,_.t3)())),nQj(G,Q.method,p,{}));delete H[Z]}}Ei().set("requests",H,86400,!0)}};
$6b=function(G){var H;return(G=G==null?void 0:(H=G.error)==null?void 0:H.code)&&G>=400&&G<=599?!1:!0};
XG2=function(G){var H;G=G==null?void 0:(H=G.error)==null?void 0:H.code;return!(G!==400&&G!==415)};
TxW=function(){if(cvb)return cvb();var G={};cvb=J3("LogsDatabaseV2",{objectStores:(G.LogsRequestsStore={addedAtVersion:2},G),shared:!1,upgrade:function(H,Z,Q){Z(2)&&YN(H,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});Z(3);Z(5)&&(Q=Q.objectStore("LogsRequestsStore"),Q.JSC$10688_wrapped.indexNames.contains("newRequest")&&Q.JSC$10688_wrapped.deleteIndex("newRequest"),Fq(Q,"newRequestV2",["status","interface","timestamp"]));Z(7)&&H.JSC$10673_wrapped.objectStoreNames.contains("sapisid")&&H.JSC$10673_wrapped.deleteObjectStore("sapisid");
Z(9)&&H.JSC$10673_wrapped.objectStoreNames.contains("SWHealthLog")&&H.JSC$10673_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return cvb()};
b7=function(G){return _.pg(TxW(),G)};
vQu=function(G,H){var Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return Z={startTime:(0,_.t3)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},q.yield(b7(H),2);if(q.nextAddress!=3)return Q=q.yieldResult,p=Object.assign({},G,{options:JSON.parse(JSON.stringify(G.options)),interface:_.xI("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),q.yield(Q.put("LogsRequestsStore",p),3);l=q.yieldResult;Z.ticks.tc=(0,_.t3)();fIW(Z);return q.return(l)})};
WlW=function(G,H){var Z,Q,p,l,q,u,B,t,D;return _.S(function(d){if(d.nextAddress==1)return Z={startTime:(0,_.t3)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},d.yield(b7(H),2);if(d.nextAddress!=3)return Q=d.yieldResult,p=_.xI("INNERTUBE_CONTEXT_CLIENT_NAME",0),l=[G,p,0],q=[G,p,(0,_.t3)()],u=IDBKeyRange.bound(l,q),B="prev",_.V("use_fifo_for_networkless")&&(B="next"),t=void 0,D=G==="NEW"?"readwrite":"readonly",_.V("use_readonly_for_get_most_recent_by_status_killswitch")&&(D="readwrite"),
d.yield(_.l7(Q,["LogsRequestsStore"],{mode:D,enableRetries:!0},function(e){return _.kN(e.objectStore("LogsRequestsStore").index("newRequestV2"),{query:u,direction:B},function(n){n.getValue()&&(t=n.getValue(),G==="NEW"&&(t.status="QUEUED",n.update(t)))})}),3);
Z.ticks.tc=(0,_.t3)();fIW(Z);return d.return(t)})};
z2j=function(G,H){var Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(b7(H),2);Z=Q.yieldResult;return Q.return(_.l7(Z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){var l=p.objectStore("LogsRequestsStore");return l.get(G).then(function(q){if(q)return q.status="QUEUED",l.put(q).then(function(){return q})})}))})};
KlM=function(G,H,Z,Q){Z=Z===void 0?!0:Z;var p;return _.S(function(l){if(l.nextAddress==1)return l.yield(b7(H),2);p=l.yieldResult;return l.return(_.l7(p,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(q){var u=q.objectStore("LogsRequestsStore");return u.get(G).then(function(B){return B?(B.status="NEW",Z&&(B.sendCount+=1),Q!==void 0&&(B.options.compress=Q),u.put(B).then(function(){return B})):FP.resolve(void 0)})}))})};
M9o=function(G,H){var Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(b7(H),2);Z=Q.yieldResult;return Q.return(Z.delete("LogsRequestsStore",G))})};
jKU=function(G){var H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(b7(G),2);H=Q.yieldResult;Z=(0,_.t3)()-2592E6;return Q.yield(_.l7(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){return I1(p.objectStore("LogsRequestsStore"),{},function(l){if(l.getValue().timestamp<=Z)return l.delete().then(function(){return l.continue()})})}),0)})};
Pqb=function(){_.S(function(G){return G.yield($vU("LogsDatabaseV2"),0)})};
fIW=function(G){_.V("nwl_csi_killswitch")||Ulu("networkless_performance",G,{sampleRate:1})};
_.wGU=function(G){return _.pg(rvb(),G)};
h2v=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.wGU(G),2);H=Q.yieldResult;Z=(0,_.t3)()-2592E6;return Q.yield(_.l7(H,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(p){return I1(p.objectStore("SWHealthLog"),{},function(l){if(l.getValue().timestamp<=Z)return l.delete().then(function(){return l.continue()})})}),0)})};
Cqb=function(G){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(_.wGU(G),2);H=Z.yieldResult;return Z.yield(H.clear("SWHealthLog"),0)})};
_.G_=function(G,H,Z,Q,p,l,q){p=p===void 0?"":p;l=l===void 0?!1:l;q=q===void 0?!1:q;if(G)if(Z&&!xM("cobalt"))_.HU(new _.C$("Legacy referrer-scrubbed ping detected")),G&&iHM(G,void 0,{scrubReferrer:!0});else if(p)S3U(G,H,"POST",p,Q);else if(_.xI("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Q||q)S3U(G,H,"GET","",Q,void 0,l,q);else{b:{try{c:{var u=new OHj({url:G});if(u.urlParamValues_.dsh==="1")var B=null;else{var t=u.urlParamValues_.ae;if(t==="1"){var D=u.urlParamValues_.adurl;if(D)try{B={version:3,directUrl:decodeURIComponent(D),
asyncUrl:a2R(u.JSC$9485_url_,"act=1","ri=1",aI3(u))};break c}catch(c){}}B=t==="2"?{version:4,directUrl:a2R(u.JSC$9485_url_,"dct=1","suid="+u.suid_,"ri=1"),asyncUrl:a2R(u.JSC$9485_url_,"act=1","ri=1","suid="+u.suid_)}:null}}if(B){var d=_.vU(G);var e=!(!d||!d.endsWith("/aclk")||_.bY(G,"ri")!=="1");break b}}catch(c){}e=!1}if(e){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(G,"")){var n=!0;break b}}catch(c){}n=!1}n?(H&&H(),Z=!0):Z=!1}else Z=!1;Z||iHM(G,H)}};
iHM=function(G,H,Z){Z=Z===void 0?{}:Z;var Q=new Image,p=""+yvv++;oQR[p]=Q;Q.onload=Q.onerror=function(){H&&oQR[p]&&H();delete oQR[p]};
Z.scrubReferrer&&(Q.referrerPolicy="no-referrer");Q.src=G};
HW=function(G,H){m6j(G,H==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
U6u=function(G){var H;return((H=document.featurePolicy)==null?0:H.allowedFeatures().includes("attribution-reporting"))?G+"&nis=6":G+"&nis=5"};
R2j=function(G){if(!G)return!1;try{var H;if(((H=_.QD(G))==null?void 0:H.asm)==="4")return!0}catch(Z){_.FU(Z)}return!1};
m6j=function(G,H){H?(G=U6u(G),_.G_(G,void 0,void 0,void 0,"",!0,!0)):_.G_(G)};
Avf=function(){Nxe||(Nxe=new _.Lg("yt.offline"));return Nxe};
x6j=function(G){if(_.V("offline_error_handling")){var H=Avf().get("errors",!0)||{};H[G.message]={name:G.name,stack:G.stack};G.level&&(H[G.message].level=G.level);Avf().set("errors",H,2592E3,!0)}};
EQj=function(G,H,Z,Q){Q=Q===void 0?!1:Q;H=_.V("web_fp_via_jspb")?Object.assign({},H):H;_.V("use_cfr_monitor")&&LlR(G,H);if(_.V("use_request_time_ms_header"))H.headers&&u0(G)&&(H.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.t3)())));else{var p;if((p=H.postParams)==null?0:p.requestTimeMs)H.postParams.requestTimeMs=Math.round((0,_.t3)())}Z&&Object.keys(H).length===0?_.G_(G):H.compress?H.postBody?(typeof H.postBody!=="string"&&(H.postBody=JSON.stringify(H.postBody)),gQj(G,H.postBody,
H,_.WU,Q)):gQj(G,JSON.stringify(H.postParams),H,te3,Q):_.WU(G,H)};
YIU=function(G,H){_.V("use_event_time_ms_header")&&u0(G)&&(H.headers||(H.headers={}),H.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.t3)())));return H};
_.bHM=function(){Fle||(Fle=new _.sN({logOfflineErrors:!0,enablePolling:!0}));return Fle};
LlR=function(G,H){var Z=H.onError?H.onError:function(){};
H.onError=function(p,l){Zv().requestComplete(G,!1);Z(p,l)};
var Q=H.onSuccess?H.onSuccess:function(){};
H.onSuccess=function(p,l){Zv().requestComplete(G,!0);Q(p,l)}};
_.GtX=function(){return _.qY(document.location.toString())!=="www.youtube-nocookie.com"};
_.ZXb=function(){return _.GF("ytNetworklessLoggingInitializationOptions")?_.HXR.isNwlInitialized:_.sXj};
QXv=function(G,H){if(_.V("polymer_on_demand_shady_dom")){var Z;var Q=(Z=G.__shady_native_firstElementChild)!=null?Z:G.firstElementChild}else Q=G.firstElementChild;for(;Q;){if(G=H(Q)?Q:QXv(Q,H))return G;Q=Q.nextElementSibling}return null};
lJR=function(){var G=document;if("visibilityState"in G)return G.visibilityState;var H=pTb+"VisibilityState";if(H in G)return G[H]};
_.gCM=function(G,H){var Z;QR(G,function(Q){Z=H[Q];return!!Z});
return Z};
_.lc=function(G){var H=IJ2(G);H?H.focus(void 0):_.pT(G)};
IJ2=function(G){return(G=QXv(G,function(H){return _.gM(H)?q6e(H)&&!!H.offsetParent:!1}))?G:null};
_.pT=function(G,H){G.hasAttribute("tabindex")||G.setAttribute("tabindex","-1");G.focus(H)};
S62=function(G,H,Z,Q){Q=Q===void 0?{}:Q;G.addEventListener&&(H!="mouseenter"||"onmouseenter"in document?H!="mouseleave"||"onmouseenter"in document?H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"):H="mouseout":H="mouseover");return _.oN.findKey(Ip,function(p){var l=typeof p[4]==="boolean"&&p[4]==!!Q,q=_.AM(p[4])&&_.AM(Q)&&_.oN.equals(p[4],Q);return!!p.length&&p[0]==G&&p[1]==H&&p[2]==Z&&(l||q)})};
_.Sy=function(G,H,Z,Q){Q=Q===void 0?{}:Q;if(!G||!G.addEventListener&&!G.attachEvent)return"";var p=S62(G,H,Z,Q);if(p)return p;p=++ugj.count+"";var l=!(H!="mouseenter"&&H!="mouseleave"||!G.addEventListener||"onmouseenter"in document);var q=l?function(u){u=new q1(u);if(!_.xr(u.relatedTarget,function(B){return B==G},!0))return u.currentTarget=G,u.type=H,Z.call(G,u)}:function(u){u=new q1(u);
u.currentTarget=G;return Z.call(G,u)};
q=_.bW(q);G.addEventListener?(H=="mouseenter"&&l?H="mouseover":H=="mouseleave"&&l?H="mouseout":H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"),Brb()||typeof Q==="boolean"?G.addEventListener(H,q,Q):G.addEventListener(H,q,!!Q.capture)):G.attachEvent("on"+H,q);Ip[p]=[G,H,Z,q,Q];return p};
_.tkU=function(G,H,Z){var Q=Q===void 0?{}:Q;var p=_.Sy(G,H,function(){_.Jtf(p);Z.apply(G,arguments)},Q)};
_.Jtf=function(G){G&&(typeof G=="string"&&(G=[G]),_.Zk(G,function(H){if(H in Ip){var Z=Ip[H],Q=Z[0],p=Z[1],l=Z[3];Z=Z[4];Q.removeEventListener?Brb()||typeof Z==="boolean"?Q.removeEventListener(p,l,Z):Q.removeEventListener(p,l,!!Z.capture):Q.detachEvent&&Q.detachEvent("on"+p,l);delete Ip[H]}}))};
uc=function(G){this.callback_=G;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(G=0;G<4;G++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Sy(window,"mousemove",(0,_.Cu)(this.onMouseMove_,this));this.timerId_=_.TF((0,_.Cu)(this.checkPosition_,this),25)};
d$v=function(){var G={};var H=G.preferMobileEvents===void 0?!1:G.preferMobileEvents;G=G.enableScrollEventListener===void 0?!0:G.enableScrollEventListener;if(_.GF("_lact",window)==null){var Z=parseInt(_.xI("LACT"),10);Z=isFinite(Z)?Date.now()-Math.max(Z,0):-1;_.u7("_lact",Z,window);_.u7("_fact",Z,window);Z==-1&&_.BW();kt2(window,H,G);new uc(function(){D$f("mouse",100)})}};
kt2=function(G,H,Z){H=H===void 0?!1:H;Z=Z===void 0?!0:Z;_.Sy(G.document,"keydown",_.BW);_.Sy(G.document,"keyup",_.BW);_.Sy(G.document,"mousedown",_.BW);_.Sy(G.document,"mouseup",_.BW);H?_.Sy(G,"touchmove",function(){D$f("touchmove",200)},{passive:!0}):(_.Sy(G,"resize",function(){D$f("resize",200)}),Z&&_.Sy(G,"scroll",function(){D$f("scroll",200)}));
_.Sy(G.document,"touchstart",_.BW,{passive:!0});_.Sy(G.document,"touchend",_.BW,{passive:!0})};
D$f=function(G,H){eoU[G]||(eoU[G]=!0,_.Ui.addLowPriorityJob(function(){_.BW();eoU[G]=!1},H))};
_.BW=function(){_.GF("_lact",window)==null&&d$v();var G=Date.now();_.u7("_lact",G,window);_.GF("_fact",window)==-1&&_.u7("_fact",G,window);(G=_.GF("ytglobal.ytUtilActivityCallback_"))&&G()};
_.JL=function(){var G=_.GF("_lact",window);return G==null?-1:Math.max(Date.now()-G,0)};
_.dM=function(G,H,Z){var Q=_.tL();if(Q&&H){var p=Q.subscribe(G,function(){var l=arguments,q=function(){kJ[p]&&H.apply&&typeof H.apply=="function"&&H.apply(Z||window,l)};
try{_.nCj[G]?q():_.cU(q,0)}catch(u){_.FU(u)}},Z);
kJ[p]=!0;Dv[G]||(Dv[G]=[]);Dv[G].push(p);return p}return 0};
_.Vkj=function(G){var H=_.tL();H&&(typeof G==="number"?G=[G]:typeof G==="string"&&(G=[parseInt(G,10)]),_.Zk(G,function(Z){H.unsubscribeByKey(Z);delete kJ[Z]}))};
_.$$R=function(G,H){var Z=_.tL();Z&&Z.publish.apply(Z,arguments)};
_.ct3=function(G){var H=_.tL();if(H)if(H.clear(G),G)XTR(G);else for(var Z in Dv)XTR(Z)};
_.tL=function(){return _.Qf.ytPubsubPubsubInstance};
XTR=function(G){Dv[G]&&(G=Dv[G],_.Zk(G,function(H){kJ[H]&&delete kJ[H]}),G.length=0)};
Trj=function(){var G,H;return"h5vcc"in nT&&((G=nT.h5vcc.traceEvent)==null?0:G.traceBegin)&&((H=nT.h5vcc.traceEvent)==null?0:H.traceEnd)?1:"performance"in nT&&nT.performance.mark&&nT.performance.measure?2:0};
fJ2=function(G){var H=Trj();switch(H){case 1:nT.h5vcc.traceEvent.traceBegin("YTLR",G);break;case 2:nT.performance.mark(G+"-start");break;case 0:break;default:_.Lw(H,"unknown trace type")}};
vCv=function(G){var H=Trj();switch(H){case 1:nT.h5vcc.traceEvent.traceEnd("YTLR",G);break;case 2:H=G+"-start";var Z=G+"-end";nT.performance.mark(Z);nT.performance.measure(G,H,Z);break;case 0:break;default:_.Lw(H,"unknown trace type")}};
W33=function(G){var H,Z;(Z=(H=window).onerror)==null||Z.call(H,G.message,"",0,0,G)};
zo2=function(G){if(_.V("web_lifecycle_error_handling_killswitch"))return G();try{return G()}catch(H){W33(H)}};
K32=function(G){return[G.auth===void 0?"undefined":G.auth,G.isJspb===void 0?"undefined":G.isJspb,G.cttAuthInfo===void 0?"undefined":G.cttAuthInfo,G.tier===void 0?"undefined":G.tier].join("/")};
_.X=function(G,H){if(G)return G[H.name]};
$J=function(){var G=_.GF("yt.logging.ims");G||(G=new VR,_.u7("yt.logging.ims",G));return G};
OXR=function(G,H){if(G.endpoint==="log_event"){Mkj(G);var Z=jXu(G),Q=Pb2(G.payload)||"",p=rt2(Q),l=200;if(p){if(p.enabled===!1&&!_.V("web_payload_policy_disabled_killswitch"))return;l=wTe(p.tier);if(l===400){hoo(G,H);return}}XN[Z]=!0;Z={cttAuthInfo:Z,isJspb:!1,tier:l};$J().storePayload(Z,G.payload);CbW(H,!1,Z,iXv(Q))}};
ytb=function(G,H,Z){if(H.endpoint==="log_event"){Mkj(void 0,H);var Q=jXu(H,!0),p=rt2(G),l=200;if(p){if(p.enabled===!1&&!_.V("web_payload_policy_disabled_killswitch"))return;l=wTe(p.tier);if(l===400){aJj(G,H,Z);return}}XN[Q]=!0;Q={cttAuthInfo:Q,isJspb:!0,tier:l};$J().storePayload(Q,io(H.payload));CbW(Z,!0,Q,iXv(G))}};
CbW=function(G,H,Z,Q){H=H===void 0?!1:H;Q=Q===void 0?!1:Q;G&&(cW=new G);G=_.eA("tvhtml5_logging_max_batch_ads_fork")||_.eA("tvhtml5_logging_max_batch")||_.eA("web_logging_max_batch")||100;var p=(0,_.t3)(),l=oCR(H,Z.tier),q=l.lastDebounceQueueFromLogTimeMs;Q&&(l.useVideoStatsEndPoint=!0);Q=0;Z&&(Q=$J().getSequenceCount(Z));var u=function(){m$v({writeThenSend:!0},H,Z.tier)};
Q>=1E3?u():Q>=G?U$2||(U$2=Rov(function(){u();U$2=void 0},0)):p-q>=10&&(Nrb(H,Z.tier),l.lastDebounceQueueFromLogTimeMs=p)};
hoo=function(G,H){if(G.endpoint==="log_event"){_.V("more_accurate_gel_parser")&&$J().storePayload({isJspb:!1},G.payload);Mkj(G);var Z=jXu(G),Q=new Map;Q.set(Z,[G.payload]);var p=Pb2(G.payload)||"";H&&(cW=new H);return new _.T_(function(l,q){cW&&cW.isReady()?Atj(Q,cW,l,q,{bypassNetworkless:!0},!0,iXv(p)):l()})}};
aJj=function(G,H,Z){if(H.endpoint==="log_event"){Mkj(void 0,H);var Q=jXu(H,!0),p=new Map;p.set(Q,[io(H.payload)]);Z&&(cW=new Z);return new _.T_(function(l){cW&&cW.isReady()?x$3(p,cW,l,{bypassNetworkless:!0},!0,iXv(G)):l()})}};
jXu=function(G,H){var Z="";if(G.dangerousLogToVisitorSession)Z="visitorOnlyApprovedKey";else if(G.cttAuthInfo){if(H===void 0?0:H){H=G.cttAuthInfo.token;Z=G.cttAuthInfo;var Q=new L3e;Z.videoId?Q.setVideoId(Z.videoId):Z.playlistId&&fT(Q,2,ECe,XL(Z.playlistId));Y6R[H]=Q}else H=G.cttAuthInfo,Z={},H.videoId?Z.videoId=H.videoId:H.playlistId&&(Z.playlistId=H.playlistId),F3o[G.cttAuthInfo.token]=Z;Z=G.cttAuthInfo.token}return Z};
m$v=function(G,H,Z){G=G===void 0?{}:G;H=H===void 0?!1:H;new _.T_(function(Q,p){var l=oCR(H,Z),q=l.useVideoStatsEndPoint;l.useVideoStatsEndPoint=!1;bXW(l.queueTimer);bXW(l.queueMaxTimer);l.queueMaxTimer=0;cW&&cW.isReady()?Z===void 0&&_.V("enable_web_tiered_gel")?G3u(Q,p,G,H,300,q):G3u(Q,p,G,H,Z,q):(Nrb(H,Z),Q())})};
G3u=function(G,H,Z,Q,p,l){var q=cW;Z=Z===void 0?{}:Z;Q=Q===void 0?!1:Q;p=p===void 0?200:p;l=l===void 0?!1:l;var u=new Map,B=new Map,t={isJspb:Q,cttAuthInfo:void 0,tier:p},D={isJspb:Q,cttAuthInfo:void 0};if(Q){H=_.I(Object.keys(XN));for(p=H.next();!p.done;p=H.next())p=p.value,B=_.V("enable_web_tiered_gel")?$J().smartExtractMatchingEntries({keys:[t,D],sizeLimit:1E3}):$J().extractMatchingEntries({isJspb:!0,cttAuthInfo:p}),B.length>0&&u.set(p,B),(_.V("web_fp_via_jspb_and_json")&&Z.writeThenSend||!_.V("web_fp_via_jspb_and_json"))&&
delete XN[p];x$3(u,q,G,Z,!1,l)}else{u=_.I(Object.keys(XN));for(t=u.next();!t.done;t=u.next())t=t.value,D=_.V("enable_web_tiered_gel")?$J().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:t,tier:p},{isJspb:!1,cttAuthInfo:t}],sizeLimit:1E3}):$J().extractMatchingEntries({isJspb:!1,cttAuthInfo:t}),D.length>0&&B.set(t,D),(_.V("web_fp_via_jspb_and_json")&&Z.writeThenSend||!_.V("web_fp_via_jspb_and_json"))&&delete XN[t];Atj(B,q,G,H,Z,!1,l)}};
Nrb=function(G,H){G=G===void 0?!1:G;H=H===void 0?200:H;var Z=function(){m$v({writeThenSend:!0},G,H)},Q=oCR(G,H),p=Q===HIv||Q===s0f?5E3:ZI3;
_.V("web_gel_timeout_cap")&&!Q.queueMaxTimer&&(p=Rov(function(){Z()},p),Q.queueMaxTimer=p);
bXW(Q.queueTimer);p=_.xI("LOGGING_BATCH_TIMEOUT",_.eA("web_gel_debounce_ms",1E4));_.V("shorten_initial_gel_batch_timeout")&&Q0v&&(p=phW);p=Rov(function(){_.eA("gel_min_batch_size")>0?$J().getSequenceCount({cttAuthInfo:void 0,isJspb:G,tier:H})>=lof&&Z():Z()},p);
Q.queueTimer=p};
Atj=function(G,H,Z,Q,p,l,q){p=p===void 0?{}:p;var u=Math.round((0,_.t3)()),B=G.size,t=gVb(q);G=_.I(G);var D=G.next();for(q={};!D.done;q={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},D=G.next()){var d=_.I(D.value);D=d.next().value;d=d.next().value;q.batchRequest=_.oN.unsafeClone({context:_.ON2(H.config_||_.Da())});if(!_.Uj(d)&&!_.V("throw_err_when_logevent_malformed_killswitch")){Q();break}q.batchRequest.events=d;
(d=F3o[D])&&Ioo(q.batchRequest,D,d);delete F3o[D];q.dangerousLogToVisitorSession=D==="visitorOnlyApprovedKey";qOX(q.batchRequest,u,q.dangerousLogToVisitorSession);SOR(p);q.onSuccess$jscomp$3=function(e){_.V("start_client_gcf")&&_.Ui.addLowPriorityJob(function(){return _.S(function(n){return n.yield(uDe(e),0)})});
B--;B||Z()};
q.networkFailures=0;q.onError$jscomp$5=function(e){return function(){e.networkFailures++;if(p.bypassNetworkless&&e.networkFailures===1)try{nQj(H,t,e.batchRequest,Bbb({writeThenSend:!0},e.dangerousLogToVisitorSession,e.onSuccess$jscomp$3,e.onError$jscomp$5,l)),Q0v=!1}catch(n){_.FU(n),Q()}B--;B||Z()}}(q);
try{nQj(H,t,q.batchRequest,Bbb(p,q.dangerousLogToVisitorSession,q.onSuccess$jscomp$3,q.onError$jscomp$5,l)),Q0v=!1}catch(e){_.FU(e),Q()}}};
x$3=function(G,H,Z,Q,p,l){Q=Q===void 0?{}:Q;var q=Math.round((0,_.t3)()),u={value:G.size},B=new Map([].concat(_.OP(G)));B=_.I(B);for(var t=B.next();!t.done;t=B.next()){var D=_.I(t.value).next().value,d=G.get(D);t=new JQU;var e=H.config_||_.Da(),n=new vW,c=new tQM;_.ha(c,1,e.innertubeContextHostLanguage);_.ha(c,2,e.innertubeContextGeoLocation);_.ed(c,16,e.innertubeContextClientNameFieldNumber);_.ha(c,17,e.innertubeContextClientVersion);if(e.innertubeContextClientConfigInfo){var W=e.innertubeContextClientConfigInfo,
M=new VL;W.coldConfigData&&_.ha(M,1,W.coldConfigData);W.appInstallData&&_.ha(M,6,W.appInstallData);W.coldHashData&&_.ha(M,3,W.coldHashData);W.hotHashData&&M.setHotHashData(W.hotHashData);_.fq(c,62,M)}(W=_.Qf.devicePixelRatio)&&W!=1&&_.ng(c,65,_.ER(W));W=Hov();W!==""&&_.ha(c,54,W);W=s52();if(W.length>0){M=new k3f;for(var r=0;r<W.length;r++){var w=new WW;w.setKey(W[r].key);fT(w,2,Die,XL(W[r].value));z_(M,15,WW,w)}_.fq(n,5,M)}PXj(e,c);ryu(n);wvb(c);h8j(e,c);CXb(c);_.V("start_client_gcf")&&iNe(c);_.xI("DELEGATED_SESSION_ID")&&
!_.V("pageid_as_header_web")&&(e=new KT,_.ha(e,3,_.xI("DELEGATED_SESSION_ID")));!_.V("fill_delegate_context_in_gel_killswitch")&&(W=_.xI("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(M=_.dt(n,KT,3)||new KT,e=n,W=_.ha(M,18,W),_.fq(e,3,W));e=c;W=_.I(Object.entries(_.QD(_.xI("DEVICE",""))));for(M=W.next();!M.done;M=W.next())r=_.I(M.value),M=r.next().value,r=r.next().value,M==="cbrand"?_.ha(e,12,r):M==="cmodel"?_.ha(e,13,r):M==="cbr"?_.ha(e,87,r):M==="cbrver"?_.ha(e,88,r):M==="cos"?_.ha(e,18,
r):M==="cosver"?_.ha(e,19,r):M==="cplatform"&&_.ed(e,42,j5X(r));n.setClient(c);_.fq(t,1,n);if(c=Y6R[D])a:{if(_.W7(c,M1(c,ECe,1)))n=1;else if(c.getPlaylistId())n=2;else break a;_.fq(t,4,c);c=t.getContext()||new vW;e=_.dt(c,KT,3)||new KT;W=new jy;W.setToken(D);_.ed(W,1,n);z_(e,12,jy,W);_.fq(c,3,e)}delete Y6R[D];D=D==="visitorOnlyApprovedKey";di2()||_.PW(t,2,q);!D&&(n=_.xI("EVENT_ID"))&&(c=ehX(),e=new nVf,_.ha(e,1,n),_.PW(e,2,c),_.fq(t,5,e));SOR(Q);if(_.V("jspb_serialize_with_worker")&&(n=_.LA3())&&
Q.writeThenSend){_.VQ3.set($ie,{client:H,resolve:Z,networklessOptions:Q,isIsolated:p,useVSSEndpoint:l,dangerousLogToVisitorSession:D,requestsOutstanding:u});n.postMessage({op:"gelBatchToSerialize",batchRequest:io(t),clientEvents:d,key:$ie});$ie++;break}if(d){n=[];for(c=0;c<d.length;c++)try{n.push(new rM(d[c]))}catch(x){_.FU(new _.C$("Transport failed to deserialize "+String(d[c])))}d=n}else d=[];d=_.I(d);for(n=d.next();!n.done;n=d.next())z_(t,3,rM,n.value);d={startTime:(0,_.t3)(),ticks:{},infos:{}};
t=t.serialize();d.ticks.geljspc=(0,_.t3)();_.V("log_jspb_serialize_latency")&&Ulu("gel_jspb_serialize",d,{sampleRate:.1});_.Xhv(t,H,Z,Q,p,l,D,u)}};
_.Xhv=function(G,H,Z,Q,p,l,q,u){Q=Q===void 0?{}:Q;u=u===void 0?{value:0}:u;l=gVb(l);Q=Bbb(Q,q,function(B){_.V("start_client_gcf")&&_.Ui.addLowPriorityJob(function(){return _.S(function(t){return t.yield(uDe(B),0)})});
u.value--;u.value||Z()},function(){u.value--;
u.value||Z()},p);
Q.headers["Content-Type"]="application/json+protobuf";Q.postBodyFormat="JSPB";Q.postBody=G;nQj(H,l,"",Q);Q0v=!1};
SOR=function(G){_.V("always_send_and_write")&&(G.writeThenSend=!1)};
Bbb=function(G,H,Z,Q,p){G={retry:!0,onSuccess:Z,onError:Q,networklessOptions:G,dangerousLogToVisitorSession:H,bypassMonitoring:!!p,headers:{},postBodyFormat:"",postBody:"",compress:_.V("compress_gel")||_.V("compress_gel_lr")};di2()&&(G.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.t3)())));return G};
qOX=function(G,H,Z){di2()||(G.requestTimeMs=String(H));_.V("unsplit_gel_payloads_in_logs")&&(G.unsplitGelPayloadsInLogs=!0);!Z&&(H=_.xI("EVENT_ID"))&&(Z=ehX(),G.serializedClientEventId={serializedEventId:H,clientCounter:String(Z)})};
ehX=function(){var G=_.xI("BATCH_CLIENT_COUNTER")||0;G||(G=Math.floor(Math.random()*65535/2));G++;G>65535&&(G=1);_.Ae("BATCH_CLIENT_COUNTER",G);return G};
Ioo=function(G,H,Z){if(Z.videoId)var Q="VIDEO";else if(Z.playlistId)Q="PLAYLIST";else return;G.credentialTransferTokenTargetId=Z;G.context=G.context||{};G.context.user=G.context.user||{};G.context.user.credentialTransferTokens=[{token:H,scope:Q}]};
Mkj=function(G,H){var Z=_.n$("il_payload_scraping")==="enable_il_payload_scraping";if(!_.GF("yt.logging.transport.enableScrapingForTest"))if(Z)cQb=[],_.u7("yt.logging.transport.enableScrapingForTest",!0),_.u7("yt.logging.transport.scrapedPayloadsForTesting",cQb),_.u7("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.u7("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.u7("yt.logging.transport.scrapeClientEvent",!0);else return;Z=_.GF("yt.logging.transport.scrapedPayloadsForTesting");var Q=_.GF("yt.logging.transport.payloadToScrape");H&&(H=_.GF("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(H.payload)())&&Z.push(H);H=_.GF("yt.logging.transport.scrapeClientEvent");if(Q&&Q.length>=1)for(var p=0;p<Q.length;p++)if(G&&G.payload[Q[p]])if(H)Z.push(G.payload);else{var l=void 0;Z.push(((l=G)==null?void 0:l.payload)[Q[p]])}_.u7("yt.logging.transport.scrapedPayloadsForTesting",
Z)};
di2=function(){return _.V("use_request_time_ms_header")||_.V("lr_use_request_time_ms_header")};
Rov=function(G,H){return _.V("transport_use_scheduler")===!1?_.cU(G,H):_.V("logging_avoid_blocking_during_navigation")||_.V("lr_logging_avoid_blocking_during_navigation")?_.wM(_.Ui,function(){if(_.TbX().currentState==="none")G();else{var Z={};_.TbX().install((Z.none={callback:G},Z))}},H):_.wM(_.Ui,G,H)};
bXW=function(G){_.V("transport_use_scheduler")?_.Ui.cancelJob(G):_.f$(G)};
uDe=function(G){var H,Z,Q,p,l,q,u,B,t,D;return _.S(function(d){return d.nextAddress==1?(Q=(H=G)==null?void 0:(Z=H.responseContext)==null?void 0:Z.globalConfigGroup,p=_.X(Q,foM),q=(l=Q)==null?void 0:l.hotHashData,u=_.X(Q,vVR),t=(B=Q)==null?void 0:B.coldHashData,(D=_.tp().resolve(_.Jp(hL)))?q?p?d.yield(WGM(D,q,p),2):d.yield(WGM(D,q),2):d.jumpTo(2):d.return()):t?u?d.yield(zhM(D,t,u),0):d.yield(zhM(D,t),0):d.jumpTo(0)})};
oCR=function(G,H){H=H===void 0?200:H;return G?H===300?HIv:KGW:H===300?s0f:MQj};
rt2=function(G){if(_.V("enable_web_tiered_gel")){G=j0e[G||""];var H,Z,Q,p=_.tp().resolve(_.Jp(hL))==null?void 0:(H=CT())==null?void 0:(Z=H.loggingHotConfig)==null?void 0:(Q=Z.eventLoggingConfig)==null?void 0:Q.payloadPolicies;if(p)for(H=0;H<p.length;H++)if(p[H].payloadNumber===G)return p[H]}};
Pb2=function(G){G=Object.keys(G);G=_.I(G);for(var H=G.next();!H.done;H=G.next())if(H=H.value,j0e[H])return H};
wTe=function(G){switch(G){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}};
iXv=function(G){return G==="gelDebuggingEvent"};
gVb=function(G){return(G===void 0?0:G)&&_.V("vss_through_gel_video_stats")?"video_stats":"log_event"};
ON=function(G,H,Z,Q){Q=Q===void 0?{}:Q;var p={},l=Math.round(Q.timestamp||(0,_.t3)());p.eventTimeMs=l<Number.MAX_SAFE_INTEGER?l:0;p[G]=H;G=_.JL();p.context={lastActivityMs:String(Q.timestamp||!isFinite(G)?-1:G)};Q.sequenceGroup&&!_.V("web_gel_sequence_info_killswitch")&&(G=p.context,H=Q.sequenceGroup,H={index:Plo(H),groupKey:H},G.sequence=H,Q.endOfSequence&&delete ic[Q.sequenceGroup]);_.V("web_tag_automated_log_events")&&(p.context.automatedLogEventSource=Q.automatedLogEventSource);(Q.sendIsolatedPayload?
hoo:OXR)({endpoint:"log_event",payload:p,cttAuthInfo:Q.cttAuthInfo,dangerousLogToVisitorSession:Q.dangerousLogToVisitorSession},Z)};
Plo=function(G){ic[G]=G in ic?ic[G]+1:0;return ic[G]};
_.yR=function(G,H,Z){Z=Z===void 0?{}:Z;var Q=ap;_.YI("ytLoggingEventsDefaultDisabled",!1)&&ap===ap&&(Q=null);ON(G,H,Q,Z)};
_.op=function(){if(_.V("web_fp_via_jspb")){var G=!0;G=G===void 0?!1:G;var H=rQ2;rQ2=[];if(H){H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,G?ON(Z.payloadName,Z.payload,ap,Z.options):_.yR(Z.payloadName,Z.payload,Z.options)}m$v(void 0,!0);if(!_.V("web_fp_via_jspb_and_json"))return}m$v(void 0,!1)};
wh2=function(G,H){var Z;if((Z=H)==null?0:Z.componentStack)return H;if(G=G.componentStack)H||(H={}),H.componentStack=G;return H};
hho=function(){_.Zk(_.xI("ERRORS")||[],function(G){_.me.apply(null,G)});
_.Ae("ERRORS",[])};
_.UN=function(G){_.me(G)};
_.Rp=function(G){_.me(G,"WARNING")};
ClU=function(G){G instanceof Error?_.me(G):(G=_.AM(G)?JSON.stringify(G):String(G),G=new _.C$(G),G.name="RejectedPromiseError",_.Rp(G))};
iIW=function(G,H,Z,Q,p,l){H=H===void 0?"Unknown file":H;Z=Z===void 0?0:Z;var q=!1,u=rZb("log_window_onerror_fraction");if(u&&Math.random()<u)q=!0;else{u=document.getElementsByTagName("script");for(var B=0,t=u.length;B<t;B++)if(u[B].src.indexOf("/debug-")>0){q=!0;break}}q&&(q=!1,p?q=!0:(typeof G==="string"?u=G:ErrorEvent&&G instanceof ErrorEvent?(q=!0,u=G.message,H=G.filename,Z=G.lineno,Q=G.colno):(u="Unknown error",H="Unknown file",Z=0),p=new _.C$(u),p.name="UnhandledWindowError",p.message=u,p.fileName=
H,p.lineNumber=Z,isNaN(Q)?delete p.columnNumber:p.columnNumber=Q),_.V("wiz_enable_component_stack_propagation_killswitch")||(l=wh2(p,l)),l&&_.N1(p,l),q?_.me(p):_.Rp(p))};
_.me=function(G,H,Z,Q,p,l,q,u){l=l===void 0?{}:l;l.name=Z||_.xI("INNERTUBE_CONTEXT_CLIENT_NAME",1);l.version=Q||_.xI("INNERTUBE_CONTEXT_CLIENT_VERSION");Z=l;H=H===void 0?"ERROR":H;q=q===void 0?!1:q;H=H===void 0?"ERROR":H;q=q===void 0?!1:q;if(G&&(G.hasOwnProperty("level")&&G.level&&(H=G.level),_.V("console_log_js_exceptions")&&(Q=[],Q.push("Name: "+G.name),Q.push("Message: "+G.message),G.hasOwnProperty("params")&&Q.push("Error Params: "+JSON.stringify(G.params)),G.hasOwnProperty("args")&&Q.push("Error args: "+
JSON.stringify(G.args)),Q.push("File name: "+G.fileName),Q.push("Stacktrace: "+G.stack),Q=Q.join("\n"),window.console.log(Q,G)),!(OIf>=5))){Q=[];p=_.I(ao2);for(l=p.next();!l.done;l=p.next()){l=l.value;try{l()&&Q.push(l())}catch(M){}}Q=[].concat(_.OP(yQU),_.OP(Q));var B=oVR(G);p=B.message||"Unknown Error";l=B.name||"UnknownError";var t=B.stack||G.stacktrace||"Not available";if(t.startsWith(l+": "+p)){var D=t.split("\n");D.shift();t=D.join("\n")}D=B.lineNumber||"Not available";B=B.fileName||"Not available";
var d=0;if(G.hasOwnProperty("args")&&G.args&&G.args.length)for(var e=0;e<G.args.length&&!(d=Me2(G.args[e],"params."+e,Z,d),d>=500);e++);else if(G.hasOwnProperty("params")&&G.params){var n=G.params;if(typeof G.params==="object")for(e in n){if(n[e]){var c="params."+e,W=MY(n[e]);Z[c]=W;d+=c.length+W.length;if(d>500)break}}else Z.params=MY(n)}if(Q.length)for(e=0;e<Q.length&&!(d=Me2(Q[e],"params.context."+e,Z,d),d>=500);e++);navigator.vendor&&!Z.hasOwnProperty("vendor")&&(Z["device.vendor"]=navigator.vendor);
e={message:p,name:l,lineNumber:D,fileName:B,stack:t,params:Z,sampleWeight:1};Z=Number(G.columnNumber);isNaN(Z)||(e.lineNumber=e.lineNumber+":"+Z);if(G.level==="IGNORED")G=0;else a:{G=miU();Z=_.I(G.messageWeights);for(Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,e.message&&e.message.match(Q.messageRegExp)){G=Q.weight;break a}G=_.I(G.callbackWeights);for(Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.callback(e)){G=Z.weight;break a}G=1}e.sampleWeight=G;G=_.I(Uij);for(Z=G.next();!Z.done;Z=G.next())if(Z=
Z.value,Z.patternsForType[e.name])for(p=_.I(Z.patternsForType[e.name]),Q=p.next();!Q.done;Q=p.next())if(l=Q.value,Q=e.message.match(l.regexp)){e.params["params.error.original"]=Q[0];p=l.groups;l={};for(D=0;D<p.length;D++)l[p[D]]=Q[D+1],e.params["params.error."+p[D]]=Q[D+1];e.message=Z.messageFn(l);break}e.params||(e.params={});G=miU();e.params["params.errorServiceSignature"]="msg="+G.messageWeights.length+"&cb="+G.callbackWeights.length;e.params["params.serviceWorker"]="false";_.Qf.document&&_.Qf.document.querySelectorAll&&
(e.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new AL(Rhj,"sample")).constructor!==AL&&(e.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(e);if(e.sampleWeight!==0&&!Nbo.has(e.message)){if(q&&_.V("web_enable_error_204"))AQM(H===void 0?"ERROR":H,e);else{H=H===void 0?"ERROR":H;H==="ERROR"?(xJ.publish("handleError",e),_.V("record_app_crashed_web")&&xij===0&&e.sampleWeight===1&&(xij++,q={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.V("report_client_error_with_app_crash_ks")||(q.systemHealth={crashData:{clientError:{logMessage:{message:e.message}}}}),_.yR("appCrashed",q)),LGU++):H==="WARNING"&&xJ.publish("handleWarning",e);if(_.V("kevlar_gel_error_routing")){q=H;u=u===void 0?{}:u;b:{G=_.I(EVo);for(Z=G.next();!Z.done;Z=G.next())if(xM(Z.value.toLowerCase())){G=!0;break b}G=!1}if(G)u=void 0;else{Z={stackTrace:e.stack};e.fileName&&(Z.filename=e.fileName);G=e.lineNumber&&e.lineNumber.split?e.lineNumber.split(":"):[];G.length!==
0&&(G.length!==1||isNaN(Number(G[0]))?G.length!==2||isNaN(Number(G[0]))||isNaN(Number(G[1]))||(Z.lineNumber=Number(G[0]),Z.columnNumber=Number(G[1])):Z.lineNumber=Number(G[0]));G={level:"ERROR_LEVEL_UNKNOWN",message:e.message,errorClassName:e.name,sampleWeight:e.sampleWeight};q==="ERROR"?G.level="ERROR_LEVEL_ERROR":q==="WARNING"&&(G.level="ERROR_LEVEL_WARNNING");Z={isObfuscated:!0,browserStackInfo:Z};u.pageUrl=window.location.href;u.kvPairs=[];_.xI("FEXP_EXPERIMENTS")&&(u.experimentIds=_.xI("FEXP_EXPERIMENTS"));
Q=_.xI("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!rZb("web_disable_gel_stp_ecatcher_killswitch")&&Q)for(p=_.I(Object.keys(Q)),l=p.next();!l.done;l=p.next())l=l.value,u.kvPairs.push({key:l,value:String(Q[l])});if(Q=e.params)for(p=_.I(Object.keys(Q)),l=p.next();!l.done;l=p.next())l=l.value,u.kvPairs.push({key:"client."+l,value:String(Q[l])});Q=_.xI("SERVER_NAME");p=_.xI("SERVER_VERSION");Q&&p&&(u.kvPairs.push({key:"server.name",value:Q}),u.kvPairs.push({key:"server.version",value:p}));u={errorMetadata:u,
stackTrace:Z,logMessage:G}}u&&(_.yR("clientError",u),(q==="ERROR"||_.V("errors_flush_gel_always_killswitch"))&&_.op())}_.V("suppress_error_204_logging")||AQM(H,e)}try{Nbo.add(e.message)}catch(M){}OIf++}}};
AQM=function(G,H){var Z=H.params||{};G={urlParams:{a:"logerror",t:"jserror",type:H.name,msg:H.message.substr(0,250),line:H.lineNumber,level:G,"client.name":Z.name},postParams:{url:_.xI("PAGE_NAME",window.location.href),file:H.fileName},method:"POST"};Z.version&&(G["client.version"]=Z.version);if(G.postParams){H.stack&&(G.postParams.stack=H.stack);H=_.I(Object.keys(Z));for(var Q=H.next();!Q.done;Q=H.next())Q=Q.value,G.postParams["client."+Q]=Z[Q];if(Z=_.xI("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(H=
_.I(Object.keys(Z)),Q=H.next();!Q.done;Q=H.next())Q=Q.value,G.postParams[Q]=Z[Q];(Z=_.xI("LAVA_VERSION"))&&(G.postParams["lava.version"]=Z);Z=_.xI("SERVER_NAME");H=_.xI("SERVER_VERSION");Z&&H&&(G.postParams["server.name"]=Z,G.postParams["server.version"]=H)}_.WU(_.xI("ECATCHER_REPORT_HOST","")+"/error_204",G)};
_.YOe=function(G,H){H=H===void 0?"ERROR":H;var Z=Z===void 0?{}:Z;var Q=_.GF("ytbin.polymer.shared.lib.tampering.info");Q&&(Q=Q())&&(Z["params.tamperingInfo"]=Q.sort().join(","));_.me(G,H,void 0,void 0,!0,Z)};
_.N1=function(G){var H=_.Ry.apply(1,arguments);G.args||(G.args=[]);Array.isArray(G.args)&&G.args.push.apply(G.args,_.OP(H))};
FGe=function(G){G.level="IGNORED"};
bI2=function(G,H){yQU.push(G);H();yQU.pop()};
EN=function(G,H){for(var Z in H)H.hasOwnProperty(Z)&&(G=_.LT(G,Z,H[Z]));return G};
_.GkX=function(G,H,Z){Z=Z===void 0?!1:Z;if(!G)return null;if(G.adInfoDialogEndpoint||G.backstageImageUploadEndpoint||G.confirmDialogEndpoint||G.clientActionEndpoint||G.createBackstagePostDialogEndpoint||G.createCommentReplyDialogEndpoint||G.flowEndpoint||G.guideBuilderEndpoint||G.liveChatDialogEndpoint||G.modalEndpoint||G.openPopupAction||G.shareEndpoint||G.shareEntityEndpoint||G.showLiveChatItemEndpoint||G.subscriptionManagerEndpoint||G.unlimitedCreateFamilyEndpoint||G.unlimitedFamilyFlowEndpoint||
G.updateCommentDialogEndpoint||G.updateCommentReplyDialogEndpoint||G.userFeedbackEndpoint||G.videoEditorEndpoint||G.ypcCancelSurveyEndpoint)return H=_.eA("polymer_report_client_url_requested_rate"),!Z&&Math.random()<H&&_.Rp(new _.C$("urlForEndpoint used on client endpoint",G)),null;var Q=_.eA("polymer_report_missing_web_navigation_endpoint_rate");if(G.liveChatEndpoint||G.liveChatReplayEndpoint)Q=0;if(!G.commandMetadata&&!G.clickTrackingParams&&Math.random()<Q){var p={},l;for(l in G)p[l]="1";_.Rp(new _.C$("Missing navigation data",
p))}p="";if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url)p=G.commandMetadata.webCommandMetadata.url;else if(G.searchEndpoint)Math.random()<Q&&_.Rp(new _.C$("Should not manually handle search",G)),p="/results?search_query="+encodeURIComponent(G.searchEndpoint.query).replace(/%20/g,"+"),G.searchEndpoint.params&&(p+="&sp="+G.searchEndpoint.params);else if(G.watchEndpoint)Math.random()<Q&&_.Rp(new _.C$("Should not manually handle watch",G)),p="/watch?v="+
G.watchEndpoint.videoId,G.watchEndpoint.playlistId&&(p+="&list="+G.watchEndpoint.playlistId),G.watchEndpoint.index&&(p+="&index="+G.watchEndpoint.index),G.watchEndpoint.startTimeSeconds&&(p+="&t="+G.watchEndpoint.startTimeSeconds);else if(G.browseEndpoint)Q=G.browseEndpoint.browseId,(l=G.browseEndpoint.canonicalBaseUrl)?p=l:Q&&(p=Q.substr(0,2),p=p==="FE"?Q==="FEwhat_to_watch"?"/":Q==="FEmy_videos"?"/my_videos":"/feed/"+Q.substr(2):p==="VL"?"/playlist?list="+Q.substr(2):"/channel/"+Q),p&&G.browseEndpoint.query&&
(p=EN(p+"/search",{query:G.browseEndpoint.query})),p&&G.browseEndpoint.params&&(p=EN(p,{params:G.browseEndpoint.params}));else{if(G.urlEndpoint)return G.urlEndpoint.url;G.signInEndpoint?(p="https://accounts.google.com/ServiceLogin",Q={},_.oN.extend(Q,H||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),H=Q):G.uploadEndpoint?p="//www.youtube.com/upload":G.liveChatEndpoint?(p=G.liveChatEndpoint,Q=_.oN.clone(p),_.AM(p.continuation)&&(l=Object.keys(p.continuation)[0],
Q.continuation=p.continuation[l].continuation),p=EN("/youtubei/v1/live_chat/get_live_chat",Q)):G.liveChatReplayEndpoint?(p=_.oN.clone(G.liveChatReplayEndpoint),p.currentPlayerState&&(_.oN.extend(p,p.currentPlayerState),delete p.currentPlayerState),p=EN("/youtubei/v1/live_chat/get_live_chat_replay",p)):G.liveChatItemContextMenuEndpoint?p=EN("/youtubei/v1/live_chat/get_item_context_menu",G.liveChatItemContextMenuEndpoint):G.liveChatPurchaseMessageEndpoint?p=EN("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
G.liveChatPurchaseMessageEndpoint):G.openSuperStickerBuyFlowCommand?p=EN("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",G.openSuperStickerBuyFlowCommand):G.videoEditEndpoint?p=EN("/edit",{video_id:G.videoEditEndpoint.videoId}):G.liveDashboardEndpoint?p=G.liveDashboardEndpoint.videoId?EN("/live_dashboard",{v:G.liveDashboardEndpoint.videoId}):"/live_dashboard":G.signalNavigationEndpoint&&G.signalNavigationEndpoint.signal&&G.signalNavigationEndpoint.signal==="WEBCAM"?p="/webcam":G.getPdgBuyFlowCommand&&
(p=EN(G.getPdgBuyFlowCommand.buyflowApiPath,{params:G.getPdgBuyFlowCommand.params}))}return p||Z?EN(p,H||{}):(_.Rp(new _.C$("Error: Can't construct url for endpoint","keys:"+Object.keys(G).sort().join(","),G)),null)};
HGW=function(G){if(G){if(G.browseEndpoint)return!!G.browseEndpoint.nofollow;if(G.watchEndpoint)return!!G.watchEndpoint.nofollow;if(G.urlEndpoint)return!!G.urlEndpoint.nofollow}return!1};
_.ZG3=function(G,H){var Z=H+G,Q=sSj.get(Z);if(Q)return Q;G=H+"-"+G.replace(/([A-Z])/g,"-$1").toLowerCase();sSj.set(Z,G);return G};
QSe=function(G){var H=_.Rz(G,"action")||_.Rz(G,"command")||_.Rz(G,"endpoint");if(!H)return null;H=_.ZG3(H,"yt");_.X(G,_.bc)&&(H+="-"+_.X(G,_.bc).signal.toLowerCase().replace(/_/g,"-"));return H};
Iqf=function(G){try{var H=Object.keys(G)}catch(p){return[]}for(var Z=0;Z<H.length;Z++){var Q=H[Z];if(pVj.test(Q)||lqW.test(Q))return gX2(G[Q])}return[]};
gX2=function(G){return G.command?[G.command]:G.onExecutionAction?[G.onExecutionAction]:G.onResponseReceivedCommand?[G.onResponseReceivedCommand]:G.updateFlowCommand?[G.updateFlowCommand]:G.clientActions?G.clientActions:G.action?[G.action]:G.actions||G.commands||G.onResponseReceivedActions||G.onResponseReceivedCommands||G.onResponseReceivedEndpoints||[]};
Swb=function(G,H){H=H===void 0?!1:H;var Z=_.tp().resolve(_.Jp(GU));Z||(Z=new qwW,_.tp().addProvider({provide:GU,useValue:Z}));return Z&&G&&!_.oN.isEmpty(G)?Z.getUrl(G,H):""};
uuo=function(G,H,Z){Z=Z===void 0?"":Z;if(H){G.data=H;var Q=Swb(H);Q?(AN(G,Q),HGW(H)||!u0(Q)?G.rel="nofollow":G.removeAttribute("rel"),_.X(H,_.Hx)&&_.X(H,_.Hx).target==="TARGET_NEW_WINDOW"?G.target="_blank":Z?G.target=Z:G.removeAttribute("target")):(G.removeAttribute("href"),G.removeAttribute("rel"),G.removeAttribute("target"))}};
_.gN=function(G,H){var Z=IM;if(iV())Buf(G,function(){var l=_.Ry.apply(0,arguments);Nf(Z,function(){H.apply(null,_.OP(l))})});
else{var Q=_.sS.getInstance(),p=PJj(H);cZv(function(){p.value=H});
_.mR(function(){var l={},q=_.p1(Q,(l[G]=function(){var u=_.Ry.apply(0,arguments);Nf(Z,function(){p.value.apply(p,_.OP(u))})},l));
return function(){var u={};_.lu(Q,(u[G]="",u),q)}})}};
_.IA=function(G,H){return JWX(G,!1,H)};
_.qK=function(G,H){return JWX(G,!0,H)};
JWX=function(G,H,Z){return iV()?tP2(G,H,Z):kkj(G,H,Z)};
kkj=function(G,H,Z){return UJ(function(){return tP2(G,H,Z)})};
tP2=function(G,H,Z){var Q=nkf(function(p){Q.value=p;var l=function(){var q=D0(null);try{return Z==null?void 0:Z(p)}finally{D0(q)}}();
return function(){l==null||l()}});
Q.__expectedTagName=G;Q.__optional=H;Q.isIdom=!iV();return Q};
DBX=function(G){var H=IM,Z=hs;return{getFn:function(){return function(Q){if(!H.isDisposed){var p=function(){return G(Q)};
aM(function(){return _.cS(p)},Z)!==!0&&Q.stopPropagation()}}}}};
dBb=function(G){if(typeof G.children==="function")return G.children(),null;G=_.I(G.children);for(var H=G.next();!H.done;H=G.next())H=H.value,H();return null};
e3f=function(G){var H;return((H=G.prototype)==null?void 0:H.render)===void 0};
nXu=function(G){var H=Array.isArray(G.items)?G.items:Array.from(G.items);G=G.children;return(Array.isArray(H)?H:Array.from(H)).map(G)};
$BM=function(G,H,Z){Z=Z===void 0?!1:Z;aM(function(){return VP2(G,H,Z)})};
VP2=function(G,H,Z){var Q=null;PS++;Z=(Z===void 0?0:Z)?XVU:cWf;try{Q=Z(G,function(){Ss(H)}),wn(!1)}catch(p){throw wn(!0),p;
}return Q===null?G:Q};
Ss=function(G){if(G!==void 0&&G!==null)if(G instanceof Wt)for(var H=Ht;sJ()!=null&&Z9v in sJ()&&H.contains(sJ());)pl();else if(Array.isArray(G))for(H=_.I(G),G=H.next();!G.done;G=H.next())Ss(G.value);else if(G instanceof Kq||G instanceof uE||"function"==typeof _.Bt&&G instanceof _.Bt)sZe(G.toString());else if(_.dO(G)){if(sJ()!==G){var Z,Q;H=(Q=(Z=hs)==null?void 0:Z.name)!=null?Q:"unknown";throw Error("hc`"+G.tagName+"`"+H);}pl()}else if(G!=null&&G.contentKind===$I||G instanceof xY||d2b(G))for(H=niW(G),
H=Array.from(H.childNodes),H=_.I(H),G=H.next();!G.done;G=H.next())Ht.appendChild(G.value),pl();else if(Cq(G)&&(G=G.toString()),Z=typeof G,Z==="boolean"||Z==="number"||Z==="string")sZe(G);else if(typeof G==="function"){H=Ht;var p=sJ();p&&(p._isSignalTextNode||p._isSafeOrSanitizedHtmlNode)||Ac3(H,p,G);pl()}else if(G.type===nXu)Ss(G.type(Object.assign({},G.props,{children:G.children[0]})));else{if(typeof G.type==="string"){a:{G.__open||xKU(G.type,G.props.idomKey);p=Ht;for(H in G.props)if(G.props[H]!==
TuU){var l=G.props[H];Z=Iz;Z.push(H);Z.push(l)}H=Js.attributes;H=H===void 0?uu:H;l=Ht;Z=GI(l);H6W(l,Z,H);Ngj(p,G.props,!0);if((G.props.skip||G.props.skipchildren)&&Ht.hasChildNodes())QP=Ht.lastChild;else{if(G.type==="style"&&W_u(G.children)===null){QP=Ht.lastChild;H=void 0;break a}Ss(G.children)}Lgj();G.__open&&(G.__open=!1);SWb(p,G.props);H=p}return H}if(G.type===_.kI)Ss(G.children);else if(!fqj(G)){H=G;try{vXf(H)}catch(q){G=q,(l=Js.handleError)==null||l.call.apply(l,[Js].concat(_.OP(As(G,(p=H.type)==
null?void 0:p.TAG_NAME))))}H.__open&&(Lgj(),H.__open=!1)}}};
WwU=function(G,H){var Z;e3f(G)?Z=new Pt(H,G):Z=new G(H);Z.__type=G;Z.__updateContext={nextState:Z.state,isForced:!1};return Z};
vXf=function(G){var H=G.type,Z=H.TAG_NAME;if(H===dBb)G.props.children=G.children,H(G.props);else{G.children.length>0&&(G.props.children=G.children);var Q;(Q=G.props).idomKey||(Q.idomKey=H);if(Z){var p=xKU(Z,G.props.idomKey);G.__open=!0;var l=p.__instance}l||(l=WwU(H,G.props),l.props=null,p&&(p.__instance=l,l.el=p));var q;Z=((q=l.__updateContext)!=null?q:{nextState:l.state,isForced:!1}).nextState;l.__updateContext=void 0;H.getDerivedStateFromProps&&(Z=H.getDerivedStateFromProps(G.props,Z));l.props=
G.props;l.state=Z;q=function(){var u=l;MV.beforeRender(u);var B=u.render(u.props);B?(u.props.idomKey&&(B.props.idomKey=u.props.idomKey),u=B):u=void 0;if(B=u)if(B.__open=G.__open,u=Ss(B),G.__open=B.__open,!H.TAG_NAME)if(u)H.TAG_NAME=u.tagName.toLowerCase(),u.__instance=l,l.el=u;else{var t;if((t=l.hooks)==null?0:t.length){var D;(D=Js.handleError)==null||D.call.apply(D,[Js].concat(_.OP(As(Error("od")))))}}l.didPatch();MV.didPatch(l)};
(Z=l.functionComponent)?uZo(Z,q,l.props.debugInstance):q()}};
fqj=function(G){var H=G.type;if(!e3f(H)||H===dBb||H.componentType===Cb)return!1;G.props.children=G.children.length>1?G.children:G.children[0];var Z,Q=(Z=G.props.idomKey)!=null?Z:G.type,p;if(sJ()&&((p=sJ()[TI])==null?void 0:p.key)===Q){var l=sJ(),q=l[TI];if(!q)throw Error("gc`"+l.tagName);var u;(u=q.updateSignalsFromIdomProps)==null||u.call(q,G.props);z3W(q);return!0}if(Kwj.has(H.name))throw u=H.name,H=(q=(l=hs)==null?void 0:l.name)!=null?q:"unknown",Error("fc`"+u+"`"+H);YWu(G.type,G.props,G.children);
G.props.renderedFromIdom=!0;(u=uZo(G.type,function(){return ycR(G.type,G.props)},G.props.debugInstance))&&MPj(u);
return!0};
jS3=function(G){for(var H=0;H<vt(G).length;H++)pl()};
z3W=function(G){var H=PPU();if(H)jS3(H);else for(var Z=0;Z<G.numNodes;Z++)(H=PPU())?jS3(H):pl()};
PPU=function(){var G;return(G=sJ()[TI])==null?void 0:G.sourceDynamicRange};
MPj=function(G){G=Jco(G);G=Array.isArray(G)?G:[G];G=_.I(G);for(var H=G.next();!H.done;H=G.next())Ht.insertBefore(H.value,sJ()),pl()};
rWv=function(){var G=m2X(),H=UJ(function(){return{value:0}});
return[H.value,function(Z){if(jK!==null){var Q;(Q=Js.handleError)==null||Q.call.apply(Q,[Js].concat(_.OP(As(Error("pd")))))}H.value=typeof Z==="function"?Z(H.value):Z;G.__updateContext={nextState:G.state,isForced:!0};Z=_.qf(G.effectContext);Q=D2(!1);try{if(G.el){var p,l={},q=(l.props=G.props,l.type=G.__type,l.children=(p=G.props.children)!=null?p:[],l[te]=!0,l);try{$BM(G.el,q,!0)}catch(t){var u,B;(B=Js.handleError)==null||B.call.apply(B,[Js].concat(_.OP(As(t,(u=G.__type)==null?void 0:u.TAG_NAME))))}}}finally{D2(Q),
_.qf(Z)}}]};
_.Bx=function(G,H){var Z=IM,Q=function(p){Nf(Z,function(){H(p)})};
window.addEventListener(G,Q,void 0);_.oM(function(){window.removeEventListener(G,Q,void 0)})};
_.tk=function(G){var H=IM;return function(Z){var Q,p=(Q=G.observer)!=null?Q:_.tp().resolve(Jk);Q=wV3(Z);var l=[];G.showOption&&l.push(p.observe(Z,function(){Nf(H,function(){G.visibilityCallback(!0,Z)})},G.showOption));
G.hideOption&&l.push(p.observe(Z,function(){Nf(H,function(){G.visibilityCallback(!1,Z)})},G.hideOption));
G.prescanOption&&G.prescanCallback&&l.push(p.observe(Z,function(){Nf(H,function(){G.prescanCallback()})},G.prescanOption));
var q;Q.visibilityMonitorKeys=((q=Q.visibilityMonitorKeys)!=null?q:[]).concat(l)}};
wV3=function(G){var H;return(H=G.polymerController)!=null?H:G};
OGe=function(G,H){var Z=h3f;return _.J(_.kI,null,tdf(Js.enableLazyTsx,function(){return _.J(CPj,{id:Z,value:G,children:H})},function(){var Q=iGf(Z,G);
BS(Q);Q=_.qf(Q);try{return H()}finally{_.qf(Q)}}))};
CPj=function(G){var H=G.children;G=iGf(G.id,G.value);BS(G);G=_.qf(G);try{return _.J(_.kI,null,zI(H()))}finally{_.qf(G)}};
iGf=function(G,H){return Object.assign(Object.create(aqR),{id:G,contextValue:H})};
yWj=function(G){var H,Z=IM;_.RM(function(){var Q=_.qf(Z),p=D2(!H);try{if(H)$BM(H,G.children(),!0);else if(H=zI(G.children()),!(H instanceof Element))throw Error("qd");}finally{D2(p),_.qf(Q)}},"f");
return H};
_.oXb=function(G,H){var Z;H=mf(function(){var Q=D2(!0);PS++;try{Z=vt(G()),wn(!1)}catch(p){throw wn(!0),p;}finally{D2(Q)}},H===void 0?!1:H);
return[Z,H]};
UBo=function(G){var H=new mBo;H.abort(G);return H.signal};
R3o=function(){if(this.aborted){var G;throw(G=this.reason)!=null?G:new DOMException("signal is aborted without reason","AbortError");}};
xBb=function(G){var H=new mBo;G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.aborted){H.abort(Z.reason);break}else Nuu.set(H.signal,H),AWb.add(Z,H.signal);return H.signal};
Lw3=function(){for(var G=_.I(AWb.get(this)),H=G.next();!H.done;H=G.next())Nuu.get(H.value).abort(this.reason)};
EXb=function(G){var H=new mBo;setTimeout(function(){H.abort(new DOMException("signal timed out","TimeoutError"))},G);
return H.signal};
YwX=function(){var G,H;return{promise:new Promise(function(Z,Q){G=Z;H=Q}),
resolve:G,reject:H}};
bGu=function(G){var H=YwX(),Z=H.promise;Fw2.set(G,{promise:Z,resolve:H.resolve,reject:H.reject});kP||(kP=[],queueMicrotask(function(){var Q=[].concat(_.OP(kP));kP=null;var p=of().loadMultiple(Q);Q=_.I(Q);for(var l=Q.next();!l.done;l=Q.next())l=l.value,p[l].then(Fw2.get(l).resolve,Fw2.get(l).reject)}));
kP.push(G);return Z};
HAW=function(G){G=G.buf.charCodeAt(G.pos++);return GGe[G]};
DY=function(G){var H=0,Z=0;do{var Q=HAW(G);H|=(Q&31)<<Z;Z+=5}while(Q&32);return H<0?H+4294967296:H};
ZAb=function(G,H,Z,Q){var p=!0;p=p===void 0?!1:p;H=H===void 0?!1:H;Q=Q===void 0?{}:Q;var l=Q.cssRowKey||"",q=Q.combinedSignature||"";!l&&window&&window._F_cssRowKey&&(l=window._F_cssRowKey,!q&&window._F_combinedSignature&&(q=window._F_combinedSignature));if(l&&typeof window._F_installCss!=="function")throw Error("Ad");var u=Q.loaderClass||_.dN;G=wPU(G===void 0?"base-js":G);H=new u(nbe(C7j("",G)),l,q,p,H);p=Q.useCors||G&&G.hasAttribute("crossorigin");G=Q.corsMode||G&&G.getAttribute("crossorigin");
p&&(H.useCors_=p);G&&(H.corsMode_=G);Q.urlMaxLength&&(H.urlMaxLength=Q.urlMaxLength);Z&&(H.insertPos=Z);Q.fetchPriority&&(H.fetchPriority=Q.fetchPriority);var B=of();B.JSC$10063_loader_=H;B.setBatchModeEnabled(!0);_.s9u=Q.batchingStrategy==="BATCH"?bGu:function(t){return Promise.resolve(B.load(t))}};
lxf=function(G,H,Z){Q9o(G,H);G[H][p8j].unshift(Z)};
Q9o=function(G,H){if(!G[H]||!G[H][p8j]){var Z=G[H],Q=Z?[Z]:[];G[H]=function(){for(var p=_.I(Q),l=p.next();!l.done;l=p.next())l.value.apply(this,arguments)};
G[H][p8j]=Q}};
gGf=function(G){if(!G)return[];var H=[];G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Array.isArray(Z)?H.push.apply(H,_.OP(gGf(Z))):H.push(Z);return H};
_.n1=function(G,H){if(G&&IxR.test(G)||G==="//")return G;if(qzb===void 0){qzb=!1;try{var Z=new URL("b","http://a");Z.pathname="c%20d";qzb=Z.href==="http://a/c%20d"}catch(Q){}}H||(H=document.baseURI||window.location.href);if(qzb)try{return(new URL(G,H)).href}catch(Q){return G}es||(es=document.implementation.createHTMLDocument("temp"),es.base=es.createElement("base"),es.head.appendChild(es.base),es.anchor=es.createElement("a"),es.body.appendChild(es.anchor));es.base.href=H;es.anchor.href=G;return es.anchor.href||
G};
uyX=function(G,H){return G.replace(Szj,function(Z,Q,p,l){return Q+"'"+_.n1(p.replace(/["']/g,""),H)+"'"+l})};
BpW=function(G){return G.substring(0,G.lastIndexOf("/")+1)};
kGb=function(){Jlu=!1;for(var G=Vs.length,H=0;H<G;H++){var Z=Vs[H];if(Z)try{Z()}catch(Q){setTimeout(function(){throw Q;})}}Vs.splice(0,G);
tO3+=G};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(G){console.log("["+G.is+"]: registered")};
dcW=function(G){DcU.push(G)};
$P=function(G){return efM[G]||(efM[G]=G.indexOf("-")<0?G:G.replace(nGv,function(H){return H[1].toUpperCase()}))};
XZ=function(G){return efM[G]||(efM[G]=G.replace(VOf,"-$1").toLowerCase())};
$ce=function(G,H){var Z=H.parentInfo&&$ce(G,H.parentInfo);if(Z)for(G=Z.firstChild,Z=0;G;G=G.nextSibling){if(H.parentIndex===Z++)return G}else return G};
X8R=function(G,H){G=G._methodHost||G;return function(Z){if(G[H])G[H](Z,Z.detail);else console.warn("listener method `"+H+"` not defined")}};
cx=function(G){return G.indexOf(".")>=0};
TU=function(G){var H=G.indexOf(".");return H===-1?G:G.slice(0,H)};
clf=function(G,H){return G.indexOf(H+".")===0};
f1=function(G,H){return H.indexOf(G+".")===0};
vx=function(G,H,Z){return H+Z.slice(G.length)};
Tpo=function(G,H){return G===H||clf(G,H)||f1(G,H)};
Wx=function(G){if(Array.isArray(G)){for(var H=[],Z=0;Z<G.length;Z++)for(var Q=G[Z].toString().split("."),p=0;p<Q.length;p++)H.push(Q[p]);return H.join(".")}return G};
fxb=function(G){return Array.isArray(G)?Wx(G).split("."):G.toString().split(".")};
zU=function(G,H,Z){H=fxb(H);for(var Q=0;Q<H.length;Q++){if(!G)return;G=G[H[Q]]}Z&&(Z.path=H.join("."));return G};
vG2=function(G,H,Z){var Q=fxb(H),p=Q[Q.length-1];if(Q.length>1){for(H=0;H<Q.length-1;H++)if(G=G[Q[H]],!G)return;G[p]=Z}else G[H]=Z;return Q.join(".")};
WU3=function(G,H,Z){var Q=G[H];if(!Q)Q=G[H]={};else if(!G.hasOwnProperty(H)&&(Q=G[H]=Object.create(G[H]),Z))for(var p in Q)for(G=Q[p],H=Q[p]=Array(G.length),Z=0;Z<G.length;Z++)H[Z]=G[Z];return Q};
MK=function(G,H,Z,Q,p,l){if(H){var q=!1,u=K1++,B;for(B in Z){var t=p?TU(B):B;if(t=H[t])for(var D=0,d=t.length,e=void 0;D<d&&(e=t[D]);D++)e.info&&e.info.lastRun===u||p&&!zfM(B,e.trigger)||(e.info&&(e.info.lastRun=u),e.fn(G,B,Z,Q,e.info,p,l),q=!0)}return q}return!1};
zfM=function(G,H){if(H){var Z=H.name;return Z==G||!(!H.structured||!clf(Z,G))||!(!H.wildcard||!f1(Z,G))}return!0};
KUu=function(G,H,Z,Q,p){H=typeof p.method==="string"?G[p.method]:p.method;Z=p.property;H?H.call(G,G.__data[Z],Q[Z]):p.dynamicFn||console.warn("observer method `"+p.method+"` not defined")};
MOX=function(G,H,Z,Q){Z={value:Z,queueProperty:!0};Q&&(Z.path=Q);(0,_.js)(G).dispatchEvent(new CustomEvent(H,{detail:Z}))};
j9u=function(G,H,Z,Q,p,l){l=(Q=(l?TU(H):H)!=H?H:null)?zU(G,Q):G.__data[H];Q&&l===void 0&&(l=Z[H]);MOX(G,p.eventName,l,Q)};
PLf=function(G,H,Z,Q,p){Z=G.__data[H];Px&&(Z=Px(Z,p.attrName,"attribute",G));G._propertyToAttribute(H,p.attrName,Z)};
w8u=function(G){var H=G.constructor.__orderedComputedDeps;if(!H){H=new Map;for(var Z=G.__computeEffects,Q=rlR(G),p=Q.counts,l=Q.ready,q=Q.total;Q=l.shift();)H.set(Q,H.size),(Q=Z[Q])&&Q.forEach(function(u){u=u.info.methodInfo;--q;--p[u]===0&&l.push(u)});
q!==0&&console.warn("Computed graph for "+G.localName+" incomplete; circular?");G.constructor.__orderedComputedDeps=H}return H};
rlR=function(G){var H=G.__computeInfo,Z={};G=G.__computeEffects;var Q=[],p=0,l;for(l in H){var q=H[l];p+=Z[l]=q.args.filter(function(B){return!B.literal}).length+(q.dynamicFn?1:0)}for(var u in G)H[u]||Q.push(u);
return{counts:Z,ready:Q,total:p}};
CLX=function(G,H,Z,Q,p){H=hfu(G,H,Z,Q,p);if(H===rN)return!1;p=p.methodInfo;if(G.__dataHasAccessor&&G.__dataHasAccessor[p])return G._setPendingProperty(p,H,!0);G[p]=H;return!1};
axf=function(G,H,Z,Q,p,l,q){Z.bindings=Z.bindings||[];Q={kind:Q,target:p,parts:l,literal:q,isCompound:l.length!==1};Z.bindings.push(Q);Q.target&&Q.kind!="attribute"&&Q.kind!="text"&&!Q.isCompound&&Q.parts[0].mode==="{"&&(Z=Q.parts[0],l=Z.negate,Q.listenerEvent=Z.event||XZ(p)+"-changed",Q.listenerNegate=l);p=H.nodeInfoList.length;for(Z=0;Z<Q.parts.length;Z++){var u=Q.parts[Z];u.compoundIndex=Z;l=G;q=H;var B=Q,t=u,D=p;if(!t.literal)if(B.kind==="attribute"&&B.target[0]==="-")console.warn("Cannot set attribute "+
B.target+' because "-" is not a valid attribute starting character');else for(u=t.dependencies,B={index:D,binding:B,part:t,evaluator:l},t=0;t<u.length;t++)D=u[t],typeof D=="string"&&(D=iAj(D),D.wildcard=!0),l._addTemplatePropertyEffect(q,D.rootProperty,{fn:OAf,info:B,trigger:D})}};
OAf=function(G,H,Z,Q,p,l,q){q=q[p.index];var u=p.binding,B=p.part;l&&B.source&&H.length>B.source.length&&u.kind=="property"&&!u.isCompound&&q.__isPropertyEffectsClient&&q.__dataHasAccessor&&q.__dataHasAccessor[u.target]?(Z=Z[H],H=vx(B.source,u.target,H),q._setPendingPropertyOrPath(H,Z,!1,!0)&&G._enqueueClient(q)):(H=p.evaluator._evaluateBinding(G,B,H,Z,Q,l),H!==rN&&(u.isCompound&&(Z=q.__dataCompoundStorage[u.target],Z[B.compoundIndex]=H,H=Z.join("")),u.kind==="attribute"||u.target!=="textContent"&&
(u.target!=="value"||q.localName!=="input"&&q.localName!=="textarea")||(H=H==void 0?"":H),B=H,Px&&(B=Px(B,u.target,u.kind,q)),u.kind=="attribute"?G._valueToNodeAttribute(q,B,u.target):(u=u.target,q.__isPropertyEffectsClient&&q.__dataHasAccessor&&q.__dataHasAccessor[u]?q.__readOnly&&q.__readOnly[u]||q._setPendingProperty(u,B)&&G._enqueueClient(q):G._setUnmanagedPropertyToNode(q,u,B))))};
ylM=function(G,H,Z){if(Z.listenerEvent){var Q=Z.parts[0];G.addEventListener(Z.listenerEvent,function(p){var l=Z.target,q=Q.source,u=Q.negate,B=p.detail,t=B&&B.path;t?(q=vx(l,q,t),p=B&&B.value):p=p.currentTarget[l];H.__readOnly&&H.__readOnly[q]||!H._setPendingPropertyOrPath(q,u?!p:p,!0,!!t)||B&&B.queueProperty||H._invalidateProperties()})}};
oGj=function(G,H,Z,Q,p,l){l=H.static||l&&(typeof l!=="object"||l[H.methodName]);p={methodName:H.methodName,args:H.args,methodInfo:p,dynamicFn:l};for(var q=0,u=void 0;q<H.args.length&&(u=H.args[q]);q++)u.literal||G._addPropertyEffect(u.rootProperty,Z,{fn:Q,info:p,trigger:u});l&&G._addPropertyEffect(H.methodName,Z,{fn:Q,info:p});return p};
hfu=function(G,H,Z,Q,p){Q=G._methodHost||G;var l=Q[p.methodName];if(l)return G=G._marshalArgs(p.args,H,Z),G===rN?rN:l.apply(Q,G);p.dynamicFn||console.warn("method `"+p.methodName+"` not defined")};
mcf=function(G){for(var H="",Z=0;Z<G.length;Z++)H+=G[Z].literal||"";return H};
Npf=function(G){if(G=G.match(/([^\s]+?)\(([\s\S]*)\)/)){var H={methodName:G[1],static:!0,args:UcM};return G[2].trim()?Rfu(G[2].replace(/\\,/g,"&comma;").split(","),H):H}return null};
Rfu=function(G,H){H.args=G.map(function(Z){Z=iAj(Z);Z.literal||(H.static=!1);return Z},this);
return H};
iAj=function(G){G=G.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var H={name:G,value:"",literal:!1},Z=G[0];Z==="-"&&(Z=G[1]);Z>="0"&&Z<="9"&&(Z="#");switch(Z){case "'":case '"':H.value=G.slice(1,-1);H.literal=!0;break;case "#":H.value=Number(G),H.literal=!0}H.literal||(H.rootProperty=TU(G),H.structured=cx(G),H.structured&&(H.wildcard=G.slice(-2)==".*",H.wildcard&&(H.name=G.slice(0,-2))));return H};
Al3=function(G,H,Z){G=zU(G,Z);G===void 0&&(G=H[Z]);return G};
xco=function(G,H,Z,Q){Q={indexSplices:Q};wN&&!G._overrideLegacyUndefined&&(H.splices=Q);G.notifyPath(Z+".splices",Q);G.notifyPath(Z+".length",H.length);wN&&!G._overrideLegacyUndefined&&(Q.indexSplices=[])};
hk=function(G,H,Z,Q,p,l){xco(G,H,Z,[{index:Q,addedCount:p,removed:l,object:H,type:"splice"}])};
LUf=function(G){G=uyX((G.body?G.body:G).textContent,G.baseURI);var H=document.createElement("style");H.textContent=G;return H};
YzX=function(G){G=G.trim().split(/\s+/);for(var H=[],Z=0;Z<G.length;Z++)H.push.apply(H,_.OP(EGu(G[Z])));return H};
EGu=function(G){var H=C1.import(G);if(!H)return console.warn("Could not find style data in module named",G),[];if(H._styles===void 0){G=[];G.push.apply(G,_.OP(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H)));var Z=H.querySelector("template");Z&&G.push.apply(G,_.OP(FUf(Z,H.assetpath)));H._styles=G}return H._styles};
FUf=function(G,H){if(!G._styles){for(var Z=[],Q=G.content.querySelectorAll("style"),p=0;p<Q.length;p++){var l=Q[p],q=l.getAttribute("include");q&&Z.push.apply(Z,_.OP(YzX(q).filter(function(u,B,t){return t.indexOf(u)===B})));
H&&(l.textContent=uyX(l.textContent,H));Z.push(l)}G._styles=Z}return G._styles};
bAu=function(G){return(G=C1.import(G))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var H=[];G=G.querySelectorAll("link[rel=import][type~=css]");for(var Z=0;Z<G.length;Z++){var Q=G[Z];if(Q.import){var p=Q.import;if((Q=Q.hasAttribute("shady-unscoped"))&&!p._unscopedStyle){var l=LUf(p);l.setAttribute("shady-unscoped","");p._unscopedStyle=l}else p._style||(p._style=LUf(p));H.push(Q?p._unscopedStyle:p._style)}}return H};
HMW=function(G){G=G.trim().split(/\s+/);for(var H="",Z=0;Z<G.length;Z++)H+=G1v(G[Z]);return H};
G1v=function(G){var H=C1.import(G);if(H&&H._cssText===void 0){var Z=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H),Q=H.querySelector("template");Q&&(Z+=s6R(Q,H.assetpath));H._cssText=Z||null}H||console.warn("Could not find style data in module named",G);return H&&H._cssText||""};
s6R=function(G,H){var Z="";G=FUf(G,H);for(H=0;H<G.length;H++){var Q=G[H];Q.parentNode&&Q.parentNode.removeChild(Q);Z+=Q.textContent}return Z};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(G){var H="";G=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G);for(var Z=0;Z<G.length;Z++)H+=G[Z].textContent;return H};
iu=function(G,H){return{index:G,removed:[],addedCount:H}};
Q6v=function(G,H,Z,Q){var p=0,l=0,q=0,u=0,B=Math.min(H-p,Q-l);if(p==0&&l==0)a:{for(q=0;q<B;q++)if(G[q]!==Z[q])break a;q=B}if(H==G.length&&Q==Z.length){u=G.length;for(var t=Z.length,D=0;D<B-q&&ZMf(G[--u],Z[--t]);)D++;u=D}p+=q;l+=q;H-=u;Q-=u;if(H-p==0&&Q-l==0)return[];if(p==H){for(H=iu(p,0);l<Q;)H.removed.push(Z[l++]);return[H]}if(l==Q)return[iu(p,H-p)];B=p;q=l;Q=Q-q+1;u=H-B+1;H=Array(Q);for(t=0;t<Q;t++)H[t]=Array(u),H[t][0]=t;for(t=0;t<u;t++)H[0][t]=t;for(t=1;t<Q;t++)for(D=1;D<u;D++)if(G[B+D-1]===
Z[q+t-1])H[t][D]=H[t-1][D-1];else{var d=H[t-1][D]+1,e=H[t][D-1]+1;H[t][D]=d<e?d:e}B=H.length-1;q=H[0].length-1;Q=H[B][q];for(G=[];B>0||q>0;)B==0?(G.push(2),q--):q==0?(G.push(3),B--):(u=H[B-1][q-1],t=H[B-1][q],D=H[B][q-1],d=t<D?t<u?t:u:D<u?D:u,d==u?(u==Q?G.push(0):(G.push(1),Q=u),B--,q--):d==t?(G.push(3),B--,Q=t):(G.push(2),q--,Q=D));G.reverse();H=void 0;B=[];for(q=0;q<G.length;q++)switch(G[q]){case 0:H&&(B.push(H),H=void 0);p++;l++;break;case 1:H||(H=iu(p,0));H.addedCount++;p++;H.removed.push(Z[l]);
l++;break;case 2:H||(H=iu(p,0));H.addedCount++;p++;break;case 3:H||(H=iu(p,0)),H.removed.push(Z[l]),l++}H&&B.push(H);return B};
pMe=function(G,H){return Q6v(G,G.length,H,H.length)};
ZMf=function(G,H){return G===H};
gjU=function(G){if(G instanceof lGj)return G.value;throw Error("Id`"+G);};
IGj=function(G,H){for(var Z in H)Z===null?G.style.removeProperty(Z):G.style.setProperty(Z,H[Z])};
qV3=function(G,H){return(G=window.getComputedStyle(G).getPropertyValue(H))?G.trim():""};
JBW=function(G){requestAnimationFrame(function(){SVU?SVU(G):(uWf||(uWf=new Promise(function(H){Bqf=H}),document.readyState==="complete"?Bqf():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Bqf()})),uWf.then(function(){G&&G()}))})};
DWo=function(G){tVj=G&&G.shimcssproperties?!1:k1M||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
$WU=function(G){if(!(dWj.indexOf(G)>-1)&&G!=="touchend"&&ecf&&njU&&VVb)return{passive:!0}};
fGv=function(G){for(var H=XMM?["click"]:dWj,Z=0,Q;Z<H.length;Z++)Q=H[Z],G?(cBX.length=0,document.addEventListener(Q,Tq3,!0)):document.removeEventListener(Q,Tq3,!0)};
OS=function(G){var H=G.type;return dWj.indexOf(H)>-1?H==="mousemove"?(H=G.buttons===void 0?1:G.buttons,G instanceof window.MouseEvent&&!vjj&&(H=Wnj[G.which]||0),!!(H&1)):(G.button===void 0?0:G.button)===0:!1};
zcj=function(G){if(G.type==="click"){if(G.detail===0)return!0;var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);if(!H.nodeType||H.nodeType!==Node.ELEMENT_NODE)return!0;H=H.getBoundingClientRect();var Z=G.pageX;G=G.pageY;return!(Z>=H.left&&Z<=H.right&&G>=H.top&&G<=H.bottom)}return!1};
KnW=function(G,H,Z){G.movefn=H;G.upfn=Z;document.addEventListener("mousemove",H);document.addEventListener("mouseup",Z)};
aA=function(G){document.removeEventListener("mousemove",G.movefn);document.removeEventListener("mouseup",G.upfn);G.movefn=null;G.upfn=null};
MVb=function(G,H){for(var Z=document.elementFromPoint(G,H),Q=Z;Q&&Q.shadowRoot&&!window.ShadyDOM;){var p=Q;Q=Q.shadowRoot.elementFromPoint(G,H);if(p===Q)break;Q&&(Z=Q)}return Z};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var H=j6e(G);return H.length>0?H[0]:G.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var H=G.type,Z=G.currentTarget.__polymerGestures;if(Z&&(Z=Z[H])){if(!G.__polymerGesturesHandled&&(G.__polymerGesturesHandled={},H.slice(0,5)==="touch")){var Q=G.changedTouches[0];H==="touchstart"&&G.touches.length===1&&(P$u=Q.identifier);if(P$u!==Q.identifier)return;ecf||(H==="touchstart"||H==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)}Q=
G.__polymerGesturesHandled;if(!Q.skip){for(var p=0,l;p<ys.length;p++)l=ys[p],Z[l.name]&&!Q[l.name]&&l.flow&&l.flow.start.indexOf(G.type)>-1&&l.reset&&l.reset();for(p=0;p<ys.length;p++)l=ys[p],Z[l.name]&&!Q[l.name]&&(Q[l.name]=!0,l[H](G))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){var H=G.changedTouches[0],Z=G.type;if(Z==="touchstart")rBf=H.clientX,wMv=H.clientY,hco=!1;else if(Z==="touchmove"&&!hco){hco=!0;Z="auto";for(var Q=j6e(G),p=0,l;p<Q.length;p++)if(l=Q[p],l.__polymerGesturesTouchAction){Z=l.__polymerGesturesTouchAction;break}Q=!1;p=Math.abs(rBf-H.clientX);H=Math.abs(wMv-H.clientY);G.cancelable&&(Z==="none"?Q=!0:Z==="pan-x"?Q=H>p:Z==="pan-y"&&(Q=p>H));Q?G.preventDefault():
oA("track")}};
US=function(G,H,Z){return mg[H]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,H,Z),!0):!1};
RA=function(G,H,Z){return mg[H]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,H,Z),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,H,Z){var Q=mg[H],p=Q.deps,l=Q.name,q=G.__polymerGestures;q||(G.__polymerGestures=q={});for(var u=0,B,t;u<p.length;u++)B=p[u],XMM&&dWj.indexOf(B)>-1&&B!=="click"||((t=q[B])||(q[B]=t={_count:0}),t._count===0&&G.addEventListener(B,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,$WU(B)),t[l]=(t[l]||0)+1,t._count=(t._count||0)+1);G.addEventListener(H,Z);Q.touchAction&&_.NK(G,Q.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,H,Z){var Q=mg[H],p=Q.deps;Q=Q.name;var l=G.__polymerGestures;if(l)for(var q=0,u,B;q<p.length;q++)u=p[q],(B=l[u])&&B[Q]&&(B[Q]=(B[Q]||1)-1,B._count=(B._count||1)-1,B._count===0&&G.removeEventListener(u,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,$WU(u)));G.removeEventListener(H,Z)};
C$j=function(G){ys.push(G);for(var H=0;H<G.emits.length;H++)mg[G.emits[H]]=G};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G){for(var H=0,Z;H<ys.length;H++){Z=ys[H];for(var Q=0,p;Q<Z.emits.length;Q++)if(p=Z.emits[Q],p===G)return Z}return null};
_.NK=function(G,H){ecf&&G instanceof HTMLElement&&Ak.run(function(){G.style.touchAction=H});
G.__polymerGesturesTouchAction=H};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(G,H,Z){H=new Event(H,{bubbles:!0,cancelable:!0,composed:!0});H.detail=Z;(0,_.js)(G).dispatchEvent(H);H.defaultPrevented&&(G=Z.preventer||Z.sourceEvent)&&G.preventDefault&&G.preventDefault()};
oA=function(G){G=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G.info&&(G.info.prevent=!0)};
xP=function(G,H,Z,Q){H&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,G,{x:Z.clientX,y:Z.clientY,sourceEvent:Z,preventer:Q,prevent:function(p){return oA(p)}})};
iMe=function(G,H,Z){if(G.prevent)return!1;if(G.started)return!0;Z=Math.abs(G.y-Z);return Math.abs(G.x-H)>=5||Z>=5};
OMf=function(G,H,Z){if(H){var Q=G.moves[G.moves.length-2],p=G.moves[G.moves.length-1],l=p.x-G.x,q=p.y-G.y,u=0;if(Q){var B=p.x-Q.x;u=p.y-Q.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,"track",{state:G.state,x:Z.clientX,y:Z.clientY,dx:l,dy:q,ddx:B,ddy:u,sourceEvent:Z,hover:function(){return MVb(Z.clientX,Z.clientY)}})}};
yBf=function(G,H,Z){var Q=Math.abs(H.clientX-G.x),p=Math.abs(H.clientY-G.y),l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Z||H);!l||aGU[l.localName]&&l.hasAttribute("disabled")||!(isNaN(Q)||isNaN(p)||Q<=25&&p<=25||zcj(H))||G.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,"tap",{x:H.clientX,y:H.clientY,sourceEvent:H,preventer:Z})};
ojj=function(G,H,Z,Q,p){var l;p&&(l=typeof Z==="object"&&Z!==null)&&(Q=G.__dataTemp[H]);Q=Q!==Z&&(Q===Q||Z===Z);l&&Q&&(G.__dataTemp[H]=Z);return Q};
UWb=function(){if(YP&&!FZ){if(!mWf){mWf=!0;var G=document.createElement("style");G.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(G)}return!0}return!1};
Nqu=function(){return RcM};
ABo=function(G,H){RcM=G;Object.setPrototypeOf(G,H.prototype);new H;RcM=null};
xWX=function(G,H){for(var Z=0;Z<H.length;Z++){var Q=H[Z];if(!!G!=!!Q.__hideTemplateChildren__)if(Q.nodeType===Node.TEXT_NODE)G?(Q.__polymerTextContent__=Q.textContent,Q.textContent=""):Q.textContent=Q.__polymerTextContent__;else if(Q.localName==="slot")if(G)Q.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.js)((0,_.js)(Q).parentNode).replaceChild(Q.__polymerReplaced__,Q);else{var p=Q.__polymerReplaced__;p&&(0,_.js)((0,_.js)(p).parentNode).replaceChild(Q,p)}else Q.style&&(G?(Q.__polymerDisplay__=
Q.style.display,Q.style.display="none"):Q.style.display=Q.__polymerDisplay__);Q.__hideTemplateChildren__=G;Q._showHideChildren&&Q._showHideChildren(G)}};
LnX=function(G){return(G=G.__dataHost)&&G._methodHost||G};
Fn3=function(G,H,Z){var Q=Z.mutableData?Ej3:bu;GE.mixin&&(Q=GE.mixin(Q));var p=function(){return Q.apply(this,arguments)||this};
_.T(p,Q);p.prototype.__templatizeOptions=Z;p.prototype._bindTemplate(G);YVv(p,G,H,Z);return p};
ZYu=function(G,H,Z,Q){var p=Z.forwardHostProp;if(p&&H.hasHostProps){var l=G.localName=="template",q=H.templatizeTemplateClass;if(!q){if(l){var u=Z.mutableData?bMf:GWo;q=function(){return u.apply(this,arguments)||this};
_.T(q,u);q=H.templatizeTemplateClass=q}else{var B=G.constructor;q=function(){return B.apply(this,arguments)||this};
_.T(q,B);q=H.templatizeTemplateClass=q}var t=H.hostProps,D;for(D in t)q.prototype._addPropertyEffect("_host_"+D,q.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:HYe(p)}),q.prototype._createNotifyingProperty("_host_"+D);HE&&Q&&sE3(H,Z,Q)}G.__dataProto&&Object.assign(G.__data,G.__dataProto);if(l)ABo(G,q),G.__dataTemp={},G.__dataPending=null,G.__dataOld=null,G._enableProperties();else{Object.setPrototypeOf(G,q.prototype);H=H.hostProps;for(var d in H)d="_host_"+d,d in G&&(H=G[d],delete G[d],G.__data[d]=
H)}}};
HYe=function(G){return function(H,Z,Q){G.call(H.__templatizeOwner,Z.substring(6),Q[Z])}};
YVv=function(G,H,Z,Q){var p=Z.hostProps||{},l;for(l in Q.instanceProps){delete p[l];var q=Q.notifyInstanceProp;q&&G.prototype._addPropertyEffect(l,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:QEj(q)})}if(Q.forwardHostProp&&H.__dataHost)for(var u in p)Z.hasHostProps||(Z.hasHostProps=!0),G.prototype._addPropertyEffect(u,G.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:p4M()})};
QEj=function(G){return function(H,Z,Q){G.call(H.__templatizeOwner,H,Z,Q[Z])}};
p4M=function(){return function(G,H,Z){G.__dataHost._setPendingPropertyOrPath("_host_"+H,Z[H],!0,!0)}};
GE=function(G,H,Z){if(sW&&!LnX(G))throw Error("Od");Z=Z||{};if(G.__templatizeOwner)throw Error("Pd");G.__templatizeOwner=H;var Q=(H?H.constructor:bu)._parseTemplate(G),p=Q.templatizeInstanceClass;p||(p=Fn3(G,Q,Z),Q.templatizeInstanceClass=p);var l=LnX(G);ZYu(G,Q,Z,l);Z=function(){return p.apply(this,arguments)||this};
_.T(Z,p);Z.prototype._methodHost=l;Z.prototype.__dataHost=G;Z.prototype.__templatizeOwner=H;Z.prototype.__hostProps=Q.hostProps;return Z};
sE3=function(G,H,Z){Z=Z.constructor._properties;G=G.propertyEffects;H=H.instanceProps;for(var Q in G)if(!(Z[Q]||H&&H[Q]))for(var p=G[Q],l=0;l<p.length;l++){var q=p[l].info.part;if(!q.signature||!q.signature.static){console.warn("Property '"+Q+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
lHb=function(G,H){for(var Z;H;)if(Z=H.__dataHost?H:H.__templatizeInstance)if(Z.__dataHost!=G)H=Z.__dataHost;else return Z;else H=(0,_.js)(H).parentNode;return null};
ZZ=function(G){return G.localName==="slot"};
gHW=function(){for(var G=Qg.prototype,H="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),Z={},Q=0;Q<H.length;Z={method$jscomp$33:void 0},Q++)Z.method$jscomp$33=H[Q],G[Z.method$jscomp$33]=function(p){return function(){return this.node[p.method$jscomp$33].apply(this.node,arguments)}}(Z)};
IHM=function(G,H){for(var Z={},Q=0;Q<H.length;Z={name$jscomp$448:void 0},Q++)Z.name$jscomp$448=H[Q],Object.defineProperty(G,Z.name$jscomp$448,{get:function(p){return function(){return this.node[p.name$jscomp$448]}}(Z),
configurable:!0})};
qyf=function(){for(var G=Qg.prototype,H=["textContent","innerHTML","className"],Z={},Q=0;Q<H.length;Z={name$jscomp$449:void 0},Q++)Z.name$jscomp$449=H[Q],Object.defineProperty(G,Z.name$jscomp$449,{get:function(p){return function(){return this.node[p.name$jscomp$449]}}(Z),
set:function(p){return function(l){this.node[p.name$jscomp$449]=l}}(Z),
configurable:!0})};
Syf=function(){p6=document.documentElement.getAttribute("dir");p6=document.documentElement.getAttribute("dir");for(var G=0;G<l4.length;G++){var H=l4[G];H.__autoDirOptOut||H.setAttribute("dir",p6)}};
tDj=function(){gg=!0;requestAnimationFrame(function(){gg=!1;uze(Bmf);setTimeout(function(){for(var G=0,H=IZ.length;G<H;G++)Jgj(IZ.shift())})})};
uze=function(G){for(;G.length;)Jgj(G.shift())};
Jgj=function(G){var H=G[0],Z=G[1];G=G[2];try{Z.apply(H,G)}catch(Q){setTimeout(function(){throw Q;})}};
_.kWU=function(G,H,Z){gg||tDj();Bmf.push([G,H,Z])};
_.q2=function(G,H,Z){gg||tDj();IZ.push([G,H,Z])};
exe=function(G,H){H=H===void 0?!1:H;if(!D8R||!d8M||!D8R.handlesDynamicScoping)return null;var Z=d8M.ScopingShim;if(!Z)return null;var Q=Z.scopeForNode(G),p=(0,_.js)(G).getRootNode(),l=function(q){if((0,_.js)(q).getRootNode()===p){var u=Array.from(D8R.nativeMethods.querySelectorAll.call(q,"*"));u.push(q);for(q=0;q<u.length;q++){var B=u[q];if((0,_.js)(B).getRootNode()===p){var t=Z.currentScopeForNode(B);t!==Q&&(t!==""&&Z.unscopeNode(B,t),Z.scopeNode(B,Q))}}}};
l(G);return H?(H=new MutationObserver(function(q){for(var u=0;u<q.length;u++)for(var B=q[u],t=0;t<B.addedNodes.length;t++){var D=B.addedNodes[t];D.nodeType===Node.ELEMENT_NODE&&l(D)}}),H.observe(G,{childList:!0,
subtree:!0}),H):null};
nHe=function(){document.body.removeAttribute("unresolved")};
Tmf=function(G){var H=G=G.replace(VDj,"").replace($8e,""),Z=new X43;Z.start=0;Z.end=H.length;for(var Q=Z,p=0,l=H.length;p<l;p++)if(H[p]==="{"){Q.rules||(Q.rules=[]);var q=Q,u=q.rules[q.rules.length-1]||null;Q=new X43;Q.start=p+1;Q.parent=q;Q.previous=u;q.rules.push(Q)}else H[p]==="}"&&(Q.end=p+1,Q=Q.parent||Z);return cgb(Z,G)};
cgb=function(G,H){var Z=H.substring(G.start,G.end-1);G.parsedCssText=G.cssText=Z.trim();G.parent&&(Z=H.substring(G.previous?G.previous.end:G.parent.start,G.start-1),Z=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Z),Z=Z.replace(fHo," "),Z=Z.substring(Z.lastIndexOf(";")+1),Z=G.parsedSelector=G.selector=Z.trim(),G.atRule=Z.indexOf("@")===0,G.atRule?Z.indexOf("@media")===0?G.type=4:Z.match(vHo)&&(G.type=7,G.keyframesName=G.selector.split(fHo).pop()):Z.indexOf("--")===
0?G.type=1E3:G.type=1);if(Z=G.rules)for(var Q=0,p=Z.length,l=void 0;Q<p&&(l=Z[Q]);Q++)cgb(l,H);return G};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(G){return G.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var H=arguments[1],Z=6-H.length;Z--;)H="0"+H;return"\\"+H})};
Wyf=function(G,H,Z){Z=Z===void 0?"":Z;var Q="";if(G.cssText||G.rules){var p=G.rules;if(p&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(p))for(var l=0,q=p.length,u=void 0;l<q&&(u=p[l]);l++)Q=Wyf(u,H,Q);else H?H=G.cssText:(H=G.cssText,H=H.replace(zxv,"").replace(Kyf,""),H=H.replace(MDf,"").replace(jEW,"")),(Q=H.trim())&&(Q="  "+Q+"\n")}Q&&(G.selector&&(Z+=G.selector+" {\n"),Z+=Q,G.selector&&(Z+="}\n\n"));return Z};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(G){G=G[0];return!!G&&!!G.selector&&G.selector.indexOf("--")===0};
rg2=function(G){if(G=P6v[G])G._applyShimCurrentVersion=G._applyShimCurrentVersion||0,G._applyShimValidatingVersion=G._applyShimValidatingVersion||0,G._applyShimNextVersion=(G._applyShimNextVersion||0)+1};
w4f=function(G){return G._applyShimCurrentVersion===G._applyShimNextVersion};
C62=function(G){G._applyShimValidatingVersion=G._applyShimNextVersion;G._validating||(G._validating=!0,hxj.then(function(){G._applyShimCurrentVersion=G._applyShimNextVersion;G._validating=!1}))};
OYf=function(G){if(!G)return"";typeof G==="string"&&(G=Tmf(G));return Wyf(G,iY3)};
aH2=function(G){!G.__cssRules&&G.textContent&&(G.__cssRules=Tmf(G.textContent));return G.__cssRules||null};
oH3=function(G,H,Z,Q){if(G){var p=!1,l=G.type;if(Q&&l===4){var q=G.selector.match(ygj);q&&(window.matchMedia(q[1]).matches||(p=!0))}l===1?H(G):Z&&l===7?Z(G):l===1E3&&(p=!0);if((G=G.rules)&&!p)for(p=0,l=G.length,q=void 0;p<l&&(q=G[p]);p++)oH3(q,H,Z,Q)}};
m8W=function(G,H){var Z=G.indexOf("var(");if(Z===-1)return H(G,"","","");a:{var Q=0;var p=Z+3;for(var l=G.length;p<l;p++)if(G[p]==="(")Q++;else if(G[p]===")"&&--Q===0)break a;p=-1}Q=G.substring(Z+4,p);Z=G.substring(0,Z);G=m8W(G.substring(p+1),H);l=Q.indexOf(",");if(l===-1)return H(Z,Q.trim(),"",G);p=Q.substring(0,l).trim();Q=Q.substring(l+1).trim();return H(Z,p,Q,G)};
U83=function(G){if(Sn!==void 0)return Sn;if(G.__cssBuild===void 0){var H=G.getAttribute("css-build");if(H)G.__cssBuild=H;else{a:{H=G.localName==="template"?G.content.firstChild:G.firstChild;if(H instanceof Comment&&(H=H.textContent.trim().split(":"),H[0]==="css-build")){H=H[1];break a}H=""}if(H!==""){var Z=G.localName==="template"?G.content.firstChild:G.firstChild;Z.parentNode.removeChild(Z)}G.__cssBuild=H}}return G.__cssBuild||""};
NmW=function(G,H,Z,Q){for(var p=H._noAccessors,l=Object.getOwnPropertyNames(H),q=0;q<l.length;q++){var u=l[q];if(!(u in Q))if(p)G[u]=H[u];else{var B=Object.getOwnPropertyDescriptor(H,u);B&&(B.configurable=!0,Object.defineProperty(G,u,B))}}for(var t in Rxf)H[t]&&(Z[t]=Z[t]||[],Z[t].push(H[t]))};
Agu=function(G,H,Z){H=H||[];for(var Q=G.length-1;Q>=0;Q--){var p=G[Q];p?Array.isArray(p)?Agu(p,H):H.indexOf(p)<0&&(!Z||Z.indexOf(p)<0)&&H.unshift(p):console.warn("behavior is null, check for missing or 404 import")}return H};
x8f=function(G,H){for(var Z in H){var Q=G[Z],p=H[Z];G[Z]=!("value"in p)&&Q&&"value"in Q?Object.assign({value:Q.value},p):p}};
YyX=function(G,H,Z){var Q={},p=function(){return H.apply(this,arguments)||this};
_.T(p,H);p._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(q)for(var B=0,t;B<q.length;B++)t=q[B],t.properties&&this.createProperties(t.properties),t.observers&&this.createObservers(t.observers,t.properties);G.properties&&this.createProperties(G.properties);G.observers&&this.createObservers(G.observers,G.properties);this._prepareTemplate()}else H._finalizeClass.call(this)};
p.prototype.created=function(){H.prototype.created.call(this);var B=Q.created;if(B)for(var t=0;t<B.length;t++)B[t].call(this)};
p.prototype._registered=function(){var B=p.prototype;if(!B.hasOwnProperty("__hasRegisterFinished")){B.__hasRegisterFinished=!0;H.prototype._registered.call(this);YP&&u(B);B=Object.getPrototypeOf(this);var t=Q.beforeRegister;if(t)for(var D=0;D<t.length;D++)t[D].call(B);if(t=Q.registered)for(D=0;D<t.length;D++)t[D].call(B)}};
p.prototype._applyListeners=function(){H.prototype._applyListeners.call(this);var B=Q.listeners;if(B)for(var t=0;t<B.length;t++){var D=B[t];if(D)for(var d in D)this._addMethodEventListenerToNode(this,d,D[d])}};
p.prototype._ensureAttributes=function(){var B=Q.hostAttributes;if(B)for(var t=B.length-1;t>=0;t--){var D=B[t],d;for(d in D)this._ensureAttribute(d,D[d])}H.prototype._ensureAttributes.call(this)};
p.prototype.ready=function(){H.prototype.ready.call(this);var B=Q.ready;if(B)for(var t=0;t<B.length;t++)B[t].call(this)};
p.prototype.attached=function(){H.prototype.attached.call(this);var B=Q.attached;if(B)for(var t=0;t<B.length;t++)B[t].call(this)};
p.prototype.detached=function(){H.prototype.detached.call(this);var B=Q.detached;if(B)for(var t=0;t<B.length;t++)B[t].call(this)};
p.prototype.attributeChanged=function(B,t,D){H.prototype.attributeChanged.call(this);var d=Q.attributeChanged;if(d)for(var e=0;e<d.length;e++)d[e].call(this,B,t,D)};
_.u4.Object.defineProperties(p,{properties:{configurable:!0,enumerable:!0,get:function(){var B={};if(q)for(var t=0;t<q.length;t++)x8f(B,q[t].properties);x8f(B,G.properties);return B}},
observers:{configurable:!0,enumerable:!0,get:function(){var B=[];if(q)for(var t=0,D;t<q.length;t++)D=q[t],D.observers&&(B=B.concat(D.observers));G.observers&&(B=B.concat(G.observers));return B}}});
if(Z){Array.isArray(Z)||(Z=[Z]);var l=H.prototype.behaviors;var q=Agu(Z,null,l);p.prototype.behaviors=l?l.concat(Z):q}var u=function(B){if(q)for(var t=q,D=0;D<t.length;D++)NmW(B,t[D],Q,LyM);NmW(B,G,Q,EHb)};
YP||u(p.prototype);p.generatedFrom=G;return p};
HOf=function(G){var H=typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0};H.fastInit===void 0&&(H.fastInit=!0);return function(Z){if(!H.disableInheritanceCheck&&Object.getPrototypeOf(Z.prototype).constructor!==_.BE)throw Error("Td");var Q=Z.prototype;Q.is=H.is;lxf(Q,"created",function(){this.hostElement=this;this.polymerController=this});
Fyb(Q,Z,H.fastInit);H.notifyObserversOnUndefined&&(Q._overrideLegacyUndefined=!0);if(bYf)for(var p=_.I(Object.getOwnPropertyNames(Q)),l=p.next();!l.done;l=p.next()){l=l.value;var q=Object.getOwnPropertyDescriptor(Q,l);q.enumerable===!1&&(q.enumerable=!0,Object.defineProperty(Q,l,q))}if("template"in Z)var u=function(){return Z.template};
else H.template!==void 0&&(u=H.template);if(u!==void 0){var B;Object.defineProperty(Q,"_template",{get:function(){B===void 0&&(B=u());return B},
set:function(t){B=t},
configurable:!0,enumerable:!0})}Polymer(Q);Z[GLW]=Q}};
sxf=function(G){G=G===void 0?{}:G;G.fastInit===void 0&&(G.fastInit=!0);return function(H){if(!G.disableInheritanceCheck&&Object.getPrototypeOf(H.prototype).constructor!==Jc)throw Error("Ud");Fyb(H.prototype,H,G.fastInit)}};
Fyb=function(G,H,Z){Z=Z===void 0?!1:Z;ZOU(H);Z?lxf(G,"created",function(){this.disableEnforceFastDefaultValuesCheck||Qxj(H,this)}):lxf(G,"ready",function(){for(var Q={},p=_.I(gGf(this.behaviors)),l=p.next();!l.done;l=p.next())l=l.value,l.properties&&Object.assign(Q,pne(this,l.properties));
Object.assign(Q,pne(this,this.properties));Qxj(H,this);p=_.I(Object.keys(Q));for(l=p.next();!l.done;l=p.next())l=l.value,this[l]=Q[l]})};
Qxj=function(G,H){if(bYf){G=new G;for(var Z=_.I(Object.getOwnPropertyNames(G)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,H[Q]=G[Q];for(Z=H;Z&&Z!==Object.prototype;Z=Object.getPrototypeOf(Z)){Q=_.I(Object.getOwnPropertyNames(Z));for(var p=Q.next();!p.done;p=Q.next())p=p.value,G.hasOwnProperty(p)||Object.defineProperty(G,p,l_3(H,p))}}else G.apply(H)};
l_3=function(G,H){return{get:function(){var Z=G[H];return Z instanceof Function?Z.bind(G):Z},
set:function(Z){G[H]=Z}}};
pne=function(G,H){if(!H)return{};for(var Z={},Q=_.I(Object.keys(H)),p=Q.next();!p.done;p=Q.next())if(p=p.value,!H[p].readOnly){var l=G[p];l!==void 0&&(Z[p]=l)}return Z};
ZOU=function(G){var H=new G;G=G.prototype.properties||{};for(var Z=_.I(Object.keys(G)),Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,H.hasOwnProperty(Q)){var p=G[Q];typeof p==="function"&&(G[Q]=p={type:p});H[Q]!=null&&p.type===Object&&(p.type=guu(H[Q].constructor))}};
guu=function(G){for(var H=_.I(I_j),Z=H.next();!Z.done;Z=H.next())if(Z=Z.value,G===Z)return Z;return Object};
qKj=function(G){return function(H,Z){H.behaviors=H.behaviors||[];H.behaviors.push(G||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",H,Z).prototype:void 0));Object.defineProperty(H,Z,{get:function(){return this},
enumerable:!0,configurable:!0})}};
SKu=function(G){G=G===void 0?{}:G;return function(H,Z){H.properties=H.properties||{};G.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?G.type=guu(Reflect.getMetadata("design:type",H,Z)):G.type=String);var Q=G,p=H.properties[Z];H.properties[Z]=p?Object.assign({},p,Q):Q}};
uCv=function(G){return function(H,Z){H.listeners=H.listeners||{};H.listeners[G]=Z}};
BPv=function(){var G=_.Ry.apply(0,arguments);if(G.length===0)throw Error("Vd");return function(H,Z){H.observers=H.observers||[];H.observers.push(Z+"("+G.join(",")+")")}};
JHf=function(){var G=_.Ry.apply(0,arguments);return function(H,Z,Q){var p=Object.getOwnPropertyDescriptor(H,Z).get,l="__compute__"+Z;Object.defineProperty(H,l,{value:p,enumerable:!0});H.properties=H.properties||{};p=H.properties[Z];p||(p={},H.properties[Z]=p);p.computed=l+"("+G.join(",")+")";Q.get=void 0}};
_.tc=function(G,H,Z){_.wI.call(this);this.JSC$11319_id_=null;this.usingListeners_=!1;this.JSC$11319_listener_=G;this.handler_=Z;this.JSC$11319_win_=H||window;this.callback_=(0,_.Cu)(this.JSC$11321_doAction_,this)};
ki=function(G){this.range_=G};
DZ=function(G){this.range_=G};
n6=function(G,H,Z){_.wI.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=G;this.scrollTimer_=new _.dg(50);this.JSC$11398_eventHandler_=new _.en(this);this.scrollDelta_=new _.UA;this.containerIsActuallyContent_=G.tagName==="BODY"||G.tagName==="HTML";this.containerBounds_=t4j(G);this.containerIsActuallyContent_&&(G=_.jt(),this.containerBounds_.height=G.height,this.containerBounds_.width=G.width);this.margin_=H||0;if(H){if(H=this.containerBounds_.clone(),G=this.margin_){var Q=
Math.min(G,H.height*.25);H.top+=Q;H.height-=2*Q;G=Math.min(G,H.width*.25);H.left+=G;H.width-=2*G}}else H=this.containerBounds_;this.scrollBounds_=H;Z||this.JSC$11398_eventHandler_.listen(_.N4(this.containerNode_),"mousemove",this.JSC$11400_onMouseMove);this.JSC$11398_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11400_onTick_)};
_.Vg=function(G){this.mechanism=G};
$i=function(G,H){this.JSC$11496_key_=G;this.JSC$11496_value_=H};
DEe=function(G){if(G>=55296&&G<=57343||G>1114111)return"\ufffd";G in kLu&&(G=kLu[G]);var H="";G>65535&&(G-=65536,H+=String.fromCharCode(G>>>10&1023|55296),G=56320|G&1023);return H+=String.fromCharCode(G)};
dER=function(G,H){return G<H?1:-1};
nuU=function(){return function(G){return G.charAt(1)==="#"?G.charAt(2)==="X"||G.charAt(2)==="x"?DEe(parseInt(G.substr(3),16)):DEe(parseInt(G.substr(2),10)):ePX[G.slice(1,-1)]}};
Xnu=function(G){return G.slice(1,G.length-1).trim().replace(V4X,function(H){return $EW[H]||" "})};
Xr=function(G){return G===32||G===9};
cE=function(G,H){return H<G.length?G.charCodeAt(H):-1};
cHf=function(G){for(;G;){if(G._lastLineBlank)return!0;var H=G.type;if(H==="list"||H==="item")G=G._lastChild;else break}return!1};
TE=function(G){if(TP2.test(G)){var H=1,Z=0,Q=0;for(G[Z]=="|"&&Z++;Z<G.length;){switch(G[Z]){case "|":Q=1;break;case " ":break;case "\t":break;default:Q&&(Q=0,H++)}Z++}return f_e.test(G)?-H:H}return 0};
vuj=function(G){return G=="table"||G=="row"||G=="cell"};
WWf=function(){return new f6("document",[[1,1],[0,0]])};
zP2=function(){};
vE=function(){var G={safe:!1};G=G||{};G.softbreak=G.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=G};
rHM=function(G,H){var Z="";if(G)if(G=G.toLowerCase(),G===" "||KW2.test(G))Z="space";else if(M4v.test(G))Z="esc";else if(G.length==1){if(!H||jxv.test(G))Z=G}else Z=P_M.test(G)?G.replace("arrow",""):G=="multiply"?"*":G;return Z};
iOU=function(G,H){var Z=G.hasModifiers;if(H.key)Z=rHM(H.key,Z);else if(H.detail&&H.detail.key)Z=rHM(H.detail.key,Z);else{Z=H.keyIdentifier;var Q="";Z&&(Z in wnR?Q=wnR[Z]:hPf.test(Z)?(Z=parseInt(Z.replace("U+","0x"),16),Q=String.fromCharCode(Z).toLowerCase()):Q=Z.toLowerCase());(Z=Q)||(Z=H.keyCode,Q="",Number(Z)&&(Z>=65&&Z<=90?Q=String.fromCharCode(32+Z):Z>=112&&Z<=123?Q="f"+(Z-112+1):Z>=48&&Z<=57?Q=String(Z-48):Z>=96&&Z<=105?Q=String(Z-96):Q=C_U[Z]),Z=Q);Z=Z||""}return Z===G.key&&(!G.hasModifiers||
!!H.shiftKey===!!G.shiftKey&&!!H.ctrlKey===!!G.ctrlKey&&!!H.altKey===!!G.altKey&&!!H.metaKey===!!G.metaKey)};
a_f=function(G){return G.length===1?{combo:G,key:G,event:"keydown"}:G.split("+").reduce(function(H,Z){var Q=Z.split(":");Z=Q[0];Q=Q[1];Z in OOW?(H[OOW[Z]]=!0,H.hasModifiers=!0):(H.key=Z,H.event=Q||"keydown");return H},{combo:G.split(":").shift()})};
yHf=function(G){return G.trim().split(" ").map(function(H){return a_f(H)})};
ouR=function(G,H){if(G&&G.fn){var Z=G.fn;G.fn=function(){try{Z.apply(this,arguments)}catch(Q){if(Q instanceof WE)console.warn("Argument '"+Q.arg+"'"+(H?" for method '"+H+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw Q;}}}return G};
UEj=function(){var G=[],H;var Z=Z||_.mEj.length;for(H=0;H<8;H++)G[H]=_.mEj[0|Math.random()*Z];return G.join("")};
RPM=function(){var G=_.Ry.apply(0,arguments);return G.length===0?function(H){return H}:G.length===1?G[0]:G.reduce(function(H,Z){return function(){return H(Z.apply(null,_.OP(_.Ry.apply(0,arguments))))}})};
NPR=function(){var G=_.Ry.apply(0,arguments);return function(H){return function(Z,Q){Z=H(Z,Q);var p=function(){throw Error("Fe");},l={getState:Z.getState,
dispatch:function(q){return p.apply(null,[q].concat(_.OP(_.Ry.apply(1,arguments))))}};
Q=G.map(function(q){return q(l)});
p=RPM.apply(null,_.OP(Q))(Z.dispatch);return Object.assign({},Z,{dispatch:p})}}};
LWR=function(G){Object.keys(G).forEach(function(H){var Z=G[H];if(typeof Z(void 0,{type:AHv})==="undefined")throw Error("Ge`"+H);if(typeof Z(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+xEj()})==="undefined")throw Error("He`"+H+"`"+AHv);})};
zE=function(G){for(var H=Object.keys(G),Z={},Q=0;Q<H.length;Q++){var p=H[Q];typeof G[p]==="function"&&(Z[p]=G[p])}var l=Object.keys(Z);try{LWR(Z)}catch(u){var q=u}return function(u,B){u=u===void 0?{}:u;if(q)throw q;for(var t=!1,D={},d=0;d<l.length;d++){var e=l[d],n=u[e],c=(0,Z[e])(n,B);if(typeof c==="undefined")throw u=B&&B.type,Error("Ie`"+(u?'"'+String(u)+'"':"(unknown type)")+"`"+e);D[e]=c;t=t||c!==n}return(t=t||l.length!==Object.keys(u).length)?D:u}};
EuW=function(G,H,Z){function Q(){if(D)throw Error("Je");return u}
function p(n){if(typeof n!=="function")throw Error("Ke`"+typeof n);if(D)throw Error("Le");var c=!0;t===B&&(t=B.slice());t.push(n);return function(){if(c){if(D)throw Error("Me");c=!1;t===B&&(t=B.slice());var W=t.indexOf(n);t.splice(W,1);B=null}}}
function l(n){if(typeof n!=="object"||n===null)var c=!1;else{for(c=n;Object.getPrototypeOf(c)!==null;)c=Object.getPrototypeOf(c);c=Object.getPrototypeOf(n)===c}if(!c)throw Error("Ne`"+typeof n);if(typeof n.type==="undefined")throw Error("Oe");if(D)throw Error("Pe");try{D=!0,u=q(u,n)}finally{D=!1}c=B=t;for(var W=0;W<c.length;W++)(0,c[W])();return n}
if(typeof H==="function"&&typeof Z==="function"||typeof Z==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof H==="function"&&typeof Z==="undefined"&&(Z=H,H=void 0);if(typeof Z!=="undefined"){if(typeof Z!=="function")throw Error("Re`"+typeof Z);return Z(EuW)(G,H)}if(typeof G!=="function")throw Error("Se`"+typeof G);var q=G,u=H,B=[],t=B,D=!1;l({type:AHv});var d={},e=(d.dispatch=l,d.subscribe=p,d.getState=Q,d.replaceReducer=function(n){if(typeof n!=="function")throw Error("Te`"+
typeof n);q=n;l({type:YKf});return e},d[FW3]=function(){var n={};
return n.subscribe=function(c){function W(){c.next&&c.next(Q())}
if(typeof c!=="object"||c===null)throw new TypeError("Ue`"+typeof c);W();return{unsubscribe:p(W)}},n[FW3]=function(){return this},n},d);
return e};
bOu=function(G){function H(){p&&(p=!1,G());l&&Q()}
function Z(){requestAnimationFrame(H)}
function Q(){var u=Date.now();if(p){if(u-q<2)return;l=!0}else p=!0,l=!1,setTimeout(Z,20);q=u}
var p=!1,l=!1,q=0;return Q};
K6=function(G){return typeof G==="number"?G:parseFloat(G)||0};
Gw2=function(G){return _.Ry.apply(1,arguments).reduce(function(H,Z){return H+K6(G["border-"+Z+"-width"])},0)};
QvM=function(G){if(HKM[G])return HKM[G];var H=globalThis[G],Z=H.prototype,Q=G in svR?svR[G]:void 0;Q=!(!Q||!Q.every(function(B){var t,D;return!!((t=Object.getOwnPropertyDescriptor(Z,B))==null?0:(D=t.get)==null?0:D.toString().includes("[native code]"))}));
var p=G in ZK3?ZK3[G]:void 0;p=!(!p||!p.every(function(B){var t;return typeof Z[B]==="function"&&((t=Z[B])==null?void 0:t.toString().includes("[native code]"))}));
if(Q&&p&&!globalThis.Zone)return HKM[G]=H.prototype;try{var l=document.createElement("iframe");document.body.appendChild(l);var q=l.contentWindow;if(!q)return H.prototype;var u=q[G].prototype;document.body.removeChild(l);return u?HKM[G]=u:Z}catch(B){return Z}};
M2=function(G,H,Z){var Q=G+"."+String(Z);if(pQf[Q])return pQf[Q].call(H);G=QvM(G);var p;G=(p=Object.getOwnPropertyDescriptor(G,Z))==null?void 0:p.get;if(!G)return H[Z];pQf[Q]=G;return G.call(H)};
gf3=function(G,H){var Z="Node."+String(H);if(lAW[Z])return lAW[Z].bind(G);var Q=QvM("Node")[H];if(typeof Q!=="function")return G[H];lAW[Z]=Q;return Q.bind(G)};
jn=function(G,H,Z){try{if(!(H in G))return function(){};
var Q=G[H],p=Z(Q);typeof p==="function"&&(p.prototype=p.prototype||{},Object.defineProperties(p,{__rrweb_original__:{enumerable:!1,value:Q}}));G[H]=p;return function(){G[H]=Q}}catch(l){return function(){}}};
wg=function(G){var H=G&&"host"in G&&"mode"in G&&PE(G)||null;return!!(H&&"shadowRoot"in H&&rg(H)===G)};
hc=function(G){return Object.prototype.toString.call(G)==="[object ShadowRoot]"};
IAb=function(G){G.includes(" background-clip: text;")&&!G.includes(" -webkit-background-clip: text;")&&(G=G.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return G};
SxX=function(G){try{var H=G.rules||G.cssRules;if(!H)return null;var Z=G.href;!Z&&G.ownerNode&&(Z=G.ownerNode.baseURI);var Q=Array.from(H,function(p){return qxb(p,Z)}).join("");
return IAb(Q)}catch(p){return null}};
qxb=function(G,H){if("styleSheet"in G){try{var Z;if(!(Z=SxX(G.styleSheet))){var Q=G.cssText;if(Q.split('"').length<3)Z=Q;else{var p=["@import","url("+JSON.stringify(G.href)+")"];G.layerName===""?p.push("layer"):G.layerName&&p.push("layer("+G.layerName+")");G.supportsText&&p.push("supports("+G.supportsText+")");G.media.length&&p.push(G.media.mediaText);Z=p.join(" ")+";"}}var l=Z}catch(q){l=G.cssText}return G.styleSheet.href?uQb(l,G.styleSheet.href):l}l=G.cssText;"selectorText"in G&&G.selectorText.includes(":")&&
(l=l.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return H?uQb(l,H):l};
BlU=function(G){var H=G.element;var Z=G.maskInputOptions;var Q=G.tagName;var p=G.type;var l=G.value;G=G.maskInputFn;l=l||"";p=p&&p.toLowerCase();if(Z[Q.toLowerCase()]||p&&Z[p])l=G?G(l,H):"*".repeat(l.length);return l};
Jrj=function(G){var H=G.getContext("2d");if(!H)return!0;for(var Z=0;Z<G.width;Z+=50)for(var Q=0;Q<G.height;Q+=50){var p=H.getImageData;if((new Uint32Array(("__rrweb_original__"in p?p.__rrweb_original__:p).call(H,Z,Q,Math.min(50,G.width-Z),Math.min(50,G.height-Q)).data.buffer)).some(function(l){return l!==0}))return!1}return!0};
tau=function(G){var H=G.type;return G.hasAttribute("data-rr-is-password")?"password":H?H.toLowerCase():null};
kwj=function(G){try{var H=new URL(G,window.location.href)}catch(p){return null}var Z,Q;return(Q=(Z=H.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:Z[1])!=null?Q:null};
uQb=function(G,H){return(G||"").replace(Dnj,function(Z,Q,p,l,q,u){p=p||q||u;Q=Q||l||"";if(!p)return Z;if(dnv.test(p)||euR.test(p)||nfe.test(p))return"url("+Q+p+Q+")";if(p[0]==="/")return Z=H.indexOf("//")>-1?H.split("/").slice(0,3).join("/"):H.split("/")[0],Z=Z.split("?")[0],"url("+Q+(Z+p)+Q+")";Z=H.split("/");l=p.split("/");Z.pop();l=_.I(l);for(p=l.next();!p.done;p=l.next())p=p.value,p!=="."&&(p===".."?Z.pop():Z.push(p));return"url("+Q+Z.join("/")+Q+")"})};
Vae=function(G,H){return(H=H===void 0?!1:H)?G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):G.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
$no=function(G,H){var Z=Z===void 0?!1:Z;H=Array.from(H.childNodes);var Q=[],p=0;if(H.length>1&&G&&typeof G==="string")for(var l=Vae(G,Z),q=l.length/G.length,u=1;u<H.length;u++)if(H[u].textContent&&typeof H[u].textContent==="string"){for(var B=Vae(H[u].textContent,Z),t=3;t<B.length&&(B[t].match(/[a-zA-Z0-9]/)||B.indexOf(B.substring(0,t),1)!==-1);t++);for(;t<B.length;t++){var D=B.substring(0,t),d=l.split(D),e=-1;if(d.length===2)e=d[0].length;else if(d.length>2&&d[0]===""&&H[u-1].textContent!=="")e=
l.indexOf(D,1);else if(d.length===1){D=D.substring(0,D.length-1);d=l.split(D);if(d.length<=1)return Q.push(G),Q;t=101}else t===B.length-1&&(e=l.indexOf(D));if(d.length>=2&&t>100){var n=H[u-1].textContent;n&&typeof n==="string"&&(e=l.indexOf(D,Vae(n).length));e===-1&&(e=d[0].length)}if(e!==-1){for(B=Math.floor(e/q);B>0&&B<G.length;){p+=1;if(p>50*H.length)return Q.push(G),Q;t=Vae(G.substring(0,B),Z);if(t.length===e){Q.push(G.substring(0,B));G=G.substring(B);l=l.substring(e);break}else B=t.length<e?
B+Math.max(1,Math.floor((e-t.length)/q)):B-Math.max(1,Math.floor((t.length-e)*q))}break}}}Q.push(G);return Q};
crb=function(){return XQe++};
fAW=function(G){if(G instanceof HTMLFormElement)return"form";G=G.tagName.toLowerCase();return TlM.test(G)?"div":G};
KDU=function(G,H){function Z(t){return(t=t.exec(H.substring(Q)))?(t=t[0],Q+=t.length,t):""}
if(H.trim()==="")return H;for(var Q=0,p=[];;){Z(vfW);if(Q>=H.length)break;var l=Z(WDu);if(l.slice(-1)===",")l=zue(G,l.substring(0,l.length-1)),p.push(l);else{var q="";l=zue(G,l);for(var u=!1;;){var B=H.charAt(Q);if(B===""){p.push((l+q).trim());break}else if(u)B===")"&&(u=!1);else if(B===","){Q+=1;p.push((l+q).trim());break}else B==="("&&(u=!0);q+=B;Q+=1}}}return p.join(", ")};
zue=function(G,H){return H&&H.trim()!==""?Maj(G,H):H};
Maj=function(G,H){var Z=jvj.get(G);Z||(Z=G.createElement("a"),jvj.set(G,Z));if(!H)H="";else if(H.startsWith("blob:")||H.startsWith("data:"))return H;AN(Z,H);return Z.href};
P5e=function(G,H,Z,Q){return Q?Z==="src"||Z==="href"&&(H!=="use"||Q[0]!=="#")||Z==="xlink:href"&&Q[0]!=="#"||Z==="background"&&(H==="table"||H==="td"||H==="th")?zue(G,Q):Z==="srcset"?KDU(G,Q):Z==="style"?uQb(Q,Maj(G)):H==="object"&&Z==="data"?zue(G,Q):Q:Q};
rr3=function(G,H){return(G==="video"||G==="audio")&&H==="autoplay"};
wQf=function(G,H,Z){try{if(typeof H==="string"){if(G.classList.contains(H))return!0}else for(var Q=G.classList.length;Q--;)if(H.test(G.classList[Q]))return!0;if(Z)return G.matches(Z)}catch(p){}return!1};
huj=function(G,H,Z){if(!G)return!1;if(G.nodeType!==G.ELEMENT_NODE)return Z?huj(C6(G),H,Z):!1;for(var Q=G.classList.length;Q--;)if(H.test(G.classList[Q]))return!0;return Z?huj(C6(G),H,Z):!1};
C5f=function(G,H,Z,Q){if(G.nodeType===G.ELEMENT_NODE){if(!i4(G).length)return!1}else{if(OW(G)===null)return!1;G=OW(G)}try{if(typeof H==="string")if(Q){if(G.closest("."+H))return!0}else{if(G.classList.contains(H))return!0}else if(huj(G,H,Q))return!0;if(Z)if(Q){if(G.closest(Z))return!0}else if(G.matches(Z))return!0}catch(p){}return!1};
iK2=function(G,H,Z){var Q=G.contentWindow;if(Q){var p=!1;try{var l=Q.document.readyState}catch(u){return}if(l!=="complete"){var q=setTimeout(function(){p||(H(),p=!0)},Z);
G.addEventListener("load",function(){clearTimeout(q);p=!0;H()})}else Q.location.href==="about:blank"&&G.src!=="about:blank"&&G.src!==""||setTimeout(H,0),G.addEventListener("load",H)}};
OKW=function(G,H,Z){var Q=!1;try{var p=G.sheet}catch(q){return}if(!p){var l=setTimeout(function(){Q||(H(),Q=!0)},Z);
G.addEventListener("load",function(){clearTimeout(l);Q=!0;H()})}};
ofv=function(G,H){var Z=H.doc,Q=H.blockClass,p=H.blockSelector,l=H.needsMask,q=H.inlineStylesheet,u=H.maskInputOptions===void 0?{}:H.maskInputOptions,B=H.maskTextFn,t=H.maskInputFn,D=H.dataURLOptions===void 0?{}:H.dataURLOptions,d=H.inlineImages,e=H.recordCanvas,n=H.keepIframeSrcFn,c=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,W=H.cssCaptured===void 0?!1:H.cssCaptured;H=H.mirror;H.nodeMetaMap.has(Z)?(H=H.getId(Z),H=H===1?void 0:H):H=void 0;switch(G.nodeType){case G.DOCUMENT_NODE:return G.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:G.compatMode}:{type:0,childNodes:[]};case G.DOCUMENT_TYPE_NODE:return{type:1,name:G.name,publicId:G.publicId,systemId:G.systemId,rootId:H};case G.ELEMENT_NODE:return aAj(G,{doc:Z,blockClass:Q,blockSelector:p,inlineStylesheet:q,maskInputOptions:u,maskInputFn:t,dataURLOptions:D,inlineImages:d,recordCanvas:e,keepIframeSrcFn:n,newlyAddedElement:c,rootId:H});case G.TEXT_NODE:return q=(Q=C6(G))&&Q.tagName,Q="",p=q==="STYLE"?!0:void 0,(q=q==="SCRIPT"?!0:void 0)?
Q="SCRIPT_PLACEHOLDER":W||(Q=yrb(G),p&&Q&&(Q=uQb(Q,Maj(Z)))),!p&&!q&&Q&&l&&(Q=B?B(Q,OW(G)):Q.replace(/[\S]/g,"*")),{type:3,textContent:Q||"",rootId:H};case G.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:H};case G.COMMENT_NODE:return{type:5,textContent:yrb(G)||"",rootId:H};default:return!1}};
aAj=function(G,H){var Z=H.doc,Q=H.inlineStylesheet,p=H.maskInputOptions===void 0?{}:H.maskInputOptions,l=H.maskInputFn,q=H.dataURLOptions===void 0?{}:H.dataURLOptions,u=H.inlineImages,B=H.recordCanvas,t=H.keepIframeSrcFn,D=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,d=H.rootId;H=wQf(G,H.blockClass,H.blockSelector);for(var e=fAW(G),n={},c=G.attributes.length,W=0;W<c;W++){var M=G.attributes[W];rr3(e,M.name)||(n[M.name]=P5e(Z,e,M.name.toLowerCase(),M.value))}e==="link"&&Q&&(Q=Array.from(Z.styleSheets).find(function(R){return R.href===
G.href}),c=null,Q&&(c=SxX(Q)),c&&(delete n.rel,delete n.href,n._cssText=c));
e==="style"&&G.sheet&&(Q=SxX(G.sheet))&&(G.childNodes.length>1&&(Q=$no(Q,G).join("/* rr_split */")),n._cssText=Q);if(e==="input"||e==="textarea"||e==="select")Q=G.value,c=G.checked,n.type!=="radio"&&n.type!=="checkbox"&&n.type!=="submit"&&n.type!=="button"&&Q?n.value=BlU({element:G,type:tau(G),tagName:e,value:Q,maskInputOptions:p,maskInputFn:l}):c&&(n.checked=c);e==="option"&&(G.selected&&!p.select?n.selected=!0:delete n.selected);e==="dialog"&&G.open&&(n.rr_open_mode=G.matches("dialog:modal")?"modal":
"non-modal");e==="canvas"&&B&&(G.__context==="2d"?Jrj(G)||(n.rr_dataURL=G.toDataURL(q.type,q.quality)):"__context"in G||(p=G.toDataURL(q.type,q.quality),l=Z.createElement("canvas"),l.width=G.width,l.height=G.height,l=l.toDataURL(q.type,q.quality),p!==l&&(n.rr_dataURL=p)));if(e==="img"&&u){aZ||(aZ=Z.createElement("canvas"),mnb=aZ.getContext("2d"));var r=G.currentSrc||G.getAttribute("src")||"<unknown-src>",w=G.crossOrigin,x=function(){G.removeEventListener("load",x);try{aZ.width=G.naturalWidth,aZ.height=
G.naturalHeight,mnb.drawImage(G,0,0),n.rr_dataURL=aZ.toDataURL(q.type,q.quality)}catch(R){if(G.crossOrigin!=="anonymous"){G.crossOrigin="anonymous";G.complete&&G.naturalWidth!==0?x():G.addEventListener("load",x);return}console.warn("Cannot inline img src="+r+"! Error: "+R)}G.crossOrigin==="anonymous"&&(w?n.crossOrigin=w:G.removeAttribute("crossorigin"))};
G.complete&&G.naturalWidth!==0?x():G.addEventListener("load",x)}if(e==="audio"||e==="video")Z=n,Z.rr_mediaState=G.paused?"paused":"played",Z.rr_mediaCurrentTime=G.currentTime,Z.rr_mediaPlaybackRate=G.playbackRate,Z.rr_mediaMuted=G.muted,Z.rr_mediaLoop=G.loop,Z.rr_mediaVolume=G.volume;D||(G.scrollLeft&&(n.rr_scrollLeft=G.scrollLeft),G.scrollTop&&(n.rr_scrollTop=G.scrollTop));H&&(D=G.getBoundingClientRect(),n={class:n.class,rr_width:D.width+"px",rr_height:D.height+"px"});e!=="iframe"||t(n.src)||(G.contentDocument||
(n.rr_src=n.src),delete n.src);var U;try{customElements.get(e)&&(U=!0)}catch(R){}return{type:2,tagName:e,attributes:n,childNodes:[],isSVG:!(G.tagName!=="svg"&&!G.ownerSVGElement)||void 0,needBlock:H,rootId:d,isCustom:U}};
yg=function(G){return G===void 0||G===null?"":G.toLowerCase()};
Unb=function(G,H){return H.comment&&G.type===5||G.type===2&&(H.script&&(G.tagName==="script"||G.tagName==="link"&&(G.attributes.rel==="preload"&&G.attributes.as==="script"||G.attributes.rel==="modulepreload")||G.tagName==="link"&&G.attributes.rel==="prefetch"&&typeof G.attributes.href==="string"&&kwj(G.attributes.href)==="js")||H.headFavicon&&(G.tagName==="link"&&G.attributes.rel==="shortcut icon"||G.tagName==="meta"&&(yg(G.attributes.name).match(/^msapplication-tile(image|color)$/)||yg(G.attributes.name)===
"application-name"||yg(G.attributes.rel)==="icon"||yg(G.attributes.rel)==="apple-touch-icon"||yg(G.attributes.rel)==="shortcut icon"))||G.tagName==="meta"&&(H.headMetaDescKeywords&&yg(G.attributes.name).match(/^description|keywords$/)||H.headMetaSocial&&(yg(G.attributes.property).match(/^(og|twitter|fb):/)||yg(G.attributes.name).match(/^(og|twitter):/)||yg(G.attributes.name)==="pinterest")||H.headMetaRobots&&(yg(G.attributes.name)==="robots"||yg(G.attributes.name)==="googlebot"||yg(G.attributes.name)===
"bingbot")||H.headMetaHttpEquiv&&G.attributes["http-equiv"]!==void 0||H.headMetaAuthorship&&(yg(G.attributes.name)==="author"||yg(G.attributes.name)==="generator"||yg(G.attributes.name)==="framework"||yg(G.attributes.name)==="publisher"||yg(G.attributes.name)==="progid"||yg(G.attributes.property).match(/^article:/)||yg(G.attributes.property).match(/^product:/))||H.headMetaVerification&&(yg(G.attributes.name)==="google-site-verification"||yg(G.attributes.name)==="yandex-verification"||yg(G.attributes.name)===
"csrf-token"||yg(G.attributes.name)==="p:domain_verify"||yg(G.attributes.name)==="verify-v1"||yg(G.attributes.name)==="verification"||yg(G.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
oZ=function(G,H){var Z=H.doc,Q=H.mirror,p=H.blockClass,l=H.blockSelector,q=H.maskTextClass,u=H.maskTextSelector,B=H.skipChild===void 0?!1:H.skipChild,t=H.inlineStylesheet===void 0?!0:H.inlineStylesheet,D=H.maskInputOptions===void 0?{}:H.maskInputOptions,d=H.maskTextFn,e=H.maskInputFn,n=H.slimDOMOptions,c=H.dataURLOptions===void 0?{}:H.dataURLOptions,W=H.inlineImages===void 0?!1:H.inlineImages,M=H.recordCanvas===void 0?!1:H.recordCanvas,r=H.onSerialize,w=H.onIframeLoad,x=H.iframeLoadTimeout===void 0?
5E3:H.iframeLoadTimeout,U=H.onStylesheetLoad,R=H.stylesheetLoadTimeout===void 0?5E3:H.stylesheetLoadTimeout,L=H.keepIframeSrcFn===void 0?function(){return!1}:H.keepIframeSrcFn,H3=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,qX=H.cssCaptured===void 0?!1:H.cssCaptured,B3=H.needsMask,fW=H.preserveWhiteSpace===void 0?!0:H.preserveWhiteSpace;
B3||(B3=C5f(G,q,u,B3===void 0));var e2=ofv(G,{doc:Z,mirror:Q,blockClass:p,blockSelector:l,needsMask:B3,inlineStylesheet:t,maskInputOptions:D,maskTextFn:d,maskInputFn:e,dataURLOptions:c,inlineImages:W,recordCanvas:M,keepIframeSrcFn:L,newlyAddedElement:H3,cssCaptured:qX});if(!e2)return console.warn(G,"not serialized"),null;H3=Q.nodeMetaMap.has(G)?Q.getId(G):Unb(e2,n)||!fW&&e2.type===3&&!e2.textContent.replace(/^\s+|\s+$/gm,"").length?-2:XQe++;H=Object.assign(e2,{id:H3});Q.add(G,H);if(H3===-2)return null;
r&&r(G);H3=!B;H.type===2&&(H3=H3&&!H.needBlock,delete H.needBlock,(qX=rg(G))&&hc(qX)&&(H.isShadowHost=!0));if((H.type===0||H.type===2)&&H3){n.headWhitespace&&H.type===2&&H.tagName==="head"&&(fW=!1);B={doc:Z,mirror:Q,blockClass:p,blockSelector:l,needsMask:B3,maskTextClass:q,maskTextSelector:u,skipChild:B,inlineStylesheet:t,maskInputOptions:D,maskTextFn:d,maskInputFn:e,slimDOMOptions:n,dataURLOptions:c,inlineImages:W,recordCanvas:M,preserveWhiteSpace:fW,onSerialize:r,onIframeLoad:w,iframeLoadTimeout:x,
onStylesheetLoad:U,stylesheetLoadTimeout:R,keepIframeSrcFn:L,cssCaptured:!1};if(H.type!==2||H.tagName!=="textarea"||H.attributes.value===void 0)for(H.type===2&&H.attributes._cssText!==void 0&&typeof H.attributes._cssText==="string"&&(B.cssCaptured=!0),H3=_.I(Array.from(i4(G))),qX=H3.next();!qX.done;qX=H3.next())(qX=oZ(qX.value,B))&&H.childNodes.push(qX);H3=null;if(G.nodeType===G.ELEMENT_NODE&&(H3=rg(G))){qX=_.I(Array.from(i4(H3)));for(var $R=qX.next();!$R.done;$R=qX.next())if($R=oZ($R.value,B))hc(H3)&&
($R.isShadow=!0),H.childNodes.push($R)}}(B=C6(G))&&wg(B)&&hc(B)&&(H.isShadow=!0);H.type===2&&H.tagName==="iframe"&&iK2(G,function(){var ie=G.contentDocument;ie&&w&&(ie=oZ(ie,{doc:ie,mirror:Q,blockClass:p,blockSelector:l,needsMask:B3,maskTextClass:q,maskTextSelector:u,skipChild:!1,inlineStylesheet:t,maskInputOptions:D,maskTextFn:d,maskInputFn:e,slimDOMOptions:n,dataURLOptions:c,inlineImages:W,recordCanvas:M,preserveWhiteSpace:fW,onSerialize:r,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:U,stylesheetLoadTimeout:R,
keepIframeSrcFn:L}))&&w(G,ie)},x);
H.type===2&&H.tagName==="link"&&typeof H.attributes.rel==="string"&&(H.attributes.rel==="stylesheet"||H.attributes.rel==="preload"&&typeof H.attributes.href==="string"&&kwj(H.attributes.href)==="css")&&OKW(G,function(){if(U){var ie=oZ(G,{doc:Z,mirror:Q,blockClass:p,blockSelector:l,needsMask:B3,maskTextClass:q,maskTextSelector:u,skipChild:!1,inlineStylesheet:t,maskInputOptions:D,maskTextFn:d,maskInputFn:e,slimDOMOptions:n,dataURLOptions:c,inlineImages:W,recordCanvas:M,preserveWhiteSpace:fW,onSerialize:r,
onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:U,stylesheetLoadTimeout:R,keepIframeSrcFn:L});ie&&U(G,ie)}},R);
return H};
RuW=function(G){var H=document;G=G||{};var Z=G.maskAllInputs===void 0?!1:G.maskAllInputs,Q=G.slimDOM===void 0?!1:G.slimDOM;return oZ(H,{doc:H,mirror:G.mirror===void 0?new m_:G.mirror,blockClass:G.blockClass===void 0?"rr-block":G.blockClass,blockSelector:G.blockSelector===void 0?null:G.blockSelector,maskTextClass:G.maskTextClass===void 0?"rr-mask":G.maskTextClass,maskTextSelector:G.maskTextSelector===void 0?null:G.maskTextSelector,skipChild:!1,inlineStylesheet:G.inlineStylesheet===void 0?!0:G.inlineStylesheet,
maskInputOptions:Z===!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}:Z===!1?{password:!0}:Z,maskTextFn:G.maskTextFn,maskInputFn:G.maskInputFn,slimDOMOptions:Q===!0||Q==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:Q==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:Q===!1?{}:Q,dataURLOptions:G.dataURLOptions,
inlineImages:G.inlineImages===void 0?!1:G.inlineImages,recordCanvas:G.recordCanvas===void 0?!1:G.recordCanvas,preserveWhiteSpace:G.preserveWhiteSpace,onSerialize:G.onSerialize,onIframeLoad:G.onIframeLoad,iframeLoadTimeout:G.iframeLoadTimeout,onStylesheetLoad:G.onStylesheetLoad,stylesheetLoadTimeout:G.stylesheetLoadTimeout,keepIframeSrcFn:G.keepIframeSrcFn===void 0?function(){return!1}:G.keepIframeSrcFn,
newlyAddedElement:!1})};
UW=function(G,H,Z){Z=Z===void 0?document:Z;var Q={capture:!0,passive:!0};Z.addEventListener(G,H,Q);return function(){return Z.removeEventListener(G,H,Q)}};
RZ=function(G,H,Z){Z=Z===void 0?{}:Z;var Q=null,p=0;return function(){var l=_.Ry.apply(0,arguments),q=Date.now();p||Z.leading!==!1||(p=q);var u=H-(q-p),B=this;u<=0||u>H?(Q&&(clearTimeout(Q),Q=null),p=q,G.apply(B,l)):Q||Z.trailing===!1||(Q=setTimeout(function(){p=Z.leading===!1?0:Date.now();Q=null;G.apply(B,l)},u))}};
Nlb=function(G,H,Z,Q,p){p=p===void 0?window:p;var l=p.Object.getOwnPropertyDescriptor(G,H);p.Object.defineProperty(G,H,Q?Z:{set:function(q){var u=this;setTimeout(function(){Z.set.call(u,q)},0);
l&&l.set&&l.set.call(this,q)}});
return function(){return Nlb(G,H,l||{},!0)}};
Aro=function(G){var H=G.document,Z,Q,p,l;return{left:H.scrollingElement?H.scrollingElement.scrollLeft:G.pageXOffset!==void 0?G.pageXOffset:H.documentElement.scrollLeft||(H==null?void 0:H.body)&&((Z=OW(H.body))==null?void 0:Z.scrollLeft)||(H==null?void 0:(Q=H.body)==null?void 0:Q.scrollLeft)||0,top:H.scrollingElement?H.scrollingElement.scrollTop:G.pageYOffset!==void 0?G.pageYOffset:(H==null?void 0:H.documentElement.scrollTop)||(H==null?void 0:H.body)&&((p=OW(H.body))==null?void 0:p.scrollTop)||(H==
null?void 0:(l=H.body)==null?void 0:l.scrollTop)||0}};
xnf=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
LD3=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
Efj=function(G){return G?G.nodeType===G.ELEMENT_NODE?G:OW(G):null};
N2=function(G,H,Z,Q){if(!G)return!1;G=Efj(G);if(!G)return!1;try{if(typeof H==="string"){if(G.classList.contains(H)||Q&&G.closest("."+H)!==null)return!0}else if(huj(G,H,Q))return!0}catch(p){}return Z&&(G.matches(Z)||Q&&G.closest(Z)!==null)?!0:!1};
Yxf=function(G,H,Z){return G.tagName==="TITLE"&&Z.headTitleMutations?!0:H.getId(G)===-2};
FDo=function(G,H){if(wg(G))return!1;var Z=H.getId(G);return H.has(Z)?(Z=C6(G))&&Z.nodeType===G.DOCUMENT_NODE?!1:Z?FDo(Z,H):!0:!0};
bK3=function(){var G=G===void 0?window:G;"NodeList"in G&&!G.NodeList.prototype.forEach&&(G.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in G&&!G.DOMTokenList.prototype.forEach&&(G.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
GjU=function(G,H){return!(G.nodeName!=="LINK"||G.nodeType!==G.ELEMENT_NODE||!G.getAttribute||G.getAttribute("rel")!=="stylesheet"||!H.nodeMetaMap.get(G))};
sQj=function(G){var H=null,Z;"getRootNode"in G&&((Z=HpM(G))==null?void 0:Z.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&PE(HpM(G))&&(H=PE(HpM(G)));return H};
ZpW=function(G){var H=G.ownerDocument;if(H){if(!(H=gf3(H,"contains")(G)))if(H=G.ownerDocument){for(var Z;Z=sQj(G);)G=Z;H=gf3(H,"contains")(G)}else H=!1}else H=!1;return H};
QQM=function(G,H){G.delete(H);i4(H).forEach(function(Z){return QQM(G,Z)})};
pyW=function(G,H){for(var Z=[G];Z.length;)G=Z.pop(),H.has(G)||(H.add(G),i4(G).forEach(function(Q){return Z.push(Q)}))};
l$2=function(G,H){G.size===0?G=!1:G=(H=C6(H))?G.has(H):!1;return G};
I$j=function(G,H){return G.size===0?!1:g_b(G,H)};
g_b=function(G,H){return(H=C6(H))?G.has(H)?!0:g_b(G,H):!1};
Ac=function(G){try{if("composedPath"in G){var H=G.composedPath();if(H.length)return H[0]}else if("path"in G&&G.path.length)return G.path[0]}catch(Z){}return G&&G.target};
Saj=function(G,H){var Z=new qa2;xi.push(Z);Z.init(G);G=new (QvM("MutationObserver").constructor)(L6(Z.processMutations.bind(Z)));G.observe(H,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return G};
Jq3=function(G){var H=G.mousemoveCb;var Z=G.sampling;var Q=G.doc;var p=G.mirror;if(Z.mousemove===!1)return function(){};
var l=[],q,u=RZ(L6(function(t){var D=Date.now()-q;H(l.map(function(d){d.timeOffset-=D;return d}),t);
l=[];q=null}),typeof Z.mousemoveCallback==="number"?Z.mousemoveCallback:500);
G=L6(RZ(L6(function(t){var D=Ac(t),d=t.changedTouches?t.changedTouches[0]:t,e=d.clientX;d=d.clientY;q||(q=BsW());l.push({x:e,y:d,id:p.getId(D),timeOffset:BsW()-q});u(typeof DragEvent!=="undefined"&&t instanceof DragEvent?12:t instanceof MouseEvent?1:6)}),typeof Z.mousemove==="number"?Z.mousemove:50,{trailing:!1}));
var B=[UW("mousemove",G,Q),UW("touchmove",G,Q),UW("drag",G,Q)];return L6(function(){B.forEach(function(t){return t()})})};
tb3=function(G){var H=G.mouseInteractionCb;var Z=G.doc;var Q=G.mirror;var p=G.blockClass;var l=G.blockSelector;G=G.sampling;if(G.mouseInteraction===!1)return function(){};
var q=G.mouseInteraction===!0||G.mouseInteraction===void 0?{}:G.mouseInteraction,u=[],B=null,t=function(D){return function(d){var e=Ac(d);if(!N2(e,p,l,!0)){var n=null,c=D;if("pointerType"in d){switch(d.pointerType){case "mouse":n=0;break;case "touch":n=2;break;case "pen":n=1}n===2&&(EW[D]===1?c="TouchStart":EW[D]===0&&(c="TouchEnd"))}else d.changedTouches&&(n=2);if(n!==null){if(B=n,c.startsWith("Touch")&&n===2||c.startsWith("Mouse")&&n===0)n=null}else EW[D]===2&&(n=B,B=null);if(d=d.changedTouches?
d.changedTouches[0]:d)e=Q.getId(e),L6(H)(Object.assign({},{type:EW[c],id:e,x:d.clientX,y:d.clientY},n!==null&&{pointerType:n}))}}};
Object.keys(EW).filter(function(D){return Number.isNaN(Number(D))&&!D.endsWith("_Departed")&&q[D]!==!1}).forEach(function(D){var d=D.toLowerCase(),e=t(D);
if(window.PointerEvent)switch(EW[D]){case 1:case 0:d=d.replace("mouse","pointer");break;case 7:case 9:return}u.push(UW(d,e,Z))});
return L6(function(){u.forEach(function(D){return D()})})};
kjj=function(G){var H=G.scrollCb;var Z=G.doc;var Q=G.mirror;var p=G.blockClass;var l=G.blockSelector;return UW("scroll",L6(RZ(L6(function(q){var u=Ac(q);u&&!N2(u,p,l,!0)&&(q=Q.getId(u),u===Z&&Z.defaultView?(u=Aro(Z.defaultView),H({id:q,x:u.left,y:u.top})):H({id:q,x:u.scrollLeft,y:u.scrollTop}))}),G.sampling.scroll||100)),Z)};
DQj=function(G,H){var Z=G.viewportResizeCb;var Q=-1,p=-1;return UW("resize",L6(RZ(L6(function(){var l=xnf(),q=LD3();if(Q!==l||p!==q)Z({width:Number(q),height:Number(l)}),Q=l,p=q}),200)),H.win)};
n_f=function(G){function H(M){var r=Ac(M),w=M.isTrusted,x=r&&r.tagName;r&&x==="OPTION"&&(r=OW(r));if(!(!r||!x||dQ3.indexOf(x)<0||N2(r,q,u,!0)||r.classList.contains(B)||t&&r.matches(t))){var U=r.value,R=!1;M=tau(r)||"";if(M==="radio"||M==="checkbox")R=r.checked;else if(D[x.toLowerCase()]||D[M])U=BlU({element:r,maskInputOptions:D,tagName:x,type:M,value:U,maskInputFn:d});Z(r,n?{text:U,isChecked:R,userTriggered:w}:{text:U,isChecked:R});w=r.name;M==="radio"&&w&&R&&p.querySelectorAll('input[type="radio"][name="'+
w+'"]').forEach(function(L){if(L!==r){var H3=L.value;Z(L,n?{text:H3,isChecked:!R,userTriggered:!1}:{text:H3,isChecked:!R})}})}}
function Z(M,r){var w=eSf.get(M);w&&w.text===r.text&&w.isChecked===r.isChecked||(eSf.set(M,r),M=l.getId(M),L6(Q)(Object.assign({},r,{id:M})))}
var Q=G.inputCb;var p=G.doc;var l=G.mirror;var q=G.blockClass;var u=G.blockSelector;var B=G.ignoreClass;var t=G.ignoreSelector;var D=G.maskInputOptions;var d=G.maskInputFn;var e=G.sampling;var n=G.userTriggeredOnInput;var c=(e.input==="last"?["change"]:["input","change"]).map(function(M){return UW(M,L6(H),p)}),W=p.defaultView;
if(!W)return function(){c.forEach(function(M){return M()})};
G=W.Object.getOwnPropertyDescriptor(W.HTMLInputElement.prototype,"value");e=[[W.HTMLInputElement.prototype,"value"],[W.HTMLInputElement.prototype,"checked"],[W.HTMLSelectElement.prototype,"value"],[W.HTMLTextAreaElement.prototype,"value"],[W.HTMLSelectElement.prototype,"selectedIndex"],[W.HTMLOptionElement.prototype,"selected"]];G&&G.set&&c.push.apply(c,_.OP(e.map(function(M){return Nlb(M[0],M[1],{set:function(){L6(H)({target:this,isTrusted:!1})}},!1,W)})));
return L6(function(){c.forEach(function(M){return M()})})};
$Qe=function(G){var H=[],Z,Q,p,l;Vbb("CSSGroupingRule")&&((Z=G.parentRule)==null?void 0:(Q=Z.constructor)==null?void 0:Q.name)==="CSSGroupingRule"||Vbb("CSSMediaRule")&&G.parentRule instanceof CSSMediaRule||Vbb("CSSSupportsRule")&&G.parentRule instanceof CSSSupportsRule||Vbb("CSSConditionRule")&&((p=G.parentRule)==null?void 0:(l=p.constructor)==null?void 0:l.name)==="CSSConditionRule"?(G=Array.from(G.parentRule.cssRules).indexOf(G),H.unshift(G)):G.parentStyleSheet&&(G=Array.from(G.parentStyleSheet.cssRules).indexOf(G),
H.unshift(G));return H};
Yi=function(G,H,Z){var Q,p;if(!G)return{};G.ownerNode?Q=H.getId(G.ownerNode):p=Z.getId(G);return{styleId:p,id:Q}};
cqe=function(G,H){var Z=G.styleSheetRuleCb;var Q=G.mirror;var p=G.stylesheetManager;var l=H.win;if(!l.CSSStyleSheet||!l.CSSStyleSheet.prototype)return function(){};
var q=l.CSSStyleSheet.prototype.insertRule;l.CSSStyleSheet.prototype.insertRule=new Fr(q,{apply:L6(function(e,n,c){var W=_.I(c),M=W.next().value;W=W.next().value;var r=Yi(n,Q,p.styleMirror),w=r.id;r=r.styleId;(w&&w!==-1||r&&r!==-1)&&Z({id:w,styleId:r,adds:[{rule:M,index:W}]});return e.apply(n,c)})});
l.CSSStyleSheet.prototype.addRule=function(e,n,c){c=c===void 0?this.cssRules.length:c;return l.CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+n+" }",c])};
var u=l.CSSStyleSheet.prototype.deleteRule;l.CSSStyleSheet.prototype.deleteRule=new Fr(u,{apply:L6(function(e,n,c){var W=_.I(c).next().value,M=Yi(n,Q,p.styleMirror),r=M.id;M=M.styleId;(r&&r!==-1||M&&M!==-1)&&Z({id:r,styleId:M,removes:[{index:W}]});return e.apply(n,c)})});
l.CSSStyleSheet.prototype.removeRule=function(e){return l.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};
if(l.CSSStyleSheet.prototype.replace){var B=l.CSSStyleSheet.prototype.replace;l.CSSStyleSheet.prototype.replace=new Fr(B,{apply:L6(function(e,n,c){var W=_.I(c).next().value,M=Yi(n,Q,p.styleMirror),r=M.id;M=M.styleId;(r&&r!==-1||M&&M!==-1)&&Z({id:r,styleId:M,replace:W});return e.apply(n,c)})})}if(l.CSSStyleSheet.prototype.replaceSync){var t=l.CSSStyleSheet.prototype.replaceSync;
l.CSSStyleSheet.prototype.replaceSync=new Fr(t,{apply:L6(function(e,n,c){var W=_.I(c).next().value,M=Yi(n,Q,p.styleMirror),r=M.id;M=M.styleId;(r&&r!==-1||M&&M!==-1)&&Z({id:r,styleId:M,replaceSync:W});return e.apply(n,c)})})}var D={};
Xy2("CSSGroupingRule")?D.CSSGroupingRule=l.CSSGroupingRule:(Xy2("CSSMediaRule")&&(D.CSSMediaRule=l.CSSMediaRule),Xy2("CSSConditionRule")&&(D.CSSConditionRule=l.CSSConditionRule),Xy2("CSSSupportsRule")&&(D.CSSSupportsRule=l.CSSSupportsRule));var d={};Object.entries(D).forEach(function(e){var n=_.I(e);e=n.next().value;n=n.next().value;d[e]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule};n.prototype.insertRule=new Fr(d[e].insertRule,{apply:L6(function(c,W,M){var r=_.I(M),w=r.next().value;
r=r.next().value;var x=Yi(W.parentStyleSheet,Q,p.styleMirror),U=x.id;x=x.styleId;(U&&U!==-1||x&&x!==-1)&&Z({id:U,styleId:x,adds:[{rule:w,index:[].concat(_.OP($Qe(W)),[r||0])}]});return c.apply(W,M)})});
n.prototype.deleteRule=new Fr(d[e].deleteRule,{apply:L6(function(c,W,M){var r=_.I(M).next().value,w=Yi(W.parentStyleSheet,Q,p.styleMirror),x=w.id;w=w.styleId;(x&&x!==-1||w&&w!==-1)&&Z({id:x,styleId:w,removes:[{index:[].concat(_.OP($Qe(W)),[r])}]});return c.apply(W,M)})})});
return L6(function(){l.CSSStyleSheet.prototype.insertRule=q;l.CSSStyleSheet.prototype.deleteRule=u;B&&(l.CSSStyleSheet.prototype.replace=B);t&&(l.CSSStyleSheet.prototype.replaceSync=t);Object.entries(D).forEach(function(e){var n=_.I(e);e=n.next().value;n=n.next().value;n.prototype.insertRule=d[e].insertRule;n.prototype.deleteRule=d[e].deleteRule})})};
f$f=function(G,H){var Z=G.mirror;var Q=G.stylesheetManager;var p=null;p=H.nodeName==="#document"?Z.getId(H):Z.getId(PE(H));var l,q,u;G=H.nodeName==="#document"?(l=H.defaultView)==null?void 0:l.Document:(q=H.ownerDocument)==null?void 0:(u=q.defaultView)==null?void 0:u.ShadowRoot;var B=(G==null?0:G.prototype)?Object.getOwnPropertyDescriptor(G==null?void 0:G.prototype,"adoptedStyleSheets"):void 0;if(p===null||p===-1||!G||!B)return function(){};
Object.defineProperty(H,"adoptedStyleSheets",{configurable:B.configurable,enumerable:B.enumerable,get:function(){var t;return(t=B.get)==null?void 0:t.call(this)},
set:function(t){var D,d=(D=B.set)==null?void 0:D.call(this,t);if(p!==null&&p!==-1)try{TsW(Q,t,p)}catch(e){}return d}});
return L6(function(){Object.defineProperty(H,"adoptedStyleSheets",{configurable:B.configurable,enumerable:B.enumerable,get:B.get,set:B.set})})};
v_U=function(G,H){var Z=G.styleDeclarationCb;var Q=G.mirror;var p=G.ignoreCSSAttributes;var l=G.stylesheetManager;var q=H.win;var u=q.CSSStyleDeclaration.prototype.setProperty;q.CSSStyleDeclaration.prototype.setProperty=new Fr(u,{apply:L6(function(t,D,d){var e=_.I(d),n=e.next().value,c=e.next().value;e=e.next().value;if(p.has(n))return u.apply(D,[n,c,e]);var W,M=Yi((W=D.parentRule)==null?void 0:W.parentStyleSheet,Q,l.styleMirror);W=M.id;M=M.styleId;(W&&W!==-1||M&&M!==-1)&&Z({id:W,styleId:M,set:{property:n,
value:c,priority:e},index:$Qe(D.parentRule)});return t.apply(D,d)})});
var B=q.CSSStyleDeclaration.prototype.removeProperty;q.CSSStyleDeclaration.prototype.removeProperty=new Fr(B,{apply:L6(function(t,D,d){var e=_.I(d).next().value;if(p.has(e))return B.apply(D,[e]);var n,c=Yi((n=D.parentRule)==null?void 0:n.parentStyleSheet,Q,l.styleMirror);n=c.id;c=c.styleId;(n&&n!==-1||c&&c!==-1)&&Z({id:n,styleId:c,remove:{property:e},index:$Qe(D.parentRule)});return t.apply(D,d)})});
return L6(function(){q.CSSStyleDeclaration.prototype.setProperty=u;q.CSSStyleDeclaration.prototype.removeProperty=B})};
WN2=function(G){var H=G.mediaInteractionCb;var Z=G.blockClass;var Q=G.blockSelector;var p=G.mirror;var l=G.sampling;G=G.doc;var q=L6(function(B){return RZ(L6(function(t){if((t=Ac(t))&&!N2(t,Z,Q,!0)){var D=t.currentTime,d=t.volume,e=t.muted,n=t.playbackRate,c=t.loop;H({type:B,id:p.getId(t),currentTime:D,volume:d,muted:e,playbackRate:n,loop:c})}}),l.media||500)}),u=[UW("play",q(0),G),
UW("pause",q(1),G),UW("seeked",q(2),G),UW("volumechange",q(3),G),UW("ratechange",q(4),G)];return L6(function(){u.forEach(function(B){return B()})})};
zSR=function(G){var H=G.fontCb;G=G.doc;var Z=G.defaultView;if(!Z)return function(){};
var Q=[],p=new WeakMap,l=Z.FontFace;Z.FontFace=function(q,u,B){var t=new l(q,u,B);p.set(t,{family:q,buffer:typeof u!=="string",descriptors:B,fontSource:typeof u==="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))});return t};
G=jn(G.fonts,"add",function(q){return function(u){setTimeout(L6(function(){var B=p.get(u);B&&(H(B),p.delete(u))}),0);
return q.apply(this,[u])}});
Q.push(function(){Z.FontFace=l});
Q.push(G);return L6(function(){Q.forEach(function(q){return q()})})};
KNW=function(G){var H=G.doc,Z=G.mirror,Q=G.blockClass,p=G.blockSelector,l=G.selectionCb,q=!0;G=L6(function(){var u=H.getSelection();if(u&&!(q&&(u==null?0:u.isCollapsed))){q=u.isCollapsed||!1;for(var B=[],t=u.rangeCount||0,D=0;D<t;D++){var d=u.getRangeAt(D),e=d.startContainer,n=d.startOffset,c=d.endContainer;d=d.endOffset;N2(e,Q,p,!0)||N2(c,Q,p,!0)||B.push({start:Z.getId(e),startOffset:n,end:Z.getId(c),endOffset:d})}l({ranges:B})}});
G();return UW("selectionchange",G)};
Mb2=function(G){var H=G.doc;var Z=G.customElementCb;return(G=H.defaultView)&&G.customElements?jn(G.customElements,"define",function(Q){return function(p,l,q){try{Z({define:{name:p}})}catch(u){console.warn("Custom element callback failed for "+p)}return Q.apply(this,[p,l,q])}}):function(){}};
jQo=function(G,H){var Z=G.mutationCb,Q=G.mousemoveCb,p=G.mouseInteractionCb,l=G.scrollCb,q=G.viewportResizeCb,u=G.inputCb,B=G.mediaInteractionCb,t=G.styleSheetRuleCb,D=G.styleDeclarationCb,d=G.canvasMutationCb,e=G.fontCb,n=G.selectionCb,c=G.customElementCb;G.mutationCb=function(){var W=_.Ry.apply(0,arguments);H.mutation&&H.mutation.apply(H,_.OP(W));Z.apply(null,_.OP(W))};
G.mousemoveCb=function(){var W=_.Ry.apply(0,arguments);H.mousemove&&H.mousemove.apply(H,_.OP(W));Q.apply(null,_.OP(W))};
G.mouseInteractionCb=function(){var W=_.Ry.apply(0,arguments);H.mouseInteraction&&H.mouseInteraction.apply(H,_.OP(W));p.apply(null,_.OP(W))};
G.scrollCb=function(){var W=_.Ry.apply(0,arguments);H.scroll&&H.scroll.apply(H,_.OP(W));l.apply(null,_.OP(W))};
G.viewportResizeCb=function(){var W=_.Ry.apply(0,arguments);H.viewportResize&&H.viewportResize.apply(H,_.OP(W));q.apply(null,_.OP(W))};
G.inputCb=function(){var W=_.Ry.apply(0,arguments);H.input&&H.input.apply(H,_.OP(W));u.apply(null,_.OP(W))};
G.mediaInteractionCb=function(){var W=_.Ry.apply(0,arguments);H.mediaInteaction&&H.mediaInteaction.apply(H,_.OP(W));B.apply(null,_.OP(W))};
G.styleSheetRuleCb=function(){var W=_.Ry.apply(0,arguments);H.styleSheetRule&&H.styleSheetRule.apply(H,_.OP(W));t.apply(null,_.OP(W))};
G.styleDeclarationCb=function(){var W=_.Ry.apply(0,arguments);H.styleDeclaration&&H.styleDeclaration.apply(H,_.OP(W));D.apply(null,_.OP(W))};
G.canvasMutationCb=function(){var W=_.Ry.apply(0,arguments);H.canvasMutation&&H.canvasMutation.apply(H,_.OP(W));d.apply(null,_.OP(W))};
G.fontCb=function(){var W=_.Ry.apply(0,arguments);H.font&&H.font.apply(H,_.OP(W));e.apply(null,_.OP(W))};
G.selectionCb=function(){var W=_.Ry.apply(0,arguments);H.selection&&H.selection.apply(H,_.OP(W));n.apply(null,_.OP(W))};
G.customElementCb=function(){var W=_.Ry.apply(0,arguments);H.customElement&&H.customElement.apply(H,_.OP(W));c.apply(null,_.OP(W))}};
PnU=function(G,H){H=H===void 0?{}:H;var Z=G.doc.defaultView;if(!Z)return function(){};
jQo(G,H);var Q;G.recordDOM&&(Q=Saj(G,G.doc));var p=Jq3(G),l=tb3(G),q=kjj(G),u=DQj(G,{win:Z}),B=n_f(G),t=WN2(G),D=function(){},d=function(){},e=function(){},n=function(){};
G.recordDOM&&(D=cqe(G,{win:Z}),d=f$f(G,G.doc),e=v_U(G,{win:Z}),G.collectFonts&&(n=zSR(G)));var c=KNW(G),W=Mb2(G),M=[];G=_.I(G.plugins);for(H=G.next();!H.done;H=G.next())H=H.value,M.push(H.observer(H.callback,Z,H.options));return L6(function(){xi.forEach(function(w){return w.reset()});
var r;(r=Q)==null||r.disconnect();p();l();q();u();B();t();D();d();e();n();c();W();M.forEach(function(w){return w()})})};
Vbb=function(G){return typeof window[G]!=="undefined"};
Xy2=function(G){return!!(typeof window[G]!=="undefined"&&window[G].prototype&&"insertRule"in window[G].prototype&&"deleteRule"in window[G].prototype)};
rq3=function(G){G=new Uint8Array(G);for(var H="",Z=0;Z<G.byteLength;Z++)H+=String.fromCharCode(G[Z]);return btoa(H)};
wyb=function(G,H,Z){if(G instanceof Array)return G.map(function(p){return wyb(p,H,Z)});
if(G!==null){if(G instanceof Float32Array||G instanceof Float64Array||G instanceof Int32Array||G instanceof Uint32Array||G instanceof Uint8Array||G instanceof Uint16Array||G instanceof Int16Array||G instanceof Int8Array||G instanceof Uint8ClampedArray)return{rr_type:G.constructor.name,args:[Object.values(G)]};if(G instanceof ArrayBuffer){var Q=G.constructor.name;G=rq3(G);return{rr_type:Q,base64:G}}if(G instanceof DataView)return{rr_type:G.constructor.name,args:[wyb(G.buffer,H,Z),G.byteOffset,G.byteLength]};
if(G instanceof HTMLImageElement)return{rr_type:G.constructor.name,src:G.src};if(G instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:G.toDataURL()};if(G instanceof ImageData)return{rr_type:G.constructor.name,args:[wyb(G.data,H,Z),G.width,G.height]};if(hSU(G,H)||typeof G==="object")return Q=G.constructor.name,G=CnX(G,H,Z),{rr_type:Q,index:G}}return G};
OpX=function(G,H,Z,Q){for(var p=[],l=_.I(Object.getOwnPropertyNames(H.CanvasRenderingContext2D.prototype)),q=l.next(),u={};!q.done;u={prop$jscomp$58:void 0},q=l.next()){u.prop$jscomp$58=q.value;try{if(typeof H.CanvasRenderingContext2D.prototype[u.prop$jscomp$58]==="function"){var B=jn(H.CanvasRenderingContext2D.prototype,u.prop$jscomp$58,function(t){return function(D){return function(){var d=_.Ry.apply(0,arguments),e=this;N2(this.canvas,Z,Q,!0)||setTimeout(function(){var n=ipf(d,H,e);G(e.canvas,{type:b4["2D"],
property:t.prop$jscomp$58,args:n})},0);
return D.apply(this,d)}}}(u));
p.push(B)}}catch(t){q=Nlb(H.CanvasRenderingContext2D.prototype,u.prop$jscomp$58,{set:function(D){return function(d){G(this.canvas,{type:b4["2D"],property:D.prop$jscomp$58,args:[d],setter:!0})}}(u)}),p.push(q)}}return function(){p.forEach(function(t){return t()})}};
a$X=function(G,H,Z,Q){var p=[];try{var l=jn(G.HTMLCanvasElement.prototype,"getContext",function(q){return function(u){var B=_.Ry.apply(1,arguments);if(!N2(this,H,Z,!0)){var t=u==="experimental-webgl"?"webgl":u;"__context"in this||(this.__context=t);Q&&["webgl","webgl2"].includes(t)&&(B[0]&&typeof B[0]==="object"?(t=B[0],t.preserveDrawingBuffer||(t.preserveDrawingBuffer=!0)):B.splice(0,1,{preserveDrawingBuffer:!0}))}return q.apply(this,[u].concat(_.OP(B)))}});
p.push(l)}catch(q){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){p.forEach(function(q){return q()})}};
yqU=function(G,H,Z,Q,p,l){for(var q=[],u=_.I(Object.getOwnPropertyNames(G)),B=u.next(),t={};!B.done;t={prop$jscomp$59:void 0},B=u.next())if(t.prop$jscomp$59=B.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(t.prop$jscomp$59))try{if(typeof G[t.prop$jscomp$59]==="function"){var D=jn(G,t.prop$jscomp$59,function(d){return function(e){return function(){var n=_.Ry.apply(0,arguments),c=e.apply(this,n);CnX(c,l,this);"tagName"in this.canvas&&!N2(this.canvas,Q,p,!0)&&(n=
ipf(n,l,this),Z(this.canvas,{type:H,property:d.prop$jscomp$59,args:n}));return c}}}(t));
q.push(D)}}catch(d){B=Nlb(G,t.prop$jscomp$59,{set:function(e){return function(n){Z(this.canvas,{type:H,property:e.prop$jscomp$59,args:[n],setter:!0})}}(t)}),q.push(B)}return q};
o_b=function(G,H,Z,Q){var p=[];p.push.apply(p,_.OP(yqU(H.WebGLRenderingContext.prototype,1,G,Z,Q,H)));typeof H.WebGL2RenderingContext!=="undefined"&&p.push.apply(p,_.OP(yqU(H.WebGL2RenderingContext.prototype,2,G,Z,Q,H)));return function(){p.forEach(function(l){return l()})}};
ZVM=function(G){var H=G=G===void 0?{}:G,Z=H.emit,Q=H.checkoutEveryNms,p=H.checkoutEveryNth,l=H.blockClass===void 0?"rr-block":H.blockClass,q=H.blockSelector===void 0?null:H.blockSelector,u=H.ignoreClass===void 0?"rr-ignore":H.ignoreClass,B=H.ignoreSelector===void 0?null:H.ignoreSelector,t=H.maskTextClass===void 0?"rr-mask":H.maskTextClass,D=H.maskTextSelector===void 0?null:H.maskTextSelector,d=H.inlineStylesheet===void 0?!0:H.inlineStylesheet,e=H.maskAllInputs,n=H.maskInputOptions,c=H.slimDOMOptions,
W=H.maskInputFn,M=H.maskTextFn,r=H.hooks,w=H.packFn,x=H.sampling===void 0?{}:H.sampling,U=H.dataURLOptions===void 0?{}:H.dataURLOptions,R=H.mousemoveWait,L=H.recordDOM===void 0?!0:H.recordDOM,H3=H.recordCanvas===void 0?!1:H.recordCanvas,qX=H.recordCrossOriginIframes===void 0?!1:H.recordCrossOriginIframes,B3=H.recordAfter===void 0?G.recordAfter==="DOMContentLoaded"?G.recordAfter:"load":H.recordAfter,fW=H.userTriggeredOnInput===void 0?!1:H.userTriggeredOnInput,e2=H.collectFonts===void 0?!1:H.collectFonts,
$R=H.inlineImages===void 0?!1:H.inlineImages,ie=H.plugins,W3=H.keepIframeSrcFn===void 0?function(){return!1}:H.keepIframeSrcFn,DT=H.ignoreCSSAttributes===void 0?new Set([]):H.ignoreCSSAttributes;
Gh=H.errorHandler;var UR=qX?window.parent===window:!0,zx=!1;if(!UR)try{window.parent.document&&(zx=!1)}catch(Bd){zx=!0}if(UR&&!Z)throw Error("$e");if(!UR&&!zx)return function(){};
R!==void 0&&x.mousemove===void 0&&(x.mousemove=R);Hf.reset();var be=e===!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}:n!==void 0?n:{password:!0},J_=c===!0||c==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:c==="all",headMetaDescKeywords:c==="all",headTitleMutations:c==="all"}:
c?c:{};bK3();var rG,Kw=0,cD=function(Bd){for(var HD=_.I(ie||[]),xR=HD.next();!xR.done;xR=HD.next())xR=xR.value,xR.eventProcessor&&(Bd=xR.eventProcessor(Bd));w&&!zx&&(Bd=w(Bd));return Bd};
sl=function(Bd,HD){Bd.timestamp=BsW();var xR;((xR=xi[0])==null?0:xR.isFrozen())&&Bd.type!==2&&(Bd.type!==3||Bd.data.source!==0)&&xi.forEach(function(V4){return V4.unfreeze()});
UR?Z==null||Z(cD(Bd),HD):zx&&(HD={type:"rrweb",event:cD(Bd),origin:window.location.origin,isCheckout:HD},window.parent.postMessage(HD,"*"));Bd.type===2?(rG=Bd,Kw=0):Bd.type!==3||Bd.data.source===0&&Bd.data.isAttachIframe||(Kw++,Bd=Q&&Bd.timestamp-rG.timestamp>Q,(p&&Kw>=p||Bd)&&mQv(!0))};
var ec=function(Bd){sl({type:3,data:Object.assign({},{source:0},Bd)})},gf=function(Bd){return sl({type:3,
data:Object.assign({},{source:3},Bd)})},sR=function(Bd){return sl({type:3,
data:Object.assign({},{source:9},Bd)})},ep=new UQX({mutationCb:ec,
adoptedStyleSheetCb:function(Bd){return sl({type:3,data:Object.assign({},{source:15},Bd)})}}),Qh=new RSu({mirror:Hf,
mutationCb:ec,stylesheetManager:ep,recordCrossOriginIframes:qX,wrappedEmit:sl});G=_.I(ie||[]);for(H=G.next();!H.done;H=G.next())H=H.value,H.getMirror&&H.getMirror({nodeMirror:Hf,crossOriginIframeMirror:Qh.crossOriginIframeMirror,crossOriginIframeStyleMirror:Qh.crossOriginIframeStyleMirror});var $w=new Nso;AqU=new xQj({recordCanvas:H3,mutationCb:sR,win:window,blockClass:l,blockSelector:q,mirror:Hf,sampling:x.canvas,dataURLOptions:U});var Zt=new LNu({mutationCb:ec,scrollCb:gf,bypassOptions:{blockClass:l,
blockSelector:q,maskTextClass:t,maskTextSelector:D,inlineStylesheet:d,maskInputOptions:be,dataURLOptions:U,maskTextFn:M,maskInputFn:W,recordCanvas:H3,inlineImages:$R,sampling:x,slimDOMOptions:J_,iframeManager:Qh,stylesheetManager:ep,canvasManager:AqU,keepIframeSrcFn:W3,processedNodeManager:$w},mirror:Hf});mQv=function(Bd){Bd=Bd===void 0?!1:Bd;if(L){sl({type:4,data:{href:window.location.href,width:LD3(),height:xnf()}},Bd);ep.reset();Zt.init();xi.forEach(function(xR){return xR.lock()});
var HD=RuW({mirror:Hf,blockClass:l,blockSelector:q,maskTextClass:t,maskTextSelector:D,inlineStylesheet:d,maskAllInputs:be,maskTextFn:M,maskInputFn:W,slimDOM:J_,dataURLOptions:U,recordCanvas:H3,inlineImages:$R,onSerialize:function(xR){xR.nodeName==="IFRAME"&&Hf.nodeMetaMap.get(xR)&&E_2(Qh,xR);GjU(xR,Hf)&&Ya2(ep,xR);xR&&rg(xR)&&FNe(Zt,rg(xR),document)},
onIframeLoad:function(xR,V4){bpj(Qh,xR,V4);xR.contentWindow&&xR.contentDocument&&Gv2(Zt,xR.contentWindow.Element,xR.contentDocument)},
onStylesheetLoad:function(xR,V4){HVe(ep,xR,V4)},
keepIframeSrcFn:W3});HD?(sl({type:2,data:{node:HD,initialOffset:Aro(window)}},Bd),xi.forEach(function(xR){return xR.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&TsW(ep,document.adoptedStyleSheets,Hf.getId(document))):console.warn("Failed to snapshot the document")}};
try{var rJ=[],N7=function(Bd){var HD;return L6(PnU)({mutationCb:ec,mousemoveCb:function(xR,V4){return sl({type:3,data:{source:V4,positions:xR}})},
mouseInteractionCb:function(xR){return sl({type:3,data:Object.assign({},{source:2},xR)})},
scrollCb:gf,viewportResizeCb:function(xR){return sl({type:3,data:Object.assign({},{source:4},xR)})},
inputCb:function(xR){return sl({type:3,data:Object.assign({},{source:5},xR)})},
mediaInteractionCb:function(xR){return sl({type:3,data:Object.assign({},{source:7},xR)})},
styleSheetRuleCb:function(xR){return sl({type:3,data:Object.assign({},{source:8},xR)})},
styleDeclarationCb:function(xR){return sl({type:3,data:Object.assign({},{source:13},xR)})},
canvasMutationCb:sR,fontCb:function(xR){return sl({type:3,data:Object.assign({},{source:10},xR)})},
selectionCb:function(xR){sl({type:3,data:Object.assign({},{source:14},xR)})},
customElementCb:function(xR){sl({type:3,data:Object.assign({},{source:16},xR)})},
blockClass:l,ignoreClass:u,ignoreSelector:B,maskTextClass:t,maskTextSelector:D,maskInputOptions:be,inlineStylesheet:d,sampling:x,recordDOM:L,recordCanvas:H3,inlineImages:$R,userTriggeredOnInput:fW,collectFonts:e2,doc:Bd,maskInputFn:W,maskTextFn:M,keepIframeSrcFn:W3,blockSelector:q,slimDOMOptions:J_,dataURLOptions:U,mirror:Hf,iframeManager:Qh,stylesheetManager:ep,shadowDomManager:Zt,processedNodeManager:$w,canvasManager:AqU,ignoreCSSAttributes:DT,plugins:(ie==null?void 0:(HD=ie.filter(function(xR){return xR.observer}))==
null?void 0:HD.map(function(xR){return{observer:xR.observer,
options:xR.options,callback:function(V4){return sl({type:6,data:{plugin:xR.name,payload:V4}})}}}))||[]},r)};
s3W(Qh,function(Bd){try{rJ.push(N7(Bd.contentDocument))}catch(HD){console.warn(HD)}});
var t_=function(){mQv();rJ.push(N7(document))};
document.readyState==="interactive"||document.readyState==="complete"?t_():(rJ.push(UW("DOMContentLoaded",function(){sl({type:0,data:{}});B3==="DOMContentLoaded"&&t_()})),rJ.push(UW("load",function(){sl({type:1,
data:{}});B3==="load"&&t_()},window)));
return function(){rJ.forEach(function(Bd){try{Bd()}catch(HD){String(HD).toLowerCase().includes("cross-origin")||console.warn(HD)}});
$w.destroy();Gh=void 0}}catch(Bd){console.warn(Bd)}};
_.f=function(G,H){H=Fx(Lq(H));G.innerHTML=H};
lNe=function(G){var H=Q3U;H||(H=psf(),H=Q3U=_.oN.transpose(H));H=H[G];return typeof H==="string"?H:_.ZQ(G)};
gq3=function(G){G=String(G).toLowerCase();var H=psf()[G];return typeof H==="string"?H:_.Qa(G)};
INv=function(G){G=G.toLowerCase();G=psf()[G];return typeof G==="string"?G:null};
psf=function(){if(!qeX){for(var G=Object.assign({},SeU),H=_.I(uAW),Z=H.next();!Z.done;Z=H.next())Z=Z.value,G[Z.toLowerCase()]=Z;qeX=G}return qeX};
tGW=function(G,H){var Z=window.customElements;return Z&&Z.get(G)||BKu[G]===!0?2:H.name==="HTMLUnknownElement"?1:H.name==="HTMLElement"&&JAj.test(G)?3:0};
dOf=function(G,H){switch(H){case "innerHTML":return kvj(G)===1?2:null;case "textContent":return G=kvj(G),G===1||G===6?1:null;default:var Z,Q;return(Q=(Z=DOX[G.localName])==null?void 0:Z[H])!=null?Q:null}};
kvj=function(G){var H=G.localName,Z=tGW(H,G.constructor);switch(Z){case 0:case 1:return eA3(H,G);case 3:case 2:return 1;default:_.Lw(Z,"got an unknown element classification")}};
eA3=function(G,H){var Z=Object.hasOwnProperty.call(nqj,G)?nqj[G]:null;return Z!==null?Z:Object.hasOwnProperty.call(VGb,G)&&H instanceof SVGElement?VGb[G]:null};
$O3=function(G,H){return H};
cA2=function(G){return(G=G.split(XsX,2))?{url:G[0],metadata:G[1]}:null};
fNR=function(G){var H=String(G.url).replace(TKj,encodeURIComponent);if(G=G.metadata){TKj.lastIndex=0;if(TKj.test(G))return null;H+=" "+G}return H};
K12=function(G){function H(t){var D=t.localName;if(!t.getAttribute("is")&&tGW(D,t.constructor)===2){var d;return(d=B)!=null?d:B=document.createElement("polyresinuncustomized")}(t=u[D])||(t=u[D]=document.createElement(D));return t}
var Z=G.reportHandler||void 0,Q=G.safeTypesBridge||vqW,p=/^$/;if(G=G.allowedIdentifierPrefixes){G=_.I(G);for(var l=G.next();!l.done;l=G.next())p=new RegExp(p.source+"|^"+_.W1M(l.value))}Z&&Z(!1,"initResin",null);var q=zAR(p,Q,Z),u={},B=null;return function(t,D,d){var e=t.nodeType;if(e!==Node.ELEMENT_NODE){if(e===Node.TEXT_NODE){D=t.parentElement;d=!D;if(D&&D.nodeType===Node.ELEMENT_NODE){e=D.localName;var n=tGW(e,D.constructor);switch(n){case 0:case 1:D=eA3(e,D);d=D===1||D===6;break;case 3:case 2:d=
!0;break;default:_.Lw(n,"got an unknown element classification")}}if(d)return function(r){return""+Q(r,"STRING",r)}}return function(r){if(!r&&r!==document.all)return r;
Z&&Z(!0,"Failed to sanitize "+(t.parentElement&&t.parentElement.nodeName)+" #text node to value "+r,t.parentElement);return p9}}var c=t.localName;
e=H(t);var W=null;switch(d){case "attribute":if(gq3(D)in e)break;return function(r){return r};
case "property":if(D in e){W=dOf(e,D);break}if((n=INv(D))&&n in e)break;return function(r){return r};
default:_.Lw(d,"got an unknown resin type, expected either 'property' or 'attribute'")}var M=d==="attribute"?D.toLowerCase():lNe(D);W||(W=fYb(c,M,function(r){var w=t.getAttribute(r);return!w||/[\[\{]/.test(r)?null:w}));
return function(r){var w=lJ,x=null;if(!r&&r!==document.all)return r;if(W!=null){var U=q[W],R=U.safeType;x=U.safeReplacement;R&&(w=Q(r,R,lJ));w===lJ&&(U.filterString?(w=String(Q(r,"STRING",r)),w=U.filterString(c,M,w)):U.filterRaw&&(w=U.filterRaw(c,M,r,t)),w===x&&(w=lJ))}w===lJ&&(w=x||p9,Z&&Z(!0,"Failed to sanitize attribute of <"+c+">: <"+c+" "+M+'="'+r+'">',t));return w}}};
zAR=function(G,H,Z){return[,{filterRaw:function(Q,p,l){return l},
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:MGv,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:MGv,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:p9,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:j3f,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(Q,p,l){l=
String(l).toLowerCase();return zk2(Q,p,l)?l:p9},
safeReplacement:p9,safeType:void 0},,{filterRaw:void 0,filterString:function(Q,p,l){return G.test(l)?l:p9},
safeReplacement:p9,safeType:"CONSTANT"},{filterRaw:function(Q,p,l,q){if(typeof l==="string")var u=(u=l.match(POW))?u.map(cA2).filter(Boolean):[];else if(Array.isArray(l))u=l;else return MGv;var B=u;u=[];var t=[],D={};if(Array.isArray(B))for(var d=0,e=B.length;d<e;++d){var n=B[d],c=n&&n.url;if(c){var W=H(c,"URL",D);if(W){var M=W!==D;(M?u:t).push({url:M?W:c,metadata:n.metadata})}}}else t.push(B);B=t.length?JSON.stringify(t):null;t=lJ;if(u.length){if(!Array.isArray(u))throw Error();t=u.map(fNR).filter(Boolean).join(" , ")||
lJ}B&&Z&&Z(!0,"Failed to sanitize attribute value of <"+Q+">: <"+Q+" "+p+'="'+l+'">: '+B,q);return t===lJ?MGv:t},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
rAo=function(G){var H=K12(G);return function(Z,Q,p,l){return l||l===document.all?H(Z,Q,p)(l):l}};
IO=function(G,H){function Z(){function p(u,B,t){for(B=Reflect.getMetadata("parameters",u)||[];B.length<=t;)B.push(null);B[t]=B[t]||[];B[t].push(q);Reflect.defineMetadata(B,u);return u}
var l=_.Ry.apply(0,arguments);if(this instanceof Z)return Q.apply(this,l),this;var q=new (Function.prototype.bind.apply(Z,[null].concat(_.OP(l))));p.annotation=q;return p}
var Q=wsM(H);Z.prototype.toString=function(){return"@"+G};
return Z.annotationCls=Z};
wsM=function(G){return function(){var H=_.Ry.apply(0,arguments),Z=this;G.forEach(function(Q,p){p=H[p];if(Array.isArray(Q))Z[Q[0]]=p&&p!==void 0?p:Q[1];else for(var l in Q)Z[l]=p&&p[l]!==void 0?p[l]:Q[l]})}};
hAX=function(G){return G!==void 0&&G!==null};
q5=function(G){if(typeof G==="string")return G;if(G===void 0||G===null)return""+G;if(G.overriddenName)return G.overriddenName;if(G.name)return G.name;G=G.toString();var H=G.indexOf("\n");return H===-1?G:G.substring(0,H)};
COf=function(G){G.__forward_ref__=COf;G.toString=function(){return q5(this())};
return G};
Su=function(G){return typeof G==="function"&&G.hasOwnProperty("__forward_ref__")&&G.__forward_ref__===COf?G():G};
iVR=function(G){return G?G.map(function(H){return new (Function.prototype.bind.apply(H.type.annotationCls,[null].concat(_.OP(H.args?H.args:[]))))}):[]};
OVe=function(G){for(var H=[],Z=0;Z<G.length;++Z){if(H.indexOf(G[Z])>-1){H.push(G[Z]);break}H.push(G[Z])}return H};
aN3=function(G){return G.length>1?" ("+OVe(G.slice().reverse()).map(function(H){return q5(H.token)}).join(" -> ")+")":""};
oqU=function(G,H,Z,Q){if(Q){var p=Error("cf``"+(Q instanceof Error?Q.message:Q));p.ngOriginalError=Q}else p=Error();p.addKey=yAU;p.keys=[H];p.injectors=[G];p.constructResolvingMessage=Z;p.message=p.constructResolvingMessage();p.ngOriginalError=Q;return p};
yAU=function(G,H){this.injectors.push(G);this.keys.push(H);this.message=this.constructResolvingMessage()};
mOW=function(G,H){return oqU(G,H,function(){return"No provider for "+q5(this.keys[0].token)+"!"+aN3(this.keys)})};
UOM=function(G,H){return oqU(G,H,function(){return"Cannot instantiate cyclic dependency!"+aN3(this.keys)})};
RAv=function(G,H,Z){return oqU(G,Z,function(){var Q=q5(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+Q+"!"+aN3(this.keys)+"."},H)};
NKe=function(G,H){for(var Z=[],Q=0,p=H.length;Q<p;Q++){var l=H[Q];l&&l.length!=0?Z.push(l.map(q5).join(" ")):Z.push("?")}return Error("gf`"+q5(G)+"`"+Z.join(", ")+"`"+q5(G))};
bVX=function(G){var H=void 0,Z=void 0;if(G&&G.useClass!==void 0){H=G.useClass;var Q=Su(G.useClass);var p=AAv.factory(Q);Q=xOM(Q)}else G&&G.useExisting!==void 0?(p=function(l){return l},Q=[L1o(uJ.get(Su(G.useExisting)))]):G&&G.useFactory!==void 0?(p=G.useFactory,Q=Eqb(G.useFactory,G.deps)):(Z=G.useValue,p=function(){return G.useValue},Q=YeM);
return new F1j(p,Q,H,Z)};
Ht2=function(G){return new GJX(uJ.get(Su(G.provide)),[bVX(G)],G.multi)};
Zt3=function(G){G=sBe(G,[]).map(Ht2);for(var H=new Map,Z=0;Z<G.length;Z++){var Q=G[Z],p=H.get(Q.key.id);if(p){if(Q.multiProvider!==p.multiProvider)throw Error("jf`"+p+"`"+Q);if(Q.multiProvider)for(var l=0;l<Q.resolvedFactories.length;l++)p.resolvedFactories.push(Q.resolvedFactories[l]);else H.set(Q.key.id,Q)}else p=void 0,Q.multiProvider?p=new GJX(Q.key,Q.resolvedFactories.slice(),Q.multiProvider):p=Q,H.set(Q.key.id,p)}return Array.from(H.values())};
sBe=function(G,H){G.forEach(function(Z){if(Z instanceof QBf)H.push({provide:Z,useClass:Z});else if(Z&&typeof Z=="object"&&Z.provide!==void 0)H.push(Z);else if(Z instanceof Array)sBe(Z,H);else throw Error("ff`"+Z);});
return H};
Eqb=function(G,H){if(H){var Z=H.map(function(Q){return[Q]});
return H.map(function(Q){return pKf(G,Q,Z)})}return xOM(G)};
xOM=function(G){var H=AAv.parameters(G);if(!H)return[];if(H.some(function(Z){return Z==null}))throw NKe(G,H);
return H.map(function(Z){return pKf(G,Z,H)})};
pKf=function(G,H,Z){var Q=null,p=!1;if(!Array.isArray(H))return H instanceof lyR?gh3(H.token,p,null):gh3(H,p,null);for(var l=null,q=0;q<H.length;++q){var u=H[q];if(u instanceof QBf)Q=u;else if(u instanceof lyR)Q=u.token;else if(u instanceof Iyj)p=!0;else if(u instanceof q4f||u instanceof S4u)l=u}Q=Su(Q);if(Q!=null)return gh3(Q,p,l);throw NKe(G,Z);};
gh3=function(G,H,Z){return new uEj(uJ.get(Su(G)),H,Z)};
BaX=function(G,H){for(var Z=Array(G.providers.length),Q=0;Q<G.providers.length;++Q){var p=Q;if(Q<0||Q>=G.providers.length)throw Error("hf`"+Q);Z[p]=H(G.providers[Q])}return Z};
JOj=function(G){return typeof G==="function"&&AAv.parameters(G).every(function(H){return!!H})};
Ddv=function(G){var H=tMb;kJX.get(G)||kJX.set(G,new H);return kJX.get(G)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(G)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(G)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,H){var Z,Q;if(G.contains(H))return!0;G=_.Bf(G).querySelectorAll("content,slot");for(Z=0;Z<G.length;++Z){var p=_.Bf(G[Z]).getDistributedNodes();for(Q=0;Q<p.length;++Q)if(p[Q].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(p[Q],H))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){G.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G)&&G.preventDefault();G.targetTouches&&(G=G.targetTouches[0],ddv=G.pageX,eeu=G.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 G=0,H=JZ.length;G<H;G++)document.addEventListener(JZ[G],_._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 G=0,H=JZ.length;G<H;G++)document.removeEventListener(JZ[G],_._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(G){var H=_.Bf(G).rootTarget;G.type!=="touchmove"&&nh2!==H&&(nh2=H,VMe=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Bf(G).path));if(!VMe.length)return!0;if(G.type==="touchstart")return!1;G=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(VMe,G.deltaX,G.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){for(var H=[],Z=G.indexOf($dR),Q=0;Q<=Z;Q++)if(G[Q].nodeType===Node.ELEMENT_NODE){var p=G[Q],l=p.style;l.overflow!=="scroll"&&l.overflow!=="auto"&&(l=window.getComputedStyle(p));l.overflow!=="scroll"&&l.overflow!=="auto"||H.push(p)}return H};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G,H,Z){if(H||Z)for(var Q=Math.abs(Z)>=Math.abs(H),p=0;p<G.length;p++){var l=G[p];if(Q?Z<0?l.scrollTop>0:l.scrollTop<l.scrollHeight-l.clientHeight:H<0?l.scrollLeft>0:l.scrollLeft<l.scrollWidth-l.clientWidth)return l}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(G){var H={deltaX:G.deltaX,deltaY:G.deltaY};"deltaX"in G||("wheelDeltaX"in G&&"wheelDeltaY"in G?(H.deltaX=-G.wheelDeltaX,H.deltaY=-G.wheelDeltaY):"wheelDelta"in G?(H.deltaX=0,H.deltaY=-G.wheelDelta):"axis"in G?(H.deltaX=G.axis===1?G.detail:0,H.deltaY=G.axis===2?G.detail:0):G.targetTouches&&(G=G.targetTouches[0],H.deltaX=ddv-G.pageX,H.deltaY=eeu-G.pageY));return H};
XKR=function(G){this.element=G;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Tae=function(G){this.element=G;this.color=window.getComputedStyle(G).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");_.Bf(this.waveContainer).appendChild(this.wave);cOj(this)};
tZ=function(G,H){for(var Z in G)if(Z.toLowerCase()===H.toLowerCase())return G[Z]};
fy2=function(G,H){for(var Z in G)if(Z.toLowerCase()===H.toLowerCase()){delete G[Z];break}};
Wrb=function(G){G=_.oN.clone(G);for(var H=0;H<vho.length;++H){var Z=vho[H],Q=tZ(G,Z);Q&&(G["X-Goog-Upload-Header-"+Z]=Q,fy2(G,Z))}return G};
zee=function(G){G=_.oN.clone(G);fy2(G,"X-Goog-Upload-Status")};
MMf=function(G){return Kro.some(function(H){return H.test(G)})};
wKf=function(G,H){var Z;var Q=(Z=G.formContent)==null?void 0:Z.locale;Z=Q==null?void 0:Q.split("-")[0];Q=Q&&jBM.includes(Q)?Q:Z&&jBM.includes(Z)?Z:void 0;Q=(Q!=null?Q:"en").replaceAll("-","_").toLowerCase();var p;G=((p=G.initializationData)==null?0:p.useNightlyRelease)?"nightly":"live";var l;return(H==null?0:(l=H.getEnableAlohaBinarySplit)==null?0:l.call(H))?_.VB(P2W,G):_.VB(rOb,G,Q)};
ite=function(G,H,Z,Q){if(heu&&C2U===H)return heu;C2U=H;var p=wKf(G,Q);return heu=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(l,q){var u=_.z$("SCRIPT");_.gJ(u,p);u.onload=function(){H.feedbackV2GlobalObject?l(H.feedbackV2GlobalObject):q(Error("mf"))};
u.onerror=function(){q(Error("nf`"+p.toString()))};
Z.body.appendChild(u)})};
yO3=function(G,H,Z,Q){if(OtX&&ay3===H)return OtX;ay3=H;var p=wKf(G,Q);return OtX=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(l,q){var u=_.z$("SCRIPT");_.gJ(u,p);u.onload=function(){H.feedbackV2GlobalObject?l(H.feedbackV2GlobalObject):q(Error("mf"))};
u.onerror=function(){q(Error("nf`"+p.toString()))};
Z.body.appendChild(u)})};
oho=function(G,H,Z,Q,p){p=p===void 0?!0:p;var l,q,u,B,t;return _.S(function(D){switch(D.nextAddress){case 1:return l=Date.now(),D.yield(ite(G,Z,Q,H),2);case 2:q=D.yieldResult;if(!(p||((B=G.initializationData)==null?0:B.useNightlyRelease)||((t=G.initializationData)==null?0:t.isLocalServer))){u=q.initializeFeedbackClient(G,l,H);D.jumpTo(3);break}return D.yield(q.initializeFeedbackClientAsync(G,l,H),4);case 4:u=D.yieldResult;case 3:return u.initiateAloha(),D.return(u)}})};
mdj=function(G,H,Z,Q){var p,l,q;return _.S(function(u){if(u.nextAddress==1)return p=Date.now(),u.yield(yO3(G,Z,Q.document,H),2);if(u.nextAddress!=3)return l=u.yieldResult,u.yield(l.initializeFeedbackClientAsync(G,p,H,Q),3);q=u.yieldResult;q.initiateAloha();return u.return(q)})};
Udu=function(G,H,Z){var Q=!0;Q=Q===void 0?!0:Q;var p,l,q,u,B,t,D,d,e,n;return _.S(function(c){p=Z||_.Qf;if((l=H)==null?0:(u=(q=l).getEnableAlohaBinarySplit)==null?0:u.call(q)){B=p;if(B.isFormOpened)throw t=Error("of"),t.name="DuplicateFormError",t;B.isFormOpened=!0;G.callbacks=G.callbacks||{};D=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(W){B.isFormOpened=!1;D(W)};
try{return c.return(mdj(G,H,B,p))}catch(W){throw B.isFormOpened=!1,W;}}else{d=p;if(d.isFormOpened)throw e=Error("of"),e.name="DuplicateFormError",e;d.isFormOpened=!0;G.callbacks=G.callbacks||{};n=G.callbacks.onClose||function(){};
G.callbacks.onClose=function(W){d.isFormOpened=!1;n(W)};
try{return c.return(oho(G,H,d,p.document,Q))}catch(W){throw d.isFormOpened=!1,W;}}_.K0(c)})};
LrU=function(G,H){return _.S(function(Z){return Z.return(new Promise(function(Q,p){Number.isInteger(Number(G))&&Number(G)>0?(p=Reb(H!=null?H:"")+"/aloha_form_properties?productId="+G,Nao(p,function(l){l=l.target;var q=null;try{var u=JSON,B=u.stringify;if(l.JSC$9805_xhr_){var t=l.JSC$9805_xhr_.responseText;t.indexOf(")]}'\n")==0&&(t=t.substring(5));var D=(0,_.kk)(t)}else D=void 0;q=xUf(AOj,B.call(u,D))}catch(d){B=new AOj,D=xdb(),D=_.DQ(D,13,!1),D=_.DQ(D,14,!0),D=_.DQ(D,15,!0),D=_.DQ(D,20,!1),q=_.fq(B,
1,D)}Q(q)},"GET","",{},2E3,!0)):p(Error("pf`"+G))}))})};
Reb=function(G){return MMf(G)?G:"https://www.google.com/tools/feedback"};
btv=function(G){G=G.match(new RegExp(Ehj,"gi"))||[];G=_.I(G);for(var H=G.next();!H.done;H=G.next()){H=H.value;a:{var Z=_.I(Y4u);for(var Q=Z.next();!Q.done;Q=Z.next())if(Q.value.test(H)){Z=!1;break a}Z=!0}if(!Z)a:{Z=_.I(Frj);for(Q=Z.next();!Q.done;Q=Z.next())if(Q.value.test(H)){Z=!0;break a}Z=!1}if(Z)return!0}return!1};
Gs2=function(G,H){var Z={},Q=Object.keys(G);Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next())p=p.value,Z[p]=H(p,G[p]);return Z};
HF3=function(G){switch(G){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"}};
ZFW=function(G){if(window.crypto&&window.crypto.getRandomValues)try{var H=Array(G),Z=new Uint8Array(G);window.crypto.getRandomValues(Z);for(var Q=0;Q<H.length;Q++)H[Q]=Z[Q];return H}catch(l){}H=Array(G);for(Z=0;Z<G;Z++){Q=Date.now();for(var p=0;p<Q%23;p++)H[Z]=Math.random();H[Z]=Math.floor(Math.random()*256)}if(s$R)for(Z=1,Q=0;Q<s$R.length;Q++)H[Z%G]^=H[(Z-1)%G]/4^s$R.charCodeAt(Q),Z++;return H};
eu=function(G){G=ZFW(G);for(var H=[],Z=0;Z<G.length;Z++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[Z]&63));return H.join("")};
Q$R=function(){var G=_.Qf.ytLoggingDocDocumentNonce_;G||(G=eu(16),_.u7("ytLoggingDocDocumentNonce_",G));return G};
lRu=function(G){G&&_.yR("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:pZj,clientScreenNonce:G})};
gxW=function(G){return _.xI("client-screen-nonce-store",{})[G===void 0?0:G]};
IRU=function(G,H){H=H===void 0?0:H;var Z=_.xI("client-screen-nonce-store");Z||(Z={},_.Ae("client-screen-nonce-store",Z));Z[H]=G};
qs2=function(G){G=G===void 0?0:G;return G===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+G};
Ss3=function(G){return _.xI(qs2(G===void 0?0:G))};
_.Va=function(G){return(G=Ss3(G===void 0?0:G))?new n9({veType:G,youtubeData:void 0,jspbYoutubeData:void 0}):null};
uvj=function(){var G=_.xI("csn-to-ctt-auth-info");G||(G={},_.Ae("csn-to-ctt-auth-info",G));return G};
B5v=function(){return Object.values(_.xI("client-screen-nonce-store",{})).filter(function(G){return G!==void 0})};
_.$k=function(G){G=gxW(G===void 0?0:G);if(!G&&!_.YI("USE_CSN_FALLBACK",!0))return null;G||(G="UNDEFINED_CSN");return G?G:null};
tLe=function(G){for(var H=_.I(Object.values(JSf)),Z=H.next();!Z.done;Z=H.next())if(_.$k(Z.value)===G)return!0;return!1};
ksX=function(G,H,Z){var Q=uvj();(Z=_.$k(Z))&&delete Q[Z];H&&(Q[G]=H)};
Xt=function(G){return uvj()[G]};
_.cf=function(G,H,Z,Q){Z=Z===void 0?0:Z;if(G!==gxW(Z)||H!==_.xI(qs2(Z)))if(ksX(G,Q,Z),IRU(G,Z),_.Ae(qs2(Z),H),H=function(){setTimeout(function(){lRu(G)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(H)}catch(p){H()}else H()};
DoR=function(G,H){H=H===void 0?"":H;var Z=[],Q;for(Q in G)if(G.hasOwnProperty(Q)){var p=H!==""?H+"."+Q:Q;typeof G[Q]==="object"?Z.push.apply(Z,_.OP(DoR(G[Q],p))):Z.push([p,G[Q]])}Z.sort();return Z};
_.f9=function(G){var H=_.Ry.apply(1,arguments);if(!Th(G)||H.some(function(Q){return!Th(Q)}))throw Error("qf");
H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())doo(G,Z.value)};
doo=function(G,H){for(var Z in H)if(Th(H[Z])){if(Z in G&&!Th(G[Z]))throw Error("rf");Z in G||(G[Z]={});doo(G[Z],H[Z])}else if(ebf(H[Z])){if(Z in G&&!ebf(G[Z]))throw Error("sf");Z in G||(G[Z]=[]);nxX(G[Z],H[Z])}else G[Z]=H[Z];return G};
nxX=function(G,H){H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,Th(Z)?G.push(doo({},Z)):ebf(Z)?G.push(nxX([],Z)):G.push(Z);return G};
Th=function(G){return typeof G==="object"&&!Array.isArray(G)};
ebf=function(G){return typeof G==="object"&&Array.isArray(G)};
$oW=function(G){for(var H=_.I(Object.entries(VLj)),Z=H.next();!Z.done;Z=H.next())if(Z=_.I(Z.value),Z.next(),Z=Z.next().value,Z==="SLI_STATUS_"+G)return Z;return"SLI_STATUS_UNKNOWN"};
_.vf=function(G,H,Z,Q){return XZe(G,H,function(){return new _.cSR(G,H,Z,Q)})};
_.T5f=function(){return _.vf("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
fRR=function(){return _.vf("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Wf=function(){return _.vf("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
vxe=function(){return _.vf("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
WLf=function(){return _.vf("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
zbf=function(){return _.vf("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
j$e=function(G){G&&(G.dataset?G.dataset[KL3()]="true":_.q_([_.et(MLo)],G,"data-loaded","true".toString()))};
PMf=function(G){return G?G.dataset?G.dataset[KL3()]:G.getAttribute("data-loaded"):null};
KL3=function(){return rSb.loaded||(rSb.loaded="loaded".replace(/\-([a-z])/g,function(G,H){return H.toUpperCase()}))};
_.zh=function(G,H,Z){wZu(G,H,Z===void 0?null:Z)};
_.CMe=function(G,H){G&&H&&(G=""+_.LW(H),(G=hbf[G])&&_.Vkj(G))};
wZu=function(G,H,Z){Z=Z===void 0?null:Z;var Q=_.iF2(typeof G==="string"?G:G.toString()),p=document.getElementById(Q),l=p&&PMf(p),q=p&&!l;l?H&&H():(H&&(l=_.dM(Q,H),H=""+_.LW(H),hbf[H]=l),q||(p=OFu(G,Q,function(){PMf(p)||(j$e(p),_.$$R(Q),_.cU(function(){_.ct3(Q)},0))},Z)))};
OFu=function(G,H,Z,Q){Q=Q===void 0?null:Q;var p=_.z$("SCRIPT");p.id=H;p.onload=function(){Z&&setTimeout(Z,0)};
p.onreadystatechange=function(){switch(p.readyState){case "loaded":case "complete":p.onload()}};
Q&&p.setAttribute("nonce",Q);_.gJ(p,typeof G==="string"?_.O1(G):G);G=document.getElementsByTagName("head")[0]||document.body;G.insertBefore(p,G.firstChild);return p};
_.iF2=function(G){var H=document.createElement("a");AN(H,G);return"js-"+K9(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
aRv=function(G){var H=_.xI("INNERTUBE_HOST_OVERRIDE");H&&(G=String(H)+String(_.M5(G)));return G};
ySb=function(G){var H={};_.V("json_condensed_response")&&(H.prettyPrint="false");return G=m5f(G,H)};
_.ju=function(G){return u0(G)?"same-origin":"include"};
_.Pf=function(G){return u0(G)?"same-origin":"cors"};
rj=function(G,H,Z){Z=Z===void 0?{}:Z;G={method:H===void 0?"POST":H,mode:_.Pf(G),credentials:_.ju(G)};H={};for(var Q=_.I(Object.keys(Z)),p=Q.next();!p.done;p=Q.next())p=p.value,Z[p]&&(H[p]=Z[p]);Object.keys(H).length>0&&(G.headers=H);return G};
_.wj=function(G,H){H=H===void 0?{}:H;return"service:"+G+"/"+Object.keys(H).sort().map(function(Z){return Z+":"+H[Z]}).join("/")};
oxb=function(G){var H,Z,Q,p;G=(H=_.X(G,_.hZ))==null?void 0:(Z=H.watchEndpointSupportedOnesieConfig)==null?void 0:(Q=Z.html5PlaybackOnesieConfig)==null?void 0:(p=Q.commonConfig)==null?void 0:p.url;if(!G)return[];H=new _.C9(G);return H.JSC$10041_domain_?["https://"+H.JSC$10041_domain_+"/generate_204"]:[]};
_.Rbe=function(){return mou()||LhW()||UoX&&xM("version/")?!0:_.xI("EOM_VISITOR_DATA")?!1:!0};
N5u=function(G){var H=G.docid||G.video_id||G.videoId||G.id;if(H)return H;H=G.raw_player_response;H||(G=G.player_response)&&(H=JSON.parse(G));return H&&H.videoDetails&&H.videoDetails.videoId||null};
ASe=function(G){return G.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
iJ=function(G){return!isNaN(Number(G))&&!_.ue(G)};
_.aO=function(G,H,Z,Q){Q=Q===void 0?!0:Q;var p=_.xI("VALID_SESSION_TEMPDATA_DOMAINS",[]),l=_.qY(window.location.href);l&&p.push(l);l=_.qY(G);if(_.yf(p,l)||!l&&_.le(G,"/"))if(p=document.createElement("a"),AN(p,G),G=p.href)if(G=_.M5(G),G=_.Ol(G))Q&&!H.csn&&(H.itct||H.ved)&&(H=Object.assign({csn:_.$k()},H)),Z?(Z=parseInt(Z,10),isFinite(Z)&&Z>0&&xov(G,H,Z)):xov(G,H)};
ExM=function(G){var H=_.xI("VALID_SESSION_TEMPDATA_DOMAINS",[]),Z=_.qY(window.location.href);Z&&H.push(Z);Z=_.qY(G);if(!(_.yf(H,Z)||!Z&&_.le(G,"/")))return null;G=_.M5(G);(G=_.Ol(G))?(G=LLR(G),G=(G=_.jA.get(G,void 0)||null)?_.QD(G):{}):G=null;return G};
xov=function(G,H,Z){G=LLR(G);H=H?_.zF(H):"";Z=Z||5;_.Rbe()&&_.PU(G,H,Z)};
LLR=function(G){for(var H=_.I(Ysj),Z=H.next();!Z.done;Z=H.next())G=_.ya(G,Z.value);return"ST-"+K9(G).toString(36)};
_.FL2=function(G){if(G.requestFullscreen)G=G.requestFullscreen(void 0);else if(G.webkitRequestFullscreen)G=G.webkitRequestFullscreen();else if(G.mozRequestFullScreen)G=G.mozRequestFullScreen();else if(G.msRequestFullscreen)G=G.msRequestFullscreen();else if(G.webkitEnterFullscreen)G=G.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return G instanceof Promise?G:Promise.resolve()};
_.mj=function(G){var H;_.gCM(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.oO()==G&&(H=document):H=G;if(H&&(G=_.gCM(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],H))){G.call(H)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.oO=function(){var G=G===void 0?!1:G;var H=_.gCM(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(G)for(;H&&H.shadowRoot;)H=H.shadowRoot.fullscreenElement;return H?H:null};
_.Ul=function(G,H){H=H===void 0?!0:H;G.addEventListener("wheel",bFf);G.overscrollConfig={cooldown:H}};
_.RO=function(G){G.overscrollConfig=void 0;G.removeEventListener("wheel",bFf)};
bFf=function(G){var H=G.deltaY,Z=G.target,Q=null;if(window.Polymer&&window.Polymer.Element){if(Z=G.path||G.composedPath&&G.composedPath()){Z=_.I(Z);for(var p=Z.next();!p.done&&(p=p.value,!Gmf(p,H));p=Z.next())if(p.overscrollConfig){Q=p;break}}}else for(;Z&&!Gmf(Z,H);){if(Z.overscrollConfig){Q=Z;break}Z=Z.parentElement}Q&&(H=Q.overscrollConfig,H.cooldown?(Q=G.deltaY,Z=H.lastDeltaY||0,H.lastDeltaY=Q,p=H.lastStopped||0,Z&&p&&Z>0==Q>0?Math.abs(Z)>=Math.abs(Q)?(Q=p+1200,Z=!1):(Q=p+600,Z=!0):(Q=Date.now()+
600,Z=!0),Q>Date.now()&&(G.preventDefault(),Z&&(H.lastStopped=Date.now()))):G.preventDefault())};
Gmf=function(G,H){return H<0&&G.scrollTop>0||H>0&&G.scrollTop<G.scrollHeight-G.clientHeight-1?(G=getComputedStyle(G).overflowY,G=="auto"||G=="scroll"):!1};
_.N5=function(G,H,Z,Q){Q||(Q={bubbles:!0,cancelable:!1,composed:!0});Z!==null&&Z!==void 0&&(Q.detail=Z);var p=new CustomEvent(H,Q);_.V("untrack_fire_custom_event_killswitch")?G.dispatchEvent(p):_.cS(function(){return void G.dispatchEvent(p)});
return p};
Hsb=function(G){var H=window,Z=function(Q){H.removeEventListener("yt-navigate-start",Z);return G.call(H,Q)};
H.addEventListener("yt-navigate-start",Z,void 0)};
_.AZ=function(G,H,Z,Q){H=new sHb(H,!(Q===void 0||!Q),Z);_.N5(G,"yt-action",H);return H.returnValue};
_.xk=function(G,H,Z){return _.AZ(G,H,Z,!0)};
_.El=function(G,H,Z,Q){H&&H.length&&H.forEach(function(p){var l=QSe(p);l&&(_.V("handle_service_request_actions")&&p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.sendPost?_.L9(Z?Z:G,[p]):_.xk(G,l,[p,Z,Q]))})};
_.L9=function(G,H){var Z=[G];H&&Z.push.apply(Z,H);H=_.AZ(G,"yt-service-request",Z);return H.length>0&&(H=H[0],_.N5(G,"yt-service-request-sent",H),H&&H.ajaxPromise)?(H.ajaxPromise.then(function(Q){_.N5(G,"yt-service-request-completed",Q)},function(Q){_.N5(G,"yt-service-request-error",{error:Q,
params:Z})},G),H.ajaxPromise):_.Yk()};
_.bJ=function(G,H){if(_.V("handle_service_request_actions"))_.El(H,G,H);else{G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;var Q=void 0;((Q=_.X(Z,_.Ft))==null?0:Q.commands)?_.bJ(_.X(Z,_.Ft).commands,H):(Q=void 0,((Q=_.X(Z,_.GD))==null?0:Q.actions)?_.bJ(_.X(Z,_.GD).actions,H):(Q=void 0,((Q=_.X(Z.commandMetadata,_.HA))==null?0:Q.sendPost)?_.L9(H,[Z]):_.El(H,[Z],H)))}}};
_.QHb=function(G,H,Z){H=H===void 0?{}:H;typeof H==="function"&&(H={callback:H});Z||H._c&&H._c.jsl&&H._c.jsl.h||_.oN.extend(H,{_c:{jsl:{h:_.xI("GAPI_HINT_PARAMS")}}});(H.gapiHintOverride||_.xI("GAPI_HINT_OVERRIDE"))&&(Z=_.p$(document.location.href).gapi_jsh)&&_.oN.extend(H,{_c:{jsl:{h:Z}}});Zsf(G,H)};
_.Zg=function(G,H,Z){H=H===void 0?{}:H;G=(G=G in s3?s3[G]:Z)||"";Z={};for(var Q in H){Z={key$jscomp$844:Z.key$jscomp$844};Z.key$jscomp$844=Q;var p=function(l){return function(){return String(H[l.key$jscomp$844])}}(Z);
G=G.replace(new RegExp("\\$\\{"+Z.key$jscomp$844+"\\}","gi"),p);G=G.replace(new RegExp("\\$"+Z.key$jscomp$844,"gi"),p)}return G};
_.QY=function(G,H){return pe2(G in s3?s3[G]:{},H)};
pe2=function(G,H){var Z=_.xI("I18N_PLURAL_RULES");Z||(Z=function(Q){return Q==1?"one":"other"});
return(G=G["case"+H]||G[Z(H)])?G.replace("#",H.toString()):H+""};
I8f=function(G){var H=l8W(G),Z=document.getElementById(H),Q=Z&&PMf(Z);Q||Z&&!Q||(Z=glb(G,H,function(){if(!PMf(Z)){j$e(Z);_.$$R(H);var p=_.po(_.ct3,H);_.cU(p,0)}}))};
glb=function(G,H,Z){var Q=document.createElement("link");Q.id=H;Q.onload=function(){Z&&setTimeout(Z,0)};
G=_.O1(G);_.Sl(Q,G,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(Q);return Q};
l8W=function(G){var H=_.z$("A");AN(H,hN(G));return"css-"+K9(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.SLf=function(G){var H=qLj();G!==H&&(H=_.lf(),!_.V("web_autonav_allow_off_by_default")&&G||_.g8(0,141,!0),_.g8(0,140,!G),H.save())};
qLj=function(){var G=_.lf();return _.V("web_autonav_allow_off_by_default")&&!G.getFlag(141)&&_.xI("AUTONAV_OFF_BY_DEFAULT")?!1:!G.getFlag(140)};
uwj=function(G,H){var Z,Q;G=((Z=G.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Q=Z.videoAuthorizationToken)==null?void 0:Q.credentialTransferTokens)||[];for(Z=0;Z<G.length;++Z)if(G[Z].scope===H)return G[Z].token||void 0};
BSU=function(G){for(var H=0,Z=0;Z<G.length;Z++)H=H*31+G.charCodeAt(Z),Z<G.length-1&&(H%=0x800000000000);return H%1E5};
_.I5=function(G){return _.GF("ytcsi."+(G||"")+"data_")||J$2(G)};
_.tj2=function(G){G=_.I5(G);G.metadata||(G.metadata={});return G.metadata};
_.kmf=function(G){G=_.I5(G);G.tick||(G.tick={});return G.tick};
_.qm=function(G){G=_.I5(G);if(G.gel){var H=G.gel;H.gelInfos||(H.gelInfos={});H.gelTicks||(H.gelTicks={})}else G.gel={gelTicks:{},gelInfos:{}};return G.gel};
_.Dub=function(G){G=_.qm(G);G.gelInfos||(G.gelInfos={});return G.gelInfos};
due=function(G){var H=_.I5(G).nonce;H||(H=eu(16),_.I5(G).nonce=H);return H};
J$2=function(G){var H={tick:{},info:{}};_.u7("ytcsi."+(G||"")+"data_",H);return H};
eHb=function(){var G=_.GF("ytcsi.debug");G||(G=[],_.u7("ytcsi.debug",G),_.u7("ytcsi.reference",{}));return G};
_.Se=function(G){G=G||"";var H=nlU();if(H[G])return H[G];var Z=eHb(),Q={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};Z.push(Q);return H[G]=Q};
VjW=function(G){G=G||"";var H=nlU();H[G]&&delete H[G];var Z=eHb(),Q={timerName:G,info:{},tick:{},span:{},jspbInfo:[]};Z.push(Q);H[G]=Q};
nlU=function(){var G=_.GF("ytcsi.reference");if(G)return G;eHb();return _.GF("ytcsi.reference")};
_.Xef=function(G){return $ub[G]||"LATENCY_ACTION_UNKNOWN"};
vlf=function(G,H,Z){Z=Z===void 0?{}:Z;var Q=!1;_.YI("ytLoggingEventsDefaultDisabled",!1)&&(Q=!0);Q=Q?null:ap;Z=Z===void 0?{}:Z;var p=Math.round(Z.timestamp||(0,_.t3)());_.PW(H,1,p<Number.MAX_SAFE_INTEGER?p:0);p=new c$W;if(Z.lact)_.PW(p,1,isFinite(Z.lact)?Z.lact:-1);else if(Z.timestamp)_.PW(p,1,-1);else{var l=_.JL();_.PW(p,1,isFinite(l)?l:-1)}if(Z.sequenceGroup&&!_.V("web_gel_sequence_info_killswitch")){l=Z.sequenceGroup;var q=Plo(l),u=new TSj;_.PW(u,2,q);_.ha(u,1,l);_.fq(p,3,u);Z.endOfSequence&&delete f8u[Z.sequenceGroup]}_.fq(H,
33,p);(Z.sendIsolatedPayload?aJj:ytb)(G,{endpoint:"log_event",payload:H,cttAuthInfo:Z.cttAuthInfo,dangerousLogToVisitorSession:Z.dangerousLogToVisitorSession},Q)};
_.JU=function(){return(_.V("csi_use_time_origin")||_.V("csi_use_time_origin_tvhtml5"))&&_.uf.timeOrigin?Math.floor(_.uf.timeOrigin):_.uf.timing.navigationStart};
_.WXb=function(G,H){_.tU("_start",G,H)};
_.kK=function(G,H){if(!_.V("web_csi_action_sampling_enabled")||!_.I5(H).actionDisabled){var Z=_.Se(H||"");_.f9(Z.info,G);G.loadType&&(Z=G.loadType,_.tj2(H).loadType=Z);_.f9(_.Dub(H),G);Z=due(H);H=_.I5(H).cttAuthInfo;zHM().info(G,Z,H)}};
KX3=function(){var G,H,Z,Q;return((Q=_.tp().resolve(_.Jp(hL))==null?void 0:(G=CT())==null?void 0:(H=G.loggingHotConfig)==null?void 0:(Z=H.csiConfig)==null?void 0:Z.debugTicks)!=null?Q:[]).map(function(p){return Object.values(p)[0]})};
_.tU=function(G,H,Z){if(!_.V("web_csi_action_sampling_enabled")||!_.I5(Z).actionDisabled){var Q=due(Z),p;if(p=_.V("web_csi_debug_sample_enabled")&&Q){(_.tp().resolve(_.Jp(hL))==null?0:CT())&&!Mj3&&(Mj3=!0,_.tU("gcfl",(0,_.t3)(),Z));var l,q,u;p=(_.tp().resolve(_.Jp(hL))==null?void 0:(l=CT())==null?void 0:(q=l.loggingHotConfig)==null?void 0:(u=q.csiConfig)==null?void 0:u.debugSampleWeight)||0;if(l=p!==0)b:{l=KX3();if(l.length>0)for(q=0;q<l.length;q++)if(G===l[q]){l=!0;break b}l=!1}l?(p=BSU(Q)%p!==0,
_.I5(Z).debugTicksExcludedLogged||(l={},l.debugTicksExcluded=p,_.kK(l,Z)),_.I5(Z).debugTicksExcludedLogged=!0):p=!1}if(!p){G[0]!=="_"&&jHM(G,Z,H);p=_.Se(Z||"");p.tick[G]=H||(0,_.t3)();if(p.callback&&p.callback[G])for(p=_.I(p.callback[G]),l=p.next();!l.done;l=p.next())l=l.value,l();p=_.qm(Z);p.gelTicks&&(p.gelTicks[G]=!0);l=_.kmf(Z);p=H||(0,_.t3)();_.V("log_repeated_ytcsi_ticks")?G in l||(l[G]=p):l[G]=p;l=_.I5(Z).cttAuthInfo;G==="_start"?zHM().baseline(Q,H,l):zHM().tick(G,Q,H,l);_.PN2(Z);return p}}};
jHM=function(G,H,Z){if(_.uf.mark)if(G.startsWith("mark_")||(G="mark_"+G),H&&(G+=" ("+H+")"),Z===void 0||_.V("web_csi_disable_alt_time_performance_mark"))_.uf.mark(G);else{Z=_.V("csi_use_performance_navigation_timing")?Z-_.uf.timeOrigin:Z-(_.uf.timeOrigin||_.uf.timing.navigationStart);try{_.uf.mark(G,{startTime:Z})}catch(Q){}}};
r$e=function(){var G,H=(G=_.uf.getEntriesByType)==null?void 0:G.call(_.uf,"mark");H&&H.forEach(function(Z){if(Z.name.startsWith("mark_")){var Q;(Q=_.uf.clearMarks)==null||Q.call(_.uf,Z.name)}})};
_.we2=function(){switch(lJR()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.hHv=function(G){var H={},Z=function(l,q,u){q=q.match("_rid")?q.split("_rid")[0]:q;typeof u==="number"&&(u=JSON.stringify(u));l.requestIds?l.requestIds.push({endpoint:q,id:u}):l.requestIds=[{endpoint:q,id:u}]};
G=_.I(Object.entries(G));for(var Q=G.next();!Q.done;Q=G.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;switch(Q){case "GetBrowse_rid":Z(H,Q,p);break;case "GetGuide_rid":Z(H,Q,p);break;case "GetHome_rid":Z(H,Q,p);break;case "GetPlayer_rid":Z(H,Q,p);break;case "GetSearch_rid":Z(H,Q,p);break;case "GetSettings_rid":Z(H,Q,p);break;case "GetTrending_rid":Z(H,Q,p);break;case "GetWatchNext_rid":Z(H,Q,p);break;case "yt_red":H.isRedSubscriber=!!p;break;case "yt_ad":H.isMonetized=!!p}}return H};
is3=function(G,H,Z,Q,p,l){if(!_.V("web_csi_action_sampling_enabled")||!_.I5(l).actionDisabled){var q=_.qm(l);if(q.gelSpans)q.gelSpans[G]=!0;else{var u={};q.gelSpans=(u[G]=!0,u)}CNe++;G={spanName:G,spanLengthUsec:String(Math.round(H*1E3)),spanNonce:CNe};Q&&(G.spanInfo=Q);p&&(G.parentSpanNonce=p);Z&&(G.spanStartTimeUsec=String(Math.round(Z*1E3)));_.Se(l||"").span[String(G.spanName)]=G;Z=_.qm(l);Z.gelSpans||(Z.gelSpans={});_.f9(Z.gelSpans,G);Z=due(l);l=_.I5(l).cttAuthInfo;zHM().span(G,Z,l);return G.spanNonce}};
_.OsM=function(G){var H=_.Dg("aft",G);if(H)return H;H=_.xI((G||"")+"TIMING_AFT_KEYS",["ol"]);for(var Z=H.length,Q=0;Q<Z;Q++){var p=_.Dg(H[Q],G);if(p)return p}return NaN};
_.a8R=function(G,H){_.u7("ytglobal.timing"+(H||"")+"ready_",G)};
_.Dg=function(G,H){if(G=_.kmf(H)[G])return typeof G==="number"?G:G[G.length-1]};
_.PN2=function(G){var H=_.Dg("_start",G),Z=_.OsM(G),Q=!y$f;H&&Z&&Q&&(r0R(olj,new muu(Math.round(Z-H),G)),y$f=!0)};
RHM=function(G){J$2(G);Uub();r$e();G||(_.xI("TIMING_ACTION")&&_.Ae("PREVIOUS_ACTION",_.xI("TIMING_ACTION")),_.Ae("TIMING_ACTION",""))};
_.NSj=function(G){G=G===void 0?{}:G;_.bW(function(){d8();VjW();RHM();_.a8R(!1);G.cttAuthInfo&&(_.I5().cttAuthInfo=G.cttAuthInfo);_.Ae("TIMING_AFT_KEYS",[]);G.isHot?_.ee({loadType:"hot"}):_.ee({loadType:"warm"});_.Ae("TIMING_ACTION","");delete _.xI("TIMING_INFO",{}).yt_lt;_.bW(_.WXb)(G.startTime,void 0)})()};
_.VY=function(G,H,Z,Q){H=H===void 0?{}:H;_.bW(function(){var p=Z?Z:G;no(p);var l=H.sampleRate;if(!_.V("web_csi_action_sampling_enabled")||l===void 0||l<=1)l=!1;else{var q=due(p);l=BSU(q)%l!==0}l&&(_.I5(p).actionDisabled=!0);_.Se(p||"").info.actionType=G;H.cttAuthInfo&&(_.I5(p).cttAuthInfo=H.cttAuthInfo);_.Ae(p+"TIMING_ACTION",G);_.bW(_.WXb)(H.startTime,p);l={actionType:Q||_.Xef(G)};H.logPreviousAction&&(l.previousAction=_.Xef(_.xI("TIMING_ACTION")));(q=_.$k())&&q!=="UNDEFINED_CSN"&&(l.clientScreenNonce=
q);_.ee(l,p);_.a8R(!0,p)})()};
no=function(G){_.bW(function(){d8(G);VjW(G);RHM(G)})()};
A$X=function(){_.bW(function(){var G=[],H;for(H in _.GF("ytcsi.".slice(0,-1)))H.endsWith("data_")&&G.push(H.slice(0,-5));G=_.I(G);for(H=G.next();!H.done;H=G.next())no(H.value);d8()})()};
_.LXf=function(G){return _.bW(function(){return _.xuX("_start",G)})()};
_.ee=function(G,H,Z){_.bW(_.kK)(G,H,Z===void 0?!1:Z)};
_.$K=function(G,H,Z){return _.bW(_.tU)(G,H,Z)};
_.xuX=function(G,H){return _.bW(function(){var Z=_.kmf(H);return G in Z})()};
YLf=function(G){if(!_.V("universal_csi_network_ticks"))return"";G=_.vU(G)||"";for(var H=Object.keys(ElM),Z=0;Z<H.length;Z++){var Q=H[Z];if(G.includes(Q))return Q}return""};
bsW=function(G){if(!_.V("universal_csi_network_ticks"))return function(){};
var H=ElM[G];return H?(_.TD(H),function(){var Z=_.V("universal_csi_network_ticks")?(Z=FXR[G])?_.TD(Z):!1:!1;return Z}):function(){}};
_.TD=function(G,H,Z){return _.bW(function(){if(_.xuX(G,Z))return!1;_.$K(G,H,Z);return!0})()};
_.fo=function(G,H,Z){_.bW(function(){if(!_.LXf(Z)||_.xuX(G,Z))return!1;_.$K(G,H,Z);return!0})()};
_.vA=function(G){return _.bW(_.Dg)(G,void 0)};
d8=function(G){_.LXf(G)&&_.$K("aa",void 0,G)};
_.QIv=function(G,H,Z,Q,p,l,q,u,B){var t=GeR();u=new n9({veType:H,youtubeData:l,jspbYoutubeData:u});l=WA({},t);p&&(l.cttAuthInfo=p);p={csn:t,pageVe:u.getAsJson()};_.V("expectation_logging")&&B&&B.screenCreatedLoggingExpectations&&(p.screenCreatedLoggingExpectations=B.screenCreatedLoggingExpectations);Z&&Z.visualElement?(p.implicitGesture={parentCsn:Z.clientScreenNonce,gesturedVe:Z.visualElement.getAsJson()},q&&(p.implicitGesture.gestureType=q)):Z&&_.Rp(new _.C$("newScreen() parent element does not have a VE - rootVe",
H));Q&&(p.cloneCsn=Q);G?ON("screenCreated",p,G,l):_.yR("screenCreated",p,l);r0R(y0b,new HQj(t));zD.clear();sIj.clear();ZQW.clear();return t};
Ko=function(G,H,Z,Q,p,l){l=l===void 0?{}:l;pNW(G,H,Z,[Q],p===void 0?!1:p,l)};
pNW=function(G,H,Z,Q,p,l){p=p===void 0?!1:p;l=l===void 0?{}:l;Object.assign(l,WA({cttAuthInfo:Xt(H)||void 0},H));for(var q=_.I(Q),u=q.next();!u.done;u=q.next()){u=u.value;var B=u.getAsJson();(_.oN.isEmpty(B)||!B.trackingParams&&!B.veType)&&_.Rp(Error("Cf"));if(_.V("no_client_ve_attach_unless_shown")){var t=lDe(u,H);if(B.veType&&!sIj.has(t)&&!ZQW.has(t)&&!p){if(!_.V("il_attach_cache_limit")||zD.size<1E3){zD.set(t,[G,H,Z,u]);return}_.V("il_attach_cache_limit")&&zD.size>1E3&&_.Rp(new _.C$("IL Attach cache exceeded limit"))}u=
lDe(Z,H);zD.has(u)?g9M(Z,H):ZQW.set(u,!0)}}Q=Q.filter(function(D){D.csn!==H?(D.csn=H,D=!0):D=!1;return D});
Z={csn:H,parentVe:Z.getAsJson(),childVes:_.mT(Q,function(D){return D.getAsJson()})};
H==="UNDEFINED_CSN"?Mm("visualElementAttached",l,Z):G?ON("visualElementAttached",Z,G,l):_.yR("visualElementAttached",Z,l)};
qgj=function(G,H,Z,Q,p){IDb(G,H,Z,p)};
IDb=function(G,H,Z,Q){SgR(Z,H);var p=WA({cttAuthInfo:Xt(H)||void 0},H);Z={csn:H,ve:Z.getAsJson(),eventType:1};Q&&(Z.clientData=Q);H==="UNDEFINED_CSN"?Mm("visualElementShown",p,Z):G?ON("visualElementShown",Z,G,p):_.yR("visualElementShown",Z,p)};
uo3=function(G,H,Z,Q){SgR(Z,H);var p=WA({cttAuthInfo:Xt(H)||void 0},H);Z={csn:H,ve:Z.getAsJson(),eventType:4};Q&&(Z.clientData=Q);H==="UNDEFINED_CSN"?Mm("visualElementShown",p,Z):G?ON("visualElementShown",Z,G,p):_.yR("visualElementShown",Z,p)};
BUf=function(G,H,Z,Q,p){var l=(Q=Q===void 0?!1:Q)?16:8;Q=WA({cttAuthInfo:Xt(H)||void 0,endOfSequence:Q},H);Z={csn:H,ve:Z.getAsJson(),eventType:l};p&&(Z.clientData=p);H==="UNDEFINED_CSN"?Mm("visualElementHidden",Q,Z):G?ON("visualElementHidden",Z,G,Q):_.yR("visualElementHidden",Z,Q)};
twj=function(G,H,Z,Q,p){JPj(G,H,Z,void 0,Q,p)};
JPj=function(G,H,Z,Q,p){SgR(Z,H);Q=Q||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var l=WA({cttAuthInfo:Xt(H)||void 0},H);Z={csn:H,ve:Z.getAsJson(),gestureType:Q};p&&(Z.clientData=p);H==="UNDEFINED_CSN"?Mm("visualElementGestured",l,Z):G?ON("visualElementGestured",Z,G,l):_.yR("visualElementGestured",Z,l)};
kee=function(G,H,Z,Q){var p=WA({cttAuthInfo:Xt(H)||void 0},H);Z={csn:H,ve:Z.getAsJson(),clientData:Q};H==="UNDEFINED_CSN"?Mm("visualElementStateChanged",p,Z):G?ON("visualElementStateChanged",Z,G,p):_.yR("visualElementStateChanged",Z,p)};
DzU=function(){var G=ZFW(16);for(var H=[],Z=0;Z<G.length;Z++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(G[Z]&63));return H.join("")};
Mm=function(G,H,Z){dzM.push({payloadName:G,payload:Z,jspbPayload:void 0,options:H});esf||(esf=mlX())};
ape=function(G){if(dzM){for(var H=_.I(dzM),Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.payload&&(Z.payload.csn=G.csn,_.yR(Z.payloadName,Z.payload,Z.options));dzM.length=0}esf=0};
lDe=function(G,H){return""+G.getAsJson().veType+G.getAsJson().veCounter+H};
SgR=function(G,H){if(_.V("no_client_ve_attach_unless_shown")){var Z=lDe(G,H);sIj.set(Z,!0);g9M(G,H)}};
g9M=function(G,H){G=lDe(G,H);zD.has(G)&&(H=zD.get(G)||[],Ko(H[0],H[1],H[2],H[3],!0),zD.delete(G))};
WA=function(G,H){_.V("log_sequence_info_on_gel_web")&&(G.sequenceGroup=H);return G};
_.je=function(G,H,Z){_.bW(Ko)(void 0,G,H,Z)};
_.PA=function(G,H,Z){_.bW(pNW)(void 0,G,H,Z)};
_.r8=function(G,H){_.bW(qgj)(void 0,G,H,void 0,void 0,void 0)};
_.w8=function(G,H,Z){_.bW(function(){_.Zk(H,function(Q){uo3(void 0,G,Q,Z)})})()};
_.hU=function(G,H,Z,Q){_.bW(function(){_.Zk(H,function(p){BUf(void 0,G,p,Z,Q)})})()};
_.Co=function(G,H,Z){_.bW(twj)(void 0,G,H,Z,void 0)};
_.O3=function(G,H,Z,Q){_.bW(JPj)(void 0,G,H,Z,Q,void 0)};
_.a5=function(G,H,Z){_.bW(kee)(void 0,G,H,Z,void 0)};
n9j=function(G,H){yY.set(G,H)};
Vwj=function(G){o5.initialized=!0;o5.sessionId=G.sessionId||"";o5.enabledSpans=G.enabledSpans;G.shouldSampleFn!=null&&(o5.shouldSampleFn=G.shouldSampleFn)};
$zR=function(G){o5.processors.push(G)};
XNM=function(G){return o5.initialized?o5.enabledSpans?o5.enabledSpans[G]:!0:!1};
v9R=function(G,H,Z){if(typeof Z==="function"){var Q=Z;Z=void 0}var p=Z;G=XNM(G)&&o5.shouldSampleFn(G,H,cPo)?new TU2(G,H,p):fDj;var l;G!==fDj&&((l=Z)==null?void 0:l.active)!==!1&&o5.stack.push(G);if(!Q)return G;if(G===fDj)return Q(G);try{var q=Q(G);G.end();return q}catch(u){throw G.end(2),u;}};
zsU=function(){xJ.subscribe("handleError",function(G){try{for(var H in WdM)try{var Z=WdM[H];typeof WdM[H]==="function"&&(Z=Z());G.params[H]=typeof WdM[H]==="object"?JSON.stringify(Z):String(Z)}catch(Q){_.Rp(Q)}}catch(Q){_.Rp(Q)}})};
KdR=function(){};
Mwb=function(G,H){var Z=Object.keys(G);G=new _.C$("[Command Handler] "+H,{filteredCommandNames:Z,originalCommand:G});_.me(G)};
jIf=function(G,H){Mwb(G,H+" was called but not set")};
PZb=function(G){return function(){return new G}};
mh=function(G){return function(){return _.tp().resolve(G)}};
rPb=function(G,H){var Z=_.X(G,_.bc);if(Z&&(Z=H[Z.signal]))return Z();G=_.I(Object.keys(G));for(Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,H[Z]&&(Z=H[Z]))return Z()};
_.U3=function(G,H,Z,Q){return{browseEndpoint:{browseId:G},commandMetadata:{webCommandMetadata:{url:H,rootVe:Z,webPageType:Q===void 0?"WEB_PAGE_TYPE_BROWSE":Q}}}};
wNR=function(G,H,Z){var Q=H=H===void 0?0:H;Z=Z===void 0?0:Z;var p=Z-Q;return _.R5(G,"PPSV",void 0,void 0,(p>600?0:p<60||Z<=0||Q/Z>.9)?0:H)};
_.R5=function(G,H,Z,Q,p){var l="/watch?v="+G;G={videoId:G};H&&(G.playlistId=H,l+="&list="+H);Q&&(l+="&pp="+Q);p&&(G.startTimeSeconds=p,l+="&t="+p+"s");H={watchEndpoint:G,commandMetadata:{webCommandMetadata:{url:l,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};Z&&(H.clickTrackingParams=Z);Q&&(_.X(H,_.hZ).playerParams=Q);return H};
hsj=function(G){return{browseEndpoint:{browseId:"VL"+G},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+G,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
CZb=function(G){if(G){var H;if(G){var Z=(H=_.X(G.commandMetadata,_.HA))==null?void 0:H.url;H=!(!Z||Z==="/service_ajax")}else H=!1;if(H)return G;var Q;if(G=(Q=_.X(G,_.Ft))==null?void 0:Q.commands)for(Q=_.I(G),G=Q.next();!G.done;G=Q.next())if(G=CZb(G.value))return G}};
_.Nm=function(G){return{runs:[{text:G}]}};
iQR=function(G,H){return G&&H?{runs:[{text:G,navigationEndpoint:H}]}:void 0};
AU=function(G){return G?_.Nm(G):void 0};
_.xK=function(G){return G?{simpleText:G}:void 0};
_.Lo=function(G){var H=G.type;G=G.payload;H={type:H};G!==void 0&&(H.payload=G);return H};
OQu=function(G,H,Z){for(var Q=Object.assign({},G),p=_.I(Object.keys(H)),l=p.next();!l.done;l=p.next()){l=l.value;var q=G[l],u=H[l];if(u===void 0)delete Q[l];else if(q===void 0)Q[l]=u;else if(Array.isArray(u)&&Array.isArray(q))Q[l]=Z?[].concat(_.OP(q),_.OP(u)):u;else if(!Array.isArray(u)&&_.AM(u)&&!Array.isArray(q)&&_.AM(q))Q[l]=OQu(q,u,Z);else if(typeof u===typeof q)Q[l]=u;else return H=new _.C$("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:l,originalValue:q,updateValue:u}),
_.me(H),G}return Q};
o9f=function(G){if(!G.length)return"";try{if(aD2)return aD2.decode(G);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(G)}catch(q){}for(var H=0,Z=[],Q=G.length;H<Q;){for(var p=0;p<1024&&H<Q;){var l=G[H++];if(l<128)yPf[p++]=l;else{if(l<224)l=(l&31)<<6|G[H++]&63;else if(l<240)l=(l&15)<<12|(G[H++]&63)<<6|G[H++]&63;else{if(p+1===1024){--H;break}l=(l&7)<<18|(G[H++]&63)<<12|(G[H++]&63)<<6|G[H++]&63;l-=65536;yPf[p++]=55296|l>>10;l=56320|l&1023}yPf[p++]=l}}l=String.fromCharCode.apply(String,
yPf);p<1024&&(l=l.substring(0,p));Z.push(l)}return Z.join("")};
Uze=function(G,H){var Z;if((Z=mzo)==null?0:Z.encodeInto)return H=mzo.encodeInto(G,H),H.read<G.length?G.length*4:H.written;for(var Q=Z=0;Q<G.length;Q++){var p=G.charCodeAt(Q);p<128?H[Z++]=p:(p<2048?H[Z++]=p>>6|192:((p&64512)===55296&&Q+1<G.length&&(G.charCodeAt(Q+1)&64512)===56320?(p=65536+((p&1023)<<10)+(G.charCodeAt(++Q)&1023),H[Z++]=p>>18|240,H[Z++]=p>>12&63|128):H[Z++]=p>>12|224,H[Z++]=p>>6&63|128),H[Z++]=p&63|128)}return Z};
Rse=function(G,H,Z){if(H&&Z&&Z.buffer===H.exports.memory.buffer){var Q=H.realloc(Z.byteOffset,G);if(Q)return new Uint8Array(H.exports.memory.buffer,Q,G)}G=H?new Uint8Array(H.exports.memory.buffer,H.malloc(G),G):new Uint8Array(G);Z&&G.set(Z);return G};
_.YK=function(G){G=new NU2(new APR([_.YR(decodeURIComponent(G))]));if(xzf(G,2)){var H=E3(G);var Z=G.pos;var Q=G.arrayView;Z=Z===void 0?0:Z;var p=H===void 0?-1:H;Z=Z===void 0?0:Z;p=p===void 0?-1:p;if(Q.totalLength&&p){p<0&&(p=Q.totalLength-Z);Q.focus(Z);if(!(Z-Q.arrayPos+p<=Q.arrays[Q.arrayIdx].length)){var l=Q.arrayIdx,q=Q.arrayPos;Q.focus(Z+p-1);q=new Uint8Array(Q.arrayPos+Q.arrays[Q.arrayIdx].length-q);for(var u=0,B=l;B<=Q.arrayIdx;B++)q.set(Q.arrays[B],u),u+=Q.arrays[B].length;Q.arrays.splice(l,
Q.arrayIdx-l+1,q);Q.arrayIdx=0;Q.arrayPos=0;Q.focus(Z)}l=Q.arrays[Q.arrayIdx];Q=new DataView(l.buffer,l.byteOffset+Z-Q.arrayPos,p)}else Q=new DataView(new ArrayBuffer(0));Q=new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength);G.pos+=H;H=Q}else H=void 0;H=H?o9f(H):void 0;G=xzf(G,4)?E3(G):void 0;Q=Lde[G];if(typeof Q==="undefined")throw G=new _.C$("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:G}),_.me(G),G;return{entityTypeFieldNumber:G,entityType:Q,entityId:H}};
_.G9=function(G,H,Z){Z=Z===void 0?0:Z;var Q=new E9o;if(mzo)G=mzo.encode(G);else{var p=new Uint8Array(Math.ceil(G.length*1.2)),l=Uze(G,p);p.length<l&&(p=new Uint8Array(l),l=Uze(G,p));p.length>l&&(p=p.subarray(0,l));G=p}G!==void 0&&(Fs(Q,18),p=G.length,Fs(Q,p),bf(Q,p),Q.buf.set(G,Q.pos),Q.pos+=p);G=Ygf[H];if(typeof G==="undefined")throw Z=new _.C$("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:H}),_.me(Z),Z;G!==void 0&&(Fs(Q,32),Fs(Q,G));Fs(Q,40);Fs(Q,1);H=new Uint8Array(Q.buf.buffer,
Q.buf.byteOffset,Q.pos);return encodeURIComponent(_.Cm(H,Z))};
Fd3=function(G){G=G.key||G.id;if(!G)throw Error("Hf");return G};
GPj=function(G,H){G=G===void 0?{}:G;return bQX(G,H)};
H2f=function(G,H,Z,Q){if(Q===void 0)return Q=Object.assign({},G[H]||{}),Z=(delete Q[Z],Q),Q={},Object.assign({},G,(Q[H]=Z,Q));var p={},l={};return Object.assign({},G,(l[H]=Object.assign({},G[H],(p[Z]=Q,p)),l))};
sTo=function(G,H,Z,Q,p){var l=G[H];if(l==null||!l[Z])return G;Q=OQu(l[Z],Q,p==="REPEATED_FIELDS_MERGE_OPTION_APPEND");p={};l={};return Object.assign({},G,(l[H]=Object.assign({},G[H],(p[Z]=Q,p)),l))};
_.Hv=function(G,H,Z){return G[H]?G[H][Z]||null:null};
QTb=function(){if(Z2j)return Z2j();var G={};Z2j=J3("PersistentEntityStoreDb",{objectStores:(G.EntityStore={addedAtVersion:1},G.EntityAssociationStore={addedAtVersion:2},G),shared:!1,upgrade:function(H,Z){Z(1)&&Fq(YN(H,"EntityStore",{keyPath:"key"}),"entityType","entityType");Z(2)&&(H=YN(H,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Fq(H,"byParentEntityKey","parentEntityKey"),Fq(H,"byChildEntityKey","childEntityKey"))},
version:3});return Z2j()};
p9e=function(G){return _.pg(QTb(),G)};
s7=function(G){return window.Int32Array?new Int32Array(G):Array(G)};
gyU=function(G){return _.pg(lOj(),G)};
IOj=function(G){return new Zf("WRONG_DATA_TYPE",{encoderVersion:G})};
qrj=function(G){return G instanceof Error?new Zf("UNKNOWN_ENCODE_ERROR",{originalMessage:G.message}):new Zf("UNKNOWN_ENCODE_ERROR")};
Srv=function(G){return G instanceof Error?new Zf("UNKNOWN_DECODE_ERROR",{originalMessage:G.message}):new Zf("UNKNOWN_DECODE_ERROR")};
ueu=function(G,H){G=G instanceof Zf?G:H(G);_.me(G);throw G;};
BWf=function(G){G=(new TextEncoder).encode(G).subarray(0,16);var H=new Uint8Array(16);H.set(G);return H};
t5X=function(G){var H=J9o[G];if(H)return H;_.Rp(new _.C$("Entity model not found.",{entityType:G}))};
_.Qn=function(){kPf||(kPf=DPU());return kPf};
DPU=function(){var G,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return _.XV(Q,2),Q.yield(_.BP(),4);if(Q.nextAddress!=2){G=Q.yieldResult;if(!G||!_.hp()||typeof _.Qf.BroadcastChannel==="undefined")return Q.return();H=new dPe;return Q.return(new pN(G,H))}Z=_.Wg(Q);Z instanceof Error&&_.me(Z);return Q.return()})};
_.lX=function(G,H){var Z;return _.S(function(Q){if(Q.nextAddress==1){Z=G.mutations;if(!Z||Z.length<=0)return Q.return();H&&H.dispatch(_.Lo({type:"ENTITY_LOADED",payload:Z}));return Q.yield(eBW(Z),2)}Z.length=0;_.K0(Q)})};
eBW=function(G){var H;return _.S(function(Z){return Z.nextAddress==1?Z.yield(_.Qn(),2):(H=Z.yieldResult)?Z.yield(_.Iq(H,"readwrite",function(Q){for(var p={},l=_.I(G),q=l.next(),u={};!q.done;u={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},q=l.next())u.mutation$jscomp$8=q.value,u.mutation$jscomp$8.entityKey&&nyj(u.mutation$jscomp$8)&&(u.mutationEntityType$jscomp$3=(0,_.oN.getAnyKey)(u.mutation$jscomp$8.payload),q=void 0,u.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(q=function(B){return function(){return _.V5b(Q,
B.mutation$jscomp$8.payload[B.mutationEntityType$jscomp$3],B.mutationEntityType$jscomp$3)}}(u)),u.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(q=function(B){return function(){return $Pf(Q,B.mutation$jscomp$8.entityKey)}}(u)),u.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(q=function(B){return function(){return X92(Q,B.mutation$jscomp$8.entityKey,B.mutation$jscomp$8.payload[B.mutationEntityType$jscomp$3],B.mutationEntityType$jscomp$3)}}(u)),q&&(p[u.mutation$jscomp$8.entityKey]=
p[u.mutation$jscomp$8.entityKey]?p[u.mutation$jscomp$8.entityKey].then(q):q()));
return FP.all(Object.values(p))}),0):Z.return()})};
nyj=function(G){var H;G=(H=G.options)==null?void 0:H.persistenceOption;return G==="ENTITY_PERSISTENCE_OPTION_PERSIST"||G==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
fOR=function(G,H){var Z,Q;_.S(function(p){if(p.nextAddress==1)return p.yield(_.Qn(),2);if(p.nextAddress!=3)return(Z=p.yieldResult)?p.yield(_.Iq(Z,"readonly",function(l){var q={},u=Object.keys(H).map(function(B){var t=H[B]?[].concat(_.OP(H[B])):[];return c9j(l,B,t,q)});
return FP.all(u).then(function(){return q})}),3):p.return();
Q=p.yieldResult;Object.keys(Q).length>0&&G.dispatch(TWR(Q));_.K0(p)})};
c9j=function(G,H,Z,Q){return qv(G,H,Z).then(function(p){Q[H]=vyj(Z,p)})};
vyj=function(G,H){if(H.length!==G.length)throw Error("Kf");return H.reduce(function(Z,Q,p){Z[G[p]]=Q;return Z},{})};
K$f=function(G){var H=G.filter(function(p){var l;return(p==null?void 0:(l=p.transferEntity)==null?void 0:l.transferState)==="TRANSFER_STATE_COMPLETE"}).length,Z=G.filter(function(p){var l;
return(p==null?void 0:(l=p.transferEntity)==null?void 0:l.transferState)==="TRANSFER_STATE_FAILED"}).length,Q=G.filter(function(p){var l;
return(p==null?void 0:(l=p.transferEntity)==null?void 0:l.transferState)&&W$f.includes(p.transferEntity.transferState)});
if(!(H||Q!=null&&Q.length))return 0;H=_.zBW(Q)+H;G=G.length-Z;return G===0?0:Math.round(H*100/G)/100};
_.zBW=function(G){var H=[];H=H.concat.apply(H,_.OP(G.filter(function(l){return l.streamEntity}).map(function(l){var q=Object.assign({},l.streamEntity),u,B=(u=l.transferEntity)==null?void 0:u.transferState;
q.streamsProgress=q.streamsProgress||[];q.streamsProgress=q.streamsProgress.map(function(t){var D=Object.assign({},t);D.numBytesDownloaded=B==="TRANSFER_STATE_COMPLETE"?t.numTotalBytes:t.numBytesDownloaded;return D});
return q}).map(function(l){return l.streamsProgress})));
var Z=G=0;H=_.I(H);for(var Q=H.next();!Q.done;Q=H.next()){var p=Q.value;Q=Number(p.numBytesDownloaded);p=Number(p.numTotalBytes);Z+=isNaN(Q)?0:Q;G+=isNaN(p)?0:p}return G===0?0:Math.round(Z*100/G)/100};
M5X=function(G){if(!G||!G.expirationTimestamp||!G.action)return!1;var H=(0,_.t3)()/1E3;return Number(G.expirationTimestamp)>=H};
SS=function(G){return G&&G.expirationTimestamp&&G.action?M5X(G)&&G.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.uX=function(G){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(G||"TRANSFER_STATE_UNKNOWN")};
jTv=function(G){var H=new E9o;if(G!==void 0){var Z=Math.ceil(Math.log2(G.length*4+2)/7);Z=Z===void 0?2:Z;Fs(H,10);H.submessagePosStack.push(H.pos);H.submessagePosStack.push(Z);H.pos+=Z;bf(H,G.length*1.2);Z=Uze(G,H.buf.subarray(H.pos));H.pos+Z>H.buf.length&&(bf(H,Z),Z=Uze(G,H.buf.subarray(H.pos)));H.pos+=Z;G=H.submessagePosStack.pop();Z=H.submessagePosStack.pop();for(var Q=H.pos-Z-G;G--;){var p=G?128:0;H.view.setUint8(Z++,Q&127|p);Q>>=7}}H=new Uint8Array(H.buf.buffer,H.buf.byteOffset,H.pos);return(new TextDecoder("utf-8")).decode(H)};
_.Bv=function(G){var H=0;G=_.I(G);for(var Z=G.next(),Q={};!Z.done;Q={transferState$jscomp$3:void 0},Z=G.next()){var p=Z.value,l=void 0;Z=(l=p.streamEntity)!=null?l:{};l=void 0;Q.transferState$jscomp$3=(l=p.transferEntity)==null?void 0:l.transferState;l=p=void 0;((p=Z)==null?0:(l=p.streamsProgress)==null?0:l.length)&&Z.streamsProgress.forEach(function(q){return function(u){u=Number(q.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?u.numTotalBytes:u.numBytesDownloaded);isFinite(u)&&(H+=u)}}(Q))}return H};
P3U=function(G){return G.some(function(H){var Z;if(!(H==null?0:(Z=H.transferEntity)==null?0:Z.transferState)){var Q;return!(H==null?0:(Q=H.policyEntity)==null?0:Q.action)||H.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return W$f.includes(H.transferEntity.transferState)})};
r9v=function(G,H){if(!H)return!1;if(_.V("of_pb_en_po_ks"))return!0;var Z;G=(Z=_.Hv(G,"offlineVideoPolicy",_.G9(H,"offlineVideoPolicy")))!=null?Z:void 0;return!!G&&SS(G)};
_.hBv=function(G){var H=["TRANSFER_STATE_COMPLETE"];H=H===void 0?w9f:H;return G.filter(function(Z){var Q,p;return H.includes((p=(Q=Z.transferEntity)==null?void 0:Q.transferState)!=null?p:"TRANSFER_STATE_UNKNOWN")})};
C3f=function(G,H){if(H){var Z,Q=(Z=_.Hv(G,"playbackData",_.G9(H,"playbackData")))!=null?Z:null,p;Z=(p=_.Hv(G,"transfer",_.G9(H,"transfer")))!=null?p:null;var l;p=(l=_.Hv(G,"offlineVideoStreams",_.G9(H,"offlineVideoStreams")))!=null?l:null;var q;G=(q=_.Hv(G,"offlineVideoPolicy",_.G9(H,"offlineVideoPolicy")))!=null?q:null;if(Q||Z||p||G)return{playbackDataEntity:Q,transferEntity:Z,streamEntity:p,policyEntity:G}}};
_.Jy=function(G){var H=G.playbackData;if(!H)return[];var Z=[];H=_.I(Object.keys(H));for(var Q=H.next();!Q.done;Q=H.next()){var p=Q.value;if(!i2b(G,_.YK(p).entityId)&&(Q=C3f(G,_.YK(p).entityId))){var l=void 0,q=void 0;p=(q=Number((l=_.Hv(G,"playbackData",p))==null?void 0:l.streamDownloadTimestampSeconds))!=null?q:(0,_.t3)();Z.push({entity:Q,streamDownloadTimestamp:p})}}return Z.sort(function(u,B){var t=u.streamDownloadTimestamp,D=B.streamDownloadTimestamp;return D===t?u.entity.streamEntity&&!B.entity.streamEntity?
1:-1:D-t}).map(function(u){return u.entity})};
O2W=function(G){return _.hBv(_.Jy(G))};
_.aOU=function(G){return _.Jy(G).filter(function(H){var Z;if(((Z=H.policyEntity)==null?0:Z.action)&&H.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var Q;if((Q=H.transferEntity)==null?0:Q.transferState){var p;return W$f.includes((p=H.transferEntity)==null?void 0:p.transferState)}return!0})};
i2b=function(G,H){var Z;return((Z=_.Hv(G,"downloadStatusEntity",_.G9(H,"downloadStatusEntity")))==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
y9W=function(G){var H;if(G==null?0:(H=G.playbackDataEntity)==null?0:H.key)return _.YK(G.playbackDataEntity.key).entityId;var Z;if(G==null?0:(Z=G.transferEntity)==null?0:Z.key)return _.YK(G.transferEntity.key).entityId;var Q;if(G==null?0:(Q=G.streamEntity)==null?0:Q.key)return _.YK(G.streamEntity.key).entityId;var p;if(G==null?0:(p=G.policyEntity)==null?0:p.key)return _.YK(G.policyEntity.key).entityId};
mPR=function(G){var H=new Set,Z;G=(Z=G.mainDownloadsListEntity)==null?void 0:Z[oyb];var Q;if(!(G==null?0:(Q=G.downloads)==null?0:Q.length))return H;var p;G==null||(p=G.downloads)==null||p.forEach(function(l){(l==null?0:l.videoItem)&&H.add(l.videoItem)});
return H};
ka=function(G,H){if(H){var Z=_.Hv(G,"mainVideoEntity",_.G9(H,"mainVideoEntity")),Q=_.Hv(G,"downloadStatusEntity",_.G9(H,"downloadStatusEntity")),p=_.Hv(G,"ytMainChannelEntity",_.G9(H,"ytMainChannelEntity")),l={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};G=C3f(G,H);Q=(Q==null?void 0:Q.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.V("woffle_render_failed_download_state_ks")&&(Q==null?void 0:Q.downloadState)==="DOWNLOAD_STATE_FAILED";!G&&Q&&(G=l);if(G&&Z&&
p)return Object.assign({},{videoEntity:Z,channelEntity:p},G)}};
RBo=function(G,H){return UP3(G,H)==="TRANSFER_STATE_COMPLETE"&&r9v(G,H)};
NWb=function(G,H){if(!H)return!1;var Z;G=(Z=_.Hv(G,"playbackData",_.G9(H,"playbackData")))!=null?Z:void 0;return!!G&&!!G.playerResponseJson};
UP3=function(G,H){if(!H)return"TRANSFER_STATE_UNKNOWN";var Z=_.Hv(G,"transfer",_.G9(H,"transfer"));if(Z){var Q;return(Q=Z.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN"}Z=_.Hv(G,"offlineOrchestrationActionWrapperEntity",_.G9(H,"offlineOrchestrationActionWrapperEntity"));G=_.Hv(G,"mainVideoEntity",_.G9(H,"mainVideoEntity"));return Z||G?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
A9v=function(G,H){if(!H)return"TRANSFER_STATE_UNKNOWN";if(G=_.Hv(G,"transfer",_.G9(H,"transfer"))){var Z;return(Z=G.transferState)!=null?Z:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
xPR=function(G,H){return H&&(G=_.Hv(G,"videoPlaybackPositionEntity",_.G9(H,"videoPlaybackPositionEntity")),G==null?0:G.lastPlaybackPositionSeconds)?Number(G.lastPlaybackPositionSeconds):0};
EyR=function(G,H){return L$R(G).some(function(Z){var Q;return(Z==null?void 0:(Q=Z.mainPlaylistEntity)==null?void 0:Q.playlistId)===H})};
F$e=function(G,H,Z){var Q=Yrf(G,H);if(!Q.length)return[];H=[];Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next()){p=p.value;var l=ka(G,p);Z&&UP3(G,p)!=="TRANSFER_STATE_COMPLETE"||l&&H.push(l)}return H};
Yrf=function(G,H){if(!H)return[];var Z=_.G9(H,"mainPlaylistEntity"),Q;H=(Q=G.mainPlaylistEntity)==null?void 0:Q[Z];Q=[];if(H==null||!H.videos)return Q;H=_.I(H.videos);for(Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var p=void 0,l=void 0,q=void 0,u=(p=G)==null?void 0:(l=p.mainPlaylistVideoEntity)==null?void 0:(q=l[Z])==null?void 0:q.video;u&&(Z=_.YK(u).entityId)&&Q.push(Z)}return Q};
b2M=function(G,H){if(H){var Z=_.Hv(G,"mainPlaylistEntity",_.G9(H,"mainPlaylistEntity")),Q=_.Hv(G,"mainPlaylistDownloadStateEntity",_.G9(H,"mainPlaylistDownloadStateEntity"));G=_.Hv(G,"ytMainChannelEntity",_.G9(H,"ytMainChannelEntity"));if(Q&&Z)return Object.assign({},{mainPlaylistEntity:Z,mainPlaylistDownloadStateEntity:Q},!!G&&{channelEntity:G})}};
L$R=function(G){return Gpo(G).sort(function(H,Z){return Z.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedPlaylistEntities})};
Gpo=function(G){var H=G.mainPlaylistDownloadStateEntity,Z=[];if(!H)return Z;for(var Q=_.I(Object.keys(H)),p=Q.next();!p.done;p=Q.next()){var l=p.value;p=b2M(G,_.YK(l).entityId);var q=void 0;l=Number((q=H[l])==null?void 0:q.addedTimestampMillis);q=isNaN(l)?(0,_.t3)():l;p!==void 0&&Z.push({downloadedPlaylistEntities:p,addedTimestampMillis:q})}return Z};
Hij=function(G){var H,Z=(H=G.mainPlaylistVideoEntity)!=null?H:{};return new Set(L$R(G).reduce(function(Q,p){Q=Q===void 0?[]:Q;var l,q;p==null||(l=p.mainPlaylistEntity)==null||(q=l.videos)==null||q.forEach(function(u){var B;(u=(B=Z[u])==null?void 0:B.video)&&Q.push(u)});
return Q},[]))};
sif=function(G){return"downloadedMusicPlaylistEntities"in G};
Zie=function(G){return"mainPlaylistEntity"in G&&"mainPlaylistDownloadStateEntity"in G};
QiR=function(G){return"videoEntity"in G&&"channelEntity"in G};
pY3=function(G){var H=G.musicPlaylistDownloadMetadataEntity,Z=[];if(!H)return Z;for(var Q=_.I(Object.keys(H)),p=Q.next();!p.done;p=Q.next()){p=p.value;a:{var l=G,q=_.YK(p).entityId;if(q){var u=_.Hv(l,"musicPlaylist",_.G9(q,"musicPlaylist"));l=_.Hv(l,"musicPlaylistDownloadMetadataEntity",_.G9(q,"musicPlaylistDownloadMetadataEntity"));if(u&&l){u={musicPlaylistEntity:u,musicPlaylistDownloadStateEntity:l};break a}}u=void 0}l=void 0;p=Number((l=H[p])==null?void 0:l.addedTimestampMillis);p=isNaN(p)?(0,_.t3)():
p;u!==void 0&&Z.push({downloadedMusicPlaylistEntities:u,addedTimestampMillis:p})}return Z};
l7f=function(G){var H=new Set;G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,"musicPlaylistEntity"in Z&&"musicPlaylistDownloadStateEntity"in Z){Z=_.I(Z.musicPlaylistEntity.tracks);for(var Q=Z.next();!Q.done;Q=Z.next())H.add(Q.value)}return H};
ggU=function(G,H){if(H){var Z=_.Hv(G,"musicTrack",_.G9(H,"musicTrack")),Q=_.Hv(G,"musicArtist",_.G9(H,"musicArtist"))||{};if((G=C3f(G,H))&&Z&&Q)return Object.assign({},{musicTrackEntity:Z,musicArtistEntity:Q},G)}};
I7R=function(G){var H=G.musicTrackDownloadMetadataEntity,Z=[];if(!H)return[];H=_.I(Object.keys(H));for(var Q=H.next();!Q.done;Q=H.next()){var p=Q.value;Q=ggU(G,_.YK(p).entityId);var l=void 0;p=Number((l=_.Hv(G,"musicTrackDownloadMetadataEntity",p))==null?void 0:l.addedTimestampMillis);l=isNaN(p)?(0,_.t3)():p;Q!==void 0&&Z.push({downloadedMusicEntities:Q,addedTimestampMillis:l})}return Z};
uYe=function(G,H){if(!H)return[];if(Object.values(qMj).includes(H))return SMv(G,H);H=_.G9(H,"musicPlaylist");var Z;G=(Z=G.musicPlaylist)==null?void 0:Z[H];Z=[];if(G==null||!G.tracks)return Z;G=_.I(G.tracks);for(H=G.next();!H.done;H=G.next())(H=_.YK(H.value).entityId)&&Z.push(H);return Z};
SMv=function(G,H){var Z=new Set,Q=pY3(G).map(function(l){return l.downloadedMusicPlaylistEntities});
Q=l7f(Q);Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next())(p=_.YK(p.value).entityId)&&Z.add(p);return BvW(G).downloadedMusicEntities.filter(function(l){var q;if((q=l.musicTrackEntity)!=null&&q.videoId){l=l.musicTrackEntity;if(q=H==="PPOM"?!0:!Z.has(l.videoId))b:switch(l=l.musicVideoType,H){case "PPSE":q=l==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:q=l!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}l=q}else l=!1;return l}).map(function(l){var q;
return(q=l.musicTrackEntity)==null?void 0:q.videoId})};
BvW=function(G){var H=I7R(G).sort(function(Z,Q){return Q.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return"downloadedMusicEntities"in Z?Z.downloadedMusicEntities:sif(Z)?Z.downloadedMusicPlaylistEntities:{}});
G=pY3(G).sort(function(Z,Q){return Q.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return"downloadedMusicEntities"in Z?Z.downloadedMusicEntities:sif(Z)?Z.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:H,downloadedMusicPlaylistEntities:G}};
t8b=function(G,H){H=_.xI("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?uYe(G,H):Yrf(G,H);if(!H.length)return"TRANSFER_STATE_UNKNOWN";H=H.map(function(Z){return A9v(G,Z)});
return Jfo(H)};
Jfo=function(G){var H=new Set(G);if(H.has("TRANSFER_STATE_FAILED")&&H.size===1)return"TRANSFER_STATE_FAILED";H.delete("TRANSFER_STATE_FAILED");if(H.has("TRANSFER_STATE_UNKNOWN")&&H.size===1)return"TRANSFER_STATE_PRE_TRANSFER";H.delete("TRANSFER_STATE_UNKNOWN");if(H.has("TRANSFER_STATE_PRE_TRANSFER")&&H.size===1||H.size===0)return"TRANSFER_STATE_PRE_TRANSFER";G=H.has("TRANSFER_STATE_TRANSFERRING");H=H.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return G||H?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Df=function(G){var H=G.mainVideoDownloadStateEntity,Z=[];if(!H)return[];H=_.I(Object.keys(H));for(var Q=H.next();!Q.done;Q=H.next()){var p=Q.value;if(!i2b(G,_.YK(p).entityId)){Q=ka(G,_.YK(p).entityId);var l=void 0,q=void 0;p=(q=Number((l=_.Hv(G,"mainVideoDownloadStateEntity",p))==null?void 0:l.addedTimestampMillis))!=null?q:(0,_.t3)();Q!==void 0&&Z.push({downloadedVideoEntities:Q,addedTimestampMillis:p})}}return Z};
kpX=function(G){return Df(G).sort(function(H,Z){return Z.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedVideoEntities})};
_.dZU=function(G){var H=Hij(G),Z=_.dc(G),Q=mPR(G),p=Df(G).filter(function(q){var u,B;if((q==null?void 0:(u=q.downloadedVideoEntities)==null?void 0:(B=u.transferEntity)==null?void 0:B.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var t,D;q=q==null?void 0:(t=q.downloadedVideoEntities)==null?void 0:(D=t.videoEntity)==null?void 0:D.key;return _.V("kevlar_use_library_entity")?q&&(Q.has(q)||Z[q]):q&&!H.has(q)}),l=Gpo(G).filter(function(q){return t8b(G,q.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.OP(p),_.OP(l)).sort(function(q,u){return u.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return DZu(q)})};
e1u=function(G,H){if(H&&r9v(G,H)){var Z,Q,p=(Q=(Z=_.Hv(G,"playbackData",_.G9(H,"playbackData")))!=null?Z:void 0)==null?void 0:Q.playerResponseJson;if(p){try{var l=JSON.parse(p);var q=_.Hv(G,"transfer",_.G9(H,"transfer")),u=xPR(G,H);u&&(l=Object.assign({},l,{playerConfig:Object.assign({},l.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+u*1E3}}})}));l.cotn=q==null?void 0:q.cotn}catch(B){}return l}}};
_.V8v=function(G){var H,Z,Q;G=(Q=(Z=((H=G.downloadsPageViewConfigurationEntity)!=null?H:{})[_.eS])==null?void 0:Z.smartDownloadsOptInBannerVisibility)!=null?Q:{};var p;return(p=_.X(G,ngb))!=null?p:{}};
_.dc=function(G){var H,Z,Q;G=(Q=(Z=((H=G.mainDownloadsListEntity)!=null?H:{})[_.$Zj])==null?void 0:Z.downloads)!=null?Q:[];H={};Z=_.I(G);for(Q=Z.next();!Q.done;Q=Z.next())G=void 0,H[(G=Q.value.videoItem)!=null?G:""]=!0;return H};
XYb=function(G){var H=_.dc(G);if(Object.keys(H).length===0)return!1;var Z=G.mainVideoEntity;if(!Z)return!0;Z=_.I(Object.keys(Z));for(var Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var p=_.YK(Q).entityId;if(H[Q]&&!i2b(G,p))return!1}return!0};
_.nN=function(G){var H=_.dc(G);return Df(G).sort(function(Z,Q){return Z.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Z){return Z.downloadedVideoEntities}).filter(function(Z){var Q;
return(Z=Z==null?void 0:(Q=Z.videoEntity)==null?void 0:Q.key)&&!!H[Z]})};
_.Tve=function(G){var H,Z,Q;G=(Q=(Z=((H=G.downloadsPageViewConfigurationEntity)!=null?H:{})[_.eS])==null?void 0:Z.downloadsUpsellBannerVisibility)!=null?Q:{};var p;return(p=_.X(G,cfu))!=null?p:{}};
DZu=function(G){return"downloadedVideoEntities"in G?G.downloadedVideoEntities:"downloadedPlaylistEntities"in G?G.downloadedPlaylistEntities:{}};
f7e=function(G){var H=_.dc(G),Z=Hij(G),Q=Df(G).filter(function(p){var l,q;return(p=p==null?void 0:(l=p.downloadedVideoEntities)==null?void 0:(q=l.videoEntity)==null?void 0:q.key)&&!H[p]&&!Z.has(p)});
G=Gpo(G);return[].concat(_.OP(Q),_.OP(G)).sort(function(p,l){return l.addedTimestampMillis-p.addedTimestampMillis}).map(function(p){return DZu(p)})};
_.Vn=function(G){if(!_.V("kevlar_use_library_entity"))return f7e(G);var H=Df(G).filter(function(Q){var p,l;if(p=Q=Q==null?void 0:(p=Q.downloadedVideoEntities)==null?void 0:(l=p.videoEntity)==null?void 0:l.key){var q,u,B;p=((u=(q=G.mainDownloadsListEntity)==null?void 0:q[oyb])==null?0:(B=u.downloads)==null?0:B.length)?mPR(G).has(Q):!1}return p}),Z=Gpo(G);
return[].concat(_.OP(H),_.OP(Z)).sort(function(Q,p){return p.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return DZu(Q)})};
vgj=function(G){var H=_.dc(G),Z=Hij(G);return kpX(G).filter(function(Q){var p;return(Q=Q==null?void 0:(p=Q.videoEntity)==null?void 0:p.key)&&!H[Q]&&!Z.has(Q)})};
WHv=function(G){if(!_.V("kevlar_use_library_entity"))return vgj(G);var H=_.dc(G),Z=mPR(G);return kpX(G).filter(function(Q){var p;return(Q=Q==null?void 0:(p=Q.videoEntity)==null?void 0:p.key)&&!H[Q]&&Z.has(Q)})};
z1W=function(G,H){H=_.G9(H,"settingEntity");var Z,Q,p;return!!((p=(Q=((Z=G.settingEntity)!=null?Z:{})[H])==null?void 0:Q.settingOptionValue)!=null?p:{}).boolValue};
_.$a=function(G){var H=_.nN(G);if(P3U(H))return 0;var Z=[];H=_.I(H);for(var Q=H.next();!Q.done;Q=H.next()){Q=Q.value;var p=void 0,l=void 0;if((p=Q)==null?0:(l=p.videoEntity)==null?0:l.key)p=_.YK(Q.videoEntity.key).entityId,Q=G,p=_.G9(p,"mainVideoDownloadStateEntity"),Q=_.Hv(Q,"mainVideoDownloadStateEntity",p),(Q=Number(Q==null?void 0:Q.addedTimestampMillis))&&Z.push(Q)}return Math.max.apply(Math,_.OP(Z))};
_.X8=function(G){return G.ui.richGridMiniMode};
_.cv=function(G){return G.ui.richGridItemsPerRow};
_.KHv=function(G){return G.ui.richGridSlimItemsPerRow};
_.M8j=function(G){return G.ui.guideIsExpanded};
_.T9=function(G){return G.ui.miniplayerIsActive};
ji2=function(G){return G.ui.singleOptionSurveyIsActive};
_.fN=function(G){var H;return((H=G.ui)==null?void 0:H.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.P1e=function(G){return _.fN(G)==="WEB_PAGE_TYPE_WATCH"};
_.rfe=function(G){return _.fN(G)==="WEB_PAGE_TYPE_SHORTS"};
_.wY3=function(G){return G.ui.inlinePreviewIsActive};
_.h1e=function(G){return G.ui.inlinePreviewIsEnabled};
_.C13=function(G){return G.ui.miniplayerPlaybackState};
_.vv=function(G){return G.ui.isOnline};
_.iie=function(G){return G.ui.frostedGlassMode};
_.Wv=function(G,H){return UP3(G.entities,H)};
_.z9=function(G,H){return t8b(G.entities,H)};
Oie=function(G,H){var Z;if(H){var Q;G=(Q=_.Hv(G.entities,"offlineVideoPolicy",_.G9(H,"offlineVideoPolicy")))==null?void 0:Q.action}else G=void 0;return(Z=G)!=null?Z:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
a7W=function(G,H){var Z;H?(G=_.Hv(G.entities,"offlineVideoPolicy",_.G9(H,"offlineVideoPolicy")),G=Number(G==null?void 0:G.expirationTimestamp)):G=void 0;return(Z=G)!=null?Z:0};
_.yfW=function(G){return _.Jy(G.entities).length};
ogR=function(G,H){return ka(G.entities,H)};
mZo=function(G,H){return b2M(G.entities,H)};
KN=function(G,H){return(G=ka(G.entities,H))?_.zBW([G]):0};
_.UZu=function(G,H){var Z=_.xI("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(Z){var Q=G.entities;var p=uYe(Q,H);if(p.length){var l=[];p=_.I(p);for(var q=p.next();!q.done;q=p.next())(q=ggU(Q,q.value))&&l.push(q);Q=l}else Q=[]}else Q=F$e(G.entities,H);var u;if(Z){var B=G.entities;H?(H=_.G9(H,"musicPlaylist"),B=(u=B.musicPlaylist)==null?void 0:u[H],u=B!=null&&B.tracks?B.tracks.length:0):u=0}else u=G.entities,H?(H=_.G9(H,"mainPlaylistEntity"),u=(B=u.mainPlaylistEntity)==null?void 0:B[H],u=u!=null&&u.videos?
u.videos.length:0):u=0;return Q.length!==u?0:Q?K$f(Q):0};
_.R13=function(G){return G.download.isLeaderTab};
_.NvU=function(G,H,Z){if(!H&&Z){var Q=G.entities;if(Z){var p=jTv(Z),l,q;H=(q=(l=_.Hv(Q,"offlineabilityEntity",_.G9(p,"offlineabilityEntity")))==null?void 0:l.addToOfflineButtonState)!=null?q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else l=G.entities,H?(q=jTv(H),H=(p=(Q=_.Hv(l,"offlineabilityEntity",_.G9(q,"offlineabilityEntity")))==null?void 0:Q.addToOfflineButtonState)!=null?p:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return H};
Afv=function(G,H){G=G.entities;if(H){H=jTv(H);var Z,Q;H=(Q=(Z=_.Hv(G,"offlineabilityEntity",_.G9(H,"offlineabilityEntity")))==null?void 0:Z.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else H="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return H};
_.xZf=function(G){var H=G.entities;G=_.vv(G);var Z=z1W(H,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.V("kevlar_modern_downloads_page")&&Z)var Q=!1;else{var p,l;H=(l=(p=((Q=H.downloadsPageViewConfigurationEntity)!=null?Q:{})[_.eS])==null?void 0:p.smartDownloadsOptInBannerVisibility)!=null?l:{};Q=G?!!H.visibleWithConnection:!!H.visibleWithoutConnection}return Q};
_.LHf=function(G){return z1W(G.entities,"SMART_DOWNLOADS_ENABLED")};
_.Ego=function(G){return XYb(G.entities)};
YMe=function(G){return _.nN(G.entities).every(function(H){var Z;return(H==null?void 0:(Z=H.transferEntity)==null?void 0:Z.transferState)&&!W$f.includes(H.transferEntity.transferState)})};
_.FHj=function(G){var H,Z,Q,p=(Q=(Z=((H=G.entities.downloadsPageViewConfigurationEntity)!=null?H:{})[_.eS])==null?void 0:Z.downloadsUpsellBannerVisibility)!=null?Q:{};return _.vv(G)?!!p.visibleWithConnection:!!p.visibleWithoutConnection};
_.bi2=function(G,H){return i2b(G.entities,H)};
GZe=function(G,H){if(H){var Z,Q;G=(Q=(Z=_.Hv(G.entities,"downloadStatusEntity",_.G9(H,"downloadStatusEntity")))==null?void 0:Z.downloadState)!=null?Q:"DOWNLOAD_STATE_UNKNOWN"}else G="DOWNLOAD_STATE_UNKNOWN";return G};
jS=function(G,H){return xPR(G.entities,H)};
Qae=function(G){G=Hrf(G);var H=G.hours===void 0?0:G.hours,Z=G.minutes===void 0?0:G.minutes,Q=G.seconds===void 0?0:G.seconds,p=H>0;G=[];p&&(H=saM(H),G.push(H));H=p;H=H===void 0?!1:H;Z=(["af","be","lt"].includes(Pv)||H)&&Z<10?Zrv().format(Z):(new Intl.NumberFormat("en-u-nu-latn")).format(Z);G.push(Z);Z=Zrv().format(Q);G.push(Z);Z=":";"da fi id si sr sr-Latn".split(" ").includes(Pv)&&(Z=".");return G.join(Z)};
_.li3=function(G){G=Hrf(G);var H=G.hours===void 0?0:G.hours,Z=G.minutes===void 0?0:G.minutes,Q=G.seconds===void 0?0:G.seconds;G=[];if(H>0){var p=p5j().format({hours:H});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Pv)||H>9999)p=p.replace(H.toString(),saM(H)),Pv==="km"&&(p=p.replace(".",","));G.push(p)}Z>0&&G.push(p5j().format({minutes:Z}));Q>0&&G.push(p5j().format({seconds:Q}));H="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");Z=Pv=="am"?"{0}\u1363 ":Pv=="fa"?"{0}\u060c\u200f ":
Pv=="my"?"{0} - ":Pv=="ne"?"{0},":Pv=="th"?"{0} ":Pv=="ur"?"{0}\u060c ":Pv=="ar"||Pv=="ar-XB"?"{0} \u0648":Pv=="ja"||Pv=="zh-CN"||Pv=="zh-HK"||Pv=="zh-TW"?"{0}\u3001":"{0}, ";Q=Pv=="am"?"\u1363 ":Pv=="fa"?"\u060c\u200f ":Pv=="my"?" - ":Pv=="th"?" ":Pv=="ur"?"\u060c ":Pv=="ar"||Pv=="ar-XB"?" \u0648":Pv=="ja"||Pv=="zh-CN"||Pv=="zh-HK"||Pv=="zh-TW"?"\u3001":", ";p=Pv=="am"?" \u12a5\u1293 {0}":Pv=="as"?" \u0986\u09f0\u09c1 {0}":Pv=="az"?" v\u0259 {0}":Pv=="bn"?" \u098f\u09ac\u0982 {0}":Pv=="cs"?" a\u00a0{0}":
Pv=="de"?" und {0}":Pv=="el"?" \u03ba\u03b1\u03b9 {0}":Pv=="eu"?" eta {0}":Pv=="fa"?"\u060c \u0648 {0}":Pv=="fil"?", at {0}":Pv=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Pv=="hi"?", \u0914\u0930 {0}":Pv=="hu"?" \u00e9s {0}":Pv=="hy"?" \u0587 {0}":Pv=="id"?", dan {0}":Pv=="iw"?" \u05d5-{0}":Pv=="ja"?"\u3001{0}":Pv=="ka"?" \u10d3\u10d0 {0}":Pv=="km"?" \u1793\u17b7\u1784 {0}":Pv=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Pv=="ko"?" \ubc0f {0}":Pv=="ky"?" \u0436\u0430\u043d\u0430 {0}":Pv=="lt"?" ir {0}":Pv==
"lv"?" un {0}":Pv=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Pv=="mr"?" \u0906\u0923\u093f {0}":Pv=="ms"?" dan {0}":Pv=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Pv=="ne"?" \u0930 {0}":Pv=="or"?", \u0b13 {0}":Pv=="pa"?" \u0a05\u0a24\u0a47 {0}":Pv=="ro"?" \u0219i {0}":Pv=="si"?", \u0dc3\u0dc4 {0}":Pv=="sk"?" a {0}":Pv=="sl"?" in {0}":Pv=="sq"?" dhe {0}":Pv=="sv"?" och {0}":Pv=="sw"?" na {0}":Pv=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Pv=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Pv=="th"?" \u0e41\u0e25\u0e30{0}":Pv=="tr"?" ve {0}":Pv=="ur"?"\u060c \u0627\u0648\u0631 {0}":Pv=="uz"?" va {0}":Pv=="vi"?" v\u00e0 {0}":Pv=="zh-HK"?"\u53ca{0}":Pv=="zu"?", ne-{0}":Pv=="af"||Pv=="nl"?" en {0}":Pv=="ar"||Pv=="ar-XB"?" \u0648{0}":Pv=="be"||Pv=="uk"?" \u0456 {0}":Pv=="en-GB"||Pv=="en-IN"?" and {0}":Pv=="en"||Pv=="en-XA"?", and {0}":Pv=="et"||Pv=="fi"?" ja {0}":Pv=="fr"||Pv=="fr-CA"?" et {0}":Pv=="zh-CN"||Pv=="zh-TW"?"\u548c{0}":Pv=="da"||Pv=="is"||Pv=="no"?" og {0}":Pv=="es"||Pv=="es-419"||
Pv=="es-US"?" y {0}":Pv=="kk"||Pv=="lo"||Pv=="mn"?", {0}":Pv=="bg"||Pv=="mk"||Pv=="ru"||Pv=="sr"?" \u0438 {0}":Pv=="gl"||Pv=="it"||Pv=="pt-BR"||Pv=="pt-PT"?" e {0}":" i {0}";var l=Pv=="am"?"{0} \u12a5\u1293 {1}":Pv=="as"?"{0} \u0986\u09f0\u09c1 {1}":Pv=="az"?"{0} v\u0259 {1}":Pv=="bn"?"{0} \u098f\u09ac\u0982 {1}":Pv=="de"?"{0} und {1}":Pv=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Pv=="eu"?"{0} eta {1}":Pv=="fa"?"{0} \u0648 {1}":Pv=="fil"?"{0} at {1}":Pv=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Pv=="hi"?"{0} \u0914\u0930 {1}":
Pv=="hu"?"{0} \u00e9s {1}":Pv=="hy"?"{0} \u0587 {1}":Pv=="iw"?"{0} \u05d5-{1}":Pv=="ja"?"{0}\u3001{1}":Pv=="ka"?"{0} \u10d3\u10d0 {1}":Pv=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Pv=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Pv=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Pv=="ko"?"{0} \ubc0f {1}":Pv=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Pv=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Pv=="lt"?"{0} ir {1}":Pv=="lv"?"{0} un {1}":Pv=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Pv=="mn"?"{0}, {1}":Pv==
"mr"?"{0} \u0906\u0923\u093f {1}":Pv=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Pv=="ne"?"{0} \u0930 {1}":Pv=="or"?"{0} \u0b13 {1}":Pv=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Pv=="ro"?"{0} \u0219i {1}":Pv=="si"?"{0} \u0dc3\u0dc4 {1}":Pv=="sl"?"{0} in {1}":Pv=="sq"?"{0} dhe {1}":Pv=="sv"?"{0} och {1}":Pv=="sw"?"{0} na {1}":Pv=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Pv=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Pv=="th"?"{0}\u0e41\u0e25\u0e30{1}":Pv=="tr"?"{0} ve {1}":Pv=="ur"?
"{0} \u0627\u0648\u0631 {1}":Pv=="uz"?"{0} va {1}":Pv=="vi"?"{0} v\u00e0 {1}":Pv=="zh-HK"?"{0}\u53ca{1}":Pv=="zu"?"{0} ne-{1}":Pv=="af"||Pv=="nl"?"{0} en {1}":Pv=="ar"||Pv=="ar-XB"?"{0} \u0648{1}":Pv=="be"||Pv=="uk"?"{0} \u0456 {1}":Pv=="cs"||Pv=="sk"?"{0} a\u00a0{1}":Pv=="et"||Pv=="fi"?"{0} ja {1}":Pv=="fr"||Pv=="fr-CA"?"{0} et {1}":Pv=="id"||Pv=="ms"?"{0} dan {1}":Pv=="zh-CN"||Pv=="zh-TW"?"{0}\u548c{1}":Pv=="da"||Pv=="is"||Pv=="no"?"{0} og {1}":Pv=="es"||Pv=="es-419"||Pv=="es-US"?"{0} y {1}":Pv==
"bg"||Pv=="mk"||Pv=="ru"||Pv=="sr"?"{0} \u0438 {1}":Pv=="en"||Pv=="en-GB"||Pv=="en-IN"||Pv=="en-XA"?"{0} and {1}":Pv=="gl"||Pv=="it"||Pv=="pt-BR"||Pv=="pt-PT"?"{0} e {1}":"{0} i {1}";Pv==="sq"?(p=p.replace("dhe","e"),l=l.replace("dhe","e")):Pv==="th"?(Q=Q.replace("{0}"," {0}"),l=l.replace("{0}","{0} "),l=l.replace("{1}"," {1}")):Pv==="ne"?Q=",":Pv==="zh-CN"?Q="":H.includes(Pv)&&(Q=" ");return G.length<2?G.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(Pv)?
G.length===2?l.replace("{0}",G[0]).replace("{1}",G[1]):Z.replace("{0}",G[0])+G.slice(1,-1).join(Q)+p.replace("{0}",G[G.length-1]):G.join(Q)};
Hrf=function(G){var H=G.hours||0,Z=G.minutes||0,Q=G.seconds||0;H=Q+Z*60+H*3600+(G.days||0)*86400+(G.weeks||0)*604800+(G.months||0)*2629800+(G.years||0)*31557600;if(H<=0)return{hours:0,minutes:0,seconds:0};G=H;H=Math.floor(G/3600);G%=3600;Z=Math.floor(G/60);Q=Math.floor(G%60);return{hours:H,minutes:Z,seconds:Q}};
saM=function(G){G=(new Intl.NumberFormat("en-u-nu-latn")).format(G);var H=["fr"],Z="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(Pv)?G.replace(",","\u00a0"):H.includes(Pv)?G.replace(",","\u202f"):Z.includes(Pv)?G.replace(",","."):G};
Zrv=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
p5j=function(){gOu||(rc=Iio,gOu=new qpu);return gOu};
Spf=function(G){try{return(new _.wc(5)).format(G)}catch(H){}};
hy=function(G){return{thumbnailOverlayDownloadingRenderer:{state:G}}};
uif=function(){var G=_.Zg("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Nm(G),icon:{iconType:"PLAY_ALL"}}}};
BQj=function(G){G=_.CN(G,2);return Pv!=="ru"&&Pv!=="es_419"&&Pv!=="es-419"&&Pv!=="es"&&Pv!=="es_US"&&Pv!=="es-US"&&Pv!=="fr"&&Pv!=="pl"&&Pv!=="it"&&Pv!=="nl"&&Pv!=="uk"&&Pv!=="fr_CA"&&Pv!=="fr-CA"||G===""?G:G[0].toLocaleUpperCase()+G.substring(1)};
tEe=function(G){return function(H){var Z=G(),Q=_.CN(H,Z.dateFormat);H=_.CN(H,Z.timeFormat);var p=J4f.DATETIMEFORMATS[Z.joinerStyle];p=p.replace(/'(?!')/g,"");p=p.replace("{0}",H);p=p.replace("{1}",Q);return Z.capitalize(p)}};
kZf=function(G){return G?typeof G.seconds==="string"&&(G.nanos===void 0||typeof G.nanos==="number"):!1};
DHW=function(G){return new Date(Number(G.seconds)*1E3+(G.nanos||0)*1E-6)};
_.CN=function(G,H){if(typeof G.getTime==="function")G={date:G};else if(kZf(G))G={date:DHW(G)};else if(typeof kZf(G.timestamp)&&typeof G.i18nInternalSecondsEastOfUtc==="number")G={date:DHW(G.timestamp),timeZone:iX(-G.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(G));var Z=G;G=Z.date;Z=Z.timeZone;H=dHf(H).format(G,Z);Pv==="zh-TW"&&(G=Z?Number(dHf("H").format(G,Z)):G.getHours(),H=G<5?H.replace("\u4e0a\u5348","\u51cc\u6668"):G<8?H.replace("\u4e0a\u5348","\u65e9\u4e0a"):G<12?
H.replace("\u4e0a\u5348","\u4e0a\u5348"):G<13?H.replace("\u4e0b\u5348","\u4e2d\u5348"):G<19?H.replace("\u4e0b\u5348","\u4e0b\u5348"):H.replace("\u4e0b\u5348","\u665a\u4e0a"));return H};
dHf=function(G){if(LSU.has(G))return LSU.get(G);var H=EOb(G);H=Ypj(H);FSR!==!0&&(FSR=!0);brj=!0;brj=!1;H=new O7(H,J4f);LSU.set(G,H);return H};
EOb=function(G){return(new O7(G,J4f)).patternParts_.map(function(H){return H.type===0?"'"+H.text+"'":H.text}).join("")};
Ypj=function(G){return Pv==="en"||Pv==="es_US"||Pv==="es-US"?G:G.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(H,Z,Q){return"H".repeat(Z.length)+Q})};
lKf=function(G,H){GVX||(rc=Iio,GVX=new HBj);var Z=GVX;a:if(G=sPR(G),H=sPR(H||new Date),G>H)Z=G.getTime()-H.getTime()>6048E5?_.CN(G,1):ZBf(G);else{for(var Q=0;QPv(G,12*(Q+1))<H;)++Q;if(Q>0)Z=Z.format(-Q,0);else{for(Q=0;QPv(G,Q+1)<H;)++Q;if(Q>0)Z=Z.format(-Q,2);else{G=H.getTime()-G.getTime();H=_.I(pkb);for(Q=H.next();!Q.done;Q=H.next()){Q=Q.value;var p=Q.unit,l=Math.floor(G/Q.unitDuration);if(l>=(Q.threshold===void 0?1:Q.threshold)){Z=Z.format(-l,p);break a}}Z=Z.format(-0,7)}}}return Z};
sPR=function(G){if(typeof G.getTime==="function")return G;if(kZf(G))return DHW(G);throw Error("Mf`"+JSON.stringify(G));};
QPv=function(G,H){for(var Z=0,Q;;++Z)if(Q=new Date(G.getFullYear(),G.getMonth()+H,G.getDate()-Z,G.getHours(),G.getMinutes(),G.getSeconds()),Q.getMonth()===(G.getMonth()+H)%12)return Q};
_.aq=function(G){return{runs:[{text:G}]}};
_.yn=function(G){if(G&&G.simpleText)return G.simpleText;var H="";if(G&&G.runs)for(var Z=0;Z<G.runs.length;Z++)G.runs[Z].text&&(H+=G.runs[Z].text);return H};
IKR=function(G,H,Z,Q){return G.videoEntity&&!G.policyEntity&&Z!=="DOWNLOAD_STATE_FAILED"?[hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:SS(G.policyEntity)&&H!=="TRANSFER_STATE_FAILED"&&H!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?H==="TRANSFER_STATE_PAUSED_BY_USER"?[hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.uX(H)?[hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:G.videoEntity.lengthSeconds?gEj(G.videoEntity.lengthSeconds,Q):[]:
[hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
gEj=function(G,H){var Z=[{thumbnailOverlayTimeStatusRenderer:{text:_.Nm(Qae({seconds:G})),style:"DEFAULT"}}];H&&(G=H<=0||G<=0?0:H>=G?100:Math.ceil(H*100/G),G>0&&Z.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:G}}));return Z};
qnM=function(G,H,Z,Q,p){if(H==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(_.uX(H)||H==="TRANSFER_STATE_PRE_TRANSFER")var l=[hy("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var q,u;if(H==="TRANSFER_STATE_COMPLETE"&&((q=G.mainPlaylistEntity)==null?0:(u=q.videos)==null?0:u.length)){var B;G=(l=G.mainPlaylistEntity)==null?void 0:(B=l.videos)==null?void 0:B.length;l=(l=Spf(G))?{thumbnailOverlayBottomPanelRenderer:{text:_.Nm(l),icon:{iconType:"PLAYLISTS"}}}:void 0;l=[uif(),Object.assign({},
l!=null?l:{})]}else l=[]}a:if(H==="TRANSFER_STATE_PRE_TRANSFER")Z=AU(_.Zg("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE")Z=AU(_.Zg("WAITING_TO_DOWNLOAD"));else if(_.uX(H))Z=Math.floor(Z*100).toString(),Z=AU(_.Zg("DOWNLOADING_PERCENT",{percent:Z},"Downloading... "+Z+"%"));else{if(Q&&(_.V("playlist_is_offline_selector_killswitch")&&(p=_.tp().resolve(_.sN).isNetworkAvailable()),p)){Z=iQR(_.Zg("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
hsj(Q));break a}Z=void 0}H=H==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Zg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},l.length?{thumbnailOverlays:l}:{},Z?{viewPlaylistText:Z}:{viewPlaylistText:_.aq("")},H.length?{badges:H}:{})};
Snf=function(G,H,Z,Q,p,l){if(H==="TRANSFER_STATE_UNKNOWN"||!G)return{};if(Q==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var q=IKR(G,H,Q);if(G.videoEntity&&!G.policyEntity&&Q!=="DOWNLOAD_STATE_FAILED"){var u=_.Zg("WAITING_TO_DOWNLOAD");if(u)return{shortViewCountText:_.aq(u),publishedTimeText:void 0,thumbnailOverlays:q}}if(!SS(G.policyEntity)){l=G.policyEntity&&!M5X(G.policyEntity)?_.Zg("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Zg("TRANSFER_FAILED",{},"Download failed");var B;if((B=G.policyEntity)==null?0:B.shortMessageForDisabledAction)l=G.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:AU(l),publishedTimeText:void 0,thumbnailOverlays:q}}if(H==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.aq(_.Zg("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:q};if(H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.aq(_.Zg("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:q};if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(B=_.Zg("WAITING_TO_DOWNLOAD"),Q==="DOWNLOAD_STATE_PAUSED"&&(B=_.Zg("DOWNLOAD_PAUSED",{},"Download paused")),B))return{shortViewCountText:_.aq(B),publishedTimeText:void 0,thumbnailOverlays:q};if(_.uX(H))return G=Math.floor(Z*100).toString(),{shortViewCountText:_.aq(_.Zg("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%")),publishedTimeText:void 0,thumbnailOverlays:q};H=void 0;G.videoEntity.publishedTimestampMillis&&
(H=new Date,p&&(H=new Date(p)),H=AU(lKf(new Date(Number(G.videoEntity.publishedTimestampMillis)),H)));p=[];_.V("kevlar_woffle_badge_killswitch")||(p=[{metadataBadgeRenderer:{label:_.Zg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var t;G=AU((t=G.videoEntity.localizedStrings)==null?void 0:t.viewCount);return Object.assign({},l?{shortViewCountText:void 0}:{shortViewCountText:G},l?{}:{publishedTimeText:H},{badges:p,thumbnailOverlays:q})};
BV2=function(G,H){G=G===void 0?u_W:G;switch(H.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:H.payload.playlistId,inviteLinkURL:H.payload.inviteLinkUrl};default:return G}};
tiv=function(G,H){G=G===void 0?JD2:G;switch(H.type){case "SET_CURRENT_FORM_ID":return H=H.payload.formId,G.currentFormId===H?G:{currentFormId:H,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var Z=H.payload;H=Z.groupId;Z=Z.command;if(G.currentFormId){var Q=Object.assign({},G.commandsMap);Q[H]=Z;G=Object.assign({},G,{commandsMap:Q})}return G;case "RESET_COMMAND_MAP":return Object.assign({},G,{commandsMap:{}});default:return G}};
Dtu=function(G,H){G=G===void 0?kVb:G;switch(H.type){case "UPDATE_CANVAS_MODE":return Object.assign({},G,{currentMode:H.payload.currentMode});default:return G}};
enM=function(G,H){G=G===void 0?dtU:G;switch(H.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},G,{guideIsExpanded:H.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},G,{scrollAtTop:H.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},G,{guideIsVisibleButNotPersistent:H.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},G,{miniplayerIsActive:H.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},G,{singleOptionSurveyIsActive:H.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},G,{slimlineSurveyRatingSelectedIndex:H.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},G,{richGridMiniMode:H.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},G,{richGridItemsPerRow:H.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},G,{richGridSlimItemsPerRow:H.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},G,{richGridContainerWidth:H.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},G,{richGridStyle:H.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:H.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},G,{inlinePreviewIsActive:H.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},G,{inlinePreviewIsEnabled:H.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},G,{darkModeIsEnabled:H.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
G,{miniplayerPlaybackState:H.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},G,{tabGesturesIsActive:H.payload});case "SET_ONLINE_STATUS":return Object.assign({},G,{isOnline:H.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},G,{chipBarIsSticky:H.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},G,{frostedGlassMode:H.payload});default:return G}};
nEj=function(){return _.V("kevlar_disable_theater_mode_persistence")?!1:_.YI("START_IN_THEATER_MODE")};
$tj=function(G,H){G=G===void 0?Vio:G;switch(H.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},G,{transcription:H.payload});case "SET_OVERLAY_STATE":return Object.assign({},G,{overlay:H.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return G}};
jPu=function(){return zE(Object.assign({},{continuation:Xko,download:cDj,canvas:Dtu,reportChannelAbuse:TVb,share:fKX,talkToRecs:vEb,ui:enM,voiceSearch:$tj,watch:WOj,ypc:znW,shorts:KO3,radioButtonGroup:tiv,collabInviteLink:BV2},MiX))};
wkW=function(){return _.V("web_player_entities_middleware")?new oq(jPu(),[PUM,rD3]):new oq(jPu(),[PUM])};
_.mm=function(){hn2||(hn2=wkW());return hn2};
CUR=function(G,H,Z){if(G.length)return{titleText:_.Nm(H!=null?H:_.Zg("DOWNLOADS",void 0,"Downloads")),contents:G.map(function(Q){var p=Q.videoEntity;Q={videoId:p.videoId,title:AU(p.title),shortBylineText:AU(Q.channelEntity.title),thumbnail:p.thumbnail};var l=p.videoId?jS(_.mm().getState(),p.videoId):0;p.videoId&&Z?Q.navigationEndpoint=_.R5(p.videoId,Z,void 0,void 0,l):p.videoId&&(Q.navigationEndpoint=wNR(p.videoId,l,p.lengthSeconds));p.lengthSeconds&&(Q.thumbnailOverlays=gEj(p.lengthSeconds,l));return{playlistPanelVideoRenderer:Q}}),
totalVideos:G.length}};
iBv=function(G){return(G=(0,_.oN.getValueByKeys)(G,"playlistId"))?{playlistId:G}:null};
OBj=function(){return{}};
aK2=function(G,H){return new _.T_(function(Z,Q){G.then(function(p){if(p){if(p=H(p))return Z(p);Q()}},Q)})};
yDW=function(G){var H,Z,Q,p=(H=G.contents)==null?void 0:(Z=H.twoColumnWatchNextResults)==null?void 0:(Q=Z.autoplay)==null?void 0:Q.autoplay,l,q,u;H=(l=G.contents)==null?void 0:(q=l.twoColumnWatchNextResults)==null?void 0:(u=q.playlist)==null?void 0:u.playlist;return p&&H&&H.playlistId?{rawResponse:G,autoplayRenderer:p,playlistPanelRenderer:H,playlistId:H.playlistId}:null};
mte=function(G){var H=H===void 0?"UNKNOWN_INTERFACE":H;if(G.length===1)return G[0];var Z=oEM[H];if(Z){Z=new RegExp(Z);for(var Q=_.I(G),p=Q.next();!p.done;p=Q.next())if(p=p.value,Z.exec(p))return p}var l=[];Object.entries(oEM).forEach(function(q){var u=_.I(q);q=u.next().value;u=u.next().value;H!==q&&l.push(u)});
Z=new RegExp(l.join("|"));G.sort(function(q,u){return q.length-u.length});
Q=_.I(G);for(p=Q.next();!p.done;p=Q.next())if(p=p.value,!Z.exec(p))return p;return G[0]};
_.U7=function(G){return"/youtubei/v1/"+mte(G)};
_.Rq=function(G,H){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:G}}},H!==void 0?{durationHintMs:H}:{})}};
_.Nv=function(G,H){return _.Rq(_.aq(G),H)};
Utj=function(G,H){var Z={mode:"NORMAL"};G&&(Z.autoplayVideo=G.navigationEndpoint,Z.nextButtonVideo=G.navigationEndpoint);H&&(Z.previousButtonVideo=H.navigationEndpoint);return Z};
ADu=function(G,H,Z){if(!Z||!Z.sets)return{sets:[Utj(G,H)]};var Q=Z.sets.find(function(q){return q.mode==="NORMAL"}),p=(0,_.oN.unsafeClone)(Z);
if(!Q)return p.sets.push(Utj(G,H)),p;if(!G)return Z;Q=_.oN.getValueByKeys.apply(null,[Q].concat(_.OP(RnM)));var l=_.oN.getValueByKeys.apply(null,[G].concat(_.OP(NVU)));if(Q===l)return Z;p.sets=p.sets.filter(function(q){return q.mode!=="NORMAL"});
p.sets.push(Utj(G,H));return p};
xtj=function(G){return!!G.playlistPanelVideoRenderer&&!G.playlistPanelVideoRenderer.unplayableText};
LO2=function(G){return!!G.playlistPanelVideoRenderer&&!!G.playlistPanelVideoRenderer.title};
EE3=function(G,H){if(H.contents&&!(G>=H.contents.length)&&(G=H.contents.slice(G).find(xtj)))return G.playlistPanelVideoRenderer};
Ynj=function(G,H){if(H.contents)return(H=H.contents.find(function(Z){return!!Z.playlistPanelVideoRenderer&&Z.playlistPanelVideoRenderer.videoId===G}))?H.playlistPanelVideoRenderer:void 0};
FOW=function(G,H){return H.contents?H.contents.findIndex(function(Z){return!!Z.playlistPanelVideoRenderer&&Z.playlistPanelVideoRenderer.videoId===G}):-1};
bBe=function(G,H){return H.contents?H.contents.findIndex(function(Z){return!!Z.playlistPanelVideoRenderer&&Z.playlistPanelVideoRenderer.playlistSetVideoId===G}):-1};
Gij=function(G,H){G.contents&&H!==-1&&G.contents.splice(H,1).length===1&&G.totalVideos!==void 0&&(--G.totalVideos,delete G.videoCountText)};
_.Hde=function(G){var H=[];if(!G||!G.contents)return H;G=_.I(G.contents);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z.playlistPanelVideoRenderer&&Z.playlistPanelVideoRenderer.videoId&&H.push(Z.playlistPanelVideoRenderer.videoId);return H};
_.srR=function(G){if(G&&G.contents)return(G=G.contents.find(function(H){return!!H.playlistPanelVideoRenderer&&!!H.playlistPanelVideoRenderer.selected})||G.contents[G.currentIndex])?G.playlistPanelVideoRenderer:void 0};
Zdf=function(G,H,Z,Q,p,l,q){p=p===void 0?!1:p;l=l===void 0?!1:l;q=q===void 0?!1:q;if(G.contents&&G.contents.length!==0){Q&&(G.contents=G.contents.filter(Q));Q=G.contents.length;for(var u=0;u<Q;u++){var B=G.contents[u].playlistPanelVideoRenderer;B&&(u===H?(l&&delete B.menu,B.indexText=_.aq("\u25b6")):p||G.isInfinite||B.indexText===void 0?delete B.indexText:B.indexText=_.aq((u+1+Z).toString()))}G.currentIndex=H+Z;q&&(delete G.videoCountText,G.totalVideos=Q)}};
_.Ay=function(G){G=Qrb(G);if(G){var H=G.length;var Z=-17%H;Z<0&&(Z=H+Z);G=G.slice(H-Z)+G.slice(0,H-Z)}else G="";Z="";for(H=0;H<G.length&&G[H]!==pr2;H++)Z+=G[H];return Z};
_.l9X=function(G,H){var Z=document.body;H=H===void 0?function(u){return u}:H;
var Q,p=null;G=_.I(G);for(Q=G.next();!Q.done;Q=G.next()){var l=Q.value;Q="div";l[2]&&(Q=H(l[2]));Q=document.createElement(Q);p||(p=Q);var q=l[0];l=l[1];q&&(Q.id=H(q));if(l)for(l=_.I(l),q=l.next();!q.done;q=l.next())Q.classList.add(H(q.value));Z.appendChild(Q);Z=Q}return[p,Z]};
g32=function(G,H){for(var Z="",Q=0;Q<H;Q++)Z+=G.charAt(Math.floor(Math.random()*G.length));return Z};
xa=function(G){return g32("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",G)};
LN=function(G){return g32("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",G)};
E7=function(G){return g32("0123456789",G)};
I9R=function(){var G=performance.now(),H=new Date;var Z="2."+H.getFullYear()+String(H.getMonth()+1).padStart(2,"0")+String(H.getDate()).padStart(2,"0");for(var Q,p=Math.floor(Math.random()*11)+15,l=[],q=0;q<p;q++)l.push(Math.floor(Math.random()*26476865)+24547720);Q=l.join(",");var u=xa(10),B=xa(100),t=xa(102),D=xa(106),d=xa(108),e=xa(11),n=xa(1140),c=xa(123),W=xa(14),M=xa(16),r=xa(1900),w=xa(23),x=xa(26),U=xa(34),R=xa(397),L=xa(44),H3=xa(5),qX=xa(72),B3=xa(74),fW=xa(75),e2=xa(88),$R=xa(91),ie="rr1---sn-q4flrnl6 rr2---sn-5hne6nsz rr1---sn-aigzrnld rr2---sn-q4fl6ns7 rr1---sn-q4fl6nsr rr2---sn-q4flrnek rr5---sn-q4flrnel rr3---sn-5hne6nz6 rr4---sn-q4flrnle rr1---sn-q4flrnez rr2---sn-hgn7rn7y rr3---sn-ntq7yner rr3---sn-hgn7yn7l rr4---sn-5hne6nzk rr5---sn-q4flrn7y rr5---sn-4g5ednsy rr5---sn-q4flrnsd rr4---sn-q4fl6nlz rr4---sn-q4fl6nsy rr5---sn-t0a7ln7d".split(" ");
var W3=ie[Math.floor(Math.random()*ie.length)];var DT=(new Date("2010-01-01")).getTime();var UR=(new Date(DT+Math.random()*((new Date).getTime()-DT))).toISOString().split("T")[0];for(var zx,be=[],J_=0;J_<4;J_++)be.push(Math.floor(Math.random()*100));zx=be.join(".");var rG=Number(E7(5)),Kw=Number(E7(6)),cD=Number(E7(7)),ec=Number(E7(9)),gf=E7(1),sR=E7(10),ep=E7(16),Qh=E7(19),$w=E7(2),Zt=E7(20),rJ=E7(21),N7=E7(3),t_=E7(4),Bd=E7(5),HD=E7(6),xR=E7(7),V4=E7(8),nm=E7(9);var E_=g32("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var Ma=[LN(5),LN(5),LN(5)].join("%2C"),yk=[E7(3),E7(5),E7(5)].join("%2C"),YJ=LN(0),IN=LN(1),Yw=LN(10),vD=LN(108),gk=LN(11),w3=LN(12),hR=LN(13),EA=LN(14),Nj=LN(15),q4=LN(16),ty=LN(17),KW=LN(18),au=LN(19),NX=LN(2),Xa=LN(20),Vh=LN(22),MU=LN(23),jc=LN(24),fw=LN(266),Tx=LN(3),Oq=LN(30),nq=LN(34),nw=LN(35),KE=LN(36),oz=LN(4),ay=LN(40),xF=LN(43),FN=LN(47),gj=LN(5),St=LN(6),BA=LN(7),ls=LN(75),Fb=LN(8),WD=LN(80),oj=LN(9),BD="https://www."+LN(12)+".com",kr={},Yr={},AR={},lb={},a0={},Ok={},aR={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:Q}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:Z},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+LN(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:Z},{key:"client.name",value:"WEB"},{key:"client.fexp",value:Q}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:rJ+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+LN(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:ay,ypcGetOfflineUpsellEndpoint:{params:WD}},trackingParams:nw+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&cnr="+$w+"&ratebypass=yes&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&c=WEB&txp="+xR+"&n="+M+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Kw,width:640,height:360,lastModified:ep,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:xR,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+yk+"&mn="+
Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&cnr="+$w+"&ratebypass=yes&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&c=WEB&txp="+xR+"&n="+M+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+vD+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Kw,width:1280,
height:720,lastModified:ep,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:xR,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+yk+"&mn="+Ma+"&ms="+
Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+nm+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:cD,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:nm,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cD,approxDurationMs:xR},{itag:248,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+yk+"&mn="+Ma+"&ms="+Ma+"&mv="+
IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fwebm&ns="+jc+"&gir="+Tx+"&clen="+nm+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:cD,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:nm,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:399,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+nm+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:cD,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:nm,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:136,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+nm+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:cD,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:nm,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Kw,approxDurationMs:xR},{itag:247,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+yk+"&mn="+
Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fwebm&ns="+jc+"&gir="+Tx+"&clen="+nm+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:cD,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:nm,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Kw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:398,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+nm+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:cD,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:nm,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Kw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:135,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Kw,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Kw,approxDurationMs:xR},{itag:244,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+yk+"&mn="+
Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fwebm&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+vD+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:Kw,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Kw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:397,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Kw,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Kw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:134,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Kw,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Kw,highReplication:!0,approxDurationMs:xR},{itag:243,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fwebm&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:Kw,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Kw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:396,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Kw,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Kw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:133,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Kw,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Kw,approxDurationMs:xR},{itag:242,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+yk+"&mn="+
Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fwebm&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:Kw,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Kw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:395,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Kw,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Kw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:160,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Kw,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rG,approxDurationMs:xR},{itag:278,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+yk+"&mn="+
Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fwebm&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/webm; codecs="vp9"',bitrate:Kw,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:394,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&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="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=video%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:rG,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:rG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xR},{itag:140,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=audio%2Fmp4&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Kw,
initRange:{start:"0",end:"631"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Kw,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:xR,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+
$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=audio%2Fwebm&ns="+jc+"&gir="+Tx+"&clen="+xR+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:rG,initRange:{start:"0",end:"265"},indexRange:{start:N7,
end:t_},lastModified:ep,contentLength:xR,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:rG,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:xR,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=audio%2Fwebm&ns="+
jc+"&gir="+Tx+"&clen="+xR+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:rG,initRange:{start:"0",end:"265"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:xR,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:rG,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:xR,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+W3+".googlevideo.com/videoplayback?expire="+sR+"&ei="+w+"&ip="+zx+"&id=o-AF"+xF+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+yk+"&mn="+Ma+"&ms="+Ma+"&mv="+IN+"&mvi="+gf+"&pl="+$w+"&initcwndbps="+xR+"&siu="+gf+"&spc="+L+"&vprv="+gf+"&svpuc="+gf+"&mime=audio%2Fwebm&ns="+jc+"&gir="+Tx+"&clen="+V4+"&dur="+V4+"&lmt="+ep+"&mt="+sR+"&fvip=3&keepalive="+Tx+"&c=WEB&txp="+
xR+"&n="+q4+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+d,mimeType:'audio/webm; codecs="opus"',bitrate:Kw,initRange:{start:"0",end:"265"},indexRange:{start:N7,end:t_},lastModified:ep,contentLength:V4,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Kw,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:xR,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="+nm+"&docid="+e+"&ei="+w+"&feature="+u+"&fexp="+YJ+"&ns="+NX+"&plid="+M+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+IN+"&el="+Yw+"&len="+t_+"&of="+Vh+
"&uga="+$w+"&vm="+fw},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+nm+"&docid="+e+"&ei="+w+"&feature="+u+"&fexp="+YJ+"&ns="+NX+"&plid="+M+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+IN+"&el="+Yw+"&len="+t_+"&of="+Vh+"&uga="+$w+"&vm="+fw},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+nm+"&docid="+e+"&ei="+w+"&feature="+u+"&fexp="+YJ+"&ns="+NX+"&plid="+M+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
IN+"&el="+Yw+"&len="+t_+"&of="+Vh+"&uga="+$w+"&vm="+fw},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+w+"&m="+e2+"&oid="+Vh+"&plid="+M+"&pltype="+BA+"&ptchn="+Vh+"&ptk="+W+"&video_id="+e},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+nm+"&docid="+e+"&ei="+w+"&event="+EA+"&feature="+u+"&fexp="+YJ+"&ns="+NX+"&plid="+M+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+IN},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
q4+"&ver=2&cmt=1."+N7+"&fmt="+N7+"&fs=0&rt="+Bd+"&euri&lact="+N7+"&cl="+nm+"&mos="+gf+"&volume=100&cbrand="+gj+"&cbr="+St+"&cbrver="+zx+"&c=WEB&cver="+Z+"&cplayer=UNIPLAYER&cos="+oj+"&cosver="+xR+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+$w+"&len="+V4+"&fexp="+Ma+"&feature=g-high-rec&afmt="+N7+"&muted=0&conn=1&docid="+e+"&ei="+w+"&plid="+M+"&vm="+LN(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
e+"&caps="+Tx+"&opi="+nm+"&xoaf="+gf+"&hl="+NX+"&ip="+zx+"&ipbits="+gf+"&expire="+sR+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+zx+"&key="+Tx+"&lang="+H3,name:{simpleText:KW},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+e+"&caps="+Tx+"&opi="+nm+"&xoaf="+gf+"&hl="+NX+"&ip="+zx+"&ipbits="+gf+"&expire="+sR+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+zx+"&key="+Tx+"&kind="+Tx+"&lang="+NX,name:{simpleText:KW},
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:gk,title:Xa,lengthSeconds:"1155",keywords:[Xa,oz,hR,gj],channelId:jc,isOwnerViewing:!1,shortDescription:BA,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+e+"/hqdefault.jpg?sqp=-oaymwE"+KE+"G&rs="+nq,width:168,height:94},{url:"https://i.ytimg.com/vi/"+e+"/hqdefault.jpg?sqp=-oaymwE"+KE+
"G&rs="+nq,width:196,height:110},{url:"https://i.ytimg.com/vi/"+e+"/hqdefault.jpg?sqp=-oaymwE"+KE+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+e+"/hqdefault.jpg?sqp=-oaymwE"+KE+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+e+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:xR,author:hR,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:xR,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Vh+"/featured_channel.jpg?v="+Fb,width:40,height:40}]},trackingParams:nw+"=",navigationEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"/channel/"+jc,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:jc}},channelName:hR,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:KW}]},subscribed:!1,enabled:!0,type:"FREE",channelId:jc,showPreferences:!1,subscribedButtonText:{runs:[{text:ty}]},unsubscribedButtonText:{runs:[{text:Nj}]},
trackingParams:nw+"=",unsubscribeButtonText:{runs:[{text:St}]},serviceEndpoints:[{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[jc],params:Fb}},{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:ay,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:nw+"=",dialogMessages:[{runs:[{text:EA},
{text:hR},{text:St}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:w3}]},serviceEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[jc],params:Fb}},accessibility:{label:Nj},trackingParams:nw+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ty}]},accessibility:{label:au},
trackingParams:nw+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:gk}},unsubscribeAccessibility:{accessibilityData:{label:au}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:V4},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[jc],
params:Fb}},unsubscribeCommand:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[jc],params:Fb}},addToWatchLaterCommand:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:gk,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:gk}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+e+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+KE+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+e+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+gk,width:1280,
height:720},title:{simpleText:ty},description:{simpleText:Nj},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+gj,externalChannelId:jc,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:xR,category:"Travel & Events",publishDate:UR,ownerChannelName:hR,uploadDate:UR}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:BA},trackingParams:nw+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:ay,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:nw+"="}}],headerText:{simpleText:w3},icon:{infoCardIconRenderer:{trackingParams:nw+"="}},closeButton:{infoCardIconRenderer:{trackingParams:nw+"="}},trackingParams:nw+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:nw+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+gk+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:E_,interpreterSafeUrl:(kr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Oq+".js",kr),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:gj},{text:gj,bold:!0}]},endpoint:{clickTrackingParams:ay,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:nw+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:St}]},actionButton:{buttonRenderer:{text:{runs:[{text:q4}]},navigationEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+e,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
e,target:"TARGET_NEW_WINDOW"}},trackingParams:nw+"="}},trackingParams:nw+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+qX+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+qX+"=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:xR,endMs:xR,title:{accessibility:{accessibilityData:{label:Fb}},simpleText:w3},metadata:{simpleText:gj},callToAction:{simpleText:w3},dismiss:{simpleText:Fb},endpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"/channel/"+jc,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:jc}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:w3}]},subscribed:!1,enabled:!0,type:"FREE",channelId:jc,showPreferences:!1,
subscribedButtonText:{runs:[{text:BA}]},unsubscribedButtonText:{runs:[{text:au}]},trackingParams:nw+"=",unsubscribeButtonText:{runs:[{text:BA}]},serviceEndpoints:[{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[jc],params:Fb}},{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:ay,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:nw+
"=",dialogMessages:[{runs:[{text:Nj},{text:St},{text:gj}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:w3}]},serviceEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[jc],params:Fb}},accessibility:{label:gj},trackingParams:nw+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:q4}]},
accessibility:{label:EA},trackingParams:nw+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:gj}},unsubscribeAccessibility:{accessibilityData:{label:Xa}}}},trackingParams:nw+"=",isSubscribe:!0,id:Zt}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+e+"/hqdefault.jpg?sqp=-oaymwE"+KE+"G&rs="+U,width:168,height:94},{url:"https://i.ytimg.com/vi/"+e+"/hqdefault.jpg?sqp=-oaymwE"+KE+"G&rs="+nq,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+e+"/hqdefault.jpg?sqp=-oaymwE"+KE+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+e+"/hqdefault.jpg?sqp=-oaymwE"+KE+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+e+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:xR,endMs:xR,title:{accessibility:{accessibilityData:{label:oz}},simpleText:St},metadata:{simpleText:Nj},endpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
gk,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:gk,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+W3+".googlevideo.com/videoplayback?source=youtube&oeis="+gf+"&c=WEB&oad="+t_+"&ovd="+t_+"&oaad="+Bd+"&oavd="+Bd+"&ocs="+N7+"&oewis="+gf+"&oputc="+gf+"&ofpcc="+gf+"&siu="+gf+"&msp="+gf+"&odepv="+gf+
"&id=o-AF"+xF+"&ip="+zx+"&initcwndbps="+xR+"&mt="+sR+"&oweuc="+YJ}}}}},trackingParams:nw+"=",id:Zt,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:hR}},simpleText:Nj},style:"DEFAULT"}}]}}],startMs:xR,trackingParams:nw+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:gf,offsetEndMilliseconds:Bd},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nm+";dc_trk_cid="+nm+";dc_dbm_token="+d+";ord="+sR+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";dc_rui="+gf+";dc_exteid="+Zt+";dc_av="+N7+";dc_sk="+gf+";dc_ctype="+$w+";dc_ref=http://www.youtube.com/video/"+gk+";dc_pubid="+gf+";dc_btype=23?gclid="+$R+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+gf+"&ns="+gf+"&event="+gf+"&device="+gf+"&content_v="+e+"&el="+Yw+"&ei="+w+"&devicever="+Z+"&bti="+xR+"&format="+HD+"&break_type="+gf+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+gf+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+zx+"&slot_pos="+gf+"&slot_len="+gf+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+yk+"&ad_len="+Bd+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
gk+"&aqi="+w+"&ad_rmp="+gf+"&sli="+gf}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+
";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+HD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+xR+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&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"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&ctype="+N7+"&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"+
n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_engaged_view&ctype="+N7+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+HD+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
nm+";dc_trk_cid="+nm+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";ord="+nm+";dc_rui="+gf+";dc_exteid="+Qh+";dc_av="+gf+";dc_sk="+gf+";dc_ctype="+$w+";dc_pubid="+gf+";dc_btype=3?gclid="+$R+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+MU+"&ad_cpn=[AD_CPN]&id="+St+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+St+"&dc_pubid="+gf+"&dc_exteid="+Zt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+MU+"&ad_cpn=[AD_CPN]&id="+St+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+gf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+St+"&avm="+gf+"&dc_pubid="+gf+"&dc_exteid="+
Zt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&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="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
t+"&sig="+MU+"&ad_cpn=[AD_CPN]&id="+St+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+gf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+St+"&dc_pubid="+gf+"&dc_exteid="+Zt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+HD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+HD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:ay,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+
N7+"&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/"+e+"/mqdefault.jpg",width:320,height:180}]},trackingParams:nw+"="},trackingParams:nw+
"=",templatedCountdown:{templatedAdText:{text:ty,isTemplated:!0,trackingParams:nw+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Yw,isTemplated:!1,trackingParams:nw+"="},trackingParams:nw+"="}},trackingParams:nw+"=",skipOffsetMilliseconds:5E3}},trackingParams:nw+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Nj},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nw+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:oj,isTemplated:!1,trackingParams:nw+"="},trackingParams:nw+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:BA,isTemplated:!0,trackingParams:nw+"="}},trackingParams:nw+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:ay,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Yr.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+r+"&hl="+NX+"&origin=www.youtube.com&ata_theme="+oz,Yr),trackingParams:nw+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:nw+"="}},hoverText:{runs:[{text:Nj}]},trackingParams:nw+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+FN+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nw+"="},headline:{text:BA,isTemplated:!1,trackingParams:nw+"="},description:{text:Xa,
trackingParams:nw+"="},actionButton:{buttonRenderer:{text:{simpleText:w3},navigationEndpoint:{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nm+";dc_trk_cid="+nm+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";ord="+nm+";dc_rui="+gf+";dc_exteid="+Zt+";dc_av="+gf+";dc_sk="+gf+";dc_ctype="+$w+";dc_pubid="+gf+";dc_btype=3?gclid="+$R+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nw+"="}},startMs:gf,trackingParams:nw+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:BA},elementId:Fb}},elementId:gj,trackingParams:nw+"=",legacyInfoCardVastExtension:gk,sodarExtensionData:{siub:EA,bgub:Yw,scs:EA,bgp:St},externalVideoId:gk,adLayoutLoggingData:{serializedAdServingDataEntry:w3},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+FN+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nw+"="},
headline:{text:KW,isTemplated:!1,trackingParams:nw+"="},description:{text:w3,isTemplated:!1,trackingParams:nw+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:au},navigationEndpoint:{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nm+";dc_trk_cid="+nm+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";ord="+nm+";dc_rui="+gf+";dc_exteid="+
Zt+";dc_av="+gf+";dc_sk="+gf+";dc_ctype="+$w+";dc_pubid="+gf+";dc_btype=3?gclid="+$R+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+
gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nw+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:nw+"="}},navigationEndpoint:{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nm+";dc_trk_cid="+
nm+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";ord="+nm+";dc_rui="+gf+";dc_exteid="+Zt+";dc_av="+gf+";dc_sk="+gf+";dc_ctype="+$w+";dc_pubid="+gf+";dc_btype=3?gclid="+$R+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+
c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nw+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:nw+"="},abandonCommands:{commands:[{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&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="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+
gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:ay,commandExecutorCommand:{commands:[{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:au,isTemplated:!1,trackingParams:nw+
"="},trackingParams:nw+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:w3},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+xR+";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="+nm+";dc_trk_cid="+nm+";ord="+sR+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";dc_rui="+gf+";dc_exteid="+Zt+";dc_av="+N7+";dc_sk="+gf+";dc_ctype="+$w+";dc_ref=http://www.youtube.com/video/"+gk+";dc_pubid="+gf+";dc_btype=23?gclid="+$R+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+gf+"&ns="+gf+"&event="+gf+"&device="+gf+"&content_v="+e+"&el="+Yw+"&ei="+w+"&devicever="+Z+"&bti="+xR+"&format="+HD+"&break_type="+gf+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+gf+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+zx+"&slot_pos="+gf+"&slot_len="+gf+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
yk+"&ad_len="+Bd+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+gk+"&aqi="+w+"&ad_rmp="+gf+"&sli="+gf}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+HD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+
x+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+xR+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&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"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&ctype="+N7+"&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"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_engaged_view&ctype="+N7+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+HD+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+MU+"&ad_cpn=[AD_CPN]&id="+
St+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+St+"&dc_pubid="+gf+"&dc_exteid="+Zt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+
"&sig="+MU+"&ad_cpn=[AD_CPN]&id="+St+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+gf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+St+"&avm="+gf+"&dc_pubid="+gf+"&dc_exteid="+Zt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&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="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+MU+"&ad_cpn=[AD_CPN]&id="+St+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+gf},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+St+"&dc_pubid="+gf+"&dc_exteid="+Zt+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+HD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+HD+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+
N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&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/"+e+"/mqdefault.jpg",width:320,height:180}]},trackingParams:nw+"="},trackingParams:nw+"=",templatedCountdown:{templatedAdText:{text:Fb,isTemplated:!0,trackingParams:nw+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:oz,isTemplated:!1,trackingParams:nw+"="},trackingParams:nw+"="}},
trackingParams:nw+"=",skipOffsetMilliseconds:5E3}},trackingParams:nw+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:oj},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nw+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:au,isTemplated:!1,trackingParams:nw+"="},trackingParams:nw+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:au,
isTemplated:!0,trackingParams:nw+"="}},trackingParams:nw+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:ay,openPopupAction:{popup:{aboutThisAdRenderer:{url:(AR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+r+"&hl="+NX+"&origin=www.youtube.com&ata_theme="+oz,AR),trackingParams:nw+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:nw+"="}},hoverText:{runs:[{text:Nj}]},trackingParams:nw+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nw+"="},headline:{text:oz,isTemplated:!1,trackingParams:nw+"="},description:{text:Xa,trackingParams:nw+"="},actionButton:{buttonRenderer:{text:{simpleText:gj},navigationEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nw+"="}},startMs:gf,trackingParams:nw+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Xa},elementId:KW}},elementId:ty,trackingParams:nw+"=",legacyInfoCardVastExtension:BA,sodarExtensionData:{siub:gk,bgub:q4,scs:gk,bgp:hR},externalVideoId:gk,adLayoutLoggingData:{serializedAdServingDataEntry:q4},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B3+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:nw+"="},headline:{text:Fb,
isTemplated:!1,trackingParams:nw+"="},description:{text:KW,isTemplated:!1,trackingParams:nw+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:oz},navigationEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nw+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:nw+"="}},navigationEndpoint:{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+
gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nw+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:nw+"="},abandonCommands:{commands:[{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&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="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+$w+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:ay,commandExecutorCommand:{commands:[{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:BA,isTemplated:!1,trackingParams:nw+"="},trackingParams:nw+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Xa},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+gf+";dc_exteid="+Zt+";met="+gf+";ecn"+gf+"="+gf+";etm1="+gf+";eid1="+
xR+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:EA}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Nj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Bd,offsetEndMilliseconds:HD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+$w+"&token=ALHj"+R+"&index="+gf+"&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="+Z+"&m_pos_ms="+Bd}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:HD,offsetEndMilliseconds:HD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+N7+"&token=ALHj"+R+"&index="+gf+"&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="+
Z+"&m_pos_ms="+HD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:HD,offsetEndMilliseconds:HD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+N7+"&token=ALHj"+R+"&index="+gf+"&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="+
Z+"&m_pos_ms="+HD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:HD,offsetEndMilliseconds:HD},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+N7+"&token=ALHj"+R+"&index="+gf+"&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="+
Z+"&m_pos_ms="+HD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:St}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:HD,offsetEndMilliseconds:$w},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+N7+"&token=ALHj"+R+"&index="+gf+"&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="+
Z+"&m_pos_ms="+HD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:EA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:$w,offsetEndMilliseconds:$w},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+w+"&m_pos="+$w+"&token=ALHj"+R+"&index="+gf+"&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="+
Z+"&m_pos_ms="+$w}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:q4,isTemplated:!1,trackingParams:nw+"="},description:{text:Yw,isTemplated:!1,trackingParams:nw+"="},actionButton:{buttonRenderer:{text:{simpleText:oj},navigationEndpoint:{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
nm+";dc_trk_cid="+nm+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";ord="+nm+";dc_rui="+gf+";dc_exteid="+Zt+";dc_av="+gf+";dc_sk="+gf+";dc_ctype="+$w+";dc_pubid="+gf+";dc_btype=3?gclid="+$R+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nw+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+FN+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:nw+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+fW+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nw+"="},navigationEndpoint:{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nm+";dc_trk_cid="+nm+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";ord="+nm+
";dc_rui="+gf+";dc_exteid="+Zt+";dc_av="+gf+";dc_sk="+gf+";dc_ctype="+$w+";dc_pubid="+gf+";dc_btype=3?gclid="+$R+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nw+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:ay,openPopupAction:{popup:{aboutThisAdRenderer:{url:(lb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+r+"&hl="+NX+"&origin=www.youtube.com&ata_theme="+oz,lb),trackingParams:nw+"="}},popupType:"DIALOG"}},trackingParams:nw+"="}},hoverText:{runs:[{text:KW}]},trackingParams:nw+"="}},adVideoId:gk,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:St},associatedCompositePlayerBytesLayoutId:q4}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:KW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:BA,isTemplated:!1,trackingParams:nw+"="},description:{text:gj,isTemplated:!1,trackingParams:nw+"="},actionButton:{buttonRenderer:{text:{simpleText:EA},navigationEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+
c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nw+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B3+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:nw+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ls+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nw+"="},navigationEndpoint:{clickTrackingParams:ay,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+
gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nw+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:ay,openPopupAction:{popup:{aboutThisAdRenderer:{url:(a0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+r+"&hl="+NX+"&origin=www.youtube.com&ata_theme="+oz,a0),trackingParams:nw+"="}},popupType:"DIALOG"}},trackingParams:nw+"="}},
hoverText:{runs:[{text:oj}]},trackingParams:nw+"="}},adVideoId:gk,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+gk+"&cid="+x+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:oz},associatedCompositePlayerBytesLayoutId:q4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yw}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:w3,
isTemplated:!1,trackingParams:nw+"="},description:{text:EA,isTemplated:!1,trackingParams:nw+"="},actionButton:{buttonRenderer:{text:{simpleText:Xa},navigationEndpoint:{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nm+";dc_trk_cid="+nm+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";ord="+nm+";dc_rui="+gf+";dc_exteid="+Zt+";dc_av="+gf+";dc_sk="+gf+";dc_ctype="+
$w+";dc_pubid="+gf+";dc_btype=3?gclid="+$R+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+
U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:nw+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+FN+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:nw+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+fW+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:nw+
"="},navigationEndpoint:{clickTrackingParams:ay,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+nm+";dc_trk_cid="+nm+";dc_dbm_token="+d+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+gf+";ord="+nm+";dc_rui="+gf+";dc_exteid="+Zt+";dc_av="+gf+";dc_sk="+gf+";dc_ctype="+$w+";dc_pubid="+gf+";dc_btype=3?gclid="+$R+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+c+"AxAA&ase=2&num="+gf+"&cid="+x+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+BD+"&label=video_click_to_advertiser_site&ctype="+N7+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:nw+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:ay,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ok.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+r+"&hl="+NX+"&origin=www.youtube.com&ata_theme="+oz,Ok),trackingParams:nw+"="}},popupType:"DIALOG"}},trackingParams:nw+
"="}},hoverText:{runs:[{text:EA}]},trackingParams:nw+"="}},adVideoId:gk,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+c+"AxAA&sigh="+e+"&cid="+x+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:KW},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:q4}},adSlotLoggingData:{serializedSlotAdServingDataEntry:KW}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Oq,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Oq,command:{innertubeCommand:{clickTrackingParams:ay,ypcGetOfflineUpsellEndpoint:{params:WD}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:nw+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:sR,nanos:ec}}}},uOR=JSON.stringify(aR),yd=performance.now()-G;return{objectRepresentation:aR,jsonRepresentation:uOR,generationTime:yd}};
q5U=function(G,H){if(G===H)return!0;if(!G||!H||typeof G!==typeof H)return!1;if(G instanceof Array&&H instanceof Array){if(G.length!==H.length)return!1;for(var Z=0;Z<G.length;Z++)if(!q5U(G[Z],H[Z]))return!1;return!0}if(typeof G==="object"&&typeof H==="object"&&G&&H){for(Z in G)if(!(Z in H&&q5U(G[Z],H[Z])))return!1;for(var Q in H)if(!(Q in G))return!1;return!0}return!1};
_.F8=function(){if(!Ya){Ya=new fu(new S5R);var G=_.eA("client_streamz_web_flush_count",-1);G!==-1&&(Ya.invocationLimit=G)}return Ya};
bX=function(G,H,Z,Q){if(G===H)return!0;if(Array.isArray(G)&&Array.isArray(H)){if(G.length!==H.length)return!1;for(var p=0;p<G.length;p++)if(!bX(G[p],H[p],Z,Q))return!1;return!0}if(G instanceof Set||H instanceof Set){if(G instanceof Set&&H instanceof Set){if(G.size!==H.size)return!1;Q=_.I(G.values());for(p=Q.next();!p.done;p=Q.next())if(!H.has(p.value))return!1;return!0}return!1}if(G instanceof Function){if(Q)return!0;G.name===""&&_.me(Error("Qf"),"ERROR");return!1}if(G instanceof Date&&H instanceof
Date)return G.getTime()===H.getTime();if(G instanceof Object&&H instanceof Object){if(ulu(G)&&ulu(H))try{return G.equals(H)}catch(q){_.me(Error("Rf`"+q),"ERROR")}p=Object.getOwnPropertyNames(G).filter(function(q){return Z?G[q]!==void 0:!0});
var l=Object.getOwnPropertyNames(H).filter(function(q){return Z?H[q]!==void 0:!0});
if(p.length!==l.length)return!1;p=_.I(p);for(l=p.next();!l.done;l=p.next())if(l=l.value,!bX(G[l],H[l],Z,Q))return!1;return!0}return!1};
ulu=function(G){G=Object.getPrototypeOf(G).equals;return G instanceof Function&&G.length===1};
_.tru=function(){return _.S(function(G){if(G.nextAddress==1)return ByM!==2?G.jumpTo(2):G.yield(Ji3(),3);G.nextAddress!=2&&(ByM=G.yieldResult);return G.return(ByM)})};
_.dJ2=function(){return _.S(function(G){if(G.nextAddress==1)return _.V("ab_pl_man")?kij!==2?G.jumpTo(2):G.yield(DJj(),3):G.return(1);G.nextAddress!=2&&(kij=G.yieldResult);return G.return(kij)})};
Vrv=function(){return _.S(function(G){if(G.nextAddress==1)return _.V("ab_fk_sk_cl")?egU!==2?G.jumpTo(2):G.yield(n3R(),3):G.return(1);G.nextAddress!=2&&(egU=G.yieldResult);return G.return(egU)})};
_.ci2=function(){return _.S(function(G){if(G.nextAddress==1)return _.V("ab_det_apb_b")?$JM!==2?G.jumpTo(2):G.yield(Xru(),3):G.return(1);G.nextAddress!=2&&($JM=G.yieldResult);return G.return($JM)})};
v3M=function(){var G;return _.S(function(H){if(H.nextAddress==1)return H.yield(Promise.all([_.tru(),_.ci2(),_.dJ2(),Vrv()]),2);if(H.nextAddress!=3)return Tyj()?H.return(!0):H.yield(_.f9M(),3);G=H.yieldResult;return H.return(G===0)})};
Tyj=function(){var G=!1,H=function(Z,Q){W93.increment(Q,Z);Z===0&&(G=!0)};
H(_.zgR(),"j.s_");H(ByM,"f.i_");H($JM,"a.b_");H(kij,"p.m_");H(egU,"i.f_");K9f===2&&(K9f=_.MrX(jrR));H(K9f,"e.h_");_.V("ks_det_gpbl")||H(_.PAj(),"p.i_");_.V("ks_get_o_pp")||H(_.rio(),"g.o_");_.V("ab_deg_unex_thr")||H(_.wrv(),"a.o_");H(hgv,"s.t_");_.V("ab_det_sc_inj_enf")&&H(_.CAo(),"s.i_");H(idW,"d.p_");H(_.OdU(_.Gz),"o.p_");H(_.a9f()===0?0:_.yiW(),"o.a_");return _.V("debug_sk_em_precheck")?!0:G};
mJo=function(){var G=[].concat(_.OP(o3o));try{var H=I9R();G.push({jsonRepresentation:H.jsonRepresentation,objectRepresentation:H.objectRepresentation})}catch(Z){G=[].concat(_.OP(o3o))}return G};
UJX=function(){var G=["adPlacements","adSlots"];try{return G.filter(function(){return!0}).length!==G.length?0:1}catch(H){return 0}};
_.rio=function(){if(UJX()===0)return 0;var G=I9R(),H=G.objectRepresentation,Z=(0,_.oN.unsafeClone)(H),Q=[];if(H&&typeof H==="object")for(var p in H)Q.push(p);else return 4;G=G.objectRepresentation.adPlacements;if(!(G&&G.length>0))return 4;try{if(!q5U(Q,Object.getOwnPropertyNames(H)))return 0}catch(l){return 0}return q5U(Z,H)?1:0};
_.OdU=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var H=Object.getOwnPropertyNames(Object.prototype),Z=0;Z<G.length;Z++)for(var Q=_.Ay(G[Z]),p=_.I(H),l=p.next();!l.done;l=p.next())if(Q===l.value)return 0;return 1};
Rg2=function(G){var H=_.Ay(G[1]);if(G[0]===null)return H;G=G[0];for(var Z={},Q=0;Q<G.length;Q++){var p=_.Ay(G[Q]);if(Q===0)Z[p]=H;else{var l={};l[p]=Z;Z=l}}return Z};
_.a9f=function(){for(var G=_.H$,H=0;H<G.length;H++){var Z=Rg2(G[H]),Q=[];Q.push(Z);if(Q.length===0)return 0}return 1};
_.yiW=function(){for(var G=_.H$,H={},Z=0;Z<G.length;H={rk7:void 0},Z++){var Q=[Rg2(G[Z])];H.rk7=[];Q.forEach(function(p){return function(l){p.rk7[p.rk7.length]=l}}(H));
if(H.rk7.length===0)return 0}return 1};
_.zgR=function(){for(var G=_.I(mJo()),H=G.next();!H.done;H=G.next()){var Z=H.value;H=Z.jsonRepresentation;Z=Z.objectRepresentation;try{var Q=JSON.parse(H);if(!bX(Q,Z,!1,!1))return 0}catch(p){return 0}}return 1};
_.CAo=function(){try{var G=_.$M("ab_det_sc_inj_val");G.length===1&&G[0]===""&&(G=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var H=document.querySelectorAll("script"),Z=_.I(H),Q=Z.next();!Q.done;Q=Z.next())for(var p=Q.value,l=_.I(G),q=l.next();!q.done;q=l.next()){var u=q.value;H=void 0;if((H=p.textContent)==null?0:H.includes(u))return 0}}catch(B){return 4}return 1};
_.f9M=function(){var G,H,Z,Q,p,l,q;return _.S(function(u){switch(u.nextAddress){case 1:_.XV(u,2),G=_.I(o3o),H=G.next();case 4:if(H.done)return u.return(1);Q=Z=H.value;p=Q.jsonRepresentation;l=Q.objectRepresentation;return u.yield((new Response(p,{status:200})).json(),7);case 7:q=u.yieldResult;if(!bX(q,l,!1,!1))return u.return(0);H=G.next();u.jumpTo(4);break;case 2:return _.Wg(u),u.return(4)}})};
_.wrv=function(){try{btoa("abc")}catch(G){return 0}return 1};
Ji3=function(){var G,H,Z,Q,p,l,q,u,B,t,D;return _.S(function(d){switch(d.nextAddress){case 1:_.XV(d,2),G=_.I(mJo()),H=G.next();case 4:if(H.done)return d.return(1);Q=Z=H.value;p=Q.jsonRepresentation;l=Q.objectRepresentation;q=btoa(p);u="data:application/json;base64,"+q;B=new Request(u);Object.defineProperty(B,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(B,"method",{get:function(){return"POST"}});
Object.defineProperty(B,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(B,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(B,"body",{get:function(){return new ReadableStream}});
return d.yield(fetch(B),7);case 7:return t=d.yieldResult,d.yield(t.json(),8);case 8:D=d.yieldResult;if(!bX(D,l,!1,!1))return d.return(0);H=G.next();d.jumpTo(4);break;case 2:return _.Wg(d),d.return(4)}})};
_.MrX=function(G){if(!G||!G.length||typeof G==="string")return 0;for(var H=function(p){return _.Ay(p)},Z=2,Q=0;Q<G.length&&(Z=_.NyU(_.l9X(G[Q],H)),Z!==0);Q++);
return Z};
_.NyU=function(G){var H=_.I(G);G=H.next().value;H=H.next().value;try{var Z=document.createElement("div");document.body.appendChild(Z);var Q=getComputedStyle(Z).display;document.body.removeChild(Z);if(Q==="none")return 4;var p=getComputedStyle(H).display==="none"?0:1;document.body.removeChild(G);return p}catch(l){return 4}};
n3R=function(){var G,H,Z;return _.S(function(Q){G=new _.sD;H=document.createElement("button");H.classList.add("ytp-ad-skip-button");H.style.opacity="0";H.style.height="0px";H.style.width="0px";H.style.padding="0px";H.style.border="none";Z=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.onclick=function(){G.resolve(0);Z()};
document.body.appendChild(H);setTimeout(function(){Z();G.resolve(1)},50);
return Q.return(G.promise)})};
DJj=function(){var G,H,Z,Q,p,l,q;return _.S(function(u){G=new _.sD;H=document.createElement("ytd-player");try{document.body.prepend(H)}catch(B){return u.return(4)}Z=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.getElementsByTagName("div").length>0?Q=H.getElementsByTagName("div")[0]:(Q=document.createElement("div"),H.appendChild(Q));p=document.createElement("div");Q.appendChild(p);l=document.createElement("video");q=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"});l.src=_.iI(_.U_(q));l.ontimeupdate=function(){Z();G.resolve(0)};
p.appendChild(l);l.classList.add("html5-main-video");setTimeout(function(){p.classList.add("ad-interrupting")},200);
setTimeout(function(){Z();G.resolve(1)},5E3);
return u.return(G.promise)})};
Aif=function(G){var H=I9R().objectRepresentation.playbackTracking;if(H){var Z=[],Q;Z.push(H==null?void 0:(Q=H.videostatsPlaybackUrl)==null?void 0:Q.baseUrl);var p;Z.push(H==null?void 0:(p=H.videostatsDelayplayUrl)==null?void 0:p.baseUrl);var l;Z.push(H==null?void 0:(l=H.videostatsWatchtimeUrl)==null?void 0:l.baseUrl);var q;Z.push(H==null?void 0:(q=H.ptrackingUrl)==null?void 0:q.baseUrl);var u;Z.push(H==null?void 0:(u=H.qoeUrl)==null?void 0:u.baseUrl);var B;Z.push(H==null?void 0:(B=H.atrUrl)==null?
void 0:B.baseUrl);H=_.I(Z);for(Z=H.next();!Z.done;Z=H.next())if((Z=Z.value)&&G.test(Z))return Z.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
xJo=function(G,H){var Z,Q;return _.S(function(p){switch(p.nextAddress){case 1:Z=[],Q=0;case 2:if(!(Q<3)){p.jumpTo(4);break}return p.yield(fetch(G,{cache:"no-store",method:H}).then(function(l){Z.push(l.status)}).catch(function(){Z.push(-1)}),3);
case 3:Q++;p.jumpTo(2);break;case 4:return p.return(Z)}})};
L9e=function(G){return G.domainLookupStart===0&&G.domainLookupEnd===0&&G.connectStart===0&&G.connectEnd===0||G.duration===0};
E3W=function(G,H,Z){Z=Z===void 0?"GET":Z;var Q,p,l,q,u,B,t,D,d,e;return _.S(function(n){if(n.nextAddress==1)return n.yield(Promise.all([xJo(G,Z),xJo(H,Z)]),2);Q=n.yieldResult;p=_.I(Q);l=p.next().value;q=p.next().value;u=l;B=q;if(Math.min.apply(Math,_.OP(B))!==Math.max.apply(Math,_.OP(B))||Math.min.apply(Math,_.OP(u))!==Math.max.apply(Math,_.OP(u)))return n.return(2);if(Math.min.apply(Math,_.OP(B))===Math.min.apply(Math,_.OP(u)))return n.return(1);D=(t=performance.getEntriesByName(G))==null?void 0:
t[0];e=(d=performance.getEntriesByName(H))==null?void 0:d[0];return D&&e?L9e(e)?n.return(1):L9e(D)?n.return(0):n.return(1):n.return(2)})};
Xru=function(){var G;return _.S(function(H){var Z=[];var Q;var p,l,q;(p=Q=(p=I9R().objectRepresentation.streamingData)==null?void 0:(l=p.formats)==null?void 0:(q=l[0])==null?void 0:q.url)&&p&&!Q.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(p=p.replace("initcwndbps","ctier=L&initcwndbps"),p=p.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),Q={testUrl:p,baseUrl:Q,method:"GET"}):Q=void 0;Q&&Z.push(Q);_.V("ab_net_tp_e")&&Z.push({testUrl:_.Qf.location.origin+"/ad_companion",baseUrl:_.Qf.location.origin+
"/generate_204",method:"OPTIONS"});_.V("ab_fix_creator_view_cnt")&&(Z.length=0,(Q=Aif(/api\/stats\/atr/))&&Z.push({testUrl:_.Qf.location.origin+Q,baseUrl:_.Qf.location.origin+"/generate_204",method:"POST"}));_.V("ad_net_pb_pbp")&&(Q=Aif(/api\/stats\/qoe/))&&Z.push({testUrl:_.Qf.location.origin+Q,baseUrl:_.Qf.location.origin+"/feed/download",method:"GET"});Z=Z.length!==0?Z[Math.floor(Math.random()*Z.length)]:void 0;return(G=Z)?H.return(E3W(G.testUrl,G.baseUrl,G.method)):H.return(4)})};
_.PAj=function(){if(_.Qf.rPI===void 0||_.Qf.rPI===null||typeof _.Qf.rPI!=="function")return 2;try{return _.Qf.rPI()===!0?0:1}catch(G){return 0}};
Y53=function(G){switch(G){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Lw(G,"unknown result type")}};
_.F92=function(G,H){var Z=Number(_.xI("CATSTAT",0));if(H.bCi===void 0)return Z;H=H.bCi;G=Y53(G);return Z&~(3<<H)|G<<H};
bdf=function(G){var H,Z;if((G=(H=G.auxiliaryUi)==null?void 0:(Z=H.messageRenderers)==null?void 0:Z.bkaEnforcementMessageViewModel)&&G.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return G};
HJ3=function(){for(var G=_.I(Object.values(_.Ga2)),H=G.next();!H.done;H=G.next())H=H.value,H.qYy&&H.bCi&&_.Ae("CATSTAT",_.F92(2,H))};
_.p3=function(G,H){G=_.Zp("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",G);(H===void 0?0:H)?_.skj(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Q$().logFlowEvent(G,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Qko=function(){if(!ZJX){if(Polymer.Base){var G=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{G.apply(this,arguments)}catch(d){_.FU(d)}};
var H=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{H.apply(this,arguments)}catch(d){_.FU(d)}};
var Z=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{Z.apply(this,arguments)}catch(d){_.FU(d)}};
var Q=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{Q.apply(this,arguments)}catch(d){_.FU(d)}};
var p=Polymer.Base._listen,l=new WeakMap;Polymer.Base._listen=function(d,e,n){var c=function(){try{n.apply(this,arguments)}catch(W){_.FU(W)}};
l.set(n,c);p.call(this,d,e,c)};
var q=Polymer.Base._unlisten;Polymer.Base._unlisten=function(d,e,n){q.call(this,d,e,l.get(n))}}if(Polymer.Async){var u=Polymer.Async,B=u._atEndOfMicrotask;
u._atEndOfMicrotask=function(){try{B.apply(u,arguments)}catch(d){_.FU(d)}}}if(Polymer.RenderStatus){var t=Polymer.RenderStatus,D=t.afterNextRender;
t.afterNextRender=function(d,e,n){D.call(t,d,function(){try{e.apply(this,arguments)}catch(c){_.FU(c)}},n)}}ZJX=!0}};
_.lFf=function(G){var H=G?_.vU(G):"";if(H){if(H.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(H.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(H.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(H.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(H.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.V("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";H=H.toLowerCase();if(H==="/")return"home";if(H==="/channel_memberships")return"channel-memberships-shopfront";if(H.indexOf("/feed/trending")===0)return"trending";if(H.indexOf("/feed/explore")===0)return"explore";if(H.indexOf("/live")===0)return"live";if(H.indexOf("/results")===0)return"search";if(H.indexOf("/sports")===0)return"sports";if(H.indexOf("/fashion")===0||H.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(H))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(H))return _.V("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/")===0||H.indexOf("/user/")===0||H.indexOf("/gaming")===0||H.indexOf("/post/")===0)return"channel";if(pbj(G))return"show";if(H==="/playlist"||H.indexOf("/playlist/")===0||H==="/view_play_list"||H.indexOf("/view_play_list/")===0||H.indexOf("/show/")===0)return"playlist";if(H==="/companion_canvas")return"companion-canvas";if(H==="/feed/history"||
H.indexOf("/feed/history/")===0)return"history";if(H==="/new")return"labs";if(H==="/feed/subscriptions")return"subscriptions";if(H.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(H==="/history_controls")return"standalone";if(H.indexOf("/account")===0||H==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(H.indexOf("/paid_memberships")===0||H.indexOf("/refund")===0||H.indexOf("/purchases")===0||H.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(H.indexOf("/product")===
0)return"yts-products";if(H.indexOf("/premium")===0||H.indexOf("/musicpremium")===0)return H.indexOf("/premium/offers")===0||H.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(H==="/cart/checkout"||H==="/cart")return"ypc-checkout";if(H.indexOf("/reporthistory")===0)return _.V("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(H.indexOf("/feed/downloads")===0||H.indexOf("/redeem")===0)return"browse";if(H.indexOf("/hashtag")===0)return"hashtag-landing-page";if(H.indexOf("/handle")===
0)return"handle";if(H.indexOf("/source")===0)return"audio-pivot";if(H.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(H.indexOf("/playables")===0)return"playables";if(H.indexOf("/create/live/join")===0)return"open-in-app";if(H.indexOf("/shorts")===0)return"shorts";if(H.indexOf("/feed/channels")===0)return"subscriptions-channels";var Z=G?_.vU(G):"";Z&&Z.indexOf("/watch")===0&&_.V("web_watch_enable_learning_journey")?(G=_.p$(G),G=!!G.list&&G.list.indexOf("LJPP")===0):G=!1;if(G)return"learning_journey_watch";
if(_.V("enable_new_page_subtypes_for_ai_companion")&&H==="/feed/courses")return"your-courses"}};
_.lS=function(G){var H,Z;(G=(Z=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?void 0:Z.url)&&(H=_.lFf(G));return H};
pbj=function(G){var H=G?_.vU(G):"";if(!H)return!1;H=H.toLowerCase();return H.indexOf("/show/")===0||H.indexOf("/playlist")===0&&(G=_.p$(G),G.list&&G.list.indexOf("EL")===0)?!0:!1};
ql=function(G){var H="unknown",Z;var Q=((Z=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?void 0:Z.webPageType)||"";Q?(Z=Q.toLowerCase(),Z.startsWith("web_page_type_")&&(Z=Z.slice(14))):Z=Q;Z&&gzj[Z.toUpperCase()]?H=gzj[Z.toUpperCase()]:_.X(G,_.gT)||_.X(G,IFj)?H="browse":_.X(G,_.I_)?H="search":_.X(G,_.hZ)&&(H="watch");H==="watch"&&_.lS(G||null)==="learning_journey_watch"&&(H="learning_journey_watch");H==="unknown"&&_.Rp(Error("Tf`"+JSON.stringify({clickTrackingParams:G==null?void 0:G.clickTrackingParams,
commandMetadata:G==null?void 0:G.commandMetadata,allEndpointKeys:Object.keys(G||[])})));return H};
_.SX=function(G){if(!_.q0o||G)_.q0o=_.jt();return _.q0o};
_.S0j=function(G){return!!_.X(G,_.hZ)||!!_.X(G,_.uS)&&_.V("kevlar_enable_shorts_prefetch")};
_.ufj=function(G,H){G=_.X(G,_.hZ)||_.X(G,_.uS);return"v"+G.videoId+(G.playlistId?"-pl"+G.playlistId:"")+(H?"-an1":"")+(G.params?"-pr"+G.params:"")};
_.BBW=function(G){var H=new B$(_.xI("ONE_PICK_URL",""));H.urlParamMap_.set("hostId",G);(G=_.xI("GAPI_LOCALE"))&&H.urlParamMap_.set("hl",G);(G=_.xI("SESSION_INDEX"))&&H.urlParamMap_.set("authuser",G);(G=_.xI("DELEGATED_SESSION_ID"))&&H.urlParamMap_.set("groupId",G);return H};
to3=function(){var G=_.tp(),H=G.resolve(_.J0);G=G.resolve(_.t0);return new Jzu(H,G)};
DAU=function(G){if(window.IntersectionObserver)return new kaM(G,400);throw new TypeError("Vf");};
e9W=function(){var G=Hammer.TouchAction,H=G.prototype.preventDefaults;G.prototype.preventDefaults=function(Z){var Q=this.actions.indexOf("pan-down")>-1;if(!Q)return H.call(this,Z);if(!dAb){var p=Z.srcEvent;Z=Z.direction;var l;if((l=this.manager)==null?0:l.session.prevented)p.preventDefault();else if(Q&&Z&Hammer.DIRECTION_DOWN)return this.preventSrc(p)}}};
nzo=function(G){if(!G||G.size===0)return Hammer.DIRECTION_ALL;if(G.size===2){if(G.has("up")&&G.has("down"))return Hammer.DIRECTION_VERTICAL;if(G.has("right")&&G.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(G.size===1){if(G.has("up"))return Hammer.DIRECTION_UP;if(G.has("down"))return Hammer.DIRECTION_DOWN;if(G.has("right"))return Hammer.DIRECTION_RIGHT;if(G.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.$AW=function(){return Vov?Promise.resolve(Vov):new Promise(function(G,H){var Z=self.indexedDB.open("swpushnotificationsdb");Z.onerror=H;Z.onsuccess=function(){var Q=Z.result;if(Q.objectStoreNames.contains("swpushnotificationsstore"))Vov=Q,G(Vov);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.$AW()};
Z.onupgradeneeded=Xbb})};
Xbb=function(G){G=G.target.result;G.objectStoreNames.contains("swpushnotificationsstore")&&G.deleteObjectStore("swpushnotificationsstore");G.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.Dp=function(G,H,Z){var Q=Z&&Z>0?Z:0;Z=Q?Date.now()+Q*1E3:0;if((Q=Q?_.kT.getLocalStorage():_.kT.getSessionStorage())&&window.JSON){typeof H!=="string"&&(H=JSON.stringify(H,void 0));try{Q.set(G,H,Z)}catch(p){Q.remove(G)}}};
_.dT=function(G){var H=_.kT.getSessionStorage(),Z=_.kT.getLocalStorage();if(!H&&!Z||!window.JSON)return null;try{var Q=H.get(G)}catch(p){}if(typeof Q!=="string")try{Q=Z.get(G)}catch(p){}if(typeof Q!=="string")return null;try{Q=JSON.parse(Q,void 0)}catch(p){}return Q};
_.eX=function(G){try{var H=_.kT.getSessionStorage(),Z=_.kT.getLocalStorage();H&&H.remove(G);Z&&Z.remove(G)}catch(Q){}};
TBe=function(G){var H=cze(),Z;return _.S(function(Q){switch(Q.nextAddress){case 1:return _.XV(Q,2),Q.yield(G.match(H,{cacheName:"yt-appshell-assets"}),4);case 4:Z=Q.yieldResult;_.Za(Q,3);break;case 2:_.Wg(Q);case 3:return Q.return(Z)}})};
cze=function(){var G=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?fFX.registration.scope:vze;G.endsWith("/")&&(G=G.slice(0,-1));return G+"/app_shell_home"};
Waj=function(G){G.map(function(H){return H.source}).join("|")};
_.z9b=function(G){return _.S(function(H){return H.return(TBe(G))})};
KaR=function(){var G=window.caches,H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(_.z9b(G),2);H=Z.yieldResult;return Z.return(!!H)})};
Cxj=function(){_.S(function(G){if(G.nextAddress==1){if(Moj)return G.jumpTo(0);Moj=!0;if(_.V("enable_system_health_primes_monitoring"))return _.TF(jkb,3E4),Pxv(),G.return();if(!(Math.random()<_.eA("web_system_health_fraction")))return G.jumpTo(0);rzj={heightPixels:screen.height,widthPixels:screen.width};n3&&!isNaN(n3.jsHeapSizeLimit)&&(rzj.memoryTotalKbytes=String(Math.round(n3.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(rzj.devicePixelRatio=window.devicePixelRatio);return G.yield(wbv(),4)}_.TF(jkb,
3E4);return G.yield(h9R(),0)})};
wbv=function(){return _.S(function(G){if(G.nextAddress==1)return V$.intersectionObserverPresent="IntersectionObserver"in window,V$.serviceWorkerPresent="serviceWorker"in navigator,V$.webSharePresent="share"in navigator,V$.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,V$.cacheStoragePresent="caches"in window,V$.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,V$.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
V$.webkitTemporaryStoragePresent="webkitTemporaryStorage"in $T&&$T.webkitTemporaryStorage&&"queryUsageAndQuota"in $T.webkitTemporaryStorage,V$.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",G.yield(tSR(),2);V$.indexedDbPresent=G.yieldResult;V$.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;V$.broadcastChannelPresent="BroadcastChannel"in window;V$.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(V$.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,V$.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.K0(G)})};
jkb=function(){var G=9E4+Math.random()*2E3;_.JL()>G||(_.V("enable_system_health_primes_monitoring")?Pxv():h9R())};
h9R=function(){var G;return _.S(function(H){if(H.nextAddress==1)return H.yield(iJu(),2);G=H.yieldResult;_.yR("systemHealthCaptured",G);_.K0(H)})};
Pxv=function(){var G={metric:{}},H=OJR();H.networkEvents.length&&(G.metric.networkEvents=aFo(H));_.yR("systemHealthCaptured",G)};
iJu=function(){var G,H,Z,Q,p,l,q,u,B,t;return _.S(function(D){switch(D.nextAddress){case 1:G={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)};H=window.screen;_.V("enable_is_extended_monitoring")&&H&&"isExtended"in H&&(G.isExtended=!!H.isExtended);Z={metric:{staticContext:rzj,dynamicContext:G,webMetric:yzo,webApiSupport:V$}};
if(Q=_.$k())Z.csn=Q;n3&&(Z.metric.webMetric.currentHeapKbytes=Math.round(n3.usedJSHeapSize/1E3));window.matchMedia&&(Z.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,Z.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,Z.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in $T&&typeof $T.getBattery==="function")){D.jumpTo(2);break}return D.yield($T.getBattery(),3);case 3:if(p=
D.yieldResult)Z.metric.dynamicContext.chargingStatus=p.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(Z.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(V$.storageEstimatePresent)return D.yield(navigator.storage.estimate(),8);if(!V$.webkitTemporaryStoragePresent){D.jumpTo(5);break}return D.yield(ozj(),7);case 7:l=D.yieldResult;D.jumpTo(5);break;case 8:l=D.yieldResult;case 5:return Z.metric.dynamicContext.deviceStorageQuotaMbytes=((q=l)==null?0:q.quota)?String(Math.round(l.quota/
1048576/10)*10):"-1",Z.metric.dynamicContext.deviceStorageUsageMbytes=((u=l)==null?0:u.usage)?String(Math.round(l.usage/1048576/10)*10):"-1",B=Z.metric.dynamicContext,D.yield(KaR(),9);case 9:return B.hasAppShell=D.yieldResult,t=OJR(),t.networkEvents.length&&(Z.metric.networkEvents=aFo(t)),D.return(Z)}})};
ozj=function(){return new Promise(function(G){var H;V$.webkitTemporaryStoragePresent&&(H=$T.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?$T.webkitTemporaryStorage.queryUsageAndQuota(function(Z,Q){G({usage:Z,quota:Q})}):G(void 0)})};
_.X9=function(G){G&=16777215;G=[(G&16711680)>>16,(G&65280)>>8,G&255];return mAv(G[0],G[1],G[2])};
_.c$=function(G){G=[(G&16711680)>>>16,(G&65280)>>>8,G&255,(G&4278190080)>>>24];if(!_.UAb(G,function(H){return H===(H&255)}))throw Error("Wf`"+G.join(","));
return"rgba("+G[0]+","+G[1]+","+G[2]+","+(G[3]/255).toFixed(3)+")"};
_.R9W=function(G){return[(G&16711680)>>>16,(G&65280)>>>8,G&255]};
_.NBb=function(G){G=G.map(function(H){H/=255;return H<=.03928?H/12.92:Math.pow((H+.05)/1.05,2.4)});
return G[0]*.2126+G[1]*.7152+G[2]*.0722};
Tz=function(G,H){G=_.R9W(G);return"rgba("+G[0]+", "+G[1]+", "+G[2]+", "+H+")"};
f3=function(G){return(G&4278190080)>>>24===0?Tz(G,"1"):_.c$(G)};
_.Azv=function(){try{return!!self.localStorage}catch(G){return!1}};
Y02=function(){if(xAM())_.Rp(Error("Xf"));else{var G=document.createElement("iframe");G.style.display="none";var H=H===void 0?window.location.href:H;var Z=_.R1(_.xI("PERSIST_IDENTITY_IFRAME_URL"));H=Z?Z:(new URL(H)).host.indexOf("studio")===0?_.VB(Lae,"persist_identity"):_.VB(EzM,"persist_identity");_.GO(G,1,H);G.id="persist_identity";var Q;(Q=document.body)==null||Q.appendChild(G)}};
xAM=function(){var G=Faj;G||(G=document.querySelector("#persist_identity"));return G};
bJf=function(){var G=!1;try{G=!!window.sessionStorage.getItem("session_logininfo")}catch(H){G=!0}return(_.xI("INNERTUBE_CLIENT_NAME")==="WEB"||_.xI("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&G};
Gf2=function(G,H){if(!bJf())return!1;H||(H=_.xI("LOGIN_INFO"));return H?(G.session_logininfo=H,!0):!1};
soo=function(G,H){G=G===void 0?!1:G;if((H===void 0||!H)&&He2!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.YI("LOG_STICKINESS",!1)){H=_.$k();var Z=_.Va(),Q={identityStickinessData:{initialState:He2}};H&&Z&&_.a5(H,Z,Q)}if(H=xAM())if(Z=H.src?(new URL(H.src)).origin:"*",G){var p;(p=H.contentWindow)==null||p.postMessage({action:"clear"},Z)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(G=window.sessionStorage.getItem("session_logininfo"))){var l;(l=H.contentWindow)==null||l.postMessage({loginInfo:G},Z)}};
_.v$=function(G){G=G===void 0?!0:G;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Ae("LOGIN_INFO",""),G&&window.sessionStorage.setItem("from_switch_account","1"),soo(!0,G)}catch(H){}};
Zej=function(G){G&&(G.startsWith("https://accounts.google.com/AddSession")?_.v$():G.startsWith("https://accounts.google.com/ServiceLogin")?_.v$():G.startsWith("https://myaccount.google.com")&&_.HS(G).getPath().endsWith("/youtubeoptions")&&_.v$())};
W$=function(G,H){Zej(G);if(_.YI("LOGGED_IN",!0)&&bJf()){var Z=ExM(G);Z==null&&(Z={});Gf2(Z,H)&&_.aO(G,Z)}};
Qoj=function(){function G(H){for(H=H.target;H&&H.nodeName!=="A";)if(H=H.parentNode,!(H&&H instanceof HTMLElement))return;if(H&&!H.hasAttribute("download")&&H.getAttribute("rel")!=="external"&&H.href)return H.href}
document.addEventListener("mousedown",function(H){H.button!==0&&(H=G(H))&&W$(H)});
document.addEventListener("click",function(H){(H=G(H))&&W$(H)})};
gn3=function(){var G=new pRW;try{if(_.YI("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(u){G.increment(5,!1);return}if(_.xI("LOGIN_INFO")){var H=lEo?lEo:window.location;_.xI("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Y02();var Z=ExM(H.href);Z==null&&(Z={});var Q=Z.session_logininfo,p=Number(window.sessionStorage.getItem("stickiness_reload")),l=Q===_.xI("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
p>=2||l)p>=2?G.increment(2,l):l?G.increment(7,l):window.sessionStorage.getItem("session_logininfo")||(G.increment(3,l),He2="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.xI("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.xI("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))G.increment(4,l),window.sessionStorage.removeItem("stickiness_reload");
else if(p<2){window.sessionStorage.setItem("stickiness_reload",String(p+1));var q=H.href;q=_.ya(q,"sttick");W$(q,window.sessionStorage.getItem("session_logininfo"));q=_.l0(q,{sttick:p});G.increment(p,l);_.d_j(H,q)}}else G.increment(6,!1)}else _.v$(!1)}catch(u){}};
_.zz=function(G,H,Z,Q,p){H=H===void 0?{}:H;Z=Z===void 0?"":Z;Q=Q===void 0?window:Q;G=_.g7(G,H);W$(G);Z=_.m0(G+Z,p);_.d_j(Q.location,Z)};
IEj=function(G){if(G.urlEndpoint){if(G=_.p$(G.urlEndpoint.url),G.adurl)return BU(G.adurl)}else if(G.watchEndpoint)return"//www.youtube.com/watch?v="+G.watchEndpoint.videoId;return null};
qFX=function(G){if(!G||!G.reportingPings)return null;var H={};G.reportingPings.forEach(function(Z){Z.pingType in H?H[Z.pingType].push(Z.url):H[Z.pingType]=[Z.url]});
return{adpings:yZb(H)}};
_.Ml=function(G){G=G===void 0?!1:G;var H=_.lf(),Z="USER_INTERFACE_THEME_LIGHT";H.getFlag(165)?Z="USER_INTERFACE_THEME_DARK":H.getFlag(174)?Z="USER_INTERFACE_THEME_LIGHT":_.K3()&&(Z="USER_INTERFACE_THEME_DARK");return G?Z:SFU()||Z};
_.u1f=function(){return!_.V("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.K3=function(){return _.u1f()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.jX=function(){var G=_.lf();return _.u1f()&&!G.getFlag(165)&&!G.getFlag(174)};
SFU=function(){var G=G===void 0?window.location.href:G;if(_.V("kevlar_disable_theme_param"))return null;var H=_.vU(G);if(_.BYX(H))return"USER_INTERFACE_THEME_DARK";try{var Z=_.p$(G).theme;return JVj.get(Z)||null}catch(Q){}return null};
_.BYX=function(G){return _.V("enable_dark_theme_only_on_shorts")?!(G==null||!G.startsWith("/shorts/")):!1};
_.DyM=function(G,H,Z,Q,p){H=H===void 0?!1:H;Z=Z===void 0?!1:Z;var l=_.xI("INNERTUBE_CONTEXT");if(!l)return _.me(Error("ag")),{};l=(0,_.oN.unsafeClone)(l);_.V("web_no_tracking_params_in_shell_killswitch")||delete l.clickTracking;l.client||(l.client={});var q=l.client;q.clientName==="MWEB"&&q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(q.clientFormFactor=_.xI("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");q.screenWidthPoints=window.innerWidth;q.screenHeightPoints=window.innerHeight;q.screenPixelDensity=
Math.round(window.devicePixelRatio||1);q.screenDensityFloat=window.devicePixelRatio||1;q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());q.userInterfaceTheme=_.Ml();if(!H){var u=_.CfU();u&&(q.connectionType=u);_.V("web_log_effective_connection_type")&&(u=Oou())&&(l.client.effectiveConnectionType=u)}var B;if(_.V("web_log_memory_total_kbytes")&&((B=_.Qf.navigator)==null?0:B.deviceMemory)){var t;B=(t=_.Qf.navigator)==null?void 0:t.deviceMemory;l.client.memoryTotalKbytes=""+B*1E6}H&&Q&&!_.V("web_it_context_set_original_url_ks")&&
(q.originalUrl=tYM(_.Qf.location.href,Q).toString());_.V("web_gcf_hashes_innertube")&&(u=Lmj())&&(t=u.coldConfigData,B=u.coldHashData,u=u.hotHashData,l.client.configInfo=l.client.configInfo||{},t&&(l.client.configInfo.coldConfigData=t),B&&(l.client.configInfo.coldHashData=B),u&&(l.client.configInfo.hotHashData=u));t=_.p$(_.Qf.location.href);!_.V("web_populate_internal_geo_killswitch")&&t.internalcountrycode&&(q.internalGeo=t.internalcountrycode);!_.V("web_populate_client_screen_killswitch")&&p&&(q.clientScreen=
p);q.clientName==="MWEB"||q.clientName==="WEB"?(q.mainAppWebInfo||(q.mainAppWebInfo={}),q.mainAppWebInfo.graftUrl=Q||_.Qf.location.href,_.V("kevlar_woffle")&&_.P$.instance&&(Q=_.P$.instance,q.mainAppWebInfo.pwaInstallabilityStatus=!Q.appInstalledEventFired&&Q.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),q.mainAppWebInfo.webDisplayMode=yye(),q.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):q.clientName==="TVHTML5"&&
(!_.V("web_lr_app_quality_killswitch")&&(Q=_.xI("LIVING_ROOM_APP_QUALITY"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{appQuality:Q})),Q=_.xI("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(q.tvAppInfo=Object.assign(q.tvAppInfo||{},{certificationScope:Q}));!_.V("web_populate_time_zone_itc_killswitch")&&(Q=wAX())&&(q.timeZone=Q);(Q=Hov())?q.experimentsToken=Q:delete q.experimentsToken;q=s52();Q=_.kfj();Q=(0,_.oN.getValues)(Q.tokenJars);l.request=Object.assign({},l.request,{internalExperimentFlags:q,consistencyTokenJars:Q});
!_.V("web_prequest_context_killswitch")&&(q=_.xI("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(l.request.externalPrequestContext=q);Q=_.lf();q=Q.getFlag(58);Q=Q.get("gsml","");l.user=Object.assign({},l.user);q&&(l.user.enableSafetyMode=q);Q&&(l.user.lockedSafetyMode=!0);_.V("warm_op_csn_cleanup")?Z&&(H=_.$k())&&(l.clientScreenNonce=H):!H&&(H=_.$k())&&(l.clientScreenNonce=H);G&&(l.clickTracking={clickTrackingParams:G});if(G=_.GF("yt.mdx.remote.remoteClient_"))l.remoteClient=G;_.rT.getInstance().setLocationOnInnerTubeContext(l);
try{var D=B8X(),d=D.bid;delete D.bid;l.adSignalsInfo={params:[],bid:d};for(var e=_.I(Object.entries(D)),n=e.next();!n.done;n=e.next()){var c=_.I(n.value),W=c.next().value,M=c.next().value;D=W;d=M;G=void 0;(G=l.adSignalsInfo.params)==null||G.push({key:D,value:""+d})}var r,w;if(((r=l.client)==null?void 0:r.clientName)==="TVHTML5"||((w=l.client)==null?void 0:w.clientName)==="TVHTML5_UNPLUGGED"){var x=_.xI("INNERTUBE_CONTEXT");x.adSignalsInfo&&(l.adSignalsInfo.advertisingId=x.adSignalsInfo.advertisingId,
l.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",l.adSignalsInfo.limitAdTracking=x.adSignalsInfo.limitAdTracking)}}catch(U){_.me(U)}return l};
_.wT=function(){return{isShellLoad:_.YI("IS_SHELL_LOAD",!1)}};
eWj=function(){navigator.serviceWorker.getRegistrations().then(function(G){G.forEach(dyX)})};
dyX=function(G){G&&_.nnU(VYe,G.scope)};
_.nnU=function(G,H){H={scope:H||_.n$("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.PO(G),H)};
h0=function(G,H,Z,Q){if(H&&H.serializedYpcCujLoggingParams){if(Z){var p={};p.transactionErrorType=Z;Q&&(p.errorMessage=Q);H.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:p}}}Z={};Z.ypcCujContext=H;G=_.Zp("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",G,Z);_.Q$().logFlowEvent(G,"FLOW_TYPE_YPC_ACQUISITION")}};
_.$yv=function(G,H,Z,Q){var p={};p.serializedTransactionFlowLoggingParams=H;Z&&(p.errorType=Z);Q&&(p.errorMessage=Q);_.yR(G,p);_.op()};
_.XRv=function(G){G&&_.$yv("transactionFlowStarted",G)};
_.cVf=function(G){G&&_.$yv("transactionFlowCancelled",G)};
_.C3=function(G,H,Z){H&&_.$yv("transactionFlowFailed",H,G,Z)};
TYM=function(G){var H=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");H&&(H.inert=G)};
_.iS=function(){this.megabloxUrl_=null};
_.OD=function(G){try{var H=fEv==null?void 0:fEv.composedPath(G)}catch(Z){H=G.composedPath?G.composedPath():[]}return H&&H.length>0?H:G.composedPath?G.composedPath():[]};
_.a_=function(G){return _.OD(G)[0]};
y$=function(G){return G instanceof ShadowRoot?ShadowRoot:G instanceof DocumentFragment?DocumentFragment:G instanceof Document?Document:HTMLElement};
vnj=function(G){if(G instanceof Element)return Element.prototype;if(G instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+G);};
Wob=function(G,H){return _.V("sunnydom_native_scoped_query_selectors")?vnj(G).querySelector.call(G,H):y$(G).prototype.querySelector.call(G,H)};
zWU=function(G,H){return _.V("sunnydom_native_scoped_query_selectors")?vnj(G).querySelectorAll.call(G,H):y$(G).prototype.querySelectorAll.call(G,H)};
Ko2=function(G){var H,Z,Q;return(Q=(Z=(H=G.parentElement)!=null?H:G.__shady_native_parentElement)!=null?Z:G.__shady_parentElement)!=null?Q:null};
MYj=function(G){var H,Z,Q;return(Q=(Z=(H=G.parentNode)!=null?H:G.__shady_native_parentNode)!=null?Z:G.__shady_parentNode)!=null?Q:null};
joM=function(G){var H,Z,Q;return(Q=(Z=(H=G.nextSibling)!=null?H:G.__shady_native_nextSibling)!=null?Z:G.__shady_nextSibling)!=null?Q:null};
PTe=function(G){var H,Z,Q;return(Q=(Z=(H=G.previousSibling)!=null?H:G.__shady_native_previousSibling)!=null?Z:G.__shady_previousSibling)!=null?Q:null};
rVj=function(G){var H,Z,Q;return(Q=(Z=(H=G.nextElementSibling)!=null?H:G.__shady_native_nextElementSibling)!=null?Z:G.__shady_nextElementSibling)!=null?Q:null};
wRj=function(G){var H,Z,Q;return(Q=(Z=(H=G.previousElementSibling)!=null?H:G.__shady_native_previousElementSibling)!=null?Z:G.__shady_previousElementSibling)!=null?Q:null};
hWo=function(G){var H,Z,Q;return new Set([].concat(_.OP((H=G.children)!=null?H:[]),_.OP((Z=G.__shady_native_children)!=null?Z:[]),_.OP((Q=G.__shady_children)!=null?Q:[])))};
CTj=function(G){var H,Z,Q;return new Set([].concat(_.OP((H=G.childNodes)!=null?H:[]),_.OP((Z=G.__shady_native_childNodes)!=null?Z:[]),_.OP((Q=G.__shady_childNodes)!=null?Q:[])))};
_.o_=function(G){if(!(G instanceof Element))return null;G=G.classList?Array.from(G.classList):void 0;if(!G)return null;var H=G.indexOf("style-scope");return H>-1&&H+1<G.length?G[H+1]:null};
mA=function(G){if(!(G instanceof HTMLElement))return null;var H=G&&(G.$$||G.polymerController)?G.tagName.toLowerCase():null;return H?H:_.o_(G)};
ieX=function(G,H){return _.V("sunnydom_native_scoped_query_selectors")?G+".style-scope."+H:G.replace(/[^a-z]*[^\s]+/g,function(Z){return Z+".style-scope."+H})};
OeX=function(G,H){return H?G.split(",").map(function(Z){return ieX(Z.trim(),H)}).join(", "):G};
_.UD=function(G){var H,Z,Q,p;return(p=(Q=(Z=(H=G.root)!=null?H:G.shadowRoot)!=null?Z:G.__shady_native_shadowRoot)!=null?Q:G.__shady_shadowRoot)!=null?p:G};
aEj=function(G){var H,Z,Q;return(Q=(Z=(H=G.__shady_parentNode)!=null?H:G.__shady_native_parentNode)!=null?Z:G.parentNode)!=null?Q:null};
yVW=function(G){var H,Z;return(Z=(H=MYj(G))!=null?H:G.host)!=null?Z:null};
onf=function(G){for(;G&&!(G instanceof HTMLElement);)G=yVW(G);return G};
myj=function(G){var H=onf(G);return G===H?_.o_(G):H?mA(H):null};
Uyo=function(G){return(G=onf(G))?mA(G):null};
RWf=function(G){if(G instanceof Comment)return!1;if(G instanceof Text){var H,Z;if(((Z=(H=G.textContent)==null?void 0:H.trim())!=null?Z:"")==="")return!1}return!0};
R_=function(G,H,Z){var Q=H(G);for(Z=Z===void 0?Uyo(G):Z;Q&&(myj(Q)!==Z||!RWf(Q));)G=Q,Q=H(G);return Q};
NYR=function(G,H,Z){if(!H)return null;G=Uyo(G);return myj(H)===G&&RWf(H)?H:R_(H,Z,G)};
AVo=function(G){return R_(G,aEj,_.o_(G))};
xyu=function(G){return R_(G,rVj)};
Lov=function(G){return R_(G,joM)};
EnR=function(G){return R_(G,wRj)};
YF2=function(G){return R_(G,PTe)};
Foe=function(G){return NYR(G,G.firstChild||null,joM)};
bef=function(G){var H,Z,Q;var p=(Q=(Z=(H=G.firstElementChild)!=null?H:G.__shady_native_firstElementChild)!=null?Z:G.__shady_firstElementChild)!=null?Q:null;return NYR(G,p,rVj)};
GQo=function(G){var H,Z,Q;var p=(Q=(Z=(H=G.lastChild)!=null?H:G.__shady_native_lastChild)!=null?Z:G.__shady_lastChild)!=null?Q:null;return NYR(G,p,PTe)};
Hnf=function(G){var H,Z,Q;var p=(Q=(Z=(H=G.lastElementChild)!=null?H:G.__shady_native_lastElementChild)!=null?Z:G.__shady_lastElementChild)!=null?Q:null;return NYR(G,p,wRj)};
sV3=function(G){var H=Uyo(G);return Array.from(CTj(G)).filter(function(Z){return myj(Z)===H})};
ZnX=function(G){var H=mA(G);return Array.from(hWo(G)).filter(function(Z){return _.o_(Z)===H})};
QVb=function(G){if(!G)return null;var H=_.o_(G);if(!H){var Z;return(Z=Node.prototype.getRootNode)==null?void 0:Z.call(G)}H=H.toUpperCase();for(G=Ko2(G);G&&G.tagName!==H;)G=Ko2(G);return G?_.UD(G):null};
_.Nl=function(G,H,Z){if(G instanceof HTMLElement&&_.o_(G)===Z){var Q=Array.from(G.classList).indexOf("style-scope");if(Q===-1)G.classList.add("style-scope"),G.classList.add(H);else if(!(Q+1>=G.classList.length)){Q=G.classList[Q+1];var p,l;G==null||(p=G.classList)==null||(l=p.replace)==null||l.call(p,Q,H)}}if(G instanceof HTMLElement||G instanceof DocumentFragment)for(p=_.I(hWo(G)),l=p.next();!l.done;l=p.next())_.Nl(l.value,H,Z);return G};
A0=function(G,H){if(G instanceof HTMLElement&&_.o_(G)===H){var Z=Array.from(G.classList).indexOf("style-scope");Z===-1||Z+1>=G.classList.length||G.classList.remove("style-scope",G.classList[Z+1])}if(G instanceof HTMLElement||G instanceof DocumentFragment){Z=_.I(G.children);for(var Q=Z.next();!Q.done;Q=Z.next())A0(Q.value,H)}return G};
_.pFM=function(G,H){return y$(G).prototype.appendChild.call(G,H)};
lzo=function(G,H){if(G===H)return!0;G=CTj(G);return Array.from(G).some(function(Z){return lzo(Z,H)})};
_.F9=function(G,H){if(G instanceof ED)return G;(H==null?0:H.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(G,"ownerDocument")&&Object.defineProperty(G,"ownerDocument",{get:function(){return window.document}});
return new ED(G)};
Izo=function(){var G=ED.prototype,H=[].concat(_.OP(gUf?[]:["getRootNode"]),["setAttribute","removeAttribute"]);H=_.I(H);for(var Z=H.next(),Q={};!Z.done;Q={method$jscomp$53:void 0},Z=H.next())Q.method$jscomp$53=Z.value,G[Q.method$jscomp$53]=function(p){return function(){return this.host[p.method$jscomp$53].apply(this.host,arguments)}}(Q)};
Sh2=function(){var G=ED.prototype,H=[].concat(_.OP(gUf?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.OP(qhv?[]:["querySelector","querySelectorAll"]));H=_.I(H);for(var Z=H.next(),Q={};!Z.done;Q={method$jscomp$54:void 0},Z=H.next())Q.method$jscomp$54=Z.value,G[Q.method$jscomp$54]=function(p){return function(){return this.root[p.method$jscomp$54].apply(this.root,arguments)}}(Q)};
JjR=function(){var G=ED.prototype,H=[].concat(_.OP(u4o?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.OP(BXW?[]:["parentNode"]));H=_.I(H);for(var Z=H.next(),Q={};!Z.done;Q={prop$jscomp$67:void 0},Z=H.next())Q.prop$jscomp$67=Z.value,Object.defineProperty(G,Q.prop$jscomp$67,{get:function(p){return function(){return this.host[p.prop$jscomp$67]}}(Q),
configurable:!0})};
Dgu=function(){var G=ED.prototype,H=["activeElement"].concat(_.OP(u4o?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.OP(t$o?[]:["children"]),_.OP(kQj?[]:["lastChild"]));H=_.I(H);for(var Z=H.next(),Q={};!Z.done;Q={prop$jscomp$68:void 0},Z=H.next())Q.prop$jscomp$68=Z.value,Object.defineProperty(G,Q.prop$jscomp$68,{get:function(p){return function(){return this.root[p.prop$jscomp$68]}}(Q),
configurable:!0})};
dgj=function(){for(var G=ED.prototype,H=_.I(["innerHTML","textContent"]),Z=H.next(),Q={};!Z.done;Q={prop$jscomp$69:void 0},Z=H.next())Q.prop$jscomp$69=Z.value,Object.defineProperty(G,Q.prop$jscomp$69,{get:function(p){return function(){return this.root[p.prop$jscomp$69]}}(Q),
set:function(p){return function(l){this.root[p.prop$jscomp$69]=l}}(Q),
configurable:!0})};
erU=function(G){var H=ED.prototype;G=_.I(Object.entries(G));for(var Z=G.next(),Q={};!Z.done;Q={fn$jscomp$403:void 0},Z=G.next()){var p=_.I(Z.value);Z=p.next().value;p=p.next().value;Q.fn$jscomp$403=p;H[Z]=function(l){return function(){return l.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.OP(arguments)))}}(Q)}};
V$f=function(){for(var G=ED.prototype,H=_.I(Object.entries(nUj)),Z=H.next(),Q={};!Z.done;Q={fn$jscomp$404:void 0},Z=H.next()){var p=_.I(Z.value);Z=p.next().value;p=p.next().value;Q.fn$jscomp$404=p;Object.defineProperty(G,Z,{get:function(l){return function(){return l.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.OP(arguments)))}}(Q),
configurable:!0})}};
_.bS=function(G){return G instanceof $gu||G instanceof Document?G:new $gu(G)};
XFW=function(){for(var G=$gu.prototype,H=_.I("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),Z=H.next(),Q={};!Z.done;Q={method$jscomp$55:void 0},Z=H.next())Q.method$jscomp$55=Z.value,G[Q.method$jscomp$55]=function(p){return function(){return HTMLElement.prototype[p.method$jscomp$55].call.apply(HTMLElement.prototype[p.method$jscomp$55],[this.node].concat(_.OP(arguments)))}}(Q)};
cje=function(){for(var G=$gu.prototype,H=_.I("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),Z=H.next(),Q={};!Z.done;Q={prop$jscomp$70:void 0},Z=H.next())Q.prop$jscomp$70=Z.value,Object.defineProperty(G,Q.prop$jscomp$70,{get:function(p){return function(){var l;return(l=this.node["__shady_native_"+p.prop$jscomp$70])!=null?l:this.node[p.prop$jscomp$70]}}(Q),
configurable:!0})};
_.Gq=function(G,H,Z){Z===void 0&&(Z=!G.classList.contains(H));Z?G.classList.add(H):G.classList.remove(H)};
_.HG=function(G,H,Z){Z===void 0&&(Z=!G.hasAttribute(H));if(H==="class")throw Error("fg");Z?_.bS(G).setAttribute(H,""):_.bS(G).removeAttribute(H)};
TXj=function(G){return(G.localName!=="slot"?[]:(0,_.sI)(G).assignedNodes({flatten:!0})).filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
_.fzu=function(G){return(G=_.F9(G).querySelector("slot"))&&G.localName==="slot"?TXj(G):[]};
_.ZI=function(G,H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(G,H)};
Qy=function(G,H){var Z=H.bind(G);return function(Q){Z(Q,Q.detail)}};
_.pH=function(G,H){var Z=vUU.get(G);Z||(Z=new WeakMap,vUU.set(G,Z));if(Z.has(H))return Z.get(H);if(_.V("web_fi_listen_disable_bound_fn_helper")){var Q=H.bind(G);G=function(p){Q(p,p==null?void 0:p.detail)}}else G=Qy(G,H);
Z.set(H,G);return G};
K52=function(G,H){W5U(G);G.created[zrb].push(H)};
W5U=function(G){if(!G.created||!G.created[zrb]){var H=G.created,Z=H?[H]:[];G.created=function(){for(var Q=_.I(Z),p=Q.next();!p.done;p=Q.next())p.value.apply(this)};
G.created[zrb]=Z}};
M$3=function(G){return function(){var H=_.Ry.apply(0,arguments);return function(Z,Q,p){G.apply(null,_.OP(H))(Z,Q,p)}}};
jVU=function(){return function(){var G=_.Ry.apply(0,arguments);return function(H,Z,Q){qKj.apply(null,_.OP(G))(H,Z,Q)}}};
_.v=function(G){return jVU()(G)};
_.z=function(){return M$3(JHf).apply(null,_.OP(_.Ry.apply(0,arguments)))};
_.lq=function(G){return _.V("pbcm_fi_listen_decorators")?PCR(G):M$3(uCv)(G)};
PCR=function(G){return function(H,Z){K52(H,function(){var Q=this[Z],p=_.V("web_fi_listen_disable_bound_fn_helper")?function(l){Q(l,l.detail)}.bind(this):Qy(this,Q);
rjf.has(G)?US(this.hostElement,G,p):this.hostElement.addEventListener(G,p)})}};
_.gx=function(){return M$3(BPv).apply(null,_.OP(_.Ry.apply(0,arguments)))};
_.h=function(G){G=G===void 0?{}:G;return M$3(SKu)(G)};
_.IK=function(G){if(G.hostElement&&G!==G.hostElement){var H=_.Bf(G.hostElement);H=G.renderIdom?H:H.shadowRoot}H||(G=G.root,H=G instanceof Node?_.Bf(G):null);return H};
_.q6=function(G){return wF3?hrR(G):function(H,Z){Object.defineProperty(H,Z,{get:function(){var Q;return(Q=_.IK(this))==null?void 0:Q.querySelector(G)},
enumerable:!0,configurable:!0})}};
hrR=function(G){return function(H,Z){Object.defineProperty(H,Z,{get:function(){var Q,p=(Q=_.F9(this.hostElement))==null?void 0:Q.querySelector(G);if(p)return p;var l;return(l=_.IK(this))==null?void 0:l.querySelector(G)},
enumerable:!0,configurable:!0})}};
_.S9=function(G){return wF3?CCj(G):function(H,Z){Object.defineProperty(H,Z,{get:function(){var Q;return(Q=_.IK(this))==null?void 0:Q.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
CCj=function(G){return function(H,Z){Object.defineProperty(H,Z,{get:function(){var Q,p=(Q=_.F9(this.hostElement))==null?void 0:Q.querySelectorAll(G);if(p==null?0:p.length)return p;var l;return(l=_.IK(this))==null?void 0:l.querySelectorAll(G)},
enumerable:!0,configurable:!0})}};
inj=function(G){return function(H){if(![_.BE,_.C].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("gg");HOf(Object.assign({},typeof G!=="string"?G:{is:G,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(H)}};
_.BG=function(){var G=G===void 0?{}:G;return function(H){if(![Jc,_.uq].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("hg");sxf(Object.assign({},G,{disableInheritanceCheck:!0}))(H)}};
azu=function(G,H){OnW[G]!=null||(OnW[G]=new Set);OnW[G].add(H)};
_.Jv=function(){var G=_.gx.apply(null,_.OP(_.Ry.apply(0,arguments)));return function(H,Z){azu(H.is,Z);G(H,Z)}};
DI=function(G,H,Z){if(tv(G)&&!yjf.has(H)){H=H.replace(/^JSC\$[\d]+_/,"");H=H.replace(/\.\d+(\.|$)/g,function(l,q){return".#"+q});
kQ[G]!=null||(kQ[G]={});var Q,p;(Q=kQ[G])[p=H]!=null||(Q[p]=new Set);kQ[G][H].has(Z)||(kQ[G][H].add(Z),_.yR("polymerPropertyAccessEvent",{componentName:G,propertyName:H,accessType:Z}))}};
oUf=function(){return _.V("polymer_property_access_logging_debug")||_.V("polymer_enable_property_access_logging")};
tv=function(G){if(_.V("polymer_property_access_logging_debug"))return!0;if(!_.V("polymer_enable_property_access_logging"))return!1;mgb||(mgb=Date.now());return(K9(G)+mgb)%100<_.eA("polymer_property_access_logging_percent")};
UgR=function(G,H){return tv(H)&&G.hostElement.loggingStatus?new Proxy(G,{get:function(Z,Q,p){if(Z.hostElement.loggingStatus.bypassProxyController)return Z[Q];Z.hostElement.loggingStatus.isExternalGet=!0;var l=Z[Q];Z.hostElement.loggingStatus.isExternalGet=!1;if(l instanceof Function)return function(){var q=_.Ry.apply(0,arguments);try{return Z.hostElement.loggingStatus.currentExternalCall=Q,DI(H,Q,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),l.apply(this===p?Z:this,q)}finally{Z.hostElement.loggingStatus.currentExternalCall=
void 0}};
DI(H,Q,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return l},
set:function(Z,Q,p){if(Z.hostElement.loggingStatus.bypassProxyController)return Z[Q]=p,!0;Z.hostElement.loggingStatus.isRendererStamper?DI(H,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):Z.hostElement.loggingStatus.isDeclarativeExternal||DI(H,Q,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{Z.hostElement.loggingStatus.currentExternalSet=Q,Z[Q]=p}finally{Z.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):G};
RrM=function(G,H){G&&G.loggingStatus&&!G.loggingStatus.isDeclarativeExternal&&!G.loggingStatus.isExternalGet&&G.loggingStatus.currentExternalSet!==H&&DI(G.tagName.toLowerCase(),H,"PROPERTY_ACCESS_GET_INTERNAL")};
dx=function(G,H,Z){G&&(Z||G.loggingStatus&&!G.loggingStatus.isInitializing&&!G.loggingStatus.isDefiningPropertyAccessor&&G.loggingStatus.currentExternalSet!==H)&&DI(G.tagName.toLowerCase(),H,"PROPERTY_ACCESS_SET_INTERNAL")};
NXb=function(){return{_definePropertyAccessor:function(G,H){var Z=this,Q=Z.hostElement.loggingStatus;Q&&(Q.isDefiningPropertyAccessor=!0);var p=Z[G];p!==void 0&&(Z.__data?Z._setPendingProperty(G,p):(Z.__dataProto!=null||(Z.__dataProto={}),Z.__dataProto[G]=p));Q&&(Q.isDefiningPropertyAccessor=!1);Object.defineProperty(this,G,{get:function(){RrM(Z.hostElement,G);return this.__data[G]},
set:function(l){H||this._setPendingProperty(G,l,!0)&&this._invalidateProperties()}})},
created:function(){var G=this._setPendingProperty.bind(this);this._setPendingProperty=function(H,Z,Q){dx(this.hostElement,H);return G.apply(this,[H,Z,Q])}}}};
Ajj=function(G){oUf()&&_.v(e9.prototype)(G.prototype,"__templateBindingLoggingBehavior")};
xg3=function(G,H){if(H.resolvedFactories.length!==G.resolvedFactories.length)return!0;H=_.I(H.resolvedFactories.entries());for(var Z=H.next();!Z.done;Z=H.next()){var Q=_.I(Z.value);Z=Q.next().value;Q=Q.next().value;if(Q.providerClass){if(Q.providerClass!==G.resolvedFactories[Z].providerClass)return!0}else if(Q.providerValue){if(Q.providerValue!==G.resolvedFactories[Z].providerValue)return!0}else if(Q.factory!==G.resolvedFactories[Z].factory)return!0}return!1};
L5v=function(G,H){G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.constructor===Array)L5v(Z,H);else{var Q=H;Q.has(Z)||(Z.inject&&Q.add(Z),Z.behaviors&&L5v(Z.behaviors,Q))}};
nH=function(G,H){var Z=G[H];G[H]=function(){var Q=_.Ry.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(Z)return Z.apply(this,Q)}};
bnR=function(){_.Vy.Class=function(Z,Q){Z=EUv(Z,Q);nH(Z.prototype,"created");return Z};
nH($Q.prototype,"_initializeProperties");nH(_.XT.prototype,"_initializeProperties");if(YhX)nH(F5M,"created");else{var G=function(){nH(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))G();else{var H=customElements.define;customElements.define=function(Z,Q,p){H.call(customElements,Z,Q,p);Z==="tp-yt-iron-list"&&(G(),customElements.define=H)}}}};
H8f=function(G,H){G.prototype.behaviors=G.prototype.behaviors||[];G.prototype.behaviors.unshift(G72.InjectBehavior);G.prototype.provide=H};
_.fH=function(G){return function(H){if(!G.disableElementRegistration){G.noInjection||H8f(H,G.providers);var Z=H.prototype;Z.__templateHelpers||qKj(cG.prototype)(Z,"__templateHelpers");Z=G.is;sbf||(sbf=Date.now());(K9(Z)+sbf)%100<_.eA("polymer_log_prop_change_observer_percent")&&qKj(Tq.prototype)(H.prototype,"__propertyObserverObserver");H.prototype.behaviors=H.prototype.behaviors||[];H.prototype.behaviors.unshift(_.Z8U.YtHostElementBehavior);Ajj(H);inj({is:G.is,notifyObserversOnUndefined:G.notifyObserversOnUndefined!==
!1,fastInit:G.fastInit,template:G.template,disableEnforceFastDefaultValuesCheck:!0})(H)}}};
_.O=function(G){return _.fH({is:G.is,template:G.template,disableElementRegistration:G.disableElementRegistration,cssBuildOptOut:G.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
lnW=function(G,H){if(Qbj){G=new G;for(var Z=_.I(Object.getOwnPropertyNames(G)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,H[Q]=G[Q];for(Z=H;Z&&Z!==Object.prototype;Z=Object.getPrototypeOf(Z)){Q=_.I(Object.getOwnPropertyNames(Z));for(var p=Q.next();!p.done;p=Q.next())p=p.value,G.hasOwnProperty(p)||Object.defineProperty(G,p,p6j(H,p))}}else G.apply(H)};
p6j=function(G,H){return{get:function(){var Z=G[H];return Z instanceof Function?Z.bind(G):Z},
set:function(Z){G[H]=Z}}};
Inu=function(G,H){for(var Z=G._noAccessors,Q=_.I(Object.getOwnPropertyNames(G)),p=Q.next();!p.done;p=Q.next())if(p=p.value,!gcW.has(p))if(Z)H[p]=G[p];else{var l=Object.getOwnPropertyDescriptor(G,p);l&&(l.configurable=!0,Object.defineProperty(H,p,l))}};
qUe=function(G,H,Z){return function(Q){if(Z){var p=Z();Q.model=p}if(G[H])G[H](Q,Q.detail)}};
vG=function(G){var H=[];if(typeof G==="string")G.length>0&&H.push.apply(H,_.OP(G.split(".")));else{G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,typeof Z==="string"?H.push.apply(H,_.OP(Z.split("."))):H.push(Z)}return H};
SUu=function(G,H){if(H[H.length-1]!=="*"&&H[H.length-1]!=="splices"){for(var Z=0;Z<H.length;Z++){if(!G)return;G=G[H[Z]]}return G}};
u$f=function(G,H){if(G.length>H.length)return!1;for(var Z=0;Z<G.length;Z++)if(G[Z]!==H[Z])return!1;return!0};
JJU=function(G,H,Z){if(H.type==="compute"){var Q=H.getter.bind(Z);var p=H.args}else Q=function(){return Z[H.method.methodName].apply(Z,_.OP(_.Ry.apply(0,arguments)))},p=H.method.args;
Bhb(G,H.propertyKey,Q,p,H.value)};
k7f=function(G,H){if(H.readOnly){var Z=Object.getOwnPropertyDescriptor(G.model,H.propertyKey);Object.defineProperty(G.model,H.propertyKey,{get:Z.get,set:function(){}});
G.model[tBf(H.propertyKey)]=Z.set}};
DTR=function(G,H,Z){if(Z){var Q=H.propertyKey,p=H.selector;H=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.OP(H.selectorArgs.map(function(l){return{type:"path",path:l}})));
Bhb(G,Q,function(l){var q=_.Ry.apply(1,arguments);return p.apply(null,[Z.getState()].concat(_.OP(q)))},H)}};
eF2=function(G,H,Z){var Q=_.ZQ(H.propertyKey)+"-changed";dTe(G,function(p){var l={value:p.value,queueProperty:!0};p.path.split(".").length>1&&(l.path=p.path);Z.dispatchEvent(new CustomEvent(Q,{detail:l}))},[{type:"wildcard",
path:H.propertyKey}])};
ncf=function(G,H,Z){dTe(G,function(){Z[H.method.methodName].apply(Z,_.OP(_.Ry.apply(0,arguments)))},H.method.args)};
tBf=function(G){return"_set"+(G.charAt(0).toUpperCase()+G.slice(1))};
VBf=function(){var G,H=mf(function(Z){G=Z},!1);
return[G,H]};
fnf=function(G){G=G.trim().replace($To,",").replace(X6j,"$1");var H=G[0];H==="-"&&(H=G[1]);if(H>="0"&&H<="9")return{type:"literal",value:Number(G)};if(H==="'"||H==='"')return{type:"literal",value:G.slice(1,-1)};if(H=G.match(cJ3)){H=H[1];var Z=ThM[H];if(Z)return{type:Z,path:G.slice(0,-(H.length+1))}}return{type:"path",path:G}};
K4M=function(G){var H=G.match(vcv);if(H)return G={methodName:H[1],args:W42},H[2].trim()&&(H=H[2].replace(zFM,"&comma;").split(","),G.args=H.map(fnf)),G};
MBj=function(G,H,Z,Q){Q=Q===void 0?!1:Q;H=_.ZQ(H);var p=Px;p&&(Z=p(Z,H,"attribute",G));WG(G,Z,H,Q)};
WG=function(G,H,Z,Q){H=jbR(H,Q===void 0?!1:Q);H===void 0?G.removeAttribute(Z):G.setAttribute(Z,H)};
jbR=function(G,H){switch(typeof G){case "object":case "function":if(G instanceof Date)return G.toString();if(G){if((H===void 0?0:H)&&!_.V("polymer_reflect_objects_as_boolean_killswitch"))return G?"":void 0;H=window.trustedTypes?window.trustedTypes.isHTML(G)||window.trustedTypes.isScript(G)||window.trustedTypes.isScriptURL(G):void 0;if(H)return G;try{return JSON.stringify(G)}catch(Z){_.Rp(Error("Dg`"+G))}}break;case "boolean":return G?"":void 0;default:return G!==null&&G!==void 0?G.toString():void 0}};
PrM=function(G){if(G===void 0)throw Error("Eg");return G};
i82=function(G,H,Z,Q){var p=rJo(Q);if(p.length){Q=Z;var l="property";w6W.test(Z)?l="attribute":Z[Z.length-1]==="$"&&(Z=Z.slice(0,-1),l="attribute");var q=hFf(p);q&&l==="attribute"&&(Z==="class"&&G.hasAttribute("class")&&(q+=" "+G.getAttribute(Z)),WG(G,q,Z));l==="attribute"&&Q==="disable-upgrade$"&&G.setAttribute("disable-upgrade","");G.localName==="input"&&Q==="value"&&G.setAttribute("value","");G.removeAttribute(Q);l==="property"&&(Z=_.Qa(Z));H=PrM(H);Cro(H,l,Z,p);return!0}return Z.slice(0,3)===
"on-"?(G.removeAttribute(Z),(l=H).events!=null||(l.events=[]),H.events.push({name:Z.slice(3),value:Q}),!0):Z==="id"?(H.id=Q,!0):!1};
rJo=function(G){for(var H=[],Z=0,Q;(Q=O8j.exec(G))!==null;){Q.index>Z&&H.push({type:"literal",value:G.slice(Z,Q.index)});var p=Q[1][0];Z=!!Q[2];Q=Q[3].trim();if(p==="{")throw Error("Fg");(p=K4M(Q))?H.push({type:"method",negate:Z,signature:p}):H.push({type:"path",negate:Z,path:Q});Z=O8j.lastIndex}Z&&Z<G.length&&(G=G.substring(Z))&&H.push({type:"literal",value:G});return H};
hFf=function(G){for(var H="",Z=0;Z<G.length;Z++){var Q=G[Z];Q.type==="literal"&&(H+=Q.value)}return H};
Cro=function(G,H,Z,Q){G.bindings!=null||(G.bindings=[]);G.bindings.push({kind:H,target:Z,parts:Q})};
UTj=function(G,H,Z){var Q=!1;if(G.localName==="template"){Q=Z;var p=H.stripWhitespace;p=anX(G,p===void 0?!1:p);var l=G.content.ownerDocument.createDocumentFragment();p.content=l;l.appendChild(G.content);Q&&(Q.templateInfo=p);Q=!0}else G.localName==="slot"&&(H.hasInsertionPoint=!0);if(G.firstChild&&(p=Z,G.localName!=="script"&&G.localName!=="style")){l=0;for(var q=G.firstChild;q;){var u=q;if(u.localName==="template"){var B=u.getAttribute("is");if((q=B==="dom-if")||B==="dom-repeat"){u.removeAttribute("is");
B=u.ownerDocument.createElement("ps-"+B);u.parentNode.replaceChild(B,u);B.appendChild(u);var t=Array.from(u.attributes);t=_.I(t);for(var D=t.next();!D.done;D=t.next())D=D.value,q?yJv.has(D.name)&&WG(B,D.value,D.name):oc2.has(D.name)?WG(B,D.value,D.name):mTu.has(D.name),u.removeAttribute(D.name);q=B}else q=u}if(q.nodeType===Node.TEXT_NODE){u=void 0;B=G;for(t=q;((u=t.nextSibling)==null?void 0:u.nodeType)===Node.TEXT_NODE;)D=void 0,(D=t).textContent!=null||(D.textContent=""),t.nextSibling.textContent&&
(t.textContent+=t.nextSibling.textContent),B.removeChild(t.nextSibling);if(H.stripWhitespace&&q.textContent&&!q.textContent.trim()){G.removeChild(q);q=q.nextSibling;continue}}UTj(q,H,{parentIndex:l,parentInfo:p});q.parentNode&&l++;q=q.nextSibling}}var d;if((d=G.hasAttributes)==null?0:d.call(G)){d=Z=PrM(Z);p=!1;l=Array.from(G.attributes);l=_.I(l);for(u=l.next();!u.done;u=l.next())u=u.value,p=i82(G,d,u.name,u.value)||p;Q=p||Q}G.nodeType===Node.TEXT_NODE&&(d=rJo(G.textContent),d.length&&(G.textContent=
hFf(d)||" ",Z=PrM(Z),Cro(Z,"text","textContent",d),Q=!0));Z&&Q&&(Z.infoIndex=H.nodeInfoList.push(Z)-1)};
anX=function(G,H){H={nodeInfoList:[],stripWhitespace:(H===void 0?!1:H)||G.hasAttribute("strip-whitespace")};UTj(G.content,H);return H};
RFj=function(G){Object.assign(G,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
AJM=function(G,H,Z){H.signalCache!=null||(H.signalCache={});var Q=H.signalCache[Z];if(!Q){var p=Z.split(".");Q=!NhU(G,p[0]);if(p.length>1&&Q){var l=G.getPathMutationSignal(p);Q=function(){var q=Nf(G.owner,function(){return G.getWithPath([p[0]])}),u,B=(u=l())==null?void 0:u.value;
return{rootWasDefined:q!==void 0,value:B}}}else Q=function(){var q=G.getWithPath(p);
return{rootWasDefined:q!==void 0,value:q}};
H.signalCache[Z]=Q}return Q()};
L43=function(G,H,Z,Q,p){H=H.parts.map(function(q,u){if(q.type==="literal"){Z.partWasDefined!=null||(Z.partWasDefined=[]);var B;(B=Z.partWasDefined)[u]||(B[u]=q.value!==void 0);return q.value}var t;if(q.type==="method"){var D,d=(D=(t=Z.partWasDefined)==null?void 0:t[u])!=null?D:!1;d||(d=q.signature.args.every(function(c){return c.type==="literal"}));
var e=!1,n=!0;t=q.signature.args.map(function(c){if(c.type==="literal")return c.value;if(c.type!=="path")throw Error("Gg`"+c.type);var W=AJM(G,Z,c.path);c=W.value;W=W.rootWasDefined;e||(e=W);n&&(n=W);return c});
d||(d=p===1?n:e);Z.partWasDefined!=null||(Z.partWasDefined={});Z.partWasDefined[u]=d;if(!d)return;t=(u=AJM(G,Z,q.signature.methodName).value)&&typeof u==="function"?u.apply(Q,t):void 0}else D=AJM(G,Z,q.path),t=D.value,Z.partWasDefined!=null||(Z.partWasDefined={}),(d=Z.partWasDefined)[u]||(d[u]=t!==void 0||D.rootWasDefined);q.negate&&(t=!t);return t});
if(H.length===1){var l;return((l=Z.partWasDefined)==null?0:l[0])?H[0]:xTf}return H.join("")};
Ecj=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G&&"canNotifyPath"in G};
YUf=function(G){return typeof G==="object"&&!!G&&"notifyPath"in G};
F4o=function(G){return"polymerController"in G};
b8o=function(G,H){H=""+vG(H)[0];if(Ecj(G))return G.canNotifyPath(H);if(F4o(G)&&Ecj(G.polymerController))return G.polymerController.canNotifyPath(H);if(YUf(G)){var Z;return!((Z=G.properties)==null||!Z[H])}if(F4o(G)&&YUf(G.polymerController)){var Q;return!((Q=G.polymerController.properties)==null||!Q[H])}return!1};
GKW=function(G,H,Z){Ecj(G)||YUf(G)?G.notifyPath(H,Z):F4o(G)&&(Ecj(G.polymerController)||YUf(G.polymerController))&&G.polymerController.notifyPath(H,Z)};
swX=function(G,H,Z){if(Z!==xTf){G.kind==="attribute"||G.target!=="textContent"&&(G.target!=="value"||H.localName!=="input"&&H.localName!=="textarea")||(Z=Z===void 0?"":Z);var Q,p=(Q=H5e.Polymer)==null?void 0:Q.sanitizeDOMValue;p&&(Z=p(Z,G.target,G.kind,H));if(G.kind==="attribute"){G=G.target;if(G==="class"||G==="name"||G==="slot")H=(0,_.sI)(H);WG(H,Z,G)}else if(G=G.target,Z!==H[G]||typeof Z==="object")H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!0,DI(H.localName,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
H[G]=Z,H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!1)}};
Z5u=function(G,H,Z,Q){var p=H.parts[0];if(H.parts.length!==1||p.type!=="path"||!b8o(Z,H.target))return!1;var l=_.I(p.path.split(".")),q=l.next().value,u=lV(l);if(NhU(G,q))return!1;Q.signalCache!=null||(Q.signalCache={});l=Q.signalCache[p.path];var B;l=(B=l)==null?void 0:B().value;if((l==null?void 0:l.path)!==void 0){Q=vG(l.path);var t=vG(p.path);Q=[H.target].concat(_.OP(Q.slice(t.length-1)));GKW(Z,Q,p.negate?!l.value:l.value);return!0}var D=zq(G,q);var d=D.getChangeRecordSignal(u),e=!1;l=function(){if(!e){var c=
Nf(G.owner,function(){return D.getWithPath([])});
e||(e=c!==void 0)}return{value:d(),rootWasDefined:e}};
Q.signalCache[p.path]=l;Q.partWasDefined!=null||(Q.partWasDefined={});l=l();(t=Q.partWasDefined)[0]||(t[0]=l.rootWasDefined);var n=Nf(G.owner,function(){return D.getWithPath(u)});
Q.partWasDefined[0]&&Nf(G.owner,function(){return void swX(H,Z,p.negate?!n:n)});
return!0};
QwX=function(G,H,Z,Q,p,l){if(!Z5u(G,H,Z,Q)){var q=L43(G,H,Q,p,l);Nf(G.owner,function(){return void swX(H,Z,q)})}};
p_f=function(G,H,Z,Q,p,l){Z=_.I(Z);for(var q=Z.next(),u={};!q.done;u={infoIndex:void 0},q=Z.next()){q=q.value;var B=q.bindings;u.infoIndex=q.infoIndex;q=q.parentInfo;if(B){B=_.I(B);for(var t=B.next(),D={};!t.done;D={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},t=B.next()){D.b$jscomp$256=t.value;if(u.infoIndex===void 0)throw Error("Hg");D.bindingCtx$jscomp$4={};G.effect(function(d,e){return function(){p&&!p()||QwX(G,d.b$jscomp$256,H[e.infoIndex],d.bindingCtx$jscomp$4,Q,l)}}(D,u))}}q&&p_f(G,H,[q],
Q,p,l)}};
luU=function(G,H){G=(H.parentInfo?luU(G,H.parentInfo):G).firstChild;for(var Z=0;G;G=G.nextSibling)if(H.parentIndex===Z++)return G;throw Error("Ig");};
Iuu=function(G,H,Z,Q){G=document.importNode(G.content,!0);G.__noInsertionPoint=!(Q==null?0:Q.hasInsertionPoint);for(var p=Array(H.length),l={},q=0;q<H.length;q++){var u=H[q],B=luU(G,u);p[q]=B;u.id&&(l[u.id]=B);if(u.templateInfo){var t=B.parentElement;t&&(t.templateInfo=u.templateInfo,t.parentSignalProxy=Z,t.eventListenerHost=Q.eventListenerHost,t.stampingEnabled=Q.enabledSignal)}t=void 0;if((t=u.events)==null?0:t.length)for(t=0;t<u.events.length;t++){var D=u.events[t];gZf(Q.eventListenerHost,B,D.name,
D.value,Q.getModel)}}p_f(Z,p,H,Q.thisCtx,Q.enabledSignal,Q.methodInvocationRequirement);return{root:G,nodes:p,nodesById:l}};
SEj=function(G,H){G=G();var Z;(Z=qEe.ShadyCSS)==null||Z.prepareTemplate(G,H);H=anX(G);return{template:G,nodeInfoList:H.nodeInfoList,hasInsertionPoint:H.hasInsertionPoint}};
J7X=function(){uRf=!1;for(var G=KH.length,H=0;H<G;H++){var Z=KH[H];if(Z)try{Z()}catch(Q){Promise.resolve().then(function(){throw Q;})}}KH.splice(0,G);
B$e+=G};
dRf=function(G){uRf||(uRf=!0,tfX.textContent=(kKe++).toString());KH.push(G);return DR3++};
_.PG=function(G,H,Z){M6++;G=H?new emv(M6,G,H,Z):new nZb(M6,G);j9.set(M6,G);return M6};
VfM=function(G){(G=j9.get(G))&&G.cancel()};
X_v=function(G,H){G=$RM.get(G);return G?(H=G.get(H))?H:null:null};
_.rx=function(G,H,Z,Q){var p=X_v(G,H);if(!p){p=new c7f;var l=$RM.get(G);l||(l=new Map,$RM.set(G,l));l.set(H,p)}G=Z.bind(G);p.run(G,Q,void 0)};
_.T$o=function(G,H){var Z;(Z=X_v(G,H))==null||Z.cancel()};
fuR=function(G){var H;(H=X_v(G,"doRender"))==null||H.flush()};
wx=function(G){var H;return(H=G.hostElement)!=null?H:G};
vZj=function(G){var H=G.indexOf(".");return H===-1?G:G.slice(0,H)};
WEX=function(G,H,Z,Q,p,l){l=(p=(Q=l?vZj(H):H)?H:null)?G.get(p):G.__data[H];p&&l===void 0&&(l=Z[H]);_.N5(G.hostElement,ASe(Q)+"-changed",{value:l,queueProperty:!0,path:p!=null?p:void 0},{bubbles:!1,composed:!1})};
zmf=function(G,H){G.__isReflecting=!0;MBj(G.hostElement,H,G.__data[H]);G.__isReflecting=!1};
KEb=function(G){if(G._onIronRequestResizeNotifications){var H=G._onIronRequestResizeNotifications.bind(G);G._onIronRequestResizeNotifications=function(Z){_.a_(Z)!==G.hostElement&&H(Z)}}G._ariaActiveAttributeChanged&&(G._ariaActiveAttributeChanged=G._ariaActiveAttributeChanged.bind(G.hostElement));
G._activeChanged&&(G._activeChanged=function(Z){G.toggles?WG(G.hostElement,Z?"true":"false",G.ariaActiveAttribute):G.hostElement.removeAttribute(G.ariaActiveAttribute);G._changedButtonState()});
G._asyncClick&&(G._asyncClick=function(){_.PG(function(){G.hostElement.click()},1)});
!G.keyEventTarget||G.keyEventTarget instanceof EventTarget||(G.keyEventTarget=wx(G.keyEventTarget));G._disabledChanged&&(G._disabledChanged=G._disabledChanged.bind(G.hostElement));G._observeItems&&(G._observeItems=function(Z){var Q=wx(Z);return _.Bf(Q).observeNodes(function(p){G._updateItems();G._updateSelected();_.N5(Q,"iron-items-changed",p,{bubbles:!1,cancelable:!1})})});
G._updateItems&&G._updateItems===_.hv._updateItems&&(G._updateItems=function(){var Z=_.Bf(G.hostElement).queryDistributedElements(G.selectable||"*");Z=Array.prototype.filter.call(Z,G._bindFilterItem);G._setItems(Z)});
G._computeKeyboardClass&&(G._computeKeyboardClass=function(Z){_.Gq(G.hostElement,"keyboard-focus",Z)});
G.ensureRipple&&(G.ensureRipple=function(Z){if(G.hasRipple&&!G.hasRipple()){if(!G._createRipple)return;G._ripple=G._createRipple();G._ripple.noink=G.noink;var Q=G._rippleContainer||G.hostElement;Q&&_.F9(Q).appendChild(G._ripple)}var p;if(Z&&((p=G._ripple)==null?0:p.uiDownAction)){Q=_.F9(G._rippleContainer||G.hostElement);var l;p=(l=Z.composedPath())==null?void 0:l[0];Q.contains(p)&&G._ripple.uiDownAction(Z)}});
G._updateMultiselectable&&(G._updateMultiselectable=function(Z){Z?G.hostElement.setAttribute("aria-multiselectable","true"):G.hostElement.removeAttribute("aria-multiselectable")})};
MfX=function(G,H,Z){Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next())lnW(Q.value.constructor,G);lnW(H.constructor,G)};
PRo=function(G,H){G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.type==="signal"){var Q=Z.propertyKey;if(H.hasOwnProperty(Q)&&H[Q]!=null&&Z.attributeType===Object){a:{Q=H[Q].constructor;for(var p=_.I(jwf),l=p.next();!l.done;l=p.next())if(l=l.value,Q===l){Q=l;break a}Q=Object}Z.attributeType=Q}}};
r7b=function(){};
w_j=function(G){var H;return(H=G.hostElement)!=null?H:G};
hmv=function(){throw Error("Mg");};
CRM=function(G,H){G.constructor.prototype.useSignals=!0;var Z=new G.constructor;MfX(Z,G,H.behaviors);PRo(H.reactiveSchemas,Z);Z={};for(var Q=_.I(H.reactiveSchemas),p=Q.next();!p.done;p=Q.next())p=p.value,p.type==="signal"&&(Z[p.propertyKey]=p.attributeType);var l={copyPropertiesToProto:hmv,didRegister:!1,typesForSignals:Z},q=["disable-upgrade"].concat(_.OP(H.observedAttributes)),u=function(B){CH.call(this,G,H,l,B)};
_.T(u,CH);_.u4.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return q}}});
l.copyPropertiesToProto=function(){for(var B=0;B<H.behaviors.length;B++)Inu(H.behaviors[B],u.prototype);Inu(G,u.prototype)};
H.legacyOptimizations||l.copyPropertiesToProto();u.prototype.is=G.is;return u};
i5b=function(G,H){if(Object.getPrototypeOf(H.prototype).constructor!==_.C)throw Error("Ng");H.prototype.is=G.is;return CRM(H.prototype,G)};
O5W=function(G){return G.type==="compute"||G.type==="computeWithMethod"};
au2=function(G){for(var H=G.reactiveSchemas.filter(O5W),Z=new Map,Q=new Map,p=new Map,l=_.I(H),q=l.next();!q.done;q=l.next())q=q.value,Z.set(q.propertyKey,q),Q.set(q.propertyKey,[]),p.set(q.propertyKey,0);l=0;H=_.I(H);for(q=H.next();!q.done;q=H.next()){q=q.value;for(var u=_.I(q.type==="computeWithMethod"?q.method.args:q.args),B=u.next();!B.done;B=u.next())B=B.value,B.type!=="literal"&&(B=B.path.split(".")[0],Q.has(B)&&(Q.get(B).push(q.propertyKey),p.set(q.propertyKey,p.get(q.propertyKey)+1),l++))}q=
[].concat(_.OP(Q.keys())).filter(function(t){return p.get(t)===0});
for(H=[];q.length;)for(u=q.shift(),H.push(Z.get(u)),u=_.I(Q.get(u)),B=u.next();!B.done;B=u.next())B=B.value,p.set(B,p.get(B)-1),l--,p.get(B)===0&&q.push(B);Z=G.reactiveSchemas.filter(function(t){return!O5W(t)});
G.reactiveSchemas=[].concat(_.OP(Z),_.OP(H))};
y7M=function(G,H){if(H.properties)for(var Z=_.I(Object.entries(H.properties)),Q=Z.next();!Q.done;Q=Z.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;G.properties[Q]=typeof p==="function"?{type:p}:p}H.observers&&G.observers.push.apply(G.observers,_.OP(H.observers));H.disabledPolySiReactions&&G.disabledPolySiReactions.push.apply(G.disabledPolySiReactions,_.OP(H.disabledPolySiReactions))};
oZb=function(G,H){for(var Z=H.length-1;Z>=0;Z--){var Q=H[Z];Array.isArray(Q)?oZb(G,Q):G.indexOf(Q)<0&&G.unshift(Q)}};
mRf=function(G,H){G.reactiveSchemas=G.reactiveSchemas.filter(function(Z){return Z.type==="observe"&&H.includes(Z.method.methodName)||O5W(Z)&&H.includes(Z.propertyKey)?!1:!0})};
Rmf=function(G,H){var Z=H.prototype,Q,p,l={is:G.is,reactiveSchemas:[],observedAttributes:[],behaviors:[G72.InjectBehavior,cG.prototype],disableElementRegistration:G.disableElementRegistration,provide:(Q=G.providers)!=null?Q:[],reactivityMode:G.reactivityMode,signalProperties:(p=Z.signalProperties)!=null?p:[]};"template"in H?l.templateGetter=function(){return H.template}:G.getTemplate&&(l.templateGetter=G.getTemplate);
Z.behaviors&&oZb(l.behaviors,Z.behaviors);UR3(l,H);return l};
UR3=function(G,H){for(var Z=H.prototype,Q={properties:{},observers:[],disabledPolySiReactions:[]},p=_.I(G.behaviors),l=p.next();!l.done;l=p.next())y7M(Q,l.value);y7M(Q,Z);if(G.signalProperties)for(Z=_.I(G.signalProperties),p=Z.next();!p.done;p=Z.next())delete Q.properties[p.value];Z=_.I(Object.entries(Q.properties));for(p=Z.next();!p.done;p=Z.next()){l=_.I(p.value);p=l.next().value;l=l.next().value;var q=void 0;if((q=G.signalProperties)==null||!q.includes(p)){q=void 0;var u=G,B=l.type;if(!B)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{B=Reflect.getMetadata("design:type",H,p);for(var t=_.I(N$j),D=t.next();!D.done;D=t.next())if(D=D.value,B===D){B=D;break a}B=Object}else B=String;l.computed||l.selector||(u.reactiveSchemas.push({type:"signal",propertyKey:p,value:l.value,attributeType:B,readOnly:l.readOnly}),u.observedAttributes.push(_.ZQ(p)));l.reflectToAttribute&&u.reactiveSchemas.push({type:"reflect",propertyKey:p});if(l.computed){B=K4M(l.computed);if(!B)throw Error("Og");u.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:p,method:B,value:l.value})}l.observer&&u.reactiveSchemas.push({type:"observe",method:{methodName:l.observer,args:[{type:"path",path:p}]}});l.notify&&u.reactiveSchemas.push({type:"notify",propertyKey:p});l.selector&&u.reactiveSchemas.push({type:"redux",propertyKey:p,selector:l.selector,selectorArgs:(q=l.selectorArgs)!=null?q:[]})}}A7e&&au2(G);H=_.I(Q.observers);for(p=H.next();!p.done;p=H.next())Z=G,p=p.value,(l=K4M(p))?Z.reactiveSchemas.push({type:"observe",method:l}):console.log('Warning: unable to parse observe declaration: "'+
p+'"');mRf(G,Q.disabledPolySiReactions)};
xRv=function(G,H){for(var Z=0;Z<H.length;Z++){var Q=H[Z],p=void 0;(p=Q).showHideApi!=null||(p.showHideApi={});p=void 0;!!G!==!((p=Q.showHideApi)==null||!p.hideTemplateChildren)&&(Q.nodeType===Node.TEXT_NODE?G?(Q.showHideApi.polymerTextContent=Q.textContent,Q.textContent=""):(p=void 0,Q.textContent=(p=Q.showHideApi.polymerTextContent)!=null?p:null):Q instanceof Element&&Q.localName==="slot"?G?(Q.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.sI)((0,_.sI)(Q).parentNode).replaceChild(Q.showHideApi.polymerReplaced,
Q)):(p=Q.showHideApi.polymerReplaced)&&(0,_.sI)((0,_.sI)(p).parentNode).replaceChild(Q,p):Q instanceof HTMLElement&&Q.style&&(G?(Q.showHideApi.polymerDisplay=Q.style.display,Q.style.display="none"):Q.style.display=Q.showHideApi.polymerDisplay));Q.showHideApi.hideTemplateChildren=G;Q.showHideChildren&&Q.showHideChildren(G)}};
EZf=function(){if(!LEf){var G=document.createElement("style");G.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(G);LEf=!0}};
iq=function(){return _.V("disable_hidden_dom_if_using_stamper")};
YEf=function(G,H){var Z=_.OI().getState();return H?G.apply(null,[Z].concat(_.OP(H))):G(Z)};
GSj=function(){if(FE3)return FE3;var G=_.I(_.Ty(0,void 0,"MB1Hb")),H=G.next().value;G.next();var Z=G.next().value;_.OI().subscribe(function(){b5W(Z)});
return FE3=H};
b5W=function(G){HSu||(HSu=!0,Promise.resolve().then(function(){G(function(H){return H+1});
HSu=!1}))};
_.OI=function(){return snu.getAppStore()};
ZSo=function(G,H){return snu.getSelectFn()(G,H)};
_.aK=function(G){snu.getDispatchFn()(G)};
Qnb=function(G,H){var Z={},Q;for(Q in G)Z[Q]=H(G[Q],Q);return Z};
_.yy=function(G,H){return function(){var Z;return(Z=_.Uv(G))!=null?Z:H}};
_.oK=function(G,H){var Z=Object.assign({},G),Q;for(Q in H)H.hasOwnProperty(Q)&&(Z[Q]=_.yy(G[Q],H[Q]));return Z};
pi3=function(G,H,Z){G instanceof Element&&(Z.debugName||(Z.debugName="<"+G.tagName.toLowerCase()+(G.tagName.includes("-")?">":"."+G.className+">")),_.V("ytwiz_enable_debug_component_props")&&(G.debugProps||(G.debugProps=Qnb(H,function(Q){return function(){return Q()}}))))};
_.y=function(G,H){var Z=function(Q){return v9R("ytComponent",{},function(p){var l=lcf={};var q;if(((q=Z)==null?0:q.idomCompat)&&Q.renderedFromIdom){var u;q=typeof Z.idomCompat==="object"?(u=Z)==null?void 0:u.idomCompat.callbacks:{};q=_.I(gL3(Q,q,Z.debugName));u=q.next().value;q.next();q=q.next().value;var B=IcM(G,u);l.privateValue=B;lcf=void 0;pi3(B,u,Z);p.addAttributes({debugName:Z.debugName});p=Jco(B);p=Array.isArray(p)?p[0]:p;p[TI]||(p[TI]={});p[TI].updateSignalsFromIdomProps=q;qYv(u,B);return B}q=
Qnb(Q,SYj);u=IcM(G,q);l.privateValue=u;lcf=void 0;pi3(u,q,Z);p.addAttributes({debugName:Z.debugName});qYv(q,u);return u})};
Z.debugName=H===void 0?"":H;return Z};
IcM=function(G,H){G=G(H);return zI(G)};
uhb=function(G,H){G[H]||(G=new _.C$("IDOM interop setter undefined. Key:",H),_.me(G))};
SYj=function(G,H){return H==="children"||H==="ref"||typeof G==="function"||G===void 0?G:function(){return _.Uv(G)}};
gL3=function(G,H,Z){var Q={},p={},l={},q={},u;for(u in G){q={key$jscomp$951:q.key$jscomp$951};q.key$jscomp$951=u;var B=G[q.key$jscomp$951];if(q.key$jscomp$951==="children"||q.key$jscomp$951==="ref")Q[q.key$jscomp$951]=B;else if(typeof B==="function")q.key$jscomp$951 in H||B.length>0?(l[q.key$jscomp$951]=B,Q[q.key$jscomp$951]=function(D){return function(){return l[D.key$jscomp$951].apply(l,_.OP(_.Ry.apply(0,arguments)))}}(q)):Q[q.key$jscomp$951]=B;
else if(!(G[q.key$jscomp$951]===void 0&&q.key$jscomp$951 in H)){var t=_.I(_.Ty(G[q.key$jscomp$951],{debugName:q.key$jscomp$951+":cwis:"+Z},"cvwbof"));B=t.next().value;t=t.next().value;Q[q.key$jscomp$951]=B;p[q.key$jscomp$951]=t}}return[Q,p,function(D){var d={},e;for(e in D)d={key$jscomp$952:d.key$jscomp$952,val$jscomp$122:void 0},d.key$jscomp$952=e,d.val$jscomp$122=D[d.key$jscomp$952],d.key$jscomp$952!=="children"&&d.key$jscomp$952!=="ref"&&(typeof d.val$jscomp$122==="function"?d.key$jscomp$952 in
H?l[d.key$jscomp$952]=d.val$jscomp$122:d.val$jscomp$122.length>0&&(l[d.key$jscomp$952]=d.val$jscomp$122,_.Rp(new _.C$("Callback detected that was not set in the idomCompat callbacks map. Key:",d.key$jscomp$952))):d.key$jscomp$952 in H&&d.val$jscomp$122===void 0||(uhb(p,d.key$jscomp$952),Mf(function(n){return function(){p[n.key$jscomp$952](n.val$jscomp$122)}}(d))))}]};
tvM=function(G,H,Z){var Q=YyX(G.prototype,BzM,G.prototype.behaviors);Q.prototype.is=H;Q.prototype.localName=H;Z&&JGe(Q,Z);return function(p){p&&(Q.prototype.hostElement=p);var l=new Q;l.root=l;l.hostElement=p;return l}};
JGe=function(G,H){var Z;Object.defineProperty(G.prototype,"_template",{get:function(){Z===void 0&&(Z=H());return Z},
set:function(Q){Z=Q},
configurable:!0,enumerable:!0})};
nLM=function(G,H,Z,Q){function p(){if(!n){for(var c=new Set,W=_.I(D),M=W.next();!M.done;M=W.next()){M=M.value;for(var r=_.I(Object.getOwnPropertyNames(M)),w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0,U=(x=Object.getOwnPropertyDescriptor(M,w))==null?void 0:x.value;U&&U instanceof Function&&!ml(w)&&(!u[w]||_.V("polymer_forward_method_killswitch"))&&c.add(w)}}W=_.I(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(M=W.next();!M.done;M=W.next())r=_.I(M.value),M=r.next().value,
r=r.next().value,r.value instanceof Function&&!ml(M)&&c.add(M);n=c}return n}
kSf(G,H,Q==null?void 0:Q.providers);Fyb(G.prototype,G,!0);var l=tvM(G,H,Z),q,u=(q=G.prototype.properties)!=null?q:{},B,t,D=(t=(B=G.prototype.behaviors)==null?void 0:B.flat(Infinity))!=null?t:[];Z=_.I(D);for(q=Z.next();!q.done;q=Z.next())u=Object.assign({},q.value.properties,u);var d=[].concat(_.OP(D3U),_.OP(Object.keys(u).map(function(c){return _.ZQ(c)}))),e=!1,n;
return{ctor:function(c,W){var M=l(c),r,w;c=[].concat(_.OP((r=Q==null?void 0:Q.allowedProps)!=null?r:[]),_.OP((w=Q==null?void 0:Q.allowedPropsFromBehaviors)!=null?w:[]));M.allowedProps=c.length>0?c:void 0;r={};w=_.I(d);for(c=w.next();!c.done;c=w.next())c=c.value,r[c]=_.Qa(c);M.__dataAttributes=r;var x=M.ready.bind(M);M.ready=function(){W.beforeReady();x();if(tv(H)&&!e){var U=M.__templateInfo;if(U==null?0:U.hostProps){U=_.I(Object.keys(U.hostProps));for(var R=U.next();!R.done;R=U.next())DI(H,R.value,
"PROPERTY_ACCESS_GET_INTERNAL")}e=!0}};
M._overrideLegacyUndefined=!0;return M},
props:u,observedAttributes:d,getInitialMethods:p,getPropsToForwardBeforeRegister:function(){for(var c=[],W=new Set,M=_.I(Object.keys(u)),r=M.next();!r.done;r=M.next())r=r.value,c.push([r,u[r].readOnly]),W.add(r);M=p();r=_.I(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var w=r.next();!w.done;w=r.next())w=w.value,!d3f(w)||M.has(w)||W.has(w)||(c.push([w,!1]),W.add(w));W=_.I(eX3);for(M=W.next();!M.done;M=W.next())c.push([M.value,!0]);return c},
getPropsToForwardBeforeReady:function(c){for(var W=[],M=_.I(Object.entries(c)),r=M.next();!r.done;r=M.next()){var w=_.I(r.value);r=w.next().value;w=w.next().value;if(d3f(r)&&!(w instanceof Function)&&(W.push([r,!1]),tv(H))){var x=w=void 0;(x=(w=c)._createPropertyAccessor)==null||x.call(w,r)}}return W},
shouldForwardProp:d3f,shouldLog:tv}};
kSf=function(G,H,Z){H8f(G,Z);G.prototype.behaviors.unshift(VvW);if(oUf()){if(tv(H)){var Q;(Q=G.prototype).behaviors!=null||(Q.behaviors=[]);G.prototype.behaviors.unshift(NXb())}Ajj(G)}_.v(cG.prototype)(G.prototype,"__templateHelpers")};
ml=function(G){return $3e.has(G)||G.startsWith("__compute__")};
d3f=function(G){return!ml(G)&&!G.startsWith("_")&&!G.endsWith("_")};
vLv=function(G,H){function Z(){var e=B();e=_.I(e);for(var n=e.next();!n.done;n=e.next()){var c=_.I(n.value);n=c.next().value;c=c.next().value;XiM(d.prototype,n,c)}Q=!0}
var Q=!1,p=G.ctor,l=G.getInitialMethods,q=G.observedAttributes,u=G.getPropsToForwardBeforeReady,B=G.getPropsToForwardBeforeRegister,t=G.shouldForwardProp,D=G.shouldLog,d=function(){var e=HTMLElement.call(this)||this;e.didForwardDynamicProps=!1;e.loggingStatus={};Q||Z();e.inst=p(e,{beforeReady:function(){e.didForwardDynamicProps||(e.forwardDynamicProps(),e.didForwardDynamicProps=!0)}});
e.controllerProxy=UgR(e.inst,H);e.forwardMethods();return e};
_.T(d,HTMLElement);d.prototype.forwardMethods=function(){for(var e=this,n=_.I(this.inst.getExtraMethodsToForward()),c=n.next(),W={};!c.done;W={method$jscomp$65:void 0},c=n.next()){var M=_.I(c.value);c=M.next().value;M=M.next().value;W.method$jscomp$65=M;this[c]=function(r){return function(){return r.method$jscomp$65.call.apply(r.method$jscomp$65,[e.inst].concat(_.OP(_.Ry.apply(0,arguments))))}}(W)}n=_.I(l());
for(W=n.next();!W.done;W=n.next())W=W.value,t(W)&&cGj(this,W),D(H)&&!ml(W)&&Tzf(this.inst,W)};
d.prototype.forwardDynamicProps=function(){var e=u(this.inst);e=_.I(e);for(var n=e.next();!n.done;n=e.next()){var c=_.I(n.value);n=c.next().value;c=c.next().value;XiM(this,n,c);D(H)&&!ml(n)&&fcW(this.inst,n)}};
d.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
d.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
d.prototype.attributeChangedCallback=function(e,n,c){this.inst.attributeChangedCallbackWrapper(e,n,c)};
_.u4.Object.defineProperties(d.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return H}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.u4.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return q}}});
customElements.define(H,d)};
XiM=function(G,H,Z){G.hasOwnProperty(H)||Object.defineProperty(G,H,{get:function(){var Q,p=((Q=G.is)!=null?Q:G.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||DI(p,H,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,Q=this.polymerController[H],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,Q},
set:function(Q){if(!Z){var p,l=((p=G.is)!=null?p:G.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||DI(l,H,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=H,this.loggingStatus.bypassProxyController=!0,this.polymerController[H]!==Q&&(p={},this.polymerController.setProperties((p[H]=Q,p)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
cGj=function(G,H,Z){var Q=G.polymerController;G[H]=function(){var p=_.Ry.apply(0,arguments);G.loggingStatus.currentExternalCall=H;G.loggingStatus.bypassProxyController=!0;var l,q=((l=G.is)!=null?l:G.tagName).toLowerCase();DI(q,H,"PROPERTY_ACCESS_CALL_EXTERNAL");var u;l=(u=Z!=null?Z:Q[H])==null?void 0:u.call.apply(u,[Q].concat(_.OP(p)));G.loggingStatus.currentExternalCall=void 0;G.loggingStatus.bypassProxyController=!1;return l}};
Tzf=function(G,H){var Z=G.hostElement,Q=G[H];G[H]=function(){var p=_.Ry.apply(0,arguments);if(Z.loggingStatus.currentExternalCall!==H){var l,q=((l=Z.is)!=null?l:Z.tagName).toLowerCase();DI(q,H,"PROPERTY_ACCESS_CALL_INTERNAL")}return Q==null?void 0:Q.apply(G,p)}};
fcW=function(G,H){var Z=Object.getOwnPropertyDescriptor(G,H);Z&&!Z.get&&Object.defineProperty(G,H,{get:function(){RrM(G.hostElement,H);return Z.value},
set:function(Q){dx(G.hostElement,H);Z.value=Q}})};
WkW=function(G){return _.V("poly_si_dom_repeat_detached_fix_killswitch")||G.tagName!=="PS-DOM-REPEAT"?G.tagName==="DOM-REPEAT":!0};
KkM=function(G,H){var Z=zXb(G);G instanceof Element&&Z.unshift(G);G=_.I(Z.filter(WkW));for(var Q=G.next();!Q.done;Q=G.next()){var p=void 0;Q=_.I((p=Q.value.__instances)!=null?p:[]);for(p=Q.next();!p.done;p=Q.next())if(p=p.value,p.root){p=Array.from(p.root.children);p=_.I(p);for(var l=p.next();!l.done;l=p.next())Z.push.apply(Z,_.OP(KkM(l.value,H)))}}return Z.filter(function(q){return q.usePatchedLifecycles&&q.lifecycleIsConnected===H})};
zXb=function(G){var H=null;G instanceof Element?H=Element.prototype.querySelectorAll:G instanceof DocumentFragment&&(H=DocumentFragment.prototype.querySelectorAll);return H?Array.from(H.call(G,"*")):[]};
UI=function(G){_.cS(function(){for(var H=_.I(KkM(G,!1)),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;Z.lifecycleIsConnected=!0;try{var Q=void 0,p=void 0,l=void 0,q=void 0;(Q=(q=Z.polymerController)!=null?q:Z)==null||(l=(p=Q).connectedCallback)==null||l.call(p)}catch(u){_.me(u)}}})};
RK=function(G){_.cS(function(){for(var H=_.I(KkM(G,!0)),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;Z.lifecycleIsConnected=!1;try{var Q=void 0,p=void 0,l=void 0,q=void 0;(Q=(q=Z.polymerController)!=null?q:Z)==null||(l=(p=Q).disconnectedCallback)==null||l.call(p)}catch(u){_.me(u)}}})};
CBv=function(){if(!Mvv){Mvv=!0;var G=[Node];N6&&G.push(N6.Wrapper);var H=Node.prototype.insertBefore,Z=Node.prototype.removeChild;G=_.I(G);for(var Q=G.next(),p={};!Q.done;p={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},Q=G.next())Q=Q.value,p.nativeInsertBefore=Q.prototype.insertBefore,Q.prototype.insertBefore=function(q){return function(u,B){if(u instanceof DocumentFragment){var t=Array.from(u.children);u=q.nativeInsertBefore.call(this,u,B);
if(this.isConnected&&q.nativeInsertBefore===H)for(B=_.I(t),t=B.next();!t.done;t=B.next())UI(t.value);return u}t=u instanceof Element&&u.isConnected;B=q.nativeInsertBefore.call(this,u,B);t&&RK(u);this.isConnected&&UI(u);return B}}(p),p.nativeAppendChild=Q.prototype.appendChild,Q.prototype.appendChild=function(q){return function(u){if(u instanceof DocumentFragment){var B=Array.from(u.children);
u=q.nativeAppendChild.call(this,u);if(this.isConnected){B=_.I(B);for(var t=B.next();!t.done;t=B.next())UI(t.value)}return u}B=u instanceof Element&&u.isConnected;t=q.nativeAppendChild.call(this,u);B&&RK(u);this.isConnected&&UI(u);return t}}(p),p.nativeRemoveChild=Q.prototype.removeChild,Q.prototype.removeChild=function(q){return function(u){var B=u instanceof Element&&u.isConnected,t=q.nativeRemoveChild.call(this,u);
B&&Z===q.nativeRemoveChild&&RK(u);return t}}(p),p.nativeReplaceChild=Q.prototype.replaceChild,Q.prototype.replaceChild=function(q){return function(u,B){if(u instanceof DocumentFragment){var t=Array.from(u.children);
u=q.nativeReplaceChild.call(this,u,B);if(this.isConnected)for(RK(B),B=_.I(t),t=B.next();!t.done;t=B.next())UI(t.value);return u}t=u instanceof Element&&u.isConnected;var D=this.isConnected,d=q.nativeReplaceChild.call(this,u,B);D&&RK(B);t&&RK(u);D&&UI(u);return d}}(p);
G=[Element];N6&&G.push(N6.Wrapper);G=_.I(G);Q=G.next();for(p={};!Q.done;p={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},Q=G.next())Q=Q.value,Q.prototype.before=jnf(Q.prototype.before),Q.prototype.after=jnf(Q.prototype.after),p.nativeReplaceWith=Q.prototype.replaceWith,Q.prototype.replaceWith=function(q){return function(){var u=_.Ry.apply(0,arguments),B=_.I(PBv(u)),t=B.next().value,
D=B.next().value;B=this.isConnected;q.nativeReplaceWith.apply(this,u);u=_.I(D);for(D=u.next();!D.done;D=u.next())RK(D.value);if(B)for(RK(this),t=_.I(t),B=t.next();!B.done;B=t.next())B=B.value,B instanceof Element&&UI(B)}}(p),p.nativeRemove=Q.prototype.remove,Q.prototype.remove=function(q){return function(){var u=this.isConnected;
q.nativeRemove.call(this);u&&RK(this)}}(p),p.nativeInsertAdjacentElement=Q.prototype.insertAdjacentElement,Q.prototype.insertAdjacentElement=function(q){return function(u,B){var t=B.isConnected;
u=q.nativeInsertAdjacentElement.call(this,u,B);t&&RK(B);u.isConnected&&UI(u);return u}}(p),p.nativeSetAttribute=Q.prototype.setAttribute,Q.prototype.setAttribute=function(q){return function(u,B){var t=rGR(this);
if(!t.usePatchedLifecycles)return q.nativeSetAttribute.call(this,u,B);var D=this.getAttribute(u);q.nativeSetAttribute.call(this,u,B);B=this.getAttribute(u);wiR(t,u,D,B)}}(p),p.nativeRemoveAttribute=Q.prototype.removeAttribute,Q.prototype.removeAttribute=function(q){return function(u){var B=rGR(this);
if(!B.usePatchedLifecycles)return q.nativeRemoveAttribute.call(this,u);var t=this.getAttribute(u);q.nativeRemoveAttribute.call(this,u);t!==null&&wiR(B,u,t,null)}}(p),p.nativeToggleAttribute=Q.prototype.toggleAttribute,Q.prototype.toggleAttribute=function(q){return function(u,B){var t=rGR(this);
if(!this.usePatchedLifecycles)return q.nativeToggleAttribute.call(this,u,B);var D=this.getAttribute(u),d=D!==null;B=q.nativeToggleAttribute.call(this,u,B);B!==d&&wiR(t,u,D,B?"":null);return B}}(p);
G=[Document,DocumentFragment,Element,ShadowRoot];N6&&G.push(N6.Wrapper);G=_.I(G);for(p=G.next();!p.done;p=G.next())p=p.value,p.prototype.prepend=jnf(p.prototype.prepend),p.prototype.append=jnf(p.prototype.append);(N6==null?void 0:N6.noPatch)===!0&&hXj();document.readyState==="complete"?UI(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&UI(document.body)});
var l=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");l&&l.get&&l.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:l.enumerable,configurable:!0,get:l.get,set:function(q){q||RK(this);l.set.call(this,q);return q}})}};
jnf=function(G){return function(){var H=_.Ry.apply(0,arguments),Z=_.I(PBv(H)),Q=Z.next().value;Z=Z.next().value;G.apply(this,H);H=_.I(Z);for(Z=H.next();!Z.done;Z=H.next())RK(Z.value);if(this.isConnected)for(Q=_.I(Q),H=Q.next();!H.done;H=Q.next())H=H.value,H instanceof Element&&UI(H)}};
hXj=function(){for(var G=_.I(iSM),H=G.next();!H.done;H=G.next()){H=H.value.prototype;for(var Z=_.I(OSj),Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var p=Object.getOwnPropertyDescriptor(H,Q);p&&Object.defineProperty(H,"__shady_native_"+Q,p)}}};
wiR=function(G,H,Z,Q){var p,l;if((p=G.polymerController)==null?0:(l=p.observedAttributes)==null?0:l.includes(H))if(G=G.polymerController,G.attributeChangedCallbackWrapper)G.attributeChangedCallbackWrapper.call(G,H,Z,Q);else{var q;(q=G.attributeChangedCallback)==null||q.call(G,H,Z,Q)}};
PBv=function(G){var H=[],Z=[];G=_.I(G);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value,Q instanceof Element&&Q.isConnected&&Z.push(Q),Q instanceof DocumentFragment?H.push.apply(H,_.OP(Array.from(Q.children))):H.push(Q);return[H,Z]};
rGR=function(G){return!(G instanceof Element)&&G.node instanceof Element?G.node:G};
acu=function(G,H){var Z=H?["children"].concat(_.OP(H)):["children"];H=[];Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next()){var p=Q.value;if(G.hasOwnProperty(p)){Q=G[p];Q=typeof Q==="function"?Q():Q;Q=Array.isArray(Q)?Q:[Q];Q=zI(Q).flat();if(p!=="children"){p=ASe(p);for(var l=_.I(Q),q=l.next();!q.done;q=l.next())q=q.value,q instanceof Element&&q.setAttribute("slot",p)}H.push(Q)}}H.length===0?G=[]:(G=zI(_.J("div",null,H)),G=Array.from(G.childNodes));return G};
oLu=function(G,H,Z){var Q={};_.RM(function(){var p={},l;for(l in H)if(H.hasOwnProperty(l)){var q=void 0,u=void 0;if(!(((q=Z.slotProps)==null?0:q.includes(l))||l==="children"||((u=Z.callbackProps)==null?0:u.includes(l))||l==="ref")&&(q=_.Uv(H[l]),Q[l]!==q)){Q[l]=q;u=void 0;var B=(u=G.hostElement)!=null?u:G;!Z.skipHostForwardedProps&&yGu.has(l)&&(B[l]=q);p[l]=q}}Mf(function(){if(G.setProperties)G.setProperties(p);else for(var t=_.I(Object.entries(p)),D=t.next();!D.done;D=t.next()){var d=_.I(D.value);
D=d.next().value;d=d.next().value;G[D]=d}})},"i")};
U3W=function(G,H,Z,Q){var p=acu(Z,Q.slotProps),l=(0,_.sI)(G);p=_.I(p);for(var q=p.next();!q.done;q=p.next())l.appendChild(q.value);oLu(H,Z,Q);Q=_.I(Q.callbackProps||[]);p=Q.next();for(l={};!p.done;l={kebabEventName:void 0,eventListener:void 0},p=Q.next())q=p=p.value,String(p).substring(0,2)==="on"&&Z[q]?(l.kebabEventName=ASe(String(p).substring(2)),l.eventListener=Z[q],G.addEventListener(l.kebabEventName,l.eventListener),_.oM(function(D){return function(){G.removeEventListener(D.kebabEventName,D.eventListener)}}(l))):
H[q]=Z[q];
if(Z.ref){Z=_.I(m3j(Z.ref));var u=Z.next().value,B=Z.next().value,t=H.attached.bind(H);H.attached=function(){u(G);t()};
_.oM(function(){B()})}};
m3j=function(G){if(typeof G==="function"){var H;return[function(Z){H=G(Z)},
function(){var Z;(Z=H)==null||Z()}]}if(!G.onRender||!G.onUnmount)throw Error("Sg");
return[G.onRender,G.onUnmount]};
RXf=function(G,H){H=H===void 0?{}:H;var Z=function(Q){var p=document.createElement(G),l;var q=(l=p.polymerController)!=null?l:p;U3W(p,q,Q,H);return p};
Z.debugName=G+" (CoW wrapped)";return Z};
Lku=function(G,H,Z,Q,p){Q=Q===void 0?{}:Q;var l=Nzf,q=!1;l?(q=!0,Nzf=void 0):(AGb=H,l=document.createElement(H),AGb=void 0);var u=l;u.usePatchedLifecycles=!0;u.lifecycleIsConnected=!1;l.loggingStatus={};var B=x3o(G,H,l,Q,p);_.oM(function(){u.lifecycleIsConnected&&(u.lifecycleIsConnected=!1,B.disconnectedCallback())});
q||(l.__noInsertionPoint=!0,U3W(l,B,Z,Q));return l};
x3o=function(G,H,Z,Q,p){p=p===void 0?nLM:p;ELb[H]!=null||(ELb[H]=p(G,H,Q==null?void 0:Q.getTemplate,Q));var l=ELb[H],q=l.ctor;p=l.getInitialMethods;var u=l.getPropsToForwardBeforeReady;G=l.getPropsToForwardBeforeRegister;Q=l.shouldForwardProp;var B=l.observedAttributes,t=l.shouldLog,D=q(Z,{beforeReady:function(){var d=D;d._takeAttributes?d._takeAttributes():d.setPropertiesFromInitialAttributeValues&&d.setPropertiesFromInitialAttributeValues();d=_.I(u(Z.polymerController));for(var e=d.next();!e.done;e=
d.next()){var n=_.I(e.value);e=n.next().value;n=n.next().value;XiM(Z,e,n);t(H)&&!ml(e)&&fcW(Z.polymerController,e)}Z.polymerController=UgR(D,H)}});
Z.polymerController=D;Z.polymerController.observedAttributes=B;l=_.I(D.getExtraMethodsToForward());for(q=l.next();!q.done;q=l.next())B=_.I(q.value),q=B.next().value,B=B.next().value,cGj(Z,q,B);p=_.I(p());for(l=p.next();!l.done;l=p.next())l=l.value,Q(l)&&cGj(Z,l),t(H)&&!ml(l)&&Tzf(D,l);G=_.I(G());for(Q=G.next();!Q.done;Q=G.next())p=_.I(Q.value),Q=p.next().value,p=p.next().value,XiM(Z,Q,p);return D};
YYf=function(G){var H=Av;Av=G;return H};
GYU=function(G){if(Fkf.has(G)&&Av&&bSv(Av)===G){var H;(H=Av)._numRenders!=null||(H._numRenders=0);Av._numRenders++;if(Av._numRenders>1)throw Error("Tg");return Av}};
sh3=function(G){var H=bSv(G);Av!==G&&H.includes("-")&&H_2.set(G,!0)};
bSv=function(G){var H;return(H=G==null?void 0:G.tagName.toLowerCase())!=null?H:""};
Z_u=function(G,H){if(G.componentType===Cb)throw Error("Ug");Fkf.add(H);var Z=function(){var Q=HTMLElement.call(this)||this;Q.is=H;if(AGb===H)return Q.isInert=!0,Q;Q.createElement();return Q};
_.T(Z,HTMLElement);Z.prototype.createElement=function(){if(!this.isInert){Nzf=this;var Q=_.I(_.oXb(function(){return _.J(G,null)})).next().value;
Nzf=void 0;RFj(this);return Q}};
customElements.define(H,Z)};
pcf=function(G,H,Z,Q,p){G.prototype.is=H;(Q==null?0:Q.useSink)?Qhj(G,H,Z,Q,p):(Z=nLM(G,H,Z,Q),vLv(Z,H));return G};
Qhj=function(G,H,Z,Q,p){CBv();var l=_.y(function(q){return Lku(G,H,q,Object.assign({},Q,{getTemplate:Z}),p)},"j");
l.debugName=H+" (CoW wrapped)";Z_u(l,H);return l};
g1U=function(G){return!lrR.has(G)};
ScW=function(G,H,Z,Q){function p(){if(!d){for(var e=new Set(Iro),n=_.I(l.behaviors),c=n.next();!c.done;c=n.next()){c=c.value;for(var W=_.I(Object.getOwnPropertyNames(c)),M=W.next();!M.done;M=W.next()){M=M.value;var r=void 0,w=(r=Object.getOwnPropertyDescriptor(c,M))==null?void 0:r.value;w&&w instanceof Function&&(!t[M]||_.V("polymer_forward_method_killswitch"))&&e.add(M)}}n=_.I(Object.entries(Object.getOwnPropertyDescriptors(G.prototype)));for(c=n.next();!c.done;c=n.next())W=_.I(c.value),c=W.next().value,
W=W.next().value,W.value instanceof Function&&e.add(c);d=e}return d}
var l=Rmf({is:H,disableElementRegistration:!1,getTemplate:Z,providers:Q==null?void 0:Q.providers,reactivityMode:Q==null?void 0:Q.reactivityMode},G);if((Q==null?0:Q.allowedProps)||(Q==null?0:Q.allowedPropsFromBehaviors)){var q,u;l.allowedProps=[].concat(_.OP((q=Q.allowedProps)!=null?q:[]),_.OP((u=Q.allowedPropsFromBehaviors)!=null?u:[]))}var B=i5b(l,G);H=B.observedAttributes;var t={};Z=_.I(l.reactiveSchemas);for(Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.type==="signal")t[Q.propertyKey]={readOnly:Q.readOnly},
Q.readOnly&&(t[tBf(Q.propertyKey)]={readOnly:!0});else if(Q.type==="compute"||Q.type==="computeWithMethod"||Q.type==="redux")t[Q.propertyKey]={readOnly:!0};var D=l.reactiveSchemas.length,d;return{ctor:function(e,n){e=new B(e);e.beforeReady=n.beforeReady;return e},
props:t,observedAttributes:H,getInitialMethods:p,getPropsToForwardBeforeRegister:function(){for(var e=[],n=new Set,c=_.I(qc2),W=c.next();!W.done;W=c.next())W=W.value,e.push([W,W!=="observers"&&W!=="properties"]),n.add(W);c=_.I(Object.keys(t));for(W=c.next();!W.done;W=c.next())W=W.value,e.push([W,t[W].readOnly]),n.add(W);c=p();W=_.I(Object.keys(Object.getOwnPropertyDescriptors(G.prototype)));for(var M=W.next();!M.done;M=W.next())M=M.value,!g1U(M)||c.has(M)||n.has(M)||(e.push([M,!1]),n.add(M));e.push(["allowedProps",
!0]);return e},
getPropsToForwardBeforeReady:function(e){var n=[];e=_.I(Object.keys(e));for(var c=e.next();!c.done;c=e.next()){c=c.value;var W=p();g1U(c)&&!W.has(c)&&n.push([c,!1])}e=_.I(l.reactiveSchemas.slice(D));for(c=e.next();!c.done;c=e.next())c=c.value,c.type!=="compute"&&c.type!=="computeWithMethod"&&c.type!=="redux"&&c.type!=="signal"||n.push([c.propertyKey,c.type==="signal"?c.readOnly:!0]);return n},
shouldForwardProp:g1U,shouldLog:tv}};
_.m=function(G,H,Z,Q){var p,l,q=(l=(p=Q)==null?void 0:p.mode)!=null?l:0;Q!=null||(Q={});var u;(u=Q).reactivityMode!=null||(u.reactivityMode=0);q===1&&_.$M("creator_poly_si_disable_list").includes(H)&&(q=2);return q===1?pcf(G,H,Z,Object.assign({},Q,{useSink:!0}),ScW):pcf(G,H,Z,Object.assign({},Q,{useSink:q===2}))};
_.xQ=function(){return function(G,H,Z,Q){var p,l,q=(l=(p=Q)==null?void 0:p.mode)!=null?l:2;Q!=null||(Q={});var u;(u=Q).reactivityMode!=null||(u.reactivityMode=0);if(q===0)throw Error("Vg`"+q);return Qhj(G,H,Z,Q,q===1?ScW:void 0)}};
_.LH=function(G){return _.V("creator_poly_si_killswitch")?!1:_.V("force_all_poly_si_batches")&&(G==="poly_si_all_on_test_check"||G==="creator_poly_si_batch_050"?0:G)||document.documentElement.hasAttribute("use-signals")?!0:!G||_.V(G+"_holdback_enabled")&&_.V("kevlar_polysi_holdback")?!1:_.V(G)};
EI=function(G){return G?G.icon?G.icon.iconType.toLowerCase():G.customThumbnail?"member":"":""};
umW=function(G){if(!G)return"";G=_.I(G);for(var H=G.next();!H.done;H=G.next())if((H=H.value)&&H.liveChatAuthorBadgeRenderer&&(H=EI(H.liveChatAuthorBadgeRenderer))&&H!=="verified")return H;return""};
Bif=function(G,H){if(!G)return null;var Z;return((Z=G.find(function(Q){return Q&&Q.liveChatAuthorBadgeRenderer?EI(Q.liveChatAuthorBadgeRenderer)===H:!1}))==null?void 0:Z.liveChatAuthorBadgeRenderer)||null};
_.e$e=function(G){var H=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;G=J5o(G);H=J5o(H);var Z=tWj(G.hex);H=tWj(H.hex);var Q=H[0]/255;var p=H[1]/255,l=H[2]/255,q=Math.max(Q,p,l),u=Math.min(Q,p,l),B=0,t=0,D=.5*(q+u);q!=u&&(q==Q?B=60*(p-l)/(q-u):q==p?B=60*(l-Q)/(q-u)+120:q==l&&(B=60*(Q-p)/(q-u)+240),t=0<D&&D<=.5?(q-u)/(2*D):(q-u)/(2-2*D));Q=[Math.round(B+360)%360,t,D];Z=kYf(Z,H);for(G=Dxv(G.hex);Z<4.5;){G=Q[2]>=.5?G.darker((4.5-Z)/2):G.brighter((4.5-Z)/2);Z=G.toString();
p=dxX(Z);if(!p.length)throw Error("Xd`"+Z);Z=p;Z=kYf(Z,H)}return G.hex()};
kYf=function(G,H){G=_.NBb(G);H=_.NBb(H);return(Math.max(G,H)+.05)/(Math.min(G,H)+.05)};
_.YQ=function(G){return"#"+("000000"+(G&16777215).toString(16)).slice(-6)};
_.n13=function(G){for(var H=0,Z=0;Z<G.length;Z++)H=G.charCodeAt(Z)+((H<<5)-H);G="#";for(Z=0;Z<3;Z++)G+=("00"+(H>>Z*8&255).toString(16)).slice(-2);return G};
VWe=function(G){G=(G||"").split(":");G.length===1&&G.unshift("yt-icons");G[1]=G[1].toLowerCase();return G};
v1v=function(G,H){var Z=(H=H===void 0?!1:H)?$xb:Xcj,Q=H?c53:TiR;G.getIconNames().forEach(function(p){p=H?p:p.substring(p.indexOf(":")+1);G.name==="yt-icons"?fru.add(p):p.includes("-filled")?Z.add(p):Q.add(p)})};
FT=function(G,H,Z,Q){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;var p,l,q;return _.S(function(u){if(u.nextAddress==1)return u.yield(Wxb,2);if(Q)return u.return(fru.has(G));p=Z?$xb:Xcj;l=Z?c53:TiR;return H?(q=G.includes("-filled")?G:G.concat("-filled"),u.return(p.has(q))):u.return(l.has(G))})};
_.bq=function(G){if(z$v(G))return G.toString();var H=Kx2.get(G);if(H)return H;H=G.toLowerCase();var Z="yt-icons",Q=H.replace(/_/g,"-");switch(G){case "MY_CHANNEL":H="account_circle";break;case "ADD_TO_LIBRARY":H="add";break;case "ALERT_WARN_RED":H="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":H="person_music";break;case "BLOCK_USER":H="block";break;case "CAPTIONS":H="closed_caption";break;case "CLOSED_CAPTION":Z="av";H="closed-caption";break;case "COLLECTION":Z="maps";H="layers";break;case "CONTACT":Z=
"icons";H="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":Z="yt-studio-system-icons";H=Q.split("creator-studio-")[1];break;case "DISMISSAL":H="close";break;case "DO_NOT_DISTURB":H="block";break;case "DOGFOOD":Z="icons";H="pets";break;case "DRAFT":H="paper_corner_folded";
break;case "EMPTY_LIKE":H="like_outline";break;case "EXIT_APP":H="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":H=Q;break;case "GAMES":Z="ytg";H="my-games";break;case "GO_TO_PAGE":H="arrow-forward";break;case "GROUP":Z="social";break;case "HIDE":H="not_interested";break;case "INPUT_COMPONENT":Z="icons";H="settings-input-component";break;case "KIDS_BLOCK":H="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":Z="ytg";H="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":Z=
"ytg";H="membership-post-purchase";break;case "MULTIVIEW":H="screen_multi_view";break;case "MY_LOCATION":Z="maps";H=Q;break;case "NOTIFICATIONS_INBOX":H="NOTIFICATIONS";break;case "NEXT":H="chevron_right";break;case "OFFLINE":H="power-settings-new";break;case "PAUSE":Z="miniplayer";break;case "PAYMENT":Z="icons";break;case "PHONE_DOWNLOAD":H="phone_download";break;case "PREMIUM_STANDALONE":Z="yt-logos";H="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":Z="yt-logos";H="premium_standalone_cairo";
break;case "QUESTION_ANSWER":H="question_answer";break;case "REDEEM":Z="icons";H="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":H="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":H="library_add";break;case "SCHOOL":Z="yt-sys-icons";H="creator_academy";break;case "SETTINGS_LIGHT":H="settings_applications";break;case "SETTINGS_MATERIAL":H="settings";break;case "SEARCH_HISTORY":H="watch_history";break;case "SHOPPING_BAG":H="bag";break;case "SOCIAL":case "PEOPLE":Z=
"yt-icons";H="people";break;case "STAFF_PICK":Z="ytg";H="spotlight";break;case "START_DVR":H="add";break;case "STOP_DVR":Z="av";H="stop";break;case "TAB_LIKED":H="like";break;case "TAB_INBOX":H="mail";break;case "TERMS_OF_SERVICE":Z="icons";H="description";break;case "TRENDING":H="fire";break;case "UNBLOCK_USER":H="remove";break;case "UNPLUGGED_DARK_THEME":Z="image";H="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":H="live";break;case "UNPLUGGED_SPORTS":Z="ytu";H="visibility-off";break;
case "VIDEOS":Z="av";H="play-circle-filled";break;case "YOUTUBE":Z="yt-logos";H="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":Z="yt-logos-ext";H="yt-logo-red-updated";break;case "YOUTUBE_LOGO":Z="yt-logos-ext";H="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":Z="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":Z="shorts";H=Q;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":Z="yt-sys-icons";H="youtube_improve_tv";break;case "OUTLINE_BAG":Z=
"yt-sys-icons";H="bag";break;case "QUEUE_PLAY_LAST":Z="yt-sys-icons";H="list_queue_last";break;case "SLASH_CIRCLE_LEFT":H="slash_circle_left";break;case "SPEED_1_POINT_2X":H="1_point_2x";break;case "SPEED_1_POINT_5X":H="1_point_5x";break;case "SPEED_1_POINT_8X":H="1_point_8x";break;case "SPEED_POINT_2X":H="point_2x";break;case "SPEED_POINT_5X":H="point_5x";break;case "SPEED_POINT_8X":H="point_8x";break;case "SPEED_1X":H="1x";break;case "SPEED_2X":H="2x";break;case "TAB_BOOKMARK":H="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":Z="yt-sys-icons";H="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":Z="yt-sys-icons";H="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":Z="yt-sys-icons",H="tic_tac_toe"}H=Z+":"+H;Kx2.set(G,H);return H};
z$v=function(G){var H;_.V("kevlar_use_wil_icons")?H=!!_.tp().resolve(_.Gt).resolveIcon({iconName:G.toString()}):H=!1;return H};
_.s6=function(G,H,Z,Q){Z=Z===void 0?{}:Z;Q=Q===void 0?!1:Q;Z===null&&(Z={});var p=_.$M("kevlar_command_handler_command_banlist");p=_.I(p);for(var l=p.next();!l.done;l=p.next())if(l=G?G.hasOwnProperty(l.value):void 0,l)return!1;p=_.X(G.commandMetadata,_.HA);return Q&&p!=null&&p.url?!1:!H.disableCommandHandlerOverride&&_.HT.instance?(Q=_.HT.instance,Z.form||(Z.form={element:H}),Z.form.element||(Z.form.element=H),!Z.clickedVisualElement&&H.visualElement&&(Z.clickedVisualElement=H.visualElement),Q.resolveCommand(G,
Z),!0):!1};
MWj=function(G,H){G=ZJ(G);for(var Z=_.I(G.visibilityMonitorKeys||[]),Q=Z.next();!Q.done;Q=Z.next())H.unobserveByKey(Q.value);G.visibilityMonitorKeys=void 0};
wcu=function(G,H){if(_.$k()){if(_.V("kevlar_vimio_use_shared_monitor"))jhj(G,H.data);else if(!jhj(G,H.data))return;var Z=H.data,Q=PFb(Z);if(_.V("enable_client_ve_spec_logging"))MWj(G,H.observer);else{var p=ZJ(G);p.trackedParams&&p.trackedParams!==Q&&MWj(G,H.observer)}p=ZJ(G);!Z||p.data&&p.data===Z||(p.data=Z);r5e(G,H);p.trackedParams=Q}};
r5e=function(G,H){var Z=H.observer;if(!Z&&_.V("web_skip_missing_vimio_observer")){var Q,p;_.Rp(new _.C$("VisibilityObserver is not defined.",G.tagName,G.trackedParams,(Q=H.data)==null?void 0:Q.trackingParams,(p=H.data)==null?void 0:p.loggingDirectives))}else{var l=H.layer,q=H.visibilityCallback||function(){},u=H.prescanCallback,B=ZJ(G);
Q=[];H.showOption&&Q.push(Z.observe(G,function(){H.skipLogging&&H.skipLogging()||_.Qw().reportShown(B,void 0,l);q(!0)},H.showOption));
H.hideOption&&Q.push(Z.observe(G,function(){_.Qw().reportHidden(B,void 0,l);q(!1)},H.hideOption));
H.prescanOption&&u&&Q.push(Z.observe(G,function(){u()},H.prescanOption));
B.visibilityMonitorKeys=Q}};
jhj=function(G,H){G=ZJ(G);if(G.visualElement&&!H)return!0;if(!H)return!1;var Z=!1;if(_.V("enable_client_ve_spec_logging")){var Q,p;Z=!!((Q=H.loggingDirectives)==null?0:(p=Q.clientVeSpec)==null?0:p.uiType)}Q=PFb(H);if(!Q&&!Z)return!1;_.V("mweb_component_visibility_logging")&&(G.veContainer||(G.veContainer={}),G.veContainer.trackingParams=Q);if(G.trackedParams&&G.trackedParams===Q)return!1;var l;if(_.V("enable_client_ve_spec_logging")&&((l=G.visualElement)==null?0:l.isClientVe())){var q;l=(q=G.visualElement)==
null?void 0:q.getAsJspb();var u,B,t,D;if(_.k5(l,2)===((u=H.loggingDirectives)==null?void 0:(B=u.clientVeSpec)==null?void 0:B.uiType)&&_.k5(l,3,-1)===((t=H.loggingDirectives)==null?void 0:(D=t.clientVeSpec)==null?void 0:D.elementIndex))return!1}if(_.V("enable_client_ve_spec_logging")){var d,e;!G.visualElement&&((d=H.loggingDirectives)==null?0:(e=d.clientVeSpec)==null?0:e.uiType)&&(u=H.loggingDirectives.clientVeSpec,H=u.uiType,q=u.elementIndex,u=u.clientYoutubeData,G.visualElement=_.pX(_.gr(),{veType:H,
elementIndex:q,clientYouTubeData:u}))}return!0};
PFb=function(G){if(G==null?0:G.rendererContext){var H=_.X(G.rendererContext,_.IX);if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams}return(G==null?0:G.loggingDirectives)?G.loggingDirectives.trackingParams:G==null?void 0:G.trackingParams};
ZJ=function(G){var H;return(H=G.polymerController)!=null?H:G};
O_f=function(G){_.Qw();if(_.bW(q$().JSC$12728_elementShouldLogGesture).bind(q$())(G,4)){h$v(G);var H=CF3(G);i_o.set(G,H)}};
h$v=function(G){i_o.has(G)&&(i_o.get(G).cancel("untrack hover element"),i_o.delete(G))};
CF3=function(G){var H,Z=[],Q=!1,p=new _.T_(function(l,q){Sk(G,"mouseenter",_.bW(function(){var u,B,t;return _.S(function(D){if(D.nextAddress==1)return H=(0,_.t3)(),u=are(G),Z.push(u),B=y5W(G,function(){Q=!0;q(Error("Wg"))}),D.yield(u,2);
if(D.nextAddress!=3)return B&&ub(B),t=o1f(G),Z.push(t),D.yield(t,3);l();_.K0(D)})}))});
p.then(function(){var l=(0,_.t3)()-H;l=Math.round(l);if(!(500>l||6E5<=l)){var q=G.getScreenLayer?G.getScreenLayer():void 0;q=_.$k(q)||"";var u=mxf(_.Qw(),G);_.O3(q,G.visualElement?G.visualElement:_.BT(u),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:l}})}O_f(G)},function(){Jt&&(Jt(),Jt=null);
Q&&(h$v(G),O_f(G))});
return p};
are=function(G){var H;return(new _.T_(function(Z,Q){Jt=function(){Q(Error("Xg"))};
H=_.Ui.debounce(_.bW(function(){ub(p);Z()}),1,100);
var p=_.tt(G,"mousemove",H)})).thenCatch(function(){var Z=_.Ui.cancelDebouncedJobMap.get(H);
Z&&_.Ui.cancelJob(Z)})};
o1f=function(G){var H;return(new _.T_(function(Z,Q){Jt=function(){Q(Error("Yg"))};
H=Sk(G,"mouseleave",_.bW(function(){Z()}))})).thenCatch(function(){ub(H)})};
y5W=function(G,H){return Sk(G,"mouseleave",_.bW(H))};
R$u=function(G){Uxf&&_.kC.cancel(Uxf);Uxf=_.kC.run(function(){_.N5(G,"yt-visibility-refresh");Uxf=0})};
Niv=function(G){G=Number(G);return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
xxf=function(G){if(!G)return!1;if(_.X(G,_.A5e))return!0;var H;if(G=(H=_.X(G,_.Ft))==null?void 0:H.commands)for(H=_.I(G),G=H.next();!G.done;G=H.next())if(_.X(G.value,_.A5e))return!0;return!1};
LxX=function(G){var H=!0;H=H===void 0?!0:H;if(!G.useSignals&&!G.experimentalPropertiesChanged||_.V("experimental_templating_behavior_nopatch_killswitch")){var Z=G._propertiesChanged;G._propertiesChanged=function(Q,p,l){H?G.debounceRender():G.doRender();Z&&Z.call(G,Q,p,l)}}};
E1f=function(G,H){if(G.useSignals||G.experimentalPropertiesChanged)if(_.V("experimental_templating_behavior_nopatch_killswitch"))G.experimentalPropertiesChanged=function(){};
else return;var Z=new Set,Q=[G].concat(_.OP(G.behaviors));Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next()){p=p.value;for(var l in p.properties)Z.has(l)||(G._addPropertyEffect(l,"function",H),Z.add(l))}};
YcU=function(){var G=Polymer.Element,H=G._prepareTemplate;G._prepareTemplate=function(){H.call(this);var Z=this.prototype;if(Z.experimentalTemplatingInUse&&Z.experimentalTemplatingInUse()&&Z.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.me(Error("Zg"));else{Z=this.template.content.childNodes;for(var Q=Z.length-1;Q>=0;Q--){var p=Z[Q];p.nodeName!=="STYLE"&&p.nodeName!=="LINK"&&p.nodeName!=="SCRIPT"&&p.nodeName!=="#comment"&&p.remove()}}}};
FxU=function(G){var H=!0;H=H===void 0?!0:H;YcU();var Z=G.ready;G.ready=function(){this._template=null;Z.call(this)};
E1f(G,H?G.debounceRender:G.doRender)};
G6R=function(G,H,Z){if(Z===null||Z===void 0)return Z;var Q=fYb(G.tagName.toLowerCase(),H,function(){throw Error("Tb");});
if(Q===null)return Z;Q=b_u[Q];var p;if((p=Q.isUnwrappable)==null?0:p.call(Q,Z)){if(Q.unwrap)return Q.unwrap(Z);throw Error("bh");}return Q.filterString?Q.filterString(G.tagName,H,String(Z)):Z};
HcW=function(G,H,Z){var Q=H[H.length-1]!=="$",p=G6R(G,H,Z);if(Q)if(typeof p==="function"&&H.startsWith("reactiveon")&&H===H.toLowerCase()){var l=IM;wx3(G,H.slice(8),function(q){Nf(l,function(){p(q)})})}else G[H]=p;
else Z=p==null?null:String(p),Ev(G,H.slice(0,-1),Z)};
dr=function(G){s4W.length===0&&requestAnimationFrame(function(){setTimeout(function(){var H=s4W.slice();s4W.length=0;H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;try{Z()}catch(Q){_.DJ(Q)}}})});
s4W.push(G)};
Zcf=function(G){if(G){var H=G.component;if(H){var Z;H==null||(Z=H.events)==null||Z.publish("DISCONNECTED");var Q;H==null||(Q=H.onDisconnected)==null||Q.call(H)}var p,l;(p=G.__spec)==null||(l=p.didUnmount)==null||l.call(p);for(H=0;H<G.childNodes.length;H++)Zcf(G.childNodes[H])}};
Q4f=function(G,H,Z){var Q=H&&H.key,p=gO;p[0]=G;p[1]=Q;p[2]=void 0;for(var l in H)H.hasOwnProperty(l)&&(G=H[l],Q=Iz,Q.push(l),Q.push(G));H=gO;a:{if(l=gO[2])for(G=0;G<l.length;G+=2)if(l[G]==="nonce"){l=l[G+1];break a}l=""}l=xKU(H[0],H[1],l);G=GI(l);Q=H[2];if(!G.staticsApplied&&(G.staticsApplied=!0,Q&&Q.length))if((p=G._attrsArr)&&p.length){for(p=0;p<Q.length;p+=2)ek[Q[p]]=p+1;p=G._attrsArr||(G._attrsArr=rkf(0));for(var q=0,u=0;u<p.length;u+=2){var B=p[u],t=p[u+1],D=ek[B];D?Q[D]===t&&delete ek[B]:(p[q]=
B,p[q+1]=t,q+=2)}Lb(p,q);for(var d in ek)aYe(l,d,Q[ek[d]],uu),delete ek[d]}else for(d=0;d<Q.length;d+=2)aYe(l,Q[d],Q[d+1],uu);H6W(l,G,uu);Lb(H,0);Z&&Z(Ht);Lgj()};
_.nX=function(G,H,Z){Z===void 0?delete G[H.name]:G[H.name]=Z};
_.Vw=function(G){var H={androidIncludeFontPadding:!1},Z=0,Q=[],p=[],l=[];if(G.simpleText)return H.content=G.simpleText,H;if(G.runs===void 0)return H.content="",H;G=_.I(G.runs);for(var q=G.next();!q.done;q=G.next()){q=q.value;var u=q.text,B=void 0,t=(B=u)==null?void 0:B.length;if(u&&t){Q.push(u);if(q.bold||q.italics||q.strikethrough||q.underline||q.textColor!=null&&q.textColor!==0||q.deemphasize){u=p;B=u.push;var D={startIndex:Z,length:t};q.bold&&(D.weightLabel="FONT_WEIGHT_MEDIUM");q.italics&&(D.italic=
!0);q.strikethrough&&(D.strikethrough="LINE_STYLE_SINGLE");q.underline&&(D.underline="LINE_STYLE_SINGLE");q.textColor!=null&&q.textColor!==0?document.documentElement.hasAttribute("dark")?D.fontColor=q.darkModeTextColor||q.textColor:D.fontColor=q.textColor:q.deemphasize&&(document.documentElement.hasAttribute("dark")?D.fontColor=parseInt("ff"+pwu("#aaa").substring(1),16):D.fontColor=parseInt("ff"+pwu("#606060").substring(1),16));B.call(u,D)}q.navigationEndpoint&&(u=l,B=u.push,D={startIndex:Z,length:t,
onTap:{innertubeCommand:q.navigationEndpoint}},q.loggingDirectives&&_.nX(D,lsW,q.loggingDirectives),B.call(u,D));Z+=t}}H.content=Q.join("");H.styleRuns=p.length?p:void 0;H.commandRuns=l.length?l:void 0;return H};
Isf=function(G){if(G==null||!G.runs)return!0;G=_.I(G.runs);for(var H=G.next();!H.done;H=G.next())if(H=H.value,H.bracket||H.errorUnderline||H.deemphasize||_.X(H,$C)||_.X(H,gdW))return!1;return!0};
qTv=function(G,H){return function(Z){var Q=H.unit;if(Q!==Z)throw Error("eh`"+G+"`"+Q+"`"+Z);return H}};
Xg=function(G){if(!((G==null?0:G.value)&&(G==null?0:G.unit)))return"";switch(G.unit){case "DIMENSION_UNIT_FRACTION":var H="%";break;default:H="px"}G=G.value;H==="%"&&(G*=100);return""+G+H};
STf=function(G){try{return G()}catch(H){_.Rp(H)}};
_.Tt=function(G){var H=_.X(G,_.cT);if(H)return H;if((H=_.X(G,uBM))&&H.commands)return BdW(H.commands);if((H=_.X(G,Jhf))&&H.commands)return BdW(H.commands);if((G=_.X(G,tzW))&&G.identifier&&G.command&&(k6j||(k6j=[]),!k6j.includes(G.identifier)))return k6j.push(G.identifier),_.X(G.command,_.cT)};
BdW=function(G){if(G.length!==0){var H=[];G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())(Z=_.Tt(Z.value))&&H.push(Z);return{commandExecutorCommand:{commands:H}}}};
_.vT=function(G){var H=G.defaultTarget,Z=G.elementConfig,Q=G.elementsCommand,p=G.skipOnClick,l=G.forceNewState,q=G.additionalCommandArgs,u=G.innertubeCommand||_.Tt(Q);if(u){G={};var B=DIU(u);Q=B.navigatingCommand;B=B.href;Q&&B?(G.href$=B,dIe(G,Q,B,H),_.V("web_atagconfig_pointerdown")&&e5u(G,Q),l&&(G["force-new-state$"]=!0)):(G.role$="button",G.href$="javascript:void(0);");_.X(u,ndj)&&(G["aria-haspopup$"]=!0);p||(G.onclick=function(t){var D={};if(Vzv(t)){var d=(q==null?void 0:q.clickedVisualElement)||
(q==null?void 0:q.getClickedVisualElement)&&q.getClickedVisualElement();d&&(D={clickedVisualElement:d});D=Object.assign({},{form:{element:t.target,event:t,createScreenConfig:D}},q);t.preventDefault();_.fX(u,D)}});
return Object.assign({},Z,G)}};
$Ij=function(G){if(G.length){if(G.length===1)return G[0];var H={};_.nX(H,_.Ft,{commands:G});return H}};
WT=function(G){return G&&G.href$!=="javascript:void(0);"};
DIU=function(G){var H,Z=((H=_.X(G,_.Ft))==null?void 0:H.commands)||[G];G=_.I(Z);for(H=G.next();!H.done;H=G.next()){H=H.value;var Q=void 0,p=void 0;Z=(p=_.X((Q=H)==null?void 0:Q.commandMetadata,_.HA))==null?void 0:p.url;_.V("web_remove_web_navigation_endpoint_data")||(Q=void 0,Z=Z||((Q=_.X(H,Xw2))==null?void 0:Q.url));if(Z&&Z!=="/service_ajax"){if(Q=_.y2(Z,chM))return G=_.iI(Q),{navigatingCommand:H,href:G};_.Rp(new _.C$("AttributedString URL could not be sanitized",Z))}}return{}};
Vzv=function(G){return G.button!==void 0?G.button===0&&!(G.shiftKey||G.altKey||G.metaKey||G.ctrlKey):!(G.shiftKey||G.altKey||G.metaKey||G.ctrlKey)};
dIe=function(G,H,Z,Q){Z=!u0(Z);var p,l,q;if((p=_.X(H,_.gT))!=null&&p.nofollow||(l=_.X(H,_.hZ))!=null&&l.nofollow||(q=_.X(H,_.Hx))!=null&&q.nofollow||Z)G.rel$="nofollow";var u;H=((u=_.X(H,_.Hx))==null?void 0:u.target)==="TARGET_NEW_WINDOW"?"_blank":Q===void 0?"":Q;G.target$=H};
e5u=function(G,H){H.clickTrackingParams&&(G.params={itct:H.clickTrackingParams});G.onpointerdown=function(Z){Tdf(Z)};
G._data=H};
fsj=function(G){(G.loggingUrls||[]).forEach(function(H){HW(H.baseUrl,H.attributionSrcMode)})};
Tdf=function(G){var H=G.currentTarget;G=STf(function(){return H.href});
var Z=H.params;G&&_.aO(G,Z||{},8,!0)};
_.zt=function(G,H){(G=_.Tt(G))&&_.fX(G,H)};
_.fX=function(G,H){b9R(function(Z){H?Z.resolveCommand(G,H):Z.resolveCommand(G)})};
K8j=function(G,H){var Z=["yt-core-attributed-string__link"];H!=null&&H.noLinkColor||((H==null?0:H.isOverlay)?Z.push("yt-core-attributed-string__link--overlay-call-to-action-color"):Z.push("yt-core-attributed-string__link--call-to-action-color"),(H==null?0:H.linkInheritColor)&&Z.push("yt-core-attributed-string--link-inherit-color"));Z={className:Z.join(" "),tabindex$:"0"};var Q=G.onTap||G.onLongPress;if(!Q)return Z;var p=vdo(G);p&&(Z["aria-label$"]=p);H=_.vT({elementsCommand:Q,elementConfig:Z,skipOnClick:!(H==
null||!H.skipOnClick),forceNewState:!0});G.onLongPress&&(Q=new W8f(function(){var l=_.Tt(G.onLongPress);l&&_.tp().resolve(_.Dk).resolveCommand(l)}),H&&z5R(Q,H));
return H||Z};
vdo=function(G){var H,Z;return(H=G.onTapOptions)==null?void 0:(Z=H.accessibilityInfo)==null?void 0:Z.accessibilityLabel};
MzM=function(G){var H=G;G<=16777215&&(H+=parseInt("ff000000",16));return _.c$(H)};
j43=function(G){var H=G.isDarkTheme;var Z=G.extension;G=G.runColor;var Q=void 0;if(Z=Z==null?void 0:Z.colorMap){H=H?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";Z=_.I(Z);for(var p=Z.next();!p.done;p=Z.next())if(p=p.value,H===p.key){Q=p.value;break}}Q==null&&G&&(Q=G);if(Q)return MzM(Q)};
KX=function(G){var H=G.config;var Z=G.image;var Q=G.imageConfig;var p=G.imageWrapperConfig;var l=G.run;var q=G.tag;var u=G.textLength;var B=G.startIndex===void 0?0:G.startIndex;G=G.length;B===void 0&&(B=0);l={run:l,startIndex:B,endIndex:G!==void 0?B+G:u,tag:q};Z&&(l.image=Z);Q&&(l.imageConfig=Q);p&&(l.imageWrapperConfig=p);H&&(l.config=H);return l};
rhj=function(G,H){var Z=[];Z.push("yt-core-attributed-string");(H==null?0:H.className)&&Z.push(H==null?void 0:H.className);(H==null?0:H.ellipsisTruncate)?Z.push("yt-core-attributed-string--ellipsis-truncate"):(H==null?0:H.noWrap)?Z.push("yt-core-attributed-string--white-space-no-wrap"):(H==null?0:H.noPreWrap)||Z.push("yt-core-attributed-string--white-space-pre-wrap");(H==null?0:H.linkInheritColor)&&Z.push("yt-core-attributed-string--link-inherit-color");G.alignment&&Z.push(Psj(G.alignment));G.lineBreakMode&&
Z.push("yt-core-attributed-string--word-wrapping");return Z.join(" ")};
wwv=function(G,H){if(G.weight)return G.weight;switch(G.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 H?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
h5f=function(G){switch(G){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"}};
Psj=function(G){switch(G){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"}};
PT=function(G,H,Z){var Q=H;G.content&&Z&&(Z=G.content.indexOf("\n"),Z!==-1&&(Q=Math.min(H,Z)));if(!G.content||G.content.length<=Q)H=G;else if(G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.paragraphStyleRuns){H=M$(G.content,Q);Z=Q;var p=G.attachmentRuns;if(p){var l=[];p=_.I(p);for(var q=p.next();!q.done;q=p.next())q=Object.assign({},q.value),q.startIndex===void 0||q.startIndex>=Z||(q.length||(q.length=0),q.length+q.startIndex>Z&&(q.length=Z-q.startIndex),l.push(q));Z=l}else Z=void 0;
l=Csu(Q,G.commandRuns);p=Q;var u=G.decorationRuns;if(u){q=[];u=_.I(u);for(var B=u.next();!B.done;B=u.next()){B=B.value;var t=_.X(B.textDecorator,jk);if(t&&t.startIndex!==void 0&&!(t.startIndex>=p)){B=Object.assign({},B,{textDecorator:{highlightTextDecorator:Object.assign({},t)}});t=_.X(B.textDecorator,jk);if(!t.length||t.length+t.startIndex>p)t.length=p-t.startIndex;q.push(B)}}p=q}else p=void 0;q=Csu(Q,G.styleRuns);if(u=G.paragraphStyleRuns)for(G=[],u=_.I(u),B=u.next();!B.done;B=u.next()){var D=B.value;
B=Object.assign({},D);if(!(B.startIndex===void 0||B.startIndex>=Q)){if(!B.length||B.length+B.startIndex>Q)B.length=Q-B.startIndex;t=[];var d=void 0,e=void 0;if((d=D)==null?0:(e=d.listGroup)==null?0:e.listItems)for(D=_.I(D.listGroup.listItems),d=D.next();!d.done;d=D.next())if(d=Object.assign({},d.value),!(d.startIndex===void 0||d.startIndex>=Q)){if(!d.length||d.length+d.startIndex>Q)d.length=Q-d.startIndex;t.push(d)}t.length>0&&(B.listGroup||(B.listGroup={}),B.listGroup=Object.assign({},B.listGroup,
{listItems:t}));G.push(B)}}else G=void 0;H={content:H,attachmentRuns:Z,commandRuns:l,decorationRuns:p,styleRuns:q,paragraphStyleRuns:G}}else H=Object.assign({},G,{content:M$(G.content,Q)});return H};
Csu=function(G,H){if(H){var Z=[];H=_.I(H);for(var Q=H.next();!Q.done;Q=H.next())if(Q=Object.assign({},Q.value),!(Q.startIndex===void 0||Q.startIndex>=G)){if(!Q.length||Q.length+Q.startIndex>G)Q.length=G-Q.startIndex;Z.push(Q)}return Z}};
M$=function(G,H){var Z=H,Q;if(Q=Z>0)Q=G.charCodeAt(Z-1),Q=Q>=55296&&Q<=56319;Q&&(Z=G.charCodeAt(Z),Q=Z>=56320&&Z<=57343);Q&&--H;return G.substring(0,H)};
yhM=function(G,H,Z){Z=Z===void 0?icf:Z;if(G){var Q=_.tp().resolve(Jk);Q||_.V("mweb_no_observer_killswitch")?wcu(G,{data:H,observer:Q,visibilityCallback:Z,hideOption:Oco,showOption:as3,layer:G.layer}):_.Rp(new _.C$("Warning: monitorVisibility called with null observer",G.tagName,H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams))}else _.Rp(new _.C$("Warning: monitorVisibility called with null element",H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams,H==null?void 0:
H.rendererContext))};
xI3=function(G,H){var Z=[],Q=G.content.length,p,l=(p=_.tp().resolve(_.Jp(_.rr)))==null?void 0:p();if(G.paragraphStyleRuns){p=_.I(G.paragraphStyleRuns);for(var q=p.next();!q.done;q=p.next()){var u=Z.push,B=u.apply;var t=void 0;q=q.value;if((t=q.listGroup)!=null&&t.listItems){t=[];b:switch(q.listGroup.listType){case "LIST_TYPE_BULLET":var D="ul";break b;default:D="span"}t.push(KX({run:q,textLength:Q,tag:D,config:{className:"yt-core-attributed-string__list-group"},startIndex:q.startIndex,length:q.length}));
D=_.I(q.listGroup.listItems);for(var d=D.next();!d.done;d=D.next()){d=d.value;b:switch(q.listGroup.listType){case "LIST_TYPE_BULLET":var e="li";break b;default:e="span"}t.push(KX({run:q,textLength:Q,tag:e,startIndex:d.startIndex,length:d.length}))}q=t}else q=[];B.call(u,Z,_.OP(q))}}if(G.styleRuns&&(H==null||!H.noStyleRuns))for(p=_.I(G.styleRuns),u=p.next();!u.done;u=p.next()){q=u=u.value;t=l;B=H;t=j43({extension:_.X(q.styleRunExtensions,od3),isDarkTheme:t===void 0?!1:t,runColor:q.fontColor});d=q;
D=[];t&&D.push("yt-core-attributed-string--link-inherit-color");d.italic&&D.push("yt-core-attributed-string--italicized");d.underline&&d.strikethrough?D.push("yt-core-attributed-string--underline-strikethrough",h5f(d.underline)):d.underline?D.push("yt-core-attributed-string--underlined",h5f(d.underline)):d.strikethrough&&D.push("yt-core-attributed-string--strikethrough",h5f(d.strikethrough));if(d.baselineOffset){a:switch(d.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":d="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":d="yt-core-attributed-string--baseline-offset-superscript";break a;default:d="yt-core-attributed-string--baseline-offset-unknown"}D.push(d)}D=D.join(" ");d={};if(q.weight||q.weightLabel)d.fontWeight=wwv(q,B==null?void 0:B.isHeadline).toString();t&&(d.color=t);Z.push(KX({run:u,textLength:Q,tag:"span",config:{className:D,style:d},startIndex:u.startIndex,length:u.length}))}if(G.decorationRuns)for(p=_.I(G.decorationRuns),u=p.next();!u.done;u=p.next())u=u.value,
B={},u.textDecorator&&(D=u.textDecorator,q=l===void 0?!1:l,d=[],t=_.X(D,jk),D=_.X(D,mIo),t?(D=d,d=D.concat,e=[],(q=j43({extension:_.X(t.highlightTextDecoratorExtensions,UI3),isDarkTheme:q,runColor:t.backgroundColor}))&&e.push("background-color: "+q+";"),t.backgroundCornerRadius!==void 0&&e.push("border-radius: "+t.backgroundCornerRadius+"px;"),t.leftPadding!==void 0&&e.push("padding-left: "+t.leftPadding+"px;"),t.rightPadding!==void 0&&e.push("padding-right: "+t.rightPadding+"px;"),t.topPadding!==
void 0&&e.push("padding-top: "+t.topPadding+"px;"),t.bottomPadding!==void 0&&e.push("padding-bottom: "+t.bottomPadding+"px;"),d=d.call(D,e)):D&&(t=d,d=t.concat,q=q?"#2ba640":"#107516",q=D.color?MzM(D.color):q,q=["padding: 2px;","border-top: solid "+q+" 2px;","border-bottom: solid "+q+" 2px;","background: linear-gradient(135deg, "+q+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+q+" 3px, rgba(0, 0, 0, 0) 3px);"],d=d.call(t,q)),q=d.join(" "),B.style$=q,q=u.textDecorator,t=[],D=_.X(q,
mIo),_.X(q,jk)?t.push("yt-core-attributed-string--highlight-text-decorator"):D&&t.push("yt-core-attributed-string--bracket-text-decorator"),q=t.join(" "),B.className=q,B.dir="auto"),q=_.X(u.textDecorator,jk),t=_.X(u.textDecorator,mIo),D=_.X(u.textDecorator,jk),d=_.X(u.textDecorator,mIo),Z.push(KX({run:u,textLength:Q,tag:"span",config:B,startIndex:(q==null?void 0:q.startIndex)||(t==null?void 0:t.startIndex)||0,length:(D==null?void 0:D.length)||(d==null?void 0:d.length)||0}));if(G.commandRuns&&(H==
null||!H.noEndpoints))for(l=_.I(G.commandRuns),p=l.next();!p.done;p=l.next())p=p.value,u=K8j(p,H),Z.push(KX({run:p,textLength:Q,tag:"a",config:u,startIndex:p.startIndex,length:p.length}));if(G.attachmentRuns)for(G=_.I(G.attachmentRuns),l=G.next();!l.done;l=G.next()){l=l.value;B=u=void 0;p={className:"yt-core-attributed-string--inline-block-mod"};if((B=l.element)==null?0:B.properties){B=(u=l.element)==null?void 0:u.properties;u=[];B=_.X(B,R5f);if(B==null?0:B.margin)B=B.margin,B.left&&u.push("margin-left: "+
Xg(B.left)+";"),B.right&&u.push("margin-right: "+Xg(B.right)+";"),B.top&&u.push("margin-top: "+Xg(B.top)+";"),B.bottom&&u.push("margin-bottom: "+Xg(B.bottom)+";");u=u.length!==0?u.join(" "):void 0;p.style$=u}q=void 0;u={alt:"",preserveHeight:!0,preserveWidth:!0};B=["yt-core-attributed-string__image-element"];if(l.alignment){a:switch(l.alignment){case "ALIGNMENT_BASELINE":t="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":t="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:t="yt-core-attributed-string__image-element--image-alignment-bottom"}B.push(t)}if((q=l.element)==null?0:q.properties)q=[],t=_.X(l.element.properties,R5f),(t==null?0:t.height)&&q.push("height: "+Xg(t.height)+";"),(t==null?0:t.width)&&q.push("width: "+Xg(t.width)+";"),q=q.length!==0?q.join(" "):void 0,u.style$=q,t=void 0,q=((t=_.X(l.element.properties,Ndv))==null?void 0:t.label)||"",u.alt=q;u.className=B.join(" ");B=void 0;D=t=void 0;q=((D=l.element)==null?0:D.type)?(t=_.X(l.element.type,
Ahf))==null?void 0:t.image:void 0;Z.push(KX({run:l,textLength:Q,tag:"img",image:q,imageConfig:u,imageWrapperConfig:p,startIndex:l.startIndex,length:(B=l.length)!=null?B:0}))}if(H==null?0:H.headerRuns)for(H=_.I(H.headerRuns),G=H.next();!G.done;G=H.next())if(G=G.value,G.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(G.headerMapping)){a:{switch(G.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":l=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":l="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":l="yt-core-attributed-string--heading-3";break a}l=void 0}Z.push(KX({run:G,textLength:Q,tag:"span",config:l?{className:l}:void 0,startIndex:G.startIndex,length:G.length}))}return Z};
_.wr=function(G){return(G==null?void 0:G.content)!==void 0};
L8R=function(G){return _.wr(G)?G:_.Vw(G)};
EdM=function(G){return G.image!==void 0&&G.imageConfig!==void 0};
YT2=function(G,H){if(H==null?0:H.userInput)for(G=_.I(G),H=G.next();!H.done;H=G.next())if(H=H.value,H.tag!=="a"&&H.tag!=="li"){var Z=void 0;(Z=H).config||(Z.config={});H.config.dir=H.tag==="ul"?_.tp().resolve(_.ht):"auto"}};
F82=function(G){return function(H){var Z=G.run;(Z.onTap!==void 0||Z.onLongPress!==void 0)&&_.X(Z,lsW)&&yhM(H,{loggingDirectives:_.X(Z,lsW)})}};
bcv=function(G){return function(H){for(var Z in G)(uu[Z]||uu[YF["default"]])(H,Z,G[Z])}};
ZCj=function(G,H){Gnj(H);var Z={data:null,start:0,end:G.length,parts:[]};H=_.I(H);for(var Q=H.next();!Q.done;Q=H.next())Q=Q.value,HCR(Z,Q.startIndex,Q.endIndex,Q);scf(G,Z);return Z};
HCR=function(G,H,Z,Q){for(var p=_.I(G.parts),l=p.next();!l.done;l=p.next()){l=l.value;if(typeof l==="string")throw Error("gh");if(l.start<=H&&Z<=l.end){HCR(l,H,Z,Q);return}}G.parts.push({data:Q,parts:[],start:H,end:Z})};
scf=function(G,H){for(var Z=H.parts.length;Z>=0;Z--){var Q=H.parts[Z],p=H.parts[Z-1],l=Z===H.parts.length?H.end:Q.start;p=Z===0?H.start:p.end;l!==p&&H.parts.splice(Z,0,G.slice(p,l));Q&&scf(G,Q)}};
Gnj=function(G){G.sort(function(H,Z){if(H.startIndex<Z.startIndex)return-1;if(Z.startIndex<H.startIndex)return 1;H=H.endIndex-H.startIndex;Z=Z.endIndex-Z.startIndex;return H>Z?-1:Z>H?1:0})};
_.Qco=function(G){var H=G.thumbnails;if(H){G={sources:[]};H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q={};Q.url=Z.url;Q.width=Z.width;Q.height=Z.height;G.sources.push(Q)}return G}};
pXf=function(G,H,Z,Q){if(!H)return G.length>=1?G[G.length-1]:null;if(Q)for(var p=_.I(G),l=p.next();!l.done;l=p.next()){l=l.value;var q=void 0,u=(q=l.url)==null?void 0:q.indexOf(Q);if(u!==void 0&&u>=0)return l}Q=_.I(G);for(p=Q.next();!p.done;p=Q.next())if(p=p.value,p.width&&p.height&&(Z&&p.width>=H||!Z&&p.height>=H))return p;for(H=G.length-1;H>=0;H--)if(Z&&G[H].width||!Z&&G[H].height)return G[H];return G[0]};
_.lVj=function(G){var H;return(G=(H=G.sources)==null?void 0:H[0])?G.width/G.height:0};
_.gvj=function(G){if(G.sources){G=_.I(G.sources);for(var H=G.next();!H.done;H=G.next()){H=H.value;var Z=void 0;if((Z=H.clientResource)==null?0:Z.imageName)return H}}};
IVj=function(G){var H;if((H=G.clientResource)!=null&&H.imageColor)return _.c$(G.clientResource.imageColor)};
_.S2o=function(G,H,Z,Q,p,l,q){if(!H||H.length===0||H[0].clientResource)return null;if(Z&&H[0].url)return H[0].url;Q===void 0&&(Q=!0);if(Q){var u;G=q2u*(p||(G==null?void 0:(u=G.getBoundingClientRect())==null?void 0:u.width)||0)}else{var B;G=q2u*(l||(G==null?void 0:(B=G.getBoundingClientRect())==null?void 0:B.height)||0)}H=pXf(H,G,Q,q);return(H==null?0:H.url)?H.url:(H==null?0:H.imageData)?H.imageData:null};
uIb=function(G,H,Z){Z=Z?[Z]:[];G.opacity&&Z.push("opacity: "+G.opacity+";");H&&G.placeholderColor?(G=_.c$(G.placeholderColor),Z.push("background-color: "+G+";")):Z.push("background-color: transparent;");return Z.join(" ")};
B6b=function(G,H,Z,Q,p){var l=["ytCoreImageHost"];H&&l.push(H);Z||l.push("ytCoreImageFillParentHeight");Q||l.push("ytCoreImageFillParentWidth");switch(G.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":l.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":l.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":l.push("ytCoreImageContentModeCenter");break;default:l.push("ytCoreImageContentModeScaleToFill")}G.flipForRtlLayout&&l.push("ytCoreImageFlipRtl");
switch(p){case "TOP_START":var q;l.push(((q=document.body)==null?void 0:q.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return l.join(" ")};
t0v=function(G){var H;if(G==null?0:(H=G.clientResource)==null?0:H.imageName){var Z;G=(Z=G.clientResource)==null?void 0:Z.imageName;a:{switch(G){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":Z="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":Z="yt-logos-ext:yt-logo-updated";break a}Z=void 0}return Z||Jnv.get(G)||G}};
dpf=function(G){return _.V("mweb_wiz_skip_render")?knf(G):Dpo(G)};
knf=function(G){return function(H){var Z=xKU("wink-root");QP=Ht.lastChild;Lgj();$BM(Z,_.J(G,H))}};
Dpo=function(G){var H=H===void 0?!1:H;return function(Z){if(!H||!_.V("mweb_skip_keto_to_c3_if_no_data")||Z.data!==void 0){var Q=D2(!1);try{var p=Z.children;_.V("mweb_render_outside_patch_killswitch")||Ht?p?Ss(_.J(G,Z,p)):Ss(_.J(G,Z)):_.Rp(new _.C$("ketoToC3 called outside of a patch",{tagName:G.TAG_NAME}))}finally{D2(Q)}}}};
ewW=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
V02=function(G,H){G.onViewportEntered=H;nvR.observe(G)};
$pe=function(){var G={rootMargin:"10%",threshold:.01};_.V("mweb_enable_set_io_root_to_null_safari")?G.root=null:_.V("mweb_enable_set_io_root_to_body_safari")&&(G.root=document.body);return new IntersectionObserver(function(H,Z){H.filter(function(Q){return Q.intersectionRect.height>0}).forEach(function(Q){Q=Q.target;
if(!_.V("mweb_enable_only_update_image_when_connected")||Q.isConnected!==!1){var p;(p=Q.onViewportEntered)==null||p.call(Q);Z.unobserve(Q)}})},G)};
XXb=function(G,H,Z,Q,p){function l(){if(Q){var u=Q.loadedClass,B=Q.notifyOnUnloaded;u&&_.CX(G,u);B&&G.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function q(){var u=Z(H,G);u&&G.getAttribute("src")!==u&&(_.V("mweb_enable_only_update_image_when_connected")&&G.isConnected===!1||u===G.src||(G.src=u),l())}
p=p===void 0?!0:p;G.removeAttribute("src");l();H&&(p?V02(G,q):q())};
cnR=function(G,H,Z){if(!H)return!1;H=Z(H,G);Z=G.getAttribute("src");return H&&H===Z&&G.complete};
T6U=function(G,H){for(var Z in H)Z==="className"?G.className=H[Z]:(uu[Z]||uu[YF.default])(G,Z,H[Z])};
fVj=function(G,H,Z,Q){dpf(_.ib)({contentMode:H.contentMode,loadedClass:H.loadedClass,isPreloaded:H.isPreloaded,notifyOnLoaded:H.notifyOnLoaded,notifyOnUnloaded:H.notifyOnUnloaded,preferredThumbnail:H.preferredThumbnail,preserveHeight:H.preserveHeight,preserveWidth:H.preserveWidth,objectPosition:H.objectPosition,targetWidth:H.targetWidth,targetHeight:H.targetHeight,shouldShowPlaceholder:H.shouldShowPlaceholder,useWidth:H.useWidth,isToggled:H.isToggled,alt:H.alt,className:H.className,onerror:H.onerror,
onload:H.onload,style$:H.style$,color:H.color,width:H.width,height:H.height,"aria-hidden$":H["aria-hidden$"],draggable:H.draggable,"data-disabled$":H["data-disabled$"],data:G,callback:Z,renderLazy:Q===void 0?!0:Q,hideOn404:!1})};
WBf=function(G,H,Z){Z=Z===void 0?!1:Z;var Q=G.sources!==void 0?G:_.Qco(G);if(Q){var p=H.onload;H.onload=function(B){var t=B.target;Z&&t.naturalWidth===120||_.O6(t,"ytCoreImageLoaded");H.notifyOnLoaded&&t.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));p==null||p(B)};
H.targetWidth&&H.preserveWidth&&(H.width=H.targetWidth);H.targetHeight&&H.preserveHeight&&(H.height=H.targetHeight);var l=_.gvj(Q),q=l&&t0v(l);if(q)return(G=IVj(l))&&(H.color=G),{type:"icon",iconName:q,config:Object.assign({},H,H.alt?{}:{"aria-hidden$":"true"},{"aria-label$":H.alt,role:"img"})};if(G.sources===void 0){H.alt=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label||H.alt;H.style$=uIb(G,H.shouldShowPlaceholder,H.style$);var u;H.isPreloaded=!((u=_.X(G,
vvM))==null||!u.isPreloaded)}H.contentMode&&!Q.contentMode&&(Q.contentMode=H.contentMode);H.className=B6b(Q,H.className,H.preserveHeight,H.preserveWidth,H.objectPosition);H.loadedClass="ytCoreImageLoaded";return{type:"image",image:Q,config:H}}};
_.aX=function(){var G=_.Ry.apply(0,arguments);return _.qK(zwj,function(H){var Z=G.map(function(Q){return Q==null?void 0:Q(H)});
return function(){return void Z.forEach(function(Q){return void(Q==null?void 0:Q())})}})};
yw=function(G,H){var Z=H==null?void 0:H.initial;return _.Kb(function(){_.Uv(!0);return Z=G(Z)},{equals:H==null?void 0:H.isEqual},"rSlKsc")};
KBj=function(G,H){if(G===H)return!0;if(G===void 0||H===void 0)return!1;var Z,Q,p,l,q,u,B,t;return G.content===H.content&&((Z=G.styleRuns)==null?void 0:Z.length)===((Q=H.styleRuns)==null?void 0:Q.length)&&((p=G.commandRuns)==null?void 0:p.length)===((l=H.commandRuns)==null?void 0:l.length)&&((q=G.attachmentRuns)==null?void 0:q.length)===((u=H.attachmentRuns)==null?void 0:u.length)&&((B=G.decorationRuns)==null?void 0:B.length)===((t=H.decorationRuns)==null?void 0:t.length)};
Pge=function(G,H){if(G){var Z=L8R(G);if(Z!=null&&Z.content)if(_.V("attr_string_reactive"))dpf(M0U)({text:G,config:H});else{var Q=!(H==null||!H.ariaLabel)||!(Z.commandRuns&&Z.commandRuns.length!==0||Z.paragraphStyleRuns&&Z.paragraphStyleRuns.length!==0);G=Q?H==null?void 0:H.ariaLabel:null;Q=Q?"text":null;Q4f("span",{className:rhj(Z,H),dir$:(H==null?0:H.userInput)?"auto":void 0,"aria-label$":G,role$:Q},function(){if(Z.styleRuns||Z.commandRuns||Z.attachmentRuns||Z.decorationRuns||Z.paragraphStyleRuns){var p=
xI3(Z,H);YT2(p,H);p=ZCj(Z.content,p);p=_.I(p.parts);for(var l=p.next();!l.done;l=p.next())jcM(l.value)}else sZe(Z.content)})}}};
jcM=function(G){typeof G==="string"?sZe(G):EdM(G.data)?Q4f("span",G.data.imageWrapperConfig,function(){fVj(G.data.image,G.data.imageConfig)}):Q4f(G.data.tag,G.data.config,function(H){F82(G.data)(H);
H=_.I(G.parts);for(var Z=H.next();!Z.done;Z=H.next())jcM(Z.value)})};
wXj=function(G){return G.parts.map(rnj)};
rnj=function(G){if(typeof G==="string")return G;G=EdM(G.data)?_.J("span",{el:_.aX(bcv(G.data.imageWrapperConfig))},_.J(_.ib,Object.assign({},{data:G.data.image},G.data.imageConfig))):_.J(G.data.tag,{el:_.aX(F82(G.data),bcv(G.data.config))},G.parts.map(rnj));return zI(G)};
hwj=function(G,H){return G===H?!0:G===void 0||H===void 0?!1:G.noStyleRuns===H.noStyleRuns&&G.noLinkColor===H.noLinkColor&&G.noEndpoints===H.noEndpoints&&G.headerRuns===H.headerRuns&&G.isOverlay===H.isOverlay&&G.linkInheritColor===H.linkInheritColor&&G.userInput===H.userInput&&G.isHeadline===H.isHeadline};
CgW=function(G){return function(){var H,Z,Q,p,l,q,u,B,t,D,d,e,n,c;return{ariaLabel:(H=G.ariaLabel)==null?void 0:H.call(G),className:(Z=G.className)==null?void 0:Z.call(G),ellipsisTruncate:(Q=G.ellipsisTruncate)==null?void 0:Q.call(G),isOverlay:(p=G.isOverlay)==null?void 0:p.call(G),linkInheritColor:(l=G.linkInheritColor)==null?void 0:l.call(G),noEndpoints:(q=G.noEndpoints)==null?void 0:q.call(G),noStyleRuns:(u=G.noStyleRuns)==null?void 0:u.call(G),noLinkColor:(B=G.noLinkColor)==null?void 0:B.call(G),
noPreWrap:(t=G.noPreWrap)==null?void 0:t.call(G),noWrap:(D=G.noWrap)==null?void 0:D.call(G),skipOnClick:(d=G.skipOnClick)==null?void 0:d.call(G),userInput:(e=G.userInput)==null?void 0:e.call(G),headerRuns:(n=G.headerRuns)==null?void 0:n.call(G),isHeadline:(c=G.isHeadline)==null?void 0:c.call(G)}}};
OCj=function(G,H){G=new iCf(G,H);_.me(G);throw G;};
aVj=function(G,H,Z){var Q=YYf(G);G._numRenders=0;try{var p=_.oXb(function(){return _.J(H,Object.assign({},Z))})}catch(q){var l=function(u){u.args||(u.args=[]);
u.args.push("Error in web component wrapper");u.args.push(G.tagName.toLowerCase());return u};
_.UN(q instanceof Error?l(q):new iCf("Wiz rendering error",G.tagName.toLowerCase()));throw q;}finally{YYf(Q)}return p};
_.RX=function(G,H,Z){function Q(D){var d={};D=_.I(D);for(var e=D.next();!e.done;e=D.next()){e=e.value;var n=void 0,c=void 0,W=void 0,M=_.Qa((W=(c=(n=e).getAttribute)==null?void 0:c.call(n,"slot"))!=null?W:"children");if(n=d[M])n.push(e);else if(M in l||M==="children")d[M]=[e]}D=_.I(Object.keys(d));M=D.next();for(e={};!M.done;e={content$jscomp$59:void 0},M=D.next())M=M.value,M!=="children"&&(e.content$jscomp$59=d[M],d[M]=function(r){return function(){return r.content$jscomp$59}}(e));
return d}
Z=Z===void 0?{}:Z;var p,l=(p=Z.props)!=null?p:{};Fkf.add(H);var q=ynf();p=function(){var D=q.apply(this,arguments)||this;D.rawProps={};D.queuingRender=!1;D.dispose=function(){};
D.isWebComponentWrapper=!0;D.isReparenting=!1;D.hasRendered=!1;return D};
_.T(p,q);p.prototype.render=function(){this.hasRendered=!0;for(var D=_.I([].concat(_.OP(this.attributes))),d=D.next();!d.done;d=D.next())d=d.value,d.name!=="slot"&&d.name!=="hidden"&&this.removeAttribute(d.name);D=Object.assign({},this.componentProps,this.slotProps);d=_.I(aVj(this,G,D));D=d.next().value;d=d.next().value;!(D[0]instanceof Element)||D.length>1?OCj("Wrapped Wiz components must return a single root element.",H):(D=D[0].tagName.toLowerCase(),D!==H&&OCj("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(D+" !== '"+H),H),this.dispose=d)};
p.prototype.setUpProps=function(){for(var D=this.rawProps,d=this.attributes,e=_.I(Object.keys(l)),n=e.next();!n.done;n=e.next()){n=n.value;var c=void 0;((c=this)==null?0:c[n])&&this[n]!==ovW&&D[n]===void 0&&(D[n]=this[n],(c=Object.getOwnPropertyDescriptor(this.constructor.prototype,n))&&Object.defineProperty(this,n,c))}e=_.I(d);for(n=e.next();!n.done;n=e.next()){c=n.value;n=_.Qa(c.name);var W=n==="class"&&!d.getNamedItem("class-name");if(n in l||W)c=c.value===""||c.value==="true"?!0:c.value==="false"?
!1:isNaN(Number(c.value))?c.value:Number(c.value),n!=="class"||D.className?D[n]=c:D.className=c}d={};for(var M in l)l[M]!==_.oX&&l[M]!==mpf&&(D[M]instanceof Function&&OCj("Function props must be configured as STATIC, not SIGNAL.",H),n=_.I(_.Ty(D[M],void 0,"RKERzf")),e=n.next().value,n=n.next().value,d[M]=n,D[M]=e);D=_.I([D,d]);this.componentProps=D.next().value;this.setters=D.next().value;this.slotProps=Q(this.childNodes)};
p.prototype.connectedCallback=function(){H_2.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in l&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
p.prototype.disconnectedCallback=function(){if(!H_2.has(this)){var D;a:{if(_.m3)for(D=this;D;){if(_.U6.has(D)){D=!0;break a}D=D.parentElement}D=!1}if(D)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){D=_.I([].concat(_.OP(this.attributes)));for(var d=D.next();!d.done;d=D.next()){d=d.value;var e=void 0;d.name==="slot"||d.name==="hidden"&&((e=Z.unsafeExternallySettableAttributes)==null?0:e.has("hidden"))||this.removeAttribute(d.name)}}this.innerText="";RFj(this)}}};
p.prototype._setPendingPropertyOrPath=function(){};
p.prototype.notifyPath=function(){};
_.u4.Object.defineProperties(p.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var u=_.I(Object.keys(l)),B=u.next(),t={};!B.done;t={prop$jscomp$109:void 0},B=u.next())t.prop$jscomp$109=B.value,B=void 0,((B=Z.legacyPolymer)==null?0:B.forwardHostProps)&&yGu.has(t.prop$jscomp$109)||Object.defineProperty(p.prototype,t.prop$jscomp$109,{set:function(D){return function(d){var e=this;H_2.has(this)||(this.setters?Mf(function(){var n,c;return void((c=(n=e.setters)[D.prop$jscomp$109])==null?void 0:c.call(n,d))}):(this.rawProps[D.prop$jscomp$109]=d,this.queuingRender&&D.prop$jscomp$109===
"data"&&d!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(t),
get:Up3.has(t.prop$jscomp$109)?void 0:function(){return ovW}});
customElements.define(H,p)};
_.RwX=function(G,H){return(G=_.N$(G,H))?_.iI(_.m0(G)):null};
_.At=function(G){if(G=_.N$(G,Number.MAX_VALUE,void 0,"width"))return _.m0(G)};
_.N$=function(G,H,Z,Q){Q=Q===void 0?"width":Q;if(!G||!G.length)return null;if(_.V("kevlar_tuner_should_always_use_device_pixel_ratio")){var p=window.devicePixelRatio;_.V("kevlar_tuner_should_clamp_device_pixel_ratio")?p=Math.min(p,_.eA("kevlar_tuner_clamp_device_pixel_ratio")):_.V("kevlar_tuner_should_use_thumbnail_factor")&&(p=_.eA("kevlar_tuner_thumbnail_factor"));N6j=p}else N6j||(N6j=window.devicePixelRatio);p=N6j;_.V("kevlar_tuner_should_always_use_device_pixel_ratio")?H*=p:p>1&&(H*=p);if(_.V("kevlar_tuner_min_thumbnail_quality"))return G[0].url||
null;p=G.length;if(_.V("kevlar_tuner_max_thumbnail_quality"))return G[p-1].url||null;if(Z)for(var l=0;l<p;l++)if(G[l].url.indexOf(Z)>=0)return G[l].url||null;for(Z=0;Z<p;Z++)if(G[Z][Q]>=H)return G[Z].url||null;for(H=p-1;H>0;H--)if(G[H][Q])return G[H].url||null;return G[0].url||null};
LB2=function(){xC.size?setTimeout(function(){LX(Anf)},0):xpj=0};
Anf=function(){var G=(0,_.t3)(),H=null,Z=!1;xC.forEach(function(p){p.loaded=!0;p.loadTime=G;p.pendingPaint=!1;var l=Evu.get(p);l&&l.resolve(G);H=p;Z||!p.ftlEligible&&p.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(Z=!0)});
var Q;((Q=H)==null?0:Q.markDirty)&&H.markDirty();xC.clear();xpj=0;Z&&Y2v(G)};
FB2=function(G){xC.add(G);G.pendingPaint=!0;xpj||(xpj=_.E6(_.Ui,LB2))};
bCX=function(G){G.loaded=!1;G.loadTime=Infinity;var H=Evu.get(G);H&&(H.reject(Error("mh")),Evu.delete(G));G.pendingPaint&&(xC.delete(G),G.pendingPaint=!1)};
_.G0f=function(G){var H=G.indexOf(":");return H===-1?{originalName:G}:{originalName:G.substring(0,H),datasyncId:G.substring(H+1)}};
_.sdM=function(){return _.S(function(G){if(HPo!==void 0)return G.return(HPo);HPo=new Promise(function(H){var Z;return _.S(function(Q){switch(Q.nextAddress){case 1:return _.XV(Q,2),Q.yield(_.YC.open("test-only"),4);case 4:return Q.yield(_.YC.delete("test-only"),5);case 5:_.Za(Q,3);break;case 2:if(Z=_.Wg(Q),Z instanceof Error&&Z.name==="SecurityError")return H(!1),Q.return();case 3:H("caches"in window),_.K0(Q)}})});
return G.return(HPo)})};
pJo=function(){return _.S(function(G){if(G.nextAddress==1)return G.yield(_.sdM(),2);if(!G.yieldResult)return G.return(void 0);ZPf||(ZPf=new Qdv);return G.return(ZPf)})};
lm2=function(G){var H,Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:return l.yield(pJo(),2);case 2:H=l.yieldResult;if(!H)throw Error("oh");return l.yield(H.open("yt-player-local-img"),3);case 3:return Z=l.yieldResult,l.yield(Z.match(G),4);case 4:Q=l.yieldResult;if(!Q)throw Error("ph");return l.yield(Q.blob(),5);case 5:return p=l.yieldResult,l.return(p)}})};
g7e=function(G,H){for(var Z in G)if(G.hasOwnProperty(Z)&&H[Z])return Z;return null};
ImX=function(G){return"stamp"+G.replace("-","_")+"_"};
q8u=function(G){var H=G.match(/\[\[([\w\.]+)\]\]/);if(H&&H.length>1)return H[1];_.me(Error("rh`"+G));return null};
S8X=function(G){return G===void 0?_.YI("REUSE_COMPONENTS",!1):G||!1};
JTe=function(G,H,Z){Z&&(H.is?(uHj.has(H)&&(G=uHj.get(H),Z=G.listener,delete H[G.property],Z.type==="element"&&H.removeEventListener(Z.eventName,Z.handler),uHj.delete(H)),B42(H)):H.__proto__==HTMLElement.prototype&&(H=new _.C$("Rendererstamper removed a non custom element","Stamper: "+G+" element: "+(H&&H.nodeName)),_.Rp(H)))};
tZj=function(G,H,Z,Q){var p=H.node?H.node:H;_.F9(Z).parentNode===p&&(H.removeChild(Z),JTe(G,Z,Q));if(G=Fg.get(Z))Fg.delete(Z),_.Ui.cancelJob(G);Z.hidden=!1};
k0f=function(G,H,Z,Q){if(H&&H.children&&(Z=H.children[Z]))if(_.YI("DEFERRED_DETACH"))for(;Z&&!Fg.has(Z);){var p=G,l=H,q=Z,u=Q;q.hidden=!0;p=_.wM(_.Ui,tZj.bind(null,p,l,q,u),0);Fg.set(q,p);Z=Z.nextElementSibling}else for(;(q=H.lastElementChild)&&(H.removeChild(q),JTe(G,q,Q),q!=Z););};
_.bb=function(){for(var G=_.Ry.apply(0,arguments),H=!0,Z=_.I(G),Q=Z.next();!Q.done;Q=Z.next())if(typeof Q.value!=="string"){H=!1;break}return H?G.join(" ").trim()||void 0:function(){for(var p="",l=_.I(G),q=l.next();!q.done;q=l.next())if(q=q.value,typeof q==="function"&&(q=q()),q)if(typeof q==="string")p+=" "+q;else for(var u in q)if(q.hasOwnProperty(u)){var B=q[u];typeof B==="function"&&(B=B());B&&(p+=" "+u)}p=p.trim()||void 0;return _.Uv(p)}};
_.DD3=function(G,H){return _.Hv(G.entities,"markersEngagementPanelSyncEntity",H)};
_.G3=function(G,H){return _.Hv(G.entities,"playerStateEntity",H)};
dDo=function(G,H){return _.Hv(G.entities,"fantasyWinProbabilityEntity",H)};
e6X=function(G,H){return _.Hv(G.entities,"fantasyTeamEntity",H)};
n7v=function(G,H){return _.Hv(G.entities,"fantasyPlayerEntity",H)};
VZM=function(G,H){return _.Hv(G.entities,"booleanEntity",H)};
$DU=function(G,H){return _.Hv(G.entities,"qrCodeEntity",H)};
XJM=function(G){return _.Hv(G.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
T4R=function(G){var H;return(H=cTR[G])!=null?H:"EVENT_SPAN_TYPE_UNKNOWN"};
fme=function(G){var H=G.nodeName;if(G.id)return H+="#"+G.id;if(G.classList)for(var Z=_.I(G.classList),Q=Z.next();!Q.done;Q=Z.next())H+="."+Q.value;G.parentElement&&(H=fme(G.parentElement)+" > "+H);return H};
v72=function(G){return function(H){var Z=T4R(H.type);return Z==="EVENT_SPAN_TYPE_UNKNOWN"?G(H):v9R("event",{type:Z,nodepath:H.target instanceof Element?fme(H.target):void 0},function(){return G(H)})}};
_.Hh=function(G){G&&XNM("event")&&(G=v72(G));return DBX(function(H){var Z,Q=(Z=G)==null?void 0:Z(H);return typeof Q==="boolean"?Q:!0})};
sO=function(G){return function(){return G()?G():void 0}};
MZU=function(G){var H=_.IA("animated-rolling-character"),Z=PJj(),Q=iJ(G.character)||iJ(G.previousCharacter),p=_.I(rWv()),l=p.next().value,q=p.next().value;_.mR(function(){if(window.ResizeObserver&&_.V("web_fix_rolling_numbers_zoom_safari")){var u=new _.Zo(function(){var t,D,d=Math.round(((D=(t=H.value.querySelector("div"))==null?void 0:t.getBoundingClientRect().height)!=null?D:0)*100)/100;d&&q(d)},500),B=new ResizeObserver(function(){u.fire()});
B.observe(H.value);return function(){B.disconnect();u.dispose()}}});
cZv(function(){var u=_.V("web_fix_rolling_numbers_zoom_safari")?l:G.marginMultiplier;if(u){var B;(B=Z.value)==null||B.cancel();Q?(B=G.previousCharacter?Number(G.previousCharacter)+10:G.rollUp?0:30,G.shouldAnimate||(B-=Wbj(G,B))):(B=G.rollUp?0:2,G.shouldAnimate||(B-=G.rollUp?-1:1));H.value.style.marginTop="-"+B*u+"px";G.shouldAnimate?Z.value=z6j(H.value,G,B,Q,u):H.value.style.display=G.character?"":"none"}});
return _.J("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},tdf(Q,function(){for(var u=[],B=1;B<30;B++)u.push(_.J("div",null,B%10));return _.J(_.kI,null,_.J("div",null,"\u00a0"),u,_.J("div",null,"\u00a0"))},function(){return Kbj(G.character)}))};
Kbj=function(G){return _.J(_.kI,null,_.J("div",null,"\u00a0"),_.J(_.kI,null,tdf(!G||_.ue(G),function(){return _.J("div",null,"\u00a0")},function(){return _.J("div",null,G)})),_.J("div",null,"\u00a0"))};
z6j=function(G,H,Z,Q,p){Z=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(Q?Wbj(H,Z):H.rollUp?-1:1)*p+"px)"}],jde),document.timeline);H.character?(G.style.display="",Z.onfinish=null):Z.onfinish=function(){G.style.display="none"};
Z.play();return Z};
Wbj=function(G,H){var Z=Number(G.character)+10;if(G.previousCharacter)if(G.character){var Q=Number(G.character),p=Number(G.previousCharacter);G=G.rollUp?p<Q?Z:Z+10:p<Q?Z-10:Z}else G=G.rollUp?30:0;else G=G.character==="0"?Z:G.rollUp?Z-10:Z+10;return H-G};
Phf=function(G){return function(H){var Z={},Q;for(Q in H){var p=void 0,l=void 0;((p=void 0)==null?0:(l=p.callbacks)==null?0:l[Q])||(Z[Q]=H[Q])}return _.J(yWj,null,function(){for(var q in Z)H[q]=_.Uv(Z[q]);H.disableReactiveLogging=!0;return _.J(G,Object.assign({},H))})}};
h6e=function(G,H,Z,Q,p,l,q){Z=new Animation(new KeyframeEffect(G,[{transform:"translateY(0px)"},{transform:"translateY("+(l?rTf(H,Z,Q,p):Q?-1:1)*q+"px)"}],wJe),document.timeline);H?(G.style.display="",Z.onfinish=null):Z.onfinish=function(){G.style.display="none"};
Z.play();return Z};
rTf=function(G,H,Z,Q){var p=Number(G)+10;H?G?(G=Number(G),H=Number(H),Z=Z?H<G?p:p+10:H<G?p-10:p):Z=Z?30:0:Z=G==="0"?p:Z?p-10:p+10;return Q-Z};
iPv=function(G){var H=PJj(),Z=PJj();Wj3(function(){H.value=G.numberText;Z.value=G.numberValue},[G.numberText]);
var Q=G.fontSizeMultiplier?G.heightPx*G.fontSizeMultiplier:G.heightPx,p=jOM(function(){if(G.numberText){var q=G.numberText;var u=G.forceRollUp||!Z.value||!G.numberValue||Z.value<G.numberValue;var B=!!G.shouldAnimate,t=H.value,D=[],d=0,e=0,n=(t?t.replace(/\D/g,"").length:0)-(q?q.replace(/\D/g,"").length:0);t=t?t.split(/(\d)/).filter(Boolean):[];for(q=q.split(/(\d)/).filter(Boolean);n<0;){var c=q[e];D.push({character:c,rollUp:u,marginMultiplier:Q,shouldAnimate:B});e++;iJ(c)&&n++}for(;d<n;)c=t[d],D.push({previousCharacter:c,
rollUp:u,marginMultiplier:Q,shouldAnimate:B}),d++,iJ(c)||n++;for(;e<q.length;)n=q[e],c=t[d],iJ(n)===iJ(c)?(e++,d++):iJ(n)?(d++,n=void 0):iJ(c)&&(e++,c=void 0),D.push({character:n,previousCharacter:c,rollUp:u,marginMultiplier:Q,shouldAnimate:B});u=D}else u=[];return u},[G.numberText]),l=G.numberText?["height: "+Q+"px;",
"line-height: "+G.heightPx+"px;"].join(" "):"";return _.J("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:l,dir:"ltr","aria-hidden":"true"},p.map(function(q){return _.J(ChU,Object.assign({},q))}))};
OPR=function(G){switch(G){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}};
amf=function(G,H){if(!G&&!H)return"medium";G=Math.max(G||0,H||0);return G>=256?"large":G>=96?"medium":"small"};
yTR=function(G){switch(G){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
o7b=function(G){return new KeyframeEffect(G,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
mDb=function(G){return new KeyframeEffect(G,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.QF=function(G){if(G.length===0)return nP2(G,"D");var H=_.I(nP2({source:function(){return G()},
computation:function(p,l){return(l==null?0:l.value)?G(l.value):p}},"E")),Z=H.next().value,Q=H.next().value;
H=H.next().value;return[Z,Q,H]};
_.pI=function(G){return function(){var H="",Z;for(Z in G){for(var Q=G[Z];typeof Q==="function";)Q=Q();Q!==void 0&&Q!==null&&(H+="; "+Z+": "+Q)}return H.length>0?_.Uv(H.slice(2)):_.Uv()}};
UDR=function(G){switch(G){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"}};
R6e=function(G,H){if(H)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(G)switch(G){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"}};
E7u=function(G,H,Z,Q,p,l,q){var u=N4b(G),B=u.disabled,t=u.iconPosition,D=u.style,d=u.focused,e=function(){return!!W()&&t()==="icon-only"},n=function(){return!!W()&&t()==="icon-only-40"},c=function(){return!!W()&&t()==="icon-with-label"},W=function(){return!!H||!(Q==null||!Q())};
return{type:function(){return D()==="call-to-action-inverse"?"text":D()==="overlay-dark"&&G().type!=="filled"&&G().type!=="tonal"?"tonal":G().type},
shouldFocus:function(){return(d()||(l==null?void 0:l()))&&!B()},
hasIconLeading:function(){return!!W()&&t()==="leading"},
hasIconTrailing:function(){return!!W()&&t()==="trailing"},
hasIconLeadingTrailing:function(){return!!W()&&!!(Z||p!=null&&p())&&t()==="leading-trailing"},
hasIconOnly:e,hasIconOnly40:n,hasIconWithLabel:c,iconButton:function(){return e()||n()||c()},
visiblyDisabled:function(){return(B()?"disabled":G().state)==="disabled"||B()},
overrideSmallSizeIcon:function(){return!G().ignoreIconSizeOverride&&AT3(G(),W())},
iconToRender:H?H:function(){return _.J(_.ll,{icon:Q,gradientColor:function(){var M;return(M=G().customColors)==null?void 0:M.iconGradientColor},
size:function(){return xD3(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return Lbj(G())},
animateIcon:q})},
secondaryIconToRender:Z?Z:function(){return _.J(_.ll,{icon:p,size:function(){return xD3(G(),!0,G().ignoreIconSizeOverride)},
active:function(){return G().toggled},
iconFilter:function(){return Lbj(G())}})}}};
N4b=function(G){return{size:function(){return G().size},
style:function(){return G().style},
focused:function(){return G().focused},
disabled:function(){return G().disabled},
onTap:function(H){var Z,Q;return(Q=(Z=G()).onTap)==null?void 0:Q.call(Z,H)},
alignByText:function(){return G().alignByText},
aTagConfig:function(){return G().aTagConfig},
customColors:function(){return G().customColors},
segmentedPosition:function(){return G().segmentedPosition},
toggled:function(){return G().toggled},
toggleable:function(){return G().toggleable},
accessibilityLabel:function(){return G().accessibilityLabel},
onToggle:function(H){var Z,Q;return(Q=(Z=G()).onToggle)==null?void 0:Q.call(Z,H)},
iconPosition:function(){return G().iconPosition},
oneOffCustomTextWrap:function(){return G().oneOffCustomTextWrap},
disableTextEllipsis:function(){return G().disableTextEllipsis},
disableBackdropFilter:function(){return G().disableBackdropFilter},
tooltipText:function(){return G().tooltipText},
tooltipShape:function(){return G().tooltipShape},
ariaHidden:function(){return G().ariaHidden},
tabIndex:function(){return G().tabIndex},
buttonText:function(){return G().buttonText},
formattedButtonText:function(){return G().formattedButtonText},
animatedTextProps:function(){return G().animatedTextProps},
onClickRateLimitMs:function(){return G().onClickRateLimitMs}}};
AT3=function(G,H){H=(G.iconPosition==="icon-only"||G.iconPosition==="icon-only-40"||G.iconPosition==="icon-with-label")&&H;return!G.segmentedPosition&&H&&G.size==="S"};
xD3=function(G,H,Z){switch(G.size){case "XS":return 16;case "S":return!Z&&AT3(G,H)?24:16;default:return 24}};
Y8R=function(G){switch(G){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"}};
Fbo=function(G){switch(G){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"}};
bPv=function(G){switch(G){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"}};
Lbj=function(G){if(G.style==="overlay-dark"&&G.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
gb=function(G){return G&&G.endsWith("px")?Number(G.slice(0,-2)):0};
s8f=function(G,H){var Z=_.I(_.QF(function(){var p,l;return(l=G())!=null?l:H==null?void 0:(p=H())==null?void 0:p.text})),Q=Z.next().value;
return[function(p){var l=_.Kb(function(){var B;return Object.assign({},{location:"bottom",offset:16,delay:1},H==null?void 0:H(),{text:(B=Q())!=null?B:""})},void 0,"IJU38d");
_.yN(function(){var B=l();_.cS(function(){_.Ui.addJob(function(){I0.notify(p,B)},4)})},"WlsgZc");
var q=function(){GNb(p,l())},u=function(){H7f()};
p.addEventListener("mouseenter",q);p.addEventListener("focus",q);p.addEventListener("mouseleave",u);p.addEventListener("blur",u);p.addEventListener("tap",u);_.oM(function(){p.removeEventListener("mouseenter",q);p.removeEventListener("mouseleave",u);p.removeEventListener("focus",q);p.removeEventListener("blur",u);p.removeEventListener("tap",u);H7f()})},
Z.next().value]};
Q8e=function(G,H){if(!IM){var Z;XxW(function(){return Z=OGe(G,H)});
return Z}G.parent=Z72();return OGe(G,H)};
Z72=function(){var G=_.Sg(IM||void 0,h3f);return _.eIW(G)?void 0:G};
qi=function(G,H){_.fX(G,Object.assign({},H,{forceClickLogging:!0}))};
pj3=function(G){switch(G){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
geb=function(G,H){var Z=_.Tt(G==null?void 0:G.onTap),Q={};Z&&(Q.getClickedVisualElement=function(){var p;return lev(G,Z,H==null?void 0:(p=H.value)==null?void 0:p.visualElement)});
Q=_.vT({elementsCommand:G.onTap,forceNewState:!0,additionalCommandArgs:Q});return WT(Q)?Q:void 0};
Iej=function(G,H,Z,Q){qi(G,Object.assign({},{form:{element:H,event:Z}},Q))};
qQf=function(G,H,Z,Q,p){var l=void 0;return function(q){var u=_.Tt(Z?G==null?void 0:G.onDisabledTap:G==null?void 0:G.onTap);if(u){var B;l=(B=l)!=null?B:H==null?void 0:H.value;if(u)if(_.V("web_button_vm_click_client_ve_killswitch"))Iej(u,l,q);else{var t;B=lev(G,u,(t=l)==null?void 0:t.visualElement);if(p){Iej(u,p,q,{clickedVisualElement:B,form:{element:p}});return}Iej(u,l,q,{clickedVisualElement:B})}}Q&&Q(q)}};
lev=function(G,H,Z){H=H==null?void 0:H.clickTrackingParams;var Q,p;G=G==null?void 0:(Q=G.loggingDirectives)==null?void 0:(p=Q.clientVeSpec)==null?void 0:p.uiType;if(Z&&G&&!H)return Z};
SQj=function(G){switch(G){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"}};
u23=function(G){switch(G){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"}};
BFW=function(G){switch(G){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"}};
JXv=function(G){switch(G){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"}};
_.SQ=function(G){return _.Kb(function(){GSj()();return ZSo(G)},{debugName:"d8B62c"},"DEXkhd")};
tRo=function(G,H){return _.Hv(G.entities,"engagementToolbarStateEntityPayload",H)};
Dw2=function(G){(G=_.BT(G))&&_.kNf(G)};
_.kNf=function(G){var H=_.$k();H&&_.r8(H,G)};
dwW=function(G,H,Z){_.AZ(G,"yt-open-popup-action",[H,Z||G])};
eC2=function(G,H){var Z=_.Rz(G,"endpoint"),Q=_.Rz(G,"action");return(Z=Q?Q:Z)&&H&&(Z=H.navigationEndpointPopupMap[Z])&&(G=_.GF(Z,G),(Z=_.Rz(G,"renderer"))&&H.supportedPopups.hasOwnProperty(Z))?{openPopupAction:{popupType:H.popupTypeMap[Z],popup:G}}:null};
nev=function(G,H,Z,Q){if(Q){var p;Z=Z==null?void 0:(p=Z.data)==null?void 0:p.contents;(p=Z instanceof Array&&Z.length?Z[0]:Z)&&(Z=_.Rz(p,"renderer"))&&Q.supportedPopups.hasOwnProperty(Z)&&(H.stopPropagation(),dwW(G,{openPopupAction:{popupType:Q.popupTypeMap[Z],popup:p}}))}};
Xje=function(G,H,Z,Q){Q=Q===void 0?!1:Q;var p=VRf(H);if(p){p.href&&W$(p.href);var l=H.button;l=l!==void 0?l===0&&!ul(H):!ul(H);p.data&&l&&$wf(G,p,H,Z,Q)}};
$wf=function(G,H,Z,Q,p){p=p===void 0?!1:p;var l=_.eA("pbj_navigate_limit",-1)===0;cXu(H);_.tp().resolve(_.Jp(GU));var q=H.data;if(Object.keys(q).length!==0)if(!_.V("unplugged_web_disable_actions_for_cec_endpoint")&&_.X(q,_.Ft))_.V("endpoint_behavior_command_executor_fix_killswitch")||(Z.preventDefault(),Z.stopPropagation()),_.El(G,[q],G);else if(Q=eC2(q,Q))q.loggingUrls&&q.loggingUrls.forEach(function(B){B.baseUrl&&_.G_(B.baseUrl)}),Z.preventDefault(),Z.stopPropagation(),dwW(G,Q,H);
else{var u=TFf(0,H.data,Z);if(G=H.getForm)G=G(),u.tempData=u.tempData||{},u.tempData=Object.assign({},u.tempData,G);G=_.OD(Z);if(Q=G.find(function(B){return!!B.visualElement}))u.createScreenConfig=u.createScreenConfig||{},u.createScreenConfig.clickedVisualElement=Q.visualElement;
if(!l)if(Z.preventDefault(),Z.stopPropagation(),_.X(q,_.feo)&&!p&&_.HT.instance)_.HT.instance.resolveCommand(q,u);else if(_.V("kevlar_command_handler_formatted_string")&&!p&&_.HT.instance&&veX(q))p=G.find(function(B){return!!B.is})||Z.target,Z={form:Object.assign({},u,{event:Z,
element:p,originatingNode:H})},_.HT.instance.resolveCommand(q,Z);else{q=_.OD(Z);Z=[];for(p=0;p<q.length;p++)(l=q[p].is)&&Z.push(l);bI2({parents:Z.join(","),text:H.innerText},function(){_.N5(H,"yt-navigate",u)})}}};
W6W=function(G){if(G=VRf(G))cXu(G),Zej(G.href)};
VRf=function(G){G=_.OD(G);for(var H,Z=0;Z<G.length;Z++)if(H=G[Z],H.tagName==="A"&&H.classList.contains("yt-simple-endpoint")){if(!H.data)break;return H}return null};
ul=function(G){return G.shiftKey||G.altKey||G.metaKey||G.ctrlKey};
zCj=function(G,H){var Z={itct:H.clickTrackingParams};_.V("kevlar_client_side_screens")&&(!_.X(H,_.uS)||_.V("kevlar_exclude_endpoint_killswitch"))&&(Z.endpoint=JSON.stringify(H));_.V("enable_unknown_lact_fix_on_html5")&&_.tp().resolve(_.Jp(_.Bh))&&(Z.lact=_.JL());Gf2(Z);_.aO(G,Z)};
cXu=function(G){G.href&&Object.keys(G.data).length!==0&&zCj(G.href,G.data)};
veX=function(G){for(var H=_.I(K6b),Z=H.next();!Z.done;Z=H.next())if(G[Z.value])return!1;return!0};
MRW=function(){if(JQ)return JQ;if(window.lottie)return JQ=Promise.resolve(window.lottie);var G=_.R1(_.xI("LOTTIE_URL"));return G?JQ=new Promise(function(H,Z){var Q=document.createElement("script");Q.addEventListener("load",function(){H(lottie)});
Q.addEventListener("error",function(p){var l="Lottie library failed to load.";p?p.message&&(l+=" Original description: "+p.message,_.N1(p,l)):p=Error(l);_.Rp(p);Z(p)});
Q.setAttribute("async","");_.gJ(Q,G);document.head.appendChild(Q)}):Promise.reject(Error("sh"))};
j8R=function(){return JQ?JQ:MRW()};
PpU=function(G){if(G)switch(G){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.V("kevlar_use_wil_icons"))return G=(G=XJM(_.mm().getState()))&&G.animationLightUrl&&G.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:G.animationLightUrl,pathDarkTheme:G.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,G?G:tQ.get("LIKE");break;case "LIKE_DELHI_PLAYER":return tQ.get("LIKE_DELHI_PLAYER")}};
rXu=function(G){var H=PpU(G);if(H)return H;switch(G){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return tQ.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return tQ.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return tQ.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return tQ.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return tQ.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return tQ.get("NOTIFICATION_BELL")}};
wjj=function(G,H){if(!G.closest)return!1;H=!!PpU(H);return _.xI("ID_TOKEN")&&H?!!G.closest("segmented-like-dislike-button-view-model")||!!G.closest("yt-player-quick-action-buttons"):!1};
Cpj=function(G,H){if(!G||hCe)H=!1;else{var Z;if(!(Z=wjj(G,H)))if(G.closest)if(Z=!_.xI("ID_TOKEN"),G=G.closest("ytd-subscription-notification-toggle-button-renderer-next"),Z||!G)Z=!1;else{var Q;Z=((Q=G.data)==null?void 0:Q.targetId)==="notification-bell"&&H!=="EXPAND_MORE"}else Z=!1;H=Z}return H};
i7u=function(G){var H,Z;return _.S(function(Q){switch(Q.nextAddress){case 1:return _.XV(Q,2),Q.yield(fetch(G),4);case 4:return H=Q.yieldResult,Q.yield(H.json(),5);case 5:return Q.return(Q.yieldResult);case 2:Z=_.Wg(Q),_.Rp(Z),_.K0(Q)}})};
O7U=function(G,H){var Z,Q,p;return _.S(function(l){if(l.nextAddress==1)return(Z=H?G.pathDarkTheme:G.path)?l.yield(Promise.all([i7u(Z),MRW()]),2):l.return();Q=l.yieldResult;p=Q[0];kV.set(Z,p);_.K0(l)})};
yXj=function(G,H,Z,Q){function p(q,u){if(H.value===u&&!H.cancelled&&G!=null&&G.value){for(;G.value.firstChild;)G.value.removeChild(G.value.firstChild);G.value.classList.add("ytSpecIconShapeHost");q(G.value,Q)}}
var l=_.aeb(_.tp().resolve(_.Gt),Z);typeof l==="function"?(H.value=null,p(l,null)):(H.value=l,l.then(function(q){p(q,l)}))};
mwf=function(G,H){var Z=document.createElement("div"),Q=_.az(Z,function(){return _.J(_.k,{cond:G,then:function(p){return _.J(oeW,{data:p,options:H})}})},"ba");
return[Z,Q]};
_.Do=function(G,H){if(H){var Z={};Uwo.forEach(function(Q){Q=RC2(H,Q,"--yt-lightsource-");Object.assign(Z,Q)});
NF2.forEach(function(Q){Q=RC2(H,Q,"--yt-basic-");Object.assign(Z,Q)});
_.ZI(G,Z)}};
RC2=function(G,H,Z){var Q={};Q[Z+_.ZQ(H)]=G&&G[H]?_.c$(G[H]):"";return Q};
_.eQ=function(G,H,Z){db[G]||(db[G]={});db[G][H]=Z};
_.nI=function(G){db[G]||(db[G]={});return db[G]};
AXe=function(G){if(!G)return{};var H=G.foregroundTitleColor,Z=G.backgroundColor;G=G.borderColor;var Q="text";G?Q="outline":Z&&(Q="filled");return{type:Q,customColors:{color:H?_.c$(H):void 0,backgroundColor:Z?_.c$(Z):void 0,borderColor:G?_.c$(G):void 0}}};
F6b=function(G){var H=G.renderer;var Z=G.element;var Q=G.commandController;var p=G.onTapCallback;var l=G.skipCommandHandling;var q=G.overrides;var u=G.forceIcon;var B=G.forceModernIconButton;var t=G.forceDisabled;var D=G.isSubscribe===void 0?!1:G.isSubscribe;var d=G.isPressed===void 0?!1:G.isPressed;var e=G.useButtonSize===void 0?!1:G.useButtonSize;G=xwR(H);D&&(G.style="mono",G.type="filled");u=!H.icon||!u&&H.text?H.icon?H.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:B?"icon-only":"icon-only-40";u==="icon-only-40"&&(G.type="text");var n;B=Object;D=B.assign;e=L6j(H,e);d=!!H.isSelected||!_.V("web_propagate_is_pressed_killswitch")&&!!d;var c=H.isSelected!==void 0;t=t===void 0?H.isDisabled:t;var W=H.text?_.Vw(H.text):void 0;var M,r,w,x=((M=H.accessibilityData)==null?void 0:(r=M.accessibilityData)==null?void 0:r.label)||((w=H.accessibility)==null?void 0:w.label);M=x?x:_.yn(H.text);Z=EeM(H,Z,Q,p,l);Q=YQf(H);Q!=null&&Q.length?(Q=_.vT({innertubeCommand:$Ij(Q),
forceNewState:!0}),Q=WT(Q)?Q:void 0):Q=void 0;return D.call(B,{},G,e,{iconPosition:u},q,{focused:!1,toggled:d,toggleable:c,disabled:t,formattedButtonText:W,accessibilityLabel:M,onTap:Z,aTagConfig:Q},AXe((n=H.colorData)==null?void 0:n.basicColorPaletteData),{oneOffCustomTextWrap:H.oneOffCustomTextWrap})};
EeM=function(G,H,Z,Q,p){return function(l){var q=YQf(G);Q(q,l);if(!p){q=_.I(q);for(var u=q.next();!u.done;u=q.next())qi(u.value,{form:{element:H,event:l},commandController:Z})}}};
YQf=function(G){var H=[];G.command&&H.push(G.command);G.serviceEndpoint&&H.push(G.serviceEndpoint);G.navigationEndpoint&&H.push(G.navigationEndpoint);return H};
L6j=function(G,H){if(H)switch(G.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(G.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
xwR=function(G){switch(G.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"}}};
b7X=function(G,H){return typeof G!=="object"||G===null?!1:Object.keys(H).every(function(Z){return Z in G})};
VF=function(G){return Object.fromEntries(Object.keys(G).map(function(H){return[H,H]}))};
Ggj=function(G,H,Z){return Gs2(Z,function(Q,p){return function(l){var q=_.Ry.apply(1,arguments);return b7X(l,G)?p.apply(null,[l[H]].concat(_.OP(q))):p.apply(null,[l].concat(_.OP(q)))}})};
$V=function(G){return function(H,Z){return Ggj(G,H,Z)}};
HDb=function(G,H){var Z;return(Z=_.Hv(G,"playlistLoopStateEntity",H))!=null?Z:void 0};
sDM=function(G,H){var Z;return(Z=_.Hv(G,"toggleMenuServiceItemEntity",H))!=null?Z:void 0};
_.XD=function(G){return G!=null&&G.watch?G.watch.isTheaterMode:!1};
_.ch=function(G){return G!=null&&G.watch?G.watch.isWatchFullscreen:!1};
_.T3=function(G){if(_.ZDj(G))return!0;G=_.QDv(G);return _.V("web_watch_enable_single_column_grid_view")?G:!1};
_.ZDj=function(G){return G.watch.isSwatcherooActive};
_.QDv=function(G){return G.watch.isWatchNarrowWidth};
_.p0o=function(G){return G.watch.openEngagementPanels};
fI=function(G,H){return _.Hv(G.entities,"likeStatusEntity",H)};
lhf=function(G,H){return _.Hv(G.entities,"likeCountEntity",H)};
_.g2f=function(G,H){return _.Hv(G.entities,"stringEntity",H)};
Ihv=function(G,H){return _.Hv(G.entities,"dataFreshnessEntity",H)};
qBM=function(G,H){if(!G)return!1;var Z,Q=(Z=_.X(G,_.GD))==null?void 0:Z.signal;if(Q&&H.signalEndpointMap)return!!H.signalEndpointMap[Q];var p;if((Z=(p=_.X(G,_.vh))==null?void 0:p.request)&&H.continuationEndpointMap)return!!H.continuationEndpointMap[Z];for(var l in G)if(H.commandEndpointMap[l])return!0;return!1};
SBR=function(G,H){if(H.streamingEndpointMap)for(var Z in G)if(H.streamingEndpointMap[Z]&&(G=H.streamingEndpointMap[Z]))return G()};
u0W=function(G,H){var Z,Q=(Z=_.X(G,_.GD))==null?void 0:Z.signal;if(Q&&H.signalEndpointMap&&(Z=H.signalEndpointMap[Q]))return Z();var p;if((Z=(p=_.X(G,_.vh))==null?void 0:p.request)&&H.continuationEndpointMap&&(p=H.continuationEndpointMap[Z]))return p();for(var l in G)if(H.commandEndpointMap[l]&&(G=H.commandEndpointMap[l]))return G()};
BDf=function(G){var H={"Content-Type":"application/json"};_.xI("EOM_VISITOR_DATA")?H["X-Goog-EOM-Visitor-Id"]=_.xI("EOM_VISITOR_DATA"):_.xI("VISITOR_DATA")&&(H["X-Goog-Visitor-Id"]=_.xI("VISITOR_DATA"));H["X-Youtube-Bootstrap-Logged-In"]=_.xI("LOGGED_IN",!1);_.xI("DEBUG_SETTINGS_METADATA")&&(H["X-Debug-Settings-Metadata"]=_.xI("DEBUG_SETTINGS_METADATA"));if(G!=="cors"){var Z=_.xI("INNERTUBE_CONTEXT_CLIENT_NAME");Z&&(H["X-Youtube-Client-Name"]=Z);(Z=_.xI("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(H["X-Youtube-Client-Version"]=
Z);(Z=_.xI("CHROME_CONNECTED_HEADER"))&&(H["X-Youtube-Chrome-Connected"]=Z);(Z=_.xI("DOMAIN_ADMIN_STATE"))&&(H["X-Youtube-Domain-Admin-State"]=Z)}_.YI("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(G=_.xI("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(H["X-YouTube-Lava-Device-Context"]=G):G!=="cors"&&_.YI("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(G=_.xI("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(H["X-YouTube-Lava-Device-Context"]=G);return H};
JCb=function(G,H){H.watchNextResponse||H.reelItemWatchResponse?H.watchNextResponse?G.content=H.watchNextResponse:G.content=H.reelItemWatchResponse:H.playerResponse?G.player=H.playerResponse:H.reelWatchSequenceResponse&&(G.reelSequence=H.reelWatchSequenceResponse)};
Wh=function(G){return function(){return new G}};
z3=function(G){var H=_.tp();return function(){return H.resolve(G)}};
_.KI=function(G){if(!G)return null;for(var H=[],Z=0;Z<G.textSegments.length;Z++){var Q=G.textSegments[Z];Q.text?H.push(Q):Q.emojiId&&H.push({emoji_id:Q.emojiId})}return{text_segments:H}};
eQf=function(G,H,Z,Q,p,l,q){l=l===void 0?[]:l;var u=new _.Mi;u.endpoint=Z;if(!Z)return _.UN(new _.C$("handle undefined endpoint",H.tagName)),u;var B=Iqf(Z);B.length&&(_.El(G,B,H,Q),u.actions=B);Z.loggingUrls&&Z.loggingUrls.forEach(function(D){D.baseUrl&&HW(D.baseUrl,D.attributionSrcMode)});
B=!_.V("web_skip_impression_click_killswitch")&&Q&&Q.impression;if(Z.clickTrackingParams&&!thj(Z)&&!kgo(H)&&!B&&(B=_.gr(),!_.jQ(B,H))){var t=H.getScreenLayer&&H.getScreenLayer();t?B.clickCommand(Z,null,t):B.clickCommand(Z,null)}B=!1;for(t=0;t<l.length;t++)if((0,l[t])(H,Z,Q)){B=!0;break}!B&&DGv(Z)&&(u.ajaxPromise=dGW(G,H,Z,Q,p,q));return u};
kgo=function(G){var H;return(G=(H=G.data)==null?void 0:H.navigationEndpoint)&&!!G.clickTrackingParams};
thj=function(G){var H=_.X(G,_.GD);if(H&&(H=H.signal)&&n2j.indexOf(H)>=0)return!0;for(var Z in G)if(Vh2.indexOf(Z)>=0)return!0;return!1};
DGv=function(G){var H;if(((H=_.X(G,_.GD))==null?void 0:H.signal)==="CLIENT_SIGNAL")return!1;for(var Z in G)if($GU.indexOf(Z)>=0)return!1;G=Object.keys(G);return G.length===1&&G[0]==="loggingUrls"?!1:!0};
Mhu=function(G,H,Z,Q,p,l,q){var u=_.Ph.instance;if(u&&_.rb(u,Q))var B=_.wb(u,Q,p).then(function(D){return(D==null?0:D.data)?D:{data:D}});
else B=G.requestDataForServiceEndpoint(Q,p),_.X(Q,X0W)||_.X(Q,cCv)||_.X(Q,_.TDU)||_.X(Q,fh3)||_.Rp(new _.C$("No RequestBuilder for endpoint",Q));var t=_.hQ();t.promise.thenCatch(function(){var D=_.Rz(Q,"action")||_.Rz(Q,"command")||_.Rz(Q,"endpoint");D&&(D=Q[D],D.hasOwnProperty("onFailureAction")?_.El(H,[D.onFailureAction],Z):D.hasOwnProperty("onFailureCommand")&&_.El(H,D.onFailureCommand,Z));B.cancel("Resolver promise rejected")});
B.then(function(D){if(D){var d=D.error;if(d){if(l&&l.onServerError)l.onServerError(Q,D);t.reject(new _.C$("Response error",Q,d))}else if(D=D.data)if(d=D.error){if(l&&l.onServerError)l.onServerError(Q,D);t.reject(new _.C$("Returned error",Q,d))}else{v2u(H,Z,D,Q);Wtf(D);if(d=gX2(D))for(var e=_.I(d),n=e.next();!n.done;n=e.next()){n=n.value;var c=_.tp().resolve(_.Jp(zQv))||Kte;if(!_.Ph.instance||!c.some(function(M){return!!_.X(Q,M)})||_.V("kevlar_response_processor_allowlist_killswitch")){var W=c=void 0;
((W=_.X((c=n)==null?void 0:c.commandMetadata,_.HA))==null?0:W.sendPost)?_.L9(H,[n]):_.El(H,[n],Z)}}(e=_.X(D==null?void 0:D.frameworkUpdates,CI))&&q&&q(e);if(l&&l.onSuccess)l.onSuccess(Q,D);t.resolve(new _.il(D,d))}}else t.reject(new _.C$("Invalid service endpoint provided",Q))},function(D){t.reject(D)});
return t.promise};
Wtf=function(G){var H;(G=(H=_.X(G==null?void 0:G.onResponseReceivedCommand,_.jDR))==null?void 0:H.continuationItems)&&(G==null?void 0:G.length)===1&&_.X(G[0],Pyu)&&_.$K("so_r",void 0,"search_overview_answer")};
dGW=function(G,H,Z,Q,p,l){var q;return(q=H.getNetworkManager&&H.getNetworkManager()?H.getNetworkManager():_.tp().resolve(_.Jp(_.J0)))?Mhu(q,G,H,Z,Q,p,l):_.DJ("No network manager.")};
v2u=function(G,H,Z,Q){if(Z=Z.trackingParams||Z.loggingDirectives&&Z.loggingDirectives.trackingParams){var p;(_.X(Q,rCv)||_.X(Q,w0o)||_.X(Q,hQe))&&Q.clickTrackingParams?p=_.BT(Q.clickTrackingParams):_.V("web_graft_to_parent_command")&&Q.clickTrackingParams&&(p=_.BT(Q.clickTrackingParams));var l;Q=(l=H.getScreenLayer)==null?void 0:l.call(H);H=_.gr().graftServerVe(Z,p,Q);_.xk(G,"yt-store-grafted-ve-action",[H])}};
_.Cy3=function(G){var H=new Image;return new _.T_(function(Z,Q){H.addEventListener("load",function(){Z()});
H.addEventListener("error",function(){Q()});
H.src=G})};
iDv=function(G){return!!G};
ODe=function(G){return!!G};
ahR=function(G,H,Z){var Q=G.rowIndex;Q!==void 0&&_.xk(G.hostElement,"yt-section-reactive-dismissal",[Q,H,Z])};
_.OO=function(G,H,Z){G=_.I(G);for(var Q=G.next();!Q.done;Q=G.next()){Q=Q.value;if(Q===H)break;for(var p=_.I(Z),l=p.next();!l.done;l=p.next())if(l=l.value,Q.tagName===l||!_.V("web_event_button_role_check_killswitch")&&Q.role==="button"&&l==="BUTTON")return!0}return!1};
_.yF=function(G,H,Z){G=_.I(G);for(var Q=G.next();!Q.done;Q=G.next()){Q=Q.value;if(Q===H)break;for(var p=_.I(Z),l=p.next();!l.done;l=p.next())if(Q.id===l.value)return!0}return!1};
_.UO=function(){var G=_.tp().resolve(_.Jp(_.o0));return G?(G=G.getCurrentPage())?_.mG(G):null:null};
_.R0=function(){var G=_.UO();if(!G){var H=_.tp().resolve(_.Jp(_.o0)),Z=H?typeof H:"no page manager";H=H?H.getCurrentPage():null;Z=new _.C$("Player is missing when requested.",Z,H?H.tagName:"no page");_.me(Z)}return G};
_.mG=function(G){return G&&G.getPlayer?G.getPlayer():null};
yCb=function(G,H){G={args:{raw_player_response:G}};H&&(G.args=Object.assign({},G.args,H));return G};
o2f=function(G){if(G.args){if(G.args.raw_player_response)return G.args.raw_player_response;if(G.args.player_response)return JSON.parse(G.args.player_response)}};
_.mG3=function(G,H){var Z={url:"/watch?v="+G.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};G.playlistId&&(Z.url+="&list="+G.playlistId);G.playerParams&&(Z.url+="&pp="+G.playerParams);G={watchEndpoint:G,commandMetadata:{webCommandMetadata:Z}};H&&(G.clickTrackingParams=H);return G};
RQ2=function(){return UGu||!!_.GF("yt.player.Application")};
AC2=function(){return NDv||!!document.querySelector("link#player-css")};
Ltj=function(){function G(){UGu=!0;xGf.resolve()}
var H,Z;return _.S(function(Q){xGf||(xGf=new _.sD,RQ2()?G():(H=document.createElement("script"),H.addEventListener("load",G),Z=_.O1(_.xI("PLAYER_JS_URL")),_.gJ(H,Z),document.head.appendChild(H)));return Q.return(xGf.promise)})};
YBX=function(){function G(){NDv=!0;E22.resolve()}
if(!E22)if(E22=new _.sD,AC2())G();else{var H=document.createElement("link");H.id="player-css";H.addEventListener("load",G);var Z=_.O1(_.xI("PLAYER_CSS_URL"));_.Sl(H,Z,"stylesheet");document.head.appendChild(H)}return E22.promise};
Ftb=function(){return RQ2()&&AC2()?Promise.resolve([]):Promise.all([Ltj(),YBX()])};
bDu=function(G,H,Z){var Q={args:{}};G&&(Q.args.raw_player_response=G);H&&(Q.args.raw_watch_next_response=H);Z&&(Q.args=Object.assign({},Q.args,Z));return Q};
ZRe=function(G,H,Z){var Q=!1;Q=Q===void 0?!0:Q;G=typeof G==="string"?_.Ni(document,G):G;var p=GHW+"_"+_.LW(G),l=HRf[p];if(l&&Q)return sWo(H,Z)?l.api.loadVideoByPlayerVars(H.args||null):l.loadNewVideoConfig(H),l.api;l=new AQ(G,p,H,Z,void 0);HRf[p]=l;l.addOnDisposeCallback(function(){delete HRf[l.getId()]});
return l.api};
sWo=function(G,H){return H&&H.serializedExperimentFlags?H.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):G&&G.args&&G.args.fflags?G.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
QWj=function(){var G=new _.sD;G.resolved=!1;var H=G.resolve;G.resolve=function(Z){G.resolved=!0;H(Z)};
return G};
lbv=function(G){var H={};ppv().install((H.document_disposed={callback:G},H))};
xV=function(G,H){if(!G&&Math.random()<=_.eA("kevlar_unified_player_logging_threshold")){G=Error("uh`"+(H?H:"Unspecified error"));if(_.V("kevlar_unified_player_throw_errors"))throw G;_.Rp(G)}};
_.g$v=function(){var G=_.GF("ytDebugData.callbacks");G||(G={},_.u7("ytDebugData.callbacks",G));return G};
qto=function(G,H){var Z=_.g$v();if(_.V("web_dd_iu")||IbW.includes(G))Z[G]=H};
Stj=function(){return _.S(function(G){return G.return({isLeader:_.R13(_.mm().getState()),c:_.xI("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.xI("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
uXo=function(){var G;_.S(function(H){if(H.nextAddress==1)return qto("APP_STATE",Stj),H.yield(_.tp().resolve(_.LI),2);G=H.yieldResult;qto("PI",function(){return _.S(function(Z){return Z.return(G.getVideoStats())})});
_.K0(H)})};
BA2=function(G){return!!G&&G.length>0&&G[0].loggingUrls!=null&&G[0].loggingUrls.length>0};
Jdo=function(){var G=_.xI("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
tIW=function(G){if(!G)return[];var H=[];G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.loggingUrls){Z=_.I(Z.loggingUrls);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.baseUrl&&H.push(Q.baseUrl)}return H};
kHf=function(G){var H=_.Ol(_.M5(_.Qf.location.href));G=_.Ol(_.M5(G));return _.V("kevlar_clear_non_displayable_url_params")?H==EO(G):EO(H)==EO(G)};
EO=function(G){var H=_.DMf(G);G=G.slice(0);var Z=["frags"];_.V("kevlar_hide_pp_url_param")&&Z.push("pp");_.V("kevlar_hide_time_continue_url_param")&&Z.push("time_continue");Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,G=_.ya(_.Ol(G),Q);return _.Ol(G)+(H?"#"+H:"")};
YV=function(G,H){H=Number(H)*1E3;var Z=Math.round((0,_.t3)()),Q=Z.toString();G={innertubeResponse:G,serverDateTimestampMs:Q,lastModifiedTimestampMs:Q,expireTimestampMs:(Z+H).toString()};if(H=_.xI("INNERTUBE_CONTEXT_CLIENT_NAME"))G.clientName=H;return G};
eqU=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++dMW};
n$j=function(G){return!isNaN(G)&&G>0};
$Mo=function(){_.V("web_adaptive_repeat_ase")&&VIf&&_.yR("applicationStarted",VIf)};
_.Xpb=function(){var G=_.Va(),H=_.$k();H&&G&&_.hU(H,[G],!0)};
TAU=function(G){return G&&cde.some(function(H){return G.includes(H)})};
MIe=function(G){var H=_.X(G,_.Hx);if(!H)return!1;var Z=H.url,Q=H.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!Z)return _.me(Error("zh")),!1;if(H.target==="TARGET_NEW_WINDOW"){H={};_.V("resolve_url_parent_tracking_params")&&(!_.qY(Z)||SA(window.location.href,Z))&&(H={endpoint:G,itct:G.clickTrackingParams});Gf2(H);G=null;try{if(Q){a:{var p=Z,l=H;Q=Q===void 0?!1:Q;l&&_.aO(p,l);var q=_.m0(p),u=_.iI(q);p!=u&&_.HU(Error("Yf`"+p));p=u;try{if(Q){u=p;u=U6u(u);W$(u);G=_.Hg(window,u,"_blank",
"attributionsrc");break a}}catch(e){_.FU(e)}W$(p);G=_.Hg(window,q,"_blank")}fbj(_.tp().resolve(v$b),G,Z);return!0}}catch(e){_.me(e)}_.aO(Z,H);H={target:"_blank",noopener:!1};q=window;u=Cq(Z)?Z:_.m0(typeof Z.href!="undefined"?Z.href:String(Z));Q=self.crossOriginIsolated!==void 0;G="strict-origin-when-cross-origin";window.Request&&(G=(new Request("/")).referrerPolicy);p=H.noreferrer;if(Q&&p&&G==="unsafe-url")throw Error("ve");G=p&&!Q;p=H.target||Z.target;l=[];var B=[],t=!1;for(d in H){var D=H[d];switch(d){case "width":case "height":case "top":case "left":l.push(d+
"="+D);break;case "target":break;case "noopener":case "noreferrer":D?B.push(d):(t=!0,B.push(d+"=false"));break;case "attributionsrc":l.push(d+(D?"="+D:""));break;default:l.push(d+"="+(D?1:0))}}var d=p!==void 0&&!["_blank","_self","_top","_parent",""].includes(p);d=zo()&&d;Wqe&&Q&&l.length===0&&B.length>0&&!d&&!t?(B.length===2&&(B=["noreferrer"]),_.Hg(q,u,p,B[0]),G=zqj()):(d=l.join(","),_.P3()&&q.navigator&&q.navigator.standalone&&p&&p!="_self"?(d=_.z$("A"),AN(d,u),d.target=p,G&&(d.rel="noreferrer"),
((H=H.attributionsrc)||H==="")&&d.setAttribute("attributionsrc",H),H=document.createEvent("MouseEvent"),H.initMouseEvent("click",!0,!0,q,1),d.dispatchEvent(H),d=zqj()):G?(d=_.Hg(q,"",p,d),q=_.iI(u),d&&(d.opener=null,q===""&&(q="javascript:''"),q='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+FD(q)+'">',q=Lq(q),(H=d.document)&&H.write&&(H.write(Fx(q)),H.close()))):((d=_.Hg(q,u,p,d))&&H.noopener&&(d.opener=null),d&&H.noreferrer&&(d.opener=null)),G=d);fbj(_.tp().resolve(v$b),
G,Z);return!0}d=_.vU(Z);d=TAU(d)||Z==="https://studio.youtube.com/";if(_.qY(Z)&&!SA(window.location.href,Z)||d)W$(Z),d8(),_.zz(Z,void 0,void 0,window.top,Kqf);else return _.Rp(new _.C$("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",G)),!1;return!0};
_.rdf=function(G,H){H=H===void 0?0:H;if(!(_.X(G,jWv)||_.X(G,Pd3)||_.X(G,_.Hx)&&_.X(G,_.Hx).url))return!1;var Z,Q=(Z=_.X(G,_.Hx))==null?void 0:Z.url;Z=Q?{externalLinkData:{url:Q}}:null;return _.gr().clickCommand(G,Z,H)};
hqb=function(G,H,Z,Q,p){p=p===void 0?{}:p;return function(l){var q,u;var B=((q=G.loggingDirectives)==null?0:(u=q.clientVeSpec)==null?0:u.uiType)?_.bl(G.loggingDirectives.clientVeSpec.uiType):void 0;p.clickedVisualElement||(p.clickedVisualElement=B);B=wpU(G,H);Z(B,l);B=_.I(B);for(q=B.next();!q.done;q=B.next()){q=q.value;u=Q;var t=l,D=p;D.form?D.form.event=t:D.form={element:u,event:t};qi(q,D)}}};
wpU=function(G,H){var Z=[];H?(G.toggledCommand&&Z.push(G.toggledCommand),G.toggledServiceEndpoint&&Z.push(G.toggledServiceEndpoint)):(G.defaultCommand&&Z.push(G.defaultCommand),G.defaultServiceEndpoint&&Z.push(G.defaultServiceEndpoint),G.defaultNavigationEndpoint&&Z.push(G.defaultNavigationEndpoint));return Z};
Cdf=function(G,H){var Z=G.toggledStyle||G.style,Q;switch((Q=H?Z:G.style)==null?void 0:Q.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"}}};
_.Gk=function(){return _.S(function(G){return G.nextAddress==1?G.yield(_.tp().resolve(_.LI),2):G.return(_.tp().resolve(iR3)())})};
_.HV=function(){return _.tp().resolve(iR3)()};
_.sw=function(){return UJ(function(){return{lottieEl:void 0}})};
OR2=function(G,H){return G.startsWith(H.uniqueId)};
abv=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.Gk(),2);H=Q.yieldResult;if((Z=H)==null||!Z.addEventListener)return Zq(),Q.return();H.addEventListener("onCueRangeEnter",G);_.K0(Q)})};
ydo=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.Gk(),2);H=Q.yieldResult;if((Z=H)==null||!Z.removeEventListener)return Zq(),Q.return();H.removeEventListener("onCueRangeEnter",G);_.K0(Q)})};
o$2=function(G){var H,Z,Q,p,l;_.S(function(q){if(q.nextAddress==1)return q.yield(_.Gk(),2);H=q.yieldResult;if((Z=H)==null||!Z.addCueRange)return Zq(),q.return();Q=_.I(G.timings);for(p=Q.next();!p.done;p=Q.next())l=p.value,H.addCueRange(G.uniqueId+"-"+l,l/1E3,(l+100)/1E3);_.K0(q)})};
mMM=function(G){var H,Z,Q,p,l;_.S(function(q){if(q.nextAddress==1)return q.yield(_.Gk(),2);H=q.yieldResult;if((Z=H)==null||!Z.removeCueRange)return Zq(),q.return();Q=_.I(G.timings);for(p=Q.next();!p.done;p=Q.next())l=p.value,H.removeCueRange(G.uniqueId+"-"+l);_.K0(q)})};
UMj=function(){var G,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.Gk(),2);G=Q.yieldResult;if((H=G)==null||!H.getPlayerState)return Zq(),Q.return();Z=G.getPlayerState();return Q.return(Z===2)})};
Zq=function(){_.Rp(new _.C$("Smartimation player does not exist or is corrupted"))};
RqR=function(){try{var G;return(G=window.CSS)!=null&&G.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(H){return _.Rp(new _.C$("Smartimation CSS.supports threw an error")),!1}};
Fqj=function(G,H,Z,Q,p){var l=G.playlistId?NAR:Ad2;H=H();Z=Z();p=!!G.videoId&&p()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.uX(H))return xM2({data:G,actionType:l,disabled:p},Z);if(G.videoId&&Q())return Lqu({data:G,actionType:l,disabled:p});switch(H){case "TRANSFER_STATE_UNKNOWN":return Lqu({data:G,actionType:l,disabled:p});case "TRANSFER_STATE_FAILED":return G.videoId?E$j({data:G,actionType:l,disabled:p}):Ytf({data:G,actionType:l,disabled:p});case "TRANSFER_STATE_COMPLETE":return Ytf({data:G,
actionType:l,disabled:p});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return xM2({data:G,actionType:l,disabled:p},Z);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return G.videoId?E$j({data:G,actionType:l,disabled:p}):Lqu({data:G,actionType:l,disabled:p});default:return Lqu({data:G,actionType:l,disabled:p})}};
bRj=function(G,H){var Z=G.onTapCommand,Q=_.Tt(Z);if(G.videoId&&_.X(Q,_.Qt))return _.X(Q,_.Qt).action=H,Z;G.playlistId&&_.X(Q,_.lP)&&(_.X(Q,_.lP).action=H);return Z};
Lqu=function(G){var H=G.data;var Z=G.actionType;G=G.disabled;return{text:Gcu,iconType:"OFFLINE_DOWNLOAD",onTap:bRj(H,Z.ACTION_ADD),disabled:G}};
xM2=function(G,H){var Z=G.data;var Q=G.actionType;G=G.disabled;var p="OFFLINE_DOWNLOAD";H>=0&&H<=.1?p="OFFLINE_DOWNLOADING_ZERO":H>.1&&H<=.3?p="OFFLINE_DOWNLOADING_TWENTY":H>.3&&H<=.5?p="OFFLINE_DOWNLOADING_FORTY":H>.5&&H<=.7?p="OFFLINE_DOWNLOADING_SIXTY":H>.7&&H<1?p="OFFLINE_DOWNLOADING_EIGHTY":H===1&&(p="OFFLINE_PIN");return{text:HZb,iconType:p,onTap:bRj(Z,Q.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
Ytf=function(G){var H=G.data;var Z=G.actionType;G=G.disabled;return{text:sLo,iconType:"OFFLINE_PIN",onTap:bRj(H,Z.ACTION_REMOVE_WITH_PROMPT),disabled:G}};
E$j=function(G){var H=G.data;var Z=G.actionType;G=G.disabled;return{text:ZZf,iconType:"OFFLINE_DOWNLOAD",onTap:bRj(H,Z.ACTION_RETRY),disabled:G}};
_.gu=function(G,H){var Z=GSj();return _.Kb(function(){Z();return ZSo(G,[_.Uv(H)||""])},{debugName:"LUZslf"},"Z105t")};
QLM=function(G){var H=_.gu(_.Wv,function(){return G().videoId}),Z=_.gu(_.z9,function(){return G().playlistId});
return function(){return G().videoId?H:G().playlistId?Z:_.I(_.Ty("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
pIR=function(G){var H=_.gu(KN,function(){return G().videoId}),Z=_.gu(_.UZu,function(){return G().playlistId});
return function(){return G().videoId?H:G().playlistId?Z:_.I(_.Ty(0,void 0,"K4tgOc")).next().value}};
ljb=function(G){var H=_.gu(_.bi2,function(){return G().videoId});
return function(){return G().videoId?H:_.I(_.Ty(!1,void 0,"Oaxwcf")).next().value}};
g62=function(G){var H=_.gu(Afv,function(){return G().videoId});
return function(){return G().videoId?H:_.I(_.Ty("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
IjM=function(){return{}};
_.Jbe=function(G,H,Z){return{submitForm:function(){var Q,p,l,q;return _.S(function(u){if(u.nextAddress==1){Q=q9U(G());if(!Q)return u.return();if(Q.onSubmit)return S9o(H),Q.onSubmit(),S9o(Z),u.return();if(!Q.submitConfig||!Q.formData)return u.jumpTo(0);Q.disableDuringSubmission&&ud3(G(),!0);S9o(H);return u.yield(BL3(Q.submitConfig,Q.formData()),3)}p=u.yieldResult;S9o(Z);if(((l=p)==null?0:l.submitResult)&&((q=Q)==null?0:q.onSubmitResult))Q.onSubmitResult(p.submitResult);Q.disableDuringSubmission&&ud3(G(),
!1);return u.return()})},
isValid:function(){var Q=q9U(G());if(Q){var p;return!((p=Q.isValid)==null||!p.call(Q))}return!0},
isSubmitting:function(){var Q,p;return!!((Q=q9U(G()))==null?0:(p=Q.isSubmitting)==null?0:p.call(Q))}}};
_.IS=function(){if(!tNf){var G=_.I(_.Ty(new Map,void 0,"Y1XnBc"));tNf=G.next().value;kcb=G.next().value}return tNf};
_.DCb=function(G){kcb(new Map(G))};
q9U=function(G){if(G)return _.IS()().get(G)};
BL3=function(G,H){var Z;return _.S(function(Q){return Q.nextAddress==1?H?(Z=_.tp().resolve(_.Jp(dCu)))&&G.submitId?Q.yield(Z.submitForm(G.submitId,H,e0u,G.params,G.clickTrackingParams),2):Q.return(Promise.reject(Error("Bh"))):Q.return(Promise.reject(Error("Ah"))):Q.return(Q.yieldResult)})};
ud3=function(G,H){if(G){var Z=_.IS();Z().set(G,Object.assign({},Z().get(G),{isSubmitting:function(){return H}}));
_.DCb(Z())}};
S9o=function(G){if(G){var H=_.tp().resolve(_.Dk);H&&(G=_.Tt(G()))&&H.resolveCommand(G)}};
$CM=function(G,H){H=H===void 0?{shouldPersist:!0}:H;return{useUpdatableData:function(Z,Q){var p=_.Kb(function(){return G(Z())},void 0,"Gmrblb"),l=n6b(Z,p,Q,H);
_.yN(function(){if(p()!=null){VN3.set(p(),l);var q=p();_.oM(function(){VN3.delete(q)})}},"j4hx9b");
return l},
getData:function(Z){var Q;return(Q=VN3.get(G(Z)))==null?void 0:Q[0]()},
updateData:function(Z,Q){Z=G(Z);Z=VN3.get(Z);if(!Z)return!1;var p=_.I(Z);Z=p.next().value;p=p.next().value;Q=Q(Z());p(Q);return!0}}};
n6b=function(G,H,Z,Q){Q=Q===void 0?{}:Q;var p=_.I(_.QF(function(){var u=G(),B=H();return XI3(u,B,Z,Q)})),l=p.next().value,q=p.next().value;
return[l,function(u){q(u);var B=H();if(Q.shouldPersist&&B!=null){var t,D=(t=Z==null?void 0:Z.map(function(d){return d()}))!=null?t:[];
_.qB.set(B,[u,D])}}]};
XI3=function(G,H,Z,Q){Q=Q===void 0?{}:Q;if(H==null||!Q.shouldPersist)return G;Q=_.qB.get(H);if(!Q)return G;var p=_.I(Q);Q=p.next().value;var l=p.next().value,q;p=(q=Z==null?void 0:Z.map(function(u){return u()}))!=null?q:[];
if((l==null?0:l.length)&&(Z==null?0:Z.length)&&p.some(function(u,B){return u!==l[B]}))return _.qB.remove(H),G;
(Z==null?0:Z.length)&&_.qB.set(H,[Q,p]);return Q};
cb3=function(G){var H=_.I(_.Ty(!0,void 0,"bKtO6d")),Z=H.next().value;H.next();return function(){var Q=zI(G.children());return _.J(_.k,{cond:Z,then:function(){return Q},
else:G.fallback})}()};
_.SP=function(G){var H=TLj(G),Z=H.data,Q=H.mapping,p=H.wrapper;H=H.pendingFallback;var l=function(){return fjb(_.Uv(Z))},q=function(){var u=l(),B=[];
u=_.I(u);for(var t=u.next();!t.done;t=u.next()){var D=void 0;t=t.value;var d=void 0;for(D in t)if(!(!t).hasOwnProperty(D)){d=D;break}(D=d)&&B.push(D)}return B};
return G.data?_.J(cb3,{fallback:H},function(){return _.J(_.Cl,{each:q},function(u,B){var t=p?function(d){return p(function(){return Q[u](d,B)},D,B)}:function(d){return Q[u](d,B)};
t.debugName||(t.debugName=String(u));if(!Q[String(u)])return document.createComment("");t.componentType!==Cb&&v6v(String(u));var D=WFv(l,u,B);return _.J(t,{data:D})})}):_.J(_.kI,null)};
TLj=function(G){var H=G.targetId||z0X(G.children);if(!G.data||!H)return Object.assign({},G,{mapping:G.children,wrapper:void 0});var Z="stamper-"+KFf++,Q=function(){var u;return(u=typeof G.targetId==="function"?G.targetId(Z):G.targetId)!=null?u:Z};
H=_.I(MNX(function(){var u=fjb(G.data());u.targetId=Q;return u})).next().value;
var p=Object.assign({},(_.tp().resolve(_.Jp(jLf))||{}).replaceableMapping,G.children);if(G.replacementWrapper){var l=p.notificationTextRenderer,q=p.notificationMultiActionRenderer;l&&(p.notificationTextRenderer=function(u,B){return G.replacementWrapper(l({data:u.data},B))});
q&&(p.notificationMultiActionRenderer=function(u,B){return G.replacementWrapper(q({data:u.data},B))})}return Object.assign({},G,{data:H,
mapping:p,wrapper:function(u,B,t){return Q8e({targetId:Q,stamperIndex:t},u)}})};
WFv=function(G,H,Z){var Q;return _.Kb(function(){var p=G()[Z()];if(p)Q=p[H];else return _.Rp(new _.C$("Stamper failed to find "+String(H)+" at index "+Z()+" of data array of length "+(G().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),Q;return p[H]},void 0,"AtsHlc")};
z0X=function(G){G=_.I(Object.keys(G));for(var H=G.next();!H.done;H=G.next())if(H=H.value,PiU.includes(H)||rbX.includes(H)||wIU.includes(H))return!0;return!1};
fjb=function(G){return G?Array.isArray(G)&&G instanceof Array?G:[G]:[]};
v6v=function(G){if(_.V("web_enable_renderer_logger")){var H;(H=_.tp().resolve(_.Jp(h03)))!=null&&H.loggingEnabled&&!H.ids.has(G)&&H.ids.add(G)}};
Cio=function(){var G,H;return(H=(G=_.tp().resolve(_.Jp(_.rr)))==null?void 0:G())!=null?H:!1};
OZf=function(G,H){G=G===void 0?iZe:G;switch(H.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},G,{isOpen:H.payload});default:return G}};
ybj=function(G,H){G=G===void 0?ajj:G;switch(H.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},G,{isAllowed:H.payload});default:return G}};
mCX=function(G,H){G=G===void 0?o6j:G;switch(H.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{errorMessage:H.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},G,{title:H.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},G,{privacy:H.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},G,{isDisabled:H.payload});default:return G}};
R0X=function(G,H){G=G===void 0?UCW:G;switch(H.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},G,{isOpen:H.payload});default:return G}};
Abv=function(G,H){G=G===void 0?NLW:G;switch(H.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},G,{isFullscreen:H.payload});case "SET_NAVIGATION_BUTTON":var Z=H.payload.targetId,Q=Object.assign({},G.navigationButtons);Q[Z]=H.payload.button;return Object.assign({},G,{navigationButtons:Q});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},G,{topPanelId:H.payload});case "SET_SECONDARY_HEADER":return Z=H.payload.panelId,Q=Object.assign({},G.secondaryHeader),Q[Z]=H.payload.secondaryHeader,
Object.assign({},G,{secondaryHeader:Q});default:return G}};
Y9v=function(){return zE(Object.assign({},{voiceSearch:$tj,engagementPanel:Abv,bottomSheet:OZf,cinematicSetting:ybj,shorts:KO3,drawerLayout:R0X,createPlaylist:mCX,locationCollection:xCe,reportChannel:LFX,reportForm:E6M},MiX))};
FFX=function(G,H){_.Ui.addLowPriorityJob(function(){var Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:return _.XV(l,2),l.yield(MRW(),4);case 4:return l.yield(fetch(G),5);case 5:return Z=l.yieldResult,l.yield(Z.json(),6);case 6:Q=l.yieldResult;kV.set(G,Q);requestAnimationFrame(function(){H(Q)});
_.Za(l,0);break;case 2:p=_.Wg(l),_.Rp(p),_.K0(l)}})})};
bZj=function(G){var H={animationConfig:{},listeners:{}},Z=function(){G(!0)};
H.listeners.data_failed=Z;H.listeners.error=Z;H.listeners.data_ready=function(){G(!1)};
return H};
sgj=function(G){var H=G.model;var Z=G.subscribed;var Q=G.isOverlay;var p=G.element;var l=G.commandController;var q=G.notificationState;if(Z){var u,B;var t=(H==null?void 0:(u=H.buttonStyle)==null?void 0:u.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:H==null?void 0:(B=H.unsubscribeButtonContent)==null?void 0:B.buttonText}else{var D;t=H==null?void 0:(D=H.subscribeButtonContent)==null?void 0:D.buttonText}a:{var d;switch(H==null?void 0:(d=H.buttonStyle)==
null?void 0:d.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":u="S";break a;default:u="M"}}a:if(Q)Q="overlay";else switch(H.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":Q="overlay";break a;default:Q="mono"}a:if(Z)var e="tonal";else switch((e=H.buttonStyle)==
null?void 0:e.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":e="tonal";break a;default:e="filled"}return{style:Q,type:e,state:H.disableSubscribeButton?"disabled":"active",size:u,focused:G.focused,toggled:Z,accessibilityLabel:GTv(H,Z,q),buttonText:t,iconPosition:H.disableNotificationBell?"none":"leading-trailing",onTap:HLj(H,Z,p,l),disableTextEllipsis:!!G.disableTextEllipsis}};
HLj=function(G,H,Z,Q){return function(p){if(H){var l;var q=G.disableNotificationBell?_.Tt(G==null?void 0:(l=G.unsubscribeButtonContent)==null?void 0:l.onTapCommand):_.Tt(G==null?void 0:G.onShowSubscriptionOptions)}else{var u;q=_.Tt(G==null?void 0:(u=G.subscribeButtonContent)==null?void 0:u.onTapCommand)}q&&qi(q,{form:{element:Z==null?void 0:Z.value},commandController:Q});p.stopPropagation()}};
GTv=function(G,H,Z){if(H){if(G==null?0:G.disableNotificationBell){var Q;return G==null?void 0:(Q=G.unsubscribeButtonContent)==null?void 0:Q.accessibilityText}switch(Z){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var p;return G==null?void 0:(p=G.bellAccessibilityData)==null?void 0:p.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var l;return G==null?void 0:(l=G.bellAccessibilityData)==null?void 0:l.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var q;return G==null?void 0:(q=
G.bellAccessibilityData)==null?void 0:q.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var u;return G==null?void 0:(u=G.bellAccessibilityData)==null?void 0:u.disabledLabel;default:var B;return G==null?void 0:(B=G.unsubscribeButtonContent)==null?void 0:B.accessibilityText}}else{var t;return G==null?void 0:(t=G.subscribeButtonContent)==null?void 0:t.accessibilityText}};
ZLf=function(G,H){return _.Hv(G.entities,"subscriptionStateEntity",H)};
QgX=function(G,H){return _.Hv(G.entities,"subscriptionNotificationStateEntity",H)};
paj=function(G,H){return _.Hv(G.entities,"upcomingEventReminderStateEntity",H)};
lPu=function(G,H){return _.Hv(G.entities,"commentEntityPayload",H)};
gtf=function(G,H){return _.Hv(G.entities,"engagementToolbarSurfaceEntityPayload",H)};
IPR=function(G,H){return _.Hv(G.entities,"triStateButtonStateEntityPayload",H)};
qmf=function(G,H){return _.Hv(G.entities,"commerceCartCheckoutButtonEntity",H)};
Smj=function(G,H){return _.Hv(G.entities,"commandEntity",H)};
u5W=function(G){if(G){switch(G){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":G="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":G="NOTIFICATIONS_OFF";break;default:G="NOTIFICATIONS_NONE"}return G}};
B2f=function(G,H,Z){Z.subscribed!==H&&((Z=Z.key)&&_.aK(_.uP("subscriptionStateEntity",Z,{key:Z,subscribed:H})),G.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:H})),H||_.AZ(G,"yt-unsubscribe-action"))};
kTo=function(G){G=_.X(_.Tt(G),_.Jxo);var H,Z,Q,p;return(p=_.X(G==null?void 0:(H=G.panelLoadingStrategy)==null?void 0:(Z=H.inlineContent)==null?void 0:(Q=Z.sheetViewModel)==null?void 0:Q.content,tFe))==null?void 0:p.listItems};
DLo=function(G,H){if(G.onShowSubscriptionOptions&&H&&(G=kTo(G.onShowSubscriptionOptions),G!=null&&G.length)){var Z=u5W(H);G.forEach(function(Q){Q=_.X(Q,_.BV);var p,l,q,u,B=Q==null?void 0:(p=Q.leadingImage)==null?void 0:(l=p.sources)==null?void 0:(q=l[0])==null?void 0:(u=q.clientResource)==null?void 0:u.imageName;Q&&B&&(Q.isSelected=B===Z)})}};
dLM=function(G,H,Z,Q){H&&Z?G.style.width=Z+"px":!H&&Q&&(G.style.width=Q+"px")};
ep3=function(G,H,Z){var Q;(Q=G.lottieEl)==null||Q.goToAndPlay(0);var p;(p=H.lottieEl)==null||p.goToAndPlay(0);_.JW(_.Ui,function(){var l;(l=Z.lottieEl)==null||l.goToAndPlay(0)},300)};
ntR=function(G){return!(G==null||!G.iconName||(G==null?0:G.title))};
VFv=function(G,H,Z,Q){Z&&_.Ui.cancelJob(Z);Z=_.Ui.addLowPriorityJob(function(){Q(void 0)},5E3);
Q(Z);H&&G!==(H.likeStatus==="LIKE")&&H.key&&_.aK(_.uP("likeStatusEntity",H.key,{key:H.key,likeStatus:G?"LIKE":"INDIFFERENT",hadUserInteraction:G}))};
_.$Lu=function(G,H){return _.Hv(G.entities,"accountLinkStatusEntity",H)};
Xav=function(G,H){return _.Hv(G.entities,"hatsSurveyEntity",H)};
cxj=function(G,H){return _.Hv(G.entities,"hatsSurveyStateEntity",H)};
T2f=function(G,H){return _.Hv(G.entities,"quantityIncrementerEntity",H)};
fPj=function(G){switch(G){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;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}};
vtu=function(G){switch(G){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}};
Wzo=function(G){switch(G){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"}};
_.Kzu=function(G){var H=_.eA("web_generic_client_event_wait_period ",0);H||(H=3E5);var Z=zpM.get(G);!_.V("enable_web_client_experiment_event_timeout_killswitch")&&Z&&(0,_.t3)()-Z<H||(zpM.set(G,(0,_.t3)()),_.yR("genericClientExperimentEvent",{eventType:G}))};
_.MFe=function(G,H){var Z,Q,p,l;a:{var q=G.style;if(q===void 0)q=17;else switch(q){case "LIVE":q=18;break a;default:q=17}}return{type:q,text:H?Qae({seconds:H}):_.yn(G.text),accessibilityText:(Z=G.text)==null?void 0:(Q=Z.accessibility)==null?void 0:(p=Q.accessibilityData)==null?void 0:p.label,icon:(l=G.icon)==null?void 0:l.iconType}};
jgb=function(G){switch(G){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
Pku=function(G){if(!G)return"";var H,Z=(H=_.tp().resolve(_.Jp(_.rr)))==null?void 0:H(),Q;if(!Z&&((Q=G.vibrantColorPalette)==null?0:Q.iconInactiveColor))return Tz(G.vibrantColorPalette.iconInactiveColor,"1");var p;return Z&&((p=G.darkColorPalette)==null?0:p.iconInactiveColor)?Tz(G.darkColorPalette.iconInactiveColor,"1"):G.color?Tz(G.color,"1"):G.sampledThumbnailColor?(G=G.sampledThumbnailColor,"rgba("+G.red+","+G.green+","+G.blue+");"):""};
_.tW=function(G,H){if(!G.includes("DATE_PLACEHOLDER"))return G;var Z=new Date(0);Z.setUTCSeconds(H);return G.replace("DATE_PLACEHOLDER",rxR(Z))};
wav=function(G,H,Z){return function(Q){var p=G.command;p&&(qi(p,{form:{element:Z}}),H([p],Q))}};
Cke=function(G,H,Z,Q,p){return function(l){var q=hpv(G,H);q&&qi(q,{form:{element:Z},commandController:Q});p&&l.stopPropagation()}};
hpv=function(G,H){if(G.signInEndpoint&&!_.V("web_subscribe_sign_in_endpoint_killswitch"))return G.signInEndpoint;if(H){if(G.serviceEndpoints)return G.serviceEndpoints[1];if(G.onUnsubscribeEndpoints)return G.onUnsubscribeEndpoints[0]}else{if(G.serviceEndpoints)return G.serviceEndpoints[0];if(G.onSubscribeEndpoints)return G.onSubscribeEndpoints[0]}};
iLe=function(G,H){var Z,Q,p,l;H=H&&((Z=G.unsubscribeAccessibility)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label)||((p=G.subscribeAccessibility)==null?void 0:(l=p.accessibilityData)==null?void 0:l.label);return G.longSubscriberCountText?[H,_.yn(G.longSubscriberCountText)].filter(function(q){return q}).join(" "):H};
kX=function(G,H){return H||(G==null?0:G.isChannelDelegate)?"disabled":"active"};
OLW=function(G,H){var Z;switch((Z=G.style)==null?void 0:Z.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:kX(G)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:kX(G)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:kX(G,!0)};case "OVERLAY":return H?{style:"overlay",type:"tonal",state:kX(G)}:{style:"overlay",type:"filled",state:kX(G)};default:return H?{style:"mono",type:"tonal",state:kX(G)}:{style:"mono",type:"filled",state:kX(G)}}};
_.Dq=function(){for(var G=[],H=_.I(_.Ry.apply(0,arguments)),Z=H.next();!Z.done;Z=H.next())if(Z=Z.value)if(typeof Z==="string")G.push(Z);else{Z=_.I(Object.entries(Z));for(var Q=Z.next();!Q.done;Q=Z.next()){var p=_.I(Q.value);Q=p.next().value;(p=p.next().value)&&G.push(Q)}}return G.join(" ")};
aPM=function(G){switch(G){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
yxb=function(G){switch(G){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
otW=function(G,H){var Z=G.map(function(Q){return Q.toString()});
return _.Hh(function(Q){if(Z.includes(Q.key)){H&&Q.preventDefault();var p;(p=Q.currentTarget)==null||p.click()}})};
_.mLR=function(){return otW(["Enter"])};
_.ULR=function(){return otW(["Enter"," "],!0)};
_.du=function(G){if(G.composedPath)return G.composedPath();if(!G.__composedPath){for(var H=[],Z=G.target;Z;)H.push(Z),Z=Z.parentNode;H.push(window);G.__composedPath=H}return G.__composedPath};
_.eP=function(G,H,Z){G=_.I(G);for(var Q=G.next();!Q.done;Q=G.next()){Q=Q.value;if(Q===H)break;for(var p=_.I(Z),l=p.next();!l.done;l=p.next())if(l=l.value,Q.tagName===l||Q.role==="button"&&l==="BUTTON")return!0}return!1};
N2v=function(G,H){var Z,Q=(Z=H.observer)!=null?Z:_.tp().resolve(Jk);if(G){Z=Rp2(G);var p=[];H.showOption&&p.push(Q.observe(G,function(){H.visibilityCallback(!0,G)},H.showOption));
H.hideOption&&p.push(Q.observe(G,function(){H.visibilityCallback(!1,G)},H.hideOption));
H.prescanOption&&H.prescanCallback&&p.push(Q.observe(G,function(){H.prescanCallback()},H.prescanOption));
var l;Z.visibilityMonitorKeys=((l=Z.visibilityMonitorKeys)!=null?l:[]).concat(p)}};
Rp2=function(G){var H;return(H=G.polymerController)!=null?H:G};
_.Vt=function(G){return!!_.nG(G)};
_.$X=function(G,H,Z,Q,p){return function(l){var q=Z72();_.yN(function(){if(l){Ax2(l,G(),p);var u=xLW(l,G(),H,Z,Q,q);_.oM(u)}},"nr377e")}};
Ax2=function(G,H,Z){var Q=LzX(H),p=Etf(H);H=Q&&Ymu;var l=p&&Fzf;(Q||p)&&N2v(G,{visibilityCallback:function(q){var u=_.tp().resolve(_.Dk);q&&Q?u.resolveCommand(Q,{form:{element:Z?G:void 0},disableClickTracking:!0}):!q&&p&&u.resolveCommand(p,{form:{element:Z?G:void 0},disableClickTracking:!0})},
showOption:H,hideOption:l})};
xLW=function(G,H,Z,Q,p,l){var q=new Map;if(H=_.nG(H)){var u;G=(Q==null?void 0:(u=Q.onTap)==null?void 0:u.value)||G;Z=bLv(H,G,Z==null?void 0:Z.onTap,p,l);G.addEventListener("click",Z);q.set("click",Z)}return function(){for(var B=_.I(q),t=B.next();!t.done;t=B.next()){var D=_.I(t.value);t=D.next().value;D=D.next().value;G.removeEventListener(t,D)}}};
_.nG=function(G){var H;return(G=(H=_.X(G,G2U))==null?void 0:H.onTap)&&_.Tt(G)};
LzX=function(G){var H;return(G=(H=_.X(G,G2U))==null?void 0:H.onVisible)&&_.Tt(G)};
Etf=function(G){var H;return(G=(H=_.X(G,G2U))==null?void 0:H.onHidden)&&_.Tt(G)};
bLv=function(G,H,Z,Q,p){var l=function(u){_.tp().resolve(_.Dk).resolveCommand(G,u)},q=function(u){Q&&_.eP(_.du(u),H,Q)||l(u.target?{form:{element:u.target,
sourceData:G,mutationContext:p}}:void 0)};
Z&&(q=function(u){Z(u,l)});
return q};
HUM=function(G){switch(G){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}};
sY2=function(G){var H=G.numAvatarsInCluster;switch(G.clusterSize){case "small":return H===2?22:18;case "40":return H===2?24:22;default:return H===2?24:20}};
ZUf=function(G,H){return function(Z){var Q=Object.keys(H);_.yN(function(){if(G!=null&&G()){for(var p=_.I(Q),l=p.next();!l.done;l=p.next())l=l.value,Z.addEventListener(l,H[l]);_.oM(function(){for(var q=_.I(Q),u=q.next();!u.done;u=q.next())u=u.value,Z.removeEventListener(u,H[u])})}},"bXZGfe")}};
QYj=function(G){switch(sY2(G)){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""}};
pBe=function(G){switch(G){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""}};
lXf=function(G){switch(sY2(G)){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""}};
gob=function(G){switch(G){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""}};
IXU=function(G){switch(G){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}};
quf=function(G){return G==="medium"||G==="48"||G==="large"||G==="extra-large"||G==="extra-extra-large"||G==="giant"};
Sue=function(G){return!!((G==null?0:G.includes(3))||(G==null?0:G.includes(5)))};
B9o=function(G){var H=G.data;return{size:un2(H.avatarImageSize),type:H.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:G.onTap,decorations:G.decorations||[],badgeText:G.badgeText,accessibilityText:G.accessibilityText,avatarButtonCustomClassName:G.avatarButtonCustomClassName,clusterLayoutConfig:G.clusterLayoutConfig}};
un2=function(G){switch(G){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"}};
JF3=function(G){switch(G){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}};
tmj=function(G){switch(G){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""}};
k2j=function(G){var H=G.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",Z,Q=G.avatars&&G.avatars.length>0?(Z=_.X(G.avatars[0],_.Xu))==null?void 0:Z.avatarImageSize:"AVATAR_SIZE_UNKNOWN";Z=JF3(Q)||0;if(H){var p,l=(p=G.avatarClusterSize)!=null?p:"AVATAR_SIZE_M";H=JF3(l);var q,u,B=Math.min((u=(q=G.avatars)==null?void 0:q.length)!=null?u:0,4),t;return{avatars:((t=G.avatars)==null?void 0:t.slice(0,4))||[],avatarSizeInPx:Z,avatarStackStyle:{width:H+"px",height:H+"px",position:"relative"},avatarStyle:function(d){var e=
sY2({clusterSize:un2(l),numAvatarsInCluster:B,avatarIndex:d});var n=JF3(l);B===3&&d===2?(n=(n-e)/2,n=(_.xI("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*n):n=void 0;return{position:"absolute",top:B===2&&d===1||B===3&&d===2||B===4&&d>=2?"0":void 0,bottom:B===2&&d===0||B>2&&d<2?"0":void 0,left:B===2&&d===1||B>2&&(d===1||d===3)?"0":void 0,right:B<=3&&d===0||B===4&&(d===0||d===2)?"0":void 0,transform:n?"translateX("+n+"px)":void 0,width:e+"px",height:e+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(d){return{clusterSize:un2(G.avatarClusterSize),numAvatarsInCluster:B,avatarIndex:d}},
avatarButtonCustomClassName:void 0}}var D;return{avatars:((D=G.avatars)==null?void 0:D.slice())||[],avatarSizeInPx:Z,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:tmj(Q),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
DSX=function(G,H,Z){return function(){qi(G,{form:{element:H},commandController:Z})}};
dSW=function(G){switch(G){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
ea2=function(G){switch(G){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"}};
nof=function(G){if("accessibilityText"in G)return G.accessibilityText||"";if("title"in G){var H,Z,Q;return((H=G.title)==null?void 0:(Z=H.accessibility)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label)||""}if("accessibility"in G){var p,l;return((p=G.accessibility)==null?void 0:(l=p.accessibilityData)==null?void 0:l.label)||""}return""};
VmW=function(G){return"inlinePlayerData"in G};
cV=function(G){return new $Su(G)};
XBj=function(G){return function(H){G&&(G.thumbnailElRef=H.thumbnailElRef,G.thumbnail=H.thumbnail,G.thumbnailOverlays=H.thumbnailOverlays,G.thumbnailSize=H.thumbnailSize)}};
cF3=function(G){switch(G){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
fXR=function(G){var H=_.I(_.Ty(!1,void 0,"E6wDDe")),Z=H.next().value,Q=H.next().value;_.mR(function(){var p=G==null?void 0:G();if(p){var l=_.tp().resolve(_.Jp(T9j));if(l){var q={triggeringElement:p,onDwellTriggeredFn:function(){Q(!0)},
onDwellEndFn:function(){Q(!1)}};
l.registerElement(q);_.oM(function(){_.Tk(l,q)})}}});
return Z};
vof=function(G,H,Z){Z?Z(H):_.zt(H,G.target?{form:{element:G.target}}:void 0)};
_.fG=function(G,H,Z,Q){return function(p){_.yN(function(){function l(D){D=D.composedPath();D=_.I(D);for(var d=D.next();!d.done;d=D.next()){d=d.value;if(d===p)break;if(d.className.indexOf("HostIsClickableAdComponent")>=0||d.tagName==="A".toString()||d.tagName==="BUTTON".toString())return!0}return!1}
var q=new Map,u,B=(u=G())==null?void 0:u.onTap;if(B){u=function(D){l(D)||vof(D,B,H)};
var t=function(D){l(D)||D.key!=="Enter"||vof(D,B,H)};
(Z==null?0:Z())||_.V("enable_web_home_top_landscape_image_layout_level_click")?(p.addEventListener("tap",u),q.set("tap",u)):(p.addEventListener("click",u),q.set("click",u));if(Q==null?0:Q())p.addEventListener("keydown",t),q.set("keydown",t)}_.oM(function(){for(var D=_.I(q),d=D.next();!d.done;d=D.next()){var e=_.I(d.value);d=e.next().value;e=e.next().value;p.removeEventListener(d,e)}})},"D7XqOc")}};
WCU=function(G,H){var Z,Q=(Z=G.interaction)==null?void 0:Z.onTap;if(G=_.vT({elementsCommand:Q,forceNewState:!0,skipOnClick:!0}))return G.onclick=function(p){Vzv(p)&&(p.preventDefault(),Q&&vof(p,Q,H))},WT(G)?G:void 0};
zaM=function(G){switch(G){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
KCU=function(G){switch(G){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"}};
Mmu=function(G){switch(G){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"}};
_.jYU=function(G){return _.V("rich_grid_enable_dynamic_offset")&&G?Math.max((G-_.eA("rich_grid_dynamic_offset_anchor_width",1300))/100*_.eA("rich_grid_dynamic_offset_offset_per_100",10),_.eA("rich_grid_dynamic_offset_lower_bound",-60)):0};
P92=function(G,H){switch(H){case 4:return 16;case 1:return G<528?16:G<1024?32:48;case 2:return(G>=528?16:8)/2;case 3:return(G<528?16:G<1024?32:48)+(G>=528?16:8)/2;default:return 0}};
rFW=function(G){var H=G.originalContainerWidth;var Z=G.sizing;var Q=G.standardUnit;if(G.isCompactList&&H<528)return 1;switch(Z){case "STANDARD":return Q;case "COMPACT":return Q+1;case "EXTRA_COMPACT":return _.V("web_responsive_extra_compact_2x")?Q*2:_.V("web_responsive_current")?Q===1?2:Q%2===0?Q/2*3:Q+2:Q<4?Q*2:Math.ceil(Q*3/2);case "MINI":return Q>1?Q*2:3;default:return Q}};
haj=function(G){var H=G.containerWidth;var Z=G.peek;var Q=G.gutter;var p=G.numItems;G=G.ignoreMaxWidthLimit;H=Z?Math.max((H-Z-Q*p)/p,0):Math.max((H-Q*(p-1))/p,0);return G?H:Math.min(H,wBe)};
_.vV=function(G){var H=G.containerWidth;var Z=G.hasPeek;var Q=G.sizing;var p=G.marginSettings;var l=G.isCompactList;var q=G.enableFullBleedForSingleCol;var u=G.standardUnitMinWidth;Q=Q||"STANDARD";Z=!!Z;G=H>=528?16:8;var B=Z?H>=528?48:24:0;p=P92(H,p);var t=Math.max(H-p*2,0);u=_.V("kevlar_disable_min_width_override")?void 0:u;u=Math.min(Math.max(Math.floor((t-B+G)/((u!=null?u:C9e)+_.jYU(H)+G)),1),6);var D=(q=!!q&&u===1)||u===1&&Q!=="STANDARD";Z=Z||D?t:Math.min(t,(wBe+G)*u-G);Q=rFW({originalContainerWidth:H,
sizing:Q,standardUnit:u,isCompactList:l});return{itemWidth:haj({containerWidth:Z,peek:B,gutter:G,numItems:Q,ignoreMaxWidthLimit:D}),gutter:G,maxContainerWidth:Z,numItems:Q,margin:q?0:p,contentMargin:P92(H,1),typographyBump:haj({containerWidth:Z,peek:B,gutter:G,numItems:u,ignoreMaxWidthLimit:D})>400&&!(l&&H<528),standardUnit:u}};
WV=function(G){switch(G){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.iUW=function(G){if(G){var H;if((H=G.responsiveContainerConfiguration)==null?0:H.responsiveSize)return WV(G.responsiveContainerConfiguration.responsiveSize);if(G.layoutSizing)switch(G.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"}}};
OUb=function(G){if(G.fullbleed)return 1;switch(G.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
USb=function(G,H,Z,Q,p,l,q,u){a:if(G===4&&Q==="LOCKUP_CONTENT_TYPE_SOURCE")var B=1;else switch(G){case 3:B=1;break a;default:B=0}a:switch(G){case 4:l=!!(l&&l<100);break a;default:l=!1}a:switch(G){case 3:case 4:var t=Q==="LOCKUP_CONTENT_TYPE_CHANNEL"||Q==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:t=!1}return{isOverlay:aXu(G,Q),isCard:yF3(Q,q),sizing:H!=null?H:"STANDARD",typographyBump:Z!=null?Z:!1,isTiny:l,isCentered:t,isCollection:ooe(Q),arrangement:B,addMarginForFullbleed:G===1&&Q!=="LOCKUP_CONTENT_TYPE_VIDEO",
fullbleed:G===1&&Q==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:mSX(Q,p,u),disableRounding:G===5||yF3(Q,q)||G===1&&Q==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:ooe(Q)?2:0,useLegacyTypography:!(u==null||!u.useLegacyTypography),useRichGridLegacyTypography:!(u==null||!u.useRichGridLegacyTypography)&&!_.V("web_enable_typography_bump"),compactMetadata:B===0&&Q==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:u==null?void 0:u.onFocusEffect,titleMaxLines:Q==="LOCKUP_CONTENT_TYPE_AI_CARD"?1:void 0}};
ooe=function(G){switch(G){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
yF3=function(G,H){if(H&&G==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(G){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
aXu=function(G,H){if(H==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(G){case 5:return!0;case 4:return!1;default:return!1}};
mSX=function(G,H,Z){if(H&&(Z==null||!Z.alwaysRespectPodcastShowAspectRatio||G!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(G){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}};
Rav=function(G){switch(G){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"}};
N9u=function(G){switch(G){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}};
AF3=function(G){switch(G){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}};
_.zk=function(G){if(G){var H;return((H=_.tp().resolve(_.Jp(_.rr)))==null?0:H())?G.darkThemeImage:G.image}};
EoX=function(G,H,Z,Q,p,l){if(p&&l&&H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:p,height:l};if(!Z)return{};p=Z.size;Z=Z.allowFullWidth;if(H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&Z)return{fullWidth:!0};if(p===void 0)return{};switch(G){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:p,height:p};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:p,height:1/xS2*p};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:p*
LCj,height:p};default:return(Q==null?0:Q.height)&&(Q==null?0:Q.width)?Q.width/Q.height>1?{maxWidth:p*LCj}:{maxWidth:p}:{maxWidth:p}}};
Yub=function(G){var H;return G&&((H=_.zk(G.themedImage))!=null?H:G.image)};
FCX=function(G){var H;return G==null?void 0:(H=G.sources)==null?void 0:H[0]};
bU2=function(G){switch(G){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"}};
_.GMW=function(G){if(G)return"content-id-"+G};
Hfe=function(G){switch(G.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"}}};
s7f=function(G){var H=_.KG.currentPageSubTypeSelector(_.OI().getState())||"";return G?G+H:""};
Zfj=function(G){switch(G){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
pCo=function(G){var H=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],Z=_.I(_.Ty(void 0,void 0,"JrqNsb")),Q=Z.next().value,p=Z.next().value,l=_.I(_.Ty(void 0,void 0,"rWytse"));Z=l.next().value;var q=l.next().value;l=_.I(_.Ty(void 0,void 0,"DHRqxe"));var u=l.next().value,B=l.next().value;return{touchFeedbackEvents:{pointerUpEvent:Q,pointerDownEvent:Z,pointerLeaveEvent:u},touchFeedbackOnPointerUp:_.Hh(function(t){Q7R(_.du(t),H)||(p(t),q(void 0),B(void 0))}),
touchFeedbackOnPointerDown:_.Hh(function(t){G==null||G(t);Q7R(_.du(t),H)||(q(t),p(void 0),B(void 0))}),
touchFeedbackOnPointerLeave:_.Hh(function(t){Q7R(_.du(t),H)||(B(t),q(void 0),p(void 0))})}};
Q7R=function(G,H){H=H===void 0?[]:H;H=[].concat(_.OP(H),["BUTTON".toString()]);G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;for(var Q=_.I(H),p=Q.next();!p.done;p=Q.next())if(Z.tagName===p.value)return!0}return!1};
lLb=function(G){switch(G){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"}};
gsv=function(G){return G.scrollHeight-G.offsetHeight>1};
ILX=function(G,H){var Z;return PT(G,((Z=G.content)==null?void 0:Z.length)||0,!H)};
u6v=function(G,H,Z,Q,p,l){if(!H||q$R){var q;return PT(G,((q=G.content)==null?void 0:q.length)||0,!0)}H=Q.value;if(!Z.value||!H||!G.content)return G;Z=0;Q=G.content.length;q=0;S$b||(S$b=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var u=S$b;for(p=p*l*u;Z<=Q;)l=Math.floor(Z+(Q-Z)/2),u=PT(G,l)||G,H.firstChild&&(H.firstChild.textContent=u.content),H.scrollHeight>p?Q=l-1:(q=l,Z=l+1);return PT(G,q)};
BRX=function(G,H){var Z,Q;return(((Z=G.content)==null?void 0:Z.length)||0)>(((Q=H.content)==null?void 0:Q.length)||0)};
JIo=function(G,H,Z,Q,p,l){var q=_.IA("truncated-text-content"),u=_.IA("truncated-text-content"),B=_.IA("button"),t=_.IA("button"),D=_.IA("button"),d=_.tp().resolve(_.ht),e=_.I(_.QF(function(){return ILX(G(),p())})),n=e.next().value,c=e.next().value;
e=_.I(_.QF(function(){return BRX(G(),n())}));
var W=e.next().value,M=e.next().value,r=null;_.yN(function(){function w(){if(q.value&&B.value&&D.value){var R=l()?G():u6v(G(),p(),q,u,H(),Z());c(R);requestAnimationFrame(function(){if(q.value&&B.value&&D.value){var L=gsv(q.value)||BRX(G(),R);M(L);if(!Q()){var H3=gsv(q.value),qX=Z(),B3=q.value,fW=B.value,e2=D.value,$R=d==="rtl";if(B3&&fW){var ie=fW.offsetLeft;$R&&(ie=B3.offsetWidth-fW.offsetWidth-fW.offsetLeft);if(L){L=fW.offsetWidth;fW=B3.offsetWidth;var W3=H3?fW-L-70:ie-70;qX="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
qX+"rem,\n      #000 "+qX+"rem,\n      #000 100%), linear-gradient(\n      to "+(($R?"left":"right")+",\n      #000 0px,\n      #000 "+W3+"px,\n      transparent "+(H3?fW-L:W3+70)+"px)");B3.style.setProperty("-webkit-mask-image",qX);B3.style.setProperty("mask-image",qX)}else B3.style.setProperty("-webkit-mask-image",""),B3.style.setProperty("mask-image","");H3?$R?(e2.style.setProperty("left","0"),e2.style.setProperty("right","unset")):(e2.style.setProperty("left",""),e2.style.setProperty("right",
"0")):$R?(e2.style.setProperty("left","unset"),e2.style.setProperty("right",ie+"px")):(e2.style.setProperty("left",ie+"px"),e2.style.setProperty("right","unset"))}}}})}}
var x,U;(x=r)==null||(U=x.stop)==null||U.call(x);x=new _.Zo(w,17);w();r=x},"KjwIxd");
_.mR(function(){c(ILX(G(),p()));M(BRX(G(),n()));var w=function(){S$b=void 0;var U,R;(U=r)==null||(R=U.fire)==null||R.call(U)};
if(window.ResizeObserver){var x=new ResizeObserver(w);x.observe(q.value);_.oM(function(){var U,R;(U=r)==null||(R=U.stop)==null||R.call(U);x.disconnect()})}else window.addEventListener("resize",w),_.oM(function(){var U,R;
(U=r)==null||(R=U.stop)==null||R.call(U);window.removeEventListener("resize",w)})});
return{isTruncated:W,displayText:n,contentRef:q,hiddenRef:u,placeholderTruncationTextRef:B,hiddenTruncationTextRef:t,truncationTextRef:D}};
tCb=function(G){return{content:G!=null?G:""}};
kMj=function(G){return _.Tt(G.onTap)||_.nG(G.rendererContext)};
DNU=function(G){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:G.overflowMenuA11yLabel,onTap:function(H){H.preventDefault();H.stopPropagation();if(G.overflowMenuOnTap){var Z=_.vT({elementsCommand:G.overflowMenuOnTap,forceNewState:!0});if(Z==null?0:Z.onclick)Z.onclick(H)}}}};
_.MB=function(G,H,Z,Q,p){Q=Q===void 0?{}:Q;if(!p||Math.random()<5E-4){H=H||null;Z=Z||null;G=G instanceof Error?G:new _.C$(G);if(G.args)for(var l=_.I(G.args),q=l.next();!q.done;q=l.next())q=q.value,q instanceof Object&&(Q=Object.assign({},q,Q));Q.category="H5 Ads Control Flow";H&&(Q.slot=H?"slot:  "+H.slotType:"");Z&&(Q.layout=Z?"layout:  "+Z.layoutType:"",Q.layoutId=Z.layoutId);p&&(Q.known_error_aggressively_sampled=!0);G.args=[Q];_.Rp(G)}};
_.dNb=function(G,H){H=_.Rq(H);_.AZ(G,"yt-open-popup-action",[H,G])};
_.jP=function(G,H){_.dNb(G,_.aq(H))};
nso=function(G){if(!G)return"";if(e7o[G])return e7o[G];PV||(PV=_.z$("A"));PV.href!==G&&AN(PV,G);var H=PV.pathname;e7o[G]=H.startsWith("/")?H:"/"+H;return e7o[G]};
VCR=function(){var G=nso(window.location.href);if(G==="/")return"home";if(G.startsWith("/results"))return"search";if(G.startsWith("/watch"))return"watch";if(G.startsWith("/shorts"))return"shorts";if(G.startsWith("/hashtag"))return"hashtag";if(G.startsWith("/create_channel"))return"create_channel";if(G.startsWith("/@")||G.startsWith("/user/")||G.startsWith("/channel/"))return"channel";if(G.startsWith("/experiments"))return"experiments";if(G.startsWith("/sponsor_channel"))return"sponsorship";if(G.startsWith("/select_site"))return"settings";
if(G.startsWith("/locate"))return"locate";if(G.startsWith("/redeem"))return"redeem";if(G.startsWith("/musicpremium")||G.startsWith("/premium")||G.startsWith("/red"))return"premium";if(G.startsWith("/paid_memberships"))return"paid_memberships";if(G.startsWith("/oops"))return"oops";if(G.startsWith("/clip"))return"clip";var H;return(ru==null?void 0:(H=ru.response)==null?void 0:H.page)==="404"?"404":G.startsWith("/feed/history")?"history":G.startsWith("/feed/library")?"library":G.startsWith("/feed/subscriptions")?
"subscriptions":G.startsWith("/feed/trending")?"trending":G.startsWith("/feed/news_destination")?"news":G.startsWith("/playlist")?"playlist":G.startsWith("/minor_moment")?"minor_moment":G.startsWith("/playable/")||G.match("^/playables/(?!saved).")?"mini_app":G.startsWith("/playables")?"playables":G.startsWith("/create/live/join")?"open_in_app":G.startsWith("/feed/explore")?"explore":"browse"};
_.TRW=function(){var G=ru==null?void 0:ru.response,H=G==null?void 0:G.endpoint;if(!H)return(G==null?void 0:G.page)==="watch"?"watch":VCR();var Z;G=(Z=_.X(H==null?void 0:H.commandMetadata,_.HA))==null?void 0:Z.webPageType;Z=!1;if(G&&!$Nf.includes(G))switch(G){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 Q;return((Q=_.X(H==null?void 0:H.commandMetadata,_.HA))==null?0:Q.url)&&nso(_.X(H.commandMetadata,_.HA).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var p;return(H=(p=_.X(H,_.gT))==null?void 0:p.browseId)?XCv[H]||"browse":"browse";default:Z=!0}if(_.X(H,_.wu)||_.X(H,cIf))return"sponsorship";p=nso(window.location.href);if(p.startsWith("/experiments"))return"experiments";if(p.startsWith("/create_channel"))return"create_channel";
if(_.X(H,_.Hx)&&p.startsWith("/shorts"))return"shorts";if(_.X(H,_.Hx)&&p.startsWith("/watch"))return"watch";Z&&(H=new _.C$("Unsupported mWeb page type",{pathname:p,webPageType:G}),_.me(H));return"browse"};
hW=function(G,H,Z,Q){return G&&H?G!==Z||H!==Q?(_.MB(Error("Kh"),void 0,void 0,{"stored-slot":G,"stored-layout":H,"latest-slot":Z,"latest-layout":Q}),!1):!0:!1};
vsf=function(G,H,Z){return G({targetId:H},function(Q){return Z.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},Q,{contents:[Z.continuationItems?_.X(Z.continuationItems[0],fLj):{}]}):Z.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},Q,{header:Z.continuationItems?Z.continuationItems[0]:void 0}):Object.assign({},Q,{contents:Z.continuationItems?Z.continuationItems:[]})})};
W72=function(G,H,Z,Q){if(H=H.trackingParams){var p,l=(p=Z.getScreenLayer)==null?void 0:p.call(Z);Z=_.$k(l);p=_.Va(l);if(Z&&p){var q=_.BT(H);_.V("combine_ve_grafts")?G.graftServerVe(H,p,l):_.je(Z,p,q);Q==null||Q(q)}}};
K7X=function(G){var H;return((H=z72.get(G))==null?void 0:H.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
PHf=function(G,H){var Z={type:H.slotType,controlFlowManagerLayer:MCo.get(H.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H.slotEntryTrigger&&(Z.entryTriggerType=H.slotEntryTrigger.triggerType);H.slotPhysicalPosition!==1&&(Z.slotPhysicalPosition=H.slotPhysicalPosition);if(G){Z.debugData={slotId:H.slotId};if(G=H.slotEntryTrigger)Z.debugData.slotEntryTriggerData=j7f(G);G=H.slotFulfillmentTriggers;Z.debugData.fulfillmentTriggerData=[];G=_.I(G);for(var Q=G.next();!Q.done;Q=G.next())Z.debugData.fulfillmentTriggerData.push(j7f(Q.value));
H=H.slotExpirationTriggers;Z.debugData.expirationTriggerData=[];H=_.I(H);for(G=H.next();!G.done;G=H.next())Z.debugData.expirationTriggerData.push(j7f(G.value))}return Z};
j7f=function(G,H){var Z={type:G.triggerType};H!=null&&(Z.category=H);G.triggeringSlotId!=null&&(Z.triggerSourceData||(Z.triggerSourceData={}),Z.triggerSourceData.associatedSlotId=G.triggeringSlotId);G.triggeringLayoutId!=null&&(Z.triggerSourceData||(Z.triggerSourceData={}),Z.triggerSourceData.associatedLayoutId=G.triggeringLayoutId);return Z};
rIU=function(G,H,Z,Q){H={opportunityType:H};G&&(Q||Z)&&(Q=_.mT(Q||[],function(p){return PHf(G,p)}),H.debugData=Object.assign({},Z&&Z.length>0?{associatedSlotId:Z}:{},Q.length>0?{slots:Q}:{}));
return H};
wCM=function(G){return CG(G.opportunityAdapterMap).concat(CG(G.triggerAdapterMap)).concat(CG(G.fulfillmentAdapterFactoryMap)).concat(CG(G.slotAdapterFactoryMap)).concat(CG(G.layoutRenderingAdapterFactoryMap))};
CG=function(G){var H=[];G=_.I(G.values());for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z.isAdsControlFlowEventListener&&H.push(Z);return H};
Ow=function(G){var H=G.slotId,Z=G.slotType,Q=G.slotPhysicalPosition;return H===void 0?new iP("Cannot construct a slot due to the missing id.",{adSlotMetadata:G}):Z===void 0?new iP("Cannot construct a slot due to the missing type.",{adSlotMetadata:G}):Q===void 0?new iP("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:G}):{slotId:H,slotType:Z,slotPhysicalPosition:Q,managerLayer:"external",adSlotLoggingData:G.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new h7R}};
CHb=function(G){var H=G.layoutId,Z=G.layoutType;return H===void 0?new aS("Cannot construct a layout due to the missing id.",{adLayoutMetadata:G}):Z===void 0?new aS("Cannot construct a layout due to the missing type.",{adLayoutMetadata:G}):{layoutId:H,layoutType:Z,managerLayer:"external",adLayoutLoggingData:G.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new h7R,interactionLoggingAdsClientData:{}}};
ifu=function(G){if(G.querySelector("img")){var H=G.querySelector("img");H.addEventListener("error",function(){lm2(H.src).then(function(Z){(Z=_.U_(Z).toString())?H.src=Z:H.removeAttribute("src")}).catch(function(){H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
mw=function(G,H){if(H&&(OfW(H.viewableCommand)||OfW(H.endOfSessionCommand))){var Z=aLv(H==null?void 0:H.viewableCommand);H=aLv(H==null?void 0:H.endOfSessionCommand);if(!oS){var Q=_.eA("custom_active_view_tos_timeout_ms");oS=Q>0&&Q!==36E5?new yIf(osM(),Q):new yIf(osM())}mNf(oS,G);UNb(oS,G,Z,H)}};
Uw=function(G){oS&&mNf(oS,G)};
osM=function(){var G=_.xI("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(G==null?void 0:G.length)===2?G[1]:null};
OfW=function(G){G=_.Tt(G);return!(G==null||!G.loggingUrls)&&G.loggingUrls.length>0};
aLv=function(G){if(!G)return[];var H=[],Z,Q;((Q=(Z=_.Tt(G))==null?void 0:Z.loggingUrls)!=null?Q:[]).forEach(function(p){p.baseUrl&&H.push(p.baseUrl)});
return H};
R72=function(G){if(_.V("stop_av_measurement_on_detach"))return function(){Uw(G)}};
NRU=function(G){return function(){_.V("stop_av_measurement_on_detach")&&Uw(G)}};
AIj=function(G){if(_.V("stop_av_measurement_on_detach"))return function(){Uw(G)}};
xNW=function(G){return G.shorts.isDesktopSmallWidth};
_.L7M=function(G){return G.shorts.isShortsActive};
_.Es3=function(G){return G.shorts.isWatchWhileMode};
_.RS=function(G){return G.shorts.isFullscreen};
_.NB=function(G){return G.shorts.isShortsPipActive};
F7X=function(G){var H,Z;if(G=(H=_.X(G.reelsAdCardButtoned,Y$u))==null?void 0:(Z=H.animatedRenderingConfig)==null?void 0:Z.easeOutSeconds)return G+"s"};
GlW=function(G,H,Z){return _.S(function(Q){return Q.return(new Promise(function(p){var l=new Image;l.onload=function(){p(new bfe(G,H,Z,l.naturalWidth,l.naturalHeight))};
l.src=Z.toString()}))})};
Hae=function(G,H){return Math.round(G/1E-5)===Math.round(H/1E-5)};
sR2=function(G,H){return Math.round(G/1E-5)===Math.round(H/1E-5)};
Zaf=function(G,H){return G.year===H.year&&G.month===H.month&&G.day===H.day};
QRj=function(G,H){return G.year!==H.year?G.year<H.year:G.month!==H.month?G.month<H.month:G.day<H.day};
l4f=function(G){return G.day===puf(G.year,G.month)?G.month===11?{year:G.year+1,month:0,day:1}:{year:G.year,month:G.month+1,day:1}:{year:G.year,month:G.month,day:G.day+1}};
g0b=function(){var G=new Date,H={year:G.getFullYear(),month:G.getMonth(),day:G.getDate()};return{start:H,end:{year:G.getFullYear()+2,month:G.getMonth(),day:G.getDate()},selectedDate:l4f(H)}};
I4v=function(G){return(new O7(2)).format(new Date(G.year,G.month,G.day))};
qkf=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
SkW=function(G,H){G=(G+(Number(H.utcOffsetSec)+(new Date(G*1E3)).getTimezoneOffset()*60))*1E3;H=qkf(new Date(G));return{date:H,secondsSinceMidnight:Math.floor((G-(new Date(H.year,H.month,H.day)).getTime())/1E3)}};
uKM=function(G,H){H=H.months.findIndex(function(Z){return Z.year===G.year&&Z.month===G.month});
return H>=0?H:void 0};
BEo=function(G){if(!G)return!1;try{if(G.host&&G.host.tagName==="YT-FORMATTED-STRING"&&G.host.id==="contenteditable-textarea"||G.nodeType===Node.ELEMENT_NODE&&G.tagName==="YTD-COMMENTBOX")return!0}catch(H){return!1}return BEo(G.parentNode)};
AW=function(G){return G?!(G.tagName!=="A"||!G.href||!G.classList.contains("yt-simple-endpoint")):!1};
JEo=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
tqW=function(G,H,Z){if(!G)return null;var Q=AW(G);if(Q&&Z)return H=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(Q&&!Z)return document.createTextNode("");if(JEo(G))return Z=G.alt,G=G.dataset.emojiId,!G&&H&&(H=_.xX(H,Z))&&H.isCustomEmoji&&(G=H.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(Z);Q=G.cloneNode(!1);for(var p=0;p<G.childNodes.length;++p){var l=tqW(G.childNodes[p],H,Z);l&&Q.appendChild(l)}return Q};
LG=function(G){return G?AW(G)?G:LG(G.lastChild):null};
klo=function(G){return G?AW(G)?G:klo(G.firstChild):null};
Dk3=function(G){if(!G)return null;for(var H=G.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=LG(H))?G=H:G=(G=G.parentNode)?LG(G.previousElementSibling):null;return G};
dkW=function(G){if(!G)return null;for(var H=G.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=klo(H))?H:dkW(G.parentNode)};
eV2=function(G){var H=_.Ew(),Z=H.JSC$11352_getStartNode();if(!BEo(Z.parentNode))return null;H=H.JSC$11352_getStartOffset();if(Z.nodeType===Node.TEXT_NODE){var Q=_.xr(Z,AW);if(Q){if(G&&H===0||!G&&H===Z.length)return Q}else{if(G&&H===Z.length)return!Z||Z.nodeName==="BR"||Z.nextElementSibling&&_.YX(Z.nextElementSibling,"display")==="block"?null:klo(Z.nextElementSibling);if(!G&&H===0)return Z?LG(Z.previousElementSibling):null}}if(Z.nodeType===Node.ELEMENT_NODE)if(G){if(0<=H&&H<Z.childNodes.length)return klo(Z.childNodes[H])}else if(0<
H&&H<=Z.childNodes.length)return LG(Z.childNodes[H-1]);return null};
n0e=function(G,H,Z){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(Z){var Q=Dk3(G);if(Q&&!/^\s+\S/.test(G.wholeText.substr(0,H)))return Q}else if((Q=dkW(G))&&!/\S\s+/.test(G.wholeText.substr(H,G.wholeText.length)))return Q;return G.nodeType===Node.ELEMENT_NODE?Z?Dk3(G.childNodes[H]):dkW(G.childNodes[H]):n0e(G.parentNode,H,Z)};
Vqj=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var H="";for(G=G.firstChild;G;G=G.nextSibling)H+=Vqj(G);return H;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
Fu=function(G,H){return G.year===H.year&&G.month===H.month&&G.day===H.day};
bP=function(G,H){return G.year!==H.year?G.year<H.year:G.month!==H.month?G.month<H.month:G.day<H.day};
$ko=function(G){return{year:G.getFullYear(),month:G.getMonth(),day:G.getDate()}};
Xuf=function(G){var H=BQj;H=H===void 0?BQj:H;H(new Date(G.year,G.month,G.day))};
GG=function(G){return $ko(new Date(Number(G.seconds)*1E3))};
cEf=function(G){return G.year!==void 0&&G.month!==void 0&&G.day!==void 0};
TER=function(G){return G.start!==void 0&&G.end!==void 0};
f4R=function(G){return TER(G)?G.start:G};
v0U=function(G){return TER(G)?G.end:void 0};
zVX=function(G,H){for(var Z=[],Q=new Date(G.start.year,G.start.month);Q.getFullYear()<G.end.year||Q.getFullYear()===G.end.year&&Q.getMonth()<=G.end.month;){var p=Z,l=p.push,q=Q.getFullYear(),u=Q.getMonth(),B=G,t=H,D=void 0,d=[],e=Object.freeze({extraCssClass:"invisible"}),n=new Date(q,u),c=$ko(n);n=n.getDay();for(var W=$ko(new Date);c.month===u;){n!==WQU&&D||(D=Array.from({length:7}).fill(e),d.push(D));var M={date:{year:q,month:u,day:c.day},extraCssClass:"",debugClass:""};M.extraCssClass=t(M.date,
c,W,B).trim();D[(n-WQU+7)%7]=M;c=c.day===puf(c.year,c.month)?c.month===11?{year:c.year+1,month:0,day:1}:{year:c.year,month:c.month+1,day:1}:{year:c.year,month:c.month,day:c.day+1};n=(n+1)%7}l.call(p,{weeks:d,monthLabel:H8.SHORTMONTHS[u]+" "+q,year:q,month:u,monthLabelExtraCssClass:d[0][2]===e?"shift-down-label":""});Q.setMonth(Q.getMonth()+1)}return Z};
KQR=function(G,H){H=H.months.findIndex(function(Z){return Z.year===G.year&&Z.month===G.month});
return H>=0?H:void 0};
jR3=function(G,H){a:{var Z=Z===void 0?[2,3]:Z;Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next()){var p=new Date;if((new Mqj(Q.value)).parse(H,p,{validate:!0})){p.setHours(0,0,0,0);H=p;break a}}H=null}if(!H)return{isValid:!1,value:void 0};H=$ko(H);Z=G.end;return bP(H,G.start)||bP(Z,H)?{isValid:!1,value:void 0}:{isValid:!0,value:H}};
Cw2=function(G){var H=Pwe;H=H===void 0?rEv:H;var Z=G.columnsToShow||[],Q=wue(G.columnDimensions,G.columnsToShow,G.leftFloatingColumns,H);return Z.map(function(p,l){var q=G.columns[p];if(q===void 0)throw Error("Qh");var u=Q?Q[l]:"";var B=G.getCustomTooltip?G.getCustomTooltip(p,q.headerTooltipParagraphs):q.headerTooltipParagraphs;var t=hVu(G,p);return{type:p,index:l,style:u,classes:t,headerName:q.headerName||"",headerIcon:q.headerIcon,headerTooltipParagraphs:B||[],headerTooltipHelpContext:q.headerTooltipHelpContext,
sortOrders:q.sortOrders||[],selectionState:q.isSelectionCheckbox?G.selectionState:void 0}})};
hVu=function(G,H){var Z=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],Q=G.columns[H];if(Q===void 0)return"";var p=Z.includes("DEFAULTS")&&Q.cssClass?[Q.cssClass]:[];if(Z.includes("SORTING")){Q.sortOrders&&Q.sortOrders.length&&p.push("sortable");if(G.sorting&&G.sorting.columnType===H)a:switch(G.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var l="column-sorted";break a;default:l=""}else l="";l&&p.push(l)}Z.includes("FLOATING")&&(H=G.columnsToShow.indexOf(H),G.leftFloatingColumns&&H<G.leftFloatingColumns&&
p.push("floating-column"),G.leftFloatingColumns&&H===G.leftFloatingColumns-1&&p.push("last-floating-column"));Z.includes("RIGHT_ALIGN")&&Q.rightAlignHeader&&p.push("right-align");return p.filter(function(q){return q}).join(" ")};
wue=function(G,H,Z,Q){Z=Z===void 0?0:Z;Q=Q===void 0?rEv:Q;if(G){var p=[],l=0;iaf(G,H,Q).forEach(function(q,u){var B="min-width:"+q.minWidth+"px;padding-left:"+q.paddingLeft+"px;padding-right:"+q.paddingRight+"px;flex:"+q.flexGrow+" 0 "+q.minWidth+"px;";q.maxWidth!==Infinity&&(B=[B,"max-width:"+q.maxWidth+"px;"].join(""));l>0&&u<Z&&(B=[B,"left:"+l+"px;"].join(""));p.push(B);l+=q.minWidth+q.paddingLeft+q.paddingRight});
return p}};
iaf=function(G,H,Z){Z=Z===void 0?rEv:Z;return H.map(function(Q,p){Q=G&&G[Q]||{};var l=p===0?Z.paddingLeftFirstColumn:Z.padding;Q.paddingLeft!==void 0&&(l=Q.paddingLeft);p=p===H.length-1?Z.paddingRightLastColumn:Z.padding;Q.paddingRight!==void 0&&(p=Q.paddingRight);return{paddingLeft:l,paddingRight:p,minWidth:Q.minWidth!==void 0?Q.minWidth:Z.minWidth,maxWidth:Q.maxWidth!==void 0?Q.maxWidth:Z.maxWidth,flexGrow:Q.flexGrow!==void 0?Q.flexGrow:Z.flexGrow}})};
OaW=function(G){var H=G.reduce(function(Q,p){var l=p.columnId,q={};p.headerText&&(q.headerName=_.yn(p.headerText));p.rightAlignHeader&&(q.rightAlignHeader=p.rightAlignHeader);var u;if((u=p.headerIcon)==null?0:u.iconType)q.headerIcon=_.bq(p.headerIcon.iconType);Q[l]=q;return Q},{}),Z=G.filter(function(Q){return!Q.hideColumn}).map(function(Q){return Q.columnId});
G=G.filter(function(Q){return!!Q.dimensions}).reduce(function(Q,p){Q[p.columnId]=p.dimensions;
return Q},{});
return{columns:H,columnsToShow:Z,columnDimensions:G}};
_.a4f=function(G){return G?G.simpleText?G.simpleText:G.runs?G.runs.map(function(H){return H.text}).join(""):"":""};
NEf=function(G){var H=G.data;var Z=G.onTap;var Q=G.isSelected;var p=G.onFocusIn;if(!H)return{};G=yER(H);Q===void 0&&(Q=H==null?void 0:H.isSelected);var l;return{text:o0M(H,G),startIcon:(l=H.icon)==null?void 0:l.iconType,state:Q?0:2,type:0,style:mkb(H),onTap:Ukf(H,Z),accessibilityLabel:RVv(H,G),onFocusIn:function(){return p==null?void 0:p()}}};
o0M=function(G,H){if(!H)return G.text?_.a4f(G.text):void 0};
mkb=function(G){var H;switch((H=G.style)==null?void 0:H.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
Ukf=function(G,H){return function(Z){H==null||H(Z,G)}};
yER=function(G){G=G.style&&G.style.styleType;return!q$R&&G==="STYLE_EXPLORE_LAUNCHER_CHIP"};
RVv=function(G,H){if(H){var Z,Q,p;return(p=(Z=G.accessibilityData)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label)!=null?p:o0M(G,!1)}};
AEX=function(G,H){return _.Hv(G.entities,"chipEntity",H)};
LQR=function(G,H,Z,Q){return function(){var p=xkW.has(G.displayType)&&G.selected,l=p&&G.deselectCommand?G.deselectCommand:G.tapCommand;!l||p&&Q||_.zt(l,{form:{element:H==null?void 0:H.value}});Z==null||Z()}};
Ykv=function(G,H){if(G=G.onUpdateText){var Z;G=(Z=_.X(G,E0b))==null?void 0:Z.stepId}else G=void 0;Z=G;H=H==null?void 0:H.stepStates;if(Z&&H){var Q,p;return(Q=H[Z])==null?void 0:(p=Q.userQuery)==null?void 0:p.userQuery}};
sz=function(G){return{signalAction:{signal:G}}};
GRu=function(){return _.xI("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?FQo:_.bav};
HzM=function(G,H){G=G===void 0?"SOFT_RELOAD_PAGE":G;H=H===void 0?49504:H;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Nm(_.Zg("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:H}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:G}}]}}}};
seU=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Nm(_.Zg("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:GRu()}};
ZzX=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Nm(_.Zg("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:GRu()}};
QeX=function(G,H){var Z=_.Nm(_.Zg("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),Q=_.Nm(_.Zg("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),p={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Nm(_.Zg("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};p.serviceEndpoint=G?G:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[sz("SOFT_RELOAD_PAGE")]}};return{title:Z,bodyText:Q,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:p},
style:{value:H!=null?H:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
l52=function(G){G=G===void 0?{}:G;return{title:_.Nm(G.localizedZeroStateTitleText===void 0?"":G.localizedZeroStateTitleText),bodyText:_.Nm(G.localizedZeroStateMessage===void 0?"":G.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Nm(G.localizedZeroStateButtonText===void 0?"":G.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[p2f]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
I5R=function(G){G=G===void 0?{}:G;return{title:_.Nm(G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Nm(G.localizedOptInMessage===void 0?"":G.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Nm(_.Zg("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:_.Nm(_.Zg("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:[gWW]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
uFR=function(G,H){var Z=H=H===void 0?{}:H;H=Z.offlineTitleText===void 0?"":Z.offlineTitleText;var Q=Z.offlineDescriptionText===void 0?"":Z.offlineDescriptionText,p=Z.formattedSupplementalText,l=Z.actionButtonText===void 0?"":Z.actionButtonText,q=Z.titleText===void 0?"":Z.titleText;Z=Z.descriptionText===void 0?"":Z.descriptionText;var u={title:l,accessibilityText:l,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"}}}}};G||(q=H,Z=Q,u={title:l,accessibilityText:l,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:_.Nm(q),titleLength:q.length,overrideTitleMaxFontSize:30,subtitle:_.Nm(Z),supplementalText:p,primaryButton:{buttonViewModel:u},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[qHU]},darkTileImage:{thumbnails:[SHX]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.t12=function(G,H,Z,Q,p,l,q,u,B,t,D){p=p===void 0?!1:p;l=l===void 0?!1:l;q=q===void 0?0:q;u=u===void 0?-Infinity:u;B=B===void 0?!1:B;t=t===void 0?!1:t;D=D===void 0?!1:D;var d=[],e=_.Nm(_.Zg("SMART_DOWNLOADS",void 0,"Smart downloads")),n=_.Nm(BHb(q,u,G.length));u=q=void 0;t?q={statementBannerRenderer:uFR(D,Q)}:p?G.length>0?u=J13(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.V("kevlar_manual_downloads_above"),e,n):B?u={alertBannerViewModel:{heading:{content:Z.localizedOptInBannerTitleText===
void 0?"":Z.localizedOptInBannerTitleText},body:{content:Z.localizedPromptMessage===void 0?"":Z.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Zg("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Zg("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:_.$Zj}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:l&&(u={backgroundPromoRenderer:{bodyText:_.Nm(_.Zg("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"}}}):
l&&(u={alertBannerViewModel:{heading:{content:Z.localizedOptInBannerTitleText===void 0?"":Z.localizedOptInBannerTitleText},body:{content:Z.localizedOptInMessage===void 0?"":Z.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Zg("TURN_ON",void 0,"Turn on"),accessibilityText:_.Zg("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}}}}}});Z=_.Nm(_.Zg("YOUR_DOWNLOADS",void 0,"Your downloads"));Q=void 0;H.length>0?(Q=void 0,_.V("kevlar_display_downloads_numbers")&&(Q=_.Nm(_.QY("VIDEO_COUNT",H.length))),Q=J13(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,Z,Q)):p||G.length||
t||(Q={backgroundPromoRenderer:{bodyText:_.Nm(_.Zg("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}}}});q?d.push({richSectionRenderer:{content:q}}):u&&!_.V("kevlar_manual_downloads_above")&&d.push({richSectionRenderer:{content:u,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
Q&&d.push({richSectionRenderer:{content:Q,loggingDirectives:{clientVeSpec:{uiType:51721}}}});u&&_.V("kevlar_manual_downloads_above")&&d.push({richSectionRenderer:{content:u,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(H.length>0||p&&G.length>0&&!t)&&d.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Nm(_.Zg("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:d}};
_.D9j=function(G){return kRv(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.d9W=function(G){return kRv(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
kRv=function(G,H){var Z=[];G=J13(G,H,!0);Z.push({richSectionRenderer:{content:G}});return{contents:Z}};
J13=function(G,H,Z,Q,p){Z=Z===void 0?!1:Z;var l="RESPONSIVE_SIZE_STANDARD";_.V("kevlar_standard_rich_grid_on_offline_home")&&H==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?l="RESPONSIVE_SIZE_STANDARD":_.V("kevlar_modern_downloads_compact")?l="RESPONSIVE_SIZE_COMPACT":_.V("kevlar_modern_downloads_extra_compact")?l="RESPONSIVE_SIZE_EXTRA_COMPACT":_.V("kevlar_modern_downloads_tiny")&&(l="RESPONSIVE_SIZE_TINY");G={isExpanded:Z,contents:Zx(G),entitySelectorType:H,responsiveContainerConfiguration:{responsiveSize:l}};
Q&&(G.title=Q);p&&(G.subtitle=p);Z||(_.V("kevlar_smart_downloads_show_more_button")?(G.showMoreButton={buttonRenderer:{accessibility:{label:_.Zg("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Nm(_.Zg("SHOW_MORE",void 0,"Show more"))}},G.showLessButton={buttonRenderer:{accessibility:{label:_.Zg("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.Nm(_.Zg("SHOW_LESS",void 0,"Show less"))}}):(G.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Zg("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}}}},G.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Zg("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}}}},G.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Zg("VIEW_ALL",void 0,"View all"),accessibilityText:_.Zg("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:_.U3("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:G}};
Zx=function(G){var H=[];G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,QiR(Z)){var Q=H,p=Q.push;var l=void 0;if(Z==null?0:(l=Z.videoEntity)==null?0:l.videoId){l=jS(_.mm().getState(),Z.videoEntity.videoId);var q=_.mm().getState();var u=_.G9(Z.videoEntity.videoId,"mainVideoEntity");q=!!_.dc(q.entities)[u];q={videoId:Z.videoEntity.videoId,title:AU(Z.videoEntity.title),shortBylineText:AU(Z.channelEntity.title),thumbnail:Z.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:q&&_.V("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:wNR(Z.videoEntity.videoId,l,Z.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Zg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};Z.videoEntity.lengthSeconds&&(q.thumbnailOverlays=gEj(Z.videoEntity.lengthSeconds,l));q.isWatched=l>0;_.V("kevlar_modern_downloads_page")&&(q.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Z.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Zg("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},q.badges=void 0);Z=q}else Z={};p.call(Q,{richItemRenderer:{content:{videoRenderer:Z},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Zie(Z)){Q=H;p=Q.push;var B=u=l=void 0,t=void 0,D=void 0,d=void 0,e=void 0,n=void 0,c=void 0,W=void 0,M=void 0,r=void 0;q=Z.mainPlaylistEntity.playlistId;var w=Z==null?void 0:(r=Z.mainPlaylistEntity)==null?void 0:(M=r.thumbnailStyleData)==null?void 0:(W=M[0])==null?void 0:(c=W.value)==null?void 0:(n=c.collageThumbnail)==
null?void 0:n.coverThumbnail;if(q&&w){n=hsj(q);!_.V("enable_offline_playlist_page")&&(Z==null?0:(e=Z.mainPlaylistEntity)==null?0:e.videos)&&(e=Z==null?void 0:(d=Z.mainPlaylistEntity)==null?void 0:(D=d.videos)==null?void 0:D[0],D=_.YK(e).entityId,D=JSON.parse(D).videoId,D!==void 0&&(n=jS(_.mm().getState(),D),n=_.R5(D,q,void 0,void 0,n)));D=[];if(Z==null?0:(t=Z.mainPlaylistEntity)==null?0:(B=t.videos)==null?0:B.length)B=uif(),t=Object,D=t.assign,d=(d=Spf(Z==null?void 0:Z.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.Nm(d),icon:{iconType:"PLAYLISTS"}}}:void 0,D=[B,D.call(t,{},(u=d)!=null?u:{})];Z={playlistId:q,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:w}},navigationEndpoint:n,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:D,title:AU(Z.mainPlaylistEntity.title),shortBylineText:AU(Z==null?void 0:(l=Z.channelEntity)==null?void 0:l.title),badges:[{metadataBadgeRenderer:{label:_.Zg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.V("kevlar_modern_downloads_page")&&(Z.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:eYX,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:q,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Zg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},Z.badges=void 0)}else Z=void 0;p.call(Q,{richItemRenderer:{content:{playlistRenderer:Z},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return H};
BHb=function(G,H,Z){G=G?nWR(G):"";H!==void 0&&isFinite(H)?H===0?H=_.Zg("UPDATING",void 0,"Updating..."):(H=lKf(new Date(H),new Date),H=_.Zg("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var Q="";G&&H&&(Q=" \u2022 ");if(Z&&_.V("kevlar_display_downloads_numbers")){Z=_.QY("VIDEO_COUNT",Z);if(G||H)Q=" \u2022 ";return Z+Q+G+Q+H}return G+Q+H};
V12=function(G){return L$R(G.entities).length};
_.$9f=function(G,H){var Z=WV(G.responsiveSize),Q;G=!((Q=G.responsiveMap)==null||!Q.some(function(p){return p.containerSize==="CONTAINER_SIZE_NARROW"&&p.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:H,sizing:Z,enableFullBleedForSingleCol:!1,isCompactList:Z==="COMPACT"&&G}};
X2f=function(G,H){return _.Hv(G.entities,"votingEntity",H)};
Qj=function(G){if(G){var H;return((H=_.tp().resolve(_.Jp(_.rr)))==null?0:H())?G.darkTheme:G.lightTheme}};
c1u=function(G,H){if(G.simpleText)return Object.assign({},G,{simpleText:M$(G.simpleText,H)});if(!G.runs)return G;for(var Z=Object.assign({},G,{runs:[]}),Q=0,p=_.I(G.runs),l=p.next();!l.done;l=p.next())if(l=l.value,l.text)if(Q+l.text.length<=H)Z.runs.push(l),Q+=l.text.length;else return Z.runs.push(Object.assign({},l,{text:M$(l.text,H-Q)})),Z;return G};
THU=function(G,H){return _.Hv(G.entities,"chipBarStateEntity",H)};
f5e=function(G){switch(G){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""}};
vWU=function(G,H){return{triggeringElement:G,onDwellTriggeredFn:function(){var Z={triggeringElement:G,loadVideoPreviewEventData:H},Q=document.querySelector(".video-preview");Q&&Q.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:Z}))},
onDwellEndFn:function(){var Z=document.querySelector(".video-preview");Z&&Z.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
WJv=function(G,H){var Z=_.tp().resolve(_.Jp(T9j)),Q=function(){var p=H();return Z&&p?vWU(G.value,p):null};
_.yN(function(){var p=Q();Z&&p&&Promise.resolve().then(function(){Z.registerElement(p)});
_.oM(function(){Z&&p&&Promise.resolve().then(function(){_.Tk(Z,p)})})},"csPUge")};
KJe=function(G){var H=G.dataset.resizeObserverId;if(H)return H;H=""+zYM++;return G.dataset.resizeObserverId=H};
M1o=function(G,H){var Z=KJe(G);pA.has(Z)||pA.set(Z,new Set);pA.get(Z).add(H);lL.has(Z)&&H(Object.assign({},{target:G},lL.get(Z)))};
jee=function(G){G=_.I(G);for(var H=G.next();!H.done;H=G.next()){H=H.value;var Z=KJe(H.target),Q=Object.assign({},{target:H.target},lL.get(Z));if(Q!=null&&Q.contentRect?Q.contentRect.width!==H.contentRect.width||Q.contentRect.height!==H.contentRect.height:1)for(lL.set(Z,{borderBoxSize:H.borderBoxSize,contentBoxSize:H.contentBoxSize,contentRect:H.contentRect,devicePixelContentBoxSize:H.devicePixelContentBoxSize}),Z=_.I(pA.get(Z)||[]),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q(H)}};
r1f=function(){return gp?gp:gp=new Ptv(jee)};
w2R=function(G,H){var Z=KJe(G);pA.has(Z)&&(pA.get(Z).delete(H),pA.get(Z).size===0&&(pA.delete(Z),lL.delete(Z),gp.unobserve(G),delete G.dataset.resizeObserverId));pA.size===0&&gp&&(gp.disconnect(),gp=void 0)};
Ctf=function(G,H){var Z=_.tp().resolve(Jk);return hY3.map(function(Q){return Z.observe(G,H,Q)})};
izv=function(G){var H=_.tp().resolve(Jk);G.forEach(function(Z){H.unobserveByKey(Z)})};
_.I9=function(G,H){var Z=Object.assign({},OzM,H);H=_.I(cLX());var Q=H.next().value,p=H.next().value,l=function(q){var u=q.contentRect.height;if((q=q.contentRect.width)||u||Z.canHaveZeroSize)Q.width()===q&&Q.height()===u||p(Q,{height:u,width:q})};
_.mR(function(){var q=G instanceof HTMLElement?G:G.value,u=a5f(l,Z.throttleMs),B=[];Z.useVisibilityObserver&&(B=Ctf(q,function(t,D){requestAnimationFrame(function(){D==="visible"?(M1o(q,u),r1f().observe(q)):w2R(q,u)})}));
B.length||(M1o(q,u),r1f().observe(q));_.oM(function(){B.length&&(izv(B),B.length=0);w2R(q,u)})});
return Q};
oWR=function(G,H,Z,Q,p){G=H?G.switchOffCommand:G.switchOnCommand;if(Q&&p)y1b(G,Z,p);else{var l,q;(l=_.vT({elementsCommand:G}))==null||(q=l.onclick)==null||q.call(l,Z)}};
y1b=function(G,H,Z){G=_.vT({elementsCommand:G,additionalCommandArgs:{commandController:{onSuccess:function(){Z(!1)},
onServerError:function(){Z(!1)}}}});
if(G==null?0:G.onclick)G.onclick(H),Z(!0)};
U9v=function(G){if(G)return _.X(G,m9e)};
RYj=function(G,H){if(!((G==null?0:G.entitySelectorType)&&(G==null?0:G.entityKey)))return{};switch(G.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.V("enable_web_shorts_captions_language_command")){var Z;var Q=(Z=_.HV())==null?void 0:Z.getOption("captions","track");var p,l=typeof(Q==null?void 0:Q.translationLanguage)==="object"&&((p=Q.translationLanguage)==null?void 0:p.languageName)||(Q==null?void 0:Q.displayName)||"";Q={data:Object.assign({},
!!l&&{selectionText:{content:l}},!!l&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof Q==="undefined"})}}else Q={};return Q;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.V("web_shorts_audio_track_picker")){var q;p=((q=_.HV())==null?void 0:q.getAudioTrack())||void 0;Z=p==null?void 0:(l=p.getLanguageInfo())==null?void 0:l.getName();p={data:Object.assign({},{selectionText:{content:Z}},Z&&!(p==null?0:(Q=p.getLanguageInfo())==
null?0:Q.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else p={};return p;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return Q=G!=null&&G.entityKey?(Q=_.G3(H,G.entityKey))?{isHidden:(Q==null?void 0:Q.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},Q;default:return{}}};
NHu=function(G){var H=["A".toString(),"BUTTON".toString()];return function(Z){var Q=function(p){_.eP(_.du(p),Z,H)||G(p)};
Z.addEventListener("click",Q);return function(){Z.removeEventListener("click",Q)}}};
_.A1U=function(G){return function(){return _.X(G(),_.qc)}};
x9f=function(G){switch(G==null?void 0:G.all){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;default:return 0}};
LJj=function(G){switch(G){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
EW3=function(G){switch(G){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"}};
YHX=function(G){switch(G){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"}};
s2j=function(G,H,Z){if(H)return[FJj];switch(G){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[SO];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return Z?[SO]:[bzW,SO];case "TRANSFER_STATE_PAUSED_BY_USER":return[GAv,SO];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[HvU,SO];default:return[FJj]}};
Zvb=function(G,H,Z,Q){return s2j(G,H,Q).map(function(p){var l=p.text,q=p.iconType,u=p.videoAction;p=p.playlistAction;l=l?{content:l}:void 0;q=q&&{sources:[{clientResource:{imageName:q}}]};var B=(0,_.oN.unsafeClone)(Z);if(B){var t=_.X(B,_.Qt),D=_.X(B,_.lP);t&&u?t.action=u:D&&p&&(D.action=p)}return{title:l,leadingImage:q,rendererContext:B&&{commandContext:{onTap:{innertubeCommand:B}}}}})};
Q2M=function(G){G=_.nG(G.rendererContext);var H;return(H=_.X(G,_.lP))==null?void 0:H.playlistId};
p1X=function(G){var H;return(H=G.listItems)==null?void 0:H.some(function(Z){var Q;return _.Vt((Q=_.X(Z,_.BV))==null?void 0:Q.rendererContext)})};
I3f=function(G){var H;return(H=G.listItems)==null?void 0:H.some(function(Z){var Q,p,l=(p=(Q=_.X(Z,l3R))==null?void 0:Q.defaultListItem)!=null?p:Z;Z=_.X(l,_.BV);return!!_.X(Z==null?void 0:Z.leadingAccessory,gpj)})};
uL=function(G){var H=_.tp().resolve(_.Jp(_.rr));return H!=null&&H()?G.darkThemeColorPalette:G.lightThemeColorPalette};
Jl=function(G){return{primaryTextColor:B8(G,0),secondaryTextColor:B8(G,1),optionColor:B8(G,2),backgroundColor:B8(G,3),videoBackgroundColor:B8(G,4)}};
B8=function(G,H){if(G){switch(H){case 0:G=G.primaryTitleColor;break;case 1:G=G.secondaryTitleColor;break;case 2:G=G.surgeColor;break;case 3:G=G.section2Color;break;case 4:G=G.section3Color;break;default:return}if(G)return _.X9(G)}};
uSW=function(G){var H=G.element;var Z=G.veType;var Q=G.storedVisualElement===void 0?null:G.storedVisualElement;var p=G.elementIndex===void 0?0:G.elementIndex;G=G.clientYouTubeData;var l=_.$k();l!==qfv&&(Sff.clear(),qfv=l);if(H.visualElement&&Sff.has(H.visualElement))return null;if(Q&&Sff.has(Q))return H.visualElement=Q,null;Z=_.pX(_.gr(),{veType:Z,elementIndex:p,clientYouTubeData:G});if(!Z)return null;H.visualElement=Z;Sff.add(Z);return Z};
_.tl=function(G,H,Z,Q){Z=Z===void 0?null:Z;Q=Q===void 0?icf:Q;var p=p===void 0?null:p;dr(function(){if(H){Z instanceof Function&&(Z=Z());var l=uSW({element:H,veType:G,storedVisualElement:Z,clientYouTubeData:void 0});l&&(yhM(H,p),Q(l))}})};
B_u=function(G){return G?_.c$(G):""};
JYo=function(G){return(G==null?void 0:G.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
tTj=function(G,H){return _.Hv(G.entities,"videoOverviewAsyncDataEntity",H)};
kAf=function(G,H){var Z;return"linear-gradient(to bottom, "+((Z=H==null?void 0:H.map(function(Q){var p=G?Q.darkThemeColor:Q.lightThemeColor;return p?_.c$(p)+" "+((Q==null?void 0:Q.startLocation)||0)*100+"%":"transparent"}))==null?void 0:Z.join(", "))+")"};
Dqu=function(G,H,Z,Q,p){if(!((Q==null?0:Q.height)&&(Q==null?0:Q.width)))return{size:0};var l=Q.width;Q=Q.height;if(p)return H==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&l>Q?{size:312/LCj}:H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(Z!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||G!==1&&G!==2||H!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&H!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&H!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(H==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||Q===l)switch(G){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Q>l)switch(G){case 1:case 3:return{size:240*xS2};default:return{size:360*xS2}}switch(G){case 1:case 2:return{size:1/LCj*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.dqW=function(G){if(!("matchMedia"in window))return _.HU(Error("Rh")),function(){return!1};
var H=window.matchMedia(G);G=_.I(_.Ty(H.matches,void 0,"jLJc8e"));var Z=G.next().value,Q=G.next().value,p=function(l){Q(l.matches)};
H.addEventListener?(H.addEventListener("change",p),_.oM(function(){H.removeEventListener("change",p)})):H.addListener&&(H.addListener(p),_.oM(function(){H.removeListener(p)}));
return Z};
eZW=function(G){return G==="IMAGE_BANNER_STYLE_INSET"||G==="IMAGE_BANNER_STYLE_UNKNOWN"};
npR=function(){if(!("matchMedia"in window))return _.HU(Error("Rh")),function(){return 0};
var G=UJ(function(){return window.matchMedia("(max-width: 527.9px)")}),H=UJ(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),Z=UJ(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),Q=UJ(function(){return window.matchMedia("(min-width: 1024px)")}),p=_.I(_.Ty(G.matches,void 0,"og9kEc")),l=p.next().value,q=p.next().value;
p=_.I(_.Ty(H.matches,void 0,"ybDWCb"));var u=p.next().value,B=p.next().value;p=_.I(_.Ty(Z.matches,void 0,"o0Gfh"));var t=p.next().value,D=p.next().value;p=_.I(_.Ty(Q.matches,void 0,"yqUUgd"));var d=p.next().value,e=p.next().value,n=UJ(function(){return function(r){q(r.matches)}}),c=UJ(function(){return function(r){B(r.matches)}}),W=UJ(function(){return function(r){D(r.matches)}}),M=UJ(function(){return function(r){e(r.matches)}});
_.mR(function(){G.addEventListener?(G.addEventListener("change",n),H.addEventListener("change",c),Z.addEventListener("change",W),Q.addEventListener("change",M)):G.addListener&&(G.addListener(n),H.addListener(c),Z.addListener(W),Q.addListener(M));_.oM(function(){G.removeEventListener?(G.removeEventListener("change",n),H.removeEventListener("change",c),Z.removeEventListener("change",W),Q.removeEventListener("change",M)):G.removeListener&&(G.removeListener(n),H.removeListener(c),Z.removeListener(W),
Q.removeListener(M))})});
return function(){return l()?1:u()?2:t()?3:d()?4:0}};
VTu=function(G){var H=0;G=_.I([G.title,G.metadata,G.actions,G.description,G.attribution]);for(var Z=G.next();!Z.done;Z=G.next())Z.value&&H++;return H};
$q2=function(G){return G===1||G===2?1:0};
cYX=function(G){G=(new X1X).parse(G);return(new vE).render(G).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(H){var Z=H.split(":").map(Number),Q=0,p=0;if(Z.length===3)Z=_.I(Z),Q=Z.next().value,p=Z.next().value,Z=Z.next().value;else if(Z.length===2)Z=_.I(Z),p=Z.next().value,Z=Z.next().value;else if(Z.length===1)Z=_.I(Z).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(Q*3600+p*60+Z)+'" role="button">'+H+"</span>"})};
T_u=function(G){G=_.I(G.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var H=G.next(),Z={};!H.done;Z={clickHandler$jscomp$5:void 0},H=G.next()){H=H.value;Z.clickHandler$jscomp$5=function(p){p=Number(p.target.getAttribute("data-time"));if(isNaN(p))throw Error("Th");var l;(l=_.HV())==null||l.seekTo(p,!0)};
var Q=function(p){return function(l){l.key!=="Enter"&&l.key!=="Space"||(0,p.clickHandler$jscomp$5)(l)}}(Z);
H.setAttribute("tabindex","0");H.removeEventListener("click",Z.clickHandler$jscomp$5);H.removeEventListener("keydown",Q);H.addEventListener("click",Z.clickHandler$jscomp$5);H.addEventListener("keydown",Q)}};
f3j=function(){return _.J("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.J(kG,{percentWidth:100}),_.J(kG,{animationDelay:200}),_.J(kG,{animationDelay:400}),_.J(kG,{animationDelay:600}),_.J(kG,{animationDelay:800,percentWidth:60}),_.J("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.J(kG,{percentWidth:100}),_.J(kG,{animationDelay:200}),_.J(kG,{animationDelay:400}),_.J(kG,{animationDelay:600,percentWidth:50}))};
kG=function(G){return _.J("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(G.percentWidth===void 0?100:G.percentWidth)+"%"},_.J("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(G.animationDelay===void 0?0:G.animationDelay)+"ms"}))};
vpf=function(){var G=_.I(_.Ty(function(){return""},void 0,"dXJHWc")),H=G.next().value;
return[function(){return H()()},
G.next().value]};
WVf=function(G,H){G=G?nWR(G):"";H!==void 0&&isFinite(H)?H===0?H=_.Zg("UPDATING",void 0,"Updating..."):(H=lKf(new Date(H),new Date),H=_.Zg("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var Z="";G&&H&&(Z=" \u2022 ");return _.Nm(G+Z+H)};
MTe=function(G,H,Z,Q,p,l){H=H===void 0?0:H;var q=zZf[H],u=q.title,B=q.iconType,t=q.topButtonRenderer,D=q.sectionClientVE;q=q.videoClientVE;var d;if(H!==1||G.length){Z=[];G=_.I(G);for(Q=G.next();!Q.done;Q=G.next()){var e=Q.value;if(QiR(e))Z.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:e.videoEntity.videoId,title:AU(e.videoEntity.title),shortBylineText:AU(e.channelEntity.title),thumbnail:e.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:e.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Zg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:q}}}}}});else if(Zie(e)){Q=Z;var n=Q.push;var c=void 0,W=void 0,M=void 0,r=void 0,w=void 0,x=void 0,U=void 0,R=void 0,L=e.mainPlaylistEntity.playlistId,H3=e==null?void 0:(R=e.mainPlaylistEntity)==null?void 0:(U=R.thumbnailStyleData)==null?void 0:(x=U[0])==null?void 0:(w=x.value)==null?void 0:(r=w.collageThumbnail)==null?void 0:r.coverThumbnail;r=hsj(L);if(!_.V("enable_offline_playlist_page")&&
(e==null?0:(M=e.mainPlaylistEntity)==null?0:M.videos)){b:{M=e==null?void 0:(W=e.mainPlaylistEntity)==null?void 0:W.videos;W=_.mm().getState().entities;if(M!=null&&M.length&&W)for(M=_.I(M),w=M.next();!w.done;w=M.next())if(w=_.YK(w.value).entityId,(w=JSON.parse(w).videoId)&&A9v(W,w)==="TRANSFER_STATE_COMPLETE"){W=w;break b}W=""}W!==void 0&&(r=jS(_.mm().getState(),W),r=_.R5(W,L,void 0,void 0,r))}W=iQR(_.Zg("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),hsj(L));e=L&&H3&&W?{playlistId:L,navigationEndpoint:r,
viewPlaylistText:W,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:H3}},title:AU(e.mainPlaylistEntity.title),shortBylineText:AU(e==null?void 0:(c=e.channelEntity)==null?void 0:c.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:KVf,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:L,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Zg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:q}}}:
void 0;n.call(Q,{gridPlaylistRenderer:e})}}q={gridRenderer:{items:Z}};H===1&&(d=WVf(p,l))}else if(Q){var qX=_.Nm((n=Z==null?void 0:Z.localizedPromptMessage)!=null?n:"");q={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Nm(_.Zg("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.$Zj}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Nm(_.Zg("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};d=WVf(p,l)}else qX=_.Nm(_.Zg("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
q={};return{contents:[{shelfRenderer:{title:u,titleAnnotation:d,icon:{iconType:B},subtitle:qX,content:q,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:t}]}}}}],loggingDirectives:{clientVeSpec:{uiType:D}}}};
j23=function(G,H,Z,Q,p,l,q,u,B,t,D){Z=Z===void 0?{}:Z;Q=Q===void 0?{}:Q;p=p===void 0?!1:p;l=l===void 0?!1:l;q=q===void 0?!1:q;u=u===void 0?!1:u;B=B===void 0?!1:B;t=t===void 0?0:t;D=D===void 0?-Infinity:D;if(!(H.length||G.length||p||u))return l?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:l52(Z)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Nm(_.Zg("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 d=[];G.length&&d.push(MTe(G,0));u?d.push({contents:[{statementBannerRenderer:uFR(B,Q)}]}):p?d.push(MTe(H,1,Z,q,t,D)):l&&d.push({contents:[{statementBannerRenderer:I5R(Z)}]});(p&&H.length||G.length)&&d.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Nm(_.Zg("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 d.map(function(e){return{itemSectionRenderer:e}})};
Dx=function(G,H){if(typeof G!=="object")return null;G=_.I(Object.entries(G));for(var Z=G.next();!Z.done;Z=G.next()){var Q=_.I(Z.value);Z=Q.next().value;Q=Q.next().value;if(Z===H)return Z;if(Q=Dx(Q,H))return Z+"."+Q}return null};
dp=function(G){var H=G.content;return(G=G.styleRuns)&&H?{runs:G.map(function(Z){var Q={text:H.slice(Z.startIndex,Z.startIndex+Z.length)};Z.fontColor&&(Q.textColor=Z.fontColor);return Q})}:{simpleText:H}};
w1v=function(G,H,Z,Q){var p=Pj2;Q&&(G.quantity=Q);if(!G.quantity||!G.maxQuantity)return{};Q=G.minusButton;var l=G.plusButton,q,u,B,t;return{value:G.quantity,maxValue:G.maxQuantity,onChangeCallback:function(D){p(G,D)},
minusLabel:(q=_.X(Q,rYf))==null?void 0:q.label,minimumReachedLabel:(u=_.X(Q,rYf))==null?void 0:u.limitReachedLabel,plusLabel:(B=_.X(l,rYf))==null?void 0:B.label,maximumReachedLabel:(t=_.X(l,rYf))==null?void 0:t.limitReachedLabel,disabled:H,onRemoveCommand:Z}};
Pj2=function(G,H){var Z=G.quantityIncrementerEntityKey;if(Z){var Q={};Q.quantity=H;_.aK(_.eO("quantityIncrementerEntity",Z,Q));G.onChangeCommand&&_.zt(G.onChangeCommand)}};
hZf=function(G){if(G)return G===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(G).overflowY)?G:hZf(G.parentElement)};
Ovf=function(G,H){(G=CjR(G))&&((_.V("enable_mini_app_command_handler_mweb_fix")?0:H)?ivU.push({command:G,sourceData:{},commandContext:void 0}):_.tp().resolve(_.Dk).resolveCommand(G))};
CjR=function(G){return _.X(G,_.cT)};
a3j=function(){var G=window.performance.timeOrigin+window.performance.now(),H=(new _.nA).setSeconds(G/1E9);return _.HO(H,2,_.Ij(G%1E9),0)};
op2=function(G,H){var Z;G=(Z=_.X(_.X(G,_.cT),yYU))==null?void 0:Z.methodName;var Q,p;(Z=window.youtubewebview||((Q=window.webkit)==null?void 0:(p=Q.messageHandlers)==null?void 0:p.youtubewebview))&&G&&(Q=new Vj,G=_.ha(Q,1,G),G=_.Cm(G.JSC$12554_serializeBinary()),H=_.Cm(H),Z.postMessage(G+","+H))};
$G=function(G,H){var Z=_.X(_.X(G,_.cT),yYU);Z&&(H&&(Z.serializedAdditionalMetadata=_.Cm(H)),Ovf(G,!0))};
mqR=function(G){switch(G){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"}};
UqM=function(){return!!_.xI("ID_TOKEN")};
AYe=function(G){return G instanceof Error&&G.cause instanceof RZb&&G.cause.rpcErrorCode!==void 0?!N_b.includes(G.cause.rpcErrorCode):!0};
LVb=function(){return _.g7(xqM,{authuser:""+(_.xI("SESSION_INDEX")||0)})};
Xy=function(G,H,Z,Q){Z=Z===void 0?"MINI_APP_SDK_API_UNSPECIFIED":Z;Q=Q===void 0?"":Q;var p=new _.C$;Z={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:Q,sdkApi:Z};G instanceof Error&&(p.message=G.message,p.name=G.name,G.cause instanceof RZb&&G.cause.rpcErrorCode!==void 0&&(Z.rpcErrorCode=G.cause.rpcErrorCode));var l;(l=H.onError)==null||l.call(H,{loggingError:p,metadata:Z})};
YfM=function(G,H,Z,Q){switch(G){case "MINI_APP_SOURCE_GAMESNACKS":return new c8(H,Z,Q);default:return new Epj(H,Z,Q)}};
FV2=function(G){switch(G){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"}};
bvf=function(G){switch(G){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"}};
GbM=function(G){switch(G){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"}};
H4W=function(){return Math.floor(Math.random()*4)+1};
sme=function(G,H,Z,Q){G=_.I(Object.entries(G));for(var p=G.next(),l={};!p.done;l={message$jscomp$995:void 0},p=G.next()){var q=_.I(p.value);p=q.next().value;q=q.next().value;l.message$jscomp$995=q;H.push(setTimeout(function(u){return function(){Q(!1);Z(u.message$jscomp$995.text)}}(l),l.message$jscomp$995.delayMs));
Number(p)>0&&H.push(setTimeout(function(){Q(!0)},l.message$jscomp$995.delayMs-400))}};
Z4e=function(G,H){var Z=Z===void 0?icf:Z;_.V("mweb_fix_monitor_visibility_after_render")?G&&dr(function(){yhM(G,H,Z)}):dr(function(){yhM(G,H,Z)})};
Qmj=function(G,H){var Z=document.createElement("ytd-engagement-panel-section-list-renderer");Z.data=G;var Q=H!=null?H:{};G=Q.isPersistentPanel;H=Q.hideDelayMs;Q=Q.overscrollContain;G=Object.assign({},G&&{isPersistentPanel:G},H&&{hideDelayMs:H},Q&&{overscrollContain:Q});Object.assign(Z,G);return Z};
IBX=function(G){pLf||(pLf=lBf(new _.wc(1,void 0,void 0,gBf),0));var H=pLf.format(Math.floor(G));H=Pv==="be"||Pv==="bg"||Pv==="es"||Pv==="et"||Pv==="hu"||Pv==="ka"||Pv==="lv"||Pv==="pl"||Pv==="pt-PT"||Pv==="sq"?H.replace(new RegExp("^(\\d)"+gBf.GROUP_SEP.replace(".","\\.")+"(\\d+("+gBf.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):H;return G>=1E3&&G<=9999&&H[1]==="."&&(Pv==="sl"||Pv==="it")?H.replace(".",""):H};
ucu=function(G,H,Z,Q){if(G)return Q=Q||G.likeStatus,H?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Q==="LIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:Z},defaultText:Q==="LIKE"?G.likeCountWithUnlikeText:G.likeCountText,toggledText:Q==="LIKE"?G.likeCountText:G.likeCountWithLikeText,defaultNavigationEndpoint:qG2(G,"LIKE"),defaultServiceEndpoint:SGU(G,"LIKE"),toggledServiceEndpoint:SGU(G,"INDIFFERENT"),defaultTooltip:_.yn(G.likeCountTooltipText),toggledTooltip:_.yn(G.likeCountTooltipText),
targetId:G.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Q==="DISLIKE",isDisabled:!G.likesAllowed,defaultIcon:{iconType:Z},defaultText:Q==="DISLIKE"?G.dislikeCountWithUndislikeText:G.dislikeCountText,toggledText:Q==="DISLIKE"?G.dislikeCountText:G.dislikeCountWithDislikeText,defaultNavigationEndpoint:qG2(G,"DISLIKE"),defaultServiceEndpoint:SGU(G,"DISLIKE"),toggledServiceEndpoint:SGU(G,"INDIFFERENT"),defaultTooltip:_.yn(G.dislikeCountTooltipText),
toggledTooltip:_.yn(G.dislikeCountTooltipText)}};
qG2=function(G,H){if(H==="LIKE")return G.likeCommand;if(H==="DISLIKE")return G.dislikeNavigationEndpoint};
SGU=function(G,H){var Z;return(Z=G.serviceEndpoints)==null?void 0:Z.find(function(Q){var p;return((p=_.X(Q,_.TG))==null?void 0:p.status)===H})};
_.tUb=function(G,H,Z){return window.spf&&!_.V("web_disable_spfjs_client")?BoW(G,H,Z):J8f(G,H)};
BoW=function(G,H,Z){var Q=null,p=(new _.T_(function(l,q){var u={};if(H){u.method=H.method;var B=H.postParams||{};kDX(G,H)&&(B[_.xI("XSRF_FIELD_NAME")]=_.xI("XSRF_TOKEN"));u.postData=_.zF(B);H.type&&(u.type=H.type);B=H.headers}u.headers=q33(G,B);_.V("debug_forward_web_query_parameters")&&(G=_.JUj(G,window.location.search));u.experimental_headers=u.headers;u.onError=function(t){t.err&&t.xhr&&(t.err.params={url:t.xhr.responseURL,response:t.xhr.responseText.substr(0,64)});q(t.err)};
u.onPartDone=function(t){Z&&Z.call(null,t.part)};
u.onDone=function(t){var D=kbW(t.response,"xsrf_token");SA(window.location.href,G)&&D&&_.Ae("XSRF_TOKEN",D);if(D=kbW(t.response,"service_worker_killswitch"))_.Ae("SERVICE_WORKER_KILLSWITCH",D),eWj();l(t.response)};
Q=spf.request(G,u)})).then(DFe);
p.thenCatch(function(l){var q=l instanceof _.fA,u=l&&l.hasOwnProperty("params")&&l.params.response?l.params.response:"";l instanceof Error&&(u?q?FGe(l):u===')]}\'\n{"reload":"now"}'?FGe(l):(dFf(l,G,u),ezj(l,u)?_.Rp(l):_.me(l)):FGe(l));Q&&Q.abort()});
return p};
DFe=function(G){if(G.type==="multipart"){var H=G.timing;G=G.parts.reduce(function(Z,Q){Object.assign(Z,Q);return Z},{});
G.timing=G.timing||{};Object.assign(G.timing,H);G.type="reduced"}return G};
J8f=function(G,H){H=H===void 0?{}:H;var Z=null,Q=new _.T_(function(p,l){H.onFinish=function(q){if(q.readyState===XMLHttpRequest.DONE)if(q.status===200){if(q.responseType!=="json"){var u=q.response;u.substring(0,5)===")]}'\n"&&(u=u.substring(5));try{var B=JSON.parse(u)}catch(t){B=t}}else B=q.response;B instanceof Error?l(B):(u=kbW(B,"xsrf_token"),SA(window.location.href,G)&&u&&_.Ae("XSRF_TOKEN",u),q=q.responseURL,window.performance&&window.performance.getEntriesByName?(u=window.performance.getEntriesByName(q).pop())?
q={responseStart:(0,_.t3)()-(u.responseEnd-u.responseStart)}:(Math.random()<.01&&(u=Error("ei"),u.params=q,_.Rp(u)),q={responseStart:-1}):q={responseStart:0},B.timing=B.timing||{},Object.assign(B.timing,q),p(B))}else l(Error("di`"+q.status))};
(Z=_.WU(G,H))||l(Error("di`"+Z.status))});
Q.thenCatch(function(p){p instanceof Error&&(dFf(p,G),ezj(p)&&(p.level="WARNING"))});
_.V("cancel_pending_navs")&&Q.thenCatch(function(){Z.abort()});
return Q};
kbW=function(G,H){var Z=G[H],Q=G.parts;G.type==="multipart"&&Q&&(Z=(G=Q.find(function(p){return H in p}))&&G[H]);
return Z};
dFf=function(G,H,Z){var Q=G.message||"";H={original:Q,url:H};if(Z)if(Q=Q.match(/position:?\s*(\d+)/)){Q=Q&&Number(Q[1])?Number(Q[1]):0;var p=Math.max(Q-25,0);H.position=Q;H.response=Z.substring(p,Q+25)}else H.response=Z.substring(0,50);_.N1(G,H);try{G.message="JSON parse error"}catch(l){}};
ezj=function(G,H){G=G.message||"";G=!!(G.indexOf("<")>=0||G.indexOf("end of ")>=0||G.indexOf("Unterminated string")>=0||G.indexOf("Unexpected EOF"));if(!G&&H)for(var Z=H.length,Q=!1,p=0;p<Z;p++)if(Q&&H[p]==="\\")p++;else if(H[p]==='"')Q=!Q;else if(H[p]==="<"&&!Q){G=!0;break}return G};
nBu=function(){return document.documentElement.hasAttribute("dark")};
_.VUv=function(G,H){if(G!=="GFEEDBACK"&&G!=="GUIDED_HELP")_.FU(Error("fi`"+G));else{var Z=_.tp().resolve(_.Jp(_.o0));if(Z&&(Z=Z.getCurrentPage())&&Z.getServiceTrackingParams&&(Z=Z.getServiceTrackingParams()))for(var Q=0,p;p=Z[Q++];)if(p.service===G){if(G=p.params)for(Z=0;Q=G[Z++];)H[Q.key]=Q.value;break}}};
_.$FR=function(G){var H=_.UO();H&&(H=H.getPlayer())&&(H.pauseVideo(),G.playback_id=H.getVideoData().cpn,G.eid=H.getVideoData().eventId,Object.assign(G,H.getFeedbackProductData()))};
XLv=function(){var G={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.xI("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(G.enableAnonymousFeedback=!0);_.xI("SESSION_INDEX")&&(G.authuser=String(_.xI("SESSION_INDEX")));_.V("enable_pageid_for_feedback")&&_.xI("DELEGATED_SESSION_ID")&&(G.pageId=String(_.xI("DELEGATED_SESSION_ID")));return G};
_.W8=function(G){_.V("enable_ypc_spinners")&&_.AZ(G,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},G])};
_.zG=function(G){_.V("enable_ypc_spinners")&&_.AZ(G,"yt-close-popup-action",["yt-loading-renderer"])};
c8v=function(G){return new Promise(function(H,Z){_.fX({verifyCommand:{recaptchaToken:G.recaptchaResponse}},{commandController:{onSuccess:function(Q,p){p||Z("ChallengeService did not return a response.");var l;H({challengeCompleted:(l=p.verified)!=null?l:!1})},
onServerError:function(Q,p){Z(p)}}})})};
ToM=function(G,H,Z,Q){H({recaptchaResponse:Q}).then(function(p){p.challengeCompleted?_.r7()?(Z(3),_.tp().resolve(_.Dk).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:G}})):Z(2):Z(4)},function(){Z(4)})};
vBR=function(G,H,Z){_.zh(_.VB(fB2,_.xI("HL")),function(){var Q;(Q=window.grecaptcha)==null||Q.ready(function(){var p=window.grecaptcha;p?(Z(p.render(G,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:ToM.bind(null,G,c8v,H)})),H(1)):H(4)})})};
Wpe=function(G,H){return function(){switch(H()){case 0:return G().captchaLoadingMessage;case 1:return G().challengeReason;case 3:return G().captchaSuccessfulMessage;case 2:return G().captchaCookieSetFailureMessage;case 4:return G().captchaFailedMessage;default:return G().challengeReason}}()};
_.KA=function(){if(!zzM){var G=document.querySelector("#player.skeleton");G&&(_.Ku(G),zzM=!0)}};
_.MUX=function(){return KpM=Tyj()};
r8W=function(){return _.S(function(G){return jmb!==void 0?G.return():G.yield(PKR(),0)})};
PKR=function(){return _.S(function(G){if(G.nextAddress==1)return G.yield(v3M(),2);KpM=G.yieldResult;jmb=_.Ui.addLowPriorityJob(PKR,5E3);_.K0(G)})};
aBv=function(G){var H=H===void 0?wL2:H;var Z,Q,p=(Z=G.responseContext)==null?void 0:(Q=Z.mainAppWebResponseContext)==null?void 0:Q.trackingParam;if(!p){H.increment("MISSING");var l,q,u,B,t,D;_.Rp(new _.C$("282054944_a",{aul:!!((l=G.responseContext)==null?0:(q=l.mainAppWebResponseContext)==null?0:q.loggedOut),im7:((u=G.responseContext)==null?void 0:u.mainAppWebResponseContext)===void 0,pJh:G.responseContext===void 0,cp:(B=G.playabilityStatus)==null?void 0:B.contextParams,gM7:(((t=G.streamingData)==
null?void 0:t.formats)||[]).length>0,i4l:(((D=G.streamingData)==null?void 0:D.adaptiveFormats)||[]).length>0,os:!!G.offlineState,cotn:G.cotn}));return 2}Z="";try{Z=hzf(p)}catch(n){return H.increment("C_ERROR"),_.me(n),2}try{var d=_.CK2(Z);var e=i42(d)}catch(n){return H.increment("P_ERROR"),_.me(n),2}e=_.JR(e,O4u,1,_.tR());p=[];e=_.I(e);for(d=e.next();!d.done;d=e.next())Q=d.value,d=Q.getPath(),Z=(0,_.oN.getValueByKeys)(G,d.split(".")),Z=String(Z===void 0||Z===null?"":Z),Q=Q.getValue()||"",l=/[+\-\/_]/g,
Z.replace(l,"")!==Q.replace(l,"")&&(H.increment("MISMATCH"),_.V("ab_mis_log_err")&&(Z=new _.C$("282054944_p",{gke:d,g:String(Z),e:String(Q)}),_.me(Z)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(d)||(d.match(/enforcementMessageViewModel/i)?p.push(3):p.push(2)));if(p.length>0)return Math.max.apply(Math,_.OP(p));H.increment("SUCCESS");return 1};
mFf=function(G){var H=new Mc;if(G.interpreterJavascript){var Z=_.RG2(G.interpreterJavascript);Z=p0(Z).toString();var Q=new y8j;_.ha(Q,6,Z);_.fq(H,1,Q,wG)}else G.interpreterUrl&&(Z=_.R1(G.interpreterUrl),Z=_.PO(Z).toString(),Q=new _.oBf,_.ha(Q,4,Z),_.fq(H,2,Q,wG));G.interpreterHash&&_.jO(H,3,G.interpreterHash,wG);G.program&&_.jO(H,4,G.program,wG);G.globalName&&_.jO(H,5,G.globalName,wG);G.clientExperimentsStateBlob&&_.jO(H,7,G.clientExperimentsStateBlob,wG);return H};
P8=function(G){var H={};G=_.I(G.split("&"));for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value.split("="),Z.length===2&&(H[Z[0]]=Z[1]);return H};
UFb=function(G){return Number(G.t)||7200};
oIe=function(){if(_.V("bg_st_hr"))return"havuokmhhs-0";var G,H=((G=globalThis.performance)==null?void 0:G.timeOrigin)||0;return"havuokmhhs-"+Math.floor(H)};
Rzj=function(){return new Promise(function(G){var H=window;H.ntpevasrs!==void 0?G(new rp(H.ntpevasrs)):(H.ntpqfbel===void 0&&(H.ntpqfbel=[]),H.ntpqfbel.push(function(Z){G(new rp(Z))}))})};
Nou=function(G){var H=G.jvY.bind(G);_.u7("yt.aba.att",H);G=G.kMI.bind(G);_.u7("yt.aba.att2",G)};
xFe=function(G){switch(_.vU(G.input)){case _.U7(A82):var H={};return H.encryptedVideoId=G.innerTubeRequest.externalVideoId,H}return{}};
YGR=function(G){switch(_.vU(G.input)){case _.U7(A82):if(_.V("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.U7(Lpf):if(_.V("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.U7(wp):if(_.V("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&G.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.U7(EBu):var H,Z;if(_.V("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((Z=_.X((H=G.config)==null?void 0:H.command,rCv))==null?0:Z.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.b4W=function(G){var H;if(G.playlistVideoRenderer&&((H=G.playlistVideoRenderer)==null?0:H.engagementBar))return Fpb(G.playlistVideoRenderer.engagementBar);if(_.X(G,hl)){var Z;if(G=(Z=_.X(G,hl))==null?void 0:Z.engagementBar)return Fpb(G)}return""};
Fpb=function(G){if(!G)return"";G=_.X(G,_.GX2);if(G==null||!G.actions)return"";G=_.I(G.actions);for(G=G.next();!G.done;G=G.next()){G=_.X(G.value,_.Hhj);var H=void 0;if((H=G)==null||!H.itemId)break;return G.itemId}return""};
_.sGM=function(G){var H;if(G.playlistVideoRenderer&&((H=G.playlistVideoRenderer)==null?0:H.videoId))return G.playlistVideoRenderer.videoId;if(_.X(G,hl)){var Z,Q;if(G=(Z=_.X(G,hl))==null?void 0:(Q=Z.playlistItemData)==null?void 0:Q.videoId)return G}return""};
_.ZhW=function(G){var H;if(G.playlistVideoRenderer&&((H=G.playlistVideoRenderer)==null?0:H.voteCount))return G.playlistVideoRenderer.voteCount;if(_.X(G,hl)){var Z,Q;if(G=(Z=_.X(G,hl))==null?void 0:(Q=Z.playlistItemData)==null?void 0:Q.voteCount)return G}return 0};
_.CA=function(G,H){return _.Hv(G.entities,"flowStateEntity",H)};
pmb=function(G,H,Z,Q){var p=void 0;G=_.I(G[H.iconName]||[]);for(var l=G.next();!l.done;l=G.next()){l=l.value;var q=H.iconSize;var u=H.iconStyle;q=!q||q===l[2];var B=QG3[l[0]];Q&&Q!==l[1]||!q||u&&u!==B?u=!1:p?(u=QG3[l[0]],u=!!H.iconStyle||u==="youtube_outline",q=p.version<=l[1],u=(!!H.iconSize||l[2]===24)&&u&&q):u=!0;u&&(p={name:H.iconName,style:QG3[l[0]],size:l[2],version:l[1],allowMirroring:!!l[3],url:Z(H.iconName,l)})}return p};
ldo=function(G,H,Z,Q){return G+(""+QG3[Z[0]]+((Q===void 0?0:Q)?"_experimental":"")+"/"+H+"/v"+Z[1]+"/")+(Z[2]+"px.svg")};
g4f=function(G){return _.xI("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.xI("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":G};
IdR=function(G,H){return ldo("https://fonts.gstatic.com/s/i/",G,H)};
qZW=function(G,H){return ldo("https://fonts.gstatic.com/s/i/",G,H,!0)};
SZj=function(G,H){return ldo("https://www.gstatic.com/youtube/img/icons/web/",G,H)};
BZb=function(G){var H=G.enabled;var Z=G.itemPlaybackModel;var Q=G.thumbnailElRef;var p=G.containerElRef;var l=G.options;var q;_.yN(function(){var u=p==null?void 0:p.value;var B,t=(B=Q())==null?void 0:B.value;B=Z();var D=l();if(H&&B&&u&&t&&(D==null?0:D.thumbnail)){var d={data:B,hostElement:u},e,n,c=[].concat(_.OP((e=D.thumbnailOverlays)!=null?e:[]),_.OP((n=B.overlays)!=null?n:[]));n=B.itemPlaybackOptions;e=(n==null?void 0:n.enableRoundedPlayer)||D.enableRounding;n=n==null?void 0:n.disableTimeStatusOverlay;
var W,M;u={mediaRenderer:d,lockupElement:u,thumbnailElement:t,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Tt((W=B.inlinePlayerData)==null?void 0:W.onVisible),navigationEndpoint:_.Tt((M=B.inlinePlayerData)==null?void 0:M.onSelect),thumbnail:D.thumbnail,thumbnailOverlays:c,accessibilityText:D.accessibilityText||""},thumbnailSize:D.thumbnailSize,enableRounding:e,mouseleaveCallback:D.mouseleaveCallback,hideTimeDisplay:n}}}else u=void 0;if(W=u){var r;(r=q)==null||iL(r);q=cV(W);var w,x;
((w=Z())==null?0:(x=w.inlinePlayerData)==null?0:x.forceImpAutoplay)&&uje(q)}},"BLiQOd");
_.oM(function(){var u;(u=q)==null||iL(u)})};
JoU=function(G){G=atob(G);for(var H=[],Z=0;Z<G.length;Z++)H.push(G.charCodeAt(Z));return new Blob([new Uint8Array(H)],{type:"image/png"})};
kX3=function(G,H,Z,Q){Q=Q===void 0?"INSERTION_POSITION_UNSPECIFIED":Q;return G({targetId:H},function(p){var l,q=(l=p.contents)!=null?l:[];l=Z!=null?Z:[];var u=tJv(q);switch(Q){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},p,{contents:[].concat(_.OP(q.slice(0,u)),_.OP(l),_.OP(q.slice(u+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},p,{contents:[].concat(_.OP(l),_.OP(q))});case "INSERTION_POSITION_LAST":return Object.assign({},p,{contents:[].concat(_.OP(q),_.OP(l))});
default:return p}})};
dsf=function(G,H,Z,Q,p){p=p===void 0?"RELATIVE_INSERTION_POSITION_AFTER":p;return G({targetId:H},function(l){var q,u=(q=l.contents)!=null?q:[];q=Dsf(u,Z);if(q<0)return l;q=p==="RELATIVE_INSERTION_POSITION_BEFORE"?q:q+1;return Object.assign({},l,{contents:[].concat(_.OP(u.slice(0,q)),_.OP(Q),_.OP(u.slice(q)))})})};
tJv=function(G){var H=G.findIndex(function(Z){return _.X(Z,_.Oz)});
return H>=0?H:G.length};
Dsf=function(G,H){return G.findIndex(function(Z){a:{Z=_.I(Object.values(Z));for(var Q=Z.next();!Q.done;Q=Z.next())if((Q=Q.value)&&Q.targetId){Z=Q.targetId;break a}Z=""}return Z===H})};
n4W=function(G,H,Z){return G({targetId:H},function(Q){var p,l=(p=Q.contents)!=null?p:[];return Object.assign({},Q,{contents:eJb(l,Z)})})};
eJb=function(G,H){return G.filter(function(Z){var Q=H.includes;a:{Z=_.I(Object.values(Z));for(var p=Z.next();!p.done;p=Z.next())if((p=p.value)&&p.targetId){Z=p.targetId;break a}Z=""}return!Q.call(H,Z||"")})};
_.VJX=function(G,H){return{engagementPanelSectionListRenderer:{panelIdentifier:G,identifier:H,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
$su=function(G,H){G=G.getAvailableAudioTracks();if(G.length)return G==null?void 0:G.find(function(Z){var Q;return(Z==null?void 0:(Q=Z.getLanguageInfo())==null?void 0:Q.getId())===H})};
_.co3=function(G){var H,Z=(H=G.getOption("captions","tracklist",{includeAsr:!0}))!=null?H:[];return Z=XmW(Z,G)};
TZf=function(G){return G.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
XmW=function(G,H){H=TZf(H);if(H==null||!H.length)return G;var Z=H.filter(function(q){return q});
H=G.filter(function(q){return q.languageCode.startsWith("en")});
Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,H.length){var p=H[0],l=Object.assign({},p);p.languageCode!==Q.languageCode&&(l.displayName=p.languageName+" >> "+Q.languageName,l.translationLanguage=Q,G.push(l))}return G};
fdo=function(G,H,Z){G=_.co3(G);if(G.length)return Z?G.find(function(Q){if(typeof(Q==null?void 0:Q.translationLanguage)==="object"){var p;return((p=Q.translationLanguage)==null?void 0:p.languageCode)===H}return!1}):G==null?void 0:G.find(function(Q){return Q.languageCode===H})};
v4e=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
Wcf=function(G){var H=G.getAvailableAudioTracks();if(H!=null&&H.length){var Z=G.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.OP(H.map(function(Q){return{listItemViewModel:{title:{content:Q.getLanguageInfo().getName()},isSelected:Q.getLanguageInfo().getId()===(Z==null?void 0:Z.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:Q.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
zJo=function(G){return G.getOption("captions","tracklist",{includeAsr:!0})};
Kcb=function(G){var H=zJo(G);if(H==null?0:H.length)return H;G.loadModule("captions");return zJo(G)};
MJX=function(G){var H=G.getOption("captions","track");if(H)return H;G.loadModule("captions");return G.getOption("captions","track")};
PQf=function(G){var H=Kcb(G);if(H!=null&&H.length){var Z=MJX(G),Q;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Zg("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(Z==null?0:Z.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.OP(H.map(function(p){return{listItemViewModel:{title:{content:p.displayName},
isSelected:p.displayName===(Z==null?void 0:Z.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:p.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Zg("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!Z.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!Z.translationLanguage&&{selectionText:{content:(Z==null?void 0:(Q=Z.translationLanguage)==null?void 0:Q.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[jG3(G)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
jG3=function(G){var H=TZf(G);if(H==null||!H.length)throw Error("Ei");var Z=MJX(G);G=H.filter(function(Q){return!Q.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.OP(G.map(function(Q){var p;return{listItemViewModel:{title:{content:Q.languageName},isSelected:Q.languageName===(Z==null?void 0:(p=Z.translationLanguage)==null?void 0:p.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Q.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
CQu=function(G){return new Promise(function(H,Z){if(G===void 0)_.me(Error("Ii"),"ERROR"),Z(Error("Ii"));else{Z=new _.rof;var Q=_.wmf();Z=Z.init();var p=_.hJW(_.xI("YPC_MB_URL"),!0);Promise.all([Z,p]).then(function(){var l=_.a9.payments.business.integration.ClientTokenFactory.createClientToken(G,Q);H(l)})}})};
adU=function(G,H,Z,Q,p,l,q){var u=_.hQ();Z=Z.replace(/-/g,"+").replace(/_/g,"/");var B=_.lf().get("hl"),t=_.yj(_.iS),D=H==null?void 0:H.element;D&&_.W8(D);ihu(H,!0);_.Ohf(t,Z,u.resolve,function(){D&&_.zG(D)},function(d){D&&_.zG(D);
u.reject(d)},B,Q?function(d){Q&&_.wb(G,Q,{backend_analytics:d})}:void 0,u.resolve,p,l,q);
return u.promise};
ihu=function(G,H){!(G=G==null?void 0:G.element)||G.tagName!=="YT-BUTTON-RENDERER"&&G.tagName!=="YTD-BUTTON-RENDERER"||(G.disabled=H)};
yoW=function(){var G=_.Zg("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Nm(G),actionButton:{buttonRenderer:ZzX()}}},popupType:"TOAST"}};
o4v=function(){var G=_.Zg("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Nm(G),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
ms3=function(G){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:G}]}}};
o9=function(G,H,Z,Q){var p;return _.S(function(l){if(l.nextAddress==1)return _.XV(l,2),l.yield(G,4);if(l.nextAddress!=2)return(p=_.Jy(H.getState().entities).length>0)?l.return({title:_.Nm(_.Zg("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Nm(_.Zg("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:seU()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
l.return(QeX(Z,Q));_.Wg(l);return l.return(QeX(Z,Q))})};
Usv=function(G,H){return H?H==="PPSV"||EyR(G,H):!1};
RJu=function(G){G.responseContext||(G.responseContext={});G.responseContext.maxAgeSeconds=0;return G};
Uz=function(G){var H;return _.S(function(Z){return Z.nextAddress==1?Z.yield(NZM(G,"service:topbar:fallback"),2):(H=Z.yieldResult)&&_.mU(H)?Z.return(RJu(_.mU(H))):Z.return()})};
AoW=function(G){var H;return _.S(function(Z){return Z.nextAddress==1?Z.yield(NZM(G,"service:downloads_settings:fallback"),2):(H=Z.yieldResult)&&_.mU(H)?Z.return(H):Z.return()})};
NZM=function(G,H){var Z;return _.S(function(Q){if(Q.nextAddress==1)return G?Q.yield(G.get(H),2):Q.return();Z=Q.yieldResult;return!Z||!_.mU(Z)||!isNaN(Number(Z.data.expireTimestampMs))&&Z.isExpired()?Q.return():Q.return(Z)})};
xsb=function(G){var H=_.tp().resolve(R9).getState().entities;return G.playlistId?Usv(H,G.playlistId):!1};
E4o=function(G){var H=_.eA("web_pbj_log_warning_rate",0);H=H>0&&Math.random()<H;if(!_.X(G,_.uS))return H&&_.Rp(Error("bj")),!1;var Z;return _.V("shorts_controller_retrieve_seedless_sequence_v2")&&((Z=_.X(G,_.uS))==null?void 0:Z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:LcW(G)?!0:(H&&_.Rp(Error("cj")),!1)};
LcW=function(G){var H=(_.X(G,_.hZ)||_.X(G,_.uS)).videoId;if(!H||!YZU.test(H))return!1;var Z;return(G=(Z=_.X(G.commandMetadata,_.HA))==null?void 0:Z.url)&&(G.includes(H)||G.startsWith("/clip"))?!0:!1};
_.bhU=function(){var G=_.lf();return G.getFlag(192)?G.getFlag(190):!(_.V("web_watch_cinematics_disabled_by_default")||_.V("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Fco())};
_.Nc=function(G,H,Z){var Q={};Q.currentUrl=H;Q.vis=G.vis!==void 0?G.vis:0;Q.splay=!1;H=_.lf();Q.autoCaptionsDefaultOn=H.getFlag(66);H.getFlag(141)?H.getFlag(140)?Q.autonavState="STATE_OFF":Q.autonavState="STATE_ON":Q.autonavState="STATE_NONE";Q.html5Preference="HTML5_PREF_WANTS";isNaN(_.xI("STS"))||(Q.signatureTimestamp=_.xI("STS"));G.autonav&&(Q.autoplay=!0,Q.autonav=!0);G.mutedAutoplay&&(Q.autoplay=!0,Q.mutedAutoplay=!0);G.inlinePlayback&&(Q.autoplay=!0,Q.autonav=!1,Q.isInlineUnmutedPlayback=!!G.inlineUnmuted);
Q.referer=Z;Q.lactMilliseconds=G.lact!==void 0?G.lact.toString():"-1";_.V("enable_unknown_lact_fix_on_html5")&&Q.lactMilliseconds==="-1"&&_.Rp(new _.C$("Unknown LACT is set in playbackContext.",{"lact in tempData":G.lact||"undefined",autonav:G.autonav||"undefined"}));G={};H.getFlag(194)&&(G.hasShownAmbientMode=!0);H.getFlag(192)&&(G.hasToggledOffAmbientMode=!0);_.bhU()&&(G.watchAmbientModeEnabled=!0);Q.watchAmbientModeContext=G;return Q};
Gu3=function(G){var H={},Z=G.pbis||0;Z&&(H.playbackBeginsInSeconds=Z);G.prefetch_reason&&G.prefetch_reason==="hc_pbis"&&(H.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return H};
Hy2=function(G,H){var Z;if(H==null?0:(Z=H.requestTemplate)==null?0:Z.panelId)G.panelId=H.requestTemplate.panelId;var Q;if(H==null?0:(Q=H.requestTemplate)==null?0:Q.params)G.params=H.requestTemplate.params};
Zyv=function(){if(slR)return slR();var G=!_.V("idb_response_store_auth_killswitch"),H={};slR=J3("yt-it-response-store",{objectStores:(H.ResponseStore={addedAtVersion:1},H),shared:!G,upgrade:function(Z,Q){Q(1)&&(Z=YN(Z,"ResponseStore",{keyPath:["key","clientName"]}),Fq(Z,"byExpiration","expireTimestampMs"),Fq(Z,"byInterface","clientName"))},
version:1});return slR()};
Qlj=function(G){return _.pg(Zyv(),G)};
lC2=function(G,H){var Z;return _.S(function(Q){return Q.nextAddress==1?Q.yield(_.BP(),2):(Z=Q.yieldResult)?Q.return(new pqW(G,H,Z)):Q.return()})};
g82=function(G){var H=Object.keys(G)[0];if(H)return G.screenExit&&(H=H+";"+G.screenExit.screen),H};
ICb=function(G){var H=new Map;G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z!=null&&(H.has(Z.taskType)||H.set(Z.taskType,[]),H.get(Z.taskType).push(Z));return H};
qXv=function(G){G=[].concat(_.OP(G)).sort(function(Z,Q){return Z-Q});
var H=Math.floor(G.length/2);return G.length%2?G[H]:(G[H-1]+G[H])/2};
B1R=function(G,H){G=G===void 0?iIW:G;H=H===void 0?{}:H;_.u7("yt.logging.errors.log",_.me);hho();SXj(miU(),H);window.onerror=G;u3e=ClU;window.addEventListener("unhandledrejection",function(Z){if(Z.reason instanceof Error){var Q=Z.reason;_.N1(Q,{source:"unhandledrejection"});Q.name==="AbortError"&&(Q.level="WARNING")}ClU(Z.reason);Z.preventDefault()})};
_.Jue=function(G){var H,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L,H3,qX,B3,fW,e2,$R,ie,W3,DT,UR,zx,be,J_,rG,Kw,cD,ec,gf;return _.S(function(sR){if(sR.nextAddress==1)return sR.yield(_.Iq(G,{mode:"readonly",enableRetries:!0},function(ep){return qv(ep,"playbackData").then(function(Qh){var $w=Qh.map(function(t_){return t_.transfer}).filter(function(t_){return!!t_}),Zt=Qh.map(function(t_){return t_.offlineVideoPolicy}).filter(function(t_){return!!t_}),rJ=Qh.filter(function(t_){return!!t_.key}).map(function(t_){return _.G9(_.YK(t_.key).entityId,
"downloadStatusEntity")});
$w=qv(ep,"transfer",$w);Zt=qv(ep,"offlineVideoPolicy",Zt);rJ=qv(ep,"downloadStatusEntity",rJ);var N7=$w.then(function(t_){t_=t_.reduce(function(Bd,HD){(HD==null?0:HD.offlineVideoStreams)&&Bd.push.apply(Bd,_.OP(HD.offlineVideoStreams));return Bd},[]).filter(function(Bd){return!!Bd});
return qv(ep,"offlineVideoStreams",t_)});
return FP.all([$w,Zt,N7,rJ]).then(function(t_){var Bd=_.I(t_);t_=Bd.next().value;var HD=Bd.next().value;var xR=Bd.next().value;Bd=Bd.next().value;return[Qh,t_,HD,xR,Bd]})})}),2);
if(sR.nextAddress!=3)return H=sR.yieldResult,sR.yield(_.Iq(G,{mode:"readonly",enableRetries:!0},function(ep){return qv(ep,"mainDownloadsListEntity").then(function(Qh){var $w,Zt;return(Zt=($w=Qh[0])==null?void 0:$w.downloads)!=null?Zt:[]})}),3);
Z=sR.yieldResult;Q=_.I(H);p=Q.next().value;l=Q.next().value;q=Q.next().value;u=Q.next().value;B=Q.next().value;t=p;D=l;d=q;e=u;n=B;c={};W={};M={};r={};w={};x=[];U=_.I(D);for(R=U.next();!R.done;R=U.next())(L=R.value)&&(c[L.key]=L);H3=_.I(d);for(qX=H3.next();!qX.done;qX=H3.next())(B3=qX.value)&&(W[B3.key]=B3);fW=_.I(n);for(e2=fW.next();!e2.done;e2=fW.next())($R=e2.value)&&(M[$R.key]=$R);ie=_.I(e);for(W3=ie.next();!W3.done;W3=ie.next())(DT=W3.value)&&(r[DT.key]=DT);UR=_.I(Z);for(zx=UR.next();!zx.done;zx=
UR.next())be=zx.value,J_=void 0,w[(J_=be.videoItem)!=null?J_:""]=!0,be.videoItem&&(Kw=rG=void 0,cD=(Kw=(rG=_.YK(be.videoItem))==null?void 0:rG.entityId)!=null?Kw:"",x.push({externalVideoId:cD}));ec=t.filter(function(ep){if(!ep||!ep.key||!ep.offlineVideoPolicy)return!1;ep=_.YK(ep.key).entityId;ep=_.G9(ep,"downloadStatusEntity");var Qh;return!(ep&&((Qh=M[ep])==null?void 0:Qh.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
gf=ec.map(function(ep){var Qh=c[ep.transfer],$w=[];if(Qh==null?0:Qh.offlineVideoStreams)for(var Zt=_.I(Qh.offlineVideoStreams),rJ=Zt.next();!rJ.done;rJ=Zt.next())(rJ=r[rJ.value])&&$w.push(rJ);Zt=W[ep.offlineVideoPolicy];rJ=w;var N7=ep==null?void 0:ep.playerResponseTimestamp,t_=_.YK(Zt.key).entityId;ep=_.G9(t_,"mainVideoEntity");if(Zt.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Bd="OFFLINE_VIDEO_STATE_DISABLED";Zt.expirationTimestamp&&Number(Zt.expirationTimestamp)<Date.now()/1E3&&(Bd="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Zt.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Bd="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Qh==null?void 0:Qh.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Bd="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Bd="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Bd="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Bd="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Bd="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Bd="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Bd="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Bd==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Qh==null?void 0:Qh.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Bd="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Bd="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Bd=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}t_={id:t_,videoState:Bd};if(Qh==null?0:Qh.cotn)t_.cotn=Qh.cotn;if(Qh==null?0:Qh.maximumDownloadQuality)t_.selectedVideoQuality=Qh==null?void 0:Qh.maximumDownloadQuality;if(Qh==null?0:Qh.lastProgressTimeMs)t_.lastProgressTimeMs=Qh.lastProgressTimeMs;N7&&(t_.playerResponseSavedTimeMs=String(Number(N7)*1E3));Qh=String;N7=0;$w=_.I($w);for(Bd=$w.next();!Bd.done;Bd=$w.next())if(Bd=Bd.value,Bd.streamsProgress){Bd=_.I(Bd.streamsProgress);for(var HD=Bd.next();!HD.done;HD=
Bd.next()){var xR=void 0;N7+=Number((xR=HD.value.numBytesDownloaded)!=null?xR:0)}}t_.downloadedBytes=Qh(N7);t_.selectedOfflineMode=rJ[ep]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Zt.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(t_.offlinePlaybackDisabledReason=Zt.offlinePlaybackDisabledReason);return t_});
return sR.return({offlineVideos:gf,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:x}}})})};
t3u=function(){var G;return _.S(function(H){return H.nextAddress==1?H.yield(_.Qn(),2):(G=H.yieldResult)?H.return(_.Jue(G)):H.return({state:"PES Unavailable"})})};
dbv=function(){var G,H,Z,Q;return _.S(function(p){if(p.nextAddress==1)return p.yield(_.Qn(),2);if(p.nextAddress!=3)return(G=p.yieldResult)?p.yield(kue(G),3):p.return({state:"PES Unavailable"});H=p.yieldResult;Z={};Q=H.reduce(function(l,q){l[q.key]=q;return l},Z);
return p.return(Dbf(Q))})};
Dbf=function(G){for(var H={},Z=[],Q=_.I(Object.keys(G)),p=Q.next();!p.done;p=Q.next()){var l=p.value;p=G[l];var q=void 0;if(((q=p)==null?void 0:q.entityType)==="mainVideoEntity"){delete G[l];var u=p.data;p={};if(u){var B=void 0;q=(B=u.videoId)!=null?B:"vid-"+l;l=G;p.video=u;delete p.video.formattedDescription;delete p.video.thumbnail;u.owner&&(B=l[u.owner],B==null?0:B.data)&&(delete l[B.key],p.video.owner=B.data,delete p.video.owner.avatar);if(u=u.downloadState)if(B=l[u],B==null?0:B.data)if(delete l[u],
u=B.data.playbackData)if(B=l[u],B!=null&&B.data){delete l[u];u=B.data;delete u.playerResponseJson;p.playbackData=u;if(u.transfer&&(B=l[u.transfer],B==null?0:B.data)){delete l[B.key];var t=B.data;p.transfer=t;B=[];t=_.I(t.offlineVideoStreams||[]);for(var D=t.next();!D.done;D=t.next())if(D=l[D.value])delete l[D.key],B.push(D.data);B&&(p.streams=B)}(u=u.offlineVideoPolicy)&&(u=l[u])&&u.data&&(delete l[u.key],p.offlineVideoPolicy=u.data)}H[q]=p}}else p&&p.entityType==="offlineOrchestrationActionWrapperEntity"&&
p.data&&(delete G[p.key],q=p.data,l=void 0,Z.push({id:q.rootActionId,type:((l=q.actionProto)==null?void 0:l.actionType)||"",entity:p}))}H.wrapperEntities=Z;Object.keys(G).length>0&&(H.unknownKeys=G);return H};
eDo=function(){var G,H,Z,Q,p,l,q,u,B;return _.S(function(t){if(t.nextAddress==1)return G=(new _.Lg("")).hasLocalStorage(),Q=!!((H=_.Qf.crypto)==null?0:(Z=H.subtle)==null?0:Z.importKey),p=!!_.Qf.BroadcastChannel,l=!!_.Qf.navigator.locks,t.yield(tSR(),2);q=t.yieldResult;u=G&&Q&&p&&l&&q;B={isSupported:u};if(u)return t.return(B);B.missingBrowserFeatures=[];q||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");G||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
Q||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");p||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");l||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return t.return(B)})};
n8R=function(G,H,Z,Q){var p=!1,l={contentId:void 0,contentType:"video"};H=_.I(Object.entries(H));for(var q=H.next();!q.done;q=H.next()){var u=_.I(q.value);q=u.next().value;u=u.next().value;G.includes(q)&&!Z.has(u)?(l.contentId=u,Z.add(u),p=!0):q==="contentType"?u==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(l.contentType="playlist"):typeof u==="object"&&u!==null&&n8R(G,u,Z,Q)}p&&Q.push(l)};
V3f=function(){var G;return!((G=Ez?Ez:null)==null||!G.window)};
_.XqR=function(G){if(_.MX()&&_.X3v("Chromium")>=120){var H=_.$b3().mediaSession;try{H.setActionHandler("enterpictureinpicture",function(){G()})}catch(Z){}}};
cue=function(G){for(var H=[],Z=_.I(document.styleSheets),Q=Z.next(),p={};!Q.done;p={node$jscomp$773:void 0},Q=Z.next())p.node$jscomp$773=Q.value.ownerNode,p.node$jscomp$773&&(p.node$jscomp$773 instanceof HTMLStyleElement||p.node$jscomp$773 instanceof HTMLLinkElement)&&H.push(new Promise(function(l){return function(q){var u=l.node$jscomp$773.cloneNode(!0);u.onload=function(){q()};
u.onerror=function(){_.Rp(Error("tj"));q()};
G.document.head.appendChild(u)}}(p)));
return Promise.all(H)};
ruX=function(G){var H=[_.et(T13),_.et(fCj),_.et(v83)];WPu(window.document.documentElement,G.document.documentElement,[_.et(zD3),_.et(KPj),_.et(M3e),_.et(jlW),_.et(PDX)]);WPu(window.document.body,G.document.body,H)};
WPu=function(G,H,Z){G=_.I(G.attributes);for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value)try{_.q_(Z,H,Q.name,Q.value)}catch(p){}};
hDU=function(G,H){G=new _.YG(G.document.documentElement);G.start(wqe,H);return G};
CDf=function(G){var H=G.document.documentElement;H.addEventListener("click",function(Z){Xje(H,Z)});
H.addEventListener("touchstart",function(Z){W6W(Z)});
H.addEventListener("mousedown",function(Z){W6W(Z)})};
Oy3=function(G,H,Z,Q){Q=Q===void 0?!1:Q;H=new iyX(H||G,Z||G);return{x:G.x+((Q===void 0?0:Q)?H.lengthX*-1:H.lengthX)*.2,y:G.y+((Q===void 0?0:Q)?H.lengthY*-1:H.lengthY)*.2}};
aCf=function(G){if(!G)return!1;var H=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",Z,Q,p,l=(p=(Z=G.errorScreen)==null?void 0:Z.playerLegacyDesktopYpcTrailerRenderer)!=null?p:(Q=G.errorScreen)==null?void 0:Q.ypcTrailerRenderer;return!!H||!!l};
_.yuM=function(G,H){if(!G)return!1;var Z,Q=(Z=G.errorScreen)==null?void 0:Z.playerLegacyDesktopYpcOfferRenderer,p;H=!!(H==null?0:(p=H.playerOverlayRenderer)==null?0:p.gatedActionsOverlayRenderer);return!!aCf(G)||!!Q||!!H};
Ubv=function(G){return o8e(G,0,"gclid",G.search(mbj))>=0||o8e(G,0,"gad_source",G.search(mbj))>=0};
RDf=function(G){var H=[],Z=0;return{clear:function(){Z=H.length=0},
push:function(Q){H[Z]=Q;Z=(Z+1)%G},
iterate:function(){return function p(){var l,q,u,B;return _.Fy(p,function(t){switch(t.nextAddress){case 1:_.f0(t,2),l=H.length,q=0;case 4:if(!(q<l)){t.jumpTo(2);break}u=Z+q;B=_.bL;return t.yield(H[u%l],7);case 7:B(t.yieldResult);q++;t.jumpTo(4);break;case 2:_.TO(t),_.vg(t,0)}})}()}}};
N1o=function(G){G.eventsToIgnore||(G.eventsToIgnore=[]);var H=G.eventsToIgnore.map(T4R),Z=new Set(H),Q=RDf(G.bufferSize);return{flush:function(){var p=Array.from(Q.iterate());Q.clear();p=p.map(function(l){return{name:l.name,timestamp:l.startTime,attributes:l.attributes}});
return JSON.stringify(p)},
onSpanStart:function(p){p.name==="event"&&Z.has(p.attributes.type)||Q.push(p)}}};
Auv=function(G){G=N1o(G);var H=G.flush;$zR({onSpanStart:G.onSpanStart});xJ.subscribe("handleError",function(Z){try{Z.params.breadcrumbs=H()}catch(Q){_.me(Q,"WARNING")}})};
xbf=function(){no("web_tracing_action");_.VY("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
LP3=function(){no("web_tracing_action");_.VY("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
YXj=function(G,H,Z){if(H===void 0){E8o||(LP3(),setInterval(LP3,6E5),E8o=!0);var Q="web_tracing_action"}else Q=H;var p,l=((p=G.endTime)!=null?p:G.startTime)-G.startTime,q={};p=G.name;var u=G.startTime;q={webTracing:(q[G.name]=G.attributes,q)};Z=_.bW(is3)(p,l,u,q,Z,Q);if(G.children)for(G=_.I(G.children),Q=G.next();!Q.done;Q=G.next())YXj(Q.value,H,Z)};
FP3=function(G){var H=KdR.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(Z){Z.data&&typeof Z.data==="object"&&(Z=Z.data,Z.from==="extension"&&Z.app==="yt.telemetry"&&(H("Received message from extension",Z),G.onMessage(Z)))});
return function(Z,Q){Z={app:"yt.telemetry",from:"app",key:Z,payload:Q};H("Sending message to extension",Z);window.postMessage(Z,"*")}};
by3=function(){var G=G===void 0?3E3:G;var H=FP3({onMessage:function(){}}),Z=[];
return{onSpanEnd:function(Q){Q.parentId==null&&Z.push(Q)===1&&setTimeout(function(){var p=[].concat(_.OP(Z));Z.length=0;H("spansReported",{spans:p})},G)}}};
Gd3=function(G){G=G===void 0?400:G;var H=[],Z=[];return{start:function(){return ZVM({checkoutEveryNth:G,emit:function(Q,p){p&&(H=Z,Z=[]);Z.push(Q)}})},
getRecording:function(){return[].concat(_.OP(H),_.OP(Z))}}};
Zxf=function(){(new Hxf({sessionReplayEvents:_.eA("web_tracing_session_replay",0)})).subscribe(function(G){if(G.sessionReplayEvents>0)try{var H=Gd3(G.sessionReplayEvents);H.start();if(_.V("web_tracing_session_replay_demo")){var Z=console.log;window.exportSessionReplay=function(){var Q=JSON.stringify(H.getRecording(),null,2);Q=sUv(new Blob([Q],{type:"text/plain"}));var p=document.createElement("a");p.download="session_replay.json";p.dataset.downloadurl=["application/json",p.download,p.href].join(":");
p.style.display="none";p.href=Q;p.click();URL.revokeObjectURL(Q);Z("View replay at go/yt-session-replay-viewer")}}}catch(Q){_.Rp(Error("vj"))}})};
poX=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var G=window.performance.getEntriesByType("navigation");if(G.length>0){var H=G[0],Z;(Z=v9R("pageLoad",{navigationType:QU3(H.type),unloadEventStart:Math.round(H.unloadEventStart),unloadEventEnd:Math.round(H.unloadEventEnd),domInteractive:Math.round(H.domInteractive),domContentLoadedEventStart:Math.round(H.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(H.domContentLoadedEventEnd),
domComplete:Math.round(H.domComplete),loadEventStart:Math.round(H.loadEventStart),loadEventEnd:Math.round(H.loadEventEnd),redirectCount:H.redirectCount}))==null||Z.end()}}catch(Q){}})};
QU3=function(G){switch(G){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"}};
SC2=function(){for(var G=l1R.value,H={},Z=_.I(G.enabledSpansArray),Q=Z.next();!Q.done;Q=Z.next())H[Q.value]=!0;Vwj({sessionId:Q$R(),enabledSpans:H,shouldSampleFn:function(p,l,q){if(gmR){var u;return p==="shortToShort"||(q==null?void 0:(u=q.rootSpan())==null?void 0:u.name)==="shortToShort"}return!0}});
zsU();XNM("pageLoad")&&poX();G.exportToCsi&&$zR(I1M);G.exportToDevTools&&$zR(by3());G.maxBreadcrumbs>0&&Auv({eventsToIgnore:qCf,bufferSize:G.maxBreadcrumbs})};
u7W=function(G){return new Promise(function(H){window.setTimeout(H,G)})};
Bwu=function(G){var H={bicf:function(l){G.k3I=l},
blc:function(){return G.getLatestChallengeResponse()},
bcr:function(l){G.w5y.push(l)}},Z=window;
Z.ntpevasrs=H;if(Z.ntpqfbel!==void 0)for(var Q=_.I(Z.ntpqfbel),p=Q.next();!p.done;p=Q.next())p=p.value,p(H);Z.ntpqfbel=void 0};
J2j=function(G){return _.S(function(H){if(H.nextAddress==1)return _.XV(H,2),H.yield(G.iSx(),4);if(H.nextAddress!=2)return _.Za(H,0);_.Wg(H);_.K0(H)})};
tHb=function(G){var H,Z;(H=G.ytcsi)==null||(Z=H.tick)==null||Z.call(H,"pot_ist")};
kd2=function(G){if(G instanceof Error){var H=_.GF("yt.logging.errors.log");H&&H(G,"WARNING")}};
D0f=function(G){try{var H=JSON.parse(G);if(H.bgChallenge)return H}catch(Z){}};
eU2=function(){var G=window,H={networkStatusManagerPromise:_.tp().resolve(new Fjf(_.sN)),initialChallengeSli:_.V("wpo_att_sli")?new _.cSR("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};G=G===void 0?window:G;var Z=G.ytAtR,Q;H==null||(Q=H.initialChallengeSli)==null||_.G1(Q);if(Z){if(Z=D0f(Z)){var p;H==null||(p=H.initialChallengeSli)==null||_.HM(p,"SUCCESS");d0o(Z,H)}G.ytAtR=void 0}else G.ytAtRC=function(l){if(l=D0f(l)){var q;H==null||(q=H.initialChallengeSli)==null||
_.HM(q,"SUCCESS");d0o(l,H);G.ytAtRC=void 0}}};
$0o=function(){if(nmb)return nmb;try{var G=_.z$("IFRAME");_.bI(G,_.VB(VHe));G.sandbox.add("allow-same-origin");G.style.display="none";document.body.appendChild(G);return nmb=G}catch(H){G=new _.C$("Failed to create sandbox iframe"),_.me(G)}};
Xoo=function(G){var H,Z;return(Z=G==null?void 0:(H=G.contentWindow)==null?void 0:H.fetch)!=null?Z:window.fetch};
c22=function(G){var H,Z;return(Z=G==null?void 0:(H=G.contentWindow)==null?void 0:H.Request)!=null?Z:window.Request};
TwX=function(G){var H,Z;return(Z=G==null?void 0:(H=G.contentWindow)==null?void 0:H.TextDecoder)!=null?Z:window.TextDecoder};
f1v=function(){return function(G,H){_.xI("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[G]=H}};
vmM=function(){return function(G,H){var Z={};Z[G]=H;G=_.bW(_.hHv)(Z);Object.keys(G).length>0&&_.ee(G)}};
KMj=function(){if(lJR()==="hidden")var G="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else lJR()==="visible"&&(G="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",WM3=null);G&&zUb(G)};
zUb=function(G){if(G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||G==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(MH3===G)return;MH3=G}var H=9E4+Math.random()*2E3;if(G!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.JL()>H)&&lJR()==="visible"){H=-1;WM3&&(H=Math.round((0,_.t3)()-WM3));var Z=String;var Q=_.GF("_fact",window);Q=Q==null||Q==-1?-1:Math.max(Date.now()-Q,0);_.yR("foregroundHeartbeat",{firstActivityMs:Z(Q),clientDocumentNonce:pZj,index:String(jU2),lastEventDeltaMs:String(H),trigger:G});
_.u7("_fact",-1,window);jU2++;WM3=(0,_.t3)()}};
P8j=function(G,H,Z,Q,p,l){H=new Uint8Array(H);if(G.length===0)return H;var q=0;p=p!=null?p:G.length-1;for(var u=Z;u<=p;u++){var B=G[u],t=u===Z?Q:0,D=void 0,d=u===p?(D=l)!=null?D:B.length:B.length;B=B.subarray(t,d);H.set(B,q);q+=B.length}return H};
_.r2e=function(){try{return!!self.sessionStorage}catch(G){return!1}};
wof=function(){var G=navigator;return new Promise(function(H,Z){var Q;(Q=G.webkitTemporaryStorage)!=null&&Q.queryUsageAndQuota?G.webkitTemporaryStorage.queryUsageAndQuota(function(p,l){H({usage:p,quota:l})},function(p){Z(p)}):Z(Error("Ej"))})};
hUX=function(G,H){var Z={errorSeverity:H.errorSeverity.toString(),wizFeatureFlags:Object.entries(H.featureFlags).join("\n")};wh2(H,Z);H=H.errorSeverity;H===3?_.me(G,"ERROR",void 0,void 0,void 0,Z):H===2&&_.me(G,"WARNING",void 0,void 0,void 0,Z);_.V("cow_if_errors_in_popup")&&H===3&&G.message.indexOf("<If>")!==-1&&window.alert(G.message)};
C8o=function(G,H){var Z=yY.get(G)||{layerNode:H};Z.layerNode=H;n9j(G,Z);G.getScreenLayer=function(){return sV(Z.layerNode)}};
ixf=function(G){var H;G=G.parentNode;for(var Z;G&&((H=yY.get(G))==null||!H.isRenderer)&&!((Z=G.polymerController)!=null?Z:G).isRenderer_;)G=G.parentNode||G.host;if(H=G)return yY.get(H)};
Oxo=function(G){if(G){yY.delete(G);var H=_.tp().resolve(Jk);MWj(G,H)}};
y2o=function(G,H,Z){if(Z===void 0?0:Z){if(Z=G.getAttribute("client-ve-type"),H.data&&!H.disableReactiveLogging||Z)_.RM(function(){a12(G,_.Uv(H.data))},"tg"),_.oM(function(){return void Oxo(G)})}else typeof H.data!=="function"&&a12(G,H.data)};
a12=function(G,H){omj++;m0j(G,H)&&_.Ui.addJob(function(){_.ZG(_.Ui,function(){if(m0j(G,H)&&G.ownerDocument.documentElement===document.documentElement&&G){var Z;if(G.getAttribute("layer")){var Q=Z=Number(G.getAttribute("layer")),p=yY.get(G);p?p.layerNode.layer=Q:C8o(G,new U03(Q));(Q=ixf(G))&&(p=yY.get(G))!=null&&(p.layerNode.parent=Q.layerNode)}else if(Z=yY.get(G))Z=sV(Z.layerNode);else{Z=sV;Q=new U03;if(p=ixf(G))Q.parent=p.layerNode;C8o(G,Q);Z=Z(Q)}Z!=null||(Z=0);Q=G.getAttribute("client-ve-type");
p=Number(Q);var l=!1;Q=!1;var q=yY.get(G),u;if((u=q)&&!(u=q[RUM]!==H)&&(u=p)){var B;u=((B=yY.get(G))==null?void 0:B.clientVeType)===void 0}u&&(q[RUM]=H,l=Q=q.isRenderer=!0);yY.has(G)&&(yY.get(G).clientVeType=p);G.visualElement&&(Q=!0);if(_.V("wiz_next_ld_fix_client_ve_spec")){var t;B=((t=_.X(H==null?void 0:H.rendererContext,_.IX))==null?void 0:t.loggingDirectives)||(H==null?void 0:H.loggingDirectives)}else B=H==null?void 0:H.loggingDirectives;B&&B.clientVeSpec&&(t=Nwf(_.Qw(),G),t=_.A2f(_.gr(),B,t||
void 0,Z))&&(G.visualElement=t);!G.visualElement&&p&&l&&(G.veType=p,t=void 0,_.V("wiz_next_client_ve_parent_fix")&&(t=Nwf(_.Qw(),G)),t=_.pX(_.gr(),G,t,Z),G.visualElement=t);Q&&(t=_.tp().resolve(Jk),wcu(G,{data:H,observer:t,layer:Z,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
m0j=function(G,H){return(H==null?0:H.trackingParams)||(H==null?0:H.loggingDirectives)||_.X(H==null?void 0:H.rendererContext,_.IX)||G.getAttribute("client-ve-type")?!0:!1};
x0u=function(G,H,Z){G.componentType!==Cb&&Z instanceof HTMLElement&&H&&!_.V("cow_logging_in_component_wrapper")&&y2o(Z,H,!0)};
FMj=function(){if(!LMj){LMj=!0;var G=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.V("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:_.V("enable_wiz_context_per_component")},{handleError:hUX,enableComponentStacksInErrorMessages:!1});Object.assign(Js,G);YWu=Eme;YCj();sOj=GYU;b63=sh3}};
YCj=function(){_.V("cow_logging_in_component_wrapper")?(qYv=function(G,H){H instanceof HTMLElement&&y2o(H,G,!0)},aZe=function(){}):(qYv=function(){},aZe=x0u)};
bxv=function(G,H,Z){H=H===void 0?{}:H;var Q,p=(Q=_.X(G.commandMetadata,_.HA))==null?void 0:Q.url;Q=H.form||{};!Z||Q.element||Q.skipDefaultElement||(H.form=H.form||{},H.form.element=Z);if(p&&p!=="/service_ajax")return{type:0,command:G,form:H.form};if(_.V("kevlar_service_command_check")){if(_.rb(_.tp().resolve(_.t0),G))return Object.assign({},{type:1,command:G},H)}else{var l;if((l=_.X(G.commandMetadata,_.HA))==null?0:l.apiUrl)return Object.assign({},{type:1,command:G},H)}return{type:2,command:G,form:H.form}};
GCR=function(G){if(G.form){var H=G.form,Z=Object.assign({},H);H=H.element;Z=(delete Z.element,Z);if(H)return[_.L9(H,[G.command,Z,G.commandController])]}return[]};
Hku=function(G){if(G.form){var H=G.form,Z=Object.assign({},H);H=H.element;Z=(delete Z.element,Z);H&&_.El(H,[G.command],H,Z)}};
Zko=function(G,H,Z){var Q=new sFj(G,H),p=new Qb(G,H,Z);G={"/youtubei/v1/browse":new pM(G,H,Z),"/youtubei/v1/player":Q,"/youtubei/v1/navigation/resolve_url":new l$,"/youtubei/v1/next":p,"/youtubei/v1/guide":new gq(Z),"/youtubei/v1/search":new I6(G,H,Z),"/youtubei/v1/reel/reel_item_watch":new qW(G,H,Z),"/youtubei/v1/get_watch":new SV(Q,p)};G["/youtubei/v1/account/account_menu"]=new u$;G["/youtubei/v1/notification/get_notification_menu"]=new BM;return G};
tB=function(){var G=_.tp().resolve(_.JB);return Promise.resolve(QFj(G,_.Qf.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
pzb=function(G){return G&&(G=_.kj(_.DMf(G)))?(new URLSearchParams(G)).get("service"):null};
eV=function(G,H){_.E6(_.DG(),function(){_.$K("adl")});
_.tp().resolve(lWW)(H);G=G.root;G.loadData&&G.loadData(H);(H==null?0:H.response)?_.HM(vxe(),"SUCCESS"):_.Rp(new _.C$("Lifecycle: No response in data",_.YI("IS_SHELL_LOAD"),H?H.page:"NO_PAGE",H?H.endpoint:"NO_ENDPOINT"));G.polymerController.$["page-manager"].lazyPrepareCriticalPages((H==null?void 0:H.page)||"",H.endpoint);var Z,Q;((Q=_.X(H==null?void 0:(Z=H.endpoint)==null?void 0:Z.commandMetadata,_.HA))==null?0:Q.webPageType)&&_.mm().dispatch(_.dq(_.X(H.endpoint.commandMetadata,_.HA).webPageType))};
gSj=function(){var G,H;return _.S(function(Z){switch(Z.nextAddress){case 1:G=window;if(!G.getDataPromise){Z.jumpTo(2);break}_.XV(Z,3);return Z.yield(G.getDataPromise(),5);case 5:return Z.return(Z.yieldResult);case 3:return _.Wg(Z),Z.yield(tB(),6);case 6:return Z.return(Z.yieldResult);case 2:if(G.getInitialData)return H=G.getInitialData(),G.getInitialData=void 0,Z.return(H);throw Error("Gj`"+_.Qf.location.href);}})};
qoR=function(){_.Ae("CSI_SERVICE_NAME","youtube");_.ee({loadType:"cold"});_.V("kevlar_log_lcp")&&IWU(function(G){_.$K("lcp",G.value)})};
Sov=function(){var G=_.bY(document.location.href,"enable");G&&G.indexOf("scraper")>-1&&_.Ae("ADD_SCRAPER_ATTRIBUTES",!0)};
kCe=function(G){var H=G.root;G=[upR,Bev,_.nM];_.V("web_feedback_endpoint_autolog_allowlist_killswitch")&&G.push(_.Vb,Jme);t6u(function(Z,Q){return bxv(Z,Q,H)},function(Z){if(!Z.command)return[];
var Q;((Q=Z.form)==null?0:Q.element)?Z.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},Z.form,{endpoint:Z.command})})):H.handleNavigate(Z);return[]},G);
_.tp().addProvider({provide:_.Dk,useValue:_.HT.instance})};
dee=function(){var G={},H={},Z;for(Z in Deo){var Q=_.I(_.Ty(Deo[Z],void 0,"IAtZ7"));G[Z]=Q.next().value;H[Z]=Q.next().value}return[G,function(p){for(var l in p){var q=void 0;(q=H[l])==null||q(p[l])}}]};
_.XW=function(G,H,Z){H=H===void 0?!1:H;var Q=_.oN.getValueByKeys(G,"contents","twoColumnWatchNextResults","results","results","contents"),p=_.oN.getValueByKeys(G,"contents","twoColumnWatchNextResults","playlist","playlist")||null;H&&(p=null);var l=H=null;if(p)H=_.oN.getValueByKeys(p,"titleText"),l=_.oN.unsafeClone(_.oN.getValueByKeys(p,"longBylineText")),Q="",l&&(Q=_.yn(l)),l=_.aq(Q);else if(Q){Q=_.I(Q);for(var q=Q.next();!q.done;q=Q.next())q=q.value,q.videoPrimaryInfoRenderer&&(H=_.oN.getValueByKeys.apply(_.oN,
[q].concat(_.OP(eTb)))),q.videoSecondaryInfoRenderer&&(l=_.oN.getValueByKeys.apply(_.oN,[q].concat(_.OP(nSf))))}else _.HU(Error("Lj"));var u;G.currentVideoEndpoint?u=G.currentVideoEndpoint:_.HU(Error("Mj"));var B;Z&&(B=_.oN.getValueByKeys(Z,"playabilityStatus","miniplayer","miniplayerRenderer"));G={miniplayerTitle:H,miniplayerSubtitle:l,watchEndpoint:u,playlistData:p};B&&(G.miniplayerRenderer=B);return G};
V6f=function(G){if(G)return _.Vw(G)};
_.$e2=function(){return{isFullscreen:function(){throw Error("Nj");},
toggleFullscreen:function(){throw Error("Oj");},
exitFullscreen:function(){throw Error("Pj");},
isAutonavEnabled:function(){throw Error("Qj");},
setAutonavEnabled:function(){throw Error("Rj");},
isAutoplaySetExplicitly:function(){throw Error("Sj");}}};
Xzb=function(G){return G.videoDuration?G.numTaps>1&&G.tapDirection!==0?_.cM(G.draggedTime/G.videoDuration,0,1):_.cM((G.playedTime||0)/G.videoDuration,0,1):0};
cmo=function(G){return G.videoDuration?G.isDragging||G.numTaps>1&&G.tapDirection!==0?_.cM(G.draggedTime/G.videoDuration,0,1):_.cM((G.playedTime||0)/G.videoDuration,0,1):0};
fWj=function(G){var H,Z,Q;return _.X(G==null?void 0:(H=G.markersMap)==null?void 0:(Z=H.find(function(p){return p.key==="HEATSEEKER"}))==null?void 0:(Q=Z.value)==null?void 0:Q.heatmap,Teo)};
vSW=function(G){var H,Z;return(Z=(H=fWj(G))==null?void 0:H.heatMarkersDecorations)!=null?Z:[]};
WZj=function(G){if(_.V("mweb_supported_chapters_killswitch"))return!0;var H;return!!(G==null?0:(H=G.markersMap)==null?0:H.find(function(Z){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(Z.key)}))};
_.zTf=function(G){var H=Object,Z=H.assign,Q;G={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(Q=G==null?void 0:G.getPlayerState())!=null?Q:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return Z.call(H,{},{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,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},G,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
KZj=function(G){return function(H){var Z=G(),Q,p=(Q=Z.playerApi)==null?void 0:Q.getPlayerState();H&&H!==Z.playerState&&(H===1||H===2)&&Z.setState({playerState:p})}};
jFj=function(G){return function(H){var Z=G(),Q=Z.playerApi;Q&&(H==null?void 0:H.type)==="newdata"&&(M62&&(clearTimeout(M62),M62=void 0),_.V("web_shorts_use_progress_state_for_gapless")?(H=Q==null?void 0:Q.getProgressState(H==null?void 0:H.playertype),H=H.seekableEnd-H.seekableStart):H=Q==null?void 0:Q.getDuration(H==null?void 0:H.playertype),Z.setState({playedTime:0,videoDuration:H}))}};
Pm2=function(G){return function(H){var Z=G(),Q=Z.playerApi;if(Q){var p=Q.getPresentingPlayerType();_.V("web_shorts_use_progress_state_for_gapless")?(Q=Q.getProgressState(p),Q=Q.seekableEnd-Q.seekableStart):Q=Q.getDuration(p);Z.setState({playedTime:H,videoDuration:Q})}}};
wzf=function(G){_.tl(112394,G,function(){return rmj},function(H){rmj=H})};
ik3=function(G,H){if(!G)return[];var Z,Q,p;G=((Z=G.markersMap)==null?void 0:(Q=Z.find(function(l){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(l.key)}))==null?void 0:(p=Q.value)==null?void 0:p.chapters)||[];
!hTv(G)||(H==null?0:H.ignoreStub)||(G=[CmX()].concat(_.OP(G)));return G};
CmX=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
hTv=function(G){if(G.length===0)return!1;var H;return((H=_.X(G[0],T1))==null?void 0:H.timeRangeStartMillis)!==0};
fM=function(G){return G?G.timeRangeStartMillis||0:0};
aWf=function(G,H){if(G.isDragging&&H)return G=Ok2(G,H),G===-1?CmX():ik3(H)[G]};
Ok2=function(G,H){return G.isDragging&&H?ik3(H,{ignoreStub:!0}).findIndex(function(Z,Q,p){Z=ymX(G);return oSb(Z,p,Q).scrubberHovering}):-1};
ymX=function(G){return Object.assign({},G,{videoDuration:G.videoDuration*1E3,playedTime:G.playedTime*1E3,draggedTime:G.draggedTime*1E3})};
oSb=function(G,H,Z){var Q=fM(_.X(H[Z],T1));H=fM(_.X(H[Z+1],T1))||G.videoDuration;Z=G.isDragging;var p;if(p=G.isDragging)p=G.draggedTime,p=p!==null&&p>=Q&&p<H;var l=G.playedTime;return l!==null&&l>=Q&&l<H?{videoPosition:"active",isScrubbing:Z,scrubberHovering:p}:G.playedTime<Q?{videoPosition:"pending",isScrubbing:Z,scrubberHovering:p}:{videoPosition:"seen",isScrubbing:Z,scrubberHovering:p}};
me2=function(G,H){return G.videoPosition==="seen"||(H===void 0?0:H)>0};
Uef=function(G,H,Z){H=G/H.storyboardInterval;var Q=ik3(Z);if(!Q.length)return-H*72;Z=0;Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next())if(fM(_.X(p.value,T1))/1E3<G)Z++;else break;return-(H*72)-Z*56};
RTb=function(G){return G?G.width/G.columns:0};
NeR=function(G){return G.isHovering?G.hoveredTime:G.draggedTime};
AmW=function(G,H){G=G.draggedTime*1E3;return G>=H.visibleTimeRangeStartMillis&&G<=H.visibleTimeRangeEndMillis};
_.xef=function(G){if(G===void 0||Number.isNaN(G))return"--:--";var H=Math.abs(Math.floor(G)),Z=Math.floor(H/86400),Q=Math.floor(H%86400/3600),p=Math.floor(H%3600/60);H=Math.floor(H%60);var l="";Z>0&&(l+=Z+":",Q<10&&(l+="0"));if(Z>0||Q>0)l+=Q+":",p<10&&(l+="0");l+=p+":";H<10&&(l+="0");l+=H;return G>=0?l:"-"+l};
LZo=function(G,H){return function(){var Z=NeR(G());var Q=H();var p=G().playerApi;if(p&&p.getNumberOfStoryboardLevels()!==0){var l=p.getStoryboardFrameIndex(Z,1);l!==-1?Q=p.getStoryboardFrame(l,1):(Z=p.getStoryboardFrameIndex(Z,0),p=p.getStoryboardFrame(Z,0),Q&&p&&(p.height*=3,p.width*=3),Q=p)}else Q=null;if(!Q)return null;H()&&(Q.width=90*Q.columns,Q.height=160*Q.rows);return Q}};
_.vM=function(G){if(!G||G.getVideoData)return G};
ESf=function(){var G;return{playerApi:(G=_.HV())!=null?G:void 0}};
You=function(G){var H;_.S(function(Z){if(Z.nextAddress==1)return Z.yield(_.Gk(),2);if(H=Z.yieldResult)H.unMute(!0),H.setVolume(G,!0);_.K0(Z)})};
FZU=function(G,H){G&&(G.value=""+H,G.style.setProperty("--gradient-percent",H+"%"))};
bkM=function(G){var H;return(H=G==null?void 0:G.value)!=null?H:0};
GrU=function(){var G;_.S(function(H){if(H.nextAddress==1)return H.yield(_.Gk(),2);G=H.yieldResult;if(!G)return H.return();G.isMuted()?G.unMute(!0):G.mute(!0);_.K0(H)})};
HjM=function(G){var H=_.tp().resolve(_.WM).getPlayerElement();H&&G&&(G===1?H.pause():H.play())};
sCb=function(G){_.xk(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Zjb=function(G){_.xk(G,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
pHf=function(G){return _.az(G.document.body,function(){return _.J(QCX,null)},"hh")};
llf=function(){var G=window.performance.getEntriesByType("navigation");return G?G.map(function(H){return H.type}).includes("reload"):!1};
txf=function(){z1(z1(z1(z1(z1(z1(z1(_.tp().resolve(_.KM),_.gDe),_.Ilf),_.qbu),_.SbU),_.uJf),_.BCU),_.JKf)};
kr3=function(G,H){H=H===void 0?!1:H;var Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return H||!_.V("kevlar_shorts_seedless_retry_initial_load")||(Z=window,Q=!(!Z.getDataPromise&&!Z.getInitialData),Q)?q.yield(gSj(),2):(setTimeout(kr3.bind(window,G,!0),1E3),q.return());if(q.nextAddress!=3)return p=q.yieldResult,q.yield(Dr3(p),3);l=q.yieldResult;eV(G,l);_.K0(q)})};
Dr3=function(G){var H;if((H=G.response)==null||!H.replacementEndpoint)return _.Yk(G);H=_.tp().resolve(_.JB);G=G.response;_.X(G.replacementEndpoint,_.uS)&&G.sequenceContinuation&&(_.X(G.replacementEndpoint,_.uS).sequenceParams=G.sequenceContinuation);return MW(H,G.replacementEndpoint,{},_.Qf.location.href,"shorts",function(){},function(){return!1})};
etR=function(G){var H=_.tp().resolve(drj);G.playerResponse&&H.handleResponse(G.playerResponse);G.response&&H.handleResponse(G.response)};
nDf=function(G){var H=_.mm(),Z,Q=_.X((Z=G.response)==null?void 0:Z.frameworkUpdates,CI),p;Z=_.X((p=G.playerResponse)==null?void 0:p.frameworkUpdates,CI);var l;G=_.X((l=G.reelWatchSequenceResponse)==null?void 0:l.frameworkUpdates,CI);Q&&_.lX(Q,H);Z&&_.lX(Z,H);G&&_.lX(G,H)};
Vxo=function(G){var H;_.V("enable_redirect_linking_for_desktop_web_client")&&((H=window.location.hash)==null?0:H.includes("redirect_state"))&&G.url&&(G.url=G.url.toString()+window.location.hash)};
cKj=function(G){var H=_.tp(),Z=H.resolve(_.JB);H=H.resolve(_.$rj);G.endpoint&&(Z=XHj(Z,G.endpoint),Z.content&&G.response&&_.jV(H,G.response,Z.content),Z.player&&G.playerResponse&&_.jV(H,G.playerResponse,Z.player),Z.reelSequence&&G.reelWatchSequenceResponse&&_.jV(H,G.reelWatchSequenceResponse,Z.reelSequence))};
PM=function(G,H){etR(H);nDf(H);var Z;(H==null?0:H.url)&&((Z=window.location.hash)==null?0:Z.includes("redirect_state"))&&(Vxo(H),(Z=pzb(H.url))&&_.AZ(G.root,"yt-initialize-third-party",[Z,H]));cKj(H);Z=_.tp();var Q=Z.resolve(TCf);H.playerResponse&&Z.resolve(flf).handleResponse(H.playerResponse);if(H.playerResponse){Z=void 0;if(_.V("ab_v_vid_sig")&&H.endpoint){var p,l=(p=_.X(H.endpoint,_.hZ))!=null?p:_.X(H.endpoint,_.uS);l&&(Z=l.videoId)}vDU(Q,H.playerResponse,Z)}H.playerResponse&&bdf(H.playerResponse)&&
_.V("web_enable_ab_rsp_cl")?r8W().then(function(){WYb(Q,H.playerResponse);eV(G,H)}):eV(G,H)};
KYe=function(G){if(G=G.root.data){var H=_.tp().resolve(zte);G.endpoint&&(G.response&&H.handleResponse(G.response,void 0,document.querySelector("ytd-app")),G.playerResponse&&H.handleResponse(G.playerResponse),G.reelWatchSequenceResponse&&H.handleResponse(G.reelWatchSequenceResponse))}};
Mxv=function(G){var H,Z,Q,p,l,q;return _.S(function(u){switch(u.nextAddress){case 1:H=window;if(!H.getDataPromise){u.jumpTo(2);break}_.XV(u,3);return u.yield(H.getDataPromise(),5);case 5:Z=u.yieldResult;PM(G,Z);_.Za(u,4);break;case 3:return _.Wg(u),u.yield(tB(),6);case 6:Q=u.yieldResult,eV(G,Q);case 4:return u.return();case 2:if(!_.V("sw_nav_preload_pbj")){u.jumpTo(7);break}H.fetchInitialData=function(){var B;return _.S(function(t){if(t.nextAddress==1)return t.yield(tB(),2);B=t.yieldResult;eV(G,B);
_.K0(t)})};
if(H.getInitialData){H.loadInitialData=function(B){PM(G,B)};
p=H.getInitialData();H.getInitialData=void 0;PM(G,p);u.jumpTo(8);break}H.fetchInitialData=void 0;return u.yield(tB(),9);case 9:l=u.yieldResult,eV(G,l);case 8:return u.return();case 7:H.getInitialData?(q=H.getInitialData(),H.getInitialData=void 0,PM(G,q)):H.loadInitialData=function(B){PM(G,B)},_.K0(u)}})};
Pvj=function(){var G=new jCb;_.xYo(G);G.registerInitializationCallback(function(){ZAb(void 0,void 0,void 0,_.V("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
G.registerCallback("error",function(H,Z,Q){_.FU(Error("Wj`"+Z+"`"+Q))})};
rKf=function(G){var H=0;return function(){return H<G.length?{done:!1,value:G[H++]}:{done:!0}}};
wHu=typeof Object.defineProperties=="function"?Object.defineProperty:function(G,H,Z){if(G==Array.prototype||G==Object.prototype)return G;G[H]=Z.value;return G};
htM=function(G){G=["object"==typeof globalThis&&globalThis,G,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var H=0;H<G.length;++H){var Z=G[H];if(Z&&Z.Math==Math)return Z}throw Error("a");};
_.u4=htM(this);Cve="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.u4.BigInt64Array&&(Cve.push("BigInt64"),Cve.push("BigUint64"));var OjM=function(G,H){if(H)for(var Z=0;Z<Cve.length;Z++)iju(Cve[Z]+"Array.prototype."+G,H)},rq=function(G,H){H&&iju(G,H)},iju=function(G,H){var Z=_.u4;
G=G.split(".");for(var Q=0;Q<G.length-1;Q++){var p=G[Q];if(!(p in Z))return;Z=Z[p]}G=G[G.length-1];Q=Z[G];H=H(Q);H!=Q&&H!=null&&wHu(Z,G,{configurable:!0,writable:!0,value:H})};
rq("Symbol",function(G){if(G)return G;var H=function(l,q){this.$jscomp$symbol$id_=l;wHu(this,"description",{configurable:!0,writable:!0,value:q})};
H.prototype.toString=function(){return this.$jscomp$symbol$id_};
var Z="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Q=0,p=function(l){if(this instanceof p)throw new TypeError("b");return new H(Z+(l||"")+"_"+Q++,l)};
return p});
rq("Symbol.iterator",function(G){if(G)return G;G=Symbol("c");wHu(Array.prototype,G,{configurable:!0,writable:!0,value:function(){return ale(rKf(this))}});
return G});
rq("Symbol.asyncIterator",function(G){return G?G:Symbol("d")});
var ale=function(G){G={next:G};G[Symbol.iterator]=function(){return this};
return G},yKu=typeof Object.create=="function"?Object.create:function(G){var H=function(){};
H.prototype=G;return new H},oDo=function(){function G(){function Z(){}
new Z;Reflect.construct(Z,[],function(){});
return new Z instanceof Z}
if(typeof Reflect!="undefined"&&Reflect.construct){if(G())return Reflect.construct;var H=Reflect.construct;return function(Z,Q,p){Z=H(Z,Q);p&&Reflect.setPrototypeOf(Z,p.prototype);return Z}}return function(Z,Q,p){p===void 0&&(p=Z);
p=yKu(p.prototype||Object.prototype);return Function.prototype.apply.call(Z,p,Q)||p}}(),mrf;
if(typeof Object.setPrototypeOf=="function")mrf=Object.setPrototypeOf;else{var Urj;a:{var Rtb={a:!0},NCW={};try{NCW.__proto__=Rtb;Urj=NCW.a;break a}catch(G){}Urj=!1}mrf=Urj?function(G,H){G.__proto__=H;if(G.__proto__!==H)throw new TypeError("e`"+G);return G}:null}wq=mrf;
_.T=function(G,H){G.prototype=yKu(H.prototype);G.prototype.constructor=G;if(wq)wq(G,H);else for(var Z in H)if(Z!="prototype")if(Object.defineProperties){var Q=Object.getOwnPropertyDescriptor(H,Z);Q&&Object.defineProperty(G,Z,Q)}else G[Z]=H[Z];G.superClass_=H.prototype};
_.I=function(G){var H=typeof Symbol!="undefined"&&Symbol.iterator&&G[Symbol.iterator];if(H)return H.call(G);if(typeof G.length=="number")return{next:rKf(G)};throw Error("f`"+String(G));};
lV=function(G){for(var H,Z=[];!(H=G.next()).done;)Z.push(H.value);return Z};
_.OP=function(G){return G instanceof Array?G:lV(_.I(G))};
_.CM=function(G){return hB(G,G)};
hB=function(G,H){G.raw=H;Object.freeze&&(Object.freeze(G),Object.freeze(H));return G};
i$=function(G,H){return Object.prototype.hasOwnProperty.call(G,H)};
AKf=function(G){if(G==null)throw new TypeError("g");return Object(G)};
xrW=typeof Object.assign=="function"?Object.assign:function(G,H){G=AKf(G);for(var Z=1;Z<arguments.length;Z++){var Q=arguments[Z];if(Q)for(var p in Q)i$(Q,p)&&(G[p]=Q[p])}return G};
rq("Object.assign",function(G){return G||xrW});
var OV=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},LYR=function(G){if(G.isRunning_)throw new TypeError("i");
G.isRunning_=!0};
OV.prototype.JSC$8729_next_=function(G){this.yieldResult=G};
var EDf=function(G,H){G.abruptCompletion_={exception:H,isException:!0};G.nextAddress=G.catchAddress_||G.finallyAddress_};
OV.prototype.return=function(G){this.abruptCompletion_={return:G};this.nextAddress=this.finallyAddress_};
OV.prototype.yield=function(G,H){this.nextAddress=H;return{value:G}};
OV.prototype.jumpTo=function(G){this.nextAddress=G};
_.K0=function(G){G.nextAddress=0};
_.XV=function(G,H,Z){G.catchAddress_=H;Z!=void 0&&(G.finallyAddress_=Z)};
_.f0=function(G,H){G.catchAddress_=0;G.finallyAddress_=H||0};
_.Za=function(G,H,Z){G.nextAddress=H;G.catchAddress_=Z||0};
_.Wg=function(G,H){G.catchAddress_=H||0;H=G.abruptCompletion_.exception;G.abruptCompletion_=null;return H};
_.TO=function(G,H,Z,Q){Q?G.finallyContexts_[Q]=G.abruptCompletion_:G.finallyContexts_=[G.abruptCompletion_];G.catchAddress_=H||0;G.finallyAddress_=Z||0};
_.vg=function(G,H,Z){Z=G.finallyContexts_.splice(Z||0)[0];(Z=G.abruptCompletion_=G.abruptCompletion_||Z)?Z.isException?G.nextAddress=G.catchAddress_||G.finallyAddress_:Z.jumpTo!=void 0&&G.finallyAddress_<Z.jumpTo?(G.nextAddress=Z.jumpTo,G.abruptCompletion_=null):G.nextAddress=G.finallyAddress_:G.nextAddress=H};
YbR=function(G){this.JSC$8734_context_=new OV;this.program_=G};
bjf=function(G,H){LYR(G.JSC$8734_context_);var Z=G.JSC$8734_context_.yieldAllIterator_;if(Z)return FYu(G,"return"in Z?Z["return"]:function(Q){return{value:Q,done:!0}},H,G.JSC$8734_context_.return);
G.JSC$8734_context_.return(H);return a6(G)};
FYu=function(G,H,Z,Q){try{var p=H.call(G.JSC$8734_context_.yieldAllIterator_,Z);if(!(p instanceof Object))throw new TypeError("h`"+p);if(!p.done)return G.JSC$8734_context_.isRunning_=!1,p;var l=p.value}catch(q){return G.JSC$8734_context_.yieldAllIterator_=null,EDf(G.JSC$8734_context_,q),a6(G)}G.JSC$8734_context_.yieldAllIterator_=null;Q.call(G.JSC$8734_context_,l);return a6(G)};
a6=function(G){for(;G.JSC$8734_context_.nextAddress;)try{var H=G.program_(G.JSC$8734_context_);if(H)return G.JSC$8734_context_.isRunning_=!1,{value:H.value,done:!1}}catch(Z){G.JSC$8734_context_.yieldResult=void 0,EDf(G.JSC$8734_context_,Z)}G.JSC$8734_context_.isRunning_=!1;if(G.JSC$8734_context_.abruptCompletion_){H=G.JSC$8734_context_.abruptCompletion_;G.JSC$8734_context_.abruptCompletion_=null;if(H.isException)throw H.exception;return{value:H.return,done:!0}}return{value:void 0,done:!0}};
GoN=function(G){this.next=function(H){LYR(G.JSC$8734_context_);G.JSC$8734_context_.yieldAllIterator_?H=FYu(G,G.JSC$8734_context_.yieldAllIterator_.next,H,G.JSC$8734_context_.JSC$8729_next_):(G.JSC$8734_context_.JSC$8729_next_(H),H=a6(G));return H};
this.throw=function(H){LYR(G.JSC$8734_context_);G.JSC$8734_context_.yieldAllIterator_?H=FYu(G,G.JSC$8734_context_.yieldAllIterator_["throw"],H,G.JSC$8734_context_.JSC$8729_next_):(EDf(G.JSC$8734_context_,H),H=a6(G));return H};
this.return=function(H){return bjf(G,H)};
this[Symbol.iterator]=function(){return this}};
_.Fy=function(G,H){H=new GoN(new YbR(H));wq&&G.prototype&&wq(H,G.prototype);return H};
HWw=function(G){function H(Q){return G.next(Q)}
function Z(Q){return G.throw(Q)}
return new Promise(function(Q,p){function l(q){q.done?Q(q.value):Promise.resolve(q.value).then(H,Z).then(l,p)}
l(G.next())})};
_.S=function(G){return HWw(new GoN(new YbR(G)))};
_.cg=function(G){var H=G[Symbol.asyncIterator];return H!==void 0?H.call(G):new sut(_.I(G))};
sut=function(G){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return G};
this.next=function(H){return Promise.resolve(G.next(H))};
this["throw"]=function(H){return new Promise(function(Z,Q){var p=G["throw"];p!==void 0?Z(p.call(G,H)):(Z=G["return"],Z!==void 0&&Z.call(G),Q(new TypeError("j")))})};
G["return"]!==void 0&&(this["return"]=function(H){return Promise.resolve(G["return"](H))})};
_.Ry=function(){for(var G=Number(this),H=[],Z=G;Z<arguments.length;Z++)H[Z-G]=arguments[Z];return H};
_.bL=function(G){return G};
rq("globalThis",function(G){return G||_.u4});
rq("Reflect",function(G){return G?G:{}});
rq("Reflect.construct",function(){return oDo});
rq("Reflect.setPrototypeOf",function(G){return G?G:wq?function(H,Z){try{return wq(H,Z),!0}catch(Q){return!1}}:null});
rq("Promise",function(G){function H(){this.batch_=null}
function Z(q){return q instanceof p?q:new p(function(u){u(q)})}
if(G&&(typeof _.u4.PromiseRejectionEvent!=="undefined"||!_.u4.Promise||_.u4.Promise.toString().indexOf("[native code]")===-1))return G;H.prototype.asyncExecute=function(q){if(this.batch_==null){this.batch_=[];var u=this;this.asyncExecuteFunction(function(){u.executeBatch_()})}this.batch_.push(q)};
var Q=_.u4.setTimeout;H.prototype.asyncExecuteFunction=function(q){Q(q,0)};
H.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var q=this.batch_;this.batch_=[];for(var u=0;u<q.length;++u){var B=q[u];q[u]=null;try{B()}catch(t){this.asyncThrow_(t)}}}this.batch_=null};
H.prototype.asyncThrow_=function(q){this.asyncExecuteFunction(function(){throw q;})};
var p=function(q){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var u=this.createResolveAndReject_();try{q(u.resolve,u.reject)}catch(B){u.reject(B)}};
p.prototype.createResolveAndReject_=function(){function q(t){return function(D){B||(B=!0,t.call(u,D))}}
var u=this,B=!1;return{resolve:q(this.resolveTo_),reject:q(this.JSC$8762_reject_)}};
p.prototype.resolveTo_=function(q){if(q===this)this.JSC$8762_reject_(new TypeError("n"));else if(q instanceof p)this.settleSameAsPromise_(q);else{a:switch(typeof q){case "object":var u=q!=null;break a;case "function":u=!0;break a;default:u=!1}u?this.resolveToNonPromiseObj_(q):this.fulfill_(q)}};
p.prototype.resolveToNonPromiseObj_=function(q){var u=void 0;try{u=q.then}catch(B){this.JSC$8762_reject_(B);return}typeof u=="function"?this.settleSameAsThenable_(u,q):this.fulfill_(q)};
p.prototype.JSC$8762_reject_=function(q){this.settle_(2,q)};
p.prototype.fulfill_=function(q){this.settle_(1,q)};
p.prototype.settle_=function(q,u){if(this.state_!=0)throw Error("o`"+q+"`"+u+"`"+this.state_);this.state_=q;this.result_=u;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
p.prototype.scheduleUnhandledRejectionCheck_=function(){var q=this;Q(function(){if(q.notifyUnhandledRejection_()){var u=_.u4.console;typeof u!=="undefined"&&u.error(q.result_)}},1)};
p.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var q=_.u4.CustomEvent,u=_.u4.Event,B=_.u4.dispatchEvent;if(typeof B==="undefined")return!0;typeof q==="function"?q=new q("unhandledrejection",{cancelable:!0}):typeof u==="function"?q=new u("unhandledrejection",{cancelable:!0}):(q=_.u4.document.createEvent("CustomEvent"),q.initCustomEvent("unhandledrejection",!1,!0,q));q.promise=this;q.reason=this.result_;return B(q)};
p.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var q=0;q<this.onSettledCallbacks_.length;++q)l.asyncExecute(this.onSettledCallbacks_[q]);this.onSettledCallbacks_=null}};
var l=new H;p.prototype.settleSameAsPromise_=function(q){var u=this.createResolveAndReject_();q.callWhenSettled_(u.resolve,u.reject)};
p.prototype.settleSameAsThenable_=function(q,u){var B=this.createResolveAndReject_();try{q.call(u,B.resolve,B.reject)}catch(t){B.reject(t)}};
p.prototype.then=function(q,u){function B(e,n){return typeof e=="function"?function(c){try{t(e(c))}catch(W){D(W)}}:n}
var t,D,d=new p(function(e,n){t=e;D=n});
this.callWhenSettled_(B(q,t),B(u,D));return d};
p.prototype.catch=function(q){return this.then(void 0,q)};
p.prototype.callWhenSettled_=function(q,u){function B(){switch(t.state_){case 1:q(t.result_);break;case 2:u(t.result_);break;default:throw Error("p`"+t.state_);}}
var t=this;this.onSettledCallbacks_==null?l.asyncExecute(B):this.onSettledCallbacks_.push(B);this.isRejectionHandled_=!0};
p.resolve=Z;p.reject=function(q){return new p(function(u,B){B(q)})};
p.race=function(q){return new p(function(u,B){for(var t=_.I(q),D=t.next();!D.done;D=t.next())Z(D.value).callWhenSettled_(u,B)})};
p.all=function(q){var u=_.I(q),B=u.next();return B.done?Z([]):new p(function(t,D){function d(c){return function(W){e[c]=W;n--;n==0&&t(e)}}
var e=[],n=0;do e.push(void 0),n++,Z(B.value).callWhenSettled_(d(e.length-1),D),B=u.next();while(!B.done)})};
return p});
var yb=function(G,H,Z){if(G==null)throw new TypeError("q`"+Z);if(H instanceof RegExp)throw new TypeError("r`"+Z);return G+""};
rq("String.prototype.startsWith",function(G){return G?G:function(H,Z){var Q=yb(this,H,"startsWith"),p=Q.length,l=H.length;Z=Math.max(0,Math.min(Z|0,Q.length));for(var q=0;q<l&&Z<p;)if(Q[Z++]!=H[q++])return!1;return q>=l}});
rq("Object.setPrototypeOf",function(G){return G||wq});
rq("Symbol.dispose",function(G){return G?G:Symbol("s")});
rq("SuppressedError",function(G){function H(Z,Q,p){if(!(this instanceof H))return new H(Z,Q,p);p=Error(p);"stack"in p&&(this.stack=p.stack);this.message=p.message;this.error=Z;this.suppressed=Q}
if(G)return G;_.T(H,Error);H.prototype.name="SuppressedError";return H});
rq("Array.from",function(G){return G?G:function(H,Z,Q){Z=Z!=null?Z:function(u){return u};
var p=[],l=typeof Symbol!="undefined"&&Symbol.iterator&&H[Symbol.iterator];if(typeof l=="function"){H=l.call(H);for(var q=0;!(l=H.next()).done;)p.push(Z.call(Q,l.value,q++))}else for(l=H.length,q=0;q<l;q++)p.push(Z.call(Q,H[q],q));return p}});
var ZW2=function(G,H,Z){G instanceof String&&(G=String(G));for(var Q=G.length,p=0;p<Q;p++){var l=G[p];if(H.call(Z,l,p,G))return{i:p,v:l}}return{i:-1,v:void 0}};
rq("Array.prototype.find",function(G){return G?G:function(H,Z){return ZW2(this,H,Z).v}});
rq("WeakMap",function(G){function H(){}
function Z(B){var t=typeof B;return t==="object"&&B!==null||t==="function"}
function Q(B){if(!i$(B,l)){var t=new H;wHu(B,l,{value:t})}}
function p(B){var t=Object[B];t&&(Object[B]=function(D){if(D instanceof H)return D;Object.isExtensible(D)&&Q(D);return t(D)})}
if(function(){if(!G||!Object.seal)return!1;try{var B=Object.seal({}),t=Object.seal({}),D=new G([[B,2],[t,3]]);if(D.get(B)!=2||D.get(t)!=3)return!1;D.delete(B);D.set(t,4);return!D.has(B)&&D.get(t)==4}catch(d){return!1}}())return G;
var l="$jscomp_hidden_"+Math.random();p("freeze");p("preventExtensions");p("seal");var q=0,u=function(B){this.JSC$8770_id_=(q+=Math.random()+1).toString();if(B){B=_.I(B);for(var t;!(t=B.next()).done;)t=t.value,this.set(t[0],t[1])}};
u.prototype.set=function(B,t){if(!Z(B))throw Error("t");Q(B);if(!i$(B,l))throw Error("u`"+B);B[l][this.JSC$8770_id_]=t;return this};
u.prototype.get=function(B){return Z(B)&&i$(B,l)?B[l][this.JSC$8770_id_]:void 0};
u.prototype.has=function(B){return Z(B)&&i$(B,l)&&i$(B[l],this.JSC$8770_id_)};
u.prototype.delete=function(B){return Z(B)&&i$(B,l)&&i$(B[l],this.JSC$8770_id_)?delete B[l][this.JSC$8770_id_]:!1};
return u});
rq("Map",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),B=new G(_.I([[u,"s"]]));if(B.get(u)!="s"||B.size!=1||B.get({x:4})||B.set({x:4},"t")!=B||B.size!=2)return!1;var t=B.entries(),D=t.next();if(D.done||D.value[0]!=u||D.value[1]!="s")return!1;D=t.next();return D.done||D.value[0].x!=4||D.value[1]!="t"||!t.next().done?!1:!0}catch(d){return!1}}())return G;
var H=new WeakMap,Z=function(u){this[0]={};this[1]=l();this.size=0;if(u){u=_.I(u);for(var B;!(B=u.next()).done;)B=B.value,this.set(B[0],B[1])}};
Z.prototype.set=function(u,B){u=u===0?0:u;var t=Q(this,u);t.list||(t.list=this[0][t.id]=[]);t.entry?t.entry.value=B:(t.entry={next:this[1],previous:this[1].previous,head:this[1],key:u,value:B},t.list.push(t.entry),this[1].previous.next=t.entry,this[1].previous=t.entry,this.size++);return this};
Z.prototype.delete=function(u){u=Q(this,u);return u.entry&&u.list?(u.list.splice(u.index,1),u.list.length||delete this[0][u.id],u.entry.previous.next=u.entry.next,u.entry.next.previous=u.entry.previous,u.entry.head=null,this.size--,!0):!1};
Z.prototype.clear=function(){this[0]={};this[1]=this[1].previous=l();this.size=0};
Z.prototype.has=function(u){return!!Q(this,u).entry};
Z.prototype.get=function(u){return(u=Q(this,u).entry)&&u.value};
Z.prototype.entries=function(){return p(this,function(u){return[u.key,u.value]})};
Z.prototype.keys=function(){return p(this,function(u){return u.key})};
Z.prototype.values=function(){return p(this,function(u){return u.value})};
Z.prototype.forEach=function(u,B){for(var t=this.entries(),D;!(D=t.next()).done;)D=D.value,u.call(B,D[1],D[0],this)};
Z.prototype[Symbol.iterator]=Z.prototype.entries;var Q=function(u,B){var t=B&&typeof B;t=="object"||t=="function"?H.has(B)?t=H.get(B):(t=""+ ++q,H.set(B,t)):t="p_"+B;var D=u[0][t];if(D&&i$(u[0],t))for(u=0;u<D.length;u++){var d=D[u];if(B!==B&&d.key!==d.key||B===d.key)return{id:t,list:D,index:u,entry:d}}return{id:t,list:D,index:-1,entry:void 0}},p=function(u,B){var t=u[1];
return ale(function(){if(t){for(;t.head!=u[1];)t=t.previous;for(;t.next!=t.head;)return t=t.next,{done:!1,value:B(t)};t=null}return{done:!0,value:void 0}})},l=function(){var u={};
return u.previous=u.next=u.head=u},q=0;
return Z});
rq("Set",function(G){if(function(){if(!G||typeof G!="function"||!G.prototype.entries||typeof Object.seal!="function")return!1;try{var Z=Object.seal({x:4}),Q=new G(_.I([Z]));if(!Q.has(Z)||Q.size!=1||Q.add(Z)!=Q||Q.size!=1||Q.add({x:4})!=Q||Q.size!=2)return!1;var p=Q.entries(),l=p.next();if(l.done||l.value[0]!=Z||l.value[1]!=Z)return!1;l=p.next();return l.done||l.value[0]==Z||l.value[0].x!=4||l.value[1]!=l.value[0]?!1:p.next().done}catch(q){return!1}}())return G;
var H=function(Z){this.JSC$8784_map_=new Map;if(Z){Z=_.I(Z);for(var Q;!(Q=Z.next()).done;)this.add(Q.value)}this.size=this.JSC$8784_map_.size};
H.prototype.add=function(Z){Z=Z===0?0:Z;this.JSC$8784_map_.set(Z,Z);this.size=this.JSC$8784_map_.size;return this};
H.prototype.delete=function(Z){Z=this.JSC$8784_map_.delete(Z);this.size=this.JSC$8784_map_.size;return Z};
H.prototype.clear=function(){this.JSC$8784_map_.clear();this.size=0};
H.prototype.has=function(Z){return this.JSC$8784_map_.has(Z)};
H.prototype.entries=function(){return this.JSC$8784_map_.entries()};
H.prototype.values=function(){return this.JSC$8784_map_.values()};
H.prototype.keys=H.prototype.values;H.prototype[Symbol.iterator]=H.prototype.values;H.prototype.forEach=function(Z,Q){var p=this;this.JSC$8784_map_.forEach(function(l){return Z.call(Q,l,l,p)})};
return H});
rq("Math.log2",function(G){return G?G:function(H){return Math.log(H)/Math.LN2}});
rq("Object.values",function(G){return G?G:function(H){var Z=[],Q;for(Q in H)i$(H,Q)&&Z.push(H[Q]);return Z}});
rq("Object.is",function(G){return G?G:function(H,Z){return H===Z?H!==0||1/H===1/Z:H!==H&&Z!==Z}});
rq("Array.prototype.includes",function(G){return G?G:function(H,Z){var Q=this;Q instanceof String&&(Q=String(Q));var p=Q.length;Z=Z||0;for(Z<0&&(Z=Math.max(Z+p,0));Z<p;Z++){var l=Q[Z];if(l===H||Object.is(l,H))return!0}return!1}});
rq("String.prototype.includes",function(G){return G?G:function(H,Z){return yb(this,H,"includes").indexOf(H,Z||0)!==-1}});
rq("Object.entries",function(G){return G?G:function(H){var Z=[],Q;for(Q in H)i$(H,Q)&&Z.push([Q,H[Q]]);return Z}});
rq("Number.isFinite",function(G){return G?G:function(H){return typeof H!=="number"?!1:!isNaN(H)&&H!==Infinity&&H!==-Infinity}});
rq("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
rq("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
rq("Number.isInteger",function(G){return G?G:function(H){return Number.isFinite(H)?H===Math.floor(H):!1}});
rq("Number.isSafeInteger",function(G){return G?G:function(H){return Number.isInteger(H)&&Math.abs(H)<=Number.MAX_SAFE_INTEGER}});
rq("String.prototype.endsWith",function(G){return G?G:function(H,Z){var Q=yb(this,H,"endsWith");Z===void 0&&(Z=Q.length);Z=Math.max(0,Math.min(Z|0,Q.length));for(var p=H.length;p>0&&Z>0;)if(Q[--Z]!=H[--p])return!1;return p<=0}});
var Qu4=function(G,H){G instanceof String&&(G+="");var Z=0,Q=!1,p={next:function(){if(!Q&&Z<G.length){var l=Z++;return{value:H(l,G[l]),done:!1}}Q=!0;return{done:!0,value:void 0}}};
p[Symbol.iterator]=function(){return p};
return p};
rq("Array.prototype.entries",function(G){return G?G:function(){return Qu4(this,function(H,Z){return[H,Z]})}});
rq("Math.trunc",function(G){return G?G:function(H){H=Number(H);if(isNaN(H)||H===Infinity||H===-Infinity||H===0)return H;var Z=Math.floor(Math.abs(H));return H<0?-Z:Z}});
rq("Number.isNaN",function(G){return G?G:function(H){return typeof H==="number"&&isNaN(H)}});
rq("Array.prototype.keys",function(G){return G?G:function(){return Qu4(this,function(H){return H})}});
rq("Array.prototype.values",function(G){return G?G:function(){return Qu4(this,function(H,Z){return Z})}});
rq("Array.prototype.fill",function(G){return G?G:function(H,Z,Q){var p=this.length||0;Z<0&&(Z=Math.max(0,p+Z));if(Q==null||Q>p)Q=p;Q=Number(Q);Q<0&&(Q=Math.max(0,p+Q));for(Z=Number(Z||0);Z<Q;Z++)this[Z]=H;return this}});
OjM("fill",function(G){return G?G:Array.prototype.fill});
rq("Object.fromEntries",function(G){return G?G:function(H){var Z={};if(!(Symbol.iterator in H))throw new TypeError("v`"+H);H=H[Symbol.iterator].call(H);for(var Q=H.next();!Q.done;Q=H.next()){Q=Q.value;if(Object(Q)!==Q)throw new TypeError("w");Z[Q[0]]=Q[1]}return Z}});
rq("String.prototype.replaceAll",function(G){return G?G:function(H,Z){if(H instanceof RegExp&&!H.global)throw new TypeError("x");return H instanceof RegExp?this.replace(H,Z):this.replace(new RegExp(String(H).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),Z)}});
rq("Object.getOwnPropertySymbols",function(G){return G?G:function(){return[]}});
rq("String.prototype.repeat",function(G){return G?G:function(H){var Z=yb(this,null,"repeat");if(H<0||H>1342177279)throw new RangeError("y");H|=0;for(var Q="";H;)if(H&1&&(Q+=Z),H>>>=1)Z+=Z;return Q}});
rq("Array.prototype.findIndex",function(G){return G?G:function(H,Z){return ZW2(this,H,Z).i}});
rq("Array.prototype.flatMap",function(G){return G?G:function(H,Z){var Q=[];Array.prototype.forEach.call(this,function(p,l){p=H.call(Z,p,l,this);Array.isArray(p)?Q.push.apply(Q,p):Q.push(p)});
return Q}});
rq("String.prototype.codePointAt",function(G){return G?G:function(H){var Z=yb(this,null,"codePointAt"),Q=Z.length;H=Number(H)||0;if(H>=0&&H<Q){H|=0;var p=Z.charCodeAt(H);if(p<55296||p>56319||H+1===Q)return p;H=Z.charCodeAt(H+1);return H<56320||H>57343?p:(p-55296)*1024+H+9216}}});
rq("String.fromCodePoint",function(G){return G?G:function(H){for(var Z="",Q=0;Q<arguments.length;Q++){var p=Number(arguments[Q]);if(p<0||p>1114111||p!==Math.floor(p))throw new RangeError("z`"+p);p<=65535?Z+=String.fromCharCode(p):(p-=65536,Z+=String.fromCharCode(p>>>10&1023|55296),Z+=String.fromCharCode(p&1023|56320))}return Z}});
rq("String.prototype.trimLeft",function(G){function H(){return this.replace(/^[\s\xa0]+/,"")}
return G||H});
rq("String.prototype.trimStart",function(G){return G||String.prototype.trimLeft});
rq("String.prototype.padStart",function(G){return G?G:function(H,Z){var Q=yb(this,null,"padStart");H-=Q.length;Z=Z!==void 0?String(Z):" ";return(H>0&&Z?Z.repeat(Math.ceil(H/Z.length)).substring(0,H):"")+Q}});
rq("Promise.prototype.finally",function(G){return G?G:function(H){return this.then(function(Z){return Promise.resolve(H()).then(function(){return Z})},function(Z){return Promise.resolve(H()).then(function(){throw Z;
})})}});
rq("Math.imul",function(G){return G?G:function(H,Z){H=Number(H);Z=Number(Z);var Q=H&65535,p=Z&65535;return Q*p+((H>>>16&65535)*p+Q*(Z>>>16&65535)<<16>>>0)|0}});
rq("Object.hasOwn",function(G){return G?G:function(H,Z){return Object.prototype.hasOwnProperty.call(H,Z)}});
rq("Math.sign",function(G){return G?G:function(H){H=Number(H);return H===0||isNaN(H)?H:H>0?1:-1}});
rq("Array.prototype.flat",function(G){return G?G:function(H){H=H===void 0?1:H;var Z=[];Array.prototype.forEach.call(this,function(Q){Array.isArray(Q)&&H>0?(Q=Array.prototype.flat.call(Q,H-1),Z.push.apply(Z,Q)):Z.push(Q)});
return Z}});
rq("String.raw",function(G){return G?G:function(H,Z){H=AKf(H);for(var Q=H.raw,p=Q.length,l="",q=0;q<p;++q)l+=Q[q],q+1<p&&q+1<arguments.length&&(l+=String(arguments[q+1]));return l}});
rq("WeakSet",function(G){if(function(){if(!G||!Object.seal)return!1;try{var Z=Object.seal({}),Q=Object.seal({}),p=new G([Z]);if(!p.has(Z)||p.has(Q))return!1;p.delete(Z);p.add(Q);return!p.has(Z)&&p.has(Q)}catch(l){return!1}}())return G;
var H=function(Z){this.JSC$8795_map_=new WeakMap;if(Z){Z=_.I(Z);for(var Q;!(Q=Z.next()).done;)this.add(Q.value)}};
H.prototype.add=function(Z){this.JSC$8795_map_.set(Z,!0);return this};
H.prototype.has=function(Z){return this.JSC$8795_map_.has(Z)};
H.prototype.delete=function(Z){return this.JSC$8795_map_.delete(Z)};
return H});
rq("Reflect.ownKeys",function(G){return G?G:function(H){var Z=[],Q=Object.getOwnPropertyNames(H);H=Object.getOwnPropertySymbols(H);for(var p=0;p<Q.length;p++)(Q[p].substring(0,14)=="jscomp_symbol_"?H:Z).push(Q[p]);return Z.concat(H)}});
rq("Object.getOwnPropertyDescriptors",function(G){return G?G:function(H){for(var Z={},Q=Reflect.ownKeys(H),p=0;p<Q.length;p++)Z[Q[p]]=Object.getOwnPropertyDescriptor(H,Q[p]);return Z}});
rq("Promise.allSettled",function(G){function H(Q){return{status:"fulfilled",value:Q}}
function Z(Q){return{status:"rejected",reason:Q}}
return G?G:function(Q){var p=this;Q=Array.from(Q,function(l){return p.resolve(l).then(H,Z)});
return p.all(Q)}});
rq("Number.parseInt",function(G){return G||parseInt});
_._DumpException=window._DumpException||function(G){throw G;};
window._DumpException=_._DumpException;var p3N=window.ytcsi;p3N&&typeof p3N.tick==="function"&&p3N.tick("rses_dpj");var lUG,o6,mn,UV,gRx,IUR,qja,Sjp,rk,ub_;lUG=lUG||{};_.Qf=this||self;_.u7=function(G,H,Z){G=G.split(".");Z=Z||_.Qf;for(var Q;G.length&&(Q=G.shift());)G.length||H===void 0?Z[Q]&&Z[Q]!==Object.prototype[Q]?Z=Z[Q]:Z=Z[Q]={}:Z[Q]=H};
o6=function(G,H){var Z=_.GF("WIZ_global_data.oxN3nb");G=Z&&Z[G];return G!=null?G:H};
mn=_.Qf._F_toggles_default_kevlar_base||[];UV=function(){};
UV.get=function(){return null};
_.s9u=null;_.GF=function(G,H){G=G.split(".");H=H||_.Qf;for(var Z=0;Z<G.length;Z++)if(H=H[G[Z]],H==null)return null;return H};
_.R6=function(G){G.instance_=void 0;G.getInstance=function(){return G.instance_?G.instance_:G.instance_=new G}};
_.ba=function(G){var H=typeof G;return H!="object"?H:G?Array.isArray(G)?"array":H:"null"};
_.Uj=function(G){var H=_.ba(G);return H=="array"||H=="object"&&typeof G.length=="number"};
_.AM=function(G){var H=typeof G;return H=="object"&&G!=null||H=="function"};
_.LW=function(G){return Object.prototype.hasOwnProperty.call(G,gRx)&&G[gRx]||(G[gRx]=++IUR)};
gRx="closure_uid_"+(Math.random()*1E9>>>0);IUR=0;qja=function(G,H,Z){return G.call.apply(G.bind,arguments)};
Sjp=function(G,H,Z){if(!G)throw Error();if(arguments.length>2){var Q=Array.prototype.slice.call(arguments,2);return function(){var p=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(p,Q);return G.apply(H,p)}}return function(){return G.apply(H,arguments)}};
_.Cu=function(G,H,Z){_.Cu=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?qja:Sjp;return _.Cu.apply(null,arguments)};
_.po=function(G,H){var Z=Array.prototype.slice.call(arguments,1);return function(){var Q=Z.slice();Q.push.apply(Q,arguments);return G.apply(this,Q)}};
_.NW=function(){return Date.now()};
rk=function(G){return G};
_.AB=function(G,H){function Z(){}
Z.prototype=H.prototype;G.superClass_=H.prototype;G.prototype=new Z;G.prototype.constructor=G;G.base=function(Q,p,l){for(var q=Array(arguments.length-2),u=2;u<arguments.length;u++)q[u-2]=arguments[u];return H.prototype[p].apply(Q,q)}};
ub_=function(G){return G};var Bfw,JMw;_.N=function(G,H,Z,Q){var p=arguments.length,l=p<3?H:Q===null?Q=Object.getOwnPropertyDescriptor(H,Z):Q,q;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")l=Reflect.decorate(G,H,Z,Q);else for(var u=G.length-1;u>=0;u--)if(q=G[u])l=(p<3?q(l):p>3?q(H,Z,l):q(H,Z))||l;p>3&&l&&Object.defineProperty(H,Z,l)};
_.A=function(G,H){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(G,H)};
Bfw=function(G,H){if(H!==null&&H!==void 0){if(typeof H!=="object"&&typeof H!=="function")throw new TypeError("A");if(Z===void 0){if(!Symbol.dispose)throw new TypeError("C");var Z=H[Symbol.dispose]}if(typeof Z!=="function")throw new TypeError("D");G.stack.push({value:H,dispose:Z,async:!1})}return H};
JMw=function(G){function H(l){G.error=G.hasError?new SuppressedError(l,G.error,"An error was suppressed during disposal."):l;G.hasError=!0}
function Z(){for(;Q=G.stack.pop();)try{if(!Q.async&&p===1)return p=0,G.stack.push(Q),Promise.resolve().then(Z);if(Q.dispose){var l=Q.dispose.call(Q.value);if(Q.async)return p|=2,Promise.resolve(l).then(Z,function(q){H(q);return Z()})}else p|=1}catch(q){H(q)}if(p===1)return G.hasError?Promise.reject(G.error):Promise.resolve();
if(G.hasError)throw G.error;}
var Q,p=0;Z()};var t2a="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(" ");Goj()&&t2a.push("details:not(:has(summary))");var suu=t2a.join(",");_.AB(_.sj,Error);_.sj.prototype.name="CustomError";var koG;var DXw=void 0,dXN,ejR=typeof TextDecoder!=="undefined",ubM,Sj2=typeof String.prototype.isWellFormed==="function",qjb=typeof TextEncoder!=="undefined";var nRw;_.rI=function(G){for(var H=[],Z=0,Q=0;Q<G.length;Q++){var p=G.charCodeAt(Q);p<128?H[Z++]=p:(p<2048?H[Z++]=p>>6|192:((p&64512)==55296&&Q+1<G.length&&(G.charCodeAt(Q+1)&64512)==56320?(p=65536+((p&1023)<<10)+(G.charCodeAt(++Q)&1023),H[Z++]=p>>18|240,H[Z++]=p>>12&63|128):H[Z++]=p>>12|224,H[Z++]=p>>6&63|128),H[Z++]=p&63|128)}return H};
nRw=function(G){for(var H=[],Z=0,Q=0;Z<G.length;){var p=G[Z++];if(p<128)H[Q++]=String.fromCharCode(p);else if(p>191&&p<224){var l=G[Z++];H[Q++]=String.fromCharCode((p&31)<<6|l&63)}else if(p>239&&p<365){l=G[Z++];var q=G[Z++],u=G[Z++];p=((p&7)<<18|(l&63)<<12|(q&63)<<6|u&63)-65536;H[Q++]=String.fromCharCode(55296+(p>>10));H[Q++]=String.fromCharCode(56320+(p&1023))}else l=G[Z++],q=G[Z++],H[Q++]=String.fromCharCode((p&15)<<12|(l&63)<<6|q&63)}return H.join("")};var kR=String.prototype.trim?function(G){return G.trim()}:function(G){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(G)[1]},V2a=/&/g,$XT=/</g,X32=/>/g,cMT=/"/g,Tft=/'/g,fUx=/\x00/g,vRR=/[\x00&<>"']/;var xj=!!(mn[0]>>15&1),WvG=!!(mn[0]&1024),zjT=!!(mn[0]>>16&1),Kva=!!(mn[0]&8),M22=!!(mn[0]&2),ju2=!!(mn[0]&4),PeN=!!(mn[0]&16),rMT=!!(mn[0]&128);var Vf=xj?zjT:o6(610401301,!1),w37=xj?Kva:o6(772657768,!1),hjw=xj?M22:o6(513659523,!1),Cep=xj?WvG||!ju2:o6(568333945,!0),Wqe=xj?PeN:o6(1331761403,!1),VcU=xj?WvG||!rMT:o6(748402147,!0);var Xb,iW2=_.Qf.navigator;Xb=iW2?iW2.userAgentData||null:null;var QR;_.Oj=function(G,H){return Array.prototype.indexOf.call(G,H,void 0)};
_.Zk=function(G,H,Z){Array.prototype.forEach.call(G,H,Z)};
_.LM=function(G,H,Z){return Array.prototype.filter.call(G,H,Z)};
_.mT=function(G,H,Z){return Array.prototype.map.call(G,H,Z)};
QR=function(G,H,Z){return Array.prototype.some.call(G,H,Z)};
_.UAb=function(G,H,Z){return Array.prototype.every.call(G,H,Z)};var EV=function(G){EV[" "](G);return G};
EV[" "]=function(){};
var wlj=function(G,H){try{return EV(G[H]),!0}catch(Z){}return!1},BtX=function(G,H,Z,Q){Q=Q?Q(H):H;
return Object.prototype.hasOwnProperty.call(G,Q)?G[Q]:G[Q]=Z(H)};var OWw,qh,aUN,yM2,mXx,UXd,UoX,Rjp,Nf_,AMa,q$R,LvN,ER2,Gxw,Hwx,sta;_.$b3=function(){return _.Qf.navigator||null};
OWw=kof();_.Yj=DXR();qh=c3("Edge");aUN=qh||_.Yj;_.FW=c3("Gecko")&&!(_.tM(_.nW(),"WebKit")&&!c3("Edge"))&&!(c3("Trident")||c3("MSIE"))&&!c3("Edge");_.b$=_.tM(_.nW(),"WebKit")&&!c3("Edge");yM2=_.b$&&c3("Mobile");_.oRw=_.fUo();mXx=_.vRj();UXd=(j2()?Xb.platform==="Linux":c3("Linux"))||_.Wvf();UoX=_.cMU();Rjp=Tfu();Nf_=c3("iPad");AMa=c3("iPod");_.xXt=_.P3();q$R=_.tM(_.nW(),"KaiOS");LvN=function(){var G=_.Qf.document;return G?G.documentMode:void 0};
a:{var Yjd="",Fva=function(){var G=_.nW();if(_.FW)return/rv:([^\);]+)(\)|;)/.exec(G);if(qh)return/Edge\/([\d\.]+)/.exec(G);if(_.Yj)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(G);if(_.b$)return/WebKit\/(\S+)/.exec(G);if(OWw)return/(?:Version)[ \/]?(\S+)/.exec(G)}();
Fva&&(Yjd=Fva?Fva[1]:"");if(_.Yj){var bWd=LvN();if(bWd!=null&&bWd>parseFloat(Yjd)){ER2=String(bWd);break a}}ER2=Yjd}Gxw=ER2;Hwx={};_.GW=function(G){return BtX(Hwx,G,function(){return _.DU(Gxw,G)>=0})};
if(_.Qf.document&&_.Yj){var Zwx=LvN();sta=Zwx?Zwx:parseInt(Gxw,10)||void 0}else sta=void 0;_.Qtx=sta;var AUR,xmR,pdR;_.H4=zo();AUR=Tfu()||c3("iPod");xmR=c3("iPad");pdR=_.nRW();_.sy=_.MX();_.Ed=_.ejj()&&!_.P3();var lT4,ZH,Huo,Qrb,ITw,gwp;lT4={};ZH=null;Huo=_.FW||_.b$||typeof _.Qf.btoa=="function";_.Cm=function(G,H){H===void 0&&(H=0);gwp();H=lT4[H];for(var Z=Array(Math.floor(G.length/3)),Q=H[64]||"",p=0,l=0;p<G.length-2;p+=3){var q=G[p],u=G[p+1],B=G[p+2],t=H[q>>2];q=H[(q&3)<<4|u>>4];u=H[(u&15)<<2|B>>6];B=H[B&63];Z[l++]=t+q+u+B}t=0;B=Q;switch(G.length-p){case 2:t=G[p+1],B=H[(t&15)<<2]||Q;case 1:G=G[p],Z[l]=H[G>>2]+H[(G&3)<<4|t>>4]+B+Q}return Z.join("")};
Qrb=function(G){var H="";ITw(G,function(Z){H+=String.fromCharCode(Z)});
return H};
_.CK2=function(G){var H=[];ITw(G,function(Z){H.push(Z)});
return H};
_.YR=function(G){var H=G.length,Z=H*3/4;Z%3?Z=Math.floor(Z):_.JM("=.",G[H-1])&&(Z=_.JM("=.",G[H-2])?Z-2:Z-1);var Q=new Uint8Array(Z),p=0;ITw(G,function(l){Q[p++]=l});
return p!==Z?Q.subarray(0,p):Q};
ITw=function(G,H){function Z(B){for(;Q<G.length;){var t=G.charAt(Q++),D=ZH[t];if(D!=null)return D;if(!_.ue(t))throw Error("H`"+t);}return B}
gwp();for(var Q=0;;){var p=Z(-1),l=Z(0),q=Z(64),u=Z(64);if(u===64&&p===-1)break;H(p<<2|l>>4);q!=64&&(H(l<<4&240|q>>2),u!=64&&H(q<<6&192|u))}};
gwp=function(){if(!ZH){ZH={};for(var G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),H=["+/=","+/","-_=","-_.","-_"],Z=0;Z<5;Z++){var Q=G.concat(H[Z].split(""));lT4[Z]=Q;for(var p=0;p<Q.length;p++){var l=Q[p];ZH[l]===void 0&&(ZH[l]=p)}}}};var Fve=typeof Uint8Array!=="undefined",oRW=!_.Yj&&typeof btoa==="function",mXo=/[-_.]/g,aUj={"-":"+",_:"/",".":"="},M7={};var Wd,SRw;Wd=function(G,H){if(H!==M7)throw Error("J");this.JSC$8829_value_=G;if(G!=null&&G.length===0)throw Error("I");};
_.jp=function(){return qRG||(qRG=new Wd(null,M7))};
SRw=function(G){return new Uint8Array(ma2(G)||0)};
Wd.prototype.isEmpty=function(){return this.JSC$8829_value_==null};
Wd.prototype.sizeBytes=function(){var G=ma2(this);return G?G.length:0};
var ma2=function(G){if(M7!==M7)throw Error("J");var H=G.JSC$8829_value_;H==null||Fve&&H!=null&&H instanceof Uint8Array||(typeof H==="string"?H=UX3(H):(_.ba(H),H=null));return H==null?H:G.JSC$8829_value_=H},qRG;var NfM=void 0;var Q4=typeof Symbol==="function"&&typeof Symbol()==="symbol",uap=ZT("jas",void 0,!0),aTR=ZT(void 0,"0di"),ZM=ZT(void 0,"1oa"),wk=ZT(void 0,Symbol()),sjv=ZT(void 0,"0ub"),Qj3=ZT(void 0,"0ubs"),fMU=ZT(void 0,"0ubsb"),XDX=ZT(void 0,"0actk"),fm=ZT("m_m","messagePrototypeMarker",!0),k8X=ZT(void 0,"vps"),bwu=ZT();var Lvj,xXu,Lm,BGN;Lvj={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};xXu=Object.defineProperties;_.pw=Q4?uap:"internalArrayState";BGN=[];q7(BGN,7);Lm=Object.freeze(BGN);var z8={},cd={},J_w=function(G,H,Z){this.iterable=G;this.mapper=H;this.thisArg=Z};
J_w.prototype.next=function(){var G=this.iterable.next();G.done||(G.value=this.mapper.call(this.thisArg,G.value));return G};
J_w.prototype[Symbol.iterator]=function(){return this};
var tpx=Object.freeze({}),wG={};_.kxa=Cw(function(G){return G!==null&&G!==void 0});var Qto=Cw(function(G){return typeof G==="number"}),Zwo=Cw(function(G){return typeof G==="string"}),lTf=Cw(function(G){return typeof G==="boolean"}),D77=Cw(function(G){return G!=null&&typeof G==="object"&&typeof G.then==="function"}),akf=Cw(function(G){return typeof G==="function"}),ts=Cw(function(G){return!!G&&(typeof G==="object"||typeof G==="function")});var pdj=typeof _.Qf.BigInt==="function"&&typeof _.Qf.BigInt(0)==="bigint";var r_f=Cw(function(G){return pdj?G>=d7a&&G<=eNw:G[0]==="-"?gw2(G,nwG):gw2(G,Vpt)}),nwG=Number.MIN_SAFE_INTEGER.toString(),d7a=pdj?BigInt(Number.MIN_SAFE_INTEGER):void 0,Vpt=Number.MAX_SAFE_INTEGER.toString(),eNw=pdj?BigInt(Number.MAX_SAFE_INTEGER):void 0;var $77=typeof Uint8Array.prototype.slice==="function",OR=0,at=0,SRW;var uo,Dt,G8,kA,nwf;uo=typeof BigInt==="function"?BigInt.asIntN:void 0;_.dk=typeof BigInt==="function"?BigInt.asUintN:void 0;Dt=Number.isSafeInteger;G8=Number.isFinite;kA=Math.trunc;nwf=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Daf={};var Ewo={},Xdw=function(){try{var G=function(){return oDo(Map,[],this.constructor)};
_.T(G,Map);EV(new G);return!1}catch(H){return!0}}(),Q8=function(){this.JSC$8848_map_=new Map};
_.g=Q8.prototype;_.g.get=function(G){return this.JSC$8848_map_.get(G)};
_.g.set=function(G,H){this.JSC$8848_map_.set(G,H);this.size=this.JSC$8848_map_.size;return this};
_.g.delete=function(G){G=this.JSC$8848_map_.delete(G);this.size=this.JSC$8848_map_.size;return G};
_.g.clear=function(){this.JSC$8848_map_.clear();this.size=this.JSC$8848_map_.size};
_.g.has=function(G){return this.JSC$8848_map_.has(G)};
_.g.entries=function(){return this.JSC$8848_map_.entries()};
_.g.keys=function(){return this.JSC$8848_map_.keys()};
_.g.values=function(){return this.JSC$8848_map_.values()};
_.g.forEach=function(G,H){return this.JSC$8848_map_.forEach(G,H)};
Q8.prototype[Symbol.iterator]=function(){return this.entries()};
var pY=function(){if(Xdw)return Object.setPrototypeOf(Q8.prototype,Map.prototype),Object.defineProperties(Q8.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Q8;var G=function(){return oDo(Map,[],this.constructor)};
_.T(G,Map);return G}(),Km=function(G,H,Z,Q){Z=Z===void 0?RNo:Z;
Q=Q===void 0?RNo:Q;var p=pY.call(this)||this;p.arrayState=G[_.pw]|0;p.valueCtor=H;p.keyToApi=Z;p.valueToApi=p.valueCtor?A_f:Q;for(var l=0;l<G.length;l++){var q=G[l],u=Z(q[0],!1,!0),B=q[1];H?B===void 0&&(B=null):B=Q(q[1],!1,!0,void 0,void 0,p.arrayState);pY.prototype.set.call(p,u,B)}return p};
_.T(Km,pY);var c_d=function(G){if(G.arrayState&2)throw Error("N");},tcM=function(G,H){return ua(Array.from(pY.prototype.entries.call(G),H))};
_.g=Km.prototype;_.g.clear=function(){c_d(this);pY.prototype.clear.call(this)};
_.g.delete=function(G){c_d(this);return pY.prototype.delete.call(this,this.keyToApi(G,!0,!1))};
_.g.entries=function(){if(this.valueCtor){var G=pY.prototype.keys.call(this);G=new J_w(G,x7W,this)}else G=pY.prototype.entries.call(this);return G};
_.g.values=function(){if(this.valueCtor){var G=pY.prototype.keys.call(this);G=new J_w(G,Km.prototype.get,this)}else G=pY.prototype.values.call(this);return G};
_.g.forEach=function(G,H){this.valueCtor?pY.prototype.forEach.call(this,function(Z,Q,p){G.call(H,p.get(Q),Q,p)}):pY.prototype.forEach.call(this,G,H)};
_.g.set=function(G,H){c_d(this);G=this.keyToApi(G,!0,!1);return G==null?this:H==null?(pY.prototype.delete.call(this,G),this):pY.prototype.set.call(this,G,this.valueToApi(H,!0,!0,this.valueCtor,!1,this.arrayState))};
_.g.has=function(G){return pY.prototype.has.call(this,this.keyToApi(G,!1,!1))};
_.g.get=function(G){G=this.keyToApi(G,!1,!1);var H=pY.prototype.get.call(this,G);if(H!==void 0){var Z=this.valueCtor;return Z?(Z=this.valueToApi(H,!1,!0,Z,this.callToMutableOnAccess,this.arrayState),Z!==H&&pY.prototype.set.call(this,G,Z),Z):H}};
Km.prototype[Symbol.iterator]=function(){return this.entries()};
Km.prototype.toJSON=void 0;var L2j;var ItX=function(){},lto=function(G,H){for(var Z in G)!isNaN(Z)&&H(G,+Z,G[Z])},qq3=function(G){var H=new ItX;
lto(G,function(Z,Q,p){H[Q]=A_(p)});
H.reviveUnknownFields=G.reviveUnknownFields;return H},G8b={reviveIntoImmutable:!0};var gAX;var daW,eiW;var TGa,bo,fT,M1,fTw,Jg,z_,vwN,W2R,dm,zNx,eD,$H,Xz;TGa=_.ia(0);_.l6={};_.gm=function(G,H,Z,Q,p){H=bo(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H,Z,p);if(H!==null||Q&&G.noLegacyNull!==cd)return H};
bo=function(G,H,Z,Q){if(H===-1)return null;var p=H+(Z?0:-1),l=G.length-1;if(!(l<1+(Z?0:-1))){if(p>=l){var q=G[l];if(q!=null&&typeof q==="object"&&q.constructor===Object){Z=q[H];var u=!0}else if(p===l)Z=q;else return}else Z=G[p];if(Q&&Z!=null){Q=Q(Z);if(Q==null)return Q;if(!Object.is(Q,Z))return u?q[H]=Q:G[p]=Q,Q}return Z}};
_.ng=function(G,H,Z,Q){Rj(G);var p=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;xA(p,p[_.pw]|0,H,Z,Q);return G};
_.IE=function(G,H,Z){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return imf(G,G[_.pw]|0,H,Z)!==void 0};
_.q8=function(G,H,Z,Q){var p=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return imf(p,p[_.pw]|0,H,M1(G,Q,Z))!==void 0};
_.tR=function(G){return G===tpx?2:4};
_.SD=function(G,H){G=_.gm(G,H,void 0,void 0,jje);return G==null?_.jp():G};
fT=function(G,H,Z,Q){Rj(G);var p=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=p[_.pw]|0;if(Q==null){var q=wDX(p);if(hif(q,p,l,Z)===H)q.set(Z,0);else return G}else l=CoM(p,l,Z,H);xA(p,l,H,Q);return G};
_.u6=function(G,H,Z,Q){var p=G[_.pw]|0,l=h_(p);p=CoM(G,p,Z,H,l);xA(G,p,H,Q,l)};
M1=function(G,H,Z){return _.B4(G,H)===Z?Z:-1};
_.B4=function(G,H){G=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return hif(wDX(G),G,void 0,H,void 0)};
fTw=function(G,H,Z){var Q=G[_.pw]|0,p=h_(Q),l=bo(G,Z,p);if(l!=null&&l[fm]===z8){if(!vd(l))return Uq(l),l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var q=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(l)&&(q=l);if(q){var u=q[_.pw]|0;u&2&&(q=ms(q,u))}q=yh(q,H,!0);q!==l&&xA(G,Q,Z,q,p);return q};
_.dt=function(G,H,Z,Q){var p=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=p[_.pw]|0;H=imf(p,l,H,Z,Q);if(H==null)return H;l=p[_.pw]|0;if(!vd(G,l)){var q=NGj(H);q!==H&&(Uq(G)&&(p=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=p[_.pw]|0),H=q,l=xA(p,l,Z,H,Q),Na(p,l))}return H};
_.JR=function(G,H,Z,Q){var p=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return OmR(G,p,p[_.pw]|0,H,Z,Q,!1,!0)};
_.fq=function(G,H,Z,Q){Z=atW(Z);_.ng(G,H,Z,Q);Z&&!vd(Z)&&Na(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
_.vO=function(G,H,Z,Q){Q=atW(Q);fT(G,H,Z,Q);Q&&!vd(Q)&&Na(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return G};
Jg=function(G,H,Z){Rj(G);var Q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=Q[_.pw]|0;if(Z==null)return xA(Q,p,H),G;for(var l=Z===Lm?7:Z[_.pw]|0,q=l,u=FL(l),B=u||Object.isFrozen(Z),t=!0,D=!0,d=0;d<Z.length;d++){var e=Z[d];u||(e=vd(e),t&&(t=!e),D&&(D=e))}u||(l=t?13:5,l=D?l&-4097:l|4096);B&&l===q||(Z=A_(Z),q=0,l=Eq(l,p));l!==q&&q7(Z,l);p=xA(Q,p,H,Z);2&l||!(4096&l||16&l)||Na(Q,p);return G};
z_=function(G,H,Z,Q){oAW(G,H,Z,Q);return G};
vwN=function(G,H,Z){oAW(G,H,tg,void 0,Z,1,!0);return G};
_.kH=function(G,H,Z){G=_.gm(G,H,void 0,Z);H=typeof G;G=G==null?G:H==="bigint"?_.ia((0,_.dk)(64,G)):_.sq(G)?H==="string"?_.Pae(G):_.Mpu(G):void 0;return G};
_.DH=function(G,H){var Z=Z===void 0?!1:Z;var Q;return(Q=_.eNW(_.gm(G,H)))!=null?Q:Z};
_.k5=function(G,H,Z){Z=Z===void 0?0:Z;var Q;return(Q=_.qa(_.gm(G,H)))!=null?Q:Z};
W2R=function(G,H){var Z=Z===void 0?0:Z;G=_.$7X(_.gm(G,H));return G!=null?G:Z};
dm=function(G,H,Z){Z=Z===void 0?TGa:Z;var Q;return(Q=_.Ca2(_.gm(G,H)))!=null?Q:Z};
zNx=function(G){var H=H===void 0?TGa:H;var Z;return(Z=_.kH(G,23))!=null?Z:H};
eD=function(G,H){var Z=Z===void 0?0:Z;var Q;return(Q=_.gm(G,H,void 0,void 0,_.Fa))!=null?Q:Z};
_.nY=function(G,H,Z,Q){Z=Z===void 0?"":Z;var p;return(p=_.T8(_.gm(G,H,Q)))!=null?p:Z};
_.V8=function(G,H){var Z=Z===void 0?0:Z;var Q;return(Q=_.lo(_.gm(G,H)))!=null?Q:Z};
$H=function(G,H){var Z=Z===void 0?"0":Z;G=hNW(_.gm(G,H),!0);return G!=null?G:Z};
Xz=function(G,H,Z){return _.nY(G,M1(G,Z,H))};
_.c4=function(G,H,Z,Q){return _.dt(G,H,M1(G,Q,Z),void 0)};
_.W7=function(G,H){return _.T8(_.gm(G,H,void 0,_.l6))};
_.nu=function(G,H,Z){return _.ng(G,H,d7e(Z))};
_.DQ=function(G,H,Z){return _.HO(G,H,d7e(Z),!1)};
_.TW=function(G,H,Z){return _.ng(G,H,_.Ij(Z))};
_.PW=function(G,H,Z){return _.ng(G,H,t6(Z))};
_.ha=function(G,H,Z){return _.ng(G,H,XL(Z))};
_.jO=function(G,H,Z,Q){return _.HO(G,H,XL(Z),"",Q)};
_.ed=function(G,H,Z){return _.ng(G,H,Z==null?Z:_.pm(Z))};
_.fY=function(G,H,Z){return _.HO(G,H,Z==null?Z:_.pm(Z),0)};var Q2=function(G,H,Z){this.buffer=G;if(Z&&!H)throw Error();this.JSC$8860_isImmutable=H};var K2p=function(G,H,Z,Q){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8863_start_=0;this.init(G,H,Z,Q)},v4,jt7,Paa,r_4,wdT,hNw,t7v,Mpt;
_.g=K2p.prototype;_.g.init=function(G,H,Z,Q){var p=Q===void 0?{}:Q;Q=p.aliasBytesFields===void 0?!1:p.aliasBytesFields;p=p.treatNewDataAsImmutable===void 0?!1:p.treatNewDataAsImmutable;this.aliasBytesFields=Q;this.treatNewDataAsImmutable=p;G&&(G=Uab(G,this.treatNewDataAsImmutable),this.bytes_=G.buffer,this.bytesAreImmutable_=G.JSC$8860_isImmutable,this.JSC$8863_start_=H||0,this.end_=Z!==void 0?this.JSC$8863_start_+Z:this.bytes_.length,this.cursor_=this.JSC$8863_start_)};
_.g.free=function(){this.clear();Mpt.length<100&&Mpt.push(this)};
_.g.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8863_start_=0;this.aliasBytesFields=!1};
_.g.reset=function(){this.cursor_=this.JSC$8863_start_};
_.g.atEnd=function(){return this.cursor_==this.end_};
_.W4=function(G,H){var Z=0,Q=0,p=0,l=G.bytes_,q=G.cursor_;do{var u=l[q++];Z|=(u&127)<<p;p+=7}while(p<32&&u&128);if(p>32)for(Q|=(u&127)>>4,p=3;p<32&&u&128;p+=7)u=l[q++],Q|=(u&127)<<p;v4(G,q);if(!(u&128))return H(Z>>>0,Q>>>0);throw Error();};
v4=function(G,H){G.cursor_=H;if(H>G.end_)throw Error();};
_.zW=function(G){var H=G.bytes_,Z=G.cursor_,Q=H[Z++],p=Q&127;if(Q&128&&(Q=H[Z++],p|=(Q&127)<<7,Q&128&&(Q=H[Z++],p|=(Q&127)<<14,Q&128&&(Q=H[Z++],p|=(Q&127)<<21,Q&128&&(Q=H[Z++],p|=Q<<28,Q&128&&H[Z++]&128&&H[Z++]&128&&H[Z++]&128&&H[Z++]&128&&H[Z++]&128)))))throw Error();v4(G,Z);return p};
_.KY=function(G){var H=G.bytes_,Z=G.cursor_,Q=H[Z],p=H[Z+1],l=H[Z+2];H=H[Z+3];v4(G,G.cursor_+4);return(Q<<0|p<<8|l<<16|H<<24)>>>0};
jt7=function(G){var H=_.KY(G);G=_.KY(G);return BGj(H,G)};
Paa=function(G){var H=_.KY(G);G=(H>>31)*2+1;var Z=H>>>23&255;H&=8388607;return Z==255?H?NaN:G*Infinity:Z==0?G*1.401298464324817E-45*H:G*Math.pow(2,Z-150)*(H+8388608)};
r_4=function(G){var H=_.KY(G),Z=_.KY(G);G=(Z>>31)*2+1;var Q=Z>>>20&2047;H=4294967296*(Z&1048575)+H;return Q==2047?H?NaN:G*Infinity:Q==0?G*4.9E-324*H:G*Math.pow(2,Q-1075)*(H+4503599627370496)};
wdT=function(G){for(var H=0,Z=G.cursor_,Q=Z+10,p=G.bytes_;Z<Q;){var l=p[Z++];H|=l;if((l&128)===0)return v4(G,Z),!!(H&127)}throw Error();};
hNw=function(G,H){if(H<0)throw Error();var Z=G.cursor_;H=Z+H;if(H>G.end_)throw Error();G.cursor_=H;return Z};
t7v=function(G,H){if(H==0)return _.jp();var Z=hNw(G,H);G.aliasBytesFields&&G.bytesAreImmutable_?Z=G.bytes_.subarray(Z,Z+H):(G=G.bytes_,H=Z+H,Z=Z===H?new Uint8Array(0):$77?G.slice(Z,H):new Uint8Array(G.subarray(Z,H)));return Z.length==0?_.jp():new Wd(Z,M7)};
Mpt=[];var iw2=function(G,H,Z,Q){if(Mpt.length){var p=Mpt.pop();p.init(G,H,Z,Q);G=p}else G=new K2p(G,H,Z,Q);this.decoder_=G;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Cap(this,Q)},Cap=function(G,H){H=H===void 0?{}:H;
G.discardUnknownFields=H.discardUnknownFields===void 0?!1:H.discardUnknownFields},dUf=function(G,H,Z,Q){if(OwG.length){var p=OwG.pop();
Cap(p,Q);p.decoder_.init(G,H,Z,Q);return p}return new iw2(G,H,Z,Q)},uxu,JNe,M8,aTw,OwG;
iw2.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;OwG.length<100&&OwG.push(this)};
iw2.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
uxu=function(G){if(G.decoder_.atEnd())return!1;G.fieldCursor_=G.decoder_.cursor_;var H=_.zW(G.decoder_)>>>0,Z=H>>>3;H&=7;if(!(H>=0&&H<=5))throw Error();if(Z<1)throw Error();G.nextField_=Z;G.nextWireType_=H;return!0};
JNe=function(G){switch(G.nextWireType_){case 0:G.nextWireType_!=0?JNe(G):wdT(G.decoder_);break;case 1:G=G.decoder_;v4(G,G.cursor_+8);break;case 2:if(G.nextWireType_!=2)JNe(G);else{var H=_.zW(G.decoder_)>>>0;G=G.decoder_;v4(G,G.cursor_+H)}break;case 5:G=G.decoder_;v4(G,G.cursor_+4);break;case 3:H=G.nextField_;do{if(!uxu(G))throw Error();if(G.nextWireType_==4){if(G.nextField_!=H)throw Error();break}JNe(G)}while(1);break;default:throw Error();}};
M8=function(G,H,Z){var Q=G.decoder_.end_,p=_.zW(G.decoder_)>>>0;p=G.decoder_.cursor_+p;var l=p-Q;l<=0&&(G.decoder_.end_=p,Z(H,G,void 0,void 0,void 0),l=p-G.decoder_.cursor_);if(l)throw Error();G.decoder_.cursor_=p;G.decoder_.end_=Q;return H};
aTw=function(G){var H=_.zW(G.decoder_)>>>0;G=G.decoder_;var Z=hNw(G,H);G=G.bytes_;if(ejR){var Q=G,p;(p=dXN)||(p=dXN=new TextDecoder("utf-8",{fatal:!0}));H=Z+H;Q=Z===0&&H===Q.length?Q:Q.subarray(Z,H);try{var l=p.decode(Q)}catch(t){if(DXw===void 0){try{p.decode(new Uint8Array([128]))}catch(D){}try{p.decode(new Uint8Array([97])),DXw=!0}catch(D){DXw=!1}}!DXw&&(dXN=void 0);throw t;}}else{l=Z;H=l+H;Z=[];for(var q=null,u,B;l<H;)u=G[l++],u<128?Z.push(u):u<224?l>=H?ZU():(B=G[l++],u<194||(B&192)!==128?(l--,
ZU()):Z.push((u&31)<<6|B&63)):u<240?l>=H-1?ZU():(B=G[l++],(B&192)!==128||u===224&&B<160||u===237&&B>=160||((p=G[l++])&192)!==128?(l--,ZU()):Z.push((u&15)<<12|(B&63)<<6|p&63)):u<=244?l>=H-2?ZU():(B=G[l++],(B&192)!==128||(u<<28)+(B-144)>>30!==0||((p=G[l++])&192)!==128||((Q=G[l++])&192)!==128?(l--,ZU()):(u=(u&7)<<18|(B&63)<<12|(p&63)<<6|Q&63,u-=65536,Z.push((u>>10&1023)+55296,(u&1023)+56320))):ZU(),Z.length>=8192&&(q=IUj(q,Z),Z.length=0);l=IUj(q,Z)}return l};
_.y_G=function(G){var H=_.zW(G.decoder_)>>>0;return t7v(G.decoder_,H)};
_.ow4=function(G,H,Z){var Q=_.zW(G.decoder_)>>>0;for(Q=G.decoder_.cursor_+Q;G.decoder_.cursor_<Q;)Z.push(H(G.decoder_))};
OwG=[];var m7t=function(G,H){this.JSC$8870_lo=G>>>0;this.JSC$8870_hi=H>>>0},jyo=function(G){G=BigInt.asUintN(64,G);
return new m7t(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)))},A6f=function(G){if(!G)return U72||(U72=new m7t(0,0));
if(!/^\d+$/.test(G))return null;Rt(G);return new m7t(OR,at)},U72,M7W=function(G,H){this.JSC$8872_lo=G>>>0;
this.JSC$8872_hi=H>>>0},Ri2=function(G){if(!G)return RNx||(RNx=new M7W(0,0));
if(!/^-?\d+$/.test(G))return null;Rt(G);return new M7W(OR,at)},RNx;var jD=function(){this.JSC$8874_buffer_=[]},kY,d0,NGR;
jD.prototype.length=function(){return this.JSC$8874_buffer_.length};
jD.prototype.end=function(){var G=this.JSC$8874_buffer_;this.JSC$8874_buffer_=[];return G};
kY=function(G,H,Z){for(;Z>0||H>127;)G.JSC$8874_buffer_.push(H&127|128),H=(H>>>7|Z<<25)>>>0,Z>>>=7;G.JSC$8874_buffer_.push(H)};
d0=function(G,H){for(;H>127;)G.JSC$8874_buffer_.push(H&127|128),H>>>=7;G.JSC$8874_buffer_.push(H)};
_.rNe=function(G,H){if(H>=0)d0(G,H);else{for(var Z=0;Z<9;Z++)G.JSC$8874_buffer_.push(H&127|128),H>>=7;G.JSC$8874_buffer_.push(1)}};
NGR=function(G,H){Rt(H);J_R(function(Z,Q){kY(G,Z>>>0,Q>>>0)})};
jD.prototype.writeUint8=function(G){this.JSC$8874_buffer_.push(G>>>0&255)};
_.tN=function(G,H){G.JSC$8874_buffer_.push(H>>>0&255);G.JSC$8874_buffer_.push(H>>>8&255);G.JSC$8874_buffer_.push(H>>>16&255);G.JSC$8874_buffer_.push(H>>>24&255)};
jD.prototype.writeInt8=function(G){this.JSC$8874_buffer_.push(G>>>0&255)};var A_G,qU,hdU,Oqe,Yqf;A_G=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new jD};
qU=function(G,H){H.length!==0&&(G.blocks_.push(H),G.totalLength_+=H.length)};
_.x7w=function(G,H){_.JN(G,H,2);H=G.encoder_.end();qU(G,H);H.push(G.totalLength_);return H};
_.L2N=function(G,H){var Z=H.pop();for(Z=G.totalLength_+G.encoder_.length()-Z;Z>127;)H.push(Z&127|128),Z>>>=7,G.totalLength_++;H.push(Z);G.totalLength_++};
_.JN=function(G,H,Z){d0(G.encoder_,H*8+Z)};
hdU=function(G,H,Z){if(Z!=null)switch(xaM(Z),_.JN(G,H,1),typeof Z){case "number":G=G.encoder_;ITW(Z);_.tN(G,OR);_.tN(G,at);break;case "bigint":Z=jyo(Z);G=G.encoder_;H=Z.JSC$8870_hi;_.tN(G,Z.JSC$8870_lo);_.tN(G,H);break;default:Z=A6f(Z),G=G.encoder_,H=Z.JSC$8870_hi,_.tN(G,Z.JSC$8870_lo),_.tN(G,H)}};
Oqe=function(G,H,Z){_.JN(G,H,2);d0(G.encoder_,Z.length);qU(G,G.encoder_.end());qU(G,Z)};
Yqf=function(G,H,Z,Q){Z!=null&&(H=_.x7w(G,H),Q(Z,G),_.L2N(G,H))};var Lsb,Ewx,YRR,F2d,bwt,Hm2,sj2,Qjd,pD4;Lsb=pq();Ewx=pq();YRR=pq();F2d=pq();bwt=pq();_.G8a=pq();_.P4=pq();Hm2=pq();sj2=pq();_.Zma=pq();Qjd=pq();pD4=pq();_.ltx=pq();_.gA7=pq();_.Iy=function(G,H,Z){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G,H,Z)};
_.Iy.prototype.toJSON=function(){return io(this)};
_.Iy.prototype.serialize=function(G){return JSON.stringify(io(this,G))};
var xUf=function(G,H){if(H==null||H=="")return new G;H=JSON.parse(H);if(!Array.isArray(H))throw Error("V");return new G(Yj3(H))};
_.Iy.prototype.getExtension=function(G){Zmb(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G.fieldIndex);Hmv(this,G.fieldIndex);return G.ctor?G.isRepeated?G.getExtensionFn(this,G.ctor,G.fieldIndex,_.tR(),G.JSC$8885_hasMessageId):G.getExtensionFn(this,G.ctor,G.fieldIndex,G.JSC$8885_hasMessageId):G.isRepeated?G.getExtensionFn(this,G.fieldIndex,_.tR(),G.JSC$8885_hasMessageId):G.getExtensionFn(this,G.fieldIndex,G.defaultValue,G.JSC$8885_hasMessageId)};
_.Iy.prototype.clone=function(){var G=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=G[_.pw]|0;return Wsv(this,G,H)?vAf(this,G,!0):new this.constructor(ms(G,H,!1))};
_.Iy.prototype[fm]=z8;_.Iy.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var lI=function(G,H,Z){this.$$binaryReaderFn=G;this.$$binaryWriterFn=H;G=rk(Lsb);this.$$isMsg=!!G&&Z===G||!1},Zqv=EAu(function(G,H,Z,Q,p){if(G.nextWireType_!==2)return!1;
M8(G,fTw(H,Q,Z),p);return!0},bmb),Qy2=EAu(function(G,H,Z,Q,p){if(G.nextWireType_!==2)return!1;
M8(G,fTw(H,Q,Z),p);return!0},bmb),nYu=Symbol(),gY3=Symbol(),S_3=Symbol(),XOo=Symbol(),k4R=Symbol(),G4v,Hqb;var Rdo,It7,rm,qqd,SqN,uLw,BkR,hg,tc_,k87,DaG,daw,eiw,VcT,$aG,XD7,c6d,TkR,ftd;Rdo=function(G,H){var Z=new A_G;cNo(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z,g0(nYu,edv,V7v,H));qU(Z,Z.encoder_.end());G=new Uint8Array(Z.totalLength_);H=Z.blocks_;for(var Q=H.length,p=0,l=0;l<Q;l++){var q=H[l];G.set(q,p);p+=q.length}Z.blocks_=[G];return G};
It7=EAu(function(G,H,Z,Q,p){if(G.nextWireType_!==2)return!1;G=M8(G,yh([void 0,void 0],Q,!0),p);G=A_(G);Q=H[_.pw]|0;p=h_(Q);if(Q&2)throw Error();var l=bo(H,Z,p);if(l instanceof Km)(l.arrayState&2)!=0?(l=tcM(l),l.push(G),xA(H,Q,Z,l,p)):(H=l,Z=H.keyToApi(G[0],!1,!0),G=G[1],G=H.valueCtor?G===void 0?null:G:H.valueToApi(G,!1,!0,void 0,!1,H.arrayState),pY.prototype.set.call(H,Z,G));else if(Array.isArray(l)){var q=l[_.pw]|0;q&8192||q7(l,q|=8192);q&2&&(l=Pob(l),xA(H,Q,Z,l,p));l.push(G)}else xA(H,Q,Z,ua([G]),
p);return!0},function(G,H,Z,Q,p){if(H instanceof Km)H.forEach(function(u,B){Yqf(G,Z,yh([B,
u],Q,!1),p)});
else if(Array.isArray(H)){for(var l=0;l<H.length;l++){var q=H[l];Array.isArray(q)&&Yqf(G,Z,yh(q,Q,!1),p)}ua(H)}});
rm=_.uI(function(G,H,Z){if(G.nextWireType_!==1)return!1;_.BO(H,Z,r_4(G.decoder_));return!0},zd2,pD4);
qqd=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==1)return!1;_.u6(H,Z,Q,r_4(G.decoder_));return!0},zd2,pD4);
SqN=_.uI(function(G,H,Z){if(G.nextWireType_!==5)return!1;_.BO(H,Z,Paa(G.decoder_));return!0},K0f,Qjd);
uLw=_.W0U(function(G,H,Z){if(G.nextWireType_!==5&&G.nextWireType_!==2)return!1;H=_.s_(H,H[_.pw]|0,Z);G.nextWireType_==2?_.ow4(G,Paa,H):H.push(Paa(G.decoder_));return!0},function(G,H,Z){H=_.vYf(_.Fa,H,!0);
if(H!=null&&H.length)for(_.JN(G,Z,2),d0(G.encoder_,H.length*4),Z=0;Z<H.length;Z++){var Q=G.encoder_;ua2(H[Z]);_.tN(Q,OR)}},Qjd);
BkR=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==5)return!1;_.u6(H,Z,Q,Paa(G.decoder_));return!0},K0f,Qjd);
_.J6G=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,_.W4(G.decoder_,_.D7X));return!0},_.DM,_.P4);
_.wm=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,_.W4(G.decoder_,m2));return!0},_.DM,_.P4);
hg=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;G=_.W4(G.decoder_,m2);_.BO(H,Z,G===0?void 0:G);return!0},_.DM,_.P4);
tc_=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==0)return!1;_.u6(H,Z,Q,_.W4(G.decoder_,m2));return!0},_.DM,_.P4);
k87=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,_.W4(G.decoder_,_.ot));return!0},PIu,Hm2);
_.CY=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,_.W4(G.decoder_,BGj));return!0},PIu,Hm2);
_.i6=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,_.zW(G.decoder_));return!0},wO3,F2d);
DaG=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;G=_.zW(G.decoder_);_.BO(H,Z,G===0?void 0:G);return!0},wO3,F2d);
daw=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==0)return!1;_.u6(H,Z,Q,_.zW(G.decoder_));return!0},wO3,F2d);
eiw=_.uI(function(G,H,Z){if(G.nextWireType_!==1)return!1;_.BO(H,Z,jt7(G.decoder_));return!0},_.CI3,_.Zma);
_.nAa=_.W0U(function(G,H,Z){if(G.nextWireType_!==1&&G.nextWireType_!==2)return!1;H=_.s_(H,H[_.pw]|0,Z);G.nextWireType_==2?_.ow4(G,jt7,H):H.push(jt7(G.decoder_));return!0},function(G,H,Z){H=_.vYf(Owf,H,!1);
if(H!=null)for(var Q=0;Q<H.length;Q++)hdU(G,Z,H[Q])},_.Zma);
_.Oy=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,wdT(G.decoder_));return!0},iqW,Ewx);
_.aE=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;G=wdT(G.decoder_);_.BO(H,Z,G===!1?void 0:G);return!0},iqW,Ewx);
VcT=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==0)return!1;_.u6(H,Z,Q,wdT(G.decoder_));return!0},iqW,Ewx);
_.y8=_.uI(function(G,H,Z){if(G.nextWireType_!==2)return!1;_.BO(H,Z,aTw(G));return!0},aM2,YRR);
_.oE=_.uI(function(G,H,Z){if(G.nextWireType_!==2)return!1;G=aTw(G);_.BO(H,Z,G===""?void 0:G);return!0},aM2,YRR);
_.my=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==2)return!1;_.u6(H,Z,Q,aTw(G));return!0},aM2,YRR);
$aG=_.W0U(function(G,H,Z){if(G.nextWireType_!==2)return!1;G=aTw(G);_.s_(H,H[_.pw]|0,Z).push(G);return!0},function(G,H,Z){H=_.vYf(_.T8,H,!0);
if(H!=null)for(var Q=0;Q<H.length;Q++){var p=G,l=Z,q=H[Q];q!=null&&Oqe(p,l,BfR(q))}},YRR);
XD7=void 0;XD7=XD7===void 0?Lsb:XD7;_.RE=new lI(function(G,H,Z,Q,p){if(G.nextWireType_!==2)return!1;Q=yh(void 0,Q,!0);_.s_(H,H[_.pw]|0,Z).push(Q);M8(G,Q,p);return!0},function(G,H,Z,Q,p){if(Array.isArray(H)){for(var l=0;l<H.length;l++)yN2(G,H[l],Z,Q,p);
G=H[_.pw]|0;G&1||q7(H,G|1)}},XD7);
_.N8=EAu(function(G,H,Z,Q,p,l){if(G.nextWireType_!==2)return!1;var q=H[_.pw]|0;CoM(H,q,l,Z,h_(q));H=fTw(H,Q,Z);M8(G,H,p);return!0},yN2);
_.Ag=_.uI(function(G,H,Z){if(G.nextWireType_!==2)return!1;_.BO(H,Z,_.y_G(G));return!0},_.oYj,_.ltx);
c6d=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==2)return!1;_.u6(H,Z,Q,_.y_G(G));return!0},_.oYj,_.ltx);
_.xH=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,_.zW(G.decoder_)>>>0);return!0},mUj,bwt);
TkR=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==0)return!1;_.u6(H,Z,Q,_.zW(G.decoder_)>>>0);return!0},mUj,bwt);
_.LY=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,_.zW(G.decoder_));return!0},_.UUo,_.gA7);
_.Ey=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;G=_.zW(G.decoder_);_.BO(H,Z,G===0?void 0:G);return!0},_.UUo,_.gA7);
ftd=_.uI(function(G,H,Z){if(G.nextWireType_!==0)return!1;_.BO(H,Z,_.W4(G.decoder_,tpo));return!0},function(G,H,Z){H=iwv(H);
if(H!=null&&(Nkv(H),H!=null))switch(_.JN(G,Z,0),typeof H){case "number":G=G.encoder_;Z=H;H=Z<0;Z=Math.abs(Z)*2;ITW(Z);Z=OR;var Q=at;H&&(Z==0?Q==0?Q=Z=4294967295:(Q--,Z=4294967295):Z--);OR=Z;at=Q;kY(G,OR,at);break;case "bigint":G=G.encoder_;H=H<<BigInt(1)^H>>BigInt(63);OR=Number(BigInt.asUintN(32,H));at=Number(BigInt.asUintN(32,H>>BigInt(32)));kY(G,OR,at);break;default:NGR(G.encoder_,H)}},sj2);var zit=function(){var G=vA4,H=Ws2;this.fieldIndex=175237375;this.ctor=H;this.isRepeated=0;this.getExtensionFn=_.dt;this.defaultValue=void 0;this.JSC$8885_hasMessageId=G.messageId!=null?wG:void 0};
zit.prototype.register=function(){EV(this)};var Ksx=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Ksx,_.Iy);var Mct=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Mct,_.Iy);var Y_f=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Y_f,_.Iy);var jja=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(jja,_.Iy);var Poa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Poa,_.Iy);var r6R=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(r6R,_.Iy);var wD7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(wD7,_.Iy);wD7.prototype.getData=function(){return _.SD(this,2)};var hiG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(hiG,_.Iy);var Co_=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Co_,_.Iy);Co_.prototype.getStyle=function(){return _.dt(this,Ksx,1)};var T4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(T4,_.Iy);T4.prototype.getPayloadCase=function(){return _.B4(this,WO)};
T4.prototype.getStyle=function(){return _.c4(this,Co_,6,WO)};
var imG=function(){var G=new T4,H=new Poa;return _.vO(G,7,WO,H)},Omw=function(){var G=new T4,H=new r6R;
return _.vO(G,8,WO,H)},WO=[1,
2,3,4,5,6,7,8];var atw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(atw,_.Iy);var y6d=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(y6d,_.Iy);var oAw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(oAw,_.Iy);var map=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(map,_.Iy);var Uaa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Uaa,_.Iy);var Rip=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Rip,_.Iy);var Nk2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Nk2,_.Iy);var A64=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(A64,_.Iy);A64.prototype.getData=function(){return _.SD(this,2)};var xa_=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(xa_,_.Iy);var EYU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(EYU,_.Iy);EYU.prototype.getPayloadCase=function(){return _.B4(this,YH)};
var YH=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Fz=function(G,H){G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=H===void 0?2:H};
_.T(Fz,Error);var Lsa=Promise;var EAt=function(G){this.channelPromise=G};
EAt.prototype.send=function(G,H,Z){this.channelPromise.then(function(Q){Q.send(G,H,Z)})};var Yq4=function(G,H){this.data=G;this.channel=H};
Yq4.prototype.reply=function(G,H,Z){this.channel.send(G,H,Z)};var Fsa=function(G){this.JSC$8951_port_=G};
Fsa.prototype.send=function(G,H,Z){Z=Z===void 0?[]:Z;var Q=new MessageChannel;bma(Q.port1,H);this.JSC$8951_port_.postMessage(G,[Q.port2].concat(Z))};
var G42=function(G,H){bma(G,H);return new Fsa(G)},bma=function(G,H){H&&(G.onmessage=function(Z){H(new Yq4(Z.data,G42(Z.ports[0])))})};var Hqa=function(G){this.verifier_=G};
Hqa.prototype.verify=function(G){return this.verifier_(G)};
var syG=function(G){var H=Object.create(null);(typeof G==="string"?[G]:G).forEach(function(Z){if(Z==="null")throw Error("X");H[Z]=!0});
return function(Z){return H[Z]===!0}};_.Zq2=function(){if(!_.Qf.addEventListener||!Object.defineProperty)return!1;var G=!1,H=Object.defineProperty({},"passive",{get:function(){G=!0}});
try{var Z=function(){};
_.Qf.addEventListener("test",Z,H);_.Qf.removeEventListener("test",Z,H)}catch(Q){}return G}();var Qyp;_.b6=function(G){var H=G.destination;var Z=G.iframe;var Q=G.origin;var p=G.channelName===void 0?"ZNWN1d":G.channelName;var l=G.onMessage===void 0?void 0:G.onMessage;G=G.onEstablished===void 0?void 0:G.onEstablished;return Qyp({destination:H,getSource:function(){return Z.contentWindow},
originVerifier:Q instanceof Hqa?Q:typeof Q==="function"?new Hqa(Q):new Hqa(syG(Q)),channelName:p,onMessage:l,onEstablished:G})};
Qyp=function(G){var H=G.destination;var Z=G.getSource;var Q=G.originVerifier;var p=G.token===void 0?void 0:G.token;var l=G.channelName;var q=G.onMessage===void 0?void 0:G.onMessage;var u=G.onEstablished===void 0?void 0:G.onEstablished;return new EAt(new Lsa(function(B,t){var D=function(d){d.source&&d.source===Z()&&Q.verify(d.origin)&&(d.data.n||d.data)===l&&(H.removeEventListener("message",D,!1),p&&d.data.t!==p?t(Error("Y`"+l+"`"+p+"`"+d.data.t)):(B(G42(d.ports[0],q)),u&&u(d)))};
H.addEventListener("message",D,!1)}))};var pO7=function(G){try{G()}catch(H){pW(H)}};var gYd=function(G){var H=this;var Z=G.getMessageType;var Q=G.onUnregisteredMessage===void 0?function(){}:G.onUnregisteredMessage;
var p=G.onBeforeRegisteredMessage===void 0?function(){}:G.onBeforeRegisteredMessage;
G=G.onAfterRegisteredMessage===void 0?function(){}:G.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=Z;this.onUnregisteredMessage_=Q;this.onBeforeRegisteredMessage_=p;this.onAfterRegisteredMessage_=G;this.onMessage=function(l){return lMp(H,l)}};
gYd.prototype.register=function(G,H){this.registry_.set(G,H);return this};
var lMp=function(G,H){var Z=G.getMessageType_(H.data),Q=G.registry_.get(Z);Q?(pO7(function(){return G.onBeforeRegisteredMessage_(H,Z)}),pO7(function(){return Q(H)}),pO7(function(){return G.onAfterRegisteredMessage_(H,Z)})):pO7(function(){return G.onUnregisteredMessage_(H,Z)})};var IMw=function(G){this.JSC$8968_channel_=G},S_d,uxt;
IMw.prototype.send=function(G,H,Z){this.JSC$8968_channel_.send(io(G),H,Z)};
_.q_w=function(G,H){return function(Z){var Q=new G(Z.data);return H(new Yq4(Q,Z.channel))}};
S_d=function(G){return function(H){return G(new Yq4(H.data,new IMw(H.channel)))}};
uxt=function(G,H){return S_d(_.q_w(G,H))};var B04=function(G,H,Z,Q){this.registry=G;this.delegate=H;this.receiveMessageConstructor=Z;this.createInitMessage=Q;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},L0M=function(G){var H=new gYd({getMessageType:G.getPayloadCase});
return new B04(H,new IMw(_.b6({iframe:G.child,destination:window,origin:G.origin,channelName:G.channelName,onMessage:uxt(G.receiveMessageConstructor,H.onMessage)})),G.receiveMessageConstructor,G.createInitMessage)},JNa=function(G,H){G.createInitMessage=H};
B04.prototype.send=function(G){if(!this.initialised)throw new Fz("Attempted to send a message before initialisation.");this.delegate.send(G)};
var t72=function(G,H){return _.S(function(Z){if(!G.initialised)throw new Fz("Attempted to send a message before initialisation.");return Z.return(new Promise(function(Q){G.delegate.send(H,uxt(G.receiveMessageConstructor,Q))}))})};
B04.prototype.init=function(){var G=this;return _.S(function(H){if(G.initialised)throw new Fz("Attempted to initialise twice. The SDK can only be initialised once.");if(G.createInitMessage!==void 0){var Z=G.delegate,Q=Z.send,p=G.createInitMessage;var l=new Mct;var q=[].concat(_.OP(G.features));l=_.G4(l,1,q,_.pm);Q.call(Z,p.call(G,l))}G.initialised=!0;_.K0(H)})};
var GL=function(G,H){if(G.initialised)throw new Fz('Attempted to set up API "'+H+'" after initialisation. All APIs must be set up before initialising the SDK.');G.features.add(H);return G.registry};
_.u4.Object.defineProperties(B04.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var k4w=function(G){this.channel=G;this.registered=!1};
k4w.prototype.update=function(G){if(this.channel.isInitialised){if(!this.registered)throw new Fz("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var H=new T4;var Z=new jja;Z=_.nu(Z,1,G);H=_.vO(H,2,WO,Z);this.channel.send(H)}else this.register();this.JSC$8982_audioEnabled=G};
k4w.prototype.register=function(){GL(this.channel,1);this.registered=!0};
k4w.prototype.isAudioEnabled=function(){return this.JSC$8982_audioEnabled};var DU_=function(G){this.channel=G};
_.g=DU_.prototype;_.g.onFirstFrameReady=function(G){GL(this.channel,2).register(11,function(H){H=_.c4(H.data,atw,11,YH);if(!H)throw new Fz("Unexpectedly nonexistent GameFirstFrameReadyEvent");G(_.nY(H,1))})};
_.g.onReady=function(G){GL(this.channel,2).register(4,function(H){H=_.c4(H.data,oAw,4,YH);if(!H)throw new Fz("Unexpectedly nonexistent GameReadyEvent");G(_.nY(H,1))})};
_.g.onLevelComplete=function(G){GL(this.channel,2).register(5,function(H){H=_.c4(H.data,map,5,YH);if(!H)throw new Fz("Unexpectedly nonexistent LevelCompleteEvent");G(_.nY(H,1),_.k5(H,2))})};
_.g.onGameOver=function(G){GL(this.channel,2).register(6,function(H){H=_.c4(H.data,y6d,6,YH);if(!H)throw new Fz("Unexpectedly nonexistent GameOverEvent");G(_.nY(H,1))})};
_.g.pause=function(){var G=this;if(!this.channel.isInitialised)return GL(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Fz("Using unregistered Game Feature: pause.");var H=imG();return new Promise(function(Z){return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(t72(G.channel,H),2);Z();_.K0(Q)})})};
_.g.resume=function(){var G=this;if(!this.channel.isInitialised)return GL(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Fz("Using unregistered Game Feature: resume.");var H=Omw();return new Promise(function(Z){return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(t72(G.channel,H),2);Z();_.K0(Q)})})};var dUG=function(G){this.channel=G};
dUG.prototype.onReady=function(G){GL(this.channel,5).register(8,function(H){if(!_.c4(H.data,Uaa,8,YH))throw new Fz("Unexpectedly nonexistent PageReadyEvent");G()})};var ed2=function(G){this.channel=G};
ed2.prototype.onChange=function(G){GL(this.channel,3).register(7,function(H){H=_.c4(H.data,Rip,7,YH);if(!H)throw new Fz("Unexpectedly nonexistent ScoreEvent");G(_.nY(H,1),_.k5(H,2))})};var nYt={load:function(){throw new Fz("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Fz("Storage used, but storage.onSave() listener not set!");}},V72=function(G){this.channel=G;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},$UN=function(G){GL(G.channel,4).register(2,nYt.load).register(3,nYt.save);
G.initialSetupDone=!0};
V72.prototype.onLoad=function(G){this.initialSetupDone||$UN(this);this.loadRegistered||(this.loadRegistered=!0,GL(this.channel,4).register(2,function(H){var Z,Q,p;return _.S(function(l){if(l.nextAddress==1){Z=_.c4(H.data,Nk2,2,YH);if(!Z)throw new Fz("Unexpectedly nonexistent StorageLoad");Q=_.nY(Z,1);return l.yield(G(Q),2)}p=l.yieldResult;var q=H.reply,u=new T4;var B=new wD7;B=_.ha(B,1,Q);B=_.ng(B,2,_.Pd(p,!1));u=_.vO(u,3,WO,B);q.call(H,u);_.K0(l)})}))};
V72.prototype.onSave=function(G){this.initialSetupDone||$UN(this);this.saveRegistered||(this.saveRegistered=!0,GL(this.channel,4).register(3,function(H){var Z,Q,p;return _.S(function(l){if(l.nextAddress==1){Z=_.c4(H.data,A64,3,YH);if(!Z)throw new Fz("Unexpectedly nonexistent StorageSave");Q=_.nY(Z,1);p=SRw(Z.getData());return l.yield(G(Q,p),2)}var q=H.reply,u=new T4;var B=new hiG;B=_.ha(B,1,Q);u=_.vO(u,4,WO,B);q.call(H,u);_.K0(l)})}))};var XOx=function(G){this.channel=G};
XOx.prototype.update=function(G){if(!this.channel.features.has(6))throw new Fz("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var H=new T4,Z=new Co_;G=_.fq(Z,1,G);H=_.vO(H,6,WO,G);this.channel.send(H)};
XOx.prototype.register=function(){GL(this.channel,6)};var cNx=function(G){this.channel=G;this.userActivityLoggingIntervalMs=0};
cNx.prototype.onUserActivity=function(G,H){this.userActivityLoggingIntervalMs=H;GL(this.channel,7).register(9,function(Z){if(!_.c4(Z.data,xa_,9,YH))throw new Fz("Unexpectedly nonexistent ClickEvent");G()})};var T0p=function(G){var H=this;this.channel=G;this.init=this.channel.init.bind(this.channel);this.page=new dUG(this.channel);this.game=new DU_(this.channel);this.audio=new k4w(this.channel);this.score=new ed2(this.channel);this.storage=new V72(this.channel);this.style=new XOx(this.channel);this.userActivity=new cNx(this.channel);JNa(this.channel,function(Z){var Q=new Y_f;Z=_.fq(Q,1,Z);Z=_.TW(Z,3,H.userActivity.userActivityLoggingIntervalMs);Q=H.audio.isAudioEnabled();Q!==void 0&&_.nu(Z,2,Q);Q=new T4;
return _.vO(Q,5,WO,Z)})};var fMT=function(){this.timedFunctionContext=0};
fMT.prototype.timeExecution=function(G,H){var Z=this;return function(){var Q=_.Ry.apply(0,arguments);Z.timedFunctionContext=G;return H.apply(null,_.OP(Q))}};var vY4=function(){var G={};this.priorityTasks=(G[3]=[],G[2]=[],G[1]=[],G);this.isFlushing=!1},vl=function(G,H,Z){var Q=W0T(G,Z);
G.priorityTasks[Z].push(H);Q&&G.priorityTasks[Z].length===1&&G.flush()},W0T=function(G,H){return Object.keys(G.priorityTasks).map(function(Z){return Number(Z)}).filter(function(Z){return!isNaN(Z)&&Z>H}).every(function(Z){return G.priorityTasks[Z].length===0})};
vY4.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(G){return G.length>0});)zdp(this,3),zdp(this,2),zdp(this,1)}catch(G){throw Object.values(this.priorityTasks).forEach(function(H){return void H.splice(0,H.length)}),G;
}finally{this.isFlushing=!1}}};
var zdp=function(G,H){for(;W0T(G,H)&&G.priorityTasks[H].length>0;)G.priorityTasks[H][0](),G.priorityTasks[H].shift()};
_.u4.Object.defineProperties(vY4.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(G){return G.length>0})}}});var Qsv={};var K0G=globalThis.trustedTypes,bq2=K0G,H0M;var Kq=function(G){this.privateDoNotAccessOrElseWrappedResourceUrl=G};
Kq.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var M7w,jyx,PIt,rNa,wOd,hdT,CId,iqw;M7w=_.CM([""]);jyx=hB(["\x00"],["\\0"]);PIt=hB(["\n"],["\\n"]);rNa=hB(["\x00"],["\\u0000"]);wOd=_.CM([""]);hdT=hB(["\x00"],["\\0"]);CId=hB(["\n"],["\\n"]);iqw=hB(["\x00"],["\\u0000"]);_.Oqa=Z0j(function(G){return G(M7w)})||Z0j(function(G){return G(jyx)})||Z0j(function(G){return G(PIt)})||Z0j(function(G){return G(rNa)});
_.aMp=_.r0(wOd)&&_.r0(hdT)&&_.r0(CId)&&_.r0(iqw);var oy;_.w0=function(G,H){this.privateDoNotAccessOrElseWrappedUrl=H};
_.w0.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.yNp=hN("about:blank");oy=hN("about:invalid#zClosurez");var pgu=function(G){this.isValid=G},oYN=new pgu(function(G){return/^[^:]*([/?#]|$)/.test(G)}),mUR=O_("data"),UUx=O_("http"),Rdx=O_("https"),N02=O_("ftp"),ANt=O_("mailto"),xU4=O_("intent"),L0_=O_("vnd.youtube"),l6u=[mUR,
UUx,Rdx,ANt,N02,oYN],I63=z4(function(){return typeof URL==="function"}),EYT=["data:",
"http:","https:","mailto:","ftp:"],SPj=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var xY=function(G){this.privateDoNotAccessOrElseWrappedHtml=G};
xY.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var qie=z4(function(){return new xY(K0G?K0G.emptyHTML:"")});var Y_G={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"},BJW=function(G,H){var Z=Error.call(this,G+" cannot be used with intent "+Y_G[H]);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.type=G;this.intent=H;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.T(BJW,Error);_.Z6=function(G){this.privateDoNotAccessOrElseWrappedScript=G};
_.Z6.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var tlU=function(G){this.privateDoNotAccessOrElseWrappedAttributePrefix=G};
tlU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var kOX="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var uE=function(G){this.privateDoNotAccessOrElseWrappedStyleSheet=G};
uE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var oVR=function(G){var H=_.GF("window.location.href");G==null&&(G='Unknown Error of type "null/undefined"');if(typeof G==="string")return{message:G,name:"Unknown error",lineNumber:"Not available",fileName:H,stack:"Not available"};var Z=!1;try{var Q=G.lineNumber||G.line||"Not available"}catch(q){Q="Not available",Z=!0}try{var p=G.fileName||G.filename||G.sourceURL||_.Qf.$googDebugFname||H}catch(q){p="Not available",Z=!0}H=F0N(G);if(!(!Z&&G.lineNumber&&G.fileName&&G.stack&&G.message&&G.name)){Z=G.message;
if(Z==null){if(G.constructor&&G.constructor instanceof Function){if(G.constructor.name)Z=G.constructor.name;else if(Z=G.constructor,Hn[Z])Z=Hn[Z];else{Z=String(Z);if(!Hn[Z]){var l=/function\s+([^\(]+)/m.exec(Z);Hn[Z]=l?l[1]:"[Anonymous]"}Z=Hn[Z]}Z='Unknown Error of type "'+Z+'"'}else Z="Unknown Error of unknown type";typeof G.toString==="function"&&Object.prototype.toString!==G.toString&&(Z+=": "+G.toString())}return{message:Z,name:G.name||"UnknownError",lineNumber:Q,fileName:p,stack:H||"Not available"}}return{message:G.message,
name:G.name,lineNumber:G.lineNumber,fileName:G.fileName,stack:H}},F0N=function(G,H){H||(H={});
H[bqp(G)]=!0;var Z=G.stack||"",Q=G.cause;Q&&!H[bqp(Q)]&&(Z+="\nCaused by: ",Q.stack&&Q.stack.indexOf(Q.toString())==0||(Z+=typeof Q==="string"?Q:Q.message+"\n"),Z+=F0N(Q,H));G=G.errors;if(Array.isArray(G)){Q=1;var p;for(p=0;p<G.length&&!(Q>4);p++)H[bqp(G[p])]||(Z+="\nInner error "+Q++ +": ",G[p].stack&&G[p].stack.indexOf(G[p].toString())==0||(Z+=typeof G[p]==="string"?G[p]:G[p].message+"\n"),Z+=F0N(G[p],H));p<G.length&&(Z+="\n... "+(G.length-p)+" more inner errors")}return Z},bqp=function(G){var H=
"";
typeof G.toString==="function"&&(H=""+G);return H+G.stack},Hn={};var GOx,BU,FD,sst,Z0R,H0_,Gy,K9,pgt;GOx=function(G,H){for(var Z=G.split("%s"),Q="",p=Array.prototype.slice.call(arguments,1);p.length&&Z.length>1;)Q+=Z.shift()+p.shift();return Q+Z.join("%s")};
_.sd=function(G){return encodeURIComponent(String(G))};
BU=function(G){return decodeURIComponent(G.replace(/\+/g," "))};
FD=function(G){vRR.test(G)&&(G.indexOf("&")!=-1&&(G=G.replace(V2a,"&amp;")),G.indexOf("<")!=-1&&(G=G.replace($XT,"&lt;")),G.indexOf(">")!=-1&&(G=G.replace(X32,"&gt;")),G.indexOf('"')!=-1&&(G=G.replace(cMT,"&quot;")),G.indexOf("'")!=-1&&(G=G.replace(Tft,"&#39;")),G.indexOf("\x00")!=-1&&(G=G.replace(fUx,"&#0;")));return G};
sst=function(G){var H={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var Z=_.Qf.document.createElement("div");return G.replace(H0_,function(Q,p){var l=H[Q];if(l)return l;p.charAt(0)=="#"&&(p=Number("0"+p.slice(1)),isNaN(p)||(l=String.fromCharCode(p)));l||(_.Is(Z,Lq(Q+" ")),l=Z.firstChild.nodeValue.slice(0,-1));return H[Q]=l})};
Z0R=function(G){return G.replace(/&([^;]+);/g,function(H,Z){switch(Z){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return Z.charAt(0)!="#"||(Z=Number("0"+Z.slice(1)),isNaN(Z))?H:String.fromCharCode(Z)}})};
H0_=/&([^;\s<&]+);?/g;_.W1M=function(G){return String(G).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Qs2=String.prototype.repeat?function(G,H){return G.repeat(H)}:function(G,H){return Array(H+1).join(G)};
_.sK=function(G,H){if(!Number.isFinite(G))return String(G);G=String(G);var Z=G.indexOf(".");Z===-1&&(Z=G.length);var Q=G[0]==="-"?"-":"";Q&&(G=G.substring(1));return Q+(0,_.Qs2)("0",Math.max(0,H-Z))+G};
Gy=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.NW()).toString(36)};
K9=function(G){for(var H=0,Z=0;Z<G.length;++Z)H=31*H+G.charCodeAt(Z)>>>0;return H};
_.Qa=function(G){return String(G).replace(/\-([a-z])/g,function(H,Z){return Z.toUpperCase()})};
_.ZQ=function(G){return String(G).replace(/([A-Z])/g,"-$1").toLowerCase()};
pgt=function(G){return G.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(H,Z,Q){return Z+Q.toUpperCase()})};var l6t=function(){this.names=new Map};
l6t.prototype.getName=function(G){var H=this.names.get(G);if(H)return H;var Z;H=(Z=G.description)!=null?Z:Gy();this.names.set(G,H);return H};var gbp=function(G){var H=Error.call(this,G?G.length+" errors occurred during unsubscription:\n"+G.map(function(Z,Q){return Q+1+") "+Z.toString()}).join("\n  "):"");
this.message=H.message;"stack"in H&&(this.stack=H.stack);this.errors=G;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.T(gbp,Error);var Jw=function(G){this.initialTeardown=G;this.closed=!1;this._teardowns=this._parentage=null};
_.g=Jw.prototype;
_.g.unsubscribe=function(){if(!this.closed){this.closed=!0;var G=this._parentage;if(Array.isArray(G))for(var H=_.I(G),Z=H.next();!Z.done;Z=H.next())Z.value.remove(this);else G==null||G.remove(this);H=this.initialTeardown;if(Bg(H))try{H()}catch(l){var Q=l instanceof gbp?l.errors:[l]}var p=this._teardowns;if(p)for(this._teardowns=null,H=_.I(p),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;try{Bg(Z)?Z():Z.unsubscribe()}catch(l){Z=void 0,Q=(Z=Q)!=null?Z:[],l instanceof gbp?Q=[].concat(_.OP(Q),_.OP(l.errors)):
Q.push(l)}}if(Q)throw new gbp(Q);}};
_.g.add=function(G){if(G&&G!==this)if(this.closed)Bg(G)?G():G.unsubscribe();else{if(G instanceof Jw){if(G.closed||G._hasParent(this))return;G._addParent(this)}var H;(this._teardowns=(H=this._teardowns)!=null?H:[]).push(G)}};
_.g._hasParent=function(G){var H=this._parentage;return H===G||Array.isArray(H)&&H.includes(G)};
_.g._addParent=function(G){var H=this._parentage;this._parentage=Array.isArray(H)?(H.push(G),H):H?[H,G]:G};
_.g._removeParent=function(G){var H=this._parentage;H===G?this._parentage=null:Array.isArray(H)&&Vl2(H,G)};
_.g.remove=function(G){var H=this._teardowns;H&&Vl2(H,G);G instanceof Jw&&G._removeParent(this)};
var I6d=new Jw;I6d.closed=!0;Jw.JSC$9078_EMPTY=I6d;var Xgb=function(){setTimeout.apply(null,_.OP(_.Ry.apply(0,arguments)))};var Z_=function(G){Jw.call(this);this.JSC$9083_isStopped=!1;this.destination=G instanceof Z_?G:new QO(!G||Bg(G)?{next:G!=null?G:void 0}:G);$_j(G)&&G.add(this)};
_.T(Z_,Jw);Z_.JSC$9078_EMPTY=Jw.JSC$9078_EMPTY;Z_.create=function(G,H,Z){return new pO(G,H,Z)};
_.g=Z_.prototype;_.g.next=function(G){this.JSC$9083_isStopped||this._next(G)};
_.g.error=function(G){this.JSC$9083_isStopped||(this.JSC$9083_isStopped=!0,this._error(G))};
_.g.complete=function(){this.JSC$9083_isStopped||(this.JSC$9083_isStopped=!0,this._complete())};
_.g.unsubscribe=function(){this.closed||(this.JSC$9083_isStopped=!0,Jw.prototype.unsubscribe.call(this))};
_.g._next=function(G){this.destination.next(G)};
_.g._error=function(G){this.destination.error(G);this.unsubscribe()};
_.g._complete=function(){this.destination.complete();this.unsubscribe()};
var QO=function(G){this.partialObserver=G};
QO.prototype.next=function(G){var H=this.partialObserver;if(H.next)try{H.next(G)}catch(Z){kb(Z)}};
QO.prototype.error=function(G){var H=this.partialObserver;if(H.error)try{H.error(G)}catch(Z){kb(Z)}else kb(G)};
QO.prototype.complete=function(){var G=this.partialObserver;if(G.complete)try{G.complete()}catch(H){kb(H)}};
var pO=function(G,H,Z){Z_.call(this);var Q;Bg(G)||!G?Q={next:G!=null?G:void 0,error:H!=null?H:void 0,complete:Z!=null?Z:void 0}:Q=G;this.destination=new QO(Q)};
_.T(pO,Z_);pO.JSC$9078_EMPTY=Z_.JSC$9078_EMPTY;pO.create=Z_.create;var n0=typeof Symbol==="function"&&Symbol.observable||"@@observable";var el=function(G){G&&(this._subscribe=G)};
_.g=el.prototype;_.g.lift=function(G){var H=new el;H.source=this;H.operator=G;return H};
_.g.subscribe=function(G,H,Z){G=G&&G instanceof Z_||G&&Bg(G.next)&&Bg(G.error)&&Bg(G.complete)&&$_j(G)?G:new pO(G,H,Z);H=this.operator;Z=this.source;G.add(H?H.call(G,Z):Z?this._subscribe(G):this._trySubscribe(G));return G};
_.g._trySubscribe=function(G){try{return this._subscribe(G)}catch(H){G.error(H)}};
_.g.forEach=function(G,H){var Z=this;H=TJo(H);return new H(function(Q,p){var l=Z.subscribe(function(q){try{G(q)}catch(u){p(u),l==null||l.unsubscribe()}},p,Q)})};
_.g._subscribe=function(G){var H;return(H=this.source)==null?void 0:H.subscribe(G)};
el.prototype[n0]=function(){return this};
el.prototype.pipe=function(){var G=_.Ry.apply(0,arguments);return G.length?cw3(G)(this):this};
el.create=function(G){return new el(G)};var qP7=function(){var G=Error.call(this,"object unsubscribed");this.message=G.message;"stack"in G&&(this.stack=G.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.T(qP7,Error);var cl=function(){this.observers=[];this.hasError=this.JSC$9099_isStopped=this.closed=!1;this.thrownError=null};
_.T(cl,el);_.g=cl.prototype;_.g.lift=function(G){var H=new l_(this,this);H.operator=G;return H};
_.g._throwIfClosed=function(){if(this.closed)throw new qP7;};
_.g.next=function(G){this._throwIfClosed();if(!this.JSC$9099_isStopped){var H=this.observers.slice();H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z.value.next(G)}};
_.g.error=function(G){this._throwIfClosed();if(!this.JSC$9099_isStopped){this.hasError=this.JSC$9099_isStopped=!0;this.thrownError=G;for(var H=this.observers;H.length;)H.shift().error(G)}};
_.g.complete=function(){this._throwIfClosed();if(!this.JSC$9099_isStopped){this.JSC$9099_isStopped=!0;for(var G=this.observers;G.length;)G.shift().complete()}};
_.g.unsubscribe=function(){this.JSC$9099_isStopped=this.closed=!0;this.observers=null};
_.g._trySubscribe=function(G){this._throwIfClosed();return el.prototype._trySubscribe.call(this,G)};
_.g._subscribe=function(G){this._throwIfClosed();this._checkFinalizedStatuses(G);return this._innerSubscribe(G)};
_.g._innerSubscribe=function(G){var H=this,Z=this.JSC$9099_isStopped,Q=this.observers;return this.hasError||Z?Jw.JSC$9078_EMPTY:(Q.push(G),new Jw(function(){return Vl2(H.observers,G)}))};
_.g._checkFinalizedStatuses=function(G){var H=this.thrownError,Z=this.JSC$9099_isStopped;this.hasError?G.error(H):Z&&G.complete()};
cl.create=function(G,H){return new l_(G,H)};
var l_=function(G,H){cl.call(this);this.destination=G;this.source=H};
_.T(l_,cl);l_.create=cl.create;l_.prototype.next=function(G){var H,Z;(H=this.destination)==null||(Z=H.next)==null||Z.call(H,G)};
l_.prototype.error=function(G){var H,Z;(H=this.destination)==null||(Z=H.error)==null||Z.call(H,G)};
l_.prototype.complete=function(){var G,H;(G=this.destination)==null||(H=G.complete)==null||H.call(G)};
l_.prototype._subscribe=function(G){var H,Z;return(Z=(H=this.source)==null?void 0:H.subscribe(G))!=null?Z:Jw.JSC$9078_EMPTY};var G$=function(G){cl.call(this);this._value=G};
_.T(G$,cl);G$.create=cl.create;G$.prototype._subscribe=function(G){var H=cl.prototype._subscribe.call(this,G);!H.closed&&G.next(this._value);return H};
G$.prototype.getValue=function(){var G=this.thrownError,H=this._value;if(this.hasError)throw G;this._throwIfClosed();return H};
G$.prototype.next=function(G){cl.prototype.next.call(this,this._value=G)};
_.u4.Object.defineProperties(G$.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Aw=new el(function(G){return G.complete()});var zL3=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var rwu=function(G){return G&&typeof G.length==="number"&&typeof G!=="function"};var SPN={now:function(){return(SPN.delegate||Date).now()},
delegate:void 0};var g3=function(G,H,Z){G=G===void 0?Infinity:G;H=H===void 0?Infinity:H;Z=Z===void 0?SPN:Z;cl.call(this);this.bufferSize=G;this.windowTime=H;this.timestampProvider=Z;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=H===Infinity;this.bufferSize=Math.max(1,G);this.windowTime=Math.max(1,H)};
_.T(g3,cl);g3.create=cl.create;g3.prototype.next=function(G){var H=this.buffer,Z=this.infiniteTimeWindow,Q=this.timestampProvider,p=this.windowTime;this.JSC$9099_isStopped||(H.push(G),!Z&&H.push(Q.now()+p));uVG(this);cl.prototype.next.call(this,G)};
g3.prototype._subscribe=function(G){this._throwIfClosed();uVG(this);for(var H=this._innerSubscribe(G),Z=this.infiniteTimeWindow,Q=this.buffer.slice(),p=0;p<Q.length&&!G.closed;p+=Z?1:2)G.next(Q[p]);this._checkFinalizedStatuses(G);return H};
var uVG=function(G){var H=G.bufferSize,Z=G.timestampProvider,Q=G.buffer;G=G.infiniteTimeWindow;var p=(G?1:2)*H;H<Infinity&&p<Q.length&&Q.splice(0,Q.length-p);if(!G){H=Z.now();Z=0;for(G=1;G<Q.length&&Q[G]<=H;G+=2)Z=G;Z&&Q.splice(0,Z+1)}};var Jw7=function(G,H){H=H===void 0?BJw:H;this.schedulerActionCtor=G;this.now=H};
Jw7.prototype.schedule=function(G,H,Z){H=H===void 0?0:H;return(new this.schedulerActionCtor(this,G)).schedule(Z,H)};
var BJw=SPN.now;var fwf=function(){var G=Error.call(this,"no elements in sequence");this.message=G.message;"stack"in G&&(this.stack=G.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.T(fwf,Error);var hw=function(G,H,Z,Q,p){Z_.call(this,G);this.onUnsubscribe=p;H&&(this._next=function(l){try{H(l)}catch(q){this.destination.error(q)}});
Z&&(this._error=function(l){try{Z(l)}catch(q){this.destination.error(q)}this.unsubscribe()});
Q&&(this._complete=function(){try{Q()}catch(l){this.destination.error(l)}this.unsubscribe()})};
_.T(hw,Z_);hw.JSC$9078_EMPTY=Z_.JSC$9078_EMPTY;hw.create=Z_.create;hw.prototype.unsubscribe=function(){var G;this.closed||(G=this.onUnsubscribe)!=null&&G.call(this);Z_.prototype.unsubscribe.call(this)};var pE=function(G,H){this.source=G;this.subjectFactory=H;this._subject=null;this._refCount=0;this._connection=null};
_.T(pE,el);pE.create=el.create;pE.prototype._subscribe=function(G){return tlT(this).subscribe(G)};
var tlT=function(G){var H=G._subject;if(!H||H.JSC$9099_isStopped)G._subject=G.subjectFactory();return G._subject};
pE.prototype._teardown=function(){this._refCount=0;var G=this._connection;this._subject=this._connection=null;G==null||G.unsubscribe()};
pE.prototype.connect=function(){var G=this,H=this._connection;if(!H){H=this._connection=new Jw;var Z=tlT(this);H.add(this.source.subscribe(new hw(Z,void 0,function(Q){G._teardown();Z.error(Q)},function(){G._teardown();
Z.complete()},function(){return G._teardown()})));
H.closed&&(this._connection=null,H=Jw.JSC$9078_EMPTY)}return H};var NJM=Array.isArray;var x_u=Array.isArray,kO7=Object,Li2=kO7.getPrototypeOf,EbR=kO7.prototype,YPj=kO7.keys;var mi=function(G,H,Z){Z_.call(this,G);this._next=H;this.shouldComplete=Z};
_.T(mi,Z_);mi.JSC$9078_EMPTY=Z_.JSC$9078_EMPTY;mi.create=Z_.create;mi.prototype._complete=function(){this.shouldComplete()?Z_.prototype._complete.call(this):this.unsubscribe()};var lw3=["addListener","removeListener"],plX=["addEventListener","removeEventListener"],Iwe=["on","off"];var gP=function(){Jw.call(this)};
_.T(gP,Jw);gP.JSC$9078_EMPTY=Jw.JSC$9078_EMPTY;gP.prototype.schedule=function(){return this};var D_R=function(G,H){return setInterval.apply(null,[G,H].concat(_.OP(_.Ry.apply(2,arguments))))};var Ix=function(G,H){Jw.call(this);this.scheduler=G;this.work=H;this.pending=!1};
_.T(Ix,gP);Ix.JSC$9078_EMPTY=gP.JSC$9078_EMPTY;Ix.prototype.schedule=function(G,H){H=H===void 0?0:H;if(this.closed)return this;this.state=G;G=this.id;var Z=this.scheduler;G!=null&&(this.id=d_N(this,G,H));this.pending=!0;this.delay=H;this.id=this.id||this.requestAsyncId(Z,this.id,H);return this};
Ix.prototype.requestAsyncId=function(G,H,Z){Z=Z===void 0?0:Z;return D_R(G.flush.bind(G,this),Z)};
var d_N=function(G,H,Z){Z=Z===void 0?0:Z;if(Z!=null&&G.delay===Z&&G.pending===!1)return H;clearInterval(H)};
Ix.prototype.execute=function(G,H){if(this.closed)return Error("ha");this.pending=!1;if(G=this._execute(G,H))return G;this.pending===!1&&this.id!=null&&(this.id=d_N(this,this.id,null))};
Ix.prototype._execute=function(G){var H=!1;try{this.work(G)}catch(Q){H=!0;var Z=!!Q&&Q||Error(Q)}if(H)return this.unsubscribe(),Z};
Ix.prototype.unsubscribe=function(){if(!this.closed){var G=this.id,H=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Vl2(H,this);G!=null&&(this.id=d_N(this,G,null));this.delay=null;gP.prototype.unsubscribe.call(this)}};var eLa=function(G,H){H=H===void 0?BJw:H;Jw7.call(this,G,H);this.actions=[];this.active=!1;this.scheduled=void 0};
_.T(eLa,Jw7);eLa.prototype.flush=function(G){var H=this.actions;if(this.active)H.push(G);else{var Z;this.active=!0;do if(Z=G.execute(G.state,G.delay))break;while(G=H.shift());this.active=!1;if(Z){for(;G=H.shift();)G.unsubscribe();throw Z;}}};var OA=new el(tw);var qAW=Array.isArray;var qE=function(G,H){Ix.call(this,G,H);this.scheduler=G;this.work=H};
_.T(qE,Ix);qE.JSC$9078_EMPTY=Ix.JSC$9078_EMPTY;qE.prototype.schedule=function(G,H){H=H===void 0?0:H;if(H>0)return Ix.prototype.schedule.call(this,G,H);this.delay=H;this.state=G;this.scheduler.flush(this);return this};
qE.prototype.execute=function(G,H){return H>0||this.closed?Ix.prototype.execute.call(this,G,H):this._execute(G,H)};
qE.prototype.requestAsyncId=function(G,H,Z){Z=Z===void 0?0:Z;return Z!=null&&Z>0||Z==null&&this.delay>0?Ix.prototype.requestAsyncId.call(this,G,H,Z):G.flush(this)};var nba=function(){eLa.apply(this,arguments)};
_.T(nba,eLa);var U_e=new nba(qE);var Vlp=function(){this.performanceMonitor=new fMT;this.queue=new vY4;this.internalSymbol=Symbol();this.debugNames=new l6t};
Vlp.prototype.getOnBackgrounded=function(){return OA};
_.u4.Object.defineProperties(Vlp.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var S4=function(G,H){H=Error.call(this,H?G+": "+H:String(G));this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=G;this.__proto__=S4.prototype;this.name=String(G)};
_.T(S4,Error);var aN=function(G){S4.call(this,1E3,'sfr:"'+G+'"');this.measurementStrategyFailureReason=G;this.__proto__=aN.prototype};
_.T(aN,S4);var yB=function(){S4.call(this,1003);this.__proto__=yB.prototype};
_.T(yB,S4);var u_=function(){S4.call(this,1009);this.__proto__=u_.prototype};
_.T(u_,S4);var $_N=function(){S4.call(this,1011);this.__proto__=$_N.prototype};
_.T($_N,S4);var Xga=function(){S4.call(this,1007);this.__proto__=yB.prototype};
_.T(Xga,S4);var CE=function(G){S4.call(this,1004,String(G));this.inputObservableIndex=G;this.__proto__=CE.prototype};
_.T(CE,S4);var NIf=function(G){S4.call(this,1010,G);this.__proto__=ARj.prototype};
_.T(NIf,S4);var ARj=function(G){S4.call(this,1005,G);this.__proto__=ARj.prototype};
_.T(ARj,S4);var cwd=function(G){var H=_.Ry.apply(1,arguments),Z=this;this.orderedFactories=[];this.orderedFactories.push(G);H.forEach(function(Q){Z.orderedFactories.push(Q)})};
cwd.prototype.isSupported=function(G){return this.orderedFactories.some(function(H){return H.isSupported(G)})};
cwd.prototype.makeBeacon=function(G,H){for(var Z=0;Z<this.orderedFactories.length;Z++)if(this.orderedFactories[Z].isSupported(H))return this.orderedFactories[Z].makeBeacon(G,H);throw new u_;};var wS2=Symbol("ia"),TJx=Symbol("ja"),Yb=function(G,H){this.value=G;this.timeline=H},EP=function(G,H){if(H.timeline!==G.timeline)throw new Xga;
return G.value-H.value};
_.g=Yb.prototype;_.g.equals=function(G){return EP(this,G)===0};
_.g.maximum=function(G){if(G.timeline!==this.timeline)throw new Xga;return this.value>=G.value?this:G};
_.g.round=function(){return new Yb(Math.round(this.value),this.timeline)};
_.g.add=function(G){return new Yb(this.value+G,this.timeline)};
_.g.toString=function(){return String(this.value)};var Bn=function(G,H){this.context=G;this.JSC$9205_pinger=H};
Bn.prototype.isSupported=function(G){return this.JSC$9205_pinger.isSupported(G)};
Bn.prototype.makeBeacon=function(G,H){if(!this.isSupported(H))throw new u_;return new JH(this.context,this.JSC$9205_pinger,H!=null?H:void 0,G)};
var JH=function(G,H,Z,Q){var p=this;this.JSC$9211_pinger=H;this.properties=Z;this.url=Q;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var l;this.method=(l=Z==null?void 0:Z.beaconMethod)!=null?l:"GET";this.backgroundedSubscription=G.getOnBackgrounded().subscribe(function(){p.sendNow()})};
JH.prototype.deactivate=function(){this.internalIsPending=!1};
JH.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9211_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var G,H;this.JSC$9211_pinger.pingWithHeadersAndBody((G=this.properties)!=null?G:{},this.customHeaders,(H=this.body)!=null?H:"",this.url)}else this.JSC$9211_pinger.ping(this.url);this.internalIsPending=!1}catch(Z){}else this.internalIsPending=!1};
JH.prototype.setHeader=function(G,H){this.customHeaders.set(G,H)};
_.u4.Object.defineProperties(JH.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var vb_=function(){for(var G=_.I(_.Ry.apply(0,arguments)),H=G.next();!H.done;H=G.next())if(H=H.value,H.available()){this.timeProvider=H;return}this.timeProvider=new f6a};
_.g=vb_.prototype;_.g.available=function(){return this.timeProvider.available()};
_.g.now=function(){return this.timeProvider.now()};
_.g.setTimeout=function(G,H){return this.timeProvider.setTimeout(G,H)};
_.g.clearTimeout=function(G){this.timeProvider.clearTimeout(G)};
_.g.interval=function(G,H){var Z=this.intervalObservable(G).subscribe(H);return function(){return void Z.unsubscribe()}};
_.g.intervalObservable=function(G){return this.timeProvider.intervalObservable(G)};
_.u4.Object.defineProperties(vb_.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var f6a=function(){this.timeline=Symbol()};
_.g=f6a.prototype;_.g.available=function(){return!1};
_.g.now=function(){return new Yb(0,this.timeline)};
_.g.setTimeout=function(){return 0};
_.g.clearTimeout=function(){};
_.g.interval=function(){return function(){}};
_.g.intervalObservable=function(){return OA};var tH=function(G,H){this.intrinsicFunctionNamespace=G;this.performanceMonitor=H};
_.g=tH.prototype;_.g.setTimeout=function(G,H){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,G),H)};
_.g.clearTimeout=function(G){this.intrinsicFunctionNamespace.clearTimeout(G)};
_.g.interval=function(G,H){var Z=this.intervalObservable(G).subscribe(H);return function(){return void Z.unsubscribe()}};
_.g.intervalObservable=function(G){var H=this;return new el(function(Z){var Q=0,p=H.intrinsicFunctionNamespace.setInterval(function(){Z.next(Q++)},G);
return function(){H.intrinsicFunctionNamespace.clearInterval(p)}})};
_.g.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Wid=function(G,H){tH.call(this,G,H);this.timeline=TJx};
_.T(Wid,tH);Wid.prototype.now=function(){return new Yb(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Wid.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&tH.prototype.available.call(this)};var zLd=function(G,H){tH.call(this,G,H);this.timeline=wS2};
_.T(zLd,tH);zLd.prototype.now=function(){return new Yb(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
zLd.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&tH.prototype.available.call(this)};var Mla=function(G){this.context=G;if(Ki4===void 0)a:{var H,Z,Q=(H=G.global)==null?void 0:(Z=H.document)==null?void 0:Z.createElement("meta");if(Q)try{Q.httpEquiv="origin-trial";Q.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";G.global.document.head.append(Q);Ki4=Q;break a}catch(p){}Ki4=void 0}},
Ki4;
Mla.prototype.isSupported=function(G){return nru(this.context)!==void 0&&!(G==null||!G.endOfSession)&&!ku(this.context)&&!(G==null?0:G.attributionEnabled)&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
Mla.prototype.makeBeacon=function(G,H){if(!this.isSupported(H))throw new u_;return new D_(this.context,G,H)};
var D_=function(G,H,Z){this.context=G;this.properties=Z;this.JSC$9238_urlWithoutToken=H;var Q;this.beaconMethod=(Q=Z==null?void 0:Z.beaconMethod)!=null?Q:"GET";G=nru(this.context);if(G===void 0)throw Error();this.fetchLater=G;jsd(this,PEw(this))},jsd=function(G,H){G.beaconResult&&G.beaconResult.activated||(G.beaconAbort=new AbortController,G.beaconResult=G.fetchLater(H,{method:G.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:G.beaconAbort.signal,activateAfter:96E4}))},PEw=function(G){G=G.JSC$9238_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"flapi=1"};
D_.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
D_.prototype.sendNow=function(){};
D_.prototype.setHeader=function(){};
_.u4.Object.defineProperties(D_.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9238_urlWithoutToken},
set:function(G){this.JSC$9238_urlWithoutToken=G;G=PEw(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);jsd(this,G)}},
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 rwt=function(G){this.context=G};
rwt.prototype.isSupported=function(){return!ku(this.context)&&!!this.context.global.fetch};
rwt.prototype.ping=function(){var G=this;return xb.apply(null,_.OP(_.Ry.apply(0,arguments).map(function(H){return $b(G.context.global.fetch(H,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(iE(function(Z){return Z.status===200}))}))).pipe(vrv(function(H){return H}),zOj())};
rwt.prototype.pingWithHeadersAndBody=function(G,H,Z){for(var Q=_.Ry.apply(3,arguments),p=this,l=new Headers,q=_.I(H.entries()),u=q.next();!u.done;u=q.next()){var B=_.I(u.value);u=B.next().value;B=B.next().value;l.set(u,B)}var t,D=(t=G.keepAlive)!=null?t:!1;xb.apply(null,_.OP(Q.map(function(d){return $b(p.context.global.fetch(d,Object.assign({},{method:String(G.beaconMethod),cache:"no-cache"},D?{keepalive:!0}:{},{mode:"no-cors",headers:l,body:Z}))).pipe(iE(function(e){return e.status===200}))}))).pipe(vrv(function(d){return d}),
zOj())};var wgN,a5f,hLd;_.dP=function(){};
_.CW=function(G){return G};
wgN=function(G){var H=H||0;return function(){return G.apply(this,Array.prototype.slice.call(arguments,0,H))}};
_.e4=function(G){var H=!1,Z;return function(){H||(Z=G(),H=!0);return Z}};
_.nO=function(G,H){var Z=0;return function(Q){_.Qf.clearTimeout(Z);var p=arguments;Z=_.Qf.setTimeout(function(){G.apply(void 0,p)},H)}};
a5f=function(G,H){var Z=0,Q=!1,p=[],l=function(){Z=0;Q&&(Q=!1,q())},q=function(){Z=_.Qf.setTimeout(l,H);
var u=p;p=[];G.apply(void 0,u)};
return function(u){p=arguments;Z?Q=!0:q()}};
hLd=function(G,H){var Z=0,Q=function(){Z=0};
return function(p){Z||(Z=_.Qf.setTimeout(Q,H),G.apply(void 0,arguments))}};var i0x=function(){return Vf&&Xb?Xb.mobile:!CEN()&&(c3("iPod")||c3("iPhone")||c3("Android")||c3("IEMobile"))},CEN=function(){return Vf&&Xb?!Xb.mobile&&(c3("iPad")||c3("Android")||c3("Silk")):c3("iPad")||c3("Android")&&!c3("Mobile")||c3("Silk")};var VO=function(G,H,Z,Q,p){this.allowedElements=G;this.elementPolicies=H;this.allowedGlobalAttributes=Z;this.globalAttributePolicies=Q;this.globallyAllowedAttributePrefixes=p},O0_=function(G,H,Z){Z=G.elementPolicies.get(Z);
return(Z==null?0:Z.has(H))?Z.get(H):G.allowedGlobalAttributes.has(H)?{policyAction:1}:(Z=G.globalAttributePolicies.get(H))?Z:G.globallyAllowedAttributePrefixes&&[].concat(_.OP(G.globallyAllowedAttributePrefixes)).some(function(Q){return H.indexOf(Q)===0})?{policyAction:1}:{policyAction:0}};var a6R="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(" "),
yw2=[["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}]])]],oba="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(" "),
m__=[["dir",{policyAction:3,conditions:z4(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:z4(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:z4(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:z4(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],U_a=new VO(new Set(a6R),new Map(yw2),new Set(oba),new Map(m__)),RLw=new VO(new Set(a6R.concat(["BUTTON",
"INPUT"])),new Map(yw2),new Set(z4(function(){return oba.concat(["class","id","name"])})),new Map(z4(function(){return m__.concat([["style",
{policyAction:1}]])})));var NJ_,Awp,Lip;NJ_=function(G,H,Z,Q,p){this.JSC$9295_sanitizerTable=G;this.styleElementSanitizer=H;this.styleAttributeSanitizer=Z;this.JSC$9295_resourceUrlPolicy=Q;this.JSC$9295_navigationUrlPolicy=p;this.changes=[]};
_.x_t=function(G,H){var Z=document.implementation.createHTMLDocument("");G=Awp(G,H,Z);Z=Z.body;Z.appendChild(G);Z=(new XMLSerializer).serializeToString(Z);Z=Z.slice(Z.indexOf(">")+1,Z.lastIndexOf("</"));return Lq(Z)};
Awp=function(G,H,Z){H=OEf(H,Z);H=document.createTreeWalker(H,5,function(u){if(u.nodeType===3)u=1;else if(yaf(u))if(u=awv(u),u===null)u=2;else{var B=G.JSC$9295_sanitizerTable;u=u!=="FORM"&&(B.allowedElements.has(u)||B.elementPolicies.has(u))?1:2}else u=2;return u});
for(var Q=H.nextNode(),p=Z.createDocumentFragment(),l=p;Q!==null;){var q=void 0;if(Q.nodeType===3)G.styleElementSanitizer&&l.nodeName==="STYLE"?(Q=G.styleElementSanitizer(Q.data),q=G.createTextNode(Q)):q=G.createTextNode(Q.data);else if(yaf(Q))q=Lip(G,Q,Z);else throw Error("Z");l.appendChild(q);if(Q=H.firstChild())l=q;else for(;!(Q=H.nextSibling())&&(Q=H.parentNode());)l=l.parentNode}return p};
NJ_.prototype.createTextNode=function(G){return document.createTextNode(G)};
Lip=function(G,H,Z){var Q,p=awv(H);Z=Z.createElement(p);H=H.attributes;for(var l=_.I(H),q=l.next();!q.done;q=l.next()){var u=q.value;q=u.name;u=u.value;var B=O0_(G.JSC$9295_sanitizerTable,q,p);a:{if(Q=B.conditions){Q=_.I(Q);for(var t=Q.next();!t.done;t=Q.next()){var D=_.I(t.value);t=D.next().value;D=D.next().value;var d=void 0;if((t=(d=H.getNamedItem(t))==null?void 0:d.value)&&!D.has(t)){Q=!1;break a}}}Q=!0}if(Q)switch(B.policyAction){case 1:nE(Z,q,u);break;case 2:throw Error();case 3:nE(Z,q,u.toLowerCase());
break;case 4:G.styleAttributeSanitizer?(u=G.styleAttributeSanitizer(u),nE(Z,q,u)):nE(Z,q,u);break;case 5:G.JSC$9295_resourceUrlPolicy?(B={type:2,attributeName:q,elementName:p},u=iEu(u),(u=G.JSC$9295_resourceUrlPolicy(u,B))&&nE(Z,q,u.toString())):nE(Z,q,u);break;case 6:if(G.JSC$9295_resourceUrlPolicy){B={type:2,attributeName:q,elementName:p};Q=[];u=_.I(u.split(","));for(t=u.next();!t.done;t=u.next())D=_.I(t.value.trim().split(/\s+/,2)),t=D.next().value,D=D.next().value,Q.push({url:t,descriptor:D});
u={parts:[]};Q=_.I(Q);for(t=Q.next();!t.done;t=Q.next())t=t.value,D=iEu(t.url),(D=G.JSC$9295_resourceUrlPolicy(D,B))&&u.parts.push({url:D.toString(),descriptor:t.descriptor});nE(Z,q,orf(u))}else nE(Z,q,u);break;case 7:B=u;if(G.JSC$9295_navigationUrlPolicy){B={type:2,attributeName:q,elementName:p};u=iEu(u);u=G.JSC$9295_navigationUrlPolicy(u,B);if(u===null)break;B=u.toString()}u=B;B=_.qPX(u);B=B!==void 0&&EYT.indexOf(B.toLowerCase())!==-1?u:"about:invalid#zClosurez";nE(Z,q,B)}}return Z};
_.Ebw=z4(function(){return new NJ_(U_a)});
_.YPN=z4(function(){return new NJ_(RLw)});var Fi4=function(){this.calledBuild=!1;this.JSC$9307_sanitizerTable=U_a},b0a=function(){Fi4.apply(this,arguments)};
_.T(b0a,Fi4);b0a.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new NJ_(this.JSC$9307_sanitizerTable,void 0,void 0,this.JSC$9307_resourceUrlPolicy,this.JSC$9307_navigationUrlPolicy)};var G5a=/[^#]*/;var jNf={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"},HE4=_.e4(function(){return ra2()}),
ZET=function(){var G=sNd("IFRAME"),H={};
_.Zk(HE4(),function(Z){G.sandbox&&G.sandbox.supports&&G.sandbox.supports(Z)&&(H[Z]=!0)});
return H},sNd=function(G,H){H=H===void 0?document:H;
return H.createElement(String(G).toLowerCase())};var $u;_.cM=function(G,H,Z){return Math.min(Math.max(G,H),Z)};
$u=function(G,H,Z){return G+Z*(H-G)};_.UA=function(G,H){this.x=G!==void 0?G:0;this.y=H!==void 0?H:0};
_.g=_.UA.prototype;_.g.clone=function(){return new _.UA(this.x,this.y)};
_.g.equals=function(G){return G instanceof _.UA&&(this==G?!0:this&&G?this.x==G.x&&this.y==G.y:!1)};
_.g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.g.translate=function(G,H){G instanceof _.UA?(this.x+=G.x,this.y+=G.y):(this.x+=Number(G),typeof H==="number"&&(this.y+=H));return this};
_.g.scale=function(G,H){this.x*=G;this.y*=typeof H==="number"?H:G;return this};_.M4=function(G,H){this.width=G;this.height=H};
_.g=_.M4.prototype;_.g.clone=function(){return new _.M4(this.width,this.height)};
_.g.area=function(){return this.width*this.height};
_.g.aspectRatio=function(){return this.width/this.height};
_.g.isEmpty=function(){return!this.area()};
_.g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.g.scale=function(G,H){this.width*=G;this.height*=typeof H==="number"?H:G;return this};var QNt;_.oN={};QNt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.oN.add=function(G,H,Z){if(G!==null&&H in G)throw Error("na`"+H);G[H]=Z};
_.oN.clear=function(G){for(var H in G)delete G[H]};
_.oN.clone=function(G){var H={},Z;for(Z in G)H[Z]=G[Z];return H};
_.oN.contains=function(G,H){return AaR(G,H)};
_.oN.containsKey=function(G,H){return G!==null&&H in G};
_.oN.containsValue=AaR;_.oN.create=ErM;_.oN.createImmutableView=function(G){var H=G;Object.isFrozen&&!Object.isFrozen(G)&&(H=Object.create(G),Object.freeze(H));return H};
_.oN.createSet=YAU;_.oN.equals=function(G,H){for(var Z in G)if(!(Z in H)||G[Z]!==H[Z])return!1;for(var Q in H)if(!(Q in G))return!1;return!0};
_.oN.every=function(G,H,Z){for(var Q in G)if(!H.call(Z,G[Q],Q,G))return!1;return!0};
_.oN.extend=function(G,H){for(var Z,Q,p=1;p<arguments.length;p++){Q=arguments[p];for(Z in Q)G[Z]=Q[Z];for(var l=0;l<QNt.length;l++)Z=QNt[l],Object.prototype.hasOwnProperty.call(Q,Z)&&(G[Z]=Q[Z])}};
_.oN.filter=function(G,H,Z){var Q={},p;for(p in G)H.call(Z,G[p],p,G)&&(Q[p]=G[p]);return Q};
_.oN.findKey=x4f;_.oN.findValue=function(G,H,Z){return(H=x4f(G,H,Z))&&G[H]};
_.oN.forEach=function(G,H,Z){for(var Q in G)H.call(Z,G[Q],Q,G)};
_.oN.get=function(G,H,Z){return G!==null&&H in G?G[H]:Z};
_.oN.getAllPropertyNames=function(G,H,Z){if(!G)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return N3u(G);for(var Q={};G&&(G!==Object.prototype||H)&&(G!==Function.prototype||Z);){for(var p=Object.getOwnPropertyNames(G),l=0;l<p.length;l++)Q[p[l]]=!0;G=Object.getPrototypeOf(G)}return N3u(Q)};
_.oN.getAnyKey=function(G){for(var H in G)return H};
_.oN.getAnyValue=function(G){for(var H in G)return G[H]};
_.oN.getCount=function(G){var H=0,Z;for(Z in G)H++;return H};
_.oN.getKeys=N3u;_.oN.getSuperClass=function(G){return(G=Object.getPrototypeOf(G.prototype))&&G.constructor};
_.oN.getValueByKeys=function(G,H){var Z=_.Uj(H),Q=Z?H:arguments;for(Z=Z?0:1;Z<Q.length;Z++){if(G==null)return;G=G[Q[Z]]}return G};
_.oN.getValues=function(G){var H=[],Z=0,Q;for(Q in G)H[Z++]=G[Q];return H};
_.oN.isEmpty=function(G){for(var H in G)return!1;return!0};
_.oN.isImmutableView=function(G){return!!Object.isFrozen&&Object.isFrozen(G)};
_.oN.map=function(G,H,Z){var Q={},p;for(p in G)Q[p]=H.call(Z,G[p],p,G);return Q};
_.oN.remove=function(G,H){var Z;(Z=H in G)&&delete G[H];return Z};
_.oN.set=function(G,H,Z){G[H]=Z};
_.oN.setIfUndefined=function(G,H,Z){return H in G?G[H]:G[H]=Z};
_.oN.setWithReturnValueIfNotSet=function(G,H,Z){if(H in G)return G[H];Z=Z();return G[H]=Z};
_.oN.some=function(G,H,Z){for(var Q in G)if(H.call(Z,G[Q],Q,G))return!0;return!1};
_.oN.transpose=function(G){var H={},Z;for(Z in G)H[G[Z]]=Z;return H};
_.oN.unsafeClone=LTo;var AL=function(G,H){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=G===Rhj&&H||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=pl7};
AL.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var lwd=function(G){return G instanceof AL&&G.constructor===AL&&G.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===pl7?G.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},pl7={},Rhj={};
new AL(Rhj,"");var r3,Mj,cn,grt,SAT,qAw,RN,B3a,ttR,Ja_,Wn,k5d,XlR,$47,Vt7,caw,T3a,fw4,vr2,q6e,WTa,KT7,MtT,zOR,XC;r3=function(G){return G?new XC(_.N4(G)):koG||(koG=new XC)};
_.Ni=function(G,H){return typeof H==="string"?G.getElementById(H):H};
Mj=function(G,H){return(H||document).getElementsByTagName(String(G))};
_.Iwa=function(G){return grt("yt-formatted-string","paper-input-input",G)};
cn=function(G,H,Z,Q){G=Q||G;return(H=H&&H!="*"?String(H).toUpperCase():"")||Z?G.querySelectorAll(H+(Z?"."+Z:"")):G.getElementsByTagName("*")};
grt=function(G,H,Z){var Q=document,p=G&&G!="*"?String(G).toUpperCase():"";return p||H?(Z||Q).querySelector(p+(H?"."+H:"")):cn(Q,G,H,Z)[0]||null};
SAT=function(G,H){_.oN.forEach(H,function(Z,Q){Q=="style"?G.style.cssText=Z:Q=="class"?G.className=Z:Q=="for"?G.htmlFor=Z:qAw.hasOwnProperty(Q)?G.setAttribute(qAw[Q],Z):_.le(Q,"aria-")||_.le(Q,"data-")?G.setAttribute(Q,Z):G[Q]=Z})};
qAw={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"};_.jt=function(G){G=(G||window).document;G=G.compatMode=="CSS1Compat"?G.documentElement:G.body;return new _.M4(G.clientWidth,G.clientHeight)};
_.uka=function(G){var H=_.TL(G);G=G.defaultView;return new _.UA((G==null?void 0:G.pageXOffset)||H.scrollLeft,(G==null?void 0:G.pageYOffset)||H.scrollTop)};
_.TL=function(G){return G.scrollingElement?G.scrollingElement:_.b$||G.compatMode!="CSS1Compat"?G.body||G.documentElement:G.documentElement};
RN=function(G){return G?G.defaultView:window};
_.fO=function(G,H,Z){return B3a(document,arguments)};
B3a=function(G,H){var Z=H[1],Q=Ja_(G,String(H[0]));Z&&(typeof Z==="string"?Q.className=Z:Array.isArray(Z)?Q.className=Z.join(" "):SAT(Q,Z));H.length>2&&ttR(G,Q,H,2);return Q};
ttR=function(G,H,Z,Q){function p(u){u&&H.appendChild(typeof u==="string"?G.createTextNode(u):u)}
for(;Q<Z.length;Q++){var l=Z[Q];if(!_.Uj(l)||_.AM(l)&&l.nodeType>0)p(l);else{a:{if(l&&typeof l.length=="number"){if(_.AM(l)){var q=typeof l.item=="function"||typeof l.item=="string";break a}if(typeof l==="function"){q=typeof l.item=="function";break a}}q=!1}_.Zk(q?_.mv(l):l,p)}}};
_.z$=function(G){return Ja_(document,G)};
Ja_=function(G,H){H=String(H);G.contentType==="application/xhtml+xml"&&(H=H.toLowerCase());return G.createElement(H)};
_.vn=function(){return document.createTextNode("\n")};
Wn=function(G){if(G.nodeType!=1)return!1;switch(G.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};
k5d=function(G,H){ttR(_.N4(G),G,arguments,1)};
_.zL=function(G){for(var H;H=G.firstChild;)G.removeChild(H)};
_.KO=function(G,H){H.parentNode&&H.parentNode.insertBefore(G,H)};
_.ME=function(G,H){H.parentNode&&H.parentNode.insertBefore(G,H.nextSibling)};
_.Ku=function(G){return G&&G.parentNode?G.parentNode.removeChild(G):null};
_.D4_=function(G,H){var Z=H.parentNode;Z&&Z.replaceChild(G,H)};
_.d4a=function(G){var H,Z=G.parentNode;if(Z&&Z.nodeType!=11)if(G.removeNode)G.removeNode(!1);else{for(;H=G.firstChild;)Z.insertBefore(H,G);_.Ku(G)}};
_.j4=function(G){return G.children!=void 0?G.children:Array.prototype.filter.call(G.childNodes,function(H){return H.nodeType==1})};
_.nrt=function(G){return G.nextElementSibling!==void 0?G.nextElementSibling:_.eOG(G.nextSibling,!0)};
_.eOG=function(G,H){for(;G&&G.nodeType!=1;)G=H?G.nextSibling:G.previousSibling;return G};
_.gM=function(G){return _.AM(G)&&G.nodeType==1};
_.FG=function(G,H){if(!G||!H)return!1;if(G.contains&&H.nodeType==1)return G==H||G.contains(H);if(typeof G.compareDocumentPosition!="undefined")return G==H||!!(G.compareDocumentPosition(H)&16);for(;H&&G!=H;)H=H.parentNode;return H==G};
XlR=function(G,H){if(G==H)return 0;if(G.compareDocumentPosition)return G.compareDocumentPosition(H)&2?1:-1;if("sourceIndex"in G||G.parentNode&&"sourceIndex"in G.parentNode){var Z=G.nodeType==1,Q=H.nodeType==1;if(Z&&Q)return G.sourceIndex-H.sourceIndex;var p=G.parentNode,l=H.parentNode;return p==l?Vt7(G,H):!Z&&_.FG(p,H)?-1*$47(G,H):!Q&&_.FG(l,G)?$47(H,G):(Z?G.sourceIndex:p.sourceIndex)-(Q?H.sourceIndex:l.sourceIndex)}Q=_.N4(G);Z=Q.createRange();Z.selectNode(G);Z.collapse(!0);G=Q.createRange();G.selectNode(H);
G.collapse(!0);return Z.compareBoundaryPoints(_.Qf.Range.START_TO_END,G)};
$47=function(G,H){var Z=G.parentNode;if(Z==H)return-1;for(;H.parentNode!=Z;)H=H.parentNode;return Vt7(H,G)};
Vt7=function(G,H){for(;H=H.previousSibling;)if(H==G)return-1;return 1};
caw=function(G){var H,Z=arguments.length;if(!Z)return null;if(Z==1)return arguments[0];var Q=[],p=Infinity;for(H=0;H<Z;H++){for(var l=[],q=arguments[H];q;)l.unshift(q),q=q.parentNode;Q.push(l);p=Math.min(p,l.length)}l=null;for(H=0;H<p;H++){q=Q[0][H];for(var u=1;u<Z;u++)if(q!=Q[u][H])return l;l=q}return l};
_.N4=function(G){return G.nodeType==9?G:G.ownerDocument||G.document};
T3a=function(G){return G.contentDocument||G.contentWindow.document};
_.Pn=function(G,H){if("textContent"in G)G.textContent=H;else if(G.nodeType==3)G.data=String(H);else if(G.firstChild&&G.firstChild.nodeType==3){for(;G.lastChild!=G.firstChild;)G.removeChild(G.lastChild);G.firstChild.data=String(H)}else _.zL(G),G.appendChild(_.N4(G).createTextNode(String(H)))};
fw4={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};vr2={IMG:" ",BR:"\n"};q6e=function(G){var H;G.tagName=="A"&&G.hasAttribute("href")||G.tagName=="INPUT"||G.tagName=="TEXTAREA"||G.tagName=="SELECT"||G.tagName=="BUTTON"?H=!G.disabled&&(!G.hasAttribute("tabindex")||WTa(G)):H=G.hasAttribute("tabindex")&&WTa(G);return H};
WTa=function(G){G=G.tabIndex;return typeof G==="number"&&G>=0&&G<32768};
KT7=function(G){var H=[];zOR(G,H,!0);G=H.join("");G=G.replace(/ \xAD /g," ").replace(/\xAD/g,"");G=G.replace(/\u200B/g,"");G=G.replace(/ +/g," ");G!=" "&&(G=G.replace(/^\s*/,""));return G};
MtT=function(G){var H=[];zOR(G,H,!1);return H.join("")};
zOR=function(G,H,Z){if(!(G.nodeName in fw4))if(G.nodeType==3)Z?H.push(String(G.nodeValue).replace(/(\r\n|\r|\n)/g,"")):H.push(G.nodeValue);else if(G.nodeName in vr2)H.push(vr2[G.nodeName]);else for(G=G.firstChild;G;)zOR(G,H,Z),G=G.nextSibling};
_.jN4=function(G,H,Z){if(!H&&!Z)return null;var Q=H?String(H).toUpperCase():null;return _.xr(G,function(p){return(!Q||p.nodeName==Q)&&(!Z||typeof p.className==="string"&&_.yf(p.className.split(/\s+/),Z))},!0)};
_.xr=function(G,H,Z){G&&!Z&&(G=G.parentNode);for(Z=0;G;){if(H(G))return G;G=G.parentNode;Z++}return null};
XC=function(G){this.JSC$9335_document_=G||_.Qf.document||document};
_.g=XC.prototype;_.g.getElement=function(G){return _.Ni(this.JSC$9335_document_,G)};
_.g.$=XC.prototype.getElement;_.g.getElementsByTagName=function(G,H){return(H||this.JSC$9335_document_).getElementsByTagName(String(G))};
_.g.getElementsByTagNameAndClass=function(G,H,Z){return cn(this.JSC$9335_document_,G,H,Z)};
_.g.$$=XC.prototype.getElementsByTagNameAndClass;_.g.setProperties=SAT;_.g.JSC$9337_createDom=function(G,H,Z){return B3a(this.JSC$9335_document_,arguments)};
_.g.createElement=function(G){return Ja_(this.JSC$9335_document_,G)};
_.g.createTextNode=function(G){return this.JSC$9335_document_.createTextNode(String(G))};
_.g.getWindow=function(){return this.JSC$9335_document_.defaultView};
var Pl=function(G){return _.uka(G.JSC$9335_document_)};
_.g=XC.prototype;_.g.appendChild=function(G,H){G.appendChild(H)};
_.g.append=k5d;_.g.canHaveChildren=Wn;_.g.removeNode=_.Ku;_.g.getChildren=_.j4;_.g.contains=_.FG;_.g.isFocusable=q6e;_.g=Xk.prototype;_.g.getWidth=function(){return this.right-this.left};
_.g.getHeight=function(){return this.bottom-this.top};
_.g.clone=function(){return new Xk(this.top,this.right,this.bottom,this.left)};
_.g.contains=function(G){return this&&G?G instanceof Xk?G.left>=this.left&&G.right<=this.right&&G.top>=this.top&&G.bottom<=this.bottom:G.x>=this.left&&G.x<=this.right&&G.y>=this.top&&G.y<=this.bottom:!1};
_.g.expand=function(G,H,Z,Q){_.AM(G)?(this.top-=G.top,this.right+=G.right,this.bottom+=G.bottom,this.left-=G.left):(this.top-=G,this.right+=Number(H),this.bottom+=Number(Z),this.left-=Number(Q));return this};
_.g.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};
_.g.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};
_.g.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};
_.g.translate=function(G,H){G instanceof _.UA?(this.left+=G.x,this.right+=G.x,this.top+=G.y,this.bottom+=G.y):(this.left+=G,this.right+=G,typeof H==="number"&&(this.top+=H,this.bottom+=H));return this};
_.g.scale=function(G,H){H=typeof H==="number"?H:G;this.left*=G;this.right*=G;this.top*=H;this.bottom*=H;return this};var rP=function(G,H,Z,Q){this.left=G;this.top=H;this.width=Z;this.height=Q};
_.g=rP.prototype;_.g.clone=function(){return new rP(this.left,this.top,this.width,this.height)};
_.g.boundingRect=function(G){var H=Math.max(this.left+this.width,G.left+G.width),Z=Math.max(this.top+this.height,G.top+G.height);this.left=Math.min(this.left,G.left);this.top=Math.min(this.top,G.top);this.width=H-this.left;this.height=Z-this.top};
_.g.contains=function(G){return G instanceof _.UA?G.x>=this.left&&G.x<=this.left+this.width&&G.y>=this.top&&G.y<=this.top+this.height:this.left<=G.left&&this.left+this.width>=G.left+G.width&&this.top<=G.top&&this.top+this.height>=G.top+G.height};
_.g.distance=function(G){var H=G.x<this.left?this.left-G.x:Math.max(G.x-(this.left+this.width),0);G=G.y<this.top?this.top-G.y:Math.max(G.y-(this.top+this.height),0);return Math.sqrt(H*H+G*G)};
_.g.getSize=function(){return new _.M4(this.width,this.height)};
_.g.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};
_.g.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};
_.g.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};
_.g.translate=function(G,H){G instanceof _.UA?(this.left+=G.x,this.top+=G.y):(this.left+=G,typeof H==="number"&&(this.top+=H));return this};
_.g.scale=function(G,H){H=typeof H==="number"?H:G;this.left*=G;this.width*=G;this.top*=H;this.height*=H;return this};var rap,CO,XSb,hH,iEt,CGx,OEG,t4j,aw2,orG;_.wP=function(G,H,Z){if(typeof H==="string")(H=_.PGa(G,H))&&(G.style[H]=Z);else for(var Q in H){Z=G;var p=H[Q],l=_.PGa(Z,Q);l&&(Z.style[l]=p)}};
rap={};_.PGa=function(G,H){var Z=rap[H];if(!Z){var Q=_.Qa(H);Z=Q;G.style[Q]===void 0&&(Q=(_.b$?"Webkit":_.FW?"Moz":null)+pgt(Q),G.style[Q]!==void 0&&(Z=Q));rap[H]=Z}return Z};
_.YX=function(G,H){var Z=_.N4(G);return Z.defaultView&&Z.defaultView.getComputedStyle&&(G=Z.defaultView.getComputedStyle(G,null))?G[H]||G.getPropertyValue(H)||"":""};
_.Y5=function(G,H){return _.YX(G,H)||(G.currentStyle?G.currentStyle[H]:null)||G.style&&G.style[H]};
_.wlN=function(G){return _.Y5(G,"position")};
CO=function(G,H,Z){if(H instanceof _.UA){var Q=H.x;H=H.y}else Q=H,H=Z;G.style.left=hH(Q,!1);G.style.top=hH(H,!1)};
XSb=function(G){try{return G.getBoundingClientRect()}catch(H){return{left:0,top:0,right:0,bottom:0}}};
_.Aa=function(G){var H=_.N4(G),Z=new _.UA(0,0);if(G==(H?_.N4(H):document).documentElement)return Z;G=XSb(G);H=Pl(r3(H));Z.x=G.left+H.x;Z.y=G.top+H.y;return Z};
_.hOw=function(G,H,Z){if(H instanceof _.M4)Z=H.height,H=H.width;else if(Z==void 0)throw Error("oa");G.style.width=hH(H,!0);G.style.height=hH(Z,!0)};
hH=function(G,H){typeof G=="number"&&(G=(H?Math.round(G):G)+"px");return G};
iEt=function(G){return CGx(G)};
CGx=function(G){var H=OEG;if(_.Y5(G,"display")!="none")return H(G);var Z=G.style,Q=Z.display,p=Z.visibility,l=Z.position;Z.visibility="hidden";Z.position="absolute";Z.display="inline";G=H(G);Z.display=Q;Z.position=l;Z.visibility=p;return G};
OEG=function(G){var H=G.offsetWidth,Z=G.offsetHeight,Q=_.b$&&!H&&!Z;return(H===void 0||Q)&&G.getBoundingClientRect?(G=XSb(G),new _.M4(G.right-G.left,G.bottom-G.top)):new _.M4(H,Z)};
t4j=function(G){var H=_.Aa(G);G=CGx(G);return new rP(H.x,H.y,G.width,G.height)};
aw2=function(G,H){G=G.style;"opacity"in G?G.opacity=H:"MozOpacity"in G?G.MozOpacity=H:"filter"in G&&(G.filter=H===""?"":"alpha(opacity="+Number(H)*100+")")};
_.QN=function(G,H){G.style.display=H?"":"none"};
_.ya4=function(G){return"rtl"==_.Y5(G,"direction")};
orG=function(G){var H=_.YX(G,"marginLeft"),Z=_.YX(G,"marginRight"),Q=_.YX(G,"marginTop");G=_.YX(G,"marginBottom");return new Xk(parseFloat(Q),parseFloat(Z),parseFloat(G),parseFloat(H))};
_.m4d=function(G){var H=_.YX(G,"borderLeftWidth"),Z=_.YX(G,"borderRightWidth"),Q=_.YX(G,"borderTopWidth");G=_.YX(G,"borderBottomWidth");return new Xk(parseFloat(Q),parseFloat(Z),parseFloat(G),parseFloat(H))};var i_=function(G){this.context=G};
i_.prototype.isSupported=function(G){return(G==null?0:G.attributionEnabled)||(G==null?void 0:G.beaconMethod)==="POST"||(G==null?0:G.customHeaders)||(G==null?0:G.customBody)||(G==null?0:G.keepAlive)?!1:!ku(this.context)};
i_.prototype.ping=function(){var G=this;return jl(_.Ry.apply(0,arguments).map(function(H){try{var Z=G.context.global,Q=!1;Q=Q===void 0?!1:Q;Z.google_image_requests||(Z.google_image_requests=[]);var p=sNd("IMG",Z.document);Q&&(p.attributionSrc="");p.src=H;Z.google_image_requests.push(p);return!0}catch(l){return!1}}).every(function(H){return H}))};
i_.prototype.pingWithHeadersAndBody=function(G,H,Z){this.ping.apply(this,_.OP(_.Ry.apply(3,arguments)))};var U4a=function(G){this.context=G};
U4a.prototype.isSupported=function(G){return ROT&&!ku(this.context)&&FTW(this.context)!==void 0&&!(G==null?0:G.attributionEnabled)&&(G==null?void 0:G.beaconMethod)!=="POST"&&!(G==null?0:G.customHeaders)&&!(G==null?0:G.customBody)};
U4a.prototype.makeBeacon=function(G,H){if(!this.isSupported(H))throw new u_;return new OK(this.context,G)};
var ROT=!1,OK=function(G,H){this.context=G;this.JSC$9356_urlWithoutToken=H;G=FTW(this.context);if(G===void 0)throw Error();this.wrappedBeacon=new G(N3t(this),{})},N3t=function(G){G=G.JSC$9356_urlWithoutToken;
return(G.slice(-1)[0]==="&"?G:G+"&")+"pbapi=1"};
OK.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
OK.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
OK.prototype.setHeader=function(){};
_.u4.Object.defineProperties(OK.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9356_urlWithoutToken},
set:function(G){this.JSC$9356_urlWithoutToken=G;this.wrappedBeacon.setURL(N3t(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(G){if(G!=="GET")throw new u_;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var Aaw=function(G){this.context=G};
Aaw.prototype.isSupported=function(G){if((G==null?0:G.attributionEnabled)||(G==null?void 0:G.beaconMethod)==="GET"||(G==null?0:G.customHeaders)||(G==null?0:G.customBody)||(G==null?0:G.keepAlive))return!1;var H;return!ku(this.context)&&((H=this.context.global.navigator)==null?void 0:H.sendBeacon)!==void 0};
Aaw.prototype.ping=function(){var G=this;return jl(_.Ry.apply(0,arguments).map(function(H){var Z;return(Z=G.context.global.navigator)==null?void 0:Z.sendBeacon(H)}).every(function(H){return H}))};
Aaw.prototype.pingWithHeadersAndBody=function(G,H,Z){this.ping.apply(this,_.OP(_.Ry.apply(3,arguments)))};var Wl=function(G){this.value=G},lY=function(G,H){return jl(G.value).pipe(fE(H))},If=new Wl(!1),wto=new Wl(!0);var LE=function(G){this.value=G;this.releasedSubject=new cl};
LE.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.u4.Object.defineProperties(LE.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9369_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var uGo=["FRAME","IMG","IFRAME"],p7R=/^[01](px)?$/,S1j=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},q12=function(){var G=new S1j;
G.crossDomainLoadedDefault=!0;G.pendingImagesBlockLoad=!0;return G};var x44=function(G,H){var Z=eKj(G);if(Z)if(Z.onCreativeLoad)Z.onCreativeLoad(H);else{var Q=H?[H]:[],p=function(l){for(var q=0;q<Q.length;++q)try{Q[q](1,l)}catch(u){}Q={push:function(u){u(1,l)}}};
Z.onCreativeLoad=function(l){Q.push(l)};
Z.setAttribute("data-creative-load-listener","");Z.addEventListener("creativeLoad",function(l){p(l.detail)});
_.Qf.addEventListener("message",function(l){djf(Z,p,l)})}};var ax=function(G,H){var Z=this;this.global=G;this.parentContext=H;this.JSC$9380_onVisibilityChange=this.document?xb(jl(!0),N_(this.document,"visibilitychange")).pipe(FV(this.parentContext.performanceMonitor,748),iE(function(){return Z.getVisibilityState()}),Zw()):jl("visible");
this.document?N_(this.document,"DOMContentLoaded").pipe(FV(this.parentContext.performanceMonitor,739),sA(1)):jl(ZuW("DOMContentLoaded"))},rev=function(G){return G.document!==null&&G.document.visibilityState!==void 0};
ax.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
ax.prototype.querySelector=function(G){return this.document?this.document.querySelector(G):null};
ax.prototype.querySelectorAll=function(G){return this.document?_.mv(this.document.querySelectorAll(G)):[]};
ax.prototype.elementFromPoint=function(G,H){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;G=this.document.elementFromPoint(G,H);return G===null?null:new LE(G)};
var Xt2=function(G,H,Z){Z=Z===void 0?!1:Z;if(H.ref===void 0||!G.document)return jl(H).pipe(FV(G.parentContext.performanceMonitor,749));var Q=new g3(1),p=function(){Q.next(H)};
Z||x44(H.ref,p);BIf(H.ref,p);return Q.pipe(FV(G.parentContext.performanceMonitor,749),sA(1))};
_.u4.Object.defineProperties(ax.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return wlj(this.global,"document")?this.global.document||null:null}}});var n5f=_.CM(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),V_R=_.CM(["./reach_worklet.js"]),$j3=_.CM(["./reach_worklet.js"]),LTx=_.CM(["./reach_worklet.html"]),Er_=_.CM(["./reach_worklet.js"]),YAT=_.CM(["./reach_worklet.js"]);_.VB(LTx);_.VB(Er_);_.VB(YAT);var H7={left:0,top:0,width:0,height:0};var FTw,bET,G$4,Hux,SA,Zuw,QfT,p7w,o8e,mbj,ISw,q1p;FTw=function(G,H,Z,Q,p,l,q){var u="";G&&(u+=G+":");Z&&(u+="//",H&&(u+=H+"@"),u+=Z,Q&&(u+=":"+Q));p&&(u+=p);l&&(u+="?"+l);q&&(u+="#"+q);return u};
bET=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.IJ=function(G){return G.match(bET)};
_.kj=function(G,H){return G?H?decodeURI(G):decodeURIComponent(G):G};
G$4=function(G){G=_.IJ(G)[1]||null;!G&&_.Qf.self&&_.Qf.self.location&&(G=_.Qf.self.location.protocol.slice(0,-1));return G?G.toLowerCase():""};
_.qY=function(G){return _.kj(_.IJ(G)[3]||null,!0)};
_.vU=function(G){return _.kj(_.IJ(G)[5]||null,!0)};
_.DMf=function(G){var H=G.indexOf("#");return H<0?null:G.slice(H+1)};
Hux=function(G){G=_.IJ(G);return FTw(G[1],G[2],G[3],G[4])};
_.sfw=function(G){G=_.IJ(G);return FTw(G[1],null,G[3],G[4])};
_.M5=function(G){G=_.IJ(G);return FTw(null,null,null,null,G[5],G[6],G[7])};
_.Ol=function(G){var H=G.indexOf("#");return H<0?G:G.slice(0,H)};
SA=function(G,H){G=_.IJ(G);H=_.IJ(H);return G[3]==H[3]&&G[1]==H[1]&&G[4]==H[4]};
Zuw=function(G,H){if(G){G=G.split("&");for(var Z=0;Z<G.length;Z++){var Q=G[Z].indexOf("="),p=null;if(Q>=0){var l=G[Z].substring(0,Q);p=G[Z].substring(Q+1)}else l=G[Z];H(l,p?BU(p):"")}}};
QfT=function(G){var H=G.indexOf("#");H<0&&(H=G.length);var Z=G.indexOf("?");if(Z<0||Z>H){Z=H;var Q=""}else Q=G.substring(Z+1,H);return[G.slice(0,Z),Q,G.slice(H)]};
p7w=function(G,H){return H?G?G+"&"+H:H:G};
_.lS_=function(G,H){if(!H)return G;G=QfT(G);G[1]=p7w(G[1],H);return G[0]+(G[1]?"?"+G[1]:"")+G[2]};
_.g5a=function(G,H,Z){if(Array.isArray(H))for(var Q=0;Q<H.length;Q++)_.g5a(G,String(H[Q]),Z);else H!=null&&Z.push(G+(H===""?"":"="+_.sd(H)))};
_.zF=function(G){var H=[],Z;for(Z in G)_.g5a(Z,G[Z],H);return H.join("&")};
_.g7=function(G,H){H=_.zF(H);return _.lS_(G,H)};
_.yO=function(G,H,Z){Z=Z!=null?"="+_.sd(Z):"";return _.lS_(G,H+Z)};
o8e=function(G,H,Z,Q){for(var p=Z.length;(H=G.indexOf(Z,H))>=0&&H<Q;){var l=G.charCodeAt(H-1);if(l==38||l==63)if(l=G.charCodeAt(H+p),!l||l==61||l==38||l==35)return H;H+=p+1}return-1};
mbj=/#|$/;_.bY=function(G,H){var Z=G.search(mbj),Q=o8e(G,0,H,Z);if(Q<0)return null;var p=G.indexOf("&",Q);if(p<0||p>Z)p=Z;Q+=H.length+1;return BU(G.slice(Q,p!==-1?p:0))};
ISw=/[?&]($|#)/;_.ya=function(G,H){for(var Z=G.search(mbj),Q=0,p,l=[];(p=o8e(G,Q,H,Z))>=0;)l.push(G.substring(Q,p)),Q=Math.min(G.indexOf("&",p)+1||Z,Z);l.push(G.slice(Q));return l.join("").replace(ISw,"$1")};
_.LT=function(G,H,Z){return _.yO(_.ya(G,H),H,Z)};
q1p=function(G){var H=QfT(window.location.href),Z=H[1],Q=[];Z&&Z.split("&").forEach(function(p){var l=p.indexOf("=");l=l>=0?p.slice(0,l):p;G.hasOwnProperty(l)||Q.push(p)});
H[1]=p7w(Q.join("&"),_.zF(G));return H[0]+(H[1]?"?"+H[1]:"")+H[2]};var o5j=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(o5j,_.Iy);var yRU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(yRU,_.Iy);var w7f=function(G,H){return _.ha(G,2,H)},aSj=function(G,H){return _.ha(G,3,H)};
yRU.prototype.getModel=function(){return _.nY(this,4)};
var CYM=function(G,H){return _.ha(G,4,H)},rRM=function(G,H){return _.ha(G,5,H)},Ouf=function(G,H){return _.ha(G,9,H)},PY2=function(G,H){return Jg(G,10,H)},jfj=function(G,H){return _.nu(G,11,H)},hKf=function(G,H){return _.ha(G,1,H)},iuo=function(G,H){return _.nu(G,7,H)};var Kuf="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var gI=function(G,H,Z,Q){G=G===void 0?window:G;H=H===void 0?null:H;Z=Z===void 0?new fMT:Z;Q=Q===void 0?X7v():Q;Vlp.call(this);var p=this;this.global=G;this.debugChannel=H;this.performanceMonitor=Z;this.onPageHide=QNu(function(){return N_(p.global,"pagehide")}).pipe(FV(this.performanceMonitor,941));
this.onLoad=QNu(function(){return N_(p.global,"load")}).pipe(FV(this.performanceMonitor,738),sA(1));
this.onResize=QNu(function(){return N_(p.global,"resize")}).pipe(FV(this.performanceMonitor,741));
this.onMessage=QNu(function(){return N_(p.global,"message")}).pipe(FV(this.performanceMonitor,740));
this.document=new ax(this.global,this);this.timeProvider=new vb_(new zLd(this.intrinsicFunctionNamespace,this.performanceMonitor),new Wid(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new cwd(new Mla(this),new U4a(this),new Bn(this,new rwt(this)),new Bn(this,new Aaw(this)),new Bn(this,new i_(this)))};
_.T(gI,Vlp);gI.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(G){return G}};
var ku=function(G){var H=G.global;return!!G.global.HTMLFencedFrameElement&&!!H.fence&&typeof H.fence.reportEvent==="function"};
_.g=gI.prototype;_.g.reportFencedFrameEvent=function(G){ku(this)&&this.global.fence.reportEvent(G)};
_.g.getOnBackgrounded=function(){return this.onPageHide.pipe(FV(this.performanceMonitor,942),fE(this.queue),iE(function(){}))};
_.g.postMessage=function(G,H,Z){Z=Z===void 0?[]:Z;this.global.postMessage(G,H,Z)};
_.g.getWidth=function(){return hOW(this.global)?this.global.width:0};
_.g.getHeight=function(){return hOW(this.global)?this.global.height:0};
_.g.isMobile=function(){return CEN()||i0x()};
var Fk=function(G,H){try{var Z=v5X(H,G.global,G.isMobile());return{left:Z.left,top:Z.top,width:Z.getWidth(),height:Z.getHeight()}}catch(Q){return H7}};
gI.prototype.validate=function(){var G=this.beaconFactory.isSupported()||ku(this);return this.global&&this.timeProvider.available()&&G};
var G$f=function(G){return(G=Ujj(G.global))?$b(G):null};
_.u4.Object.defineProperties(gI.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(G){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(G){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!hOW(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}}});_.S1N=!_.Yj&&!_.ejj();var h_e=function(G){return G};var ilM=function(G){return G.pipe(L0(function(H){var Z=H.endOfSessionReason;var Q;return((Q=H.viewable)==null?void 0:Q.extrapolateToNow().value)||Z!=void 0}),sA(1),G5())};var Y12=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Fuj=function(G){var H=G.sequenceNumber.toString(10).padStart(2,"0");
H=""+G.startTime+H;G.sequenceNumber<99&&G.sequenceNumber++;return H};var PWU=dJ(Dw(function(G){return G.endOfSessionReason===void 0}),iE(function(G){return Object.assign({},G,{timestamps:iG(G)})}),L0(function(G){var H=G.viewable;
G=G.timestamps;var Z;return(Z=H==null?void 0:H.extrapolateUsingTimestampMap(G).value)!=null?Z:!1}),iE(function(G){var H=G.beaconFactory;
var Z=G.timestampedExposureHistory;var Q=G.timeOnScreen;var p=G.binaryContext;G=G.timestamps;if(H===void 0||Z===void 0||Q===void 0||p===void 0)return!1;if(Q.extrapolateUsingTimestampMap(G).value.every(function(l){return l>=0}))return!0;
Z=Z.map(function(l){return l.timestamp+":"+l.value}).join(",");
Q=buf({bin:p,tos:Q},G);H.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+Q+("&eh="+Z)).sendNow();return!0}),Dw(function(G){return!G}),G5());var Hbv=function(G){return{id:G.pingId,mcvt:G.maxConsecutiveViewTime,p:G.creativePosition,asp:G.adSpeedPosition,tm:G.totalMeasurementTime,tu:G.totalUnviewedTime,mtos:G.maxTimeOnScreen,tos:G.timeOnScreen,v:G.binaryVersion,bin:G.binaryContext,avms:G.measurementStrategy,bs:G.browserSize,mc:G.maximumExposure,"if":G.crossDomainIframeState,vu:G.delayedImpressionJsState,app:G.inApp,mse:G.mraidError,mtop:G.mraidSituation,itpl:G.injectedTemplateId,adk:G.adKey,exk:G.awbidKey,rs:G.requestSource,la:G.isLargeAd,
cr:G.isContentRecommendationAd,uach:G.userAgentClientHints,vs:G.viewState,r:G.reasonCode,pay:G.hasCpmavUrl,co:G.clientPingOrderCounter,rst:G.adRenderStartTime,rpt:G.adRenderPeriodTime,isd:G.initialScrollDepth,lsd:G.loadedScrollDepth,context:G.errorContext,msg:G.errorMessage,stack:G.errorStack,name:G.errorName,ec:G.hasElementChanged,sfr:G.strategyFailureReasons,met:G.creativeSearchResult,wmsd:G.webMeasurementStartDiagnostic,pv:G.pageVisible,epv:G.eosPageVisible,pbe:G.inStatefulBeaconExperiment,fle:G.inFetchLaterBeaconExperiment,
vae:G.inViewableAttributionExperiment,spb:G.supportsPendingBeacon,sfl:G.supportsFetchLater,ffslot:G.isFencedFrameSlotTurtlex,reach:G.sharedStorageReachMode,io2:G.v2VisibilityBitVector,rxdbg:G.rxDebugger,omida:G.omidAppId,omidp:G.omidPartner,omidpv:G.omidPartnerVersion,omidor:G.omidOcclusionReasons,omidv:G.omidVersion,omids:G.omidSessionType,omidam:G.omidAccessMode,omidct:G.omidCreativeType,omidia:G.omidInApp,omiddc:G.omidDeviceCategory,omidlat:G.omidLastActivity,omiddit:G.omidDeviceIdleTime,qid:G.errorEscapedQueryId}};var CWM=function(G){var H=[];return G.pipe(iE(function(Z){var Q=Z.beaconFactory,p=Z.fetchBeaconFactory,l=Z.timeOnScreen,q=Z.timeOnScreenUrlPrefixes,u=Z.payloadMapper,B=Z.timeOnScreenPingId,t=Z.timeOnScreenReason,D=Z.urlSerializer,d=Z.viewable,e=Z.hasImpressionFired,n=Z.inStatefulBeaconExperiment,c=Z.supportsPendingBeacon,W=Z.supportsFetchLater,M=Z.turtlexReportEventData;if(!Z.geometryMeasurable||!e||Z.maxTimeOnScreen===void 0||l===void 0||q===void 0||u===void 0||B===void 0||D===void 0||Q===void 0)return!1;
if(Z.isTurtlex){if(t===void 0)return!1;q=Z.reportFencedFrameEvent;if(!q)return!1;q({eventType:"active-view-time-on-screen",eventData:M!=null?M:"",destination:["buyer"]});return!0}if(!(n||W||t))return!1;M=iG(Z);var r;d=(r=d==null?void 0:d.extrapolateUsingTimestampMap(M).value)!=null?r:!1;r=D(Object.assign({},Z,{pingId:B,viewState:d?4:3,reasonCode:t!=null?t:"u",payloadMapper:u,urlPrefixes:q}),M);if(n){for(;H.length>q.length;)Z=void 0,(Z=H.shift())==null||Z.deactivate();r.forEach(function(x,U){U>=H.length?
H.push(Q.makeBeacon(x)):H[U].url=x});
return c&&p&&t!==void 0?(r.forEach(function(x){p.makeBeacon(x).sendNow()}),!0):t!==void 0}if(c&&p&&t!==void 0)return r.forEach(function(x){p.makeBeacon(x).sendNow()}),!0;
if(W&&p){for(;H.length>q.length;)c=void 0,(c=H.shift())==null||c.deactivate();var w=D(Object.assign({},Z,{pingId:B,viewState:d?4:3,reasonCode:t!=null?t:"u",payloadMapper:u,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),M)[0];r.forEach(function(x,U){U>=H.length?H.push(Q.makeBeacon(w,{endOfSession:!0})):H[U].url=w});
return t!==void 0?(r.forEach(function(x){p.makeBeacon(x).sendNow()}),!0):t!==void 0}return t!==void 0?(r.forEach(function(x){Q.makeBeacon(x).sendNow()}),!0):!1}),Dw(function(Z){return!Z}),G5())};var Olj=dJ(L0(function(G){return G.immediateUrlPrefixes!==void 0&&G.payloadMapper!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),L0(function(G){return qvu(G)!==null}),gFU(function(G){return G.activeViewUnmeasurableEvent},function(G){return G.emit}),iE(function(G){if(G.isTurtlex){var H=G.reportFencedFrameEvent;
if(H){var Z;H({eventType:"active-view-unmeasurable",eventData:(Z=G.turtlexReportEventData)!=null?Z:"",destination:["buyer"]})}}else{Z=void 0;var Q=qvu(G);if(Q==="x"){var p,l=(p=G.geometricMeasurementErrors)!=null?p:G.contextValidationErrors;l&&(H=l.stack,Z=l.message)}G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:2,reasonCode:Q,errorMessage:Z,errorStack:H}),iG(G)).forEach(function(q){G.beaconFactory.makeBeacon(q).sendNow()})}}),
sA(1),G5());var Sv3=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var jz3=dJ(L0(function(G){return G.payloadMapper!==void 0&&G.immediateUrlPrefixes!==void 0&&G.urlSerializer!==void 0&&G.inferredPingId!==void 0&&G.beaconFactory!==void 0}),iE(function(G){return Object.assign({},G,{timestamps:iG(G)})}),L0(function(G){var H=G.viewable;
var Z=G.hasImpressionFired;G=G.timestamps;var Q;return!!Z&&((Q=H==null?void 0:H.extrapolateUsingTimestampMap(G).value)!=null?Q:!1)}),gFU(function(G){return G.activeViewViewableEvent},function(G){return G.emit}),iE(function(G){var H=G.beaconFactory,Z=G.turtlexReportEventData;
if(G.isTurtlex){var Q=G.reportFencedFrameEvent;if(!Q)return!1;Q({eventType:"active-view-viewable",eventData:Z!=null?Z:"",destination:["buyer"]});return!0}Z=G.urlSerializer(Object.assign({},G,{urlPrefixes:G.immediateUrlPrefixes,payloadMapper:G.payloadMapper,pingId:G.inferredPingId,viewState:4,reasonCode:"v"}),G.timestamps);(Q=G.cpmavUrls)&&Q.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(Q,G).forEach(function(p){H.makeBeacon(p).sendNow()});
(Q=G.viewableRelayUrls)&&Q.length>0&&G.viewUrlSerializer&&G.viewUrlSerializer(Q,G).forEach(function(p){H.makeBeacon(p).sendNow()});
Z.forEach(function(p){H.makeBeacon(p,{attributionEnabled:G.isViewableAttributionEnabled}).sendNow()});
return!0}),Dw(function(G){return!G}),G5());var Hlu=iE(function(G){return[G.value.topWindowViewportExternalGeometry.width,G.value.topWindowViewportExternalGeometry.height]});var bG=function(G,H){this.callback=G;this.options=H;this.intersectionObserverV2=this.intersectionObserverV1=null},CV3=function(G,H){H?G.intersectionObserverV2||(H=Object.assign({},G.options,{delay:100,
trackVisibility:!0}),G.intersectionObserverV2=new IntersectionObserver(G.callback,H)):G.intersectionObserverV1||(G.intersectionObserverV1=new IntersectionObserver(G.callback,G.options))},uGx=function(G,H){G=H?G.intersectionObserverV2:G.intersectionObserverV1;
if(!G)throw new $_N;return G};
bG.prototype.observe=function(G,H){uGx(this,G).observe(H)};
bG.prototype.unobserve=function(G,H){uGx(this,G).unobserve(H)};
bG.prototype.disconnect=function(G){uGx(this,G).disconnect()};
bG.prototype.takeRecords=function(G){return uGx(this,G).takeRecords()};var TnX={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:H7,topWindowViewportExternalGeometry:H7,measurementRequests:new cl,elementGeometrySourceName:"ns",elementGeometry:H7,intersectionGeometry:H7,viewportLocalAppOffset:{x:0,y:0}};var Uf3=s1(dJ(iE(function(G){var H;return(H=G.exposureOverride)!=null?H:ObU(G)}),iE(function(G){return isFinite(G)?G:0}))),YvW=s1(dJ(iE(function(G){var H;
return(H=G.exposureOverride)!=null?H:ObU(G)}),iE(function(G){return isFinite(G)?G:-1})));var ox=function(G,H){this.a=G;this.b=H;if(G.clock.timeline!==H.clock.timeline)throw Error();};
ox.prototype.equivalentTo=function(G){return G instanceof ox?this.a.equivalentTo(G.a)&&this.b.equivalentTo(G.b):!1};
ox.prototype.extrapolateToTime=function(G){var H=this.a.extrapolateToTime(G).value,Z=this.b.extrapolateToTime(G).value;return{timestamp:G,value:[H,Z]}};
_.u4.Object.defineProperties(ox.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 G=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),H=this.a.lastMeasurement.timestamp.equals(G)?this.a.lastMeasurement.value:this.a.extrapolateToTime(G).value,Z=this.b.lastMeasurement.timestamp.equals(G)?this.b.lastMeasurement.value:this.b.extrapolateToTime(G).value;return{timestamp:G,value:[H,Z]}}}});var mW=function(G,H){this.input=G;this.mapFunction=H;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
mW.prototype.equivalentTo=function(G){return G instanceof mW?this.input.equivalentTo(G.input)&&this.mapFunction===G.mapFunction:!1};
mW.prototype.extrapolateToTime=function(G){G=this.input.extrapolateToTime(G);return{timestamp:G.timestamp,value:this.mapFunction(G.value)}};
_.u4.Object.defineProperties(mW.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var UK=function(){};
UK.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
UK.prototype.extrapolateUsingTimestampMap=function(G){var H=this.clock.timeline,Z,Q=(Z=G.get(H))!=null?Z:this.clock.now();G.set(H,Q);return this.extrapolateToTime(Q)};
UK.prototype.map=function(G){return new BI4(this,G)};
UK.prototype.joinWith=function(G){return new JRT(this,G)};
var JRT=function(){ox.apply(this,arguments);this.map=UK.prototype.map;this.joinWith=UK.prototype.joinWith;this.extrapolateToNow=UK.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=UK.prototype.extrapolateUsingTimestampMap};
_.T(JRT,ox);var BI4=function(){mW.apply(this,arguments);this.map=UK.prototype.map;this.joinWith=UK.prototype.joinWith;this.extrapolateToNow=UK.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=UK.prototype.extrapolateUsingTimestampMap};
_.T(BI4,mW);var Qx=function(G,H){this.lastMeasurement=H;this.extrapolateToNow=UK.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=UK.prototype.extrapolateUsingTimestampMap;this.map=UK.prototype.map;this.joinWith=UK.prototype.joinWith;this.clock=G};
Qx.prototype.equivalentTo=function(G){return G.active};
Qx.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.u4.Object.defineProperties(Qx.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var GIu=iE(function(G){if(G.value.viewportGeometrySourceName==="omid"){if(G.value.elementGeometrySourceName==="nio")return"omio";if(G.value.elementGeometrySourceName==="geo")return"omgeo"}return G.value.elementGeometrySourceName==="geo"||G.value.elementGeometrySourceName==="nio"?G.value.viewportGeometrySourceName:G.value.elementGeometrySourceName});var yse=dJ(L0(function(G){return!isNaN(G)}),Bl(function(G,H){return isNaN(G)?H:Math.min(G,H)},NaN),Zw());var RyM=s1(dJ(iE(function(G){return G.intersectionGeometry.width*G.intersectionGeometry.height/(G.exposedViewportLocalGeometry.width*G.exposedViewportLocalGeometry.height)}),iE(function(G){return isFinite(G)?Math.min(1,G):0})));var bb3=dJ(s1(iE(function(G){G=G.exposureOverride?G.elementGeometry.width*G.elementGeometry.height*G.exposureOverride/(G.topWindowViewportExternalGeometry.width*G.topWindowViewportExternalGeometry.height):G.intersectionGeometry.width*G.intersectionGeometry.height/(G.topWindowViewportExternalGeometry.width*G.topWindowViewportExternalGeometry.height);return isFinite(G)?G:0})));var QzU=function(G,H){var Z=this;this.timeProvider=G;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=H.pipe(Zw()).subscribe(function(Q){l2f(Z);Z.measurementRequestObserver=Q})},gIR=function(G,H){l2f(G);
G.lastMeasurementRequest=G.timeProvider.setTimeout(function(){var Z;return void((Z=G.measurementRequestObserver)==null?void 0:Z.next())},H)},l2f=function(G){G.lastMeasurementRequest!==null&&G.timeProvider.clearTimeout(G.lastMeasurementRequest);
G.lastMeasurementRequest=null};
QzU.prototype.dispose=function(){l2f(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var t_a=function(){};var z_W=function(G,H){this.context=G;this.strategies=H};
_.T(z_W,t_a);z_W.prototype.buildGeometrySource=function(G,H){var Z=this.strategies.map(function(l){return l.buildGeometrySource(G,H)}),Q=BOf(Z.map(function(l){return l.geometrySource})),p=Q.capturedErrors.pipe(k$x());
return{geometrySource:Q.chain.pipe(fE(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:p,strategyErrors:Q.capturedErrors}].concat(_.OP(Z.map(function(l){return l.additionalOutputs}))))}};
var k$x=function(){return Bl(function(G,H){H instanceof aN?G.push(H.measurementStrategyFailureReason):G.push(-1);return G},[])};var MKf=function(G,H){this.context=G;this.poller=H};
_.T(MKf,t_a);MKf.prototype.buildGeometrySource=function(G,H){var Z=JeU(kIW(this.context,this.poller),f0j(this.context,H.requestSource));return{geometrySource:uUX(G.measurableCreative.pipe(Z),H.inApp),additionalOutputs:{}}};var KRu=function(G,H,Z){Z=Z===void 0?jMb(G,H):Z;this.context=G;this.intersectionObserverStrategy=Z};
_.T(KRu,t_a);KRu.prototype.buildGeometrySource=function(G,H){var Z=this.intersectionObserverStrategy(H.useV2);return{geometrySource:uUX(G.measurableCreative.pipe(Z,PVj(this.context)),H.inApp),additionalOutputs:{}}};var Djw=function(G,H,Z){var Q=Q===void 0?Symbol():Q;this.element=G;this.immediateUrls=H;this.timeOnScreenUrls=Z;this.symbol=Q};var ZlM=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),VKf=Object.freeze([1,.75,ZlM.exposureThreshold,ZlM.largeAdExposureThreshold,0]);var yIf=function(G,H){H=H===void 0?36E5:H;var Z=Z===void 0?!0:Z;this.creatives=new cl;this.elementsToUnregister=new cl;this.elementMap=new Map;var Q=new gI(window,null);Q.beaconFactory=new Bn(Q,new i_(Q));WRe(Q,this.creatives,this.elementsToUnregister,G,H,Z).subscribe()},UNb=function(G,H,Z,Q){if(!G.elementMap.has(H)){var p=new LE(H);
G.elementMap.set(H,p);G.creatives.next(new Djw(p,Z,Q))}},mNf=function(G,H){G.elementsToUnregister.next(H);
var Z=G.elementMap.get(H);Z!==void 0&&(Z.release(),G.elementMap.delete(H))};var OHj=function(G){var H=G.url;G=G.uaDataValues;this.JSC$9485_url_=H;this.uaDataValues_=G;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var Z=/[?&]([^&=]+)=([^&]*)/g;G=Z.exec(H);)this.urlParamValues_[G[1]]=G[2]},aI3=function(G){G=G.uaDataValues_;
if(!G)return"";var H=qj("uap",G.platform)+qj("uapv",G.platformVersion)+qj("uafv",G.uaFullVersion)+qj("uaa",G.architecture)+qj("uam",G.model)+qj("uab",G.bitness);G.fullVersionList&&(H+="&uafvl="+encodeURIComponent(G.fullVersionList.map(function(Z){return encodeURIComponent(Z.brand)+";"+encodeURIComponent(Z.version)}).join("|")));
G.wow64!=null&&(H+="&uaw="+Number(G.wow64));return H.slice(1)};var djG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(djG,_.Iy);djG.prototype.getId=function(){return _.nY(this,1)};var Rx=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Rx,_.Iy);Rx.prototype.getSeconds=function(){return dm(this,1)};
Rx.prototype.setSeconds=function(G){return _.HO(this,1,t6(G),"0")};_.nA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(_.nA,_.Iy);_.nA.prototype.getSeconds=function(){return dm(this,1)};
_.nA.prototype.setSeconds=function(G){return _.HO(this,1,t6(G),"0")};
_.eKN=function(G){var H=Number($H(G,1));G=_.k5(G,2);return new Date(H*1E3+G/1E6)};var NE=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(NE,_.Iy);NE.prototype.getUrl=function(){return _.nY(this,1)};
NE.prototype.setUrl=function(G){return _.jO(this,1,G)};
NE.prototype.getHeight=function(){return _.k5(this,2)};
NE.prototype.getWidth=function(){return _.k5(this,3)};var AH=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(AH,_.Iy);AH.prototype.getAspectRatio=function(){return eD(this,1)};
AH.prototype.getDuration=function(){return _.dt(this,Rx,2)};var n54=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(n54,_.Iy);var V_w=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(V_w,_.Iy);var $jd=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T($jd,_.Iy);var X72=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(X72,_.Iy);var cRx=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(cRx,_.Iy);var TIa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(TIa,_.Iy);var fST=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(fST,_.Iy);var v57=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(v57,_.Iy);var Wud=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Wud,_.Iy);var xu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(xu,_.Iy);var LO=[2,4,5,6,7];var zKx=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(zKx,_.Iy);var tg=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(tg,_.Iy);_.g=tg.prototype;_.g.getId=function(){return _.dt(this,djG,1)};
_.g.getName=function(){return _.nY(this,2)};
_.g.setDescription=function(G){return _.jO(this,3,G)};
_.g.getUrl=function(){return _.nY(this,8)};
_.g.setUrl=function(G){return _.jO(this,8,G)};
var EK=function(G){return _.JR(G,NE,10,_.tR())};
tg.prototype.getOwner=function(G){var H=_.YA(this,40,_.T8,3,!0);bW3(H,G);return H[G]};
var Yu=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Yu,_.Iy);_.FC=[0,hg,DaG];_.b_=[0,hg,DaG];var Ku4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Ku4,_.Iy);var Gw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Gw,_.Iy);Gw.prototype.getStatus=function(){return _.V8(this,1)};
Gw.prototype.setStatus=function(G){return _.fY(this,1,G)};
Gw.prototype.removeItem=function(G){return vwN(this,2,G)};var M_R=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(M_R,_.Iy);M_R.prototype.getName=function(){return _.nY(this,8)};var HQ=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(HQ,_.Iy);HQ.prototype.getCommand=function(){return _.V8(this,1)};
HQ.prototype.getSource=function(){return _.dt(this,M_R,2)};
HQ.prototype.setVisible=function(G){return _.DQ(this,5,G)};
HQ.prototype.removeItem=function(G){return vwN(this,7,G)};var jfR=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(jfR,_.Iy);jfR.prototype.getCommand=function(){return _.V8(this,1)};
jfR.prototype.removeItem=function(G){return vwN(this,4,G)};
var PYp=_.cO(jfR);var sx=function(G,H,Z){Z=Z===void 0?Error():Z;var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=G;H+=":";Z instanceof Error?(this.message=H+Z.message,this.stack=Z.stack||""):(this.message=H+String(Z),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.T(sx,Error);_.wI=function(){this.JSC$9543_disposed_=this.JSC$9543_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.wI.prototype.JSC$9543_disposed_=!1;_.wI.prototype.isDisposed=function(){return this.JSC$9543_disposed_};
_.wI.prototype.dispose=function(){this.JSC$9543_disposed_||(this.JSC$9543_disposed_=!0,this.disposeInternal())};
_.wI.prototype[Symbol.dispose]=function(){this.dispose()};
_.T$=function(G,H){G.addOnDisposeCallback(_.po(_.S_,H))};
_.wI.prototype.addOnDisposeCallback=function(G,H){this.JSC$9543_disposed_?H!==void 0?G.call(H):G():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),H&&(G=G.bind(H)),this.onDisposeCallbacks_.push(G))};
_.wI.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ZA=function(G){_.wI.call(this);this.wpc=G};
_.T(ZA,_.wI);ZA.prototype.iSx=function(){return this.wpc.f()};
ZA.prototype.nmI=function(G){return this.wpc.c(G)};
ZA.prototype.jD=function(G){return this.wpc.m(UVu(G))};
ZA.prototype.fpu=function(G){return this.wpc.mws(UVu(G))};
var B7=function(G){_.wI.call(this);var H=this;this.vm=G;this.lEc="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.wn1=void 0;this.hXW=this.vm.p;this.hjq=this.eRp.bind(this);this.addOnDisposeCallback(function(){return void rR_(H)})};
_.T(B7,_.wI);var w7G=function(G){var H;return _.S(function(Z){if(Z.nextAddress==1){if(!G.vm.wpc)throw new sx(30,"NWA");return G.es7?Z.return(G.es7):Z.yield(G.vm.wpc(),2)}H=Z.yieldResult;G.es7=new ZA(H);return Z.return(G.es7)})};
B7.prototype.snapshot=function(G){return this.vm.s(Object.assign({},G.ko&&{c:G.ko},G.tH6&&{s:G.tH6},G.mQZ!==void 0&&{p:G.mQZ}))};
B7.prototype.eRp=function(G){this.vm.e(G)};
B7.prototype.xeQ=function(G,H){return this.vm.c(G,H,!1)};
var rR_=function(G){G.wn1!==void 0&&(G.lEc.forEach(function(H){var Z;(Z=G.wn1)==null||Z.removeEventListener(H,G.hjq)}),G.wn1=void 0)};
B7.prototype.stN=function(){return this.vm.l()};var QX=function(){_.wI.apply(this,arguments);this.itD=1};
_.T(QX,_.wI);QX.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.itD++;return this};
QX.prototype.dispose=function(){--this.itD||_.wI.prototype.dispose.call(this)};var hKG=function(G){this.idq=G;G.addNewEventMetric("/client_streamz/bg/frs",_.e_("mk"))};
hKG.prototype.record=function(G,H){this.idq.record("/client_streamz/bg/frs",G,H)};
var CY_=function(G){this.gWq=G;G.addNewEventMetric("/client_streamz/bg/wrl",_.e_("mn"),dI("ac"),dI("sc"),_.e_("rk"),_.e_("mk"))};
CY_.prototype.record=function(G,H,Z,Q,p,l){this.gWq.record("/client_streamz/bg/wrl",G,H,Z,Q,p,l)};
var iux=function(G){this.vWk=G;G.addNewCounter("/client_streamz/bg/ec",_.e_("en"),_.e_("mk"))};
iux.prototype.increment=function(G,H){this.vWk.JSC$9796_incrementCounter("/client_streamz/bg/ec",G,H)};
var OuG=function(G){this.pFp=G;G.addNewEventMetric("/client_streamz/bg/el",_.e_("en"),_.e_("mk"))};
OuG.prototype.record=function(G,H,Z){this.pFp.record("/client_streamz/bg/el",G,H,Z)};
var aSN=function(G){this.qm3=G;G.addNewCounter("/client_streamz/bg/cec",dI("ec"),_.e_("mk"))};
aSN.prototype.increment=function(G,H){this.qm3.JSC$9796_incrementCounter("/client_streamz/bg/cec",G,H)};
var yRT=function(G){this.kyn=G;G.addNewCounter("/client_streamz/bg/po/csc",dI("cs"),_.e_("mk"))};
yRT.prototype.increment=function(G,H){this.kyn.JSC$9796_incrementCounter("/client_streamz/bg/po/csc",G,H)};
var o5R=function(G){this.jSi=G;G.addNewCounter("/client_streamz/bg/po/ctav",_.e_("av"),_.e_("mk"))};
o5R.prototype.increment=function(G,H){this.jSi.JSC$9796_incrementCounter("/client_streamz/bg/po/ctav",G,H)};
var mjw=function(G){this.dGq=G;G.addNewCounter("/client_streamz/bg/po/cwsc",_.e_("su"),_.e_("mk"))};
mjw.prototype.increment=function(G,H){this.dGq.JSC$9796_incrementCounter("/client_streamz/bg/po/cwsc",G,H)};var eR3=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(eR3,_.Iy);var dYj=function(G,H){return _.G4(G,3,H,Vpu)};var UjR=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(UjR,_.Iy);var RKR=[1,2,3];var NI4=[0,RKR,_.my,daw,VcT];var ARN=[0,_.RE,[0,rm,_.wm]];var xj4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(xj4,_.Iy);var LuT=[1,2,3];var E5p=[0,LuT,tc_,qqd,_.N8,ARN];var Y1p=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Y1p,_.Iy);var FuN=[0,_.RE,NI4,E5p];var bu4=[0,_.y8];var Gyw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Gyw,_.Iy);var Hb2=[0,_.y8,-1,_.Oy];var sMw=[0,_.y8,-1,_.i6,_.Oy];var Zba=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Zba,_.Iy);var QMp=[1,2,3];var pS2=[0,QMp,_.N8,Hb2,_.N8,sMw,_.N8,bu4];var l0a=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(l0a,_.Iy);l0a.prototype.JSC$9616_serializeBinary=N0v([0,_.y8,pS2,$aG,_.RE,FuN,eiw,_.nAa]);var gFT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(gFT,_.Iy);var Svd=function(G){var H=new l0a;H=_.ha(H,1,G.JSC$9732_metricName);var Z=I0p(G);H=_.G4(H,3,Z,_.$A);Z=[];for(var Q=[],p=_.I(G.cellMap.keys()),l=p.next();!l.done;l=p.next())Q.push(l.value.split(","));for(p=0;p<Q.length;p++){l=Q[p];for(var q=G.cellType,u=G.getCells(l)||[],B=[],t=0;t<u.length;t++){var D=u[t],d=D&&D.cellValue;D=new xj4;switch(q){case 3:d=Number(d);Number.isFinite(d)&&fT(D,1,LuT,t6(d));break;case 2:fT(D,2,LuT,_.ER(Number(d)))}B.push(D)}q=B;for(u=0;u<q.length;u++){B=q[u];t=new Y1p;B=_.fq(t,
2,B);t=[];D=qvt(G);for(d=0;d<D.length;d++){var e=D[d],n=l[d],c=new UjR;switch(e){case 3:fT(c,1,RKR,XL(String(n)));break;case 2:e=Number(n);Number.isFinite(e)&&fT(c,2,RKR,_.Ij(e));break;case 1:fT(c,3,RKR,d7e(n==="true"))}t.push(c)}Jg(B,1,t);Z.push(B)}}Jg(H,4,Z);return H};var uMd=function(G){if(!G)return"";if(/^about:(?:blank|srcdoc)$/.test(G))return window.origin||"";G.indexOf("blob:")===0&&(G=G.substring(5));G=G.split("#")[0].split("?")[0];G=G.toLowerCase();G.indexOf("//")==0&&(G=window.location.protocol+G);/^[\w\-]*:\/\//.test(G)||(G=window.location.href);var H=G.substring(G.indexOf("://")+3),Z=H.indexOf("/");Z!=-1&&(H=H.substring(0,Z));Z=G.substring(0,G.indexOf("://"));if(!Z)throw Error("qa`"+G);if(Z!=="http"&&Z!=="https"&&Z!=="chrome-extension"&&Z!=="moz-extension"&&
Z!=="file"&&Z!=="android-app"&&Z!=="chrome-search"&&Z!=="chrome-untrusted"&&Z!=="chrome"&&Z!=="app"&&Z!=="devtools")throw Error("ra`"+Z);G="";var Q=H.indexOf(":");if(Q!=-1){var p=H.substring(Q+1);H=H.substring(0,Q);if(Z==="http"&&p!=="80"||Z==="https"&&p!=="443")G=":"+p}return Z+"://"+H+G};var Js4=function(G,H,Z){var Q=String(_.Qf.location.href);return Q&&G&&H?[H,Bnw(uMd(Q),G,Z||null)].join(" "):null},Bnw=function(G,H,Z){var Q=[],p=[];
if((Array.isArray(Z)?2:1)==1)return p=[H,G],_.Zk(Q,function(u){p.push(u)}),tga(p.join(" "));
var l=[],q=[];_.Zk(Z,function(u){q.push(u.key);l.push(u.value)});
Z=Math.floor((new Date).getTime()/1E3);p=l.length==0?[Z,H,G]:[l.join(":"),Z,H,G];_.Zk(Q,function(u){p.push(u)});
G=tga(p.join(" "));G=[Z,G];q.length==0||G.push(q.join(""));return G.join("_")},tga=function(G){var H=FRX();
H.update(G);return H.digestString().toLowerCase()};var pK=function(G){this.JSC$9627_document_=G||{cookie:""}},kyp;
_.g=pK.prototype;_.g.isEnabled=function(){if(!_.Qf.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.g.set=function(G,H,Z){var Q=!1;if(typeof Z==="object"){var p=Z.sameSite;Q=Z.secure||!1;var l=Z.domain||void 0;var q=Z.path||void 0;var u=Z.maxAge}if(/[;=\s]/.test(G))throw Error("sa`"+G);if(/[;\r\n]/.test(H))throw Error("ta`"+H);u===void 0&&(u=-1);Z=l?";domain="+l:"";q=q?";path="+q:"";Q=Q?";secure":"";u=u<0?"":u==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+u*1E3)).toUTCString();this.JSC$9627_document_.cookie=G+"="+H+Z+q+u+Q+(p!=null?";samesite="+p:"")};
_.g.get=function(G,H){for(var Z=G+"=",Q=(this.JSC$9627_document_.cookie||"").split(";"),p=0,l;p<Q.length;p++){l=kR(Q[p]);if(l.lastIndexOf(Z,0)==0)return l.slice(Z.length);if(l==G)return""}return H};
_.g.remove=function(G,H,Z){var Q=this.containsKey(G);this.set(G,"",{maxAge:0,path:H,domain:Z});return Q};
_.g.getKeys=function(){return kyp(this).keys};
_.g.getValues=function(){return kyp(this).values};
_.g.isEmpty=function(){return!this.JSC$9627_document_.cookie};
_.g.getCount=function(){return this.JSC$9627_document_.cookie?(this.JSC$9627_document_.cookie||"").split(";").length:0};
_.g.containsKey=function(G){return this.get(G)!==void 0};
_.g.containsValue=function(G){for(var H=kyp(this).values,Z=0;Z<H.length;Z++)if(H[Z]==G)return!0;return!1};
_.g.clear=function(){for(var G=kyp(this).keys,H=G.length-1;H>=0;H--)this.remove(G[H])};
kyp=function(G){G=(G.JSC$9627_document_.cookie||"").split(";");for(var H=[],Z=[],Q,p,l=0;l<G.length;l++)p=kR(G[l]),Q=p.indexOf("="),Q==-1?(H.push(""),Z.push(p)):(H.push(p.substring(0,Q)),Z.push(p.substring(Q+1)));return{keys:H,values:Z}};
_.jA=new pK(typeof document=="undefined"?null:document);var mou,Df2;mou=function(){var G=_.Qf.__SAPISID||_.Qf.__APISID||_.Qf.__3PSAPISID||_.Qf.__1PSAPISID||_.Qf.__OVERRIDE_SID;if(G)return!0;typeof document!=="undefined"&&(G=new pK(document),G=G.get("SAPISID")||G.get("APISID")||G.get("__Secure-3PAPISID")||G.get("__Secure-1PAPISID"));return!!G};
Df2=function(G,H,Z,Q){(G=_.Qf[G])||typeof document==="undefined"||(G=(new pK(document)).get(H));return G?Js4(G,Z,Q):null};
_.t9b=function(G){var H=uMd(_.Qf==null?void 0:_.Qf.location.href),Z=[];if(mou()){H=H.indexOf("https:")==0||H.indexOf("chrome-extension:")==0||H.indexOf("chrome-untrusted://new-tab-page")==0||H.indexOf("moz-extension:")==0;var Q=H?_.Qf.__SAPISID:_.Qf.__APISID;Q||typeof document==="undefined"||(Q=new pK(document),Q=Q.get(H?"SAPISID":"APISID")||Q.get("__Secure-3PAPISID"));(Q=Q?Js4(Q,H?"SAPISIDHASH":"APISIDHASH",G):null)&&Z.push(Q);H&&((H=Df2("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",G))&&Z.push(H),
(G=Df2("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",G))&&Z.push(G))}return Z.length==0?null:Z.join(" ")};var dfw=function(){this.minSize=1024};
dfw.prototype.compress=function(G){var H,Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:return H=new CompressionStream("gzip"),Z=(new Response(H.readable)).arrayBuffer(),Q=H.writable.getWriter(),l.yield(Q.write((new TextEncoder).encode(G)),2);case 2:return l.yield(Q.close(),3);case 3:return p=Uint8Array,l.yield(Z,4);case 4:return l.return(new p(l.yieldResult))}})};
dfw.prototype.isSupported=function(G){return G<this.minSize?!1:typeof CompressionStream!=="undefined"};var ey4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(ey4,_.Iy);var l5=function(G,H){this.intervalMs=G;this.callback=H;this.enabled=!1;this.nowFn=function(){return _.NW()};
this.lastTimeMs=this.nowFn()};
l5.prototype.setInterval=function(G){this.intervalMs=G;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
l5.prototype.start=function(){var G=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){G.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
l5.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
l5.prototype.tick=function(){var G=this;if(this.enabled){var H=Math.max(this.nowFn()-this.lastTimeMs,0);H<this.intervalMs*.8?this.timer=setTimeout(function(){G.tick()},this.intervalMs-H):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var nF2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(nF2,_.Iy);var Vg7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Vg7,_.Iy);var $f_=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T($f_,_.Iy);$f_.prototype.getTransmissionType=function(){return _.V8(this,1)};var sJb=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(sJb,_.Iy);var gl=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(gl,_.Iy);var H$b=function(G){Jg(Z$M,1,G)};
gl.prototype.getModel=function(){return _.nY(this,6)};
var XSa=_.cO(gl);var csG=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(csG,_.Iy);var bl3=["platform","platformVersion","architecture","model","uaFullVersion"],Z$M=new gl,GFu=null;var Iv=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Iv,_.Iy);var Tn7=function(G){return _.ed(G,1,1)};var f0N=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G,4)};
_.T(f0N,_.Iy);_.qn=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G,36)};
_.T(_.qn,_.Iy);_.qn.prototype.getExperimentIds=function(){return _.dt(this,ey4,16)};var vFN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G,19)};
_.T(vFN,_.Iy);vFN.prototype.setLogSource=function(G){return _.ed(this,2,G)};
vFN.prototype.setScheduler=function(G){return _.ed(this,10,G)};var zyT=function(G,H){this.isServiceWorkerScope=H=H===void 0?!1:H;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new vFN;Number.isInteger(G)&&this.logRequest.setLogSource(G);H||(this.locale=document.documentElement.getAttribute("lang"));Wf2(this,new Iv)};
zyT.prototype.setLogSource=function(G){this.logRequest.setLogSource(G);return this};
var Wf2=function(G,H){_.fq(G.logRequest,1,H);_.V8(H,1)||Tn7(H);G.isServiceWorkerScope||(H=Sa(G),_.nY(H,5)||_.ha(H,5,G.locale));G.uach&&(H=Sa(G),_.dt(H,gl,9)||_.fq(H,9,G.uach))},KfN=function(G,H){G.transmissionType=H},MgN=function(G){var H=H===void 0?bl3:H;
var Z=G.isServiceWorkerScope?void 0:RN();Z?QJj(Z,H).then(function(Q){G.uach=XSa(Q!=null?Q:"[]");Q=Sa(G);_.fq(Q,9,G.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Sa=function(G){var H=_.dt(G.logRequest,Iv,1);
H||(H=new Iv,Wf2(G,H));G=H;H=_.dt(G,csG,11);H||(H=new csG,_.fq(G,11,H));return H};
zyT.prototype.build=function(G,H,Z,Q,p,l){H=H===void 0?0:H;Z=Z===void 0?0:Z;Q=Q===void 0?null:Q;p=p===void 0?0:p;l=l===void 0?0:l;if(!this.isServiceWorkerScope){var q=Sa(this);var u=new $f_;u=_.ed(u,1,this.transmissionType);u=_.nu(u,2,this.isFinal);Z=_.TW(u,3,Z>0?Z:void 0);Z=_.TW(Z,4,p>0?p:void 0);Z=_.TW(Z,5,l>0?l:void 0);p=Z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l=p[_.pw]|0;Z=vd(Z,l)?Z:Wsv(Z,p,l)?vAf(Z,p):new Z.constructor(ms(p,l,!0));_.fq(q,10,Z)}q=this.logRequest.clone();Z=Date.now().toString();
q=_.ng(q,4,t6(Z));G=G.slice();G=Jg(q,3,G);Q&&(q=new nF2,Q=_.TW(q,13,Q),q=new Vg7,Q=_.fq(q,2,Q),q=new f0N,Q=_.fq(q,1,Q),Q=_.ed(Q,2,9),_.fq(G,18,Q));H&&_.PW(G,14,H);return G};Vx.prototype.currBackoffCount_=0;Vx.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Vx.prototype.getValue=function(){return this.currValue_};
var jMa=function(G){G.currBaseValue_=Math.min(G.maxValue_,G.currBaseValue_*G.backoffFactor_);G.currValue_=Math.min(G.maxValue_,G.currBaseValue_+(G.randomFactor_?Math.round(G.randomFactor_*(Math.random()-.5)*2*G.currBaseValue_):0));G.currBackoffCount_++};var vA4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G,8)};
_.T(vA4,_.Iy);var PVR=_.cO(vA4);var Ws2=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Ws2,_.Iy);var u5;u5=new zit;var BQ=function(G){_.wI.call(this);var H=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9705_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$9705_sendBeaconApiEnabled=!1;this.logSource=G.logSource;this.getAuthHeaderValue=
G.getAuthHeaderValue||function(){};
this.logRequestBuilder=new zyT(G.logSource,G.isServiceWorkerScope);this.network=G.network||null;this.productID=G.productID||null;this.bufferSize=1E3;this.clearcutUrl=G.urlOverride||null;this.sessionIndex=G.sessionIndex||null;this.disableAutomaticFlush=G.disableAutomaticFlush||!1;this.withCredentials=!G.disableWithCredentials;this.isServiceWorkerScope=G.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!RN()&&!!RN().navigator&&RN().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(rsR())).searchParams&&!!(new URL(rsR())).searchParams.set;var Z=Tn7(new Iv);Wf2(this.logRequestBuilder,Z);this.flushBackoff=new Vx(1E4,3E5,.1);G=wSp(this,G.backgroundJobDeferrer);this.JSC$9705_flushTimer=new l5(this.flushBackoff.getValue(),G);this.backupTimer=new l5(6E5,G);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){hy_(H);
var Q;(Q=H.metalogService)==null||Q.flush()}}),document.addEventListener("pagehide",function(){hy_(H);
var Q;(Q=H.metalogService)==null||Q.flush()}))};
_.T(BQ,_.wI);var wSp=function(G,H){return G.isBrowserSupported?H?function(){H().then(function(){G.flush()})}:function(){G.flush()}:function(){}};
BQ.prototype.disposeInternal=function(){hy_(this);this.JSC$9705_flushTimer.stop();this.backupTimer.stop();_.wI.prototype.disposeInternal.call(this)};
var CVd=function(G){G.clearcutUrl||(G.clearcutUrl=rsR());try{return(new URL(G.clearcutUrl)).toString()}catch(H){return(new URL(G.clearcutUrl,RN().location.origin)).toString()}};
BQ.prototype.dispatch=function(G){if(G instanceof _.qn)this.log(G);else try{var H=new _.qn,Z=G.serialize();var Q=_.ha(H,8,Z);this.log(Q)}catch(p){Jr(this,4,1)}};
var Jr=function(G,H,Z){G.metalogService&&G.metalogService.increment(H,Z)};
BQ.prototype.log=function(G){Jr(this,2,1);if(this.isBrowserSupported){G=G.clone();var H=this.sequencePosition++;G=_.PW(G,21,H);this.componentId&&_.ha(G,26,this.componentId);H=G;if(hNW(_.gm(H,1))==null){var Z=Date.now();Z=Number.isFinite(Z)?Z.toString():"0";_.ng(H,1,t6(Z))}_.wdU(_.gm(H,15))!=null||_.PW(H,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Z=this.experimentIds.clone(),_.fq(H,16,Z));Jr(this,1,1);H=this.pendingEvents.length-this.bufferSize+1;H>0&&(this.pendingEvents.splice(0,H),
this.numLogsDroppedSinceLastFlush+=H,Jr(this,3,H));this.pendingEvents.push(G);this.disableAutomaticFlush||this.JSC$9705_flushTimer.enabled||this.JSC$9705_flushTimer.start()}};
BQ.prototype.flush=function(G,H){var Z=this;if(this.pendingEvents.length===0)G&&G();else if(this.JSC$9705_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,ibp(this);else{var Q=Date.now();if(this.noFlushUntilMs>Q&&this.startWaitingMs<Q)H&&H("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?KfN(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var p=this.pendingEvents.length,
l=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),q=this.getAuthHeaderValue();if(q&&this.lastFailedAuth===q)H&&H("stale-auth-token");else{this.pendingEvents=[];this.JSC$9705_flushTimer.enabled&&this.JSC$9705_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;Q=l.serialize();var u;this.JSC$9705_compressor&&this.JSC$9705_compressor.isSupported(Q.length)&&
(u=this.JSC$9705_compressor.compress(Q));var B=ObT(this,Q,q),t=function(e){Z.flushBackoff.reset();Z.JSC$9705_flushTimer.setInterval(Z.flushBackoff.getValue());if(e){var n=null;try{var c=JSON.stringify(JSON.parse(e.replace(")]}'\n","")));n=PVR(c)}catch(W){}n&&(e=Number(dm(n,1,_.ia("-1"))),e>0&&(Z.startWaitingMs=Date.now(),Z.noFlushUntilMs=Z.startWaitingMs+e),Zmb(n.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,u5.fieldIndex),Hmv(n,u5.fieldIndex),n=u5.ctor?u5.getExtensionFn(n,u5.ctor,u5.fieldIndex,
u5.JSC$8885_hasMessageId):u5.getExtensionFn(n,u5.fieldIndex,null,u5.JSC$8885_hasMessageId),n=n===null?void 0:n)&&(n=_.k5(n,1,-1),n!==-1&&(Z.flushBackoff=new Vx(n<1?1:n,3E5,.1),Z.JSC$9705_flushTimer.setInterval(Z.flushBackoff.getValue())))}G&&G();Z.numRetriesSinceLastSuccessfulFlush=0},D=function(e,n){var c=_.JR(l,_.qn,3,_.tR());
var W=Number(dm(l,14));jMa(Z.flushBackoff);Z.JSC$9705_flushTimer.setInterval(Z.flushBackoff.getValue());e===401&&q&&(Z.lastFailedAuth=q);W&&(Z.numLogsDroppedSinceLastFlush+=W);n===void 0&&(n=Z.isRetryable(e));n&&(Z.pendingEvents=c.concat(Z.pendingEvents),Z.disableAutomaticFlush||Z.JSC$9705_flushTimer.enabled||Z.JSC$9705_flushTimer.start());Jr(Z,7,1);H&&H("net-send-failed",e);++Z.numRetriesSinceLastSuccessfulFlush},d=function(){Z.network&&Z.network.send(B,t,D)};
u?u.then(function(e){Jr(Z,5,p);B.requestHeaders["Content-Encoding"]="gzip";B.requestHeaders["Content-Type"]="application/binary";B.body=e;B.bodyType=2;d()},function(){Jr(Z,6,p);
d()}):d()}}}};
var ObT=function(G,H,Z){Z=Z===void 0?null:Z;var Q=Q===void 0?G.withCredentials:Q;var p={},l=new URL(CVd(G));Z&&(p.Authorization=Z);G.sessionIndex&&(p["X-Goog-AuthUser"]=G.sessionIndex,l.searchParams.set("authuser",G.sessionIndex));G.pageId&&(Object.defineProperty(p,"X-Goog-PageId",{value:G.pageId}),l.searchParams.set("pageId",G.pageId));return{url:l.toString(),body:H,bodyType:1,requestHeaders:p,requestType:"POST",withCredentials:Q,timeoutMillis:G.timeoutMillis}},hy_=function(G){G.logRequestBuilder.isFinal=
!0;
G.flush();G.logRequestBuilder.isFinal=!1},ibp=function(G){a0R(G,function(H,Z){H=new URL(H);
H.searchParams.set("format","json");var Q=!1;try{Q=RN().navigator.sendBeacon(H.toString(),Z.serialize())}catch(p){}Q||(G.isSendBeaconSupported=!1);return Q})},a0R=function(G,H){if(G.pendingEvents.length!==0){var Z=new URL(CVd(G));
Z.searchParams.delete("format");var Q=G.getAuthHeaderValue();Q&&Z.searchParams.set("auth",Q);Z.searchParams.set("authuser",G.sessionIndex||"0");for(Q=0;Q<10&&G.pendingEvents.length;++Q){var p=G.pendingEvents.slice(0,32),l=G.logRequestBuilder.build(p,G.numLogsDroppedSinceLastFlush,G.numRetriesSinceLastSuccessfulFlush,G.productID,G.persistedLogRecoveredCount,G.persistedLogExpiredCount);if(!H(Z.toString(),l)){++G.numRetriesSinceLastSuccessfulFlush;break}G.numLogsDroppedSinceLastFlush=0;G.numRetriesSinceLastSuccessfulFlush=
0;G.persistedLogRecoveredCount=0;G.persistedLogExpiredCount=0;G.pendingEvents=G.pendingEvents.slice(p.length)}G.JSC$9705_flushTimer.enabled&&G.JSC$9705_flushTimer.stop()}};
BQ.prototype.isRetryable=function(G){return 500<=G&&G<600||G===401||G===0};
var rsR=function(){return"https://play.google.com/log?format=json&hasfast=true"};var ysa=function(){this.abortSupported=typeof AbortController!=="undefined"};
ysa.prototype.send=function(G,H,Z){var Q=this,p,l,q,u,B,t,D,d,e,n;return _.S(function(c){switch(c.nextAddress){case 1:return l=(p=Q.abortSupported?new AbortController:void 0)?setTimeout(function(){p.abort()},G.timeoutMillis):void 0,_.XV(c,2,3),q=Object.assign({},{method:G.requestType,
headers:Object.assign({},G.requestHeaders)},G.body&&{body:G.body},G.withCredentials&&{credentials:"include"},{signal:G.timeoutMillis&&p?p.signal:null}),c.yield(fetch(G.url,q),5);case 5:u=c.yieldResult;if(u.status!==200){(B=Z)==null||B(u.status);c.jumpTo(3);break}if((t=H)==null){c.jumpTo(7);break}return c.yield(u.text(),8);case 8:t(c.yieldResult);case 7:case 3:_.TO(c);clearTimeout(l);_.vg(c,0);break;case 2:D=_.Wg(c);switch((d=D)==null?void 0:d.name){case "AbortError":(e=Z)==null||e(408);break;default:(n=
Z)==null||n(400)}c.jumpTo(3)}})};
ysa.prototype.getTransmissionType=function(){return 4};_.c7=function(G,H){H=H===void 0?"0":H;_.wI.call(this);this.logSource=G;this.sessionIndex=H;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9723_clearExperimentIds=this.productID=null;this.JSC$9723_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.T(_.c7,_.wI);var tAu=function(G,H){G.buildLabel=H;return G},Jp2=function(G,H){G.network=H;
return G},DYf=function(G,H){G.JSC$9723_clearExperimentIds=H},B7o=function(G){G.JSC$9723_sendBeaconApiEnabled=!0;
return G};
_.c7.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.c7.prototype.build=function(){this.network||(this.network=new ysa);var G=new BQ({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.t9b,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.T$(this,G);if(this.buildLabel){var H=this.buildLabel,Z=
Sa(G.logRequestBuilder);_.ha(Z,7,H)}G.JSC$9705_compressor=new dfw;this.componentId&&(G.componentId=this.componentId);this.productID&&(G.productID=this.productID);this.pageId&&(G.pageId=this.pageId);this.JSC$9723_clearExperimentIds&&((Z=this.JSC$9723_clearExperimentIds)?(G.experimentIds||(G.experimentIds=new ey4),H=G.experimentIds,Z=Z.serialize(),_.ha(H,4,Z)):G.experimentIds&&_.ng(G.experimentIds,4));this.JSC$9723_sendBeaconApiEnabled&&(G.JSC$9705_sendBeaconApiEnabled=G.isSendBeaconSupported);MgN(G.logRequestBuilder);
this.bufferSize&&(G.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(G);return G};var nMj=function(G,H,Z,Q,p,l,q){G=G===void 0?-1:G;H=H===void 0?"":H;Z=Z===void 0?"":Z;Q=Q===void 0?!1:Q;p=p===void 0?"":p;_.wI.call(this);this.logSource=G;this.componentId=H;l?H=l:(G=new _.c7(G,"0"),G.componentId=H,_.T$(this,G),Z!==""&&(G.destinationUrl=Z),Q&&(G.serviceWorkerScopeEnabled=!0),p&&tAu(G,p),q&&Jp2(G,q),H=G.build());this.JSC$9727_transport=H};
_.T(nMj,_.wI);nMj.prototype.flush=function(G){G=G||[];if(G.length){for(var H=new gFT,Z=[],Q=0;Q<G.length;Q++){var p=G[Q],l=Svd(p);Z.push(l);p.clear()}Jg(H,1,Z);this.JSC$9727_transport.dispatch(H);this.JSC$9727_transport.flush()}};var oFd=function(G){this.cellValue=G};var tr=function(G,H,Z){this.JSC$9732_metricName=G;this.cellType=H;this.fields=Z||[];this.cellMap=new Map},qvt=function(G){return G.fields.map(function(H){return H.fieldType})},I0p=function(G){return G.fields.map(function(H){return H.fieldName})};
_.g=tr.prototype;_.g.addCell=function(G){var H=_.Ry.apply(1,arguments),Z=this.getCells(H);Z?Z.push(new oFd(G)):this.JSC$9732_setCell(G,H)};
_.g.JSC$9732_setCell=function(G){var H=this.JSC$9732_getKey(_.Ry.apply(1,arguments));this.cellMap.set(H,[new oFd(G)])};
_.g.getCells=function(){var G=this.JSC$9732_getKey(_.Ry.apply(0,arguments));return this.cellMap.has(G)?this.cellMap.get(G):void 0};
_.g.getCell=function(){var G=this.getCells(_.Ry.apply(0,arguments));return G&&G.length?G[0]:void 0};
_.g.clear=function(){this.cellMap.clear()};
_.g.JSC$9732_getKey=function(){var G=_.Ry.apply(0,arguments);return G?G.join(","):"key"};var mf2=function(G,H){tr.call(this,G,3,H)};
_.T(mf2,tr);mf2.prototype.JSC$9735_incrementCounterBy=function(G){var H=_.Ry.apply(1,arguments),Z=0,Q=this.getCell(H);Q&&(Z=Q.cellValue);this.JSC$9732_setCell(Z+G,H)};var Ufd=function(G,H){tr.call(this,G,2,H)};
_.T(Ufd,tr);Ufd.prototype.record=function(G){this.addCell(G,_.Ry.apply(1,arguments))};_.kf=function(G){this.id=G};
_.kf.prototype.toString=function(){return this.id};_.DA=function(G,H){this.type=G instanceof _.kf?String(G):G;this.currentTarget=this.target=H;this.defaultPrevented=this.propagationStopped_=!1};
_.DA.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.DA.prototype.preventDefault=function(){this.defaultPrevented=!0};_.dl=function(G,H){_.DA.call(this,G?G.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;G&&this.init(G,H)};
_.AB(_.dl,_.DA);
_.dl.prototype.init=function(G,H){var Z=this.type=G.type,Q=G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:null;this.target=G.target||G.srcElement;this.currentTarget=H;H=G.relatedTarget;H||(Z=="mouseover"?H=G.fromElement:Z=="mouseout"&&(H=G.toElement));this.relatedTarget=H;Q?(this.clientX=Q.clientX!==void 0?Q.clientX:Q.pageX,this.clientY=Q.clientY!==void 0?Q.clientY:Q.pageY,this.screenX=Q.screenX||0,this.screenY=Q.screenY||0):(this.offsetX=_.b$||G.offsetX!==void 0?G.offsetX:G.layerX,
this.offsetY=_.b$||G.offsetY!==void 0?G.offsetY:G.layerY,this.clientX=G.clientX!==void 0?G.clientX:G.pageX,this.clientY=G.clientY!==void 0?G.clientY:G.pageY,this.screenX=G.screenX||0,this.screenY=G.screenY||0);this.button=G.button;this.keyCode=G.keyCode||0;this.key=G.key||"";this.charCode=G.charCode||(Z=="keypress"?G.keyCode:0);this.ctrlKey=G.ctrlKey;this.altKey=G.altKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.pointerId=G.pointerId||0;this.pointerType=G.pointerType;this.state=G.state;
this.timeStamp=G.timeStamp;this.event_=G;G.defaultPrevented&&_.dl.superClass_.preventDefault.call(this)};
_.dl.prototype.isButton=function(G){return this.event_.button==G};
_.dl.prototype.stopPropagation=function(){_.dl.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.dl.prototype.preventDefault=function(){_.dl.superClass_.preventDefault.call(this);var G=this.event_;G.preventDefault?G.preventDefault():G.returnValue=!1};var Ry_="closure_listenable_"+(Math.random()*1E6|0),ea=function(G){return!(!G||!G[Ry_])};var Nn_=0;var Asp=function(G,H,Z,Q,p){this.listener=G;this.proxy=null;this.src=H;this.type=Z;this.capture=!!Q;this.handler=p;this.key=++Nn_;this.removed=this.callOnce=!1},xf2=function(G){G.removed=!0;
G.listener=null;G.proxy=null;G.src=null;G.handler=null};$5.prototype.add=function(G,H,Z,Q,p){var l=G.toString();G=this.listeners[l];G||(G=this.listeners[l]=[],this.typeCount_++);var q=Lfa(G,H,Q,p);q>-1?(H=G[q],Z||(H.callOnce=!1)):(H=new Asp(H,this.src,l,!!Q,p),H.callOnce=Z,G.push(H));return H};
$5.prototype.remove=function(G,H,Z,Q){G=G.toString();if(!(G in this.listeners))return!1;var p=this.listeners[G];H=Lfa(p,H,Z,Q);return H>-1?(xf2(p[H]),_.juv(p,H),p.length==0&&(delete this.listeners[G],this.typeCount_--),!0):!1};
var EFx=function(G,H){var Z=H.type;if(!(Z in G.listeners))return!1;var Q=_.ou(G.listeners[Z],H);Q&&(xf2(H),G.listeners[Z].length==0&&(delete G.listeners[Z],G.typeCount_--));return Q};
$5.prototype.removeAll=function(G){G=G&&G.toString();var H=0,Z;for(Z in this.listeners)if(!G||Z==G){for(var Q=this.listeners[Z],p=0;p<Q.length;p++)++H,xf2(Q[p]);delete this.listeners[Z];this.typeCount_--}return H};
$5.prototype.getListener=function(G,H,Z,Q){G=this.listeners[G.toString()];var p=-1;G&&(p=Lfa(G,H,Z,Q));return p>-1?G[p]:null};
$5.prototype.hasListener=function(G,H){var Z=G!==void 0,Q=Z?G.toString():"",p=H!==void 0;return _.oN.some(this.listeners,function(l){for(var q=0;q<l.length;++q)if(!(Z&&l[q].type!=Q||p&&l[q].capture!=H))return!0;return!1})};
var Lfa=function(G,H,Z,Q){for(var p=0;p<G.length;++p){var l=G[p];if(!l.removed&&l.listener==H&&l.capture==!!Z&&l.handler==Q)return p}return-1};var Yvw,Fft,bbd,Hlt,sz2,Sk,ub,ptw,Zl_,QzT,nK,l24,GIt;Yvw="closure_lm_"+(Math.random()*1E6|0);Fft={};bbd=0;_.tt=function(G,H,Z,Q,p){if(Q&&Q.once)return Sk(G,H,Z,Q,p);if(Array.isArray(H)){for(var l=0;l<H.length;l++)_.tt(G,H[l],Z,Q,p);return null}Z=GIt(Z);return ea(G)?G.listen(H,Z,_.AM(Q)?!!Q.capture:!!Q,p):Hlt(G,H,Z,!1,Q,p)};
Hlt=function(G,H,Z,Q,p,l){if(!H)throw Error("va");var q=_.AM(p)?!!p.capture:!!p,u=nK(G);u||(G[Yvw]=u=new $5(G));Z=u.add(H,Z,Q,q,l);if(Z.proxy)return Z;Q=sz2();Z.proxy=Q;Q.src=G;Q.listener=Z;if(G.addEventListener)_.Zq2||(p=q),p===void 0&&(p=!1),G.addEventListener(H.toString(),Q,p);else if(G.attachEvent)G.attachEvent(Zl_(H.toString()),Q);else if(G.addListener&&G.removeListener)G.addListener(Q);else throw Error("wa");bbd++;return Z};
sz2=function(){var G=QzT,H=function(Z){return G.call(H.src,H.listener,Z)};
return H};
Sk=function(G,H,Z,Q,p){if(Array.isArray(H)){for(var l=0;l<H.length;l++)Sk(G,H[l],Z,Q,p);return null}Z=GIt(Z);return ea(G)?G.listenOnce(H,Z,_.AM(Q)?!!Q.capture:!!Q,p):Hlt(G,H,Z,!0,Q,p)};
_.VX=function(G,H,Z,Q,p){if(Array.isArray(H))for(var l=0;l<H.length;l++)_.VX(G,H[l],Z,Q,p);else Q=_.AM(Q)?!!Q.capture:!!Q,Z=GIt(Z),ea(G)?G.unlisten(H,Z,Q,p):G&&(G=nK(G))&&(H=G.getListener(H,Z,Q,p))&&ub(H)};
ub=function(G){if(typeof G==="number"||!G||G.removed)return!1;var H=G.src;if(ea(H))return EFx(H.eventTargetListeners_,G);var Z=G.type,Q=G.proxy;H.removeEventListener?H.removeEventListener(Z,Q,G.capture):H.detachEvent?H.detachEvent(Zl_(Z),Q):H.addListener&&H.removeListener&&H.removeListener(Q);bbd--;(Z=nK(H))?(EFx(Z,G),Z.typeCount_==0&&(Z.src=null,H[Yvw]=null)):xf2(G);return!0};
ptw=function(G,H,Z,Q,p){Z=GIt(Z);Q=!!Q;return ea(G)?G.getListener(H,Z,Q,p):G?(G=nK(G))?G.getListener(H,Z,Q,p):null:null};
Zl_=function(G){return G in Fft?Fft[G]:Fft[G]="on"+G};
QzT=function(G,H){if(G.removed)G=!0;else{H=new _.dl(H,this);var Z=G.listener,Q=G.handler||G.src;G.callOnce&&ub(G);G=Z.call(Q,H)}return G};
nK=function(G){G=G[Yvw];return G instanceof $5?G:null};
l24="__closure_events_fn_"+(Math.random()*1E9>>>0);GIt=function(G){if(typeof G==="function")return G;G[l24]||(G[l24]=function(H){return G.handleEvent(H)});
return G[l24]};_.$f=function(){_.wI.call(this);this.eventTargetListeners_=new $5(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.AB(_.$f,_.wI);_.$f.prototype[Ry_]=!0;_.g=_.$f.prototype;_.g.setParentEventTarget=function(G){this.parentEventTarget_=G};
_.g.addEventListener=function(G,H,Z,Q){_.tt(this,G,H,Z,Q)};
_.g.removeEventListener=function(G,H,Z,Q){_.VX(this,G,H,Z,Q)};
_.g.dispatchEvent=function(G){var H,Z=this.parentEventTarget_;if(Z)for(H=[];Z;Z=Z.parentEventTarget_)H.push(Z);Z=this.actualEventTarget_;var Q=G.type||G;if(typeof G==="string")G=new _.DA(G,Z);else if(G instanceof _.DA)G.target=G.target||Z;else{var p=G;G=new _.DA(Q,Z);_.oN.extend(G,p)}p=!0;var l;if(H)for(l=H.length-1;!G.propagationStopped_&&l>=0;l--){var q=G.currentTarget=H[l];p=gIw(q,Q,!0,G)&&p}G.propagationStopped_||(q=G.currentTarget=Z,p=gIw(q,Q,!0,G)&&p,G.propagationStopped_||(p=gIw(q,Q,!1,G)&&
p));if(H)for(l=0;!G.propagationStopped_&&l<H.length;l++)q=G.currentTarget=H[l],p=gIw(q,Q,!1,G)&&p;return p};
_.g.disposeInternal=function(){_.$f.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.g.listen=function(G,H,Z,Q){return this.eventTargetListeners_.add(String(G),H,!1,Z,Q)};
_.g.listenOnce=function(G,H,Z,Q){return this.eventTargetListeners_.add(String(G),H,!0,Z,Q)};
_.g.unlisten=function(G,H,Z,Q){return this.eventTargetListeners_.remove(String(G),H,Z,Q)};
_.g.removeAllListeners=function(G){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(G):0};
var gIw=function(G,H,Z,Q){H=G.eventTargetListeners_.listeners[String(H)];if(!H)return!0;H=H.concat();for(var p=!0,l=0;l<H.length;++l){var q=H[l];if(q&&!q.removed&&q.capture==Z){var u=q.listener,B=q.handler||q.src;q.callOnce&&EFx(G.eventTargetListeners_,q);p=u.call(B,Q)!==!1&&p}}return p&&!Q.defaultPrevented};
_.$f.prototype.getListener=function(G,H,Z,Q){return this.eventTargetListeners_.getListener(String(G),H,Z,Q)};
_.$f.prototype.hasListener=function(G,H){return this.eventTargetListeners_.hasListener(G!==void 0?String(G):void 0,H)};var XQ=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(G){return G&&AsyncContext.Snapshot.wrap(G)}:function(G){return G};var I2d=function(G,H){this.create_=G;this.reset_=H;this.occupants_=0;this.JSC$9767_head_=null};
I2d.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var G=this.JSC$9767_head_;this.JSC$9767_head_=G.next;G.next=null}else G=this.create_();return G};
I2d.prototype.put=function(G){this.reset_(G);this.occupants_<100&&(this.occupants_++,G.next=this.JSC$9767_head_,this.JSC$9767_head_=G)};var qJw=function(){this.workTail_=this.workHead_=null};
qJw.prototype.add=function(G,H){var Z=lkR.get();Z.set(G,H);this.workTail_?this.workTail_.next=Z:this.workHead_=Z;this.workTail_=Z};
qJw.prototype.remove=function(){var G=null;this.workHead_&&(G=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),G.next=null);return G};
var lkR=new I2d(function(){return new SJd},function(G){return G.reset()}),SJd=function(){this.next=this.scope=this.fn=null};
SJd.prototype.set=function(G,H){this.fn=G;this.scope=H;this.next=null};
SJd.prototype.reset=function(){this.next=this.scope=this.fn=null};var uU7,gMe,pUf,BOG;gMe=!1;pUf=new qJw;_.cQ=function(G,H){uU7||BOG();gMe||(uU7(),gMe=!0);pUf.add(G,H)};
BOG=function(){var G=Promise.resolve(void 0);uU7=function(){G.then(IkR)}};var JeT=function(G){G.prototype.$goog_Thenable=!0},tKN=function(G){if(!G)return!1;
try{return!!G.$goog_Thenable}catch(H){return!1}};var kIw,DV7,dV2,nIp,VKG,$VN,f24,z_w,PWT,MK4,u3e;_.T_=function(G,H){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(G!=_.dP)try{var Z=this;G.call(H,function(Q){Z.resolve_(2,Q)},function(Q){Z.resolve_(3,Q)})}catch(Q){this.resolve_(3,Q)}};
kIw=function(){this.next=this.context=this.JSC$9778_onRejected=this.JSC$9778_onFulfilled=this.child=null;this.always=!1};
kIw.prototype.reset=function(){this.context=this.JSC$9778_onRejected=this.JSC$9778_onFulfilled=this.child=null;this.always=!1};
DV7=new I2d(function(){return new kIw},function(G){G.reset()});
dV2=function(G,H,Z){var Q=DV7.get();Q.JSC$9778_onFulfilled=G;Q.JSC$9778_onRejected=H;Q.context=Z;return Q};
_.Yk=function(G){if(G instanceof _.T_)return G;var H=new _.T_(_.dP);H.resolve_(2,G);return H};
_.DJ=function(G){return new _.T_(function(H,Z){Z(G)})};
nIp=function(G,H,Z){e_R(G,H,Z,null)||_.cQ(_.po(H,G))};
_.Tw=function(G){return new _.T_(function(H,Z){var Q=G.length,p=[];if(Q)for(var l=function(t,D){Q--;p[t]=D;Q==0&&H(p)},q=function(t){Z(t)},u,B=0;B<G.length;B++)u=G[B],nIp(u,_.po(l,B),q);
else H(p)})};
VKG=function(G){return new _.T_(function(H){var Z=G.length,Q=[];if(Z)for(var p=function(u,B,t){Z--;Q[u]=B?{fulfilled:!0,value:t}:{fulfilled:!1,reason:t};Z==0&&H(Q)},l,q=0;q<G.length;q++)l=G[q],nIp(l,_.po(p,q,!0),_.po(p,q,!1));
else H(Q)})};
$VN=function(G){return new _.T_(function(H,Z){var Q=G.length,p=[];if(Q)for(var l=function(t){H(t)},q=function(t,D){Q--;
p[t]=D;Q==0&&Z(p)},u,B=0;B<G.length;B++)u=G[B],nIp(u,l,_.po(q,B));
else H(void 0)})};
_.hQ=function(){var G,H,Z=new _.T_(function(Q,p){G=Q;H=p});
return new Xtp(Z,G,H)};
_.T_.prototype.then=function(G,H,Z){return cex(this,XQ(typeof G==="function"?G:null),XQ(typeof H==="function"?H:null),Z)};
JeT(_.T_);f24=function(G,H,Z,Q){TOR(G,dV2(H||_.dP,Z||null,Q))};
_.fK=function(G,H){H=XQ(H);H=dV2(H,H);H.always=!0;TOR(G,H);return G};
_.T_.prototype.finally=function(G){var H=this;G=XQ(G);return new _.T_(function(Z,Q){f24(H,function(p){G();Z(p)},function(p){G();
Q(p)})})};
_.T_.prototype.thenCatch=function(G,H){return cex(this,null,XQ(G),H)};
_.T_.prototype.catch=_.T_.prototype.thenCatch;_.T_.prototype.cancel=function(G){if(this.state_==0){var H=new _.fA(G);_.cQ(function(){vIx(this,H)},this)}};
var vIx=function(G,H){if(G.state_==0)if(G.parent_){var Z=G.parent_;if(Z.callbackEntries_){for(var Q=0,p=null,l=null,q=Z.callbackEntries_;q&&(q.always||(Q++,q.child==G&&(p=q),!(p&&Q>1)));q=q.next)p||(l=q);p&&(Z.state_==0&&Q==1?vIx(Z,H):(l?(Q=l,Q.next==Z.callbackEntriesTail_&&(Z.callbackEntriesTail_=Q),Q.next=Q.next.next):WRa(Z),z_w(Z,p,3,H)))}G.parent_=null}else G.resolve_(3,H)},TOR=function(G,H){G.callbackEntries_||G.state_!=2&&G.state_!=3||KRt(G);
G.callbackEntriesTail_?G.callbackEntriesTail_.next=H:G.callbackEntries_=H;G.callbackEntriesTail_=H},cex=function(G,H,Z,Q){var p=dV2(null,null,null);
p.child=new _.T_(function(l,q){p.JSC$9778_onFulfilled=H?function(u){try{var B=H.call(Q,u);l(B)}catch(t){q(t)}}:l;
p.JSC$9778_onRejected=Z?function(u){try{var B=Z.call(Q,u);B===void 0&&u instanceof _.fA?q(u):l(B)}catch(t){q(t)}}:q});
p.child.parent_=G;TOR(G,p);return p.child};
_.T_.prototype.unblockAndFulfill_=function(G){this.state_=0;this.resolve_(2,G)};
_.T_.prototype.unblockAndReject_=function(G){this.state_=0;this.resolve_(3,G)};
_.T_.prototype.resolve_=function(G,H){this.state_==0&&(this===H&&(G=3,H=new TypeError("xa")),this.state_=1,e_R(H,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=H,this.state_=G,this.parent_=null,KRt(this),G!=3||H instanceof _.fA||MK4(this,H)))};
var e_R=function(G,H,Z,Q){if(G instanceof _.T_)return f24(G,H,Z,Q),!0;if(tKN(G))return G.then(H,Z,Q),!0;if(_.AM(G))try{var p=G.then;if(typeof p==="function")return jzd(G,p,H,Z,Q),!0}catch(l){return Z.call(Q,l),!0}return!1},jzd=function(G,H,Z,Q,p){var l=!1,q=function(B){l||(l=!0,Z.call(p,B))},u=function(B){l||(l=!0,Q.call(p,B))};
try{H.call(G,q,u)}catch(B){u(B)}},KRt=function(G){G.executing_||(G.executing_=!0,_.cQ(G.executeCallbacks_,G))},WRa=function(G){var H=null;
G.callbackEntries_&&(H=G.callbackEntries_,G.callbackEntries_=H.next,H.next=null);G.callbackEntries_||(G.callbackEntriesTail_=null);return H};
_.T_.prototype.executeCallbacks_=function(){for(var G;G=WRa(this);)z_w(this,G,this.state_,this.result_);this.executing_=!1};
z_w=function(G,H,Z,Q){if(Z==3&&H.JSC$9778_onRejected&&!H.always)for(;G&&G.hadUnhandledRejection_;G=G.parent_)G.hadUnhandledRejection_=!1;if(H.child)H.child.parent_=null,PWT(H,Z,Q);else try{H.always?H.JSC$9778_onFulfilled.call(H.context):PWT(H,Z,Q)}catch(p){u3e.call(null,p)}DV7.put(H)};
PWT=function(G,H,Z){H==2?G.JSC$9778_onFulfilled.call(G.context,Z):G.JSC$9778_onRejected&&G.JSC$9778_onRejected.call(G.context,Z)};
MK4=function(G,H){G.hadUnhandledRejection_=!0;_.cQ(function(){G.hadUnhandledRejection_&&u3e.call(null,H)})};
u3e=pW;_.fA=function(G){_.sj.call(this,G)};
_.AB(_.fA,_.sj);_.fA.prototype.name="cancel";var Xtp=function(G,H,Z){this.promise=G;this.resolve=H;this.reject=Z};var vQ;_.dg=function(G,H){_.$f.call(this);this.JSC$9790_interval_=G||1;this.timerObject_=H||_.Qf;this.boundTick_=(0,_.Cu)(this.tick_,this);this.last_=_.NW()};
_.AB(_.dg,_.$f);_.g=_.dg.prototype;_.g.enabled=!1;_.g.JSC$9792_timer_=null;_.g.setInterval=function(G){this.JSC$9790_interval_=G;this.JSC$9792_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9792_timer_&&this.stop()};
_.g.tick_=function(){if(this.enabled){var G=_.NW()-this.last_;G>0&&G<this.JSC$9790_interval_*.8?this.JSC$9792_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9790_interval_-G):(this.JSC$9792_timer_&&(this.timerObject_.clearTimeout(this.JSC$9792_timer_),this.JSC$9792_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.g.start=function(){this.enabled=!0;this.JSC$9792_timer_||(this.JSC$9792_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9790_interval_),this.last_=_.NW())};
_.g.stop=function(){this.enabled=!1;this.JSC$9792_timer_&&(this.timerObject_.clearTimeout(this.JSC$9792_timer_),this.JSC$9792_timer_=null)};
_.g.disposeInternal=function(){_.dg.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
vQ=function(G,H,Z){if(typeof G==="function")Z&&(G=(0,_.Cu)(G,Z));else if(G&&typeof G.handleEvent=="function")G=(0,_.Cu)(G.handleEvent,G);else throw Error("ya");return Number(H)>2147483647?-1:_.Qf.setTimeout(G,H||0)};
_.re2=function(G){var H=null;return(new _.T_(function(Z,Q){H=vQ(function(){Z(void 0)},G);
H==-1&&Q(Error("za"))})).thenCatch(function(Z){_.Qf.clearTimeout(H);
throw Z;})};var fu=function(G){_.wI.call(this);this.streamzLogger=G;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9796_flushTimer=new _.dg(this.flushInterval);this.JSC$9796_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.T$(this,this.JSC$9796_flushTimer)};
_.T(fu,_.wI);fu.prototype.sendIsolatedPayload=function(G){this.shouldSendIsolatedPayload=G;this.invocationLimit=1};
var wtx=function(G){G.JSC$9796_flushTimer.enabled||G.JSC$9796_flushTimer.start();G.invocationCount++;G.invocationCount>=G.invocationLimit&&G.snapshotAndFlush()};
fu.prototype.snapshotAndFlush=function(){var G=this.metricMap.values();G=[].concat(_.OP(G)).filter(function(H){return H.cellMap.size});
G.length&&this.streamzLogger.flush(G,this.shouldSendIsolatedPayload);h_a(G);this.invocationCount=0;this.JSC$9796_flushTimer.enabled&&this.JSC$9796_flushTimer.stop()};
fu.prototype.addNewCounter=function(G){var H=_.Ry.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new mf2(G,H))};
fu.prototype.addNewEventMetric=function(G){var H=_.Ry.apply(1,arguments);this.metricMap.has(G)||this.metricMap.set(G,new Ufd(G,H))};
var CW_=function(G,H){return G.disabledMetrics.has(H)?void 0:G.metricMap.get(H)};
fu.prototype.JSC$9796_incrementCounter=function(G){this.JSC$9796_incrementCounterBy(G,1,_.Ry.apply(1,arguments))};
fu.prototype.JSC$9796_incrementCounterBy=function(G,H){var Z=_.Ry.apply(2,arguments),Q=CW_(this,G);Q&&Q instanceof mf2&&(Q.JSC$9735_incrementCounterBy(H,Z),wtx(this))};
fu.prototype.record=function(G,H){var Z=_.Ry.apply(2,arguments),Q=CW_(this,G);Q&&Q instanceof Ufd&&(Q.record(H,Z),wtx(this))};
var h_a=function(G){for(var H=0;H<G.length;H++)G[H].clear()};_.WQ=function(G,H,Z){Z=Z===void 0?{}:Z;H=Error.call(this,H);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=G;this.metadata=Z;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.T(_.WQ,Error);_.WQ.prototype.toString=function(){var G="RpcError("+(Sdf(this.code)||String(this.code))+")";this.message&&(G+=": "+this.message);return G};_.il_=_.Qf.JSON.parse;_.zw=_.Qf.JSON.stringify;_.kk=_.Qf.JSON.parse;_.OlN=function(G){switch(G){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 a2w=function(G){switch(G){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var ye_,oIa=function(){};
_.AB(oIa,_.uPf);oIa.prototype.createInstance=function(){return new XMLHttpRequest};
ye_=new oIa;_.KK=function(G){_.$f.call(this);this.headers=new Map;this.JSC$9805_xmlHttpFactory_=G||null;this.JSC$9805_active_=!1;this.JSC$9805_xhr_=null;this.JSC$9805_lastUri_="";this.JSC$9805_lastErrorCode_=0;this.JSC$9805_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9805_timeoutId_=null;this.responseType_="";this.JSC$9805_withCredentials_=!1};
_.AB(_.KK,_.$f);var mV2=/^https?$/i,UVt=["POST","PUT"],R_N=[],Nao=function(G,H,Z,Q,p,l,q){var u=new _.KK;R_N.push(u);H&&u.listen("complete",H);u.listenOnce("ready",u.cleanupSend_);l&&(u.timeoutInterval_=Math.max(0,l));q&&(u.JSC$9805_withCredentials_=q);u.send(G,Z,Q,p)};
_.KK.prototype.cleanupSend_=function(){this.dispose();_.ou(R_N,this)};
_.KK.prototype.send=function(G,H,Z,Q){if(this.JSC$9805_xhr_)throw Error("Aa`"+this.JSC$9805_lastUri_+"`"+G);H=H?H.toUpperCase():"GET";this.JSC$9805_lastUri_=G;this.JSC$9805_lastError_="";this.JSC$9805_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9805_active_=!0;this.JSC$9805_xhr_=this.createXhr();this.JSC$9805_xhr_.onreadystatechange=XQ((0,_.Cu)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9805_xhr_.open(H,String(G),!0),this.inOpen_=!1}catch(q){NOw(this,q);return}G=Z||"";Z=new Map(this.headers);
if(Q)if(Object.getPrototypeOf(Q)===Object.prototype)for(var p in Q)Z.set(p,Q[p]);else if(typeof Q.keys==="function"&&typeof Q.get==="function"){p=_.I(Q.keys());for(var l=p.next();!l.done;l=p.next())l=l.value,Z.set(l,Q.get(l))}else throw Error("Ba`"+String(Q));Q=Array.from(Z.keys()).find(function(q){return"content-type"==q.toLowerCase()});
p=_.Qf.FormData&&G instanceof _.Qf.FormData;!_.yf(UVt,H)||Q||p||Z.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");H=_.I(Z);for(Q=H.next();!Q.done;Q=H.next())Z=_.I(Q.value),Q=Z.next().value,Z=Z.next().value,this.JSC$9805_xhr_.setRequestHeader(Q,Z);this.responseType_&&(this.JSC$9805_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9805_xhr_&&this.JSC$9805_xhr_.withCredentials!==this.JSC$9805_withCredentials_&&(this.JSC$9805_xhr_.withCredentials=this.JSC$9805_withCredentials_);
try{this.JSC$9805_timeoutId_&&(clearTimeout(this.JSC$9805_timeoutId_),this.JSC$9805_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9805_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9805_xhr_.send(G),this.inSend_=!1}catch(q){NOw(this,q)}};
_.KK.prototype.createXhr=function(){return this.JSC$9805_xmlHttpFactory_?this.JSC$9805_xmlHttpFactory_.createInstance():ye_.createInstance()};
_.KK.prototype.timeout_=function(){typeof lUG!="undefined"&&this.JSC$9805_xhr_&&(this.JSC$9805_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9805_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var NOw=function(G,H){G.JSC$9805_active_=!1;G.JSC$9805_xhr_&&(G.inAbort_=!0,G.JSC$9805_xhr_.abort(),G.inAbort_=!1);G.JSC$9805_lastError_=H;G.JSC$9805_lastErrorCode_=5;Aew(G);xV_(G)},Aew=function(G){G.errorDispatched_||(G.errorDispatched_=!0,G.dispatchEvent("complete"),G.dispatchEvent("error"))};
_.KK.prototype.abort=function(G){this.JSC$9805_xhr_&&this.JSC$9805_active_&&(this.JSC$9805_active_=!1,this.inAbort_=!0,this.JSC$9805_xhr_.abort(),this.inAbort_=!1,this.JSC$9805_lastErrorCode_=G||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),xV_(this))};
_.KK.prototype.disposeInternal=function(){this.JSC$9805_xhr_&&(this.JSC$9805_active_&&(this.JSC$9805_active_=!1,this.inAbort_=!0,this.JSC$9805_xhr_.abort(),this.inAbort_=!1),xV_(this,!0));_.KK.superClass_.disposeInternal.call(this)};
_.KK.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)LRw(this);else this.onReadyStateChangeEntryPoint_()};
_.KK.prototype.onReadyStateChangeEntryPoint_=function(){LRw(this)};
var LRw=function(G){if(G.JSC$9805_active_&&typeof lUG!="undefined")if(G.inSend_&&_.Mn(G)==4)setTimeout(G.onReadyStateChange_.bind(G),0);else if(G.dispatchEvent("readystatechange"),G.isComplete()){G.JSC$9805_active_=!1;try{if(G.isSuccess())G.dispatchEvent("complete"),G.dispatchEvent("success");else{G.JSC$9805_lastErrorCode_=6;try{var H=_.Mn(G)>2?G.JSC$9805_xhr_.statusText:""}catch(Z){H=""}G.JSC$9805_lastError_=H+" ["+G.getStatus()+"]";Aew(G)}}finally{xV_(G)}}},xV_=function(G,H){if(G.JSC$9805_xhr_){G.JSC$9805_timeoutId_&&
(clearTimeout(G.JSC$9805_timeoutId_),G.JSC$9805_timeoutId_=null);
var Z=G.JSC$9805_xhr_;G.JSC$9805_xhr_=null;H||G.dispatchEvent("ready");try{Z.onreadystatechange=null}catch(Q){}}};
_.KK.prototype.isActive=function(){return!!this.JSC$9805_xhr_};
_.KK.prototype.isComplete=function(){return _.Mn(this)==4};
_.KK.prototype.isSuccess=function(){var G=this.getStatus(),H;if(!(H=a2w(G))){if(G=G===0)G=G$4(String(this.JSC$9805_lastUri_)),G=!mV2.test(G);H=G}return H};
_.Mn=function(G){return G.JSC$9805_xhr_?G.JSC$9805_xhr_.readyState:0};
_.g=_.KK.prototype;_.g.getStatus=function(){try{return _.Mn(this)>2?this.JSC$9805_xhr_.status:-1}catch(G){return-1}};
_.g.getResponseText=function(){try{return this.JSC$9805_xhr_?this.JSC$9805_xhr_.responseText:""}catch(G){return""}};
_.g.getResponse=function(){try{if(!this.JSC$9805_xhr_)return null;if("response"in this.JSC$9805_xhr_)return this.JSC$9805_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9805_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9805_xhr_)return this.JSC$9805_xhr_.mozResponseArrayBuffer}return null}catch(G){return null}};
_.g.getAllResponseHeaders=function(){return this.JSC$9805_xhr_&&_.Mn(this)>=2?this.JSC$9805_xhr_.getAllResponseHeaders()||"":""};
_.g.getLastError=function(){return typeof this.JSC$9805_lastError_==="string"?this.JSC$9805_lastError_:String(this.JSC$9805_lastError_)};var kFj=function(){};
kFj.prototype.send=function(G,H,Z){H=H===void 0?function(){}:H;
Z=Z===void 0?function(){}:Z;
Nao(G.url,function(Q){Q=Q.target;Q.isSuccess()?H(Q.getResponseText()):Z(Q.getStatus())},G.requestType,G.body,G.requestHeaders,G.timeoutMillis,G.withCredentials)};
kFj.prototype.getTransmissionType=function(){return 1};var EIR=function(G,H){this.ztD=G;this.event=H;this.startTime=v7()},$Yf;
EIR.prototype.done=function(){this.ztD.pJ(this.event,v7()-this.startTime)};
var ja=function(){QX.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.T(ja,QX);_.PQ=function(G,H,Z){var Q=v7();H=H();G.pJ(Z,v7()-Q);return H};
$Yf=function(){ja.apply(this,arguments)};
_.T($Yf,ja);_.g=$Yf.prototype;_.g.aEW=function(){};
_.g.dh=function(){};
_.g.pJ=function(){};
_.g.logError=function(){};
_.g.k0=function(){};
_.g.aXH=function(){};
_.g.r1Q=function(){};
_.g.zU6=function(){};
var YJx=function(G){ja.call(this);var H=this;this.mJ=G;this.TEST_ONLY={cmh:function(){return H.mJ},
getExperimentIds:function(){return H.mJ.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void H.mJ.dispose()})};
_.T(YJx,ja);_.g=YJx.prototype;_.g.update=function(G){this.mJ.dispose();this.mJ=G};
_.g.dh=function(G){this.mJ.dh(G)};
_.g.pJ=function(G,H){this.mJ.pJ(G,H)};
_.g.logError=function(G){this.mJ.logError(G)};
_.g.k0=function(){this.mJ.k0()};
_.g.aXH=function(G){this.mJ.aXH(G)};
_.g.r1Q=function(G){this.mJ.r1Q(G)};
_.g.zU6=function(G){this.mJ.zU6(G)};
_.g.aEW=function(G){this.mJ.aEW(G)};
var FR7=function(G,H){_.wI.call(this);var Z=this;this.callback=G;this.hrO=H;this.wmI=-H;this.addOnDisposeCallback(function(){return void clearTimeout(Z.timer)})};
_.T(FR7,_.wI);var bld=function(G){if(G.timer===void 0){var H=Math.max(0,G.wmI+G.hrO-v7());G.timer=setTimeout(function(){try{G.callback()}finally{G.wmI=v7(),G.timer=void 0}},H)}},GFt=function(G,H){ja.call(this);
this.metrics=G;this.dY=H};
_.T(GFt,ja);_.g=GFt.prototype;_.g.aEW=function(G){this.metrics.nyL.record(G,this.dY)};
_.g.dh=function(G){this.metrics.eventCount.increment(G,this.dY)};
_.g.pJ=function(G,H){this.metrics.el3.record(H,G,this.dY)};
_.g.logError=function(G){this.metrics.errorCount.increment(G,this.dY)};
_.g.aXH=function(G){this.metrics.u9V.increment(G,this.dY)};
_.g.r1Q=function(G){this.metrics.zjk.increment(G,this.dY)};
_.g.zU6=function(G){this.metrics.cwG.increment(G,this.dY)};
var XUv=function(G,H){H=H===void 0?[]:H;var Z={dY:G.dY||"_",nbN:G.nbN||[],hQX:G.hQX|0,destinationUrl:G.destinationUrl,fw7:G.fw7||function(){},
bS3:G.bS3||function(l,q){return VAv(l,q,Z.fw7,Z.destinationUrl)}},Q=Z.bS3("51",Z.nbN.concat(H));
GFt.call(this,{nyL:new hKG(Q),errorCount:new aSN(Q),eventCount:new iux(Q),el3:new OuG(Q),sDV:new CY_(Q),u9V:new yRT(Q),zjk:new o5R(Q),cwG:new mjw(Q)},Z.dY);var p=this;this.TEST_ONLY={getExperimentIds:function(){return p.options.nbN.concat(p.uKp).sort(function(l,q){return l-q})}};
this.options=Z;this.service=Q;this.vvp=!G.bS3;this.flushDebouncer=new FR7(function(){return void p.service.snapshotAndFlush()},Z.hQX);
this.addOnDisposeCallback(function(){p.flushDebouncer.dispose();p.vvp&&p.service.dispose()});
(this.uKp=H.slice()).sort(_.hjW)};
_.T(XUv,GFt);XUv.prototype.k0=function(){bld(this.flushDebouncer)};var y8j=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(y8j,_.Iy);_.oBf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(_.oBf,_.Iy);var Mc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G,0,Mc.messageId)};
_.T(Mc,_.Iy);var H$a=_.ANu(Mc);Mc.messageId="bfkj";var xVM=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(xVM,_.Iy);var sJa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(sJa,_.Iy);var Z$_=_.cO(sJa);_.sD=function(){var G=this;this.promise=new Promise(function(H,Z){G.resolve=H;G.reject=Z})};_.rl=function(G){_.wI.call(this);var H=this;this.jD1=Math.floor(Math.random()*200);this.lA4=new sJa;if("challenge"in G&&H$a(G.challenge)){var Z=_.nY(G.challenge,4,void 0,wG);var Q=_.nY(G.challenge,5,void 0,wG);_.nY(G.challenge,7,void 0,wG)&&(this.lA4=Z$_(_.nY(G.challenge,7,void 0,wG)))}else Z=G.program,Q=G.globalName;this.addOnDisposeCallback(function(){var c,W,M;return _.S(function(r){if(r.nextAddress==1)return r.yield(H.aGl,2);c=r.yieldResult;W=c.gyu;(M=W)==null||M();_.K0(r)})});
this.zu=cpW(G.bc3||{},this.lA4);_.T$(this,this.zu);var p=new _.sD;this.aGl=p.promise;this.zu.dh("t");var l=this.zu.share(),q=new EIR(l,"t"),u=function(c,W,M,r){if(!H.zu.isDisposed()){var w="k";W?w="h":M&&(w="u");w!=="k"?r!==0&&(H.zu.dh(w),H.zu.pJ(w,c)):H.jD1<=0?(H.zu.dh(w),H.zu.pJ(w,c),H.jD1=Math.floor(Math.random()*200)):H.jD1--}},B=function(c,W,M,r){Promise.resolve().then(function(){q.done();
l.k0();l.dispose();p.resolve({ec3:c,gyu:W,eZa:M,jRi:r})})};
if(!_.Qf[Q])throw this.zu.logError(25),Error("Ca");if(!_.Qf[Q].a)throw this.zu.logError(26),Error("Da");try{var t=_.Qf[Q].a;Q=[];for(var D=[],d=LRR(this.lA4),e=0;e<d.length;e++)Q.push(d[e]),D.push(1);var n=EIj(this.lA4);for(d=0;d<n.length;d++)Q.push(n[d]),D.push(2);this.xZY=_.I(t(Z,B,!0,G.rYq,u,[Q,D],_.nY(this.lA4,5),!1)).next().value;this.hXW=p.promise.then(function(){})}catch(c){throw this.zu.logError(28),c;
}};
_.T(_.rl,_.wI);_.rl.prototype.snapshot=function(G){if(this.isDisposed())throw Error("Ea");this.zu.dh("n");var H=this.zu.share();return this.aGl.then(function(Z){var Q=Z.ec3;return new Promise(function(p){var l=new EIR(H,"n");Q(function(q){l.done();H.aEW(q.length);H.k0();H.dispose();p(q)},[G.ko,
G.tH6,G.vLy,G.mQZ])})})};
_.rl.prototype.eRp=function(G){this.aGl.then(function(H){var Z;(Z=H.eZa)==null||Z(G)})};
_.rl.prototype.xeQ=function(G,H){return this.aGl.then(function(Z){var Q;return(Q=Z.jRi)==null?void 0:Q(G,H,!1)})};
_.rl.prototype.stN=function(){return this.zu.share()};var QJR=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(QJR,_.Iy);var d2b=_.ANu(QJR);var pU4=function(){this.promises={};this.pt1=null},lkw=function(){pU4.instance||(pU4.instance=new pU4);
return pU4.instance},Ikw=function(G,H){return gMa(G,_.dt(H,y8j,1,wG),_.dt(H,_.oBf,2,wG),_.nY(H,3,void 0,wG))},gMa=function(G,H,Z,Q){if(!H&&!Z)return Promise.resolve();
if(!Q)return zRR(H,Z);var p;(p=G.promises)[Q]||(p[Q]=new Promise(function(l,q){zRR(H,Z).then(function(){G.pt1=Q;l()},function(u){delete G.promises[Q];
q(u)})}));
return G.promises[Q]};var qdt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(qdt,_.Iy);var SdG=function(G,H){return _.jO(G,1,H)},uPG=function(G,H){return _.jO(G,2,H)};var wl=function(G){_.wI.call(this);var H=this;this.options=G;this.nsg=new _.sD;this.hXW=this.nsg.promise;this.uUi=new _.sD;this.ddZ=1;this.eS7=new _.sD;this.v7t=[];this.ouM=G.ouM||function(){};
this.zsl=new YJx(cpW(G.bc3||{}));B7x(this,G.jX,G.mzc,G.xiX,G.miC,Object.assign({},Jpp,G.jsp||{}));this.addOnDisposeCallback(function(){return void tAt(H)})};
_.T(wl,_.wI);wl.prototype.snapshot=function(G){var H=this;return _.S(function(Z){switch(Z.nextAddress){case 1:if(H.isDisposed())throw Error("Ea");if(H.hI||H.gNI){Z.jumpTo(2);break}return Z.yield(H.uUi.promise,2);case 2:if(!H.hI){Z.jumpTo(4);break}return Z.yield(H.hI.snapshot(G),5);case 5:return Z.return(Z.yieldResult);case 4:throw H.gNI;}})};
var kFR=function(G){var H;return _.S(function(Z){if(G.isDisposed())throw Error("Ea");(H=G.gZ)!=null&&(H.endTimeMs=0,H.resolver(1));return Z.yield(G.eS7.promise,0)})},tAt=function(G){G.gNI=Error("Ga");
G.uUi.resolve();YJo(G.nsg.promise);G.nsg.reject(Error("Ga"));G.zsl.dispose();Promise.all(G.v7t).then(function(){var Z;return _.S(function(Q){(Z=G.hI)==null||Z.dispose();G.hI=void 0;_.K0(Q)})});
G.v7t=[];var H;(H=G.gZ)!=null&&(H.endTimeMs=0,H.resolver(1));YJo(G.eS7.promise);G.eS7.reject(Error("Ga"))};
wl.prototype.eRp=function(G){var H,Z;(H=this.hI)==null||(Z=H.eRp)==null||Z.call(H,G)};
wl.prototype.xeQ=function(G,H){var Z,Q,p;return(p=(Z=this.hI)==null?void 0:(Q=Z.xeQ)==null?void 0:Q.call(Z,G,H))!=null?p:Promise.resolve()};
var DYG=function(G,H){var Z=G.ouM;G.ouM=function(){Z();H()}},dYN=function(G,H){G.isDisposed()||(G.hI=H,G.zsl.update(H.stN()),G.uUi.resolve(),G.nsg.resolve(void 0),G.ouM())};
wl.prototype.handleError=function(G){if(!this.isDisposed()){this.gNI=G;this.uUi.resolve();var H,Z;(Z=(H=this.options).zXH)==null||Z.call(H,G)}};
var eRd=function(G,H){H&&(Promise.all(G.v7t).then(function(){return void H.dispose()}),G.v7t=[])};
wl.prototype.setStatus=function(G){this.ddZ=G;var H,Z;(Z=(H=this.options).dnq)==null||Z.call(H,G)};
var nMR=function(G){G.isDisposed()||(G.eS7.resolve(),G.eS7=new _.sD)},B7x=function(G,H,Z,Q,p,l){Q=Q===void 0?lkw():Q;
p=p===void 0?Promise.resolve(void 0):p;var q,u,B,t,D,d,e,n,c,W,M,r;_.S(function(w){switch(w.nextAddress){case 1:return w.yield(0,3);case 3:u=null;if(!q){w.jumpTo(6);break}G.setStatus(7);_.XV(w,7);return w.yield(j_(q.snapshot({}),l.ilp,function(){return Promise.resolve("E:CTO")}),9);
case 9:u=w.yieldResult;_.Za(w,6);break;case 7:_.Wg(w),u="E:UCE";case 6:B=void 0,t=q?l.gsy:l.vs3,D=new Vx(t,l.pSy,l.qVi,l.ipq),d=1;case 10:if(!(d<=l.maxAttempts)){w.jumpTo(12);break}if(d===1){w.jumpTo(13);break}G.setStatus(0);G.gZ=new VA2(D.getValue(),l.pwo,l.zio);return w.yield(G.gZ.promise,14);case 14:e=w.yieldResult,G.gZ=void 0,e===1?(d=1,D.reset()):jMa(D);case 13:_.XV(w,15);n=void 0;if(Z){n=Z;w.jumpTo(17);break}G.setStatus(5);c=Q.pt1;return w.yield(j_($Y4(H,c,u),l.kiy,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:n=w.yieldResult;case 17:return G.setStatus(3),w.yield(j_(Ikw(Q,n),l.y8y,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return G.setStatus(8),w.yield(p,20);case 20:return W=new _.rl({challenge:n,bc3:G.options.bc3,rYq:G.options.rYq}),w.yield(j_(W.hXW,l.wEe,function(){return Promise.reject(Error("Ja"))}),21);
case 21:B=W;w.jumpTo(12);break;case 15:M=_.Wg(w),G.handleError(M),nMR(G);case 11:d++;w.jumpTo(10);break;case 12:if(G.isDisposed()){w.jumpTo(5);break}B&&(Z=void 0,eRd(G,q),q=B,dYN(G,B),nMR(G));G.setStatus(2);G.gZ=new VA2(l.ggk,l.pwo,l.zio);return w.yield(G.gZ.promise,22);case 22:G.gZ=void 0;if(G.isDisposed()){w.jumpTo(5);break}w.jumpTo(3);break;case 5:(r=q)==null||r.dispose(),_.K0(w)}})};
wl.prototype.stN=function(){return this.zsl.share()};
var Jpp={ggk:432E5,pwo:3E5,zio:10,ilp:1E4,kiy:3E4,y8y:3E4,wEe:6E4,vs3:1E3,gsy:6E4,pSy:6E5,qVi:.25,ipq:2,maxAttempts:10},VA2=function(G,H,Z){var Q=this;this.endTimeMs=Date.now()+G;this.promise=new Promise(function(l){Q.resolver=l});
var p=function(){var l=Q.endTimeMs-Date.now();l<=Z?Q.resolver(0):setTimeout(p,Math.min(l,H))};
p()};var XU2,jJ3=(XU2=Math.imul)!=null?XU2:function(G,H){return G*H|0},P7=[196,
200,224,18],hr=function(G,H,Z){Z=Z===void 0?[]:Z;this.maxItems=G;this.yS=H===void 0?0:H;this.sj=Z},cpw=function(G){var H=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!H)return new hr(G);var Z=H.split(",");if(Z.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new hr(G);H=Z.slice(1);H.length===1&&H[0]===""&&(H=[]);Z=Number(Z[0]);return isNaN(Z)||Z<0||Z>H.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new hr(G)):new hr(G,Z,H)};
hr.prototype.serialize=function(){return String(this.yS)+","+this.sj.join()};
hr.prototype.insert=function(G,H){var Z=void 0;if(this.sj[this.yS]!==G){var Q=this.sj.indexOf(G);Q!==-1?(this.sj.splice(Q,1),Q<this.yS&&this.yS--,this.sj.splice(this.yS,0,G)):(Z=this.sj[this.yS],this.sj[this.yS]=G)}this.yS=(this.yS+1)%this.maxItems;G=KKW("iU5q-!O9@$",this.serialize());Z&&G&&H(Z);return G};
var T7x=function(G,H){this.htu=H;try{var Z=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Q){Z=!1}Z&&(this.index=cpw(G))},fkR=function(G,H,Z,Q,p){var l=G.index?_.PQ(G.htu,function(){return hRf(G.index,rpW(H),Z,Q,p)},"W"):"u";
G.htu.zU6(l)},vM2=function(G,H,Z){var Q=_.I(G.index?_.PQ(G.htu,function(){return C0e(rpW(H),Z)},"R"):["u"]),p=Q.next().value;
Q=Q.next().value;G.htu.r1Q(p);return Q};var WKR={toString:function(G){var H=[],Z=0;G-=-2147483648;H[Z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(G%52);for(G=Math.floor(G/52);G>0;)H[Z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(G%62),G=Math.floor(G/62);return H.join("")}};var MAN=function(G){G=zRw(G);for(var H=2654435769,Z=2654435769,Q=314159265,p=G.length,l=p,q=0,u=function(){H-=Z;H-=Q;H^=Q>>>13;Z-=Q;Z-=H;Z^=H<<8;Q-=H;Q-=Z;Q^=Z>>>13;H-=Z;H-=Q;H^=Q>>>12;Z-=Q;Z-=H;Z^=H<<16;Q-=H;Q-=Z;Q^=Z>>>5;H-=Z;H-=Q;H^=Q>>>3;Z-=Q;Z-=H;Z^=H<<10;Q-=H;Q-=Z;Q^=Z>>>15};l>=12;l-=12,q+=12)H+=KKw(G,q),Z+=KKw(G,q+4),Q+=KKw(G,q+8),u();
Q+=p;switch(l){case 11:Q+=G[q+10]<<24;case 10:Q+=G[q+9]<<16;case 9:Q+=G[q+8]<<8;case 8:Z+=G[q+7]<<24;case 7:Z+=G[q+6]<<16;case 6:Z+=G[q+5]<<8;case 5:Z+=G[q+4];case 4:H+=G[q+3]<<24;case 3:H+=G[q+2]<<16;case 2:H+=G[q+1]<<8;case 1:H+=G[q]}u();return WKR.toString(Q)},zRw=function(G){for(var H=[],Z=0;Z<G.length;Z++)H.push(G.charCodeAt(Z));
return H},KKw=function(G,H){return G[H]+(G[H+1]<<8)+(G[H+2]<<16)+(G[H+3]<<24)};var CK=function(G){_.wI.call(this);this.iK=G;this.hMr=new _.sD};
_.T(CK,_.wI);var jJd=function(G,H){var Z=setTimeout(function(){G.hMr.resolve()},H);
G.addOnDisposeCallback(function(){return void clearTimeout(Z)})};
CK.prototype.fpu=function(G,H){var Z=this.jD(G);H==null||H(Z);return _.PQ(this.iK,function(){return _.Cm(Z,2)},this.rW3)};
var P0w=function(G,H,Z,Q){return _.PQ(G.iK,function(){return Z?G.fpu(H,Q):G.jD(H,Q)},G.cxY)},rpw=function(G,H,Z,Q){CK.call(this,G);
this.v1q=H;this.qeH=Z;this.cxY="m";this.rW3="x";this.p5L=0;jJd(this,Q)};
_.T(rpw,CK);rpw.prototype.jD=function(G,H){var Z=this;this.iK.dh(this.cxY);++this.p5L>=this.qeH&&this.hMr.resolve();var Q=G();G=_.PQ(this.iK,function(){return Z.v1q(Q)},"C");
if(G===void 0)throw new sx(17,"YNJ:Undefined");if(!(G instanceof Uint8Array))throw new sx(18,"ODM:Invalid");H==null||H(G);return G};
var wUN=function(G,H,Z){CK.call(this,G);this.vmp=H;this.cxY="f";this.rW3="z";jJd(this,Z)};
_.T(wUN,CK);wUN.prototype.jD=function(){return this.vmp};
var hR4=function(G,H,Z){CK.call(this,G);this.qgy=H;this.cxY="w";this.rW3="z";jJd(this,Z)};
_.T(hR4,CK);hR4.prototype.jD=function(){var G=this;return _.PQ(this.iK,function(){return _.YR(G.qgy)},"d")};
hR4.prototype.fpu=function(){return this.qgy};
var C0a=function(G,H){CK.call(this,G);this.error=H;this.cxY="e";this.rW3="y"};
_.T(C0a,CK);var i$2=function(G,H){var Z=(H(G.error.message)+":"+H(G.error.stack)).substring(0,2048);H=Z.length+1;Z=i$v(Z);var Q=new Uint8Array(4+Z.length);Q.set([42,H&127|128,H>>7,G.error.code]);Q.set(Z,4);return Q};
C0a.prototype.jD=function(){if(this.hue)return this.hue;this.hue=i$2(this,function(G){return"_"+MAN(G)});
return i$2(this,function(G){return G})};
var O$7=function(G,H,Z){CK.call(this,G);this.o5y=H;this.clientState=Z;this.cxY="S";this.rW3="q"};
_.T(O$7,CK);O$7.prototype.jD=function(){var G=Math.floor(Date.now()/1E3),H=[Math.random()*255,Math.random()*255],Z=H.concat([this.o5y&255,this.clientState],[G>>24&255,G>>16&255,G>>8&255,G&255]);G=new Uint8Array(2+Z.length);G[0]=34;G[1]=Z.length;G.set(Z,2);Z=G.subarray(2);for(var Q=H=H.length;Q<Z.length;++Q)Z[Q]^=Z[Q%H];this.iK.aXH(this.clientState);return G};var akG={jOp:3E4,r5n:2E4},i5=function(G){_.wI.call(this);var H=this;this.jDM=new _.sD;this.xrc=0;this.d4=void 0;this.state=2;this.vm=G.vm;this.jX=G.jX;this.jsp=Object.assign({},akG,G.jsp||{});this.ky=G.vm.stN();var Z;this.onError=(Z=G.onError)!=null?Z:function(){};
this.d11=G.d11||!1;if(ypx(G)){var Q=this.vm;this.h2Z=function(){return kFR(Q).catch(function(q){q=H.reportError(new sx(H.t5?20:32,"TRG:Disposed",q));H.d4=q;var u;(u=H.t5)==null||u.dispose();H.t5=void 0;H.jDM.reject(q)})};
DYG(Q,function(){return void oMa(H)});
Q.ddZ===2&&oMa(this)}else this.h2Z=G.pmH,oMa(this);var p=this.ky.share();p.dh("o");var l=new EIR(p,"o");this.jDM.promise.then(function(){l.done();p.k0();p.dispose()},function(){return void p.dispose()});
this.addOnDisposeCallback(function(){H.t5?(H.t5.dispose(),H.t5=void 0):H.d4?H.ky.k0():(H.d4=H.reportError(new sx(32,"TNP:Disposed")),H.ky.k0(),H.jDM.reject(H.d4))});
_.T$(this,this.ky)};
_.T(i5,_.wI);i5.prototype.iSx=function(){return this.jDM.promise};
var mYR=function(G,H){if(!(H instanceof sx))if(H instanceof _.WQ){var Z=Error(H.toString());Z.stack=H.stack;H=new sx(11,"EBH:Error",Z)}else H=new sx(12,"BSO:Unknown",H);return G.reportError(H)},oMa=function(G){var H,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W;
return _.S(function(M){switch(M.nextAddress){case 1:H=void 0;G.xrc++;Z=new _.sD;G.vm instanceof wl&&G.vm.v7t.push(Z.promise);if(!G.d11){M.jumpTo(2);break}Q=new _.sD;setTimeout(function(){return void Q.resolve()});
return M.yield(Q.promise,2);case 2:return p=G.ky.share(),_.XV(M,4,5),G.state=5,l={},q=[],M.yield(j_(G.vm.snapshot({ko:l,vLy:q}),G.jsp.r5n,function(){return Promise.reject(new sx(15,"MDA:Timeout"))}),7);
case 7:u=M.yieldResult;if(G.isDisposed())throw new sx(G.t5?20:32,"MDA:Disposed");B=q[0];G.state=6;return M.yield(j_(UYa(G.jX,u),G.jsp.jOp,function(){return Promise.reject(new sx(10,"BWB:Timeout"))}),8);
case 8:t=M.yieldResult;if(G.isDisposed())throw new sx(G.t5?20:32,"BWB:Disposed");G.state=7;H=_.PQ(p,function(){var w=RRG(G,t,Z,B);w.hMr.promise.then(function(){return void G.h2Z()});
return w},"i");
case 5:_.TO(M);p.dispose();_.vg(M,6);break;case 4:D=_.Wg(M);(d=H)==null||d.dispose();if(!G.d4){e=mYR(G,D);Z.resolve();var r;if(r=G.vm instanceof wl&&G.xrc<2)a:if(D instanceof sx)r=D.code!==32&&D.code!==20&&D.code!==10;else{if(D instanceof _.WQ)switch(D.code){case 2:case 13:case 14:case 4:break;default:r=!1;break a}r=!0}if(r)return n=(1+Math.random()*.25)*(G.t5?6E4:1E3),c=setTimeout(function(){return void G.h2Z()},n),G.addOnDisposeCallback(function(){return void clearTimeout(c)}),M.return();
G.d4=e}p.logError(G.t5?13:14);G.jDM.reject(G.d4);return M.return();case 6:G.state=8,G.xrc=0,(W=G.t5)==null||W.dispose(),G.t5=H,G.jDM.resolve(),_.K0(M)}})},RRG=function(G,H,Z,Q){var p=W2R(H,2)*1E3;
if(p<=0)throw new sx(31,"TTM:Invalid");if(_.nY(H,4))return new hR4(G.ky,_.nY(H,4),p);if(!W2R(H,3))return new wUN(G.ky,SRw(_.SD(H,1)),p);if(!Q)throw new sx(4,"PMD:Undefined");Q=Q(SRw(_.SD(H,1)));if(!(Q instanceof Function))throw new sx(16,"APF:Failed");G.rhI=Math.floor((Date.now()+p)/1E3);G=new rpw(G.ky,Q,W2R(H,3),p);G.addOnDisposeCallback(function(){return void Z.resolve()});
return G};
i5.prototype.jD=function(G){return N72(this,Object.assign({},G),!1)};
i5.prototype.fpu=function(G){return N72(this,Object.assign({},G),!0)};
i5.prototype.nmI=function(G){if(G>150)return!1;try{return this.cache=new T7x(G,this.ky),!0}catch(H){return this.reportError(new sx(22,"GBJ:init",H)),!1}};
i5.prototype.reportError=function(G){this.ky.logError(G.code);this.onError(G);return G};
var Ap4=function(G,H){H=H instanceof sx?H:new sx(5,"TVD:error",H);return G.reportError(H)},N72=function(G,H,Z){try{if(G.isDisposed())throw new sx(21,"BNT:disposed");
if(!G.t5&&G.d4)throw G.d4;var Q,p;return(p=(Q=xYx(G,H,Z))!=null?Q:LKp(G,H,Z))!=null?p:EMN(G,H,Z)}catch(l){if(!H.rtB)throw Ap4(G,l);return YdR(G,Z,l)}},xYx=function(G,H,Z){var Q;
return(Q=G.t5)==null?void 0:P0w(Q,function(){return FKt(G,H)},Z,function(p){var l;
if(G.t5 instanceof rpw&&((l=H.aR)==null?0:l.xMn))try{var q;(q=G.cache)==null||fkR(q,FKt(G,H),p,H.aR.dd3,G.rhI-120)}catch(u){G.reportError(new sx(24,"ELX:write",u))}})},LKp=function(G,H,Z){var Q;
if((Q=H.aR)!=null&&Q.oDT)try{var p,l=(p=G.cache)==null?void 0:vM2(p,FKt(G,H),H.aR.dd3);return l?Z?_.PQ(G.ky,function(){return _.Cm(l,2)},"a"):l:void 0}catch(q){G.reportError(new sx(23,"RXO:read",q))}},EMN=function(G,H,Z){var Q={stack:[],
error:void 0,hasError:!1};try{if(!H.nAX)throw new sx(29,"SDF:notready");return P0w(Bfw(Q,new O$7(G.ky,0,G.state)),function(){return FKt(G,H)},Z)}catch(p){Q.error=p,Q.hasError=!0}finally{JMw(Q)}},YdR=function(G,H,Z){var Q={stack:[],
error:void 0,hasError:!1};try{var p=Ap4(G,Z);return P0w(Bfw(Q,new C0a(G.ky,p)),function(){return[]},H)}catch(l){Q.error=l,Q.hasError=!0}finally{JMw(Q)}},FKt=function(G,H){return H.hvQ?H.hvQ:H.ko?_.PQ(G.ky,function(){return H.hvQ=i$v(H.ko)},"c"):[]},ypx=function(G){return Cw(function(H){if(!ts(H))return!1;
for(var Z=_.I(Object.entries(G)),Q=Z.next();!Q.done;Q=Z.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;if(!(Q in H)){if(p.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!p(H[Q]))return!1}return!0})}({vm:function(G){return Cw(function(H){return H instanceof G})}(wl)},"");var b$t=function(){var G=_.F8();this.JSC$9923_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",DS("cookie_enabled"),DS("cookie_3p_enabled"),_.e_("browser"))};
b$t.prototype.increment=function(G,H,Z){this.JSC$9923_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",G,H,Z)};
var pRW=function(){var G=_.F8();this.JSC$9947_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",dI("tick"),DS("from_st_cookie"))};
pRW.prototype.increment=function(G,H){this.JSC$9947_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",G,H)};
var GBx=function(){var G=_.F8();this.JSC$9953_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.e_("status"))};
GBx.prototype.increment=function(G){this.JSC$9953_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",G)};
var Hgd=function(){var G=_.F8();this.JSC$9956_streamzService=G;G.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.e_("stage"),DS("is_using_ytd_player"),DS("has_expandable_tiles"))};
Hgd.prototype.increment=function(G,H,Z){this.JSC$9956_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",G,H,Z)};
var s1G=function(){var G=_.F8();this.JSC$9959_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/response_signature",_.e_("check_status"))};
s1G.prototype.increment=function(G){this.JSC$9959_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/response_signature",G)};
var ZgN=function(){var G=_.F8();this.JSC$9962_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.e_("sig"),dI("de"))};
ZgN.prototype.increment=function(G,H){this.JSC$9962_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/e_sig_log",G,H)};
var Q1R=function(){var G=_.F8();this.JSC$9965_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.e_("sig"),dI("de"))};
Q1R.prototype.increment=function(G,H){this.JSC$9965_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/e_sig_en",G,H)};
_.pP4=function(){var G=_.F8();this.JSC$9968_streamzService=G;G.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.e_("action"))};
_.pP4.prototype.increment=function(G){this.JSC$9968_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/web/enforcement_intent",G)};var Ox=window;var la2=(new Date).getTime();_.oN.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.oN.createSet("action","cite","data","formaction","href","manifest","poster","src");var gNG=function(G){this.servicePromise_=G;G.then((0,_.Cu)(function(){},this),function(){},this)},Iaw=function(G,H,Z){G.servicePromise_.then(function(Q){var p=Q[H];
if(!p)throw Error("Ka`"+H);return p.apply(Q,Z)})},uqw=function(G,H,Z){for(var Q=Array(arguments.length-2),p=2;p<arguments.length;p++)Q[p-2]=arguments[p];
p=qia(G,H).then(function(l){return l.apply(null,Q)},function(l){l=Error("La`"+H+"`"+G+"`"+l,{cause:l});
delete Sia[H];return _.DJ(l)});
return new gNG(p)},Sia={},qia=function(G,H){var Z=Sia[H];
if(Z)return Z;Z=(Z=_.GF(H))?_.Yk(Z):(new _.T_(function(Q,p){var l=(new XC(document)).createElement("SCRIPT");l.async=!0;_.gJ(l,_.j7(lwd(G)));l.onload=l.onreadystatechange=function(){l.readyState&&l.readyState!="loaded"&&l.readyState!="complete"||Q()};
l.onerror=function(q){p(Error("Ma`"+H+"`"+G,{cause:q}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(l)})).then(function(){var Q=_.GF(H);
if(!Q)throw Error("Na`"+H+"`"+G);return Q});
return Sia[H]=Z};var Bt7={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},td4=function(){var G=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=O$X(function(){return _.S(function(H){if(H.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?H.return(Promise.resolve()):H.yield(J3_(G),2);G.rsaForList.length>
0&&document.addEventListener("click",G.requestAccessForHelpPanel);_.K0(H)})});
this.requestAccessForHelpPanel=function(){if(!(G.rsaForPromises.length>0)){for(var H=_.I(G.rsaForList),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;try{G.rsaForPromises.push(document.requestStorageAccessFor(Z))}catch(Q){}}Promise.all(G.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){G.reset()})}}};
td4.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var J3_=function(G){var H,Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:H=_.I(Object.values(Bt7)),Z=H.next();case 2:if(Z.done){l.jumpTo(0);break}Q=Z.value;_.XV(l,5);return l.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:Q}),7);case 7:p=l.yieldResult;p.state!=="granted"&&G.rsaForList.push(Q);_.Za(l,3);break;case 5:_.Wg(l);l.jumpTo(0);break;case 3:Z=H.next(),l.jumpTo(2)}})};(new td4).initialize();var kBa=function(G){this.JSC$9982_loader_=G};
kBa.prototype.startHelp=function(G){Iaw(this.JSC$9982_loader_,"startHelp",arguments)};
kBa.prototype.JSC$9984_loadChatSupport=function(G){Iaw(this.JSC$9982_loader_,"loadChatSupport",arguments)};
var dhd=function(G,H){H=H||{};G=uqw(Dha,"help.service.Lazy.create",G,{apiKey:H.apiKey||H.apiKey,asxUiUri:H.asxUiUri||H.asxUiUri,environment:H.environment||H.environment,flow:H.flow||H.flow,frdProductData:H.frdProductData||H.frdProductData,frdProductDataSerializedJspb:H.frdProductDataSerializedJspb||H.frdProductDataSerializedJspb,helpCenterPath:H.helpCenterPath||H.helpCenterPath,locale:H.locale||H.locale||"en-US".replace(/-/g,"_"),nonce:H.nonce||H.nonce,productData:H.productData||H.productData,receiverUri:H.receiverUri||
H.receiverUri,renderApiUri:H.renderApiUri||H.renderApiUri,theme:H.theme||H.theme,window:H.window||H.window});return new kBa(G)},Dha=new AL(Rhj,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var eIw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(eIw,_.Iy);var nNw=_.cO(eIw);var Vdw=[0,_.oE,hg,DaG];_.$ha=new function(G,H,Z,Q){this.configType=G;this.flagName=Z;this.defaultValue=Q;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 c3a=function(){this.retriever=_.tp().resolve(XP_)};_.a9={get payments(){return window.payments}};ypo(Node);ypo(Element);var Tt_=ypo(HTMLElement);ypo(SVGElement);var fa_,vNw,ov,WIN;fa_=function(G){return typeof G.className=="string"?G.className:G.getAttribute&&G.getAttribute("class")||""};
vNw=function(G){return G.classList?G.classList:fa_(G).match(/\S+/g)||[]};
_.av=function(G,H){typeof G.className=="string"?G.className=H:G.setAttribute&&G.setAttribute("class",H)};
_.yX=function(G,H){return G.classList?G.classList.contains(H):_.yf(vNw(G),H)};
_.O6=function(G,H){if(G.classList)G.classList.add(H);else if(!_.yX(G,H)){var Z=fa_(G);_.av(G,Z+(Z.length>0?" "+H:H))}};
ov=function(G,H){if(G.classList)Array.prototype.forEach.call(H,function(p){_.O6(G,p)});
else{var Z={};Array.prototype.forEach.call(vNw(G),function(p){Z[p]=!0});
Array.prototype.forEach.call(H,function(p){Z[p]=!0});
H="";for(var Q in Z)H+=H.length>0?" "+Q:Q;_.av(G,H)}};
_.CX=function(G,H){G.classList?G.classList.remove(H):_.yX(G,H)&&_.av(G,Array.prototype.filter.call(vNw(G),function(Z){return Z!=H}).join(" "))};
WIN=function(G,H){G.classList?Array.prototype.forEach.call(H,function(Z){_.CX(G,Z)}):_.av(G,Array.prototype.filter.call(vNw(G),function(Z){return!_.yf(H,Z)}).join(" "))};var zI7=function(G){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=G.document},j1_=function(G,H){KIT(G);
var Z=document.createElement("div"),Q;(Q=H.parentNode)==null||Q.insertBefore(Z,H);Z.tabIndex=0;Z.id="fc-focus-trap-pre-div";Z=document.createElement("div");var p;(p=H.parentNode)==null||p.insertBefore(Z,H.nextSibling);Z.tabIndex=0;Z.id="fc-focus-trap-post-div";var l=Md4(G,H),q=Md4(G,H,!0);l&&q&&(G.focusChangeHandler=function(){var u=G.document.activeElement;if(u)if(_.FG(H,u))G.previouslyFocusedElement=u;else if(u===G.document.activeElement)switch(G.previouslyFocusedElement){case l:q.focus();G.previouslyFocusedElement=
q;break;default:l.focus(),G.previouslyFocusedElement=l}},G.document.addEventListener("focus",G.focusChangeHandler,!0),G.document.addEventListener("focusin",G.focusChangeHandler))},KIT=function(G){G.focusChangeHandler&&(document.removeEventListener("focus",G.focusChangeHandler,!0),document.removeEventListener("focusin",G.focusChangeHandler),G.focusChangeHandler=null);
var H;(H=document.getElementById("fc-focus-trap-pre-div"))==null||H.remove();var Z;(Z=document.getElementById("fc-focus-trap-post-div"))==null||Z.remove()},P7R=function(G,H,Z,Q,p){Z=Z===void 0?!0:Z;
var l;p=(l=p===void 0?null:p)!=null?l:Md4(G,H,Q===void 0?!1:Q);p!==null&&(p.focus(),Z&&j1_(G,H))};
zI7.prototype.disableButton=function(G,H){H=H===void 0?null:H;G.disabled=!0;H&&_.O6(G,H)};
var Md4=function(G,H,Z){Z=Z===void 0?!1:Z;if(q6e(H)&&!Z)return H;var Q=Z?[].slice.call(H.children,0).reverse():H.children;Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next())if(p=p.value,Tt_(p)&&(p=Md4(G,p,Z)))return p;return q6e(H)&&Z?H:null};var r3d=function(G){this.originalBodyOverflow="";this.JSC$10009_domHelper=r3(G);var H;this.isScrollingEnabled=((H=this.JSC$10009_domHelper.JSC$9335_document_.body)==null?void 0:H.style.overflow)!=="hidden"};
r3d.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10009_domHelper.JSC$9335_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.AB(_.iY,_.wI);_.g=_.iY.prototype;_.g.JSC$10012_id_=0;_.g.disposeInternal=function(){_.iY.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10010_listener_;delete this.handler_};
_.g.start=function(G){this.stop();this.JSC$10012_id_=vQ(this.callback_,G!==void 0?G:this.JSC$10010_interval_)};
_.g.stop=function(){this.isActive()&&_.Qf.clearTimeout(this.JSC$10012_id_);this.JSC$10012_id_=0};
_.g.fire=function(){this.stop();this.JSC$10012_doAction_()};
_.g.isActive=function(){return this.JSC$10012_id_!=0};
_.g.JSC$10012_doAction_=function(){this.JSC$10012_id_=0;this.JSC$10010_listener_&&this.JSC$10010_listener_.call(this.handler_)};_.en=function(G){_.wI.call(this);this.handler_=G;this.JSC$10013_keys_={}};
_.AB(_.en,_.wI);var wPT=[];_.en.prototype.listen=function(G,H,Z,Q){Array.isArray(H)||(H&&(wPT[0]=H.toString()),H=wPT);for(var p=0;p<H.length;p++){var l=_.tt(G,H[p],Z||this.handleEvent,Q||!1,this.handler_||this);if(!l)break;this.JSC$10013_keys_[l.key]=l}return this};
_.en.prototype.listenOnce=function(G,H,Z,Q){return hIa(this,G,H,Z,Q)};
var hIa=function(G,H,Z,Q,p,l){if(Array.isArray(Z))for(var q=0;q<Z.length;q++)hIa(G,H,Z[q],Q,p,l);else{H=Sk(H,Z,Q||G.handleEvent,p,l||G.handler_||G);if(!H)return G;G.JSC$10013_keys_[H.key]=H}return G};
_.en.prototype.unlisten=function(G,H,Z,Q,p){if(Array.isArray(H))for(var l=0;l<H.length;l++)this.unlisten(G,H[l],Z,Q,p);else if(G=ptw(G,H,Z||this.handleEvent,_.AM(Q)?!!Q.capture:!!Q,p||this.handler_||this))ub(G),delete this.JSC$10013_keys_[G.key];return this};
_.en.prototype.removeAll=function(){_.oN.forEach(this.JSC$10013_keys_,function(G,H){this.JSC$10013_keys_.hasOwnProperty(H)&&ub(G)},this);
this.JSC$10013_keys_={}};
_.en.prototype.disposeInternal=function(){_.en.superClass_.disposeInternal.call(this);this.removeAll()};
_.en.prototype.handleEvent=function(){throw Error("Oa");};var Ux=function(){_.wI.call(this);this.services_={}};
_.AB(Ux,_.wI);Ux.prototype.connect=function(G){G&&G()};
Ux.prototype.isConnected=function(){return!0};
Ux.prototype.registerService=function(G,H,Z){this.services_[G]={callback:H,objectPayload:!!Z}};
Ux.prototype.getService=function(G,H){var Z=this.services_[G];return Z?Z:this.defaultService_?{callback:_.po(this.defaultService_,G),objectPayload:_.AM(H)}:null};
var C7N=function(G,H){if(H&&typeof G==="string")try{return JSON.parse(G)}catch(Z){return null}else if(!H&&typeof G!=="string")return(0,_.zw)(G);return G};
Ux.prototype.disposeInternal=function(){Ux.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 Rv=function(G,H){this.sequence_=[];this.onCancelFunction_=G;this.defaultScope_=H||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};
Rv.prototype.cancel=function(G){if(this.fired_)this.result_ instanceof Rv&&this.result_.cancel();else{if(this.parent_){var H=this.parent_;delete this.parent_;G?H.cancel(G):(H.branches_--,H.branches_<=0&&H.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Nn(this))}};
Rv.prototype.continue_=function(G,H){this.blocked_=!1;igw(this,G,H)};
var igw=function(G,H,Z){G.fired_=!0;G.result_=Z;G.hadError_=!H;Ogw(G)},y3G=function(G){if(G.fired_){if(!G.silentlyCanceled_)throw new aaa(G);
G.silentlyCanceled_=!1}};
Rv.prototype.callback=function(G){y3G(this);igw(this,!0,G)};
Rv.prototype.errback=function(G){y3G(this);igw(this,!1,G)};
var oN7=function(G,H,Z){Ar(G,H,null,Z)};
Rv.prototype.finally=function(G){var H=this;return mhR(new Promise(function(Z,Q){Ar(H,function(p){G();Z(p)},function(p){G();
Q(p)})}))};
var Ar=function(G,H,Z,Q){var p=G.fired_;p||(H===Z?H=Z=XQ(H):(H=XQ(H),Z=XQ(Z)));G.sequence_.push([H,Z,Q]);p&&Ogw(G)};
Rv.prototype.then=function(G,H,Z){var Q,p,l=new _.T_(function(q,u){p=q;Q=u});
Ar(this,p,function(q){q instanceof Nn?l.cancel():Q(q);return Uh4},this);
return l.then(G,H,Z)};
JeT(Rv);var RIN=function(G,H){H instanceof Rv?oN7(G,(0,_.Cu)(H.branch,H)):oN7(G,function(){return H})};
Rv.prototype.branch=function(G){var H=new Rv;Ar(this,H.callback,H.errback,H);G&&(H.parent_=this,this.branches_++);return H};
Rv.prototype.isError=function(G){return G instanceof Error};
var NtN=function(G){return QR(G.sequence_,function(H){return typeof H[1]==="function"})},Uh4={},Ogw=function(G){if(G.unhandledErrorId_&&G.fired_&&NtN(G)){var H=G.unhandledErrorId_,Z=A34[H];
Z&&(_.Qf.clearTimeout(Z.JSC$10030_id_),delete A34[H]);G.unhandledErrorId_=0}G.parent_&&(G.parent_.branches_--,delete G.parent_);H=G.result_;for(var Q=Z=!1;G.sequence_.length&&!G.blocked_;){var p=G.sequence_.shift(),l=p[0],q=p[1];p=p[2];if(l=G.hadError_?q:l)try{var u=l.call(p||G.defaultScope_,H);u===Uh4&&(u=void 0);u!==void 0&&(G.hadError_=G.hadError_&&(u==H||G.isError(u)),G.result_=H=u);if(tKN(H)||typeof _.Qf.Promise==="function"&&H instanceof _.Qf.Promise)Q=!0,G.blocked_=!0}catch(B){H=B,G.hadError_=
!0,NtN(G)||(Z=!0)}}G.result_=H;Q&&(u=(0,_.Cu)(G.continue_,G,!0),Q=(0,_.Cu)(G.continue_,G,!1),H instanceof Rv?(Ar(H,u,Q),H.blocking_=!0):H.then(u,Q));Z&&(H=new xhx(H),A34[H.JSC$10030_id_]=H,G.unhandledErrorId_=H.JSC$10030_id_)},mhR=function(G){var H=new Rv;
G.then(function(Z){H.callback(Z)},function(Z){H.errback(Z)});
return H},aaa=function(){_.sj.call(this)};
_.AB(aaa,_.sj);aaa.prototype.message="Deferred has already fired";aaa.prototype.name="AlreadyCalledError";var Nn=function(){_.sj.call(this)};
_.AB(Nn,_.sj);Nn.prototype.message="Deferred was canceled";Nn.prototype.name="CanceledError";var xhx=function(G){this.JSC$10030_id_=_.Qf.setTimeout((0,_.Cu)(this.throwError,this),0);this.JSC$10030_error_=G};
xhx.prototype.throwError=function(){delete A34[this.JSC$10030_id_];throw this.JSC$10030_error_;};
var A34={};var LIt={1:"NativeMessagingTransport"},ENa=["pu","lru","pru","lpu","ppu"],FIT=function(){for(var G=10,H=Yi4,Z=H.length,Q="";G-- >0;)Q+=H.charAt(Math.floor(Math.random()*Z));return Q},Yi4="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var xf=function(G){_.wI.call(this);this.JSC$10033_domHelper_=G||r3()};
_.AB(xf,_.wI);xf.prototype.transportType=0;xf.prototype.getWindow=function(){return this.JSC$10033_domHelper_.getWindow()};
xf.prototype.getName=function(){return LIt[String(this.transportType)]||""};var LK=function(G,H,Z,Q,p){xf.call(this,Z);this.JSC$10036_channel_=G;this.protocolVersion_=p||2;this.peerHostname_=H||"*";this.JSC$10036_eventHandler_=new _.en(this);this.maybeAttemptToConnectTimer_=new _.dg(100,this.getWindow());this.oneSidedHandshake_=!!Q;this.setupAckReceived_=new Rv;this.setupAckSent_=new Rv;this.JSC$10036_connected_=new Rv;this.endpointId_=FIT();this.peerEndpointId_=null;this.oneSidedHandshake_?bg7(this.JSC$10036_channel_)==1?RIN(this.JSC$10036_connected_,this.setupAckReceived_):
RIN(this.JSC$10036_connected_,this.setupAckSent_):(RIN(this.JSC$10036_connected_,this.setupAckReceived_),this.protocolVersion_==2&&RIN(this.JSC$10036_connected_,this.setupAckSent_));oN7(this.JSC$10036_connected_,this.notifyConnected_,this);this.JSC$10036_connected_.callback(!0);this.JSC$10036_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.AB(LK,xf);LK.prototype.peerProtocolVersion_=null;LK.prototype.initialized_=!1;LK.prototype.transportType=1;var G_G={};LK.prototype.sendTimerId_=0;
var ZTp=function(G){var H=G.event_.data;if(typeof H!=="string")return!1;var Z=H.indexOf("|"),Q=H.indexOf(":");if(Z==-1||Q==-1)return!1;var p=H.substring(0,Z);Z=H.substring(Z+1,Q);H=H.substring(Q+1);if(Q=Ex[p])return Q.xpcDeliver(Z,H,G.event_.origin),!0;Q=HTd(H)[0];for(var l in Ex){var q=Ex[l];if(bg7(q)==1&&!q.isConnected()&&Z=="tp"&&(Q=="SETUP"||Q=="SETUP_NTPV2")&&spp(q,G.event_.origin))return delete Ex[q.name],q.name=p,Ex[p]=q,q.xpcDeliver(Z,H),!0}return!1},Qpp=function(G){G.protocolVersion_!=2||
G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||G.send("tp","SETUP_NTPV2,"+G.endpointId_);
G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||G.send("tp","SETUP")},pWN=function(G,H){if(G.protocolVersion_!=2||G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=2||H!=2){if(G.peerProtocolVersion_!=null&&G.peerProtocolVersion_!=1||H!=1)return;
G.send("tp","SETUP_ACK")}else G.send("tp","SETUP_ACK_NTPV2");G.setupAckSent_.fired_||G.setupAckSent_.callback(!0)},lvR=function(G,H){H>G.peerProtocolVersion_&&(G.peerProtocolVersion_=H);
G.peerProtocolVersion_==1&&(G.setupAckSent_.fired_||G.oneSidedHandshake_||G.setupAckSent_.callback(!0),G.peerEndpointId_=null)};
_.g=LK.prototype;_.g.connect=function(){var G=this.getWindow(),H=_.LW(G),Z=G_G[H];typeof Z!=="number"&&(Z=0);Z==0&&_.tt(G.postMessage?G:G.document,"message",ZTp,!1,LK);G_G[H]=Z+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.g.maybeAttemptToConnect_=function(){var G=bg7(this.JSC$10036_channel_)==0;this.oneSidedHandshake_&&G||this.JSC$10036_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Qpp(this))};
_.g.send=function(G,H){var Z=this.JSC$10036_channel_.peerWindowObject_;Z&&(this.send=function(Q,p){var l=this,q=this.JSC$10036_channel_.name;this.sendTimerId_=vQ(function(){l.sendTimerId_=0;try{var u=Z.postMessage?Z:Z.document;u.postMessage&&u.postMessage(q+"|"+Q+":"+p,l.peerHostname_)}catch(B){}},0)},this.send(G,H))};
_.g.notifyConnected_=function(){var G=this.JSC$10036_channel_,H=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;G.isConnected()||G.connectionDelay_&&G.connectionDelay_.isActive()||(G.state_=2,_.S_(G.connectionDelay_),H!==void 0?(G.connectionDelay_=new _.iY(G.connectCb_,H),G.connectionDelay_.start()):(G.connectionDelay_=null,G.connectCb_()))};
_.g.disposeInternal=function(){if(this.initialized_){var G=this.getWindow(),H=_.LW(G),Z=G_G[H];G_G[H]=Z-1;Z==1&&_.VX(G.postMessage?G:G.document,"message",ZTp,!1,LK)}this.sendTimerId_&&(_.Qf.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.S_(this.JSC$10036_eventHandler_);delete this.JSC$10036_eventHandler_;_.S_(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10036_connected_.cancel();delete this.JSC$10036_connected_;delete this.send;LK.superClass_.disposeInternal.call(this)};
var HTd=function(G){G=G.split(",");G[1]=G[1]||null;return G};var Iva;_.Yf=function(G){if(G.getValues&&typeof G.getValues=="function")return G.getValues();if(typeof Map!=="undefined"&&G instanceof Map||typeof Set!=="undefined"&&G instanceof Set)return Array.from(G.values());if(typeof G==="string")return G.split("");if(_.Uj(G)){for(var H=[],Z=G.length,Q=0;Q<Z;Q++)H.push(G[Q]);return H}return _.oN.getValues(G)};
_.gJT=function(G){if(G.getKeys&&typeof G.getKeys=="function")return G.getKeys();if(!G.getValues||typeof G.getValues!="function"){if(typeof Map!=="undefined"&&G instanceof Map)return Array.from(G.keys());if(!(typeof Set!=="undefined"&&G instanceof Set)){if(_.Uj(G)||typeof G==="string"){var H=[];G=G.length;for(var Z=0;Z<G;Z++)H.push(Z);return H}return _.oN.getKeys(G)}}};
Iva=function(G,H,Z){if(G.forEach&&typeof G.forEach=="function")G.forEach(H,Z);else if(_.Uj(G)||typeof G==="string")Array.prototype.forEach.call(G,H,Z);else for(var Q=_.gJT(G),p=_.Yf(G),l=p.length,q=0;q<l;q++)H.call(Z,p[q],Q&&Q[q],G)};var tYM,QI,ln,k__,qNd,uNx,SNa,tyw,BMd;
_.C9=function(G,H){this.JSC$10041_domain_=this.userInfo_=this.scheme_="";this.JSC$10041_port_=null;this.fragment_=this.JSC$10041_path_="";this.JSC$10041_ignoreCase_=!1;var Z;G instanceof _.C9?(this.JSC$10041_ignoreCase_=H!==void 0?H:G.JSC$10041_ignoreCase_,_.FQ(this,G.scheme_),this.userInfo_=G.userInfo_,_.b5(this,G.JSC$10041_domain_),_.Gj(this,G.JSC$10041_port_),_.Hy(this,G.getPath()),_.sa(this,G.JSC$10041_queryData_.clone()),_.Z$(this,G.fragment_)):G&&(Z=_.IJ(String(G)))?(this.JSC$10041_ignoreCase_=
!!H,_.FQ(this,Z[1]||"",!0),this.userInfo_=QI(Z[2]||""),_.b5(this,Z[3]||"",!0),_.Gj(this,Z[4]),_.Hy(this,Z[5]||"",!0),_.sa(this,Z[6]||"",!0),_.Z$(this,Z[7]||"",!0)):(this.JSC$10041_ignoreCase_=!!H,this.JSC$10041_queryData_=new _.pp(null,this.JSC$10041_ignoreCase_))};
_.C9.prototype.toString=function(){var G=[],H=this.scheme_;H&&G.push(ln(H,qNd,!0),":");var Z=this.JSC$10041_domain_;if(Z||H=="file")G.push("//"),(H=this.userInfo_)&&G.push(ln(H,qNd,!0),"@"),G.push(_.sd(Z).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Z=this.JSC$10041_port_,Z!=null&&G.push(":",String(Z));if(Z=this.getPath())this.JSC$10041_domain_&&Z.charAt(0)!="/"&&G.push("/"),G.push(ln(Z,Z.charAt(0)=="/"?SNa:uNx,!0));(Z=this.JSC$10041_queryData_.toString())&&G.push("?",Z);(Z=this.fragment_)&&G.push("#",
ln(Z,BMd));return G.join("")};
_.C9.prototype.resolve=function(G){var H=this.clone(),Z=!!G.scheme_;Z?_.FQ(H,G.scheme_):Z=!!G.userInfo_;Z?H.userInfo_=G.userInfo_:Z=!!G.JSC$10041_domain_;Z?_.b5(H,G.JSC$10041_domain_):Z=G.JSC$10041_port_!=null;var Q=G.getPath();if(Z)_.Gj(H,G.JSC$10041_port_);else if(Z=!!G.JSC$10041_path_){if(Q.charAt(0)!="/")if(this.JSC$10041_domain_&&!this.JSC$10041_path_)Q="/"+Q;else{var p=H.getPath().lastIndexOf("/");p!=-1&&(Q=H.getPath().slice(0,p+1)+Q)}p=Q;if(p==".."||p==".")Q="";else if(_.JM(p,"./")||_.JM(p,
"/.")){Q=_.le(p,"/");p=p.split("/");for(var l=[],q=0;q<p.length;){var u=p[q++];u=="."?Q&&q==p.length&&l.push(""):u==".."?((l.length>1||l.length==1&&l[0]!="")&&l.pop(),Q&&q==p.length&&l.push("")):(l.push(u),Q=!0)}Q=l.join("/")}else Q=p}Z?_.Hy(H,Q):Z=G.JSC$10041_queryData_.toString()!=="";Z?_.sa(H,G.JSC$10041_queryData_.clone()):Z=!!G.fragment_;Z&&_.Z$(H,G.fragment_);return H};
_.C9.prototype.clone=function(){return new _.C9(this)};
_.FQ=function(G,H,Z){G.scheme_=Z?QI(H,!0):H;G.scheme_&&(G.scheme_=G.scheme_.replace(/:$/,""));return G};
_.b5=function(G,H,Z){G.JSC$10041_domain_=Z?QI(H,!0):H;return G};
_.Gj=function(G,H){if(H){H=Number(H);if(isNaN(H)||H<0)throw Error("Pa`"+H);G.JSC$10041_port_=H}else G.JSC$10041_port_=null;return G};
_.C9.prototype.getPath=function(){return this.JSC$10041_path_};
_.Hy=function(G,H,Z){G.JSC$10041_path_=Z?QI(H,!0):H;return G};
_.sa=function(G,H,Z){H instanceof _.pp?(G.JSC$10041_queryData_=H,JLR(G.JSC$10041_queryData_,G.JSC$10041_ignoreCase_)):(Z||(H=ln(H,tyw)),G.JSC$10041_queryData_=new _.pp(H,G.JSC$10041_ignoreCase_));return G};
_.Z0=function(G,H,Z){G.JSC$10041_queryData_.set(H,Z);return G};
_.sv=function(G,H){return G.JSC$10041_queryData_.get(H)};
_.Z$=function(G,H,Z){G.fragment_=Z?QI(H):H;return G};
_.gs=function(G){_.Z0(G,"zx",Gy());return G};
_.HS=function(G,H){return G instanceof _.C9?G.clone():new _.C9(G,H)};
tYM=function(G,H){G instanceof _.C9||(G=_.HS(G));H instanceof _.C9||(H=_.HS(H));return G.resolve(H)};
QI=function(G,H){return G?H?decodeURI(G.replace(/%25/g,"%2525")):decodeURIComponent(G):""};
ln=function(G,H,Z){return typeof G==="string"?(G=encodeURI(G).replace(H,k__),Z&&(G=G.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G):null};
k__=function(G){G=G.charCodeAt(0);return"%"+(G>>4&15).toString(16)+(G&15).toString(16)};
qNd=/[#\/\?@]/g;uNx=/[#\?:]/g;SNa=/[#\?]/g;tyw=/[#\?@]/g;BMd=/#/g;_.pp=function(G,H){this.count_=this.keyMap_=null;this.encodedQuery_=G||null;this.JSC$10042_ignoreCase_=!!H};
_.IQ=function(G){G.keyMap_||(G.keyMap_=new Map,G.count_=0,G.encodedQuery_&&Zuw(G.encodedQuery_,function(H,Z){G.add(BU(H),Z)}))};
_.g=_.pp.prototype;_.g.getCount=function(){_.IQ(this);return this.count_};
_.g.add=function(G,H){_.IQ(this);this.encodedQuery_=null;G=qQ(this,G);var Z=this.keyMap_.get(G);Z||this.keyMap_.set(G,Z=[]);Z.push(H);this.count_+=1;return this};
_.g.remove=function(G){_.IQ(this);G=qQ(this,G);return this.keyMap_.has(G)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(G).length,this.keyMap_.delete(G)):!1};
_.g.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.g.isEmpty=function(){_.IQ(this);return this.count_==0};
_.g.containsKey=function(G){_.IQ(this);G=qQ(this,G);return this.keyMap_.has(G)};
_.g.containsValue=function(G){var H=this.getValues();return _.yf(H,G)};
_.g.forEach=function(G,H){_.IQ(this);this.keyMap_.forEach(function(Z,Q){Z.forEach(function(p){G.call(H,p,Q,this)},this)},this)};
_.g.getKeys=function(){_.IQ(this);for(var G=Array.from(this.keyMap_.values()),H=Array.from(this.keyMap_.keys()),Z=[],Q=0;Q<H.length;Q++)for(var p=G[Q],l=0;l<p.length;l++)Z.push(H[Q]);return Z};
_.g.getValues=function(G){_.IQ(this);var H=[];if(typeof G==="string")this.containsKey(G)&&(H=H.concat(this.keyMap_.get(qQ(this,G))));else{G=Array.from(this.keyMap_.values());for(var Z=0;Z<G.length;Z++)H=H.concat(G[Z])}return H};
_.g.set=function(G,H){_.IQ(this);this.encodedQuery_=null;G=qQ(this,G);this.containsKey(G)&&(this.count_-=this.keyMap_.get(G).length);this.keyMap_.set(G,[H]);this.count_+=1;return this};
_.g.get=function(G,H){if(!G)return H;G=this.getValues(G);return G.length>0?String(G[0]):H};
_.D1w=function(G,H,Z){G.remove(H);Z.length>0&&(G.encodedQuery_=null,G.keyMap_.set(qQ(G,H),_.mv(Z)),G.count_+=Z.length)};
_.pp.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var G=[],H=Array.from(this.keyMap_.keys()),Z=0;Z<H.length;Z++){var Q=H[Z],p=_.sd(Q);Q=this.getValues(Q);for(var l=0;l<Q.length;l++){var q=p;Q[l]!==""&&(q+="="+_.sd(Q[l]));G.push(q)}}return this.encodedQuery_=G.join("&")};
_.pp.prototype.clone=function(){var G=new _.pp;G.encodedQuery_=this.encodedQuery_;this.keyMap_&&(G.keyMap_=new Map(this.keyMap_),G.count_=this.count_);return G};
var qQ=function(G,H){H=String(H);G.JSC$10042_ignoreCase_&&(H=H.toLowerCase());return H},JLR=function(G,H){H&&!G.JSC$10042_ignoreCase_&&(_.IQ(G),G.encodedQuery_=null,G.keyMap_.forEach(function(Z,Q){var p=Q.toLowerCase();
Q!=p&&(this.remove(Q),_.D1w(this,p,Z))},G));
G.JSC$10042_ignoreCase_=H};
_.pp.prototype.extend=function(G){for(var H=0;H<arguments.length;H++)Iva(arguments[H],function(Z,Q){this.add(Q,Z)},this)};var Sb=function(G,H){Ux.call(this);for(var Z=0,Q;Q=ENa[Z];Z++)if(Q in G&&!/^https?:\/\//.test(G[Q]))throw Error("Ra`"+G[Q]+"`"+Q);this.cfg_=G;this.name=this.cfg_.cn||FIT();this.JSC$10037_domHelper_=H||r3();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.en(this);G.lpu=G.lpu||Hux(this.JSC$10037_domHelper_.getWindow().location.href)+"/robots.txt";G.ppu=G.ppu||Hux(G.pu||"")+"/robots.txt";Ex[this.name]=this;ptw(window,"unload",d1w)||Sk(window,"unload",d1w)};
_.AB(Sb,Ux);var el4=RegExp("^%*tp$"),nJ_=RegExp("^%+tp$");_.g=Sb.prototype;_.g.connectionDelay_=null;_.g.peerWindowDeferred_=null;_.g.transport_=null;_.g.state_=1;_.g.isConnected=function(){return this.state_==2};
_.g.peerWindowObject_=null;_.g.iframeElement_=null;_.g.getConfig=function(){return this.cfg_};
_.g.connect=function(G){this.connectCb_=G||_.dP;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?oN7(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.g.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10037_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var G=this.iframeElement_.contentWindow;G||(G=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=G}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$10037_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new LK(this,this.cfg_.ph,this.JSC$10037_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()()};
_.g.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.S_(this.transport_);this.connectCb_=this.transport_=null;_.S_(this.connectionDelay_);this.connectionDelay_=null};
_.g.send=function(G,H){if(this.isConnected()){try{var Z=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(p){Z=!1}if(Z){_.AM(H)&&(H=(0,_.zw)(H));Z=this.transport_;var Q=Z.send;el4.test(G)&&(G="%"+G);G=G.replace(/[%:|]/g,encodeURIComponent);Q.call(Z,G,H)}else this.close()}};
_.g.xpcDeliver=function(G,H,Z){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Cu)(this.xpcDeliver,this,G,H,Z));else if(spp(this,Z)&&!this.isDisposed()&&this.state_!=3)if(G&&G!="tp")this.isConnected()&&(G=G.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),G=nJ_.test(G)?G.substring(1):G,G=this.getService(G,H))&&(H=C7N(H,G.objectPayload),H!=null&&G.callback(H));else switch(G=this.transport_,Z=HTd(H),H=Z[1],Z[0]){case "SETUP_ACK":lvR(G,1);G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":G.protocolVersion_==2&&(lvR(G,2),G.setupAckReceived_.fired_||G.setupAckReceived_.callback(!0));break;case "SETUP":lvR(G,1);pWN(G,1);break;case "SETUP_NTPV2":G.protocolVersion_==2&&(Z=G.peerProtocolVersion_,lvR(G,2),pWN(G,2),Z!=1&&G.peerEndpointId_==null||G.peerEndpointId_==H||Qpp(G),G.peerEndpointId_=H)}};
var bg7=function(G){var H=G.cfg_.role;return typeof H==="number"?H:window.parent==G.peerWindowObject_?1:0},spp=function(G,H){var Z=G.cfg_.ph;
return _.ue(H==null?"":String(H))||_.ue(Z==null?"":String(Z))||H==G.cfg_.ph};
Sb.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Ex[this.name];_.S_(this.peerLoadHandler_);delete this.peerLoadHandler_;Sb.superClass_.disposeInternal.call(this)};
var d1w=function(){for(var G in Ex)_.S_(Ex[G])},Ex={};var $1t=function(G,H){this.win=G;this.allowAdsHttpEndpoint=H;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10051_domHelper=r3(G);this.scrollManager=new r3d(G);this.accessibilityManager=new zI7(G);Vyp(this)},Vyp=function(G){var H=function(){G.allowAdsPopup&&G.allowAdsPopup.style.setProperty("display","none","important");
G.wallElement.style.setProperty("display","","important");KIT(G.accessibilityManager);P7R(G.accessibilityManager,G.wallElement.querySelector(".fc-dialog-container"),!1,!1,G.wallElement.querySelector(".fc-button-whitelist"));G.scrollManager.enableScrolling()};
G.allowAdsPopup=G.JSC$10051_domHelper.JSC$9337_createDom("DIV",{"class":"fc-whitelist-root"});G.allowAdsPopup.style.setProperty("display","none","important");G.JSC$10051_domHelper.appendChild(G.JSC$10051_domHelper.JSC$9335_document_.body,G.allowAdsPopup);var Z=G.JSC$10051_domHelper.JSC$9337_createDom("DIV",{"class":"fc-dialog-overlay"});G.JSC$10051_domHelper.appendChild(G.allowAdsPopup,Z);var Q=G.JSC$10051_domHelper.JSC$9337_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:H});G.JSC$10051_domHelper.appendChild(G.allowAdsPopup,
Q);Z=G.JSC$10051_domHelper.JSC$9337_createDom("IFRAME");Z.className="fc-whitelist-dialog";Z.frameBorder="0";Z.id="fc-whitelist-iframe";Z.tabIndex="0";_.bI(Z,G.allowAdsHttpEndpoint);G.JSC$10051_domHelper.appendChild(Q,Z);Q={};Q.pu=_.PO(G.allowAdsHttpEndpoint).toString();Q.tp=1;Q.cn="fc-whitelist-channel";Q.ifrid=Z.id;Q.osh=!0;G.allowAdsCrossPageChannel=new Sb(Q);G.allowAdsCrossPageChannel.registerService("close",H);G.allowAdsCrossPageChannel.registerService("refresh",function(){G.win.location.reload()});
G.allowAdsCrossPageChannel.registerService("resize",function(p){if(p){var l=G.allowAdsPopup.querySelector(".fc-whitelist-dialog");p.width&&l.style.setProperty("width",p.width,"important");p.height&&l.style.setProperty("height",p.height,"important")}},!0);
G.allowAdsCrossPageChannel.connect()};
$1t.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10051_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var un=window,By=document,XW4=un.location,cL7=function(){},TMt=/\[native code\]/,Jq=function(G,H,Z){return G[H]=G[H]||Z},fv_=function(G){G=G.sort();
for(var H=[],Z=void 0,Q=0;Q<G.length;Q++){var p=G[Q];p!=Z&&H.push(p);Z=p}return H},tq=function(){var G;
if((G=Object.create)&&TMt.test(G))G=G(null);else{G={};for(var H in G)G[H]=void 0}return G},k_=Jq(un,"gapi",{});var D$={};D$=Jq(un,"___jsl",tq());Jq(D$,"I",0);Jq(D$,"hel",10);var vJt=function(){var G=XW4.href;if(D$.dpo)var H=D$.h;else{H=D$.h;var Z=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),Q=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(G=G&&(Z.exec(G)||Q.exec(G)))try{H=decodeURIComponent(G[2])}catch(p){}}return H},WeT=function(G){var H=Jq(D$,"PQ",[]);
D$.PQ=[];var Z=H.length;if(Z===0)G();else for(var Q=0,p=function(){++Q===Z&&G()},l=0;l<Z;l++)H[l](p)},zlG=function(G){return Jq(Jq(D$,"H",tq()),G,tq())};var ds=function(G){this.JSC$10053_obj_=G};
ds.prototype.value=function(){return this.JSC$10053_obj_};
ds.prototype.getWidth=function(){return this.JSC$10053_obj_.width};
ds.prototype.getHeight=function(){return this.JSC$10053_obj_.height};
ds.prototype.getStyle=function(){return this.JSC$10053_obj_.style};var Ket=function(G){this.JSC$10056_obj_=G||{}};
_.g=Ket.prototype;_.g.value=function(){return this.JSC$10056_obj_};
_.g.setUrl=function(G){this.JSC$10056_obj_.url=G;return this};
_.g.getUrl=function(){return this.JSC$10056_obj_.url};
_.g.getStyle=function(){return this.JSC$10056_obj_.style};
_.g.getId=function(){return this.JSC$10056_obj_.id};
_.g.getContext=function(){return this.JSC$10056_obj_.context};
var Mya=function(G){G.JSC$10056_obj_.attributes=G.JSC$10056_obj_.attributes||{};return new ds(G.JSC$10056_obj_.attributes)};var jp_=function(){Ket.apply(this,arguments)};
_.T(jp_,Ket);var PcG=Jq(D$,"perf",tq());Jq(PcG,"g",tq());var rLR=Jq(PcG,"i",tq());Jq(PcG,"r",[]);tq();tq();var hl_=function(G,H,Z){H&&H.length>0&&(H=wW4(H),Z&&Z.length>0&&(H+="___"+wW4(Z)),H.length>28&&(H=H.substr(0,28)+(H.length-28)),Z=H,H=Jq(rLR,"_p",tq()),Jq(H,Z,tq())[G]=(new Date).getTime(),H=PcG.r,typeof H==="function"?H(G,"_p",Z):H.push([G,"_p",Z]))},wW4=function(G){return G.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Cca=tq(),iTa=[],eb=function(G){throw Error("Ua`"+G);};
iTa.push(["jsl",function(G){for(var H in G)if(Object.prototype.hasOwnProperty.call(G,H)){var Z=G[H];typeof Z=="object"?D$[H]=Jq(D$,H,[]).concat(Z):Jq(D$,H,Z)}if(H=G.u)G=Jq(D$,"us",[]),G.push(H),(H=/^https:(.*)$/.exec(H))&&G.push("http:"+H[1])}]);
var OTx=/^(\/[a-zA-Z0-9_\-]+)+$/,avd=[/\/amp\//,/\/amp$/,/^\/amp$/],yLT=/^[a-zA-Z0-9\-_\.,!]+$/,oJp=/^gapi\.loaded_[0-9]+$/,m1p=/^[a-zA-Z0-9,._-]+$/,ALt=function(G,H,Z,Q,p){var l=G.split(";"),q=l.shift(),u=Cca[q],B=null;u?B=u(l,H,Z,Q):eb("no hint processor for: "+q);B||eb("failed to generate load url");H=B;Z=H.match(U17);(Q=H.match(Rl_))&&Q.length===1&&NMp.test(H)&&Z&&Z.length===1||eb("failed sanity: "+G);try{G="?";if(p&&p.length>0){w3X(p);var t=p.join(",");B=B+"?le="+t;G="&"}if(D$.rol){var D=D$.ol;
D&&D.length&&(B=""+B+G+"ol="+D.length)}}catch(d){}return B},EJN=function(G,H,Z,Q){G=x1p(G);
oJp.test(Z)||eb("invalid_callback");H=Lep(H);Q=Q&&Q.length?Lep(Q):null;var p=function(l){return encodeURIComponent(l).replace(/%2C/g,",")};
return[encodeURIComponent(G.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",p(G.version),"/m=",p(H),Q?"/exm="+p(Q):"","/rt=j/sv=1/d=1/ed=1",G.activeMods?"/am="+p(G.activeMods):"",G.resourceSig?"/rs="+p(G.resourceSig):"",G.zcms?"/t="+p(G.zcms):"","/cb=",p(Z)].join("")},x1p=function(G){G.charAt(0)!=="/"&&eb("relative path");
for(var H=G.substring(1).split("/"),Z=[];H.length;){G=H.shift();if(!G.length||G.indexOf(".")==0)eb("empty/relative directory");else if(G.indexOf("=")>0){H.unshift(G);break}Z.push(G)}G={};for(var Q=0,p=H.length;Q<p;++Q){var l=H[Q].split("="),q=decodeURIComponent(l[0]),u=decodeURIComponent(l[1]);l.length==2&&q&&u&&(G[q]=G[q]||u)}H="/"+Z.join("/");OTx.test(H)||eb("invalid_prefix");Z=0;for(Q=avd.length;Z<Q;++Z)avd[Z].test(H)&&eb("invalid_prefix");Z=YNd(G,"k",!0);Q=YNd(G,"am");p=YNd(G,"rs");G=YNd(G,"t");
return{pathPrefix:H,version:Z,activeMods:Q,resourceSig:p,zcms:G}},Lep=function(G){for(var H=[],Z=0,Q=G.length;Z<Q;++Z){var p=G[Z].replace(/\./g,"_").replace(/-/g,"_");
m1p.test(p)&&H.push(p)}return H.join(",")},YNd=function(G,H,Z){G=G[H];
!G&&Z&&eb("missing: "+H);if(G){if(yLT.test(G))return G;eb("invalid: "+H)}return null},NMp=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Rl_=/\/cb=/g,U17=/\/\//g;
Cca.m=function(G,H,Z,Q){(G=G[0])||eb("missing_hint");return"https://apis.google.com"+EJN(G,H,Z,Q)};
var Fea=decodeURI("%73cript"),bTR=/^[-+_0-9\/A-Za-z]+={0,2}$/,GUT=function(G,H){for(var Z=[],Q=0;Q<G.length;++Q){var p=G[Q],l;if(l=p){a:{for(l=0;l<H.length;l++)if(H[l]===p)break a;l=-1}l=l<0}l&&Z.push(p)}return Z},H1t=function(){var G=D$.nonce;
return G!==void 0?G&&G===String(G)&&G.match(bTR)?G:D$.nonce=null:By.querySelector?(G=By.querySelector("script[nonce]"))?(G=G.nonce||G.getAttribute("nonce")||"",G&&G===String(G)&&G.match(bTR)?D$.nonce=G:D$.nonce=null):null:null},QAp=function(G){if(By.readyState!="loading")sAT(G);
else{var H=H1t(),Z="";H!==null&&(Z=' nonce="'+H+'"');G="<"+Fea+' src="'+encodeURI(G)+'"'+Z+"></"+Fea+">";By.write(Z14?Z14.createHTML(G):G)}},sAT=function(G){var H=By.createElement(Fea);
H.setAttribute("src",Z14?Z14.createScriptURL(G):G);G=H1t();G!==null&&H.setAttribute("nonce",G);H.async="true";(G=By.getElementsByTagName(Fea)[0])?G.parentNode.insertBefore(H,G):(By.head||By.body||By.documentElement).appendChild(H)},lYa=function(G,H,Z){px7(function(){var Q=H===vJt()?Jq(k_,"_",tq()):tq();
Q=Jq(zlG(H),"_",Q);G(Q)},Z)},Zsf=function(G,H){var Z=H||{};
typeof H=="function"&&(Z={},Z.callback=H);var Q=(H=Z)&&H._c;if(Q)for(var p=0;p<iTa.length;p++){var l=iTa[p][0],q=iTa[p][1];q&&Object.prototype.hasOwnProperty.call(Q,l)&&q(Q[l],G,H)}H=[];G?H=G.split(":"):Z.features&&(H=Z.features);if(!(G=Z.h)&&(G=vJt(),!G))throw Error("Va");gPa(H||[],Z,G)},gPa=function(G,H,Z){G=fv_(G)||[];
var Q=H.callback,p=H.config,l=H.timeout,q=H.ontimeout,u=H.onerror,B=void 0;typeof u=="function"&&(B=u);var t=null,D=!1;if(l&&!q||!l&&q)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";u=Jq(zlG(Z),"r",[]).sort();var d=Jq(zlG(Z),"L",[]).sort(),e=D$.le||[],n=[].concat(u),c=function(x,U){if(D)return 0;un.clearTimeout(t);d.push.apply(d,W);var R=((k_||{}).config||{}).update;R?R(p):p&&Jq(D$,"cu",[]).push(p);if(U){hl_("me0",x,n);try{lYa(U,Z,B)}finally{hl_("me1",x,n)}}return 1};
l>0&&(t=un.setTimeout(function(){D=!0;q()},l));
var W=GUT(G,d);if(W.length){W=GUT(G,u);var M=Jq(D$,"CP",[]),r=M.length;M[r]=function(x){if(!x)return 0;hl_("ml1",W,n);var U=function(L){M[r]=null;c(W,x)&&WeT(function(){Q&&Q();L()})},R=function(){var L=M[r+1];
L&&L()};
r>0&&M[r-1]?M[r]=function(){U(R)}:U(R)};
if(W.length){var w="loaded_"+D$.I++;k_[w]=function(x){M[r](x);k_[w]=null};
G=ALt(Z,W,"gapi."+w,u,e);u.push.apply(u,W);hl_("ml0",W,n);H.sync||un.___gapisync?QAp(G):sAT(G)}else M[r](cL7)}else c(W)&&Q&&Q()},IY_;
var qSR=null,SSa=_.Qf.trustedTypes;if(SSa&&SSa.createPolicy){try{qSR=SSa.createPolicy("goog#gapi",{createHTML:ub_,createScript:ub_,createScriptURL:ub_})}catch(G){_.Qf.console&&_.Qf.console.error(G.message)}IY_=qSR}else IY_=qSR;var Z14=IY_,px7=function(G,H){if(D$.hee&&D$.hel>0)try{return G()}catch(Z){H&&H(Z),D$.hel--,Zsf("debug_error",function(){try{window.___jsl.hefn(Z)}catch(Q){throw Z;}})}else try{return G()}catch(Z){throw H&&H(Z),Z;
}},uZx=k_.load;
uZx&&Jq(D$,"ol",[]).push(uZx);k_.load=function(G,H){return px7(function(){return Zsf(G,H)})};var N7v;var Jkt=function(G,H){var Z=Z||[];this.serviceId_=G;this.moduleId_=H||null;this.dependencies_=[];BNx(this,Z)};
Jkt.prototype.toString=function(){return this.serviceId_};
Jkt.prototype.getModuleId=function(){return this.moduleId_};
var BNx=function(G,H){var Z=!1;Z=Z===void 0?!1:Z;G.dependencies_=G.dependencies_.concat(H);if(Z){if(!G.moduleId_)throw Error("Wa`"+G.serviceId_);H.map(function(Q){return Q.getModuleId()}).forEach(function(Q){Apf(function(p){p.addExtraEdge(G.moduleId_,Q)})})}};var P4j=new Jkt("MpJwZc","MpJwZc");var fQb=new _.kf("a"),wEj=new _.kf("c"),rcR=function(G,H,Z){_.DA.call(this,G,H);this.node=H;this.kind=Z};
_.T(rcR,_.DA);var tsN=function(){this.JSC$10069_keys_={};this.urlPrefix_="";this.JSC$10069_queryData_={}};
tsN.prototype.toString=function(){var G=this.urlPrefix_+kU_(this),H=_.zF(this.JSC$10069_queryData_),Z="";H!=""&&(Z="?"+H);return G+Z};
var DK4=function(G){G=np(G,"md");return!!G&&G!=="0"},kU_=function(G){var H=[],Z=function(Q){G.JSC$10069_keys_[Q]!==void 0&&H.push(Q+"="+G.JSC$10069_keys_[Q])};
DK4(G)?(Z("md"),Z("k"),Z("ck"),Z("am"),Z("rs"),Z("gssmodulesetproto"),Z("slk"),Z("dti")):(Z("sdch"),Z("k"),Z("ck"),Z("am"),Z("rt"),"d"in G.JSC$10069_keys_||VI(G,"d","0"),Z("d"),Z("exm"),Z("excm"),(G.JSC$10069_keys_.excm||G.JSC$10069_keys_.exm)&&H.push("ed=1"),Z("im"),Z("dg"),Z("sm"),np(G,"br")!="1"&&np(G,"br")!="0"||Z("br"),Z("br-d"),np(G,"rb")=="1"&&Z("rb"),np(G,"zs")!=="0"&&Z("zs"),dKx(G)!==""&&Z("wt"),Z("gssmodulesetproto"),Z("ujg"),Z("sp"),Z("rs"),Z("cb"),Z("ee"),Z("slk"),Z("dti"),Z("m"));return H.join("/")},
np=function(G,H){return G.JSC$10069_keys_[H]?G.JSC$10069_keys_[H]:null},VI=function(G,H,Z){Z?G.JSC$10069_keys_[H]=Z:delete G.JSC$10069_keys_[H]},ekw=function(G,H){G.urlPrefix_=H},nPp=function(G,H){H&&H.length>0?(H.sort(),VI(G,"exm",H.join(","))):VI(G,"exm",null)},Vst=function(G,H){H&&H.length>0?(H.sort(),VI(G,"excm",H.join(","))):VI(G,"excm",null)},$Kw=function(G){return(G=np(G,"m"))?G.split(","):[]},dKx=function(G){switch(np(G,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Xxw=function(G,H){var Z=Object.keys(H).filter(function(Q){return!!Object.keys(H[Q]).length}).map(function(Q){var p=Object.keys(H[Q]);
p.length>1&&p.sort();return Q+":"+p.join(",")});
Z.sort();VI(G,"ee",Z.join(";"))},OgR=function(G){var H=np(G,"ee");
if(!H)return{};G={};H=_.I(H.split(";"));for(var Z=H.next();!Z.done;Z=H.next()){var Q=_.I(Z.value.split(":"));Z=Q.next().value;Q=Q.next().value;G[Z]={};Q=_.I(Q.split(","));for(var p=Q.next();!p.done;p=Q.next())G[Z][p.value]=!0}return G},ck4=function(G){delete G.JSC$10069_keys_.m;
delete G.JSC$10069_keys_.exm;delete G.JSC$10069_keys_.ed};
tsN.prototype.clone=function(){var G=new tsN;G.JSC$10069_keys_=Object.assign({},this.JSC$10069_keys_);G.urlPrefix_=this.urlPrefix_;G.JSC$10069_queryData_=Object.assign({},this.JSC$10069_queryData_);return G};
var aae=function(G,H){H=H===void 0?!0:H;var Z=TNt(G),Q=new tsN,p=_.IJ(Z)[5];_.oN.forEach(fYa,function(q){var u=p.match("/"+q+"=([^/]+)");u&&VI(Q,q,u[1])});
var l="";l=G.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";ekw(Q,G.substr(0,G.indexOf(l)+l.length));if(!H)return Q;(G=_.IJ(Z)[6]||null)&&Zuw(G,function(q,u){Q.JSC$10069_queryData_[q]=u});
return Q},hIe=function(G){G=_.vU(TNt(G));
return G===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(G)?/\/k=/.test(G):!1},TNt=function(G){return G.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?G.substr(65):G},fYa={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"},vP4=RegExp("^loaded_(g|h)?[_\\d]+$");_.$_=function(G){this.JSC$10081_id_=G;this.opts={}};
_.$_.prototype.JSC$10083_setLabel=function(G){this.label_=G||void 0;return this};
_.$_.prototype.addUploadMetadata=function(G,H){var Z=this.opts.data||{};Z[G]=H;this.opts.data=Z;return this};
var Wgw=function(G){var H=_.oN.filter(G.opts,function(Z){return Z!==null});
H=_.oN.isEmpty(H)?null:H;G=[G.JSC$10081_id_,G.label_,H];H=Kve(G);return G=G.slice(0,H+1)};
_.$_.prototype.toString=function(){var G=Wgw(this);return"("+_.mT(G,function(H){return JSON.stringify(H)}).join(",")+")"};
_.$_.prototype.getId=function(){return this.JSC$10081_id_};
_.$_.prototype.getOptions=function(){return _.oN.clone(this.opts)};var XO=function(){_.$_.call(this,"image-search")};
_.T(XO,_.$_);XO.prototype.setSize=function(G){this.opts.imgsz=G;return this};
XO.prototype.JSC$10083_setLabel=function(G){_.$_.prototype.JSC$10083_setLabel.call(this,G);return this};
XO.prototype.addUploadMetadata=function(G,H){_.$_.prototype.addUploadMetadata.call(this,G,H);return this};var cy=function(){_.$_.call(this,"maps")};
_.T(cy,_.$_);cy.prototype.setZoom=function(G){this.opts.zoom=G;return this};
cy.prototype.JSC$10083_setLabel=function(G){_.$_.prototype.JSC$10083_setLabel.call(this,G);return this};
cy.prototype.addUploadMetadata=function(G,H){_.$_.prototype.addUploadMetadata.call(this,G,H);return this};_.Tj=function(){_.$_.call(this,"photos")};
_.T(_.Tj,_.$_);_.Tj.prototype.JSC$10083_setLabel=function(G){_.$_.prototype.JSC$10083_setLabel.call(this,G);return this};
_.Tj.prototype.addUploadMetadata=function(G,H){_.$_.prototype.addUploadMetadata.call(this,G,H);return this};var fp=function(){_.$_.call(this,"url")};
_.T(fp,_.$_);var zkp=function(){var G=new fp;G.opts.type="video";G.opts.site="youtube.com";return G};
fp.prototype.JSC$10083_setLabel=function(G){_.$_.prototype.JSC$10083_setLabel.call(this,G);return this};
fp.prototype.addUploadMetadata=function(G,H){_.$_.prototype.addUploadMetadata.call(this,G,H);return this};var vy=function(){_.$_.call(this,"video-search")};
_.T(vy,_.$_);var Kga=function(){var G=new vy;G.opts.site="youtube.com";return G};
vy.prototype.JSC$10083_setLabel=function(G){_.$_.prototype.JSC$10083_setLabel.call(this,G);return this};
vy.prototype.addUploadMetadata=function(G,H){_.$_.prototype.addUploadMetadata.call(this,G,H);return this};var Mst=function(){_.$_.call(this,"web")};
_.T(Mst,_.$_);Mst.prototype.JSC$10083_setLabel=function(G){_.$_.prototype.JSC$10083_setLabel.call(this,G);return this};
Mst.prototype.addUploadMetadata=function(G,H){_.$_.prototype.addUploadMetadata.call(this,G,H);return this};var Wy=function(){this.items_=[];this.opts={}},jA2=function(G){switch(G){case "image-search":return new XO;
case "maps":return new cy;case "photos":return new _.Tj;case "url":return new fp;case "video-search":return new vy;case "web":return new Mst}return new _.$_(G)};
Wy.prototype.addView=function(G){this.items_.push(typeof G==="string"?jA2(G):G);return this};
var Put=function(G){return"("+_.mT(G.items_,function(H){return H.toString()}).join(",")+")"};
Wy.prototype.toString=function(){return Put(this)};
Wy.prototype.getViews=function(G,H){H=H===void 0?[]:H;for(var Z=this.items_,Q=0;Q<Z.length;Q++){var p=Z[Q];p instanceof Wy?p.getViews(G,H):p.getId()==G&&H.push(p)}return H};
Wy.prototype.getOptions=function(){return _.oN.clone(this.opts)};var Lu=function(G){this.basePickerUrl_=G||"https://docs.google.com/picker";this.nav_=new Wy};
Lu.prototype.nav_=null;Lu.prototype.addView=function(G){this.nav_.addView(G);return this};
Lu.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Lu.prototype.getViews=function(G){return this.nav_.getViews(G)};
_.rk4=function(G,H){G.callback_=H;return G};var wxd=new Map;wxd.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");wxd.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");wxd.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var hkw=new Set;hkw.add("application/vnd.google-apps.kix");hkw.add("application/vnd.google-apps.ritz");hkw.add("application/vnd.google-apps.punch");var xKT=function(G,H,Z){var Q=Z&&_.nY(Z,1);Z=CuR(Z);var p=G[0].getId();switch(_.V8(p,2)){case 13:return i1_(G,H,Q,Z);case 3:return O1_(G,H,Q,Z);case 10:return aYa(G,H,Q,Z);case 27:return aYa(G,H,Q,Z);case 12:return ykG(G,H);case 2:return oP4(G,H,Q,Z);case 5:return mKN(G,H,Q,Z);case 9:return UKa(G,H,Q,Z);case 6:return Rkd(G,H,Q,Z);case 25:return NNR(G,H,Q,Z);case 1:return _.IE(G[0],n54,26)?AkN(G,H,Q,Z):aYa(G,H,Q,Z);default:return{}}},Rkd=function(G,H,Z,Q){G=G.map(function(p){return{id:p.getId().getId(),
serviceId:"youtube",name:p.getName(),description:_.nY(p,3),type:zj(p),lastEditedUtc:_.eKN(_.dt(p,_.nA,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:p.getUrl(),embedUrl:_.nY(p,13),thumbnails:Kp(EK(p))}});
return{action:H,docs:G,viewToken:Q,view:Z||"youtube",v2Translated:!0}},oP4=function(G,H,Z,Q){var p=G.map(function(l){var q=l.getId().getId(),u=_.nY(l,7),B=l.getName(),t=zj(l),D=_.eKN(_.dt(l,_.nA,12)).getTime(),d=l.getUrl(),e=Number(zNx(l)),n=_.nY(l,3),c=_.nY(l,11),W=Kp(EK(l));
var M=_.dt(l,Yu,21);M=_.DH(M,1);var r=_.dt(l,Yu,21);r=_.nY(r,10);var w=_.nY(l,13);var x=_.dt(l,Yu,21);x=_.DH(x,9);var U=_.dt(l,Yu,21);U=_.nY(U,11);q={id:q,serviceId:"docs",mimeType:u,name:B,type:t,lastEditedUtc:D,url:d,sizeBytes:e,description:n,iconUrl:c,thumbnails:W,isShared:M,downloadUrl:r,embedUrl:w,copyable:x,resourceKey:U};u=_.dt(l,Yu,21);_.DH(u,12)&&(q.uploadState="success",q.isNew=!0);u=_.dt(l,Yu,21);_.IE(u,AH,3)&&(l=_.dt(l,Yu,21),l=_.dt(l,AH,3),_.IE(l,Rx,2)&&(u=Rf(l.getDuration().getSeconds()),
B=l.getDuration(),B=_.k5(B,2),q.duration=u+B/1E9),q.aspectRatio=l.getAspectRatio());return q});
return{action:H,docs:p,viewToken:Q,view:Z||"all",extraUserInputs:LgR(G),v2Translated:!0}},mKN=function(G,H,Z,Q){G=G.map(function(p){var l=_.dt(p,zKx,15);
l=_.dt(l,NE,1);z_(p,10,NE,l);return{id:p.getId().getId(),serviceId:"web",mimeType:_.nY(p,7),name:p.getName(),type:zj(p),url:p.getUrl(),description:_.nY(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Kp(EK(p))}});
return{action:H,docs:G,viewToken:Q,view:Z||"image-search",v2Translated:!0}},UKa=function(G,H,Z,Q){G=G.map(function(p){return{serviceId:"url",
name:EK(p)[0].getUrl().split("/").pop(),type:zj(p),mimeType:_.nY(p,7),url:p.getUrl(),description:_.nY(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Kp(EK(p))}});
return{action:H,docs:G,viewToken:Q,view:Z||"url",v2Translated:!0}},AkN=function(G,H,Z,Q){G=G.map(function(p){return{id:p.getId().getId(),
serviceId:"picasa",name:p.getName(),type:zj(p),description:_.nY(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Kp(EK(p))}});
return{action:H,docs:G,viewToken:Q,view:Z||"webcam",v2Translated:!0}},aYa=function(G,H,Z,Q){return{action:H,
docs:G.map(EPt),viewToken:Q,view:YSx(Z||"upload",G),extraUserInputs:LgR(G),v2Translated:!0}},YSx=function(G,H){return H.some(function(Z){var Q;
return((Q=_.dt(Z,xu,30))==null?void 0:_.V8(Q,3))===9})?G+"/gmailphotos":G},O1_=function(G,H,Z,Q){var p=G.map(function(l){var q={id:l.getId().getId(),
serviceId:"picasa",mimeType:_.nY(l,7),name:l.getName(),type:zj(l),lastEditedUtc:_.eKN(_.dt(l,_.nA,12)).getTime(),url:l.getUrl(),sizeBytes:Number(zNx(l)),description:_.nY(l,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Kp(EK(l)),mediaKey:l.getId().getId(),parentId:_.nY(l,4)},u,B=(u=_.dt(l,X72,18))==null?void 0:_.dt(u,$jd,3);B&&(q.latitude=eD(B,1),q.longitude=eD(B,2));var t;l=(t=_.dt(l,X72,18))==null?void 0:dm(t,6);t=l!=null?Rf(l):void 0;t&&(q.version=
t);return q});
return{action:H,docs:p,viewToken:Q,view:Z||"photos",extraUserInputs:LgR(G),v2Translated:!0}},i1_=function(G,H,Z,Q){G=G.map(function(p){return{id:p.getId().getId(),
serviceId:"et",name:EK(p)[0].getUrl().split("/").pop(),description:_.nY(p,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Kp(EK(p),"etjpg")}});
return{action:H,docs:G,viewToken:Q,view:Z||"et",v2Translated:!0}},NNR=function(G,H,Z,Q){G=G.map(function(p){var l=p.getId().getId(),q=Q["2"];
return{id:l,serviceId:q.type!=="gmail_themes"&&q.parent==="6226252643674576769"?"picasa":"static_themes",name:p.getName(),mimeType:_.nY(p,7),type:zj(p),description:_.nY(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:p.getUrl(),embedUrl:p.getUrl(),thumbnails:Kp(EK(p))}});
return{action:H,docs:G,viewToken:Q,view:Z||"photos",v2Translated:!0}},ykG=function(G,H){G=G.map(function(Z){var Q=_.dt(Z,V_w,27);
Q=_.YA(Q,1,_.T8,_.tR())[0];return{id:Z.getId().getId(),serviceId:"contacts",mimeType:_.nY(Z,7),name:Z.getName(),description:_.nY(Z,3),url:"mailto:"+Q,thumbnail:[{url:_.nY(Z,11)}],email:Q}});
return{action:H,docs:G,view:"contacts",v2Translated:!0}},CuR=function(G){if(!G)return{};
var H=_.nY(G,3);H=H&&JSON.parse(H)||{};return{0:_.nY(G,1),1:_.nY(G,2),2:H}},Kp=function(G,H){H=H===void 0?"":H;
if(!G.length)return null;H=="etjpg"&&(G=G.filter(function(Z){return Z.getUrl().includes("w1200-h300")}));
return G.map(function(Z){return{url:Z.getUrl(),height:Z.getHeight(),width:Z.getWidth(),type:H}})},LgR=function(G){return{isAttachment:G.some(function(H){return _.DH(H,31)})}},EPt=function(G){var H,Z={id:(H=G.getId())==null?void 0:H.getId(),
serviceId:Fgx(G),mimeType:_.nY(G,7),name:G.getName(),type:zj(G),sizeBytes:Number(zNx(G)),description:_.nY(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Kp(EK(G)),isNew:!0};if(H=_.dt(G,xu,30)){Z.dataUrl=_.nY(H,1)||null;a:{var Q=_.dt(G,xu,30);switch(_.V8(Q,3)){case 9:Q=_.c4(Q,v57,2,LO);Q={remoteRefs:Q&&_.nY(Q,1)};break a;case 10:case 15:Q=_.c4(Q,fST,4,LO);var p=EK(G);Q={photo_id:Q&&_.nY(Q,1),media_key:G.getId().getId(),media_type:_.V8(G,6)===1?1:2,image_url:p&&
p[0].getUrl(),width:p&&String(p[0].getWidth()),height:p&&String(p[0].getHeight())};break a}Q=null}Z.uploadMetadata=Q;Z.uploadId=_.nY(H,9)||null;Z.uploadState=b1x(H)||null}(Q=H&&_.c4(H,fST,4,LO))&&(Z.id=_.nY(Q,1));(Q=H&&_.c4(H,Wud,5,LO))&&(Z.contentId=_.nY(Q,1));(Q=H&&_.c4(H,cRx,7,LO))&&(Z.contentId=_.nY(Q,1));(Q=H&&_.c4(H,TIa,6,LO))&&(Z.contentId=_.nY(Q,1));(H==null?void 0:_.V8(H,3))===1&&(Z.mediaKey=G.getId().getId());return Z},Fgx=function(G){var H;
switch(((H=_.dt(G,xu,30))==null?void 0:_.V8(H,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},zj=function(G){switch(_.V8(G,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 _.nY(G,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},b1x=function(G){switch(G==null?void 0:_.V8(G,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 Z64,GEw,H6w,sZa;_.QZa=function(G,H){var Z=H||{};H=Z.document||document;var Q=_.PO(G).toString(),p=(new XC(H)).createElement("SCRIPT"),l={script_:p,timeout_:void 0},q=new Rv(GEw,l),u=null,B=Z.timeout!=null?Z.timeout:5E3;B>0&&(u=window.setTimeout(function(){H6w(p,!0);q.errback(new sZa(1,"Timeout reached for loading script "+Q))},B),l.timeout_=u);
p.onload=p.onreadystatechange=function(){p.readyState&&p.readyState!="loaded"&&p.readyState!="complete"||(H6w(p,Z.cleanupWhenDone||!1,u),q.callback(null))};
p.onerror=function(){H6w(p,!0,u);q.errback(new sZa(0,"Error while loading script "+Q))};
l=Z.attributes||{};_.oN.extend(l,{type:"text/javascript",charset:"UTF-8"});SAT(p,l);_.gJ(p,G);Z64(H).appendChild(p);return q};
Z64=function(G){var H=Mj("HEAD",G);return H&&H.length!==0?H[0]:G.documentElement};
GEw=function(){if(this&&this.script_){var G=this.script_;G&&G.tagName=="SCRIPT"&&H6w(G,!0,this.timeout_)}};
H6w=function(G,H,Z){Z!=null&&_.Qf.clearTimeout(Z);G.onload=function(){};
G.onerror=function(){};
G.onreadystatechange=function(){};
H&&window.setTimeout(function(){_.Ku(G)},0)};
sZa=function(G,H){var Z="Jsloader error (code #"+G+")";H&&(Z+=": "+H);_.sj.call(this,Z);this.code=G};
_.AB(sZa,_.sj);var pEt=_.CM(["https://apis.google.com/js/api.js"]),lZ_=_.VB(pEt),SWa=function(G,H,Z){Z=Z===void 0?{}:Z;var Q=!1,p=giw(G,H,Z).then(function(q){Q=!0;return q}),l=_.re2(5E3).then(function(){return Q?giw(G,H,Z):IZx(H,Z).then(function(q){return qWp(q,G)})});
return $VN([p,l])},giw=function(G,H,Z){Z=Z===void 0?{}:Z;
return ur4(H,Z).then(function(Q){return qWp(Q,G)})},qWp=function(G,H){var Z=_.le(H,"gapi.")?H.slice(5):H;
return G[Z]?_.Yk(G[Z]):new _.T_(function(Q,p){var l=vQ(function(){p(Error("Ya"))},3E4);
G.load(H,{callback:function(){_.Qf.clearTimeout(l);Q(G[Z])},
onerror:function(q){_.Qf.clearTimeout(l);p(q)}})})},ur4=function(G,H){H=H===void 0?{}:H;
return G.gapi&&G.gapi.load?_.Yk(G.gapi):IZx(G,H)},IZx=function(G,H){H=H===void 0?{}:H;
return _.QZa(lZ_,{document:G.document,attributes:H}).then(function(){return G.gapi})},BgG=function(){};
BgG.prototype.load=function(G,H,Z){H=H===void 0?window:H;Z=Z===void 0?{}:Z;var Q=Date.now();return SWa(G,H,Z).then(function(p){var l=Date.now();return{library:p,loadStartMs:Q,loadEndMs:l}},function(p){throw p instanceof Error?p:Error(String(p));
})};var pPf=function(){_.wI.call(this);this.gapiLoader_=new BgG;this.origin_=null;this.gapiPickerIframeResolver_=_.hQ();this.gapiIframesResolver_=_.hQ();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.T(pPf,_.wI);var Jcx=function(G,H){var Z=Z===void 0?{}:Z;var Q=_.GF("gapi.iframes",H);return Q?(G=Date.now(),_.Yk({library:Q,loadStartMs:G,loadEndMs:G})):G.gapiLoader_.load("gapi.iframes",H,Z)},tnG=function(G,H,Z,Q,p,l){var q=!1;
q=q===void 0?!1:q;Jcx(G,RN(H.ownerDocument)).then(function(u){var B=u.library;G.gapiIframesResolver_.resolve(B);u=G.gapiPickerIframeResolver_;var t=u.resolve,D=q;D=D===void 0?!1:D;var d={};d["host-message-handler"]=Z;G.hostMessageHandlerInternal_=d;var e=_.HS(Q);e=_.HS(e);e=_.Gj(_.b5(_.FQ(new _.C9,e.scheme_),e.JSC$10041_domain_),e.JSC$10041_port_).toString();G.origin_=e;e=(new jp_).setUrl(Q);e.JSC$10056_obj_.where=H;e.JSC$10056_obj_.allowPost=D;e.JSC$10056_obj_.messageHandlers=d;D=_.GF("makeWhiteListIframesFilter",
B)([G.origin_]);e.JSC$10056_obj_.messageHandlersFilter=D;p!=null&&(e.JSC$10056_obj_.id=p);l!=null&&(e.JSC$10056_obj_.rpctoken=l);D=Mya(e);D.JSC$10053_obj_.style={display:"block","min-width":"100%",width:"1px"};D.JSC$10053_obj_.height="100%";Mya(e).value().allow="camera 'src' "+G.origin_;B=B.getContext().openChild(e.value());t.call(u,B)},function(u){G.gapiIframesResolver_.reject(u);
G.gapiPickerIframeResolver_.reject(u)});
return G.gapiPickerIframeResolver_.promise},kE_=function(G,H){return _.Tw([G.gapiIframesResolver_.promise,
G.gapiPickerIframeResolver_.promise]).then(function(Z){var Q=_.I(Z);Z=Q.next().value;return(Q=Q.next().value)?Q.send("picker-message-handler",H,void 0,_.GF("makeWhiteListIframesFilter",Z)([G.origin_])):_.DJ(Error("Za"))})};
pPf.prototype.disposeInternal=function(){D2d(this);_.wI.prototype.disposeInternal.call(this)};
var D2d=function(G){G.gapiPickerIframeResolver_.promise.then(function(H){H&&(H.unregister("host-message-handler"),delete G.hostMessageHandlerInternal_["host-message-handler"])})};var d2a=function(){this.nextId=0};var niw=function(G,H){switch(G.action){case "select-contacts":G=eMG(G.contacts);break;case "visibility":G=G.visible;var Z=new HQ;G=_.fY(Z,1,7).setVisible(G);Z={};Z["iframe-command"]=G.serialize();G=Z;break;default:G=null}return G?kE_(H,G):_.Yk()},eMG=function(G){if(!G||G.length==0)return null;
var H=new HQ;_.fY(H,1,11);var Z=new d2a;G.forEach(function(Q){if(Q.email){var p=new tg;p=_.jO(p,2,Q.name?Q.name:Q.email);var l=new V_w;Q=_.y63(l,1,_.$A,Q.email,_.T8);Q=_.fq(p,27,Q);p=new djG;l=":"+(Z.nextId++).toString(36);p=_.jO(p,1,l);p=_.fY(p,2,12);Q=_.fq(Q,1,p)}else Q=null;Q&&z_(H,7,tg,Q)});
G={};G["iframe-command"]=H.serialize();return G};_.Vn7=function(){if(mXx){var G=/Windows NT ([0-9.]+)/;return(G=G.exec(_.nW()))?G[1]:"0"}return _.oRw?(G=/1[0|1][_.][0-9_.]+/,(G=G.exec(_.nW()))?G[0].replace(/_/g,"."):"10"):UoX?(G=/Android\s+([^\);]+)(\)|;)/,(G=G.exec(_.nW()))?G[1]:""):Rjp||Nf_||AMa?(G=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(G=G.exec(_.nW()))?G[1].replace(/_/g,"."):""):""}();var MQ;MQ=function(G){return(G=G.exec(_.nW()))?G[1]:""};
_.$2_=function(){if(_.H4)return MQ(/Firefox\/([0-9.]+)/);if(_.Yj||qh||OWw)return Gxw;if(_.sy){if(_.P3()||_.fUo()){var G=MQ(/CriOS\/([0-9.]+)/);if(G)return G}return MQ(/Chrome\/([0-9.]+)/)}if(_.Ed&&!_.P3())return MQ(/Version\/([0-9.]+)/);if(AUR||xmR){if(G=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.nW()))return G[1]+"."+G[2]}else if(pdR)return(G=MQ(/Android\s+([0-9.]+)/))?G:MQ(/Version\/([0-9.]+)/);return""}();var XEx=function(){};
_.R6(XEx);XEx.prototype.nextId_=0;_.jb=function(G){return":"+(G.nextId_++).toString(36)};var Py=function(G){_.$f.call(this);this.JSC$10151_dom_=G||r3();this.JSC$10151_id_=null;this.inDocument_=!1;this.JSC$10151_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.AB(Py,_.$f);Py.prototype.idGenerator_=XEx.getInstance();Py.prototype.getId=function(){return this.JSC$10151_id_||(this.JSC$10151_id_=_.jb(this.idGenerator_))};
Py.prototype.getElement=function(){return this.JSC$10151_element_};
var rs=function(G){G.googUiComponentHandler_||(G.googUiComponentHandler_=new _.en(G));return G.googUiComponentHandler_},ccd=function(G,H){if(G==H)throw Error("$a");
var Z;if(Z=H&&G.parent_&&G.JSC$10151_id_){Z=G.parent_;var Q=G.JSC$10151_id_;Z=Z.childIndex_&&Q?_.oN.get(Z.childIndex_,Q)||null:null}if(Z&&G.parent_!=H)throw Error("$a");G.parent_=H;Py.superClass_.setParentEventTarget.call(G,H)};
Py.prototype.setParentEventTarget=function(G){if(this.parent_&&this.parent_!=G)throw Error("ab");Py.superClass_.setParentEventTarget.call(this,G)};
Py.prototype.JSC$10153_createDom=function(){this.JSC$10151_element_=this.JSC$10151_dom_.createElement("DIV")};
Py.prototype.render=function(G){Tg_(this,G)};
var Tg_=function(G,H,Z){if(G.inDocument_)throw Error("bb");G.JSC$10151_element_||G.JSC$10153_createDom();H?H.insertBefore(G.JSC$10151_element_,Z||null):G.JSC$10151_dom_.JSC$9335_document_.body.appendChild(G.JSC$10151_element_);G.parent_&&!G.parent_.inDocument_||G.enterDocument()};
_.g=Py.prototype;_.g.decorate=function(G){if(this.inDocument_)throw Error("bb");if(G&&this.canDecorate(G)){this.wasDecorated_=!0;var H=_.N4(G);this.JSC$10151_dom_&&this.JSC$10151_dom_.JSC$9335_document_==H||(this.JSC$10151_dom_=r3(G));this.decorateInternal(G);this.enterDocument()}else throw Error("cb");};
_.g.canDecorate=function(){return!0};
_.g.decorateInternal=function(G){this.JSC$10151_element_=G};
_.g.enterDocument=function(){this.inDocument_=!0;fZx(this,function(G){!G.inDocument_&&G.getElement()&&G.enterDocument()})};
_.g.exitDocument=function(){fZx(this,function(G){G.inDocument_&&G.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.g.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);fZx(this,function(G){G.dispose()});
!this.wasDecorated_&&this.JSC$10151_element_&&_.Ku(this.JSC$10151_element_);this.parent_=this.model_=this.JSC$10151_element_=this.childIndex_=this.children_=null;Py.superClass_.disposeInternal.call(this)};
_.g.getModel=function(){return this.model_};
_.g.addChild=function(G,H){var Z=this.children_?this.children_.length:0;if(G.inDocument_&&(H||!this.inDocument_))throw Error("bb");if(Z<0||Z>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);G.parent_==this?(_.oN.set(this.childIndex_,G.getId(),G),_.ou(this.children_,G)):_.oN.add(this.childIndex_,G.getId(),G);ccd(G,this);_.rMU(this.children_,Z,0,G);G.inDocument_&&this.inDocument_&&G.parent_==this?(H=this.getContentElement(),
(H.childNodes[Z]||null)!=G.getElement()&&(G.getElement().parentElement==H&&H.removeChild(G.getElement()),Z=H.childNodes[Z]||null,H.insertBefore(G.getElement(),Z))):H?(this.JSC$10151_element_||this.JSC$10153_createDom(),Z=this.children_?this.children_[Z+1]||null:null,Tg_(G,this.getContentElement(),Z?Z.JSC$10151_element_:null)):this.inDocument_&&!G.inDocument_&&G.JSC$10151_element_&&G.JSC$10151_element_.parentNode&&G.JSC$10151_element_.parentNode.nodeType==1&&G.enterDocument()};
_.g.getContentElement=function(){return this.JSC$10151_element_};
var fZx=function(G,H){G.children_&&G.children_.forEach(H,void 0)};
Py.prototype.removeChild=function(G,H){if(G){var Z=typeof G==="string"?G:G.getId();G=this.childIndex_&&Z?_.oN.get(this.childIndex_,Z)||null:null;Z&&G&&(_.oN.remove(this.childIndex_,Z),_.ou(this.children_,G),H&&(G.exitDocument(),G.JSC$10151_element_&&_.Ku(G.JSC$10151_element_)),ccd(G,null))}if(!G)throw Error("eb");return G};_.AB(EMj,LK2);_.AB(Ydj,LK2);var viG;_.oN.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var W_t=function(G,H){H?G.setAttribute("role",H):G.removeAttribute("role")},ws=function(G,H,Z){Array.isArray(Z)&&(Z=Z.join(" "));
var Q="aria-"+H;Z===""||Z==void 0?(viG||(Z={},viG=(Z.atomic=!1,Z.autocomplete="none",Z.dropeffect="none",Z.haspopup=!1,Z.live="off",Z.multiline=!1,Z.multiselectable=!1,Z.orientation="vertical",Z.readonly=!1,Z.relevant="additions text",Z.required=!1,Z.sort="none",Z.busy=!1,Z.disabled=!1,Z.hidden=!1,Z.invalid="false",Z)),Z=viG,H in Z?G.setAttribute(Q,Z[H]):G.removeAttribute(Q)):G.setAttribute(Q,Z)};var zMw;_.hq=function(G,H,Z){_.$f.call(this);this.target=G;this.handle=H||G;this.limits=Z||new rP(NaN,NaN,NaN,NaN);this.JSC$10156_document_=_.N4(G);this.JSC$10156_eventHandler_=new _.en(this);_.T$(this,this.JSC$10156_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;_.tt(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=zMw};
_.AB(_.hq,_.$f);zMw=_.Qf.document&&_.Qf.document.documentElement&&!!_.Qf.document.documentElement.setCapture&&!!_.Qf.document.releaseCapture;_.K_w=function(G,H){G.hysteresisDistanceSquared_=Math.pow(H,2)};
_.g=_.hq.prototype;_.g.setEnabled=function(G){this.enabled_=G};
_.g.disposeInternal=function(){_.hq.superClass_.disposeInternal.call(this);_.VX(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10156_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10156_document_.releaseCapture();this.handle=this.target=null};
_.g.startDrag=function(G){var H=G.type=="mousedown";if(!this.enabled_||this.dragging_||H&&(!G.isButton(0)||_.oRw&&G.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Cp("start",this,G.clientX,G.clientY,G)))this.dragging_=!0,H&&G.preventDefault();else return;else H&&G.preventDefault();H=this.JSC$10156_document_;var Z=H.documentElement,Q=!this.useSetCapture_;this.JSC$10156_eventHandler_.listen(H,["touchmove","mousemove"],this.handleMove_,
{capture:Q,passive:!1});this.JSC$10156_eventHandler_.listen(H,["touchend","mouseup"],this.endDrag,Q);this.useSetCapture_?(Z.setCapture(!1),this.JSC$10156_eventHandler_.listen(Z,"losecapture",this.endDrag)):this.JSC$10156_eventHandler_.listen(RN(H),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10156_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,Q);this.clientX=this.startX=G.clientX;this.clientY=this.startY=G.clientY;this.screenX=G.screenX;this.screenY=G.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Pl(r3(this.JSC$10156_document_))}};
_.g.endDrag=function(G,H){this.JSC$10156_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10156_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Cp("end",this,G.clientX,G.clientY,G,Mna(this,this.deltaX),jZ4(this,this.deltaY),H||G.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.g.handleMove_=function(G){if(this.enabled_){var H=G.clientX-this.clientX,Z=G.clientY-this.clientY;this.clientX=G.clientX;this.clientY=G.clientY;this.screenX=G.screenX;this.screenY=G.screenY;if(!this.dragging_){var Q=this.startX-this.clientX,p=this.startY-this.clientY;if(Q*Q+p*p>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Cp("start",this,G.clientX,G.clientY,G)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(G);return}}Z=P4N(this,H,Z);H=Z.x;Z=Z.y;this.dragging_&&this.dispatchEvent(new Cp("beforedrag",
this,G.clientX,G.clientY,G,H,Z))&&(rcw(this,G,H,Z),G.preventDefault())}};
var P4N=function(G,H,Z){var Q=Pl(r3(G.JSC$10156_document_));H+=Q.x-G.pageScroll.x;Z+=Q.y-G.pageScroll.y;G.pageScroll=Q;G.deltaX+=H;G.deltaY+=Z;return new _.UA(Mna(G,G.deltaX),jZ4(G,G.deltaY))};
_.hq.prototype.onScroll_=function(G){var H=P4N(this,0,0);G.clientX=this.clientX;G.clientY=this.clientY;rcw(this,G,H.x,H.y)};
var rcw=function(G,H,Z,Q){G.target.style.left=Z+"px";G.target.style.top=Q+"px";G.dispatchEvent(new Cp("drag",G,H.clientX,H.clientY,H,Z,Q))},Mna=function(G,H){var Z=G.limits;
G=isNaN(Z.left)?null:Z.left;Z=isNaN(Z.width)?0:Z.width;return Math.min(G!=null?G+Z:Infinity,Math.max(G!=null?G:-Infinity,H))},jZ4=function(G,H){var Z=G.limits;
G=isNaN(Z.top)?null:Z.top;Z=isNaN(Z.height)?0:Z.height;return Math.min(G!=null?G+Z:Infinity,Math.max(G!=null?G:-Infinity,H))};
_.hq.prototype.isDragging=function(){return this.dragging_};
var Cp=function(G,H,Z,Q,p,l,q){_.DA.call(this,G);this.clientX=Z;this.clientY=Q;this.browserEvent=p;this.left=l!==void 0?l:H.deltaX;this.top=q!==void 0?q:H.deltaY};
_.AB(Cp,_.DA);var Oa=function(G){this.JSC$10163_map_=new Map;var H=arguments.length;if(H>1){if(H%2)throw Error("ma");for(var Z=0;Z<H;Z+=2)this.set(arguments[Z],arguments[Z+1])}else G&&this.addAll(G)};
_.g=Oa.prototype;_.g.getCount=function(){return this.JSC$10163_map_.size};
_.g.getValues=function(){return Array.from(this.JSC$10163_map_.values())};
_.g.getKeys=function(){return Array.from(this.JSC$10163_map_.keys())};
_.g.containsKey=function(G){return this.JSC$10163_map_.has(G)};
_.g.containsValue=function(G){return this.getValues().some(function(H){return H==G})};
_.g.equals=function(G,H){var Z=this;H=H===void 0?function(Q,p){return Q===p}:H;
return this===G?!0:this.JSC$10163_map_.size!=G.getCount()?!1:this.getKeys().every(function(Q){return H(Z.JSC$10163_map_.get(Q),G.get(Q))})};
_.g.isEmpty=function(){return this.JSC$10163_map_.size==0};
_.g.clear=function(){this.JSC$10163_map_.clear()};
_.g.remove=function(G){return this.JSC$10163_map_.delete(G)};
_.g.get=function(G,H){return this.JSC$10163_map_.has(G)?this.JSC$10163_map_.get(G):H};
_.g.set=function(G,H){this.JSC$10163_map_.set(G,H);return this};
_.g.addAll=function(G){if(G instanceof Oa){G=_.I(G.JSC$10163_map_);for(var H=G.next();!H.done;H=G.next()){var Z=_.I(H.value);H=Z.next().value;Z=Z.next().value;this.JSC$10163_map_.set(H,Z)}}else if(G)for(G=_.I(Object.entries(G)),H=G.next();!H.done;H=G.next())Z=_.I(H.value),H=Z.next().value,Z=Z.next().value,this.JSC$10163_map_.set(H,Z)};
_.g.forEach=function(G,H){var Z=this;H=H===void 0?this:H;this.JSC$10163_map_.forEach(function(Q,p){return G.call(H,Q,p,Z)})};
_.g.clone=function(){return new Oa(this)};(function(){for(var G=["ms","moz","webkit","o"],H,Z=0;H=G[Z]&&!_.Qf.requestAnimationFrame;++Z)_.Qf.requestAnimationFrame=_.Qf[H+"RequestAnimationFrame"],_.Qf.cancelAnimationFrame=_.Qf[H+"CancelAnimationFrame"]||_.Qf[H+"CancelRequestAnimationFrame"];if(!_.Qf.requestAnimationFrame){var Q=0;_.Qf.requestAnimationFrame=function(p){var l=(new Date).getTime(),q=Math.max(0,16-(l-Q));Q=l+q;return _.Qf.setTimeout(function(){p(l+q)},q)};
_.Qf.cancelAnimationFrame||(_.Qf.cancelAnimationFrame=function(p){clearTimeout(p)})}})();
var wEN=[[],[]],hM7=0,C4R=!1,i6a=0,aZa=function(G,H){var Z=i6a++,Q={measureTask:{id:Z,fn:G.measure,context:H},mutateTask:{id:Z,fn:G.mutate,context:H},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(Q.args||(Q.args=[]),Q.args.length=0,Q.args.push.apply(Q.args,arguments),Q.args.push(Q.state)):Q.args&&Q.args.length!=0?(Q.args[0]=Q.state,Q.args.length=1):Q.args=[Q.state];Q.isScheduled||(Q.isScheduled=!0,wEN[hM7].push(Q));C4R||(C4R=!0,window.requestAnimationFrame(O6a))}},O6a=
function(){C4R=!1;
var G=wEN[hM7],H=G.length;hM7=(hM7+1)%2;for(var Z,Q=0;Q<H;++Q){Z=G[Q];var p=Z.measureTask;Z.isScheduled=!1;p.fn&&p.fn.apply(p.context,Z.args)}for(Q=0;Q<H;++Q)Z=G[Q],p=Z.mutateTask,Z.isScheduled=!1,p.fn&&p.fn.apply(p.context,Z.args),Z.state={};G.length=0};var ycw=_.CM(["about:blank"]),oia=_.CM(["javascript:undefined"]),m27=_.VB(ycw);_.PO(m27);var U27=_.VB(oia);_.PO(U27);var aQ=function(G){_.$f.call(this);this.JSC$10169_element_=G;this.listenKeyIn_=_.tt(this.JSC$10169_element_,"focus",this,!0);this.listenKeyOut_=_.tt(this.JSC$10169_element_,"blur",this,!0)};
_.AB(aQ,_.$f);aQ.prototype.handleEvent=function(G){var H=new _.dl(G.event_);H.type=G.type=="focusin"||G.type=="focus"?"focusin":"focusout";this.dispatchEvent(H)};
aQ.prototype.disposeInternal=function(){aQ.superClass_.disposeInternal.call(this);ub(this.listenKeyIn_);ub(this.listenKeyOut_);delete this.JSC$10169_element_};var RMx=function(G,H){this.JSC$10172_element_=G;this.JSC$10172_dom_=H};var yI=function(G,H){Py.call(this,H);this.useIframeMask_=!!G;this.lastFocus_=null;this.resizeBackgroundTask_=aZa({mutate:this.resizeBackground_},this);aZa({mutate:this.updateModalAndBackground_},this)};
_.AB(yI,Py);_.g=yI.prototype;_.g.focusHandler_=null;_.g.visible_=!1;_.g.bgEl_=null;_.g.bgIframeEl_=null;_.g.tabCatcherElement_=null;_.g.backwardTabWrapInProgress_=!1;_.g.getCssClass=function(){return"goog-modalpopup"};
_.g.getBackgroundElement=function(){return this.bgEl_};
_.g.JSC$10153_createDom=function(){yI.superClass_.JSC$10153_createDom.call(this);var G=this.getElement(),H=kR(this.getCssClass()).split(" ");ov(G,H);G.tabIndex=0;_.QN(G,!1);NgR(this);Acd(this)};
var NgR=function(G){if(G.useIframeMask_&&!G.bgIframeEl_){var H=G.JSC$10151_dom_.JSC$9337_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.bI(H,m27);G.bgIframeEl_=H;G.bgIframeEl_.className=G.getCssClass()+"-bg";_.QN(G.bgIframeEl_,!1);aw2(G.bgIframeEl_,0)}G.bgEl_||(G.bgEl_=G.JSC$10151_dom_.JSC$9337_createDom("DIV",G.getCssClass()+"-bg"),_.QN(G.bgEl_,!1))},Acd=function(G){G.tabCatcherElement_||(G.tabCatcherElement_=G.JSC$10151_dom_.createElement("SPAN"),_.QN(G.tabCatcherElement_,
!1),G.tabCatcherElement_.tabIndex=0,G.tabCatcherElement_.style.position="absolute")};
_.g=yI.prototype;_.g.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.g.canDecorate=function(G){return!!G&&G.tagName=="DIV"};
_.g.decorateInternal=function(G){yI.superClass_.decorateInternal.call(this,G);G=kR(this.getCssClass()).split(" ");ov(this.getElement(),G);NgR(this);Acd(this);this.getElement().tabIndex=0;_.QN(this.getElement(),!1)};
_.g.enterDocument=function(){this.bgIframeEl_&&_.KO(this.bgIframeEl_,this.getElement());_.KO(this.bgEl_,this.getElement());yI.superClass_.enterDocument.call(this);_.ME(this.tabCatcherElement_,this.getElement());this.focusHandler_=new aQ(this.JSC$10151_dom_.JSC$9335_document_);rs(this).listen(this.focusHandler_,"focusin",this.onFocus);x2R(this,!1)};
_.g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.S_(this.focusHandler_);yI.superClass_.exitDocument.call(this);_.Ku(this.bgIframeEl_);_.Ku(this.bgEl_);_.Ku(this.tabCatcherElement_)};
_.g.setVisible=function(G){if(G!=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_&&x2R(this,G),G){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10151_dom_.JSC$9335_document_.activeElement}catch(p){}this.updateModalAndBackground_();rs(this).listen(this.JSC$10151_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10151_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);L_7(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Sk(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){rs(this).unlisten(this.JSC$10151_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10151_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Sk(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var H=this.JSC$10151_dom_,Z=H.JSC$9335_document_.body,Q=H.JSC$9335_document_.activeElement||Z;if(!this.lastFocus_||this.lastFocus_==Z){this.lastFocus_=null;break a}(Q==Z||H.contains(this.getElement(),Q))&&this.lastFocus_.focus()}catch(p){}this.lastFocus_=
null}}};
var x2R=function(G,H){G.modalAriaVisibilityHelper_||(G.modalAriaVisibilityHelper_=new RMx(G.JSC$10151_element_,G.JSC$10151_dom_));G=G.modalAriaVisibilityHelper_;if(H){G.hiddenElements_||(G.hiddenElements_=[]);H=G.JSC$10172_dom_.getChildren(G.JSC$10172_dom_.JSC$9335_document_.body);for(var Z=0;Z<H.length;Z++){var Q=H[Z],p;if(p=Q!=G.JSC$10172_element_)p=Q.getAttribute("aria-hidden"),p=!(p==null||p==void 0?0:String(p));p&&(ws(Q,"hidden",!0),G.hiddenElements_.push(Q))}}else if(G.hiddenElements_){for(H=
0;H<G.hiddenElements_.length;H++)G.hiddenElements_[H].removeAttribute("aria-hidden");G.hiddenElements_=null}};
yI.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var L_7=function(G,H){G.bgIframeEl_&&_.QN(G.bgIframeEl_,H);G.bgEl_&&_.QN(G.bgEl_,H);_.QN(G.getElement(),H);_.QN(G.tabCatcherElement_,H)};
_.g=yI.prototype;_.g.onShow=function(){this.dispatchEvent("show")};
_.g.onHide=function(){L_7(this,!1);this.dispatchEvent("hide")};
_.g.isVisible=function(){return this.visible_};
_.g.focus=function(){this.focusElement_()};
_.g.resizeBackground_=function(){this.bgIframeEl_&&_.QN(this.bgIframeEl_,!1);this.bgEl_&&_.QN(this.bgEl_,!1);var G=this.JSC$10151_dom_.JSC$9335_document_;var H=_.jt(RN(this.JSC$10151_dom_.JSC$9335_document_)||window);var Z=Math.max(H.width,Math.max(G.body.scrollWidth,G.documentElement.scrollWidth));G=Math.max(H.height,Math.max(G.body.scrollHeight,G.documentElement.scrollHeight));this.bgIframeEl_&&(_.QN(this.bgIframeEl_,!0),_.hOw(this.bgIframeEl_,Z,G));this.bgEl_&&(_.QN(this.bgEl_,!0),_.hOw(this.bgEl_,
Z,G))};
_.g.reposition=function(){var G;if(_.wlN(this.getElement())=="fixed")var H=G=0;else H=Pl(this.JSC$10151_dom_),G=H.x,H=H.y;var Z=iEt(this.getElement());var Q=_.jt(RN(this.JSC$10151_dom_.JSC$9335_document_)||window);G=Math.max(G+Q.width/2-Z.width/2,0);H=Math.max(H+Q.height/2-Z.height/2,0);CO(this.getElement(),G,H);CO(this.tabCatcherElement_,G,H)};
_.g.onFocus=function(G){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():G.target==this.tabCatcherElement_&&vQ(this.focusElement_,0,this)};
_.g.focusElement_=function(){try{this.getElement().focus()}catch(G){}};
_.g.disposeInternal=function(){_.S_(this.popupShowTransition_);this.popupShowTransition_=null;_.S_(this.popupHideTransition_);this.popupHideTransition_=null;_.S_(this.bgShowTransition_);this.bgShowTransition_=null;_.S_(this.bgHideTransition_);this.bgHideTransition_=null;yI.superClass_.disposeInternal.call(this)};var x5=function(G,H,Z){yI.call(this,H,Z);this.JSC$10182_class_=G||"modal-dialog";this.buttons_=(new oQ).addButton(Eid,!0).addButton(YWt,!1,!0)};
_.AB(x5,yI);_.g=x5.prototype;_.g.escapeToCancel_=!0;_.g.hasTitleCloseButton_=!0;_.g.modal_=!0;_.g.draggable_=!0;_.g.backgroundElementOpacity_=.5;_.g.title_="";_.g.JSC$10184_dragger_=null;_.g.JSC$10184_disposeOnHide_=!1;_.g.titleEl_=null;_.g.titleTextEl_=null;_.g.titleTextId_=null;_.g.titleCloseEl_=null;_.g.contentEl_=null;_.g.buttonEl_=null;_.g.getCssClass=function(){return this.JSC$10182_class_};
_.g.setTitle=function(G){this.title_=G;this.titleTextEl_&&_.Pn(this.titleTextEl_,G)};
_.g.getTitle=function(){return this.title_};
_.g.getContent=function(){return""};
_.g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var F_p=function(G){G.getElement()||G.render();return G.getElement()};
x5.prototype.getBackgroundElement=function(){this.getElement()||this.render();return x5.superClass_.getBackgroundElement.call(this)};
var b6d=function(G,H){G.backgroundElementOpacity_=H;G.getElement()&&(H=G.getBackgroundElement())&&aw2(H,G.backgroundElementOpacity_)};
x5.prototype.setDraggable=function(G){this.draggable_=G;Gh7(this,G&&this.inDocument_)};
x5.prototype.handleDrag=function(){};
var Gh7=function(G,H){var Z=kR(G.JSC$10182_class_+"-title-draggable").split(" ");G.getElement()&&(H?ov(G.titleEl_,Z):WIN(G.titleEl_,Z));H&&!G.JSC$10184_dragger_?(H=new _.hq(G.getElement(),G.titleEl_),G.JSC$10184_dragger_=H,ov(G.titleEl_,Z),_.tt(G.JSC$10184_dragger_,"start",G.setDraggerLimits_,!1,G),_.tt(G.JSC$10184_dragger_,"drag",G.handleDrag,!1,G)):!H&&G.JSC$10184_dragger_&&(G.JSC$10184_dragger_.dispose(),G.JSC$10184_dragger_=null)};
_.g=x5.prototype;
_.g.JSC$10153_createDom=function(){x5.superClass_.JSC$10153_createDom.call(this);var G=this.getElement(),H=this.JSC$10151_dom_;this.titleTextId_=this.getId();var Z=this.getId()+".contentEl";this.titleEl_=H.JSC$9337_createDom("DIV",this.JSC$10182_class_+"-title",this.titleTextEl_=H.JSC$9337_createDom("SPAN",{className:this.JSC$10182_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=H.JSC$9337_createDom("SPAN",this.JSC$10182_class_+"-title-close"));k5d(G,this.titleEl_,this.contentEl_=
H.JSC$9337_createDom("DIV",{className:this.JSC$10182_class_+"-content",id:Z}),this.buttonEl_=H.JSC$9337_createDom("DIV",this.JSC$10182_class_+"-buttons"));W_t(this.titleTextEl_,"heading");W_t(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;ws(this.titleCloseEl_,"label","Close");W_t(G,"dialog");ws(G,"labelledby",this.titleTextId_||"");_.QN(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(G=this.buttons_,G.JSC$10185_element_=this.buttonEl_,G.render());_.QN(this.buttonEl_,!!this.buttons_);
b6d(this,this.backgroundElementOpacity_)};
_.g.decorateInternal=function(G){x5.superClass_.decorateInternal.call(this,G);G=this.getElement();var H=this.JSC$10182_class_+"-content";this.contentEl_=cn(document,null,H,G)[0];this.contentEl_||(this.contentEl_=this.JSC$10151_dom_.JSC$9337_createDom("DIV",H),G.appendChild(this.contentEl_));H=this.JSC$10182_class_+"-title";var Z=this.JSC$10182_class_+"-title-text",Q=this.JSC$10182_class_+"-title-close";(this.titleEl_=cn(document,null,H,G)[0])?(this.titleTextEl_=cn(document,null,Z,this.titleEl_)[0],
this.titleCloseEl_=cn(document,null,Q,this.titleEl_)[0]):(this.titleEl_=this.JSC$10151_dom_.JSC$9337_createDom("DIV",H),G.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=KT7(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.fO("SPAN",{className:Z,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;ws(G,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10151_dom_.JSC$9337_createDom("SPAN",Q),this.titleEl_.appendChild(this.titleCloseEl_));_.QN(this.titleCloseEl_,this.hasTitleCloseButton_);H=this.JSC$10182_class_+"-buttons";(this.buttonEl_=cn(document,null,H,G)[0])?(this.buttons_=new oQ(this.JSC$10151_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10151_dom_.JSC$9337_createDom("DIV",H),G.appendChild(this.buttonEl_),this.buttons_&&(G=this.buttons_,G.JSC$10185_element_=this.buttonEl_,G.render()),_.QN(this.buttonEl_,
!!this.buttons_));b6d(this,this.backgroundElementOpacity_)};
_.g.enterDocument=function(){x5.superClass_.enterDocument.call(this);rs(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);rs(this).listen(this.buttonEl_,"click",this.onButtonClick_);Gh7(this,this.draggable_);rs(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var G=this.getElement();W_t(G,"dialog");this.titleTextEl_.id!==""&&ws(G,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){G=this.JSC$10151_dom_;
var H=this.getBackgroundElement();G.removeNode(this.bgIframeEl_);G.removeNode(H)}this.isVisible()&&x2R(this,!1)}};
_.g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Gh7(this,!1);x5.superClass_.exitDocument.call(this)};
_.g.setVisible=function(G){G!=this.isVisible()&&(this.inDocument_||this.render(),x5.superClass_.setVisible.call(this,G))};
_.g.onShow=function(){x5.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.g.onHide=function(){x5.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10184_disposeOnHide_&&this.dispose()};
_.g.setDraggerLimits_=function(){var G=this.JSC$10151_dom_.JSC$9335_document_,H=_.jt(RN(G)||window),Z=Math.max(G.body.scrollWidth,H.width);G=Math.max(G.body.scrollHeight,H.height);var Q=iEt(this.getElement());_.wlN(this.getElement())=="fixed"?this.JSC$10184_dragger_.limits=new rP(0,0,Math.max(0,H.width-Q.width),Math.max(0,H.height-Q.height)):this.JSC$10184_dragger_.limits=new rP(0,0,Z-Q.width,G-Q.height)};
_.g.onTitleCloseClick_=function(){H9t(this)};
var H9t=function(G){if(G.hasTitleCloseButton_){var H=G.buttons_,Z=H&&H.cancelButton_;Z?(H=H.get(Z),G.dispatchEvent(new mN(Z,H))&&G.setVisible(!1)):G.setVisible(!1)}},sON=function(G){G.hasTitleCloseButton_=!1;
G.titleCloseEl_&&_.QN(G.titleCloseEl_,G.hasTitleCloseButton_)};
x5.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;x5.superClass_.disposeInternal.call(this)};
x5.prototype.onButtonClick_=function(G){a:{for(G=G.target;G!=null&&G!=this.buttonEl_;){if(G.tagName=="BUTTON")break a;G=G.parentNode}G=null}if(G&&!G.disabled){G=G.name;var H=this.buttons_.get(G);this.dispatchEvent(new mN(G,H))&&this.setVisible(!1)}};
x5.prototype.onKey_=function(G){var H=!1,Z=!1,Q=this.buttons_,p=G.target;if(G.type=="keydown")if(this.escapeToCancel_&&G.keyCode==27){var l=Q&&Q.cancelButton_;p=p.tagName=="SELECT"&&!p.disabled;l&&!p?(Z=!0,H=Q.get(l),H=this.dispatchEvent(new mN(l,H))):p||(H=!0)}else{if(G.keyCode==9&&G.shiftKey&&p==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(D){}vQ(this.resetBackwardTabWrap_,0,this)}}else if(G.keyCode==13){if(p.tagName=="BUTTON"&&!p.disabled)l=p.name;
else if(p==this.titleCloseEl_)H9t(this);else if(Q){var q=Q.defaultButton_,u;if(u=q)a:{u=Mj("BUTTON",Q.JSC$10185_element_);for(var B,t=0;B=u[t];t++)if(B.name==q||B.id==q){u=B;break a}u=null}p=(p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="A")&&!p.disabled;!u||u.disabled||p||(l=q)}l&&Q&&(Z=!0,H=this.dispatchEvent(new mN(l,String(Q.get(l)))))}else p!=this.titleCloseEl_||G.keyCode!=32&&G.key!=" "||H9t(this);if(H||Z)G.stopPropagation(),G.preventDefault();H&&this.setVisible(!1)};
var mN=function(G,H){this.type="dialogselect";this.key=G;this.caption=H};
_.AB(mN,_.DA);var oQ=function(G){Oa.call(this);G||r3();this.cancelButton_=this.JSC$10185_element_=this.defaultButton_=null};
_.AB(oQ,Oa);_.g=oQ.prototype;_.g.clear=function(){Oa.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.g.set=function(G,H,Z,Q){Oa.prototype.set.call(this,G,H);Z&&(this.defaultButton_=G);Q&&(this.cancelButton_=G);return this};
_.g.addButton=function(G,H,Z){return this.set(G.key,G.caption,H,Z)};
_.g.render=function(){if(this.JSC$10185_element_){_.Is(this.JSC$10185_element_,qie);var G=r3(this.JSC$10185_element_);this.forEach(function(H,Z){H=G.JSC$9337_createDom("BUTTON",{name:Z},H);Z==this.defaultButton_&&(H.className="goog-buttonset-default");this.JSC$10185_element_.appendChild(H)},this)}};
_.g.decorate=function(G){if(G&&G.nodeType==1){this.JSC$10185_element_=G;G=Mj("BUTTON",this.JSC$10185_element_);for(var H,Z,Q,p=0;H=G[p];p++)if(Z=H.name||H.id,Q=KT7(H)||H.value,Z){var l=p==0;this.set(Z,Q,l,H.name=="cancel");l&&_.O6(H,"goog-buttonset-default")}}};
_.g.getElement=function(){return this.JSC$10185_element_};
var Eid={key:"ok",caption:"OK"},YWt={key:"cancel",caption:"Cancel"},Z92={key:"yes",caption:"Yes"},QOa={key:"no",caption:"No"},pft={key:"save",caption:"Save"},lQa={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new oQ).addButton(Eid,!0,!0),(new oQ).addButton(Eid,!0).addButton(YWt,!1,!0),(new oQ).addButton(Z92,!0).addButton(QOa,!1,!0),(new oQ).addButton(Z92).addButton(QOa,!0).addButton(YWt,!1,!0),(new oQ).addButton(lQa).addButton(pft).addButton(YWt,!0,!0));_.AB(FKu,x5);_.AB(b$u,Lu);var gkN=_.CM(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),IQT=_.CM(["//apis.google.com/js/rpc.js"]),IaR=_.VB(gkN),gNf=_.VB(IQT),Hg3=null;var E1=function(G,H){_.$f.call(this);this.JSC$10194_element_=G;G=_.gM(this.JSC$10194_element_)?this.JSC$10194_element_:this.JSC$10194_element_?this.JSC$10194_element_.body:null;this.isRtl_=!!G&&_.ya4(G);this.listenKey_=_.tt(this.JSC$10194_element_,_.FW?"DOMMouseScroll":"mousewheel",this,H)};
_.AB(E1,_.$f);E1.prototype.handleEvent=function(G){var H=0,Z=0,Q=G.event_;Q.type=="mousewheel"?(G=qla(-Q.wheelDelta),Q.wheelDeltaX!==void 0?(H=qla(-Q.wheelDeltaX),Z=qla(-Q.wheelDeltaY)):Z=G):(G=Q.detail,G>100?G=3:G<-100&&(G=-3),Q.axis!==void 0&&Q.axis===Q.HORIZONTAL_AXIS?H=G:Z=G);typeof this.maxDeltaX_==="number"&&(H=_.cM(H,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(Z=_.cM(Z,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(H=-H);H=new SlN(G,Q,H,Z);this.dispatchEvent(H)};
var qla=function(G){return _.b$&&(_.oRw||UXd)&&G%40!=0?G:G/40};
E1.prototype.disposeInternal=function(){E1.superClass_.disposeInternal.call(this);ub(this.listenKey_);this.listenKey_=null};
var SlN=function(G,H,Z,Q){_.dl.call(this,H);this.type="mousewheel";this.detail=G;this.deltaX=Z;this.deltaY=Q};
_.AB(SlN,_.dl);_.yj=function(G){var H="instance_";if(G.instance_&&G.hasOwnProperty(H))return G.instance_;H=new G;return G.instance_=H};var lav;var utw=_.CM(["https://about:blank"]),Bjp=_.CM(['javascript:""']),JZG=_.CM(["about:blank"]);_.AB(pb,FKu);_.g=pb.prototype;_.g.JSC$10202_url_="";_.g.JSC$10202_iframe_=null;_.g.iframeLoaded_=!1;_.g.loadedFired_=!1;_.g.callback_=function(){};
_.g.enterDocument=function(){pb.superClass_.enterDocument.call(this);Q1j(this.getBackgroundElement(),rs(this))};
_.g.render=function(G){var H=this;pb.superClass_.render.call(this,G);this.useGapi_?Jcx(this.iframeManager_,window).then(function(){return tuT(H)}).then(null,function(){H.callback_({action:"error"})}):kh2(this)};
var tuT=function(G){var H=G.JSC$10151_dom_.JSC$9337_createDom("div",["picker-dialog-content","picker-frame"]);_.QN(H,!1);G.getContentElement().appendChild(H);return tnG(G.iframeManager_,H,function(Z){var Q=PYp(Z["iframe-command"]);switch(Q.getCommand()){case 1:Z=G.callback_;Q=_.dt(Q,Gw,2);var p="";switch(Q.getStatus()){case 2:p="cancel";break;case 1:p="picked";break;case 3:p="error"}var l=_.JR(Q,tg,2,_.tR(tpx));Q=l.length===0?{action:p}:xKT(l,p,_.dt(Q,Ku4,7));Z.call(G,Q);G.setVisible(!1);break;case 4:sON(G);
G.callback_({action:"loaded"});break;case 7:case 8:Z=G.callback_;a:{p=Q.getCommand();l=_.dt(Q,Gw,2);switch(p){case 7:p="uploadScheduled";break;case 8:p="uploadStateChange";break;default:Q={};break a}Q=_.JR(l,tg,2,_.tR(tpx));if(Q.length===0)Q={action:p};else{var q=_.dt(l,Ku4,7);l=q&&_.nY(q,1);q=CuR(q);Q=aYa(Q,p,l,q)}}Z.call(G,Q)}},G.JSC$10202_url_,G.targetId_,G.rpcToken_).then(function(Z){G.JSC$10202_iframe_=Z.getIframeEl();
D5p(G);_.QN(G.JSC$10202_iframe_.parentElement,!0);_.O6(G.getElement(),"picker-dialog");d5R(G);return Z})},kh2=function(G){G.JSC$10202_iframe_=G.JSC$10151_dom_.JSC$9337_createDom("IFRAME",{id:G.targetId_,
name:G.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.bI(G.JSC$10202_iframe_,evw(G));_.O6(G.getElement(),"picker-dialog");G.getContentElement().appendChild(G.JSC$10202_iframe_);rs(G).listen(G.JSC$10202_iframe_,"load",function(){return void D5p(G)});
G.JSC$10202_iframe_.src=G.JSC$10202_url_;d5R(G)},Vux=function(G){nkG(G,(0,_.Cu)(function(H){H.setAuthToken(this.targetId_,this.rpcToken_)},G))},d5R=function(G){var H=_.sv(_.HS(G.JSC$10202_url_),"title");
H&&G.setTitle(H)},evw=function(G){return _.X3v("Internet Explorer")>=7&&_.le(G.JSC$10202_url_,"https")?_.VB(utw):_.Yj?_.VB(Bjp):_.VB(JZG)},D5p=function(G){Vux(G);
G.iframeLoaded_=!0;G.JSC$10202_iframe_.tabIndex=0;G.isVisible()&&G.focus()};
pb.prototype.handleKeydown_=function(G){G.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),G.stopPropagation(),G.preventDefault())};
var nkG=function(G,H){var Z=G.JSC$10200_gadgetsDomHelper_;s1f(function(){H(Z.getWindow().gadgets.rpc)},Z)};
pb.prototype.setUrl=function(G){G=_.Z0(new _.C9(G),"rpcService",this.targetId_);_.Z0(G,"rpctoken",this.rpcToken_);_.Z$(G,"rpctoken="+this.rpcToken_);_.FQ(G,"https");this.JSC$10202_url_=G.toString();this.JSC$10202_iframe_&&(this.JSC$10202_iframe_.src=this.JSC$10202_url_)};
var $5G=function(G,H){G.callback_=H;nkG(G,(0,_.Cu)(function(Z){Z.register(this.targetId_,(0,_.Cu)(this.handlePickerAction_,this))},G))};
pb.prototype.handlePickerAction_=function(G){var H=G.action;H=="loaded"&&(this.loadedFired_=!0,Xf2(this,new Ydj(this.isVisible())),cZ2(this),sON(this),rs(this).unlisten(this.JSC$10151_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10202_iframe_.tabIndex=0);H!="picked"&&H!="cancel"||this.setVisible(!1);this.callback_(G)};
var cZ2=function(G){G.JSC$10202_appId_&&Xf2(G,new EMj(G.JSC$10202_appId_,window.location.protocol+"//"+window.location.host))};
pb.prototype.setRelayUrl=function(G){nkG(this,(0,_.Cu)(function(H){H.setRelayUrl(this.targetId_,G)},this))};
var Xf2=function(G,H){G.useGapi_&&niw(H,G.iframeManager_).then(null,function(){G.callback_({action:"error"})});
nkG(G,(0,_.Cu)(function(Z){Z.call(this.targetId_,"picker",null,H)},G))};
pb.prototype.resizePicker_=function(){var G=RN(this.JSC$10151_dom_.JSC$9335_document_)||window;if(_.sv(_.HS(this.JSC$10202_url_),"ignoreLimits")=="true")G=new _.M4(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.sv(_.HS(this.JSC$10202_url_),"shadeDialog")=="true"){var H=F_p(this);H=orG(H);var Z=_.jt(G);G=Z.width-80;Z=Z.height-40;H&&(G-=H.left?H.left:0,G-=H.right?H.right:0,Z-=H.top?H.top:0,Z-=H.bottom?H.bottom:0);G=new _.M4(G>0?G:0,Z>0?Z:0)}else(H=this.preferredDialogWidth_)?(H=Math.max(320,
Math.min(1051,H)),(Z=this.preferredDialogHeight_)||(Z=_.jt(G).height*.85),Z=Math.max(480,Math.min(650,Z))):(H=_.jt(G),Z=H.width*.618,Z=Z<H.height?Math.round(Math.max(480,Math.min(650,Z*.85))):Math.round(Math.max(480,Math.min(650,H.height*.85))),H=Math.round(Z/.618)),G=_.jt(G),H=Math.min(H,Math.max(G.width,320)),Z=Math.min(Z,Math.max(G.height,480)),G=new _.M4(H,Z);_.hOw(this.getContentElement(),G);this.reposition()};
pb.prototype.reposition=function(){if(_.sv(_.HS(this.JSC$10202_url_),"shadeDialog")=="true"){var G=iEt(this.getElement()),H=_.jt(this.JSC$10151_dom_.getWindow());G=Math.floor(H.width/2-G.width/2);H=F_p(this);if(H=orG(H)){var Z=H.left?H.left:0;Z+=H.right?H.right:0;G=Math.floor(G-Z/2)}G=G>0?G:0;H=Pl(this.JSC$10151_dom_).y;CO(this.getElement(),G,H)}else pb.superClass_.reposition.call(this)};
pb.prototype.setVisible=function(G){if(G!=this.isVisible()&&this.autoSizeDialog_){var H=this.JSC$10151_dom_.getWindow();G?(this.resizePicker_(),rs(this).listen(H,"resize",this.resizePicker_),this.iframeLoaded_||rs(this).listen(H,"keydown",this.handleKeydown_)):(rs(this).unlisten(H,"resize",this.resizePicker_),this.iframeLoaded_||rs(this).unlisten(H,"keydown",this.handleKeydown_))}pb.superClass_.setVisible.call(this,G);Xf2(this,new Ydj(G))};
pb.prototype.focus=function(){pb.superClass_.focus.call(this);if(this.JSC$10202_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10202_iframe_.focus()}catch(G){}};var B$=function(G,H){H=H===void 0?pb:H;Lu.call(this,G);this.pickerConstructor=H;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(G=window.location.origin)||(G=window.location.protocol+"//"+window.location.host);G&&this.urlParamMap_.set("origin",G);this.postProcessors_=[]};
_.T(B$,b$u);B$.prototype.JSC$10207_disposeOnHide_=!1;
B$.prototype.build=function(){this.JSC$10108_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10108_appId_);this.getRelayUrl()||this.setRelayUrl(_.Hy(_.Z$(_.sa(_.HS(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var G=new this.pickerConstructor(Tjt(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);G.JSC$10184_disposeOnHide_=this.JSC$10207_disposeOnHide_;
G.JSC$10202_appId_=this.JSC$10108_appId_;G.loadedFired_&&cZ2(G);$5G(G,this.callback_);return G};
var fQa=function(G){G.urlParamMap_.set("multiselectEnabled","true");return G};
_.g=B$.prototype;_.g.getHeight=function(){return this.dialogHeight_};
_.g.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.g.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.g.getTitle=function(){return this.urlParamMap_.get("title")};
_.g.getWidth=function(){return this.dialogWidth_};
var vkR=function(G){G.JSC$10207_disposeOnHide_=void 0;return G};
B$.prototype.setRelayUrl=function(G){this.urlParamMap_.set("parent",G);return this};
var Wjd=function(G,H){G.urlParamMap_.set("selectButtonLabel",H);return G};
B$.prototype.setSize=function(G,H){this.dialogWidth_=G;this.dialogHeight_=H;return this};
B$.prototype.setTitle=function(G){this.urlParamMap_.set("title",G);return this};
var Tjt=function(G){G.postProcessors_.length&&G.urlParamMap_.set("pp",JSON.stringify(G.postProcessors_));G.urlParamMap_.set("nav",Put(G.nav_));var H=new _.C9(G.getBaseUrl());G.urlParamMap_.forEach(function(Z,Q){_.Z0(H,Q,Z)});
return H};var Mut=function(G,H){G.name!==void 0?(this.name=G.name,this.code=zvw[G.name]):(this.code=G=G.code,this.name=Kj7(G));_.sj.call(this,GOx("%s %s",this.name,H))};
_.AB(Mut,_.sj);var Kj7=function(G){var H=_.oN.findKey(zvw,function(Z){return G==Z});
if(H===void 0)throw Error("hb`"+G);return H},Ua={},zvw=(Ua.AbortError=3,Ua.EncodingError=5,Ua.InvalidModificationError=9,Ua.InvalidStateError=7,Ua.NotFoundError=1,Ua.NotReadableError=4,Ua.NoModificationAllowedError=6,Ua.PathExistsError=12,Ua.QuotaExceededError=10,Ua.SecurityError=2,Ua.SyntaxError=8,Ua.TypeMismatchError=11,Ua);var jO_=function(G,H){_.DA.call(this,G.type,H);this.event_=G};
_.AB(jO_,_.DA);var PJN=function(G,H,Z){Z===void 0&&(Z=G.size);return G.slice?G.slice(H,Z):null};var uqW=new WeakMap,Sib=function(G,H){G=[G];for(var Z=H.length-1;Z>=0;--Z)G.push(typeof H[Z],H[Z]);return G.join("\v")};_.J3M(function(){if(!_.Qf.Blob)return!1;var G=new Uint8Array(100);try{var H=new Blob([G])}catch(Z){return!1}return H.size!=100?!1:!0});
var rZa=_.J3M(function(){if(!_.Qf.Blob)return!1;var G=new Uint8Array(100);try{var H=new Blob([G])}catch(Z){return!1}return PJN(H,0,1)===null?!1:!0});_.Qf.U3bHHf!=null||(_.Qf.U3bHHf=0);_.Qf.U3bHHf++;_.wfw=new WeakMap;_.hvG=new WeakMap;var kBb={};var IM=void 0;var dh3=Symbol("pb");var Mdf=uV("WizInjectionContext_Dispatcher");var te=Symbol("qb");var Wt,rO;Wt=function(){this.afterRenderCallbacks=null};
_.evW=Symbol("rb");rO=function(G){this.props=G;this.__unmounted=!1};
rO.prototype.didPatch=function(){};
rO.prototype.didMount=function(){};
rO.prototype.didUnmount=function(){};
rO.prototype.didUpdate=function(){};_.faM=uV("WizInjectionContext_RootElement");var WIj=uV("WizInjectionContext_AppContext"),vNW=uV("WizInjectionContext_ModelRootElement"),zIX=uV("WizInjectionContext_RendererData"),KIU=uV("WizInjectionContext_InjectingConstructor"),TtM=uV("WizInjectionContext_AsyncDeps"),j1M={};var igW=!1;var oNX={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:hjw,enableLazyTsx:Cep,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:w37,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Js=Object.assign({},{attributes:{},handleError:function(G){throw G;}},oNX);var CJ_=Symbol("vb"),jg=Symbol("wb"),GUU=Symbol("xb"),Fee=Symbol("yb"),gPe=Cw(function(G){return ts(G)&&CJ_ in G});var LIu=Symbol("zb"),RQ={},A3f=(RQ[LIu]=!0,RQ.debugName="[component]",RQ.getComponentStack=function(){for(var G=[],H=this;H;)ENe(H)&&G.push(H.debugName),H=H.parent;return G},RQ.registerSignal=function(){},RQ.registerEffect=function(){},RQ);var kF=null,dn=!1,nb=1,XM=Symbol("Db"),zy={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 NQ=Symbol("Eb"),Aq=Symbol("Fb"),$F=Symbol("Gb"),lvj=Object.assign({},zy,{value:NQ,dirty:!0,error:null,equal:Yif,kind:"computed",producerMustRecompute:function(G){return G.value===NQ||G.value===Aq},
producerRecomputeValue:function(G){if(G.value===Aq)throw Error("Z");var H=G.value;G.value=Aq;var Z=ZT2(G),Q=!1;try{var p=G.computation();D0(null);Q=H!==NQ&&H!==$F&&p!==$F&&G.equal(H,p)}catch(l){p=$F,G.error=l}finally{D0(Z),G&&pWj(G)}Q?G.value=H:(G.value=p,G.version++)}});Object.assign({},zy,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var SNe=function(){throw Error();};var BM3=null,Ivb=Object.assign({},zy,{equal:Yif,value:void 0,kind:"signal"});var JLj=Object.assign({},zy,{value:NQ,dirty:!0,error:null,equal:Yif,kind:"linkedSignal",producerMustRecompute:function(G){return G.value===NQ||G.value===Aq},
producerRecomputeValue:function(G){if(G.value===Aq)throw Error("Z");var H=G.value;G.value=Aq;var Z=ZT2(G);try{var Q=G.source();var p=G.computation(Q,H===NQ||H===$F?void 0:{source:G.sourceValue,value:H});G.sourceValue=Q}catch(l){p=$F,G.error=l}finally{D0(Z),G&&pWj(G)}H!==NQ&&p!==$F&&G.equal(H,p)?G.value=H:(G.value=p,G.version++)}});Object.assign({},zy,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(G){G.schedule!==null&&G.schedule(G.ref)},
cleanupFn:function(){}});var D1W=Symbol("Hb"),fb=Symbol("Ib");var vS=Array.isArray;var fvM;var i9a={},WeU=TMu(Object.assign({},{consumerAllowSignalWrites:!0},i9a)),Kl=TMu(Object.assign({},{consumerAllowSignalWrites:!0},i9a));var PS=0,rn=!1,x_=function(){this.queue=new Set};
x_.prototype.schedule=function(G){this.queue.add(G)};
x_.prototype.remove=function(G){this.queue.delete(G)};
x_.prototype.clear=function(){this.queue.clear()};
var x12=Symbol("Nb"),zlf=Symbol("Ob"),Lp=function(){x_.apply(this,arguments)};
_.T(Lp,x_);Lp.prototype.flush=function(){if(this.queue.size){rn=!0;for(var G=_.I(this.queue),H=G.next();!H.done;H=G.next()){H=H.value;this.queue.delete(H);try{H.run()}catch(Z){O94(Z)}}rn=!1}};
var aQ2=function(){Lp.apply(this,arguments)};
_.T(aQ2,Lp);var Keu=new aQ2,yZa=function(){Lp.apply(this,arguments)};
_.T(yZa,Lp);yZa.prototype.schedule=function(G){return _.S(function(H){if(H.nextAddress==1)return H.yield(Promise.resolve(),2);G.run();_.K0(H)})};
yZa.prototype.enqueue=function(G){this.queue.add(G)};
var Le2=new yZa,Ea=function(){x_.apply(this,arguments)};
_.T(Ea,x_);Ea.prototype.flush=function(){this.queue.size&&IYM(this.queue)};
var okw=function(){Ea.apply(this,arguments)};
_.T(okw,Ea);okw.prototype.schedule=function(G){G.hasRun?this.queue.add(G):G.run()};
okw.prototype.flush=function(){if(this.queue.size)if(Js.flushRenderEffectsDuringRender){var G=this.queue;this.queue=new Set;IYM(G)}else IYM(this.queue)};
var YN3=new okw,m54=function(){Ea.apply(this,arguments)};
_.T(m54,Ea);m54.prototype.schedule=function(G){return _.S(function(H){if(H.nextAddress==1)return H.yield(Promise.resolve(),2);G.run();_.K0(H)})};
m54.prototype.enqueue=function(G){this.queue.add(G)};
var H1u=new m54,U5d=function(){Ea.apply(this,arguments)};
_.T(U5d,Ea);var bTj=new U5d,Z1f=[YN3,Keu,bTj],lYb=[Le2,H1u],Rvd=[YN3,bTj,H1u],qSj=[].concat(_.OP(Z1f),_.OP(lYb)),Njw=[];BM3=function(){pxX();for(var G=_.I(Njw),H=G.next();!H.done;H=G.next())H=H.value,H()};
var O94=pW;var Cb=Symbol("Pb");var hs=null,BNo,Jku=null,tsj;var Y_={},AZd=Object.assign({},zy,(Y_[CJ_]=!0,Y_.effectType=jg,Y_.isResettableContext=!0,Y_.hasRun=!1,Y_.effectFn=null,Y_.consumerIsAlwaysLive=!0,Y_.consumerAllowSignalWrites=!0,Y_.consumerMarkedDirty=sAU,Y_.kind="effect",Y_.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(dn)throw Error("Qb");this.dirty=!1;if(!this.hasRun||G_f(this)){this.hasRun=!0;c3b(this);var G=_.qf(this),H=ZT2(this);Uhf("effectRun",this.debugName);try{aM(this.effectFn,this.componentStack,this)}catch(Z){throw Js.enableContextBasedComponentStacks&&
Ov(Z),Z;}finally{RIj("effectRun",this.debugName),D0(H),this&&pWj(this),_.qf(G)}}}},Y_.componentStack=void 0,Y_.debugName="[effect]",Y_[Symbol.dispose]=function(){if(eg(this))for(var G=this.producers;G!==void 0;)G=Qp2(G);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;G=_.I(Rvd);for(var H=G.next();!H.done;H=G.next())H.value.remove(this);XPM(this)},Y_));var dKo=Object.assign({},AZd,{effectType:GUU});var Vsu=Symbol("Rb");var $KR=Object.assign({},AZd,{effectType:jg});var Z6f=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 TNu={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},ckf=
{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}]}},nqj={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},WgR=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],vPf={"*":{async:1,dir:0,loading:2,target:3}};var x5G=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,FO={},Kge=(FO[1]=null,FO[2]=function(G,H){return H instanceof xY?Fx(H):oy.toString()},FO[3]=function(G,H){return Cq(H)?_.iI(H):x5G.test(String(H))?String(H):oy.toString()},FO[4]=function(G,H){return H instanceof Kq?_.PO(H):oy.toString()},FO[5]=function(G,H){return String(H)},FO[7]=null,FO[8]=null,FO[10]=null,FO);var TuU=Symbol("Ub");var nWR=function(G){var H=Ljp,Z=G,Q="",p="",l=1;G<0&&(G=-G);if(G===Infinity)G=(Infinity*Math.sign(Z)).toString();else{for(var q=0;q<Ekw.length;q++){var u=Ekw[q];l=H[u];if(G>=l||l<=1&&G>.1*l){Q=u;break}}Q?(Q+="B",p=" "):l=1;G=Math.round(Z/l*10)/10+p+Q}return G},Ekw="Y Z E P T G M K  m u n".split(" "),Ljp={"":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};_.YlR=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 $I={};RegExp.prototype.hasOwnProperty("sticky");var pEu=function(G){G=String(G);for(var H=function(Q,p,l){for(var q=Math.min(p.length-l,Q.length),u=0;u<q;u++){var B=p[l+u];if(Q[u]!==("A"<=B&&B<="Z"?B.toLowerCase():B))return!1}return!0},Z=0;(Z=G.indexOf("<",Z))!=-1;){if(H("\x3c/script",G,Z)||H("\x3c!--",G,Z))return"zSoyz";
Z+=1}return G};var YF={default:"__default"};var hkR=Object.prototype.hasOwnProperty;Puu.prototype=Object.create(null);var uu=O1M();var qV=null;var EPu=function(G){this.created=[];this.deleted=[];this.node=G};var YSo=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var G=this,H=G;G;)H=G,G=G.parentNode;return H};var ykf=function(G,H){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=G;this.key=H;this.text=void 0};var Z2=null,QP=null,Ht=null,lW=null,NNj=[],Rk3=mKj,gO=[],Iz=[],cWf=function(G){return Fgo(function(H,Z,Q){Ht=QP=H;QP=null;Z(Q);UKe(null);QP=Ht;Ht=Ht.parentNode;return H},G)}(),XVU=function(G){return Fgo(function(H,Z,Q){var p={nextSibling:H};
QP=p;Z(Q);Ht&&UKe(H.nextSibling);return p===QP?null:QP},G)}();var SK=[],GER=0;var uW=new Puu;var ek=new Puu;var Fj4=O1M(),IZo=Fj4[YF.default],giW=Fj4.style,QZb=["focusin","focusout"],urf="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var YWu=function(){},aZe=function(){},sOj=function(){},b63=function(){};var Je=Symbol("bc");var D23,kEM=tnf;var TI=Symbol("cc");var H9u=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(" ")),
GhX=new Set(["a","font","script","style","title"]);_.ct={setUp:K_R,tearDown:K_R,log:K_R,logNodeRange:K_R,graft:function(G,H){H()}};var MV={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var jK=null,Pt=function(G,H){rO.call(this,G);var Z=this;this.functionComponent=H;this.hooks=[];this.hookCounter=0;this.disposeEffects=mf(function(Q){Z.effectContext=Q;_.oM(function(){U2X(Z,Z.el)})},Js.alwaysTrackContexts||!!IM)};
_.T(Pt,rO);Pt.prototype.render=function(G){var H=jK;jK=this;this.hookCounter=0;var Z=D0(Kl),Q=_.qf(this.effectContext);try{return Uhf("render",this.componentName),this.functionComponent(G)}finally{RIj("render",this.componentName),_.qf(Q),D0(Z),jK=H}};
_.u4.Object.defineProperties(Pt.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return SSb(this.functionComponent)}}});var Z9v=Symbol("qc"),L_X=function(G,H,Z){this.afterRenderCallbacks=null;this.kind=G;this.props=H;this.children=Z};
_.T(L_X,Wt);L_X.prototype.render=function(){var G=x2j(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var H=_.I(this.afterRenderCallbacks),Z=H.next();!Z.done;Z=H.next())Z=Z.value,G=Z(G);return G};
L_X.prototype.getChildren=function(){return this.children};var pfu=[];SNe=function(G){throw Error("ob`"+G.debugName);};
(function(){var G=qV;qV=function(H){G==null||G(H);lQb(H)}})();Object.assign({},AZd,{effectType:jg,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var G=this.elementRef;var H;G.element!=null||(G.element=(H=G.document.getElementById(G.value))!=null?H:void 0);G=G.element;for(H=this.attributes;H;){var Z=H.signal();Z!==H.prevValue&&(H.prevValue=Z,H.namespace===1?G[H.name]=Z:Z6f.has(H.name)?Ev(G,H.name,Z?"":null):Ev(G,H.name,Z));H=H.next}}});_.wO.debugName="tbhMcf";_.he.debugName="zyMFzb";Object.assign({},AZd,{effectType:jg,hasRun:!0});_.k.debugName="RlDudd";var gkj={nonNullableCondIsNull:function(){return Error("uc")}};var tuU=function(){this.map=new Map};
tuU.prototype.push=function(G,H){var Z=this.map;Z.has(G)&&(this.multi||(this.multi=new Map),this.multi.set(H,Z.get(G)));Z.set(G,H)};
tuU.prototype.pop=function(G){var H=this.map,Z=H.get(G),Q;Z!==void 0&&((Q=this.multi)==null?0:Q.has(Z))?(H.set(G,this.multi.get(Z)),this.multi.delete(Z)):H.delete(G);return Z};_.Cl.debugName="nsTGHd";_.iW.debugName="vI1rtf";_.Vuo={OUT_OF_ORDER_HOOK_CALL:function(G){return Error("vc`"+G)},
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(G,H){return Error("zc`"+((H===void 0?0:H)?"IDOM":"Reactive")+"`"+(OJ(G)?G.description:G))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(G,H){return Error("Ac`"+(OJ(G)?G.description:G)+"`"+H)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(G){return Error("Bc`"+(OJ(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED:function(G){return Error("Cc`"+(OJ(G)?G.description:G))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(G){return Error("Dc`"+(OJ(G)?G.description:G))}};D23=Ei3;var vkj=Symbol("Ec");oie({beforeRender:function(G){var H=_.qf(G.effectContext);try{var Z;((Z=G.__syncEffects)==null?0:Z.length)&&KjX(G.__syncEffects)}finally{_.qf(H)}},
didPatch:function(G){var H=_.qf(G.effectContext);try{var Z;((Z=G.__syncEffects)==null?0:Z.length)&&KjX(G.__syncEffects)}finally{_.qf(H)}},
didUnmount:function(G){var H;((H=G.hooks)==null?0:H.length)&&G.hooks.forEach(zvR)}});var b9w,GDx,Ho2;b9w=_.Qf.window;_.NV=(b9w==null?void 0:(GDx=b9w.yt)==null?void 0:GDx.config_)||(b9w==null?void 0:(Ho2=b9w.ytcfg)==null?void 0:Ho2.data_)||{};_.u7("yt.config_",_.NV);var s5p={},wfR=[];_.C$=function(G){var H=_.Ry.apply(1,arguments);var Z=Error.call(this,G);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.args=[].concat(_.OP(H));Object.setPrototypeOf(this,this.constructor.prototype)};
_.T(_.C$,Error);var sHb=function(G,H,Z){this.actionName=G;this.optionalAction=H===void 0?!1:H;this.args=Z===void 0?null:Z;this.returnValue=[]};_.bn=function(G){this.name=G};_.bc=new _.bn("signalAction");var NjW=/^[\w.]*$/,aQv={q:!0,search_query:!0},O9f=String(i9e);var kM;kM=Symbol("Fc");_.Gv=function(G){this.name=G};
_.Gv.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var AZ3=function(G){this.key=G},Fjf=function(G){this.deferredKey=G},Lj2=function(){var G=this;
this.providers=new Map;this.JSC$10497_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(G.providers)}}};
Lj2.prototype.addProvider=function(G){this.providers.set(G.provide,G);var H=this.JSC$10497_deferred.get(G.provide);if(H)try{H.resolver(this.resolve(G.provide))}catch(Z){H.rejector(Z)}};
Lj2.prototype.resolve=function(G){return G instanceof Fjf?Zoa(this,G):G instanceof AZ3?Q5G(this,G.key,[],!0):Q5G(this,G,[])};
var Zoa=function(G,H){H=H.deferredKey;if(G.JSC$10497_deferred.has(H))return G.JSC$10497_deferred.get(H).promise;var Z={};Z.promise=new Promise(function(Q,p){Z.resolver=Q;Z.rejector=p});
G.JSC$10497_deferred.set(H,Z);return Z.promise},Q5G=function(G,H,Z,Q){Q=Q===void 0?!1:Q;
if(Z.indexOf(H)>-1)throw Error("Gc`"+H);if(G.cachedValues.has(H))return G.cachedValues.get(H);if(!G.providers.has(H)){if(Q)return;throw Error("Hc`"+H);}Q=G.providers.get(H);Z.push(H);if(Q.useValue!==void 0)var p=Q.useValue;else if(Q.useFactory)p=Q[kM]?pAw(G,Q[kM],Z):[],p=Q.useFactory.apply(Q,_.OP(p));else if(Q.useClass){p=Q.useClass;var l=p[kM]?pAw(G,p[kM],Z):[];p=new (Function.prototype.bind.apply(p,[null].concat(_.OP(l))))}else throw Error("Ic`"+H);Z.pop();Q.skipCache||G.cachedValues.set(H,p);return p},
pAw=function(G,H,Z){return H?H.map(function(Q){return Q instanceof AZ3?Q5G(G,Q.key,Z,!0):Q5G(G,Q,Z)}):[]};var x5f;var GU=new _.Gv("ENDPOINT_HANDLER_TOKEN");_.Hx=new _.bn("urlEndpoint");var lgx=function(){this.data=[];this.cachedPackedInt52=-1};
lgx.prototype.set=function(G,H){H=H===void 0?!0:H;0<=G&&G<52&&Number.isInteger(G)&&this.data[G]!==H&&(this.data[G]=H,this.cachedPackedInt52=-1)};
lgx.prototype.get=function(G){return!!this.data[G]};
var gKw=function(G){G.cachedPackedInt52===-1&&(G.cachedPackedInt52=G.data.reduce(function(H,Z,Q){return H+(Z?Math.pow(2,Q):0)},0));
return G.cachedPackedInt52};var B8X=function(G){var H=IgT;G=G===void 0?_.GF("yt.ads.biscotti.lastId_")||"":G;var Z=Object,Q=Z.assign,p={};p.dt=la2;p.flash="0";a:{try{var l=H.JSC$10503_win_.top.location.href}catch(H3){l=2;break a}l=l?l===H.doc_.location.href?0:1:2}p=(p.frm=l,p);try{p.u_tz=-(new Date).getTimezoneOffset();try{var q=Ox.history.length}catch(H3){q=0}p.u_his=q;var u;p.u_h=(u=Ox.screen)==null?void 0:u.height;var B;p.u_w=(B=Ox.screen)==null?void 0:B.width;var t;p.u_ah=(t=Ox.screen)==null?void 0:t.availHeight;var D;p.u_aw=
(D=Ox.screen)==null?void 0:D.availWidth;var d;p.u_cd=(d=Ox.screen)==null?void 0:d.colorDepth}catch(H3){}q=H.JSC$10503_win_;try{var e=q.screenX;var n=q.screenY}catch(H3){}try{var c=q.outerWidth;var W=q.outerHeight}catch(H3){}try{var M=q.innerWidth;var r=q.innerHeight}catch(H3){}try{var w=q.screenLeft;var x=q.screenTop}catch(H3){}try{M=q.innerWidth,r=q.innerHeight}catch(H3){}try{var U=q.screen.availWidth;var R=q.screen.availTop}catch(H3){}e=[w,x,e,n,U,R,c,W,M,r];n=fSU(!1,H.JSC$10503_win_.top);c={};
var L=L===void 0?_.Qf:L;W=new lgx;"SVGElement"in L&&"createElementNS"in L.document&&W.set(0);M=ZET();M["allow-top-navigation-by-user-activation"]&&W.set(1);M["allow-popups-to-escape-sandbox"]&&W.set(2);L.crypto&&L.crypto.subtle&&W.set(3);"TextDecoder"in L&&"TextEncoder"in L&&W.set(4);L=gKw(W);H=(c.bc=L,c.bih=n.height,c.biw=n.width,c.brdim=e.join(),c.vis=DVX(H.doc_),c.wgl=!!Ox.WebGLRenderingContext,c);Z=Q.call(Z,p,H);Z.ca_type="image";G&&(Z.bid=G);return Z},IgT=new function(){var G=window.document;
this.JSC$10503_win_=window;this.doc_=G};
_.u7("yt.ads_.signals_.getAdSignalsString",function(G){return yZb(B8X(G))});_.NW();navigator.userAgent.indexOf(" (CrKey ");var Zob="XMLHttpRequest"in _.Qf?function(){return new XMLHttpRequest}:null;var q3d="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),S3T=[].concat(_.OP(q3d),["client_dev_set_cookie"]);var usv={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"},lgo="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(_.OP(q3d)),$mU=!1,IgU=_.JUj,eEX=S3U;var Uij=[{messageFn:function(G){return"Cannot read property '"+G.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(G){return"Cannot call '"+G.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(G){return G.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var us2={messageWeights:[],callbackWeights:[{callback:fg3,weight:500},{callback:vKo,weight:500}]};var B87=function(){this.callbackWeights=[];this.messageWeights=[]},JUN,miU=function(){if(!JUN){var G=JUN=new B87;
G.messageWeights.length=0;G.callbackWeights.length=0;SXj(G,us2)}return JUN},SXj=function(G,H){H.messageWeights&&G.messageWeights.push.apply(G.messageWeights,H.messageWeights);
H.callbackWeights&&G.callbackWeights.push.apply(G.callbackWeights,H.callbackWeights)};_.AB(_.K$,_.wI);_.K$.prototype.subscribe=function(G,H,Z){var Q=this.topics_[G];Q||(Q=this.topics_[G]=[]);var p=this.JSC$10527_key_;this.subscriptions_[p]=G;this.subscriptions_[p+1]=H;this.subscriptions_[p+2]=Z;this.JSC$10527_key_=p+3;Q.push(p);return p};
var ted=function(G){var H=xJ,Z=!1,Q=H.subscribe("handleError",function(p){Z||(Z=!0,this.unsubscribeByKey(Q),G.apply(void 0,arguments))},H)};
_.K$.prototype.unsubscribe=function(G,H,Z){if(G=this.topics_[G]){var Q=this.subscriptions_;if(G=G.find(function(p){return Q[p+1]==H&&Q[p+2]==Z}))return this.unsubscribeByKey(G)}return!1};
_.K$.prototype.unsubscribeByKey=function(G){var H=this.subscriptions_[G];if(H){var Z=this.topics_[H];this.publishDepth_!=0?(this.pendingKeys_.push(G),this.subscriptions_[G+1]=function(){}):(Z&&_.ou(Z,G),delete this.subscriptions_[G],delete this.subscriptions_[G+1],delete this.subscriptions_[G+2])}return!!H};
_.K$.prototype.publish=function(G,H){var Z=this.topics_[G];if(Z){var Q=Array(arguments.length-1),p=arguments.length,l;for(l=1;l<p;l++)Q[l-1]=arguments[l];if(this.async_)for(l=0;l<Z.length;l++)p=Z[l],kD7(this.subscriptions_[p+1],this.subscriptions_[p+2],Q);else{this.publishDepth_++;try{for(l=0,p=Z.length;l<p&&!this.isDisposed();l++){var q=Z[l];this.subscriptions_[q+1].apply(this.subscriptions_[q+2],Q)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;Z=this.pendingKeys_.pop();)this.unsubscribeByKey(Z)}}return l!=
0}return!1};
var kD7=function(G,H,Z){_.cQ(function(){G.apply(H,Z)})};
_.K$.prototype.clear=function(G){if(G){var H=this.topics_[G];H&&(H.forEach(this.unsubscribeByKey,this),delete this.topics_[G])}else this.subscriptions_.length=0,this.topics_={}};
_.K$.prototype.getCount=function(G){if(G){var H=this.topics_[G];return H?H.length:0}G=0;for(H in this.topics_)G+=this.getCount(H);return G};
_.K$.prototype.disposeInternal=function(){_.K$.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var xJ=new _.K$;var VL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(VL,_.Iy);VL.prototype.getColdHashData=function(){return _.nY(this,3)};
VL.prototype.getHotHashData=function(){return _.nY(this,5)};
VL.prototype.setHotHashData=function(G){return _.ha(this,5,G)};var afW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(afW,_.Iy);var tQM=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(tQM,_.Iy);_.g=tQM.prototype;_.g.getDeviceId=function(){return _.nY(this,6)};
_.g.getExperimentIds=function(G){var H=_.YA(this,9,_.qa,3,!0);bW3(H,G);return H[G]};
_.g.getPlayerType=function(){return _.V8(this,36)};
_.g.setHomeGroupInfo=function(G){return _.fq(this,81,G)};
_.g.clearLocationPlayabilityToken=function(){return _.ng(this,89)};var WW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(WW,_.Iy);WW.prototype.setKey=function(G){return _.ha(this,1,G)};
WW.prototype.getValue=function(){return Xz(this,2,Die)};
var Die=[2,3,4,5,6];var Dmt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Dmt,_.Iy);Dmt.prototype.setTrackingParams=function(G){return _.ng(this,1,_.Pd(G,!1))};var k3f=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(k3f,_.Iy);var mvf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(mvf,_.Iy);mvf.prototype.getExperimentIds=function(G){var H=_.YA(this,5,_.$7X,3,!0);bW3(H,G);return H[G]};var jy=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(jy,_.Iy);jy.prototype.getToken=function(){return _.W7(this,2)};
jy.prototype.setToken=function(G){return _.ha(this,2,G)};var KT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(KT,_.Iy);KT.prototype.setSafetyMode=function(G){return _.ed(this,5,G)};var vW=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(vW,_.Iy);vW.prototype.setClient=function(G){return _.fq(this,1,G)};var oaW={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 yye;_.P$=function(){var G=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Qf.addEventListener("beforeinstallprompt",function(H){H.preventDefault();G.deferredInstallPrompt=H});
_.Qf.addEventListener("appinstalled",function(){G.appInstalledEventFired=!0},{once:!0})};
yye=function(){if(!_.Qf.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Qf.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Qf.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Qf.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Qf.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(G){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Ncj=function(){this.syncHeaders=!0},Ay3=function(G){var H={},Z=[];
"USER_SESSION_ID"in _.NV&&Z.push({key:"u",value:_.xI("USER_SESSION_ID")});if(Z=_.t9b(Z))H.Authorization=Z,Z=G=G==null?void 0:G.sessionIndex,Z===void 0&&(Z=Number(_.xI("SESSION_INDEX",0)),Z=isNaN(Z)?0:Z),_.V("voice_search_auth_header_removal")||(H["X-Goog-AuthUser"]=Z.toString()),"INNERTUBE_HOST_OVERRIDE"in _.NV||(H["X-Origin"]=window.location.origin),G===void 0&&"DELEGATED_SESSION_ID"in _.NV&&(H["X-Goog-PageId"]=_.xI("DELEGATED_SESSION_ID"));return H};var dma={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Hs=_.GF("ytglobal.prefsUserPrefsPrefs_")||{},eE7;_.u7("ytglobal.prefsUserPrefsPrefs_",Hs);_.se=function(){this.cookieName=_.xI("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.xI("ALT_PREF_COOKIE_DOMAIN","youtube.com");var G=_.jA.get(this.cookieName,void 0);G&&this.parse(G)};
_.lf=function(){eE7||(eE7=new _.se);return eE7};
_.se.prototype.get=function(G,H){nK7(G);VeR(G);G=Hs[G]!==void 0?Hs[G].toString():null;return G!=null?G:H?H:""};
_.se.prototype.set=function(G,H){nK7(G);VeR(G);if(H==null)throw Error("Lc");Hs[G]=H.toString()};
_.se.prototype.getFlag=function(G){return!!(($mT("f"+(Math.floor(G/31)+1))||0)&1<<G%31)};
_.g8=function(G,H,Z){G="f"+(Math.floor(H/31)+1);H=1<<H%31;var Q=$mT(G)||0;Q=Z?Q|H:Q&~H;Q===0?delete Hs[G]:(Z=Q.toString(16),Hs[G]=Z.toString())};
_.se.prototype.remove=function(G){nK7(G);VeR(G);delete Hs[G]};
_.se.prototype.save=function(){var G=!0;_.V("web_secure_pref_cookie_killswitch")&&(G=!1);_.PU(this.cookieName,this.dump(),63072E3,this.cookieDomain,G)};
_.se.prototype.clear=function(){_.oN.clear(Hs)};
_.se.prototype.dump=function(){var G=[],H;for(H in Hs)Hs.hasOwnProperty(H)&&G.push(H+"="+encodeURIComponent(String(Hs[H])));return G.join("&")};
var VeR=function(G){if(/^f([1-9][0-9]*)$/.test(G))throw Error("Mc`"+G);},nK7=function(G){if(!/^\w+$/.test(G))throw Error("Nc`"+G);
},$mT=function(G){G=Hs[G]!==void 0?Hs[G].toString():null;
return G!=null&&/^[A-Fa-f0-9]+$/.test(G)?parseInt(G,16):null};
_.se.prototype.parse=function(G){G=decodeURIComponent(G).split("&");for(var H=0;H<G.length;H++){var Z=G[H].split("="),Q=Z[0];(Z=Z[1])&&(Hs[Q]=Z.toString())}};var hEv={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"},UvR={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},R8u={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},ioj={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var LX;_.ZN=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.wM=function(G,H,Z){return G.addJob(H,0,Z)};
_.ZN.prototype.addLowPriorityJob=function(G,H){return this.addJob(G,1,H)};
_.JW=function(G,H,Z){return G.addJob(H,2,Z)};
_.ZG=function(G,H,Z){return G.addJob(H,3,Z)};
_.E6=function(G,H,Z){return G.addJob(H,4,Z)};
LX=function(G){var H=_.GF("yt.scheduler.instance.addImmediateJob");H?H(G):G()};
_.ZN.prototype.debounce=function(G,H,Z){var Q=this,p=0,l=function(){p&&Q.cancelJob(p);p=Q.addJob(G,H,Z);Q.cancelDebouncedJobMap.set(l,p)};
return l};
_.ZN.prototype.cancelThrottle=function(G){(G=this.cancelThrottledJobMap.get(G))&&G()};var QS=function(){_.ZN.apply(this,arguments)};
_.T(QS,_.ZN);_.DG=function(){QS.instance||(QS.instance=new QS);return QS.instance};
QS.prototype.addJob=function(G,H,Z){Z!==void 0&&Number.isNaN(Number(Z))&&(Z=void 0);var Q=_.GF("yt.scheduler.instance.addJob");return Q?Q(G,H,Z):Z===void 0?(G(),NaN):_.cU(G,Z||0)};
QS.prototype.cancelJob=function(G){if(G===void 0||!Number.isNaN(Number(G))){var H=_.GF("yt.scheduler.instance.cancelJob");H?H(G):_.f$(G)}};
QS.prototype.start=function(){var G=_.GF("yt.scheduler.instance.start");G&&G()};
QS.prototype.pause=function(){var G=_.GF("yt.scheduler.instance.pause");G&&G()};
_.Ui=_.DG();_.i0.prototype.set=function(G,H){H===void 0?this.mechanism.remove(G):this.mechanism.set(G,(0,_.zw)(H))};
_.i0.prototype.get=function(G){try{var H=this.mechanism.get(G)}catch(Z){return}if(H!==null)try{return JSON.parse(H)}catch(Z){throw"Storage: Invalid value was encountered";}};
_.i0.prototype.remove=function(G){this.mechanism.remove(G)};var pV=function(G){this.mechanism=G};
_.AB(pV,_.i0);var XAN=function(G){this.data=G},cUx=function(G){return G===void 0||G instanceof XAN?G:new XAN(G)};
pV.prototype.set=function(G,H){pV.superClass_.set.call(this,G,cUx(H))};
pV.prototype.getWrapper=function(G){G=pV.superClass_.get.call(this,G);if(G===void 0||G instanceof Object)return G;throw"Storage: Invalid value was encountered";};
pV.prototype.get=function(G){if(G=this.getWrapper(G)){if(G=G.data,G===void 0)throw"Storage: Invalid value was encountered";}else G=void 0;return G};_.AB(Od,pV);_.T8a=function(G){var H=G.creation;G=G.expiration;return!!G&&G<_.NW()||!!H&&H>_.NW()};
Od.prototype.set=function(G,H,Z){if(H=cUx(H)){if(Z){if(Z<_.NW()){Od.prototype.remove.call(this,G);return}H.expiration=Z}H.creation=_.NW()}Od.superClass_.set.call(this,G,H)};
Od.prototype.getWrapper=function(G,H){var Z=Od.superClass_.getWrapper.call(this,G);if(Z)if(!H&&_.T8a(Z))Od.prototype.remove.call(this,G);else return Z};var lO=function(){};
lO.prototype.next=function(){return gK};
var gK={done:!0,value:void 0},I3=function(G){return{value:G,done:!1}};
lO.prototype.__iterator__=function(){return this};
_.fgd=function(G){if(G instanceof lO)return G;if(typeof G.__iterator__=="function")return G.__iterator__(!1);if(_.Uj(G)){var H=0,Z=new lO;Z.next=function(){for(;;){if(H>=G.length)return gK;if(H in G)return I3(G[H++]);H++}};
return Z}throw Error("Oc");};var vKx=function(G){if(G instanceof qO||G instanceof SG||G instanceof uO)return G;if(typeof G.next=="function")return new qO(function(){return G});
if(typeof G[Symbol.iterator]=="function")return new qO(function(){return G[Symbol.iterator]()});
if(typeof G.__iterator__=="function")return new qO(function(){return G.__iterator__()});
throw Error("Pc");},qO=function(G){this.func_=G};
qO.prototype.__iterator__=function(){return new SG(this.func_())};
qO.prototype[Symbol.iterator]=function(){return new uO(this.func_())};
qO.prototype.toEs6=function(){return new uO(this.func_())};
var SG=function(G){this.JSC$10611_iter_=G};
_.T(SG,lO);SG.prototype.next=function(){return this.JSC$10611_iter_.next()};
SG.prototype[Symbol.iterator]=function(){return new uO(this.JSC$10611_iter_)};
SG.prototype.toEs6=function(){return new uO(this.JSC$10611_iter_)};
var uO=function(G){qO.call(this,function(){return G});
this.JSC$10614_iter_=G};
_.T(uO,qO);uO.prototype.next=function(){return this.JSC$10614_iter_.next()};var Whd=function(){};var Bs=function(){};
_.AB(Bs,Whd);Bs.prototype.getCount=function(){for(var G=0,H=_.I(this),Z=H.next();!Z.done;Z=H.next())G++;return G};
Bs.prototype[Symbol.iterator]=function(){return vKx(this.__iterator__(!0)).toEs6()};
Bs.prototype.clear=function(){var G=Array.from(this);G=_.I(G);for(var H=G.next();!H.done;H=G.next())this.remove(H.value)};_.AB(aJ,Bs);_.g=aJ.prototype;_.g.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var G=this.storage_;if(G)try{G.setItem("__sak","1");G.removeItem("__sak");var H=!0}catch(Z){H=Z instanceof DOMException&&(Z.name==="QuotaExceededError"||Z.code===22||Z.code===1014||Z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&G&&G.length!==0}else H=!1;this.cachedIsStorageAvailable_=H}return this.cachedIsStorageAvailable_};
_.g.set=function(G,H){JA(this);try{this.storage_.setItem(G,H)}catch(Z){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.g.get=function(G){JA(this);G=this.storage_.getItem(G);if(typeof G!=="string"&&G!==null)throw"Storage mechanism: Invalid value was encountered";return G};
_.g.remove=function(G){JA(this);this.storage_.removeItem(G)};
_.g.getCount=function(){JA(this);return this.storage_.length};
_.g.__iterator__=function(G){JA(this);var H=0,Z=this.storage_,Q=new lO;Q.next=function(){if(H>=Z.length)return gK;var p=Z.key(H++);if(G)return I3(p);p=Z.getItem(p);if(typeof p!=="string")throw"Storage mechanism: Invalid value was encountered";return I3(p)};
return Q};
_.g.clear=function(){JA(this);this.storage_.clear()};
_.g.key=function(G){JA(this);return this.storage_.key(G)};
var JA=function(G){if(G.storage_==null)throw Error("Qc");G.isAvailable()||pW(Error("Qc"))};_.AB(agR,aJ);_.AB(yUo,aJ);_.AB(yD,Bs);yD.prototype.set=function(G,H){this.mechanism_.set(this.JSC$10629_prefix_+G,H)};
yD.prototype.get=function(G){return this.mechanism_.get(this.JSC$10629_prefix_+G)};
yD.prototype.remove=function(G){this.mechanism_.remove(this.JSC$10629_prefix_+G)};
yD.prototype.__iterator__=function(G){var H=this.mechanism_[Symbol.iterator](),Z=this,Q=new lO;Q.next=function(){var p=H.next();if(p.done)return p;for(p=p.value;p.slice(0,Z.JSC$10629_prefix_.length)!=Z.JSC$10629_prefix_;){p=H.next();if(p.done)return p;p=p.value}return I3(G?p.slice(Z.JSC$10629_prefix_.length):Z.mechanism_.get(p))};
return Q};_.Lg=function(G){this.expiringStorage_=(G=_.oKX(G))?new Od(G):null;this.JSC$10633_domain_=document.domain||window.location.hostname};
_.g=_.Lg.prototype;_.g.hasLocalStorage=function(){return!!this.expiringStorage_};
_.g.set=function(G,H,Z,Q){Z=Z||31104E3;this.remove(G);if(this.hasLocalStorage())try{this.expiringStorage_.set(G,H,Date.now()+Z*1E3);return}catch(l){}var p="";if(Q)try{p=escape((0,_.zw)(H))}catch(l){return}else p=escape(H);_.PU(G,p,Z,this.JSC$10633_domain_)};
_.g.get=function(G,H){var Z=void 0,Q=!this.hasLocalStorage();if(!Q)try{Z=this.expiringStorage_.get(G)}catch(p){Q=!0}if(Q&&(Z=_.jA.get(G,void 0))&&(Z=unescape(Z),H))try{Z=JSON.parse(Z)}catch(p){this.remove(G),Z=void 0}return Z};
_.g.remove=function(G){this.hasLocalStorage()&&this.expiringStorage_.remove(G);_.PfR(G,"/",this.JSC$10633_domain_)};
_.g.getCreationTime=function(G){return this.hasLocalStorage()&&(G=(this.expiringStorage_.getWrapper(G)||{}).creation,typeof G==="number")?G:null};var Ume=function(){var G;return function(){G||(G=new _.Lg("ytidb"));return G}}();var N83;_.mK=[];N83=!1;var S7f=AUR||xmR;var tA={},zEx=(tA.AUTH_INVALID="No user identifier specified.",tA.EXPLICIT_ABORT="Transaction was explicitly aborted.",tA.IDB_NOT_SUPPORTED="IndexedDB is not supported.",tA.MISSING_INDEX="Index not created.",tA.MISSING_OBJECT_STORES="Object stores not created.",tA.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",tA.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",tA.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",tA.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",tA.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",tA.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",tA.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",tA),kq={},Khw=(kq.AUTH_INVALID="ERROR",kq.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",kq.EXPLICIT_ABORT="IGNORED",
kq.IDB_NOT_SUPPORTED="ERROR",kq.MISSING_INDEX="WARNING",kq.MISSING_OBJECT_STORES="ERROR",kq.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",kq.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",kq.QUOTA_EXCEEDED="WARNING",kq.QUOTA_MAYBE_EXCEEDED="WARNING",kq.UNKNOWN_ABORT="WARNING",kq.INCOMPATIBLE_DB_VERSION="WARNING",kq),DN={},Mep=(DN.AUTH_INVALID=!1,DN.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,DN.EXPLICIT_ABORT=!1,DN.IDB_NOT_SUPPORTED=!1,DN.MISSING_INDEX=!1,DN.MISSING_OBJECT_STORES=!1,DN.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,DN.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,DN.QUOTA_EXCEEDED=!1,DN.QUOTA_MAYBE_EXCEEDED=!0,DN.UNKNOWN_ABORT=!0,DN.INCOMPATIBLE_DB_VERSION=!1,DN),L$=function(G,H,Z,Q,p){H=H===void 0?{}:H;Z=Z===void 0?zEx[G]:Z;Q=Q===void 0?Khw[G]:Q;p=p===void 0?Mep[G]:p;_.C$.call(this,Z,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:G},H));this.type=G;this.message=Z;this.level=Q;this.retryable=p;Object.setPrototypeOf(this,L$.prototype)};
_.T(L$,_.C$);var j57=function(G,H){L$.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:H,foundObjectStores:G},zEx.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,j57.prototype)};
_.T(j57,L$);var EKu=function(G,H){var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.index=G;this.objectStore=H;Object.setPrototypeOf(this,EKu.prototype)};
_.T(EKu,Error);var Y3u=["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 b0=function(G){this.executor=G},FP=function(G){var H=this;
this.state={status:"PENDING"};this.JSC$10661_onFulfilled=[];this.JSC$10661_onRejected=[];G=G.executor;var Z=function(p){if(H.state.status==="PENDING"){H.state={status:"FULFILLED",value:p};p=_.I(H.JSC$10661_onFulfilled);for(var l=p.next();!l.done;l=p.next())l=l.value,l()}},Q=function(p){if(H.state.status==="PENDING"){H.state={status:"REJECTED",
reason:p};p=_.I(H.JSC$10661_onRejected);for(var l=p.next();!l.done;l=p.next())l=l.value,l()}};
try{G(Z,Q)}catch(p){Q(p)}};
FP.all=function(G){return new FP(new b0(function(H,Z){var Q=[],p=G.length;p===0&&H(Q);for(var l={i$jscomp$468:0};l.i$jscomp$468<G.length;l={i$jscomp$468:l.i$jscomp$468},++l.i$jscomp$468)FP.resolve(G[l.i$jscomp$468]).then(function(q){return function(u){Q[q.i$jscomp$468]=u;p--;p===0&&H(Q)}}(l)).catch(function(q){Z(q)})}))};
FP.resolve=function(G){return new FP(new b0(function(H,Z){G instanceof FP?G.then(H,Z):H(G)}))};
FP.reject=function(G){return new FP(new b0(function(H,Z){Z(G)}))};
FP.prototype.then=function(G,H){var Z=this,Q=G!=null?G:G9j,p=H!=null?H:bob;return new FP(new b0(function(l,q){Z.state.status==="PENDING"?(Z.JSC$10661_onFulfilled.push(function(){Pfw(Z,Z,Q,l,q)}),Z.JSC$10661_onRejected.push(function(){rUa(Z,Z,p,l,q)})):Z.state.status==="FULFILLED"?Pfw(Z,Z,Q,l,q):Z.state.status==="REJECTED"&&rUa(Z,Z,p,l,q)}))};
FP.prototype.catch=function(G){return this.then(void 0,G)};
var Pfw=function(G,H,Z,Q,p){try{if(G.state.status!=="FULFILLED")throw Error("Tc");var l=Z(G.state.value);l instanceof FP?wA7(G,H,l,Q,p):Q(l)}catch(q){p(q)}},rUa=function(G,H,Z,Q,p){try{if(G.state.status!=="REJECTED")throw Error("Uc");
var l=Z(G.state.reason);l instanceof FP?wA7(G,H,l,Q,p):Q(l)}catch(q){p(q)}},wA7=function(G,H,Z,Q,p){H===Z?p(new TypeError("Vc")):Z.then(function(l){l instanceof FP?wA7(G,H,l,Q,p):Q(l)},function(l){p(l)})};var dK;dK=window;_.t3=dK.ytcsi&&dK.ytcsi.now?dK.ytcsi.now:dK.performance&&dK.performance.timing&&dK.performance.now&&dK.performance.timing.navigationStart?function(){return dK.performance.timing.navigationStart+dK.performance.now()}:function(){return(new Date).getTime()};var HP=function(G,H){this.JSC$10673_wrapped=G;this.options=H;this.transactionCount=0;this.startedMs=Math.round((0,_.t3)());this.hasUnknownAbortedTransaction=!1},eG=function(){return _.V("idb_immediate_commit")},ioN,Oot,$q,oK7;
HP.prototype.add=function(G,H,Z){return _.l7(this,[G],{mode:"readwrite",enableRetries:!0,commit:eG()},function(Q){return Q.objectStore(G).add(H,Z)})};
HP.prototype.clear=function(G){return _.l7(this,[G],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(G).clear()})};
HP.prototype.close=function(){this.JSC$10673_wrapped.close();var G;((G=this.options)==null?0:G.closed)&&this.options.closed()};
HP.prototype.count=function(G,H){return _.l7(this,[G],{mode:"readonly",enableRetries:!0,commit:eG()},function(Z){return Z.objectStore(G).count(H)})};
var YN=function(G,H,Z){G=G.JSC$10673_wrapped.createObjectStore(H,Z);return new nV(G)};
HP.prototype.delete=function(G,H){return _.l7(this,[G],{mode:"readwrite",enableRetries:!0,commit:eG()&&!(H instanceof IDBKeyRange)},function(Z){return Z.objectStore(G).delete(H)})};
var hE2=function(G,H){return _.l7(G,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(Z){return Z.objectStore("ResponseStore").index("byInterface").delete(H)})};
HP.prototype.get=function(G,H){return _.l7(this,[G],{mode:"readonly",enableRetries:!0,commit:eG()},function(Z){return Z.objectStore(G).get(H)})};
HP.prototype.getAll=function(G,H,Z){return _.l7(this,[G],{mode:"readonly",enableRetries:!0},function(Q){return Q.objectStore(G).getAll(H,Z)})};
HP.prototype.put=function(G,H,Z){return _.l7(this,[G],{mode:"readwrite",enableRetries:!0,commit:eG()},function(Q){return Q.objectStore(G).put(H,Z)})};
HP.prototype.objectStoreNames=function(){return Array.from(this.JSC$10673_wrapped.objectStoreNames)};
_.l7=function(G,H,Z,Q){var p,l,q,u,B,t,D,d,e,n,c,W;return _.S(function(M){switch(M.nextAddress){case 1:var r={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof Z==="string"?r.mode=Z:Object.assign(r,Z);p=r;G.transactionCount++;l=p.enableRetries?3:1;q=0;case 2:if(u){M.jumpTo(4);break}q++;B=Math.round((0,_.t3)());_.XV(M,5);t=G.JSC$10673_wrapped.transaction(H,p.mode);r=M.yield;var w=!!p.commit;var x=new si(t);w=CfT(x,Q,w);return r.call(M,w,7);case 7:return D=M.yieldResult,d=Math.round((0,_.t3)()),
ioN(G,B,d,q,void 0,H.join(),p),M.return(D);case 5:e=_.Wg(M);n=Math.round((0,_.t3)());c=FhX(e,G.JSC$10673_wrapped.name,H.join(),G.JSC$10673_wrapped.version);if((W=c instanceof L$&&!c.retryable)||q>=l)ioN(G,B,n,q,c,H.join(),p),u=c;M.jumpTo(2);break;case 4:return M.return(Promise.reject(u))}})};
ioN=function(G,H,Z,Q,p,l,q){H=Z-H;p?(p instanceof L$&&(p.type==="QUOTA_EXCEEDED"||p.type==="QUOTA_MAYBE_EXCEEDED")&&RJ("QUOTA_EXCEEDED",{dbName:Ap(G.JSC$10673_wrapped.name),objectStoreNames:l,transactionCount:G.transactionCount,transactionMode:q.mode}),p instanceof L$&&p.type==="UNKNOWN_ABORT"&&(Z-=G.startedMs,Z<0&&Z>=2147483648&&(Z=0),RJ("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:l,transactionDuration:H,transactionCount:G.transactionCount,dbDuration:Z}),G.hasUnknownAbortedTransaction=!0),
Oot(G,!1,Q,l,H,q.tag),_.Ud(p)):Oot(G,!0,Q,l,H,q.tag)};
Oot=function(G,H,Z,Q,p,l){RJ("TRANSACTION_ENDED",{objectStoreNames:Q,connectionHasUnknownAbortedTransaction:G.hasUnknownAbortedTransaction,duration:p,isSuccessful:H,tryCount:Z,tag:l===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":l})};
HP.prototype.getName=function(){return this.JSC$10673_wrapped.name};
var nV=function(G){this.JSC$10688_wrapped=G};
nV.prototype.add=function(G,H){return GB(this.JSC$10688_wrapped.add(G,H))};
nV.prototype.autoIncrement=function(){return this.JSC$10688_wrapped.autoIncrement};
nV.prototype.clear=function(){return GB(this.JSC$10688_wrapped.clear()).then(function(){})};
var Fq=function(G,H,Z){G.JSC$10688_wrapped.createIndex(H,Z,{unique:!1})};
nV.prototype.count=function(G){return GB(this.JSC$10688_wrapped.count(G))};
var agw=function(G,H){return I1(G,{query:H},function(Z){return Z.delete().then(function(){return Z.continue()})}).then(function(){})};
nV.prototype.delete=function(G){return G instanceof IDBKeyRange?agw(this,G):GB(this.JSC$10688_wrapped.delete(G))};
nV.prototype.get=function(G){return GB(this.JSC$10688_wrapped.get(G))};
nV.prototype.getAll=function(G,H){return"getAll"in IDBObjectStore.prototype?GB(this.JSC$10688_wrapped.getAll(G,H)):yUx(this,G,H)};
var yUx=function(G,H,Z){var Q=[];return I1(G,{query:H},function(p){if(!(Z!==void 0&&Q.length>=Z))return Q.push(p.getValue()),p.continue()}).then(function(){return Q})};
nV.prototype.index=function(G){try{return new VS(this.JSC$10688_wrapped.index(G))}catch(H){if(H instanceof Error&&H.name==="NotFoundError")throw new EKu(G,this.JSC$10688_wrapped.name);throw H;}};
nV.prototype.getName=function(){return this.JSC$10688_wrapped.name};
nV.prototype.keyPath=function(){return this.JSC$10688_wrapped.keyPath};
nV.prototype.put=function(G,H){return GB(this.JSC$10688_wrapped.put(G,H))};
var I1=function(G,H,Z){G=G.JSC$10688_wrapped.openCursor(H.query,H.direction);return oK7(G).then(function(Q){return ZN2(Q,Z)})},si=function(G){var H=this;
this.JSC$10696_wrapped=G;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(Z,Q){H.JSC$10696_wrapped.addEventListener("complete",function(){Z()});
H.JSC$10696_wrapped.addEventListener("error",function(p){p.currentTarget===p.target&&Q(H.JSC$10696_wrapped.error)});
H.JSC$10696_wrapped.addEventListener("abort",function(){var p=H.JSC$10696_wrapped.error;if(p)Q(p);else if(!H.aborted){p=L$;for(var l=H.JSC$10696_wrapped.objectStoreNames,q=[],u=0;u<l.length;u++){var B=l.item(u);if(B===null)throw Error("Wc");q.push(B)}p=new p("UNKNOWN_ABORT",{objectStoreNames:q.join(),dbName:H.JSC$10696_wrapped.db.name,mode:H.JSC$10696_wrapped.mode});Q(p)}})})},CfT=function(G,H,Z){var Q=new Promise(function(p,l){try{var q=H(G);
Z&&G.commit();q.then(function(u){p(u)}).catch(l)}catch(u){l(u),G.abort()}});
return Promise.all([Q,G.done]).then(function(p){return _.I(p).next().value})};
si.prototype.abort=function(){this.JSC$10696_wrapped.abort();this.aborted=!0;throw new L$("EXPLICIT_ABORT");};
si.prototype.commit=function(){if(!this.aborted){var G,H;(H=(G=this.JSC$10696_wrapped).commit)==null||H.call(G)}};
si.prototype.objectStore=function(G){G=this.JSC$10696_wrapped.objectStore(G);var H=this.objectStoreCache.get(G);H||(H=new nV(G),this.objectStoreCache.set(G,H));return H};
var VS=function(G){this.JSC$10698_wrapped=G};
VS.prototype.count=function(G){return GB(this.JSC$10698_wrapped.count(G))};
VS.prototype.delete=function(G){return _.kN(this,{query:G},function(H){return H.delete().then(function(){return H.continue()})})};
VS.prototype.get=function(G){return GB(this.JSC$10698_wrapped.get(G))};
VS.prototype.getAll=function(G,H){return"getAll"in IDBIndex.prototype?GB(this.JSC$10698_wrapped.getAll(G,H)):mmp(this,G,H)};
var mmp=function(G,H,Z){var Q=[];return _.kN(G,{query:H},function(p){if(!(Z!==void 0&&Q.length>=Z))return Q.push(p.getValue()),p.continue()}).then(function(){return Q})};
VS.prototype.keyPath=function(){return this.JSC$10698_wrapped.keyPath};
VS.prototype.unique=function(){return this.JSC$10698_wrapped.unique};
_.kN=function(G,H,Z){G=G.JSC$10698_wrapped.openCursor(H.query===void 0?null:H.query,H.direction===void 0?"next":H.direction);return oK7(G).then(function(Q){return ZN2(Q,Z)})};
$q=function(G,H){this.request=G;this.cursor=H};
oK7=function(G){return GB(G).then(function(H){return H?new $q(G,H):null})};
$q.prototype.continue=function(G){this.cursor.continue(G);return oK7(this.request)};
$q.prototype.delete=function(){return GB(this.cursor.delete()).then(function(){})};
$q.prototype.getValue=function(){return this.cursor.value};
$q.prototype.update=function(G){return GB(this.cursor.update(G))};var XA=function(G,H){this.name=G;this.options=H;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Uma;
XA.prototype.openDb=function(G,H,Z){Z=Z===void 0?{}:Z;return pvX(G,H,Z)};
XA.prototype.delete=function(G){G=G===void 0?{}:G;return _.QL(this.name,G)};
Uma=function(G,H){return new L$("INCOMPATIBLE_DB_VERSION",{dbName:G.name,oldVersion:G.options.version,newVersion:H})};
_.pg=function(G,H){if(!H)throw YM("openWithToken",Ap(G.name));return G.open()};
XA.prototype.open=function(){var G=this;if(!this.isCompatible)throw Uma(this);if(this.connectionPromise)return this.connectionPromise;var H,Z=function(){G.connectionPromise===H&&(G.connectionPromise=void 0)},Q={blocking:function(l){l.close()},
closed:Z,terminated:Z,upgrade:this.options.upgrade},p=function(){var l,q,u,B,t,D,d,e,n,c;return _.S(function(W){switch(W.nextAddress){case 1:return q=(l=Error().stack)!=null?l:"",_.XV(W,2),W.yield(G.openDb(G.name,G.options.version,Q),4);case 4:for(var M=u=W.yieldResult,r=G.options,w=[],x=_.I(Object.keys(r.objectStores)),U=x.next();!U.done;U=x.next()){U=U.value;var R=r.objectStores[U],L=R.removedAtVersion===void 0?Number.MAX_VALUE:R.removedAtVersion;!(M.JSC$10673_wrapped.version>=R.addedAtVersion)||
M.JSC$10673_wrapped.version>=L||M.JSC$10673_wrapped.objectStoreNames.contains(U)||w.push(U)}B=w;if(B.length===0){W.jumpTo(5);break}t=Object.keys(G.options.objectStores);D=u.objectStoreNames();if(G.timesReopenedToFixMissingObjectStore<_.eA("ytidb_reopen_db_retries",0))return G.timesReopenedToFixMissingObjectStore++,u.close(),_.Ud(new L$("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:t,foundObjectStores:D})),W.return(p());if(!(G.timesDeletedToFixMissingObjectStore<_.eA("ytidb_remake_db_retries",
1))){W.jumpTo(6);break}G.timesDeletedToFixMissingObjectStore++;return W.yield(G.delete(),7);case 7:return _.Ud(new L$("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:G.name,expectedObjectStores:t,foundObjectStores:D})),W.return(p());case 6:throw new j57(D,t);case 5:return W.return(u);case 2:d=_.Wg(W);if(d instanceof DOMException?d.name!=="VersionError":"DOMError"in self&&d instanceof DOMError?d.name!=="VersionError":!(d instanceof Object&&"message"in d)||d.message!=="An attempt was made to open a database using a lower version than the existing version."){W.jumpTo(8);
break}return W.yield(G.openDb(G.name,void 0,Object.assign({},Q,{upgrade:void 0})),9);case 9:e=W.yieldResult;n=e.JSC$10673_wrapped.version;if(G.options.version!==void 0&&n>G.options.version+1)throw e.close(),G.isCompatible=!1,Uma(G,n);return W.return(e);case 8:throw Z(),d instanceof Error&&!_.V("ytidb_async_stack_killswitch")&&(d.stack=d.stack+"\n"+q.substring(q.indexOf("\n")+1)),FhX(d,G.name,"",(c=G.options.version)!=null?c:-1);}})};
return this.connectionPromise=H=p()};var lfR=new XA("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(G,H){H(1)&&YN(G,"databases",{keyPath:"actualName"})}});var JyX,u8o=new function(){}(new function(){});new _.sD;var RE_=function(G,H){XA.call(this,G,H);this.options=H;NY(G)};
_.T(RE_,XA);var cy3=function(G,H){var Z;return function(){Z||(Z=new RE_(G,H));return Z}};
RE_.prototype.openDb=function(G,H,Z){Z=Z===void 0?{}:Z;return(this.options.shared?e8j:dvX)(G,H,Object.assign({},Z))};
RE_.prototype.delete=function(G){G=G===void 0?{}:G;return(this.options.shared?Xvj:naf)(this.name,G)};var N8d={},TcM=J3("ytGcfConfig",{objectStores:(N8d.coldConfigStore={addedAtVersion:1},N8d.hotConfigStore={addedAtVersion:1},N8d),shared:!1,upgrade:function(G,H){H(1)&&(Fq(YN(G,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Fq(YN(G,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var AUw=function(){_.wI.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var G=_.GF("yt.gcf.config.hotUpdateCallbacks");G?(this.localHotConfigJobQueue=[].concat(_.OP(G)),this.sharedHotConfigJobQueue=G):(this.sharedHotConfigJobQueue=[],_.u7("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.T(AUw,_.wI);AUw.prototype.disposeInternal=function(){for(var G=_.I(this.localHotConfigJobQueue),H=G.next();!H.done;H=G.next()){var Z=this.sharedHotConfigJobQueue;H=Z.indexOf(H.value);H>=0&&Z.splice(H,1)}this.localHotConfigJobQueue.length=0;_.wI.prototype.disposeInternal.call(this)};var hL=function(){var G=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new AUw;this.TEST_ONLY={initializeConfigDb:function(){G.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return G.coldGlobalConfigGroup},
setHotConfigGroup:function(H){xmw(G,H)},
setHotHashData:function(H){G.setHotHashData(H)},
setColdConfigGroup:function(H){Lhw(G,H)},
getColdHashData:function(){return G.coldHashData},
getHotHashData:function(){return G.hotHashData},
getHotConfigGroup:function(){return G.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return EKt()},
getExportedHotConfigGroup:function(){return cs()},
getExportedColdHashData:function(){return _.GF("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.GF("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Y3t(G)},
resetInstance:function(){G.setHotHashData(void 0);Fh7(G);delete hL.instance},
setDebounceTimer:function(H){G.debounceTimer=H},
getDebounceTimer:function(){return G.debounceTimer}}},boa=function(){if(!hL.instance){var G=new hL;
hL.instance=G}return hL.instance},sqp=function(G){var H;
_.S(function(Z){if(Z.nextAddress==1)return _.V("start_client_gcf")||_.V("delete_gcf_config_db")?_.V("start_client_gcf")?Z.yield(_.BP(),3):Z.jumpTo(2):Z.return();Z.nextAddress!=2&&((H=Z.yieldResult)&&_.hp()&&!_.V("delete_gcf_config_db")?(G.isConfigDbInitialized=!0,Y3t(G)):(G9R(G),HNd(G)));return _.V("delete_gcf_config_db")?Z.yield(MSj(),0):Z.jumpTo(0)})},CT=function(){var G;
return(G=cs())!=null?G:_.xI("RAW_HOT_CONFIG_GROUP")},ZNp=function(G){var H,Z,Q,p,l,q;
return _.S(function(u){switch(u.nextAddress){case 1:if(G.hotGlobalConfigGroup)return u.return(cs());if(!G.isConfigDbInitialized)return H=YM("getHotConfig IDB not initialized"),_.HU(H),u.return(Promise.reject(H));Z=Sd();Q=_.xI("TIME_CREATED_MS");if(!Z){p=YM("getHotConfig token error");_.HU(p);u.jumpTo(2);break}return u.yield(KmU(Z),3);case 3:if((l=u.yieldResult)&&l.timestamp>Q)return xmw(G,l.config),G.setHotHashData(l.hashData),u.return(cs());case 2:HNd(G);if(!(Z&&G.hotGlobalConfigGroup&&G.hotHashData)){u.jumpTo(4);
break}return u.yield(vaR(G.hotGlobalConfigGroup,G.hotHashData,Z,Q),4);case 4:return G.hotGlobalConfigGroup?u.return(cs()):(q=new _.C$("Config not available in ytConfig"),_.HU(q),u.return(Promise.reject(q)))}})},pv7=function(G){var H,Z,Q,p,l,q;
return _.S(function(u){switch(u.nextAddress){case 1:if(G.coldGlobalConfigGroup)return u.return(EKt());if(!G.isConfigDbInitialized)return H=YM("getColdConfig IDB not initialized"),_.HU(H),u.return(Promise.reject(H));Z=Sd();Q=_.xI("TIME_CREATED_MS");if(!Z){p=YM("getColdConfig");_.HU(p);u.jumpTo(2);break}return u.yield(z8R(Z),3);case 3:if((l=u.yieldResult)&&l.timestamp>Q)return Lhw(G,l.config),QqN(G,l.configData),Fh7(G,l.hashData),u.return(EKt());case 2:G9R(G);if(!(Z&&G.coldGlobalConfigGroup&&G.coldHashData&&
G.configData)){u.jumpTo(4);break}return u.yield(Wmv(G.coldGlobalConfigGroup,G.coldHashData,G.configData,Z,Q),4);case 4:return G.coldGlobalConfigGroup?u.return(EKt()):(q=new _.C$("Config not available in ytConfig"),_.HU(q),u.return(Promise.reject(q)))}})},Y3t=function(G){if(!G.hotGlobalConfigGroup||!G.coldGlobalConfigGroup){if(!Sd()){var H=YM("scheduleGetConfigs");
_.HU(H)}G.initJob||(G.initJob=_.Ui.addLowPriorityJob(function(){return _.S(function(Z){switch(Z.nextAddress){case 1:return _.XV(Z,2),Z.yield(ZNp(G),4);case 4:_.Za(Z,3);break;case 2:_.Wg(Z);case 3:return _.XV(Z,5),Z.yield(pv7(G),7);case 7:_.Za(Z,6);break;case 5:_.Wg(Z);case 6:G.initJob&&(G.initJob=0),_.K0(Z)}})},100))}},WGM=function(G,H,Z){var Q,p,l;
return _.S(function(q){switch(q.nextAddress){case 1:if(!_.V("start_client_gcf")){q.jumpTo(0);break}Z&&xmw(G,Z);G.setHotHashData(H);Q=Sd();if(!Q){q.jumpTo(3);break}if(Z){q.jumpTo(4);break}return q.yield(KmU(Q),5);case 5:p=q.yieldResult,Z=(l=p)==null?void 0:l.config;case 4:return q.yield(vaR(Z,H,Q),3);case 3:if(Z)for(var u=Z,B=_.I(G.configUpdateService.sharedHotConfigJobQueue),t=B.next();!t.done;t=B.next())t=t.value,t(u);_.K0(q)}})},zhM=function(G,H,Z){var Q,p,l,q;
return _.S(function(u){if(u.nextAddress==1){if(!_.V("start_client_gcf"))return u.jumpTo(0);Fh7(G,H);return(Q=Sd())?Z?u.jumpTo(4):u.yield(z8R(Q),5):u.jumpTo(0)}u.nextAddress!=4&&(p=u.yieldResult,Z=(l=p)==null?void 0:l.config);if(!Z)return u.jumpTo(0);q=Z.configData;return u.yield(Wmv(Z,H,q,Q),0)})},Lmj=function(){var G=boa(),H=(0,_.t3)()-G.debounceTimer;
if(!(G.debounceTimer!==0&&H<_.eA("send_config_hash_timer"))){H=_.GF("yt.gcf.config.coldConfigData");var Z=_.GF("yt.gcf.config.hotHashData"),Q=_.GF("yt.gcf.config.coldHashData");H&&Z&&Q&&(G.debounceTimer=(0,_.t3)());return{coldConfigData:H,hotHashData:Z,coldHashData:Q}}},G9R=function(G){Lhw(G,_.xI("RAW_COLD_CONFIG_GROUP"));
Fh7(G,_.xI("SERIALIZED_COLD_HASH_DATA"));var H;QqN(G,(H=G.coldGlobalConfigGroup)==null?void 0:H.configData)},HNd=function(G){xmw(G,_.xI("RAW_HOT_CONFIG_GROUP"));
G.setHotHashData(_.xI("SERIALIZED_HOT_HASH_DATA"))},xmw=function(G,H){G.hotGlobalConfigGroup=H;
_.u7("yt.gcf.config.hotConfigGroup",G.hotGlobalConfigGroup||null)},Lhw=function(G,H){G.coldGlobalConfigGroup=H;
_.u7("yt.gcf.config.coldConfigGroup",G.coldGlobalConfigGroup||null)};
hL.prototype.setHotHashData=function(G){this.hotHashData=G;_.u7("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Fh7=function(G,H){G.coldHashData=H;_.u7("yt.gcf.config.coldHashData",G.coldHashData||null)},QqN=function(G,H){G.configData=H;
_.u7("yt.gcf.config.coldConfigData",G.configData||null)},cs=function(){return _.GF("yt.gcf.config.hotConfigGroup")},EKt=function(){return _.GF("yt.gcf.config.coldConfigGroup")};var fg={},lfw=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";fg.assign=function(G){for(var H=Array.prototype.slice.call(arguments,1);H.length;){var Z=H.shift();if(Z){if(typeof Z!=="object")throw new TypeError("Zc`"+Z);for(var Q in Z)Object.prototype.hasOwnProperty.call(Z,Q)&&(G[Q]=Z[Q])}}return G};
fg.shrinkBuf=function(G,H){if(G.length===H)return G;if(G.subarray)return G.subarray(0,H);G.length=H;return G};
var gaw={arraySet:function(G,H,Z,Q,p){if(H.subarray&&G.subarray)G.set(H.subarray(Z,Z+Q),p);else for(var l=0;l<Q;l++)G[p+l]=H[Z+l]},
flattenChunks:function(G){var H,Z;var Q=Z=0;for(H=G.length;Q<H;Q++)Z+=G[Q].length;var p=new Uint8Array(Z);Q=Z=0;for(H=G.length;Q<H;Q++){var l=G[Q];p.set(l,Z);Z+=l.length}return p}},Ifp={arraySet:function(G,H,Z,Q,p){for(var l=0;l<Q;l++)G[p+l]=H[Z+l]},
flattenChunks:function(G){return[].concat.apply([],G)}};
fg.setTyped=function(){lfw?(fg.Buf8=Uint8Array,fg.Buf16=Uint16Array,fg.Buf32=Int32Array,fg.assign(fg,gaw)):(fg.Buf8=Array,fg.Buf16=Array,fg.Buf32=Array,fg.assign(fg,Ifp))};
fg.setTyped();var q7x=!0;try{new Uint8Array(1)}catch(G){q7x=!1}
var KAX=function(G){var H,Z,Q=G.length,p=0;for(H=0;H<Q;H++){var l=G.charCodeAt(H);if((l&64512)===55296&&H+1<Q){var q=G.charCodeAt(H+1);(q&64512)===56320&&(l=65536+(l-55296<<10)+(q-56320),H++)}p+=l<128?1:l<2048?2:l<65536?3:4}var u=new fg.Buf8(p);for(H=Z=0;Z<p;H++)l=G.charCodeAt(H),(l&64512)===55296&&H+1<Q&&(q=G.charCodeAt(H+1),(q&64512)===56320&&(l=65536+(l-55296<<10)+(q-56320),H++)),l<128?u[Z++]=l:(l<2048?u[Z++]=192|l>>>6:(l<65536?u[Z++]=224|l>>>12:(u[Z++]=240|l>>>18,u[Z++]=128|l>>>12&63),u[Z++]=
128|l>>>6&63),u[Z++]=128|l&63);return u};var Dl2={};Dl2=function(G,H,Z,Q){var p=G&65535|0;G=G>>>16&65535|0;for(var l;Z!==0;){l=Z>2E3?2E3:Z;Z-=l;do p=p+H[Q++]|0,G=G+p|0;while(--l);p%=65521;G%=65521}return p|G<<16|0};for(var Oi={},Tv,S74=[],u8x=0;u8x<256;u8x++){Tv=u8x;for(var BcT=0;BcT<8;BcT++)Tv=Tv&1?3988292384^Tv>>>1:Tv>>>1;S74[u8x]=Tv}Oi=function(G,H,Z,Q){Z=Q+Z;for(G^=-1;Q<Z;Q++)G=G>>>8^S74[(G^H[Q])&255];return G^-1};var Kg={};Kg={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 p$2=[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],gTu=[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],zG3=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],tX2=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rt=Array(576);$N(rt);var wt=Array(60);$N(wt);var WP=Array(512);$N(WP);var vP=Array(256);$N(vP);var lpR=Array(29);$N(lpR);var Ipu=Array(30);$N(Ipu);var fpM,vT3,WAo,TTf=!1;var mI;
mI=[new o1(0,0,0,0,function(G,H){var Z=65535;for(Z>G.pending_buf_size-5&&(Z=G.pending_buf_size-5);;){if(G.lookahead<=1){a1(G);if(G.lookahead===0&&H===0)return 1;if(G.lookahead===0)break}G.strstart+=G.lookahead;G.lookahead=0;var Q=G.block_start+Z;if(G.strstart===0||G.strstart>=Q)if(G.lookahead=G.strstart-Q,G.strstart=Q,h3(G,!1),G.strm.avail_out===0)return 1;if(G.strstart-G.block_start>=G.w_size-262&&(h3(G,!1),G.strm.avail_out===0))return 1}G.insert=0;if(H===4)return h3(G,!0),G.strm.avail_out===0?3:
4;G.strstart>G.block_start&&h3(G,!1);return 1}),
new o1(4,4,8,4,dl3),new o1(4,5,16,8,dl3),new o1(4,6,32,32,dl3),new o1(4,4,16,16,yL),new o1(8,16,32,32,yL),new o1(8,16,128,128,yL),new o1(8,32,128,256,yL),new o1(32,128,258,1024,yL),new o1(32,258,258,4096,yL)];var c0o={};c0o=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 MXv=Object.prototype.toString;
X$R.prototype.push=function(G,H){var Z=this.strm,Q=this.options.chunkSize;if(this.ended)return!1;var p=H===~~H?H:H===!0?4:0;typeof G==="string"?Z.input=KAX(G):MXv.call(G)==="[object ArrayBuffer]"?Z.input=new Uint8Array(G):Z.input=G;Z.next_in=0;Z.avail_in=Z.input.length;do{Z.avail_out===0&&(Z.output=new fg.Buf8(Q),Z.next_out=0,Z.avail_out=Q);G=$lf(Z,p);if(G!==1&&G!==0)return Jy7(this,G),this.ended=!0,!1;if(Z.avail_out===0||Z.avail_in===0&&(p===4||p===2))if(this.options.to==="string"){var l=fg.shrinkBuf(Z.output,
Z.next_out);H=l;l=l.length;if(l<65537&&(H.subarray&&q7x||!H.subarray))H=String.fromCharCode.apply(null,fg.shrinkBuf(H,l));else{for(var q="",u=0;u<l;u++)q+=String.fromCharCode(H[u]);H=q}this.chunks.push(H)}else H=fg.shrinkBuf(Z.output,Z.next_out),this.chunks.push(H)}while((Z.avail_in>0||Z.avail_out===0)&&G!==1);if(p===4)return(Z=this.strm)&&Z.state?(Q=Z.state.status,Q!==42&&Q!==69&&Q!==73&&Q!==91&&Q!==103&&Q!==113&&Q!==666?G=Mh(Z,-2):(Z.state=null,G=Q===113?Mh(Z,-3):0)):G=-2,Jy7(this,G),this.ended=
!0,G===0;p===2&&(Jy7(this,0),Z.avail_out=0);return!0};
var Jy7=function(G,H){H===0&&(G.result=G.options.to==="string"?G.chunks.join(""):fg.flattenChunks(G.chunks));G.chunks=[];G.err=H;G.msg=G.strm.msg};var tSw=typeof TextEncoder!=="undefined"?new TextEncoder:null,lIo=tSw?function(G){return tSw.encode(G)}:function(G){G=_.rI(G);
for(var H=new Uint8Array(G.length),Z=0;Z<H.length;Z++)H[Z]=G[Z];return H};var ElM={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},FXR={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var fV=function(G,H){this.version=G;this.args=H};
fV.prototype.serialize=function(){return{version:this.version,args:this.args}};var hGj=function(G,H){this.topic=G;this.dataClass=H};
hGj.prototype.toString=function(){return this.topic};var k9_=_.GF("ytPubsub2Pubsub2Instance")||new _.K$;_.K$.prototype.subscribe=_.K$.prototype.subscribe;_.K$.prototype.unsubscribeByKey=_.K$.prototype.unsubscribeByKey;_.K$.prototype.publish=_.K$.prototype.publish;_.K$.prototype.clear=_.K$.prototype.clear;_.u7("ytPubsub2Pubsub2Instance",k9_);var w$o=_.GF("ytPubsub2Pubsub2SubscribedKeys")||{};_.u7("ytPubsub2Pubsub2SubscribedKeys",w$o);var i33=_.GF("ytPubsub2Pubsub2TopicToKeys")||{};_.u7("ytPubsub2Pubsub2TopicToKeys",i33);
var CSf=_.GF("ytPubsub2Pubsub2IsAsync")||{};_.u7("ytPubsub2Pubsub2IsAsync",CSf);_.u7("ytPubsub2Pubsub2SkipSubKey",null);var xlj=void 0,NTW=void 0;var sKM=_.eA("max_body_size_to_compress",5E5),ZHo=_.eA("min_body_size_to_compress",500),Nh=!0,qIj=0,A3=0,IIo=_.eA("compression_performance_threshold_lr",250),SI3=_.eA("slow_compressions_before_abandon_count",4),YD3=!1,FAj=new Map,pGU=1,QKe=!0;_.AB(xN,Jv3);xN.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 Dv_=function(G,H,Z){Z||(Z=0);var Q=G.W_;if(typeof H==="string")for(var p=0;p<16;p++)Q[p]=H.charCodeAt(Z)<<24|H.charCodeAt(Z+1)<<16|H.charCodeAt(Z+2)<<8|H.charCodeAt(Z+3),Z+=4;else for(p=0;p<16;p++)Q[p]=H[Z]<<24|H[Z+1]<<16|H[Z+2]<<8|H[Z+3],Z+=4;for(H=16;H<80;H++)Z=Q[H-3]^Q[H-8]^Q[H-14]^Q[H-16],Q[H]=(Z<<1|Z>>>31)&4294967295;H=G.chain_[0];Z=G.chain_[1];p=G.chain_[2];for(var l=G.chain_[3],q=G.chain_[4],u,B,t=0;t<80;t++)t<40?t<20?(u=l^Z&(p^l),B=1518500249):(u=Z^p^l,B=1859775393):t<60?(u=Z&p|l&(Z|p),
B=2400959708):(u=Z^p^l,B=3395469782),u=(H<<5|H>>>27)+u+q+B+Q[t]&4294967295,q=l,l=p,p=(Z<<30|Z>>>2)&4294967295,Z=H,H=u;G.chain_[0]=G.chain_[0]+H&4294967295;G.chain_[1]=G.chain_[1]+Z&4294967295;G.chain_[2]=G.chain_[2]+p&4294967295;G.chain_[3]=G.chain_[3]+l&4294967295;G.chain_[4]=G.chain_[4]+q&4294967295};
xN.prototype.update=function(G,H){if(G!=null){H===void 0&&(H=G.length);for(var Z=H-this.blockSize,Q=0,p=this.buf_,l=this.inbuf_;Q<H;){if(l==0)for(;Q<=Z;)Dv_(this,G,Q),Q+=this.blockSize;if(typeof G==="string")for(;Q<H;){if(p[l]=G.charCodeAt(Q),++l,++Q,l==this.blockSize){Dv_(this,p);l=0;break}}else for(;Q<H;)if(p[l]=G[Q],++l,++Q,l==this.blockSize){Dv_(this,p);l=0;break}}this.inbuf_=l;this.total_+=H}};
xN.prototype.digest=function(){var G=[],H=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var Z=this.blockSize-1;Z>=56;Z--)this.buf_[Z]=H&255,H/=256;Dv_(this,this.buf_);for(Z=H=0;Z<5;Z++)for(var Q=24;Q>=0;Q-=8)G[H]=this.chain_[Z]>>Q&255,++H;return G};var D6e;var Ws=function(G){var H=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(D){H.databaseToken=D},
triggerThrottle:function(){H.throttledSend()},
cancelThrottle:function(){H.cancelThrottledSend()},
immediateSend:function(D){return _.S(function(d){return d.yield(H.immediateSend(D),0)})},
requestWithinAgeLimit:function(D,d){return H.requestWithinAgeLimit(D,d)},
retryQueuedRequests:function(){H.retryQueuedRequests()}};
var Z;this.throttleTimeout=(Z=G.throttleTimeout)!=null?Z:100;var Q;this.retryMaxAttempts=(Q=G.retryMaxAttempts)!=null?Q:1;var p;this.requestAgeLimitMs=(p=G.requestAgeLimitMs)!=null?p:2592E6;var l;this.queuedRequestAgeLimitMs=(l=G.queuedRequestAgeLimitMs)!=null?l:12E4;var q;this.retryDelayMs=(q=G.retryDelayMs)!=null?q:5E3;var u;this.databaseToken=(u=G.databaseToken)!=null?u:void 0;this.enableCleaning=!!G.enableCleaning;var B;this.cleaningRate=(B=G.cleaningRate)!=null?B:.1;var t;this.potentialEsfErrorLimit=
(t=G.potentialEsfErrorLimit)!=null?t:10;G.handleError&&(this.handleError=G.handleError);G.handleWarning&&(this.handleWarning=G.handleWarning);G.disableYtIdbTransactions&&(this.disableYtIdbTransactions=G.disableYtIdbTransactions);G.bypassDbTokenDependency&&(this.bypassDbTokenDependency=G.bypassDbTokenDependency);this.getBooleanFlag=G.getBooleanFlag;this.jobManager=G.jobManager;this.logsStore=G.logsStore;this.networkManager=G.networkManager;this.sendFn=G.sendFn;this.onlineEvent=G.onlineEvent;this.offlineEvent=
G.offlineEvent;vs(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&dv7(this)},dv7=function(G){vs(G)&&!G.disableYtIdbTransactions&&(G.initialized=!0,G.enableCleaning&&Math.random()<=G.cleaningRate&&G.logsStore.cleanLogsStore(G.databaseToken),G.retryQueuedRequests(),G.networkManager.isNetworkAvailable()&&G.throttledSend(),G.networkManager.listen(G.onlineEvent,G.throttledSend.bind(G)),G.networkManager.listen(G.offlineEvent,G.cancelThrottledSend.bind(G)))};
_.g=Ws.prototype;_.g.writeThenSend=function(G,H){var Z=this;H=H===void 0?{}:H;if(vs(this)&&this.initialized){var Q={url:G,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(Q,this.databaseToken).then(function(p){Q.id=p;Z.networkManager.isNetworkAvailable()&&Z.immediateSend(Q)}).catch(function(p){Z.immediateSend(Q);
e8R(Z,p)})}else this.sendFn(G,H)};
_.g.sendThenWrite=function(G,H,Z){var Q=this;H=H===void 0?{}:H;if(vs(this)&&this.initialized){var p={url:G,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(p.skipRetry=Z);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!p.skipRetry){if(!p.skipRetry){var l=H.onError?H.onError:function(){};
H.onError=function(q,u){return _.S(function(B){if(B.nextAddress==1)return B.yield(Q.logsStore.set(p,Q.databaseToken).catch(function(t){e8R(Q,t)}),2);
l(q,u);_.K0(B)})}}this.sendFn(G,H,p.skipRetry)}else this.logsStore.set(p,this.databaseToken).catch(function(q){Q.sendFn(G,H,p.skipRetry);
e8R(Q,q)})}else this.sendFn(G,H,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&Z)};
_.g.sendAndWrite=function(G,H){var Z=this;H=H===void 0?{}:H;if(vs(this)&&this.initialized){var Q={url:G,options:H,timestamp:this.now(),status:"NEW",sendCount:0},p=!1,l=H.onSuccess?H.onSuccess:function(){};
Q.options.onSuccess=function(q,u){Q.id!==void 0?Z.logsStore.deleteRequest(Q.id,Z.databaseToken):p=!0;Z.networkManager.networkStatusHint&&Z.getBooleanFlag&&Z.getBooleanFlag("vss_network_hint")&&Z.networkManager.networkStatusHint(!0);l(q,u)};
this.sendFn(Q.url,Q.options,void 0,!0);this.logsStore.set(Q,this.databaseToken).then(function(q){Q.id=q;p&&Z.logsStore.deleteRequest(Q.id,Z.databaseToken)}).catch(function(q){e8R(Z,q)})}else this.sendFn(G,H,void 0,!0)};
_.g.throttledSend=function(){var G=this;if(!vs(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.logsStore.getMostRecentByStatus("NEW",G.databaseToken),2);if(Z.nextAddress!=3)return H=Z.yieldResult,H?Z.yield(G.immediateSend(H),3):(G.cancelThrottledSend(),Z.return());G.intervalJob&&(G.intervalJob=0,G.throttledSend());_.K0(Z)})},this.throttleTimeout))};
_.g.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.g.immediateSend=function(G){var H=this,Z;return _.S(function(Q){switch(Q.nextAddress){case 1:if(!vs(H))throw Error("cd");if(G.id===void 0){Q.jumpTo(2);break}return Q.yield(H.logsStore.markAsQueued(G.id,H.databaseToken),3);case 3:(Z=Q.yieldResult)||H.handleWarning(Error("dd"));case 2:if(H.requestWithinAgeLimit(G,H.requestAgeLimitMs)){Q.jumpTo(4);break}H.handleWarning(Error("ed"));if(G.id===void 0){Q.jumpTo(5);break}return Q.yield(H.logsStore.deleteRequest(G.id,H.databaseToken),5);case 5:return Q.return();
case 4:G.skipRetry||(G=na4(H,G));if(!G){Q.jumpTo(0);break}if(!G.skipRetry||G.id===void 0){Q.jumpTo(8);break}return Q.yield(H.logsStore.deleteRequest(G.id,H.databaseToken),8);case 8:H.sendFn(G.url,G.options,!!G.skipRetry),_.K0(Q)}})};
var na4=function(G,H){if(!vs(G))throw Error("fd");var Z=H.options.onError?H.options.onError:function(){};
H.options.onError=function(p,l){var q,u,B,t;return _.S(function(D){switch(D.nextAddress){case 1:q=$6b(l);(u=XG2(l))&&G.getBooleanFlag&&G.getBooleanFlag("web_enable_error_204")&&G.handleError(Error("gd"),H.url,l);if(!(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&q||G.getBooleanFlag&&!G.getBooleanFlag("nwl_consider_error_code")&&G.potentialEsfErrorCounter<=G.potentialEsfErrorLimit)){D.jumpTo(2);break}if(!G.networkManager.sendNetworkCheckRequest){D.jumpTo(3);break}return D.yield(G.networkManager.sendNetworkCheckRequest(),
3);case 3:if(G.networkManager.isNetworkAvailable()){D.jumpTo(2);break}Z(p,l);if(!G.getBooleanFlag||!G.getBooleanFlag("nwl_consider_error_code")||((B=H)==null?void 0:B.id)===void 0){D.jumpTo(6);break}return D.yield(G.logsStore.resetRequest(H.id,G.databaseToken,!1),6);case 6:return D.return();case 2:if(G.getBooleanFlag&&G.getBooleanFlag("nwl_consider_error_code")&&!q&&G.potentialEsfErrorCounter>G.potentialEsfErrorLimit)return D.return();G.potentialEsfErrorCounter++;if(((t=H)==null?void 0:t.id)===void 0){D.jumpTo(8);
break}return H.sendCount<G.retryMaxAttempts?D.yield(G.logsStore.resetRequest(H.id,G.databaseToken,!0,u?!1:void 0),12):D.yield(G.logsStore.deleteRequest(H.id,G.databaseToken),8);case 12:G.jobManager.addLowPriorityJob(function(){G.networkManager.isNetworkAvailable()&&G.throttledSend()},G.retryDelayMs);
case 8:Z(p,l),_.K0(D)}})};
var Q=H.options.onSuccess?H.options.onSuccess:function(){};
H.options.onSuccess=function(p,l){var q;return _.S(function(u){if(u.nextAddress==1)return((q=H)==null?void 0:q.id)===void 0?u.jumpTo(2):u.yield(G.logsStore.deleteRequest(H.id,G.databaseToken),2);G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);Q(p,l);_.K0(u)})};
return H};
Ws.prototype.requestWithinAgeLimit=function(G,H){G=G.timestamp;return this.now()-G>=H?!1:!0};
Ws.prototype.retryQueuedRequests=function(){var G=this;if(!vs(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(H){H&&!G.requestWithinAgeLimit(H,G.queuedRequestAgeLimitMs)?G.jobManager.addLowPriorityJob(function(){return _.S(function(Z){if(Z.nextAddress==1)return H.id===void 0?Z.jumpTo(2):Z.yield(G.logsStore.resetRequest(H.id,G.databaseToken),2);G.retryQueuedRequests();_.K0(Z)})}):G.networkManager.isNetworkAvailable()&&G.throttledSend()})};
var e8R=function(G,H){G.writeError&&!G.networkManager.isNetworkAvailable()?G.writeError(H):G.handleError(H)},vs=function(G){return!!G.databaseToken||G.bypassDbTokenDependency};var cvb;var j0e={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,kidsPrismaDeeplinksEvent:530};var VSa={},rvb=J3("ServiceWorkerLogsDatabase",{objectStores:(VSa.SWHealthLog={addedAtVersion:1},VSa),shared:!0,upgrade:function(G,H){H(1)&&Fq(YN(G,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var oQR={},yvv=0;var Nxe;var zv=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Zv=function(){if(!zv.instance){var G=_.GF("yt.networkRequestMonitor.instance")||new zv;
_.u7("yt.networkRequestMonitor.instance",G);zv.instance=G}return zv.instance};
zv.prototype.requestComplete=function(G,H){H&&(this.anyRequestHasSucceeded=!0);G=this.removeParams(G);this.requestMap.get(G)||this.requestMap.set(G,H)};
zv.prototype.isEndpointCFR=function(G){G=this.removeParams(G);return(G=this.requestMap.get(G))?!1:G===!1&&this.anyRequestHasSucceeded?!0:null};
zv.prototype.removeParams=function(G){return G.split("?")[0]};
zv.prototype.removeParams=zv.prototype.removeParams;zv.prototype.isEndpointCFR=zv.prototype.isEndpointCFR;zv.prototype.requestComplete=zv.prototype.requestComplete;zv.getInstance=Zv;var KV=function(G){_.$f.call(this);var H=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=G!=null?G:{addLowPriorityJob:function(p,l){return setTimeout(p,l)},
cancelJob:function(p){clearTimeout(p)}};
var Z,Q;this.isOnline=(Q=(Z=window.navigator)==null?void 0:Z.onLine)!=null?Q:!0;this.onNavigatorChange=function(){return _.S(function(p){return p.yield($vT(H),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||XvN(this)};
_.T(KV,_.$f);KV.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete KV.instance};
KV.prototype.isNetworkAvailable=function(){return this.isOnline};
var XvN=function(G){G.pollingJob=G.jobManager.addLowPriorityJob(function(){var H;return _.S(function(Z){if(Z.nextAddress==1)return G.isOnline?((H=window.navigator)==null?0:H.onLine)?Z.jumpTo(3):Z.yield($vT(G),3):Z.yield($vT(G),3);XvN(G);_.K0(Z)})},3E4)},$vT=function(G,H){return G.networkRequestPromise?G.networkRequestPromise:G.networkRequestPromise=new Promise(function(Z){var Q,p,l,q;
return _.S(function(u){switch(u.nextAddress){case 1:return Q=window.AbortController?new window.AbortController:void 0,l=(p=Q)==null?void 0:p.signal,q=!1,_.XV(u,2,3),Q&&(G.abortTimeoutKey=G.jobManager.addLowPriorityJob(function(){Q.abort()},H||2E4)),u.yield(fetch("/generate_204",{method:"HEAD",
signal:l}),5);case 5:q=!0;case 3:_.TO(u);G.networkRequestPromise=void 0;G.abortTimeoutKey&&(G.jobManager.cancelJob(G.abortTimeoutKey),G.abortTimeoutKey=0);q!==G.isOnline&&(G.isOnline=q,G.isOnline?G.dispatchEvent("networkstatus-online"):G.dispatchEvent("networkstatus-offline"));Z(q);_.vg(u,0);break;case 2:_.Wg(u),q=!1,u.jumpTo(3)}})})};var MO=function(){_.$f.call(this);var G=this;this.shouldFlushErrors=!1;KV.instance||(KV.instance=new KV(_.Ui));this.sharedNetworkStatusManager=KV.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(G.shouldFlushErrors&&_.V("offline_error_handling")){var H=Avf().get("errors",!0);if(H){for(var Z in H)if(H[Z]){var Q=new _.C$(Z,"sent via offline_errors");Q.name=H[Z].name;Q.stack=H[Z].stack;Q.level=H[Z].level;_.FU(Q)}Avf().set("errors",{},2592E3,!0)}}})};
_.T(MO,_.$f);var cyd=function(){if(!MO.instance){var G=_.GF("yt.networkStatusManager.instance")||new MO;_.u7("yt.networkStatusManager.instance",G);MO.instance=G}return MO.instance};
_.g=MO.prototype;_.g.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.g.networkStatusHint=function(G){this.sharedNetworkStatusManager.isOnline=G};
_.g.getWindowStatus=function(){var G=window.navigator.onLine;return G===void 0?!0:G};
_.g.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.g.listen=function(G,H){return this.sharedNetworkStatusManager.listen(G,H)};
_.g.sendNetworkCheckRequest=function(G){G=$vT(this.sharedNetworkStatusManager,G);G.then(function(H){_.V("use_cfr_monitor")&&Zv().requestComplete("generate_204",H)});
return G};
MO.prototype.sendNetworkCheckRequest=MO.prototype.sendNetworkCheckRequest;MO.prototype.listen=MO.prototype.listen;MO.prototype.enableErrorFlushing=MO.prototype.enableErrorFlushing;MO.prototype.getWindowStatus=MO.prototype.getWindowStatus;MO.prototype.networkStatusHint=MO.prototype.networkStatusHint;MO.prototype.isNetworkAvailable=MO.prototype.isNetworkAvailable;MO.getInstance=cyd;_.sN=function(G){G=G===void 0?{}:G;_.$f.call(this);var H=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=cyd();var Z=_.GF("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);Z&&(G.rateLimit?(this.rateLimit=G.rateLimit,Z("networkstatus-online",function(){Tc_(H,"publicytnetworkstatus-online")}),Z("networkstatus-offline",function(){Tc_(H,"publicytnetworkstatus-offline")})):(Z("networkstatus-online",function(){H.dispatchEvent("publicytnetworkstatus-online")}),Z("networkstatus-offline",
function(){H.dispatchEvent("publicytnetworkstatus-offline")})))};
_.T(_.sN,_.$f);_.sN.prototype.isNetworkAvailable=function(){var G=_.GF("yt.networkStatusManager.instance.isNetworkAvailable");return G?G.bind(this.nsmInstance)():!0};
_.sN.prototype.networkStatusHint=function(G){var H=_.GF("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);H&&H(G)};
_.sN.prototype.sendNetworkCheckRequest=function(G){var H=this,Z;return _.S(function(Q){Z=_.GF("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(H.nsmInstance);return _.V("skip_network_check_if_cfr")&&Zv().isEndpointCFR("generate_204")?Q.return(new Promise(function(p){var l;H.networkStatusHint(((l=window.navigator)==null?void 0:l.onLine)||!0);p(H.isNetworkAvailable())})):Z?Q.return(Z(G)):Q.return(!0)})};
var Tc_=function(G,H){G.rateLimit?G.lastJobTime?(_.Ui.cancelJob(G.schedulerJob),G.schedulerJob=_.Ui.addLowPriorityJob(function(){G.lastPublicSignalSent!==H&&(G.dispatchEvent(H),G.lastPublicSignalSent=H,G.lastJobTime=(0,_.t3)())},G.rateLimit-((0,_.t3)()-G.lastJobTime))):(G.dispatchEvent(H),G.lastPublicSignalSent=H,G.lastJobTime=(0,_.t3)()):G.dispatchEvent(H)};var Fle,jG=function(){Ws.call(this,{logsStore:{cleanLogsStore:jKU,deleteRequest:M9o,getMostRecentByStatus:WlW,markAsQueued:z2j,resetRequest:KlM,set:vQu},networkManager:_.bHM(),handleError:function(G,H,Z){var Q,p=Z==null?void 0:(Q=Z.error)==null?void 0:Q.code;if(p===400||p===415){var l;G=new _.C$(G.message,H,Z==null?void 0:(l=Z.error)==null?void 0:l.code);_.HU(G,void 0,void 0,void 0,!0)}else _.FU(G)},
handleWarning:_.HU,sendFn:EQj,now:_.t3,writeError:x6j,jobManager:_.DG(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.eA("potential_esf_error_limit",10),getBooleanFlag:_.V,disableYtIdbTransactions:!(_.hp()&&_.GtX())});this.initializationPromise=new _.sD;_.V("networkless_immediately_drop_all_requests")&&Pqb();Xvj("LogsDatabaseV2")};
_.T(jG,Ws);_.vaw=function(){var G=_.GF("yt.networklessRequestController.instance");G||(G=new jG,_.u7("yt.networklessRequestController.instance",G),_.V("networkless_logging")&&_.BP().then(function(H){G.databaseToken=H;dv7(G);G.initializationPromise.resolve();G.enableCleaning&&Math.random()<=G.cleaningRate&&G.databaseToken&&h2v(G.databaseToken);_.V("networkless_immediately_drop_sw_health_store")&&ffp(G)}));
return G};
jG.prototype.writeThenSend=function(G,H){H||(H={});H=YIU(G,H);_.hp()||(this.initialized=!1);Ws.prototype.writeThenSend.call(this,G,H)};
jG.prototype.sendThenWrite=function(G,H,Z){H||(H={});H=YIU(G,H);_.hp()||(this.initialized=!1);Ws.prototype.sendThenWrite.call(this,G,H,Z)};
jG.prototype.sendAndWrite=function(G,H){H||(H={});H=YIU(G,H);_.hp()||(this.initialized=!1);Ws.prototype.sendAndWrite.call(this,G,H)};
jG.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var ffp=function(G){var H;_.S(function(Z){if(!G.databaseToken)throw H=YM("clearSWHealthLogsDb"),H;return Z.return(Cqb(G.databaseToken).catch(function(Q){G.handleError(Q)}))})};_.sXj=!1;_.HXR=_.Qf.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.sXj};_.u7("ytNetworklessLoggingInitializationOptions",_.HXR);var ap=function(G){var H=this;this.config_=null;G?this.config_=G:jq3()&&(this.config_=_.Da());_.wM(_.Ui,function(){V9M(H)},5E3)};
ap.prototype.isReady=function(){!this.config_&&jq3()&&(this.config_=_.Da());return!!this.config_};
var nQj=function(G,H,Z,Q){!_.xI("VISITOR_DATA")&&H!=="visitor_id"&&Math.random()<.01&&_.HU(new _.C$("Missing VISITOR_DATA when sending innertube request.",H,Z,Q));if(!G.isReady()){var p=new _.C$("innertube xhrclient not ready",H,Z,Q);_.FU(p);throw p;}var l={headers:Q.headers||{},method:"POST",postParams:Z,postBody:Q.postBody,postBodyFormat:Q.postBodyFormat||"JSON",onTimeout:function(){Q.onTimeout()},
onFetchTimeout:Q.onTimeout,onSuccess:function(d,e){if(Q.onSuccess)Q.onSuccess(e)},
onFetchSuccess:function(d){if(Q.onSuccess)Q.onSuccess(d)},
onProgress:function(d){if(Q.onProgress)Q.onProgress(d)},
onError:function(d,e){if(Q.onError)Q.onError(e)},
onFetchError:function(d){if(Q.onError)Q.onError(d)},
timeout:Q.timeout,withCredentials:!0,compress:Q.compress};l.headers["Content-Type"]||(l.headers["Content-Type"]="application/json");var q="";(p=G.config_.innertubeHostOverride)&&(q=p);var u=G.config_.innertubeUseThirdPartyAuth||!1,B=_.xv2(u,q,Q);Object.assign(l.headers,B);l.headers.Authorization&&!q&&u&&(l.headers["x-origin"]=window.location.origin);var t=_.l0(q+("/youtubei/"+G.config_.innertubeApiVersion+"/"+H),{alt:"json"}),D=function(d){d=d===void 0?!1:d;var e;if(Q.retry&&q!="www.youtube-nocookie.com"&&
(d||_.V("skip_ls_gel_retry")||l.headers["Content-Type"]!=="application/json"||(e=d6f(H,Z,B,u)),e)){var n=l.onSuccess,c=l.onFetchSuccess;l.onSuccess=function(r,w){e2e(e);n(r,w)};
Z.onFetchSuccess=function(r,w){e2e(e);c(r,w)}}try{if(d&&Q.retry&&!Q.networklessOptions.bypassNetworkless)l.method="POST",Q.networklessOptions.writeThenSend?_.vaw().writeThenSend(t,l):_.vaw().sendAndWrite(t,l);
else if(Q.compress){var W=!Q.networklessOptions.writeThenSend;if(l.postBody){var M=l.postBody;typeof M!=="string"&&(M=JSON.stringify(l.postBody));gQj(t,M,l,_.WU,W)}else gQj(t,JSON.stringify(l.postParams),l,te3,W)}else _.V("web_all_payloads_via_jspb")?_.WU(t,l):te3(t,l)}catch(r){if(r.name==="InvalidAccessError")e&&(e2e(e),e=0),_.HU(Error("id"));else throw r;}e&&_.wM(_.Ui,function(){V9M(G)},5E3)};
_.ZXb()?tSR().then(function(d){D(d)}):D(!1)};var TSj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(TSj,_.Iy);var Wm2=0,pTb=_.b$?"webkit":_.FW?"moz":_.Yj?"ms":OWw?"o":"";_.u7("ytDomDomGetNextId",_.GF("ytDomDomGetNextId")||function(){return++Wm2});var z8w={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},q1=function(G){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(G=
G||window.event){this.event=G;for(var H in G)H in z8w||(this[H]=G[H]);this.scale=G.scale;this.rotation=G.rotation;var Z=G.target||G.srcElement;Z&&Z.nodeType==3&&(Z=Z.parentNode);this.target=Z;var Q=G.relatedTarget;if(Q)try{Q=Q.nodeName?Q:null}catch(p){Q=null}else this.type=="mouseover"?Q=G.fromElement:this.type=="mouseout"&&(Q=G.toElement);this.relatedTarget=Q;this.clientX=G.clientX!=void 0?G.clientX:G.pageX;this.clientY=G.clientY!=void 0?G.clientY:G.pageY;this.keyCode=G.keyCode?G.keyCode:G.which;
this.charCode=G.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=G.altKey;this.ctrlKey=G.ctrlKey;this.shiftKey=G.shiftKey;this.metaKey=G.metaKey;this.pageX_=G.pageX;this.pageY_=G.pageY}}catch(p){}},KmT=function(G){if(document.body&&document.documentElement){var H=document.body.scrollTop+document.documentElement.scrollTop;
G.pageX_=G.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);G.pageY_=G.clientY+H}};
q1.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
q1.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
q1.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Ip=_.Qf.ytEventsEventsListeners||{};_.u7("ytEventsEventsListeners",Ip);var ugj=_.Qf.ytEventsEventsCounter||{count:0};_.u7("ytEventsEventsCounter",ugj);var Brb=_.e4(function(){var G=!1;try{var H=Object.defineProperty({},"capture",{get:function(){G=!0}});
window.addEventListener("test",null,H)}catch(Z){}return G});_.AB(uc,_.wI);uc.prototype.onMouseMove_=function(G){G.pageX_===void 0&&KmT(G);var H=G.pageX_;G.pageY_===void 0&&KmT(G);this.position_=new _.UA(H,G.pageY_)};
uc.prototype.checkPosition_=function(){if(this.position_){var G=(0,_.t3)();if(this.previousTime_!=0){var H=this.previousPosition_,Z=this.position_,Q=H.x-Z.x;H=H.y-Z.y;Q=Math.sqrt(Q*Q+H*H)/(G-this.previousTime_);this.cycles_[this.index_]=Math.abs((Q-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(Z=H=0;Z<4;Z++)H+=this.cycles_[Z]||0;H>=3&&this.callback_();this.previousVelocity_=Q}this.previousTime_=G;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
uc.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Jtf(this.mouseListenerKey_)};var eoU={};var vVR=new _.bn("rawColdConfigGroup");var foM=new _.bn("rawHotConfigGroup");var MSN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(MSN,_.Iy);var c$W=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(c$W,_.Iy);var rM=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G,500)};
_.T(rM,_.Iy);rM.prototype.getPayloadCase=function(){return _.B4(this,jqd)};
rM.prototype.getContext=function(){return _.dt(this,c$W,33)};
var jqd=[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,530];var nVf=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(nVf,_.Iy);var L3e=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(L3e,_.Iy);L3e.prototype.setVideoId=function(G){return fT(this,1,ECe,XL(G))};
L3e.prototype.getPlaylistId=function(){return _.W7(this,M1(this,ECe,2))};
var ECe=[1,2];var JQU=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(JQU,_.Iy);JQU.prototype.getContext=function(){return _.dt(this,vW,1)};
JQU.prototype.getTier=function(){return _.V8(this,7)};var PXR,kJ,Dv;PXR=_.Qf.ytPubsubPubsubInstance||new _.K$;kJ=_.Qf.ytPubsubPubsubSubscribedKeys||{};Dv=_.Qf.ytPubsubPubsubTopicToKeys||{};_.nCj=_.Qf.ytPubsubPubsubIsSynchronous||{};_.K$.prototype.subscribe=_.K$.prototype.subscribe;_.K$.prototype.unsubscribeByKey=_.K$.prototype.unsubscribeByKey;_.K$.prototype.publish=_.K$.prototype.publish;_.K$.prototype.clear=_.K$.prototype.clear;_.u7("ytPubsubPubsubInstance",PXR);_.u7("ytPubsubPubsubTopicToKeys",Dv);_.u7("ytPubsubPubsubIsSynchronous",_.nCj);
_.u7("ytPubsubPubsubSubscribedKeys",kJ);var nT=window;var Ps=_.V("web_enable_lifecycle_monitoring")&&Trj()!==0,ryt=_.V("web_enable_lifecycle_monitoring");var wva=function(G){var H=this;var Z=Z===void 0?0:Z;var Q=Q===void 0?_.DG():Q;this.JSC$10895_defaultPriority=Z;this.scheduler=Q;this.completedResolver=new _.sD;this.scheduledPayloads=G;for(G={i$jscomp$492:0};G.i$jscomp$492<this.scheduledPayloads.length;G={payload$jscomp$20:void 0,i$jscomp$492:G.i$jscomp$492},G.i$jscomp$492++)G.payload$jscomp$20=this.scheduledPayloads[G.i$jscomp$492],Z=function(p){return function(){p.payload$jscomp$20.job();H.scheduledPayloads[p.i$jscomp$492].processed=!0;H.scheduledPayloads.every(function(l){return l.processed===
!0})&&H.completedResolver.resolve()}}(G),Q=this.getPriority(G.payload$jscomp$20),Q=this.scheduler.addJob(Z,Q),this.scheduledPayloads[G.i$jscomp$492]=Object.assign({},G.payload$jscomp$20,{job:Z,
jobId:Q})};
wva.prototype.flushJobs=function(){var G=this,H=Array.from(this.scheduledPayloads.keys()).sort(function(Q,p){return G.getPriority(G.scheduledPayloads[p])-G.getPriority(G.scheduledPayloads[Q])});
H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=this.scheduledPayloads[Z.value],Z.jobId===void 0||Z.processed||(this.scheduler.cancelJob(Z.jobId),this.scheduler.addJob(Z.job,10))};
wva.prototype.cancel=function(){for(var G=_.I(this.scheduledPayloads),H=G.next();!H.done;H=G.next())H=H.value,H.jobId===void 0||H.processed||this.scheduler.cancelJob(H.jobId),H.processed=!0;this.completedResolver.resolve()};
wva.prototype.getPriority=function(G){var H;return(H=G.priority)!=null?H:this.JSC$10895_defaultPriority};var rK=function(G){this.state=G;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Ps&&fJ2(this.state)};
rK.prototype.install=function(G){this.plugins.push(G);return this};
rK.prototype.uninstall=function(){var G=this;_.Ry.apply(0,arguments).forEach(function(H){H=G.plugins.indexOf(H);H>-1&&G.plugins.splice(H,1)})};
rK.prototype.transition=function(G,H){var Z=this;Ps&&vCv(this.state);var Q=this.transitions.find(function(l){return Array.isArray(l.from)?l.from.find(function(q){return q===Z.state&&l.to===G}):l.from===Z.state&&l.to===G});
if(Q){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);h8N(this,G,H);this.state=G;Ps&&fJ2(this.state);Q=Q.action.bind(this);var p=this.plugins.filter(function(l){return l[G]}).map(function(l){return l[G]});
Q(CXa(this,p),H)}else throw Error("jd`"+this.state+"`"+G);};
var CXa=function(G,H){var Z=H.filter(function(p){return iNa(G,p)===10}),Q=H.filter(function(p){return iNa(G,p)!==10});
return G.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var p=_.Ry.apply(0,arguments);return _.S(function(l){if(l.nextAddress==1)return l.yield(G.runImmediateJobsAsync.apply(G,[Z].concat(_.OP(p))),2);G.setJobSetWithScheduledJobs.apply(G,[Q].concat(_.OP(p)));_.K0(l)})}:function(){var p=_.Ry.apply(0,arguments);
G.runImmediateJobsSync.apply(G,[Z].concat(_.OP(p)));G.setJobSetWithScheduledJobs.apply(G,[Q].concat(_.OP(p)))}};
rK.prototype.runImmediateJobsSync=function(G){var H=_.Ry.apply(1,arguments);_.DG();for(var Z=_.I(G),Q=Z.next(),p={};!Q.done;p={lifecycle$jscomp$2:void 0},Q=Z.next())p.lifecycle$jscomp$2=Q.value,LX(function(l){return function(){ONp(l.lifecycle$jscomp$2.name);zo2(function(){return l.lifecycle$jscomp$2.callback.apply(l.lifecycle$jscomp$2,_.OP(H))});
wK(l.lifecycle$jscomp$2.name)}}(p))};
rK.prototype.runImmediateJobsAsync=function(G){var H=_.Ry.apply(1,arguments),Z,Q,p,l;return _.S(function(q){q.nextAddress==1&&(_.DG(),Z=_.I(G),Q=Z.next(),p={});if(q.nextAddress!=3){if(Q.done)return q.jumpTo(0);p.lifecycle$jscomp$3=Q.value;p.asyncJobCompletion=void 0;l=function(u){return function(){ONp(u.lifecycle$jscomp$3.name);var B=zo2(function(){return u.lifecycle$jscomp$3.callback.apply(u.lifecycle$jscomp$3,_.OP(H))});
D77(B)?u.asyncJobCompletion=_.V("web_lifecycle_error_handling_killswitch")?B.then(function(){wK(u.lifecycle$jscomp$3.name)}):B.then(function(){wK(u.lifecycle$jscomp$3.name)},function(t){W33(t);
wK(u.lifecycle$jscomp$3.name)}):wK(u.lifecycle$jscomp$3.name)}}(p);
LX(l);return p.asyncJobCompletion?q.yield(p.asyncJobCompletion,3):q.jumpTo(3)}p={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};Q=Z.next();return q.jumpTo(2)})};
rK.prototype.setJobSetWithScheduledJobs=function(G){var H=_.Ry.apply(1,arguments),Z=this,Q=G.map(function(p){return{job:function(){ONp(p.name);zo2(function(){return p.callback.apply(p,_.OP(H))});
wK(p.name)},
priority:iNa(Z,p)}});
Q.length&&(this.jobSet=new wva(Q))};
var iNa=function(G,H){var Z,Q;return(Q=(Z=G.overridePriority)!=null?Z:H.priority)!=null?Q:0},ONp=function(G){Ps&&G&&fJ2(G)},wK=function(G){Ps&&G&&vCv(G)},h8N=function(G,H,Z){ryt&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+G.constructor.name+"] '"+G.state+"' to '"+H+"'"),console.log("with message: ",Z),console.groupEnd())};
_.u4.Object.defineProperties(rK.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var afw=function(G){rK.call(this,G===void 0?"none":G);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(){}}]},yya;
_.T(afw,rK);afw.prototype.runApplicationNavigationBegin=function(G,H){var Z=this;this.navigationTimer=_.wM(_.Ui,function(){Z.currentState==="application_navigating"&&Z.transition("none")},5E3);
G(H==null?void 0:H.event)};
afw.prototype.runApplicationNavigationEnd=function(G,H){this.navigationTimer&&(_.Ui.cancelJob(this.navigationTimer),this.navigationTimer=null);G(H==null?void 0:H.event)};
_.TbX=function(){yya||(yya=new afw);return yya};var cQb=[];_.u7("yt.logging.transport.getScrapedGelPayloads",function(){return cQb});var VR=function(){var G=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return G.totalEntries}}};
VR.prototype.storePayload=function(G,H){G=K32(G);this.store[G]?this.store[G].push(H):(this.memoizedKeySequences={},this.store[G]=[H]);this.totalEntries++;_.V("more_accurate_gel_parser")&&(H=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(H));return G};
VR.prototype.smartExtractMatchingEntries=function(G){if(!G.keys.length)return[];for(var H=oaw(this,G.keys.splice(0,1)[0]),Z=[],Q=0;Q<H.length;Q++)this.store[H[Q]]&&G.sizeLimit&&(this.store[H[Q]].length<=G.sizeLimit?(Z.push.apply(Z,_.OP(this.store[H[Q]])),delete this.store[H[Q]]):Z.push.apply(Z,_.OP(this.store[H[Q]].splice(0,G.sizeLimit))));this.totalEntries-=Z.length;(G==null?0:G.sizeLimit)&&Z.length<(G==null?void 0:G.sizeLimit)&&(G.sizeLimit-=Z.length,Z.push.apply(Z,_.OP(this.smartExtractMatchingEntries(G))));
return Z};
VR.prototype.extractMatchingEntries=function(G){G=oaw(this,G);for(var H=[],Z=0;Z<G.length;Z++)this.store[G[Z]]&&(H.push.apply(H,_.OP(this.store[G[Z]])),delete this.store[G[Z]]);this.totalEntries-=H.length;return H};
VR.prototype.getSequenceCount=function(G){G=oaw(this,G);for(var H=0,Z=0;Z<G.length;Z++){var Q=void 0;H+=((Q=this.store[G[Z]])==null?void 0:Q.length)||0}return H};
var oaw=function(G,H){var Z=K32(H);if(G.memoizedKeySequences[Z])return G.memoizedKeySequences[Z];var Q=Object.keys(G.store)||[];if(Q.length<=1&&K32(H)===Q[0])return Q;for(var p=[],l=0;l<Q.length;l++){var q=Q[l].split("/");if(mv4(H.auth,q[0])){var u=H.isJspb;mv4(u===void 0?"undefined":u?"true":"false",q[1])&&mv4(H.cttAuthInfo,q[2])&&(u=H.tier,u=u===void 0?"undefined":JSON.stringify(u),mv4(u,q[3])&&p.push(Q[l]))}}return G.memoizedKeySequences[Z]=p},mv4=function(G,H){return G===void 0||G==="undefined"?
!0:G===H};
VR.prototype.getSequenceCount=VR.prototype.getSequenceCount;VR.prototype.extractMatchingEntries=VR.prototype.extractMatchingEntries;VR.prototype.smartExtractMatchingEntries=VR.prototype.smartExtractMatchingEntries;VR.prototype.storePayload=VR.prototype.storePayload;var phW,ZI3,lof,cW,Uvw,MQj,KGW,s0f,HIv,U$2,Q0v,$ie,F3o;phW=_.eA("initial_gel_batch_timeout",2E3);ZI3=_.eA("gel_queue_timeout_max_ms",6E4);lof=_.eA("gel_min_batch_size",5);cW=void 0;Uvw=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
MQj=new Uvw;KGW=new Uvw;s0f=new Uvw;HIv=new Uvw;Q0v=!0;$ie=1;_.VQ3=new Map;F3o=_.Qf.ytLoggingTransportTokensToCttTargetIds_||{};_.u7("ytLoggingTransportTokensToCttTargetIds_",F3o);var Y6R=_.Qf.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.u7("ytLoggingTransportTokensToJspbCttTargetIds_",Y6R);var XN={};var ic=_.Qf.ytLoggingGelSequenceIdObj_||{};_.u7("ytLoggingGelSequenceIdObj_",ic);var rQ2=[];var Nbo=new Set,OIf=0,LGU=0,xij=0,yQU=[],ao2=[],EVo=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var qwW=function(){};
qwW.prototype.getUrl=function(G,H){H=H===void 0?!1:H;return G.hasOwnProperty("shareEndpoint")?null:_.GkX(G,null,H)};
var TFf=function(G,H,Z){G={endpoint:H,actions:[]};Z=(Z.path?Z.path[0]:Z.target).icon||"";H=Z.indexOf(":");H>0&&(Z=Z.substr(H+1));Z&&G.actions.push(Z);return G};var lqW=/Command$/,pVj=/Endpoint$/,sSj=new Map;var R8t,NcN;R8t=1;_.sS=function(){this.actionRoutingMap=new Map};
_.sS.prototype.triggerAction=function(G){var H=new sHb(G,!1,_.Ry.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.sS.prototype.triggerOptionalAction=function(G){var H=new sHb(G,!0,_.Ry.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.hA=function(G,H,Z){H.forEach(function(Q){var p=QSe(Q);p&&G.triggerOptionalAction(p,Q,Z,void 0)})};
_.sS.prototype.handleAction=function(G){var H=this.actionRoutingMap.get(G.actionName);H&&NcN(G,H);G.optionalAction||G.returnValue.length!==0||(G=new _.C$("Unhandled action",G.actionName),_.HU(G))};
NcN=function(G,H){H.forEach(function(Z){var Q=null;Z?Q=Z.apply(null,G.args):(Z=Error("kd"),Z.params=G.actionName,_.FU(Z));G.returnValue.push(Q)})};
_.p1=function(G,H,Z){Z||(Z=R8t++);for(var Q=_.I(Object.keys(H)),p=Q.next();!p.done;p=Q.next()){p=p.value;var l=G.actionRoutingMap.get(p);l||(l=new Map,G.actionRoutingMap.set(p,l));G.registerActionHandler(Z,p,H[p],l)}return Z};
_.sS.prototype.registerActionHandler=function(G,H,Z,Q){Q.set(G,_.bW(Z))};
_.lu=function(G,H,Z){H=_.I(Object.keys(H));for(var Q=H.next();!Q.done;Q=H.next())(Q=G.actionRoutingMap.get(Q.value))&&Q.delete(Z)};
_.R6(_.sS);var Buf=function(G,H){var Z=_.sS.getInstance();_.mR(function(){var Q={},p=_.p1(Z,(Q[G]=H,Q));_.oM(function(){var l={};_.lu(Z,(l[G]="",l),p)})})};var zwj=Symbol("md");D23=Ei3;var Kwj=new Set(["For","If","Match","Watch"]),Ayd={},xvp=(Ayd[YF.default]=function(){return qW2},Ayd.style=function(){return qW2},Ayd),LmN;
for(LmN in xvp)Js.attributes[LmN]=xvp[LmN](Js.attributes[LmN]);var Jk=new _.Gv("VISIBILITY_OBSERVER");var aqR={retrieve:function(G){return this.id.\u0275prov.token===G.\u0275prov.token?this.contextValue:this?_.Sg(this,this.id):dh3}};var Eme=function(G,H,Z){if(G!==dBb)return!1;G=cWf(document.createElement("div"),function(){var Q=D2(!1);try{Z[0]()}finally{D2(Q)}});
G=Array.from(G.childNodes);G.length===1&&(G=G[0]);return G};var Eaw=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(G){}var Y77=typeof WeakRef==="function";var Fm2=function(G){this.value=G};
Fm2.prototype.deref=function(){return this.value};
var bNp=Y77?WeakRef:Fm2,Gza=function(G){this.newKeyHandler=G;this.map=new WeakMap};
Gza.prototype.add=function(G,H){this.map.has(G)||(this.newKeyHandler(G),this.map.set(G,[]));this.map.get(G).push(new bNp(H))};
Gza.prototype.get=function(G){var H=this;return function Q(){var p,l,q,u,B,t,D,d,e,n,c;return _.Fy(Q,function(W){switch(W.nextAddress){case 1:_.f0(W,2);p=H.map.get(G);if(!p)return W.return();l=0;q=_.I(p);u=q.next();case 4:if(u.done){W.jumpTo(6);break}B=u.value;t=B.deref();if(!t){W.jumpTo(5);break}l++;D=_.bL;return W.yield(t,8);case 8:D(W.yieldResult);case 5:u=q.next();W.jumpTo(4);break;case 6:if(2*l<p.length){d=0;e=_.I(p);for(n=e.next();!n.done;n=e.next())c=n.value,c.deref()&&(p[d++]=c);p.length=
d}case 2:_.TO(W),_.vg(W,0)}})}()};var H3t=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},AWb=new Gza(function(G){G.addEventListener("abort",Lw3,{once:!0})}),Nuu=new WeakMap,s_w=function(G){G=G===void 0?CV:G;
this.signal=new G};
s_w.prototype.abort=function(G){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=G,G=new Event("abort"),this.signal.dispatchEvent(G))};
var CV=function(){this.target=H3t();this.aborted=!1;this.onabort=null};
CV.prototype.throwIfAborted=function(){R3o.call(this)};
CV.prototype.addEventListener=function(G,H,Z){this.target.addEventListener(G,H,Z)};
CV.prototype.removeEventListener=function(G,H,Z){this.target.removeEventListener(G,H,Z)};
CV.prototype.dispatchEvent=function(G){if(this.onabort&&G.type==="abort")this.onabort(G);return this.target.dispatchEvent(G)};
CV.abort=UBo;CV.timeout=EXb;CV.any=xBb;var mBo=Eaw?AbortController:s_w,iO=Eaw?AbortSignal:CV;typeof iO.abort!=="function"&&(iO.abort=UBo);typeof iO.prototype.throwIfAborted!=="function"&&(iO.prototype.throwIfAborted=R3o);typeof iO.any!=="function"&&(iO.any=xBb);typeof iO.timeout!=="function"&&(iO.timeout=EXb);var kP=null,Fw2=new Map;var Z3_=function(G){G=G.clone();ck4(G);VI(G,"dg",null);VI(G,"d","0");nPp(G,null);Vst(G,null);return G},Q_T=!0,p$p=function(G,H,Z){var Q=Z===void 0?{}:Z;
Z=Q.cssRowKey===void 0?void 0:Q.cssRowKey;var p=Q.combinedSignature===void 0?void 0:Q.combinedSignature;var l=Q.extraEdges===void 0?void 0:Q.extraEdges;Q=Q.callback===void 0?void 0:Q.callback;VI(G,"m",H.join(","));l&&Xxw(G,l);Z&&(VI(G,"ck",Z),p?VI(G,"rs",p):Q_T&&(Q_T=!1));if(Q){if(Q!=null&&!vP4.test(Q))throw Error("Xa`"+Q);VI(G,"cb",Q)}G=G.toString();_.le(G,"/")&&(G=Hux(document.location.href)+G);return _.j7(G)};var gTt=function(G){return lpw(G).then(function(H){return JSON.parse(H.responseText)})},lpw=function(G){var H={},Z=H.xmlHttpFactory?H.xmlHttpFactory.createInstance():ye_.createInstance();
return(new _.T_(function(Q,p){var l;try{Z.open("GET",G,!0)}catch(B){p(new Oe("Error opening XHR: "+B.message,G,Z))}Z.onreadystatechange=function(){if(Z.readyState==4){_.Qf.clearTimeout(l);var B;!(B=a2w(Z.status))&&(B=Z.status===0)&&(B=G$4(G),B=!(B=="http"||B=="https"||B==""));B?Q(Z):p(new Ipt(Z.status,G,Z))}};
Z.onerror=function(){p(new Oe("Network error",G,Z))};
if(H.headers)for(var q in H.headers){var u=H.headers[q];u!=null&&Z.setRequestHeader(q,u)}H.withCredentials&&(Z.withCredentials=H.withCredentials);H.responseType&&(Z.responseType=H.responseType);H.mimeType&&Z.overrideMimeType(H.mimeType);H.timeoutMs>0&&(l=_.Qf.setTimeout(function(){Z.onreadystatechange=function(){};
Z.abort();p(new qD2(G,Z))},H.timeoutMs));
try{Z.send(null)}catch(B){Z.onreadystatechange=function(){},_.Qf.clearTimeout(l),p(new Oe("Error sending XHR: "+B.message,G,Z))}})).thenCatch(function(Q){Q instanceof _.fA&&Z.abort();
throw Q;})},Oe=function(G,H,Z){_.sj.call(this,G+", url="+H);
this.url=H;this.xhr=Z};
_.AB(Oe,_.sj);Oe.prototype.name="XhrError";var Ipt=function(G,H,Z){Oe.call(this,"Request Failed, status="+G,H,Z);this.status=G};
_.AB(Ipt,Oe);Ipt.prototype.name="XhrHttpError";var qD2=function(G,H){Oe.call(this,"Request timed out",G,H)};
_.AB(qD2,Oe);qD2.prototype.name="XhrTimeoutError";UV=UV||{};var a3=function(){_.wI.call(this)};
_.AB(a3,_.wI);a3.prototype.initialize=function(){};var SD2=function(G,H){this.fn_=G;this.handler_=H};
SD2.prototype.execute=function(G){this.fn_&&(this.fn_.call(this.handler_||null,G),this.fn_=this.handler_=null)};
SD2.prototype.abort=function(){this.handler_=this.fn_=null};var yS=function(G,H){_.wI.call(this);this.deps_=G;this.JSC$11050_id_=H;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.AB(yS,_.wI);yS.prototype.moduleConstructor_=a3;yS.prototype.module_=null;yS.prototype.getId=function(){return this.JSC$11050_id_};
yS.prototype.registerCallback=function(G,H){return o3(this.onloadCallbacks_,G,H)};
var u9p=function(G,H){o3(G.onErrorCallbacks_,H)},o3=function(G,H,Z){H=new SD2(H,Z);
G.push(H);return H};
yS.prototype.isLoaded=function(){return!!this.module_};
yS.prototype.onLoad=function(G){var H=new this.moduleConstructor_;H.initialize(G());this.module_=H;H=(H=BTw(this.earlyOnloadCallbacks_,G()))||BTw(this.onloadCallbacks_,G());H||(this.onErrorCallbacks_.length=0);return H};
yS.prototype.onError=function(G){(G=BTw(this.onErrorCallbacks_,G))&&pW(Error("rd`"+G));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var BTw=function(G,H){for(var Z=[],Q=0;Q<G.length;Q++)try{G[Q].execute(H)}catch(p){pW(p),Z.push(p)}G.length=0;return Z.length?Z:null};
yS.prototype.disposeInternal=function(){yS.superClass_.disposeInternal.call(this);_.S_(this.module_)};var J0t,nTR,dld,eGa,kz_,Dlp,TTG,X$w,c0x;
_.dN=function(G,H,Z,Q,p){Q=Q===void 0?!1:Q;p=p===void 0?!1:p;var l=l===void 0?!0:l;this.scsReferenceUrl_=aae(_.PO(G).toString(),l);this.cssRowKey_=H;this.combinedSignature_=Z;this.useNegativeLoading_=Q;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(G=np(this.scsReferenceUrl_,"excm"))?G.split(","):[];this.shouldScanForCss_=p;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;y3f();_.m1(this,$Kw(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
J0t=function(G,H){if(H.href||H.getAttribute("data-href"))if(H=H.href||H.getAttribute("data-href"),hIe(H)&&!aae(H).urlPrefix_.endsWith("_/js/")){H=$Kw(aae(H));H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,G.loadedCssModuleList_.includes(Z)||G.loadedCssModuleList_.push(Z)}};
_.dN.prototype.JSC$11055_loadModules=function(G,H,Z){var Q=Z===void 0?{}:Z;H=Q.extraEdges;Z=Q.onError;var p=Q.onSuccess;Q=Q.forceReload;if(!G)throw Error("sd");if(this.shouldScanForCss_){for(var l=_.I(document.getElementsByTagName("style")),q=l.next();!q.done;q=l.next())J0t(this,q.value);l=_.I(document.getElementsByTagName("link"));for(q=l.next();!q.done;q=l.next())J0t(this,q.value)}tXp(this,kz_(this,G),H,Z,p,Q)};
var tXp=function(G,H,Z,Q,p,l){Q=Q===void 0?function(){}:Q;
p=p===void 0?function(){}:p;
l=l===void 0?!1:l;Dlp(G,H,function(q,u,B){B=B===void 0?u:B;G.enableFallbackFetch&&l?G.loadWithFetch(q,u,Q,p,B):G.load(q,u,Q,p,B,Z)},Z)||Q(-1)};
_.dN.prototype.loadWithFetch=function(){_.S(function(){throw Error("td");})};
_.dN.prototype.maybeSetAdditionalFields=function(){};
nTR=function(G,H,Z){if(G.useNegativeLoading_){var Q=G.scsReferenceUrl_;G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,extraEdges:Z,requestedModuleIds:dld(G),requestedCssModuleIds:eGa(G)};var p=G===void 0?{}:G;G=p.requestedModuleIds===void 0?[]:p.requestedModuleIds;Z=p.requestedCssModuleIds===void 0?[]:p.requestedCssModuleIds;var l=p.cssRowKey===void 0?void 0:p.cssRowKey;var q=p.combinedSignature===void 0?void 0:p.combinedSignature;var u=p.extraEdges===void 0?void 0:p.extraEdges;
p=p.callback===void 0?void 0:p.callback;Q=Z3_(Q);VI(Q,"d","1");nPp(Q,G);Vst(Q,Z);H=p$p(Q,H,{cssRowKey:l,combinedSignature:q,extraEdges:u,callback:p})}else Q=G.scsReferenceUrl_,G={cssRowKey:G.cssRowKey_,combinedSignature:G.combinedSignature_,requestedModuleIds:dld(G),requestedCssModuleIds:eGa(G)},u=G===void 0?{}:G,G=u.requestedCssModuleIds===void 0?[]:u.requestedCssModuleIds,Z=u.cssRowKey===void 0?void 0:u.cssRowKey,l=u.combinedSignature===void 0?void 0:u.combinedSignature,q=u.extraEdges===void 0?
void 0:u.extraEdges,u=u.callback===void 0?void 0:u.callback,Q=Z3_(Q),Vst(Q,G),H=p$p(Q,H,{cssRowKey:Z,combinedSignature:l,extraEdges:q,callback:u});return H};
_.m1=function(G,H){for(var Z=!1,Q=[],p=0;p<H.length;++p){var l=H[p];G.requestedModuleMap_[l]||(G.requestedModuleMap_[l]=!0,G.requestedModuleList_.push(l),Z=!0,Q.push(l))}Z&&(G.requestedModuleListSorted_=!1)};
_.Ue=function(G,H){for(var Z=[],Q=0;Q<H.length;++Q){var p=H[Q];G.requestedModuleMap_[p]&&(delete G.requestedModuleMap_[p],_.ou(G.requestedModuleList_,p),Z.push(p))}};
_.dN.prototype.load=function(G,H,Z,Q,p){p=p===void 0?H:p;_.PO(G);var l=this.useCors_,q=this.corsMode_,u=this.fetchPriority,B=_.z$("SCRIPT");_.gJ(B,G);l&&(B.crossOrigin=q);B.async=!1;u&&B.setAttribute("fetchpriority",u);_.m1(this,H);_.VXw(this,G,B,H,Z,Q,p)};
_.VXw=function(G,H,Z,Q,p,l,q){q=q===void 0?Q:q;G.lastScript_=Z;G.insertPos.insertBefore(Z,G.insertPos.firstChild);_.$l4(Z,Q,function(){Z.parentElement.removeChild(Z);G.lastScript_==Z&&(G.lastScript_=null);l()},function(u){Z.parentElement.removeChild(Z);
G.lastScript_==Z&&(G.lastScript_=null);_.Ue(G,u);G.pendingModuleGraphUpdate_?G.pendingModuleGraphUpdate_.then(function(){p(-1,H)}):p(-1,H)},q)};
_.$l4=function(G,H,Z,Q,p){p=p===void 0?H:p;var l=H.length,q=function(){l=0;G.onload=null;G.onerror=null;u=function(){}},u=function(){q();
var t=p.filter(function(D){return!of().getModuleInfo(D).isLoaded()});
t.length!==0?Q(t,"Response was successful but was missing module(s) "+t+"."):Z()},B=function(){l--;
l==0&&u()};
H.forEach(function(t){t=of().getModuleInfo(t);t.isLoaded()?B():(o3(t.earlyOnloadCallbacks_,B),u9p(t,B))});
G.onload=function(){return u()};
G.onerror=function(){q();Q(H)}};
dld=function(G){G.requestedModuleListSorted_||(G.requestedModuleListSorted_=!0,G.requestedModuleList_.sort());return G.requestedModuleList_};
eGa=function(G){G=G.loadedCssModuleList_;G.sort();return G};
kz_=function(G,H){return H.filter(function(Z){return!G.requestedModuleMap_[Z]})};
Dlp=function(G,H,Z,Q){if(G.pendingModuleGraphUpdate_)return G.pendingModuleGraphUpdate_.then(function(){Dlp(G,H,Z,Q)}),!0;
if(!G.useNegativeLoading_){var p=[],l=Object.assign({},G.requestedModuleMap_);X$w(G,H,function(D){p.push(D.getId())},Q,function(D){return!D.isLoaded()},l);
H=p}for(l=0;l<H.length;){for(var q=H.length-l,u=l==0?H:H.slice(l,H.length),B=nTR(G,u,Q),t=_.PO(B).toString();t.length>G.urlMaxLength;)if(q>1)q-=Math.ceil((t.length-G.urlMaxLength)/6),q=Math.max(q,1),u=H.slice(l,l+q),B=nTR(G,u,Q),t=_.PO(B).toString();else return G.useNegativeLoading_?(G.useNegativeLoading_=!1,G.pendingModuleGraphUpdate_=c0x(G).then(function(D){TTG(G,D,Q)}),Dlp(G,H.slice(l),Z,Q)):!1;
l+=q;G.useNegativeLoading_?Z(B,u):Z(B,u,l===H.length?H:[])}return!0};
TTG=function(G,H,Z){of().setAllModuleInfoString((H||{}).moduleGraph);X$w(G,dld(G),function(Q){_.m1(G,[Q.getId()])},Z);
G.pendingModuleGraphUpdate_=null};
X$w=function(G,H,Z,Q,p,l){l=l===void 0?{}:l;var q=of();H=_.I(H);for(var u=H.next();!u.done;u=H.next()){u=u.value;var B=q.getModuleInfo(u);if(!(l[u]||p&&!p(B))){l[u]=!0;var t=B.deps_||[];if(Q){var D=[];Q[u]&&(D=Object.keys(Q[u]));t=t.concat(D)}X$w(G,t,Z,Q,p,l);Z(B)}}};
c0x=function(G){G=G.scsReferenceUrl_.clone();ck4(G);VI(G,"dg",null);VI(G,"md","1");return gTt(G.toString())};var GGe=new Uint8Array(123);var fp_=[];var vTd=function(){this.JSC$10063_loader_=null};
_.g=vTd.prototype;_.g.setBatchModeEnabled=function(){};
_.g.setAllModuleInfoString=function(){};
_.g.addExtraEdge=function(){throw Error("ud");};
_.g.removeExtraEdge=function(){throw Error("vd");};
_.g.getModuleContext=function(){return null};
_.g.isActive=function(){return!1};
_.g.isUserActive=function(){return!1};
_.g.registerInitializationCallback=function(){};
_.g.registerCallback=function(){};var R3=function(G,H,Z,Q,p){var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.name="ModuleLoadFailure";this.type=G;this.status=H;this.requestedModuleIds=Z;this.url=Q;this.cause=p;this.message=this.toString()};
_.T(R3,Error);R3.prototype.toString=function(){return WAx(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var WAx=function(G){switch(G.type){case R3.Type.UNAUTHORIZED:return"Unauthorized";case R3.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case R3.Type.TIMEOUT:return"Timed out";case R3.Type.OLD_CODE_GONE:return"Out of date module id";case R3.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+G.type}};
UV.ModuleLoadFailure=R3;UV.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var NO=function(){this.moduleIds_=this.JSC$10063_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11068_extraEdges_={};this.JSC$11068_callbackMap_={};this.JSC$11068_currentlyLoadingModule_=this.baseModuleInfo_=new yS([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Rv;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.AB(NO,vTd);var zGd=function(G,H){_.sj.call(this,"Error loading "+G+": "+H)};
_.AB(zGd,_.sj);NO.prototype.setBatchModeEnabled=function(G){this.batchModeEnabled_=G};
NO.prototype.setAllModuleInfoString=function(G,H){if(!(this instanceof NO))this.setAllModuleInfoString(G,H);else if(typeof G==="string"){if(G.startsWith("d$")){G=G.substring(2);for(var Z=[],Q=0,p=G.indexOf("/"),l=0,q=!1,u=0;;){var B=q?G.substring(l):G.substring(l,p);if(B.length===0)Q++,l="sy"+Q.toString(36),B=[];else{var t=B.indexOf(":");if(t<0)l=B,B=[];else if(t===B.length-1)l=B.substring(0,t),B=Array(Z[u-1]);else{l=B.substring(0,t);B=B.substring(t+1).split(",");t=u;for(var D=0;D<B.length;D++)t-=
B[D].length===0?1:Number(B[D]),B[D]=Z[t]}t=0;if(l.length===0)t=1;else if(l.charAt(0)==="+"||l.charAt(0)==="-")t=Number(l);t!==0&&(Q+=t,l="sy"+Q.toString(36))}Z.push(l);KA7(this,l,B);if(q)break;l=p+1;p=G.indexOf("/",l);p===-1&&(q=!0);u++}this.moduleIds_=Z}else if(G.startsWith("p$"))MX2(this,G);else{G=G.split("/");Z=[];for(Q=0;Q<G.length;Q++){u=G[Q].split(":");p=u[0];q=[];if(u[1])for(q=u[1].split(","),u=0;u<q.length;u++)q[u]=Z[parseInt(q[u],36)];Z.push(p);KA7(this,p,q)}this.moduleIds_=Z}H&&H.length?
(_.Ru(this.loadingModuleIds_,H),this.lastInitialModuleId_=_.wf(H)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11068_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11068_currentlyLoadingModule_=null,(H=this.baseModuleInfo_.onLoad((0,_.Cu)(this.getModuleContext,this)))&&H.length&&j_p(this,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,H[0])),AA(this))}};
var MX2=function(G,H){var Z=H.substring(2);for(H=0;H<64;H++)GGe["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(H)]=H;var Q={buf:Z,pos:0};DY(Q);var p=DY(Q),l=DY(Q)+1;H=Array(p);var q=Array(p),u=Array(p);l=Array(l);var B=0,t=0,D=Q.pos,d=Q.buf.indexOf("|",Q.pos);Q.pos=d+1;for(d=0;d<p;d++){var e=DY(Q),n=e&2,c=e&1;e>>>=2;c?(B+=e>>>1^-(e&1),e="sy"+B.toString(36)):(c=D,D+=e,e=Z.substring(c,D));H[d]=e;n&&(l[t++]=e)}l[t]="";Q.pos++;t=p&-2;Z=p&1;for(B=0;B<t;B+=2)D=HAW(Q),u[B]=
D&7,u[B+1]=D>>>3&7;Z&&(Z=HAW(Q),u[t]=Z&7);Q.pos++;for(t=0;t<p;t++)u[t]===7&&(u[t]=DY(Q));Q.pos++;for(Z=t=0;Z<p;Z++){B=u[Z];D=B===0?fp_:Array(B);q[Z]=D;d=t;for(n=0;n<B;n++)d-=DY(Q),D[n]=l[d];l[t]===H[Z]&&t++}for(Q=0;Q<H.length;Q++)KA7(G,H[Q],q[Q]);G.moduleIds_=H};
_.g=NO.prototype;_.g.getModuleInfo=function(G){return this.moduleInfoMap[G]};
_.g.addExtraEdge=function(G,H){var Z=this.getModuleInfo(G);Z&&Z.isLoaded()?this.load(H):(this.JSC$11068_extraEdges_[G]||(this.JSC$11068_extraEdges_[G]={}),this.JSC$11068_extraEdges_[G][H]=!0)};
_.g.removeExtraEdge=function(G,H){if(this.JSC$11068_extraEdges_[G]){delete this.JSC$11068_extraEdges_[G][H];for(var Z in this.JSC$11068_extraEdges_[G])return;delete this.JSC$11068_extraEdges_[G]}};
_.g.isActive=function(){return this.loadingModuleIds_.length>0};
_.g.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var AA=function(G){var H=G.lastActive_,Z=G.isActive();Z!=H&&(G.executeCallbacks_(Z?"active":"idle"),G.lastActive_=Z);H=G.isUserActive();H!=G.userLastActive_&&(G.executeCallbacks_(H?"userActive":"userIdle"),G.userLastActive_=H)},KA7=function(G,H,Z){G.moduleInfoMap[H]?(G=G.moduleInfoMap[H].deps_,G!=Z&&G.splice.apply(G,[0,
G.length].concat(_.OP(Z)))):G.moduleInfoMap[H]=new yS(Z,H)},r0w=function(G,H,Z){var Q=[];
w3X(H,Q);H=[];for(var p={},l=0;l<Q.length;l++){var q=Q[l],u=G.getModuleInfo(q);if(!u)throw Error("wd`"+q);var B=new Rv;p[q]=B;u.isLoaded()?B.callback(null):(PSw(G,q,u,!!Z,B),G.isModuleLoading(q)||H.push(q))}H.length>0&&(G.loadingModuleIds_.length===0?G.loadModules_(H):(G.requestedModuleIdsQueue_.push(H),AA(G)));return p},PSw=function(G,H,Z,Q,p){Z.registerCallback(p.callback,p);
u9p(Z,function(l){p.errback(new zGd(H,l))});
G.isModuleLoading(H)?Q&&(w$x(G,H),AA(G)):Q&&w$x(G,H)};
NO.prototype.loadModules_=function(G,H,Z){var Q=this;H||(this.consecutiveFailures_=0);var p=hGR(this,G);this.loadingModuleIds_=p;this.requestedLoadingModuleIds_=this.batchModeEnabled_?G:_.mv(p);AA(this);if(p.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,p);G=this.JSC$10063_loader_;if(!G)throw Error("xd");if(Object.keys(this.JSC$11068_extraEdges_).length>0&&!G.supportsExtraEdges)throw Error("yd");Z=(0,_.Cu)(G.JSC$11055_loadModules,G,_.mv(p),this.moduleInfoMap,{extraEdges:this.JSC$11068_extraEdges_,
forceReload:!!Z,onError:function(l,q){var u=Q.requestedLoadingModuleIds_;l=l!=null?l:void 0;Q.consecutiveFailures_++;var B=_.mv(p);Q.requestedLoadingModuleIds_=u;p.forEach(_.po(_.ou,Q.requestedModuleIds_),Q);l==401?(j_p(Q,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.Type.UNAUTHORIZED,l)),Q.requestedModuleIdsQueue_.length=0):l==410?(CS4(Q,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.Type.OLD_CODE_GONE,l)),i3d(Q)):Q.consecutiveFailures_>=3?(CS4(Q,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
l,B,q)),i3d(Q)):Q.loadModules_(Q.requestedLoadingModuleIds_,!0,l==8001||!1)},
onTimeout:(0,_.Cu)(this.handleLoadTimeout_,this)});(G=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Qf.setTimeout(Z,G):Z()}};
var hGR=function(G,H){H=H.filter(function(p){return G.moduleInfoMap[p].isLoaded()?(_.Qf.setTimeout(function(){return Error("zd`"+p)},0),!1):!0});
for(var Z=[],Q=0;Q<H.length;Q++)Z=Z.concat(O3N(G,H[Q]));w3X(Z);return!G.batchModeEnabled_&&Z.length>1?(H=Z.shift(),G.requestedModuleIdsQueue_=Z.map(function(p){return[p]}).concat(G.requestedModuleIdsQueue_),[H]):Z},O3N=function(G,H){var Z=_.oN.createSet(G.requestedModuleIds_),Q=[];
Z[H]||Q.push(H);H=[H];for(var p=0;p<H.length;p++)for(var l=G.getModuleInfo(H[p]).deps_,q=l.length-1;q>=0;q--){var u=l[q];G.getModuleInfo(u).isLoaded()||Z[u]||(Q.push(u),H.push(u))}Q.reverse();w3X(Q);return Q};
NO.prototype.JSC$11063_setLoaded=function(){if(this.JSC$11068_currentlyLoadingModule_){var G=this.JSC$11068_currentlyLoadingModule_.getId(),H=[];if(this.JSC$11068_extraEdges_[G]){for(var Z=_.I(Object.keys(this.JSC$11068_extraEdges_[G])),Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var p=this.getModuleInfo(Q);p&&!p.isLoaded()&&(this.removeExtraEdge(G,Q),H.push(Q))}this.loadMultiple(H)}this.isDisposed()||((H=this.moduleInfoMap[G].onLoad((0,_.Cu)(this.getModuleContext,this)))&&H.length&&j_p(this,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,H[0])),_.ou(this.userInitiatedLoadingModuleIds_,G),_.ou(this.loadingModuleIds_,G),this.loadingModuleIds_.length===0&&i3d(this),this.lastInitialModuleId_&&G==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),AA(this),this.JSC$11068_currentlyLoadingModule_=null)}};
NO.prototype.isModuleLoading=function(G){if(_.yf(this.loadingModuleIds_,G))return!0;for(var H=0;H<this.requestedModuleIdsQueue_.length;H++)if(_.yf(this.requestedModuleIdsQueue_[H],G))return!0;return!1};
NO.prototype.load=function(G,H){return r0w(this,[G],H)[G]};
NO.prototype.loadMultiple=function(G){return r0w(this,G)};
var w$x=function(G,H){_.yf(G.userInitiatedLoadingModuleIds_,H)||G.userInitiatedLoadingModuleIds_.push(H)};
NO.prototype.beforeLoadModuleCode=function(G){var H=this;this.JSC$11068_currentlyLoadingModule_&&this.JSC$11068_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11063_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[G]&&apa(this,this.moduleInfoMap[G].deps_||[],function(Z){Z.module_=new a3;_.ou(H.loadingModuleIds_,Z.getId())},function(Z){return!Z.isLoaded()});
this.JSC$11068_currentlyLoadingModule_=this.getModuleInfo(G)};
NO.prototype.registerInitializationCallback=function(G){this.JSC$11068_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new yS([],"synthetic_module_overhead"),this.JSC$11068_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);o3(this.JSC$11068_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
NO.prototype.handleLoadTimeout_=function(){CS4(this,new UV.ModuleLoadFailure(UV.ModuleLoadFailure.Type.TIMEOUT));i3d(this)};
var CS4=function(G,H){G.requestedLoadingModuleIds_.length>1?G.requestedModuleIdsQueue_=G.requestedLoadingModuleIds_.map(function(Z){return[Z]}).concat(G.requestedModuleIdsQueue_):j_p(G,H)},j_p=function(G,H){var Z=G.requestedLoadingModuleIds_;
G.loadingModuleIds_.length=0;for(var Q=[],p=0;p<G.requestedModuleIdsQueue_.length;p++){var l=G.requestedModuleIdsQueue_[p].filter(function(B){var t=O3N(this,B);return QR(Z,function(D){return _.yf(t,D)})},G);
_.Ru(Q,l)}for(p=0;p<Z.length;p++)_.M2v(Q,Z[p]);for(p=0;p<Q.length;p++){for(l=0;l<G.requestedModuleIdsQueue_.length;l++)_.ou(G.requestedModuleIdsQueue_[l],Q[p]);_.ou(G.userInitiatedLoadingModuleIds_,Q[p])}if(p=G.JSC$11068_callbackMap_.error)for(l=0;l<p.length;l++)for(var q=p[l],u=0;u<Q.length;u++)q("error",Q[u],H);for(Q=0;Q<Z.length;Q++)if(G.moduleInfoMap[Z[Q]])G.moduleInfoMap[Z[Q]].onError(H);G.requestedLoadingModuleIds_.length=0;AA(G)},i3d=function(G){for(;G.requestedModuleIdsQueue_.length;){var H=
G.requestedModuleIdsQueue_.shift().filter(function(Z){return!this.getModuleInfo(Z).isLoaded()},G);
if(H.length>0){G.loadModules_(H);return}}AA(G)};
NO.prototype.registerCallback=function(G,H){Array.isArray(G)||(G=[G]);for(var Z=0;Z<G.length;Z++){var Q=G[Z],p=H,l=this.JSC$11068_callbackMap_;l[Q]||(l[Q]=[]);l[Q].push(p)}};
NO.prototype.executeCallbacks_=function(G){for(var H=this.JSC$11068_callbackMap_[G],Z=0;H&&Z<H.length;Z++)H[Z](G)};
var apa=function(G,H,Z,Q,p){Q=Q===void 0?function(){return!0}:Q;
p=p===void 0?{}:p;H=_.I(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;var q=G.getModuleInfo(l);!p[l]&&Q(q)&&(p[l]=!0,apa(G,q.deps_||[],Z,Q,p),Z(q))}};
NO.prototype.dispose=function(){_.uY(_.oN.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11068_callbackMap_={};this.isDisposed_=!0};
NO.prototype.isDisposed=function(){return this.isDisposed_};
_.yx=function(){return new NO};var y0a=[5E3,2E4],jCb=function(){this.JSC$10063_loader_=null;this.JSC$11076_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11076_queue_=[];this.JSC$11076_extraEdges_=Object.create(null);this.JSC$11076_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.T(jCb,vTd);_.g=jCb.prototype;_.g.setAllModuleInfoString=function(){this.JSC$11076_currentlyLoadingModule_&&this.JSC$11076_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11063_setLoaded()};
_.g.getModuleInfo=function(G){var H=this.JSC$11076_moduleInfoMap_[G];H||(H=new yS([],G),this.JSC$11076_moduleInfoMap_[G]=H);return H};
_.g.addExtraEdge=function(G,H){this.getModuleInfo(G).isLoaded()?this.load(H):(this.JSC$11076_extraEdges_[G]||(this.JSC$11076_extraEdges_[G]={}),this.JSC$11076_extraEdges_[G][H]=!0)};
_.g.removeExtraEdge=function(G,H){if(this.JSC$11076_extraEdges_[G]){delete this.JSC$11076_extraEdges_[G][H];for(var Z in this.JSC$11076_extraEdges_[G])return;delete this.JSC$11076_extraEdges_[G]}};
_.g.isModuleLoading=function(G){return!!this.loadingModules_[G]};
_.g.load=function(G){oT4(this,[G]);return ml7(this,G)};
_.g.loadMultiple=function(G){var H=this,Z=Object.create(null),Q=[];G.forEach(function(p){Z[p]||(Z[p]=ml7(H,p),Q.push(p))});
oT4(this,Q);return Z};
_.g.beforeLoadModuleCode=function(G){var H;((H=this.JSC$11076_currentlyLoadingModule_)==null?void 0:H.getId())==="synthetic_module_overhead"&&this.JSC$11063_setLoaded();var Z,Q;Ult(this,(Q=(Z=this.JSC$11076_moduleInfoMap_[G])==null?void 0:Z.deps_)!=null?Q:[],function(p){p.module_=new a3},function(p){return!p.isLoaded()});
this.JSC$11076_currentlyLoadingModule_=this.getModuleInfo(G)};
_.g.JSC$11063_setLoaded=function(){if(this.JSC$11076_currentlyLoadingModule_){var G=this.JSC$11076_currentlyLoadingModule_.getId(),H=[];if(this.JSC$11076_extraEdges_[G]){for(var Z=_.I(Object.keys(this.JSC$11076_extraEdges_[G])),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,this.getModuleInfo(Q).isLoaded()||(this.removeExtraEdge(G,Q),H.push(Q));this.loadMultiple(H)}this.JSC$11076_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11076_currentlyLoadingModule_=null;(!this.isModuleLoading(G)&&/^sy[0-9a-z]{0,4}$/.test(G)||G==="synthetic_module_overhead")&&delete this.JSC$11076_moduleInfoMap_[G];this.unsetModulesAsLoading(G)}};
_.g.registerInitializationCallback=function(G){this.JSC$11076_currentlyLoadingModule_||(this.JSC$11076_moduleInfoMap_.synthetic_module_overhead=new yS([],"synthetic_module_overhead"),this.JSC$11076_currentlyLoadingModule_=this.JSC$11076_moduleInfoMap_.synthetic_module_overhead);o3(this.JSC$11076_currentlyLoadingModule_.earlyOnloadCallbacks_,G)};
_.g.setModulesAsLoading=function(){var G=this;_.Ry.apply(0,arguments).forEach(function(H){G.loadingModules_[H]=!0})};
_.g.unsetModulesAsLoading=function(){var G=this;_.Ry.apply(0,arguments).forEach(function(H){delete G.loadingModules_[H]})};
var ml7=function(G,H){return new _.T_(function(Z,Q){var p=G.getModuleInfo(H);p.isLoaded()?Z(null):(p.registerCallback(function(){Z(null)}),u9p(p,function(l){var q="Error loading "+H+": "+l;
l instanceof UV.ModuleLoadFailure&&l.url&&(q=q+", requested url: "+l.url.toString());Q(Error(q))}))})},oT4=function(G,H){H=H.filter(function(Z){return!G.isModuleLoading(Z)&&!G.getModuleInfo(Z).isLoaded()});
H.length>0&&(G.setModulesAsLoading.apply(G,_.OP(H)),G.JSC$11076_queue_.push(H),RGp(G))},RGp=function(G){for(var H={};G.activeLoads_<Infinity&&G.JSC$11076_queue_.length>0;H={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})H.ids$jscomp$37=G.JSC$11076_queue_.shift().filter(function(Z){return!G.getModuleInfo(Z).isLoaded()}),H.ids$jscomp$37.length>0&&(G.activeLoads_++,H.finishLoad=function(Z){return function(){G.activeLoads_--;
RGp(G);Z.finishLoad=function(){}}}(H),_.Tw(H.ids$jscomp$37.map(function(Z){return ml7(G,Z)})).then(function(Z){return function(){(0,Z.finishLoad)()}}(H)),H.attempt$jscomp$6=0,H.load$jscomp$1=function(Z){return function(){if(Object.keys(G.JSC$11076_extraEdges_).length>0&&!G.JSC$10063_loader_.supportsExtraEdges)throw Error("yd");
G.JSC$10063_loader_.JSC$11055_loadModules(Z.ids$jscomp$37,G.JSC$11076_moduleInfoMap_,{extraEdges:G.JSC$11076_extraEdges_,onError:function(Q,p){var l=y0a[Z.attempt$jscomp$6++];l!==void 0?setTimeout(function(){(0,Z.load$jscomp$1)()},l):(G.unsetModulesAsLoading.apply(G,_.OP(Z.ids$jscomp$37)),(0,Z.finishLoad)(),Z.ids$jscomp$37.forEach(function(q){q=G.getModuleInfo(q);
if(!q.isLoaded())q.onError(new UV.ModuleLoadFailure(UV.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,Q,Z.ids$jscomp$37,p))}))}})}}(H),(0,H.load$jscomp$1)())},Ult=function(G,H,Z,Q,p){Q=Q===void 0?function(){return!0}:Q;
p=p===void 0?{}:p;H=_.I(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;var q=G.getModuleInfo(l);!p[l]&&Q(q)&&(p[l]=!0,Ult(G,q.deps_||[],Z,Q,p),Z(q))}};var NTw=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var p8j=Symbol("Bd");window.JSCompiler_renameProperty=function(G){return G};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var A04=!NTw||HTMLElement.es5Shimmed||_.Qf.Reflect===void 0||_.Qf.customElements===void 0||_.Qf.customElements.polyfillWrapFlushCallback||!1,xlN,ynf=function(){var G=HTMLElement;if(A04)return G;if(xlN!==void 0)return xlN;var H=_.Qf.Reflect,Z=function(){return H.construct(G,[],this.constructor)};
Z.prototype=G.prototype;Z.prototype.constructor=Z;Z.es5Shimmed=!0;Object.setPrototypeOf(Z,G);return xlN=Z},LAd=!1;A04||LAd||(LAd=!0,_.Qf.HTMLElement=ynf());/*

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 Szj=/(url\()([^)]*)(\))/g,IxR=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,qzb,es;var FZ=!window.ShadyDOM||!window.ShadyDOM.inUse,ET4=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),YDd=!window.customElements.polyfillWrapFlushCallback,FAR;if(FAR=FZ&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var b3N=new CSSStyleSheet;b3N.replaceSync("");var GqN=document.createElement("div");GqN.attachShadow({mode:"open"});GqN.shadowRoot.adoptedStyleSheets=[b3N];FAR=GqN.shadowRoot.adoptedStyleSheets[0]===b3N}catch(G){FAR=!1}
var HHx=FAR,sK_=window.Polymer&&window.Polymer.rootPath||BpW(document.baseURI||window.location.href),Px=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,VVb=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,sW=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ZHx=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,YP=window.Polymer&&window.Polymer.legacyOptimizations||!1,HE=window.Polymer&&window.Polymer.legacyWarnings||!1,QKa=window.Polymer&&window.Polymer.syncInitialRender||
!1,wN=window.Polymer&&window.Polymer.legacyUndefined||!1,pGT=window.Polymer&&window.Polymer.orderedComputed||!1,xq=window.Polymer&&window.Polymer.removeNestedTemplates||!1,LV=window.Polymer&&window.Polymer.fastDomIf||!1,Ee=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,lIx=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,gQR=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Yq={},IIx={},C1=function(){return HTMLElement.apply(this,arguments)||this};
_.T(C1,HTMLElement);C1.import=function(G,H){return G?(G=Yq[G]||IIx[G.toLowerCase()])&&H?G.querySelector(H):G:null};
C1.prototype.attributeChangedCallback=function(G,H,Z){H!==Z&&this.register()};
C1.prototype.register=function(G){if(G=G||this.id){if(sW&&(Yq[G]||IIx[G.toLowerCase()])!==void 0)throw Yq[G]=IIx[G.toLowerCase()]=null,Error("Cd`"+G);this.id=G;Yq[G]=IIx[G.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.u4.Object.defineProperties(C1.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var G=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;G=_.n1(this.getAttribute("assetpath")||"",G.baseURI);this.__assetpath=BpW(G)}return this.__assetpath}}});
_.u4.Object.defineProperties(C1,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
C1["import"]=C1.import;C1.prototype.modules=Yq;customElements.define("dom-module",C1);var qIR=0,tO3=0,Vs=[],SId=0,Jlu=!1,uT_=document.createTextNode(""),Bxp,Ak;(new window.MutationObserver(kGb)).observe(uT_,{characterData:!0});_.FA={after:function(G){return{run:function(H){return window.setTimeout(H,G)},
cancel:function(H){window.clearTimeout(H)}}},
run:function(G,H){return window.setTimeout(G,H)},
cancel:function(G){window.clearTimeout(G)}};
_.kC={run:function(G){return window.requestAnimationFrame(G)},
cancel:function(G){window.cancelAnimationFrame(G)}};
Bxp={run:function(G){return window.requestIdleCallback?window.requestIdleCallback(G):window.setTimeout(G,16)},
cancel:function(G){window.cancelIdleCallback?window.cancelIdleCallback(G):window.clearTimeout(G)}};
Ak={run:function(G){Jlu||(Jlu=!0,uT_.textContent=SId++);Vs.push(G);return qIR++},
cancel:function(G){var H=G-tO3;if(H>=0){if(!Vs[H])throw Error("Dd`"+G);Vs[H]=null}}};var Jvd=0,bO=function(G){var H=G.__mixinApplications;H||(H=new WeakMap,G.__mixinApplications=H);var Z=Jvd++;return function(Q){var p=Q.__mixinSet;if(p&&p[Z])return Q;var l=H,q=l.get(Q);q||(q=G(Q),l.set(Q,q),Q=Object.create(q.__mixinSet||p||null),Q[Z]=!0,q.__mixinSet=Q);return q}};_.js=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(G){return ShadyDOM.patch(G)}:function(G){return G};var t9a=bO(function(G){var H=function(){var Z=G.call(this)||this;Z.__dataEnabled=!1;Z.__dataReady=!1;Z.__dataInvalid=!1;Z.__data={};Z.__dataPending=null;Z.__dataOld=null;Z.__dataInstanceProps=null;Z.__dataCounter=0;Z.__serializing=!1;Z._initializeProperties();return Z};
_.T(H,G);H.createProperties=function(Z){var Q=this.prototype,p;for(p in Z)p in Q||Q._createPropertyAccessor(p)};
H.attributeNameForProperty=function(Z){return Z.toLowerCase()};
H.typeForProperty=function(){};
H.prototype._createPropertyAccessor=function(Z,Q){this._addPropertyToAttributeMap(Z);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[Z]||(this.__dataHasAccessor[Z]=!0,this._definePropertyAccessor(Z,Q))};
H.prototype._addPropertyToAttributeMap=function(Z){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var Q=this.__dataAttributes[Z];Q||(Q=this.constructor.attributeNameForProperty(Z),this.__dataAttributes[Q]=Z);return Q};
H.prototype._definePropertyAccessor=function(Z,Q){Object.defineProperty(this,Z,{get:function(){return this.__data[Z]},
set:Q?function(){}:function(p){this._setPendingProperty(Z,p,!0)&&this._invalidateProperties()}})};
H.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
H.prototype._initializeProperties=function(){for(var Z in this.__dataHasAccessor)this.hasOwnProperty(Z)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[Z]=this[Z],delete this[Z])};
H.prototype._initializeInstanceProperties=function(Z){Object.assign(this,Z)};
H.prototype._setProperty=function(Z,Q){this._setPendingProperty(Z,Q)&&this._invalidateProperties()};
H.prototype._getProperty=function(Z){return this.__data[Z]};
H.prototype._setPendingProperty=function(Z,Q){var p=this.__data[Z],l=this._shouldPropertyChange(Z,Q,p);l&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||Z in this.__dataOld||(this.__dataOld[Z]=p),this.__data[Z]=Q,this.__dataPending[Z]=Q);return l};
H.prototype._isPropertyPending=function(Z){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(Z))};
H.prototype._invalidateProperties=function(){var Z=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ak.run(function(){Z.__dataInvalid&&(Z.__dataInvalid=!1,Z._flushProperties())}))};
H.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
H.prototype._flushProperties=function(){this.__dataCounter++;var Z=this.__data,Q=this.__dataPending,p=this.__dataOld;this._shouldPropertiesChange(Z,Q,p)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(Z,Q,p));this.__dataCounter--};
H.prototype._shouldPropertiesChange=function(Z,Q){return!!Q};
H.prototype._propertiesChanged=function(){};
H.prototype._shouldPropertyChange=function(Z,Q,p){return p!==Q&&(p===p||Q===Q)};
H.prototype.attributeChangedCallback=function(Z,Q,p,l){Q!==p&&this._attributeToProperty(Z,p);G.prototype.attributeChangedCallback&&G.prototype.attributeChangedCallback.call(this,Z,Q,p,l)};
H.prototype._attributeToProperty=function(Z,Q,p){if(!this.__serializing){var l=this.__dataAttributes;Z=l&&l[Z]||Z;this[Z]=this._deserializeValue(Q,p||this.constructor.typeForProperty(Z))}};
H.prototype._propertyToAttribute=function(Z,Q,p){this.__serializing=!0;p=arguments.length<3?this[Z]:p;this._valueToNodeAttribute(this,p,Q||this.constructor.attributeNameForProperty(Z));this.__serializing=!1};
H.prototype._valueToNodeAttribute=function(Z,Q,p){Q=this._serializeValue(Q);if(p==="class"||p==="name"||p==="slot")Z=(0,_.js)(Z);Q===void 0?Z.removeAttribute(p):Z.setAttribute(p,Q===""&&window.trustedTypes?window.trustedTypes.emptyScript:Q)};
H.prototype._serializeValue=function(Z){switch(typeof Z){case "boolean":return Z?"":void 0;default:return Z!=null?Z.toString():void 0}};
H.prototype._deserializeValue=function(Z,Q){switch(Q){case Boolean:return Z!==null;case Number:return Number(Z);default:return Z}};
return H});var kqN=0,DcU=[];var D6a=bO(function(G){function H(l){l=Object.getPrototypeOf(l);return l.prototype instanceof p?l:null}
function Z(l){if(!l.hasOwnProperty("__ownProperties")){var q=null;if(l.hasOwnProperty("properties")){var u=l.properties;if(u){q={};for(var B in u){var t=u[B];q[B]=typeof t==="function"?{type:t}:t}}}l.__ownProperties=q}return l.__ownProperties}
var Q=t9a(G),p=function(){return Q.apply(this,arguments)||this};
_.T(p,Q);p.finalize=function(){if(!this.hasOwnProperty("__finalized")){var l=H(this);l&&l.finalize();this.__finalized=!0;this._finalizeClass()}};
p._finalizeClass=function(){var l=Z(this);l&&this.createProperties(l)};
p.typeForProperty=function(l){return(l=this._properties[l])&&l.type};
p.prototype._initializeProperties=function(){kqN++;this.constructor.finalize();Q.prototype._initializeProperties.call(this)};
p.prototype.connectedCallback=function(){Q.prototype.connectedCallback&&Q.prototype.connectedCallback.call(this);this._enableProperties()};
p.prototype.disconnectedCallback=function(){Q.prototype.disconnectedCallback&&Q.prototype.disconnectedCallback.call(this)};
_.u4.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var l=this;if(!this.hasOwnProperty("__observedAttributes")){dcW(this.prototype);var q=this._properties;this.__observedAttributes=q?Object.keys(q).map(function(u){return l.prototype._addPropertyToAttributeMap(u)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var l=H(this);this.__properties=Object.assign({},l&&l._properties,Z(this))}return this.__properties}}});
return p});var efM={},nGv=/-[a-z]/g,VOf=/([A-Z])/g;for(var d6G={},e2a=HTMLElement.prototype;e2a;){for(var nQR=Object.getOwnPropertyNames(e2a),V9_=0;V9_<nQR.length;V9_++)d6G[nQR[V9_]]=!0;e2a=Object.getPrototypeOf(e2a)}var $6a=window.trustedTypes?function(G){return trustedTypes.isHTML(G)||trustedTypes.isScript(G)||trustedTypes.isScriptURL(G)}:function(){return!1},XGp=bO(function(G){var H=t9a(G);
G=function(){return H.apply(this,arguments)||this};
_.T(G,H);G.createPropertiesForAttributes=function(){for(var Z=this.observedAttributes,Q=0;Q<Z.length;Q++)this.prototype._createPropertyAccessor($P(Z[Q]))};
G.attributeNameForProperty=function(Z){return XZ(Z)};
G.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);H.prototype._initializeProperties.call(this)};
G.prototype._initializeProtoProperties=function(Z){for(var Q in Z)this._setProperty(Q,Z[Q])};
G.prototype._ensureAttribute=function(Z,Q){this.hasAttribute(Z)||this._valueToNodeAttribute(this,Q,Z)};
G.prototype._serializeValue=function(Z){switch(typeof Z){case "object":if(Z instanceof Date)return Z.toString();if(Z){if($6a(Z))return Z;try{return JSON.stringify(Z)}catch(Q){return""}}default:return H.prototype._serializeValue.call(this,Z)}};
G.prototype._deserializeValue=function(Z,Q){switch(Q){case Object:try{var p=JSON.parse(Z)}catch(l){p=Z}break;case Array:try{p=JSON.parse(Z)}catch(l){p=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+Z)}break;case Date:p=isNaN(Z)?String(Z):Number(Z);p=new Date(p);break;default:p=H.prototype._deserializeValue.call(this,Z,Q)}return p};
G.prototype._definePropertyAccessor=function(Z,Q){if(!d6G[Z]){var p=this[Z];p!==void 0&&(this.__data?this._setPendingProperty(Z,p):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[Z]=p))}H.prototype._definePropertyAccessor.call(this,Z,Q)};
G.prototype._hasAccessor=function(Z){return this.__dataHasAccessor&&this.__dataHasAccessor[Z]};
G.prototype._isPropertyPending=function(Z){return!!(this.__dataPending&&Z in this.__dataPending)};
return G});var cva={"dom-if":!0,"dom-repeat":!0},Txw=!1,fIw=!1,vQt=function(){var G=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(H){return H}});
return function(H,Z,Q){Z=Z.getAttribute(Q);G&&Q.startsWith("on-")?H.setAttribute(Q,G.createScript(Z,Q)):H.setAttribute(Q,Z)}}(),Wlw=bO(function(G){var H=function(){return G.apply(this,arguments)||this};
_.T(H,G);H._parseTemplate=function(Z,Q){if(!Z._templateInfo){var p=Z._templateInfo={};p.nodeInfoList=[];p.nestedTemplate=!!Q;p.stripWhiteSpace=Q&&Q.stripWhiteSpace||Z.hasAttribute&&Z.hasAttribute("strip-whitespace");this._parseTemplateContent(Z,p,{parent:null})}return Z._templateInfo};
H._parseTemplateContent=function(Z,Q,p){return this._parseTemplateNode(Z.content,Q,p)};
H._parseTemplateNode=function(Z,Q,p){var l=!1;Z.localName!="template"||Z.hasAttribute("preserve-content")?Z.localName==="slot"&&(Q.hasInsertionPoint=!0):l=this._parseTemplateNestedTemplate(Z,Q,p)||l;if(!Txw){Txw=!0;var q=document.createElement("textarea");q.placeholder="a";fIw=q.placeholder===q.textContent}fIw&&Z.localName==="textarea"&&Z.placeholder&&Z.placeholder===Z.textContent&&(Z.textContent=null);Z.firstChild&&this._parseTemplateChildNodes(Z,Q,p);Z.hasAttributes&&Z.hasAttributes()&&(l=this._parseTemplateNodeAttributes(Z,
Q,p)||l);return l||p.noted};
H._parseTemplateChildNodes=function(Z,Q,p){if(Z.localName!=="script"&&Z.localName!=="style")for(var l=Z.firstChild,q=0,u;l;l=u){if(l.localName=="template"){var B=l.getAttribute("is");if(B&&cva[B])for(u=l,u.removeAttribute("is"),l=u.ownerDocument.createElement(B),u.parentNode.replaceChild(l,u),l.appendChild(u);u.attributes.length;)B=u.attributes[0].name,vQt(l,u,B),u.removeAttribute(B)}u=l.nextSibling;if(l.nodeType===Node.TEXT_NODE){for(B=u;B&&B.nodeType===Node.TEXT_NODE;)l.textContent+=B.textContent,
u=B.nextSibling,Z.removeChild(B),B=u;if(Q.stripWhiteSpace&&!l.textContent.trim()){Z.removeChild(l);continue}}B={parentIndex:q,parentInfo:p};this._parseTemplateNode(l,Q,B)&&(B.infoIndex=Q.nodeInfoList.push(B)-1);l.parentNode&&q++}};
H._parseTemplateNestedTemplate=function(Z,Q,p){Q=this._parseTemplate(Z,Q);(Q.content=Z.content.ownerDocument.createDocumentFragment()).appendChild(Z.content);p.templateInfo=Q;return!0};
H._parseTemplateNodeAttributes=function(Z,Q,p){for(var l=!1,q=Array.from(Z.attributes),u=q.length-1,B;B=q[u];u--)l=this._parseTemplateNodeAttribute(Z,Q,p,B.name,B.value)||l;return l};
H._parseTemplateNodeAttribute=function(Z,Q,p,l,q){return l.slice(0,3)==="on-"?(Z.removeAttribute(l),p.events=p.events||[],p.events.push({name:l.slice(3),value:q}),!0):l==="id"?(p.id=q,!0):!1};
H._contentForTemplate=function(Z){var Q=Z._templateInfo;return Q&&Q.content||Z.content};
H.prototype._stampTemplate=function(Z,Q){Z&&!Z.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(Z);Q=Q||this.constructor._parseTemplate(Z);var p=Q.nodeInfoList;Z=document.importNode(Q.content||Z.content,!0);Z.__noInsertionPoint=!Q.hasInsertionPoint;var l=Z.nodeList=Array(p.length);Z.$={};for(var q=0,u=p.length,B=void 0;q<u&&(B=p[q]);q++){var t=l[q]=$ce(Z,B);B.id&&(Z.$[B.id]=t);var D=t,d=B,e=Q;d.templateInfo&&(D._templateInfo=d.templateInfo,D._parentTemplateInfo=
e);if(B.events&&B.events.length)for(D=0,d=B.events,e=void 0;D<d.length&&(e=d[D]);D++)this._addMethodEventListenerToNode(t,e.name,e.value,this)}return Z};
H.prototype._addMethodEventListenerToNode=function(Z,Q,p,l){p=X8R(l||Z,p);this._addEventListenerToNode(Z,Q,p);return p};
H.prototype._addEventListenerToNode=function(Z,Q,p){Z.addEventListener(Q,p)};
H.prototype._removeEventListenerFromNode=function(Z,Q,p){Z.removeEventListener(Q,p)};
return H});var K1=0,rN=[],z2N={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Kl_=/[A-Z]/,M9x=function(G,H,Z,Q,p){var l=p?TU(G):G;if(H=H[l])for(l=0;l<H.length;l++){var q=H[l];if(q.info.lastRun!==K1&&(!p||zfM(G,q.trigger))){q.info.lastRun=K1;q=q.info;for(var u=Z,B=Q,t=0,D=u.length-1,d=-1;t<=D;){var e=t+D>>1,n=B.get(u[e].methodInfo)-B.get(q.methodInfo);if(n<0)t=e+1;else if(n>0)D=e-1;else{d=e;break}}d<
0&&(d=D+1);u.splice(d,0,q)}}},UcM=[],jKT=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"),HK=bO(function(G){var H=Wlw(XGp(G));
G=function(){var Z=H.call(this)||this;Z.__isPropertyEffectsClient=!0;return Z};
_.T(G,H);G.prototype._initializeProperties=function(){H.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};
G.prototype._registerHost=function(){if(GJ.length){var Z=GJ[GJ.length-1];Z._enqueueClient(this);this.__dataHost=Z}};
G.prototype._initializeProtoProperties=function(Z){this.__data=Object.create(Z);this.__dataPending=Object.create(Z);this.__dataOld={}};
G.prototype._initializeInstanceProperties=function(Z){var Q=this.__readOnly,p;for(p in Z)Q&&Q[p]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[p]=this.__dataPending[p]=Z[p])};
G.prototype._addPropertyEffect=function(Z,Q,p){this._createPropertyAccessor(Z,Q=="__readOnly");var l=WU3(this,Q,!0)[Z];l||(l=this[Q][Z]=[]);l.push(p)};
G.prototype._removePropertyEffect=function(Z,Q,p){Z=WU3(this,Q,!0)[Z];p=Z.indexOf(p);p>=0&&Z.splice(p,1)};
G.prototype._hasPropertyEffect=function(Z,Q){Q=this[Q];return!(!Q||!Q[Z])};
G.prototype._hasReadOnlyEffect=function(Z){return this._hasPropertyEffect(Z,"__readOnly")};
G.prototype._hasNotifyEffect=function(Z){return this._hasPropertyEffect(Z,"__notifyEffects")};
G.prototype._hasReflectEffect=function(Z){return this._hasPropertyEffect(Z,"__reflectEffects")};
G.prototype._hasComputedEffect=function(Z){return this._hasPropertyEffect(Z,"__computeEffects")};
G.prototype._setPendingPropertyOrPath=function(Z,Q,p,l){if(l||TU(Array.isArray(Z)?Z[0]:Z)!==Z){if(!l&&(l=zU(this,Z),Z=vG2(this,Z,Q),!Z||!H.prototype._shouldPropertyChange.call(this,Z,Q,l)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(Z,Q,p)){if(p=this.__dataLinkedPaths)for(var q in p)l=p[q],f1(q,Z)?(l=vx(q,l,Z),this._setPendingPropertyOrPath(l,Q,!0,!0)):f1(l,Z)&&(l=vx(l,q,Z),this._setPendingPropertyOrPath(l,Q,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[Z])return this._setPendingProperty(Z,
Q,p);this[Z]=Q}return!1};
G.prototype._setUnmanagedPropertyToNode=function(Z,Q,p){if(p!==Z[Q]||typeof p=="object")Q==="className"&&(Z=(0,_.js)(Z)),Z[Q]=p};
G.prototype._setPendingProperty=function(Z,Q,p){var l=this.__dataHasPaths&&cx(Z);if(this._shouldPropertyChange(Z,Q,(l?this.__dataTemp:this.__data)[Z])){this.__dataPending||(this.__dataPending={},this.__dataOld={});Z in this.__dataOld||(this.__dataOld[Z]=this.__data[Z]);l?this.__dataTemp[Z]=Q:this.__data[Z]=Q;this.__dataPending[Z]=Q;if(l||this.__notifyEffects&&this.__notifyEffects[Z])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[Z]=p;return!0}return!1};
G.prototype._setProperty=function(Z,Q){this._setPendingProperty(Z,Q,!0)&&this._invalidateProperties()};
G.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
G.prototype._enqueueClient=function(Z){this.__dataPendingClients=this.__dataPendingClients||[];Z!==this&&this.__dataPendingClients.push(Z)};
G.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
G.prototype.__enableOrFlushClients=function(){var Z=this.__dataPendingClients;if(Z){this.__dataPendingClients=null;for(var Q=0;Q<Z.length;Q++){var p=Z[Q];p.__dataEnabled?p.__dataPending&&p._flushProperties():p._enableProperties()}}};
G.prototype._readyClients=function(){this.__enableOrFlushClients()};
G.prototype.setProperties=function(Z,Q){for(var p in Z)!Q&&this.__readOnly&&this.__readOnly[p]||this._setPendingPropertyOrPath(p,Z[p],!0);this._invalidateProperties()};
G.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
G.prototype._propertiesChanged=function(Z,Q,p){Z=this.__dataHasPaths;this.__dataHasPaths=!1;var l;if(l=this.__computeEffects)if(pGT){K1++;var q=w8u(this),u=[],B;for(B in Q)M9x(B,l,u,q,Z);for(;B=u.shift();)CLX(this,"",Q,p,B)&&M9x(B.methodInfo,l,u,q,Z);Object.assign(p,this.__dataOld);Object.assign(Q,this.__dataPending);this.__dataPending=null}else for(q=Q;MK(this,l,q,p,Z);)Object.assign(p,this.__dataOld),Object.assign(Q,this.__dataPending),q=this.__dataPending,this.__dataPending=null;l=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(Q,p,Z);this._flushClients();MK(this,this.__reflectEffects,Q,p,Z);MK(this,this.__observeEffects,Q,p,Z);if(l){q=this.__notifyEffects;u=K1++;for(var t in l)if(l[t]){if(B=q){var D=q;B=u;var d=t,e=Q,n=p,c=Z,W=!1,M=c?TU(d):d;if(D=D[M]){M=0;for(var r=D.length,w=void 0;M<r&&(w=D[M]);M++)w.info&&w.info.lastRun===B||c&&!zfM(d,w.trigger)||(w.info&&(w.info.lastRun=B),w.fn(this,d,e,n,w.info,c,void 0),W=!0)}B=W}if(B)var x=!0;else{if(B=Z)B=t,d=Q,e=TU(B),e!==
B?(e=XZ(e)+"-changed",MOX(this,e,d[B],B),B=!0):B=!1;B&&(x=!0)}}var U;x&&(U=this.__dataHost)&&U._invalidateProperties&&U._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
G.prototype._propagatePropertyChanges=function(Z,Q,p){this.__propagateEffects&&MK(this,this.__propagateEffects,Z,Q,p);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,Z,Q,p)};
G.prototype._runEffectsForTemplate=function(Z,Q,p,l){var q=this,u=function(B,t){MK(q,Z.propertyEffects,B,p,t,Z.nodeList);for(var D=Z.firstChild;D;D=D.nextSibling)q._runEffectsForTemplate(D,B,p,t)};
Z.runEffects?Z.runEffects(u,Q,l):u(Q,l)};
G.prototype.linkPaths=function(Z,Q){Z=Wx(Z);Q=Wx(Q);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[Z]=Q};
G.prototype.unlinkPaths=function(Z){Z=Wx(Z);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[Z]};
G.prototype.notifySplices=function(Z,Q){var p={path:""};Z=zU(this,Z,p);xco(this,Z,p.path,Q)};
G.prototype.get=function(Z,Q){return zU(Q||this,Z)};
G.prototype.set=function(Z,Q,p){p?vG2(p,Z,Q):this.__readOnly&&this.__readOnly[Z]||this._setPendingPropertyOrPath(Z,Q,!0)&&this._invalidateProperties()};
G.prototype.push=function(Z){var Q=_.Ry.apply(1,arguments),p={path:""},l=zU(this,Z,p),q=l.length,u=l.push.apply(l,_.OP(Q));Q.length&&hk(this,l,p.path,q,Q.length,[]);return u};
G.prototype.pop=function(Z){var Q={path:""};Z=zU(this,Z,Q);var p=!!Z.length,l=Z.pop();p&&hk(this,Z,Q.path,Z.length,0,[l]);return l};
G.prototype.splice=function(Z,Q,p){var l=_.Ry.apply(3,arguments),q={path:""},u=zU(this,Z,q);Q<0?Q=u.length-Math.floor(-Q):Q&&(Q=Math.floor(Q));var B=arguments.length===2?u.splice(Q):u.splice.apply(u,[Q,p].concat(_.OP(l)));(l.length||B.length)&&hk(this,u,q.path,Q,l.length,B);return B};
G.prototype.shift=function(Z){var Q={path:""};Z=zU(this,Z,Q);var p=!!Z.length,l=Z.shift();p&&hk(this,Z,Q.path,0,0,[l]);return l};
G.prototype.unshift=function(Z){var Q=_.Ry.apply(1,arguments),p={path:""},l=zU(this,Z,p),q=l.unshift.apply(l,_.OP(Q));Q.length&&hk(this,l,p.path,0,Q.length,[]);return q};
G.prototype.notifyPath=function(Z,Q){if(arguments.length==1){var p={path:""};Q=zU(this,Z,p);p=p.path}else p=Array.isArray(Z)?Wx(Z):Z;this._setPendingPropertyOrPath(p,Q,!0,!0)&&this._invalidateProperties()};
G.prototype._createReadOnlyProperty=function(Z,Q){this._addPropertyEffect(Z,"__readOnly");Q&&(this["_set"+(Z[0].toUpperCase()+Z.substring(1))]=function(p){this._setProperty(Z,p)})};
G.prototype._createPropertyObserver=function(Z,Q,p){var l={property:Z,method:Q,dynamicFn:!!p};this._addPropertyEffect(Z,"__observeEffects",{fn:KUu,info:l,trigger:{name:Z}});p&&this._addPropertyEffect(Q,"__observeEffects",{fn:KUu,info:l,trigger:{name:Q}})};
G.prototype._createMethodObserver=function(Z,Q){var p=Npf(Z);if(!p)throw Error("Ed`"+Z);oGj(this,p,"__observeEffects",hfu,null,Q)};
G.prototype._createNotifyingProperty=function(Z){this._addPropertyEffect(Z,"__notifyEffects",{fn:j9u,info:{eventName:XZ(Z)+"-changed",property:Z}})};
G.prototype._createReflectedProperty=function(Z){var Q=this.constructor.attributeNameForProperty(Z);Q[0]==="-"?console.warn("Property "+Z+" cannot be reflected to attribute "+Q+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(Z,"__reflectEffects",{fn:PLf,info:{attrName:Q}})};
G.prototype._createComputedProperty=function(Z,Q,p){var l=Npf(Q);if(!l)throw Error("Fd`"+Q);Q=oGj(this,l,"__computeEffects",CLX,Z,p);WU3(this,"__computeInfo")[Z]=Q};
G.prototype._marshalArgs=function(Z,Q,p){for(var l=this.__data,q=[],u=0,B=Z.length;u<B;u++){var t=Z[u],D=t.name,d=t.structured,e=t.wildcard,n=t.value;t.literal||(e?(t=f1(D,Q),d=Al3(l,p,t?Q:D),n={path:t?Q:D,value:d,base:t?zU(l,D):d}):n=d?Al3(l,p,D):l[D]);if(wN&&!this._overrideLegacyUndefined&&n===void 0&&Z.length>1)return rN;q[u]=n}return q};
G.addPropertyEffect=function(Z,Q,p){this.prototype._addPropertyEffect(Z,Q,p)};
G.createPropertyObserver=function(Z,Q,p){this.prototype._createPropertyObserver(Z,Q,p)};
G.createMethodObserver=function(Z,Q){this.prototype._createMethodObserver(Z,Q)};
G.createNotifyingProperty=function(Z){this.prototype._createNotifyingProperty(Z)};
G.createReadOnlyProperty=function(Z,Q){this.prototype._createReadOnlyProperty(Z,Q)};
G.createReflectedProperty=function(Z){this.prototype._createReflectedProperty(Z)};
G.createComputedProperty=function(Z,Q,p){this.prototype._createComputedProperty(Z,Q,p)};
G.bindTemplate=function(Z){return this.prototype._bindTemplate(Z)};
G.prototype._bindTemplate=function(Z,Q){var p=this.constructor._parseTemplate(Z),l=this.__preBoundTemplateInfo==p;if(!l)for(var q in p.propertyEffects)this._createPropertyAccessor(q);Q?(p=Object.create(p),p.wasPreBound=l,this.__templateInfo?(Z=Z._parentTemplateInfo||this.__templateInfo,Q=Z.lastChild,p.parent=Z,Z.lastChild=p,(p.previousSibling=Q)?Q.nextSibling=p:Z.firstChild=p):this.__templateInfo=p):this.__preBoundTemplateInfo=p;return p};
G._addTemplatePropertyEffect=function(Z,Q,p){(Z.hostProps=Z.hostProps||{})[Q]=!0;Z=Z.propertyEffects=Z.propertyEffects||{};(Z[Q]=Z[Q]||[]).push(p)};
G.prototype._stampTemplate=function(Z,Q){Q=Q||this._bindTemplate(Z,!0);GJ.push(this);Z=H.prototype._stampTemplate.call(this,Z,Q);GJ.pop();Q.nodeList=Z.nodeList;if(!Q.wasPreBound)for(var p=Q.childNodes=[],l=Z.firstChild;l;l=l.nextSibling)p.push(l);Z.templateInfo=Q;p=Q.nodeList;l=Q.nodeInfoList;if(l.length)for(var q=0;q<l.length;q++){var u=p[q],B=l[q].bindings;if(B)for(var t=0;t<B.length;t++){var D=B[t],d=u,e=D;if(e.isCompound){for(var n=d.__dataCompoundStorage||(d.__dataCompoundStorage={}),c=e.parts,
W=Array(c.length),M=0;M<c.length;M++)W[M]=c[M].literal;c=e.target;n[c]=W;e.literal&&e.kind=="property"&&(c==="className"&&(d=(0,_.js)(d)),d[c]=e.literal)}ylM(u,this,D)}u.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(Q,this.__data,null,!1),this._flushClients());return Z};
G.prototype._removeBoundDom=function(Z){Z=Z.templateInfo;var Q=Z.previousSibling,p=Z.nextSibling,l=Z.parent;Q?Q.nextSibling=p:l&&(l.firstChild=p);p?p.previousSibling=Q:l&&(l.lastChild=Q);Z.nextSibling=Z.previousSibling=null;Z=Z.childNodes;for(Q=0;Q<Z.length;Q++)p=Z[Q],(0,_.js)((0,_.js)(p).parentNode).removeChild(p)};
G._parseTemplateNode=function(Z,Q,p){var l=H._parseTemplateNode.call(this,Z,Q,p);if(Z.nodeType===Node.TEXT_NODE){var q=this._parseBindings(Z.textContent,Q);q&&(Z.textContent=mcf(q)||" ",axf(this,Q,p,"text","textContent",q),l=!0)}return l};
G._parseTemplateNodeAttribute=function(Z,Q,p,l,q){var u=this._parseBindings(q,Q);if(u){q=l;var B="property";Kl_.test(l)?B="attribute":l[l.length-1]=="$"&&(l=l.slice(0,-1),B="attribute");var t=mcf(u);t&&B=="attribute"&&(l=="class"&&Z.hasAttribute("class")&&(t+=" "+Z.getAttribute(l)),Z.setAttribute(l,t));B=="attribute"&&q=="disable-upgrade$"&&Z.setAttribute(l,"");Z.localName==="input"&&q==="value"&&Z.setAttribute(q,"");Z.removeAttribute(q);B==="property"&&(l=$P(l));axf(this,Q,p,B,l,u,t);return!0}return H._parseTemplateNodeAttribute.call(this,
Z,Q,p,l,q)};
G._parseTemplateNestedTemplate=function(Z,Q,p){var l=H._parseTemplateNestedTemplate.call(this,Z,Q,p),q=Z.parentNode,u=p.templateInfo,B=q.localName==="dom-if",t=q.localName==="dom-repeat";xq&&(B||t)&&(q.removeChild(Z),p=p.parentInfo,p.templateInfo=u,p.noted=!0,l=!1);Z=u.hostProps;if(LV&&B)Z&&(Q.hostProps=Object.assign(Q.hostProps||{},Z),xq||(p.parentInfo.noted=!0));else for(var D in Z)axf(this,Q,p,"property","_host_"+D,[{mode:"{",source:D,dependencies:[D],hostProp:!0}]);return l};
G._parseBindings=function(Z,Q){for(var p=[],l=0,q;(q=jKT.exec(Z))!==null;){q.index>l&&p.push({literal:Z.slice(l,q.index)});l=q[1][0];var u=!!q[2];q=q[3].trim();var B=!1,t="",D=-1;l=="{"&&(D=q.indexOf("::"))>0&&(t=q.substring(D+2),q=q.substring(0,D),B=!0);D=Npf(q);var d=[];if(D){var e=D,n=e.args;e=e.methodName;for(var c=0;c<n.length;c++){var W=n[c];W.literal||d.push(W)}if((n=Q.dynamicFns)&&n[e]||D.static)d.push(e),D.dynamicFn=!0}else d.push(q);p.push({source:q,mode:l,negate:u,customEvent:B,signature:D,
dependencies:d,event:t});l=jKT.lastIndex}l&&l<Z.length&&(Z=Z.substring(l))&&p.push({literal:Z});return p.length?p:null};
G._evaluateBinding=function(Z,Q,p,l,q,u){Z=Q.signature?hfu(Z,p,l,q,Q.signature):p!=Q.source?zU(Z,Q.source):u&&cx(p)?zU(Z,p):Z.__data[p];Q.negate&&(Z=!Z);return Z};
_.u4.Object.defineProperties(G.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return z2N}}});
return G}),GJ=[];var Pqa=window.ShadyCSS&&window.ShadyCSS.cssBuild,s4=bO(function(G){function H(Q,p,l,q){if(!Pqa){for(var u=p.content.querySelectorAll("style"),B=FUf(p),t=bAu(l),D=p.content.firstElementChild,d=0;d<t.length;d++){var e=t[d];e.textContent=Q._processStyleText(e.textContent,q);p.content.insertBefore(e,D)}for(D=t=0;D<B.length;D++)d=B[D],e=u[t],e!==d?(d=d.cloneNode(!0),e.parentNode.insertBefore(d,e)):t++,d.textContent=Q._processStyleText(d.textContent,q)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(p,
l);if(gQR&&Pqa&&HHx&&(p=p.content.querySelectorAll("style"))){var n="";Array.from(p).forEach(function(c){n+=c.textContent;c.parentNode.removeChild(c)});
Q._styleSheet=new CSSStyleSheet;Q._styleSheet.replaceSync(n)}}
var Z=D6a(HK(G));G=function(){return Z.call(this)||this};
_.T(G,Z);G._finalizeClass=function(){Z._finalizeClass.call(this);var Q;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(Q=this.__ownObservers)&&this.createObservers(Q,this._properties);this._prepareTemplate()};
G._prepareTemplate=function(){var Q=this.template;Q&&(typeof Q==="string"?(console.error("template getter must return HTMLTemplateElement"),Q=null):YP||(Q=Q.cloneNode(!0)));this.prototype._template=Q};
G.createProperties=function(Q){for(var p in Q){var l=this.prototype,q=p,u=Q[p],B=Q;u.computed&&(u.readOnly=!0);u.computed&&(l._hasReadOnlyEffect(q)?console.warn("Cannot redefine computed property '"+q+"'."):l._createComputedProperty(q,u.computed,B));u.readOnly&&!l._hasReadOnlyEffect(q)?l._createReadOnlyProperty(q,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(q)&&console.warn("Cannot make readOnly property '"+q+"' non-readOnly.");u.reflectToAttribute&&!l._hasReflectEffect(q)?l._createReflectedProperty(q):
u.reflectToAttribute===!1&&l._hasReflectEffect(q)&&console.warn("Cannot make reflected property '"+q+"' non-reflected.");u.notify&&!l._hasNotifyEffect(q)?l._createNotifyingProperty(q):u.notify===!1&&l._hasNotifyEffect(q)&&console.warn("Cannot make notify property '"+q+"' non-notify.");u.observer&&l._createPropertyObserver(q,u.observer,B[u.observer]);l._addPropertyToAttributeMap(q)}};
G.createObservers=function(Q,p){for(var l=this.prototype,q=0;q<Q.length;q++)l._createMethodObserver(Q[q],p)};
G.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);Z.prototype._initializeProperties.call(this);this.rootPath=sK_;this.importPath=this.constructor.importPath;var Q=this.constructor;if(!Q.hasOwnProperty("__propertyDefaults")){Q.__propertyDefaults=null;var p=Q._properties,l;for(l in p){var q=p[l];"value"in q&&(Q.__propertyDefaults=Q.__propertyDefaults||{},Q.__propertyDefaults[l]=q)}}if(Q=Q.__propertyDefaults)for(var u in Q)p=Q[u],
this._canApplyPropertyDefault(u)&&(p=typeof p.value=="function"?p.value.call(this):p.value,this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p)};
G.prototype._canApplyPropertyDefault=function(Q){return!this.hasOwnProperty(Q)};
G._processStyleText=function(Q,p){return uyX(Q,p)};
G._finalizeTemplate=function(Q){var p=this.prototype._template;if(p&&!p.__polymerFinalized){p.__polymerFinalized=!0;var l=this.importPath;l=l?_.n1(l):"";H(this,p,Q,l);this.prototype._bindTemplate(p)}};
G.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);Z.prototype.connectedCallback.call(this)};
G.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);Z.prototype.ready.call(this)};
G.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));Z.prototype._readyClients.call(this)};
G.prototype._attachDom=function(Q){var p=(0,_.js)(this);if(p.attachShadow)return Q?(p.shadowRoot||(p.attachShadow({mode:"open",shadyUpgradeFragment:Q}),p.shadowRoot.appendChild(Q),this.constructor._styleSheet&&(p.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),QKa&&window.ShadyDOM&&window.ShadyDOM.flushInitial(p.shadowRoot),p.shadowRoot):null;throw Error("Hd");};
G.prototype.updateStyles=function(Q){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,Q)};
G.prototype.resolveUrl=function(Q,p){!p&&this.importPath&&(p=_.n1(this.importPath));return _.n1(Q,p)};
G._parseTemplateContent=function(Q,p,l){p.dynamicFns=p.dynamicFns||this._properties;return Z._parseTemplateContent.call(this,Q,p,l)};
G._addTemplatePropertyEffect=function(Q,p,l){!HE||p in this._properties||l.info.part.signature&&l.info.part.signature.static||l.info.part.hostProp||Q.nestedTemplate||console.warn("Property '"+p+"' used in template but not declared in 'properties'; attribute will not be observed.");return Z._addTemplatePropertyEffect.call(this,Q,p,l)};
_.u4.Object.defineProperties(G,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var Q=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof Q==="function"&&(Q=Q());if(Q===void 0){if(Q=this.hasOwnProperty("is")){Q=this.is;var p=null;if(Q&&(!sW||ZHx)&&(p=C1.import(Q,"template"),sW&&!p))throw Error("Gd`"+Q);Q=p}Q=Q||Object.getPrototypeOf(this.prototype).constructor.template}this._template=Q}return this._template},
set:function(Q){this._template=Q}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var Q=this.importMeta;Q?this._importPath=BpW(Q.url):this._importPath=(Q=C1.import(this.is))&&Q.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return G});var rva=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(G){return G}}),lGj=function(G,H){wGT(G,H);
this.value=H.reduce(function(Z,Q,p){return Z+gjU(Q)+G[p+1]},G[0]).toString()},wGT;
lGj.prototype.toString=function(){return this.value};
_.h22=function(G){var H=_.Ry.apply(1,arguments);wGT(G,H);var Z=document.createElement("template");H=H.reduce(function(Q,p,l){if(p instanceof HTMLTemplateElement)p=p.innerHTML;else if(p instanceof lGj)p=gjU(p);else throw Error("Jd`"+p);return Q+p+G[l+1]},G[0]);
rva&&(H=rva.createHTML(H));Z.innerHTML=H;return Z};
wGT=function(G,H){if(!Array.isArray(G)||!Array.isArray(G.raw)||H.length!==G.length-1)throw new TypeError("Kd");};var Zy=s4(HTMLElement);var Cqa=bO(function(G){var H=s4(G);G=function(){var Z=H.call(this)||this;Z.__lastItems=null;Z.__lastMulti=null;Z.__selectedMap=null;return Z};
_.T(G,H);G.prototype.__updateSelection=function(Z,Q){var p=Q.path;p=="items"?(Q=Q.base||[],p=this.__lastItems,Z!==this.__lastMulti&&this.clearSelection(),p&&(p=pMe(Q,p),this.__applySplices(p)),this.__lastItems=Q,this.__lastMulti=Z):Q.path=="items.splices"?this.__applySplices(Q.value.indexSplices):(Z=p.slice(6),Q=parseInt(Z,10),Z.indexOf(".")<0&&Z==Q&&this.__deselectChangedIdx(Q))};
G.prototype.__applySplices=function(Z){for(var Q=this,p=this.__selectedMap,l={},q=0;q<Z.length;l={s$jscomp$109:void 0},q++){l.s$jscomp$109=Z[q];p.forEach(function(D){return function(d,e){d<D.s$jscomp$109.index||(d>=D.s$jscomp$109.index+D.s$jscomp$109.removed.length?p.set(e,d+D.s$jscomp$109.addedCount-D.s$jscomp$109.removed.length):p.set(e,-1))}}(l));
for(var u=0;u<l.s$jscomp$109.addedCount;u++){var B=l.s$jscomp$109.index+u;p.has(this.items[B])&&p.set(this.items[B],B)}}this.__updateLinks();var t=0;p.forEach(function(D,d){D<0?(Q.multi?Q.splice("selected",t,1):Q.selected=Q.selectedItem=null,p.delete(d)):t++})};
G.prototype.__updateLinks=function(){var Z=this;this.__dataLinkedPaths={};if(this.multi){var Q=0;this.__selectedMap.forEach(function(p){p>=0&&Z.linkPaths("items."+p,"selected."+Q++)})}else this.__selectedMap.forEach(function(p){Z.linkPaths("selected","items."+p);
Z.linkPaths("selectedItem","items."+p)})};
G.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
G.prototype.isSelected=function(Z){return this.__selectedMap.has(Z)};
G.prototype.isIndexSelected=function(Z){return this.isSelected(this.items[Z])};
G.prototype.__deselectChangedIdx=function(Z){var Q=this,p=this.__selectedIndexForItemIndex(Z);if(p>=0){var l=0;this.__selectedMap.forEach(function(q,u){p==l++&&Q.deselect(u)})}};
G.prototype.__selectedIndexForItemIndex=function(Z){if(Z=this.__dataLinkedPaths["items."+Z])return parseInt(Z.slice(9),10)};
G.prototype.deselect=function(Z){var Q=this.__selectedMap.get(Z);if(Q>=0){this.__selectedMap.delete(Z);var p;this.multi&&(p=this.__selectedIndexForItemIndex(Q));this.__updateLinks();this.multi?this.splice("selected",p,1):this.selected=this.selectedItem=null}};
G.prototype.deselectIndex=function(Z){this.deselect(this.items[Z])};
G.prototype.select=function(Z){this.selectIndex(this.items.indexOf(Z))};
G.prototype.selectIndex=function(Z){var Q=this.items[Z];this.isSelected(Q)?this.toggle&&this.deselectIndex(Z):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(Q,Z),this.__updateLinks(),this.multi?this.push("selected",Q):this.selected=this.selectedItem=Q)};
_.u4.Object.defineProperties(G,{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 G}),iH_=Cqa(Zy),QQ=function(){return iH_.apply(this,arguments)||this};
_.T(QQ,iH_);_.u4.Object.defineProperties(QQ,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(QQ.is,QQ);var OHR=window.Polymer;window.Polymer=function(G){return window.Polymer._polymerFn(G)};
OHR&&Object.assign(Polymer,OHR);Polymer._polymerFn=function(){throw Error("Ld");};/*

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:uyX,resolveUrl:_.n1,pathFromUrl:BpW};Polymer.DomModule=C1;Polymer.Async={timeOut:_.FA,animationFrame:_.kC,idlePeriod:Bxp,microTask:Ak};Polymer.dedupingMixin=bO;Polymer.wrap=_.js;Polymer.PropertiesChanged=t9a;Polymer.telemetry={instanceCount:kqN,incrementInstanceCount:function(){kqN++},
registrations:DcU,register:dcW,dumpRegistrations:function(){DcU.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=D6a;Polymer.CaseMap={dashToCamelCase:$P,camelToDashCase:XZ};Polymer.PropertyAccessors=XGp;Polymer.TemplateStamp=Wlw;Polymer.Path={isPath:cx,root:TU,isAncestor:clf,isDescendant:f1,translate:vx,matches:Tpo,normalize:Wx,split:fxb,get:zU,set:vG2,isDeep:cx};Polymer.Settings={useShadow:FZ,useNativeCSSProperties:ET4,useNativeCustomElements:YDd,get rootPath(){return sK_},setRootPath:function(G){sK_=G},
get sanitizeDOMValue(){return Px},setSanitizeDOMValue:function(G){Px=G},
get passiveTouchGestures(){return VVb},setPassiveTouchGestures:function(G){VVb=G},
get strictTemplatePolicy(){return sW},setStrictTemplatePolicy:function(G){sW=G},
get allowTemplateFromDomModule(){return ZHx},setAllowTemplateFromDomModule:function(G){ZHx=G},
get legacyOptimizations(){return YP},setLegacyOptimizations:function(G){YP=G},
get syncInitialRender(){return QKa},setSyncInitialRender:function(G){QKa=G},
get legacyUndefined(){return wN},setLegacyUndefined:function(G){wN=G},
get legacyWarnings(){return HE},setLegacyWarnings:function(G){HE=G},
get orderedComputed(){return pGT},setOrderedComputed:function(G){pGT=G},
get fastDomIf(){return LV},setFastDomIf:function(G){LV=G},
get removeNestedTemplates(){return xq},setRemoveNestedTemplates:function(G){xq=G},
get suppressTemplateNotifications(){return Ee},setSuppressTemplateNotifications:Ee};Polymer.rootPath!==void 0&&(sK_=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Px=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(VVb=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(sW=Polymer.strictTemplatePolicy);ZHx=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(YP=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(QKa=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(wN=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(HE=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(pGT=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(LV=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(xq=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Ee=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Px},
set:function(G){Px=G}});Polymer.PropertyEffects=HK;Polymer.StyleGather={stylesFromModules:YzX,stylesFromModule:EGu,stylesFromTemplate:FUf,stylesFromModuleImports:bAu,cssFromModules:HMW,cssFromModule:G1v,cssFromTemplate:s6R,cssFromModuleImports:function(G){return(G=C1.import(G))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G):""}};Polymer.ElementMixin=s4;Polymer.updateStyles=function(G){window.ShadyCSS&&window.ShadyCSS.styleDocument(G)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:pMe};Polymer.html=_.h22;Polymer.htmlLiteral=function(G){return new lGj(G,_.Ry.apply(1,arguments))};Polymer.Element=Zy;Polymer.ArraySelectorMixin=Cqa;Polymer.ArraySelector=QQ;var aId=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,yv2=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ygj=/@media\s(.*)/;var uWf=null,SVU=window.HTMLImports&&window.HTMLImports.whenReady||null,Bqf;var oQw=null,pt=null,l2=function(){this.customStyles=[];this.enqueued=!1;JBW(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},m6R=function(G){!G.enqueued&&pt&&(G.enqueued=!0,JBW(pt))};
l2.prototype.addCustomStyle=function(G){G.__seenByShadyCSS||(G.__seenByShadyCSS=!0,this.customStyles.push(G),m6R(this))};
l2.prototype.getStyleForCustomStyle=function(G){if(G.__shadyCSSCachedStyle)return G.__shadyCSSCachedStyle;var H;G.getStyle?H=G.getStyle():H=G;return H};
l2.prototype.processStyles=function(){for(var G=this.customStyles,H=0;H<G.length;H++){var Z=G[H];if(!Z.__shadyCSSCachedStyle){var Q=this.getStyleForCustomStyle(Z);Q&&(Q=Q.__appliedElement||Q,oQw&&oQw(Q),Z.__shadyCSSCachedStyle=Q)}}return G};
l2.prototype.addCustomStyle=l2.prototype.addCustomStyle;l2.prototype.getStyleForCustomStyle=l2.prototype.getStyleForCustomStyle;l2.prototype.processStyles=l2.prototype.processStyles;Object.defineProperties(l2.prototype,{transformCallback:{get:function(){return oQw},
set:function(G){oQw=G}},
validateCallback:{get:function(){return pt},
set:function(G){var H=!1;pt||(H=!0);pt=G;H&&m6R(this)}}});var k1M=!(window.ShadyDOM&&window.ShadyDOM.inUse),tVj,Sn;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Sn=window.ShadyCSS.cssBuild);var U6t=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?tVj=window.ShadyCSS.nativeCss:window.ShadyCSS?(DWo(window.ShadyCSS),window.ShadyCSS=void 0):DWo(window.WebComponents&&window.WebComponents.flags);var iY3=tVj;var R2R=new l2;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(G,H){R2R.processStyles();IGj(G,H)},
styleElement:function(){R2R.processStyles()},
styleDocument:function(G){R2R.processStyles();IGj(document.body,G)},
getComputedStyleValue:function(G,H){return qV3(G,H)},
flushCustomStyles:function(){},
nativeCss:iY3,nativeShadow:k1M,cssBuild:Sn,disableRuntime:U6t});window.ShadyCSS.CustomStyleInterface=R2R;var Nxa=window.ShadyCSS.CustomStyleInterface,IB=function(){var G=HTMLElement.call(this)||this;G._style=null;Nxa.addCustomStyle(G);return G};
_.T(IB,HTMLElement);IB.prototype.getStyle=function(){if(this._style)return this._style;var G=this.querySelector("style");if(!G)return null;this._style=G;var H=G.getAttribute("include");H&&(G.removeAttribute("include"),G.textContent=HMW(H)+G.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
IB.prototype.getStyle=IB.prototype.getStyle;window.customElements.define("custom-style",IB);Polymer.CustomStyle=IB;var qd=function(){this._timer=this._callback=this._asyncModule=null},SM,x6R;
qd.prototype.setConfig=function(G,H){var Z=this;this._asyncModule=G;this._callback=H;this._timer=this._asyncModule.run(function(){Z._timer=null;SM.delete(Z);Z._callback()})};
qd.prototype.cancel=function(){this.isActive()&&(Av4(this),SM.delete(this))};
var Av4=function(G){G.isActive()&&(G._asyncModule.cancel(G._timer),G._timer=null)};
qd.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
qd.prototype.isActive=function(){return this._timer!=null};
_.u2=function(G,H,Z){G instanceof qd?Av4(G):G=new qd;G.setConfig(H,Z);return G};
SM=new Set;_.BK=function(G){SM.add(G)};
x6R=function(){var G=!!SM.size;SM.forEach(function(H){try{H.flush()}catch(Z){setTimeout(function(){throw Z;})}});
return G};var ecf=typeof document.head.style.touchAction==="string",dWj=["mousedown","mousemove","mouseup","click"],Wnj=[0,1,4,2],Llw;try{Llw=(new MouseEvent("test",{buttons:1})).buttons===1}catch(G){Llw=!1}var vjj=Llw,njU=!1;(function(){try{var G=Object.defineProperty({},"passive",{get:function(){njU=!0}});
window.addEventListener("test",null,G);window.removeEventListener("test",null,G)}catch(H){}})();
var XMM=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),cBX=[],EQN={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},aGU={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Tq3=function(G){var H=G.sourceCapabilities;if(!H||H.firesTouchEvents)if(G.__polymerGesturesHandled={skip:!0},G.type==="click"){H=!1;for(var Z=j6e(G),Q=0;Q<Z.length;Q++){if(Z[Q].nodeType===Node.ELEMENT_NODE)if(Z[Q].localName==="label")cBX.push(Z[Q]);
else if(EQN[Z[Q].localName]){var p=Z[Q];var l=Array.prototype.slice.call(p.labels||[]);if(!l.length){l=[];try{var q=p.getRootNode();if(p.id){var u=q.querySelectorAll("label[for = '"+p.id+"']");for(p=0;p<u.length;p++)l.push(u[p])}}catch(B){}}for(p=0;p<l.length;p++)H=H||cBX.indexOf(l[p])>-1}if(Z[Q]===YIT)return}H||(G.preventDefault(),G.stopPropagation())}},YIT=null,JO=null,rBf=0,wMv=0,P$u=-1,hco=!1;
document.addEventListener("touchend",function(G){JO||fGv(!0);YIT=j6e(G)[0];JO=_.u2(JO,_.FA.after(2500),function(){fGv();JO=YIT=null})},njU?{passive:!0}:!1);
var j6e=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(G){return G.composedPath&&G.composedPath()||[]},mg={},ys=[];
C$j({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){aA(this.info)},
mousedown:function(G){if(OS(G)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),Z=this;KnW(this.info,function(Q){OS(Q)||(xP("up",H,Q),aA(Z.info))},function(Q){OS(Q)&&xP("up",H,Q);
aA(Z.info)});
xP("down",H,G)}},
touchstart:function(G){xP("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)},
touchend:function(G){xP("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),G.changedTouches[0],G)}});
C$j({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(G){this.moves.length>2&&this.moves.shift();this.moves.push(G)},
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;aA(this.info)},
mousedown:function(G){if(OS(G)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G),Z=this,Q=function(p){var l=p.clientX,q=p.clientY;iMe(Z.info,l,q)&&(Z.info.state=Z.info.started?p.type==="mouseup"?"end":"track":"start",Z.info.state==="start"&&oA("tap"),Z.info.addMove({x:l,y:q}),OS(p)||(Z.info.state="end",aA(Z.info)),H&&OMf(Z.info,H,p),Z.info.started=!0)};
KnW(this.info,Q,function(p){Z.info.started&&Q(p);aA(Z.info)});
this.info.x=G.clientX;this.info.y=G.clientY}},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchmove:function(G){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];var Z=G.clientX,Q=G.clientY;iMe(this.info,Z,Q)&&(this.info.state==="start"&&oA("tap"),this.info.addMove({x:Z,y:Q}),OMf(this.info,H,G),this.info.state="track",this.info.started=!0)},
touchend:function(G){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G);G=G.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:G.clientX,y:G.clientY}),OMf(this.info,H,G))}});
C$j({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(G){OS(G)&&(this.info.x=G.clientX,this.info.y=G.clientY)},
click:function(G){OS(G)&&yBf(this.info,G)},
touchstart:function(G){G=G.changedTouches[0];this.info.x=G.clientX;this.info.y=G.clientY},
touchend:function(G){yBf(this.info,G.changedTouches[0],G)}});var Fla=bO(function(G){var H=function(){return G.apply(this,arguments)||this};
_.T(H,G);H.prototype._addEventListenerToNode=function(Z,Q,p){US(Z,Q,p)||G.prototype._addEventListenerToNode.call(this,Z,Q,p)};
H.prototype._removeEventListenerFromNode=function(Z,Q,p){RA(Z,Q,p)||G.prototype._removeEventListenerFromNode.call(this,Z,Q,p)};
return H});var tO=bO(function(G){var H=function(){return G.apply(this,arguments)||this};
_.T(H,G);H.prototype._shouldPropertyChange=function(Z,Q,p){return ojj(this,Z,Q,p,!0)};
return H}),bH_=bO(function(G){var H=function(){return G.apply(this,arguments)||this};
_.T(H,G);H.prototype._shouldPropertyChange=function(Z,Q,p){return ojj(this,Z,Q,p,this.mutableData)};
_.u4.Object.defineProperties(H,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return H});
tO._mutablePropertyChange=ojj;var mWf=!1;var Gt7=Fla(bH_(HK(HTMLElement))),kh=function(){var G=Gt7.call(this)||this;if(sW)throw Error("Md");G.root=null;G.$=null;G.__children=null;return G};
_.T(kh,Gt7);_.g=kh.prototype;_.g.attributeChangedCallback=function(){this.mutableData=!0};
_.g.connectedCallback=function(){UWb()||(this.style.display="none");this.render()};
_.g.disconnectedCallback=function(){this.__removeChildren()};
_.g.__insertChildren=function(){(0,_.js)((0,_.js)(this).parentNode).insertBefore(this.root,this)};
_.g.__removeChildren=function(){if(this.__children)for(var G=0;G<this.__children.length;G++)this.root.appendChild(this.__children[G])};
_.g.render=function(){var G=this;if(!this.__children){var H=H||this.querySelector("template");if(!H){var Z=new MutationObserver(function(){if(H=G.querySelector("template"))Z.disconnect(),G.render();else throw Error("Nd");});
Z.observe(this,{childList:!0});return}this.root=this._stampTemplate(H);this.$=this.root.$;this.__children=[];for(var Q=this.root.firstChild;Q;Q=Q.nextSibling)this.__children[this.__children.length]=Q;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.u4.Object.defineProperties(kh,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",kh);Polymer.Debouncer=qd;Polymer.Gestures={gestures:mg,recognizers:ys,deepTargetFind:MVb,addListener:US,removeListener:RA,register:C$j,setTouchAction:_.NK,prevent:oA,resetMouseCanceller:function(){JO&&JO.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:US,remove:RA};Polymer.GestureEventListeners=Fla;Polymer.MutableData=tO;Polymer.OptionalMutableData=bH_;Polymer.DomBind=kh;_.Dy=function(){do{var G=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var H=x6R()}while(G||H)};var RcM=null;Nqu.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Nqu,writable:!0}});var GWo=HK(Nqu),bMf=tO(GWo),HXw=HK(function(){}),bu=function(G){var H=HXw.call(this)||this;
H._configureProperties(G);H.root=H._stampTemplate(H.__dataHost);var Z=[];H.children=Z;for(var Q=H.root.firstChild;Q;Q=Q.nextSibling)Z.push(Q),Q.__templatizeInstance=H;H.__templatizeOwner&&H.__templatizeOwner.__hideTemplateChildren__&&H._showHideChildren(!0);Z=H.__templatizeOptions;(G&&Z.instanceProps||!Z.instanceProps)&&H._enableProperties();return H};
_.T(bu,HXw);_.g=bu.prototype;_.g._configureProperties=function(G){if(this.__templatizeOptions.forwardHostProp)for(var H in this.__hostProps)this._setPendingProperty(H,this.__dataHost["_host_"+H]);for(var Z in G)this._setPendingProperty(Z,G[Z])};
_.g.forwardHostProp=function(G,H){this._setPendingPropertyOrPath(G,H,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.g._addEventListenerToNode=function(G,H,Z){var Q=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(G,H,function(l){l.model=Q;Z(l)});
else{var p=this.__dataHost.__dataHost;p&&p._addEventListenerToNode(G,H,Z)}};
_.g._showHideChildren=function(G){xWX(G,this.children)};
_.g._setUnmanagedPropertyToNode=function(G,H,Z){G.__hideTemplateChildren__&&G.nodeType==Node.TEXT_NODE&&H=="textContent"?G.__polymerTextContent__=Z:HXw.prototype._setUnmanagedPropertyToNode.call(this,G,H,Z)};
_.g.dispatchEvent=function(){return!0};
_.u4.Object.defineProperties(bu.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var G=this.__parentModel;if(!G){var H;G=this;do G=G.__dataHost.__dataHost;while((H=G.__templatizeOptions)&&!H.parentModel);this.__parentModel=G}return G}}});
var Ej3=tO(bu);var da=function(){var G=Zy.call(this)||this;G.__renderDebouncer=null;G._lastIf=!1;G.__hideTemplateChildren__=!1;return G};
_.T(da,Zy);_.g=da.prototype;_.g.__debounceRender=function(){var G=this;this.__renderDebouncer=_.u2(this.__renderDebouncer,Ak,function(){return G.__render()});
_.BK(this.__renderDebouncer)};
_.g.disconnectedCallback=function(){Zy.prototype.disconnectedCallback.call(this);var G=(0,_.js)(this).parentNode;G&&(G.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.js)(G).host)||this.__teardownInstance()};
_.g.connectedCallback=function(){Zy.prototype.connectedCallback.call(this);UWb()||(this.style.display="none");this.if&&this.__debounceRender()};
_.g.__ensureTemplate=function(){var G=this;if(!this.__template){var H=this._templateInfo?this:(0,_.js)(this).querySelector("template");if(!H){var Z=new MutationObserver(function(){if((0,_.js)(G).querySelector("template"))Z.disconnect(),G.__render();else throw Error("Qd");});
Z.observe(this,{childList:!0});return!1}this.__template=H}return!0};
_.g.__ensureInstance=function(){var G=(0,_.js)(this).parentNode;if(this.__hasInstance()){var H=this.__getInstanceNodes();if(H&&H.length&&(0,_.js)(this).previousSibling!==H[H.length-1])for(var Z=0,Q=void 0;Z<H.length&&(Q=H[Z]);Z++)(0,_.js)(G).insertBefore(Q,this)}else{if(!G||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(G)}return!0};
_.g.render=function(){_.Dy()};
_.g.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Ee&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.g.__hasInstance=function(){};
_.g.__getInstanceNodes=function(){};
_.g.__createAndInsertInstance=function(){};
_.g.__teardownInstance=function(){};
_.g._showHideChildren=function(){};
_.u4.Object.defineProperties(da,{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:da.prototype.__debounceRender},restamp:{type:Boolean,observer:da.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var sXR=function(){var G=da.call(this)||this;G.__instance=null;G.__syncInfo=null;return G};
_.T(sXR,da);_.g=sXR.prototype;_.g.__hasInstance=function(){return!!this.__instance};
_.g.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.g.__createAndInsertInstance=function(G){var H=this,Z=this.__dataHost||this;if(sW&&!this.__dataHost)throw Error("Od");var Q=Z._bindTemplate(this.__template,!0);Q.runEffects=function(p,l,q){var u=H.__syncInfo;if(H.if)u&&(H.__syncInfo=null,H._showHideChildren(),l=Object.assign(u.changedProps,l)),p(l,q);else if(H.__instance)if(u||(u=H.__syncInfo={runEffects:p,changedProps:{}}),q)for(var B in l)p=TU(B),u.changedProps[p]=H.__dataHost[p];else Object.assign(u.changedProps,l)};
this.__instance=Z._stampTemplate(this.__template,Q);(0,_.js)(G).insertBefore(this.__instance,this)};
_.g.__syncHostProperties=function(){var G=this.__syncInfo;G&&(this.__syncInfo=null,G.runEffects(G.changedProps,!1))};
_.g.__teardownInstance=function(){var G=this.__dataHost||this;this.__instance&&(G._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.g._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,xWX(G,this.__instance.templateInfo.childNodes));G||this.__syncHostProperties()};
var ZXa=function(){var G=da.call(this)||this;G.__ctor=null;G.__instance=null;G.__invalidProps=null;return G};
_.T(ZXa,da);_.g=ZXa.prototype;_.g.__hasInstance=function(){return!!this.__instance};
_.g.__getInstanceNodes=function(){return this.__instance.children};
_.g.__createAndInsertInstance=function(G){this.__ctor||(this.__ctor=GE(this.__template,this,{mutableData:!0,forwardHostProp:function(H,Z){this.__instance&&(this.if?this.__instance.forwardHostProp(H,Z):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[TU(H)]=!0))}}));
this.__instance=new this.__ctor;(0,_.js)(G).insertBefore(this.__instance.root,this)};
_.g.__teardownInstance=function(){if(this.__instance){var G=this.__instance.children;if(G&&G.length){var H=(0,_.js)(G[0]).parentNode;if(H){H=(0,_.js)(H);for(var Z=0,Q=void 0;Z<G.length&&(Q=G[Z]);Z++)H.removeChild(Q)}}this.__instance=this.__invalidProps=null}};
_.g.__syncHostProperties=function(){var G=this.__invalidProps;if(G){this.__invalidProps=null;for(var H in G)this.__instance._setPendingProperty(H,this.__dataHost[H]);this.__instance._flushProperties()}};
_.g._showHideChildren=function(){var G=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==G&&(this.__instance.__hidden=G,this.__instance._showHideChildren(G));G||this.__syncHostProperties()};
_.XT=LV?sXR:ZXa;customElements.define(_.XT.is,_.XT);Polymer.enqueueDebouncer=_.BK;Polymer.flush=_.Dy;Polymer.Templatize={templatize:GE,modelForElement:lHb};Polymer.TemplateInstanceBase=bu;Polymer.DomIf=_.XT;var QX2=bH_(Zy),$Q=function(){var G=QX2.call(this)||this;G.__instances=[];G.__renderDebouncer=null;G.__itemsIdxToInstIdx={};G.__chunkCount=null;G.__renderStartTime=null;G.__itemsArrayChanged=!1;G.__shouldMeasureChunk=!1;G.__shouldContinueChunking=!1;G.__chunkingId=0;G.__sortFn=null;G.__filterFn=null;G.__observePaths=null;G.__ctor=null;G.__isDetached=!0;G.template=null;return G};
_.T($Q,QX2);_.g=$Q.prototype;_.g.disconnectedCallback=function(){QX2.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var G=0;G<this.__instances.length;G++)this.__detachInstance(G);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.g.connectedCallback=function(){QX2.prototype.connectedCallback.call(this);UWb()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var G=(0,_.js)((0,_.js)(this).parentNode),H=0;H<this.__instances.length;H++)this.__attachInstance(H,G);this.__chunkingId&&this.__render()}};
_.g.__ensureTemplatized=function(){var G=this;if(!this.__ctor){var H=this.template=this._templateInfo?this:this.querySelector("template");if(!H){var Z=new MutationObserver(function(){if(G.querySelector("template"))Z.disconnect(),G.__render();else throw Error("Rd");});
Z.observe(this,{childList:!0});return!1}var Q={};Q[this.as]=!0;Q[this.indexAs]=!0;Q[this.itemsIndexAs]=!0;this.__ctor=GE(H,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:Q,forwardHostProp:function(p,l){for(var q=this.__instances,u=0,B=void 0;u<q.length&&(B=q[u]);u++)B.forwardHostProp(p,l)},
notifyInstanceProp:function(p,l,q){Tpo(this.as,l)&&(p=p[this.itemsIndexAs],l==this.as&&(this.items[p]=q),l=vx(this.as,"items."+p,l),this.notifyPath(l,q))}})}return!0};
_.g.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.g.__functionFromPropertyValue=function(G){if(typeof G==="string"){var H=this.__getMethodHost();return function(){return H[G].apply(H,arguments)}}return G};
_.g.__sortChanged=function(G){this.__sortFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.g.__filterChanged=function(G){this.__filterFn=this.__functionFromPropertyValue(G);this.items&&this.__debounceRender(this.__render)};
_.g.__computeFrameTime=function(G){return Math.ceil(1E3/G)};
_.g.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.g.__handleObservedPaths=function(G){if(this.__sortFn||this.__filterFn)if(!G)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var H=this.__observePaths,Z=0;Z<H.length;Z++)G.indexOf(H[Z])===0&&this.__debounceRender(this.__render,this.delay)};
_.g.__itemsChanged=function(G){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(G.path,G.value)||(G.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.g.__debounceRender=function(G,H){H=H===void 0?0:H;this.__renderDebouncer=_.u2(this.__renderDebouncer,H>0?_.FA.after(H):Ak,G.bind(this));_.BK(this.__renderDebouncer)};
_.g.render=function(){this.__debounceRender(this.__render);_.Dy()};
_.g.__render=function(){var G=this;if(this.__ensureTemplatized()){var H=this.items||[],Z=this.__sortAndFilterItems(H),Q=this.__calculateLimit(Z.length);this.__updateInstances(H,Q,Z);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){G.__chunkingId=null;G.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Ee&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.g.__sortAndFilterItems=function(G){for(var H=this,Z=Array(G.length),Q=0;Q<G.length;Q++)Z[Q]=Q;this.__filterFn&&(Z=Z.filter(function(p,l,q){return H.__filterFn(G[p],l,q)}));
this.__sortFn&&Z.sort(function(p,l){return H.__sortFn(G[p],G[l])});
return Z};
_.g.__calculateLimit=function(G){var H=G,Z=this.__instances.length;if(this.initialCount){var Q;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(H=Math.min(G,this.initialCount),this.__chunkCount=(Q=Math.max(H-Z,0))||1):(Q=Math.min(Math.max(G-Z,0),this.__chunkCount),H=Math.min(Z+Q,G));this.__shouldMeasureChunk=Q===this.__chunkCount;this.__shouldContinueChunking=H<G;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return H};
_.g.__continueChunking=function(){if(this.__shouldMeasureChunk){var G=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/G*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.g.__updateInstances=function(G,H,Z){var Q=this.__itemsIdxToInstIdx={},p;for(p=0;p<H;p++){var l=this.__instances[p],q=Z[p],u=G[q];Q[q]=p;l?(l._setPendingProperty(this.as,u),l._setPendingProperty(this.indexAs,p),l._setPendingProperty(this.itemsIndexAs,q),l._flushProperties()):this.__insertInstance(u,p,q)}for(G=this.__instances.length-1;G>=p;G--)this.__detachAndRemoveInstance(G)};
_.g.__detachInstance=function(G){G=this.__instances[G];for(var H=(0,_.js)(G.root),Z=0;Z<G.children.length;Z++)H.appendChild(G.children[Z]);return G};
_.g.__attachInstance=function(G,H){H.insertBefore(this.__instances[G].root,this)};
_.g.__detachAndRemoveInstance=function(G){this.__detachInstance(G);this.__instances.splice(G,1)};
_.g.__stampInstance=function(G,H,Z){var Q={};Q[this.as]=G;Q[this.indexAs]=H;Q[this.itemsIndexAs]=Z;return new this.__ctor(Q)};
_.g.__insertInstance=function(G,H,Z){G=this.__stampInstance(G,H,Z);Z=(Z=this.__instances[H+1])?Z.children[0]:this;(0,_.js)((0,_.js)(this).parentNode).insertBefore(G.root,Z);return this.__instances[H]=G};
_.g._showHideChildren=function(G){for(var H=0;H<this.__instances.length;H++)this.__instances[H]._showHideChildren(G)};
_.g.__handleItemPath=function(G,H){var Z=G.slice(6),Q=Z.indexOf(".");G=Q<0?Z:Z.substring(0,Q);if(G==parseInt(G,10)){Z=Q<0?"":Z.substring(Q+1);this.__handleObservedPaths(Z);if(G=this.__instances[this.__itemsIdxToInstIdx[G]])G._setPendingPropertyOrPath(this.as+(Z?"."+Z:""),H,!1,!0),G._flushProperties();return!0}};
_.g.itemForElement=function(G){return(G=this.modelForElement(G))&&G[this.as]};
_.g.indexForElement=function(G){return(G=this.modelForElement(G))&&G[this.indexAs]};
_.g.modelForElement=function(G){return lHb(this.template,G)};
_.u4.Object.defineProperties($Q,{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:$Q.prototype.__sortChanged},filter:{type:Function,observer:$Q.prototype.__filterChanged},observe:{type:String,observer:$Q.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Ee,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.*)"]}}});
$Q.prototype._setRenderedItemCount=function(){};
customElements.define($Q.is,$Q);Polymer.DomRepeat=$Q;var pTa=function(G,H){var Z=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=G;this.callback=H;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){Z._schedule()};
this.connect();this._schedule()},lJw=function(G){var H=(0,_.js)(G);
if(ZZ(G))return H.assignedNodes({flatten:!0});G=[];for(var Z=0;Z<H.childNodes.length;Z++){var Q=H.childNodes[Z];ZZ(Q)?G.push.apply(G,_.OP((0,_.js)(Q).assignedNodes({flatten:!0}))):G.push(Q)}return G};
_.g=pTa.prototype;_.g.connect=function(){var G=this;ZZ(this._target)?this._listenSlots([this._target]):(0,_.js)(this._target).children&&(this._listenSlots((0,_.js)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(H){G._processMutations(H)}):(this._nativeChildrenObserver=new MutationObserver(function(H){G._processMutations(H)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.g.disconnect=function(){ZZ(this._target)?this._unlistenSlots([this._target]):(0,_.js)(this._target).children&&(this._unlistenSlots((0,_.js)(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};
_.g._schedule=function(){var G=this;this._scheduled||(this._scheduled=!0,Ak.run(function(){return G.flush()}))};
_.g._processMutations=function(G){this._processSlotMutations(G);this.flush()};
_.g._processSlotMutations=function(G){if(G)for(var H=0;H<G.length;H++){var Z=G[H];Z.addedNodes&&this._listenSlots(Z.addedNodes);Z.removedNodes&&this._unlistenSlots(Z.removedNodes)}};
_.g.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 G={target:this._target,addedNodes:[],removedNodes:[]},H=lJw(this._target),Z=pMe(H,this._effectiveNodes),Q=0,p=void 0;Q<Z.length&&(p=Z[Q]);Q++)for(var l=0,q=void 0;l<p.removed.length&&(q=p.removed[l]);l++)G.removedNodes.push(q);
Q=0;for(p=void 0;Q<Z.length&&(p=Z[Q]);Q++)for(l=p.index;l<p.index+p.addedCount;l++)G.addedNodes.push(H[l]);this._effectiveNodes=H;H=!1;if(G.addedNodes.length||G.removedNodes.length)H=!0,this.callback.call(this._target,G);return H};
_.g._listenSlots=function(G){for(var H=0;H<G.length;H++){var Z=G[H];ZZ(Z)&&Z.addEventListener("slotchange",this._boundSchedule)}};
_.g._unlistenSlots=function(G){for(var H=0;H<G.length;H++){var Z=G[H];ZZ(Z)&&Z.removeEventListener("slotchange",this._boundSchedule)}};var eM=Element.prototype,gC_=eM.matches||eM.matchesSelector||eM.mozMatchesSelector||eM.msMatchesSelector||eM.oMatchesSelector||eM.webkitMatchesSelector,IJp=function(G,H){return gC_.call(G,H)},Qg=function(G){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(G);
this.node=G},Bra;
_.g=Qg.prototype;_.g.observeNodes=function(G){return new pTa(this.node,G)};
_.g.unobserveNodes=function(G){G.disconnect()};
_.g.notifyObserver=function(){};
_.g.deepContains=function(G){if((0,_.js)(this.node).contains(G))return!0;var H=G;for(G=G.ownerDocument;H&&H!==G&&H!==this.node;)H=(0,_.js)(H).parentNode||(0,_.js)(H).host;return H===this.node};
_.g.getOwnerRoot=function(){return(0,_.js)(this.node).getRootNode()};
_.g.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.js)(this.node).assignedNodes({flatten:!0}):[]};
_.g.getDestinationInsertionPoints=function(){for(var G=[],H=(0,_.js)(this.node).assignedSlot;H;)G.push(H),H=(0,_.js)(H).assignedSlot;return G};
_.g.importNode=function(G,H){return(0,_.js)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(G,H)};
_.g.getEffectiveChildNodes=function(){return lJw(this.node)};
_.g.queryDistributedElements=function(G){for(var H=this.getEffectiveChildNodes(),Z=[],Q=0,p=H.length,l=void 0;Q<p&&(l=H[Q]);Q++)l.nodeType===Node.ELEMENT_NODE&&IJp(l,G)&&Z.push(l);return Z};
_.u4.Object.defineProperties(Qg.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var G=this.node;return G._activeElement!==void 0?G._activeElement:G.activeElement}}});
var nt=function(G){this.event=G};
_.u4.Object.defineProperties(nt.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 q6a=Qg;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var S6p=window.ShadyDOM.Wrapper,ugN=function(){return S6p.apply(this,arguments)||this};
_.T(ugN,S6p);Object.getOwnPropertyNames(Qg.prototype).forEach(function(G){G!="activeElement"&&G!="constructor"&&(ugN.prototype[G]=Qg.prototype[G])});
IHM(ugN.prototype,["classList"]);q6a=ugN;Object.defineProperties(nt.prototype,{localTarget:{get:function(){var G=this.event.currentTarget;G=G&&_.Bf(G).getOwnerRoot();for(var H=this.path,Z=0;Z<H.length;Z++){var Q=H[Z];if(_.Bf(Q).getOwnerRoot()===G)return Q}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else gHW(),IHM(Qg.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),qyf();Bra=q6a;_.Bf=function(G){G=G||document;if(G instanceof q6a)return G;if(G instanceof nt)return G;var H=G.__domApi;H||(G instanceof Event?H=new nt(G):H=new q6a(G),G.__domApi=H);return H};var Jt4=/:host\(:dir\((ltr|rtl)\)\)/g,tkT=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ktp=/:dir\((?:ltr|rtl)\)/,D$G=!(!window.ShadyDOM||!window.ShadyDOM.inUse),l4=[],VQ=null,p6="",d$2=bO(function(G){D$G||VQ||(p6=document.documentElement.getAttribute("dir"),VQ=new MutationObserver(Syf),VQ.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var H=XGp(G);G=function(){var Z=H.call(this)||this;Z.__autoDirOptOut=!1;return Z};
_.T(G,H);G._processStyleText=function(Z,Q){Z=H._processStyleText.call(this,Z,Q);!D$G&&ktp.test(Z)&&(Z=this._replaceDirInCssText(Z),this.__activateDir=!0);return Z};
G._replaceDirInCssText=function(Z){Z=Z.replace(Jt4,':host([dir="$1"])');return Z=Z.replace(tkT,':host([dir="$2"]) $1')};
G.prototype.ready=function(){H.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
G.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(VQ&&VQ.takeRecords().length&&Syf(),l4.push(this),this.__autoDirOptOut||this.setAttribute("dir",p6))};
G.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var Z=l4.indexOf(this);Z>-1&&l4.splice(Z,1)}};
G.__activateDir=!1;return G});var eoT=function(G){for(;G;){var H=Object.getOwnPropertyDescriptor(G,"observedAttributes");if(H)return H.get;G=Object.getPrototypeOf(G.prototype).constructor}return function(){return[]}};
bO(function(G){var H=s4(G),Z=eoT(H);G=function(){return H.call(this)||this};
_.T(G,H);G.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:H.prototype._initializeProperties.call(this)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(Q){return H.prototype._canApplyPropertyDefault.call(this,Q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Q))};
G.prototype.attributeChangedCallback=function(Q,p,l,q){Q=="disable-upgrade"?this.__isUpgradeDisabled&&l==null&&(H.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.js)(this).isConnected&&H.prototype.connectedCallback.call(this)):H.prototype.attributeChangedCallback.call(this,Q,p,l,q)};
G.prototype.connectedCallback=function(){this.__isUpgradeDisabled||H.prototype.connectedCallback.call(this)};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||H.prototype.disconnectedCallback.call(this)};
_.u4.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z.call(this).concat("disable-upgrade")}}});
return G});var gg=!1,Bmf=[],IZ=[];var D8R=window.ShadyDOM,d8M=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",nHe):document.readyState==="interactive"||document.readyState==="complete"?nHe():window.addEventListener("DOMContentLoaded",nHe);var X43=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=""},VDj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,$8e=/@import[^;]*;/gim,zxv=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Kyf=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,MDf=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,jEW=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,vHo=/^@[^\s]*keyframes/,
fHo=/\s+/g;var P6v={};var hxj=Promise.resolve();var nCR=new Set;var VkR=/;\s*/m,$$w=/^\s*(initial)|(inherit)\s*$/,XTw=/\s*!important/,ctd=function(){this._map={}};
ctd.prototype.set=function(G,H){G=G.trim();this._map[G]={properties:H,dependants:{}}};
ctd.prototype.get=function(G){G=G.trim();return this._map[G]||null};
var TrR=null,$h=function(){this._measureElement=this._currentElement=null;this._map=new ctd};
_.g=$h.prototype;_.g.detectMixin=function(G){G=yv2.test(G)||aId.test(G);yv2.lastIndex=0;aId.lastIndex=0;return G};
_.g.transformTemplate=function(G,H){if(G._gatheredStyle===void 0){var Z=[];for(var Q=G.content.querySelectorAll("style"),p=0;p<Q.length;p++){var l=Q[p];if(l.hasAttribute("shady-unscoped")){if(!k1M){var q=l.textContent;if(!nCR.has(q)){nCR.add(q);var u=document.createElement("style");u.setAttribute("shady-unscoped","");u.textContent=q;document.head.appendChild(u)}l.parentNode.removeChild(l)}}else Z.push(l.textContent),l.parentNode.removeChild(l)}(Z=Z.join("").trim())?(Q=document.createElement("style"),
Q.textContent=Z,G.content.insertBefore(Q,G.content.firstChild),Z=Q):Z=null;G._gatheredStyle=Z}return(G=G._gatheredStyle)?this.JSC$11276_transformStyle(G,H):null};
_.g.JSC$11276_transformStyle=function(G,H){H=H===void 0?"":H;var Z=aH2(G);this.transformRules(Z,H);G.textContent=OYf(Z);return Z};
_.g.transformCustomStyle=function(G){var H=this,Z=aH2(G);oH3(Z,function(Q){Q.selector===":root"&&(Q.selector="html");H.transformRule(Q)});
G.textContent=OYf(Z);return Z};
_.g.transformRules=function(G,H){var Z=this;this._currentElement=H;oH3(G,function(Q){Z.transformRule(Q)});
this._currentElement=null};
_.g.transformRule=function(G){G.cssText=fJp(this,G.parsedCssText,G);G.selector===":root"&&(G.selector=":host > *")};
var fJp=function(G,H,Z){H=H.replace(aId,function(Q,p,l,q){return G._produceCssProperties(Q,p,l,q,Z)});
return G._consumeCssProperties(H,Z)};
_.g=$h.prototype;_.g._getInitialValueForProperty=function(G){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(G)};
_.g._fallbacksFromPreviousRules=function(G){for(var H=this,Z=G;Z.parent;)Z=Z.parent;var Q={},p=!1;oH3(Z,function(l){(p=p||l===G)||l.selector===G.selector&&Object.assign(Q,H._cssTextToMap(l.parsedCssText))});
return Q};
_.g._consumeCssProperties=function(G,H){for(var Z;Z=yv2.exec(G);){var Q=Z[0],p=Z[1];Z=Z.index;var l=Z+Q.indexOf("@apply"),q=Z+Q.length;Q=G.slice(0,l);G=G.slice(q);l=H?this._fallbacksFromPreviousRules(H):{};Object.assign(l,this._cssTextToMap(Q));p=this._atApplyToCssProperties(p,l);G=Q+p+G;yv2.lastIndex=Z+p.length}return G};
_.g._atApplyToCssProperties=function(G,H){G=G.replace(VkR,"");var Z=[],Q=this._map.get(G);Q||(this._map.set(G,{}),Q=this._map.get(G));if(Q){this._currentElement&&(Q.dependants[this._currentElement]=!0);var p,l=Q.properties;for(p in l){var q=H&&H[p];Q=[p,": var(",G,"_-_",p];q&&Q.push(",",q.replace(XTw,""));Q.push(")");XTw.test(l[p])&&Q.push(" !important");Z.push(Q.join(""))}}return Z.join("; ")};
_.g._replaceInitialOrInherit=function(G,H){var Z=$$w.exec(H);Z&&(H=Z[1]?this._getInitialValueForProperty(G):"apply-shim-inherit");return H};
_.g._cssTextToMap=function(G,H){H=H===void 0?!1:H;G=G.split(";");for(var Z,Q,p={},l=0;l<G.length;l++)if(Z=G[l])Q=Z.split(":"),Q.length>1&&(Z=Q[0].trim(),Q=Q.slice(1).join(":"),H&&(Q=this._replaceInitialOrInherit(Z,Q)),p[Z]=Q);return p};
_.g._invalidateMixinEntry=function(G){if(TrR)for(var H in G.dependants)H!==this._currentElement&&TrR(H)};
_.g._produceCssProperties=function(G,H,Z,Q,p){var l=this;Z&&m8W(Z,function(c,W){W&&l._map.get(W)&&(Q="@apply "+W+";")});
if(!Q)return G;var q=this._consumeCssProperties(""+Q,p);p=G.slice(0,G.indexOf("--"));var u=q=this._cssTextToMap(q,!0),B=this._map.get(H),t=B&&B.properties;t?u=Object.assign(Object.create(t),q):this._map.set(H,u);var D=[],d,e=!1;for(d in u){var n=q[d];n===void 0&&(n="initial");!t||d in t||(e=!0);D.push(H+"_-_"+d+": "+n)}e&&this._invalidateMixinEntry(B);B&&(B.properties=u);Z&&(p=G+";"+p);return p+D.join("; ")+";"};
$h.prototype.detectMixin=$h.prototype.detectMixin;$h.prototype.transformStyle=$h.prototype.JSC$11276_transformStyle;$h.prototype.transformCustomStyle=$h.prototype.transformCustomStyle;$h.prototype.transformRules=$h.prototype.transformRules;$h.prototype.transformRule=$h.prototype.transformRule;$h.prototype.transformTemplate=$h.prototype.transformTemplate;$h.prototype._separator="_-_";Object.defineProperty($h.prototype,"invalidCallback",{get:function(){return TrR},
set:function(G){TrR=G}});var XE=new $h,vC2=function(){this.customStyleInterface=null;XE.invalidCallback=rg2},cK=function(G){!G.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(G.customStyleInterface=window.ShadyCSS.CustomStyleInterface,G.customStyleInterface.transformCallback=function(H){XE.transformCustomStyle(H)},G.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){G.customStyleInterface.enqueued&&G.flushCustomStyles()})})};
_.g=vC2.prototype;_.g.prepareTemplate=function(G,H){cK(this);U83(G)===""&&(P6v[H]=G,H=XE.transformTemplate(G,H),G._styleAst=H)};
_.g.flushCustomStyles=function(){cK(this);if(this.customStyleInterface){var G=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var H=0;H<G.length;H++){var Z=this.customStyleInterface.getStyleForCustomStyle(G[H]);Z&&XE.transformCustomStyle(Z)}this.customStyleInterface.enqueued=!1}}};
_.g.styleSubtree=function(G,H){cK(this);H&&IGj(G,H);if(G.shadowRoot)for(this.styleElement(G),G=G.shadowRoot.children||G.shadowRoot.childNodes,H=0;H<G.length;H++)this.styleSubtree(G[H]);else for(G=G.children||G.childNodes,H=0;H<G.length;H++)this.styleSubtree(G[H])};
_.g.styleElement=function(G){cK(this);var H=G.localName,Z;H?H.indexOf("-")>-1?Z=H:Z=G.getAttribute&&G.getAttribute("is")||"":Z=G.is;H=P6v[Z];if(!(H&&U83(H)!==""||!H||w4f(H))){if(w4f(H)||H._applyShimValidatingVersion!==H._applyShimNextVersion)this.prepareTemplate(H,Z),C62(H);if(G=G.shadowRoot)if(G=G.querySelector("style"))G.__cssRules=H._styleAst,G.textContent=OYf(H._styleAst)}};
_.g.styleDocument=function(G){cK(this);this.styleSubtree(document.body,G)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var TJ=new vC2,W3d=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(G,H){TJ.flushCustomStyles();TJ.prepareTemplate(G,H)},
prepareTemplateStyles:function(G,H,Z){window.ShadyCSS.prepareTemplate(G,H,Z)},
prepareTemplateDom:function(){},
styleSubtree:function(G,H){TJ.flushCustomStyles();TJ.styleSubtree(G,H)},
styleElement:function(G){TJ.flushCustomStyles();TJ.styleElement(G)},
styleDocument:function(G){TJ.flushCustomStyles();TJ.styleDocument(G)},
getComputedStyleValue:function(G,H){return qV3(G,H)},
flushCustomStyles:function(){TJ.flushCustomStyles()},
nativeCss:iY3,nativeShadow:k1M,cssBuild:Sn,disableRuntime:U6t};W3d&&(window.ShadyCSS.CustomStyleInterface=W3d)}window.ShadyCSS.ApplyShim=XE;var zop;zop=window.ShadyCSS;_.ft=bO(function(G){G=Fla(s4(G));var H=Pqa?G:d$2(G),Z=eoT(H),Q={x:"pan-x",y:"pan-y",none:"none",all:"auto"};G=function(){return H.call(this)||this};
_.T(G,H);G.prototype.created=function(){};
G.prototype.__attributeReaction=function(p,l,q){(this.__dataAttributes&&this.__dataAttributes[p]||p==="disable-upgrade")&&this.attributeChangedCallback(p,l,q,null)};
G.prototype.setAttribute=function(p,l){if(lIx&&!this._legacyForceObservedAttributes){var q=this.getAttribute(p);H.prototype.setAttribute.call(this,p,l);this.__attributeReaction(p,q,String(l))}else H.prototype.setAttribute.call(this,p,l)};
G.prototype.removeAttribute=function(p){if(lIx&&!this._legacyForceObservedAttributes){var l=this.getAttribute(p);H.prototype.removeAttribute.call(this,p);this.__attributeReaction(p,l,null)}else H.prototype.removeAttribute.call(this,p)};
G.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
G.prototype._canApplyPropertyDefault=function(p){return H.prototype._canApplyPropertyDefault.call(this,p)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(p))};
G.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(H.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
G.prototype.attached=function(){};
G.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(H.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
G.prototype.detached=function(){};
G.prototype.attributeChangedCallback=function(p,l,q,u){l!==q&&(p=="disable-upgrade"?this.__isUpgradeDisabled&&q==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.js)(this).isConnected&&this.connectedCallback()):(H.prototype.attributeChangedCallback.call(this,p,l,q,u),this.attributeChanged(p,l,q)))};
G.prototype.attributeChanged=function(){};
G.prototype._initializeProperties=function(){if(YP&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var p=Object.getPrototypeOf(this);p.hasOwnProperty("__hasRegisterFinished")||(this._registered(),p.__hasRegisterFinished=!0);H.prototype._initializeProperties.call(this);this.root=this;this.created();lIx&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
G.prototype._takeAttributes=function(){for(var p=this.attributes,l=0,q=p.length;l<q;l++){var u=p[l];this.__attributeReaction(u.name,null,u.value)}};
G.prototype._registered=function(){};
G.prototype.ready=function(){this._ensureAttributes();H.prototype.ready.call(this)};
G.prototype._ensureAttributes=function(){};
G.prototype._applyListeners=function(){};
G.prototype.serialize=function(p){return this._serializeValue(p)};
G.prototype.deserialize=function(p,l){return this._deserializeValue(p,l)};
G.prototype.reflectPropertyToAttribute=function(p,l,q){this._propertyToAttribute(p,l,q)};
G.prototype.serializeValueToAttribute=function(p,l,q){this._valueToNodeAttribute(q||this,p,l)};
G.prototype.extend=function(p,l){if(!p||!l)return p||l;for(var q=Object.getOwnPropertyNames(l),u=0,B=void 0;u<q.length&&(B=q[u]);u++){var t=Object.getOwnPropertyDescriptor(l,B);t&&Object.defineProperty(p,B,t)}return p};
G.prototype.mixin=function(p,l){for(var q in l)p[q]=l[q];return p};
G.prototype.chainObject=function(p,l){p&&l&&p!==l&&(p.__proto__=l);return p};
G.prototype.instanceTemplate=function(p){p=this.constructor._contentForTemplate(p);return document.importNode(p,!0)};
G.prototype.fire=function(p,l,q){q=q||{};l=l===null||l===void 0?{}:l;p=new Event(p,{bubbles:q.bubbles===void 0?!0:q.bubbles,cancelable:!!q.cancelable,composed:q.composed===void 0?!0:q.composed});p.detail=l;(0,_.js)(q.node||this).dispatchEvent(p);return p};
G.prototype.listen=function(p,l,q){p=p||this;var u=this.__boundListeners||(this.__boundListeners=new WeakMap),B=u.get(p);B||(B={},u.set(p,B));u=l+q;B[u]||(B[u]=this._addMethodEventListenerToNode(p,l,q,this))};
G.prototype.unlisten=function(p,l,q){p=p||this;var u=this.__boundListeners&&this.__boundListeners.get(p);q=l+q;var B=u&&u[q];B&&(this._removeEventListenerFromNode(p,l,B),u[q]=null)};
G.prototype.setScrollDirection=function(p,l){_.NK(l||this,Q[p]||"auto")};
G.prototype.$$=function(p){return this.root.querySelector(p)};
G.prototype.distributeContent=function(){var p=_.Bf(this);window.ShadyDOM&&p.shadowRoot&&ShadyDOM.flush()};
G.prototype.getEffectiveChildNodes=function(){return _.Bf(this).getEffectiveChildNodes()};
G.prototype.queryDistributedElements=function(p){return _.Bf(this).queryDistributedElements(p)};
G.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(p){return p.nodeType===Node.ELEMENT_NODE})};
G.prototype.getEffectiveTextContent=function(){for(var p=this.getEffectiveChildNodes(),l=[],q=0,u;u=p[q];q++)u.nodeType!==Node.COMMENT_NODE&&l.push(u.textContent);return l.join("")};
G.prototype.queryEffectiveChildren=function(p){return(p=this.queryDistributedElements(p))&&p[0]};
G.prototype.queryAllEffectiveChildren=function(p){return this.queryDistributedElements(p)};
G.prototype.getContentChildNodes=function(p){return(p=this.root.querySelector(p||"slot"))?_.Bf(p).getDistributedNodes():[]};
G.prototype.getContentChildren=function(p){return this.getContentChildNodes(p).filter(function(l){return l.nodeType===Node.ELEMENT_NODE})};
G.prototype.isLightDescendant=function(p){return this!==p&&(0,_.js)(this).contains(p)&&(0,_.js)(this).getRootNode()===(0,_.js)(p).getRootNode()};
G.prototype.isLocalDescendant=function(p){return this.root===(0,_.js)(p).getRootNode()};
G.prototype.scopeSubtree=function(p,l){return exe(p,l===void 0?!1:l)};
G.prototype.getComputedStyleValue=function(p){return zop.getComputedStyleValue(this,p)};
G.prototype.debounce=function(p,l,q){this._debouncers=this._debouncers||{};return this._debouncers[p]=_.u2(this._debouncers[p],q>0?_.FA.after(q):Ak,l.bind(this))};
G.prototype.isDebouncerActive=function(p){this._debouncers=this._debouncers||{};p=this._debouncers[p];return!(!p||!p.isActive())};
G.prototype.flushDebouncer=function(p){this._debouncers=this._debouncers||{};(p=this._debouncers[p])&&p.flush()};
G.prototype.cancelDebouncer=function(p){this._debouncers=this._debouncers||{};(p=this._debouncers[p])&&p.cancel()};
G.prototype.async=function(p,l){return l>0?_.FA.run(p.bind(this),l):~Ak.run(p.bind(this))};
G.prototype.cancelAsync=function(p){p<0?Ak.cancel(~p):_.FA.cancel(p)};
G.prototype.create=function(p,l){p=document.createElement(p);if(l)if(p.setProperties)p.setProperties(l);else for(var q in l)p[q]=l[q];return p};
G.prototype.elementMatches=function(p,l){return IJp(l||this,p)};
G.prototype.toggleAttribute=function(p,l){var q=this;arguments.length===3&&(q=arguments[2]);arguments.length==1&&(l=!q.hasAttribute(p));if(l)return(0,_.js)(q).setAttribute(p,""),!0;(0,_.js)(q).removeAttribute(p);return!1};
G.prototype.toggleClass=function(p,l,q){q=q||this;arguments.length==1&&(l=!q.classList.contains(p));l?q.classList.add(p):q.classList.remove(p)};
G.prototype.transform=function(p,l){l=l||this;l.style.webkitTransform=p;l.style.transform=p};
G.prototype.translate3d=function(p,l,q,u){this.transform("translate3d("+p+","+l+","+q+")",u||this)};
G.prototype.arrayDelete=function(p,l){if(Array.isArray(p)){if(l=p.indexOf(l),l>=0)return p.splice(l,1)}else if(l=zU(this,p).indexOf(l),l>=0)return this.splice(p,l,1);return null};
G.prototype._logger=function(p,l){Array.isArray(l)&&l.length===1&&Array.isArray(l[0])&&(l=l[0]);switch(p){case "log":case "warn":case "error":console[p].apply(console,_.OP(l))}};
G.prototype._log=function(){this._logger("log",_.Ry.apply(0,arguments))};
G.prototype._warn=function(){this._logger("warn",_.Ry.apply(0,arguments))};
G.prototype._error=function(){this._logger("error",_.Ry.apply(0,arguments))};
G.prototype._logf=function(p){return["[%s::%s]",this.is,p].concat(_.OP(_.Ry.apply(1,arguments)))};
_.u4.Object.defineProperties(G.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var p=(0,_.js)(this).getRootNode();return p instanceof DocumentFragment?p.host:p}}});
_.u4.Object.defineProperties(G,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return lIx&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],dcW(this.prototype)),this.__observedAttributes):Z.call(this).concat("disable-upgrade")}}});
G.prototype.is="";return G});Polymer.FlattenedNodesObserver=pTa;Polymer.DomApi=Bra;Polymer.EventApi=nt;Polymer.dom=_.Bf;Polymer.dom.matchesSelector=IJp;Polymer.dom.flush=_.Dy;Polymer.dom.addDebouncer=_.BK;Polymer.DirMixin=d$2;Polymer.RenderStatus={beforeNextRender:_.kWU,afterNextRender:_.q2,flush:function(){for(;Bmf.length||IZ.length;)uze(Bmf),uze(IZ);gg=!1}};Polymer.LegacyElementMixin=_.ft;var K3p;K3p=tO._mutablePropertyChange;var MkN={properties:{mutableData:Boolean},_shouldPropertyChange:function(G,H,Z){return K3p(this,G,H,Z,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(G,H,Z){return K3p(this,G,H,Z,!0)}};
Polymer.OptionalMutableDataBehavior=MkN;var Rxf={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},EHb={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},LyM=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},EHb),jXt=(0,_.ft)(HTMLElement),EUv=function(G,H){G||console.warn("Polymer.Class requires `info` argument");H=H?H(jXt):jXt;H=YyX(G,H,G.behaviors);H.is=H.prototype.is=
G.is;return H};Polymer.Class=EUv;Polymer.mixinBehaviors=function(G,H){return YyX({},(0,_.ft)(H),G)};
Polymer.GenerateClassFromInfo=YyX;_.Vy=function(G){var H=typeof G==="function"?G:_.Vy.Class(G);G._legacyForceObservedAttributes&&(H.prototype._legacyForceObservedAttributes=G._legacyForceObservedAttributes);customElements.define(H.is,H);return H};
_.Vy.Class=EUv;Polymer._polymerFn=_.Vy;var Pbp=window.onLegacyPolymerFunctionDefinedCallback;Pbp&&Pbp();var F5M={templatize:function(G,H){this._templatizerTemplate=G;this.ctor=GE(G,this,{mutableData:!!H,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(G){return new this.ctor(G)},
modelForElement:function(G){return lHb(this._templatizerTemplate,G)}};Polymer.Templatizer=F5M;_.vK=(0,_.ft)(HTMLElement).prototype;Polymer.Base=_.vK;var bYf=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.BE=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.T(_.BE,PolymerFakeBaseClass);var Jc=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.T(Jc,PolymerFakeBaseClass);var GLW=Symbol("Sd"),I_j=[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 rtp=rtp||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},wTa;(function(G){function H(U,R,L){var H3=x.get(U);if(!H3){if(!L)return;H3=new r;x.set(U,H3)}U=H3.get(R);if(!U){if(!L)return;U=new r;H3.set(R,U)}return U}
function Z(U,R,L){if(Q(U,R,L))return!0;R=e(R);return R!==null?Z(U,R,L):!1}
function Q(U,R,L){R=H(R,L,!1);return R===void 0?!1:!!R.has(U)}
function p(U,R,L){if(Q(U,R,L))return l(U,R,L);R=e(R);if(R!==null)return p(U,R,L)}
function l(U,R,L){R=H(R,L,!1);if(R!==void 0)return R.get(U)}
function q(U,R){var L=u(U,R);U=e(U);if(U===null)return L;var H3=q(U,R);if(H3.length<=0)return L;if(L.length<=0)return H3;R=new w;U=[];L=_.I(L);for(var qX=L.next();!qX.done;qX=L.next())qX=qX.value,R.has(qX)||(R.add(qX),U.push(qX));L=_.I(H3);for(H3=L.next();!H3.done;H3=L.next())H3=H3.value,R.has(H3)||(R.add(H3),U.push(H3));return U}
function u(U,R){U=H(U,R,!1);var L=[];U&&U.forEach(function(H3,qX){return L.push(qX)});
return L}
function B(U){return U===void 0}
function t(U){return typeof U==="object"?U!==null:typeof U==="function"}
function D(U){return typeof U==="function"}
function d(U){return typeof U==="symbol"?U:String(U)}
function e(U){var R=Object.getPrototypeOf(U);if(typeof U!=="function"||U===M||R!==M)return R;var L=Object.getPrototypeOf(U.prototype);if(L==null||L===Object.prototype)return R;L=L.constructor;return typeof L!=="function"||L===U?R:L}
function n(){function U(){this._keys=[];this._values=[];this._cache=R}
var R={};U.prototype={get size(){return this._keys.length},has:function(L){return L===this._cache?!0:this._find(L)>=0?(this._cache=L,!0):!1},
get:function(L){var H3=this._find(L);if(H3>=0)return this._cache=L,this._values[H3]},
set:function(L,H3){this.delete(L);this._keys.push(L);this._values.push(H3);this._cache=L;return this},
delete:function(L){L=this._find(L);return L>=0?(this._keys.splice(L,1),this._values.splice(L,1),this._cache=R,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=R},
forEach:function(L){for(var H3=this.size,qX=0;qX<H3;++qX){var B3=this._keys[qX],fW=this._values[qX];this._cache=B3;L.call(this,fW,B3,this)}},
_find:function(L){for(var H3=this._keys,qX=H3.length,B3=0;B3<qX;++B3)if(H3[B3]===L)return B3;return-1}};
return U}
function c(){function U(){this._map=new r}
U.prototype={get size(){return this._map.length},has:function(R){return this._map.has(R)},
add:function(R){this._map.set(R,R);return this},
delete:function(R){return this._map.delete(R)},
clear:function(){this._map.clear()},
forEach:function(R,L){this._map.forEach(R,L)}};
return U}
function W(){function U(){this._key=L()}
function R($R,ie){for(var W3=0;W3<ie;++W3)$R[W3]=Math.random()*255|0}
function L(){do{if(qX)var $R=qX.randomBytes(16);else typeof Uint8Array==="function"?($R=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues($R):R($R,16)):($R=Array(16),R($R,16));$R[6]=$R[6]&79|64;$R[8]=$R[8]&191|128;for(var ie="",W3=0;W3<16;++W3){var DT=$R[W3];if(W3===4||W3===6||W3===8)ie+="-";DT<16&&(ie+="0");ie+=DT.toString(16).toLowerCase()}$R="@@WeakMap@@"+ie}while(B3.call(fW,$R));fW[$R]=!0;return $R}
function H3($R,ie){if(!B3.call($R,e2)){if(!ie)return;Object.defineProperty($R,e2,{value:Object.create(null)})}return $R[e2]}
var qX=typeof global!=="undefined"&&typeof rtp==="object"&&typeof require==="function"&&require("crypto"),B3=Object.prototype.hasOwnProperty,fW={},e2=L();U.prototype={has:function($R){return($R=H3($R,!1))?this._key in $R:!1},
get:function($R){if($R=H3($R,!1))return $R[this._key]},
set:function($R,ie){H3($R,!0)[this._key]=ie;return this},
delete:function($R){return($R=H3($R,!1))&&this._key in $R?delete $R[this._key]:!1},
clear:function(){this._key=L()}};
return U}
var M=Object.getPrototypeOf(Function),r=typeof Map==="function"?Map:n(),w=typeof Set==="function"?Set:c(),x=new (typeof WeakMap==="function"?WeakMap:W());G.decorate=function(U,R,L,H3){if(B(H3)){if(B(L)){if(!Array.isArray(U))throw new TypeError;if(!D(R))throw new TypeError;for(L=U.length-1;L>=0;--L)if(H3=(0,U[L])(R),!B(H3)){if(!D(H3))throw new TypeError;R=H3}return R}if(!Array.isArray(U))throw new TypeError;if(!t(R))throw new TypeError;L=d(L);for(H3=U.length-1;H3>=0;--H3)(0,U[H3])(R,L)}else{if(Array.isArray(U))if(t(R)){if(B(L))throw new TypeError;
if(!t(H3))throw new TypeError;}else throw new TypeError;else throw new TypeError;L=d(L);for(var qX=U.length-1;qX>=0;--qX){var B3=(0,U[qX])(R,L,H3);if(!B(B3)){if(!t(B3))throw new TypeError;H3=B3}}return H3}};
G.metadata=function(U,R){return function(L,H3){if(B(H3)){if(!D(L))throw new TypeError;H(L,void 0,!0).set(U,R)}else{if(!t(L))throw new TypeError;H3=d(H3);H(L,H3,!0).set(U,R)}}};
G.defineMetadata=function(U,R){var L;if(t(R))B(L)||(L=d(L));else throw new TypeError;H(R,L,!0).set("parameters",U)};
G.hasMetadata=function(U,R,L){if(t(R))B(L)||(L=d(L));else throw new TypeError;return Z(U,R,L)};
G.hasOwnMetadata=function(U,R,L){if(t(R))B(L)||(L=d(L));else throw new TypeError;return Q(U,R,L)};
G.getMetadata=function(U,R,L){if(t(R))B(L)||(L=d(L));else throw new TypeError;return p(U,R,L)};
G.getOwnMetadata=function(U,R,L){if(t(R))B(L)||(L=d(L));else throw new TypeError;return l(U,R,L)};
G.getMetadataKeys=function(U,R){if(t(U))B(R)||(R=d(R));else throw new TypeError;return q(U,R)};
G.getOwnMetadataKeys=function(U,R){if(t(U))B(R)||(R=d(R));else throw new TypeError;return u(U,R)};
G.deleteMetadata=function(U,R,L){if(t(R))B(L)||(L=d(L));else throw new TypeError;var H3=H(R,L,!1);if(!B(H3)){if(!H3.delete(U))return!1;if(H3.size>0)return!0;U=x.get(R);U.delete(L);if(U.size>0)return!0;x.delete(R);return!0}};
(function(U){if(typeof U.Reflect!=="undefined"){if(U.Reflect!==G)for(var R in G)U.Reflect[R]=G[R]}else U.Reflect=G})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(wTa||(wTa={}));var fFX=self;var hox=[0,_.i6,_.y8,_.i6];var Cbw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Cbw,_.Iy);var iX2=_.e7(Cbw,[0,_.Ag,_.RE,hox,_.y8,_.LY]);var aJR=[0,_.xH,-3,_.LY,_.Ag,_.i6,_.J6G,_.xH,k87,SqN,rm,_.Oy,_.i6,function(){return OXw},
_.y8],OXw=[0,_.RE,function(){return aJR},
_.Ag,14,_.xH];_.AB(_.tc,_.wI);_.g=_.tc.prototype;_.g.start=function(){this.stop();this.usingListeners_=!1;var G=yta(this),H=oCw(this);G&&!H&&this.JSC$11319_win_.mozRequestAnimationFrame?(this.JSC$11319_id_=_.tt(this.JSC$11319_win_,"MozBeforePaint",this.callback_),this.JSC$11319_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11319_id_=G&&H?G.call(this.JSC$11319_win_,this.callback_):this.JSC$11319_win_.setTimeout(wgN(this.callback_),20)};
_.g.stop=function(){if(this.isActive()){var G=yta(this),H=oCw(this);G&&!H&&this.JSC$11319_win_.mozRequestAnimationFrame?ub(this.JSC$11319_id_):G&&H?H.call(this.JSC$11319_win_,this.JSC$11319_id_):this.JSC$11319_win_.clearTimeout(this.JSC$11319_id_)}this.JSC$11319_id_=null};
_.g.fire=function(){this.stop();this.JSC$11321_doAction_()};
_.g.isActive=function(){return this.JSC$11319_id_!=null};
_.g.JSC$11321_doAction_=function(){this.usingListeners_&&this.JSC$11319_id_&&ub(this.JSC$11319_id_);this.JSC$11319_id_=null;this.JSC$11319_listener_.call(this.handler_,_.NW())};
_.g.disposeInternal=function(){this.stop();_.tc.superClass_.disposeInternal.call(this)};
var yta=function(G){G=G.JSC$11319_win_;return G.requestAnimationFrame||G.webkitRequestAnimationFrame||G.mozRequestAnimationFrame||G.oRequestAnimationFrame||G.msRequestAnimationFrame||null},oCw=function(G){G=G.JSC$11319_win_;
return G.cancelAnimationFrame||G.cancelRequestAnimationFrame||G.webkitCancelRequestAnimationFrame||G.mozCancelRequestAnimationFrame||G.oCancelRequestAnimationFrame||G.msCancelRequestAnimationFrame||null};_.Zo=function(G,H,Z){_.wI.call(this);this.JSC$11322_listener_=Z!=null?G.bind(Z):G;this.JSC$11322_interval_=H;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11322_timer_=null};
_.T(_.Zo,_.wI);_.g=_.Zo.prototype;_.g.fire=function(G){this.args_=arguments;this.JSC$11322_timer_||this.pauseCount_?this.shouldFire_=!0:m$2(this)};
_.g.stop=function(){this.JSC$11322_timer_&&(_.Qf.clearTimeout(this.JSC$11322_timer_),this.JSC$11322_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.g.pause=function(){this.pauseCount_++};
_.g.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11322_timer_||(this.shouldFire_=!1,m$2(this))};
_.g.disposeInternal=function(){_.wI.prototype.disposeInternal.call(this);this.stop()};
var m$2=function(G){G.JSC$11322_timer_=vQ(function(){G.JSC$11322_timer_=null;G.shouldFire_&&!G.pauseCount_&&(G.shouldFire_=!1,m$2(G))},G.JSC$11322_interval_);
var H=G.args_;G.args_=null;G.JSC$11322_listener_.apply(null,H)};var U$p=function(G,H){this.childIterator_=G[_.Qf.Symbol.iterator]();this.mapFn_=H};
U$p.prototype[Symbol.iterator]=function(){return this};
U$p.prototype.next=function(){var G=this.childIterator_.next();return{value:G.done?void 0:this.mapFn_.call(void 0,G.value),done:G.done}};
var Ro2=function(G,H){return new U$p(G,H)};var Nra={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 J5o=function(G){var H=AtN(G);if(!H)throw Error("Wd`"+G);return H},AtN=function(G){var H={};
G=String(G);var Z=G.charAt(0)=="#"?G:"#"+G;if(x$d.test(Z))return H.hex=pwu(Z),H.type="hex",H;Z=dxX(G);return Z.length?(H.hex=mAv(Z[0],Z[1],Z[2]),H.type="rgb",H):Nra&&(G=Nra[G.toLowerCase()])?(H.hex=G,H.type="named",H):null},L3a=/#(.)(.)(.)/,pwu=function(G){if(!x$d.test(G))throw Error("Yd`"+G);
G.length==4&&(G=G.replace(L3a,"#$1$1$2$2$3$3"));return G.toLowerCase()},tWj=function(G){G=pwu(G);
G=parseInt(G.slice(1),16);return[G>>16,G>>8&255,G&255]},mAv=function(G,H,Z){G=Number(G);
H=Number(H);Z=Number(Z);if(G!=(G&255)||H!=(H&255)||Z!=(Z&255))throw Error("Zd`"+G+"`"+H+"`"+Z);H=G<<16|H<<8|Z;return G<16?"#"+(16777216|H).toString(16).slice(1):"#"+H.toString(16)},x$d=/^#(?:[0-9a-f]{3}){1,2}$/i,ECa=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,dxX=function(G){var H=G.match(ECa);
if(H){G=Number(H[1]);var Z=Number(H[2]);H=Number(H[3]);if(G>=0&&G<=255&&Z>=0&&Z<=255&&H>=0&&H<=255)return[G,Z,H]}return[]};var Y6w={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},H8=Y6w;H8=Y6w;var puf,F3x,bXw;puf=function(G,H){switch(H){case 1:return G%4!=0||G%100==0&&G%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
F3x=function(G,H,Z,Q,p){G=new Date(G,H,Z);p=p||0;return G.valueOf()+(((Q!==void 0?Q:3)-p+7)%7-((G.getDay()+6)%7-p+7)%7)*864E5};
_.WK=function(G,H,Z){typeof G==="number"?(this.date=bXw(G,H||0,Z||1),G3t(this,Z||1)):_.AM(G)?(this.date=bXw(G.getFullYear(),G.getMonth(),G.getDate()),G3t(this,G.getDate())):(this.date=new Date(_.NW()),G=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),G3t(this,G))};
bXw=function(G,H,Z){H=new Date(G,H,Z);G>=0&&G<100&&H.setFullYear(H.getFullYear()-1900);return H};
_.g=_.WK.prototype;_.g.firstDayOfWeek_=H8.FIRSTDAYOFWEEK;_.g.firstWeekCutOffDay_=H8.FIRSTWEEKCUTOFFDAY;_.g.clone=function(){var G=new _.WK(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.g.getFullYear=function(){return this.date.getFullYear()};
_.g.getYear=function(){return this.getFullYear()};
_.g.getMonth=function(){return this.date.getMonth()};
_.g.getDate=function(){return this.date.getDate()};
_.g.getTime=function(){return this.date.getTime()};
_.g.getDay=function(){return this.date.getDay()};
_.g.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.g.getUTCMonth=function(){return this.date.getUTCMonth()};
_.g.getUTCDate=function(){return this.date.getUTCDate()};
_.g.getUTCDay=function(){return this.date.getDay()};
_.g.getUTCHours=function(){return this.date.getUTCHours()};
_.g.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.g.set=function(G){this.date=new Date(G.getFullYear(),G.getMonth(),G.getDate())};
_.g.setFullYear=function(G){this.date.setFullYear(G)};
_.g.setYear=function(G){this.setFullYear(G)};
_.g.setMonth=function(G){this.date.setMonth(G)};
_.g.setDate=function(G){this.date.setDate(G)};
_.g.setTime=function(G){this.date.setTime(G)};
_.g.setUTCFullYear=function(G){this.date.setUTCFullYear(G)};
_.g.setUTCMonth=function(G){this.date.setUTCMonth(G)};
_.g.setUTCDate=function(G){this.date.setUTCDate(G)};
_.g.add=function(G){if(G.years||G.months){var H=this.getMonth()+G.months+G.years*12,Z=this.getYear()+Math.floor(H/12);H%=12;H<0&&(H+=12);var Q=Math.min(puf(Z,H),this.getDate());this.setDate(1);this.setFullYear(Z);this.setMonth(H);this.setDate(Q)}G.days&&(Z=this.getYear(),H=Z>=0&&Z<=99?-1900:0,G=new Date((new Date(Z,this.getMonth(),this.getDate(),12)).getTime()+G.days*864E5),this.setDate(1),this.setFullYear(G.getFullYear()+H),this.setMonth(G.getMonth()),this.setDate(G.getDate()),G3t(this,G.getDate()))};
_.g.JSC$11335_toIsoString=function(G){var H=this.getFullYear(),Z=H<0?"-":H>=1E4?"+":"";return[Z+_.sK(Math.abs(H),Z?6:4),_.sK(this.getMonth()+1,2),_.sK(this.getDate(),2)].join(G?"-":"")};
_.g.equals=function(G){return!(!G||this.getYear()!=G.getYear()||this.getMonth()!=G.getMonth()||this.getDate()!=G.getDate())};
_.g.toString=function(){return this.JSC$11335_toIsoString()};
var G3t=function(G,H){G.getDate()!=H&&G.date.setUTCHours(G.date.getUTCHours()+(G.getDate()<H?1:-1))};
_.WK.prototype.valueOf=function(){return this.date.valueOf()};var Kt=function(G,H,Z,Q,p){this.reversed=!!H;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!Z;G&&zJ(this,G,Q);this.depth=p!=void 0?p:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.AB(Kt,lO);var zJ=function(G,H,Z,Q){if(G.node=H)G.tagType=typeof Z==="number"?Z:G.node.nodeType!=1?0:G.reversed?-1:1;typeof Q==="number"&&(G.depth=Q)};
_.g=Kt.prototype;_.g.JSC$11350_copyFrom=function(G){this.node=G.node;this.tagType=G.tagType;this.depth=G.depth;this.reversed=G.reversed;this.constrained=G.constrained};
_.g.clone=function(){return new Kt(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.g.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return gK;var G=this.node;var H=this.reversed?-1:1;if(this.tagType==H){var Z=this.reversed?G.lastChild:G.firstChild;Z?zJ(this,Z):zJ(this,G,H*-1)}else(Z=this.reversed?G.previousSibling:G.nextSibling)?zJ(this,Z):zJ(this,G.parentNode,H*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(G=this.node)?I3(G):gK};
_.g.equals=function(G){return G.node==this.node&&(!this.node||G.tagType==this.tagType)};
_.g.splice=function(G){var H=this.node,Z=this.reversed?1:-1;this.tagType==Z&&(this.tagType=Z*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Kt.prototype.next.call(this);this.reversed=!this.reversed;Z=_.Uj(arguments[0])?arguments[0]:arguments;for(var Q=Z.length-1;Q>=0;Q--)_.ME(Z[Q],H);_.Ku(H)};var HI2=function(){},Md=function(G){for(var H=[],Z=G.getTextRangeCount(),Q=0;Q<Z;Q++)H.push(G.getTextRange(Q));
return H};
HI2.prototype.isReversed=function(){return!1};
HI2.prototype.getWindow=function(){return RN(_.N4(this.JSC$11352_getStartNode()))};
var s0G=function(G,H){Kt.call(this,G,H,!0)};
_.AB(s0G,Kt);var jM=function(G,H,Z,Q,p){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!p;if(G){this.startNode_=G;this.startOffset_=H;this.endNode_=Z;this.endOffset_=Q;if(G.nodeType==1&&G.tagName!="BR")if(G=G.childNodes,H=G[H])this.startNode_=H,this.startOffset_=0;else{G.length&&(this.startNode_=_.wf(G));var l=!0}Z.nodeType==1&&((this.endNode_=Z.childNodes[Q])?this.endOffset_=0:this.endNode_=Z)}Kt.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);l&&this.next()};
_.AB(jM,s0G);_.g=jM.prototype;_.g.JSC$11358_getStartNode=function(){return this.startNode_};
_.g.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)};
_.g.next=function(){return this.isLast()?gK:jM.superClass_.next.call(this)};
_.g.JSC$11350_copyFrom=function(G){this.startNode_=G.startNode_;this.endNode_=G.endNode_;this.startOffset_=G.startOffset_;this.endOffset_=G.endOffset_;this.isReversed_=G.isReversed_;jM.superClass_.JSC$11350_copyFrom.call(this,G)};
_.g.clone=function(){var G=new jM(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);G.JSC$11350_copyFrom(this);return G};var ZId=function(){};
ZId.prototype.__iterator__=function(){return new jM(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var PK=function(G){this.range_=G};
_.AB(PK,ZId);var Q02=function(G){var H=_.N4(G).createRange();if(G.nodeType==3)H.setStart(G,0),H.setEnd(G,G.length);else if(Wn(G)||G.nodeType==3){for(var Z,Q=G;(Z=Q.firstChild)&&(Wn(Z)||Z.nodeType==3);)Q=Z;H.setStart(Q,0);for(Q=G;(Z=Q.lastChild)&&(Wn(Z)||Z.nodeType==3);)Q=Z;H.setEnd(Q,Q.nodeType==1?Q.childNodes.length:Q.length)}else Z=G.parentNode,G=Array.prototype.indexOf.call(Z.childNodes,G),H.setStart(Z,G),H.setEnd(Z,G+1);return H},phw=function(G,H,Z,Q){var p=_.N4(G).createRange();
p.setStart(G,H);p.setEnd(Z,Q);return p};
_.g=PK.prototype;_.g.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.g.getContainer=function(){return this.range_.commonAncestorContainer};
_.g.compareBrowserRangeEndpoints=function(G,H,Z){return this.range_.compareBoundaryPoints(Z==1?H==1?_.Qf.Range.START_TO_START:_.Qf.Range.START_TO_END:H==1?_.Qf.Range.END_TO_START:_.Qf.Range.END_TO_END,G)};
_.g.isCollapsed=function(){return this.range_.collapsed};
_.g.select=function(G){this.selectInternal(RN(_.N4(this.range_.startContainer)).getSelection(),G)};
_.g.selectInternal=function(G){G.removeAllRanges();G.addRange(this.range_)};
_.g.insertNode=function(G,H){var Z=this.range_.cloneRange();Z.collapse(H);Z.insertNode(G);Z.detach();return G};
_.g.collapse=function(G){this.range_.collapse(G)};_.AB(ki,PK);ki.prototype.selectInternal=function(G,H){!H||this.isCollapsed()?ki.superClass_.selectInternal.call(this,G,H):(G.collapse(this.range_.endContainer,this.range_.endOffset),G.extend(this.range_.startContainer,this.range_.startOffset))};_.AB(DZ,PK);DZ.prototype.compareBrowserRangeEndpoints=function(G,H,Z){return DZ.superClass_.compareBrowserRangeEndpoints.call(this,G,H,Z)};
DZ.prototype.selectInternal=function(G,H){H?G.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):G.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var lo4=function(G){return _.b$?new DZ(G):_.FW?new ki(G):new PK(G)};var ra=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},gVa;
_.AB(ra,HI2);gVa=function(G,H){var Z=new ra;Z.browserRangeWrapper_=G;Z.isReversed_=!!H;return Z};
_.Iox=function(G){G=_.b$?new DZ(Q02(G)):_.FW?new ki(Q02(G)):new PK(Q02(G));return gVa(G)};
_.wa=function(G,H,Z,Q){var p=new ra;p.isReversed_=qO7(G,H,Z,Q);if(_.gM(G)&&!Wn(G)){var l=G.parentNode;H=Array.prototype.indexOf.call(l.childNodes,G);G=l}_.gM(Z)&&!Wn(Z)&&(l=Z.parentNode,Q=Array.prototype.indexOf.call(l.childNodes,Z),Z=l);p.isReversed_?(p.startNode_=Z,p.startOffset_=Q,p.endNode_=G,p.endOffset_=H):(p.startNode_=G,p.startOffset_=H,p.endNode_=Z,p.endOffset_=Q);return p};
_.g=ra.prototype;_.g.clone=function(){var G=new ra;G.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();G.startNode_=this.startNode_;G.startOffset_=this.startOffset_;G.endNode_=this.endNode_;G.endOffset_=this.endOffset_;G.isReversed_=this.isReversed_;return G};
_.g.JSC$11352_getType=function(){return"text"};
_.g.getBrowserRangeObject=function(){return hO(this).range_};
_.g.getTextRangeCount=function(){return 1};
_.g.getTextRange=function(){return this};
var hO=function(G){var H;if(!(H=G.browserRangeWrapper_)){H=G.JSC$11352_getStartNode();var Z=G.JSC$11352_getStartOffset(),Q=G.JSC$11352_getEndNode(),p=G.JSC$11352_getEndOffset();H=_.b$?new DZ(phw(H,Z,Q,p)):_.FW?new ki(phw(H,Z,Q,p)):new PK(phw(H,Z,Q,p));H=G.browserRangeWrapper_=H}return H};
_.g=ra.prototype;_.g.getContainer=function(){return hO(this).getContainer()};
_.g.JSC$11352_getStartNode=function(){return this.startNode_||(this.startNode_=hO(this).range_.startContainer)};
_.g.JSC$11352_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=hO(this).range_.startOffset};
_.g.JSC$11352_getEndNode=function(){return this.endNode_||(this.endNode_=hO(this).range_.endContainer)};
_.g.JSC$11352_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=hO(this).range_.endOffset};
_.g.isReversed=function(){return this.isReversed_};
_.g.JSC$11352_containsRange=function(G,H){if(G.JSC$11352_getType()=="text"){var Z=hO(this);G=hO(G);H=H&&!G.isCollapsed();G=G.range_;Z=H?Z.compareBrowserRangeEndpoints(G,0,1)>=0&&Z.compareBrowserRangeEndpoints(G,1,0)<=0:Z.compareBrowserRangeEndpoints(G,0,0)>=0&&Z.compareBrowserRangeEndpoints(G,1,1)<=0}else Z=!1;return Z};
_.g.isCollapsed=function(){return hO(this).isCollapsed()};
_.g.JSC$11352_getText=function(){return hO(this).range_.toString()};
_.g.__iterator__=function(){return new jM(this.JSC$11352_getStartNode(),this.JSC$11352_getStartOffset(),this.JSC$11352_getEndNode(),this.JSC$11352_getEndOffset())};
_.g.select=function(){hO(this).select(this.isReversed_)};
_.g.JSC$11352_removeContents=function(){var G=hO(this).range_;G.extractContents();if(G.startContainer.hasChildNodes()&&(G=G.startContainer.childNodes[G.startOffset])){var H=G.previousSibling;MtT(G)==""&&_.Ku(G);H&&MtT(H)==""&&_.Ku(H)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.g.insertNode=function(G,H){G=hO(this).insertNode(G,H);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return G};
_.g.collapse=function(G){G=this.isReversed()?!G:G;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(G);G?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var SOw=function(){};
_.AB(SOw,HI2);SOw.prototype.JSC$11352_containsRange=function(G,H){var Z=Md(this);G=Md(G);return(H?QR:_.UAb)(G,function(Q){return QR(Z,function(p){return p.JSC$11352_containsRange(Q,H)})})};
SOw.prototype.insertNode=function(G,H){H?_.KO(G,this.JSC$11352_getStartNode()):_.ME(G,this.JSC$11352_getEndNode());return G};var uDa,Bba=r3().JSC$9335_document_.documentElement;uDa=Bba.requestFullscreen?"fullscreenchange":Bba.webkitRequestFullscreen?"webkitfullscreenchange":Bba.mozRequestFullScreen?"mozfullscreenchange":Bba.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var JQT=function(){var G=r3().JSC$9335_document_;return!!(G.webkitIsFullScreen||G.mozFullScreen||G.msFullscreenElement||G.fullscreenElement)};var Ct=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.AB(Ct,SOw);_.g=Ct.prototype;_.g.clone=function(){var G=new Ct;G.browserRanges_=_.mv(this.browserRanges_);return G};
_.g.JSC$11352_getType=function(){return"mutli"};
_.g.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.g.getTextRangeCount=function(){return this.browserRanges_.length};
_.g.getTextRange=function(G){this.ranges_[G]||(this.ranges_[G]=gVa(lo4(this.browserRanges_[G])));return this.ranges_[G]};
_.g.getContainer=function(){if(!this.container_){for(var G=[],H=this.getTextRangeCount(),Z=0;Z<H;Z++)G.push(this.getTextRange(Z).getContainer());this.container_=caw.apply(null,G)}return this.container_};
var i2=function(G){G.sortedRanges_||(G.sortedRanges_=Md(G),G.sortedRanges_.sort(function(H,Z){var Q=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();var p=Z.JSC$11352_getStartNode();Z=Z.JSC$11352_getStartOffset();return Q==p&&H==Z?0:qO7(Q,H,p,Z)?1:-1}));
return G.sortedRanges_};
_.g=Ct.prototype;_.g.JSC$11352_getStartNode=function(){return i2(this)[0].JSC$11352_getStartNode()};
_.g.JSC$11352_getStartOffset=function(){return i2(this)[0].JSC$11352_getStartOffset()};
_.g.JSC$11352_getEndNode=function(){return _.wf(i2(this)).JSC$11352_getEndNode()};
_.g.JSC$11352_getEndOffset=function(){return _.wf(i2(this)).JSC$11352_getEndOffset()};
_.g.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.g.JSC$11352_getText=function(){return Md(this).map(function(G){return G.JSC$11352_getText()}).join("")};
_.g.__iterator__=function(){return new O4(this)};
_.g.select=function(){var G=this.getWindow().getSelection();G.removeAllRanges();for(var H=this.getTextRangeCount(),Z=0;Z<H;Z++)G.addRange(this.getTextRange(Z).getBrowserRangeObject())};
_.g.JSC$11352_removeContents=function(){Md(this).forEach(function(G){G.JSC$11352_removeContents()})};
_.g.collapse=function(G){if(!this.isCollapsed()){var H=G?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;H.collapse(G);this.ranges_=[H];this.sortedRanges_=[H];this.browserRanges_=[H.getBrowserRangeObject()]}};
var O4=function(G){this.iterators_=null;this.currentIdx_=0;G&&(this.iterators_=i2(G).map(function(H){return _.fgd(H)}));
Kt.call(this,G?this.JSC$11358_getStartNode():null,!1,!0)};
_.AB(O4,s0G);_.g=O4.prototype;_.g.JSC$11358_getStartNode=function(){return this.iterators_[0].JSC$11358_getStartNode()};
_.g.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.g.next=function(){for(;this.currentIdx_<this.iterators_.length;){var G=this.iterators_[this.currentIdx_],H=G.next();if(H.done)this.currentIdx_++;else return zJ(this,G.node,G.tagType,G.depth),H}return gK};
_.g.JSC$11350_copyFrom=function(G){this.iterators_=_.mv(G.iterators_);O4.superClass_.JSC$11350_copyFrom.call(this,G)};
_.g.clone=function(){var G=new O4(null);G.JSC$11350_copyFrom(this);return G};var tQ_,qO7;_.Ew=function(){var G=window.getSelection();return G&&tQ_(G)};
tQ_=function(G){var H=!1;if(G.createRange)try{var Z=G.createRange()}catch(p){return null}else if(G.rangeCount){if(G.rangeCount>1){Z=new Ct;H=G.rangeCount;for(var Q=0;Q<H;Q++)Z.browserRanges_.push(G.getRangeAt(Q));return Z}Z=G.getRangeAt(0);H=qO7(G.anchorNode,G.anchorOffset,G.focusNode,G.focusOffset)}else return null;return gVa(lo4(Z),H)};
_.aB=function(G,H){return _.wa(G,H,G,H)};
_.yQ=function(G,H,Z,Q){return _.wa(G,H,Z,Q)};
qO7=function(G,H,Z,Q){if(G==Z)return Q<H;var p;if(G.nodeType==1&&H)if(p=G.childNodes[H])G=p,H=0;else if(_.FG(G,Z))return!0;if(Z.nodeType==1&&Q)if(p=Z.childNodes[Q])Z=p,Q=0;else if(_.FG(Z,G))return!1;return(XlR(G,Z)||H-Q)>0};var oB=function(){_.$f.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Cu)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Cu)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Cu)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Cu)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Cu)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Cu)(this.dispatchProgressEvent_,this)};
_.AB(oB,_.$f);oB.prototype.abort=function(){try{this.reader_.abort()}catch(G){throw new Mut(G,"aborting read");}};
oB.prototype.getError=function(){return this.reader_.error&&new Mut(this.reader_.error,"reading file")};
oB.prototype.dispatchProgressEvent_=function(G){this.dispatchEvent(new jO_(G,this))};
oB.prototype.disposeInternal=function(){oB.superClass_.disposeInternal.call(this);delete this.reader_};
var Dia=function(G){var H=new oB,Z=k3G(H);H.reader_.readAsArrayBuffer(G);return Z},dip=function(G){var H=new oB,Z=k3G(H);
H.reader_.readAsDataURL(G);return Z},k3G=function(G){var H=new Rv;
G.listen("loadend",_.po(function(Z,Q){var p=Q.reader_.result,l=Q.getError();p==null||l?Z.errback(l):Z.callback(p);Q.dispose()},H,G));
return H};var mr=function(){_.$f.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11392_eventHandler_=new _.en(this);this.JSC$11392_isInitialized_=!1};
_.AB(mr,_.$f);var eh7=new _.kf("d"),nVG=new _.kf("beforedragstart"),VQd=new _.kf("dragstart"),$ia=new _.kf("beforedragmove"),Xh2=new _.kf("dragmove"),cQa=new _.kf("beforedragend"),Tb7=new _.kf("dragend"),fo_=new _.kf("e");mr.prototype.isDragging=function(){return!!this.JSC$11392_dragger_};
var vVw=function(G,H){H.dlgGrowthDirection_=0;H.dlgDragHoverClass_=void 0;H.dlgDragPermission=0;G.dragLists_.push(H)},WG_=function(G,H){G.getHandleForDragItem_=H};
mr.prototype.init=function(){if(!this.JSC$11392_isInitialized_){for(var G=this.dragLists_.length,H=0;H<G;H++)for(var Z=_.j4(this.dragLists_[H]),Q=Z.length,p=0;p<Q;++p){var l=Z[p],q=this.getHandleForDragItem_(l),u=_.LW(q);this.dragItemForHandle_[u]=l;this.dragItemHoverClasses_&&(this.JSC$11392_eventHandler_.listen(l,"mouseover",this.handleDragItemMouseover_),this.JSC$11392_eventHandler_.listen(l,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11392_eventHandler_.listen(q,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11392_eventHandler_.listen(q,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(l);this.JSC$11392_eventHandler_.listen(q,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11392_isInitialized_=!0}};
mr.prototype.disposeInternal=function(){this.JSC$11392_eventHandler_.dispose();for(var G=this.dragLists_.length,H=0;H<G;H++){var Z=this.dragLists_[H];Z.dlgGrowthDirection_=void 0;Z.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;zh_(this);mr.superClass_.disposeInternal.call(this)};
var KGw=function(G,H){for(var Z=G.dragLists_.length,Q=0;Q<Z;Q++){var p=G.dragLists_[Q];p.dlgBounds_=t4j(p)}Z=G.dragItems_.length;for(Q=0;Q<Z;Q++)p=G.dragItems_[Q],p!=H&&(p.dlgBounds_=t4j(p))};
_.g=mr.prototype;
_.g.handlePotentialDragStart_=function(G){var H=_.LW(G.currentTarget);H=this.dragItemForHandle_[H];if(H.parentElement.dlgDragPermission!=2){this.currDragItem_=H;a:{H=this.currDragItem_;for(var Z=H.cloneNode(!0),Q=Mj("TEXTAREA",H),p=Mj("TEXTAREA",Z),l=0;l<Q.length;l++)p[l].value=Q[l].value;switch(H.tagName){case "TR":H=_.fO("TABLE",null,_.fO("TBODY",null,Z));break a;case "TD":case "TH":H=_.fO("TABLE",null,_.fO("TBODY",null,_.fO("TR",null,Z)));break a;case "TEXTAREA":Z.value=H.value;default:H=Z;break a}H=
void 0}this.draggerEl_=H;this.draggerElClasses_&&ov(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.N4(this.currDragItem_).body.appendChild(this.draggerEl_);Z=_.Aa(this.currDragItem_);H=this.draggerEl_;Q=_.Aa(H);if(Z instanceof _.UA){var q=Z.y;Z=Z.x}CO(H,H.offsetLeft+(Z-Q.x),H.offsetTop+(Number(q)-Q.y));this.JSC$11392_dragger_=new _.hq(this.draggerEl_);_.K_w(this.JSC$11392_dragger_,this.hysteresisDistance_);
_.tt(this.JSC$11392_dragger_,"start",this.handleDragStart_,!1,this);_.tt(this.JSC$11392_dragger_,"end",this.handleDragEnd_,!1,this);_.tt(this.JSC$11392_dragger_,"earlycancel",this.JSC$11394_cleanup_,!1,this);this.dispatchEvent(new U4(eh7,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_));this.JSC$11392_dragger_.startDrag(G)}};
_.g.handleDragStart_=function(G){if(this.dispatchEvent(new U4(nVG,this,G.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.nrt(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?ov(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var H=CGx(this.draggerEl_);this.draggerEl_.halfWidth=H.width/2;this.draggerEl_.halfHeight=H.height/2;H=this.draggerEl_.getBoundingClientRect();
var Z=G.clientY,Q=Mna(this.JSC$11392_dragger_,G.clientX);if(Q>H.right){var p=this.currDragItem_.getBoundingClientRect();this.JSC$11392_dragger_.deltaX=Q-(Q-p.left)/p.width*H.width}Z=jZ4(this.JSC$11392_dragger_,Z);Z>H.bottom&&(this.JSC$11392_dragger_.deltaY+=Z-H.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";KGw(this,this.currDragItem_);this.currDragItem_.style.display="";_.tt(this.JSC$11392_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new U4(VQd,
this,G.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_))}else G.preventDefault(),this.JSC$11394_cleanup_()};
_.g.handleDragMove_=function(G){var H=_.Aa(this.draggerEl_);H=new _.UA(H.x+this.draggerEl_.halfWidth,H.y+this.draggerEl_.halfHeight);a:{var Z=null;if(this.currDragItem_.style.display!="none"){Z=this.currDragItem_.parentNode;var Q=t4j(Z);if(MQR(H,Q))break a}Q=this.dragLists_.length;for(var p=0;p<Q;p++){var l=this.dragLists_[p];if(l!=Z&&MQR(H,l.dlgBounds_)){Z=l;break a}}Z=null}if(Z){if(Z==null)throw Error("$d");Q=0;p=!1;l=void 0;switch(Z.dlgGrowthDirection_){case 0:Q=H.y;var q=j0a;var u=Plx;break;case 4:p=
!0;case 2:Q=H.x;q=rQp;u=Plx;break;case 5:p=!0;case 3:Q=H.x,q=whp,u=hhx}for(var B=null,t,D=_.j4(Z),d=D.length,e=0;e<d;e++){var n=D[e];if(n!=this.currDragItem_){var c=q(n.dlgBounds_);if(p){var W=ClT(n,H);l===void 0&&(l=W);u(Q,c)&&(t==void 0||W<l||W==l&&(u(c,t)||c==t))&&(B=n,t=c);W<l&&(l=W)}else u(Q,c)&&(t==void 0||u(c,t))&&(B=n,t=c)}}q=B!==null&&ClT(B,H)>l?null:B}else q=null;if(!this.dispatchEvent(new U4($ia,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_,H,Z,q)))return!1;if(Z&&Z.dlgDragPermission!=
1)this.currDragItem_.parentNode==Z&&_.nrt(this.currDragItem_)==q||Z.insertBefore(this.currDragItem_,q),this.currDragItem_.style.display="",Z.dlgDragHoverClass_&&_.O6(Z,Z.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",u=this.dragLists_.length,t=0;t<u;t++)Q=this.dragLists_[t],Q.dlgDragHoverClass_&&_.CX(Q,Q.dlgDragHoverClass_);Z!=this.currHoverList_&&(this.currHoverList_=Z,KGw(this,this.currDragItem_));this.dispatchEvent(new U4(Xh2,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_,
H,Z,q));return!1};
_.g.JSC$11394_cleanup_=function(){zh_(this);this.JSC$11392_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var G=this.dragLists_.length,H=0;H<G;H++)this.dragLists_[H].dlgBounds_=null;G=this.dragItems_.length;for(H=0;H<G;H++)this.dragItems_[H].dlgBounds_=null};
_.g.handleDragEnd_=function(G){if(!this.dispatchEvent(new U4(cQa,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_)))return!1;zh_(this);this.dispatchEvent(new U4(Tb7,this,G,this.currDragItem_,this.draggerEl_,this.JSC$11392_dragger_));this.JSC$11394_cleanup_();return!0};
var zh_=function(G){_.S_(G.JSC$11392_dragger_);var H=G.draggerEl_&&G.draggerEl_.parentElement;G.draggerEl_&&_.Ku(G.draggerEl_);G.currDragItem_&&G.currDragItem_.style.display=="none"&&(G.origList_.insertBefore(G.currDragItem_,G.origNextItem_),G.currDragItem_.style.display="");G.currDragItemClasses_&&G.currDragItem_?WIN(G.currDragItem_,G.currDragItemClasses_||[]):G.currDragItem_&&(G.currDragItem_.style.visibility="");for(var Z=G.dragLists_.length,Q=0;Q<Z;Q++){var p=G.dragLists_[Q];p.dlgDragHoverClass_&&
_.CX(p,p.dlgDragHoverClass_)}H&&G.dispatchEvent(new U4(fo_,G,null,G.currDragItem_,G.draggerEl_,G.JSC$11392_dragger_))};
_.g=mr.prototype;_.g.getHandleForDragItem_=function(G){return G};
_.g.handleDragItemMouseover_=function(G){ov(G.currentTarget,this.dragItemHoverClasses_||[])};
_.g.handleDragItemMouseout_=function(G){WIN(G.currentTarget,this.dragItemHoverClasses_||[])};
_.g.handleDragItemHandleMouseover_=function(G){ov(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.g.handleDragItemHandleMouseout_=function(G){WIN(G.currentTarget,this.dragItemHandleHoverClasses_||[])};
var MQR=function(G,H){return G.x>H.left&&G.x<H.left+H.width&&G.y>H.top&&G.y<H.top+H.height},ClT=function(G,H){G=G.dlgBounds_;
return Math.abs(H.y-(G.top+(G.height-1)/2))},j0a=function(G){return G.top+G.height-1},rQp=function(G){return G.left+G.width-1},whp=function(G){return G.left||0},Plx=function(G,H){return G<H},hhx=function(G,H){return G>H},U4=function(G,H,Z,Q,p,l){_.DA.call(this,G);
this.event=Z;this.currDragItem=Q;this.draggerEl=p;this.JSC$11396_dragger=l};
_.AB(U4,_.DA);_.AB(n6,_.wI);var iIw=new _.UA(0,0);n6.prototype.JSC$11400_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
n6.prototype.JSC$11400_onMouseMove=function(G){var H=this.containerIsActuallyContent_?iIw:Pl(r3(this.containerNode_)),Z=this.horizontalScrolling_?this.calculateScrollDelta(G.clientX+H.x,this.scrollBounds_.left,this.scrollBounds_.width):0,Q=this.calculateScrollDelta(G.clientY+H.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=Z;this.scrollDelta_.y=Q;!(Z=!Z&&!Q)&&(Z=this.constrainScroll_)&&(Z=G.clientX+H.x,G=G.clientY+H.y,H=this.containerBounds_,Z=!(H.left<=Z&&H.left+H.width>=
Z&&H.top<=G&&H.top+H.height>=G));Z?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
n6.prototype.calculateScrollDelta=function(G,H,Z){var Q=0;G<H?Q=-8:G>H+Z&&(Q=8);return Q};
n6.prototype.disposeInternal=function(){n6.superClass_.disposeInternal.call(this);this.JSC$11398_eventHandler_.dispose();this.scrollTimer_.dispose()};var OI4={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"}}},RB=OI4;RB=OI4;var Nd={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 aop=function(){},iX=function(G){if(typeof G=="number"){var H=new aop;
H.standardOffset_=G;var Z=G;if(Z==0)Z="Etc/GMT";else{var Q=["Etc/GMT",Z<0?"-":"+"];Z=Math.abs(Z);Q.push(Math.floor(Z/60)%100);Z%=60;Z!=0&&Q.push(":",_.sK(Z,2));Z=Q.join("")}H.timeZoneId_=Z;Z=G;Z==0?Z="UTC":(Q=["UTC",Z<0?"+":"-"],Z=Math.abs(Z),Q.push(Math.floor(Z/60)%100),Z%=60,Z!=0&&Q.push(":",Z),Z=Q.join(""));G=yQT(G);H.tzNames_=[Z,Z];H.tzNamesExt_={STD_LONG_NAME_GMT:G,STD_GENERIC_LOCATION:G};H.transitions_=[];return H}H=new aop;H.timeZoneId_=G.id;H.standardOffset_=-G.std_offset;H.tzNames_=G.names;
H.tzNamesExt_=G.names_ext;H.transitions_=G.transitions;return H},yQT=function(G){var H=["GMT"];
H.push(G<=0?"+":"-");G=Math.abs(G);H.push(_.sK(Math.floor(G/60)%100,2),":",_.sK(G%60,2));return H.join("")},oVw=function(G,H){H=Date.UTC(H.getUTCFullYear(),H.getUTCMonth(),H.getUTCDate(),H.getUTCHours(),H.getUTCMinutes())/36E5;
for(var Z=0;Z<G.transitions_.length&&H>=G.transitions_[Z];)Z+=2;return Z==0?0:G.transitions_[Z-1]},miT=function(G,H){G=G.standardOffset_-oVw(G,H);
return G===-1440?0:G};var O7=function(G,H){this.patternParts_=[];this.JSC$11411_dateTimeSymbols_=H||H8;typeof G=="number"?UiR(this,G):RhN(this,G)},Nbx=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],AO=function(G){return G.getHours?G.getHours():0},RhN=function(G,H){for(brj&&(H=H.replace(/\u200f/g,""));H;){for(var Z=H,Q=0;Q<Nbx.length;++Q){var p=H.match(Nbx[Q]);
if(p){var l=p[0];H=H.substring(l.length);Q==0&&(l=="''"?l="'":(l=l.substring(1,p[1]=="'"?l.length-1:l.length),l=l.replace(/''/g,"'")));G.patternParts_.push({text:l,type:Q});break}}if(Z===H)throw Error("ae`"+H);}};
O7.prototype.format=function(G,H){if(!G)throw Error("be");var Z=H?(G.getTimezoneOffset()-miT(H,G))*6E4:0,Q=Z?new Date(G.getTime()+Z):G,p=Q;H&&Q.getTimezoneOffset()!=G.getTimezoneOffset()&&(Q=new Date(Q.getTime()+(Q.getTimezoneOffset()-G.getTimezoneOffset())*6E4),p=new Date(G.getTime()+(Z+(Z>0?-864E5:864E5))));Z=[];for(var l=0;l<this.patternParts_.length;++l){var q=this.patternParts_[l].text;1==this.patternParts_[l].type?Z.push(AQ_(this,q,G,Q,p,H)):Z.push(q)}return Z.join("")};
var UiR=function(G,H){if(H<4)var Z=G.JSC$11411_dateTimeSymbols_.DATEFORMATS[H];else if(H<8)Z=G.JSC$11411_dateTimeSymbols_.TIMEFORMATS[H-4];else if(H<12)Z=G.JSC$11411_dateTimeSymbols_.DATETIMEFORMATS[H-8],Z=Z.replace("{1}",G.JSC$11411_dateTimeSymbols_.DATEFORMATS[H-8]),Z=Z.replace("{0}",G.JSC$11411_dateTimeSymbols_.TIMEFORMATS[H-8]);else if(H===12)Z=G.JSC$11411_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(H===13)Z=G.JSC$11411_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{UiR(G,10);return}RhN(G,Z)},xh=function(G,H){H=String(H);
G=G.JSC$11411_dateTimeSymbols_||H8;if(G.ZERODIGIT!==void 0&&!FSR){for(var Z=[],Q=0;Q<H.length;Q++){var p=H.charCodeAt(Q);Z.push(48<=p&&p<=57?String.fromCharCode(G.ZERODIGIT+p-48):H.charAt(Q))}H=Z.join("")}return H},FSR=!1,brj=!1,LGT=function(G,H,Z,Q){Z=Z.getFullYear();
Z<=0&&Q&&(Z=1-Z);return xh(G,xiN(Z,H))},xiN=function(G,H){H==2&&(G%=100);
G<0&&H++;return _.sK(G,H)},Lt=function(G){if(!(G.getHours&&G.getSeconds&&G.getMinutes))throw Error("ce");
},EVx=function(G,H){Lt(H);
H=AO(H);return G.JSC$11411_dateTimeSymbols_.AMPMS[H>=12&&H<24?1:0]},AQ_=function(G,H,Z,Q,p,l){var q=H.length;
switch(H.charAt(0)){case "G":return Z=Q.getFullYear()>0?1:0,q>=4?G.JSC$11411_dateTimeSymbols_.ERANAMES[Z]:G.JSC$11411_dateTimeSymbols_.ERAS[Z];case "y":return LGT(G,q,Q,!0);case "Y":return Z=(new Date(F3x(Q.getFullYear(),Q.getMonth(),Q.getDate(),G.JSC$11411_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11411_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),q==2&&(Z%=100),xh(G,xiN(Z,q));case "u":return LGT(G,q,Q,!1);case "M":a:switch(Z=Q.getMonth(),q){case 5:q=G.JSC$11411_dateTimeSymbols_.NARROWMONTHS[Z];
break a;case 4:q=G.JSC$11411_dateTimeSymbols_.MONTHS[Z];break a;case 3:q=G.JSC$11411_dateTimeSymbols_.SHORTMONTHS[Z];break a;default:q=xh(G,_.sK(Z+1,q))}return q;case "k":return Lt(p),xh(G,_.sK(AO(p)||24,q));case "S":return xh(G,(p.getMilliseconds()/1E3).toFixed(Math.min(3,q)).slice(2)+(q>3?_.sK(0,q-3):""));case "E":return Z=Q.getDay(),q>=4?G.JSC$11411_dateTimeSymbols_.WEEKDAYS[Z]:G.JSC$11411_dateTimeSymbols_.SHORTWEEKDAYS[Z];case "a":return EVx(G,p);case "b":return EVx(G,p);case "B":return EVx(G,
p);case "h":return Lt(p),xh(G,_.sK(AO(p)%12||12,q));case "K":return Lt(p),xh(G,_.sK(AO(p)%12,q));case "H":return Lt(p),xh(G,_.sK(AO(p),q));case "c":a:switch(Z=Q.getDay(),q){case 5:q=G.JSC$11411_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[Z];break a;case 4:q=G.JSC$11411_dateTimeSymbols_.STANDALONEWEEKDAYS[Z];break a;case 3:q=G.JSC$11411_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[Z];break a;default:q=xh(G,_.sK(Z,1))}return q;case "L":a:switch(Z=Q.getMonth(),q){case 5:q=G.JSC$11411_dateTimeSymbols_.STANDALONENARROWMONTHS[Z];
break a;case 4:q=G.JSC$11411_dateTimeSymbols_.STANDALONEMONTHS[Z];break a;case 3:q=G.JSC$11411_dateTimeSymbols_.STANDALONESHORTMONTHS[Z];break a;default:q=xh(G,_.sK(Z+1,q))}return q;case "Q":return Z=Math.floor(Q.getMonth()/3),q<4?G.JSC$11411_dateTimeSymbols_.SHORTQUARTERS[Z]:G.JSC$11411_dateTimeSymbols_.QUARTERS[Z];case "d":return xh(G,_.sK(Q.getDate(),q));case "m":return Lt(p),xh(G,_.sK(p.getMinutes?p.getMinutes():0,q));case "s":return Lt(p),xh(G,_.sK(p.getSeconds(),q));case "v":return(l||iX(Z.getTimezoneOffset())).timeZoneId_;
case "V":return G=l||iX(Z.getTimezoneOffset()),q<=2?G.timeZoneId_:oVw(G,Z)>0?G.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?G.tzNamesExt_.DST_GENERIC_LOCATION:G.tzNamesExt_.DST_GENERIC_LOCATION:G.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?G.tzNamesExt_.STD_GENERIC_LOCATION:G.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return Z=F3x(p.getFullYear(),p.getMonth(),p.getDate(),G.JSC$11411_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,G.JSC$11411_dateTimeSymbols_.FIRSTDAYOFWEEK),xh(G,_.sK(Math.floor(Math.round((Z-(new Date((new Date(Z)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,q));case "z":return G=l||iX(Z.getTimezoneOffset()),q<4?G.tzNames_[oVw(G,Z)>0?2:0]:G.tzNames_[oVw(G,Z)>0?3:1];case "Z":return H=l||iX(Z.getTimezoneOffset()),q<4?(q=-miT(H,Z),G=[q<0?"-":"+"],q=Math.abs(q),G.push(_.sK(Math.floor(q/60)%100,2),_.sK(q%60,2)),q=G.join("")):q=xh(G,yQT(miT(H,Z))),q;default:return""}};var YOa=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,FGa=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Mqj=function(G){this.patternParts_=[];this.JSC$11420_dateTimeSymbols_=H8;if(typeof G=="number"){G>11&&(G=10);if(G<4)var H=this.JSC$11420_dateTimeSymbols_.DATEFORMATS[G];else G<8?H=this.JSC$11420_dateTimeSymbols_.TIMEFORMATS[G-4]:(H=this.JSC$11420_dateTimeSymbols_.DATETIMEFORMATS[G-8],H=H.replace("{1}",this.JSC$11420_dateTimeSymbols_.DATEFORMATS[G-8]),H=H.replace("{0}",this.JSC$11420_dateTimeSymbols_.TIMEFORMATS[G-
8]));bIp(this,H)}else bIp(this,G)},bIp=function(G,H){for(var Z=!1,Q="",p=0;p<H.length;p++){var l=H.charAt(p);
if(YOa.test(l))for(Q.length>0&&(G.patternParts_.push({text:Q,count:0,abutStart:!1,numeric:!1}),Q=""),G.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});p<H.length-1&&H.charAt(p+1)==" ";)p++;else if(Z)l=="'"?p+1<H.length&&H.charAt(p+1)=="'"?(Q+="'",p++):Z=!1:Q+=l;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(l)>=0){Q.length>0&&(G.patternParts_.push({text:Q,count:0,abutStart:!1,numeric:!1}),Q="");for(var q=H.charAt(p),u=p+1;u<H.length&&H.charAt(u)==q;)u++;q=u-p;q<=0?u=!1:(u="MydhHmsSDkK".indexOf(l),
u=u>0||u==0&&q<3);G.patternParts_.push({text:l,count:q,abutStart:!1,numeric:u});p+=q-1}else l=="'"?p+1<H.length&&H.charAt(p+1)=="'"?(Q+="'",p++):Z=!0:Q+=l}Q.length>0&&G.patternParts_.push({text:Q,count:0,abutStart:!1,numeric:!1});H=!1;for(Z=0;Z<G.patternParts_.length;Z++)G.patternParts_[Z].numeric?!H&&Z+1<G.patternParts_.length&&G.patternParts_[Z+1].numeric&&(H=!0,G.patternParts_[Z].abutStart=!0):H=!1};
Mqj.prototype.parse=function(G,H,Z){var Q=!1,p=!1;Z&&(Q=Z.predictive||!1,p=Z.validate||!1);if(Q)for(Z=0;Z<this.patternParts_.length;Z++){var l=this.patternParts_[Z];if(l.count>0&&("abBhHkKm".indexOf(l.text.charAt(0))<0||l.count>2||l.abutStart))throw Error("de`"+l.text.charAt(0));}l=new Gk7;Z=[0];l.dayPeriodIndex=-1;for(var q=0;q<this.patternParts_.length&&!(Q&&Z[0]>=G.length);q++){if(this.patternParts_[q].count==0){a:{var u=G;var B=Z,t=this.patternParts_[q],D=Q;if(t.text.match(YOa)!=null){if(t=B[0],
HGw(u,B),B[0]>t){u=!0;break a}}else{if(u.indexOf(t.text,B[0])==B[0]){B[0]+=t.text.length;u=!0;break a}if(D&&t.text.indexOf(u.substring(B[0]))==0){B[0]+=u.length-B[0];u=!0;break a}}u=!1}if(u)continue;return 0}if(this.patternParts_[q].abutStart){a:{B=G;t=Z;D=q;var d=t[0],e=0;for(u=D;u<this.patternParts_.length;u++){var n=this.patternParts_[u],c=n.count;if(c===0)break;if(u==D&&(c-=e,e++,c==0)){u=0;break a}var W=u>D&&n.numeric,M=t[0];if(!sSR(this,B,t,n,c,l,!1)||W&&t[0]-M<c)u=D-1,t[0]=d}u-=D}if(u<=0)return 0;
q+=u-1}else if(!sSR(this,G,Z,this.patternParts_[q],0,l,Q))return 0}a:{G=p;if(H==null)throw Error("ee");l.era!=void 0&&l.year!=void 0&&l.era==0&&l.year>0&&(l.year=-(l.year-1));l.year!=void 0&&H.setFullYear(l.year);Q=H.getDate();H.setDate(1);l.month!=void 0&&H.setMonth(l.month);l.day!=void 0?H.setDate(l.day):(p=puf(H.getFullYear(),H.getMonth()),H.setDate(Q>p?p:Q));typeof H.setHours==="function"&&(l.hours==void 0&&(l.hours=H.getHours()),l.hours<12&&(l.ampm!=void 0&&l.ampm>0?l.hours+=12:l.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(l.dayPeriodName)||["night1","night2"].includes(l.dayPeriodName)&&l.hours>=6)&&(l.hours+=12)),H.setHours(l.hours));typeof H.setMinutes==="function"&&l.minutes!=void 0&&H.setMinutes(l.minutes);typeof H.setSeconds==="function"&&l.seconds!=void 0&&H.setSeconds(l.seconds);typeof H.setMilliseconds==="function"&&l.milliseconds!=void 0&&H.setMilliseconds(l.milliseconds);if(G&&(l.year&&l.year!=H.getFullYear()||l.month&&l.month!=
H.getMonth()||l.day&&l.day!=H.getDate()||l.hours&&l.hours>=24||l.minutes&&l.minutes>=60||l.seconds&&l.seconds>=60||l.milliseconds&&l.milliseconds>=1E3))H=!1;else{l.tzOffset!=void 0&&H.setTime(H.getTime()+(l.tzOffset-H.getTimezoneOffset())*60*1E3);l.ambiguousYear&&(G=new Date,G.setFullYear(G.getFullYear()-80),H.getTime()<G.getTime()&&H.setFullYear(G.getFullYear()+100));if(l.dayOfWeek!=void 0)if(l.day==void 0)l=(7+l.dayOfWeek-H.getDay())%7,l>3&&(l-=7),G=H.getMonth(),H.setDate(H.getDate()+l),H.getMonth()!=
G&&H.setDate(H.getDate()+(l>0?-7:7));else if(l.dayOfWeek!=H.getDay()){H=!1;break a}H=!0}}return H?Z[0]:0};
var sSR=function(G,H,Z,Q,p,l,q){HGw(H,Z);if(Q.numeric&&p>0&&Z[0]+p>H.length)return!1;switch(Q.text.charAt(0)){case "G":return E4(H,Z,[G.JSC$11420_dateTimeSymbols_.ERAS],function(u){return l.era=u}),!0;
case "M":case "L":return ZGd(G,H,Z,p,Q,l);case "E":return E4(H,Z,[G.JSC$11420_dateTimeSymbols_.WEEKDAYS,G.JSC$11420_dateTimeSymbols_.SHORTWEEKDAYS],function(u){return l.dayOfWeek=u});
case "B":case "b":return p=[],G=[[].concat(G.JSC$11420_dateTimeSymbols_.AMPMS)],p.push("isAm"),p.push("isPm"),H=E4(H,Z,G,function(u){return l.dayPeriodIndex=u},q),l.dayPeriodName=p[l.dayPeriodIndex],q?H:!0;
case "a":return H=E4(H,Z,[G.JSC$11420_dateTimeSymbols_.AMPMS],function(u){return l.ampm=u},q),q?H:!0;
case "y":return QSa(G,H,Z,Q,p,l);case "Q":return E4(H,Z,[G.JSC$11420_dateTimeSymbols_.QUARTERS,G.JSC$11420_dateTimeSymbols_.SHORTQUARTERS],function(u){l.month=u*3;l.day=1});
case "d":return Yh(G,H,Z,Q,p,function(u){l.day=u}),!0;
case "S":return pVN(G,H,Z,p,l);case "h":case "K":case "H":case "k":return H=Yh(G,H,Z,Q,p,function(u){l.hours=Q.text.charAt(0)==="h"&&u===12?0:u},q),q?H:!0;
case "m":return H=Yh(G,H,Z,Q,p,function(u){l.minutes=u},q),q?H:!0;
case "s":return Yh(G,H,Z,Q,p,function(u){l.seconds=u}),!0;
case "z":case "Z":case "v":return lqw(G,H,Z,l);default:return!1}},QSa=function(G,H,Z,Q,p,l){var q=Z[0];
p=FE(G,H,Z,p);p===null&&(p=FE(G,H,Z,0,!0));if(p===null)return!1;p>=0&&Z[0]-q==2&&Q.count==2?(G=p,H=(new Date).getFullYear()-80,Z=H%100,l.ambiguousYear=G==Z,G+=Math.floor(H/100)*100+(G<Z?100:0),l.year=G):l.year=p;return!0},ZGd=function(G,H,Z,Q,p,l){return p.numeric&&Yh(G,H,Z,p,Q,function(q){l.month=q-1})?!0:E4(H,Z,[G.JSC$11420_dateTimeSymbols_.MONTHS,
G.JSC$11420_dateTimeSymbols_.STANDALONEMONTHS,G.JSC$11420_dateTimeSymbols_.SHORTMONTHS,G.JSC$11420_dateTimeSymbols_.STANDALONESHORTMONTHS],function(q){l.month=q})},pVN=function(G,H,Z,Q,p){var l=Z[0];
G=FE(G,H,Z,Q);if(G===null)return!1;Z=Z[0]-l;p.milliseconds=Z<3?G*Math.pow(10,3-Z):Math.round(G/Math.pow(10,Z-3));return!0},lqw=function(G,H,Z,Q){H.indexOf("GMT",Z[0])==Z[0]&&(Z[0]+=3);
if(Z[0]>=H.length)return Q.tzOffset=0,!0;var p=Z[0],l=FE(G,H,Z,0,!0);if(l===null)return!1;if(Z[0]<H.length&&H.charAt(Z[0])==":"){var q=l*60;Z[0]++;l=FE(G,H,Z,0);if(l===null)return!1;q+=l}else q=l,q=q<24&&Z[0]-p<=3?q*60:q%100+q/100*60;Q.tzOffset=-q;return!0},Yh=function(G,H,Z,Q,p,l,q){q=q||!1;
var u=Z[0];G=FE(G,H,Z,p);if(G===null)return!1;if(q&&Z[0]-u<Q.count){if(Z[0]<H.length)return!1;G*=Math.pow(10,Q.count-(Z[0]-u))}l(G);return!0},E4=function(G,H,Z,Q,p){p=p||!1;
for(var l,q=0;q<Z.length;q++){l=H;for(var u=Z[q],B=p,t=0,D=null,d=G.substring(l[0]).toLowerCase(),e=0;e<u.length;e++){var n=u[e].toLowerCase();if(B&&n.indexOf(d)==0){t=d.length;D=e;break}u[e].length>t&&d.indexOf(n)==0&&(t=u[e].length,D=e)}D!==null&&(l[0]+=t);l=D;if(l!==null)return Q(l),!0}return!1},HGw=function(G,H){(G=G.substring(H[0]).match(FGa))&&(H[0]+=G[0].length)},FE=function(G,H,Z,Q,p){H=Q>0?H.substring(0,Z[0]+Q):H;
p=p||!1;if(G.JSC$11420_dateTimeSymbols_.ZERODIGIT){Q=[];for(var l=Z[0];l<H.length;l++){var q=H.charCodeAt(l)-G.JSC$11420_dateTimeSymbols_.ZERODIGIT;Q.push(0<=q&&q<=9?String.fromCharCode(q+48):H.charAt(l))}H=Q.join("")}else H=H.substring(Z[0]);G=H.match(new RegExp("^"+(p?"[+-]?":"")+"\\d+"));if(!G)return null;Z[0]+=G[0].length;return parseInt(G[0],10)},Gk7=function(){};
Gk7.prototype.ambiguousYear=!1;var gXp;
gXp={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 Iq4={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}"]};
Iq4={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 qww=function(){var G={type:"unit",style:"narrow"};this.listType_=G&&G.type?G.type:"conjunction";this.listStyle_=G&&G.style?G.style:"long";this.listSymbols_=Iq4;G=0;switch(this.listStyle_){case "short":G=1;break;case "narrow":G=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[G];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[G];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[G];this.listEndPattern_=
this.listSymbols_.AND_END[G];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[G];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[G];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[G];this.listEndPattern_=this.listSymbols_.OR_END[G];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[G],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[G],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[G],this.listEndPattern_=this.listSymbols_.UNIT_END[G]}};
qww.prototype.format=function(G){return Swa(this,G)};
var Swa=function(G,H){var Z=H.length;switch(Z){case 0:return"";case 1:return String(H[0]);case 2:return G.listTwoPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1]))}for(var Q=G.listStartPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1])),p=2;p<Z-1;++p)Q=G.listMiddlePattern_.replace("{0}",Q).replace("{1}",String(H[p]));return G.listEndPattern_.replace("{0}",Q).replace("{1}",String(H[Z-1]))};var uux={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"},Bu4=uux,JW7=uux;JW7=Bu4=uux;var kkR,b2,HZ,lBf,Gs,tPp;
_.wc=function(G,H,Z,Q){var p;if(p=H){a:if(H&&H.length===3){for(p=0;p<3;p++){var l=H[p];if(l<"A"||l>"Z"&&l<"a"||l>"z"){p=!1;break a}}p=!0}else p=!1;p=!p}if(p)throw new TypeError("fe");this.intlCurrencyCode_=H?H.toUpperCase():null;this.currencyStyle_=Z||0;this.overrideNumberFormatSymbols_=Q||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_=b2(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof G==="number")switch(G){case 1:Gs(this,b2(this).DECIMAL_PATTERN);break;case 2:Gs(this,b2(this).SCIENTIFIC_PATTERN);break;case 3:Gs(this,b2(this).PERCENT_PATTERN);break;case 4:G=b2(this).CURRENCY_PATTERN;H=["0"];if(Z=
Nd[HZ(this)]){Z=Z[0]&7;if(Z>0)for(H.push("."),Q=0;Q<Z;Q++)H.push("0");G=G.replace(/0.00/g,H.join(""))}Gs(this,G);break;case 5:tPp(this,1);break;case 6:tPp(this,2);break;default:throw Error("ie");}else Gs(this,G)};
kkR=!1;b2=function(G){return G.overrideNumberFormatSymbols_||(kkR?JW7:Bu4)};
HZ=function(G){return G.intlCurrencyCode_||b2(G).DEF_CURRENCY_CODE};
lBf=function(G,H){if(H>308)throw Error("he`"+H);G.maximumFractionDigits_=H;return G};
Gs=function(G,H){var Z=[0];G.positivePrefix_=DB7(G,H,Z);for(var Q=Z[0],p=-1,l=0,q=0,u=0,B=-1,t=H.length,D=!0;Z[0]<t&&D;Z[0]++)switch(H.charAt(Z[0])){case "#":q>0?u++:l++;B>=0&&p<0&&B++;break;case "0":if(u>0)throw Error("oe`"+H);q++;B>=0&&p<0&&B++;break;case ",":B>0&&G.groupingArray_.push(B);B=0;break;case ".":if(p>=0)throw Error("pe`"+H);p=l+q+u;break;case "E":if(G.useExponentialNotation_)throw Error("qe`"+H);G.useExponentialNotation_=!0;G.minExponentDigits_=0;Z[0]+1<t&&H.charAt(Z[0]+1)=="+"&&(Z[0]++,
G.useSignForPositiveExponent_=!0);for(;Z[0]+1<t&&H.charAt(Z[0]+1)=="0";)Z[0]++,G.minExponentDigits_++;if(l+q<1||G.minExponentDigits_<1)throw Error("re`"+H);D=!1;break;default:Z[0]--,D=!1}q==0&&l>0&&p>=0&&(q=p,q==0&&q++,u=l-q,l=q-1,q=1);if(p<0&&u>0||p>=0&&(p<l||p>l+q)||B==0)throw Error("se`"+H);u=l+q+u;G.maximumFractionDigits_=p>=0?u-p:0;p>=0&&(G.minimumFractionDigits_=l+q-p,G.minimumFractionDigits_<0&&(G.minimumFractionDigits_=0));G.minimumIntegerDigits_=(p>=0?p:u)-l;G.useExponentialNotation_&&(G.maximumIntegerDigits_=
l+G.minimumIntegerDigits_,G.maximumFractionDigits_==0&&G.minimumIntegerDigits_==0&&(G.minimumIntegerDigits_=1));G.groupingArray_.push(Math.max(0,B));G.decimalSeparatorAlwaysShown_=p==0||p==u;Q=Z[0]-Q;G.positiveSuffix_=DB7(G,H,Z);Z[0]<H.length&&H.charAt(Z[0])==";"?(Z[0]++,G.multiplier_!=1&&(G.negativePercentSignExpected_=!0),G.negativePrefix_=DB7(G,H,Z),Z[0]+=Q,G.negativeSuffix_=DB7(G,H,Z)):(G.negativePrefix_+=G.positivePrefix_,G.negativeSuffix_+=G.positiveSuffix_)};
tPp=function(G,H){G.compactStyle_=H;Gs(G,b2(G).DECIMAL_PATTERN);G.minimumFractionDigits_=0;lBf(G,2);if(G.minimumFractionDigits_>0)throw Error("ge");G.significantDigits_=2};
_.wc.prototype.parse=function(G,H){H=H||[0];if(this.compactStyle_!==0)throw Error("je");G=G.replace(/ |\u202f/g,"\u00a0");var Z=G.indexOf(this.positivePrefix_,H[0])==H[0],Q=G.indexOf(this.negativePrefix_,H[0])==H[0];Z&&Q&&(this.positivePrefix_.length>this.negativePrefix_.length?Q=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(Z=!1));Z?H[0]+=this.positivePrefix_.length:Q&&(H[0]+=this.negativePrefix_.length);if(G.indexOf(b2(this).INFINITY,H[0])==H[0]){H[0]+=b2(this).INFINITY.length;var p=
Infinity}else{p=G;var l=!1,q=!1,u=!1,B=-1,t=1,D=b2(this).DECIMAL_SEP,d=b2(this).GROUP_SEP,e=b2(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");d=d.replace(/\u202f/g,"\u00a0");for(var n="";H[0]<p.length;H[0]++){var c=p.charAt(H[0]),W=dBa(this,c);if(W>=0&&W<=9)n+=W,u=!0;else if(c==D.charAt(0)){if(l||q)break;n+=".";l=!0}else if(c==d.charAt(0)&&("\u00a0"!=d.charAt(0)||H[0]+1<p.length&&dBa(this,p.charAt(H[0]+1))>=0)){if(l||q)break}else if(c==e.charAt(0)){if(q)break;n+="E";q=!0;B=H[0]}else if(c==
"+"||c=="-"){if(u&&B!=H[0]-1)break;n+=c}else if(this.multiplier_==1&&c==b2(this).PERCENT.charAt(0)){if(t!=1)break;t=100;if(u){H[0]++;break}}else if(this.multiplier_==1&&c==b2(this).PERMILL.charAt(0)){if(t!=1)break;t=1E3;if(u){H[0]++;break}}else break}this.multiplier_!=1&&(t=this.multiplier_);p=parseFloat(n)/t}if(Z){if(G.indexOf(this.positiveSuffix_,H[0])!=H[0])return NaN;H[0]+=this.positiveSuffix_.length}else if(Q){if(G.indexOf(this.negativeSuffix_,H[0])!=H[0])return NaN;H[0]+=this.negativeSuffix_.length}return Q?
-p:p};
_.wc.prototype.format=function(G){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(G))return b2(this).NAN;var H=[];var Z=G;if(this.compactStyle_==0)Z=ss;else{Z=Math.abs(Z);var Q=e3G(this,Z<=1?0:nXt(Z)).divisorBase;Z=e3G(this,Q+nXt(VPp(this,ZR(Z,-Q)).intValue))}G=ZR(G,-Z.divisorBase);(Q=G<0||G==0&&1/G<0)?Z.negative_prefix?H.push(Z.negative_prefix):(H.push(Z.prefix),H.push(this.negativePrefix_)):(H.push(Z.prefix),H.push(this.positivePrefix_));if(isFinite(G))if(G*=
Q?-1:1,G*=this.multiplier_,this.useExponentialNotation_){var p=G;if(p==0)$B_(this,p,this.minimumIntegerDigits_,H),XVT(this,0,H);else{var l=Math.floor(Math.log(p)/Math.log(10)+2E-15);p=ZR(p,-l);var q=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(q=l%this.maximumIntegerDigits_,q<0&&(q=this.maximumIntegerDigits_+q),p=ZR(p,q),l-=q,q=1):this.minimumIntegerDigits_<1?(l++,p=ZR(p,-1)):(l-=this.minimumIntegerDigits_-1,p=ZR(p,this.minimumIntegerDigits_-
1));$B_(this,p,q,H);XVT(this,l,H)}}else $B_(this,G,this.minimumIntegerDigits_,H);else H.push(b2(this).INFINITY);Q?Z.negative_suffix?H.push(Z.negative_suffix):(isFinite(G)&&H.push(Z.suffix),H.push(this.negativeSuffix_)):(isFinite(G)&&H.push(Z.suffix),H.push(this.positiveSuffix_));return H.join("")};
var VPp=function(G,H){var Z=ZR(H,G.maximumFractionDigits_);G.significantDigits_>0&&(Z=cW4(Z,G.significantDigits_,G.maximumFractionDigits_));Z=Math.round(Z);if(isFinite(Z)){var Q=Math.floor(ZR(Z,-G.maximumFractionDigits_));Z=Math.floor(Z-ZR(Q,G.maximumFractionDigits_));if(Z<0||Z>=ZR(1,G.maximumFractionDigits_))Q=Math.round(H),Z=0}else Q=H,Z=0;return{intValue:Q,fracValue:Z}},$B_=function(G,H,Z,Q){if(G.minimumFractionDigits_>G.maximumFractionDigits_)throw Error("le");
Q||(Q=[]);H=VPp(G,H);var p=H.intValue,l=H.fracValue,q=G.minimumFractionDigits_>0||l>0||!1;H=G.minimumFractionDigits_;q&&(H=G.minimumFractionDigits_);for(var u="",B=p;B>1E20;)u="0"+u,B=Math.round(ZR(B,-1));u=B+u;var t=b2(G).DECIMAL_SEP;B=b2(G).ZERO_DIGIT.codePointAt(0);var D=u.length,d=0;if(p>0||Z>0){for(p=D;p<Z;p++)Q.push(String.fromCodePoint(B));if(G.groupingArray_.length>=2)for(Z=1;Z<G.groupingArray_.length;Z++)d+=G.groupingArray_[Z];Z=D-d;if(Z>0){p=G.groupingArray_;d=D=0;for(var e,n=b2(G).GROUP_SEP,
c=u.length,W=0;W<c;W++)if(Q.push(String.fromCodePoint(B+Number(u.charAt(W)))),c-W>1)if(e=p[d],W<Z){var M=Z-W;(e===1||e>0&&M%e===1)&&Q.push(n)}else d<p.length&&(W===Z?d+=1:e===W-Z-D+1&&(Q.push(n),D+=e,d+=1))}else{Z=u;u=G.groupingArray_;p=b2(G).GROUP_SEP;e=Z.length;n=[];for(D=u.length-1;D>=0&&e>0;D--){d=u[D];for(c=0;c<d&&e-c-1>=0;c++)n.push(String.fromCodePoint(B+Number(Z.charAt(e-c-1))));e-=d;e>0&&n.push(p)}Q.push.apply(Q,n.reverse())}}else q||Q.push(String.fromCodePoint(B));(G.decimalSeparatorAlwaysShown_||
q)&&Q.push(t);l=String(l);q=l.split("e+");q.length==2&&(l=String(cW4(parseFloat(q[0]),G.significantDigits_,1)),l=l.replace(".",""),l+=(0,_.Qs2)("0",parseInt(q[1],10)-l.length+1));G.maximumFractionDigits_+1>l.length&&(l="1"+(0,_.Qs2)("0",G.maximumFractionDigits_-l.length)+l);for(G=l.length;l.charAt(G-1)=="0"&&G>H+1;)G--;for(H=1;H<G;H++)Q.push(String.fromCodePoint(B+Number(l.charAt(H))))},XVT=function(G,H,Z){Z.push(b2(G).EXP_SYMBOL);
H<0?(H=-H,Z.push(b2(G).MINUS_SIGN)):G.useSignForPositiveExponent_&&Z.push(b2(G).PLUS_SIGN);H=""+H;for(var Q=b2(G).ZERO_DIGIT,p=H.length;p<G.minExponentDigits_;p++)Z.push(Q);G=Q.codePointAt(0)-TuT;for(Q=0;Q<H.length;Q++)Z.push(String.fromCodePoint(G+H.codePointAt(Q)))},dBa=function(G,H){H=H.codePointAt(0);
if(48<=H&&H<58)return H-48;G=b2(G).ZERO_DIGIT.codePointAt(0);return G<=H&&H<G+10?H-G:-1},TuT="0".codePointAt(0),DB7=function(G,H,Z){for(var Q="",p=!1,l=H.length;Z[0]<l;Z[0]++){var q=H.charAt(Z[0]);
if(q=="'")Z[0]+1<l&&H.charAt(Z[0]+1)=="'"?(Z[0]++,Q+="'"):p=!p;else if(p)Q+=q;else switch(q){case "#":case "0":case ",":case ".":case ";":return Q;case "\u00a4":if(Z[0]+1<l&&H.charAt(Z[0]+1)=="\u00a4")Z[0]++,Q+=HZ(G);else switch(G.currencyStyle_){case 0:q=HZ(G);Q+=q in Nd?Nd[q][1]:q;break;case 2:q=HZ(G);var u=Nd[q];Q+=u?q==u[1]?q:q+" "+u[1]:q;break;case 1:q=HZ(G),Q+=q in Nd?Nd[q][2]:q}break;case "%":if(!G.negativePercentSignExpected_&&G.multiplier_!=1)throw Error("me");if(G.negativePercentSignExpected_&&
G.multiplier_!=100)throw Error("ne");G.multiplier_=100;G.negativePercentSignExpected_=!1;Q+=b2(G).PERCENT;break;case "\u2030":if(!G.negativePercentSignExpected_&&G.multiplier_!=1)throw Error("me");if(G.negativePercentSignExpected_&&G.multiplier_!=1E3)throw Error("ne");G.multiplier_=1E3;G.negativePercentSignExpected_=!1;Q+=b2(G).PERMILL;break;default:Q+=q}}return Q},ss={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},e3G=function(G,H){G=G.compactStyle_==1?RB.COMPACT_DECIMAL_SHORT_PATTERN:RB.COMPACT_DECIMAL_LONG_PATTERN;G==null&&(G=RB.COMPACT_DECIMAL_SHORT_PATTERN);if(H<3)return ss;H=Math.min(14,H);var Z=G[ZR(1,H)];for(--H;!Z&&H>=3;)Z=G[ZR(1,H)],H--;if(!Z)return ss;Z=Z.other;var Q=G="",p=Z.indexOf(";");p>=0&&(Z=Z.substring(0,p),p=Z.substring(p+1))&&(Q=/([^0]*)(0+)(.*)/.exec(p),G=Q[1],Q=Q[3]);return Z&&Z!="0"?(Z=/([^0]*)(0+)(.*)/.exec(Z))?{divisorBase:H+
1-(Z[2].length-1),negative_prefix:G,negative_suffix:Q,prefix:Z[1],suffix:Z[3]}:ss:ss},nXt=function(G){if(!isFinite(G))return G>0?G:0;
for(var H=0;(G/=10)>=1;)H++;return H},ZR=function(G,H){if(!G||!isFinite(G)||H==0)return G;
G=String(G).split("e");return parseFloat(G[0]+"e"+(parseInt(G[1]||0,10)+H))},fqR=function(G,H){return G&&isFinite(G)?ZR(Math.round(ZR(G,H)),-H):G},cW4=function(G,H,Z){if(!G)return G;
H=H-nXt(G)-1;return H<-Z?fqR(G,-Z):fqR(G,H)};var vX4=function(G){return G%10==1&&G%100!=11?"one":G%10==2&&G%100!=12?"two":G%10==3&&G%100!=13?"few":"other"},WwT=vX4;
WwT=vX4;var z3w=function(G,H){var Z=G|0;if(void 0===H){H=Math;var Q=H.min,p=G+"",l=p.indexOf(".");H=Q.call(H,l===-1?0:p.length-l-1,3)}Q=Math.pow(10,H);G={v:H,f:(G*Q|0)%Q};return Z==1&&G.v==0?"one":"other"},rc=z3w;
rc=z3w;var PPT=function(G){this.JSC$11463_pattern_=G;this.parsedPattern_=this.literals_=this.initialLiterals_=null;G=Bu4;var H=RB;if(KwR!==G||MPR!==H)KwR=G,MPR=H,jSd=new _.wc(1);this.numberFormatter_=jSd},KwR=null,MPR=null,jSd=null,rW2=RegExp("'([{}#].*?)'","g"),wVd=RegExp("''","g");
PPT.prototype.format=function(G){if(this.JSC$11463_pattern_){this.initialLiterals_=[];var H=h34(this,this.JSC$11463_pattern_);this.parsedPattern_=CPR(this,H);this.JSC$11463_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.mv(this.initialLiterals_),H=[],iG4(this,this.parsedPattern_,G,!1,H),G=H.join("");this.literals_.length>0;)G=G.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else G="";return G};
var iG4=function(G,H,Z,Q,p){for(var l=0;l<H.length;l++)switch(H[l].type){case 4:p.push(H[l].value);break;case 3:var q=H[l].value;var u=G,B=p,t=Z[q];t===void 0?B.push("Undefined parameter - "+q):(u.literals_.push(t),B.push(u.buildPlaceholder_(u.literals_)));break;case 2:q=H[l].value;u=G;B=Z;t=Q;var D=p,d=q.argumentIndex;B[d]===void 0?D.push("Undefined parameter - "+d):(d=q[B[d]],d===void 0&&(d=q.other),iG4(u,d,B,t,D));break;case 0:q=H[l].value;OGa(G,q,Z,rc,Q,p);break;case 1:q=H[l].value,OGa(G,q,Z,
WwT,Q,p)}},OGa=function(G,H,Z,Q,p,l){var q=H.argumentIndex,u=H.argumentOffset,B=+Z[q];
isNaN(B)?l.push("Undefined or invalid parameter - "+q):(u=B-u,q=H[Z[q]],q===void 0&&(Q=Q(Math.abs(u)),q=H[Q],q===void 0&&(q=H.other)),H=[],iG4(G,q,Z,p,H),Z=H.join(""),p?l.push(Z):(G=G.numberFormatter_.format(u),l.push(Z.replace(/#/g,G))))},h34=function(G,H){var Z=G.initialLiterals_,Q=G.buildPlaceholder_.bind(G);
H=H.replace(wVd,function(){Z.push("'");return Q(Z)});
return H=H.replace(rW2,function(p,l){Z.push(l);return Q(Z)})},aqw=function(G){var H=0,Z=[],Q=[],p=/[{}]/g;
p.lastIndex=0;for(var l;l=p.exec(G);){var q=l.index;l[0]=="}"?(Z.pop(),Z.length==0&&(l={type:1},l.value=G.substring(H,q),Q.push(l),H=q+1)):(Z.length==0&&(H=G.substring(H,q),H!=""&&Q.push({type:0,value:H}),H=q+1),Z.push("{"))}G=G.substring(H);G!=""&&Q.push({type:0,value:G});return Q},yWN=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,oXa=/^\s*(\w+)\s*,\s*selectordinal\s*,/,mBx=/^\s*(\w+)\s*,\s*select\s*,/,CPR=function(G,H){var Z=[];
H=aqw(H);for(var Q=0;Q<H.length;Q++){var p={};if(0==H[Q].type)p.type=4,p.value=H[Q].value;else if(1==H[Q].type){var l=H[Q].value;switch(yWN.test(l)?0:oXa.test(l)?1:mBx.test(l)?2:/^\s*\w+\s*/.test(l)?3:5){case 2:p.type=2;p.value=UBx(G,H[Q].value);break;case 0:p.type=0;p.value=R3x(G,H[Q].value);break;case 1:p.type=1;p.value=Nut(G,H[Q].value);break;case 3:p.type=3,p.value=H[Q].value}}Z.push(p)}return Z},UBx=function(G,H){var Z="";
H=H.replace(mBx,function(u,B){Z=B;return""});
var Q={};Q.argumentIndex=Z;H=aqw(H);for(var p=0;p<H.length;){var l=H[p].value;p++;var q=void 0;1==H[p].type&&(q=CPR(G,H[p].value));Q[l.replace(/\s/g,"")]=q;p++}return Q},R3x=function(G,H){var Z="",Q=0;
H=H.replace(yWN,function(B,t,D){Z=t;D&&(Q=parseInt(D,10));return""});
var p={};p.argumentIndex=Z;p.argumentOffset=Q;H=aqw(H);for(var l=0;l<H.length;){var q=H[l].value;l++;var u=void 0;1==H[l].type&&(u=CPR(G,H[l].value));p[q.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=u;l++}return p},Nut=function(G,H){var Z="";
H=H.replace(oXa,function(u,B){Z=B;return""});
var Q={};Q.argumentIndex=Z;Q.argumentOffset=0;H=aqw(H);for(var p=0;p<H.length;){var l=H[p].value;p++;var q=void 0;1==H[p].type&&(q=CPR(G,H[p].value));Q[l.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=q;p++}return Q};
PPT.prototype.buildPlaceholder_=function(G){return"\ufddf_"+(G.length-1).toString(10)+"_"};var qpu=function(){var G={style:1},H=AWa;this.style_=(G==null?void 0:G.style)||0;this.durationSymbols_=H||gXp},xBa=function(G,H){switch(H){default:case "years":return G.durationSymbols_.YEAR;
case "months":return G.durationSymbols_.MONTH;case "weeks":return G.durationSymbols_.WEEK;case "days":return G.durationSymbols_.DAY;case "hours":return G.durationSymbols_.HOUR;case "minutes":return G.durationSymbols_.MINUTE;case "seconds":return G.durationSymbols_.SECOND}},Q3=function(G,H,Z){a:{Z=xBa(G,Z);
switch(G.style_){case 1:if(Z.LONG!=void 0){G=Z.LONG;break a}case 2:if(Z.NARROW!=void 0){G=Z.NARROW;break a}default:G=Z.SHORT;break a}G=void 0}return G?(new PPT("{DURATION_VALUE,plural,"+G+"}")).format({DURATION_VALUE:H}):""};
qpu.prototype.format=function(G){var H=[],Z=G.years,Q=G.months,p=G.weeks,l=G.days,q=G.hours,u=G.minutes;G=G.seconds;Z!=null&&H.push(Q3(this,Z,"years"));Q!=null&&H.push(Q3(this,Q,"months"));p!=null&&H.push(Q3(this,p,"weeks"));l!=null&&H.push(Q3(this,l,"days"));q!=null&&H.push(Q3(this,q,"hours"));u!=null&&H.push(Q3(this,u,"minutes"));G!=null&&H.push(Q3(this,G,"seconds"));return(new qww).format(H)};var Lwd;
Lwd={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 HBj=function(){this.rdtfSymbols_=EXa||Lwd;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
HBj.prototype.format=function(G,H){a:{H=Yw7(this,H);switch(this.style_){case 2:if(H.NARROW!=void 0){H=H.NARROW;break a}case 1:if(H.SHORT!=void 0){H=H.SHORT;break a}default:H=H.LONG;break a}H=void 0}if(!this.alwaysNumeric_&&H&&H.R&&H.R[""+G])G=H.R[""+G];else if(H){var Z=Math.abs(G);G=(new PPT("{N,plural,"+(G>0||G==0&&1/G==Infinity?H.F:H.P)+"}")).format({N:Z})}else G="";return G};
var Yw7=function(G,H){switch(H){default:case 0:return G.rdtfSymbols_.YEAR;case 1:return G.rdtfSymbols_.QUARTER;case 2:return G.rdtfSymbols_.MONTH;case 3:return G.rdtfSymbols_.WEEK;case 4:return G.rdtfSymbols_.DAY;case 5:return G.rdtfSymbols_.HOUR;case 6:return G.rdtfSymbols_.MINUTE;case 7:return G.rdtfSymbols_.SECOND}};var Fwp=function(G,H,Z,Q,p,l,q,u){this.x0=G;this.y0=H;this.x1=Z;this.y1=Q;this.x2=p;this.y2=l;this.x3=q;this.y3=u};
Fwp.prototype.clone=function(){return new Fwp(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Fwp.prototype.equals=function(G){return this.x0==G.x0&&this.y0==G.y0&&this.x1==G.x1&&this.y1==G.y1&&this.x2==G.x2&&this.y2==G.y2&&this.x3==G.x3&&this.y3==G.y3};
var bGt=function(G,H){if(H==0)return G.x0;if(H==1)return G.x3;var Z=$u(G.x0,G.x1,H),Q=$u(G.x1,G.x2,H);G=$u(G.x2,G.x3,H);Z=$u(Z,Q,H);Q=$u(Q,G,H);return $u(Z,Q,H)},GGa=function(G,H){var Z=(H-G.x0)/(G.x3-G.x0);
if(Z<=0)return 0;if(Z>=1)return 1;for(var Q=0,p=1,l=0,q=0;q<8;q++){l=bGt(G,Z);var u=(bGt(G,Z+1E-6)-l)/1E-6;if(Math.abs(l-H)<1E-6)return Z;if(Math.abs(u)<1E-6)break;else l<H?Q=Z:p=Z,Z-=(l-H)/u}for(q=0;Math.abs(l-H)>1E-6&&q<8;q++)l<H?(Q=Z,Z=(Z+p)/2):(p=Z,Z=(Z+Q)/2),l=bGt(G,Z);return Z};var pF=function(){_.$f.call(this);this.JSC$11484_name_="closure_frame"+HAw++;this.iframesForDisposal_=[];s9t[this.JSC$11484_name_]=this},lM;
_.AB(pF,_.$f);var s9t={},HAw=0,ZAa=function(G,H){var Z=r3(G);Iva(H,function(Q,p){Array.isArray(Q)||(Q=[Q]);_.Zk(Q,function(l){l=Z.JSC$9337_createDom("INPUT",{type:"hidden",name:p,value:l});G.appendChild(l)})})};
_.g=pF.prototype;_.g.JSC$11486_form_=null;_.g.JSC$11486_iframe_=null;_.g.iframeName_=null;_.g.nextIframeId_=0;_.g.JSC$11486_active_=!1;_.g.complete_=!1;_.g.success_=!1;_.g.lastContent_=null;_.g.JSC$11486_lastErrorCode_=0;_.g.iframeDisposalTimer_=null;
_.g.send=function(G,H,Z,Q){if(this.JSC$11486_active_)throw Error("te");G=new _.C9(G);H=H?H.toUpperCase():"GET";Z&&_.gs(G);lM||(lM=_.fO("FORM"),lM.acceptCharset="utf-8",Z=lM.style,Z.position="absolute",Z.visibility="hidden",Z.top=Z.left="-10px",Z.width=Z.height="10px",Z.overflow="hidden",document.body.appendChild(lM));this.JSC$11486_form_=lM;H=="GET"&&ZAa(this.JSC$11486_form_,G.JSC$10041_queryData_);Q&&ZAa(this.JSC$11486_form_,Q);Z=G.toString();Z=oMb(Z);Q=this.JSC$11486_form_;Z=_.NU(hN(Z));Z!==void 0&&
(Q.action=Z);this.JSC$11486_form_.method=H;Q9x(this);p8R(this)};
_.g.abort=function(G){if(this.JSC$11486_active_){var H=g5(this);if(H)if(ea(H))H.removeAllListeners(void 0);else if(H=nK(H)){var Z=0,Q;for(Q in H.listeners)for(var p=H.listeners[Q].concat(),l=0;l<p.length;++l)ub(p[l])&&++Z}this.success_=this.JSC$11486_active_=this.complete_=!1;this.JSC$11486_lastErrorCode_=G||7;this.dispatchEvent("abort");lx4(this)}};
_.g.disposeInternal=function(){this.JSC$11486_active_&&this.abort();pF.superClass_.disposeInternal.call(this);this.JSC$11486_iframe_&&gGG(this);p8R(this);this.JSC$11486_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11486_form_=null;this.JSC$11486_lastErrorCode_=0;delete s9t[this.JSC$11484_name_]};
_.g.isComplete=function(){return this.complete_};
_.g.isSuccess=function(){return this.success_};
_.g.isActive=function(){return this.JSC$11486_active_};
_.g.getResponseText=function(){return this.lastContent_};
_.g.getLastError=function(){return _.OlN(this.JSC$11486_lastErrorCode_)};
var Q9x=function(G){G.JSC$11486_active_=!0;G.complete_=!1;G.JSC$11486_lastErrorCode_=0;G.iframeName_=G.JSC$11484_name_+"_"+(G.nextIframeId_++).toString(36);G.JSC$11486_iframe_=r3(G.JSC$11486_form_).JSC$9337_createDom("IFRAME",{name:G.iframeName_,id:G.iframeName_});var H=G.JSC$11486_iframe_.style;H.visibility="hidden";H.width=H.height="10px";H.display="none";_.b$?H.marginTop=H.marginLeft="-10px":(H.position="absolute",H.top=H.left="-10px");r3(G.JSC$11486_form_).JSC$9335_document_.body.appendChild(G.JSC$11486_iframe_);
H=G.iframeName_+"_inner";var Z=T3a(G.JSC$11486_iframe_);if(document.baseURI){var Q=FD(H);Q='<head><base href="'+FD(document.baseURI)+'"></head><body><iframe id="'+Q+'" name="'+Q+'"></iframe>';Q=Lq(Q)}else Q=FD(H),Q=Lq('<body><iframe id="'+Q+'" name="'+Q+'"></iframe>');Z.write(Fx(Q));_.tt(Z.getElementById(H),"load",G.onIframeLoaded_,!1,G);Q=Mj("TEXTAREA",G.JSC$11486_form_);for(var p=0,l=Q.length;p<l;p++){var q=Q[p].value;MtT(Q[p])!=q&&(_.Pn(Q[p],q),Q[p].value=q)}Q=Z.importNode(G.JSC$11486_form_,!0);
Q.target=H;Q.action=G.JSC$11486_form_.action;Z.body.appendChild(Q);p=Mj("SELECT",G.JSC$11486_form_);l=Mj("SELECT",Q);q=0;for(var u=p.length;q<u;q++)for(var B=Mj("OPTION",p[q]),t=Mj("OPTION",l[q]),D=0,d=B.length;D<d;D++)t[D].selected=B[D].selected;p=Mj("INPUT",G.JSC$11486_form_);l=Mj("INPUT",Q);q=0;for(u=p.length;q<u;q++)if(p[q].type=="file"&&p[q].value!=l[q].value){G.JSC$11486_form_.target=H;Q=G.JSC$11486_form_;break}try{G.errorHandled_=!1,Q.submit(),Z.close(),_.FW&&setTimeout(G.testForFirefoxSilentError_.bind(G),
250)}catch(e){_.VX(Z.getElementById(H),"load",G.onIframeLoaded_,!1,G),Z.close(),I$(G,2)}};
pF.prototype.onIframeLoaded_=function(){_.VX(g5(this),"load",this.onIframeLoaded_,!1,this);try{var G=this.JSC$11486_iframe_?T3a(g5(this)):null;this.complete_=!0;this.JSC$11486_active_=!1;try{var H=G.body;this.lastContent_=H.textContent||H.innerText}catch(p){var Z=1}var Q;Z||typeof this.errorChecker_!="function"||(Q=this.errorChecker_(G))&&(Z=4);Z?I$(this,Z):(this.success_=!0,this.JSC$11486_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),lx4(this))}catch(p){I$(this,1)}};
var I$=function(G,H){G.errorHandled_||(G.success_=!1,G.JSC$11486_active_=!1,G.complete_=!0,G.JSC$11486_lastErrorCode_=H,G.dispatchEvent("complete"),G.dispatchEvent("error"),lx4(G),G.errorHandled_=!0)},lx4=function(G){gGG(G);
p8R(G);G.JSC$11486_form_=null;G.dispatchEvent("ready")},gGG=function(G){var H=G.JSC$11486_iframe_;
H&&(H.onreadystatechange=null,H.onload=null,H.onerror=null,G.iframesForDisposal_.push(H));G.iframeDisposalTimer_&&(clearTimeout(G.iframeDisposalTimer_),G.iframeDisposalTimer_=null);_.FW?G.iframeDisposalTimer_=setTimeout(G.disposeIframes_.bind(G),2E3):G.disposeIframes_();G.JSC$11486_iframe_=null;G.iframeName_=null};
pF.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var G=this.iframesForDisposal_.pop();_.Ku(G)}};
var p8R=function(G){G.JSC$11486_form_&&G.JSC$11486_form_==lM&&_.zL(G.JSC$11486_form_)},g5=function(G){return G.JSC$11486_iframe_?T3a(G.JSC$11486_iframe_).getElementById(G.iframeName_+"_inner"):null};
pF.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11486_active_){var G=this.JSC$11486_iframe_?T3a(g5(this)):null;G&&!wlj(G,"documentUri")?(_.VX(g5(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?I$(this,3):I$(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.qo=function(G){return G=="\r"||G=="\n"||G==" "||G=="\t"};var Ixw;_.SL=function(G){this.errorMessage_=null;this.result_=[];this.JSC$11488_buffer_="";this.stack_=[];this.JSC$11488_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!G||!G.deliverMessageAsRawString)};
Ixw={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};_.SL.prototype.isInputValid=function(){return this.streamState_!=3};
_.SL.prototype.done=function(){return this.streamState_===2};
var uM=function(G,H,Z){G.streamState_=3;G.errorMessage_="The stream is broken @"+G.JSC$11488_pos_+"/"+Z+". With input:\n"+H;throw Error(G.errorMessage_);};
_.SL.prototype.acceptsBinaryInput=function(){return!1};
_.SL.prototype.parse=function(G){function H(){for(;e<G.length;)if(_.qo(G[e]))e++,l.JSC$11488_pos_++;else break;return e<t}
function Z(){for(var c;;){c=G[e++];if(!c)break;l.JSC$11488_pos_++;switch(l.state_){case B.INIT:c==="{"?l.state_=B.OBJECT_OPEN:c==="["?l.state_=B.ARRAY_OPEN:_.qo(c)||uM(l,G,e);continue;case B.KEY_START:case B.OBJECT_OPEN:if(_.qo(c))continue;if(l.state_===B.KEY_START)q.push(B.KEY_END);else if(c==="}"){p("{}");l.state_=Q();continue}else q.push(B.OBJECT_END);c==='"'?l.state_=B.STRING:uM(l,G,e);continue;case B.KEY_END:case B.OBJECT_END:if(_.qo(c))continue;c===":"?(l.state_===B.OBJECT_END&&(q.push(B.OBJECT_END),
l.depth_++),l.state_=B.VALUE):c==="}"?(l.depth_--,p(),l.state_=Q()):c===","?(l.state_===B.OBJECT_END&&q.push(B.OBJECT_END),l.state_=B.KEY_START):uM(l,G,e);continue;case B.ARRAY_OPEN:case B.VALUE:if(_.qo(c))continue;if(l.state_===B.ARRAY_OPEN)if(l.depth_++,l.state_=B.VALUE,c==="]"){l.depth_--;if(l.depth_===0){l.state_=B.ARRAY_END;return}p("[]");l.state_=Q();continue}else q.push(B.ARRAY_END);c==='"'?l.state_=B.STRING:c==="{"?l.state_=B.OBJECT_OPEN:c==="["?l.state_=B.ARRAY_OPEN:c==="t"?l.state_=B.TRUE1:
c==="f"?l.state_=B.FALSE1:c==="n"?l.state_=B.NULL1:c!=="-"&&("0123456789".indexOf(c)!==-1?l.state_=B.NUM_DIGIT:uM(l,G,e));continue;case B.ARRAY_END:if(c===",")q.push(B.ARRAY_END),l.state_=B.VALUE,l.depth_===1&&(d=e);else if(c==="]"){l.depth_--;if(l.depth_===0)return;p();l.state_=Q()}else if(_.qo(c))continue;else uM(l,G,e);continue;case B.STRING:var W=e;a:for(;;){for(;l.unicodeCount_>0;)if(c=G[e++],l.unicodeCount_===4?l.unicodeCount_=0:l.unicodeCount_++,!c)break a;if(c==='"'&&!l.slashed_){l.state_=
Q();break}if(c==="\\"&&!l.slashed_&&(l.slashed_=!0,c=G[e++],!c))break;if(l.slashed_)if(l.slashed_=!1,c==="u"&&(l.unicodeCount_=1),c=G[e++])continue;else break;u.lastIndex=e;c=u.exec(G);if(!c){e=G.length+1;break}e=c.index+1;c=G[c.index];if(!c)break}l.JSC$11488_pos_+=e-W;continue;case B.TRUE1:if(!c)continue;c==="r"?l.state_=B.TRUE2:uM(l,G,e);continue;case B.TRUE2:if(!c)continue;c==="u"?l.state_=B.TRUE3:uM(l,G,e);continue;case B.TRUE3:if(!c)continue;c==="e"?l.state_=Q():uM(l,G,e);continue;case B.FALSE1:if(!c)continue;
c==="a"?l.state_=B.FALSE2:uM(l,G,e);continue;case B.FALSE2:if(!c)continue;c==="l"?l.state_=B.FALSE3:uM(l,G,e);continue;case B.FALSE3:if(!c)continue;c==="s"?l.state_=B.FALSE4:uM(l,G,e);continue;case B.FALSE4:if(!c)continue;c==="e"?l.state_=Q():uM(l,G,e);continue;case B.NULL1:if(!c)continue;c==="u"?l.state_=B.NULL2:uM(l,G,e);continue;case B.NULL2:if(!c)continue;c==="l"?l.state_=B.NULL3:uM(l,G,e);continue;case B.NULL3:if(!c)continue;c==="l"?l.state_=Q():uM(l,G,e);continue;case B.NUM_DECIMAL_POINT:c===
"."?l.state_=B.NUM_DIGIT:uM(l,G,e);continue;case B.NUM_DIGIT:if("0123456789.eE+-".indexOf(c)!==-1)continue;else e--,l.JSC$11488_pos_--,l.state_=Q();continue;default:uM(l,G,e)}}}
function Q(){var c=q.pop();return c!=null?c:B.VALUE}
function p(c){l.depth_>1||(c||(c=d===-1?l.JSC$11488_buffer_+G.substring(D,e):G.substring(d,e)),l.deliverMessageAsRawString_?l.result_.push(c):l.result_.push(JSON.parse(c)),d=e)}
for(var l=this,q=l.stack_,u=l.stringInputPattern_,B=Ixw,t=G.length,D=0,d=-1,e=0;e<t;)switch(l.streamState_){case 3:return uM(l,G,e),null;case 2:return H()&&uM(l,G,e),null;case 0:if(H()){var n=G[e++];l.JSC$11488_pos_++;if(n==="["){l.streamState_=1;D=e;l.state_=B.ARRAY_OPEN;continue}else uM(l,G,e)}return null;case 1:return Z(),l.depth_===0&&l.state_==B.ARRAY_END?(l.streamState_=2,l.JSC$11488_buffer_=G.substring(e)):l.JSC$11488_buffer_=d===-1?l.JSC$11488_buffer_+G.substring(D):G.substring(d),l.result_.length>
0?(n=l.result_,l.result_=[],n):null}return null};_.AB(_.Vg,Od);$i.prototype.getValue=function(){return this.JSC$11496_value_};
$i.prototype.clone=function(){return new $i(this.JSC$11496_key_,this.JSC$11496_value_)};var BZ=function(G){this.nodes_=[];if(G)a:{if(G instanceof BZ){var H=G.getKeys();G=G.getValues();if(this.getCount()<=0){for(var Z=this.nodes_,Q=0;Q<H.length;Q++)Z.push(new $i(H[Q],G[Q]));break a}}else H=_.oN.getKeys(G),G=_.oN.getValues(G);for(Z=0;Z<H.length;Z++)this.insert(H[Z],G[Z])}};
_.g=BZ.prototype;_.g.insert=function(G,H){var Z=this.nodes_;Z.push(new $i(G,H));G=Z.length-1;H=this.nodes_;for(Z=H[G];G>0;){var Q=G-1>>1;if(H[Q].JSC$11496_key_>Z.JSC$11496_key_)H[G]=H[Q],G=Q;else break}H[G]=Z};
_.g.remove=function(){var G=this.nodes_,H=G.length,Z=G[0];if(!(H<=0)){if(H==1)G.length=0;else{G[0]=G.pop();G=0;H=this.nodes_;for(var Q=H.length,p=H[G];G<Q>>1;){var l=G*2+1,q=G*2+2;l=q<Q&&H[q].JSC$11496_key_<H[l].JSC$11496_key_?q:l;if(H[l].JSC$11496_key_>p.JSC$11496_key_)break;H[G]=H[l];G=l}H[G]=p}return Z.getValue()}};
_.g.peek=function(){var G=this.nodes_;if(G.length!=0)return G[0].getValue()};
_.g.getValues=function(){for(var G=this.nodes_,H=[],Z=G.length,Q=0;Q<Z;Q++)H.push(G[Q].getValue());return H};
_.g.getKeys=function(){for(var G=this.nodes_,H=[],Z=G.length,Q=0;Q<Z;Q++)H.push(G[Q].JSC$11496_key_);return H};
_.g.containsValue=function(G){return this.nodes_.some(function(H){return H.getValue()==G})};
_.g.containsKey=function(G){return this.nodes_.some(function(H){return H.JSC$11496_key_==G})};
_.g.clone=function(){return new BZ(this)};
_.g.getCount=function(){return this.nodes_.length};
_.g.isEmpty=function(){return this.nodes_.length===0};
_.g.clear=function(){this.nodes_.length=0};_.JS=function(G,H){this.JSC$11502_map_={};this.JSC$11502_keys_=[];this.version_=this.size=0;var Z=arguments.length;if(Z>1){if(Z%2)throw Error("ma");for(var Q=0;Q<Z;Q+=2)this.set(arguments[Q],arguments[Q+1])}else G&&this.addAll(G)};
_.g=_.JS.prototype;_.g.getCount=function(){return this.size};
_.g.getValues=function(){tS(this);for(var G=[],H=0;H<this.JSC$11502_keys_.length;H++)G.push(this.JSC$11502_map_[this.JSC$11502_keys_[H]]);return G};
_.g.getKeys=function(){tS(this);return this.JSC$11502_keys_.concat()};
_.g.containsKey=function(G){return this.has(G)};
_.g.has=function(G){return kx(this.JSC$11502_map_,G)};
_.g.containsValue=function(G){for(var H=0;H<this.JSC$11502_keys_.length;H++){var Z=this.JSC$11502_keys_[H];if(kx(this.JSC$11502_map_,Z)&&this.JSC$11502_map_[Z]==G)return!0}return!1};
_.g.equals=function(G,H){if(this===G)return!0;if(this.size!=G.getCount())return!1;H=H||qza;tS(this);for(var Z,Q=0;Z=this.JSC$11502_keys_[Q];Q++)if(!H(this.get(Z),G.get(Z)))return!1;return!0};
var qza=function(G,H){return G===H};
_.JS.prototype.isEmpty=function(){return this.size==0};
_.JS.prototype.clear=function(){this.JSC$11502_map_={};this.version_=this.size=this.JSC$11502_keys_.length=0};
_.JS.prototype.remove=function(G){return this.delete(G)};
_.JS.prototype.delete=function(G){return kx(this.JSC$11502_map_,G)?(delete this.JSC$11502_map_[G],--this.size,this.version_++,this.JSC$11502_keys_.length>2*this.size&&tS(this),!0):!1};
var tS=function(G){if(G.size!=G.JSC$11502_keys_.length){for(var H=0,Z=0;H<G.JSC$11502_keys_.length;){var Q=G.JSC$11502_keys_[H];kx(G.JSC$11502_map_,Q)&&(G.JSC$11502_keys_[Z++]=Q);H++}G.JSC$11502_keys_.length=Z}if(G.size!=G.JSC$11502_keys_.length){H={};for(Q=Z=0;Z<G.JSC$11502_keys_.length;){var p=G.JSC$11502_keys_[Z];kx(H,p)||(G.JSC$11502_keys_[Q++]=p,H[p]=1);Z++}G.JSC$11502_keys_.length=Q}};
_.g=_.JS.prototype;_.g.get=function(G,H){return kx(this.JSC$11502_map_,G)?this.JSC$11502_map_[G]:H};
_.g.set=function(G,H){kx(this.JSC$11502_map_,G)||(this.size+=1,this.JSC$11502_keys_.push(G),this.version_++);this.JSC$11502_map_[G]=H};
_.g.addAll=function(G){if(G instanceof _.JS)for(var H=G.getKeys(),Z=0;Z<H.length;Z++)this.set(H[Z],G.get(H[Z]));else for(H in G)this.set(H,G[H])};
_.g.forEach=function(G,H){for(var Z=this.getKeys(),Q=0;Q<Z.length;Q++){var p=Z[Q],l=this.get(p);G.call(H,l,p,this)}};
_.g.clone=function(){return new _.JS(this)};
_.g.transpose=function(){for(var G=new _.JS,H=0;H<this.JSC$11502_keys_.length;H++){var Z=this.JSC$11502_keys_[H];G.set(this.JSC$11502_map_[Z],Z)}return G};
_.g.keys=function(){return vKx(this.__iterator__(!0)).toEs6()};
_.g.values=function(){return vKx(this.__iterator__(!1)).toEs6()};
_.g.entries=function(){var G=this;return Ro2(this.keys(),function(H){return[H,G.get(H)]})};
_.g.__iterator__=function(G){tS(this);var H=0,Z=this.version_,Q=this,p=new lO;p.next=function(){if(Z!=Q.version_)throw Error("ue");if(H>=Q.JSC$11502_keys_.length)return gK;var l=Q.JSC$11502_keys_[H++];return I3(G?l:Q.JSC$11502_map_[l])};
return p};
var kx=function(G,H){return Object.prototype.hasOwnProperty.call(G,H)};var uy7=function(){this.JSC$11505_map_=new _.JS;this.JSC$11505_head_=new SzN("");this.JSC$11505_head_.next=this.JSC$11505_head_.prev=this.JSC$11505_head_},Bpw=function(G,H){if(H=G.JSC$11505_map_.get(H))H.remove(),G.insert_(H);
return H};
_.g=uy7.prototype;_.g.get=function(G,H){return(G=Bpw(this,G))?G.value:H};
_.g.set=function(G,H){var Z=Bpw(this,G);Z?Z.value=H:(Z=new SzN(G,H),this.JSC$11505_map_.set(G,Z),this.insert_(Z))};
_.g.peek=function(){return this.JSC$11505_head_.next.value};
_.g.shift=function(){return Jlt(this,this.JSC$11505_head_.next)};
_.g.pop=function(){return Jlt(this,this.JSC$11505_head_.prev)};
_.g.remove=function(G){return(G=this.JSC$11505_map_.get(G))?(this.removeNode(G),!0):!1};
_.g.removeNode=function(G){G.remove();this.JSC$11505_map_.remove(G.key)};
_.g.getCount=function(){return this.JSC$11505_map_.getCount()};
_.g.isEmpty=function(){return this.JSC$11505_map_.isEmpty()};
_.g.getKeys=function(){return this.map(function(G,H){return H})};
_.g.getValues=function(){return this.map(function(G){return G})};
_.g.contains=function(G){return this.some(function(H){return H==G})};
_.g.containsKey=function(G){return this.JSC$11505_map_.containsKey(G)};
_.g.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11505_head_.prev)};
_.g.forEach=function(G,H){for(var Z=this.JSC$11505_head_.next;Z!=this.JSC$11505_head_;Z=Z.next)G.call(H,Z.value,Z.key,this)};
_.g.map=function(G,H){for(var Z=[],Q=this.JSC$11505_head_.next;Q!=this.JSC$11505_head_;Q=Q.next)Z.push(G.call(H,Q.value,Q.key,this));return Z};
_.g.some=function(G,H){for(var Z=this.JSC$11505_head_.next;Z!=this.JSC$11505_head_;Z=Z.next)if(G.call(H,Z.value,Z.key,this))return!0;return!1};
_.g.every=function(G,H){for(var Z=this.JSC$11505_head_.next;Z!=this.JSC$11505_head_;Z=Z.next)if(!G.call(H,Z.value,Z.key,this))return!1;return!0};
_.g.insert_=function(G){G.next=this.JSC$11505_head_.next;G.prev=this.JSC$11505_head_;this.JSC$11505_head_.next=G;for(G.next.prev=G;this.getCount()>100;)this.removeNode(this.JSC$11505_head_.prev)};
var Jlt=function(G,H){G.JSC$11505_head_!=H&&G.removeNode(H);return H.value},SzN=function(G,H){this.key=G;
this.value=H};
SzN.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var tOd=function(){BZ.apply(this,arguments)};
_.T(tOd,BZ);tOd.prototype.enqueue=function(G,H){this.insert(G,H)};var kGa=function(){var G=Error();G.name="SecurityError";throw G;},zqj=function(){return{get opener(){return null},
get closed(){return!0},get location(){kGa()},get document(){kGa()},postMessage:function(){},
close:function(){},
focus:function(){}}};var kLu={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 ePX={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 DcT={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(ePX).join("|");var dcw=function(){function G(u){u.substr(-1)!==";"&&(u+=";");return q(u)}
for(var H=Object.keys(DcT).sort(dER),Z=Object.keys(ePX).sort(dER),Q=0,p=0;Q<Z.length;Q++)H[p]===Z[Q]?(Z[Q]+=";?",p++):Z[Q]+=";";var l=new RegExp("&(?:"+Z.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),q=nuU();return function(u){return String(u).replace(l,G)}}();/*

 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 ef_={};var nG2=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"),VOG=/[\\&]/,$ca=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),X8w=RegExp('[&<>"]',"g"),cl4=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),Tpx=function(G){return G.charCodeAt(0)===92?G.charAt(1):dcw(G)},fxa=function(G){return VOG.test(G)?G.replace($ca,Tpx):G},vGp=function(G){try{var H,Z="";
if(typeof p!=="string"){var Q=p;var p=";/?:@&=+$,-_.!~*'()#"}typeof Q==="undefined"&&(Q=!0);var l,q=ef_[p];if(q)var u=q;else{q=ef_[p]=[];for(l=0;l<128;l++){var B=String.fromCharCode(l);/^[0-9a-z]$/i.test(B)?q.push(B):q.push("%"+("0"+l.toString(16).toUpperCase()).slice(-2))}for(l=0;l<p.length;l++)q[p.charCodeAt(l)]=p[l];u=q}var t=0;for(H=G.length;t<H;t++){var D=G.charCodeAt(t);if(Q&&D===37&&t+2<H&&/^[0-9a-f]{2}$/i.test(G.slice(t+1,t+3)))Z+=G.slice(t,t+3),t+=2;else if(D<128)Z+=u[D];else if(D>=55296&&
D<=57343){if(D>=55296&&D<=56319&&t+1<H){var d=G.charCodeAt(t+1);if(d>=56320&&d<=57343){Z+=encodeURIComponent(G[t]+G[t+1]);t++;continue}}Z+="%EF%BF%BD"}else Z+=encodeURIComponent(G[t])}return Z}catch(e){return G}},WUd=function(G){switch(G){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return G}},DR=function(G,H){return X8w.test(G)?H?G.replace(cl4,WUd):G.replace(X8w,WUd):G};/*

 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 d5;if(String.fromCodePoint)d5=function(G){try{return String.fromCodePoint(G)}catch(H){if(H instanceof RangeError)return String.fromCharCode(65533);throw H;}};
else{var zf_=String.fromCharCode,KUt=Math.floor;d5=function(){var G=[],H=-1,Z=arguments.length;if(!Z)return"";for(var Q="";++H<Z;){var p=Number(arguments[H]);if(!isFinite(p)||p<0||p>1114111||KUt(p)!==p)return String.fromCharCode(65533);if(p<=65535)G.push(p);else{p-=65536;var l=(p>>10)+55296;p=p%1024+56320;G.push(l,p)}if(H+1===Z||G.length>16384)Q+=zf_.apply(null,G),G.length=0}return Q}};var MO7=function(G){this.root=this.current=G;this.entering=!0};
MO7.prototype.next=function(){var G=this.current,H=this.entering;if(G===null)return null;a:switch(G._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 Z=!0;break a;default:Z=!1}H&&Z?G._firstChild?(this.current=G._firstChild,this.entering=!0):this.entering=!1:G===this.root?this.current=null:G._next===null?(this.current=
G._parent,this.entering=!1):(this.current=G._next,this.entering=!0);return{entering:H,node:G}};
var f6=function(G,H){this._type=G;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=H;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};
f6.prototype.appendChild=function(G){G.unlink();G._parent=this;this._lastChild?(this._lastChild._next=G,G._prev=this._lastChild):this._firstChild=G;this._lastChild=G};
f6.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 j9t=function(G,H){H.unlink();H._next=G._next;H._next&&(H._next._prev=H);H._prev=G;G._next=H;H._parent=G._parent;H._next||(H._parent._lastChild=H)};
f6.prototype.insertBefore=function(G){G.unlink();G._prev=this._prev;G._prev&&(G._prev._next=G);G._next=this;this._prev=G;G._parent=this._parent;G._prev||(G._parent._firstChild=G)};
_.u4.Object.defineProperties(f6.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(G){this._literal=G}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(G){this._destination=G}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(G){this._title=G}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(G){this._info=G}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(G){this._level=G}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(G){this._listData.type=G}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(G){this._listData.tight=G}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(G){this._listData.start=G}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(G){this._onEnter=G}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(G){this._onExit=G}}});var V4X=/[ \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,
$EW={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 PLG=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]/),
rlw=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),w8t=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),hft=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),CL7=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),iAR=/`+/,OA4=/^`+/,ax4=/\.\.\./g,yl_=/--+/g,oGR=/^<([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])?)*)>/,
mcG=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Uc_=/^ *(?:\n *)?/,Rft=/^[ \t\n\x0b\x0c\x0d]/,Np4=/[ \t\n\x0b\x0c\x0d]+/g,Ald=/^\s/,xcx=/ *$/,LUG=/^ */,EGt=/^ *(?:\n|$)/,Yz7=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),FU4=/^[^\n`\[\]\\!<&*_'"]+/m,eL=function(G){var H=new f6("text");H._literal=G;return H},nF=function(G){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=G||{}};
nF.prototype.match=function(G){G=G.exec(this.subject.slice(this.pos));if(G===null)return null;this.pos+=G.index+G[0].length;return G[0]};
nF.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var V3=function(G){G.match(Uc_);return!0},bAt=function(G,H,Z){var Q=0;
var p=G.pos;if(H===39||H===34)Q++,G.pos++;else for(;G.peek()===H;)Q++,G.pos++;if(Q===0)Q=null;else{var l=p===0?"\n":G.subject.charAt(p-1);var q=G.peek();q=q===-1?"\n":d5(q);var u=Ald.test(q);q=PLG.test(q);var B=Ald.test(l);var t=PLG.test(l);l=!u&&!(q&&!B&&!t);u=!B&&!(t&&!u&&!q);H===95?(B=l&&(!u||t),q=u&&(!l||q)):(B=H===39||H===34?l&&!u:l,q=u);G.pos=p;Q={numdelims:Q,can_open:B,can_close:q}}if(!Q)return!1;p=Q.numdelims;q=G.pos;G.pos+=p;q=H===39?"\u2019":H===34?"\u201c":G.subject.slice(q,G.pos);q=eL(q);
Z.appendChild(q);G.delimiters={cc:H,numdelims:p,origdelims:p,node:q,previous:G.delimiters,next:null,can_open:Q.can_open,can_close:Q.can_close};G.delimiters.previous!==null&&(G.delimiters.previous.next=G.delimiters);return!0},G12=function(G,H){H.previous!==null&&(H.previous.next=H.next);
H.next===null?G.delimiters=H.previous:H.next.previous=H.previous},HMw=function(G,H){var Z,Q,p=[],l=!1;
p[95]=H;p[42]=H;p[39]=H;p[34]=H;for(Z=G.delimiters;Z!==null&&Z.previous!==H;)Z=Z.previous;for(;Z!==null;){var q=Z.cc;if(Z.can_close){var u=Z.previous;for(Q=!1;u!==null&&u!==H&&u!==p[q];){l=(Z.can_open||u.can_close)&&(u.origdelims+Z.origdelims)%3===0;if(u.cc===Z.cc&&u.can_open&&!l){Q=!0;break}u=u.previous}var B=Z;if(q===42||q===95)if(Q){var t=Z.numdelims>=2&&u.numdelims>=2?2:1;var D=u.node;var d=Z.node;u.numdelims-=t;Z.numdelims-=t;D._literal=D._literal.slice(0,D._literal.length-t);d._literal=d._literal.slice(0,
d._literal.length-t);var e=new f6(t===1?"emph":"strong");for(t=D._next;t&&t!==d;){var n=t._next;t.unlink();e.appendChild(t);t=n}j9t(D,e);t=u;n=Z;t.next!==n&&(t.next=n,n.previous=t);u.numdelims===0&&(D.unlink(),G12(G,u));Z.numdelims===0&&(d.unlink(),u=Z.next,G12(G,Z),Z=u)}else Z=Z.next;else q===39?(Z.node._literal="\u2019",Q&&(u.node._literal="\u2018"),Z=Z.next):q===34&&(Z.node._literal="\u201d",Q&&(u.node.literal="\u201c"),Z=Z.next);Q||l||(p[q]=B.previous,B.can_open||G12(G,B))}else Z=Z.next}for(;G.delimiters!==
null&&G.delimiters!==H;)G12(G,G.delimiters)},s6w=function(G){G=G.match(rlw);
return G===null?null:fxa(G.substr(1,G.length-2))},ZM4=function(G){var H=G.match(w8t);
if(H===null){H=G.pos;for(var Z=0,Q;(Q=G.peek())!==-1;)if(Q===92)G.pos+=1,G.peek()!==-1&&(G.pos+=1);else if(Q===40)G.pos+=1,Z+=1;else if(Q===41)if(Z<1)break;else G.pos+=1,--Z;else if(Rft.exec(d5(Q))!==null)break;else G.pos+=1;H=G.subject.substr(H,G.pos-H);return vGp(fxa(H))}return vGp(fxa(H.substr(1,H.length-2)))},Q62=function(G){G=G.match(Yz7);
return G===null||G.length>1001?0:G.length},pMa=function(G,H,Z,Q){G.brackets!==null&&(G.brackets.bracketAfter=!0);
G.brackets={node:H,previous:G.brackets,previousDelimiter:G.delimiters,index:Z,image:Q,active:!0}},lGR=function(G,H){var Z;
return(Z=G.match(FU4))?(G.options.smart?H.appendChild(eL(Z.replace(ax4,"\u2026").replace(yl_,function(Q){var p=0,l=0;Q.length%3===0?l=Q.length/3:Q.length%2===0?p=Q.length/2:Q.length%3===2?(p=1,l=(Q.length-2)/3):(p=2,l=(Q.length-4)/3);Q="";var q;for(q=0;q<l;q++)Q+="\u2014";for(q=0;q<p;q++)Q+="\u2013";return Q}))):H.appendChild(eL(Z)),!0):!1},gjT=function(G,H,Z){G.subject=H;
G.pos=0;H=G.pos;var Q=Q62(G);if(Q===0)return 0;var p=G.subject.substr(0,Q);if(G.peek()===58)G.pos++;else return G.pos=H,0;V3(G);Q=ZM4(G);if(Q===null||Q.length===0)return G.pos=H,0;var l=G.pos;V3(G);var q=s6w(G);q===null&&(q="",G.pos=l);var u=!0;G.match(EGt)===null&&(q===""?u=!1:(q="",G.pos=l,u=G.match(EGt)!==null));if(!u)return G.pos=H,0;p=Xnu(p);if(p==="")return G.pos=H,0;Z[p]||(Z[p]={destination:Q,title:q});return G.pos-H},IGR=function(G,H){var Z,Q=G.peek();
if(Q===-1)return!1;switch(Q){case 10:G.pos+=1;if((Z=H._lastChild)&&Z.type==="text"&&Z._literal[Z._literal.length-1]===" "){var p=Z._literal[Z._literal.length-2]===" ";Z._literal=Z._literal.replace(xcx,"");H.appendChild(new f6(p?"linebreak":"softbreak"))}else H.appendChild(new f6("softbreak"));G.match(LUG);Z=!0;break;case 92:Z=G.subject;G.pos+=1;G.peek()===10?(G.pos+=1,Z=new f6("linebreak"),H.appendChild(Z)):hft.test(Z.charAt(G.pos))?(H.appendChild(eL(Z.charAt(G.pos))),G.pos+=1):H.appendChild(eL("\\"));
Z=!0;break;case 96:a:if(Z=G.match(OA4),Z===null)Z=!1;else{p=G.pos;for(var l;(l=G.match(iAR))!==null;)if(l===Z){l=new f6("code");l._literal=G.subject.slice(p,G.pos-Z.length).trim().replace(Np4," ");H.appendChild(l);Z=!0;break a}G.pos=p;H.appendChild(eL(Z));Z=!0}break;case 42:case 95:Z=bAt(G,Q,H);break;case 39:case 34:Z=G.options.smart&&bAt(G,Q,H);break;case 91:Z=G.pos;G.pos+=1;p=eL("[");H.appendChild(p);pMa(G,p,Z,!1);Z=!0;break;case 33:Z=G.pos;G.pos+=1;G.peek()===91?(G.pos+=1,p=eL("!["),H.appendChild(p),
pMa(G,p,Z+1,!0)):H.appendChild(eL("!"));Z=!0;break;case 93:var q,u=!1,B;G.pos+=1;var t=G.pos;p=G.brackets;if(p===null)H.appendChild(eL("]"));else if(p.active){Z=p.image;var D=G.pos;G.peek()===40&&(G.pos++,V3(G)&&(l=ZM4(G))!==null&&V3(G)&&(Rft.test(G.subject.charAt(G.pos-1))&&(q=s6w(G)),1)&&V3(G)&&G.peek()===41?(G.pos+=1,u=!0):G.pos=D);if(!u){var d=G.pos,e=Q62(G);e>2?B=G.subject.slice(d,d+e):p.bracketAfter||(B=G.subject.slice(p.index,t));e===0&&(G.pos=D);B&&(B=G.refmap[Xnu(B)])&&(l=B.destination,q=
B.title,u=!0)}if(u){t=new f6(Z?"image":"link");t._destination=l;t._title=q||"";for(l=p.node._next;l;)q=l._next,l.unlink(),t.appendChild(l),l=q;H.appendChild(t);HMw(G,p.previousDelimiter);G.brackets=G.brackets.previous;p.node.unlink();if(!Z)for(p=G.brackets;p!==null;)p.image||(p.active=!1),p=p.previous}else G.brackets=G.brackets.previous,G.pos=t,H.appendChild(eL("]"))}else H.appendChild(eL("]")),G.brackets=G.brackets.previous;Z=!0;break;case 60:(Z=G.match(oGR))?(Z=Z.slice(1,Z.length-1),p=new f6("link"),
p._destination=vGp("mailto:"+Z),p._title="",p.appendChild(eL(Z)),H.appendChild(p),Z=!0):(Z=G.match(mcG))?(Z=Z.slice(1,Z.length-1),p=new f6("link"),p._destination=vGp(Z),p._title="",p.appendChild(eL(Z)),H.appendChild(p),Z=!0):Z=!1;Z||(Z=G.match(nG2),Z===null?Z=!1:(p=new f6("html_inline"),p._literal=Z,H.appendChild(p),Z=!0));break;case 38:(Z=G.match(CL7))?(H.appendChild(eL(dcw(Z))),Z=!0):Z=!1;break;default:Z=lGR(G,H)}Z||(G.pos+=1,H.appendChild(eL(d5(Q))));return!0};
nF.prototype.parseInlines=function(G){this.subject=G._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;IGR(this,G););G._string_content=null;HMw(this,null)};
nF.prototype.parse=nF.prototype.parseInlines;var qVd=[/./,/^<(?: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")],SVT=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],uWG=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,BqG=/^[#`~*+_=<>0-9-\|]|\|/,JBw=/[^ \t\f\v\r\n]/,tVN=/^[*+-]/,k1_=/^(\d{1,9})([.)])/,DWx=/^#{1,6}(?:[ \t]+|$)/,dWN=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,ec4=/^(?:`{3,}|~{3,})(?= *$)/,njT=/^(?:=+|-+)[ \t]*$/,VVa=/\r\n|\n|\r/,TP2=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,f_e=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,$WT={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(G,H){for(G=H._firstChild;G;){if(cHf(G)&&G._next){H._listData.tight=!1;break}for(var Z=G._firstChild;Z;){if(cHf(Z)&&(G._next||Z._next)){H._listData.tight=!1;break}Z=Z._next}G=G._next}},
canContain:function(G){return G==="item"},
acceptsLines:!1},block_quote:{continue:function(G){var H=G.currentLine;if(G.indented||cE(H,G.nextNonspace)!==62)return 1;$x(G);Xv(G,1,!1);Xr(cE(H,G.offset))&&Xv(G,1,!0);return 0},
finalize:function(){},
canContain:function(G){return G!=="item"},
acceptsLines:!1},item:{continue:function(G,H){if(G.blank){if(H._firstChild==null)return 1;$x(G)}else if(G.indent>=H._listData.markerOffset+H._listData.padding)Xv(G,H._listData.markerOffset+H._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(G){return G!=="item"&&!vuj(G)},
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(G,H){var Z=G.currentLine,Q=G.indent;if(H._isFenced){if((Q=Q<=3&&Z.charAt(G.nextNonspace)===H._fenceChar&&Z.slice(G.nextNonspace).match(ec4))&&Q[0].length>=H._fenceLength)return G.finalize(H,G.lineNumber),2;for(H=H._fenceOffset;H>0&&Xr(cE(Z,G.offset));)Xv(G,1,!0),H--}else if(Q>=4)Xv(G,4,!0);else if(G.blank)$x(G);else return 1;return 0},
finalize:function(G,H){if(H._isFenced){var Z=H._string_content,Q=Z.indexOf("\n");G=Z.slice(0,Q);Z=Z.slice(Q+1);H.info=fxa(G.trim());H._literal=Z}else H._literal=H._string_content.replace(/(\n *)+$/,"\n");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(G,H){return!G.blank||H._htmlBlockType!==6&&H._htmlBlockType!==7?0:1},
finalize:function(G,H){H._literal=H._string_content.replace(/(\n *)+$/,"");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(G){return G.blank?1:0},
finalize:function(G,H){for(var Z,Q=!1;cE(H._string_content,0)===91&&(Z=gjT(G.inlineParser,H._string_content,G.refmap));)H._string_content=H._string_content.slice(Z),Q=!0;Q&&!JBw.test(H._string_content)&&H.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(G){return TE(G.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(G){return G=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(G,H){if(!H._rowIsDelimiter){G=H._isHeader?"th":"td";for(var Z=H._parent._tableColumns,Q=H._string_content,p=0,l="",q,u=H._sourcepos[0][0];p<Q.length;){switch(Q[p]){case "|":q&&(q._string_content=l.trim(),l="",q=null,Z--,Z<=0&&(p=Q.length));break;default:if(!q){q=new f6(G,[[u,p],[u,p]]);var B=H._parent._columnAlignment,t=H._parent._tableColumns-Z;B&&t<=B.length&&t>=0&&(q._alignment=B[t]);H.appendChild(q)}l+=Q[p];q._sourcepos[1][1]=p}p++}q&&(q._string_content=l.trim());H._string_content=
""}},
canContain:function(G){return G!=="row"},
acceptsLines:!1}},XM_=[function(G){if(G.indented||cE(G.currentLine,G.nextNonspace)!==62)return 0;$x(G);Xv(G,1,!1);Xr(cE(G.currentLine,G.offset))&&Xv(G,1,!0);cZ(G);G.addChild("block_quote",G.nextNonspace);return 1},
function(G){var H;if(!G.indented&&(H=G.currentLine.slice(G.nextNonspace).match(DWx))){$x(G);Xv(G,H[0].length,!1);cZ(G);var Z=G.addChild("heading",G.nextNonspace);Z.level=H[0].trim().length;Z._string_content=G.currentLine.slice(G.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Xv(G,G.currentLine.length-G.offset);return 2}return 0},
function(G){var H;if(!G.indented&&(H=G.currentLine.slice(G.nextNonspace).match(dWN))){var Z=H[0].length;cZ(G);var Q=G.addChild("code_block",G.nextNonspace);Q._isFenced=!0;Q._fenceLength=Z;Q._fenceChar=H[0][0];Q._fenceOffset=G.indent;$x(G);Xv(G,Z,!1);return 2}return 0},
function(G,H){if(!G.indented&&cE(G.currentLine,G.nextNonspace)===60){var Z=G.currentLine.slice(G.nextNonspace),Q;for(Q=1;Q<=7;Q++)if(qVd[Q].test(Z)&&(Q<7||H.type!=="paragraph"))return cZ(G),G.addChild("html_block",G.offset)._htmlBlockType=Q,2}return 0},
function(G,H){var Z;if(!G.indented&&H.type==="paragraph"&&(Z=G.currentLine.slice(G.nextNonspace).match(njT))){cZ(G);var Q=new f6("heading",H.sourcepos);Q.level=Z[0][0]==="="?1:2;Q._string_content=H._string_content;j9t(H,Q);H.unlink();G.tip=Q;Xv(G,G.currentLine.length-G.offset,!1);return 2}return 0},
function(G){return!G.indented&&uWG.test(G.currentLine.slice(G.nextNonspace))?(cZ(G),G.addChild("thematic_break",G.nextNonspace),Xv(G,G.currentLine.length-G.offset,!1),2):0},
function(G,H){var Z,Q;if(!(Q=G.indented&&H.type!=="list")){a:{var p=H,l=G.currentLine.slice(G.nextNonspace);Q={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:G.indent};if(Z=l.match(tVN))Q.type="bullet",Q.bulletChar=Z[0][0];else{if(!(Z=l.match(k1_))||p.type==="paragraph"&&Z[1]!=="1"){Z=null;break a}Q.type="ordered";Q.start=parseInt(Z[1],10);Q.delimiter=Z[2]}var q=cE(G.currentLine,G.nextNonspace+Z[0].length);if(q!==-1&&q!==9&&q!==32||p.type==="paragraph"&&!G.currentLine.slice(G.nextNonspace+
Z[0].length).match(JBw))Z=null;else{$x(G);Xv(G,Z[0].length,!0);p=G.column;l=G.offset;do Xv(G,1,!0),q=cE(G.currentLine,G.offset);while(G.column-p<5&&Xr(q));q=cE(G.currentLine,G.offset)===-1;var u=G.column-p;u>=5||u<1||q?(Q.padding=Z[0].length+1,G.column=p,G.offset=l,Xr(cE(G.currentLine,G.offset))&&Xv(G,1,!0)):Q.padding=Z[0].length+u;Z=Q}}Q=!Z}if(Q)return 0;cZ(G);(Q=G.tip.type!=="list")||(H=H._listData,Q=!(H.type===Z.type&&H.delimiter===Z.delimiter&&H.bulletChar===Z.bulletChar));Q&&(H=G.addChild("list",
G.nextNonspace),H._listData=Z);H=G.addChild("item",G.nextNonspace);H._listData=Z;return 1},
function(G){var H;return((H=G.options.shouldParseIndentAsCodeBlock)!=null?H:1)&&G.indented&&G.tip.type!=="paragraph"&&!G.blank?(Xv(G,4,!0),cZ(G),G.addChild("code_block",G.offset),2):0},
function(G,H){var Z=TE(G.currentLine),Q=TE(G.lookahead);if(Z!==0&&Q<0&&Math.abs(Z)==Math.abs(Q)&&!vuj(H.type)){cZ(G);H=G.addChild("table",G.nextNonspace);H._tableRows=1;H._tableColumns=Math.abs(Z);Z=G.lookahead;if(f_e.test(Z)){Q=[];for(var p=0,l=!1,q=0,u=void 0;p<Z.length;){var B=q>=3;switch(Z[p]){case "-":q++;break;case "|":l&&(Q.push(u),u=void 0,q=0);l=!0;break;case ":":u||B||(u="left"),!u&&B&&(u="right"),u==="left"&&B&&(u="center")}p++}Z=Q}else Z=void 0;H._columnAlignment=Z;H=G.addChild("row",
G.nextNonspace);H._isHeader=!0;Xv(G,G.currentLine.length-G.offset,!1);H._string_content=G.currentLine;return 1}return 0},
function(G,H){if(H.type=="table"&&TE(G.currentLine)!==0){cZ(G);var Z=H;H=G.addChild("row",G.nextNonspace);TE(G.currentLine)<0?H._rowIsDelimiter=!0:Z._tableRows+=1;Xv(G,G.currentLine.length-G.offset,!1);H._string_content=G.currentLine;return 2}return 0}],X1X=function(){var G={shouldParseIndentAsCodeBlock:!1};
G=G===void 0?{}:G;this.lastMatchedContainer=this.doc=WWf();this.refmap={};this.lastLineLength=0;this.inlineParser=new nF(G);this.options=G;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=$WT;this.blockStarts=XM_},cB7=function(G){G.partiallyConsumedTab&&(G.offset+=1,G.tip._string_content+=" ".repeat(4-G.column%
4));
G.tip._string_content+=G.currentLine.slice(G.offset)+"\n"};
X1X.prototype.addChild=function(G,H){for(;!this.blocks[this.tip.type].canContain(G);)this.finalize(this.tip,this.lineNumber-1);G=new f6(G,[[this.lineNumber,H+1],[0,0]]);G._string_content="";this.tip.appendChild(G);return this.tip=G};
var cZ=function(G){if(!G.allClosed){for(;G.oldtip!==G.lastMatchedContainer;){var H=G.oldtip._parent;G.finalize(G.oldtip,G.lineNumber-1);G.oldtip=H}G.allClosed=!0}},Xv=function(G,H,Z){for(var Q=G.currentLine,p,l;H>0&&(l=Q[G.offset]);)l==="\t"?(p=4-G.column%4,Z?(G.partiallyConsumedTab=p>H,p=p>H?H:p,G.column+=p,G.offset+=G.partiallyConsumedTab?0:1,H-=p):(G.partiallyConsumedTab=!1,G.column+=p,G.offset+=1,--H)):(G.partiallyConsumedTab=!1,G.offset+=1,G.column+=1,--H)},$x=function(G){G.offset=G.nextNonspace;
G.column=G.nextNonspaceColumn;G.partiallyConsumedTab=!1},Tqd=function(G){for(var H=G.currentLine,Z=G.offset,Q=G.column,p;(p=H.charAt(Z))!=="";)if(p===" ")Z++,Q++;
else if(p==="\t")Z++,Q+=4-Q%4;else break;G.blank=p==="\n"||p==="\r"||p==="";G.nextNonspace=Z;G.nextNonspaceColumn=Q;G.indent=G.nextNonspaceColumn-G.column;G.indented=G.indent>=4};
X1X.prototype.finalize=function(G,H){var Z=G._parent;G._open=!1;G.sourcepos[1]=[H,this.lastLineLength];this.blocks[G.type].finalize(this,G);this.tip=Z};
X1X.prototype.parse=function(G){this.tip=this.doc=WWf();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!G)return this.doc;this.options.time&&console.time("preparing input");var H=G.split(VVa),Z=H.length;G.charCodeAt(G.length-1)===10&&--Z;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(G=0;G<Z;G++)a:{var Q=void 0,p=H[G],l=H[G+1],q=!0,u=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;p.indexOf("\x00")!==-1&&(p=p.replace(/\0/g,"\ufffd"));this.currentLine=p;for(this.lookahead=l;(Q=u._lastChild)&&Q._open;){u=Q;Tqd(this);switch(this.blocks[u.type].continue(this,u)){case 0:break;case 1:q=!1;break;case 2:this.lastLineLength=p.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!q){u=u._parent;break}}this.allClosed=u===this.oldtip;this.lastMatchedContainer=
u;Q=u.type!=="paragraph"&&$WT[u.type].acceptsLines;l=this.blockStarts;for(q=l.length;!Q;){Tqd(this);if(!this.indented&&!BqG.test(p.slice(this.nextNonspace))){$x(this);break}for(var B=0;B<q;){var t=l[B](this,u);if(t===1){u=this.tip;break}else if(t===2){u=this.tip;Q=!0;break}else B++}if(B===q){$x(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){cZ(this);this.blank&&u.lastChild&&(u.lastChild._lastLineBlank=!0);Q=u.type;l=this.blank&&!(Q==="block_quote"||Q==="code_block"&&u._isFenced||
Q==="item"&&!u._firstChild&&u.sourcepos[0][0]===this.lineNumber);for(q=u;q;)q._lastLineBlank=l,q=q._parent;this.blocks[Q].acceptsLines?(cB7(this),Q==="html_block"&&u._htmlBlockType>=1&&u._htmlBlockType<=5&&SVT[u._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(u,this.lineNumber)):this.offset<p.length&&!this.blank&&(this.addChild("paragraph",this.offset),$x(this),cB7(this))}else cB7(this);this.lastLineLength=p.length}for(;this.tip;)this.finalize(this.tip,Z);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");p=new MO7(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;Z=p.next();)H=Z.node,G=H.type,Z.entering||G!=="paragraph"&&G!=="heading"&&G!=="th"&&G!="td"||this.inlineParser.parse(H);this.options.time&&console.timeEnd("inline parsing");return this.doc};zP2.prototype.render=function(G){G=new MO7(G);var H;this.buffer="";for(this.lastOut="\n";H=G.next();){var Z=H.node.type;if(this[Z])this[Z](H.node,H.entering)}return this.buffer};
zP2.prototype.out=function(G){fF(this,G)};
var fF=function(G,H){G.buffer+=H;G.lastOut=H};
zP2.prototype.cr=function(){this.lastOut!=="\n"&&fF(this,"\n")};var fG2=/^javascript:|vbscript:|file:|data:/i,vjR=/^data:image\/(?:png|gif|jpeg|webp)/i,WnR=function(G){return fG2.test(G)&&!vjR.test(G)};
vE.prototype=Object.create(zP2.prototype);_.g=vE.prototype;_.g.text=function(G){this.out(G.literal)};
_.g.html_inline=function(G){this.options.safe?fF(this,"\x3c!-- raw HTML omitted --\x3e"):fF(this,G.literal)};
_.g.html_block=function(G){this.cr();this.options.safe?fF(this,"\x3c!-- raw HTML omitted --\x3e"):fF(this,G.literal);this.cr()};
_.g.softbreak=function(){fF(this,this.options.softbreak)};
_.g.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.g.link=function(G,H){var Z=this.attrs(G);H?(this.options.safe&&WnR(G.destination)||Z.push(["href",DR(G.destination,!0)]),G.title&&Z.push(["title",DR(G.title,!0)]),this.tag("a",Z)):this.tag("/a")};
_.g.image=function(G,H){H?(this.disableTags===0&&(this.options.safe&&WnR(G.destination)?fF(this,'<img src="" alt="'):fF(this,'<img src="'+DR(G.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(G.title&&fF(this,'" title="'+DR(G.title,!0)),fF(this,'" />')))};
_.g.emph=function(G,H){this.tag(H?"em":"/em")};
_.g.strong=function(G,H){this.tag(H?"strong":"/strong")};
_.g.paragraph=function(G,H){var Z=G.parent.parent;G=this.attrs(G);Z!==null&&Z.type==="list"&&Z.listTight||(H?(this.cr(),this.tag("p",G)):(this.tag("/p"),this.cr()))};
_.g.heading=function(G,H){var Z="h"+G.level;G=this.attrs(G);H?(this.cr(),this.tag(Z,G)):(this.tag("/"+Z),this.cr())};
_.g.code=function(G){this.tag("code");this.out(G.literal);this.tag("/code")};
_.g.code_block=function(G){var H=G.info?G.info.split(/\s+/):[],Z=this.attrs(G);H.length>0&&H[0].length>0&&Z.push(["class","language-"+DR(H[0],!0)]);this.cr();this.tag("pre");this.tag("code",Z);this.out(G.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.g.thematic_break=function(G){G=this.attrs(G);this.cr();this.tag("hr",G,!0);this.cr()};
_.g.block_quote=function(G,H){G=this.attrs(G);H?(this.cr(),this.tag("blockquote",G)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.g.list=function(G,H){var Z=G.listType==="bullet"?"ul":"ol",Q=this.attrs(G);H?(G=G.listStart,G!==null&&G!==1&&Q.push(["start",G.toString()]),this.cr(),this.tag(Z,Q)):(this.cr(),this.tag("/"+Z));this.cr()};
_.g.item=function(G,H){G=this.attrs(G);H?this.tag("li",G):(this.tag("/li"),this.cr())};
_.g.custom_inline=function(G,H){H&&G.onEnter?fF(this,G.onEnter):!H&&G.onExit&&fF(this,G.onExit)};
_.g.custom_block=function(G,H){this.cr();H&&G.onEnter?fF(this,G.onEnter):!H&&G.onExit&&fF(this,G.onExit);this.cr()};
_.g.table=function(G,H){G=this.attrs(G);H?(this.cr(),this.tag("table",G)):(this.tag("/table"),this.cr())};
_.g.row=function(G,H){G._rowIsDelimiter||(G=this.attrs(G),H?this.tag("tr",G):this.tag("/tr"))};
_.g.td=function(G,H){var Z=this.attrs(G);G._alignment&&Z.push(["align",G._alignment]);H?this.tag("td",Z):this.tag("/td")};
_.g.th=function(G,H){var Z=this.attrs(G);G._alignment&&Z.push(["align",G._alignment]);H?this.tag("th",Z):this.tag("/th")};
_.g.out=function(G){fF(this,DR(G,!1))};
_.g.tag=function(G,H,Z){if(!(this.disableTags>0)){this.buffer+="<"+G;if(H&&H.length>0){G=0;for(var Q;(Q=H[G])!==void 0;)this.buffer+=" "+Q[0]+'="'+Q[1]+'"',G++}Z&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.g.attrs=function(G){var H=[];this.options.sourcepos&&(G=G.sourcepos)&&H.push(["data-sourcepos",String(G[0][0])+":"+String(G[0][1])+"-"+String(G[1][0])+":"+String(G[1][1])]);return H};
vE.prototype.text=vE.prototype.text;vE.prototype.html_inline=vE.prototype.html_inline;vE.prototype.html_block=vE.prototype.html_block;vE.prototype.softbreak=vE.prototype.softbreak;vE.prototype.linebreak=vE.prototype.linebreak;vE.prototype.link=vE.prototype.link;vE.prototype.image=vE.prototype.image;vE.prototype.emph=vE.prototype.emph;vE.prototype.strong=vE.prototype.strong;vE.prototype.paragraph=vE.prototype.paragraph;vE.prototype.heading=vE.prototype.heading;vE.prototype.code=vE.prototype.code;
vE.prototype.code_block=vE.prototype.code_block;vE.prototype.thematic_break=vE.prototype.thematic_break;vE.prototype.block_quote=vE.prototype.block_quote;vE.prototype.list=vE.prototype.list;vE.prototype.item=vE.prototype.item;vE.prototype.custom_inline=vE.prototype.custom_inline;vE.prototype.custom_block=vE.prototype.custom_block;vE.prototype.table=vE.prototype.table;vE.prototype.row=vE.prototype.row;vE.prototype.td=vE.prototype.td;vE.prototype.th=vE.prototype.th;vE.prototype.out=vE.prototype.out;
vE.prototype.tag=vE.prototype.tag;vE.prototype.attrs=vE.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 zcN,Knw,Dxv;(function(){function G(P,K){return P<K?-1:P>K?1:P>=K?0:NaN}
function H(P){return function(K,a){return G(P(K),a)}}
function Z(){for(var P=0,K=arguments.length,a={},Go;P<K;++P){if(!(Go=arguments[P]+"")||Go in a)throw Error("we`"+Go);a[Go]=[]}return new Q(a)}
function Q(P){this._=P}
function p(P,K){return P.trim().split(/^|\s+/).map(function(a){var Go="",S2=a.indexOf(".");S2>=0&&(Go=a.slice(S2+1),a=a.slice(0,S2));if(a&&!K.hasOwnProperty(a))throw Error("xe`"+a);return{type:a,name:Go}})}
function l(P,K,a){for(var Go=0,S2=P.length;Go<S2;++Go)if(P[Go].name===K){P[Go]=$Hm;P=P.slice(0,Go).concat(P.slice(Go+1));break}a!=null&&P.push({name:K,value:a});return P}
function q(P){var K=P,a=K.indexOf(":");a>=0&&(K=P.slice(0,a))!=="xmlns"&&(P=P.slice(a+1));return Al.hasOwnProperty(K)?{space:Al[K],local:P}:P}
function u(P){return function(){var K=this.ownerDocument,a=this.namespaceURI;return a==="http://www.w3.org/1999/xhtml"&&K.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?K.createElement(P):K.createElementNS(a,P)}}
function B(P){return function(){return this.ownerDocument.createElementNS(P.space,P.local)}}
function t(P){P=q(P);return(P.local?B:u)(P)}
function D(){}
function d(P){return P==null?D:function(){return this.querySelector(P)}}
function e(P){return Array(P.length)}
function n(P,K){this.ownerDocument=P.ownerDocument;this.namespaceURI=P.namespaceURI;this._next=null;this._parent=P;this.__data__=K}
function c(P){return function(){return P}}
function W(P,K,a,Go,S2,df){for(var To=0,rf,la=K.length,Gx=df.length;To<Gx;++To)(rf=K[To])?(rf.__data__=df[To],Go[To]=rf):a[To]=new n(P,df[To]);for(;To<la;++To)if(rf=K[To])S2[To]=rf}
function M(P,K,a,Go,S2,df,To){var rf,la,Gx={},It=K.length,kw=df.length,xw=Array(It),PD;for(rf=0;rf<It;++rf)if(la=K[rf])xw[rf]=PD="$"+To.call(la,la.__data__,rf,K),PD in Gx?S2[rf]=la:Gx[PD]=la;for(rf=0;rf<kw;++rf)PD="$"+To.call(P,df[rf],rf,df),(la=Gx[PD])?(Go[rf]=la,la.__data__=df[rf],Gx[PD]=null):a[rf]=new n(P,df[rf]);for(rf=0;rf<It;++rf)(la=K[rf])&&Gx[xw[rf]]===la&&(S2[rf]=la)}
function r(P,K){return P<K?-1:P>K?1:P>=K?0:NaN}
function w(P){return function(){this.removeAttribute(P)}}
function x(P){return function(){this.removeAttributeNS(P.space,P.local)}}
function U(P,K){return function(){this.setAttribute(P,K)}}
function R(P,K){return function(){this.setAttributeNS(P.space,P.local,K)}}
function L(P,K){return function(){var a=K.apply(this,arguments);a==null?this.removeAttribute(P):this.setAttribute(P,a)}}
function H3(P,K){return function(){var a=K.apply(this,arguments);a==null?this.removeAttributeNS(P.space,P.local):this.setAttributeNS(P.space,P.local,a)}}
function qX(P){return function(){this.style.removeProperty(P)}}
function B3(P,K,a){return function(){this.style.setProperty(P,K,a)}}
function fW(P,K,a){return function(){var Go=K.apply(this,arguments);Go==null?this.style.removeProperty(P):this.style.setProperty(P,Go,a)}}
function e2(P,K){return P.style.getPropertyValue(K)||(P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView).getComputedStyle(P,null).getPropertyValue(K)}
function $R(P){return function(){delete this[P]}}
function ie(P,K){return function(){this[P]=K}}
function W3(P,K){return function(){var a=K.apply(this,arguments);a==null?delete this[P]:this[P]=a}}
function DT(){this.textContent=""}
function UR(P){return function(){this.textContent=P}}
function zx(P){return function(){var K=P.apply(this,arguments);this.textContent=K==null?"":K}}
function be(){this.innerHTML=""}
function J_(P){return function(){this.innerHTML=P}}
function rG(P){return function(){var K=P.apply(this,arguments);this.innerHTML=K==null?"":K}}
function Kw(){return null}
function cD(){var P=this.parentNode;P&&P.removeChild(this)}
function ec(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function gf(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function sR(P,K,a){P=ep(P,K,a);return function(Go){var S2=Go.relatedTarget;S2&&(S2===this||S2.compareDocumentPosition(this)&8)||P.call(this,Go)}}
function ep(P,K,a){return function(){P.call(this,this.__data__,K,a)}}
function Qh(P){return P.trim().split(/^|\s+/).map(function(K){var a="",Go=K.indexOf(".");Go>=0&&(a=K.slice(Go+1),K=K.slice(0,Go));return{type:K,name:a}})}
function $w(P){return function(){var K=this.__on;if(K){for(var a=0,Go=-1,S2=K.length,df;a<S2;++a)(df=K[a],P.type&&df.type!==P.type||df.name!==P.name)?K[++Go]=df:this.removeEventListener(df.type,df.listener,df.capture);++Go?K.length=Go:delete this.__on}}}
function Zt(P,K,a){var Go=y4w.hasOwnProperty(P.type)?sR:ep;return function(S2,df,To){S2=this.__on;var rf;df=Go(K,df,To);if(S2){To=0;for(var la=S2.length;To<la;++To)if((rf=S2[To]).type===P.type&&rf.name===P.name){this.removeEventListener(rf.type,rf.listener,rf.capture);this.addEventListener(rf.type,rf.listener=df,rf.capture=a);rf.value=K;return}}this.addEventListener(P.type,df,a);rf={type:P.type,name:P.name,value:K,listener:df,capture:a};S2?S2.push(rf):this.__on=[rf]}}
function rJ(P,K,a){var Go=P.ownerDocument&&P.ownerDocument.defaultView||P.document&&P||P.defaultView,S2=Go.CustomEvent;typeof S2==="function"?S2=new S2(K,a):(S2=Go.document.createEvent("Event"),a?(S2.initEvent(K,a.bubbles,a.cancelable),S2.detail=a.detail):S2.initEvent(K,!1,!1));P.dispatchEvent(S2)}
function N7(P,K){return function(){return rJ(this,P,K)}}
function t_(P,K){return function(){return rJ(this,P,K.apply(this,arguments))}}
function Bd(P,K){this._groups=P;this._parents=K}
function HD(){return new Bd([[document.documentElement]],X5L)}
function xR(){this._="@"+(++c4c).toString(36)}
function V4(P,K,a){P.prototype=K.prototype=a;a.constructor=P}
function nm(P,K){P=Object.create(P.prototype);for(var a in K)P[a]=K[a];return P}
function E_(){}
function Ma(P){var K;P=(P+"").trim().toLowerCase();return(K=TQi.exec(P))?(K=parseInt(K[1],16),new vD(K>>8&15|K>>4&240,K>>4&15|K&240,(K&15)<<4|K&15,1)):(K=fio.exec(P))?yk(parseInt(K[1],16)):(K=vOA.exec(P))?new vD(K[1],K[2],K[3],1):(K=WSj.exec(P))?new vD(K[1]*255/100,K[2]*255/100,K[3]*255/100,1):(K=z4q.exec(P))?YJ(K[1],K[2],K[3],K[4]):(K=KSt.exec(P))?YJ(K[1]*255/100,K[2]*255/100,K[3]*255/100,K[4]):(K=MEq.exec(P))?w3(K[1],K[2]/100,K[3]/100,1):(K=jat.exec(P))?w3(K[1],K[2]/100,K[3]/100,K[4]):oOa.hasOwnProperty(P)?
yk(oOa[P]):P==="transparent"?new vD(NaN,NaN,NaN,0):null}
function yk(P){return new vD(P>>16&255,P>>8&255,P&255,1)}
function YJ(P,K,a,Go){Go<=0&&(P=K=a=NaN);return new vD(P,K,a,Go)}
function IN(P){P instanceof E_||(P=Ma(P));if(!P)return new vD;P=P.rgb();return new vD(P.r,P.g,P.b,P.opacity)}
function Yw(P,K,a,Go){return arguments.length===1?IN(P):new vD(P,K,a,Go==null?1:Go)}
function vD(P,K,a,Go){this.r=+P;this.g=+K;this.b=+a;this.opacity=+Go}
function gk(P){P=Math.max(0,Math.min(255,Math.round(P)||0));return(P<16?"0":"")+P.toString(16)}
function w3(P,K,a,Go){Go<=0?P=K=a=NaN:a<=0||a>=1?P=K=NaN:K<=0&&(P=NaN);return new Nj(P,K,a,Go)}
function hR(P){if(P instanceof Nj)return new Nj(P.h,P.s,P.l,P.opacity);P instanceof E_||(P=Ma(P));if(!P)return new Nj;if(P instanceof Nj)return P;P=P.rgb();var K=P.r/255,a=P.g/255,Go=P.b/255,S2=Math.min(K,a,Go),df=Math.max(K,a,Go),To=NaN,rf=df-S2,la=(df+S2)/2;rf?(To=K===df?(a-Go)/rf+(a<Go)*6:a===df?(Go-K)/rf+2:(K-a)/rf+4,rf/=la<.5?df+S2:2-df-S2,To*=60):rf=la>0&&la<1?0:To;return new Nj(To,rf,la,P.opacity)}
function EA(P,K,a,Go){return arguments.length===1?hR(P):new Nj(P,K,a,Go==null?1:Go)}
function Nj(P,K,a,Go){this.h=+P;this.s=+K;this.l=+a;this.opacity=+Go}
function q4(P,K,a){return(P<60?K+(a-K)*P/60:P<180?a:P<240?K+(a-K)*(240-P)/60:K)*255}
function ty(P){if(P instanceof KW)return new KW(P.l,P.a,P.b,P.opacity);if(P instanceof fw){if(isNaN(P.h))return new KW(P.l,0,0,P.opacity);var K=P.h*mHT;return new KW(P.l,Math.cos(K)*P.c,Math.sin(K)*P.c,P.opacity)}P instanceof vD||(P=IN(P));var a=Vh(P.r),Go=Vh(P.g),S2=Vh(P.b);K=au(.2225045*a+.7168786*Go+.0606169*S2);if(a===Go&&Go===S2)var df=a=K;else df=au((.4360747*a+.3850649*Go+.1430804*S2)/.96422),a=au((.0139322*a+.0971045*Go+.7141733*S2)/.82521);return new KW(116*K-16,500*(df-K),200*(K-a),P.opacity)}
function KW(P,K,a,Go){this.l=+P;this.a=+K;this.b=+a;this.opacity=+Go}
function au(P){return P>Pzs?Math.pow(P,1/3):P/UHN+R47}
function NX(P){return P>Zm?P*P*P:UHN*(P-R47)}
function Xa(P){return 255*(P<=.0031308?12.92*P:1.055*Math.pow(P,1/2.4)-.055)}
function Vh(P){return(P/=255)<=.04045?P/12.92:Math.pow((P+.055)/1.055,2.4)}
function MU(P){if(P instanceof fw)return new fw(P.h,P.c,P.l,P.opacity);P instanceof KW||(P=ty(P));if(P.a===0&&P.b===0)return new fw(NaN,0,P.l,P.opacity);var K=Math.atan2(P.b,P.a)*NQ_;return new fw(K<0?K+360:K,Math.sqrt(P.a*P.a+P.b*P.b),P.l,P.opacity)}
function jc(P,K,a,Go){return arguments.length===1?MU(P):new fw(P,K,a,Go==null?1:Go)}
function fw(P,K,a,Go){this.h=+P;this.c=+K;this.l=+a;this.opacity=+Go}
function Tx(P,K,a,Go){if(arguments.length===1){var S2=P;if(S2 instanceof Oq)S2=new Oq(S2.h,S2.s,S2.l,S2.opacity);else{S2 instanceof vD||(S2=IN(S2));var df=S2.g/255,To=S2.b/255,rf=(A4a*To+S2.r/255*-1.7884503806-3.5172982438*df)/(A4a+-1.7884503806-3.5172982438);To-=rf;var la=(1.97294*(df-rf)- -.29227*To)/-.90649;To=(df=Math.sqrt(la*la+To*To)/(1.97294*rf*(1-rf)))?Math.atan2(la,To)*NQ_-120:NaN;S2=new Oq(To<0?To+360:To,df,rf,S2.opacity)}}else S2=new Oq(P,K,a,Go==null?1:Go);return S2}
function Oq(P,K,a,Go){this.h=+P;this.s=+K;this.l=+a;this.opacity=+Go}
function nq(P,K,a,Go,S2){var df=P*P,To=df*P;return((1-3*P+3*df-To)*K+(4-6*df+3*To)*a+(1+3*P+3*df-3*To)*Go+To*S2)/6}
function nw(P){return function(){return P}}
function KE(P,K){return function(a){return P+a*K}}
function oz(P,K,a){return P=Math.pow(P,a),K=Math.pow(K,a)-P,a=1/a,function(Go){return Math.pow(P+Go*K,a)}}
function ay(P,K){var a=K-P;return a?KE(P,a>180||a<-180?a-360*Math.round(a/360):a):nw(isNaN(P)?K:P)}
function xF(P){return(P=+P)===1?FN:function(K,a){return a-K?oz(K,a,P):nw(isNaN(K)?a:K)}}
function FN(P,K){var a=K-P;return a?KE(P,a):nw(isNaN(P)?K:P)}
function gj(P){return function(K){var a=K.length,Go=Array(a),S2=Array(a),df=Array(a),To;for(To=0;To<a;++To){var rf=Yw(K[To]);Go[To]=rf.r||0;S2[To]=rf.g||0;df[To]=rf.b||0}Go=P(Go);S2=P(S2);df=P(df);rf.opacity=1;return function(la){rf.r=Go(la);rf.g=S2(la);rf.b=df(la);return rf+""}}}
function St(P,K){return P=+P,K-=P,function(a){return P+K*a}}
function BA(P){return function(){return P}}
function ls(P){return function(K){return P(K)+""}}
function Fb(P,K){var a=e4j.lastIndex=nOj.lastIndex=0,Go,S2,df,To=-1,rf=[],la=[];P+="";for(K+="";(Go=e4j.exec(P))&&(S2=nOj.exec(K));)(df=S2.index)>a&&(df=K.slice(a,df),rf[To]?rf[To]+=df:rf[++To]=df),(Go=Go[0])===(S2=S2[0])?rf[To]?rf[To]+=S2:rf[++To]=S2:(rf[++To]=null,la.push({i:To,x:St(Go,S2)})),a=nOj.lastIndex;a<K.length&&(df=K.slice(a),rf[To]?rf[To]+=df:rf[++To]=df);return rf.length<2?la[0]?ls(la[0].x):BA(K):(K=la.length,function(Gx){for(var It=0,kw;It<K;++It)rf[(kw=la[It]).i]=kw.x(Gx);return rf.join("")})}
function WD(P,K,a,Go,S2,df){var To,rf,la;if(To=Math.sqrt(P*P+K*K))P/=To,K/=To;if(la=P*a+K*Go)a-=P*la,Go-=K*la;if(rf=Math.sqrt(a*a+Go*Go))a/=rf,Go/=rf,la/=rf;P*Go<K*a&&(P=-P,K=-K,la=-la,To=-To);return{translateX:S2,translateY:df,rotate:Math.atan2(K,P)*xHN,skewX:Math.atan(la)*xHN,scaleX:To,scaleY:rf}}
function oj(P,K,a,Go){function S2(Gx){return Gx.length?Gx.pop()+" ":""}
function df(Gx,It,kw,xw,PD,Xx){Gx!==kw||It!==xw?(PD=PD.push("translate(",null,K,null,a),Xx.push({i:PD-4,x:St(Gx,kw)},{i:PD-2,x:St(It,xw)})):(kw||xw)&&PD.push("translate("+kw+K+xw+a)}
function To(Gx,It,kw,xw){Gx!==It?(Gx-It>180?It+=360:It-Gx>180&&(Gx+=360),xw.push({i:kw.push(S2(kw)+"rotate(",null,Go)-2,x:St(Gx,It)})):It&&kw.push(S2(kw)+"rotate("+It+Go)}
function rf(Gx,It,kw,xw){Gx!==It?xw.push({i:kw.push(S2(kw)+"skewX(",null,Go)-2,x:St(Gx,It)}):It&&kw.push(S2(kw)+"skewX("+It+Go)}
function la(Gx,It,kw,xw,PD,Xx){Gx!==kw||It!==xw?(PD=PD.push(S2(PD)+"scale(",null,",",null,")"),Xx.push({i:PD-4,x:St(Gx,kw)},{i:PD-2,x:St(It,xw)})):kw===1&&xw===1||PD.push(S2(PD)+"scale("+kw+","+xw+")")}
return function(Gx,It){var kw=[],xw=[];Gx=P(Gx);It=P(It);df(Gx.translateX,Gx.translateY,It.translateX,It.translateY,kw,xw);To(Gx.rotate,It.rotate,kw,xw);rf(Gx.skewX,It.skewX,kw,xw);la(Gx.scaleX,Gx.scaleY,It.scaleX,It.scaleY,kw,xw);Gx=It=null;return function(PD){for(var Xx=-1,Rs=xw.length,zO;++Xx<Rs;)kw[(zO=xw[Xx]).i]=zO.x(PD);return kw.join("")}}}
function BD(P){return function(K,a){var Go=P((K=EA(K)).h,(a=EA(a)).h),S2=FN(K.s,a.s),df=FN(K.l,a.l),To=FN(K.opacity,a.opacity);return function(rf){K.h=Go(rf);K.s=S2(rf);K.l=df(rf);K.opacity=To(rf);return K+""}}}
function kr(P){return function(K,a){var Go=P((K=jc(K)).h,(a=jc(a)).h),S2=FN(K.c,a.c),df=FN(K.l,a.l),To=FN(K.opacity,a.opacity);return function(rf){K.h=Go(rf);K.c=S2(rf);K.l=df(rf);K.opacity=To(rf);return K+""}}}
function Yr(P){return function Go(a){function S2(df,To){var rf=P((df=Tx(df)).h,(To=Tx(To)).h),la=FN(df.s,To.s),Gx=FN(df.l,To.l),It=FN(df.opacity,To.opacity);return function(kw){df.h=rf(kw);df.s=la(kw);df.l=Gx(Math.pow(kw,a));df.opacity=It(kw);return df+""}}
a=+a;S2.gamma=Go;return S2}(1)}
function AR(){return WR||(LST(lb),WR=NF.now()+Mye)}
function lb(){WR=0}
function a0(){this._call=this._time=this._next=null}
function Ok(P,K,a){var Go=new a0;Go.restart(P,K,a);return Go}
function aR(){WR=(jpM=NF.now())+Mye;QW=A8=0;try{AR();++QW;for(var P=Pcf,K;P;)(K=WR-P._time)>=0&&P._call.call(null,K),P=P._next;--QW}finally{QW=0;P=Pcf;for(var a=Infinity;P;)if(P._call){a>P._time&&(a=P._time);var Go=P;P=P._next}else K=P._next,P._next=null,P=Go?Go._next=K:Pcf=K;xB=Go;yd(a);WR=0}}
function uOR(){var P=NF.now(),K=P-jpM;K>1E3&&(Mye-=K,jpM=P)}
function yd(P){QW||(A8&&(A8=clearTimeout(A8)),P-WR>24?(P<Infinity&&(A8=setTimeout(aR,P-NF.now()-Mye)),L4&&(L4=clearInterval(L4))):(L4||(jpM=NF.now(),L4=setInterval(uOR,1E3)),QW=1,LST(aR)))}
function EOa(P,K,a){var Go=new a0;K=K==null?0:+K;Go.restart(function(S2){Go.stop();P(S2+K)},K,a);
return Go}
function VER(P,K,a,Go,S2,df){var To=P.__transition;if(!To)P.__transition={};else if(a in To)return;r4A(P,a,{name:K,index:Go,group:S2,on:w5s,tween:h4h,time:df.time,delay:df.delay,duration:df.duration,ease:df.ease,timer:null,state:0})}
function $HW(P,K){P=mD(P,K);if(P.state>0)throw Error("ye");return P}
function zf(P,K){P=mD(P,K);if(P.state>2)throw Error("ze");return P}
function mD(P,K){P=P.__transition;if(!P||!(P=P[K]))throw Error("Ae");return P}
function r4A(P,K,a){function Go(la){var Gx,It;if(a.state!==1)return df();for(xw in To){var kw=To[xw];if(kw.name===a.name){if(kw.state===3)return EOa(Go);kw.state===4?(kw.state=6,kw.timer.stop(),kw.on.call("interrupt",P,P.__data__,kw.index,kw.group),delete To[xw]):+xw<K&&(kw.state=6,kw.timer.stop(),delete To[xw])}}EOa(function(){a.state===3&&(a.state=4,a.timer.restart(S2,a.delay,a.time),S2(la))});
a.state=2;a.on.call("start",P,P.__data__,a.index,a.group);if(a.state===2){a.state=3;rf=Array(It=a.tween.length);var xw=0;for(Gx=-1;xw<It;++xw)if(kw=a.tween[xw].value.call(P,P.__data__,a.index,a.group))rf[++Gx]=kw;rf.length=Gx+1}}
function S2(la){la=la<a.duration?a.ease.call(null,la/a.duration):(a.timer.restart(df),a.state=5,1);for(var Gx=-1,It=rf.length;++Gx<It;)rf[Gx].call(null,la);a.state===5&&(a.on.call("end",P,P.__data__,a.index,a.group),df())}
function df(){a.state=6;a.timer.stop();delete To[K];for(var la in To)return;delete P.__transition}
var To=P.__transition,rf;To[K]=a;a.timer=Ok(function(la){a.state=1;a.timer.restart(Go,a.delay,a.time);a.delay<=la&&Go(la-a.delay)},0,a.time)}
function CzD(P,K){var a,Go;return function(){var S2=zf(this,P),df=S2.tween;if(df!==a){Go=a=df;df=0;for(var To=Go.length;df<To;++df)if(Go[df].name===K){Go=Go.slice();Go.splice(df,1);break}}S2.tween=Go}}
function irc(P,K,a){var Go,S2;if(typeof a!=="function")throw Error();return function(){var df=zf(this,P),To=df.tween;if(To!==Go){S2=(Go=To).slice();To={name:K,value:a};for(var rf=0,la=S2.length;rf<la;++rf)if(S2[rf].name===K){S2[rf]=To;break}rf===la&&S2.push(To)}df.tween=S2}}
function X5b(P,K,a){var Go=P._id;P.each(function(){var S2=zf(this,Go);(S2.value||(S2.value={}))[K]=a.apply(this,arguments)});
return function(S2){return mD(S2,Go).value[K]}}
function YpR(P,K){var a;return(typeof K==="number"?St:K instanceof Ma?FSw:(a=Ma(K))?(K=a,FSw):Fb)(P,K)}
function Oro(P){return function(){this.removeAttribute(P)}}
function aii(P){return function(){this.removeAttributeNS(P.space,P.local)}}
function y4A(P,K,a){var Go,S2;return function(){var df=this.getAttribute(P);return df===a?null:df===Go?S2:S2=K(Go=df,a)}}
function oOo(P,K,a){var Go,S2;return function(){var df=this.getAttributeNS(P.space,P.local);return df===a?null:df===Go?S2:S2=K(Go=df,a)}}
function mHt(P,K,a){var Go,S2,df;return function(){var To=a(this);if(To==null)return void this.removeAttribute(P);var rf=this.getAttribute(P);return rf===To?null:rf===Go&&To===S2?df:df=K(Go=rf,S2=To)}}
function UHi(P,K,a){var Go,S2,df;return function(){var To=a(this);if(To==null)return void this.removeAttributeNS(P.space,P.local);var rf=this.getAttributeNS(P.space,P.local);return rf===To?null:rf===Go&&To===S2?df:df=K(Go=rf,S2=To)}}
function R4a(P,K){function a(){var Go=this,S2=K.apply(Go,arguments);return S2&&function(df){Go.setAttributeNS(P.space,P.local,S2(df))}}
a._value=K;return a}
function NQ6(P,K){function a(){var Go=this,S2=K.apply(Go,arguments);return S2&&function(df){Go.setAttribute(P,S2(df))}}
a._value=K;return a}
function A4o(P,K){return function(){$HW(this,P).delay=+K.apply(this,arguments)}}
function xHi(P,K){return K=+K,function(){$HW(this,P).delay=K}}
function LSt(P,K){return function(){zf(this,P).duration=+K.apply(this,arguments)}}
function EOL(P,K){return K=+K,function(){zf(this,P).duration=K}}
function Ypq(P,K){if(typeof K!=="function")throw Error();return function(){zf(this,P).ease=K}}
function FSA(P){return(P+"").trim().split(/^|\s+/).every(function(K){var a=K.indexOf(".");a>=0&&(K=K.slice(0,a));return!K||K==="start"})}
function bri(P,K,a){var Go,S2,df=FSA(K)?$HW:zf;return function(){var To=df(this,P),rf=To.on;if(rf!==Go)(S2=(Go=rf).copy()).on(K,a);To.on=S2}}
function GVa(P){return function(){var K=this.parentNode,a;for(a in this.__transition)if(+a!==P)return;K&&K.removeChild(this)}}
function HBq(P,K){var a,Go,S2;return function(){var df=e2(this,P),To=(this.style.removeProperty(P),e2(this,P));return df===To?null:df===a&&To===Go?S2:S2=K(a=df,Go=To)}}
function sPA(P){return function(){this.style.removeProperty(P)}}
function ZBh(P,K,a){var Go,S2;return function(){var df=e2(this,P);return df===a?null:df===Go?S2:S2=K(Go=df,a)}}
function QPs(P,K,a){var Go,S2,df;return function(){var To=e2(this,P),rf=a(this);rf==null&&(rf=(this.style.removeProperty(P),e2(this,P)));return To===rf?null:To===Go&&rf===S2?df:df=K(Go=To,S2=rf)}}
function pkL(P,K,a){function Go(){var S2=this,df=K.apply(S2,arguments);return df&&function(To){S2.style.setProperty(P,df(To),a)}}
Go._value=K;return Go}
function lKk(P){return function(){this.textContent=P}}
function gEq(P){return function(){var K=P(this);this.textContent=K==null?"":K}}
function $g(P,K,a,Go){this._groups=P;this._parents=K;this._name=a;this._id=Go}
function c42(P){return{type:P}}
function TQj(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function rLj(){}
function brN(P,K){var a=new rLj;if(P instanceof rLj)P.each(function(To,rf){a.set(rf,To)});
else if(Array.isArray(P)){var Go=-1,S2=P.length,df;if(K==null)for(;++Go<S2;)a.set(Go,P[Go]);else for(;++Go<S2;)a.set(K(df=P[Go],Go,P),df)}else if(P)for(Go in P)a.set(Go,P[Go]);return a}
function wWf(){}
function GV7(P){return function(K){for(var a={},Go=0;Go<P.length;Go++)a[P[Go]]=K[Go]||"";return a}}
function IKA(P,K){var a=GV7(P);return function(Go,S2){return K(a(Go),S2,P)}}
function qn6(P){var K=Object.create(null),a=[];P.forEach(function(Go){for(var S2 in Go)S2 in K||a.push(K[S2]=S2)});
return a}
function HBR(P){function K(To,rf){function la(){if(Xx)return fie;if(Rs)return Rs=!1,sPw;var ZY,FM=kw,Xs;if(To.charCodeAt(FM)===34){for(;kw++<It&&To.charCodeAt(kw)!==34||To.charCodeAt(++kw)===34;);(ZY=kw)>=It?Xx=!0:(Xs=To.charCodeAt(kw++))===10?Rs=!0:Xs===13&&(Rs=!0,To.charCodeAt(kw)===10&&++kw);return To.slice(FM+1,ZY-1).replace(/""/g,'"')}for(;kw<It;){if((Xs=To.charCodeAt(ZY=kw++))===10)Rs=!0;else if(Xs===13)Rs=!0,To.charCodeAt(kw)===10&&++kw;else if(Xs!==df)continue;return To.slice(FM,ZY)}return Xx=
!0,To.slice(FM,It)}
var Gx=[],It=To.length,kw=0,xw=0,PD,Xx=It<=0,Rs=!1;To.charCodeAt(It-1)===10&&--It;for(To.charCodeAt(It-1)===13&&--It;(PD=la())!==fie;){for(var zO=[];PD!==sPw&&PD!==fie;)zO.push(PD),PD=la();rf&&(zO=rf(zO,xw++))==null||Gx.push(zO)}return Gx}
function a(To){return To.map(Go).join(P)}
function Go(To){return To==null?"":S2.test(To)?'"'+To.replace(/"/g,'""')+'"':To}
var S2=new RegExp('["'+P+"\n\r]"),df=P.charCodeAt(0);return{parse:function(To,rf){var la,Gx;To=K(To,function(It,kw){if(la)return la(It,kw-1);Gx=It;la=rf?IKA(It,rf):GV7(It)});
To.columns=Gx||[];return To},
parseRows:K,format:function(To,rf){rf==null&&(rf=qn6(To));return[rf.map(Go).join(P)].concat(To.map(function(la){return rf.map(function(Gx){return Go(la[Gx])}).join(P)})).join("\n")},
formatRows:function(To){return To.map(a).join("\n")}}}
function Snh(P){if(!P.ok)throw Error("Be`"+P.status+"`"+P.statusText);return P.text()}
function ZB4(P){return function(K,a,Go){arguments.length===2&&typeof a==="function"&&(Go=a,a=void 0);return fetch(K,a).then(Snh).then(function(S2){return P(S2,Go)})}}
function QP2(P,K,a,Go){if(isNaN(K)||isNaN(a))return P;var S2,df=P._root;Go={data:Go};var To=P._x0,rf=P._y0,la=P._x1,Gx=P._y1,It,kw,xw,PD,Xx;if(!df)return P._root=Go,P;for(;df.length;)if((xw=K>=(It=(To+la)/2))?To=It:la=It,(PD=a>=(kw=(rf+Gx)/2))?rf=kw:Gx=kw,S2=df,!(df=df[Xx=PD<<1|xw]))return S2[Xx]=Go,P;var Rs=+P._x.call(null,df.data);var zO=+P._y.call(null,df.data);if(K===Rs&&a===zO)return Go.next=df,S2?S2[Xx]=Go:P._root=Go,P;do S2=S2?S2[Xx]=Array(4):P._root=Array(4),(xw=K>=(It=(To+la)/2))?To=It:la=
It,(PD=a>=(kw=(rf+Gx)/2))?rf=kw:Gx=kw;while((Xx=PD<<1|xw)===(xw=(zO>=kw)<<1|Rs>=It));return S2[xw]=df,S2[Xx]=Go,P}
function xT(P,K,a,Go,S2){this.node=P;this.x0=K;this.y0=a;this.x1=Go;this.y1=S2}
function u_m(P){return P[0]}
function BVc(P){return P[1]}
function vOR(P,K,a,Go,S2,df){this._x=P;this._y=K;this._x0=a;this._y0=Go;this._x1=S2;this._y1=df;this._root=void 0}
function pka(P){for(var K={data:P.data},a=K;P=P.next;)a=a.next={data:P.data};return K}
function hlM(P,K){if((K=(P=K?P.toExponential(K-1):P.toExponential()).indexOf("e"))<0)return null;var a=P.slice(0,K);return[a.length>1?a[0]+a.slice(2):a,+P.slice(K+1)]}
function JDc(P){return P=hlM(Math.abs(P)),P?P[1]:NaN}
function tis(P,K){return function(a,Go){for(var S2=a.length,df=[],To=0,rf=P[0],la=0;S2>0&&rf>0;){la+rf+1>Go&&(rf=Math.max(1,Go-la));df.push(a.substring(S2-=rf,S2+rf));if((la+=rf+1)>Go)break;rf=P[To=(To+1)%P.length]}return df.reverse().join(K)}}
function kVL(P){return function(K){return K.replace(/[0-9]/g,function(a){return P[+a]})}}
function WSu(P){return new z4j(P)}
function z4j(P){if(!(K=Dtj.exec(P)))throw Error("Ce`"+P);var K;this.fill=K[1]||" ";this.align=K[2]||">";this.sign=K[3]||"-";this.symbol=K[4]||"";this.zero=!!K[5];this.width=K[6]&&+K[6];this.comma=!!K[7];this.precision=K[8]&&+K[8].slice(1);this.trim=!!K[9];this.type=K[10]||""}
function lKG(P,K){K=hlM(P,K);if(!K)return P+"";P=K[0];K=K[1];return K<0?"0."+Array(-K).join("0")+P:P.length>K+1?P.slice(0,K+1)+"."+P.slice(K+1):P+Array(K-P.length+2).join("0")}
function gER(P){return P}
function dtt(P){function K(rf){function la(YY){var ey=Xs,A6=pG,$Y,S7;if(FM==="c")A6=bV(YY)+A6,YY="";else{YY=+YY;var h6=YY<0;YY=bV(Math.abs(YY),zO);if(ZY){var Ll=YY.length,L1=1,Qs=-1;a:for(;L1<Ll;++L1)switch(YY[L1]){case ".":Qs=$Y=L1;break;case "0":Qs===0&&(Qs=L1);$Y=L1;break;default:if(!+YY[L1])break a;Qs>0&&(Qs=0)}YY=Qs>0?YY.slice(0,Qs)+YY.slice($Y+1):YY}h6&&+YY===0&&(h6=!1);ey=(h6?kw==="("?kw:"-":kw==="-"||kw==="("?"":kw)+ey;A6=(FM==="s"?IKw[8+qn_/3]:"")+A6+(h6&&kw==="("?")":"");if(XG)for(h6=-1,
$Y=YY.length;++h6<$Y;)if(S7=YY.charCodeAt(h6),48>S7||S7>57){A6=(S7===46?S2+YY.slice(h6+1):YY.slice(h6))+A6;YY=YY.slice(0,h6);break}}Rs&&!PD&&(YY=a(YY,Infinity));S7=ey.length+YY.length+A6.length;h6=S7<Xx?Array(Xx-S7+1).join(Gx):"";Rs&&PD&&(YY=a(h6+YY,h6.length?Xx-A6.length:Infinity),h6="");switch(It){case "<":YY=ey+YY+A6+h6;break;case "=":YY=ey+h6+YY+A6;break;case "^":YY=h6.slice(0,S7=h6.length>>1)+ey+YY+A6+h6.slice(S7);break;default:YY=h6+ey+YY+A6}return df(YY)}
rf=WSu(rf);var Gx=rf.fill,It=rf.align,kw=rf.sign,xw=rf.symbol,PD=rf.zero,Xx=rf.width,Rs=rf.comma,zO=rf.precision,ZY=rf.trim,FM=rf.type;FM==="n"?(Rs=!0,FM="g"):Sn4[FM]||(zO==null&&(zO=12),ZY=!0,FM="g");if(PD||Gx==="0"&&It==="=")PD=!0,Gx="0",It="=";var Xs=xw==="$"?Go[0]:xw==="#"&&/[boxX]/.test(FM)?"0"+FM.toLowerCase():"",pG=xw==="$"?Go[1]:/[%p]/.test(FM)?To:"",bV=Sn4[FM],XG=/[defgprs%]/.test(FM);zO=zO==null?6:/[gprs]/.test(FM)?Math.max(1,Math.min(21,zO)):Math.max(0,Math.min(20,zO));la.toString=function(){return rf+
""};
return la}
var a=P.grouping&&P.thousands?tis(P.grouping,P.thousands):gER,Go=P.currency,S2=P.decimal,df=P.numerals?kVL(P.numerals):gER,To=P.percent||"%";return{format:K,formatPrefix:function(rf,la){var Gx=K((rf=WSu(rf),rf.type="f",rf));rf=Math.max(-8,Math.min(8,Math.floor(JDc(la)/3)))*3;var It=Math.pow(10,-rf),kw=IKw[8+rf/3];return function(xw){return Gx(It*xw)+kw}}}}
function Uy(){this.reset()}
function u_w(P,K,a){var Go=P.s=K+a,S2=Go-K;P.t=K-(Go-S2)+(a-S2)}
function Ccb(P){return P>1?xG:P<-1?-xG:Math.asin(P)}
function en6(){}
function BVp(P){var K=P[0];P=P[1];var a=LA(P);return[a*LA(K),a*Mv(K),Mv(P)]}
function JDp(P,K){return[P[1]*K[2]-P[2]*K[1],P[2]*K[0]-P[0]*K[2],P[0]*K[1]-P[1]*K[0]]}
function ti2(P){var K=iTe(P[0]*P[0]+P[1]*P[1]+P[2]*P[2]);P[0]/=K;P[1]/=K;P[2]/=K}
function nEq(){var P=[],K;return{point:function(a,Go){K.push([a,Go])},
lineStart:function(){P.push(K=[])},
lineEnd:en6,rejoin:function(){P.length>1&&P.push(P.pop().concat(P.shift()))},
result:function(){var a=P;P=[];K=null;return a}}}
function OTo(P,K,a,Go){this.x=P;this.z=K;this.o=a;this.e=Go;this.v=!1;this.n=this.p=null}
function Vi8(P,K,a,Go,S2){var df=[],To=[];P.forEach(function(kw){if(!((xw=kw.length-1)<=0)){var xw,PD=kw[0],Xx=kw[xw],Rs=PD;if(XY(Rs[0]-Xx[0])<1E-6&&XY(Rs[1]-Xx[1])<1E-6){S2.lineStart();for(rf=0;rf<xw;++rf)S2.point((PD=kw[rf])[0],PD[1]);S2.lineEnd()}else df.push(xw=new OTo(PD,kw,null,!0)),To.push(xw.o=new OTo(PD,null,xw,!1)),df.push(xw=new OTo(Xx,kw,null,!1)),To.push(xw.o=new OTo(Xx,null,xw,!0))}});
if(df.length){To.sort(K);kVa(df);kVa(To);var rf=0;for(P=To.length;rf<P;++rf)To[rf].e=a=!a;a=df[0];for(var la;;){for(var Gx=a,It=!0;Gx.v;)if((Gx=Gx.n)===a)return;K=Gx.z;S2.lineStart();do{Gx.v=Gx.o.v=!0;if(Gx.e){if(It)for(rf=0,P=K.length;rf<P;++rf)S2.point((la=K[rf])[0],la[1]);else Go(Gx.x,Gx.n.x,1,S2);Gx=Gx.n}else{if(It)for(K=Gx.p.z,rf=K.length-1;rf>=0;--rf)S2.point((la=K[rf])[0],la[1]);else Go(Gx.x,Gx.p.x,-1,S2);Gx=Gx.p}Gx=Gx.o;K=Gx.z;It=!It}while(!Gx.v);S2.lineEnd()}}}
function kVa(P){if(K=P.length){for(var K,a=0,Go=P[0],S2;++a<K;)Go.n=S2=P[a],S2.p=Go,Go=S2;Go.n=S2=P[0];S2.p=Go}}
function $ti(P){return P.length>1}
function Xk8(P,K){return((P=P.x)[0]<0?P[1]-xG-1E-6:xG-P[1])-((K=K.x)[0]<0?K[1]-xG-1E-6:xG-K[1])}
function KSU(){}
function Dtt(P){return function(K,a){var Go=LA(K),S2=LA(a);Go=P(Go*S2);return[Go*S2*Mv(K),Go*Mv(a)]}}
function EG(P){return function(K,a){var Go=iTe(K*K+a*a),S2=P(Go),df=Mv(S2);S2=LA(S2);return[dtT(K*df,Go*S2),Ccb(Go&&a*df/Go)]}}
function cDq(P){var K=0,a=P.children,Go=a&&a.length;if(Go)for(;--Go>=0;)K+=a[Go].value;else K=1;P.value=K}
function en_(P,K){var a=new YB(P);P=+P.value&&(a.value=P.value);var Go,S2=[a],df,To,rf,la;for(K==null&&(K=TVL);Go=S2.pop();)if(P&&(Go.value=+Go.data.value),(To=K(Go.data))&&(la=To.length))for(Go.children=Array(la),rf=la-1;rf>=0;--rf)S2.push(df=Go.children[rf]=new YB(To[rf])),df.parent=Go,df.depth=Go.depth+1;return a.eachBefore(fKa)}
function TVL(P){return P.children}
function vEL(P){P.data=P.data.data}
function fKa(P){var K=0;do P.height=K;while((P=P.parent)&&P.height<++K)}
function YB(P){this.data=P;this.depth=this.height=0;this.parent=null}
function dj(P,K,a,Go){function S2(df){return P(df=new Date(+df)),df}
S2.floor=S2;S2.ceil=function(df){return P(df=new Date(df-1)),K(df,1),P(df),df};
S2.round=function(df){var To=S2(df),rf=S2.ceil(df);return df-To<rf-df?To:rf};
S2.offset=function(df,To){return K(df=new Date(+df),To==null?1:Math.floor(To)),df};
S2.range=function(df,To,rf){var la=[],Gx;df=S2.ceil(df);rf=rf==null?1:Math.floor(rf);if(!(df<To&&rf>0))return la;do la.push(Gx=new Date(+df)),K(df,rf),P(df);while(Gx<df&&df<To);return la};
S2.filter=function(df){return dj(function(To){if(To>=To)for(;P(To),!df(To);)To.setTime(To-1)},function(To,rf){if(To>=To)if(rf<0)for(;++rf<=0;)for(;K(To,-1),!df(To););
else for(;--rf>=0;)for(;K(To,1),!df(To););})};
a&&(S2.count=function(df,To){MEj.setTime(+df);jaU.setTime(+To);P(MEj);P(jaU);return Math.floor(a(MEj,jaU))},S2.every=function(df){df=Math.floor(df);
return isFinite(df)&&df>0?df>1?S2.filter(Go?function(To){return Go(To)%df===0}:function(To){return S2.count(0,To)%df===0}):S2:null});
return S2}
function Ke(P){return dj(function(K){K.setDate(K.getDate()-(K.getDay()+7-P)%7);K.setHours(0,0,0,0)},function(K,a){K.setDate(K.getDate()+a*7)},function(K,a){return(a-K-(a.getTimezoneOffset()-K.getTimezoneOffset())*6E4)/6048E5})}
function My(P){return dj(function(K){K.setUTCDate(K.getUTCDate()-(K.getUTCDay()+7-P)%7);K.setUTCHours(0,0,0,0)},function(K,a){K.setUTCDate(K.getUTCDate()+a*7)},function(K,a){return(a-K)/6048E5})}
function WOi(P){if(0<=P.y&&P.y<100){var K=new Date(-1,P.m,P.d,P.H,P.M,P.S,P.L);K.setFullYear(P.y);return K}return new Date(P.y,P.m,P.d,P.H,P.M,P.S,P.L)}
function av3(P){if(0<=P.y&&P.y<100){var K=new Date(Date.UTC(-1,P.m,P.d,P.H,P.M,P.S,P.L));K.setUTCFullYear(P.y);return K}return new Date(Date.UTC(P.y,P.m,P.d,P.H,P.M,P.S,P.L))}
function Fc(P){return{y:P,m:0,d:1,H:0,M:0,S:0,L:0}}
function znm(P){function K(A6,$Y){return function(S7){var h6=[],Ll=-1,L1=0,Qs=A6.length,VD,Ts;for(S7 instanceof Date||(S7=new Date(+S7));++Ll<Qs;)if(A6.charCodeAt(Ll)===37){h6.push(A6.slice(L1,Ll));(L1=nER[VD=A6.charAt(++Ll)])!=null?VD=A6.charAt(++Ll):L1=VD==="e"?" ":"0";if(Ts=$Y[VD])VD=Ts(S7,L1);h6.push(VD);L1=Ll+1}h6.push(A6.slice(L1,Ll));return h6.join("")}}
function a(A6,$Y){return function(S7){var h6=Fc(1900);if(Go(h6,A6,S7,0)!=S7.length)return null;if("Q"in h6)return new Date(h6.Q);"p"in h6&&(h6.H=h6.H%12+h6.p*12);if("V"in h6){if(h6.V<1||h6.V>53)return null;"w"in h6||(h6.w=1);if("Z"in h6){S7=av3(Fc(h6.y));var Ll=S7.getUTCDay();S7=Ll>4||Ll===0?Pzv.ceil(S7):Pzv(S7);S7=Vix.offset(S7,(h6.V-1)*7);h6.y=S7.getUTCFullYear();h6.m=S7.getUTCMonth();h6.d=S7.getUTCDate()+(h6.w+6)%7}else S7=$Y(Fc(h6.y)),Ll=S7.getDay(),S7=Ll>4||Ll===0?r4R.ceil(S7):r4R(S7),S7=$tN.offset(S7,
(h6.V-1)*7),h6.y=S7.getFullYear(),h6.m=S7.getMonth(),h6.d=S7.getDate()+(h6.w+6)%7}else if("W"in h6||"U"in h6)"w"in h6||(h6.w="u"in h6?h6.u%7:"W"in h6?1:0),Ll="Z"in h6?av3(Fc(h6.y)).getUTCDay():$Y(Fc(h6.y)).getDay(),h6.m=0,h6.d="W"in h6?(h6.w+6)%7+h6.W*7-(Ll+5)%7:h6.w+h6.U*7-(Ll+6)%7;return"Z"in h6?(h6.H+=h6.Z/100|0,h6.M+=h6.Z%100,av3(h6)):$Y(h6)}}
function Go(A6,$Y,S7,h6){for(var Ll=0,L1=$Y.length,Qs=S7.length,VD;Ll<L1;){if(h6>=Qs)return-1;VD=$Y.charCodeAt(Ll++);if(VD===37){if(VD=$Y.charAt(Ll++),VD=ey[VD in nER?$Y.charAt(Ll++):VD],!VD||(h6=VD(A6,S7,h6))<0)return-1}else if(VD!=S7.charCodeAt(h6++))return-1}return h6}
var S2=P.dateTime,df=P.date,To=P.time,rf=P.periods,la=P.days,Gx=P.shortDays,It=P.months,kw=P.shortMonths,xw=bK(rf),PD=GX(rf),Xx=bK(la),Rs=GX(la),zO=bK(Gx),ZY=GX(Gx),FM=bK(It),Xs=GX(It),pG=bK(kw),bV=GX(kw),XG={a:function(A6){return Gx[A6.getDay()]},
A:function(A6){return la[A6.getDay()]},
b:function(A6){return kw[A6.getMonth()]},
B:function(A6){return It[A6.getMonth()]},
c:null,d:Xkx,e:Xkx,f:KOD,H:Mia,I:jPj,j:PU6,L:cDR,m:rDD,M:wkm,p:function(A6){return rf[+(A6.getHours()>=12)]},
Q:TVa,s:fK7,S:hnc,u:CUA,U:iBs,V:OBi,w:aKc,W:yDm,x:null,X:null,y:oE6,Y:mto,Z:Uti,"%":vEa},YY={a:function(A6){return Gx[A6.getUTCDay()]},
A:function(A6){return la[A6.getUTCDay()]},
b:function(A6){return kw[A6.getUTCMonth()]},
B:function(A6){return It[A6.getUTCMonth()]},
c:null,d:WON,e:WON,f:Rn6,H:NVt,I:ADj,j:xti,L:znw,m:LOc,M:EED,p:function(A6){return rf[+(A6.getUTCHours()>=12)]},
Q:TVa,s:fK7,S:Yni,u:FOm,U:bBo,V:Gii,w:Hdo,W:srA,x:null,X:null,y:Zdk,Y:QrL,Z:prc,"%":vEa},ey={a:function(A6,$Y,S7){return($Y=zO.exec($Y.slice(S7)))?(A6.w=ZY[$Y[0].toLowerCase()],S7+$Y[0].length):-1},
A:function(A6,$Y,S7){return($Y=Xx.exec($Y.slice(S7)))?(A6.w=Rs[$Y[0].toLowerCase()],S7+$Y[0].length):-1},
b:function(A6,$Y,S7){return($Y=pG.exec($Y.slice(S7)))?(A6.m=bV[$Y[0].toLowerCase()],S7+$Y[0].length):-1},
B:function(A6,$Y,S7){return($Y=FM.exec($Y.slice(S7)))?(A6.m=Xs[$Y[0].toLowerCase()],S7+$Y[0].length):-1},
c:function(A6,$Y,S7){return Go(A6,S2,$Y,S7)},
d:KOd,e:KOd,f:l9a,H:Mi7,I:Mi7,j:g3c,L:I9A,m:q5t,M:S5A,p:function(A6,$Y,S7){return($Y=xw.exec($Y.slice(S7)))?(A6.p=PD[$Y[0].toLowerCase()],S7+$Y[0].length):-1},
Q:ulj,s:By6,S:JiD,u:trj,U:kiq,V:DJq,w:dJc,W:egt,x:function(A6,$Y,S7){return Go(A6,df,$Y,S7)},
X:function(A6,$Y,S7){return Go(A6,To,$Y,S7)},
y:n3A,Y:Vrs,Z:$J6,"%":Xrj};XG.x=K(df,XG);XG.X=K(To,XG);XG.c=K(S2,XG);YY.x=K(df,YY);YY.X=K(To,YY);YY.c=K(S2,YY);return{format:function(A6){var $Y=K(A6,XG);$Y.toString=function(){return A6};
return $Y},
parse:function(A6){var $Y=a(A6,WOi);$Y.toString=function(){return A6};
return $Y},
utcFormat:function(A6){var $Y=K(A6,YY);$Y.toString=function(){return A6};
return $Y},
utcParse:function(A6){var $Y=a(A6,av3);$Y.toString=function(){return A6};
return $Y}}}
function VP(P,K,a){var Go=P<0?"-":"";P=(Go?-P:P)+"";var S2=P.length;return Go+(S2<a?Array(a-S2+1).join(K)+P:P)}
function cic(P){return P.replace(Tyq,"\\$&")}
function bK(P){return new RegExp("^(?:"+P.map(cic).join("|")+")","i")}
function GX(P){for(var K={},a=-1,Go=P.length;++a<Go;)K[P[a].toLowerCase()]=a;return K}
function dJc(P,K,a){return(K=cA.exec(K.slice(a,a+1)))?(P.w=+K[0],a+K[0].length):-1}
function trj(P,K,a){return(K=cA.exec(K.slice(a,a+1)))?(P.u=+K[0],a+K[0].length):-1}
function kiq(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.U=+K[0],a+K[0].length):-1}
function DJq(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.V=+K[0],a+K[0].length):-1}
function egt(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.W=+K[0],a+K[0].length):-1}
function Vrs(P,K,a){return(K=cA.exec(K.slice(a,a+4)))?(P.y=+K[0],a+K[0].length):-1}
function n3A(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.y=+K[0]+(+K[0]>68?1900:2E3),a+K[0].length):-1}
function $J6(P,K,a){return(K=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(K.slice(a,a+6)))?(P.Z=K[1]?0:-(K[2]+(K[3]||"00")),a+K[0].length):-1}
function q5t(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.m=K[0]-1,a+K[0].length):-1}
function KOd(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.d=+K[0],a+K[0].length):-1}
function g3c(P,K,a){return(K=cA.exec(K.slice(a,a+3)))?(P.m=0,P.d=+K[0],a+K[0].length):-1}
function Mi7(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.H=+K[0],a+K[0].length):-1}
function S5A(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.M=+K[0],a+K[0].length):-1}
function JiD(P,K,a){return(K=cA.exec(K.slice(a,a+2)))?(P.S=+K[0],a+K[0].length):-1}
function I9A(P,K,a){return(K=cA.exec(K.slice(a,a+3)))?(P.L=+K[0],a+K[0].length):-1}
function l9a(P,K,a){return(K=cA.exec(K.slice(a,a+6)))?(P.L=Math.floor(K[0]/1E3),a+K[0].length):-1}
function Xrj(P,K,a){return(P=f96.exec(K.slice(a,a+1)))?a+P[0].length:-1}
function ulj(P,K,a){return(K=cA.exec(K.slice(a)))?(P.Q=+K[0],a+K[0].length):-1}
function By6(P,K,a){return(K=cA.exec(K.slice(a)))?(P.Q=+K[0]*1E3,a+K[0].length):-1}
function Xkx(P,K){return VP(P.getDate(),K,2)}
function Mia(P,K){return VP(P.getHours(),K,2)}
function jPj(P,K){return VP(P.getHours()%12||12,K,2)}
function PU6(P,K){return VP(1+$tN.count(pP(P),P),K,3)}
function cDR(P,K){return VP(P.getMilliseconds(),K,3)}
function KOD(P,K){return cDR(P,K)+"000"}
function rDD(P,K){return VP(P.getMonth()+1,K,2)}
function wkm(P,K){return VP(P.getMinutes(),K,2)}
function hnc(P,K){return VP(P.getSeconds(),K,2)}
function CUA(P){P=P.getDay();return P===0?7:P}
function iBs(P,K){return VP(v36.count(pP(P),P),K,2)}
function OBi(P,K){var a=P.getDay();P=a>=4||a===0?w5v(P):w5v.ceil(P);return VP(w5v.count(pP(P),P)+(pP(P).getDay()===4),K,2)}
function aKc(P){return P.getDay()}
function yDm(P,K){return VP(r4R.count(pP(P),P),K,2)}
function oE6(P,K){return VP(P.getFullYear()%100,K,2)}
function mto(P,K){return VP(P.getFullYear()%1E4,K,4)}
function Uti(P){P=P.getTimezoneOffset();return(P>0?"-":(P*=-1,"+"))+VP(P/60|0,"0",2)+VP(P%60,"0",2)}
function WON(P,K){return VP(P.getUTCDate(),K,2)}
function NVt(P,K){return VP(P.getUTCHours(),K,2)}
function ADj(P,K){return VP(P.getUTCHours()%12||12,K,2)}
function xti(P,K){return VP(1+Vix.count(lh(P),P),K,3)}
function znw(P,K){return VP(P.getUTCMilliseconds(),K,3)}
function Rn6(P,K){return znw(P,K)+"000"}
function LOc(P,K){return VP(P.getUTCMonth()+1,K,2)}
function EED(P,K){return VP(P.getUTCMinutes(),K,2)}
function Yni(P,K){return VP(P.getUTCSeconds(),K,2)}
function FOm(P){P=P.getUTCDay();return P===0?7:P}
function bBo(P,K){return VP(W9D.count(lh(P),P),K,2)}
function Gii(P,K){var a=P.getUTCDay();P=a>=4||a===0?h4f(P):h4f.ceil(P);return VP(h4f.count(lh(P),P)+(lh(P).getUTCDay()===4),K,2)}
function Hdo(P){return P.getUTCDay()}
function srA(P,K){return VP(Pzv.count(lh(P),P),K,2)}
function Zdk(P,K){return VP(P.getUTCFullYear()%100,K,2)}
function QrL(P,K){return VP(P.getUTCFullYear()%1E4,K,4)}
function prc(){return"+0000"}
function vEa(){return"%"}
function TVa(P){return+P}
function fK7(P){return Math.floor(+P/1E3)}
function d3(P){for(var K=P.length/6|0,a=Array(K),Go=0;Go<K;)a[Go]="#"+P.slice(Go*6,++Go*6);return a}
function EJ(P){return zgA(P[P.length-1])}
function yLU(P){var K=P.length;return function(a){return P[Math.max(0,Math.min(K-1,Math.floor(a*K)))]}}
function jPt(P){this._context=P}
function PU_(P){this._curve=P}
function rDd(P,K,a){var Go=P._x1-P._x0;K-=P._x1;var S2=(P._y1-P._y0)/(Go||K<0&&-0);P=(a-P._y1)/(K||Go<0&&-0);return((S2<0?-1:1)+(P<0?-1:1))*Math.min(Math.abs(S2),Math.abs(P),.5*Math.abs((S2*K+P*Go)/(Go+K)))||0}
function wkw(P,K){var a=P._x1-P._x0;return a?(3*(P._y1-P._y0)/a-K)/2:K}
function Cz3(P,K,a){var Go=P._x0,S2=P._x1,df=P._y1,To=(S2-Go)/3;P._context.bezierCurveTo(Go+To,P._y0+To*K,S2-To,df-To*a,S2,df)}
function ir2(P){this._context=P}
function hnp(P){this._context=P}
function Hm(P,K,a){this.k=P;this.x=K;this.y=a}
(function(P){P.length===1&&(P=H(P));return{left:function(K,a,Go,S2){Go==null&&(Go=0);S2==null&&(S2=K.length);for(;Go<S2;){var df=Go+S2>>>1;P(K[df],a)<0?Go=df+1:S2=df}return Go},
right:function(K,a,Go,S2){Go==null&&(Go=0);S2==null&&(S2=K.length);for(;Go<S2;){var df=Go+S2>>>1;P(K[df],a)>0?S2=df:Go=df+1}return Go}}})(G);
var $Hm={value:function(){}};
Q.prototype=Z.prototype={constructor:Q,on:function(P,K){var a=this._,Go=p(P+"",a),S2,df=-1,To=Go.length;if(arguments.length<2)for(;++df<To;){var rf;if(rf=S2=(P=Go[df]).type){a:{rf=a[S2];for(var la=0,Gx=rf.length;la<Gx;++la)if((S2=rf[la]).name===P.name){S2=S2.value;break a}S2=void 0}rf=S2}if(rf)return S2}else{if(K!=null&&typeof K!=="function")throw Error("De`"+K);for(;++df<To;)if(S2=(P=Go[df]).type)a[S2]=l(a[S2],P.name,K);else if(K==null)for(S2 in a)a[S2]=l(a[S2],P.name,null);return this}},
copy:function(){var P={},K=this._,a;for(a in K)P[a]=K[a].slice();return new Q(P)},
call:function(P,K){if((S2=arguments.length-2)>0)for(var a=Array(S2),Go=0,S2,df;Go<S2;++Go)a[Go]=arguments[Go+2];if(!this._.hasOwnProperty(P))throw Error("xe`"+P);df=this._[P];Go=0;for(S2=df.length;Go<S2;++Go)df[Go].value.apply(K,a)},
apply:function(P,K,a){if(!this._.hasOwnProperty(P))throw Error("xe`"+P);P=this._[P];for(var Go=0,S2=P.length;Go<S2;++Go)P[Go].value.apply(K,a)}};
var Al={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/"},CUw=function(P){return function(){return this.matches(P)}};
if(typeof document!=="undefined"){var sZ=document.documentElement;if(!sZ.matches){var K9k=sZ.webkitMatchesSelector||sZ.msMatchesSelector||sZ.mozMatchesSelector||sZ.oMatchesSelector;CUw=function(P){return function(){return K9k.call(this,P)}}}}var iB2=CUw;
n.prototype={constructor:n,appendChild:function(P){return this._parent.insertBefore(P,this._next)},
insertBefore:function(P,K){return this._parent.insertBefore(P,K)},
querySelector:function(P){return this._parent.querySelector(P)},
querySelectorAll:function(P){return this._parent.querySelectorAll(P)}};
var y4w={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(y4w={mouseenter:"mouseover",mouseleave:"mouseout"}));var X5L=[null];Bd.prototype=HD.prototype={constructor:Bd,select:function(P){typeof P!=="function"&&(P=d(P));for(var K=this._groups,a=K.length,Go=Array(a),S2=0;S2<a;++S2)for(var df=K[S2],To=df.length,rf=Go[S2]=Array(To),la,Gx,It=0;It<To;++It)(la=df[It])&&(Gx=P.call(la,la.__data__,It,df))&&("__data__"in la&&(Gx.__data__=la.__data__),rf[It]=Gx);return new Bd(Go,
this._parents)},
filter:function(P){typeof P!=="function"&&(P=iB2(P));for(var K=this._groups,a=K.length,Go=Array(a),S2=0;S2<a;++S2)for(var df=K[S2],To=df.length,rf=Go[S2]=[],la,Gx=0;Gx<To;++Gx)(la=df[Gx])&&P.call(la,la.__data__,Gx,df)&&rf.push(la);return new Bd(Go,this._parents)},
data:function(P,K){if(!P)return PD=Array(this.size()),Gx=-1,this.each(function(FM){PD[++Gx]=FM}),PD;
var a=K?M:W,Go=this._parents,S2=this._groups;typeof P!=="function"&&(P=c(P));for(var df=S2.length,To=Array(df),rf=Array(df),la=Array(df),Gx=0;Gx<df;++Gx){var It=Go[Gx],kw=S2[Gx],xw=kw.length,PD=P.call(It,It&&It.__data__,Gx,Go),Xx=PD.length,Rs=rf[Gx]=Array(Xx),zO=To[Gx]=Array(Xx);xw=la[Gx]=Array(xw);a(It,kw,Rs,zO,xw,PD,K);kw=It=0;for(var ZY;It<Xx;++It)if(xw=Rs[It]){for(It>=kw&&(kw=It+1);!(ZY=zO[kw])&&++kw<Xx;);xw._next=ZY||null}}To=new Bd(To,Go);To._enter=rf;To._exit=la;return To},
enter:function(){return new Bd(this._enter||this._groups.map(e),this._parents)},
exit:function(){return new Bd(this._exit||this._groups.map(e),this._parents)},
merge:function(P){var K=this._groups;P=P._groups;for(var a=K.length,Go=Math.min(a,P.length),S2=Array(a),df=0;df<Go;++df)for(var To=K[df],rf=P[df],la=To.length,Gx=S2[df]=Array(la),It,kw=0;kw<la;++kw)if(It=To[kw]||rf[kw])Gx[kw]=It;for(;df<a;++df)S2[df]=K[df];return new Bd(S2,this._parents)},
order:function(){for(var P=this._groups,K=-1,a=P.length;++K<a;)for(var Go=P[K],S2=Go.length-1,df=Go[S2],To;--S2>=0;)if(To=Go[S2])df&&df!==To.nextSibling&&df.parentNode.insertBefore(To,df),df=To;return this},
sort:function(P){function K(kw,xw){return kw&&xw?P(kw.__data__,xw.__data__):!kw-!xw}
P||(P=r);for(var a=this._groups,Go=a.length,S2=Array(Go),df=0;df<Go;++df){for(var To=a[df],rf=To.length,la=S2[df]=Array(rf),Gx,It=0;It<rf;++It)if(Gx=To[It])la[It]=Gx;la.sort(K)}return(new Bd(S2,this._parents)).order()},
call:function(){var P=arguments[0];arguments[0]=this;P.apply(null,arguments);return this},
nodes:function(){var P=Array(this.size()),K=-1;this.each(function(){P[++K]=this});
return P},
node:function(){for(var P=this._groups,K=0,a=P.length;K<a;++K)for(var Go=P[K],S2=0,df=Go.length;S2<df;++S2){var To=Go[S2];if(To)return To}return null},
size:function(){var P=0;this.each(function(){++P});
return P},
empty:function(){return!this.node()},
each:function(P){for(var K=this._groups,a=0,Go=K.length;a<Go;++a)for(var S2=K[a],df=0,To=S2.length,rf;df<To;++df)(rf=S2[df])&&P.call(rf,rf.__data__,df,S2);return this},
attr:function(P,K){var a=q(P);if(arguments.length<2){var Go=this.node();return a.local?Go.getAttributeNS(a.space,a.local):Go.getAttribute(a)}return this.each((K==null?a.local?x:w:typeof K==="function"?a.local?H3:L:a.local?R:U)(a,K))},
style:function(P,K,a){return arguments.length>1?this.each((K==null?qX:typeof K==="function"?fW:B3)(P,K,a==null?"":a)):e2(this.node(),P)},
property:function(P,K){return arguments.length>1?this.each((K==null?$R:typeof K==="function"?W3:ie)(P,K)):this.node()[P]},
text:function(P){return arguments.length?this.each(P==null?DT:(typeof P==="function"?zx:UR)(P)):this.node().textContent},
html:function(P){return arguments.length?this.each(P==null?be:(typeof P==="function"?rG:J_)(P)):this.node().innerHTML},
append:function(P){var K=typeof P==="function"?P:t(P);return this.select(function(){return this.appendChild(K.apply(this,arguments))})},
insert:function(P,K){var a=typeof P==="function"?P:t(P),Go=K==null?Kw:typeof K==="function"?K:d(K);return this.select(function(){return this.insertBefore(a.apply(this,arguments),Go.apply(this,arguments)||null)})},
remove:function(){return this.each(cD)},
clone:function(P){return this.select(P?gf:ec)},
datum:function(P){return arguments.length?this.property("__data__",P):this.node().__data__},
on:function(P,K,a){var Go=Qh(P+""),S2=Go.length,df;if(arguments.length<2){var To=this.node().__on;if(To)for(var rf=0,la=To.length,Gx;rf<la;++rf){var It=0;for(Gx=To[rf];It<S2;++It)if((df=Go[It]).type===Gx.type&&df.name===Gx.name)return Gx.value}}else{To=K?Zt:$w;a==null&&(a=!1);for(It=0;It<S2;++It)this.each(To(Go[It],K,a));return this}},
dispatch:function(P,K){return this.each((typeof K==="function"?t_:N7)(P,K))}};
var c4c=0;xR.prototype=function(){return new xR}.prototype={constructor:xR,
get:function(P){for(var K=this._;!(K in P);)if(!(P=P.parentNode))return;return P[K]},
set:function(P,K){return P[this._]=K},
remove:function(P){return this._ in P&&delete P[this._]},
toString:function(){return this._}};
var g4=1/.7,TQi=/^#([0-9a-f]{3})$/,fio=/^#([0-9a-f]{6})$/,vOA=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),WSj=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),z4q=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),KSt=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*\\)$"),
MEq=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),jat=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*\\)$"),oOa={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};
V4(E_,Ma,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
V4(vD,Yw,nm(E_,{brighter:function(P){P=P==null?g4:Math.pow(g4,P);return new vD(this.r*P,this.g*P,this.b*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new vD(this.r*P,this.g*P,this.b*P,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"#"+gk(this.r)+gk(this.g)+gk(this.b)},
toString:function(){var P=this.opacity;P=isNaN(P)?1:Math.max(0,Math.min(1,P));return(P===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))+(P===1?")":", "+P+")")}}));
V4(Nj,EA,nm(E_,{brighter:function(P){P=P==null?g4:Math.pow(g4,P);return new Nj(this.h,this.s,this.l*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new Nj(this.h,this.s,this.l*P,this.opacity)},
rgb:function(){var P=this.h%360+(this.h<0)*360,K=this.l,a=K+(K<.5?K:1-K)*(isNaN(P)||isNaN(this.s)?0:this.s);K=2*K-a;return new vD(q4(P>=240?P-240:P+120,K,a),q4(P,K,a),q4(P<120?P+240:P-120,K,a),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 mHT=Math.PI/180,NQ_=180/Math.PI,R47=4/29,Zm=6/29,UHN=3*Zm*Zm,Pzs=Zm*Zm*Zm;V4(KW,function(P,K,a,Go){return arguments.length===1?ty(P):new KW(P,K,a,Go==null?1:Go)},nm(E_,{brighter:function(P){return new KW(this.l+18*(P==null?1:P),this.a,this.b,this.opacity)},
darker:function(P){return new KW(this.l-18*(P==null?1:P),this.a,this.b,this.opacity)},
rgb:function(){var P=(this.l+16)/116,K=isNaN(this.a)?P:P+this.a/500,a=isNaN(this.b)?P:P-this.b/200;K=.96422*NX(K);P=1*NX(P);a=.82521*NX(a);return new vD(Xa(3.1338561*K-1.6168667*P-.4906146*a),Xa(-.9787684*K+1.9161415*P+.033454*a),Xa(.0719453*K-.2289914*P+1.4052427*a),this.opacity)}}));
V4(fw,jc,nm(E_,{brighter:function(P){return new fw(this.h,this.c,this.l+18*(P==null?1:P),this.opacity)},
darker:function(P){return new fw(this.h,this.c,this.l-18*(P==null?1:P),this.opacity)},
rgb:function(){return ty(this).rgb()}}));
var A4a=1.78277*-.29227-.1347134789;V4(Oq,Tx,nm(E_,{brighter:function(P){P=P==null?g4:Math.pow(g4,P);return new Oq(this.h,this.s,this.l*P,this.opacity)},
darker:function(P){P=P==null?.7:Math.pow(.7,P);return new Oq(this.h,this.s,this.l*P,this.opacity)},
rgb:function(){var P=isNaN(this.h)?0:(this.h+120)*mHT,K=+this.l,a=isNaN(this.s)?0:this.s*K*(1-K),Go=Math.cos(P);P=Math.sin(P);return new vD(255*(K+a*(-.14861*Go+1.78277*P)),255*(K+a*(-.29227*Go+-.90649*P)),255*(K+1.97294*Go*a),this.opacity)}}));
var FSw=function a(K){function Go(df,To){var rf=S2((df=Yw(df)).r,(To=Yw(To)).r),la=S2(df.g,To.g),Gx=S2(df.b,To.b),It=FN(df.opacity,To.opacity);return function(kw){df.r=rf(kw);df.g=la(kw);df.b=Gx(kw);df.opacity=It(kw);return df+""}}
var S2=xF(K);Go.gamma=a;return Go}(1),zgA=gj(function(K){var a=K.length-1;
return function(Go){var S2=Go<=0?Go=0:Go>=1?(Go=1,a-1):Math.floor(Go*a),df=K[S2],To=K[S2+1];return nq((Go-S2/a)*a,S2>0?K[S2-1]:2*df-To,df,To,S2<a-1?K[S2+2]:2*To-df)}});
gj(function(K){var a=K.length;return function(Go){var S2=Math.floor(((Go%=1)<0?++Go:Go)*a);return nq((Go-S2/a)*a,K[(S2+a-1)%a],K[S2%a],K[(S2+1)%a],K[(S2+2)%a])}});
var e4j=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nOj=new RegExp(e4j.source,"g"),xHN=180/Math.PI,Ore={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Zd,aij,OBN,oJ2,Mra=oj(function(K){if(K==="none")return Ore;Zd||(Zd=document.createElement("DIV"),aij=document.documentElement,OBN=document.defaultView);Zd.style.transform=K;K=OBN.getComputedStyle(aij.appendChild(Zd),null).getPropertyValue("transform");aij.removeChild(Zd);K=K.slice(7,-1).split(",");return WD(+K[0],+K[1],+K[2],+K[3],
+K[4],+K[5])},"px, ","px)","deg)"),jrA=oj(function(K){if(K==null)return Ore;
oJ2||(oJ2=document.createElementNS("http://www.w3.org/2000/svg","g"));oJ2.setAttribute("transform",K);if(!(K=oJ2.transform.baseVal.consolidate()))return Ore;K=K.matrix;return WD(K.a,K.b,K.c,K.d,K.e,K.f)},", ",")",")");
BD(ay);BD(FN);kr(ay);kr(FN);Yr(ay);var y4R=Yr(FN),QW=0,A8=0,L4=0,Pcf,xB,jpM=0,WR=0,Mye=0,NF=typeof performance==="object"&&performance.now?performance:Date,LST=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(K){setTimeout(K,17)};
a0.prototype=Ok.prototype={constructor:a0,restart:function(K,a,Go){if(typeof K!=="function")throw new TypeError("Ee");Go=(Go==null?AR():+Go)+(a==null?0:+a);this._next||xB===this||(xB?xB._next=this:Pcf=this,xB=this);this._call=K;this._time=Go;yd()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,yd())}};
var w5s=Z("start","end","interrupt"),h4h=[],PAi=HD.prototype.constructor,aKp=0,Id=HD.prototype;$g.prototype=function(K){return HD().transition(K)}.prototype={constructor:$g,
select:function(K){var a=this._name,Go=this._id;typeof K!=="function"&&(K=d(K));for(var S2=this._groups,df=S2.length,To=Array(df),rf=0;rf<df;++rf)for(var la=S2[rf],Gx=la.length,It=To[rf]=Array(Gx),kw,xw,PD=0;PD<Gx;++PD)(kw=la[PD])&&(xw=K.call(kw,kw.__data__,PD,la))&&("__data__"in kw&&(xw.__data__=kw.__data__),It[PD]=xw,VER(It[PD],a,Go,PD,It,mD(kw,Go)));return new $g(To,this._parents,a,Go)},
filter:function(K){typeof K!=="function"&&(K=iB2(K));for(var a=this._groups,Go=a.length,S2=Array(Go),df=0;df<Go;++df)for(var To=a[df],rf=To.length,la=S2[df]=[],Gx,It=0;It<rf;++It)(Gx=To[It])&&K.call(Gx,Gx.__data__,It,To)&&la.push(Gx);return new $g(S2,this._parents,this._name,this._id)},
merge:function(K){if(K._id!==this._id)throw Error();var a=this._groups;K=K._groups;for(var Go=a.length,S2=Math.min(Go,K.length),df=Array(Go),To=0;To<S2;++To)for(var rf=a[To],la=K[To],Gx=rf.length,It=df[To]=Array(Gx),kw,xw=0;xw<Gx;++xw)if(kw=rf[xw]||la[xw])It[xw]=kw;for(;To<Go;++To)df[To]=a[To];return new $g(df,this._parents,this._name,this._id)},
selection:function(){return new PAi(this._groups,this._parents)},
transition:function(){for(var K=this._name,a=this._id,Go=++aKp,S2=this._groups,df=S2.length,To=0;To<df;++To)for(var rf=S2[To],la=rf.length,Gx,It=0;It<la;++It)if(Gx=rf[It]){var kw=mD(Gx,a);VER(Gx,K,Go,It,rf,{time:kw.time+kw.delay+kw.duration,delay:0,duration:kw.duration,ease:kw.ease})}return new $g(S2,this._parents,K,Go)},
call:Id.call,nodes:Id.nodes,node:Id.node,size:Id.size,empty:Id.empty,each:Id.each,on:function(K,a){var Go=this._id;return arguments.length<2?mD(this.node(),Go).on.on(K):this.each(bri(Go,K,a))},
attr:function(K,a){var Go=q(K),S2=Go==="transform"?jrA:YpR;return this.attrTween(K,typeof a==="function"?(Go.local?UHi:mHt)(Go,S2,X5b(this,"attr."+K,a)):a==null?(Go.local?aii:Oro)(Go):(Go.local?oOo:y4A)(Go,S2,a+""))},
attrTween:function(K,a){var Go="attr."+K;if(arguments.length<2)return(Go=this.tween(Go))&&Go._value;if(a==null)return this.tween(Go,null);if(typeof a!=="function")throw Error();var S2=q(K);return this.tween(Go,(S2.local?R4a:NQ6)(S2,a))},
style:function(K,a,Go){var S2=K==="transform"?Mra:YpR;return a==null?this.styleTween(K,HBq(K,S2)).on("end.style."+K,sPA(K)):this.styleTween(K,typeof a==="function"?QPs(K,S2,X5b(this,"style."+K,a)):ZBh(K,S2,a+""),Go)},
styleTween:function(K,a,Go){var S2="style."+K;if(arguments.length<2)return(S2=this.tween(S2))&&S2._value;if(a==null)return this.tween(S2,null);if(typeof a!=="function")throw Error();return this.tween(S2,pkL(K,a,Go==null?"":Go))},
text:function(K){return this.tween("text",typeof K==="function"?gEq(X5b(this,"text",K)):lKk(K==null?"":K+""))},
remove:function(){return this.on("end.remove",GVa(this._id))},
tween:function(K,a){var Go=this._id;if(arguments.length<2){Go=mD(this.node(),Go).tween;for(var S2=0,df=Go.length,To;S2<df;++S2)if((To=Go[S2]).name===K)return To.value;return null}return this.each((a==null?CzD:irc)(Go,K,a))},
delay:function(K){var a=this._id;return arguments.length?this.each((typeof K==="function"?A4o:xHi)(a,K)):mD(this.node(),a).delay},
duration:function(K){var a=this._id;return arguments.length?this.each((typeof K==="function"?LSt:EOL)(a,K)):mD(this.node(),a).duration},
ease:function(K){var a=this._id;return arguments.length?this.each(Ypq(a,K)):mD(this.node(),a).ease}};
var oOe={time:null,delay:0,duration:250,ease:function(K){return((K*=2)<=1?K*K*K:(K-=2)*K*K+2)/2}};
HD.prototype.transition=function(K){var a;if(K instanceof $g){var Go=K._id;K=K._name}else Go=++aKp,(a=oOe).time=AR(),K=K==null?null:K+"";for(var S2=this._groups,df=S2.length,To=0;To<df;++To)for(var rf=S2[To],la=rf.length,Gx,It=0;It<la;++It)if(Gx=rf[It]){var kw=Gx,xw=K,PD=Go,Xx=It,Rs=rf,zO;if(!(zO=a))a:{zO=void 0;for(var ZY=Go;!(zO=Gx.__transition)||!(zO=zO[ZY]);)if(!(Gx=Gx.parentNode)){zO=(oOe.time=AR(),oOe);break a}}VER(kw,xw,PD,Xx,Rs,zO)}return new $g(S2,this._parents,K,Go)};
["e","w"].map(c42);["n","s"].map(c42);"n e s w nw ne se sw".split(" ").map(c42);TQj.prototype=function(){return new TQj}.prototype={constructor:TQj,
moveTo:function(K,a){this._+="M"+(this._x0=this._x1=+K)+","+(this._y0=this._y1=+a)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(K,a){this._+="L"+(this._x1=+K)+","+(this._y1=+a)},
bezierCurveTo:function(K,a,Go,S2,df,To){this._+="C"+ +K+","+ +a+","+ +Go+","+ +S2+","+(this._x1=+df)+","+(this._y1=+To)},
rect:function(K,a,Go,S2){this._+="M"+(this._x0=this._x1=+K)+","+(this._y0=this._y1=+a)+"h"+ +Go+"v"+ +S2+"h"+-Go+"Z"},
toString:function(){return this._}};
rLj.prototype=brN.prototype={constructor:rLj,has:function(K){return" "+K in this},
get:function(K){return this[" "+K]},
set:function(K,a){this[" "+K]=a;return this},
remove:function(K){K=" "+K;return K in this&&delete this[K]},
clear:function(){for(var K in this)K[0]===" "&&delete this[K]},
keys:function(){var K=[],a;for(a in this)a[0]===" "&&K.push(a.slice(1));return K},
values:function(){var K=[],a;for(a in this)a[0]===" "&&K.push(this[a]);return K},
entries:function(){var K=[],a;for(a in this)a[0]===" "&&K.push({key:a.slice(1),value:this[a]});return K},
size:function(){var K=0,a;for(a in this)a[0]===" "&&++K;return K},
empty:function(){for(var K in this)if(K[0]===" ")return!1;return!0},
each:function(K){for(var a in this)a[0]===" "&&K(this[a],a.slice(1),this)}};
var jY=brN.prototype;wWf.prototype=function(K,a){var Go=new wWf;if(K instanceof wWf)K.each(function(To){Go.add(To)});
else if(K){var S2=-1,df=K.length;if(a==null)for(;++S2<df;)Go.add(K[S2]);else for(;++S2<df;)Go.add(a(K[S2],S2,K))}return Go}.prototype={constructor:wWf,
has:jY.has,add:function(K){this[" "+K]=K;return this},
remove:jY.remove,clear:jY.clear,values:jY.keys,size:jY.size,empty:jY.empty,each:jY.each};var sPw={},fie={},ri8=HBR(",").parse,wrs=HBR("\t").parse;ZB4(ri8);ZB4(wrs);var L3=function(K,a,Go){a=new vOR(a==null?u_m:a,Go==null?BVc:Go,NaN,NaN,NaN,NaN);return K==null?a:a.addAll(K)}.prototype=vOR.prototype;
L3.copy=function(){var K=new vOR(this._x,this._y,this._x0,this._y0,this._x1,this._y1),a=this._root,Go,S2;if(!a)return K;if(!a.length)return K._root=pka(a),K;for(Go=[{source:a,target:K._root=Array(4)}];a=Go.pop();)for(var df=0;df<4;++df)if(S2=a.source[df])S2.length?Go.push({source:S2,target:a.target[df]=Array(4)}):a.target[df]=pka(S2);return K};
L3.add=function(K){var a=+this._x.call(null,K),Go=+this._y.call(null,K);return QP2(this.cover(a,Go),a,Go,K)};
L3.addAll=function(K){var a,Go,S2=K.length,df,To,rf=Array(S2),la=Array(S2),Gx=Infinity,It=Infinity,kw=-Infinity,xw=-Infinity;for(Go=0;Go<S2;++Go)isNaN(df=+this._x.call(null,a=K[Go]))||isNaN(To=+this._y.call(null,a))||(rf[Go]=df,la[Go]=To,df<Gx&&(Gx=df),df>kw&&(kw=df),To<It&&(It=To),To>xw&&(xw=To));kw<Gx&&(Gx=this._x0,kw=this._x1);xw<It&&(It=this._y0,xw=this._y1);this.cover(Gx,It).cover(kw,xw);for(Go=0;Go<S2;++Go)QP2(this,rf[Go],la[Go],K[Go]);return this};
L3.cover=function(K,a){if(isNaN(K=+K)||isNaN(a=+a))return this;var Go=this._x0,S2=this._y0,df=this._x1,To=this._y1;if(isNaN(Go))df=(Go=Math.floor(K))+1,To=(S2=Math.floor(a))+1;else if(Go>K||K>df||S2>a||a>To){var rf=df-Go,la=this._root,Gx;switch(Gx=(a<(S2+To)/2)<<1|K<(Go+df)/2){case 0:do{var It=Array(4);It[Gx]=la;la=It}while(rf*=2,df=Go+rf,To=S2+rf,K>df||a>To);break;case 1:do It=Array(4),It[Gx]=la,la=It;while(rf*=2,Go=df-rf,To=S2+rf,Go>K||a>To);break;case 2:do It=Array(4),It[Gx]=la,la=It;while(rf*=
2,df=Go+rf,S2=To-rf,K>df||S2>a);break;case 3:do It=Array(4),It[Gx]=la,la=It;while(rf*=2,Go=df-rf,S2=To-rf,Go>K||S2>a)}this._root&&this._root.length&&(this._root=la)}else return this;this._x0=Go;this._y0=S2;this._x1=df;this._y1=To;return this};
L3.data=function(){var K=[];this.visit(function(a){if(!a.length){do K.push(a.data);while(a=a.next)}});
return K};
L3.extent=function(K){return arguments.length?this.cover(+K[0][0],+K[0][1]).cover(+K[1][0],+K[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
L3.find=function(K,a,Go){var S2=this._x0,df=this._y0,To,rf,la,Gx,It=this._x1,kw=this._y1,xw=[],PD=this._root,Xx;PD&&xw.push(new xT(PD,S2,df,It,kw));Go==null?Go=Infinity:(S2=K-Go,df=a-Go,It=K+Go,kw=a+Go,Go*=Go);for(;Xx=xw.pop();)if(!(!(PD=Xx.node)||(To=Xx.x0)>It||(rf=Xx.y0)>kw||(la=Xx.x1)<S2||(Gx=Xx.y1)<df))if(PD.length){Xx=(To+la)/2;var Rs=(rf+Gx)/2;xw.push(new xT(PD[3],Xx,Rs,la,Gx),new xT(PD[2],To,Rs,Xx,Gx),new xT(PD[1],Xx,rf,la,Rs),new xT(PD[0],To,rf,Xx,Rs));if(PD=(a>=Rs)<<1|K>=Xx)Xx=xw[xw.length-
1],xw[xw.length-1]=xw[xw.length-1-PD],xw[xw.length-1-PD]=Xx}else if(Xx=K-+this._x.call(null,PD.data),Rs=a-+this._y.call(null,PD.data),Xx=Xx*Xx+Rs*Rs,Xx<Go){var zO=Math.sqrt(Go=Xx);S2=K-zO;df=a-zO;It=K+zO;kw=a+zO;zO=PD.data}return zO};
L3.remove=function(K){if(isNaN(Gx=+this._x.call(null,K))||isNaN(It=+this._y.call(null,K)))return this;var a,Go=this._root,S2,df=this._x0,To=this._y0,rf=this._x1,la=this._y1,Gx,It,kw,xw,PD,Xx,Rs;if(!Go)return this;if(Go.length)for(;;){(PD=Gx>=(kw=(df+rf)/2))?df=kw:rf=kw;(Xx=It>=(xw=(To+la)/2))?To=xw:la=xw;if(!(a=Go,Go=Go[Rs=Xx<<1|PD]))return this;if(!Go.length)break;if(a[Rs+1&3]||a[Rs+2&3]||a[Rs+3&3]){var zO=a;var ZY=Rs}}for(;Go.data!==K;)if(!(S2=Go,Go=Go.next))return this;(K=Go.next)&&delete Go.next;
if(S2)return K?S2.next=K:delete S2.next,this;if(!a)return this._root=K,this;K?a[Rs]=K:delete a[Rs];(Go=a[0]||a[1]||a[2]||a[3])&&Go===(a[3]||a[2]||a[1]||a[0])&&!Go.length&&(zO?zO[ZY]=Go:this._root=Go);return this};
L3.removeAll=function(K){for(var a=0,Go=K.length;a<Go;++a)this.remove(K[a]);return this};
L3.root=function(){return this._root};
L3.size=function(){var K=0;this.visit(function(a){if(!a.length){do++K;while(a=a.next)}});
return K};
L3.visit=function(K){var a=[],Go,S2=this._root,df,To,rf,la,Gx;for(S2&&a.push(new xT(S2,this._x0,this._y0,this._x1,this._y1));Go=a.pop();)if(!K(S2=Go.node,To=Go.x0,rf=Go.y0,la=Go.x1,Gx=Go.y1)&&S2.length){Go=(To+la)/2;var It=(rf+Gx)/2;(df=S2[3])&&a.push(new xT(df,Go,It,la,Gx));(df=S2[2])&&a.push(new xT(df,To,It,Go,Gx));(df=S2[1])&&a.push(new xT(df,Go,rf,la,It));(df=S2[0])&&a.push(new xT(df,To,rf,Go,It))}};
L3.visitAfter=function(K){var a=[],Go=[],S2;for(this._root&&a.push(new xT(this._root,this._x0,this._y0,this._x1,this._y1));S2=a.pop();){var df=S2.node;if(df.length){var To,rf=S2.x0,la=S2.y0,Gx=S2.x1,It=S2.y1,kw=(rf+Gx)/2,xw=(la+It)/2;(To=df[0])&&a.push(new xT(To,rf,la,kw,xw));(To=df[1])&&a.push(new xT(To,kw,la,Gx,xw));(To=df[2])&&a.push(new xT(To,rf,xw,kw,It));(To=df[3])&&a.push(new xT(To,kw,xw,Gx,It))}Go.push(S2)}for(;S2=Go.pop();)K(S2.node,S2.x0,S2.y0,S2.x1,S2.y1);return this};
L3.x=function(K){return arguments.length?(this._x=K,this):this._x};
L3.y=function(K){return arguments.length?(this._y=K,this):this._y};
var Dtj=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;WSu.prototype=z4j.prototype;z4j.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 qn_,Sn4={"%":function(K,a){return(K*100).toFixed(a)},
b:function(K){return Math.round(K).toString(2)},
c:function(K){return K+""},
d:function(K){return Math.round(K).toString(10)},
e:function(K,a){return K.toExponential(a)},
f:function(K,a){return K.toFixed(a)},
g:function(K,a){return K.toPrecision(a)},
o:function(K){return Math.round(K).toString(8)},
p:function(K,a){return lKG(K*100,a)},
r:lKG,s:function(K,a){var Go=hlM(K,a);if(!Go)return K+"";var S2=Go[0];Go=Go[1];Go=Go-(qn_=Math.max(-8,Math.min(8,Math.floor(Go/3)))*3)+1;var df=S2.length;return Go===df?S2:Go>df?S2+Array(Go-df+1).join("0"):Go>0?S2.slice(0,Go)+"."+S2.slice(Go):"0."+Array(1-Go).join("0")+hlM(K,Math.max(0,a+Go-1))[0]},
X:function(K){return Math.round(K).toString(16).toUpperCase()},
x:function(K){return Math.round(K).toString(16)}},IKw="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),hgs;
(function(K){return hgs=dtt(K)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Uy.prototype={constructor:Uy,reset:function(){this.s=this.t=0},
add:function(K){u_w(m12,K,this.t);u_w(this,m12.s,this.s);this.s?this.t+=m12.t:this.s=m12.t},
valueOf:function(){return this.s}};
var m12=new Uy,ES=Math.PI,xG=ES/2,yDw=ES/4,CA8=ES*2,mHU=ES/180,XY=Math.abs,UHj=Math.atan,dtT=Math.atan2,LA=Math.cos,Mv=Math.sin,iTe=Math.sqrt;new Uy;new Uy;new Uy;var R4X=new Uy;(function(K,a,Go,S2){return function(df){function To(bV,XG){K(bV,XG)&&df.point(bV,XG)}
function rf(bV,XG){PD.point(bV,XG)}
function la(){pG.point=rf;PD.lineStart()}
function Gx(){pG.point=To;PD.lineEnd()}
function It(bV,XG){Xs.push([bV,XG]);Rs.point(bV,XG)}
function kw(){Rs.lineStart();Xs=[]}
function xw(){It(Xs[0][0],Xs[0][1]);Rs.lineEnd();var bV=Rs.clean(),XG=Xx.result(),YY=XG.length,ey;Xs.pop();ZY.push(Xs);Xs=null;if(YY)if(bV&1){if(YY=XG[0],(XG=YY.length-1)>0){zO||(df.polygonStart(),zO=!0);df.lineStart();for(bV=0;bV<XG;++bV)df.point((ey=YY[bV])[0],ey[1]);df.lineEnd()}}else YY>1&&bV&2&&XG.push(XG.pop().concat(XG.shift())),FM.push(XG.filter($ti))}
var PD=a(df),Xx=nEq(),Rs=a(Xx),zO=!1,ZY,FM,Xs,pG={point:To,lineStart:la,lineEnd:Gx,polygonStart:function(){pG.point=It;pG.lineStart=kw;pG.lineEnd=xw;FM=[];ZY=[]},
polygonEnd:function(){pG.point=To;pG.lineStart=la;pG.lineEnd=Gx;var bV=FM,XG=bV.length;var YY=-1;for(var ey=0,A6,$Y;++YY<XG;)ey+=bV[YY].length;for(A6=Array(ey);--XG>=0;)for($Y=bV[XG],YY=$Y.length;--YY>=0;)A6[--ey]=$Y[YY];FM=A6;bV=ZY;XG=S2[0];ey=S2[1];var S7=Mv(ey);YY=[Mv(XG),-LA(XG),0];$Y=A6=0;R4X.reset();S7===1?ey=xG+1E-6:S7===-1&&(ey=-xG-1E-6);S7=0;for(var h6=bV.length;S7<h6;++S7)if(L1=(Ll=bV[S7]).length){var Ll,L1,Qs=Ll[L1-1],VD=Qs[0],Ts=Qs[1]/2+yDw,U1X=Mv(Ts),oE_=LA(Ts);for(Ts=0;Ts<L1;++Ts,VD=
NQM,U1X=mta,oE_=QJ,Qs=RlM){var RlM=Ll[Ts],NQM=RlM[0];QJ=RlM[1]/2+yDw;var mta=Mv(QJ),QJ=LA(QJ),qD=NQM-VD,A4e=qD>=0?1:-1,xHj=A4e*qD,NM2=xHj>ES;U1X*=mta;R4X.add(dtT(U1X*A4e*Mv(xHj),oE_*QJ+U1X*LA(xHj)));A6+=NM2?qD+A4e*CA8:qD;NM2^VD>=XG^NQM>=XG&&(Qs=JDp(BVp(Qs),BVp(RlM)),ti2(Qs),VD=JDp(YY,Qs),ti2(VD),VD=(NM2^qD>=0?-1:1)*Ccb(VD[2]),ey>VD||ey===VD&&(Qs[0]||Qs[1]))&&($Y+=NM2^qD>=0?1:-1)}}bV=(A6<-1E-6||A6<1E-6&&R4X<-1E-6)^$Y&1;FM.length?(zO||(df.polygonStart(),zO=!0),Vi8(FM,Xk8,bV,Go,df)):bV&&(zO||(df.polygonStart(),
zO=!0),df.lineStart(),Go(null,null,1,df),df.lineEnd());zO&&(df.polygonEnd(),zO=!1);FM=ZY=null},
sphere:function(){df.polygonStart();df.lineStart();Go(null,null,1,df);df.lineEnd();df.polygonEnd()}};
return pG}})(function(){return!0},function(K){var a=NaN,Go=NaN,S2=NaN,df;
return{lineStart:function(){K.lineStart();df=1},
point:function(To,rf){var la=To>0?ES:-ES,Gx=XY(To-a);if(XY(Gx-ES)<1E-6)K.point(a,Go=(Go+rf)/2>0?xG:-xG),K.point(S2,Go),K.lineEnd(),K.lineStart(),K.point(la,Go),K.point(To,Go),df=0;else if(S2!==la&&Gx>=ES){XY(a-S2)<1E-6&&(a-=S2*1E-6);XY(To-la)<1E-6&&(To-=la*1E-6);Gx=a;var It=Go,kw=To,xw,PD,Xx=Mv(Gx-kw);Go=XY(Xx)>1E-6?UHj((Mv(It)*(PD=LA(rf))*Mv(kw)-Mv(rf)*(xw=LA(It))*Mv(Gx))/(xw*PD*Xx)):(It+rf)/2;K.point(S2,Go);K.lineEnd();K.lineStart();K.point(la,Go);df=0}K.point(a=To,Go=rf);S2=la},
lineEnd:function(){K.lineEnd();a=Go=NaN},
clean:function(){return 2-df}}},function(K,a,Go,S2){K==null?(Go*=xG,S2.point(-ES,Go),S2.point(0,Go),S2.point(ES,Go),S2.point(ES,0),S2.point(ES,-Go),S2.point(0,-Go),S2.point(-ES,-Go),S2.point(-ES,0),S2.point(-ES,Go)):XY(K[0]-a[0])>1E-6?(K=K[0]<a[0]?ES:-ES,Go=Go*K/2,S2.point(-K,Go),S2.point(0,Go),S2.point(K,Go)):S2.point(a[0],a[1])},[-ES,
-xG]);new Uy;new Uy;new Uy;new Uy;KSU.prototype={constructor:KSU,point:function(K,a){this.stream.point(K,a)},
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()}};
LA(30*mHU);(function(K){return function(a){var Go=new KSU,S2;for(S2 in K)Go[S2]=K[S2];Go.stream=a;return Go}})({point:function(K,a){this.stream.point(K*mHU,a*mHU)}});
Dtt(function(K){return iTe(2/(1+K))}).invert=EG(function(K){return 2*Ccb(K/2)});
Dtt(function(K){return(K=K>1?0:K<-1?ES:Math.acos(K))&&K/Mv(K)}).invert=EG(function(K){return K});
iTe(3);EG(UHj);EG(Ccb);EG(function(K){return 2*UHj(K)});
YB.prototype=en_.prototype={constructor:YB,count:function(){return this.eachAfter(cDq)},
each:function(K){var a,Go=[this],S2;do{var df=Go.reverse();for(Go=[];a=df.pop();)if(K(a),a=a.children){var To=0;for(S2=a.length;To<S2;++To)Go.push(a[To])}}while(Go.length);return this},
eachAfter:function(K){for(var a,Go=[this],S2=[],df,To;a=Go.pop();)if(S2.push(a),a=a.children)for(df=0,To=a.length;df<To;++df)Go.push(a[df]);for(;a=S2.pop();)K(a);return this},
eachBefore:function(K){for(var a,Go=[this],S2;a=Go.pop();)if(K(a),a=a.children)for(S2=a.length-1;S2>=0;--S2)Go.push(a[S2]);return this},
sum:function(K){return this.eachAfter(function(a){for(var Go=+K(a.data)||0,S2=a.children,df=S2&&S2.length;--df>=0;)Go+=S2[df].value;a.value=Go})},
sort:function(K){return this.eachBefore(function(a){a.children&&a.children.sort(K)})},
path:function(K){var a=this;var Go=a;var S2=K;if(Go!==S2){var df=Go.ancestors(),To=S2.ancestors(),rf=null;Go=df.pop();for(S2=To.pop();Go===S2;)rf=Go,Go=df.pop(),S2=To.pop();Go=rf}for(S2=[a];a!==Go;)a=a.parent,S2.push(a);for(a=S2.length;K!==Go;)S2.splice(a,0,K),K=K.parent;return S2},
ancestors:function(){for(var K=this,a=[K];K=K.parent;)a.push(K);return a},
links:function(){var K=this,a=[];K.each(function(Go){Go!==K&&a.push({source:Go.parent,target:Go})});
return a},
copy:function(){return en_(this).eachBefore(vEL)}};
(function(K,a){this._=K;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=a}).prototype=Object.create(YB.prototype);
var MEj=new Date,jaU=new Date,UtN=dj(function(){},function(K,a){K.setTime(+K+a)},function(K,a){return a-K});
UtN.every=function(K){K=Math.floor(K);return isFinite(K)&&K>0?K>1?dj(function(a){a.setTime(Math.floor(a/K)*K)},function(a,Go){a.setTime(+a+Go*K)},function(a,Go){return(Go-a)/K}):UtN:null};
dj(function(K){K.setTime(Math.floor(K/1E3)*1E3)},function(K,a){K.setTime(+K+a*1E3)},function(K,a){return(a-K)/1E3},function(K){return K.getUTCSeconds()});
dj(function(K){K.setTime(Math.floor(K/6E4)*6E4)},function(K,a){K.setTime(+K+a*6E4)},function(K,a){return(a-K)/6E4},function(K){return K.getMinutes()});
dj(function(K){var a=K.getTimezoneOffset()*6E4%36E5;a<0&&(a+=36E5);K.setTime(Math.floor((+K-a)/36E5)*36E5+a)},function(K,a){K.setTime(+K+a*36E5)},function(K,a){return(a-K)/36E5},function(K){return K.getHours()});
var $tN=dj(function(K){K.setHours(0,0,0,0)},function(K,a){K.setDate(K.getDate()+a)},function(K,a){return(a-K-(a.getTimezoneOffset()-K.getTimezoneOffset())*6E4)/864E5},function(K){return K.getDate()-1}),v36=Ke(0),r4R=Ke(1);
Ke(2);Ke(3);var w5v=Ke(4);Ke(5);Ke(6);dj(function(K){K.setDate(1);K.setHours(0,0,0,0)},function(K,a){K.setMonth(K.getMonth()+a)},function(K,a){return a.getMonth()-K.getMonth()+(a.getFullYear()-K.getFullYear())*12},function(K){return K.getMonth()});
var pP=dj(function(K){K.setMonth(0,1);K.setHours(0,0,0,0)},function(K,a){K.setFullYear(K.getFullYear()+a)},function(K,a){return a.getFullYear()-K.getFullYear()},function(K){return K.getFullYear()});
pP.every=function(K){return isFinite(K=Math.floor(K))&&K>0?dj(function(a){a.setFullYear(Math.floor(a.getFullYear()/K)*K);a.setMonth(0,1);a.setHours(0,0,0,0)},function(a,Go){a.setFullYear(a.getFullYear()+Go*K)}):null};
dj(function(K){K.setUTCSeconds(0,0)},function(K,a){K.setTime(+K+a*6E4)},function(K,a){return(a-K)/6E4},function(K){return K.getUTCMinutes()});
dj(function(K){K.setUTCMinutes(0,0,0)},function(K,a){K.setTime(+K+a*36E5)},function(K,a){return(a-K)/36E5},function(K){return K.getUTCHours()});
var Vix=dj(function(K){K.setUTCHours(0,0,0,0)},function(K,a){K.setUTCDate(K.getUTCDate()+a)},function(K,a){return(a-K)/864E5},function(K){return K.getUTCDate()-1}),W9D=My(0),Pzv=My(1);
My(2);My(3);var h4f=My(4);My(5);My(6);dj(function(K){K.setUTCDate(1);K.setUTCHours(0,0,0,0)},function(K,a){K.setUTCMonth(K.getUTCMonth()+a)},function(K,a){return a.getUTCMonth()-K.getUTCMonth()+(a.getUTCFullYear()-K.getUTCFullYear())*12},function(K){return K.getUTCMonth()});
var lh=dj(function(K){K.setUTCMonth(0,1);K.setUTCHours(0,0,0,0)},function(K,a){K.setUTCFullYear(K.getUTCFullYear()+a)},function(K,a){return a.getUTCFullYear()-K.getUTCFullYear()},function(K){return K.getUTCFullYear()});
lh.every=function(K){return isFinite(K=Math.floor(K))&&K>0?dj(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/K)*K);a.setUTCMonth(0,1);a.setUTCHours(0,0,0,0)},function(a,Go){a.setUTCFullYear(a.getUTCFullYear()+Go*K)}):null};
var nER={"-":"",_:" ",0:"0"},cA=/^\s*\d+/,f96=/^%/,Tyq=/[\\^$*+?|[\]().{}]/g,ALu;(function(K){ALu=znm(K);zcN=ALu.utcFormat;Knw=ALu.utcParse;return ALu})({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||zcN("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Knw("%Y-%m-%dT%H:%M:%S.%LZ");d3("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
d3("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");d3("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");d3("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");d3("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");d3("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");d3("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
d3("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");d3("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");d3("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");d3("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");d3("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var idm=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(d3);EJ(idm);var Odt=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(d3);EJ(Odt);var a9k=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(d3);EJ(a9k);var yim=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(d3);
EJ(yim);var o38=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(d3);EJ(o38);var mJ8=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(d3);EJ(mJ8);var UJa=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(d3);EJ(UJa);var Rgc=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(d3);EJ(Rgc);var Nyt=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(d3);EJ(Nyt);var Aik=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(d3);EJ(Aik);var xJ8=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(d3);EJ(xJ8);var L9o=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(d3);EJ(L9o);var E3m=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(d3);EJ(E3m);var Y5D=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(d3);EJ(Y5D);var F9c=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(d3);EJ(F9c);var bdh=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(d3);EJ(bdh);var Gac=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(d3);EJ(Gac);var HJD=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(d3);EJ(HJD);var skq=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(d3);EJ(skq);var ZJa=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(d3);EJ(ZJa);var Qk8=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(d3);EJ(Qk8);var pbi=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(d3);EJ(pbi);var lFh=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(d3);EJ(lFh);var gzi=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(d3);EJ(gzi);var IFq=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(d3);EJ(IFq);var q08=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(d3);EJ(q08);var S0q=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(d3);EJ(S0q);y4R(Tx(300,.5,0),Tx(-240,.5,1));y4R(Tx(-100,.75,.35),Tx(80,1.5,.8));y4R(Tx(260,.75,.35),Tx(80,1.5,.8));Tx();Yw();yLU(d3("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
yLU(d3("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
yLU(d3("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
yLU(d3("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
jPt.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(K,a){K=+K;a=+a;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(K,a):this._context.moveTo(K,a);break;case 1:this._point=2;default:this._context.lineTo(K,a)}}};
(function(K){function a(Go){return new PU_(K(Go))}
a._curve=K;return a})(function(K){return new jPt(K)});
PU_.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(K,a){this._curve.point(a*Math.sin(K),a*-Math.cos(K))}};
ir2.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:Cz3(this,this._t0,wkw(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(K,a){var Go=NaN;K=+K;a=+a;if(K!==this._x1||a!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(K,a):this._context.moveTo(K,a);break;case 1:this._point=2;break;case 2:this._point=3;Cz3(this,wkw(this,Go=rDd(this,K,a)),Go);break;default:Cz3(this,this._t0,Go=rDd(this,K,a))}this._x0=this._x1;this._x1=K;this._y0=this._y1;this._y1=a;this._t0=Go}}};
(function(K){this._context=new hnp(K)}.prototype=Object.create(ir2.prototype)).point=function(K,a){ir2.prototype.point.call(this,a,K)};
hnp.prototype={moveTo:function(K,a){this._context.moveTo(a,K)},
closePath:function(){this._context.closePath()},
lineTo:function(K,a){this._context.lineTo(a,K)},
bezierCurveTo:function(K,a,Go,S2,df,To){this._context.bezierCurveTo(a,K,S2,Go,To,df)}};
Hm.prototype={constructor:Hm,scale:function(K){return K===1?this:new Hm(this.k*K,this.x,this.y)},
translate:function(K,a){return K===0&a===0?this:new Hm(this.k,this.x+this.k*K,this.y+this.k*a)},
apply:function(K){return[K[0]*this.k+this.x,K[1]*this.k+this.y]},
invert:function(K){return[(K[0]-this.x)/this.k,(K[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Hm(1,0,0);Dxv=Ma;Al.svg=Al.svg;Al.xhtml=Al.xhtml;Al.xlink=Al.xlink;Al.xml=Al.xml;Al.xmlns=Al.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 MVa="hammer_"+(Math.random()*1E6|0),j6a=function(){var G=document||document;if(!G[MVa]){var H=function(){(function(Z,Q,p,l){function q(KW,au,NX){return setTimeout(e(KW,NX),au)}
function u(KW,au,NX){return Array.isArray(KW)?(B(KW,NX[au],NX),!0):!1}
function B(KW,au,NX){var Xa;if(KW)if(KW.forEach)KW.forEach(au,NX);else if(KW.length!==l){var Vh=0;for(Xa=KW.length;Vh<Xa;Vh++)au.call(NX,KW[Vh],Vh,KW)}else for(Vh in KW)KW.hasOwnProperty(Vh)&&au.call(NX,KW[Vh],Vh,KW)}
function t(KW,au,NX){for(var Xa=Object.keys(au),Vh=0,MU=Xa.length;Vh<MU;Vh++)if(!NX||NX&&KW[Xa[Vh]]===l)KW[Xa[Vh]]=au[Xa[Vh]];return KW}
function D(KW,au){return t(KW,au,!0)}
function d(KW,au,NX){au=au.prototype;var Xa=KW.prototype=Object.create(au);Xa.constructor=KW;Xa._super=au;NX&&t(Xa,NX)}
function e(KW,au){return function(){return KW.apply(au,arguments)}}
function n(KW,au){return typeof KW=="function"?KW.apply(au?au[0]||l:l,au):KW}
function c(KW,au,NX){B(M(au),function(Xa){KW.addEventListener(Xa,NX,!1)})}
function W(KW,au,NX){B(M(au),function(Xa){KW.removeEventListener(Xa,NX,!1)})}
function M(KW){return KW.trim().split(/\s+/g)}
function r(KW,au,NX){if(KW.indexOf&&!NX)return KW.indexOf(au);for(var Xa=0,Vh=KW.length;Xa<Vh;Xa++)if(NX&&KW[Xa][NX]==au||!NX&&KW[Xa]===au)return Xa;return-1}
function w(KW,au,NX){for(var Xa=[],Vh=[],MU=0,jc=KW.length;MU<jc;MU++){var fw=au?KW[MU][au]:KW[MU];r(Vh,fw)<0&&Xa.push(KW[MU]);Vh[MU]=fw}NX&&(Xa=au?Xa.sort(function(Tx,Oq){return Tx[au]>Oq[au]}):Xa.sort());
return Xa}
function x(KW,au){for(var NX,Xa=au[0].toUpperCase()+au.slice(1),Vh=0,MU=t_.length;Vh<MU;Vh++)if(NX=(NX=t_[Vh])?NX+Xa:au,NX in KW)return NX;return l}
function U(KW,au){var NX=this;this.manager=KW;this.callback=au;this.element=KW.element;this.target=KW.options.inputTarget;this.domHandler=function(Xa){n(KW.options.enable,[KW])&&NX.handler(Xa)};
this.evEl&&c(this.element,this.evEl,this.domHandler);this.evTarget&&c(this.target,this.evTarget,this.domHandler);this.evWin&&c(Z,this.evWin,this.domHandler)}
function R(KW){var au;yk?au=ie:YJ?au=W3:Ma?au=DT:au=$R;return new au(KW,L)}
function L(KW,au,NX){var Xa=NX.pointers.length,Vh=NX.changedPointers.length,MU=au&1&&Xa-Vh===0;NX.isFirst=!!MU;NX.isFinal=!!(au&12&&Xa-Vh===0);MU&&(KW.session={});NX.eventType=au;au=KW.session;Xa=NX.pointers;Vh=Xa.length;au.firstInput||(au.firstInput=H3(NX));Vh>1&&!au.firstMultiple?au.firstMultiple=H3(NX):Vh===1&&(au.firstMultiple=!1);MU=au.firstInput;var jc=(Vh=au.firstMultiple)?Vh.center:MU.center,fw=NX.center=qX(Xa);NX.timeStamp=V4();NX.deltaTime=NX.timeStamp-MU.timeStamp;NX.angle=e2(jc,fw);NX.distance=
fW(jc,fw);MU=NX.center;jc=au.offsetDelta||{};fw=au.prevDelta||{};var Tx=au.prevInput||{};if(NX.eventType===1||Tx.eventType===4)fw=au.prevDelta={x:Tx.deltaX||0,y:Tx.deltaY||0},jc=au.offsetDelta={x:MU.x,y:MU.y};NX.deltaX=fw.x+(MU.x-jc.x);NX.deltaY=fw.y+(MU.y-jc.y);NX.offsetDirection=B3(NX.deltaX,NX.deltaY);Vh?(MU=Vh.pointers,MU=fW(Xa[0],Xa[1],Yw)/fW(MU[0],MU[1],Yw)):MU=1;NX.scale=MU;Vh?(Vh=Vh.pointers,Xa=e2(Xa[1],Xa[0],Yw)-e2(Vh[1],Vh[0],Yw)):Xa=0;NX.rotation=Xa;jc=au.lastInterval||NX;Xa=NX.timeStamp-
jc.timeStamp;NX.eventType!=8&&(Xa>25||jc.velocity===l)?(MU=jc.deltaX-NX.deltaX,jc=jc.deltaY-NX.deltaY,fw=MU/Xa||0,Tx=jc/Xa||0,Xa=fw,Vh=Tx,fw=xR(fw)>xR(Tx)?fw:Tx,MU=B3(MU,jc),au.lastInterval=NX):(fw=jc.velocity,Xa=jc.velocityX,Vh=jc.velocityY,MU=jc.direction);NX.velocity=fw;NX.velocityX=Xa;NX.velocityY=Vh;NX.direction=MU;au=KW.element;a:{for(Xa=NX.srcEvent.target;Xa;){if(Xa==au){Xa=!0;break a}Xa=Xa.parentNode}Xa=!1}Xa&&(au=NX.srcEvent.target);NX.target=au;KW.emit("hammer.input",NX);KW.recognize(NX);
KW.session.prevInput=NX}
function H3(KW){for(var au=[],NX=0;NX<KW.pointers.length;NX++)au[NX]={clientX:HD(KW.pointers[NX].clientX),clientY:HD(KW.pointers[NX].clientY)};return{timeStamp:V4(),pointers:au,center:qX(au),deltaX:KW.deltaX,deltaY:KW.deltaY}}
function qX(KW){var au=KW.length;if(au===1)return{x:HD(KW[0].clientX),y:HD(KW[0].clientY)};for(var NX=0,Xa=0,Vh=0;Vh<au;Vh++)NX+=KW[Vh].clientX,Xa+=KW[Vh].clientY;return{x:HD(NX/au),y:HD(Xa/au)}}
function B3(KW,au){return KW===au?1:xR(KW)>=xR(au)?KW>0?2:4:au>0?8:16}
function fW(KW,au,NX){NX||(NX=IN);var Xa=au[NX[0]]-KW[NX[0]];KW=au[NX[1]]-KW[NX[1]];return Math.sqrt(Xa*Xa+KW*KW)}
function e2(KW,au,NX){NX||(NX=IN);return Math.atan2(au[NX[1]]-KW[NX[1]],au[NX[0]]-KW[NX[0]])*180/Math.PI}
function $R(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;U.apply(this,arguments)}
function ie(){this.evEl=hR;this.evWin=EA;U.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function W3(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};U.apply(this,arguments)}
function DT(){U.apply(this,arguments);var KW=e(this.handler,this);this.touch=new W3(this.manager,KW);this.mouse=new $R(this.manager,KW)}
function UR(KW,au){this.manager=KW;this.set(au)}
function zx(KW){if(KW.indexOf("none")>-1)return"none";var au=KW.indexOf("pan-x")>-1,NX=KW.indexOf("pan-y")>-1;return au&&NX?"pan-x pan-y":au||NX?au?"pan-x":"pan-y":KW.indexOf("manipulation")>-1?"manipulation":"auto"}
function be(KW){this.id=nm++;this.manager=null;this.options=D(KW||{},this.defaults);KW=this.options.enable;this.options.enable=KW===l?!0:KW;this.state=1;this.simultaneous={};this.requireFail=[]}
function J_(KW){return KW==16?"down":KW==8?"up":KW==2?"left":KW==4?"right":""}
function rG(KW,au){return(au=au.manager)?au.get(KW):KW}
function Kw(){be.apply(this,arguments)}
function cD(){Kw.apply(this,arguments);this.pY=this.pX=null}
function ec(){Kw.apply(this,arguments)}
function gf(){be.apply(this,arguments);this._input=this._timer=null}
function sR(){Kw.apply(this,arguments)}
function ep(){Kw.apply(this,arguments)}
function Qh(){be.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function $w(KW,au){au=au||{};var NX=au.recognizers;au.recognizers=NX===l?$w.defaults.preset:NX;return new Zt(KW,au)}
function Zt(KW,au){au=au||{};this.options=D(au,$w.defaults);this.options.inputTarget=this.options.inputTarget||KW;this.handlers={};this.session={};this.recognizers=[];this.element=KW;this.input=R(this);this.touchAction=new UR(this,this.options.touchAction);rJ(this,!0);B(au.recognizers,function(NX){var Xa=this.add(new NX[0](NX[1]));NX[2]&&Xa.recognizeWith(NX[2]);NX[3]&&Xa.requireFailure(NX[2])},this)}
function rJ(KW,au){var NX=KW.element;B(KW.options.cssProps,function(Xa,Vh){NX.style[x(NX.style,Vh)]=au?Xa:""})}
function N7(KW,au){var NX=Q.createEvent("Event");NX.initEvent(KW,!0,!0);NX.gesture=au;au.target.dispatchEvent(NX)}
var t_=" webkit moz MS ms o".split(" "),Bd=Q.createElement("div"),HD=Math.round,xR=Math.abs,V4=Date.now,nm=1,E_=/mobile|tablet|ip(ad|hone|od)|android/i,Ma="ontouchstart"in Z,yk=x(Z,"PointerEvent")!==l,YJ=Ma&&E_.test(navigator.userAgent),IN=["x","y"],Yw=["clientX","clientY"];U.prototype={handler:function(){},
destroy:function(){this.evEl&&W(this.element,this.evEl,this.domHandler);this.evTarget&&W(this.target,this.evTarget,this.domHandler);this.evWin&&W(Z,this.evWin,this.domHandler)}};
var vD={mousedown:1,mousemove:2,mouseup:4};d($R,U,{handler:function(KW){var au=vD[KW.type];au&1&&KW.button===0&&(this.pressed=!0);au&2&&KW.which!==1&&(au=4);this.pressed&&this.allow&&(au&4&&(this.pressed=!1),this.callback(this.manager,au,{pointers:[KW],changedPointers:[KW],pointerType:"mouse",srcEvent:KW}))}});
var gk={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},w3={2:"touch",3:"pen",4:"mouse",5:"kinect"},hR="pointerdown",EA="pointermove pointerup pointercancel";Z.MSPointerEvent&&(hR="MSPointerDown",EA="MSPointerMove MSPointerUp MSPointerCancel");d(ie,U,{handler:function(KW){var au=this.store,NX=!1,Xa=KW.type.toLowerCase().replace("ms","");Xa=gk[Xa];var Vh=w3[KW.pointerType]||KW.pointerType;Xa&1&&(KW.button===0||Vh=="touch")?au.push(KW):Xa&12&&(NX=!0);var MU=r(au,KW.pointerId,"pointerId");
MU<0||(au[MU]=KW,this.callback(this.manager,Xa,{pointers:au,changedPointers:[KW],pointerType:Vh,srcEvent:KW}),NX&&au.splice(MU,1))}});
var Nj={touchstart:1,touchmove:2,touchend:4,touchcancel:8};d(W3,U,{handler:function(KW){var au=Nj[KW.type];var NX=Array.prototype.slice.call(KW.touches,0);var Xa=this.targetIds;if(au&3&&NX.length===1)Xa[NX[0].identifier]=!0,Xa=[NX,NX];else{var Vh,MU=Array.prototype.slice.call(KW.targetTouches,0),jc=Array.prototype.slice.call(KW.changedTouches,0),fw=[];if(au===1)for(NX=0,Vh=MU.length;NX<Vh;NX++)Xa[MU[NX].identifier]=!0;NX=0;for(Vh=jc.length;NX<Vh;NX++)Xa[jc[NX].identifier]&&fw.push(jc[NX]),au&12&&
delete Xa[jc[NX].identifier];Xa=fw.length?[w(MU.concat(fw),"identifier",!0),fw]:void 0}Xa&&this.callback(this.manager,au,{pointers:Xa[0],changedPointers:Xa[1],pointerType:"touch",srcEvent:KW})}});
d(DT,U,{handler:function(KW,au,NX){var Xa=NX.pointerType=="mouse";if(NX.pointerType=="touch")this.mouse.allow=!1;else if(Xa&&!this.mouse.allow)return;au&12&&(this.mouse.allow=!0);this.callback(KW,au,NX)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var q4=x(Bd.style,"touchAction"),ty=q4!==l;UR.prototype={set:function(KW){KW=="compute"&&(KW=this.compute());ty&&(this.manager.element.style[q4]=KW);this.actions=KW.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var KW=[];B(this.manager.recognizers,function(au){n(au.options.enable,[au])&&(KW=KW.concat(au.getTouchAction()))});
return zx(KW.join(" "))},
preventDefaults:function(KW){if(!ty){var au=KW.srcEvent;KW=KW.offsetDirection;if(this.manager.session.prevented)au.preventDefault();else{var NX=this.actions,Xa=NX.indexOf("none")>-1,Vh=NX.indexOf("pan-y")>-1;NX=NX.indexOf("pan-x")>-1;if(Xa||Vh&&NX||Vh&&KW&6||NX&&KW&24)return this.preventSrc(au)}}},
preventSrc:function(KW){this.manager.session.prevented=!0;KW.preventDefault()}};
be.prototype={defaults:{},set:function(KW){t(this.options,KW);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(KW){if(u(KW,"recognizeWith",this))return this;var au=this.simultaneous;KW=rG(KW,this);au[KW.id]||(au[KW.id]=KW,KW.recognizeWith(this));return this},
dropRecognizeWith:function(KW){if(u(KW,"dropRecognizeWith",this))return this;KW=rG(KW,this);delete this.simultaneous[KW.id];return this},
requireFailure:function(KW){if(u(KW,"requireFailure",this))return this;var au=this.requireFail;KW=rG(KW,this);r(au,KW)===-1&&(au.push(KW),KW.requireFailure(this));return this},
dropRequireFailure:function(KW){if(u(KW,"dropRequireFailure",this))return this;KW=rG(KW,this);KW=r(this.requireFail,KW);KW>-1&&this.requireFail.splice(KW,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(KW){return!!this.simultaneous[KW.id]},
emit:function(KW){function au(Vh){NX.manager.emit(NX.options.event+(Vh?Xa&16?"cancel":Xa&8?"end":Xa&4?"move":Xa&2?"start":"":""),KW)}
var NX=this,Xa=this.state;Xa<8&&au(!0);au();Xa>=8&&au(!0)},
tryEmit:function(KW){if(this.canEmit())return this.emit(KW);this.state=32},
canEmit:function(){for(var KW=0;KW<this.requireFail.length;KW++)if(!(this.requireFail[KW].state&33))return!1;return!0},
recognize:function(KW){KW=t({},KW);n(this.options.enable,[this,KW])?(this.state&56&&(this.state=1),this.state=this.process(KW),this.state&30&&this.tryEmit(KW)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
d(Kw,be,{defaults:{pointers:1},attrTest:function(KW){var au=this.options.pointers;return au===0||KW.pointers.length===au},
process:function(KW){var au=this.state,NX=KW.eventType,Xa=au&6;KW=this.attrTest(KW);return Xa&&(NX&8||!KW)?au|16:Xa||KW?NX&4?au|8:au&2?au|4:2:32}});
d(cD,Kw,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var KW=this.options.direction;if(KW===30)return["none"];var au=[];KW&6&&au.push("pan-y");KW&24&&au.push("pan-x");return au},
directionTest:function(KW){var au=this.options,NX=!0,Xa=KW.distance,Vh=KW.direction,MU=KW.deltaX,jc=KW.deltaY;Vh&au.direction||(au.direction&6?(Vh=MU===0?1:MU<0?2:4,NX=MU!=this.pX,Xa=Math.abs(KW.deltaX)):(Vh=jc===0?1:jc<0?8:16,NX=jc!=this.pY,Xa=Math.abs(KW.deltaY)));KW.direction=Vh;return NX&&Xa>au.threshold&&Vh&au.direction},
attrTest:function(KW){return Kw.prototype.attrTest.call(this,KW)&&(this.state&2||!(this.state&2)&&this.directionTest(KW))},
emit:function(KW){this.pX=KW.deltaX;this.pY=KW.deltaY;var au=J_(KW.direction);au&&this.manager.emit(this.options.event+au,KW);this._super.emit.call(this,KW)}});
d(ec,Kw,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(KW){return this._super.attrTest.call(this,KW)&&(Math.abs(KW.scale-1)>this.options.threshold||this.state&2)},
emit:function(KW){this._super.emit.call(this,KW);KW.scale!==1&&this.manager.emit(this.options.event+(KW.scale<1?"in":"out"),KW)}});
d(gf,be,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(KW){var au=this.options,NX=KW.pointers.length===au.pointers,Xa=KW.distance<au.threshold,Vh=KW.deltaTime>au.time;this._input=KW;if(!Xa||!NX||KW.eventType&12&&!Vh)this.reset();else if(KW.eventType&1)this.reset(),this._timer=q(function(){this.state=8;this.tryEmit()},au.time,this);
else if(KW.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(KW){this.state===8&&(KW&&KW.eventType&4?this.manager.emit(this.options.event+"up",KW):(this._input.timeStamp=V4(),this.manager.emit(this.options.event,this._input)))}});
d(sR,Kw,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(KW){return this._super.attrTest.call(this,KW)&&(Math.abs(KW.rotation)>this.options.threshold||this.state&2)}});
d(ep,Kw,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return cD.prototype.getTouchAction.call(this)},
attrTest:function(KW){var au=this.options.direction;if(au&30)var NX=KW.velocity;else au&6?NX=KW.velocityX:au&24&&(NX=KW.velocityY);return this._super.attrTest.call(this,KW)&&au&KW.direction&&xR(NX)>this.options.velocity&&KW.eventType&4},
emit:function(KW){var au=J_(KW.direction);au&&this.manager.emit(this.options.event+au,KW);this.manager.emit(this.options.event,KW)}});
d(Qh,be,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(KW){var au=this.options,NX=KW.pointers.length===au.pointers,Xa=KW.distance<au.threshold,Vh=KW.deltaTime<au.time;this.reset();if(KW.eventType&1&&this.count===0)return this.failTimeout();if(Xa&&Vh&&NX){if(KW.eventType!=4)return this.failTimeout();NX=this.pTime?KW.timeStamp-this.pTime<au.interval:!0;Xa=!this.pCenter||fW(this.pCenter,KW.center)<au.posThreshold;this.pTime=KW.timeStamp;this.pCenter=KW.center;Xa&&NX?this.count+=1:this.count=1;this._input=KW;if(this.count%au.taps===0)return this.hasRequireFailures()?
(this._timer=q(function(){this.state=8;this.tryEmit()},au.interval,this),2):8}return 32},
failTimeout:function(){this._timer=q(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))}});
$w.VERSION="2.0.2";$w.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[sR,{enable:!1}],[ec,{enable:!1},["rotate"]],[ep,{direction:6}],[cD,{direction:6},["swipe"]],[Qh],[Qh,{event:"doubletap",taps:2},["tap"]],[gf]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Zt.prototype={set:function(KW){t(this.options,KW);return this},
stop:function(KW){this.session.stopped=KW?2:1},
recognize:function(KW){var au=this.session;if(!au.stopped){this.touchAction.preventDefaults(KW);var NX=this.recognizers,Xa=au.curRecognizer;if(!Xa||Xa&&Xa.state&8)Xa=au.curRecognizer=null;for(var Vh=0,MU=NX.length;Vh<MU;Vh++){var jc=NX[Vh];au.stopped===2||Xa&&jc!=Xa&&!jc.canRecognizeWith(Xa)?jc.reset():jc.recognize(KW);!Xa&&jc.state&14&&(Xa=au.curRecognizer=jc)}}},
get:function(KW){if(KW instanceof be)return KW;for(var au=this.recognizers,NX=0;NX<au.length;NX++)if(au[NX].options.event==KW)return au[NX];return null},
add:function(KW){if(u(KW,"add",this))return this;var au=this.get(KW.options.event);au&&this.remove(au);this.recognizers.push(KW);KW.manager=this;this.touchAction.update();return KW},
remove:function(KW){if(u(KW,"remove",this))return this;var au=this.recognizers;KW=this.get(KW);au.splice(r(au,KW),1);this.touchAction.update();return this},
on:function(KW,au){var NX=this.handlers;B(M(KW),function(Xa){NX[Xa]=NX[Xa]||[];NX[Xa].push(au)});
return this},
off:function(KW,au){var NX=this.handlers;B(M(KW),function(Xa){au?NX[Xa].splice(r(NX[Xa],au),1):delete NX[Xa]});
return this},
emit:function(KW,au){this.options.domEvents&&N7(KW,au);var NX=this.handlers[KW]&&this.handlers[KW].slice();if(NX&&NX.length){au.type=KW;au.preventDefault=function(){au.srcEvent.preventDefault()};
KW=0;for(var Xa=NX.length;KW<Xa;KW++)NX[KW](au)}},
destroy:function(){this.element&&rJ(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
t($w,{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:Zt,Input:U,TouchAction:UR,Recognizer:be,AttrRecognizer:Kw,Tap:Qh,Pan:cD,Swipe:ep,Pinch:ec,Rotate:sR,Press:gf,on:c,off:W,each:B,merge:D,extend:t,inherit:d,bindFn:e,prefixed:x});
Z[p]=$w})(window,document,"Hammer");
return window.Hammer}.call({});
H.DOCUMENT=G;G[MVa]=H}return G[MVa]};/*

 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 P$t=function(G,H){if(G.length!==H.length)return!1;for(var Z=0;Z<G.length;++Z)if(G[Z]!==H[Z])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var rBG=_.I(["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"]),wM2=rBG.next();!wM2.done;wM2=rBG.next()){var hcx=wM2.value,C$R=document.createElement("link");C$R.rel="stylesheet";C$R.href=hcx;document.head.appendChild(C$R)};var wnR,C_U,OOW,jxv,hPf,P_M,KW2,M4v;wnR={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};C_U={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:"*"};OOW={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};jxv=/[a-z0-9*]/;hPf=/U\+/;P_M=/^arrow/;KW2=/^space(bar)?/;M4v=/^escape$/;_.vZ={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(G,H){this._imperativeKeyBindings[G]=H;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(G,H){H=yHf(H);for(var Z=0;Z<H.length;++Z)if(iOU(H[Z],G))return!0;return!1},
_collectKeyBindings:function(){var G=this.behaviors.map(function(H){return H.keyBindings});
G.indexOf(this.keyBindings)===-1&&G.push(this.keyBindings);return G},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(Z){for(var Q in Z)this._addKeyBinding(Q,Z[Q])},this);
for(var G in this._imperativeKeyBindings)this._addKeyBinding(G,this._imperativeKeyBindings[G]);for(var H in this._keyBindings)this._keyBindings[H].sort(function(Z,Q){Z=Z[0].hasModifiers;return Z===Q[0].hasModifiers?0:Z?-1:1})},
_addKeyBinding:function(G,H){yHf(G).forEach(function(Z){this._keyBindings[Z.event]=this._keyBindings[Z.event]||[];this._keyBindings[Z.event].push([Z,H])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(G){var H=this._onKeyBindingEvent.bind(this,this._keyBindings[G]);this._boundKeyHandlers.push([this.keyEventTarget,G,H]);this.keyEventTarget.addEventListener(G,H)},this)},
_unlistenKeyEventListeners:function(){for(var G,H,Z;this._boundKeyHandlers.length;)G=this._boundKeyHandlers.pop(),H=G[0],Z=G[1],G=G[2],H.removeEventListener(Z,G)},
_onKeyBindingEvent:function(G,H){this.stopKeyboardEventPropagation&&H.stopPropagation();if(!H.defaultPrevented)for(var Z=0;Z<G.length;Z++){var Q=G[Z][0],p=G[Z][1];if(iOU(Q,H)&&(this._triggerKeyHandler(Q,p,H),H.defaultPrevented))break}},
_triggerKeyHandler:function(G,H,Z){var Q=Object.create(G);Q.keyboardEvent=Z;G=new CustomEvent(G.event,{detail:Q,cancelable:!0});this[H].call(this,G);G.defaultPrevented&&Z.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
*/
_.Vy({is:"iron-a11y-keys",_template:null,behaviors:[_.vZ],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(G){this.keyEventTarget=G},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(G){this.fire("keys-pressed",G.detail,{})}});_.WZ={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(G){this._setFocused(G.type==="focus")},
_disabledChanged:function(G){this.setAttribute("aria-disabled",G?"true":"false");this.style.pointerEvents=G?"none":"";G?(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 zs={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(G){this._detectKeyboardFocus(G);G||this._setPressed(!1)},
_detectKeyboardFocus:function(G){this._setReceivedFocusFromKeyboard(!this.pointerDown&&G)},
_userActivate:function(G){this.active!==G&&(this.active=G,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(G){G=G.detail.keyboardEvent;var H=_.Bf(G).localTarget;this.isLightDescendant(H)||(G.preventDefault(),G.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(G){G=_.Bf(G.detail.keyboardEvent).localTarget;this.isLightDescendant(G)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(G,H){H&&H!=G&&this.hasAttribute(H)&&this.removeAttribute(H)},
_activeChanged:function(G){this.toggles?this.setAttribute(this.ariaActiveAttribute,G?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},iMa=[_.vZ,
zs];_.KF={IronButtonState:iMa,IronButtonStateImpl:zs};_.Mo={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.jL=function(G){_.jL[" "](G);this.type=G&&G.type||"default";this.key=G&&G.key;G&&"value"in G&&(this.value=G.value)};
_.jL.prototype.byKey=function(G){this.key=G;return this.value};
_.u4.Object.defineProperties(_.jL.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var G=this.type,H=this.key;if(G&&H)return PZ[G]&&PZ[G][H]},
set:function(G){var H=this.type,Z=this.key;H&&Z&&(H=PZ[H]=PZ[H]||{},G==null?delete H[Z]:H[Z]=G)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var G=PZ[this.type];return G?Object.keys(G).map(function(H){return PZ[this.type][H]},this):[]}}});
_.jL[" "]=function(){};
var PZ={};_.Vy({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(G,H,Z){G=new _.jL({type:G,key:H});Z!==void 0&&Z!==G.value?G.value=Z:this.value!==G.value&&(this.value=G.value);return G},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(G){G&&(this.value=this)},
byKey:function(G){return(new _.jL({type:this.type,key:G})).value}});var OM4;OM4=null;_.r5={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){OM4=new _.jL({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return OM4&&OM4.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(G){this.invalid=G===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(G);return!this.invalid},
_getValidity:function(G){return this.hasValidator()?this._validator.validate(G):!0}};var aGT={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"}},yB4=[_.Mo,
_.r5,aGT];_.Vy({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 _.jL({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(G){return this.name+":"+G},this)},
applyIcon:function(G,H){this.removeIcon(G);if(H=this._cloneIcon(H,this.rtlMirroring&&this._targetIsRTL(G))){var Z=_.Bf(G.root||G);Z.insertBefore(H,Z.childNodes[0]);return G._svgIcon=H}return null},
removeIcon:function(G){G._svgIcon&&(_.Bf(G.root||G).removeChild(G._svgIcon),G._svgIcon=null)},
_targetIsRTL:function(G){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(G&&G.nodeType!==Node.ELEMENT_NODE&&(G=G.host),this.__targetIsRTL=G&&window.getComputedStyle(G).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 G=Object.create(null);_.Bf(this).querySelectorAll("[id]").forEach(function(H){G[H.id]=H});
return G},
_cloneIcon:function(G,H){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[G],this.size,H)},
_prepareSvgClone:function(G,H,Z){if(G){G=G.cloneNode(!0);var Q=document.createElementNS("http://www.w3.org/2000/svg","svg");H=G.getAttribute("viewBox")||"0 0 "+H+" "+H;var p="pointer-events: none; display: block; width: 100%; height: 100%;";Z&&G.hasAttribute("mirror-in-rtl")&&(p+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");Q.setAttribute("viewBox",H);Q.setAttribute("preserveAspectRatio","xMidYMid meet");Q.setAttribute("focusable","false");Q.style&&(Q.style.cssText=
p);Q.appendChild(G).removeAttribute("id");return Q}return null}});var ojR=function(G){this.multi=!1;this.selection=[];this.selectCallback=G};
_.g=ojR.prototype;_.g.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.g.clear=function(G){this.selection.slice().forEach(function(H){(!G||G.indexOf(H)<0)&&this.setItemSelected(H,!1)},this)};
_.g.isSelected=function(G){return this.selection.indexOf(G)>=0};
_.g.setItemSelected=function(G,H){if(G!=null&&H!==this.isSelected(G)){if(H)this.selection.push(G);else{var Z=this.selection.indexOf(G);Z>=0&&this.selection.splice(Z,1)}this.selectCallback&&this.selectCallback(G,H)}};
_.g.select=function(G){this.multi?this.toggle(G):this.get()!==G&&(this.setItemSelected(this.get(),!1),this.setItemSelected(G,!0))};
_.g.toggle=function(G){this.setItemSelected(G,!this.isSelected(G))};_.hv={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 ojR(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Bf(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(G){return this.items?this.items.indexOf(G):-1},
select:function(G){this.selected=G},
selectPrevious:function(){var G=this.items.length,H=G-1;this.selected!==void 0&&(H=(Number(this._valueToIndex(this.selected))-1+G)%G);this.selected=this._indexToValue(H)},
selectNext:function(){var G=0;this.selected!==void 0&&(G=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(G)},
selectIndex:function(G){this.select(this._indexToValue(G))},
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(G){this.listen(this,G,"_activateHandler")},
_removeListener:function(G){this.unlisten(this,G,"_activateHandler")},
_activateEventChanged:function(G,H){this._removeListener(H);this._addListener(G)},
_updateItems:function(){var G=_.Bf(this).queryDistributedElements(this.selectable||"*");G=Array.prototype.filter.call(G,this._bindFilterItem);this._setItems(G)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var G=this._valueToItem(this.selected);G?this._selection.select(G):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(G){return!this._excludedLocalNames[G.localName]},
_valueToItem:function(G){return G==null?null:this.items[this._valueToIndex(G)]},
_valueToIndex:function(G){if(this.attrForSelected)for(var H=0,Z;Z=this.items[H];H++){if(this._valueForItem(Z)==G)return H}else return Number(G)},
_indexToValue:function(G){if(this.attrForSelected){if(G=this.items[G])return this._valueForItem(G)}else return G},
_valueForItem:function(G){if(!G)return null;if(!this.attrForSelected)return G=this.indexOf(G),G===-1?null:G;var H=G[$P(this.attrForSelected)];return H!=void 0?H:G.getAttribute(this.attrForSelected)},
_applySelection:function(G,H){this.selectedClass&&this.toggleClass(this.selectedClass,H,G);this.selectedAttribute&&this.toggleAttribute.call(G,this.selectedAttribute,H);this._selectionChange();this.fire("iron-"+(H?"select":"deselect"),{item:G})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(G){return _.Bf(G).observeNodes(function(H){this._updateItems();this._updateSelected();this.fire("iron-items-changed",H,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(G){G=G.target;for(var H=this.items;G&&G!=this;){var Z=H.indexOf(G);if(Z>=0){H=this._indexToValue(Z);this._itemActivate(H,G);break}G=G.parentNode}},
_itemActivate:function(G,H){this.fire("iron-activate",{selected:G,item:H},{cancelable:!0}).defaultPrevented||this.select(G)}};var mW4={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(G){this.multi?this._toggleSelected(G):this.selected=G},
multiChanged:function(G){this._selection.multi=G;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(G){return this._indexToValue(this.indexOf(G))},this).filter(function(G){return G!=null},this)):_.hv._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(G){G=G||[];G=(this._valuesToItems(G)||[]).filter(function(Z){return Z!==null&&Z!==void 0});
this._selection.clear(G);for(var H=0;H<G.length;H++)this._selection.setItemSelected(G[H],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var G=this._selection.get();this.multi?(this._setSelectedItems(G),this._setSelectedItem(G.length?G[0]:null)):G!==null&&G!==void 0?(this._setSelectedItems([G]),this._setSelectedItem(G)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(G){var H=this.selectedValues.indexOf(G);H<0?this.push("selectedValues",G):this.splice("selectedValues",H,1)},
_valuesToItems:function(G){return G==null?null:G.map(function(H){return this._valueToItem(H)},this)}},UWa=[_.hv,
mW4];var Rc_;
_.w5={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(G){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var H=this._valueToItem(G);H&&H.hasAttribute("disabled")||(this._setFocusedItem(H),mW4.select.apply(this,arguments))},
_resetTabindices:function(){var G=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(H){H.setAttribute("tabindex",H===G?"0":"-1");H.setAttribute("aria-selected",this._selection.isSelected(H))},this)},
_updateMultiselectable:function(G){G?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(G){if(this._MODIFIER_KEYS.indexOf(G.key)===-1){this.cancelDebouncer("_clearSearchText");var H=this._searchText||"";H+=(G.key&&G.key.length==1?G.key:String.fromCharCode(G.keyCode)).toLocaleLowerCase();G=H.length;for(var Z=0,Q;Q=this.items[Z];Z++)if(!Q.hasAttribute("disabled")){var p=this.attrForItemTitle||"textContent";p=(Q[p]||Q.getAttribute(p)||"").trim();if(!(p.length<G)&&p.slice(0,G).toLocaleLowerCase()==H){this._setFocusedItem(Q);break}}this._searchText=H;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var G=this.items.length,H=Number(this.indexOf(this.focusedItem)),Z=1;Z<G+1;Z++){var Q=this.items[(H-Z+G)%G];if(!Q.hasAttribute("disabled")){var p=_.Bf(Q).getOwnerRoot()||document;this._setFocusedItem(Q);if(_.Bf(p).activeElement==Q)break}}},
_focusNext:function(){for(var G=this.items.length,H=Number(this.indexOf(this.focusedItem)),Z=1;Z<G+1;Z++){var Q=this.items[(H+Z)%G];if(!Q.hasAttribute("disabled")){var p=_.Bf(Q).getOwnerRoot()||document;this._setFocusedItem(Q);if(_.Bf(p).activeElement==Q)break}}},
_applySelection:function(G,H){H?G.setAttribute("aria-selected","true"):G.setAttribute("aria-selected","false");_.hv._applySelection.apply(this,arguments)},
_focusedItemChanged:function(G,H){H&&H.setAttribute("tabindex","-1");!G||G.hasAttribute("disabled")||this.disabled||(G.setAttribute("tabindex","0"),G.focus())},
_onIronItemsChanged:function(G){G.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var G=this.getAttribute("tabindex");_.w5._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",G);_.w5._shiftTabPressed=!1},1)},
_onFocus:function(G){!_.w5._shiftTabPressed&&(G=_.Bf(G).rootTarget,G===this||typeof G.tabIndex==="undefined"||this.isLightDescendant(G))&&(this._defaultFocusAsync=this.async(function(){var H=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);H?this._setFocusedItem(H):this.items[0]&&this._focusNext()}))},
_onUpKey:function(G){this._focusPrevious();G.detail.keyboardEvent.preventDefault()},
_onDownKey:function(G){this._focusNext();G.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var G=this.focusedItem;G&&G.blur()},
_onKeydown:function(G){this.keyboardEventMatchesKeys(G,"up down esc")||this._focusWithKeyboardEvent(G);G.stopPropagation()},
_activateHandler:function(G){_.hv._activateHandler.call(this,G);G.stopPropagation()},
_disabledChanged:function(G){G?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Rc_=[UWa,_.vZ,_.w5];_.Nqt={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(G){this.focusedItem&&(this.focusedItem.click(),G.detail.keyboardEvent.preventDefault())},
_onDownKey:function(G){this.focusedItem&&(this.focusedItem.click(),G.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(G){return G.ctrlKey||G.shiftKey||G.altKey||G.metaKey},
_onLeftKey:function(G){this._isSpecialKey(G.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),G.detail.keyboardEvent.preventDefault())},
_onRightKey:function(G){this._isSpecialKey(G.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),G.detail.keyboardEvent.preventDefault())},
_onKeydown:function(G){this.keyboardEventMatchesKeys(G,"up down left right esc")||this._focusWithKeyboardEvent(G)}};
_.ABx=[Rc_,_.Nqt];var xW7;xW7=new Set;_.hS={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):(xW7.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(G){this.resizerShouldNotify(G)&&this._notifyDescendant(G)},this),this._fireResize())},
assignParentResizable:function(G){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=G)&&G._interestedResizables.indexOf(this)===-1&&(G._interestedResizables.push(this),G._subscribeIronResize(this))},
stopResizeNotificationsFor:function(G){var H=this._interestedResizables.indexOf(G);H>-1&&(this._interestedResizables.splice(H,1),this._unsubscribeIronResize(G))},
_subscribeIronResize:function(G){G.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(G){G.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(G){this._notifyingDescendant?G.stopPropagation():FZ||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(G){var H=_.Bf(G).rootTarget;H!==this&&(H.assignParentResizable(this),this._notifyDescendant(H),G.stopPropagation())},
_parentResizableChanged:function(G){G&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(G){this.isAttached&&(this._notifyingDescendant=!0,G.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var G=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function Z(){document.removeEventListener("readystatechange",Z);G()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(H){H!==this&&H._findParent()},this):(xW7.forEach(function(H){H!==this&&H._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?xW7.delete(this):xW7.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
*/
_.Ln7={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(G,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);H&&(G==="document"?this.scrollTarget=this._doc:typeof G==="string"?this.scrollTarget=(H=this.domHost)&&H.$?H.$[G]:_.Bf(this.ownerDocument).querySelector("#"+G):this._isValidScrollTarget()&&(this._oldScrollTarget=G,this._toggleScrollListener(this._shouldHaveListener,G)))},
_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(G){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,G):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
G)},set _scrollLeft(G){this.scrollTarget===this._doc?window.scrollTo(G,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=G)},scroll:function(G,H){if(typeof G==="object"){var Z=G.left;H=G.top}else Z=G;Z=Z||0;H=H||0;this.scrollTarget===this._doc?window.scrollTo(Z,H):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=Z,this.scrollTarget.scrollTop=H)},
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(G,H){H=H===this._doc?window:H;G?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),H.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(H.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(G){this._shouldHaveListener=G;this._toggleScrollListener(G,this.scrollTarget)}};_.Vy({is:"iron-selector",_template:null,behaviors:[UWa]});var CF={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(G){if(G.timing)for(var H in G.timing)this.animationTiming[H]=G.timing[H];return this.animationTiming},
setPrefixedProperty:function(G,H,Z){for(var Q={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[H],p,l=0;p=Q[l];l++)G.style[p]=Z;G.style[H]=Z},
complete:function(){}};_.Vy({is:"fade-in-animation",_template:null,behaviors:[CF],configure:function(G){return this._effect=new KeyframeEffect(G.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(G))}});_.Vy({is:"fade-out-animation",_template:null,behaviors:[CF],configure:function(G){return this._effect=new KeyframeEffect(G.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(G))}});var Ejd=[{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(G,H){for(var Z in H)G[Z]=H[Z]},
_cloneConfig:function(G){var H={isClone:!0};this._copyProperties(H,G);return H},
_getAnimationConfigRecursive:function(G,H,Z){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 Q=G?this.animationConfig[G]:this.animationConfig;Array.isArray(Q)||(Q=[Q]);if(Q)for(var p,l=0;p=Q[l];l++)if(p.animatable)p.animatable._getAnimationConfigRecursive(p.type||G,H,Z);else if(p.id){var q=H[p.id];
q?(q.isClone||(H[p.id]=this._cloneConfig(q),q=H[p.id]),this._copyProperties(q,p)):H[p.id]=p}else Z.push(p)}},
getAnimationConfig:function(G){var H={},Z=[];this._getAnimationConfigRecursive(G,H,Z);for(var Q in H)Z.push(H[Q]);return Z}},
{_configureAnimations:function(G){var H=[],Z=[];if(G.length>0)for(var Q,p=0;Q=G[p];p++){var l=document.createElement(Q.name);if(l.isNeonAnimation){var q=null;l.configure||(l.configure=function(){return null});
q=l.configure(Q);Z.push({result:q,config:Q})}else console.warn(this.is+":",Q.name,"not found!")}for(G=0;G<Z.length;G++){q=Z[G].result;Q=Z[G].config;try{typeof q.cancel!="function"&&(q=document.timeline.play(q))}catch(u){q=null,console.warn("Couldnt play","(",Q.name,").",u)}q&&H.push({neonAnimation:l,config:Q,animation:q})}return H},
_shouldComplete:function(G){for(var H=!0,Z=0;Z<G.length;Z++)if(G[Z].animation.playState!="finished"){H=!1;break}return H},
_complete:function(G){for(var H=0;H<G.length;H++)G[H].neonAnimation.complete(G[H].config);for(H=0;H<G.length;H++)G[H].animation.cancel()},
playAnimation:function(G,H){var Z=this.getAnimationConfig(G);if(Z){this._active=this._active||{};this._active[G]&&(this._complete(this._active[G]),delete this._active[G]);var Q=this._configureAnimations(Z);if(Q.length==0)this.fire("neon-animation-finish",H,{bubbles:!1});else for(this._active[G]=Q,Z=0;Z<Q.length;Z++)Q[Z].animation.onfinish=function(){this._shouldComplete(Q)&&(this._complete(Q),delete this._active[G],this.fire("neon-animation-finish",H,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var G in this._active){var H=this._active[G],Z;for(Z in H)H[Z].animation&&H[Z].animation.cancel&&H[Z].animation.cancel()}this._active={}}}];var WE=function(G,H){G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.arg=H;this.name=this.constructor.name;this.constructor=WE;this.__proto__=WE.prototype};
_.T(WE,Error);var YV2=bO(function(G){var H=function(){return G.apply(this,arguments)||this};
_.T(H,G);H.prototype._marshalArgs=function(Z,Q,p){Q=G.prototype._marshalArgs.call(this,Z,Q,p);if(this._legacyUndefinedCheck&&Q.length>1)for(p=0;p<Q.length;p++)if(Q[p]===void 0||Z[p].wildcard&&Q[p].base===void 0)throw Z=Z[p].name,new WE("Argument '"+Z+"' is undefined.",Z);return Q};
H.prototype._addPropertyEffect=function(Z,Q,p){return G.prototype._addPropertyEffect.call(this,Z,Q,ouR(p,p&&p.info&&p.info.methodName))};
H._addTemplatePropertyEffect=function(Z,Q,p){return G._addTemplatePropertyEffect.call(this,Z,Q,ouR(p))};
return H}),Fnd=_.Vy.Class;
_.Vy.Class=function(G,H){return Fnd(G,function(Z){return H?H(YV2(Z)):YV2(Z)})};
var bMG=bO(function(G){var H=YV2(G);G=function(){return H.apply(this,arguments)||this};
_.T(G,H);_.u4.Object.defineProperties(G.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return G}),GWx=GE.mixin;
GE.mixin=GWx?function(G){return bMG(GWx(G))}:bMG;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.iM=_.KF.IronButtonState;var YhX=YP;_.mEj="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var xEj=function(){return Math.random().toString(36).substring(7).split("").join(".")},AHv="@@redux/INIT"+xEj(),YKf="@@redux/REPLACE"+xEj();var FW3=typeof Symbol==="function"&&Symbol.observable||"@@observable";var HYa=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var sEd="top right bottom left width height size weight".split(" "),ZYt=typeof MutationObserver!=="undefined",QER=HYa&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,p4_=function(){this.mutationEventsAdded_=this.JSC$11761_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=bOu(this.refresh.bind(this))},lHa=function(G,
H){var Z=G.observers_;
H=Z.indexOf(H);~H&&Z.splice(H,1);!Z.length&&G.JSC$11761_connected_&&HYa&&G.JSC$11761_connected_&&(document.removeEventListener("transitionend",G.onTransitionEnd_),window.removeEventListener("resize",G.refresh),G.mutationsObserver_&&(G.mutationsObserver_.disconnect(),QER&&(HTMLElement.prototype.attachShadow=QER)),G.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",G.refresh),G.mutationsObserver_=null,G.mutationEventsAdded_=!1,G.JSC$11761_connected_=!1)};
p4_.prototype.refresh=function(){gHw(this)&&this.refresh()};
var gHw=function(G){G=G.observers_.filter(function(H){return IH_(H),H.activeObservations_.length>0});
G.forEach(function(H){return qy4(H)});
return G.length>0},SyG=function(G){if(HYa&&!G.JSC$11761_connected_){document.addEventListener("transitionend",G.onTransitionEnd_);
window.addEventListener("resize",G.refresh);if(ZYt){G.mutationsObserver_=new MutationObserver(G.refresh);var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};G.mutationsObserver_.observe(document,H);QER&&(function p(Q){var l=Q.shadowRoot;l&&(G.mutationsObserver_.observe(l,H),p(l));for(Q=Q.firstElementChild;Q;)p(Q),Q=Q.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var Q=QER.apply(this,_.Ry.apply(0,arguments));
G.mutationsObserver_.observe(Q,H);return Q})}else document.addEventListener("DOMSubtreeModified",G.refresh),G.mutationEventsAdded_=!0;
G.JSC$11761_connected_=!0}};
p4_.prototype.onTransitionEnd_=function(G){var H=G.propertyName===void 0?"":G.propertyName;sEd.some(function(Z){return!!~H.indexOf(Z)})&&this.refresh()};
var uza=null;var Bm4=function(G,H){for(var Z=_.I(Object.keys(H)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Object.defineProperty(G,Q,{value:H[Q],enumerable:!1,writable:!1,configurable:!0})};var Os=function(G){var H;return(G==null?void 0:(H=G.ownerDocument)==null?void 0:H.defaultView)||globalThis};var JgR={x:0,y:0,width:0,height:0},tDN=typeof SVGGraphicsElement!=="undefined"?function(G){return G instanceof Os(G).SVGGraphicsElement}:function(G){return G instanceof Os(G).SVGElement&&typeof G.getBBox==="function"};var kWT=function(G){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=G};
kWT.prototype.isActive=function(){var G=this.target;if(HYa)if(tDN(G)){var H=G.getBBox();H={x:0,y:0,width:H.width,height:H.height}}else{var Z=G.clientWidth,Q=G.clientHeight;if(Z||Q){var p=Os(G).getComputedStyle(G);H=K6(p["padding-top"]);var l=K6(p["padding-left"]),q=l+K6(p["padding-right"]),u=H+K6(p["padding-bottom"]),B=K6(p.width),t=K6(p.height);p.boxSizing==="border-box"&&(Math.round(B+q)!==Z&&(B-=Gw2(p,"left","right")+q),Math.round(t+u)!==Q&&(t-=Gw2(p,"top","bottom")+u));G!==Os(G).document.documentElement&&
(G=Math.round(B+q)-Z,Q=Math.round(t+u)-Q,Math.abs(G)!==1&&(B-=G),Math.abs(Q)!==1&&(t-=Q));H={x:l,y:H,width:B,height:t}}else H=JgR}else H=JgR;this.contentRect_=H;return H.width!==this.broadcastWidth||H.height!==this.broadcastHeight};var D8w=function(G,H){var Z=H.x;var Q=H.y;var p=H.width;H=H.height;var l=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);Bm4(l,{x:Z,y:Q,width:p,height:H,top:Q,right:Z+p,bottom:H+Q,left:Z});Bm4(this,{target:G,contentRect:l})};var d8_=function(G,H){var Z=uza;this.activeObservations_=[];this.observations_=new Map;if(typeof G!=="function")throw new TypeError("Ve");this.callback_=G;this.controller_=Z;this.callbackCtx_=H};
d8_.prototype.observe=function(G){if(G===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(G instanceof Os(G).Element))throw new TypeError("Xe");var H=this.observations_;H.has(G)||(H.set(G,new kWT(G)),G=this.controller_,~G.observers_.indexOf(this)||G.observers_.push(this),G.JSC$11761_connected_||SyG(G),this.controller_.refresh())}};
d8_.prototype.unobserve=function(G){if(G===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(G instanceof Os(G).Element))throw new TypeError("Xe");var H=this.observations_;H.has(G)&&(H.delete(G),H.size||lHa(this.controller_,this))}};
d8_.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();lHa(this.controller_,this)};
var IH_=function(G){G.activeObservations_.splice(0);G.observations_.forEach(function(H){H.isActive()&&G.activeObservations_.push(H)})},qy4=function(G){if(G.activeObservations_.length>0){var H=G.callbackCtx_,Z=G.activeObservations_.map(function(Q){var p=Q.target,l=Q.contentRect_;
Q.broadcastWidth=l.width;Q.broadcastHeight=l.height;return new D8w(p,l)});
G.callback_.call(H,Z,H);G.activeObservations_.splice(0)}};var a$=function(G){if(!(this instanceof a$))throw new TypeError("Ye");if(!arguments.length)throw new TypeError("We");uza||(uza=new p4_);this.observer_=new d8_(G,this)};
a$.prototype.observe=function(G){this.observer_.observe(G)};
a$.prototype.unobserve=function(G){this.observer_.unobserve(G)};
a$.prototype.disconnect=function(){this.observer_.disconnect()};var Ptv=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:a$;var EW={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"},b4={"2D":0,WebGL:1,WebGL2:2};b4[b4["2D"]]="2D";b4[1]="WebGL";b4[2]="WebGL2";var svR={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ZK3={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},HKM={},pQf={},lAW={},i4=function(G){return M2("Node",G,"childNodes")},C6=function(G){return M2("Node",G,"parentNode")},OW=function(G){return M2("Node",G,"parentElement")},yrb=function(G){return M2("Node",G,
"textContent")},HpM=function(G){return gf3(G,"getRootNode")()},PE=function(G){return G&&"host"in G?M2("ShadowRoot",G,"host"):null},rg=function(G){return G&&"shadowRoot"in G?M2("Element",G,"shadowRoot"):null};var m_=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
m_.prototype.getId=function(G){if(!G)return-1;var H,Z;return(Z=(H=this.nodeMetaMap.get(G)||null)==null?void 0:H.id)!=null?Z:-1};
m_.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var exa=function(G,H){var Z=G.getId(H);G.idNodeMap.delete(Z);H.childNodes&&H.childNodes.forEach(function(Q){return exa(G,Q)})};
m_.prototype.has=function(G){return this.idNodeMap.has(G)};
m_.prototype.add=function(G,H){this.idNodeMap.set(H.id,G);this.nodeMetaMap.set(G,H)};
m_.prototype.replace=function(G,H){var Z=this.idNodeMap.get(G)||null;Z&&(Z=this.nodeMetaMap.get(Z))&&this.nodeMetaMap.set(H,Z);this.idNodeMap.set(G,H)};
m_.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var Dnj=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,dnv=/^(?:[a-z+]+:)?\/\//i,euR=/^www\..*/i,nfe=/^(data:)([^,]*),(.*)/i;var XQe=1,TlM=RegExp("[^a-z0-9-_:]"),aZ,mnb,WDu=/^[^ \t\n\r\u000c]+/,vfW=/^[, \t\n\r\u000c]+/,jvj=new WeakMap;var Gh,L6=function(G){return Gh?function(){var H=_.Ry.apply(0,arguments);try{return G.apply(null,_.OP(H))}catch(Z){if(!Gh||Gh(Z)!==!0)throw Z;}}:G};var y3=function(G){this.generateIdFn=G;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
y3.prototype.getId=function(G,H,Z,Q){Z=Z||nHa(this,G);G=Q||VDN(this,G);Q=Z.get(H);Q||(Q=this.generateIdFn(),Z.set(H,Q),G.set(Q,H));return Q};
y3.prototype.getIds=function(G,H){var Z=this,Q=nHa(this,G),p=VDN(this,G);return H.map(function(l){return Z.getId(G,l,Q,p)})};
y3.prototype.reset=function(G){G?(this.iframeIdToRemoteIdMap.delete(G),this.iframeRemoteIdToIdMap.delete(G)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var nHa=function(G,H){var Z=G.iframeIdToRemoteIdMap.get(H);Z||(Z=new Map,G.iframeIdToRemoteIdMap.set(H,Z));return Z},VDN=function(G,H){var Z=G.iframeRemoteIdToIdMap.get(H);
Z||(Z=new Map,G.iframeRemoteIdToIdMap.set(H,Z));return Z};var RSu=function(G){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new y3(crb);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=G.mutationCb;this.wrappedEmit=G.wrappedEmit;this.stylesheetManager=G.stylesheetManager;this.recordCrossOriginIframes=G.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new y3(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=G.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11825_handleMessage.bind(this))},E_2=function(G,H){G.iframes.set(H,!0);
H.contentWindow&&G.crossOriginIframeMap.set(H.contentWindow,H)},s3W=function(G,H){G.loadListener=H},bpj=function(G,H,Z){G.mutationCb({adds:[{parentId:G.mirror.getId(H),
nextId:null,node:Z}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(G.recordCrossOriginIframes){var Q;(Q=H.contentWindow)==null||Q.addEventListener("message",G.JSC$11825_handleMessage.bind(G))}var p;(p=G.loadListener)==null||p.call(G,H);H.contentDocument&&H.contentDocument.adoptedStyleSheets&&H.contentDocument.adoptedStyleSheets.length>0&&TsW(G.stylesheetManager,H.contentDocument.adoptedStyleSheets,G.mirror.getId(H.contentDocument))};
RSu.prototype.JSC$11825_handleMessage=function(G){if(G.data.type==="rrweb"&&G.origin===G.data.origin&&G.source){var H=this.crossOriginIframeMap.get(G.source);H&&(H=$8a(this,H,G.data.event))&&this.wrappedEmit(H,G.data.isCheckout)}};
var $8a=function(G,H,Z){switch(Z.type){case 2:G.crossOriginIframeMirror.reset(H);G.crossOriginIframeStyleMirror.reset(H);X4d(G,Z.data.node,H);var Q=Z.data.node.id;G.crossOriginIframeRootIdMap.set(H,Q);cga(G,Z.data.node,Q);return{timestamp:Z.timestamp,type:3,data:{source:0,adds:[{parentId:G.mirror.getId(H),nextId:null,node:Z.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return Z;case 5:return o$(G,Z.data.payload,H,["id","parentId","previousId","nextId"]),Z;case 3:switch(Z.data.source){case 0:return Z.data.adds.forEach(function(p){o$(G,
p,H,["parentId","nextId","previousId"]);X4d(G,p.node,H);var l=G.crossOriginIframeRootIdMap.get(H);l&&cga(G,p.node,l)}),Z.data.removes.forEach(function(p){o$(G,p,H,["parentId",
"id"])}),Z.data.attributes.forEach(function(p){o$(G,p,H,["id"])}),Z.data.texts.forEach(function(p){o$(G,p,H,["id"])}),Z;
case 12:case 6:case 1:return Z.data.positions.forEach(function(p){o$(G,p,H,["id"])}),Z;
case 7:case 2:case 3:case 9:case 5:return o$(G,Z.data,H,["id"]),Z;case 8:case 13:return o$(G,Z.data,H,["id"]),TmG(G,Z.data,H,["styleId"]),Z;case 10:return Z;case 14:return Z.data.ranges.forEach(function(p){o$(G,p,H,["start","end"])}),Z;
case 15:return o$(G,Z.data,H,["id"]),TmG(G,Z.data,H,["styleIds"]),(Q=Z.data.styles)==null||Q.forEach(function(p){TmG(G,p,H,["styleId"])}),Z}}return!1};
RSu.prototype.replace=function(G,H,Z,Q){Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next())if(p=p.value,Array.isArray(H[p])||typeof H[p]==="number")Array.isArray(H[p])?H[p]=G.getIds(Z,H[p]):H[p]=G.getId(Z,H[p]);return H};
var o$=function(G,H,Z,Q){G.replace(G.crossOriginIframeMirror,H,Z,Q)},TmG=function(G,H,Z,Q){G.replace(G.crossOriginIframeStyleMirror,H,Z,Q)},X4d=function(G,H,Z){o$(G,H,Z,["id",
"rootId"]);"childNodes"in H&&H.childNodes.forEach(function(Q){X4d(G,Q,Z)})},cga=function(G,H,Z){H.type===0||H.rootId||(H.rootId=Z);
"childNodes"in H&&H.childNodes.forEach(function(Q){cga(G,Q,Z)})};var BsW=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},fHx=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.g=fHx.prototype;_.g.getId=function(G){var H;return(H=this.styleIDMap.get(G))!=null?H:-1};
_.g.has=function(G){return this.styleIDMap.has(G)};
_.g.add=function(G,H){if(this.has(G))return this.getId(G);H=H===void 0?this.id++:H;this.styleIDMap.set(G,H);this.idStyleMap.set(H,G);return H};
_.g.getStyle=function(G){return this.idStyleMap.get(G)||null};
_.g.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.g.generateId=function(){return this.id++};var vHx=function(){this.length=0;this.tail=this.head=null};
vHx.prototype.get=function(G){if(G>=this.length)throw Error("Ze");for(var H=this.head,Z=0;Z<G;Z++){var Q=void 0;H=((Q=H)==null?void 0:Q.next)||null}return H};
var Wy4=function(G,H){var Z={value:H,previous:null,next:null};H.__ln=Z;if(H.previousSibling&&"__ln"in H.previousSibling){var Q=H.previousSibling.__ln.next;Z.next=Q;Z.previous=H.previousSibling.__ln;H.previousSibling.__ln.next=Z;Q&&(Q.previous=Z)}else H.nextSibling&&"__ln"in H.nextSibling&&H.nextSibling.__ln.previous?(Q=H.nextSibling.__ln.previous,Z.previous=Q,Z.next=H.nextSibling.__ln,H.nextSibling.__ln.previous=Z,Q&&(Q.next=Z)):(G.head&&(G.head.previous=Z),Z.next=G.head,G.head=Z);Z.next===null&&
(G.tail=Z);G.length++};
vHx.prototype.removeNode=function(G){var H=G.__ln;this.head&&(H.previous?(H.previous.next=H.next)?H.next.previous=H.previous:this.tail=H.previous:(this.head=H.next)?this.head.previous=null:this.tail=null,G.__ln&&delete G.__ln,this.length--)};
var zx2=function(G,H){return G+"@"+H},qa2=function(){var G=this;
this.locked=this.JSC$11856_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(H){H.forEach(G.JSC$11856_processMutation);G.emit()};
this.emit=function(){if(!G.JSC$11856_frozen&&!G.locked){for(var H=[],Z=new Set,Q=new vHx,p=function(d){for(var e=-2;e===-2;)e=(d=d&&d.nextSibling)&&G.mirror.getId(d);return e},l=function(d){var e=C6(d);
if(e&&ZpW(d)){var n=!1;if(d.nodeType===Node.TEXT_NODE){var c=e.tagName;if(c==="TEXTAREA")return;c==="STYLE"&&G.addedSet.has(e)&&(n=!0)}e=wg(e)?G.mirror.getId(sQj(d)):G.mirror.getId(e);c=p(d);if(e===-1||c===-1)return Wy4(Q,d);if(n=oZ(d,{doc:G.doc,mirror:G.mirror,blockClass:G.blockClass,blockSelector:G.blockSelector,maskTextClass:G.maskTextClass,maskTextSelector:G.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:G.inlineStylesheet,maskInputOptions:G.maskInputOptions,maskTextFn:G.maskTextFn,
maskInputFn:G.maskInputFn,slimDOMOptions:G.slimDOMOptions,dataURLOptions:G.dataURLOptions,recordCanvas:G.recordCanvas,inlineImages:G.inlineImages,onSerialize:function(W){W.nodeName==="IFRAME"&&G.mirror.nodeMetaMap.get(W)&&E_2(G.iframeManager,W);GjU(W,G.mirror)&&Ya2(G.stylesheetManager,W);d&&rg(d)&&FNe(G.shadowDomManager,rg(d),G.doc)},
onIframeLoad:function(W,M){bpj(G.iframeManager,W,M);W.contentWindow&&W.contentDocument&&Gv2(G.shadowDomManager,W.contentWindow.Element,W.contentDocument)},
onStylesheetLoad:function(W,M){HVe(G.stylesheetManager,W,M)},
cssCaptured:n}))H.push({parentId:e,nextId:c,node:n}),Z.add(n.id)}};G.mapRemoves.length;)exa(G.mirror,G.mapRemoves.shift());
for(var q=_.I(G.movedSet),u=q.next();!u.done;u=q.next())u=u.value,l$2(G.removesSubTreeCache,u)&&!G.movedSet.has(C6(u))||l(u);q=_.I(G.addedSet);for(u=q.next();!u.done;u=q.next())u=u.value,I$j(G.droppedSet,u)||l$2(G.removesSubTreeCache,u)?I$j(G.movedSet,u)?l(u):G.droppedSet.add(u):l(u);for(u=null;Q.length;){q=null;if(u){var B=G.mirror.getId(C6(u.value)),t=p(u.value);B!==-1&&t!==-1&&(q=u)}if(!q)for(u=Q.tail;u;){var D=u;u=u.previous;if(D&&(B=G.mirror.getId(C6(D.value)),p(D.value)!==-1))if(B!==-1){q=D;
break}else if((B=C6(D.value))&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(B=PE(B),G.mirror.getId(B)!==-1)){q=D;break}}if(!q){for(;Q.head;)Q.removeNode(Q.head.value);break}u=q.previous;Q.removeNode(q.value);l(q.value)}l={texts:G.texts.map(function(d){var e=d.node,n=C6(e);n&&n.tagName==="TEXTAREA"&&G.genTextAreaValueMutation(n);return{id:G.mirror.getId(e),value:d.value}}).filter(function(d){return!Z.has(d.id)}).filter(function(d){return G.mirror.has(d.id)}),
attributes:G.attributes.map(function(d){var e=d.attributes;if(typeof e.style==="string"){var n=JSON.stringify(d.styleDiff),c=JSON.stringify(d._unchangedStyles);n.length<e.style.length&&(n+c).split("var(").length===e.style.split("var(").length&&(e.style=d.styleDiff)}return{id:G.mirror.getId(d.node),attributes:e}}).filter(function(d){return!Z.has(d.id)}).filter(function(d){return G.mirror.has(d.id)}),
removes:G.removes,adds:H};if(l.texts.length||l.attributes.length||l.removes.length||l.adds.length)G.texts=[],G.attributes=[],G.attributeMap=new WeakMap,G.removes=[],G.addedSet=new Set,G.movedSet=new Set,G.droppedSet=new Set,G.removesSubTreeCache=new Set,G.movedMap={},G.mutationCb(l)}};
this.genTextAreaValueMutation=function(H){var Z=G.attributeMap.get(H);Z||(Z={node:H,attributes:{},styleDiff:{},_unchangedStyles:{}},G.attributes.push(Z),G.attributeMap.set(H,Z));var Q=Array.from(i4(H),function(p){return yrb(p)||""}).join("");
Z.attributes.value=BlU({element:H,maskInputOptions:G.maskInputOptions,tagName:H.tagName,type:tau(H),value:Q,maskInputFn:G.maskInputFn})};
this.JSC$11856_processMutation=function(H){if(!Yxf(H.target,G.mirror,G.slimDOMOptions))switch(H.type){case "characterData":var Z=yrb(H.target);N2(H.target,G.blockClass,G.blockSelector,!1)||Z===H.oldValue||G.texts.push({value:C5f(H.target,G.maskTextClass,G.maskTextSelector,!0)&&Z?G.maskTextFn?G.maskTextFn(Z,Efj(H.target)):Z.replace(/[\S]/g,"*"):Z,node:H.target});break;case "attributes":Z=H.target;var Q=H.attributeName,p=H.target.getAttribute(Q);if(Q==="value"){var l=tau(Z);p=BlU({element:Z,maskInputOptions:G.maskInputOptions,
tagName:Z.tagName,type:l,value:p,maskInputFn:G.maskInputFn})}if(N2(H.target,G.blockClass,G.blockSelector,!1)||p===H.oldValue)break;l=G.attributeMap.get(H.target);if(Z.tagName==="IFRAME"&&Q==="src"&&!G.keepIframeSrcFn(p))if(Z.contentDocument)break;else Q="rr_src";l||(l={node:H.target,attributes:{},styleDiff:{},_unchangedStyles:{}},G.attributes.push(l),G.attributeMap.set(H.target,l));Q==="type"&&Z.tagName==="INPUT"&&(H.oldValue||"").toLowerCase()==="password"&&Z.setAttribute("data-rr-is-password","true");
if(!rr3(Z.tagName,Q))if(l.attributes[Q]=P5e(G.doc,Z.tagName.toLowerCase(),Q.toLowerCase(),p),Q==="style"){if(!G.unattachedDoc)try{G.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){G.unattachedDoc=G.doc}Q=G.unattachedDoc.createElement("span");H.oldValue&&Q.setAttribute("style",H.oldValue);p=_.I(Array.from(Z.style));for(var q=p.next();!q.done;q=p.next()){q=q.value;var u=Z.style.getPropertyValue(q),B=Z.style.getPropertyPriority(q);u!==Q.style.getPropertyValue(q)||B!==Q.style.getPropertyPriority(q)?
l.styleDiff[q]=B===""?u:[u,B]:l._unchangedStyles[q]=[u,B]}Q=_.I(Array.from(Q.style));for(p=Q.next();!p.done;p=Q.next())p=p.value,Z.style.getPropertyValue(p)===""&&(l.styleDiff[p]=!1)}else Q==="open"&&Z.tagName==="DIALOG"&&(Z.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break;case "childList":N2(H.target,G.blockClass,G.blockSelector,!0)||(H.target.tagName==="TEXTAREA"?G.genTextAreaValueMutation(H.target):(H.addedNodes.forEach(function(t){return G.genAdds(t,
H.target)}),H.removedNodes.forEach(function(t){var D=G.mirror.getId(t),d=wg(H.target)?G.mirror.getId(PE(H.target)):G.mirror.getId(H.target);
N2(H.target,G.blockClass,G.blockSelector,!1)||Yxf(t,G.mirror,G.slimDOMOptions)||G.mirror.getId(t)===-1||(G.addedSet.has(t)?(QQM(G.addedSet,t),G.droppedSet.add(t)):G.addedSet.has(H.target)&&D===-1||FDo(H.target,G.mirror)||(G.movedSet.has(t)&&G.movedMap[D+"@"+d]?QQM(G.movedSet,t):(G.removes.push({parentId:d,id:D,isShadow:wg(H.target)&&hc(H.target)?!0:void 0}),pyW(t,G.removesSubTreeCache))),G.mapRemoves.push(t))})))}};
this.genAdds=function(H,Z){if(!KyG(G.processedNodeManager,H,G)&&!G.addedSet.has(H)&&!G.movedSet.has(H)){if(G.mirror.nodeMetaMap.has(H)){if(Yxf(H,G.mirror,G.slimDOMOptions))return;G.movedSet.add(H);var Q=null;Z&&G.mirror.nodeMetaMap.has(Z)&&(Q=G.mirror.getId(Z));Q&&Q!==-1&&(G.movedMap[zx2(G.mirror.getId(H),Q)]=!0)}else G.addedSet.add(H),G.droppedSet.delete(H);N2(H,G.blockClass,G.blockSelector,!1)||(i4(H).forEach(function(p){return G.genAdds(p)}),H&&rg(H)&&i4(rg(H)).forEach(function(p){G.processedNodeManager.add(p,
G);
G.genAdds(p,H)}))}}};
_.g=qa2.prototype;_.g.init=function(G){var H=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(Z){H[Z]=G[Z]})};
_.g.freeze=function(){this.JSC$11856_frozen=!0;this.canvasManager.freeze()};
_.g.unfreeze=function(){this.JSC$11856_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.g.isFrozen=function(){return this.JSC$11856_frozen};
_.g.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.g.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.g.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var xi=[],Fr=window.Proxy,dQ3=["INPUT","TEXTAREA","SELECT"],eSf=new WeakMap;var MD4=new Map,CnX=function(G,H,Z){if(G&&(hSU(G,H)||typeof G==="object")){H=G.constructor.name;var Q=MD4.get(Z);Q||(Q=new Map,MD4.set(Z,Q));Q.has(H)||Q.set(H,[]);Z=Q.get(H);H=Z.indexOf(G);H===-1&&(H=Z.length,Z.push(G));return H}},ipf=function(G,H,Z){return G.map(function(Q){return wyb(Q,H,Z)})},hSU=function(G,H){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(Z){return typeof H[Z]===
"function"}).find(function(Z){return G instanceof H[Z]})};var jEw=hB(["\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"]),
U4e=_.Qk(jEw.join(""));var xQj=function(G){var H=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11898_frozen=!1;this.JSC$11898_processMutation=function(B,t){if(H.rafStamps.invokeId&&H.rafStamps.latestId!==H.rafStamps.invokeId||!H.rafStamps.invokeId)H.rafStamps.invokeId=H.rafStamps.latestId;H.pendingCanvasMutations.has(B)||H.pendingCanvasMutations.set(B,[]);H.pendingCanvasMutations.get(B).push(t)};
var Z=G.sampling===void 0?"all":G.sampling,Q=G.win,p=G.blockClass,l=G.blockSelector,q=G.recordCanvas,u=G.dataURLOptions;this.mutationCb=G.mutationCb;this.mirror=G.mirror;q&&Z==="all"&&P62(this,Q,p,l);q&&typeof Z==="number"&&rgp(this,Z,Q,p,l,{dataURLOptions:u})};
_.g=xQj.prototype;_.g.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.g.freeze=function(){this.JSC$11898_frozen=!0};
_.g.unfreeze=function(){this.JSC$11898_frozen=!1};
_.g.lock=function(){this.locked=!0};
_.g.unlock=function(){this.locked=!1};
var rgp=function(G,H,Z,Q,p,l){var q=a$X(Z,Q,p,!0),u=new Map,B=eLb(ROU());B.onmessage=function(c){var W=c.data.id;u.set(W,!1);"base64"in c.data&&(c=c.data,G.mutationCb({id:W,type:b4["2D"],commands:[{property:"clearRect",args:[0,0,c.width,c.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:c.base64}],type:c.type}]},0,0]}]}))};
var t=1E3/H,D=0,d=function(){var c=[];Z.document.querySelectorAll("canvas").forEach(function(W){N2(W,Q,p,!0)||c.push(W)});
return c},e=function(c){D&&c-D<t||(D=c,d().forEach(function(W){var M,r,w,x,U;
return _.S(function(R){if(R.nextAddress==1){M=G.mirror.getId(W);if(u.get(M)||W.width===0||W.height===0)return R.return();u.set(M,!0);["webgl","webgl2"].includes(W.__context)&&(r=W.getContext(W.__context),((w=r)==null?void 0:(x=w.getContextAttributes())==null?void 0:x.preserveDrawingBuffer)===!1&&r.clear(r.COLOR_BUFFER_BIT));return R.yield(createImageBitmap(W),2)}U=R.yieldResult;B.postMessage({id:M,bitmap:U,width:W.width,height:W.height,dataURLOptions:l.dataURLOptions},[U]);_.K0(R)})}));
n=requestAnimationFrame(e)};
var n=requestAnimationFrame(e);G.resetObservers=function(){q();cancelAnimationFrame(n)}},P62=function(G,H,Z,Q){w4G(G);
hxR(G);var p=a$X(H,Z,Q,!1),l=OpX(G.JSC$11898_processMutation.bind(G),H,Z,Q),q=o_b(G.JSC$11898_processMutation.bind(G),H,Z,Q);G.resetObservers=function(){p();l();q()}},hxR=function(G){requestAnimationFrame(function(){return C6p(G)})},w4G=function(G){var H=function(Z){G.rafStamps.latestId=Z;
requestAnimationFrame(H)};
requestAnimationFrame(H)},C6p=function(G){G.pendingCanvasMutations.forEach(function(H,Z){var Q=G.mirror.getId(Z);
iYd(G,Z,Q)});
requestAnimationFrame(function(){return C6p(G)})},iYd=function(G,H,Z){if(!G.JSC$11898_frozen&&!G.locked){var Q=G.pendingCanvasMutations.get(H);
if(Q&&Z!==-1){var p=Q.map(function(l){l=Object.assign({},l);return delete l.type,l});
G.mutationCb({id:Z,type:Q[0].type,commands:p});G.pendingCanvasMutations.delete(H)}}};var Nso=function(){this.nodeMap=new WeakMap;this.active=!1},KyG=function(G,H,Z){return(G=G.nodeMap.get(H))&&Array.from(G).some(function(Q){return Q!==Z})};
Nso.prototype.add=function(G,H){var Z=this;this.active||(this.active=!0,requestAnimationFrame(function(){Z.nodeMap=new WeakMap;Z.active=!1}));
this.nodeMap.set(G,(this.nodeMap.get(G)||new Set).add(H))};
Nso.prototype.destroy=function(){};var LNu=function(G){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=G.mutationCb;this.scrollCb=G.scrollCb;this.bypassOptions=G.bypassOptions;this.mirror=G.mirror;this.init()};
LNu.prototype.init=function(){this.reset();Gv2(this,Element,document)};
var FNe=function(G,H,Z){if(hc(H)&&!G.shadowDoms.has(H)){G.shadowDoms.add(H);var Q=Saj(Object.assign({},G.bypassOptions,{doc:Z,mutationCb:G.mutationCb,mirror:G.mirror,shadowDomManager:G}),H);G.restoreHandlers.push(function(){return Q.disconnect()});
G.restoreHandlers.push(kjj(Object.assign({},G.bypassOptions,{scrollCb:G.scrollCb,doc:H,mirror:G.mirror})));setTimeout(function(){H.adoptedStyleSheets&&H.adoptedStyleSheets.length>0&&TsW(G.bypassOptions.stylesheetManager,H.adoptedStyleSheets,G.mirror.getId(PE(H)));G.restoreHandlers.push(f$f({mirror:G.mirror,stylesheetManager:G.bypassOptions.stylesheetManager},H))},0)}},Gv2=function(G,H,Z){G.restoreHandlers.push(jn(H.prototype,"attachShadow",function(Q){return function(p){p=Q.call(this,p);
var l=rg(this);l&&ZpW(this)&&FNe(G,l,Z);return p}}))};
LNu.prototype.reset=function(){this.restoreHandlers.forEach(function(G){try{G()}catch(H){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var UQX=function(G){this.trackedLinkElements=new WeakSet;this.styleMirror=new fHx;this.mutationCb=G.mutationCb;this.adoptedStyleSheetCb=G.adoptedStyleSheetCb},HVe=function(G,H,Z){"_cssText"in Z.attributes&&G.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:Z.id,attributes:Z.attributes}]});Ya2(G,H)},Ya2=function(G,H){G.trackedLinkElements.has(H)||G.trackedLinkElements.add(H)},TsW=function(G,H,Z){if(H.length!==0){Z={id:Z,
styleIds:[]};var Q=[];H=_.I(H);for(var p=H.next(),l={};!p.done;l={sheet$jscomp$3:void 0},p=H.next())l.sheet$jscomp$3=p.value,p=void 0,G.styleMirror.has(l.sheet$jscomp$3)?p=G.styleMirror.getId(l.sheet$jscomp$3):(p=G.styleMirror.add(l.sheet$jscomp$3),Q.push({styleId:p,rules:Array.from(l.sheet$jscomp$3.rules||CSSRule,function(q){return function(u,B){return{rule:qxb(u,q.sheet$jscomp$3.href),index:B}}}(l))})),Z.styleIds.push(p);
Q.length>0&&(Z.styles=Q);G.adoptedStyleSheetCb(Z)}};
UQX.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var sl,mQv,AqU;try{if(Array.from([1],function(G){return G*2})[0]!==2){var OY4=document.createElement("iframe");
document.body.appendChild(OY4);var aHp;Array.from=((aHp=OY4.contentWindow)==null?void 0:aHp.Array.from)||Array.from;document.body.removeChild(OY4)}}catch(G){console.debug("Unable to override Array.from",G)}var Hf=new m_;var uAW="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(" "),SeU={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},qeX=null,Q3U=null;var BKu={},JAj=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 VGb={text:1},DOX={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var ygR=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,oHd={CONSTANT:{isUnwrappable:function(G){return G instanceof AL},
unwrap:lwd},JAVASCRIPT:{isUnwrappable:function(G){return G instanceof _.Z6},
unwrap:p0},HTML:{isUnwrappable:function(G){return G instanceof xY},
unwrap:function(G){return Fx(G)}},
RESOURCE_URL:{isUnwrappable:function(G){return G instanceof Kq},
unwrap:_.PO},STRING:{isUnwrappable:function(G){return G instanceof Object},
unwrap:function(G){return String(G)}},
STYLE:{isUnwrappable:function(G){return typeof G==="string"},
unwrap:function(G){return G}},
URL:{isUnwrappable:function(G){return Cq(G)},
unwrap:_.iI}},m8w={CONSTANT:$O3,JAVASCRIPT:$O3,HTML:function(G){G=G instanceof xY?G:Lq(String(G).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Fx(G)},
RESOURCE_URL:$O3,STRING:String,STYLE:$O3,URL:function(G,H){G=ygR.test(G)?G:void 0;return G===void 0?H:G}};var POW=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,XsX=/[\t\n\f\r ]+/,TKj=/[\t\n\f\r ,]+/g,vqW=function(G,H,Z){return Z},lJ={},U8d=function(){var G=function(){var Q={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",Q):Q}(),H=G.createHTML(""),Z=G.createScript("");
G=G.createScriptURL("");return{INNOCUOUS_STRING:H,INNOCUOUS_SCRIPT:Z,INNOCUOUS_URL:G}}(),p9=U8d.INNOCUOUS_STRING,j3f=U8d.INNOCUOUS_SCRIPT,MGv=U8d.INNOCUOUS_URL;var Rx4=function(G){var H=rAo(G);return function(Z,Q,p,l){return l?H(l,Q,p,Z):p9}}({reportHandler:function(G,H){if(G)try{throw Error(H);
}catch(Z){_.me(Z)}},
safeTypesBridge:function(G,H,Z){var Q=oHd[H];return Q.isUnwrappable(G)&&(Q=Q.unwrap(G,Z),Q!==Z)?Q:(0,m8w[H])(String(G),Z)},
allowedIdentifierPrefixes:[""]});if(Px!==void 0)throw Error("af");Px=Rx4;if(Px!==Rx4)throw Error("bf");IO("Injectable",[]);var lyR=IO("Inject",[["token",void 0]]),Iyj=IO("Optional",[]);IO("Injectable",[]);var q4f=IO("Self",[]),S4u=IO("SkipSelf",[]);IO("Host",[]);var Nmw={},Agt=function(){};
Agt.prototype.resolve=function(){throw Error("df");};
Agt.prototype.addProvider=function(){throw Error("df");};var QBf=Function;var x84=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Ly_=function(){this._reflect=window.Reflect};
_.g=Ly_.prototype;_.g.factory=function(G){return function(){return new (Function.prototype.bind.apply(G,[null].concat(_.OP(_.Ry.apply(0,arguments)))))}};
_.g._zipTypesAndAnnotations=function(G,H){var Z=typeof G==="undefined"?Array(H.length):Array(G.length);for(var Q=0;Q<Z.length;Q++)Z[Q]=typeof G==="undefined"?[]:G[Q]!=Object?[G[Q]]:[],H&&hAX(H[Q])&&(Z[Q]=Z[Q].concat(H[Q]));return Z};
_.g._ownParameters=function(G,H){if(x84.exec(G.toString()))return null;if(G.parameters&&G.parameters!==H.parameters)return G.parameters;var Z=G.ctorParameters;return Z&&Z!==H.ctorParameters?(H=typeof Z==="function"?Z():Z,G=H.map(function(Q){return Q&&Q.type}),H=H.map(function(Q){return Q&&iVR(Q.decorators)}),this._zipTypesAndAnnotations(G,H)):hAX(this._reflect)&&hAX(this._reflect.getOwnMetadata)&&(H=this._reflect.getOwnMetadata("parameters",G),(Z=this._reflect.getOwnMetadata("design:paramtypes",G))||
H)?this._zipTypesAndAnnotations(Z,H):Array(G.length).fill(void 0)};
_.g.parameters=function(G){if(!G.prototype)return[];var H=Object.getPrototypeOf(G.prototype).constructor;(G=this._ownParameters(G,H))||H===Object||(G=this.parameters(H));return G||[]};
_.g._ownAnnotations=function(G,H){if(G.annotations&&G.annotations!==H.annotations)return G=G.annotations,typeof G==="function"&&G.annotations&&(G=G.annotations),G;if(G.decorators&&G.decorators!==H.decorators)return iVR(G.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",G)};
_.g.annotations=function(G){var H=Object.getPrototypeOf(G.prototype).constructor;G=this._ownAnnotations(G,H)||[];return(H!==Object?this.annotations(H):[]).concat(G)};
_.g._ownPropMetadata=function(G,H){if(G.propMetadata&&G.propMetadata!==H.propMetadata)return G=G.propMetadata,typeof G==="function"&&G.propMetadata&&(G=G.propMetadata),G;if(G.propDecorators&&G.propDecorators!==H.propDecorators){var Z=G.propDecorators,Q={};Object.keys(Z).forEach(function(p){Q[p]=iVR(Z[p])});
return Q}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",G)};
_.g.propMetadata=function(G){var H=Object.getPrototypeOf(G.prototype).constructor,Z={};if(H!==Object){var Q=this.propMetadata(H);Object.keys(Q).forEach(function(l){Z[l]=Q[l]})}var p=this._ownPropMetadata(G,H);
p&&Object.keys(p).forEach(function(l){var q=[];Z.hasOwnProperty(l)&&q.push.apply(q,_.OP(Z[l]));q.push.apply(q,_.OP(p[l]));Z[l]=q});
return Z};
_.g.getter=function(G){return function(H){return H[G]}};
_.g.setter=function(G){return function(H,Z){return H[G]=Z}};
_.g.method=function(G){return function(H,Z){if(!H[G])throw Error("ef`"+G);return H[G].apply(H,Z)}};var EHa=function(){};var Yy7=function(G){this.reflectionCapabilities=G};
_.T(Yy7,EHa);_.g=Yy7.prototype;_.g.factory=function(G){return this.reflectionCapabilities.factory(G)};
_.g.parameters=function(G){return this.reflectionCapabilities.parameters(G)};
_.g.annotations=function(G){return this.reflectionCapabilities.annotations(G)};
_.g.propMetadata=function(G){return this.reflectionCapabilities.propMetadata(G)};
_.g.getter=function(G){return this.reflectionCapabilities.getter(G)};
_.g.setter=function(G){return this.reflectionCapabilities.setter(G)};
_.g.method=function(G){return this.reflectionCapabilities.method(G)};var AAv=new Yy7(new Ly_);var mL=function(G,H){this.token=G;this.id=H;if(G===void 0||G===null)throw Error("kf");};
_.u4.Object.defineProperties(mL.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return q5(this.token)}}});
_.u4.Object.defineProperties(mL,{JSC$11954_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return uJ.JSC$11958_numberOfKeys}}});
var Fya=function(){this._allKeys=new Map};
Fya.prototype.get=function(G){if(G instanceof mL)return G;if(this._allKeys.has(G))return this._allKeys.get(G);var H=new mL(G,mL.JSC$11954_numberOfKeys);this._allKeys.set(G,H);return H};
_.u4.Object.defineProperties(Fya.prototype,{JSC$11958_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var uJ=new Fya;var uEj=function(G,H,Z){this.key=G;this.optional=H;this.visibility=Z},L1o=function(G){return new uEj(G,!1,null)},YeM=[],GJX=function(G,H,Z){this.key=G;
this.resolvedFactories=H;this.multiProvider=Z},F1j=function(G,H,Z,Q){this.factory=G;
this.dependencies=H;this.providerClass=Z;this.providerValue=Q};var Us={},R$=function(G,H){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=H===void 0?null:H;G=_.I(G);for(H=G.next();!H.done;H=G.next())this.addProvider(H.value)};
_.g=R$.prototype;_.g.addProvider=function(G){this.keyIdToIndex.set(G.key.id,this.keyIds.length);this.providers.push(G);this.keyIds.push(G.key.id);this.objs.push(Us)};
_.g.resolve=function(G,H){H=H===void 0?Nmw:H;return this._getByKey(uJ.get(Su(G)),null,H)};
_.g._new=function(G){if(this.constructedKeyIds[G.key.id])throw UOM(this,G.key);this.constructedKeyIds[G.key.id]=!0;return this._instantiateProvider(G)};
_.g._instantiateProvider=function(G){if(G.multiProvider){for(var H=Array(G.resolvedFactories.length),Z=0;Z<G.resolvedFactories.length;++Z)H[Z]=this._instantiate(G,G.resolvedFactories[Z]);return H}return this._instantiate(G,G.resolvedFactories[0])};
_.g._instantiate=function(G,H){var Z=this,Q=H.factory;try{var p=H.dependencies.map(function(q){return Z._getByReflectiveDependency(q)})}catch(q){throw q.addKey&&q.addKey(this,G.key),q;
}try{var l=Q.apply(null,_.OP(p))}catch(q){throw RAv(this,q,G.key);}return l};
_.g._getByReflectiveDependency=function(G){return this._getByKey(G.key,G.visibility,G.optional?null:Nmw)};
_.g._getByKey=function(G,H,Z){return G===bYG?this:H instanceof q4f?this._getByKeySelf(G,Z):this._getByKeyDefault(G,Z,H)};
_.g._getObjByKeyId=function(G){for(var H=0;H<this.keyIds.length;H++)if(this.keyIds[H]===G)return this.objs[H]===Us&&(this.objs[H]=this._new(this.providers[H])),this.objs[H];return Us};
_.g._throwOrNull=function(G,H){if(H!==Nmw)return H;throw mOW(this,G);};
_.g._getByKeySelf=function(G,H){var Z=this._getObjByKeyId(G.id);return Z!==Us?Z:this._throwOrNull(G,H)};
_.g._getByKeyDefault=function(G,H,Z){for(var Q=Z=Z instanceof S4u?this.parent:this;Z instanceof R$;){var p=Z._getObjByKeyId(G.id);if(p!==Us)return p;Z=Z.parent}p=void 0;if(Z!==null)try{var l=Z.resolve(G.token,H);if(l!==Us)return l}catch(q){p=q}if(!(Q instanceof R$&&JOj(G.token))){if(p)throw p;return this._throwOrNull(G,H)}for(l=Q;l.parent instanceof R$;)l=l.parent;l.addProvider(Ht2({provide:G.token,useClass:G.token}));return l.resolve(G.token,H)};
_.g.toString=function(){return this.displayName};
_.u4.Object.defineProperties(R$.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+BaX(this,function(G){return' "'+G.key.displayName+'" '}).join(", ")+"])"}}});
var bYG=uJ.get(Su(Agt));(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,m,n){if(e==Array.prototype||e==Object.prototype)return e;e[m]=n.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 m=0;m<e.length;++m){var n=e[m];if(n&&n.Math==Math)return n}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$";var JSCompiler_inline_result$jscomp$0,classes$jscomp$inline_5="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");$jscomp.global.BigInt64Array&&(classes$jscomp$inline_5.push("BigInt64"),
classes$jscomp$inline_5.push("BigUint64"));JSCompiler_inline_result$jscomp$0=classes$jscomp$inline_5;$jscomp.TYPED_ARRAY_CLASSES=JSCompiler_inline_result$jscomp$0;$jscomp.polyfillTypedArrayMethod=function(e,m,n,b){if(m)for(var q=0;q<$jscomp.TYPED_ARRAY_CLASSES.length;q++){var t=$jscomp.TYPED_ARRAY_CLASSES[q]+"Array.prototype."+e;$jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,m,n,b):$jscomp.polyfillUnisolated(t,m,n,b)}};
$jscomp.polyfill=function(e,m,n,b){m&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(e,m,n,b):$jscomp.polyfillUnisolated(e,m,n,b))};
$jscomp.polyfillUnisolated=function(e,m){var n=$jscomp.global;e=e.split(".");for(var b=0;b<e.length-1;b++){var q=e[b];if(!(q in n))return;n=n[q]}e=e[e.length-1];b=n[e];m=m(b);m!=b&&m!=null&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:m})};
$jscomp.polyfillIsolated=function(e,m,n){var b=e.split("."),q=b.length===1;e=b[0];e=!q&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var t=0;t<b.length-1;t++){var u=b[t];if(!(u in e))return;e=e[u]}b=b[b.length-1];n=$jscomp.IS_SYMBOL_NATIVE&&n==="es6"?e[b]:null;m=m(n);m!=null&&(q?$jscomp.defineProperty($jscomp.polyfills,b,{configurable:!0,writable:!0,value:m}):m!==n&&($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:m})))};
$jscomp.checkEs6ConformanceViaProxy=function(){try{var e={},m=Object.create(new $jscomp.global.Proxy(e,{get:function(n,b,q){return n==e&&b=="q"&&q==m}}));
return m.q===!0}catch(n){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 m=0;return function(){return m<e.length?{done:!1,value:e[m++]}:{done:!0}}};
$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};
$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(e){if(e)return e;var m=function(t,u){this.$jscomp$symbol$id_=t;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:u})};
m.prototype.toString=function(){return this.$jscomp$symbol$id_};
e=Math.random()*1E9>>>0;var n="jscomp_symbol_"+e+"_",b=0,q=function(t){if(this instanceof q)throw new TypeError("Symbol is not a constructor");return new m(n+(t||"")+"_"+b++,t)};
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 m=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(m)return m.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,m){return Object.prototype.hasOwnProperty.call(e,m)};
$jscomp.polyfill("WeakMap",function(e){function m(){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 n(){}
function b(f){var h=typeof f;return h==="object"&&f!==null||h==="function"}
function q(f){if(!$jscomp.owns(f,u)){var h=new n;$jscomp.defineProperty(f,u,{value:h})}}
function t(f){if(!$jscomp.ISOLATE_POLYFILLS){var h=Object[f];h&&(Object[f]=function(k){if(k instanceof n)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(m())return e;var u="$jscomp_hidden_"+Math.random();t("freeze");t("preventExtensions");t("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,u))throw Error("WeakMap key fail: "+f);f[u][this.id_]=h;return this};
d.prototype.get=function(f){return b(f)&&$jscomp.owns(f,u)?f[u][this.id_]:void 0};
d.prototype.has=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)};
d.prototype.delete=function(f){return b(f)&&$jscomp.owns(f,u)&&$jscomp.owns(f[u],this.id_)?delete f[u][this.id_]:!1};
return d},"es6","es3");
$jscomp.MapEntry=function(){};
$jscomp.polyfill("Map",function(e){function m(){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(m())return e;var n=new WeakMap,b=function(d){this[0]={};this[1]=u();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=u();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 t(this,function(d){return[d.key,d.value]})};
b.prototype.keys=function(){return t(this,function(d){return d.key})};
b.prototype.values=function(){return t(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"?n.has(h)?h=n.get(h):(k=""+ ++A,n.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}},t=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}})},u=function(){var d={};
return d.previous=d.next=d.head=d},A=0;
return b},"es6","es3");
$jscomp.polyfill("Set",function(e){function m(){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 t=q.entries(),u=t.next();if(u.done||u.value[0]!=b||u.value[1]!=b)return!1;u=t.next();return u.done||u.value[0]==b||u.value[0].x!=4||u.value[1]!=u.value[0]?!1:t.next().done}catch(A){return!1}}
if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(e&&$jscomp.ES6_CONFORMANCE)return e}else if(m())return e;var n=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};
n.prototype.add=function(b){b=b===0?0:b;this.map_.set(b,b);this.size=this.map_.size;return this};
n.prototype.delete=function(b){b=this.map_.delete(b);this.size=this.map_.size;return b};
n.prototype.clear=function(){this.map_.clear();this.size=0};
n.prototype.has=function(b){return this.map_.has(b)};
n.prototype.entries=function(){return this.map_.entries()};
n.prototype.values=function(){return this.map_.values()};
n.prototype.keys=n.prototype.values;n.prototype[Symbol.iterator]=n.prototype.values;n.prototype.forEach=function(b,q){var t=this;this.map_.forEach(function(u){return b.call(q,u,u,t)})};
return n},"es6","es3");
$jscomp.polyfill("Set.prototype.union",function(e){function m(n){$jscomp.checkIsSetInstance(this);$jscomp.checkIsSetLike(n);var b=new Set(this);n=$jscomp.checkIsValidIterator(n.keys());for(var q=n.next();!q.done;)b.add(q.value),q=n.next();return b}
return e?e:m},"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,m){return e.size<=m.size?{smallerSetIterator:e.keys(),largerSet:m}:{smallerSetIterator:$jscomp.checkIsValidIterator(m.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 m=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this;m.XRegExp=e()}})(function(){return function q(m,n,b){function t(d,f){if(!n[d]){if(!m[d]){var h=typeof require=="function"&&require;
if(!f&&h)return h(d,!0);if(u)return u(d,!0);f=Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f;}f=n[d]={exports:{}};m[d][0].call(f.exports,function(k){var r=m[d][1][k];return t(r?r:k)},f,f.exports,q,m,n,b)}return n[d].exports}
for(var u=typeof require=="function"&&require,A=0;A<b.length;A++)t(b[A]);return t}({1:[function(m,n){n.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 t(d,f){f=f?"x":"";return b.isRegExp(d)?d.xregexp&&d.xregexp.captureNames?d:b(d.source,f):b(d,f)}
var u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,A=b.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,u],"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 v={},B;for(B in f)f.hasOwnProperty(B)&&(r=t(f[B],k),v[B]={pattern:q(r.source),names:r.xregexp.captureNames||[]});d=t(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(!v.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+v[L].pattern.replace(u,function(T,U,O){if(U){if(M=v[L].names[C-D],++C,M)return"(?<"+M+">"}else if(O)return P=+O-1,v[L].names[P]?"\\k<"+v[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(m,n){n.exports=function(b){function q(t,u,A,d){return{name:t,value:u,start:A,end:d}}
b.matchRecursive=function(t,u,A,d,f){d=d||"";f=f||{};var h=d.indexOf("g")>-1,k=d.indexOf("y")>-1,r=d.replace(/y/g,""),v=f.escapeChar;f=f.valueNames;var B=[],C=0,D=0,p=0,I=0;u=b(u,r);A=b(A,r);if(v){if(v.length>1)throw Error("Cannot use more than one escape character");v=b.escape(v);var E=new RegExp("(?:"+v+"[\\S\\s]|(?:(?!"+b.union([u,A],"",{conjunction:"or"}).source+")[^"+v+"])+)+",d.replace(/[^imu]+/g,""))}for(;;){v&&(p+=(b.exec(t,E,p,"sticky")||[""])[0].length);d=b.exec(t,u,p);r=b.exec(t,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],t.slice(I,F),I,F)),f[1]&&B.push(q(f[1],t.slice(F,J),F,J)),f[2]&&B.push(q(f[2],t.slice(J,D),J,D)),f[3]&&B.push(q(f[3],t.slice(D,p),D,p))):B.push(t.slice(J,D)),I=p,!h))break}else throw Error("Unbalanced delimiter found in string");D===p&&++p}h&&!k&&f&&f[0]&&t.length>I&&B.push(q(f[0],t.slice(I),I,t.length));
return B}}},
{}],3:[function(m,n){n.exports=function(b){function q(k){return k.replace(/[- _]+/g,"").toLowerCase()}
function t(k){var r=/^\\[xu](.+)/.exec(k);return r?d(r[1]):k.charCodeAt(k.charAt(0)==="\\"?1:0)}
function u(k){var r="",v=-1;b.forEach(k,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(B){var C=t(B[1]);C>v+1&&(r+="\\u"+h(f(v+1)),C>v+2&&(r+="-\\u"+h(f(C-1))));v=t(B[2]||B[1])});
v<65535&&(r+="\\u"+h(f(v+1)),v<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,v){var B=k[1]==="P"||!!k[2],C=v.indexOf("A")>-1;v=q(k[4]||k[3]);var D=A[v];if(k[1]==="P"&&k[2])throw new SyntaxError("Invalid double negation "+k[0]);if(!A.hasOwnProperty(v))throw new SyntaxError("Unknown Unicode token "+k[0]);if(D.inverseOf){v=q(D.inverseOf);if(!A.hasOwnProperty(v))throw new ReferenceError("Unicode token missing data "+k[0]+" -> "+D.inverseOf);D=A[v];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[v][k])||(r=A[v],v=A[v],C="",v.bmp&&!v.isBmpLast&&(C="["+v.bmp+"]"+(v.astral?"|":"")),v.astral&&(C+=v.astral),v.isBmpLast&&v.bmp&&(C+=(v.astral?"|":"")+"["+v.bmp+"]"),B=B?"(?:(?!"+C+")(?:[\ud800-\udbff][\udc00-\udfff]|[\x00-\uffff]))":"(?:"+C+")",r=r[k]=B);return B=r}return B=r==="class"?B?A[v]["b!"]||(A[v]["b!"]=u(A[v].bmp)):D.bmp:(B?"[^":"[")+D.bmp+"]"},{scope:"all",
optionalFlags:"A",leadChar:"\\"});b.addUnicodeData=function(k){for(var r,v=0;v<k.length;++v){r=k[v];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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){n.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(m,n){var b=m("./xregexp");m("./addons/build")(b);m("./addons/matchrecursive")(b);m("./addons/unicode-base")(b);m("./addons/unicode-blocks")(b);m("./addons/unicode-categories")(b);m("./addons/unicode-properties")(b);m("./addons/unicode-scripts")(b);n.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(m,n){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 t(a){return E.replace.call(a,/([\s\S])(?=[\s\S]*\1)/g,"")}
function u(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=t(l+x));c.isInternalOnly||(g.source!==void 0&&(w=g.source),g.flags!=null&&(y=x?t(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 v(a,c){var g;if(t(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=t(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 u(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=v(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=t;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:u(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]=u(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]=u(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]=u(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=u(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:"("});n.exports=p},
{}]},{},[8])(8)})}).call(globalThis);var GLw=window.XRegExp;var HOG=-1,sxG=function(G){addEventListener("pageshow",function(H){H.persisted&&(HOG=H.timeStamp,G(H))},!0)};var QxN=function(G,H,Z){var Q=ZOT,p,l;return function(q){if(H.value>=0&&(q||Z)){var u;if((l=H.value-((u=p)!=null?u:0))||p===void 0)p=H.value,H.delta=l,q=H.value,H.rating=q>Q[1]?"poor":q>Q[0]?"needs-improvement":"good",G(H)}}};var pna=function(G){requestAnimationFrame(function(){return requestAnimationFrame(function(){return G()})})};var l_d=function(){var G=performance.getEntriesByType("navigation")[0];if(G&&G.responseStart>0&&G.responseStart<performance.now())return G};var gut=function(){var G,H;return(H=(G=l_d())==null?void 0:G.activationStart)!=null?H:0};var No=-1,I_R=new Set,qKR=function(G){if(document.visibilityState==="hidden"){if(G.type==="visibilitychange")for(var H=_.I(I_R),Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z();isFinite(No)||(No=G.type==="visibilitychange"?G.timeStamp:0,removeEventListener("prerenderingchange",qKR,!0))}},SKt=function(){if(No<0){var G=gut(),H,Z;
No=(Z=document.prerendering?void 0:(H=globalThis.performance.getEntriesByType("visibility-state").filter(function(Q){return Q.name==="hidden"&&Q.startTime>G})[0])==null?void 0:H.startTime)!=null?Z:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",qKR,!0);addEventListener("prerenderingchange",qKR,!0);sxG(function(){setTimeout(function(){No=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return No},
onHidden:function(Q){I_R.add(Q)}}};var uC2=function(){var G=G===void 0?-1:G;var H=l_d(),Z="navigate";HOG>=0?Z="back-forward-cache":H&&(document.prerendering||gut()>0?Z="prerender":document.wasDiscarded?Z="restore":H.type&&(Z=H.type.replace(/_/g,"-")));return{name:"LCP",value:G,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:Z}};var kJX=new WeakMap;var BP2=function(G){var H=H===void 0?{}:H;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var Z=new PerformanceObserver(function(Q){Promise.resolve().then(function(){G(Q.getEntries())})});
Z.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},H));return Z}}catch(Q){}};var JHG=function(G){var H=!1;return function(){H||(G(),H=!0)}};var t4N=function(G){document.prerendering?addEventListener("prerenderingchange",function(){return G()},!0):G()};var kLt=function(G){var H=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?G():(G=JHG(G),addEventListener("visibilitychange",G,{once:!0,capture:!0}),H(function(){G();removeEventListener("visibilitychange",G,{capture:!0})}))};var tMb=function(){};
tMb.prototype._processEntry=function(G){var H;(H=this._onBeforeProcessingEntry)==null||H.call(this,G)};var ZOT=[2500,4E3],IWU=function(G){var H=H===void 0?{}:H;t4N(function(){var Z=SKt(),Q=uC2(),p=Ddv(H),l=function(e){H.reportAllChanges||(e=e.slice(-1));e=_.I(e);for(var n=e.next();!n.done;n=e.next())n=n.value,p._processEntry(n),n.startTime<Z.firstHiddenTime&&(Q.value=Math.max(n.startTime-gut(),0),Q.entries=[n],u())},q=BP2(l);
if(q){var u=QxN(G,Q,H.reportAllChanges);for(var B=JHG(function(){l(q.takeRecords());q.disconnect();u(!0)}),t=function(e){e.isTrusted&&(kLt(B),removeEventListener(e.type,t,{capture:!0}))},D=_.I(["keydown",
"click","visibilitychange"]),d=D.next();!d.done;d=D.next())addEventListener(d.value,t,{capture:!0});sxG(function(e){Q=uC2();u=QxN(G,Q,H.reportAllChanges);pna(function(){Q.value=performance.now()-e.timeStamp;u(!0)})})}})};var DEa;var dEw;_.E=function(){return dEw!==void 0?dEw:dEw=document.createElement("template")};
document.head.appendChild(_.E().content);var eP7;_.Vy({_template:function(){if(eP7!==void 0)return eP7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var H=G.content,Z=H.insertBefore;DEa===void 0&&(DEa=document.createElement("template"));var Q=DEa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return eP7=G},
is:"tp-yt-app-toolbar"});var nuT;var V47;_.AS=function(){};
_.AS=_.Vy({_template:function(){if(V47!==void 0)return V47;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;nuT===void 0&&(nuT=document.createElement("template"));var Q=nuT;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return V47=G},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.AS.instance||(_.AS.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(G){this._text===G&&(G+="\u00a0");this._text="";this.async(function(){this._text=G},this.timeout)},
_onIronAnnounce:function(G){G.detail&&G.detail.text&&this.announce(G.detail.text)}});
_.AS.instance=null;_.AS.requestAvailability=function(){_.AS.instance||(_.AS.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.AS.instance):document.addEventListener("load",function(){document.body.appendChild(_.AS.instance)})};var $Ew;var Xnt;/*

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

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 xx,KWp,M42;xx=Element.prototype;KWp=xx.matches||xx.matchesSelector||xx.mozMatchesSelector||xx.msMatchesSelector||xx.oMatchesSelector||xx.webkitMatchesSelector;M42=function(){};
_.P__=function(G){var H=jx2,Z=[];return H._collectTabbableNodes(G,Z)?H._sortByTabIndex(Z):Z};
_.g=M42.prototype;_.g.isFocusable=function(G){return KWp.call(G,"input, select, textarea, button, object")?KWp.call(G,":not([disabled])"):KWp.call(G,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.g._normalizedTabIndex=function(G){return this.isFocusable(G)?(G=G.getAttribute("tabindex")||0,Number(G)):-1};
_.g._collectTabbableNodes=function(G,H){if(G.nodeType!==Node.ELEMENT_NODE||!this._isVisible(G))return!1;var Z=this._normalizedTabIndex(G),Q=Z>0;Z>=0&&H.push(G);if(G.localName==="content"||G.localName==="slot")Z=_.Bf(G).getDistributedNodes();else{var p;Z=((p=_.Bf(G).shadowRoot)!=null?p:_.Bf(G.root||G)).children}for(G=0;G<Z.length;G++)Q=this._collectTabbableNodes(Z[G],H)||Q;return Q};
_.g._isVisible=function(G){var H=G.style;return H.visibility!=="hidden"&&H.display!=="none"?(H=window.getComputedStyle(G),H.visibility!=="hidden"&&H.display!=="none"):!1};
_.g._sortByTabIndex=function(G){var H=G.length;if(H<2)return G;var Z=Math.ceil(H/2);H=this._sortByTabIndex(G.slice(0,Z));G=this._sortByTabIndex(G.slice(Z));return this._mergeSortByTabIndex(H,G)};
_.g._mergeSortByTabIndex=function(G,H){for(var Z=[];G.length>0&&H.length>0;)this._hasLowerTabOrder(G[0],H[0])?Z.push(H.shift()):Z.push(G.shift());return Z.concat(G,H)};
_.g._hasLowerTabOrder=function(G,H){G=Math.max(G.tabIndex,0);H=Math.max(H.tabIndex,0);return G===0||H===0?H>G:G>H};
var jx2=new M42;var rH_;var wnw;_.Vy({_template:function(){if(wnw!==void 0)return wnw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;rH_===void 0&&(rH_=document.createElement("template"));var Q=rH_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return wnw=G},
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&&_.Bf(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Bf(this.parentNode).removeChild(this)},
_onTransitionend:function(G){G&&G.target===this&&this.complete()},
_openedChanged:function(G){G?this.prepare():(G=window.getComputedStyle(this),G.transitionDuration!=="0s"&&G.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 LF=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;US(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)};
LF.prototype._bringOverlayAtIndexToFront=function(G){var H=this._overlays[G];if(H){var Z=this._overlays.length-1,Q=this._overlays[Z];Q&&this._shouldBeBehindOverlay(H,Q)&&Z--;if(!(G>=Z)){Q=Math.max(this._getZ(_.hP4(this)),this._minimumZ);for(this._getZ(H)<=Q&&this._applyOverlayZ(H,Q);G<Z;)this._overlays[G]=this._overlays[G+1],G++;this._overlays[Z]=H}}};
LF.prototype.addOverlay=function(G){var H=this._overlays.indexOf(G);if(H>=0)this._bringOverlayAtIndexToFront(H);else{H=this._overlays.length;var Z=this._overlays[H-1],Q=Math.max(this._getZ(Z),this._minimumZ),p=this._getZ(G);Z&&this._shouldBeBehindOverlay(G,Z)&&(this._applyOverlayZ(Z,Q),H--,Q=Math.max(this._getZ(this._overlays[H-1]),this._minimumZ));p<=Q&&this._applyOverlayZ(G,Q);this._overlays.splice(H,0,G)}this.trackBackdrop()};
LF.prototype.removeOverlay=function(G){G=this._overlays.indexOf(G);G!==-1&&(this._overlays.splice(G,1),this.trackBackdrop())};
_.hP4=function(G){return G._overlays[G._overlays.length-1]};
_.g=LF.prototype;_.g.trackBackdrop=function(){var G=this._overlayWithBackdrop();if(G||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(G)-1,this.backdropElement.opened=!!G,this.backdropElement.prepare()};
_.g._overlayWithBackdrop=function(){for(var G=this._overlays.length-1;G>=0;G--)if(this._overlays[G].withBackdrop)return this._overlays[G]};
_.g._getZ=function(G){var H=this._minimumZ;if(G){var Z,Q,p=Number(((Z=G.hostElement)!=null?Z:G).style.zIndex||window.getComputedStyle((Q=G.hostElement)!=null?Q:G).zIndex);p===p&&(H=p)}return H};
_.g._setZ=function(G,H){var Z;((Z=G.hostElement)!=null?Z:G).style.zIndex=H};
_.g._applyOverlayZ=function(G,H){this._setZ(G,H+2)};
_.g._overlayInPath=function(G){G=G||[];for(var H=0;H<G.length;H++){var Z=void 0;if(((Z=G[H].polymerController)!=null?Z:G[H])._manager===this)return G[H]}};
_.g._onCaptureClick=function(G){var H=this._overlays.length-1;if(H!==-1)for(var Z=_.Bf(G).path,Q,p;(Q=this._overlays[H])&&this._overlayInPath(Z)!==((p=Q.hostElement)!=null?p:Q);)if(Q._onCaptureClick(G),Q.allowClickThrough)H--;else break};
_.g._onCaptureFocus=function(G){var H=_.hP4(this);H&&H._onCaptureFocus(G)};
_.g._onCaptureKeyDown=function(G){var H=_.hP4(this);H&&(_.vZ.keyboardEventMatchesKeys(G,"esc")?H._onCaptureEsc(G):_.vZ.keyboardEventMatchesKeys(G,"tab")&&H._onCaptureTab(G))};
_.g._shouldBeBehindOverlay=function(G,H){return!G.alwaysOnTop&&H.alwaysOnTop&&!H.contains(G)};
_.u4.Object.defineProperties(LF.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 G=document.activeElement;G&&G instanceof Element!==!1||(G=document.body);for(;G.root&&_.Bf(G.root).activeElement;)G=_.Bf(G.root).activeElement;return G}}});
_.Es=new LF;var ddv=0,eeu=0,nh2=null,VMe=[],JZ=["wheel","mousewheel","DOMMouseScroll"],$dR;_.V("web_no_lock_on_touchstart_killswitch")&&(JZ.push("touchstart"),JZ.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;_.Yx={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:_.Es},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var G;return this._focusedChild||_.Bf((G=this.hostElement)!=null?G:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var G;return _.P__((G=this.hostElement)!=null?G: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 G;this._observer=_.Bf((G=this.hostElement)!=null?G:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var G;_.Bf((G=this.hostElement)!=null?G:this).unobserveNodes(this._observer)}this._observer=null;for(var H in this.__rafs)this.__rafs[H]!==null&&cancelAnimationFrame(this.__rafs[H]);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(G){this.fire("iron-overlay-canceled",G,{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 G;((G=this.hostElement)!=null?G:this).style.outline="none";var H;((H=this.hostElement)!=null?H:this).style.display="none"}},
_openedChanged:function(G){if(G){var H;((H=this.hostElement)!=null?H:this).removeAttribute("aria-hidden")}else{var Z;((Z=this.hostElement)!=null?Z: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 G;if(this.withBackdrop&&!((G=this.hostElement)!=null?G:this).hasAttribute("tabindex")){var H;((H=this.hostElement)!=null?H:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var Z;((Z=this.hostElement)!=null?Z: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 G;((G=this.hostElement)!=null?G:this).style.display="none";var H;((H=this.hostElement)!=null?H:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var G,H;((G=this.hostElement)!=null?G:this).style.transition=((H=this.hostElement)!=null?H:this).style.webkitTransition="none";var Z,Q;((Z=this.hostElement)!=null?Z:this).style.transform=((Q=this.hostElement)!=null?Q:this).style.webkitTransform="none";var p;((p=this.hostElement)!=null?p:this).style.display=""},
_finishPositioning:function(){var G;((G=this.hostElement)!=null?G:this).style.display="none";this.scrollTop=this.scrollTop;var H,Z;((H=this.hostElement)!=null?H:this).style.transition=((Z=this.hostElement)!=null?Z:this).style.webkitTransition="";var Q,p;((Q=this.hostElement)!=null?Q:this).style.transform=((p=this.hostElement)!=null?p:this).style.webkitTransform="";var l;((l=this.hostElement)!=null?l:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var G=this._manager.deepActiveElement,H;if(!(H=G===document.body))a:{for(;G;G=G.assignedSlot||G.parentNode||G.host)if(G===this){H=!0;break a}H=!1}H&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(G){this.noCancelOnOutsideClick||this.cancel(G)},
_onCaptureFocus:function(G){if(this.withBackdrop){var H=_.Bf(G).path;H.indexOf(this)===-1?(G.stopPropagation(),this._applyFocus()):this._focusedChild=H[0]}},
_onCaptureEsc:function(G){this.noCancelOnEscKey||this.cancel(G)},
_onCaptureTab:function(G){if(this.withBackdrop){this.__ensureFirstLastFocusables();var H=G.shiftKey,Z=H?this.__firstFocusableNode:this.__lastFocusableNode;H=H?this.__lastFocusableNode:this.__firstFocusableNode;if(Z===H)Z=!0;else{var Q=this._manager.deepActiveElement;Z=Q===Z||Q===this}Z&&(G.preventDefault(),this._focusedChild=H,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 G=this._focusableNodes;this.__firstFocusableNode=G[0];this.__lastFocusableNode=G[G.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(G,H){var Z=this.__rafs;Z[G]!==null&&cancelAnimationFrame(Z[G]);Z[G]=requestAnimationFrame(function(){Z[G]=null;H.call(this)}.bind(this))},
__updateScrollObservers:function(G,H,Z){G&&H&&this.__isValidScrollAction(Z)?(Z==="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),$dR=_._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()):(G=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),G!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(G,1),$dR=_._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(FZ)for(var G=this;G;)G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&G.host&&this.__rootNodes.push(G),G=G.host||G.assignedSlot||G.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(H){H.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(G){G.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(G){return G==="lock"||G==="refit"||G==="cancel"},
__onCaptureScroll:function(G){if(!(this.__isAnimating||_.Bf(G).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(G)}},
__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)}};
_.Fv=[zPp,_.hS,_.Yx];_.Vy({_template:function(){if(vuN!==void 0)return vuN;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;f_a===void 0&&(f_a=document.createElement("template"));var Q=f_a;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return vuN=G},
is:"tp-yt-iron-dropdown",behaviors:[_.WZ,_.vZ,_.Fv,Ejd],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 G=_.Bf(this.$.content).getDistributedNodes(),H=0,Z=G.length;H<Z;H++)if(G[H].nodeType===Node.ELEMENT_NODE)return G[H]},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(),_.Yx._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Yx._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Yx._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var G=this.containedElement,H=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),Z=0;Z<H.length;Z++)H[Z].node=G;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(G){this._readied&&(G?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var G=this.focusTarget||this.containedElement;G&&this.opened&&!this.noAutoFocus?G.focus():_.Yx._applyFocus.apply(this,arguments)}});var C_T;var iOT;/*

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 OOw=new _.jL({type:"iconset"});
_.Vy({_template:function(){if(iOT!==void 0)return iOT;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;C_T===void 0&&(C_T=document.createElement("template"));
var Q=C_T;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return iOT=G},
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(G){G=(G||"").split(":");this._iconName=G.pop();this._iconsetName=G.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&&_.Bf(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=OOw.byKey(this._iconsetName)){var G=this._iconset.applyIcon(this,this._iconName,this.theme);G&&G.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,_.Bf(this.root).appendChild(this._img)}});var a_4;var yHG;_.Vy({_template:function(){if(yHG!==void 0)return yHG;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var H=G.content,Z=H.insertBefore;a_4===void 0&&(a_4=document.createElement("template"));var Q=a_4;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return yHG=G},
is:"tp-yt-iron-input",behaviors:[_.r5],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(){_.AS.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Bf(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Bf(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 G=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":G=/[0-9.,e-]/}return G},_bindValueChanged:function(G,H){H&&(G===void 0?H.value=null:G!==H.value&&(this.inputElement.value=G),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:G}))},
_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(G){var H=G.keyCode==19||G.keyCode==20||G.keyCode==45||G.keyCode==46||G.keyCode==144||G.keyCode==145||G.keyCode>32&&G.keyCode<41||G.keyCode>111&&G.keyCode<124;return!(G.keyCode==8||G.keyCode==9||G.keyCode==13||G.keyCode==27)&&!(G.charCode==0&&H)},
_onKeypress:function(G){if(this.allowedPattern||this.inputElement.type==="number"){var H=this._patternRegExp;if(H&&!(G.metaKey||G.ctrlKey||G.altKey)){this._patternAlreadyChecked=!0;var Z=String.fromCharCode(G.charCode);this._isPrintable(G)&&!H.test(Z)&&(G.preventDefault(),this._announceInvalidCharacter("Invalid character "+Z+" not entered."))}}},
_checkPatternValidity:function(){var G=this._patternRegExp;if(!G)return!0;for(var H=0;H<this.inputElement.value.length;H++)if(!G.test(this.inputElement.value[H]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var G=this.inputElement.checkValidity();G&&(this.required&&this.bindValue===""?G=!1:this.hasValidator()&&(G=_.r5.validate.call(this,this.bindValue)));this.invalid=!G;this.fire("iron-input-validate");return G},
_announceInvalidCharacter:function(G){this.fire("iron-announce",{text:G})},
_computeValue:function(G){return G}});var ouw;var mER;var UER=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),RP_=UER&&UER[1]>=8;
_.Vy({_template:function(){if(mER!==void 0)return mER;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;ouw===void 0&&(ouw=document.createElement("template"));var Q=ouw;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return mER=G},
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:[F5M,_.hS,_.Ln7,MkN],_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 _.Bf(_.Bf(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var G=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,G-this._physicalCount)},set _virtualStart(G){G=this._clamp(G,0,this._maxVirtualStart);this.grid&&(G-=G%this._itemsPerRow);this._virtualStartVal=G},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(G){G%=this._physicalCount;G<0&&(G=this._physicalCount+G);this.grid&&(G-=G%this._itemsPerRow);this._physicalStartVal=G},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(G){this._physicalCountVal=G},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 G=this._firstVisibleIndexVal;if(G==null){var H=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
G=this._iterateItems(function(Z,Q){H+=this._getPhysicalSizeIncrement(Z);if(H>this._scrollPosition)return this.grid?Q-Q%this._itemsPerRow:Q;if(this.grid&&this._virtualCount-1===Q)return Q-Q%this._itemsPerRow})||0}return G},
get lastVisibleIndex(){var G=this._lastVisibleIndexVal;if(G==null){if(this.grid)G=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var H=this._physicalTop+this._scrollOffset;this._iterateItems(function(Z,Q){H<this._scrollBottom&&(G=Q);H+=this._getPhysicalSizeIncrement(Z)})}this._lastVisibleIndexVal=G}return G},
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,_.kC);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(G){this.style.webkitOverflowScrolling=G===this?"touch":"";this.style.overflowY=G===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.kC)},
updateViewportBoundaries:function(){var G=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(G["padding-top"],10);this._isRTL=G.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var G=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),H=G-this._scrollPosition,Z=H>=0;this._scrollPosition=G;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(H)>this._physicalSize&&this._physicalSize>0?(H-=this._scrollOffset,Z=Math.round(H/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=Z,this._physicalStart+=Z,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(G=this._getReusables(Z),Z?(this._physicalTop=G.physicalTop,this._virtualStart+=G.indexes.length,this._physicalStart+=G.indexes.length):(this._virtualStart=this._virtualStart-G.indexes.length,this._physicalStart=this._physicalStart-G.indexes.length),this._update(G.indexes,Z?null:G.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ak))},
_getReusables:function(G){var H=[],Z=this._hiddenContentSize*this._ratio,Q=this._virtualStart,p=this._virtualEnd,l=this._physicalCount,q=this._physicalTop+this._scrollOffset;var u=this._physicalBottom+this._scrollOffset;var B=this._scrollPosition,t=this._scrollBottom;if(G){var D=this._physicalStart;u=B-q}else D=this._physicalEnd,u-=t;for(;;){var d=this._getPhysicalSizeIncrement(D);u-=d;if(H.length>=l||u<=Z)break;if(G){if(p+H.length+1>=this._virtualCount)break;if(q+d>=B-this._scrollOffset)break;H.push(D);
q+=d;D=(D+1)%l}else{if(Q-H.length<=0)break;if(q+this._physicalSize-d<=t)break;H.push(D);q-=d;D=D===0?l-1:D-1}}return{indexes:H,physicalTop:q-this._scrollOffset}},
_update:function(G,H){if(!(G&&G.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(G);this._updateMetrics(G);if(H)for(;H.length;)G=H.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(G);this._positionItems();this._updateScrollerSize()}},
_createPool:function(G){this._ensureTemplatized();var H,Z=Array(G);for(H=0;H<G;H++){var Q=this.stamp(null);Z[H]=Q.root.querySelector("*");this._itemsParent.appendChild(Q.root)}return Z},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(G){G=this._clamp(this._physicalCount+G,3,this._virtualCount-this._virtualStart);G=this._convertIndexToCompleteRow(G);if(this.grid){var H=G%this._itemsPerRow;H&&G-H<=this._physicalCount&&(G+=this._itemsPerRow);G-=H}G-=this._physicalCount;H=Math.round(this._physicalCount*.5);if(!(G<0)){if(G>0){H=window.performance.now();[].push.apply(this._physicalItems,this._createPool(G));for(var Z=0;Z<G;Z++)this._physicalSizes.push(0);this._physicalCount+=G;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=G);this._update();this._templateCost=(window.performance.now()-H)/G;H=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||H===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,H)),Bxp):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,H),Ak))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var G=this._getReusables(!0);this._physicalTop=G.physicalTop;this._virtualStart+=G.indexes.length;this._physicalStart+=G.indexes.length;this._update(G.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 G={__key__:!0};G[this.as]=!0;G[this.indexAs]=!0;G[this.selectedAs]=!0;G.tabIndex=!0;this._instanceProps=G;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(G,H){typeof H!=="undefined"&&(this.notifyResize(),_.Dy(),G&&this._updateGridMetrics())},
_itemsChanged:function(G){if(G.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,
_.kC);else if(G.path==="items.splices"){this._adjustVirtualIndex(G.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(G.value.indexSplices.some(function(Z){return Z.addedCount>0||Z.removed.length>0})){var H=this._getActiveElement();
this.contains(H)&&H.blur()}G=G.value.indexSplices.some(function(Z){return Z.index+Z.addedCount>=this._virtualStart&&Z.index<=this._virtualEnd},this);
this._isClientFull()&&!G||this._debounce("_render",this._render,_.kC)}else G.path!=="items.length"&&this._forwardItemPath(G.path,G.value)},
_forwardItemPath:function(G,H){G=G.slice(6);var Z=G.indexOf(".");Z===-1&&(Z=G.length);var Q,p=this.modelForElement(this._offscreenFocusedItem),l=parseInt(G.substring(0,Z),10);if(Q=this._isIndexRendered(l)){var q=this._getPhysicalIndex(l);var u=this.modelForElement(this._physicalItems[q])}else p&&(u=p);u&&u[this.indexAs]===l&&(G=G.substring(Z+1),G=this.as+(G?"."+G:""),u._setPendingPropertyOrPath(G,H,!1,!0),u._flushProperties&&u._flushProperties(),Q&&(this._updateMetrics([q]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(G){G.forEach(function(H){H.removed.forEach(this._removeItem,this);H.index<this._virtualStart&&(H=Math.max(H.addedCount-H.removed.length,H.index-this._virtualStart),this._virtualStart+=H,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=H))},this)},
_removeItem:function(G){this.$.selector.deselect(G);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===G&&this._removeFocusedItem()},
_iterateItems:function(G,H){var Z,Q;if(arguments.length===2&&H)for(Q=0;Q<H.length;Q++){var p=H[Q];var l=this._computeVidx(p);if((Z=G.call(this,p,l))!=null)return Z}else{p=this._physicalStart;for(l=this._virtualStart;p<this._physicalCount;p++,l++)if((Z=G.call(this,p,l))!=null)return Z;for(p=0;p<this._physicalStart;p++,l++)if((Z=G.call(this,p,l))!=null)return Z}},
_computeVidx:function(G){return G>=this._physicalStart?this._virtualStart+(G-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+G},
_assignModels:function(G){this._iterateItems(function(H,Z){var Q=this._physicalItems[H],p=this.items&&this.items[Z];if(p!=null){var l=this.modelForElement(Q);l.__key__=null;this._forwardProperty(l,this.as,p);this._forwardProperty(l,this.selectedAs,this.$.selector.isSelected(p));this._forwardProperty(l,this.indexAs,Z);this._forwardProperty(l,"tabIndex",this._focusedVirtualIndex===Z?0:-1);this._physicalIndexForKey[l.__key__]=H;l._flushProperties&&l._flushProperties(!0);Q.removeAttribute("hidden")}else Q.setAttribute("hidden",
"")},G)},
_updateMetrics:function(G){_.Dy();var H=0,Z=0,Q=this._physicalAverageCount,p=this._physicalAverage;this._iterateItems(function(l){Z+=this._physicalSizes[l];this._physicalSizes[l]=this._physicalItems[l].offsetHeight;H+=this._physicalSizes[l];this._physicalAverageCount+=this._physicalSizes[l]?1:0},G);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(Z=this._itemsPerRow===1?Z:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+H-Z,this._itemsPerRow=1);this._physicalAverageCount!==Q&&(this._physicalAverage=Math.round((p*Q+H)/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 G=this._physicalTop;if(this.grid){var H=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(Z,Q){var p=Math.floor(Q%this._itemsPerRow*this._itemWidth+H);this._isRTL&&(p*=-1);this.translate3d(p+"px",G+"px",0,this._physicalItems[Z]);this._shouldRenderNextRow(Q)&&(G+=this._rowHeight)})}else this._iterateItems(function(Z){this.translate3d(0,G+"px",0,this._physicalItems[Z]);
G+=this._physicalSizes[Z]})},
_getPhysicalSizeIncrement:function(G){return this.grid?this._computeVidx(G)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[G]},
_shouldRenderNextRow:function(G){return G%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var G=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(G!==0){this._physicalTop=this._physicalTop-G;var H=this._scrollPosition;!RP_&&H>0&&this._resetScrollPosition(H-G)}},
_resetScrollPosition:function(G){this.scrollTarget&&G>=0&&(this._scrollPosition=this._scrollTop=G)},
_updateScrollerSize:function(G){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((G=(G=(G=G||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(G){return this.scrollToIndex(this.items.indexOf(G))},
scrollToIndex:function(G){if(!(typeof G!=="number"||G<0||G>this.items.length-1)&&(_.Dy(),this._physicalCount!==0)){G=this._clamp(G,0,this._virtualCount-1);if(!this._isIndexRendered(G)||G>=this._maxVirtualStart)this._virtualStart=this.grid?G-this._itemsPerRow*2:G-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var H=this._physicalStart,Z=this._virtualStart,Q=0,p=this._hiddenContentSize;Z<G&&
Q<=p;)Q+=this._getPhysicalSizeIncrement(H),H=(H+1)%this._physicalCount,Z++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+Q);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)},_.kC)},
selectItem:function(G){return this.selectIndex(this.items.indexOf(G))},
selectIndex:function(G){if(!(G<0||G>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(G)){var H=this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)]);H&&(H[this.selectedAs]=!0);this.updateSizeForIndex(G)}this.$.selector.selectIndex(G)}},
deselectItem:function(G){return this.deselectIndex(this.items.indexOf(G))},
deselectIndex:function(G){G<0||G>=this._virtualCount||(this._isIndexRendered(G)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(G)])[this.selectedAs]=!1,this.updateSizeForIndex(G)),this.$.selector.deselectIndex(G))},
toggleSelectionForItem:function(G){return this.toggleSelectionForIndex(this.items.indexOf(G))},
toggleSelectionForIndex:function(G){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(G):this.$.selector.isSelected(this.items[G]))?this.deselectIndex(G):this.selectIndex(G)},
clearSelection:function(){this._iterateItems(function(G){this.modelForElement(this._physicalItems[G])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(G){(G?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(G){var H=this.modelForElement(G.target);if(H){var Z=_.Bf(G).path[0];G=this._getActiveElement();var Q=this._physicalItems[this._getPhysicalIndex(H[this.indexAs])];if(Z.localName!=="input"&&Z.localName!=="button"&&Z.localName!=="select"){Z=H.tabIndex;H.tabIndex=-100;var p=G?G.tabIndex:-1;H.tabIndex=Z;G&&Q!==G&&Q.contains(G)&&p!==-100||this.toggleSelectionForItem(H[this.as])}}},
_multiSelectionChanged:function(G){this.clearSelection();this.$.selector.multi=G},
updateSizeForItem:function(G){return this.updateSizeForIndex(this.items.indexOf(G))},
updateSizeForIndex:function(G){if(!this._isIndexRendered(G))return null;this._updateMetrics([this._getPhysicalIndex(G)]);this._positionItems();return null},
_manageFocus:function(){var G=this._focusedVirtualIndex;G>=0&&G<this._virtualCount?this._isIndexRendered(G)?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(G){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(G/this._itemsPerRow)*this._itemsPerRow:G},
_isIndexRendered:function(G){return G>=this._virtualStart&&G<=this._virtualEnd},
_isIndexVisible:function(G){return G>=this.firstVisibleIndex&&G<=this.lastVisibleIndex},
_getPhysicalIndex:function(G){return(this._physicalStart+(G-this._virtualStart))%this._physicalCount},
focusItem:function(G){this._focusPhysicalItem(G)},
_focusPhysicalItem:function(G){if(!(G<0||G>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(G)||this.scrollToIndex(G);var H=this._physicalItems[this._getPhysicalIndex(G)],Z=this.modelForElement(H),Q;Z.tabIndex=-100;H.tabIndex===-100&&(Q=H);Q||(Q=_.Bf(H).querySelector('[tabindex="-100"]'));Z.tabIndex=0;this._focusedVirtualIndex=G;Q&&Q.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 G=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var H=this.stamp(null);this._focusBackfillItem=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}this._offscreenFocusedItem=this._physicalItems[G];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[G]=this._focusBackfillItem;this._focusedPhysicalIndex=G;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var G=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),H=this._physicalItems[G];if(H){var Z=this.modelForElement(H),Q=this.modelForElement(this._offscreenFocusedItem);Z[this.as]===Q[this.as]?(this._focusBackfillItem=H,Z.tabIndex=-1,this._physicalItems[G]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(G){G=this.modelForElement(G.target);var H=this.modelForElement(this._focusedItem),Z=this._offscreenFocusedItem!==null,Q=this._focusedVirtualIndex;G&&(H===G?this._isIndexVisible(Q)||this.scrollToIndex(Q):(this._restoreFocusedItem(),H&&(H.tabIndex=-1),G.tabIndex=0,this._focusedVirtualIndex=Q=G[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(Q),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],Z&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(G){switch(G.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&G.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&&G.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(G)}},
_clamp:function(G,H,Z){return Math.min(Z,Math.max(H,G))},
_debounce:function(G,H,Z){this._debouncers=this._debouncers||{};this._debouncers[G]=_.u2(this._debouncers[G],Z,H.bind(this));_.BK(this._debouncers[G])},
_forwardProperty:function(G,H,Z){G._setPendingProperty(H,Z)},
_forwardHostPropV2:function(G,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Z){Z&&this.modelForElement(Z).forwardHostProp(G,H)},this)},
_notifyInstancePropV2:function(G,H,Z){Tpo(this.as,H)&&(G=G[this.indexAs],H==this.as&&(this.items[G]=Z),this.notifyPath(vx(this.as,"items."+G,H),Z))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(G,H,Z){H.indexOf(this.as+".")===0&&this.notifyPath("items."+G.__key__+"."+H.slice(this.as.length+1),Z)},
_forwardParentPath:function(G,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Z){Z&&this.modelForElement(Z).notifyPath(G,H)},this)},
_forwardParentProp:function(G,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Z){Z&&(this.modelForElement(Z)[G]=H)},this)},
_getActiveElement:function(){var G=this._itemsParent.node.domHost;return _.Bf(G?G.root:document).activeElement},
_scrollTargetChanged:function(G,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(H)if(G==="document")this.scrollTarget=this._doc;else if(typeof G==="string"){var Z,Q;this.scrollTarget=(H=(Q=(Z=this.domHost)==null?void 0:Z.polymerController)!=null?Q:this.domHost)&&H.$?H.$[G]:_.Bf(this.ownerDocument).querySelector("#"+G)}else this._isValidScrollTarget()&&(this._oldScrollTarget=G,this._toggleScrollListener(this._shouldHaveListener,G))}});var NPw;var AH2;var xER=function(G,H,Z,Q){G-=Z;H-=Q;return Math.sqrt(G*G+H*H)},LWw=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
XKR.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var cOj=function(G){G.maxRadius=0;G.mouseDownStart=0;G.mouseUpStart=0;G.xStart=0;G.yStart=0;G.xEnd=0;G.yEnd=0;G.containerMetrics=new XKR(G.element)};
Tae.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var G=LWw()-this.mouseDownStart;this.mouseUpStart&&(G-=this.mouseUpElapsed);return G},get mouseUpElapsed(){return this.mouseUpStart?LWw()-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 G=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(G*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-G/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 G=this.radius/(this.containerMetrics.size/2);var H=this.xNow-this.containerMetrics.width/2;var Z=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+H+"px, "+Z+"px)";this.waveContainer.style.transform="translate3d("+H+"px, "+Z+"px, 0)";this.wave.style.webkitTransform="scale("+G+","+G+")";this.wave.style.transform="scale3d("+G+","+G+",1)"},
downAction:function(G){var H=this.containerMetrics.width/2,Z=this.containerMetrics.height/2;cOj(this);this.mouseDownStart=LWw();this.center?(this.xStart=H,this.yStart=Z):(this.xStart=G?G.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=G?G.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=H,this.yEnd=Z);G=this.containerMetrics;H=this.xStart;Z=this.yStart;this.maxRadius=Math.max(xER(H,Z,0,0),xER(H,Z,
G.width,0),xER(H,Z,0,G.height),xER(H,Z,G.width,G.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=LWw())},
remove:function(){_.Bf(_.Bf(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.Vy({_template:function(){if(AH2!==void 0)return AH2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;NPw===void 0&&(NPw=document.createElement("template"));var Q=NPw;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return AH2=G},
is:"tp-yt-paper-ripple",behaviors:[_.vZ],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(){_.Bf(this).parentNode.nodeType==11?this.keyEventTarget=_.Bf(this).getOwnerRoot().host:this.keyEventTarget=_.Bf(this).parentNode;var G=this.keyEventTarget;this.listen(G,"up","uiUpAction");this.listen(G,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(G){G.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var G=0;G<this.ripples.length;++G)if(!this.ripples[G].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(G){this.noink||this.downAction(G)},
downAction:function(G){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(G),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(G){this.noink||this.upAction(G)},
upAction:function(G){this.holdDown||(this.ripples.forEach(function(H){H.upAction(G)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var G=0;G<this.ripples.length;++G){var H=this.ripples[G];H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var G=new Tae(this);_.Bf(this.$.waves).appendChild(G.waveContainer);this.$.background.style.backgroundColor=G.color;this.ripples.push(G);this._setAnimating(!0);return G},
removeRipple:function(G){var H=this.ripples.indexOf(G);H<0||(this.ripples.splice(H,1),G.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var G;for(G=0;G<this.ripples.length;++G){var H=this.ripples[G];H.draw();this.$.background.style.opacity=H.outerOpacity;H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}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(G,H){H!==void 0&&(G?this.downAction():this.upAction())}});var bM={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(G){zs._downHandler.call(this,G);this.pressed&&this.ensureRipple(G)},
ensureRipple:function(G){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var H=this._rippleContainer||this.root;H&&_.Bf(H).appendChild(this._ripple);if(G){H=_.Bf(this._rippleContainer||this);var Z=_.Bf(G).rootTarget;H.deepContains(Z)&&this._ripple.uiDownAction(G)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(G){this.hasRipple()&&(this._ripple.noink=G)}};var Euw={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 G=1;this.disabled?G=0:this.active||this.pressed?G=4:this.receivedFocusFromKeyboard&&(G=3);this._setElevation(G)},
_computeKeyboardClass:function(G){this.toggleClass("keyboard-focus",G)},
_spaceKeyDownHandler:function(G){zs._spaceKeyDownHandler.call(this,G);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(G){zs._spaceKeyUpHandler.call(this,G);this.hasRipple()&&this._ripple.uiUpAction()}},YK4=[iMa,
_.WZ,bM,Euw];_.FWd={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=G)},
_createRipple:function(){var G=bM._createRipple();G.id="ink";G.setAttribute("center","");G.classList.add("circle");return G}};
_.bOt=[iMa,_.WZ,bM,_.FWd];_.Gwp=[_.bOt,yB4,{_checkedChanged:function(){aGT._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){bM._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var HK_;var svw;var ZKd=function(){};
_.g=ZKd.prototype;_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._buttonStateChanged=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._createRipple=function(){};
_.g._noinkChanged=function(){};
_.g._computeKeyboardClass=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
_.g._setElevation=function(){};
ZKd=_.Vy({_template:function(){if(svw!==void 0)return svw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var H=G.content,Z=H.insertBefore;HK_===void 0&&(HK_=document.createElement("template"));var Q=HK_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return svw=G},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[YK4],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Euw._calculateElevation.apply(this):this._setElevation(0)}});var Qv_;var pQ4;var lAw={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(G){_.V("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(G)},
_onDialogClickWrapped:function(G){_.V("dialog_behavior_no_tap_killswitch")||this._onDialogClick(G)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(G,H){H&&(G?(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(G){if(G){var H;((H=this.hostElement)!=null?H:this).setAttribute("aria-modal","true")}else{var Z;((Z=this.hostElement)!=null?Z:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(G){this.closingReason=this.closingReason||{};this.closingReason.confirmed=G},
_onDialogClick:function(G){for(var H=_.Bf(G).path,Z=0,Q,p=H.indexOf((Q=this.hostElement)!=null?Q:this);Z<p;Z++)if(Q=H[Z],Q.hasAttribute&&(Q.hasAttribute("dialog-dismiss")||Q.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(Q.hasAttribute("dialog-confirm"));this.close();G.stopPropagation();break}}},gfd=[_.Fv,
lAw];var IAa=document.createElement("template");_.f(IAa,'<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(IAa.content);var qxa=document.createElement("template");_.f(qxa,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(qxa.content);_.Vy({_template:function(){if(pQ4!==void 0)return pQ4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var H=G.content,Z=H.insertBefore;Qv_===void 0&&(Qv_=document.createElement("template"));var Q=Qv_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return pQ4=G},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[gfd,Ejd],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 Sx7;var uQa;_.Vy({_template:function(){if(uQa!==void 0)return uQa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Sx7===void 0&&(Sx7=document.createElement("template"));var Q=Sx7;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return uQa=G},
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 G,H,Z;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)!==!0&&((H=window.ShadyDOM)==null?void 0:H.noPatch)!=="on-demand"||((Z=this.__shady_parentNode)==null?void 0:Z.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(lAw)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var BlT=_.CM(['<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>']),JrR=_.h22(BlT);JrR.setAttribute("style","display: none;");document.head.appendChild(JrR.content);var tat;var kwR;var DnN;var dn2;_.Vy({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[CF],configure:function(G){var H=G.node,Z=H.getBoundingClientRect().height;return this._effect=new KeyframeEffect(H,[{height:Z/2+"px"},{height:Z+"px"}],this.timingFromConfig(G))}});
_.Vy({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[CF],configure:function(G){var H=G.node,Z=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:Z/2+"px"},{width:Z+"px"}],this.timingFromConfig(G))}});
_.Vy({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[CF],configure:function(G){var H=G.node,Z=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:Z+"px"},{width:Z-Z/20+"px"}],this.timingFromConfig(G))}});
_.Vy({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[CF],configure:function(G){var H=G.node,Z=H.getBoundingClientRect().height;this.setPrefixedProperty(H,"transformOrigin","0 0");return this._effect=new KeyframeEffect(H,[{height:Z+"px",transform:"translateY(0)"},{height:Z/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(G))}});var Gm={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},euw=function(){};
_.g=euw.prototype;_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._focusBlurHandler=function(){};
_.g._changedControlState=function(){};
_.g._setFocused=function(){};
euw=_.Vy({_template:function(){if(dn2!==void 0)return dn2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;DnN===void 0&&(DnN=document.createElement("template"));var Q=DnN;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return dn2=G},
is:"tp-yt-paper-menu-button",behaviors:[_.vZ,_.WZ],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:Gm.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Gm.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:Gm.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 G=_.Bf(this.$.content).getDistributedNodes(),H=0,Z=G.length;H<Z;H++)if(G[H].nodeType===Node.ELEMENT_NODE)return G[H]},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(G,H){G?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):H!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(G){_.WZ._disabledChanged.apply(this,arguments);G&&this.opened&&this.close()},
__onIronOverlayCanceled:function(G){var H=this.$.trigger;_.Bf(G.detail).path.indexOf(H)>-1&&G.preventDefault()}});
Object.keys(Gm).forEach(function(G){euw[G]=Gm[G]});var nfa=_.KF.IronButtonState,Vaa=(0,_.ft)(HTMLElement);
_.Vy({_template:function(){if(kwR!==void 0)return kwR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;tat===void 0&&(tat=document.createElement("template"));var Q=tat;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return kwR=G},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[nfa,_.WZ,bM,_.Mo,_.r5],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(G){var H=(0,_.js)(this);H.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:G});H.shadowRoot.appendChild(G);return Vaa.prototype._attachDom.call(this,G)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var G=this.contentElement;G&&G.selectedItem&&this._setSelectedItem(G.selectedItem)},
get contentElement(){for(var G=_.Bf(this.$.content).getDistributedNodes(),H=0,Z=G.length;H<Z;H++)if(G[H].nodeType===Node.ELEMENT_NODE)return G[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(G){this._setSelectedItem(G.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(G){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)===this&&this.open()},
_selectedItemChanged:function(G){var H="";G?H=G.label||G.getAttribute("label")||G.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(G,H){return H?H:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",G)},
_computeLabelClass:function(G,H,Z){var Q="label";if(G)Z&&(Q+=" label-is-hidden");else if(Z||H)Q+=" label-is-floating";return Q},
_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 $nx;var XQa;_.Vy({is:"tp-yt-paper-icon-button",_template:function(){if(XQa!==void 0)return XQa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;$nx===void 0&&($nx=document.createElement("template"));var Q=$nx;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return XQa=G},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.bOt],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(G,H){var Z=this.getAttribute("aria-label");Z&&H!=Z||this.setAttribute("aria-label",G)}});var cra;var Tl_;_.He=[iMa,_.WZ,{hostAttributes:{role:"option",tabindex:"0"}}];_.Vy({_template:function(){if(Tl_!==void 0)return Tl_;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;cra===void 0&&(cra=document.createElement("template"));var Q=cra;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Tl_=G},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.He]});var fAw;var vfw;var WDt={attached:function(){this.fire("addon-attached")},
update:function(){}};var zua=1,KDT=1,MaR=1,jvN=[_.WZ,_.vZ,{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();!Zy&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(G,H){G?G=G+" "+H:G=H;return G},
_onAddonAttached:function(G){G=_.Bf(G).rootTarget;if(G.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,G.id);else{var H="paper-input-add-on-"+KDT++;G.id=H;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,H)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(G){_.WZ._focusBlurHandler.call(this,G);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var G=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",G);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(G){try{var H=this.inputElement.selectionStart;this.value=G;this.inputElement.selectionStart=H;this.inputElement.selectionEnd=H}catch(Z){this.value=G}},
_computeAlwaysFloatLabel:function(G,H){return H||G},
_updateAriaLabelledBy:function(){var G=_.Bf(this.root).querySelector("label");if(G){if(G.id)var H=G.id;else H="paper-input-label-"+zua++,G.id=H;this._ariaLabelledBy=H}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+MaR++)},
_onChange:function(G){this.shadowRoot&&this.fire(G.type,{sourceEvent:G},{node:this,bubbles:G.bubbles,cancelable:G.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var G=document.activeElement;G instanceof HTMLElement&&G!==document.body&&G!==document.documentElement||this._focusableElement.focus()}}}];var P5a;var rrd;_.Vy({_template:function(){if(rrd!==void 0)return rrd;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;P5a===void 0&&(P5a=document.createElement("template"));var Q=P5a;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return rrd=G},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[WDt],properties:{_charCounterStr:{type:String,value:"0"}},update:function(G){if(G.inputElement){G.value=G.value||"";var H=G.value.toString().length.toString();G.inputElement.hasAttribute("maxlength")&&(H+="/"+G.inputElement.getAttribute("maxlength"));this._charCounterStr=H}}});var wQG;var huR;_.Vy({_template:function(){if(huR!==void 0)return huR;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;wQG===void 0&&(wQG=document.createElement("template"));var Q=wQG;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return huR=G},
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 $P(this.attrForValue)},get _inputElement(){return _.Bf(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(G){this._addons||(this._addons=[]);G=G.target;this._addons.indexOf(G)===-1&&(this._addons.push(G),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(G){this._handleValueAndAutoValidate(G.target)},
_onValueChanged:function(G){var H=G.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,H.value===void 0||H.value===""))return;this._handleValueAndAutoValidate(G.target)},
_handleValue:function(G){var H=this._inputElementValue;H||H===0||G.type==="number"&&!G.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:G,value:H,invalid:this.invalid})},
_handleValueAndAutoValidate:function(G){this.autoValidate&&G&&(this.invalid=!(G.validate?G.validate(this._inputElementValue):G.checkValidity()));this._handleValue(G)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(G){if(this._addons)for(var H,Z=0;H=this._addons[Z];Z++)H.update(G)},
_computeInputContentClass:function(G,H,Z,Q,p){var l="input-content";G?(p&&(l+=" label-is-hidden"),Q&&!this.noUnfloatedLabelError&&(l+=" is-invalid")):(G=this.querySelector("label"),H||p?(l+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",Q?l+=" is-invalid":Z&&(l+=" label-is-highlighted")):(G&&(this.$.labelAndInputContainer.style.position="relative"),Q&&!this.noUnfloatedLabelError&&(l+=" is-invalid")));Z&&(l+=" focused");return l},
_computeUnderlineClass:function(G,H){var Z="underline";H?Z+=" is-invalid":G&&(Z+=" is-highlighted");return Z},
_computeAddOnContentClass:function(G,H){var Z="add-on-content";H?Z+=" is-invalid":G&&(Z+=" is-highlighted");return Z}});var C5G;var iKp;_.Vy({_template:function(){if(iKp!==void 0)return iKp;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;C5G===void 0&&(C5G=document.createElement("template"));var Q=C5G;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return iKp=G},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[WDt],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(G){this._setInvalid(G.invalid)}});_.Vy({is:"tp-yt-paper-input",_template:function(){if(vfw!==void 0)return vfw;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;fAw===void 0&&(fAw=document.createElement("template"));var Q=fAw;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return vfw=G},
behaviors:[jvN,_.Mo],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 OKw;var aAR;_.Vy({_template:function(){if(aAR!==void 0)return aAR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=
G.content,Z=H.insertBefore;OKw===void 0&&(OKw=document.createElement("template"));var Q=OKw;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return aAR=G},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.He]});var yra;var of2;_.Vy({_template:function(){if(of2!==void 0)return of2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var H=G.content,Z=H.insertBefore;yra===void 0&&(yra=document.createElement("template"));var Q=yra;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return of2=G},
is:"tp-yt-paper-item-body"});var mna;var Una;var Ruw=function(){};
_.g=Ruw.prototype;_.g.indexOf=function(){};
_.g.selectPrevious=function(){};
_.g.selectNext=function(){};
_.g.selectIndex=function(){};
_.g.forceSynchronousItemUpdate=function(){};
_.g._checkFallback=function(){};
_.g._addListener=function(){};
_.g._removeListener=function(){};
_.g._activateEventChanged=function(){};
_.g._updateItems=function(){};
_.g._selectSelected=function(){};
_.g._filterItem=function(){};
_.g._valueToItem=function(){};
_.g._valueToIndex=function(){};
_.g._indexToValue=function(){};
_.g._valueForItem=function(){};
_.g._observeItems=function(){};
_.g._itemActivate=function(){};
_.g.multiChanged=function(){};
_.g._updateAttrForSelected=function(){};
_.g._updateSelected=function(){};
_.g._selectMulti=function(){};
_.g._selectionChange=function(){};
_.g._toggleSelected=function(){};
_.g._valuesToItems=function(){};
_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g.select=function(){};
_.g._resetTabindices=function(){};
_.g._updateMultiselectable=function(){};
_.g._focusWithKeyboardEvent=function(){};
_.g._clearSearchText=function(){};
_.g._focusPrevious=function(){};
_.g._focusNext=function(){};
_.g._applySelection=function(){};
_.g._focusedItemChanged=function(){};
_.g._onIronItemsChanged=function(){};
_.g._onShiftTabDown=function(){};
_.g._onFocus=function(){};
_.g._onUpKey=function(){};
_.g._onDownKey=function(){};
_.g._onEscKey=function(){};
_.g._onKeydown=function(){};
_.g._activateHandler=function(){};
_.g._disabledChanged=function(){};
_.g._setSelectedItem=function(){};
_.g._setItems=function(){};
_.g._setSelectedItems=function(){};
_.g._setFocusedItem=function(){};
Ruw=_.Vy({_template:function(){if(Una!==void 0)return Una;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var H=G.content,Z=H.insertBefore;mna===void 0&&(mna=document.createElement("template"));var Q=mna;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Una=G},
is:"tp-yt-paper-listbox",behaviors:[Rc_],hostAttributes:{role:"listbox"}});var Nla;var Arx;var xn4={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(G,H){return[G||H?"active":"",H?"cooldown":""].join(" ")},
__activeChanged:function(G,H){this.__setAriaHidden(!G);this.__coolingDown=!G&&H},
__altChanged:function(G){this.setAttribute("aria-label",G||"loading")},
__setAriaHidden:function(G){G?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.Vy({_template:function(){if(Arx!==void 0)return Arx;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Nla===void 0&&(Nla=document.createElement("template"));var Q=Nla;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Arx=G},
is:"tp-yt-paper-spinner",behaviors:[xn4]});var LDd;var EfR;_.Vy({_template:function(){if(EfR!==void 0)return EfR;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;LDd===void 0&&(LDd=document.createElement("template"));var Q=LDd;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return EfR=G},
is:"tp-yt-paper-spinner-lite",behaviors:[xn4]});var YxG;var FDx;_.Vy({_template:function(){if(FDx!==void 0)return FDx;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;YxG===void 0&&(YxG=document.createElement("template"));var Q=YxG;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return FDx=G},
is:"tp-yt-paper-tab",behaviors:[_.WZ,_.KF.IronButtonState,bM],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 G=_.Bf(this).parentNode;return!!G&&!!G.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(G){if(this.link){var H=this.queryEffectiveChildren("a");H&&G.target!==H&&H.click()}}});var bKd;var GjT;var Hp_=_.CM(['<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>']),sQN=_.h22(Hp_);document.head.appendChild(sQN.content);_.Vy({_template:function(){if(GjT!==void 0)return GjT;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;bKd===void 0&&(bKd=document.createElement("template"));var Q=bKd;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return GjT=G},
is:"tp-yt-paper-tabs",behaviors:[_.hS,_.ABx],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(G){_.Bf(this).querySelectorAll("tp-yt-paper-tab").forEach(G?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(G){G.setAttribute("noink","")},
_removeNoinkAttribute:function(G){G.removeAttribute("noink")},
_computeScrollButtonClass:function(G,H,Z,Q){return!H||Z?"hidden":G?Q?"hidden":"not-visible":""},
_computeTabsContentClass:function(G,H){var Z="tabs-content";G&&(Z+=" scrollable");if(!G||H)Z+=" fit-container";return Z},
_computeSelectionBarClass:function(G,H){var Z="selection-bar";G?Z+=" hidden":H&&(Z+=" align-bottom");return Z},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(G){return""+G},
_onIronSelect:function(G){this._tabChanged(G.detail.item,this._previousTab);this._previousTab=G.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();_.w5._activateHandler.apply(this,arguments)},
_scheduleActivation:function(G,H){this._pendingActivationItem=G;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,H)},
_delayedActivationHandler:function(){var G=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;G.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(G){G.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(G,H){this.scrollable&&this._affectScroll(H&&-H.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(G){this.$.tabsContainer.scrollLeft+=G;G=this.$.tabsContainer.scrollLeft;this._leftHidden=G===0||this.hideScrollButtons;this._rightHidden=G===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(G,H){if(G){var Z=this.$.tabsContent.getBoundingClientRect(),Q=Z.width,p=G.getBoundingClientRect();Z=p.left-Z.left;this._pos={width:this._calcPercent(p.width,Q),left:this._calcPercent(Z,Q)};if(this.noSlide||H==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var l=H.getBoundingClientRect();H=this.items.indexOf(H);G=this.items.indexOf(G);this.$.selectionBar.classList.add("expand");
G=H<G;this._isRTL&&(G=!G);G?this._positionBar(this._calcPercent(p.left+p.width-l.left,Q)-5,this._left):this._positionBar(this._calcPercent(l.left+l.width-p.left,Q)-5,this._calcPercent(Z,Q)+5);this.scrollable&&this._scrollToSelectedIfNeeded(p.width,Z)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(G,H){H-=this.$.tabsContainer.scrollLeft;H<0?this.$.tabsContainer.scrollLeft+=H:(H+=G-this.$.tabsContainer.offsetWidth,H>0&&(this.$.tabsContainer.scrollLeft+=H))},
_calcPercent:function(G,H){return 100*G/H},
_positionBar:function(G,H){G=G||0;H=H||0;this._width=G;this._left=H;this.transform("translateX("+H+"%) scaleX("+G/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var G=this.$.selectionBar.classList;G.contains("expand")?(G.remove("expand"),G.add("contract"),this._positionBar(this._pos.width,this._pos.left)):G.contains("contract")&&G.remove("contract")}});var Zpw;var QQ_;_.Vy({_template:function(){if(QQ_!==void 0)return QQ_;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Zpw===void 0&&(Zpw=document.createElement("template"));var Q=Zpw;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return QQ_=G},
is:"tp-yt-paper-textarea",behaviors:[jvN,_.Mo],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(G){this.$.input.textarea.selectionStart=G},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(G){this.$.input.textarea.selectionEnd=G},_ariaLabelledByChanged:function(G){this._focusableElement.setAttribute("aria-labelledby",G)},
_ariaDescribedByChanged:function(G){this._focusableElement.setAttribute("aria-describedby",G)},
get _focusableElement(){return this.inputElement.textarea}});var pyw;var l$p;/*

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_a=function(){};
_.g=g_a.prototype;_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._focusedChanged=function(){};
_.g.registered=function(){};
_.g._invalidChanged=function(){};
_.g.hasValidator=function(){};
_.g.validate=function(){};
_.g._getValidity=function(){};
_.g._requiredChanged=function(){};
_.g._valueChanged=function(){};
_.g._checkedChanged=function(){};
_.g._buttonStateChanged=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
g_a=_.Vy({is:"tp-yt-paper-toggle-button",_template:function(){if(l$p!==void 0)return l$p;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;pyw===void 0&&(pyw=document.createElement("template"));var Q=pyw;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return l$p=G},
behaviors:[_.Gwp],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");_.q2(this,function(){_.NK(this,"pan-y")})},
_ontrack:function(G){G=G.detail;G.state==="start"?this._trackStart(G):G.state==="track"?this._trackMove(G):G.state==="end"&&this._trackEnd(G)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(G){G=G.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+G:G)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+G:G));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 G=bM._createRipple();G.id="ink";G.setAttribute("recenters","");G.classList.add("circle","toggle-ink");return G}});var I$R;var qap;_.Vy({_template:function(){if(qap!==void 0)return qap;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;I$R===void 0&&(I$R=document.createElement("template"));var Q=I$R;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return qap=G},
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 G=_.Bf(this).parentNode,H=_.Bf(this).getOwnerRoot(),Z;this.for?Z=_.Bf(H).querySelector("#"+this.for):Z=G.nodeType==Node.DOCUMENT_FRAGMENT_NODE?H.host:G;return Z},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(G){G==="entry"?this.show():G==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Bf(this).textContent.trim()===""){for(var G=!0,H=_.Bf(this).getEffectiveChildNodes(),Z=0;Z<H.length;Z++)if(H[Z].textContent.trim()!==""){G=!1;break}if(G)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 G=this.offset;this.marginTop!=14&&this.offset==14&&(G=this.marginTop);var H=this.offsetParent.getBoundingClientRect(),Z=this._target.getBoundingClientRect(),Q=this.getBoundingClientRect(),p=(Z.width-Q.width)/2,l=(Z.height-Q.height)/2,q=Z.left-H.left,u=Z.top-H.top;switch(this.position){case "top":var B=q+p;var t=u-Q.height-G;break;case "bottom":B=q+p;t=u+Z.height+G;break;case "left":B=q-Q.width-G;t=u+l;break;case "right":B=q+Z.width+
G,t=u+l}this.fitToVisibleBounds?(H.left+B+Q.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,B)+"px",this.style.right="auto"),H.top+t+Q.height>window.innerHeight?(this.style.bottom=H.height+"px",this.style.top="auto"):(this.style.top=Math.max(-H.top,t)+"px",this.style.bottom="auto")):(this.style.left=B+"px",this.style.top=t+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(G){G!==500&&this.updateStyles({"--paper-tooltip-delay-in":G+"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(G){if(G==="entry"&&this.animationEntry!=="")return this.animationEntry;if(G==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[G]&&typeof this.animationConfig[G][0].name==="string"){if(this.animationConfig[G][0].timing&&this.animationConfig[G][0].timing.delay&&this.animationConfig[G][0].timing.delay!==0){var H=this.animationConfig[G][0].timing.delay;G==="entry"?this.updateStyles({"--paper-tooltip-delay-in":H+"ms"}):G==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":H+
"ms"})}return this.animationConfig[G][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 SaN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(SaN,_.Iy);var uOw=_.e7(SaN,[0,_.LY]);var sL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(sL,_.Iy);var Bsw=[3,4],Jqd=[5,6];var tbd=[0,Bsw,Jqd,_.FC,-1,_.N8,_.b_,-1,c6d,TkR];var kjN=_.e7(sL,tbd),DQN=_.V2(tbd);var dQd=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(dQd,_.Iy);var eS4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(eS4,_.Iy);var n_4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(n_4,_.Iy);var Vba=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Vba,_.Iy);var $Qa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T($Qa,_.Iy);var Z8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Z8,_.Iy);Z8.prototype.getSource=function(){return _.V8(this,1)};
Z8.prototype.getMessage=function(){return _.nY(this,4)};
Z8.prototype.getData=function(){return _.dt(this,$Qa,8)};var Xyp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Xyp,_.Iy);var Qr=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Qr,_.Iy);var ps=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(ps,_.Iy);var lN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(lN,_.Iy);lN.prototype.getUrl=function(){return _.nY(this,1)};
lN.prototype.setUrl=function(G){return _.ha(this,1,G)};
lN.prototype.hasUrl=function(){return _.T8(_.gm(this,1))!=null};var cqa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(cqa,_.Iy);var Tsw=[3];var f$G=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(f$G,_.Iy);var gS=function(G){var H=new f$G;return _.ed(H,2,G)};
f$G.prototype.getLanguage=function(){return Xz(this,4,IH)};
var v_T=function(G){var H=gS(1);return _.vO(H,6,IH,G)},IH=[3,
4,5,6];var WNp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(WNp,_.Iy);var qu=function(G){var H=new WNp;return _.ed(H,1,G)},Sj=function(G,H){return _.vO(G,2,zSw,H)},zSw=[2,
3,4,5];var KNw=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(KNw,_.Iy);var uN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(uN,_.Iy);var Mbp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Mbp,_.Iy);var jQx=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(jQx,_.Iy);var PnT=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(PnT,_.Iy);var rqd=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(rqd,_.Iy);var wya=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(wya,_.Iy);var Be=function(G){return _.dt(G,ps,5)};var hST=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(hST,_.Iy);hST.prototype.getValue=function(){return dm(this,1)};var Cn7=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Cn7,_.Iy);var J$=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(J$,_.Iy);J$.prototype.getMetadata=function(){return _.c4(this,PnT,7,t$)};
J$.prototype.hasMetadata=function(){return _.q8(this,PnT,7,t$)};
var ipG=_.ANu(J$),t$=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var kl=function(G){this.JSC$12178_name_=G;this.files_=[];this.directories_=[];this.directoryMap_={}};
kl.prototype.getName=function(){return this.JSC$12178_name_};var dS=function(G,H){this.callback_=H;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new kl("");Op7(this,G,this.rootDirectory_);D8(this)},Op7=function(G,H,Z){for(var Q=0;Q<H.length;Q++){var p=H[Q];
p.isFile?(G.fileOps_++,p.file((0,_.Cu)(G.handleFileSuccess_,G,Z),(0,_.Cu)(G.handleFileError_,G))):G.unscannedDirectories_.push(new a$7(p,Z))}},D8=function(G){if(G.unscannedDirectories_.length>0&&G.directoryOps_<5&&!G.hasError_){G.directoryOps_++;
var H=G.unscannedDirectories_.shift(),Z=H.entry,Q=new kl(Z.name);H=H.parent;H.directoryMap_[Q.getName()]=Q;H.directories_.push(Q);Z=Z.createReader();Z.readEntries((0,_.Cu)(G.handleDirectorySuccess_,G,Z,Q),(0,_.Cu)(G.handleDirectoryError_,G))}G.directoryOps_!=0||G.fileOps_!=0||G.unscannedDirectories_.length!=0&&!G.hasError_||G.callback_(G.rootDirectory_.files_,G.rootDirectory_.directories_,G.hasError_)};
dS.prototype.handleDirectorySuccess_=function(G,H,Z){Op7(this,Z,H);Z.length==0?(this.directoryOps_--,D8(this)):G.readEntries((0,_.Cu)(this.handleDirectorySuccess_,this,G,H),(0,_.Cu)(this.handleDirectoryError_,this))};
dS.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;D8(this)};
dS.prototype.handleFileSuccess_=function(G,H){G.files_.push(H);this.fileOps_--;D8(this)};
dS.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;D8(this)};
var a$7=function(G,H){this.entry=G;this.parent=H};var ej=function(G){_.$f.call(this);_.tt(G,"drop",this.onObjectsDropped_,!1,this);_.tt(G,"dragenter",this.onFilesDragged_,!1,this);_.tt(G,"dragover",this.onFilesDragged_,!1,this);_.tt(G,"dragleave",this.onDragLeave_,!1,this);_.tt(G,"dragend",this.onDragLeave_,!1,this)};
_.AB(ej,_.$f);var yqT=function(G,H){_.DA.call(this,"f");this.files=G;this.directories=H};
_.AB(yqT,_.DA);var o_a=function(){_.DA.call(this,"h")};
_.AB(o_a,_.DA);var mQ2=function(){_.DA.call(this,"i")};
_.AB(mQ2,_.DA);var UQ7=function(){_.DA.call(this,"g")};
_.AB(UQ7,_.DA);ej.prototype.onObjectsDropped_=function(G){var H=this;G.preventDefault();var Z=G.event_.dataTransfer;if((G=Z&&Z.items)&&G.length>0&&G[0].webkitGetAsEntry){Z=[];for(var Q=[],p=0;p<G.length;p++){var l=G[p].webkitGetAsEntry();l?Z.push(l):Q.push(G[p])}new dS(Z,function(q,u,B){B?H.dispatchEvent(new UQ7("Error occurred while reading from the file system.")):H.dispatchEvent(new yqT(q,u,Q))})}else(G=Z&&Z.files)&&this.dispatchEvent(new yqT(Array.from(G),[]))};
ej.prototype.onFilesDragged_=function(G){G.type==="dragenter"&&this.dispatchEvent(new o_a);G.preventDefault()};
ej.prototype.onDragLeave_=function(){this.dispatchEvent(new mQ2)};var RSt=function(G,H){this.JSC$12201_name_=G;this.inputElement_=H};
RSt.prototype.getName=function(){return this.JSC$12201_name_};
RSt.prototype.getInputElement=function(){return this.inputElement_};var ns=function(G,H,Z){H=H===void 0?"single_file":H;Z=Z===void 0?[]:Z;_.$f.call(this);this.overlayTarget_=G;this.parentOverlay_=G!=null?G.parentNode:_.z$("scotty-overlay-parent");this.selectorType_=H;this.acceptTypes_=Z;this.overlay_=Nsx(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.T(ns,_.$f);
var Nsx=function(G,H,Z,Q){var p=document.createElement("input");p.setAttribute("type","file");p.setAttribute("name","Filedata");_.tt(p,"change",G.onFilesSelected_,!1,G);Z==="multiple_file"&&(p.multiple="true");Z==="single_directory"&&(p.webkitdirectory="true");Q.length>0&&p.setAttribute("accept",Q.join(","));p.style.position="absolute";p.style.overflow="hidden";p.style.height="0px";p.style.width="0px";p.style.opacity="0";p.setAttribute("aria-hidden","true");p.setAttribute("tabIndex",-1);if(G.overlayTarget_!=
null)return p.style.height=H.offsetHeight+"px",p.style.width=H.offsetWidth+"px",G.parentOverlay_&&(G.parentOverlay_.style.position="relative"),_.ME(p,H),CO(p,new _.UA(H.offsetLeft,H.offsetTop)),p;G.parentOverlay_.appendChild(p);return p};
ns.prototype.click=function(){this.overlay_.click()};
ns.prototype.onFilesSelected_=function(G){a:{try{var H=(new XMLHttpRequest).upload!==void 0;break a}catch(t){}H=!1}if(H){var Z;G=Array.from((Z=G.target.files)!=null?Z:[]);Z=[];if(this.selectorType_==="single_directory"&&(_.b$||qh||_.FW)){Z=new kl("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(H=0;H<G.length;H++)for(var Q=G[H],p=Q.webkitRelativePath.split("/"),l=Z,q=0;q<p.length;q++){var u=p[q];if(q==p.length-1){u!="."&&l.files_.push(Q);break}var B=l.directoryMap_[u];B==void 0&&(u=
B=new kl(u),l.directoryMap_[u.getName()]=u,l.directories_.push(u));l=B}Z=Z.directories_}this.dispatchEvent(new AqT(G,Z,null))}else G=G.target.value,G.match(/^c:\\fakepath\\/i)&&(G=G.substring(12)),this.dispatchEvent(new AqT([],[],new RSt(G,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=Nsx(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var AqT=function(G,H){_.DA.call(this,"j");this.files=G;this.directories=H};
_.T(AqT,_.DA);var xQR=function(G){this.uploadUrl_=G};var LNt=function(){_.$f.call(this)};
_.AB(LNt,_.$f);var Vr=function(G){_.DA.call(this,G)};
_.AB(Vr,_.DA);var $l=function(G){_.DA.call(this,G)};
_.AB($l,_.DA);var E_p=function(G,H,Z,Q,p){_.$f.call(this);Z=document.createElement("form");Z.setAttribute("method",H);Z.setAttribute("enctype","multipart/form-data");Z.setAttribute("encoding","multipart/form-data");H=document.createElement("input");H.setAttribute("type","hidden");H.setAttribute("name","metadata");H.setAttribute("value",p);Z.appendChild(H);Z.appendChild(Q);this.JSC$12218_form_=Z;G=new _.C9(G);_.Z0(G,"upload_protocol","multipart");this.JSC$12218_url_=G.toString();this.JSC$12218_request_=new pF;this.state_=
"Ready";this.JSC$12218_errorDescription_=null;this.JSC$12218_eventHandler_=new _.en(this);_.T$(this,this.JSC$12218_eventHandler_);this.JSC$12218_eventHandler_.listen(this.JSC$12218_request_,"success",this.onTransferSuccess_);this.JSC$12218_eventHandler_.listen(this.JSC$12218_request_,"error",this.onTransferError_)};
_.T(E_p,LNt);_.g=E_p.prototype;_.g.run=function(){this.state_="Transferring";var G=this.JSC$12218_request_,H=this.JSC$12218_form_;if(G.JSC$11486_active_)throw Error("te");var Z=new _.C9(this.JSC$12218_url_||H.action);G.JSC$11486_form_=H;H=G.JSC$11486_form_;Z=_.NU(Z.toString());Z!==void 0&&(H.action=Z);Q9x(G)};
_.g.getResponseCode=function(){return null};
_.g.getResponseText=function(){return this.JSC$12218_request_&&this.JSC$12218_request_.getResponseText()||null};
_.g.JSC$29797_getErrorDescription=function(){return this.JSC$12218_errorDescription_};
_.g.cancel=function(){this.JSC$12218_request_&&this.JSC$12218_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Vr("o"))};
_.g.pause=function(){};
_.g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Vr("l"))};
_.g.onTransferError_=function(){this.JSC$12218_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Vr("n"))};var Xw=function(){_.KK.call(this)};
_.T(Xw,_.KK);Xw.prototype.createXhr=function(){var G=_.KK.prototype.createXhr.call(this);G.upload&&(G.upload.onprogress=(0,_.Cu)(this.onProgress_,this));return G};
Xw.prototype.onProgress_=function(G){this.dispatchEvent(G)};var Yap=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},bpN=function(G,H){var Z=G.attempt_+1;
if(G.maxAttempts_>0&&Z>G.maxAttempts_)return!1;Z==0?H():G.delayCallId_=vQ(function(){G.delayCallId_=null;H()},FNa(G),G);
G.attempt_=Z;return!0};
Yap.prototype.reset=function(){this.delayCallId_&&_.Qf.clearTimeout(this.delayCallId_);this.attempt_=-1};
var FNa=function(G){var H=250*Math.pow(2,G.attempt_);G.maxDelayMs_>=0&&(H=Math.min(H,G.maxDelayMs_));return H};var vho=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var ce=function(){_.$f.call(this);this.JSC$12228_request_=this.state_=null;this.JSC$12228_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12228_bytesTransferred_=0;this.retryIterator_=new Yap;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12228_errorDescription_=null;this.JSC$12228_eventHandler_=new _.en(this);_.T$(this,this.JSC$12228_eventHandler_);this.JSC$12228_url_=this.blob_=null;this.JSC$12228_method_=void 0;this.chunkSize_=this.JSC$12228_metadata_=
this.JSC$12228_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12228_responseText_=this.JSC$12228_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.AB(ce,LNt);_.g=ce.prototype;_.g.run=function(){Tm(this)};
_.g.getResponseCode=function(){return this.JSC$12228_responseCode_};
_.g.getResponseText=function(){return this.JSC$12228_responseText_};
_.g.JSC$29797_getErrorDescription=function(){return this.JSC$12228_errorDescription_};
_.g.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12228_eventHandler_.removeAll();this.JSC$12228_request_&&this.JSC$12228_request_.abort();this.retryIterator_.reset();var G=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(G==="Upload"||G==="Query")G=new Xw,G.JSC$9805_withCredentials_=this.JSC$12228_withCredentials_,G.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12228_bytesTransferred_=
0;this.dispatchEvent(new Vr("o"))}};
_.g.pause=function(){this.pauseRequested_=!0};
var Tm=function(G){var H=G.state_;G.pauseRequested_?(G.pauseRequested_=!1,G.stateAfterUnpausing_=H,G.state_="Paused"):bpN(G.retryIterator_,function(){switch(G.state_){case "Start":G.JSC$12228_request_=new Xw;var Z=_.oN.clone(G.JSC$12228_headers_);G.blob_.size!=null&&(Z["Content-Length"]=G.blob_.size);Z=Wrb(Z);Z["X-Goog-Upload-Protocol"]="resumable";Z["X-Goog-Upload-Command"]="start";G.JSC$12228_eventHandler_.removeAll();G.JSC$12228_eventHandler_.listen(G.JSC$12228_request_,"complete",G.onStartComplete_);
G.JSC$12228_request_.JSC$9805_withCredentials_=G.JSC$12228_withCredentials_;G.JSC$12228_request_.send(G.JSC$12228_url_,G.JSC$12228_method_,G.JSC$12228_metadata_,Z);G.lastCommandResponseCode_=null;G.dispatchEvent(new $l("q"));break;case "Upload":Z=G.transferHandle_.uploadUrl_;var Q=G.blob_.size;if(rZa()){var p=G.chunkSize_;var l=G.offset_+p>=Q;Q=PJN(G.blob_,G.offset_,l?Q:G.offset_+p)}else G.offset_=0,Q=G.blob_,l=!0;G.JSC$12228_request_=new Xw;G.JSC$12228_request_.JSC$9805_withCredentials_=G.JSC$12228_withCredentials_;
G.JSC$12228_eventHandler_.removeAll();G.JSC$12228_eventHandler_.listen(G.JSC$12228_request_,"progress",G.onUploadProgress_);p=(0,_.Cu)(G.JSC$12230_onUploadComplete_,G,G.offset_+Q.size,l);G.JSC$12228_eventHandler_.listen(G.JSC$12228_request_,"complete",p);G.lastCommandResponseCode_=null;G.dispatchEvent(new $l("q"));l=Object.assign({},G.JSC$12228_headers_||{},{"X-Goog-Upload-Command":"upload"+(l?", finalize":""),"X-Goog-Upload-Offset":G.offset_});G.JSC$12228_request_.send(Z,"POST",Q,l);break;case "Query":G.JSC$12228_request_=
new Xw;G.JSC$12228_eventHandler_.removeAll();G.JSC$12228_eventHandler_.listen(G.JSC$12228_request_,"complete",G.onQueryComplete_);Z=Object.assign({},G.JSC$12228_headers_||{},{"X-Goog-Upload-Command":"query"});G.JSC$12228_request_.send(G.transferHandle_.uploadUrl_,"POST","",Z);G.lastCommandResponseCode_=null;G.dispatchEvent(new $l("q"));break;default:throw Error("lf");}})||ve(G,"Transfer encountered too many consecutive failures.")},ve=function(G,H){G.state_="Error";
G.JSC$12228_errorDescription_=H;G.dispatchEvent(new Vr("n"))};
ce.prototype.onStartComplete_=function(G){var H=G.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new $l("r"));if(Gvp(H))HVa(this,H);else if(s3w(H)){G=gn(G.target.getAllResponseHeaders());for(var Z in G)_.le(Z.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Vr("m"));Z=tZ(G,"X-Goog-Upload-URL");G=(G=tZ(G,"X-Goog-Upload-Chunk-Granularity"))?parseInt(G,10):1;Z===void 0||isNaN(G)||G<=0?ve(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
G)*G,this.transferHandle_=new xQR(Z),this.dispatchEvent(new Vr("p")),this.state_="Upload",this.retryIterator_.reset(),Tm(this))}else Tm(this)};
ce.prototype.onUploadProgress_=function(G){this.JSC$12228_bytesTransferred_=this.offset_+G.loaded;this.dispatchEvent(new Vr("k"))};
ce.prototype.JSC$12230_onUploadComplete_=function(G,H,Z){var Q=this,p,l;return _.S(function(q){switch(q.nextAddress){case 1:p=Z.target;Q.lastCommandResponseCode_=p.getStatus();Q.dispatchEvent(new $l("r"));if(ZV_(p)||p.getStatus()==404)return Q.JSC$12228_bytesTransferred_=G,HVa(Q,p),q.return();if(s3w(p)){q.jumpTo(2);break}if(!(l=Q.detectCorruptedBlobEnabled_)){q.jumpTo(3);break}return q.yield(Q3T(Q),4);case 4:l=q.yieldResult;case 3:if(l)return ve(Q,"Blob has been modified or corrupted."),q.return();
Q.requireUploadRequestModification_=p.getStatus()==400;Q.state_="Query";Tm(Q);return q.return();case 2:if(H)return ve(Q,"Got a non-final success response after issuing a finalize command."),q.return();Q.JSC$12228_bytesTransferred_=G;Q.offset_=G;Q.retryIterator_.reset();Tm(Q);return q.return()}})};
ce.prototype.onQueryComplete_=function(G){var H=G.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new $l("r"));Gvp(H)?(H.getStatus()===200&&(this.JSC$12228_bytesTransferred_=this.blob_.size),HVa(this,H)):s3w(H)?(G=gn(G.target.getAllResponseHeaders()),G=parseInt(tZ(G,"X-Goog-Upload-Size-Received"),10),isNaN(G)?ve(this,"Server did not respond with current offset."):G<this.offset_?ve(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
G+"."):this.requireUploadRequestModification_&&this.offset_===G?ve(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<G&&this.retryIterator_.reset(),this.offset_=this.JSC$12228_bytesTransferred_=G,this.state_="Upload",Tm(this))):Tm(this)};
var HVa=function(G,H){G.JSC$12228_responseCode_=H.getStatus();var Z=gn(H.getAllResponseHeaders());zee(Z);G.JSC$12228_responseText_=H.getResponseText();G.state_="Response received";G.dispatchEvent(new Vr("l"))},s3w=function(G){var H=G.getStatus();
G=gn(G.getAllResponseHeaders());G=tZ(G,"X-Goog-Upload-Status");return H===200&&G==="active"},ZV_=function(G){G=gn(G.getAllResponseHeaders());
return tZ(G,"X-Goog-Upload-Status")==="final"},Gvp=function(G){if(ZV_(G))return!0;
G=G.getStatus();return G>=400&&G<500},Q3T=function(G){var H;
return _.S(function(Z){if(Z.nextAddress==1){if(!G.blob_||G.originalBlobSize_<=0)return Z.return(!1);if(G.blob_.size!==G.originalBlobSize_)return Z.return(!0);_.XV(Z,2);if(H=PJN(G.blob_,0,1)){var Q=Z.yield,p=new oB,l=k3G(p);p.reader_.readAsBinaryString(H);Z=Q.call(Z,l,4)}else Z=Z.return(!0);return Z}if(Z.nextAddress!=2)return Z.return(G.blob_.size!==G.originalBlobSize_);_.Wg(Z);return Z.return(!0)})};var psG=function(G,H,Z,Q,p,l){_.$f.call(this);this.payload_=Q;this.JSC$12231_url_=G;this.JSC$12231_method_=H;this.JSC$12231_headers_=Z;this.JSC$12231_metadata_=p;this.encoding_=l||"binary";G=new _.WK;this.boundary_="uploader-"+Gy()+"-"+G.JSC$11335_toIsoString();this.JSC$12231_responseText_=this.JSC$12231_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12231_errorDescription_=null;this.JSC$12231_eventHandler_=new _.en(this);_.T$(this,this.JSC$12231_eventHandler_)};
_.T(psG,LNt);_.g=psG.prototype;
_.g.run=function(){var G=_.oN.clone(this.JSC$12231_headers_);this.payload_.length!=null&&(G["Content-Length"]=this.payload_.length);G=Wrb(G);G["X-Goog-Upload-Protocol"]="multipart";G["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Xw;this.JSC$12231_eventHandler_.removeAll();this.JSC$12231_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12231_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12231_url_,this.JSC$12231_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12231_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",G)};
_.g.getResponseCode=function(){return this.JSC$12231_responseCode_};
_.g.getResponseText=function(){return this.JSC$12231_responseText_};
_.g.JSC$29797_getErrorDescription=function(){return this.JSC$12231_errorDescription_};
_.g.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12231_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Vr("o")))};
_.g.pause=function(){};
_.g.onTransferProgress_=function(){this.dispatchEvent(new Vr("k"))};
_.g.onTransferComplete_=function(G){var H=G.target.getStatus();H===void 0||H===-1?(this.JSC$12231_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Vr("n"))):(this.JSC$12231_responseCode_=H,G=G.target,H=gn(G.getAllResponseHeaders()),zee(H),this.JSC$12231_responseText_=G.getResponseText(),this.state_="Complete",this.dispatchEvent(new Vr("l")))};_.lNa=function(G,H,Z,Q){Q=Q===void 0?!1:Q;if(Z instanceof RSt)return new E_p(G,"POST",H,Z.getInputElement(),"");if(typeof Z==="string"||Z instanceof String)return new psG(G,"POST",H,Z,"");var p=new ce(void 0);p.JSC$12228_url_=G;p.JSC$12228_method_="POST";p.JSC$12228_headers_=H;p.blob_=Z;p.originalBlobSize_=Z.size;p.JSC$12228_metadata_="";Q&&(p.JSC$12228_withCredentials_=Q);p.state_="Start";return p};var We=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(We,_.Iy);_.g=We.prototype;_.g.getEnableSsEngine=function(){return _.DH(this,2)};
_.g.getEnableAwr=function(){return _.DH(this,3)};
_.g.getAlohaAutoGaRollout=function(){return _.DH(this,5)};
_.g.getEnableConfigurator=function(){return _.DH(this,6)};
_.g.getEnableMweb=function(){return _.DH(this,7)};
var IN2=function(){var G=gqd();return _.DQ(G,7,!0)};
We.prototype.getEnableCtlConsentCheckbox=function(){return _.DH(this,8)};
We.prototype.getEnableIframe=function(){return _.DH(this,9)};
var gqd=function(){var G=new We;G=_.DQ(G,5,!0);G=_.DQ(G,2,!0);G=_.DQ(G,4,!1);G=_.DQ(G,8,!0);return _.DQ(G,9,!0)};
We.prototype.getEnableScreenshotNudge=function(){return _.DH(this,10)};
var qe7=function(){var G=IN2();return _.DQ(G,10,!0)};
We.prototype.getEnableWebStartupConfigEndpoint=function(){return _.DH(this,11)};
We.prototype.getEnableJunkNudge=function(){return _.DH(this,12)};
var xdb=function(){var G=qe7();return _.DQ(G,12,!0)};
_.g=We.prototype;_.g.getEnableConfiguratorLocale=function(){return _.DH(this,13)};
_.g.getEnableTinyNoPointer=function(){return _.DH(this,14)};
_.g.getEnableSupportSessionLogging=function(){return _.DH(this,15)};
_.g.getEnableFileUploadForScreenshot=function(){return _.DH(this,16)};
_.g.getEnableDirectDeflectionForSingleCategory=function(){return _.DH(this,17)};
_.g.getEnableImageSanitization=function(){return _.DH(this,18)};
_.g.getEnableAlohaBinarySplit=function(){return _.DH(this,19)};
_.g.getEnableDbFeedbackIntents=function(){return _.DH(this,20)};
_.g.getEnableMarkMandatoryFieldsWithRequired=function(){return _.DH(this,21)};
_.g.getEnableFeedbackCategoryCustomUi=function(){return _.DH(this,22)};
_.g.getEnableRealtimeCtl=function(){return _.DH(this,23)};var AOj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(AOj,_.Iy);var Kro=[/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 jBM="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 P2W=_.CM(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),rOb=_.CM(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var heu,OtX,C2U,ay3;var SeT,uAw;
SeT=function(G,H,Z){G.timeOfStartCall=(new Date).getTime();var Q=Z||_.Qf,p=Q.document,l=G.nonce||_.sP(Q.document);l&&!G.nonce&&(G.nonce=l);if(G.flow=="help"){var q=_.GF("document.location.href",Q);!G.helpCenterContext&&q&&(G.helpCenterContext=q.substring(0,1200));q=!0;if(H&&JSON&&JSON.stringify){var u=JSON.stringify(H);(q=u.length<=1200)&&(G.psdJson=u)}q||(H={invalidPsd:!0})}H=[G,H,Z];Q.GOOGLE_FEEDBACK_START_ARGUMENTS=H;Z=G.feedbackServerUri||"//www.google.com/tools/feedback";if(q=Q.GOOGLE_FEEDBACK_START)q.apply(Q,H);
else{Q=Z+"/load.js?";for(var B in G)H=G[B],H==null||_.AM(H)||(Q+=encodeURIComponent(B)+"="+encodeURIComponent(H)+"&");G=r3(p).createElement("SCRIPT");l&&G.setAttribute("nonce",l);_.gJ(G,_.j7(Q));p.body.appendChild(G)}};
uAw=function(G,H,Z,Q){var p,l;_.S(function(q){p=Z||_.Qf;var u=G.serverEnvironment==="DEV",B=Z||_.Qf;B=G.nonce||_.sP(B.document);u={integrationKeys:{productId:G.productId,feedbackBucket:G.bucket,triggerId:G.triggerId},callbacks:{onClose:G.callback,onLoad:G.onLoadCallback},formContent:{locale:G.locale,disableScreenshot:G.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:G.abuseLink,additionalDataConsent:G.additionalDataConsent},initializationData:{isLocalServer:u,nonce:B,useNightlyRelease:u,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:G.feedbackServerUri,colorScheme:G.colorScheme},extraData:{productVersion:G.productVersion,authUser:G.authuser,configuratorId:G.configuratorId,customZIndex:G.customZIndex,tinyNoPointer:G.tinyNoPointer,
allowNonLoggedInFeedback:G.allowNonLoggedInFeedback,enableAnonymousFeedback:G.enableAnonymousFeedback}};H&&(B=new Map(Object.entries(H)),u.extraData.productSpecificData=B);l=u;return q.yield(Udu(l,Q,p),0)})};
_.BKt=function(G,H,Z){try{if(G.flow==="help"){var Q=G.helpCenterPath.replace(/^\//,"");_.Hg(Z||window,"https://support.google.com/"+Q)}else G.flow==="submit"?SeT(G,H,Z):LrU(G.productId,G.feedbackServerUri).then(function(p){p=_.dt(p,We,1);var l=!yM2||(p==null?void 0:p.getEnableMweb()),q=!G.tinyNoPointer||(p==null?void 0:p.getEnableTinyNoPointer());!p||p.getAlohaAutoGaRollout()&&l&&q?uAw(G,H,Z,p):SeT(G,H,Z)},function(p){p&&p.name!=="DuplicateFormError"&&SeT(G,H,Z)})}catch(p){uAw(G,H,Z,null)}};
_.u7("userfeedback.api.startFeedback",_.BKt);var Ehj=/https?:\/\/\S+\.\S+/,Y4u=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Frj=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var hzf=function(G){var H=G.split(""),Z=[-263237435,15,H,function(Q,p,l){var q=p.length;l.forEach(function(u,B,t){this.push(t[B]=p[(p.indexOf(u)-p.indexOf(this[B])+B+q--)%p.length])},Q.split(""))},
function(Q,p){Q=(Q%p.length+p.length)%p.length;p.splice(-Q).reverse().forEach(function(l){p.unshift(l)})},
"response",function(){for(var Q=64,p=[];++Q-p.length-32;){switch(Q){case 58:Q-=14;case 91:case 92:case 93:continue;case 123:Q=47;case 94:case 95:case 96:continue;case 46:Q=95}p.push(String.fromCharCode(Q))}return p},
null,12,1540023973,65941107,null,H,function(Q,p){for(Q=(Q%p.length+p.length)%p.length;Q--;)p.unshift(p.pop())},
695603893,function(Q){for(var p=Q.length;p;)Q.push(Q.splice(--p,1)[0])},
"'[;'[(",function(Q,p){Q.push(p)},
null,function(Q,p,l,q,u){return p(l,q,u)},
"continuation",H,function(Q,p){if(Q.length!=0){p=(p%Q.length+Q.length)%Q.length;var l=Q[0];Q[0]=Q[p];Q[p]=l}},
function(){for(var Q=64,p=[];++Q-p.length-32;){switch(Q){case 91:Q=44;continue;case 123:Q=65;break;case 65:Q-=18;continue;case 58:Q=96;continue;case 46:Q=95}p.push(String.fromCharCode(Q))}return p},
'"),/]];'];Z[7]=Z;Z[11]=Z;Z[18]=Z;try{(((0,Z[15])(Z[21]),Z[22])(Z[11],Z[9]),Z[22])(Z[new Date("1970-01-01T04:30:12.000+04:30")/1E3],Z[1]),((0,Z[22])(Z[11],Z[23]),Z[4])(Z[10],Z[18]),(0,Z[20])(Z[21],Z[14])<<(0,Z[17])(Z[18],Z[1]),(0,Z[4])(Z[8],Z[21]),(0,Z[19])((0,Z[19])((0,Z[17])(Z[7],Z[9]),Z[3],Z[20],(0,Z[6])(),Z[2]),Z[3],Z[5],(0,Z[15])(),Z[2])}catch(Q){return"aTlOUOubTO4AP____8P_"+G}return H.join("")};_.JAR=new _.bn("runAttestationCommand");var tGw=new _.bn("verifyCommand");_.qc=new _.bn("accessibilityContext");var kvN=new _.bn("accessibilityData");var DO7=new _.bn("profileCardCommand");var Pd3=new _.bn("signInEndpoint");var jWv=new _.bn("signOutEndpoint");var eAd;_.dO4=new _.bn("accountItemSectionRenderer");eAd=new _.bn("accountItemRenderer");_.nqN=new _.bn("saveCommandToSessionStorageAction");var VGa=new _.bn("crossAccountChannelTransferEndpoint");var cCv=new _.bn("getAccountMenuEndpoint");_.TDU=new _.bn("getAccountSwitcherEndpoint");var X0W=new _.bn("getAccountsListEndpoint");var $Od=new _.bn("getAccountsListInnertubeEndpoint");_.Xs7=new _.bn("addToToastAction");var cAp=new _.bn("hideEnclosingAction");_.zm=new _.bn("replaceEnclosingAction");var TKR=new _.bn("buttonRefreshAction");var fNw=new _.bn("adsControlFlowOpportunityReceivedCommand");var vqw=new _.bn("openAdAllowlistInstructionCommand");var W1_=new _.bn("videoMastheadAdPrimaryVideoRenderer");var zAw=new _.bn("displayAdRenderer");_.K1p=new _.bn("inFeedAdLayoutRenderer");var MG2=new _.bn("sequenceItemInPlayerAdLayoutRenderer");_.j3G=new _.bn("adSlotRenderer");var POw=new _.bn("adAvatarViewModel");var rAx=new _.bn("adBadgeViewModel");var ws_=new _.bn("adButtonViewModel");var hA7=new _.bn("adImageViewModel");var Y$u=new _.bn("reelsAdCardButtonedViewModel");var CO4=new _.bn("reelsPlayerOverlayLayoutViewModel");var iVw=new _.bn("formDataDecoratorCommand");var OVa=new _.bn("updateConversationIdCommand");var aNd=new _.bn("showSchedulingPanelCommand");var yAT=new _.bn("backstageCommentsRenderer");var oqT=new _.bn("backstageImageRenderer");var mOw=new _.bn("backstagePostRenderer");var UO_=new _.bn("backstageZeroStateRenderer");var RA2=new _.bn("postRenderer");var NKa=new _.bn("sharedPostRenderer");var AA2=new _.bn("createBackstagePostEndpoint");var xO_=new _.bn("getPostVideoPreviewEndpoint");var L1x=new _.bn("updateBackstagePostEndpoint");var Eqa=new _.bn("filterChipTransformCommand");var Ye_=new _.bn("insertRichSectionCommand");var Bev=new _.bn("talkToRecsDeselectCommand");var F1R=new _.bn("talkToRecsNextCommand");var upR=new _.bn("talkToRecsSelectCommand");var E0b=new _.bn("talkToRecsUpdateTextCommand");_.gT=new _.bn("browseEndpoint");_.bV7=new _.bn("confirmDialogEndpoint");var GJ7=new _.bn("expandOnHoverCardRenderer");var Htp=new _.bn("lumiereShelfDetailsRenderer");var sBa=new _.bn("revealBusinessEmailCommand");var Ztd=new _.bn("validateChannelHandleCommand");var QBG=new _.bn("channelCreationFormEndpoint");var pKG=new _.bn("aboutChannelViewModel");var lyw=new _.bn("channelThumbnailWithLinkRenderer");var ghd=new _.bn("channelCreationServiceEndpoint");var IyR=new _.bn("updateChannelPageSettingsEndpoint");var Ks=function(G){this.delegate=G},Mu=function(){Ks.apply(this,arguments)};
_.T(Mu,Ks);_.u4.Object.defineProperties(Mu.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(G){this.delegate.entityMetadata=G}}});var q4G=function(){Mu.apply(this,arguments)};
_.T(q4G,Mu);q4G.prototype.getAssociations=function(){return[]};
q4G.prototype.getTypeName=function(){return"channelHandle"};var vvM=new _.bn("webThumbnailDetailsExtensionData");var G2U=new _.bn("commandContext");var S4t=new _.bn("addVideoLinkAction");var uER=new _.bn("banAuthorAction");var Ba7=new _.bn("createCommentAction");var JOR=new _.bn("createCommentReplyAction");var tMa=new _.bn("createPollAction");var kJ7=new _.bn("hideIdentityChipAction");var Dd2=new _.bn("openUpdateCommentDialogAction");var dd2=new _.bn("pinCommentAction");var eet=new _.bn("removeCommentAction");var nhp=new _.bn("unpinCommentAction");var jj=new _.bn("updateBackstagePollAction");var VMa=new _.bn("updateCommentVoteAction");var $dw=new _.bn("commentThreadRenderer");var XKw=function(){Mu.apply(this,arguments)};
_.T(XKw,Mu);XKw.prototype.getAssociations=function(){return[]};
XKw.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var cOR=function(){Mu.apply(this,arguments)};
_.T(cOR,Mu);cOR.prototype.getAssociations=function(){return[]};
cOR.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Taa=new _.bn("commentDialogRenderer");var fyp=new _.bn("reloadCommentsCommand");var vhx=new _.bn("updateCommentsSettingsEndpoint");var Wra=new _.bn("commentViewModel");var zea=new _.bn("triStateButtonViewModel");var Krx=new _.bn("voiceReplyContainerViewModel");_.Ft=new _.bn("commandExecutorCommand");var $C=new _.bn("emoji");var MMG=new _.bn("updateCreatorChannelInnertubeCommand");_.jB_=new _.bn("appendContinuationItemsAction");_.P2w=new _.bn("changeEngagementPanelVisibilityAction");_.vh=new _.bn("continuationCommand");var rOa=new _.bn("hideReportedCommentAction");var wK4=new _.bn("listMutationCommand");_.Pe=new _.bn("openPopupAction");var het=new _.bn("persistSubscriptionsDisplayPreferencesCommand");var Udt;_.C2T=new _.bn("playlistRemoveVideosAction");_.ita=new _.bn("updatePlaylistAction");_.Ot7=new _.bn("addToPlaylistCommand");_.ayd=new _.bn("endPlaylistCommand");_.yOd=new _.bn("recoverPlaylistCommand");_.ohx=new _.bn("refreshPlaylistCommand");_.mdR=new _.bn("refreshFormCommand");Udt=new _.bn("openOnePickAddVideoModalCommand");_.jDR=new _.bn("reloadContinuationItemsCommand");_.Rea=new _.bn("scrollToEngagementPanelCommand");var Nax=new _.bn("selectCountryCommand");var AON=new _.bn("showReloadUiCommand");var xda=new _.bn("undoFeedbackAction");var LrT=new _.bn("updateButtonAction");var EhN=new _.bn("updateSubscribeButtonAction");var Y4t=new _.bn("updateToggleAction");var FrN=new _.bn("webNativeShareCommand");_.HA=new _.bn("webCommandMetadata");_.rS=new _.bn("webHandleServiceEndpointExtension");var Xw2=new _.bn("webNavigationEndpointData");var bt2=new _.bn("backgroundAudioPlaybackCommand");var Gsp=new _.bn("copyLinkCommand");var HFd=new _.bn("playlistVotingRefreshPopupCommand");var s$w=new _.bn("selectChipCommand");var ZFw=new _.bn("setCookieCommand");var Q$w=new _.bn("setLocalStorageCommand");var pZR=new _.bn("setPrefStorageEntryCommand");var qsp;_.lRt=new _.bn("settingsUpdateCheckboxCommand");_.gxw=new _.bn("settingsUpdateTextCommand");_.IRT=new _.bn("settingsUpdateOptionsCommand");qsp=new _.bn("settingsUpdateSwitchCommand");_.Ssd=new _.bn("settingsUpdateConnectedAppRendererCommand");var uvN=new _.bn("showCreatorChatbotEngagementPanelCommand");var B52=new _.bn("updateTextInputFormFieldRendererCommand");var JSG=new _.bn("updateToggleButtonStateCommand");var tLa=new _.bn("updateUrlParamCommand");var ks7=new _.bn("webSubmitFormCommand");var Dow=new _.bn("channelSwitcherPageRenderer"),dox=new _.bn("updateChannelSwitcherPageAction");_.Oz=new _.bn("continuationItemRenderer");_.wS=new _.bn("richItemRenderer");var ebG=new _.bn("richSectionRenderer");_.nx7=new _.bn("richShelfRenderer");_.VLN=new _.bn("metadataBadgeRenderer");_.$ow=new _.bn("multiPageMenuNotificationSectionRenderer");_.XZa=new _.bn("playlistLoopButtonStateRenderer");var cSw=new _.bn("claimLegacyYoutubeChannelEndpoint");var T54=new _.bn("getNotificationMenuEndpoint");var fRw=new _.bn("getSearchInVideoCommand");_.vxa=new _.bn("getTranscriptEndpoint");_.GD=new _.bn("signalServiceEndpoint");var WLG=new _.bn("verifyAgeEndpoint");var O4u=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(O4u,_.Iy);O4u.prototype.getPath=function(){return _.nY(this,1)};
O4u.prototype.getValue=function(){return _.nY(this,2)};var zbG=[0,_.y8,-1];var KLd=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(KLd,_.Iy);var i42=_.e7(KLd,[0,_.RE,zbG]);var MLx=new _.bn("dismissalEndpoint");var j$a=new _.bn("elementsCommand");_.cT=new _.bn("innertubeCommand");var PM4=new _.bn("multipleInlinePlaybackCommand");var lsW=new _.bn("loggingDirectives");var rSa=new _.bn("acknowledgeChannelTouStrikeCommand");var wZt=function(){Mu.apply(this,arguments)};
_.T(wZt,Mu);wZt.prototype.getAssociations=function(){return[]};
wZt.prototype.getTypeName=function(){return"booleanEntity"};var hb4=function(){Mu.apply(this,arguments)};
_.T(hb4,Mu);hb4.prototype.getAssociations=function(){return[]};
hb4.prototype.getTypeName=function(){return"stringEntity"};var CI=new _.bn("entityBatchUpdate");_.CMa=new _.bn("entityUpdateCommand");var iFp=function(){Mu.apply(this,arguments)};
_.T(iFp,Mu);iFp.prototype.getAssociations=function(){var G=[];this.delegate.alternateChannel&&G.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&G.push.apply(G,_.OP(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&G.push(this.delegate.oneofChannelEntity);return[].concat(_.OP(new Set(G)))};
iFp.prototype.getTypeName=function(){return"fakeChannel"};var OFt=function(){Mu.apply(this,arguments)};
_.T(OFt,Mu);OFt.prototype.getAssociations=function(){var G=[];this.delegate.entryCollection&&G.push(this.delegate.entryCollection);return[].concat(_.OP(new Set(G)))};
OFt.prototype.getTypeName=function(){return"fakePlaylist"};
var aR2=function(){Mu.apply(this,arguments)};
_.T(aR2,Mu);aR2.prototype.getAssociations=function(){var G=[];this.delegate.parentPlaylist&&G.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var H=_.I(this.delegate.entries),Z=H.next();!Z.done;Z=H.next())G.push.apply(G,_.OP((new ySa(Z.value)).getAssociations()));return[].concat(_.OP(new Set(G)))};
aR2.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var ySa=function(){Ks.apply(this,arguments)};
_.T(ySa,Ks);ySa.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);return[].concat(_.OP(new Set(G)))};var oxa=function(){Mu.apply(this,arguments)};
_.T(oxa,Mu);oxa.prototype.getAssociations=function(){var G=[];this.delegate.descriptionEntity&&G.push(this.delegate.descriptionEntity);this.delegate.creators&&G.push.apply(G,_.OP(this.delegate.creators));this.delegate.theBiggestFan&&G.push(this.delegate.theBiggestFan);return[].concat(_.OP(new Set(G)))};
oxa.prototype.getTypeName=function(){return"fakeVideo"};
var mot=function(){Mu.apply(this,arguments)};
_.T(mot,Mu);mot.prototype.getAssociations=function(){return[]};
mot.prototype.getTypeName=function(){return"fakeVideoDescription"};var Uo7=new _.bn("fantasyRosterViewModel");var Rba=new _.bn("addFollowUpSurveyCommand");var N5t=new _.bn("getSurveyCommand");var ASa=new _.bn("ratingSurveyOptionRenderer");_.Vb=new _.bn("feedbackEndpoint");var xo2=new _.bn("reportHistoryTableCellRenderer"),LLw=new _.bn("reportHistoryTableTextCellRenderer"),Ex_=new _.bn("reportHistoryTableReasonCellRenderer");_.YsN=new _.bn("flagEndpoint");_.FLp=new _.bn("flowNextStepCommand");_.bF4=new _.bn("flowPrevStepCommand");var Gm4=new _.bn("getFlowCommand");var Hsa=new _.bn("submitFormWithValidationFlowCommand");_.sHa=new _.bn("updateFlowCommand");var ZsG=function(){Mu.apply(this,arguments)};
_.T(ZsG,Mu);ZsG.prototype.getAssociations=function(){return[]};
ZsG.prototype.getTypeName=function(){return"flowStateEntity"};var QHa=new _.bn("flowFormState");_.h$=new _.bn("flowStepRenderer");var pep=new _.bn("gameCardRenderer");var l8w=new _.bn("accountLinkingStateChangedCommand");var gla=function(){Mu.apply(this,arguments)};
_.T(gla,Mu);gla.prototype.getAssociations=function(){return[]};
gla.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var I84=new _.bn("changeMiniAppPlayStateCommand");var qLR=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(qLR,_.Iy);var Cs=[1,2,3];var SL4=[0,Cs,VcT,_.my,BkR];var uwN=_.e7(qLR,SL4),BST=_.V2(SL4);var J$p=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(J$p,_.Iy);var tjp=[0,_.wm,_.y8];var km4=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(km4,_.Iy);var Dua=[0,_.y8,_.wm,-1];var iN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(iN,_.Iy);var dua=_.V2([0,1,tjp,_.LY,Dua]);var eHa=new _.bn("miniAppScoreChallengeViewModel");var nlT=new _.bn("miniGameCardViewModel");var Vjw=new _.bn("teaserCardViewModel");var $ua=function(){Mu.apply(this,arguments)};
_.T($ua,Mu);$ua.prototype.getAssociations=function(){return[]};
$ua.prototype.getTypeName=function(){return"logoEntity"};var Xe4=new _.bn("feedbackItemRenderer");var c$w=function(){Mu.apply(this,arguments)};
_.T(c$w,Mu);c$w.prototype.getAssociations=function(){return[]};
c$w.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.TSR=new _.bn("playerInterstitialRenderer");var f8t=new _.bn("getKidsBlocklistPickerCommand");_.vlG=new _.bn("updateKidsBlacklistEndpoint");_.TG=new _.bn("likeEndpoint");var WXa,zH_,KXd;WXa=new _.bn("addChatItemAction");zH_=new _.bn("removeChatItemAction");KXd=new _.bn("markChatItemAsDeletedAction");_.Mjd=new _.bn("setLiveChatCollapsedStateAction");var jH_=function(){Mu.apply(this,arguments)};
_.T(jH_,Mu);jH_.prototype.getAssociations=function(){return[]};
jH_.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var PNp=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(PNp,_.Iy);PNp.prototype.getPayloadCase=function(){return _.B4(this,r$a)};
var r$a=[3,4];var wep=[0,_.RE,[0,[1,2],_.my,_.N8,[0,_.oE,1,_.oE]]];var hH2=[0,_.y8,-1];var CNa=[0,[1],_.my];var OL=[0,[1,2],_.my,_.N8,[0,_.LY]];var aH=[0,_.y8];var isd=[0,[0,_.Oy,_.i6,[0,_.oE,_.Ey,_.oE]],1,[0,_.Oy]];var Os_=[0,hg];var a8w=[0,hg];var y$4=[0,a8w,Os_];var olR=[0,_.RE,[0,[1,2],_.my,-1],_.Oy];var mut=[0,[2],1,_.N8,[0,_.oE,-1,olR]];var Uua=[0,[1],_.N8,[0,_.oE,_.y8,_.Ey,1,olR]];var RH_=[0,_.i6,-1,uLw,_.LY];var NSN=[0,[0,rm,-3],-4];var yr=[0,_.Oy,-3,_.y8,_.Oy,_.FC,_.Oy,wep,_.Oy,-2];var oH=[0,_.RE,[0,[1,2],_.my,-1],_.Oy,_.y8];var A$7=[0,[3],OL,[0,[2,3,4],ftd,_.my,-2],_.N8,[0,_.y8],_.wm];var xu7=[0,[3,5],_.y8,_.CY,_.N8,[0,1,_.wm,_.LY],_.LY,_.N8,[0,_.LY,_.wm]];var LXG=[0,2,_.CY,_.y8,-1];var El_=[0,eiw];var YL4=[0,[3,4],2,tc_,_.my,_.y8];var FXw=[0,_.LY,-2,1,_.y8];var bsw=[0,_.y8,-1,_.LY];var Gew=[0,aH,function(){return mX},
aH,_.y8],HQR=[0,_.LY,aH,OL,function(){return mX},
_.y8],mX=[-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],aH,_.CY,[0,_.Oy,1,_.Oy,1,_.Oy,1,_.LY,-1,aH],[0,1,_.Oy,2,_.Oy,_.LY,_.Oy],1,_.CY,-1,_.y8,_.CY,2,rm,[0,rm,_.CY],_.y8,1,isd,1,OL,_.FC,1,[0,[0,_.RE,[0,_.y8,_.Oy,_.LY]]],[0,_.Oy,[0,_.wm,[0,_.Ey]],_.wm,1,[0,DaG,-1]],_.y8,[0,1,_.y8],76,_.N8,[0,OL,oH,isd,1,[0,_.RE,oH]],1,_.N8,[0,OL,_.y8,_.Oy],
_.N8,[0,OL,CNa],_.N8,[0,OL,CNa,_.CY],_.N8,[0,OL,CNa],_.N8,[0,OL,_.RE,aH,OL,$aG],_.N8,[0,OL,aH,_.y8],_.N8,[0,OL,_.Oy,yr,-1,_.Oy],4,_.N8,[0,OL,_.Oy,_.CY,yr,_.Oy],_.N8,[0,[4,9],OL,_.LY,_.CY,_.my,oH,1,isd,_.y8,_.my,FXw],_.N8,[0,OL,aH,OL,_.LY,_.y8],_.N8,[0,_.Oy,OL,yr,_.Oy,_.y8],_.N8,[0,OL,aH,OL,_.LY,_.y8],1,_.N8,[0,OL,_.LY,_.y8,yr],_.N8,[0,OL,_.LY,[0,_.y8,_.CY],_.y8,_.CY,_.y8,_.xH,-2,3,bsw,_.RE,bsw,bsw,FXw],_.N8,[0,OL,_.LY,Uua,_.RE,[0,a8w,mut],aH,_.RE,y$4,_.y8,1,_.LY,RH_,NSN,SqN,-1],_.N8,[0,OL,[0,_.Ey,
-1,Uua,_.RE,[0,a8w,mut,Os_],[0,_.b_],1,_.oE],aH,_.y8],_.N8,[0,OL,oH,_.y8,[0,_.i6]],_.N8,function(){return HQR},
_.N8,[0,OL,_.CY,_.y8,-1,_.Oy],_.N8,[0,[6,7],OL,_.RE,LXG,_.LY,oH,1,_.N8,YL4,_.N8,El_],_.N8,[0,_.RE,LXG,_.LY,_.Oy],_.N8,[0,_.y8,Vdw,-1],_.N8,[0,aH,_.RE,y$4,_.y8],_.N8,[0,OL,aH,_.y8],_.N8,[0,_.xH,_.y8],_.N8,[0,hH2],_.N8,[0,hH2],_.N8,[0,oH],_.N8,[0,aH,oH],_.N8,function(){return Gew},
_.N8,[0,aH,_.y8],_.N8,[0,aH,_.y8],1,_.N8,[0,_.Oy,OL,yr,_.Oy,yr],_.N8,[0,_.b_],1,_.N8,[0],1,_.N8,[0,aH,_.LY,OL,_.LY],_.N8,[0,[1,2],_.N8,YL4,_.N8,El_,_.CY],_.N8,[0,_.b_,oH,xu7,_.y8,_.CY],_.N8,[0,xu7,_.y8,_.CY],_.N8,[0,RH_,oH,_.Oy,NSN],_.N8,A$7,_.N8,[0],_.N8,[0,_.y8,-1,_.wm],_.N8,[0,aH,_.y8],_.N8,[0,A$7,_.wm,_.y8],_.N8,[0,OL,yr,_.Oy],_.N8,[0,OL,yr,_.Oy],_.N8,[0,RH_,NSN,oH,_.FC,_.Oy,SqN,-1],_.N8,[0,OL,yr,_.Oy]];var sIN=[0,_.RE,mX];var ZQw=_.e7(PNp,[0,r$a,1,_.wm,_.N8,[0,[18,22,24],sIN,3,[0,sIN],1,_.wm,[0,_.RE,[0,_.CY,rm],_.CY],1,mX,-1,[0,_.aE,-2,_.FC,_.aE,-1,_.FC,_.aE,wep,_.aE,-2],It7,[!0,_.y8,[0,CNa,2,_.y8,_.CY,_.Oy,2,_.y8,_.xH]],[0,[1,2,3],[5,6],_.N8,[0,_.oE],_.N8,[0,_.oE,-1],_.N8,[0,_.oE],1,_.N8,hH2,_.N8,[0,_.y8]],[0,mX,-1],_.b_,mX,_.N8,mX,[0,sIN],_.wm,mX,_.N8,mX,_.y8,_.N8,mX],_.N8,OXw,_.wm]);var QI2=new _.bn("liveChatEndpoint");var pNw=new _.bn("liveChatItemContextMenuEndpoint");var lDa=new _.bn("liveChatReplayEndpoint");_.g9_=new _.bn("emojiPickerRenderer");var IDa=new _.bn("liveChatAuthorBadgeViewModel");var qgR=new _.bn("deleteLiveChatMessageCommand");var Sgw=new _.bn("liveChatActionEndpoint");var uod=new _.bn("createLiveChatPollEndpoint");var BUG=new _.bn("manageLiveChatUserEndpoint");var JPN=new _.bn("moderateLiveChatEndpoint");_.twN=new _.bn("sendLiveChatMessageEndpoint");var kea=new _.bn("sendLiveChatVoteEndpoint");var DzT=new _.bn("clearLocationCommand");var dz_=new _.bn("resolveLocationCommand");var es4=new _.bn("interactionLoggingCommandMetadata");var n9R=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(n9R,_.Iy);var VwN=function(G,H){return _.nu(G,1,H)};var $zw=[0,_.Oy];var XN_=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(XN_,_.Iy);var cPx=function(G,H){return z_(G,1,n9R,H)};XN_.prototype.JSC$12325_serializeBinary=N0v([0,_.RE,$zw]);var VLj={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 TUp={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"},
fDR={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 Hwo={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",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT"};_.A5e=new _.bn("logFlowLoggingEventCommand");_.IX=new _.bn("loggingContext");var v9w=new _.bn("audioTrackSelectActionCommand");var Wd_=new _.bn("captionLanguageSelectActionCommand");var zsT=new _.bn("showAudioTrackPickerActionCommand");var Kdw=new _.bn("showCaptionLanguageSelectActionCommand");var Mwa=new _.bn("dismissDialogEndpoint");var jI4=new _.bn("dismissPlayerOverlayCommand");var PZa=new _.bn("hideItemSectionVideosByIdCommand");var rPa=new _.bn("showMiniplayerCommand");var wNw=function(){Mu.apply(this,arguments)};
_.T(wNw,Mu);wNw.prototype.getAssociations=function(){return[]};
wNw.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var hsR=function(){Mu.apply(this,arguments)};
_.T(hsR,Mu);hsR.prototype.getAssociations=function(){return[]};
hsR.prototype.getTypeName=function(){return"downloadStatusEntity"};var CZa=function(){Mu.apply(this,arguments)};
_.T(CZa,Mu);CZa.prototype.getAssociations=function(){return[]};
CZa.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var iQw=function(){Mu.apply(this,arguments)};
_.T(iQw,Mu);iQw.prototype.getAssociations=function(){var G=[];this.delegate.downloadsList&&G.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&G.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&G.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.OP(new Set(G)))};
iQw.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var OQt=function(){Mu.apply(this,arguments)};
_.T(OQt,Mu);OQt.prototype.getAssociations=function(){var G=[];this.delegate.refresh&&G.push(this.delegate.refresh);if(this.delegate.downloads)for(var H=_.I(this.delegate.downloads),Z=H.next();!Z.done;Z=H.next())G.push.apply(G,_.OP((new aDp(Z.value)).getAssociations()));return[].concat(_.OP(new Set(G)))};
OQt.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var aDp=function(){Ks.apply(this,arguments)};
_.T(aDp,Ks);aDp.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.playlist&&G.push(this.delegate.playlist);this.delegate.videoItem&&G.push(this.delegate.videoItem);this.delegate.playlistItem&&G.push(this.delegate.playlistItem);return[].concat(_.OP(new Set(G)))};var yP4=function(){Mu.apply(this,arguments)};
_.T(yP4,Mu);yP4.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.OP(this.delegate.localImageEntities));return[].concat(_.OP(new Set(G)))};
yP4.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var o94=function(){Mu.apply(this,arguments)};
_.T(o94,Mu);o94.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.OP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.OP(new Set(G)))};
o94.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var mzx=function(){Mu.apply(this,arguments)};
_.T(mzx,Mu);mzx.prototype.getAssociations=function(){return[]};
mzx.prototype.getTypeName=function(){return"offlineabilityEntity"};var Uza=function(){Mu.apply(this,arguments)};
_.T(Uza,Mu);Uza.prototype.getAssociations=function(){var G=[];this.delegate.fakeChildren&&G.push.apply(G,_.OP(this.delegate.fakeChildren));return[].concat(_.OP(new Set(G)))};
Uza.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var Rsa=function(){Mu.apply(this,arguments)};
_.T(Rsa,Mu);Rsa.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&G.push(this.delegate.offlineVideoPolicy);return[].concat(_.OP(new Set(G)))};
Rsa.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var NUp=function(){Mu.apply(this,arguments)};
_.T(NUp,Mu);NUp.prototype.getAssociations=function(){return[]};
NUp.prototype.getTypeName=function(){return"continuationTokenEntity"};var APw=function(){Mu.apply(this,arguments)};
_.T(APw,Mu);APw.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.videos&&G.push.apply(G,_.OP(this.delegate.videos));this.delegate.collaboratorChannels&&G.push.apply(G,_.OP(this.delegate.collaboratorChannels));this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.refresh&&G.push(this.delegate.refresh);return[].concat(_.OP(new Set(G)))};
APw.prototype.getTypeName=function(){return"mainPlaylistEntity"};var xzG=function(){Mu.apply(this,arguments)};
_.T(xzG,Mu);xzG.prototype.getAssociations=function(){var G=[];this.delegate.video&&G.push(this.delegate.video);this.delegate.channelContributor&&G.push(this.delegate.channelContributor);return[].concat(_.OP(new Set(G)))};
xzG.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var Lda=function(){Ks.apply(this,arguments)};
_.T(Lda,Ks);Lda.prototype.getAssociations=function(){var G=[];this.delegate.recommendedVideoMetadata&&G.push.apply(G,_.OP((new E9x(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.OP(new Set(G)))};
var E9x=function(){Ks.apply(this,arguments)};
_.T(E9x,Ks);E9x.prototype.getAssociations=function(){var G=[];this.delegate.localImageEntities&&G.push.apply(G,_.OP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.OP(new Set(G)))};var Yg4=function(){Ks.apply(this,arguments)};
_.T(Yg4,Ks);Yg4.prototype.getAssociations=function(){var G=[];this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);return[].concat(_.OP(new Set(G)))};var Fdd=function(){Mu.apply(this,arguments)};
_.T(Fdd,Mu);Fdd.prototype.getAssociations=function(){var G=[];this.delegate.owner&&G.push(this.delegate.owner);this.delegate.downloadState&&G.push(this.delegate.downloadState);this.delegate.userState&&G.push.apply(G,_.OP((new Yg4(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&G.push.apply(G,_.OP((new Lda(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.OP(new Set(G)))};
Fdd.prototype.getTypeName=function(){return"mainVideoEntity"};var bQ7=function(){Mu.apply(this,arguments)};
_.T(bQ7,Mu);bQ7.prototype.getAssociations=function(){var G=[];this.delegate.userChannelDetails&&G.push(this.delegate.userChannelDetails);return[].concat(_.OP(new Set(G)))};
bQ7.prototype.getTypeName=function(){return"ytMainChannelEntity"};var GPN=function(){Mu.apply(this,arguments)};
_.T(GPN,Mu);GPN.prototype.getAssociations=function(){var G=[];this.delegate.channelOwner&&G.push(this.delegate.channelOwner);this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&G.push.apply(G,_.OP(this.delegate.localImageEntities));this.delegate.downloadStatus&&G.push(this.delegate.downloadStatus);return[].concat(_.OP(new Set(G)))};
GPN.prototype.getTypeName=function(){return"ytMainVideoEntity"};var ngb=new _.bn("downloadsPageSmartDownloadsOptInBannerParams");var cfu=new _.bn("downloadsPageUpsellBannerParams");var H2G=function(){Mu.apply(this,arguments)};
_.T(H2G,Mu);H2G.prototype.getAssociations=function(){return[]};
H2G.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var sTx=function(){Mu.apply(this,arguments)};
_.T(sTx,Mu);sTx.prototype.getAssociations=function(){return[]};
sTx.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var Z2R=function(){Mu.apply(this,arguments)};
_.T(Z2R,Mu);Z2R.prototype.getAssociations=function(){return[]};
Z2R.prototype.getTypeName=function(){return"macroMarkerEntity"};var QTa=function(){Mu.apply(this,arguments)};
_.T(QTa,Mu);QTa.prototype.getAssociations=function(){return[]};
QTa.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var p9a=function(){Mu.apply(this,arguments)};
_.T(p9a,Mu);p9a.prototype.getAssociations=function(){return[]};
p9a.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var lON=function(){Mu.apply(this,arguments)};
_.T(lON,Mu);lON.prototype.getAssociations=function(){return[]};
lON.prototype.getTypeName=function(){return"playerStateEntity"};var gyT=function(){Mu.apply(this,arguments)};
_.T(gyT,Mu);gyT.prototype.getAssociations=function(){return[]};
gyT.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var IOR=function(){Mu.apply(this,arguments)};
_.T(IOR,Mu);IOR.prototype.getAssociations=function(){return[]};
IOR.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var qrR=function(){Mu.apply(this,arguments)};
_.T(qrR,Mu);qrR.prototype.getAssociations=function(){return[]};
qrR.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.UL=new _.bn("dislikeButtonViewModel");_.RH=new _.bn("likeButtonViewModel");var Sr2=new _.bn("videoSummaryContentViewModel");var uet=new _.bn("videoSummaryParagraphViewModel");var BW4=new _.bn("changeTimelyActionVisibilityCommand");var J9x=new _.bn("hideEngagementPanelEndpoint");var t57=new _.bn("refreshPanelEndpoint");var kPG=new _.bn("scrollToSectionEndpoint");var DPT=new _.bn("seekToVideoTimestampCommand");_.nM=new _.bn("showEngagementPanelEndpoint");var dPa=new _.bn("showTransientPlayerScrimOverlayCommand");var eBw=new _.bn("toggleEngagementPanelCommand");_.nyR=new _.bn("createBroadcastCommand");var V5a=new _.bn("metadataUpdateCommand");var $PG=function(){Mu.apply(this,arguments)};
_.T($PG,Mu);$PG.prototype.getAssociations=function(){return[]};
$PG.prototype.getTypeName=function(){return"featuredProductsEntity"};var X9p=function(){Mu.apply(this,arguments)};
_.T(X9p,Mu);X9p.prototype.getAssociations=function(){return[]};
X9p.prototype.getTypeName=function(){return"pinnedProductEntity"};var c9N=function(){Mu.apply(this,arguments)};
_.T(c9N,Mu);c9N.prototype.getAssociations=function(){return[]};
c9N.prototype.getTypeName=function(){return"trendingOfferEntity"};_.TWw=new _.bn("merchandiseShelfRenderer");var fOw=new _.bn("shoppingContentLineItemViewModel");var vyN=new _.bn("gridMovieRenderer");_.W$4=new _.bn("movieRenderer");var zBw=function(){Mu.apply(this,arguments)};
_.T(zBw,Mu);zBw.prototype.getAssociations=function(){return[]};
zBw.prototype.getTypeName=function(){return"compositeSourceEntity"};var K$4=function(){Mu.apply(this,arguments)};
_.T(K$4,Mu);K$4.prototype.getAssociations=function(){var G=[];this.delegate.compositeSourceKeys&&G.push.apply(G,_.OP(this.delegate.compositeSourceKeys));return[].concat(_.OP(new Set(G)))};
K$4.prototype.getTypeName=function(){return"multiviewStagingEntity"};var M57=function(){Mu.apply(this,arguments)};
_.T(M57,Mu);M57.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.OP(this.delegate.trackDownloadMetadatas));return[].concat(_.OP(new Set(G)))};
M57.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var jT2=function(){Mu.apply(this,arguments)};
_.T(jT2,Mu);
jT2.prototype.getAssociations=function(){var G=[];this.delegate.downloadedTracks&&G.push.apply(G,_.OP(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&G.push.apply(G,_.OP(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&G.push.apply(G,_.OP(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&G.push.apply(G,_.OP(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&G.push.apply(G,_.OP(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
G.push.apply(G,_.OP(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&G.push.apply(G,_.OP(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&G.push.apply(G,_.OP(this.delegate.metadataOnlyTracks));return[].concat(_.OP(new Set(G)))};
jT2.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var P3T=function(){Mu.apply(this,arguments)};
_.T(P3T,Mu);P3T.prototype.getAssociations=function(){var G=[];this.delegate.trackDownloadMetadatas&&G.push.apply(G,_.OP(this.delegate.trackDownloadMetadatas));return[].concat(_.OP(new Set(G)))};
P3T.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var r92=function(){Mu.apply(this,arguments)};
_.T(r92,Mu);r92.prototype.getAssociations=function(){var G=[];this.delegate.playbackData&&G.push(this.delegate.playbackData);this.delegate.localImageEntities&&G.push.apply(G,_.OP(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.OP(new Set(G)))};
r92.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var w94=function(){Mu.apply(this,arguments)};
_.T(w94,Mu);
w94.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&G.push.apply(G,_.OP(this.delegate.primaryArtists));this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.tracks&&G.push.apply(G,_.OP(this.delegate.tracks));this.delegate.share&&G.push(this.delegate.share);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.refresh&&
G.push(this.delegate.refresh);return[].concat(_.OP(new Set(G)))};
w94.prototype.getTypeName=function(){return"musicAlbumRelease"};
var hB2=function(){Mu.apply(this,arguments)};
_.T(hB2,Mu);hB2.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.tracks&&G.push.apply(G,_.OP(this.delegate.tracks));return[].concat(_.OP(new Set(G)))};
hB2.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var C3G=function(){Mu.apply(this,arguments)};
_.T(C3G,Mu);C3G.prototype.getAssociations=function(){var G=[];this.delegate.albumRelease&&G.push(this.delegate.albumRelease);return[].concat(_.OP(new Set(G)))};
C3G.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var i2a=function(){Mu.apply(this,arguments)};
_.T(i2a,Mu);i2a.prototype.getAssociations=function(){var G=[];this.delegate.details&&G.push(this.delegate.details);this.delegate.userDetails&&G.push(this.delegate.userDetails);return[].concat(_.OP(new Set(G)))};
i2a.prototype.getTypeName=function(){return"musicArtist"};
var O2w=function(){Mu.apply(this,arguments)};
_.T(O2w,Mu);O2w.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.OP(new Set(G)))};
O2w.prototype.getTypeName=function(){return"musicArtistDetail"};
var aOT=function(){Mu.apply(this,arguments)};
_.T(aOT,Mu);aOT.prototype.getAssociations=function(){var G=[];this.delegate.parentArtist&&G.push(this.delegate.parentArtist);return[].concat(_.OP(new Set(G)))};
aOT.prototype.getTypeName=function(){return"musicArtistUserDetail"};var y9w=function(){Mu.apply(this,arguments)};
_.T(y9w,Mu);y9w.prototype.getAssociations=function(){return[]};
y9w.prototype.getTypeName=function(){return"musicLibraryEdit"};var oya=function(){Mu.apply(this,arguments)};
_.T(oya,Mu);oya.prototype.getAssociations=function(){return[]};
oya.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var mPw=function(){Mu.apply(this,arguments)};
_.T(mPw,Mu);
mPw.prototype.getAssociations=function(){var G=[];this.delegate.tracks&&G.push.apply(G,_.OP(this.delegate.tracks));this.delegate.refresh&&G.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&G.push(this.delegate.details);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&G.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.entryCollection&&
G.push(this.delegate.entryCollection);this.delegate.share&&G.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&G.push.apply(G,_.OP((new UPd(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.OP(new Set(G)))};
mPw.prototype.getTypeName=function(){return"musicPlaylist"};
var UPd=function(){Ks.apply(this,arguments)};
_.T(UPd,Ks);UPd.prototype.getAssociations=function(){var G=[];this.delegate.creatorEntity&&G.push(this.delegate.creatorEntity);return[].concat(_.OP(new Set(G)))};var RBx=function(){Mu.apply(this,arguments)};
_.T(RBx,Mu);RBx.prototype.getAssociations=function(){return[]};
RBx.prototype.getTypeName=function(){return"musicShare"};var NWa=function(){Mu.apply(this,arguments)};
_.T(NWa,Mu);
NWa.prototype.getAssociations=function(){var G=[];this.delegate.musicLibraryStatusEntity&&G.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&G.push.apply(G,_.OP(this.delegate.artists));this.delegate.audioModeVersion&&G.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&G.push(this.delegate.videoModeVersion);this.delegate.userDetails&&G.push(this.delegate.userDetails);this.delegate.details&&G.push(this.delegate.details);this.delegate.albumRelease&&G.push(this.delegate.albumRelease);this.delegate.share&&
G.push(this.delegate.share);this.delegate.libraryEdit&&G.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&G.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&G.push(this.delegate.playbackPosition);this.delegate.lyrics&&G.push(this.delegate.lyrics);return[].concat(_.OP(new Set(G)))};
NWa.prototype.getTypeName=function(){return"musicTrack"};
var A92=function(){Mu.apply(this,arguments)};
_.T(A92,Mu);A92.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.OP(new Set(G)))};
A92.prototype.getTypeName=function(){return"musicTrackDetail"};
var xPw=function(){Mu.apply(this,arguments)};
_.T(xPw,Mu);xPw.prototype.getAssociations=function(){var G=[];this.delegate.parentTrack&&G.push(this.delegate.parentTrack);return[].concat(_.OP(new Set(G)))};
xPw.prototype.getTypeName=function(){return"musicTrackUserDetail"};var hl=new _.bn("musicResponsiveListItemRenderer");var hQe=new _.bn("addToPlaylistEndpoint");var L$w=new _.bn("captionPickerEndpoint");var Eyw=new _.bn("suggestStats");var YrG=new _.bn("backstageImageUploadEndpoint");var F$a=new _.bn("createBackstagePostDialogEndpoint");_.b2_=new _.bn("createCommentReplyDialogEndpoint");_.Gpx=new _.bn("updateCommentDialogEndpoint");_.HiR=new _.bn("updateCommentReplyDialogEndpoint");var siG=new _.bn("menuEndpoint");var ndj=new _.bn("modalEndpoint");var Zia=new _.bn("playlistEditorEndpoint");var Qiw=new _.bn("copyTextEndpoint");var pYd,l7G;pYd=new _.bn("shareEndpoint");l7G=new _.bn("shareEntityEndpoint");_.ggT=new _.bn("shareEntityServiceEndpoint");_.feo=new _.bn("userFeedbackEndpoint");_.hZ=new _.bn("watchEndpoint");var IFj=new _.bn("watchPlaylistEndpoint");var I7w=new _.bn("addUpcomingEventReminderEndpoint");_.Nu=new _.bn("getCommentsFromInboxCommand");var qMN=new _.bn("notificationOptOutEndpoint");var SM2=new _.bn("recordNotificationInteractionsEndpoint");var uYa=new _.bn("removeUpcomingEventReminderEndpoint");var rCv=new _.bn("getDownloadActionCommand");_.Bvw=new _.bn("offlineOrchestrationActionCommand");var Jfx=function(){Mu.apply(this,arguments)};
_.T(Jfx,Mu);Jfx.prototype.getAssociations=function(){return[]};
Jfx.prototype.getTypeName=function(){return"captionTrack"};var t8a=function(){Mu.apply(this,arguments)};
_.T(t8a,Mu);t8a.prototype.getAssociations=function(){return[]};
t8a.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var kp7=function(){Mu.apply(this,arguments)};
_.T(kp7,Mu);kp7.prototype.getAssociations=function(){return[]};
kp7.prototype.getTypeName=function(){return"offlineVideoPolicy"};var DZt=function(){Mu.apply(this,arguments)};
_.T(DZt,Mu);DZt.prototype.getAssociations=function(){return[]};
DZt.prototype.getTypeName=function(){return"offlineVideoStreams"};var dZT=function(){Mu.apply(this,arguments)};
_.T(dZT,Mu);dZT.prototype.getAssociations=function(){var G=[];this.delegate.transfer&&G.push(this.delegate.transfer);this.delegate.adsPlaybackData&&G.push.apply(G,_.OP(this.delegate.adsPlaybackData));this.delegate.drmLicense&&G.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&G.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&G.push(this.delegate.videoDownloadContextEntity);return[].concat(_.OP(new Set(G)))};
dZT.prototype.getTypeName=function(){return"playbackData"};var e1t=function(){Mu.apply(this,arguments)};
_.T(e1t,Mu);e1t.prototype.getAssociations=function(){return[]};
e1t.prototype.getTypeName=function(){return"refresh"};var nga=function(){Mu.apply(this,arguments)};
_.T(nga,Mu);nga.prototype.getAssociations=function(){var G=[];this.delegate.offlineVideoStreams&&G.push.apply(G,_.OP(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&G.push.apply(G,_.OP(this.delegate.captionTrack));return[].concat(_.OP(new Set(G)))};
nga.prototype.getTypeName=function(){return"transfer"};var V82=function(){Mu.apply(this,arguments)};
_.T(V82,Mu);V82.prototype.getAssociations=function(){return[]};
V82.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var $ZN=new _.bn("showMoreDrawerCommand");var XYa=new _.bn("updateEngagementPanelContentCommand");var cft=new _.bn("getPdgBuyFlowCommand");var Tva=new _.bn("liveChatPurchaseMessageEndpoint");var f7a=new _.bn("openSuperStickerBuyFlowCommand");var vgR=new _.bn("updatePdgFeatureEnablementCommand");var WH2=function(){Mu.apply(this,arguments)};
_.T(WH2,Mu);WH2.prototype.getAssociations=function(){return[]};
WH2.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var z1w=function(){Mu.apply(this,arguments)};
_.T(z1w,Mu);z1w.prototype.getAssociations=function(){return[]};
z1w.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.KH2=new _.bn("pdgCommentChipRenderer");_.M8R=new _.bn("permissionRoleBottomBarRenderer");_.jip=new _.bn("updatePermissionRoleCommand");var P1a=new _.bn("prefetchWatchCommand");var rfa=new _.bn("updatePlayerErrorMessageCommand");var fh3=new _.bn("toggleCaptionsVisibilityCommand");_.wYd=new _.bn("quickActionsViewModel");var h1a=new _.bn("playerResponse");var C1d=new _.bn("playlistRenderer");_.iia=new _.bn("playlistVideoListRenderer");_.A$=new _.bn("playlistEditEndpoint");var Oia=new _.bn("createImagePollCommand");var a7w=new _.bn("createQuizCommand");var yfw=new _.bn("quizRenderer");var ogw=new _.bn("uploadedVideoRenderer");var mZx=new _.bn("decorateMessageEndpoint");var UZt=new _.bn("lpOfferCardOptionViewModel");var R1d=new _.bn("sfvAudioItemPlaybackCommand");var NvT=function(){Mu.apply(this,arguments)};
_.T(NvT,Mu);NvT.prototype.getAssociations=function(){return[]};
NvT.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.xl=new _.bn("reelNonVideoContentEndpoint");_.uS=new _.bn("reelWatchEndpoint");_.Ls=new _.bn("reelItemRenderer");var Af2=new _.bn("reelMetapanelViewModel");_.EL=new _.bn("reelNonVideoContentRenderer");_.xZ4=new _.bn("reelPlayerOverlayRenderer");var LHG=new _.bn("shortsLockupViewModel");var Egx=new _.bn("sponsorButtonViewModel");var YMa=new _.bn("reelItemWatchResponse");var FHR=new _.bn("textBadgeRenderer");_.Yl=new _.bn("buttonRenderer");_.Fw=new _.bn("toggleButtonRenderer");var m9e=new _.bn("switchButtonViewModel");_.bip=new _.bn("confirmDialogRenderer");var GZa;GZa=new _.bn("menuRenderer");_.Hr4=new _.bn("menuFlexibleItemRenderer");var sa_=new _.bn("pollRenderer");_.Zr2=new _.bn("backgroundPromoRenderer");var p5R;_.Qaa=new _.bn("chipCloudRenderer");p5R=new _.bn("chipCloudChipRenderer");var lid=new _.bn("dropdownRenderer");var gOt=new _.bn("gridVideoRenderer");_.Iix=new _.bn("itemSectionRenderer");_.qpt=new _.bn("messageRenderer");var Sp4=new _.bn("sortFilterHeaderRenderer");_.bN=new _.bn("videoRenderer");var ui4=new _.bn("resolveUrlCommandMetadata");var BQR=function(){Mu.apply(this,arguments)};
_.T(BQR,Mu);BQR.prototype.getAssociations=function(){return[]};
BQR.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.J4G=new _.bn("getAnswerCommand");_.I_=new _.bn("searchEndpoint");var tEa=new _.bn("genAiRichTextViewModel");var Pyu=new _.bn("overviewAnswerViewModel");var kZ4=new _.bn("videoOverviewViewModel");var DHw=new _.bn("addToPlaylistServiceEndpoint");var dH4=new _.bn("clearSearchHistoryEndpoint");var e4R=new _.bn("clearWatchHistoryEndpoint");var nON=new _.bn("webSerializedServiceEndpointExtension");_.VEw=new _.bn("createCommentEndpoint");var $Hw=new _.bn("createCommentReplyEndpoint");var X5a=new _.bn("performCommentActionEndpoint");var c4p=new _.bn("updateCommentEndpoint");var TQN=new _.bn("updateCommentReplyEndpoint");_.Ge=new _.bn("createPlaylistServiceEndpoint");var fia=new _.bn("deletePlaylistEndpoint");var vOw=new _.bn("deleteVideoEndpoint");var w0o=new _.bn("getReportFormEndpoint");var WSt=new _.bn("modifyChannelNotificationPreferenceEndpoint");var NAR;_.lP=new _.bn("offlinePlaylistEndpoint");NAR={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 Ad2;_.Qt=new _.bn("offlineVideoEndpoint");Ad2={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 z4R=new _.bn("pingingEndpoint");_.KST=new _.bn("selectActiveIdentityEndpoint");var MER=new _.bn("setSettingEndpoint");var Jme=new _.bn("undoFeedbackEndpoint");var jaT=new _.bn("unsubscribeEndpoint");_.Pz2=new _.bn("updatedMetadataEndpoint");var r4w=function(){Mu.apply(this,arguments)};
_.T(r4w,Mu);r4w.prototype.getAssociations=function(){return[]};
r4w.prototype.getTypeName=function(){return"settingEntity"};_.w52=new _.bn("updateLocalAppSettingCommand");var h44=new _.bn("saveImageToDeviceEndpoint");var Czd=new _.bn("shareImageCommand");var irp=new _.bn("sharingProviderDataCommand");var Ora=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Ora,_.Iy);var aiN=[0,_.y8,-1];Ora.prototype.JSC$12532_serializeBinary=N0v(aiN);var Rn_=_.V2(aiN);var NVT=new _.bn("userMentionSuggestionRenderer");var ADt=new _.bn("liveChatTunnelCommand");var xtN=new _.bn("showSponsorshipsGiftOfferDialogCommand");var LOp=new _.bn("sponsorshipsScrollableShelfViewModel");var EEd=new _.bn("updateUpcomingEventReminderButtonStateCommand");var YnN=new _.bn("upcomingEventReminderButtonStateRenderer");var FOw=new _.bn("subscribeEndpoint");var bBa=new _.bn("registerTasksCommand");var GiN=new _.bn("hideSheetCommand");var Hda=new _.bn("hideSnackbarCommand");var srw=new _.bn("showDialogCommand");_.Jxo=new _.bn("showSheetCommand");var ZdG=new _.bn("showSnackbarCommand");var Qra=function(){Mu.apply(this,arguments)};
_.T(Qra,Mu);Qra.prototype.getAssociations=function(){return[]};
Qra.prototype.getTypeName=function(){return"chipEntity"};var prp=function(){Mu.apply(this,arguments)};
_.T(prp,Mu);prp.prototype.getAssociations=function(){return[]};
prp.prototype.getTypeName=function(){return"dismissState"};_.Xu=new _.bn("avatarViewModel");var l97=new _.bn("badgeViewModel");_.HN=new _.bn("buttonViewModel");_.sg=new _.bn("chipViewModel");var gpj=new _.bn("collectionThumbnailViewModel");var g3p=new _.bn("contentPreviewImageViewModel");var I9w=new _.bn("decoratedAvatarViewModel");_.GX2=new _.bn("engagementBarViewModel");_.q5T=new _.bn("imageBannerViewModel");var S5w=new _.bn("lockupContentMetadataRowExtension");_.ult=new _.bn("lockupMetadataViewModel");_.By_=new _.bn("lockupViewModel");var Jid=new _.bn("avatarStackViewModel");_.trt=new _.bn("contentMetadataViewModel");var kiR=function(){Mu.apply(this,arguments)};
_.T(kiR,Mu);kiR.prototype.getAssociations=function(){return[]};
kiR.prototype.getTypeName=function(){return"pageHeaderEntity"};_.DJR=new _.bn("pageHeaderViewModel");var dJp=new _.bn("snackbarViewModel");var egT=new _.bn("thumbnailHoverOverlayToggleActionsViewModel");_.ZD=new _.bn("toggleButtonViewModel");var n3w=function(){Mu.apply(this,arguments)};
_.T(n3w,Mu);n3w.prototype.getAssociations=function(){return[]};
n3w.prototype.getTypeName=function(){return"votingEntity"};_.Hhj=new _.bn("votingViewModel");var Vr2=new _.bn("sectionHeaderViewModel");var $J_=new _.bn("notifyDropdownOptionSelectedCommand");var tFe=new _.bn("listViewModel");_.BV=new _.bn("listItemViewModel");var l3R=new _.bn("toggleableListItemViewModel");var Xrt=new _.bn("dialogHeaderViewModel");var cip=function(){Mu.apply(this,arguments)};
_.T(cip,Mu);cip.prototype.getAssociations=function(){return[]};
cip.prototype.getTypeName=function(){return"dataFreshnessEntity"};var fLj=new _.bn("suspenseViewModel");var TyR=new _.bn("tooltipViewModel");var f9_=function(){Mu.apply(this,arguments)};
_.T(f9_,Mu);f9_.prototype.getAssociations=function(){return[]};
f9_.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var v3_=function(){Mu.apply(this,arguments)};
_.T(v3_,Mu);v3_.prototype.getAssociations=function(){return[]};
v3_.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var W9d=function(){Mu.apply(this,arguments)};
_.T(W9d,Mu);W9d.prototype.getAssociations=function(){return[]};
W9d.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.zgw=new _.bn("transcriptSubmitCaptionCorrectionCommand");var K9G=function(){Mu.apply(this,arguments)};
_.T(K9G,Mu);K9G.prototype.getAssociations=function(){return[]};
K9G.prototype.getTypeName=function(){return"buttonEntity"};var gdW=new _.bn("unpluggedStringRunImage");var Mr7=new _.bn("tabViewModel");var jrw=new _.bn("tabbedViewModel");var PAN=function(){Mu.apply(this,arguments)};
_.T(PAN,Mu);PAN.prototype.getAssociations=function(){return[]};
PAN.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.rix=new _.bn("updateDescriptionAction");var wr2=new _.bn("updateToggleButtonTextAction");var hg2=new _.bn("showFullscreenPlayerControlsCommand");var CAx=new _.bn("updateVideoMetadataCommand");_.idw=new _.bn("autoplaySwitchButtonRenderer");var T1;_.OdT=new _.bn("multiMarkersPlayerBarRenderer");T1=new _.bn("chapterRenderer");var a9G=new _.bn("heatMarkerRenderer");var Teo=new _.bn("heatmapRenderer");var yiw=new _.bn("smartSkipPlayerScrimOverlayRenderer");var o3x=new _.bn("timedMarkerDecorationRenderer");var yYU=new _.bn("postWebToNativeMessageCommand");var Vj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Vj,_.Iy);Vj.prototype.getMethodName=function(){return _.nY(this,1)};var mJx=[0,_.y8,-2];Vj.prototype.JSC$12554_serializeBinary=N0v(mJx);var UJ7=_.e7(Vj,mJx);var Rgp=new _.bn("whitelistEditEndpoint");var NyT=new _.bn("clearUrlParamCommand");var AiG=new _.bn("commerceActionCommand");_.xJx=new _.bn("getPaymentInstrumentsParamsCommand");var L9a=new _.bn("getPaymentsClientTokenCommand");var E3w=new _.bn("googlePaymentBillingCommand");var Y5d=new _.bn("googlePaymentPurchaseManagerCommand");_.F9p=new _.bn("logGtmCommand");var bd4=new _.bn("updateCardItemOnClickCommand");_.Gap=new _.bn("ypcPauseSubscriptionCommand");_.HJd=new _.bn("ypcResumeSubscriptionCommand");var skR=function(){Mu.apply(this,arguments)};
_.T(skR,Mu);skR.prototype.getAssociations=function(){return[]};
skR.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var ZJ7=function(){Mu.apply(this,arguments)};
_.T(ZJ7,Mu);ZJ7.prototype.getAssociations=function(){return[]};
ZJ7.prototype.getTypeName=function(){return"commerceCartListEntity"};var Qkx=function(){Mu.apply(this,arguments)};
_.T(Qkx,Mu);Qkx.prototype.getAssociations=function(){return[]};
Qkx.prototype.getTypeName=function(){return"iconBadgeEntity"};var pbN=function(){Mu.apply(this,arguments)};
_.T(pbN,Mu);pbN.prototype.getAssociations=function(){return[]};
pbN.prototype.getTypeName=function(){return"pdpStateEntity"};var lF4=function(){Mu.apply(this,arguments)};
_.T(lF4,Mu);lF4.prototype.getAssociations=function(){return[]};
lF4.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var cIf=new _.bn("ypcOffersEndpoint");var gzN=new _.bn("cardItemRenderer"),IFR=new _.bn("cardItemTextRenderer");var q0x=new _.bn("commerceCartItemQuantityPickerRenderer");var S0R=new _.bn("linkCardRenderer");var rYf=new _.bn("quantityIncrementerButtonViewModel");var ufN=new _.bn("quantityIncrementerViewModel");var BBw=new _.bn("themedImageViewModel");_.Jzt=new _.bn("ypcCancelRecurrenceEndpoint");var tod=new _.bn("ypcCompleteTransactionEndpoint");_.ka_=new _.bn("ypcGetCartEndpoint");_.wu=new _.bn("ypcGetOffersEndpoint");_.Qi=new _.bn("ypcHandleTransactionEndpoint");var DAT=new _.bn("ypcLogWalletAnalyticDataEndpoint");_.dAa=new _.bn("ypcRedeemCodeEndpoint");var e9w=new _.bn("ypcUpdateFopEndpoint");Sj(qu(1),gS(4));G42((new MessageChannel).port2);var nzx=function(){this.register=new Map},XZe=function(G,H,Z){G=G+"_"+H;
pQ.register.has(G)?Z=pQ.register.get(G):(Z=Z(),pQ.register.set(G,Z));return Z},Vo2=function(G){G=_.I(G.register.values());
for(var H=G.next();!H.done;H=G.next())_.HM(H.value,"ABORTED")};
nzx.prototype.clear=function(){Vo2(this);this.register.clear()};
var pQ=new nzx;var s$R=Date.now().toString();var pZj=Q$R();var JSf={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 $Aw,n9;$Aw=1;n9=function(G){this.veData=G};
_.BT=function(G){return new n9({trackingParams:G})};
_.bl=function(G,H,Z,Q,p,l){var q=$Aw++;return new n9({veType:G,veCounter:q,elementIndex:Z,dataElement:H,youtubeData:Q,jspbYoutubeData:p,loggingDirectives:l})};
_.g=n9.prototype;
_.g.getAsJson=function(){var G={};this.veData.trackingParams!==void 0?G.trackingParams=this.veData.trackingParams:(G.veType=this.veData.veType,this.veData.veCounter!==void 0&&(G.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(G.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(G.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(G.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(G.isCounterfactual=!0);
return G};
_.g.getAsJspb=function(){var G=new Dmt;this.veData.trackingParams!==void 0?G.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.TW(G,2,this.veData.veType),this.veData.veCounter!==void 0&&_.TW(G,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.TW(G,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.nu(G,5,!0));if(this.veData.dataElement!==void 0){var H=this.veData.dataElement.getAsJspb();_.fq(G,7,H)}this.veData.youtubeData!==void 0&&_.fq(G,8,this.veData.jspbYoutubeData);
return G};
_.g.toString=function(){return JSON.stringify(this.getAsJson())};
_.g.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.g.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.u7("yt_logging_screen.getRootVeType",Ss3);_.u7("yt_logging_screen.getCurrentCsn",_.$k);_.u7("yt_logging_screen.getCttAuthInfo",Xt);_.u7("yt_logging_screen.setCurrentScreen",_.cf);var Xba=function(){this.events=new Map},cza=function(G){var H=[];
G=_.I(G.events.values());for(var Z=G.next();!Z.done;Z=G.next())H.push(Z.value);return H};
Xba.prototype.clear=function(){this.events.clear()};var fF7=function(){this.logTransport=new TBa;this.loggedEventRegister=new Xba;this.unloggedEventRegister=new Xba;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12591_flushTimer=new _.dg(this.flushInterval);this.JSC$12591_flushTimer.listen("tick",this.flush,!1,this)};
fF7.prototype.flush=function(){if(this.eventsCount){var G={loggedEvents:cza(this.loggedEventRegister),unloggedEvents:cza(this.unloggedEventRegister)};if(_.V("export_player_version_to_ytconfig")){var H;(H=_.xI("PLAYER_CLIENT_VERSION"))?(H=H.split("-")[0].replace(/\./g,""),H=isNaN(Number(H))?"0":H):H="";var Z=_.xI("PLAYER_CLIENT_VERSION");if(Z){Z=Z.split("-");var Q="";Z.length>1&&(Q=Z[Z.length-1]);Z=HF3(Q.startsWith("canary_experiment")?"canary":Q.startsWith("canary_control")?"control":"none")}else Z=
"CLIENT_CANARY_STATE_UNKNOWN";G.dimensions={playerClientVersion:H,playerCanaryState:Z}}this.logTransport.flush(G);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12591_flushTimer.enabled&&this.JSC$12591_flushTimer.stop()}};
var vza=function(G){lZ==null&&(lZ=new fF7);var H=lZ;var Z=H.loggedEventRegister;G.dimensions=G.dimensions||{};G.dimensions.csn=_.$k()||"";var Q=DoR(G.dimensions).join(";");if(G.records!=null)if(Z.events.has(Q)){var p;(p=Z.events.get(Q).records)==null||p.push.apply(p,_.OP(G.records))}else Z.events.set(Q,G);H.JSC$12591_flushTimer.enabled||H.JSC$12591_flushTimer.start();H.eventsCount++;H.eventsCount>=100&&H.flush()};var TBa=function(){};
TBa.prototype.flush=function(G,H){_.V("enable_client_sli_logging")&&_.yR("sliEventBatch",G,{sendIsolatedPayload:!!H})};var lZ;var z9a;z9a=function(G){var H=WaR;G=G===void 0?{}:G;H=H.name;var Z=$oW("SUCCESS");vza({dimensions:G,records:[{name:H,state:"SLI_STATE_END",status:Z}]})};
_.cSR=function(G,H,Z,Q){this.name=G;this.sliId=H;this.timeoutMs=Z;this.statusOnTimeout=Q;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.cSR.prototype.getId=function(){return this.sliId};
_.G1=function(G,H){H=H===void 0?{}:H;G.ongoing||(G.ongoing=!0,G.dimensions=H,G.logSliId=UEj(),vza({dimensions:G.dimensions,records:[{name:G.name,state:"SLI_STATE_START",sliId:G.logSliId}]}),G.timeoutMs>0&&(G.timeoutHandle=setTimeout(function(){_.HM(G,G.statusOnTimeout)},G.timeoutMs)))};
_.HM=function(G,H){G.ongoing&&(G.timeoutMs>0&&clearTimeout(G.timeoutHandle),G.ongoing=!1,H={dimensions:G.dimensions,records:[{name:G.name,status:$oW(H),state:"SLI_STATE_END",sliId:G.logSliId}]},pQ.register.delete(G.name+"_"+G.sliId),vza(H))};var WaR=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Kaw=function(){Mu.apply(this,arguments)};
_.T(Kaw,Mu);Kaw.prototype.getAssociations=function(){return[]};
Kaw.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var UI3=new _.bn("highlightTextDecoratorColorMapExtension");var od3=new _.bn("styleRunColorMapExtension");var MLo=_.CM(["data-"]),rSb={};var hbf={};var gU=function(G){this.wrappedPromise_=G===void 0?null:G;this.state_=0;this.JSC$12622_value_=null};
gU.prototype.then=function(G,H,Z){return this.wrappedPromise_?this.wrappedPromise_.then(G,H,Z):this.state_===1&&G?(G=G.call(Z,this.JSC$12622_value_))&&typeof G.then==="function"?G:_.II(G):this.state_===2&&H?(G=H.call(Z,this.JSC$12622_value_))&&typeof G.then==="function"?G:_.MoN(G):this};
gU.prototype.getValue=function(){return this.JSC$12622_value_};
gU.prototype.isRejected=function(){return this.state_==2};
JeT(gU);_.MoN=function(G){var H=new gU;G=G===void 0?null:G;H.state_=2;H.JSC$12622_value_=G===void 0?null:G;return H};
_.II=function(G){var H=new gU;G=G===void 0?null:G;H.state_=1;H.JSC$12622_value_=G===void 0?null:G;return H};var Ysj="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var jka=["load","abort","error"],qz=function(G,H,Z){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12642_maxAspectRatio_=G;this.disableAnimation_=H===void 0?!1:H;this.disableExifRotation_=Z===void 0?!1:Z;this.JSC$12642_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12642_reject_=this.resolve_=null};
qz.prototype.transform=function(G){var H=this;this.mime_=G.type;Ar(dip(G),this.dataUrlRead_,this.readError_,this);Ar(Dia(G.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(Z,Q){H.resolve_=Z;H.JSC$12642_reject_=Q})};
qz.prototype.dataUrlRead_=function(G){this.dataUrl_=G;this.angle_!=null&&Px2(this)};
qz.prototype.exifRead_=function(G){if(this.disableExifRotation_)this.angle_=0;else{a:if(G=new DataView(G),G.byteLength<2||G.getUint16(0)!==65496)G=-2;else{for(var H=2,Z=G.byteLength;H<Z;){var Q=G.getUint16(H),p=G.getUint16(H+2);if(Q===65505){H+=4;Q=G.getUint32(H);p=G.getUint16(H+4);if(Q!==1165519206||p!==0)break;H+=6;Q=G.getUint16(H)===18761;H+=G.getUint32(H+4,Q);p=G.getUint16(H,Q);H+=2;for(var l=0;l<p;l++){if(G.getUint16(H,Q)===274){H+=8;G=G.getUint16(H,Q);break a}H+=12}}else if(Q>>8!==255)break;
else H+=p+2}G=-1}switch(G){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&&Px2(this)};
qz.prototype.readError_=function(){this.JSC$12642_reject_()};
var Px2=function(G){Sk(G.JSC$12642_image_,jka,G.completeTransform_,!1,G);G.JSC$12642_image_.src=_.m0(G.dataUrl_).toString();G.JSC$12642_image_.src!=oy.toString()&&G.JSC$12642_image_.src.substr(0,11)==="data:image/"||G.JSC$12642_reject_()};
qz.prototype.completeTransform_=function(){if(this.JSC$12642_image_.src!=oy.toString()){var G=_.m0(this.dataUrl_),H=this.JSC$12642_image_.naturalHeight?this.JSC$12642_image_.naturalWidth/this.JSC$12642_image_.naturalHeight:null;this.invalidAspectRatio=H>this.JSC$12642_maxAspectRatio_||H<1/this.JSC$12642_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var Z=this.JSC$12642_image_.naturalWidth,Q=this.JSC$12642_image_.naturalHeight,p=H=0,l=this.JSC$12642_image_.naturalHeight?this.JSC$12642_image_.naturalWidth/
this.JSC$12642_image_.naturalHeight:null;l>this.JSC$12642_maxAspectRatio_?(Z=this.JSC$12642_maxAspectRatio_*Q,H=(Z-this.JSC$12642_image_.naturalWidth)/2,this.cropped=!0):l<1/this.JSC$12642_maxAspectRatio_?(Q=this.JSC$12642_maxAspectRatio_*Z,p=(Q-this.JSC$12642_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)l=Z,Z=Q,Q=l,l=H,H=p,p=l;switch(this.angle_){case 90:p-=Z;break;case 180:H-=Z;p-=Q;break;case 270:H-=
Q}this.cropped||this.angle_%360!==0?(G=document.createElement("canvas"),G.width=Z||1,G.height=Q||1,this.JSC$12642_image_.naturalWidth&&this.JSC$12642_image_.naturalHeight&&(Z=G.getContext("2d"),Z.rotate(Math.PI/180*this.angle_),Z.drawImage(this.JSC$12642_image_,H,p,this.JSC$12642_image_.naturalWidth,this.JSC$12642_image_.naturalHeight)),this.transformedData=_.m0(G.toDataURL(this.mime_))):this.transformedData=G}else this.transformedData=G;this.resolve_(this)}};var Sw=function(G,H){_.DA.call(this,G);this.value=H};
_.T(Sw,_.DA);
var uZ=function(G,H,Z,Q,p,l,q){q=q===void 0?!1:q;_.$f.call(this);var u=this;this.JSC$12647_url_=G;this.channelId_=H;this.maxFileSizeMb_=Z;this.JSC$12647_maxAspectRatio_=Q;this.dropZoneEl_=p;this.rejectInvalidAspectRatio_=q;this.selectButtonEl_=l;this.JSC$12647_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new ej(this.dropZoneEl_);this.selectOverlay_=new ns(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12647_image_=this.transfer_=null;this.handler_=new _.en(this);_.T$(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(l,"click",function(){u.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.T(uZ,_.$f);uZ.prototype.disposeInternal=function(){for(var G=this.selectButtonEl_.nextSibling;G&&G.parentNode&&G.tagName=="INPUT";)G.parentNode.removeChild(G),G=this.selectButtonEl_.nextSibling;this.cancel();_.$f.prototype.disposeInternal.call(this)};
uZ.prototype.uploadPromise=function(){if(this.JSC$12647_image_==null)return null;this.uploadPromise_||rzR(this);return this.uploadPromise_};
uZ.prototype.cancel=function(){wb2(this);this.JSC$12647_image_=null};
var wb2=function(G){G.transfer_&&G.transfer_.cancel();G.transfer_=null;G.uploadPromise_=null;G.resolve_=null;G.JSC$12647_reject_=null},rzR=function(G){wb2(G);
G.transfer_=_.lNa(G.JSC$12647_url_,{"X-YouTube-ChannelId":G.channelId_},G.JSC$12647_image_);G.handler_.listenOnce(G.transfer_,"l",G.JSC$12649_onUploadComplete_);G.handler_.listenOnce(G.transfer_,"n",G.onUploadError_);G.transfer_.run();G.uploadPromise_=new Promise(function(H,Z){G.resolve_=H;G.JSC$12647_reject_=Z})};
_.g=uZ.prototype;_.g.onChange_=function(G){G.files.length&&(this.JSC$12647_image_=G.files[0],this.JSC$12647_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12647_image_=null,this.dispatchEvent(new Sw("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(rzR(this),(new qz(this.JSC$12647_maxAspectRatio_)).transform(this.JSC$12647_image_).then((0,_.Cu)(this.onPreview_,this),(0,_.Cu)(this.onPreviewError_,this))))};
_.g.onPreview_=function(G){if(G.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12647_image_=null),this.dispatchEvent(new Sw("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;G.cropped&&this.dispatchEvent(new Sw("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Sw("yt.comments.ImageUploadOverlay.CHANGE_EVENT",G.transformedData))};
_.g.onPreviewError_=function(){this.JSC$12647_image_=null;this.dispatchEvent(new Sw("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.g.onHover_=function(G){G.stopPropagation();G.preventDefault();if(G.type==="dragover")G=!0;else if(G.type==="dragleave")G=!1;else return;this.dispatchEvent(new Sw("yt.comments.ImageUploadOverlay.HOVER_EVENT",G))};
_.g.JSC$12649_onUploadComplete_=function(){var G=(0,_.il_)(this.transfer_.getResponseText());this.resolve_(G.encryptedBlobId)};
_.g.onUploadError_=function(){this.JSC$12647_reject_();wb2(this)};var h9w=function(G){G=G||{};var H={},Z={};this.url=G.url||"";this.args=G.args||_.oN.clone(H);this.assets=G.assets||{};this.attrs=G.attrs||_.oN.clone(Z);this.fallback=G.fallback||null;this.fallbackMessage=G.fallbackMessage||null;this.html5=!!G.html5;this.disable=G.disable||{};this.loaded=!!G.loaded;this.messages=G.messages||{}};
h9w.prototype.clone=function(){var G=new h9w,H;for(H in this)if(this.hasOwnProperty(H)){var Z=this[H];_.ba(Z)=="object"?G[H]=_.oN.clone(Z):G[H]=Z}return G};var CxN,iJt,OJw,wp,yzx,ozN,mA2,UAa,R9w,NBa,Az2,xA_,Laa,Ez_,Y0p,FaN,bJ4,Gfp,Hep,sox,ZeR,QoN,pRw,lEx,gnd,IEN,qF7,SFT,u1G,EBu,BY7,JVR,tY_,kfR,Dy_,dy7,eWR,nnT,VYa,$y2,Lpf,XR2,cVG,TY_,fE2,vnN,Woa,zWT,Kop,MYN,jo_,PTa,rVR,wRN,hWx,CTR,BN,ie7,Oe7,aER,yVw,onG,myN,Uyx,RWG,NYw,AVx,xyt,Lo2,Enw,YFp,Foa,beG,GQx,HnG,sVd,A82,Zn7,QVa,pF_,lzx,gUG,Izx,qh2,Shp,u4x,BXw,Jjw,t$x,kQR,Dgt,dgR,erT,nUR,V$4,$gt,XFw,cja,TXN,fzt,vUT,W5T;CxN=["account/accounts_list"];iJt=["acknowledge_channel_tou_strike"];OJw=["notification/add_upcoming_event_reminder"];
_.aFx=["att/get"];wp=["browse","music/browse","unplugged/browse"];yzx=["channel/claim_legacy_youtube_channel"];ozN=["history/clear_search_history"];mA2=["history/clear_watch_history"];UAa=["comment/perform_comment_action"];R9w=["comment/get_comment_replies"];NBa=["ypc/commerce_action"];Az2=["backstage/create_post"];xA_=["live/create_broadcast"];Laa=["channel/create_channel"];Ez_=["comment/create_comment_reply"];Y0p=["comment/create_comment"];FaN=["live_chat/create_poll"];bJ4=["playlist/create"];
Gfp=["decorate_message"];Hep=["live_chat/delete_message"];sox=["playlist/delete"];ZeR=["video/delete"];QoN=["like/dislike"];pRw=["dismissal/dismiss"];lEx=["flag/flag"];gnd=["flow"];IEN=["account/account_menu"];qF7=["playlist/get_add_to_playlist"];SFT=["get_answer"];u1G=["channel/get_channel_creation_form"];EBu=["offline/get_download_action"];BY7=["kids/get_kids_blocklist_picker"];JVR=["live_chat/get_item_context_menu"];tY_=["live_chat/get_live_chat_message_buy_flow"];kfR=["live_chat/get_live_chat_replay"];
Dy_=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];dy7=["live_chat/get_live_chat_super_sticker_buy_flow"];eWR=["notification/get_notification_menu"];nnT=["playlist/get_settings_editor"];VYa=["backstage/get_post_video_preview"];$y2=["account/get_profile_card"];Lpf=["share/get_share_panel"];XR2=["share/get_sharing_provider_data"];cVG=["get_survey"];TY_=["notification/get_unseen_count"];fE2=["get_user_mention_suggestions"];vnN=["get_watch"];Woa=["guide"];
zWT=["feedback"];Kop=["kids/update_blacklist"];MYN=["like/like"];jo_=["live_chat/live_chat_action"];PTa=["live_chat/manage_user"];rVR=["video_manager/metadata_update"];wRN=["live_chat/moderate"];hWx=["notification/modify_channel_preference"];CTR=["notification/opt_out"];BN=["get_panel","get_posts_by_host_panel"];ie7=["player"];Oe7=["browse/edit_playlist"];aER=["notification/record_interactions"];yVw=["reel/reel_item_watch"];onG=["reel/reel_watch_sequence"];myN=["like/removelike"];Uyx=["notification/remove_upcoming_event_reminder"];
RWG=["flag/get_form"];NYw=["miniapp/report_value"];AVx=["navigation/resolve_url"];xyt=["channel/reveal_business_email"];Lo2=["in_video/search"];Enw=["search","sfv/search","unplugged/search"];YFp=["live_chat/send_message"];Foa=["live_chat/send_live_chat_vote"];beG=["account/set_setting"];GQx=["submit_caption_correction"];HnG=["submit_form"];sVd=["subscription/subscribe"];A82=["get_transcript"];Zn7=["resolve_location","unplugged/resolve_location"];QVa=["subscription/unsubscribe"];pF_=["backstage/update_post"];
lzx=["channel_edit/update_channel_page_settings"];gUG=["comment/update_comment_reply"];Izx=["comment/update_comment"];qh2=["comment/update_comments_settings"];Shp=["creator/update_creator_channel"];u4x=["pdg/update_enablement"];BXw=["updated_metadata"];Jjw=["channel_edit/validate_channel_handle"];t$x=["verify_age"];kQR=["next","unplugged/watch_next"];Dgt=["whitelist/edit"];dgR=["ypc/cancel_recurrence"];erT=["ypc/complete_transaction"];nUR=["ypc/get_cart"];V$4=["ypc/get_fix_instrument_params"];
$gt=["ypc/get_offers"];XFw=["ypc/get_payment_instruments_params"];cja=["ypc/handle_transaction"];TXN=["ypc/log_payment_server_analytics"];fzt=["ypc/pause_subscription"];vUT=["ypc/redeem_code"];W5T=["ypc/resume_subscription"];var zra=[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,279119,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,278926,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,279531,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,278306,277848,173191,173192,173193,101951,
171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,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,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var s3=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.u7("yt.msgs_",s3);var JP=new _.Gv("ACTION_ROUTER_TOKEN");_.tP=function(){this.autonavState_=_.V("kevlar_is_pupi_enabled")?2:qLj()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.tP.prototype.getState=function(){return this.autonavState_};
_.tP.prototype.pause=function(G){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=G):this.autonavState_==1&&(this.disabledAutonavPauseReason_=G)};
_.tP.prototype.setState=function(G,H,Z){H&&(this.autoplayChangedByUser=!0);H=this.autonavState_===3||G===3;this.autonavState_!=G&&(this.autonavState_=G,G!=3&&_.SLf(G==2),G=_.V("kevlar_is_pupi_enabled")?Z||H:!0,_.sS.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,G,Z))};
_.tP.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.R6(_.tP);var k9=function(){this.hasRun=!1};var DD={},$ub=(DD.auto_search="LATENCY_ACTION_AUTO_SEARCH",DD.ad_to_ad="LATENCY_ACTION_AD_TO_AD",DD.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",DD.app_startup="LATENCY_ACTION_APP_STARTUP",DD.browse="LATENCY_ACTION_BROWSE",DD.cast_splash="LATENCY_ACTION_CAST_SPLASH",DD.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",DD.channels="LATENCY_ACTION_CHANNELS",DD.chips="LATENCY_ACTION_CHIPS",DD.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",DD.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
DD.editor="LATENCY_ACTION_EDITOR",DD.embed="LATENCY_ACTION_EMBED",DD.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",DD.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",DD.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",DD.explore="LATENCY_ACTION_EXPLORE",DD.favorites="LATENCY_ACTION_FAVORITES",DD.home="LATENCY_ACTION_HOME",DD.inboarding="LATENCY_ACTION_INBOARDING",DD.landing="LATENCY_ACTION_LANDING",DD.learning="LATENCY_ACTION_LEARNING",
DD.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",DD.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",DD.library="LATENCY_ACTION_LIBRARY",DD.live="LATENCY_ACTION_LIVE",DD.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",DD.management="LATENCY_ACTION_MANAGEMENT",DD.mini_app="LATENCY_ACTION_MINI_APP_PLAY",DD.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",DD.onboarding="LATENCY_ACTION_ONBOARDING",DD.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
DD.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",DD.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",DD.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",DD.prebuffer="LATENCY_ACTION_PREBUFFER",DD.prefetch="LATENCY_ACTION_PREFETCH",DD.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",DD.profile_switcher="LATENCY_ACTION_LOGIN",DD.projects="LATENCY_ACTION_PROJECTS",DD.reel_watch="LATENCY_ACTION_REEL_WATCH",DD.results="LATENCY_ACTION_RESULTS",DD.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
DD.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",DD.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",DD.review="LATENCY_ACTION_REVIEW",DD.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",DD.search_ui="LATENCY_ACTION_SEARCH_UI",DD.search_suggest="LATENCY_ACTION_SUGGEST",DD.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",DD.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",DD.seek="LATENCY_ACTION_PLAYER_SEEK",DD.settings="LATENCY_ACTION_SETTINGS",DD.store="LATENCY_ACTION_STORE",
DD.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",DD.tenx="LATENCY_ACTION_TENX",DD.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",DD.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",DD.watch="LATENCY_ACTION_WATCH",DD.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",DD["watch,watch7"]="LATENCY_ACTION_WATCH",DD["watch,watch7_html5"]="LATENCY_ACTION_WATCH",DD["watch,watch7ad"]="LATENCY_ACTION_WATCH",DD["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",DD.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
DD.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",DD.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",DD.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",DD.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",DD.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",DD.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",DD.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",DD),CNe=0;var muu=function(G,H){fV.call(this,1,arguments);this.timer=H};
_.T(muu,fV);var olj=new hGj("aft-recorded",muu);var f8u=_.Qf.ytLoggingGelSequenceIdObj_||{};_.u7("ytLoggingGelSequenceIdObj_",f8u);var dU=_.Qf.ytLoggingLatencyUsageStats_||{};_.u7("ytLoggingLatencyUsageStats_",dU);var ew=function(){this.cleanupJob=0},zHM=function(){ew.instance||(ew.instance=new ew);
return ew.instance};
_.g=ew.prototype;_.g.baseline=function(G,H,Z){nQ(this,"baseline_"+G)||_.yR("latencyActionBaselined",{clientActionNonce:G},{timestamp:H,cttAuthInfo:Z})};
_.g.tick=function(G,H,Z,Q){nQ(this,"tick_"+G+"_"+H)||_.yR("latencyActionTicked",{tickName:G,clientActionNonce:H},{timestamp:Z,cttAuthInfo:Q})};
_.g.info=function(G,H,Z){var Q=Object.keys(G).join("");nQ(this,"info_"+Q+"_"+H)||(G=Object.assign({},G),G.clientActionNonce=H,_.yR("latencyActionInfo",G,{cttAuthInfo:Z}))};
_.g.jspbInfo=function(G,H,Z){for(var Q="",p=0;p<io(G).length;p++)io(G)[p]!==void 0&&(Q=p===0?Q.concat(""+p):Q.concat("_"+p));nQ(this,"info_"+Q+"_"+H)||(_.ha(G,2,H),H={cttAuthInfo:Z},Z=_.V("jspb_sparse_encoded_pivot")?new rM([{}]):new rM,_.vO(Z,7,jqd,G),vlf("latencyActionInfo",Z,H))};
_.g.span=function(G,H,Z){var Q=Object.keys(G).join("");nQ(this,"span_"+Q+"_"+H)||(G.clientActionNonce=H,_.yR("latencyActionSpan",G,{cttAuthInfo:Z}))};
var nQ=function(G,H){dU[H]=dU[H]||{count:0};var Z=dU[H];Z.count++;Z.time=(0,_.t3)();G.cleanupJob||(G.cleanupJob=_.wM(_.Ui,function(){var Q=(0,_.t3)(),p;for(p in dU)dU[p]&&Q-dU[p].time>6E4&&delete dU[p];G&&(G.cleanupJob=0)},5E3));
return Z.count>5?(Z.count===6&&Math.random()*1E5<1&&(Z=new _.C$("CSI data exceeded logging limit with key",H.split("_")),H.indexOf("plev")>=0||_.Rp(Z)),!0):!1};var K5p,M$d;K5p=window;M$d=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.uf=K5p.performance||K5p.mozPerformance||K5p.msPerformance||K5p.webkitPerformance||new M$d;var y$f=!1,Mj3=!1,Uub=(0,_.Cu)(_.uf.clearResourceTimings||_.uf.webkitClearResourceTimings||_.uf.mozClearResourceTimings||_.uf.msClearResourceTimings||_.uf.oClearResourceTimings||_.dP,_.uf);var jVT=window;jVT.ytcsi&&(jVT.ytcsi.infoGel=_.ee,jVT.ytcsi.tick=_.$K);var HQj=function(G){fV.call(this,1,arguments);this.csn=G};
_.T(HQj,fV);var y0b=new hGj("screen-created",HQj),dzM=[],GeR=DzU,esf=0,zD=new Map,sIj=new Map,ZQW=new Map;var RUM=Symbol("Df"),yY=new WeakMap;var Vi=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},q$=function(){Vi.instance||(Vi.instance=new Vi);
return Vi.instance};
_.g=Vi.prototype;_.g.setClient=function(G){this.client=G};
_.g.JSC$12728_newScreen=function(){this.clear();this.csn=_.$k()};
_.g.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.g.reportShown=function(G,H,Z){var Q=this.JSC$12728_getTrackingParams(G),p=G.visualElement?G.visualElement:Q;H=this.shownElements.has(p);var l=this.visibleState.get(p);this.shownElements.add(p);this.visibleState.set(p,!0);G.impressionLog&&!H&&G.impressionLog();if(Q||G.visualElement)if(Z=PCw(this,G,Z))if(p=rj4(this,G),$9(this,G)||p){Q=G.visualElement?G.visualElement:_.BT(Q);var q=G.interactionLoggingClientData;p||H?$9(this,G)&4?l||uo3(this.client,Z,Q,q):$9(this,G)&1&&!H&&IDb(this.client,Z,Q,q):IDb(this.client,
Z,Q,q)}};
_.g.reportHidden=function(G,H,Z){var Q=this.JSC$12728_getTrackingParams(G),p=G.visualElement?G.visualElement:Q;H=this.hiddenElements.has(p);var l=this.visibleState.get(p);this.hiddenElements.add(p);this.visibleState.set(p,!1);if(l===!1)return!0;if(!Q&&!G.visualElement)return!1;Z=PCw(this,G,Z);if(!Z||!$9(this,G)&&rj4(this,G))return!1;Q=G.visualElement?G.visualElement:_.BT(Q);$9(this,G)&8?BUf(this.client,Z,Q):$9(this,G)&2&&!H&&(G=this.client,H=WA({cttAuthInfo:Xt(Z)||void 0},Z),Q={csn:Z,ve:Q.getAsJson(),
eventType:2},Z==="UNDEFINED_CSN"?Mm("visualElementHidden",H,Q):G?ON("visualElementHidden",Q,G,H):_.yR("visualElementHidden",Q,H));return!0};
_.g.JSC$12728_getTrackingParams=function(G){var H=this.getData(G),Z,Q;if(_.V("il_use_view_model_logging_context")&&(H==null?0:(Z=H.context)==null?0:(Q=Z.loggingContext)==null?0:Q.loggingDirectives))return H.context.loggingContext.loggingDirectives.trackingParams||"";var p,l;if(H==null?0:(p=H.rendererContext)==null?0:(l=p.loggingContext)==null?0:l.loggingDirectives)return H.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams||
"";var q;return((q=G.veContainer)==null?0:q.trackingParams)?G.veContainer.trackingParams:(H==null?void 0:H.trackingParams)||""};
_.g.JSC$12728_elementShouldLogGesture=function(G,H){G=this.getData(G);return!!((Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.gestures&&G.loggingDirectives.gestures.types||""))||0)&H)};
_.g.JSC$12728_getNearestParentVe=function(G){var H=this.JSC$12728_getTrackingParams(G);return G.visualElement?G.visualElement:H?_.BT(H):G.parentElement?this.JSC$12728_getNearestParentVe(G.parentElement):null};
var PCw=function(G,H,Z){var Q=_.$k(Z);return G.csn===null||Q===G.csn||Z?Q:(G=new _.C$("VisibilityLogger called before newScreen",{caller:H.tagName,previous_csn:G.csn,current_csn:Q}),_.Rp(G),null)};
Vi.prototype.getData=function(G){var H,Z=G.data||((H=G.props)==null?void 0:H.data);if(!Z||G.isWebComponentWrapper){var Q;Z=(Q=yY.get(G))==null?void 0:Q[RUM]}return Z};
var rj4=function(G,H){var Z;return!((Z=G.getData(H))==null||!Z.loggingDirectives)},$9=function(G,H){G=G.getData(H);
return Math.floor(Number(G&&G.loggingDirectives&&G.loggingDirectives.visibility&&G.loggingDirectives.visibility.types||""))||1};var Xo;Xo=function(){};
_.Qw=function(){Xo.instance||(Xo.instance=new Xo);return Xo.instance};
Xo.prototype.setClient=function(G){_.bW(q$().setClient).bind(q$())(G)};
_.wFd=function(){_.Qw();_.bW(q$().JSC$12728_newScreen).bind(q$())()};
Xo.prototype.clear=function(){_.bW(q$().clear).bind(q$())()};
Xo.prototype.reportShown=function(G,H,Z){_.bW(q$().reportShown).bind(q$())(G,H,Z)};
Xo.prototype.reportHidden=function(G,H,Z){return _.bW(q$().reportHidden).bind(q$())(G,H,Z)};
var mxf=function(G,H){return _.bW(q$().JSC$12728_getTrackingParams).bind(q$())(H)},Nwf=function(G,H){return _.bW(q$().JSC$12728_getNearestParentVe).bind(q$())(H)};var cN,hrw;cN=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};
_.gr=function(){cN.instance||(cN.instance=new cN);return cN.instance};
cN.prototype.setClient=function(G){this.client=G};
hrw=function(G,H,Z){Z=Z===void 0?{}:Z;_.bW(function(){var Q,p,l,q=((Q=_.X(H==null?void 0:H.commandMetadata,_.HA))==null?void 0:Q.rootVe)||((p=_.X(H==null?void 0:H.commandMetadata,es4))==null?void 0:(l=p.screenVisualElement)==null?void 0:l.uiType);if(q){Q=_.X(H==null?void 0:H.commandMetadata,ui4);if(Q==null?0:Q.parentTrackingParams){var u=_.BT(Q.parentTrackingParams);if(Q.parentCsn)var B=Q.parentCsn}else Z.clickedVisualElement?u=Z.clickedVisualElement:H.clickTrackingParams&&(u=_.BT(H.clickTrackingParams));
a:{Q=_.X(H,_.hZ);p=_.X(H,IFj);if(Q){if(p=uwj(Q,"VIDEO")){Q={token:p,videoId:Q.videoId};break a}}else if(p&&(Q=uwj(p,"PLAYLIST"))){Q={token:Q,playlistId:p.playlistId};break a}Q=void 0}Z=Object.assign({},{cttAuthInfo:Q,parentCsn:B},Z);if(_.V("expectation_logging")){var t;Z.loggingExpectations=((t=_.X(H==null?void 0:H.commandMetadata,es4))==null?void 0:t.loggingExpectations)||void 0}_.Te(G,q,u,Z)}else _.Rp(new _.C$("Error: Trying to create a new screen without a rootVeType",H))})()};
_.Te=function(G,H,Z,Q){Q=Q===void 0?{}:Q;_.bW(function(){zra.includes(H)||(_.Rp(new _.C$("createClientScreen() called with a non-page VE",H)),H=83769);Q.isHistoryNavigation||(G.forwardHistoryStack=[],G.backHistoryStack.push({rootVe:H,key:Q.key||""}));G.graftQueue=[];G.stateChangedQueue=[];Q.dataPromises?CCN(G,H,Z,Q):inR(G,H,Z,Q)})()};
_.Onw=function(G,H,Z){Z=Z===void 0?0:Z;_.bW(function(){H.then(function(Q){G.pendingScreenCreation.has(Z)&&G.pendingScreenFn&&G.pendingScreenFn();var p=_.$k(Z),l=_.Va(Z);if(p&&l){var q={automatedLogEventSource:3},u;(Q==null?0:(u=Q.response)==null?0:u.trackingParams)&&Ko(G.client,p,l,_.BT(Q.response.trackingParams),!1,q);var B;(Q==null?0:(B=Q.playerResponse)==null?0:B.trackingParams)&&Ko(G.client,p,l,_.BT(Q.playerResponse.trackingParams),!1,q)}})})()};
cN.prototype.graftServerVe=function(G,H,Z){var Q=this;return _.bW(function(){var p=_.BT(G);_.fQ(Q,p,H,Z);return p})()};
_.A2f=function(G,H,Z,Q){return _.V("enable_client_ve_spec")&&H.clientVeSpec?(H=_.bl(H.clientVeSpec.uiType,void 0,H.clientVeSpec.elementIndex,H.clientVeSpec.clientYoutubeData,void 0,H),_.fQ(G,H,Z,Q)?H:null):H.trackingParams?G.graftServerVe(H.trackingParams,Z,Q):null};
_.pX=function(G,H,Z,Q){return _.bW(function(){if(!H.veType)return _.UN(new _.C$("Error: Trying to graft a client VE without a veType.")),null;if(H.visibilityTypes){var p=H.visibilityTypes.reduce(function(l,q){return l|q});
p={visibility:{types:String(p)}}}p=_.bl(H.veType,H.visualElement,H.elementIndex,H.clientYouTubeData,void 0,p);return _.fQ(G,p,Z,Q)?p:null})()};
_.fQ=function(G,H,Z,Q){Q=Q===void 0?0:Q;return _.bW(function(){if(G.pendingScreenCreation.has(Q))return G.graftQueue.push([H,Z]),!0;var p=_.$k(Q),l=Z||_.Va(Q);if(p&&l){if(_.V("combine_ve_grafts")){var q=G.cachedVisualElements.get(l.toString());q?q.push(H):(G.cachedRootVisualElements.set(l.toString(),l),G.cachedVisualElements.set(l.toString(),[H]));G.attachTimeout||(G.attachTimeout=_.wM(_.Ui,function(){azt(G,p)},1200))}else Ko(G.client,p,l,H);
return!0}return!1})()};
_.vN=function(G,H,Z){Z=Z===void 0?0:Z;var Q=G.recurringGrafts.get(Z)||new Map;if(_.V("smarter_ve_dedupping"))for(var p=Array.from(Q.keys()),l=0;l<p.length;l++){var q=void 0,u=void 0;var B=H;var t=p[l];t.isClientVe()&&B.isClientVe()?(q=B.getAsJson(),u=t.getAsJson(),B=q.veType!==u.veType||q.elementIndex!==u.elementIndex||q.dataElement!==u.dataElement||B.getLoggingDirectives()!==t.getLoggingDirectives()?!1:!0):B=t.veData.trackingParams!==void 0&&B.veData.trackingParams!==void 0?((u=B.veData)==null?void 0:
u.trackingParams)===((q=t.veData)==null?void 0:q.trackingParams):!1;if(B)return}else if(Q.has(H))return;Q.set(H,void 0);G.recurringGrafts.set(Z,Q);_.$k(Z)==="UNDEFINED_CSN"||G.pendingScreenCreation.has(Z)||_.fQ(G,H,void 0,Z)};
_.WN=function(G,H,Z,Q){Q=_.$k(Q===void 0?0:Q);if(!Q)return!1;twj(G.client,Q,H,Z);return!0};
_.ze=function(G,H,Z,Q){if(!H)return!1;Q=_.$k(Q===void 0?0:Q);if(!Q)return!1;twj(G.client,Q,_.BT(H),Z);return!0};
_.jQ=function(G,H){var Z=H.getScreenLayer&&H.getScreenLayer();if(H.visualElement)return _.WN(G,H.visualElement,void 0,Z);H=mxf(_.Qw(),H);return _.ze(G,H,void 0,Z)};
cN.prototype.clickCommand=function(G,H,Z){return _.ze(this,G.clickTrackingParams,H,Z===void 0?0:Z)};
cN.prototype.stateChanged=function(G,H,Z){this.visualElementStateChanged(_.BT(G),H,Z===void 0?0:Z)};
cN.prototype.visualElementStateChanged=function(G,H,Z){Z=Z===void 0?0:Z;Z===0&&this.pendingScreenCreation.has(Z)?this.stateChangedQueue.push([G,H]):this.logStateChanged(G,H,Z)};
cN.prototype.logStateChanged=function(G,H,Z){Z=Z===void 0?0:Z;var Q=_.$k(Z);G=G||_.Va(Z);return Q&&G?(kee(this.client,Q,G,H),!0):!1};
var CCN=function(G,H,Z,Q){Q=Q===void 0?{}:Q;G.pendingScreenCreation.add(Q.layer||0);G.pendingScreenFn=function(){inR(G,H,Z,Q);var q=_.Va(Q.layer);if(q){for(var u=_.I(G.graftQueue),B=u.next();!B.done;B=u.next())B=B.value,_.fQ(G,B[0],B[1]||q,Q.layer);q=_.I(G.stateChangedQueue);for(u=q.next();!u.done;u=q.next())u=u.value,G.logStateChanged(u[0],u[1])}};
Z||_.$k(Q.layer)||G.pendingScreenFn();if(Q.dataPromises)for(var p=_.I(Q.dataPromises),l=p.next();!l.done;l=p.next())_.Onw(G,l.value,Q.layer);else _.me(Error("Ef"))},inR=function(G,H,Z,Q){Q=Q===void 0?{}:Q;
var p=void 0;Q.layer||(Q.layer=0);p=Q.parentLayer!==void 0?Q.parentLayer:Q.layer;var l=_.$k(p);p=_.Va(p);var q=Z||p,u;q&&(Q.parentCsn!==void 0?u={clientScreenNonce:Q.parentCsn,visualElement:q}:l&&l!=="UNDEFINED_CSN"&&(u={clientScreenNonce:l,visualElement:q}));var B,t=_.xI("EVENT_ID");l==="UNDEFINED_CSN"&&t&&(B={servletData:{serializedServletEventId:t}});_.V("combine_ve_grafts")&&l&&azt(G,l);_.V("no_client_ve_attach_unless_shown")&&q&&l&&g9M(q,l);try{var D=_.QIv(G.client,H,u,Q.csnToClone,Q.cttAuthInfo,
B,Q.implicitGestureType,void 0,Q.loggingExpectations)}catch(n){_.N1(n,{rootVeType:H,rootVe:p,parentVisualElement:Z,currentCsn:l,parentEl:u,csnToClone:Q.csnToClone});_.me(n);return}_.cf(D,H,Q.layer,Q.cttAuthInfo);l&&l!=="UNDEFINED_CSN"&&p&&!tLe(l)&&BUf(G.client,l,p,!0);G.backHistoryStack[G.backHistoryStack.length-1]&&!G.backHistoryStack[G.backHistoryStack.length-1].csn&&(G.backHistoryStack[G.backHistoryStack.length-1].csn=D||"");_.ee({clientScreenNonce:D});_.wFd();var d=_.Va(Q.layer);l&&l!=="UNDEFINED_CSN"&&
d&&(_.V("web_mark_root_visible")||_.V("music_web_mark_root_visible"))&&_.r8(D,d);G.pendingScreenCreation.delete(Q.layer||0);G.pendingScreenFn=void 0;var e;(e=G.recurringGrafts.get(Q.layer))==null||e.forEach(function(n,c){n?_.fQ(G,c,n,Q.layer):d&&_.fQ(G,c,d,Q.layer)});
yj4(G)},yj4=function(G){for(var H=0;H<G.afterNewScreenOneOffJobs.length;H++){var Z=G.afterNewScreenOneOffJobs[H];
try{Z()}catch(Q){_.me(Q)}}for(H=G.afterNewScreenOneOffJobs.length=0;H<G.afterNewScreenRecurringJobs.length;H++){Z=G.afterNewScreenRecurringJobs[H];try{Z()}catch(Q){_.me(Q)}}},azt=function(G,H){if(H===void 0)for(var Z=B5v(),Q=0;Q<Z.length;Q++)Z[Q]!==void 0&&azt(G,Z[Q]);
else G.cachedVisualElements.forEach(function(p,l){(l=G.cachedRootVisualElements.get(l))&&pNW(G.client,H,l,p)}),G.cachedVisualElements.clear(),G.cachedRootVisualElements.clear(),G.attachTimeout=void 0};var KQ=function(G){G=G===void 0?{layer:0}:G;this.hasRun=!1;this.createScreenConfig=G;G={};this.dLu=(G.response=!1,G.playerResponse=!1,G)};
_.T(KQ,k9);KQ.prototype.validate=function(G){return!(!G.data||!G.data.response&&!G.data.playerResponse)};
KQ.prototype.handle=function(G){var H=_.gr(),Z=this.createScreenConfig.layer;G.data.response&&G.data.response.trackingParams&&!this.dLu.response&&(H.graftServerVe(G.data.response.trackingParams,void 0,Z),this.dLu.response=!0);G.data.playerResponse&&G.data.playerResponse.trackingParams&&!this.dLu.playerResponse&&(H.graftServerVe(G.data.playerResponse.trackingParams,void 0,Z),this.dLu.playerResponse=!0)};var Mz=function(){this.jf=_.hQ();this.gu=[];this.vdg=0};
Mz.prototype.processChunk=function(G){if(G){for(var H=_.I(this.gu),Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.validate(G)&&(Z.handle(G),Z.hasRun=!0);_.$K("np"+this.vdg);this.vdg++}};var TU2=function(G,H,Z){this.name=G;this.options=Z;this.startTime=(0,_.t3)();this.id=o5.nextSpanId++;this.sessionId=o5.sessionId;this.attributes=H;this.status=0;if(G=o5.stack[o5.stack.length-1])this.parentId=G.id,G.children||(G.children=[]),G.children.push(this);G=_.I(o5.processors);for(H=G.next();!H.done;H=G.next()){H=H.value;try{var Q=Z=void 0;(Q=(Z=H).onSpanStart)==null||Q.call(Z,this)}catch(p){_.Rp(p)}}};
TU2.prototype.end=function(G){G=G===void 0?1:G;this.endTime=(0,_.t3)();this.duration=this.endTime-this.startTime;this.status||this.setStatus(G);var H;((H=this.options)==null?void 0:H.active)!==!1&&(o5.stack[o5.stack.length-1]===this?o5.stack.pop():_.Rp(Error("Ff`"+String(this.name))));G=_.I(o5.processors);for(H=G.next();!H.done;H=G.next()){H=H.value;try{var Z=void 0,Q=void 0;(Q=(Z=H).onSpanEnd)==null||Q.call(Z,this)}catch(p){_.Rp(p)}}};
TU2.prototype.addAttributes=function(G){Object.assign(this.attributes,G)};
TU2.prototype.setStatus=function(G){this.status=G};
var fDj={end:function(){},
addAttributes:function(){},
setStatus:function(){}},o5={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},cPo={rootSpan:function(){return o5.stack[0]}};var WdM={};var Hxf=function(G){this.observers=[];this.value=G};
_.g=Hxf.prototype;_.g.subscribe=function(G){var H=this;if(G.idx!=null)throw Error("Gf");G.idx=this.observers.length;this.observers.push(G);return function(){var Z=H.observers[H.observers.length-1];H.observers[G.idx]=Z;Z.idx=G.idx;H.observers.pop()}};
_.g.update=function(G){this.value=G(this.value);this.notify()};
_.g.mutate=function(G){G(this.value);this.notify()};
_.g.set=function(G){this.value=G;this.notify()};
_.g.notify=function(){for(var G=_.I(this.observers),H=G.next();!H.done;H=G.next()){H=H.value;try{H(this.value)}catch(Z){}}};var t6u,oU4,Rr_;_.HT=function(G,H,Z,Q,p,l,q,u){q=q===void 0?[]:q;u=u===void 0?[]:u;this.buildCommandPayload=G;this.navigate=H;this.handleServiceRequest=Z;this.sendAction=Q;this.JSC$12777_screenManager=p;this.commandResolverMap=l;this.autoLogResolverAllowlist=q;this.metaCommandClickLoggingDenylist=u;this.pendingCommands=new Set;this.isTracingEnabled=!1;oU4(this)};
t6u=function(G,H,Z){var Q=[_.CMa,F1R],p=GCR,l=Hku,q=_.gr(),u=mga;Z=Z===void 0?[]:Z;Q=Q===void 0?[]:Q;_.HT.instance=new _.HT(G,H,p,l,q,u,Z,Q)};
oU4=function(G){if(!G.isTracingEnabled&&XNM("command")){var H=G.resolveCommand;G.resolveCommand=function(Z,Q){a:{for(p in Z)if(Object.prototype.hasOwnProperty.call(Z,p)){var p={commandType:p};break a}p={}}return v9R("command",p,H.bind(this,Z,Q))};
G.isTracingEnabled=!0}};
Rr_=function(G,H,Z){if(!G.commandResolverMap)return!1;var Q=rPb(H,G.commandResolverMap);return Q?((G.autoLogResolverAllowlist.some(function(p){return!!_.X(H,p)})||(Z==null?0:Z.forceClickLogging))&&Ugw(G,H,Z),Q instanceof Promise?Q.then(function(p){p.resolve(H,Z)}):Q.resolve(H,Z),!0):!1};
_.HT.prototype.resolveCommand=function(G,H){var Z=this,Q=NXa(G);if(Rr_(this,G,H))return!0;if(Q)return AjN(this,G,H);if(!this.buildCommandPayload)return Mwb(G,"Unhandled command by buildCommandPayload"),!1;var p=this.buildCommandPayload(G,H);if(H==null?0:H.commandController)p.commandController=H.commandController;if(p.type===0){if(!this.navigate)return jIf(G,"navigate"),!1;if(!xgd(p.command))return Mwb(G,"Page requests need to specify a url"),!1;_.V("logging_avoid_blocking_during_navigation")&&_.TbX().transition("application_navigating");
G=this.navigate(p)||[];VKG(G).then(function(){Z.pendingCommands.delete(p.command)});
return!0}if(p.type===1){if(!this.handleServiceRequest)return jIf(G,"handleServiceRequest"),!1;(H==null?0:H.forceClickLogging)&&Ugw(this,p.command,H);G=this.handleServiceRequest(p);VKG(G).then(function(){Z.pendingCommands.delete(p.command)});
return!0}if(p.type===2){if(!this.sendAction)return jIf(G,"sendAction"),!1;Ugw(this,p.command,H);this.sendAction(p);return!0}return!1};
var Ugw=function(G,H,Z){if((Z==null||!Z.disableClickTracking)&&G.JSC$12777_screenManager)if(H.clickTrackingParams&&_.V("log_click_with_layer_from_element_in_command_handler")){var Q;Z=Z==null?void 0:(Q=Z.form)==null?void 0:Q.element;G.JSC$12777_screenManager.clickCommand(H,null,Z&&Z.getScreenLayer&&Z.getScreenLayer())}else H.clickTrackingParams?G.JSC$12777_screenManager.clickCommand(H):!_.V("disable_clicked_visual_element_in_command_handler")&&(Z==null?0:Z.clickedVisualElement)&&_.WN(G.JSC$12777_screenManager,
Z.clickedVisualElement)},NXa=function(G){var H=!!_.X(G,_.Ft),Z;
G=((Z=_.X(G,_.GD))==null?void 0:Z.signal)==="CLIENT_SIGNAL";return H||G},AjN=function(G,H,Z){var Q=_.X(H,_.Ft);
if(Q)var p=(Q==null?void 0:Q.commands)||[];else{var l;if(((l=_.X(H,_.GD))==null?void 0:l.signal)==="CLIENT_SIGNAL"){var q;p=((q=_.X(H,_.GD))==null?void 0:q.actions)||[]}}if(p){(Q=L52(G,p))&&Ugw(G,H,Z);H=_.I(p);for(p=H.next();!p.done;p=H.next()){p=p.value;try{var u=Object.assign({},Z);Q&&(u.disableClickTracking=!0);G.resolveCommand(p,u)}catch(B){B instanceof Error&&_.me(B)}}return!0}Mwb(H,"Could not handle the meta command");return!1},L52=function(G,H){return H.every(function(Z){return G.metaCommandClickLoggingDenylist.some(function(Q){return!!_.X(Z,
Q)})})},xgd=function(G){var H;
return!((H=_.X(G==null?void 0:G.commandMetadata,_.HA))==null||!H.url)};var jw=function(){k9.apply(this,arguments)};
_.T(jw,k9);jw.prototype.validate=function(G){var H,Z;return!this.hasRun&&!!((H=G.data.response)==null?0:(Z=H.onResponseReceivedEndpoints)==null?0:Z.length)};
jw.prototype.handle=function(G){var H=_.HT.instance;G=_.I(G.data.response.onResponseReceivedEndpoints);for(var Z=G.next();!Z.done;Z=G.next())H.resolveCommand(Z.value)};var EU2,Yh7,F5_;
EU2=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=_.Yk();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.PN=function(){Yh7||(Yh7=new EU2);return Yh7};
F5_=function(){var G=_.PN();G.miniplayerButtonActivation=!1;G.userActivation=!1;G.playlistWatchPageActivation=!1;G.productDetailsPageActivation=!1;G.miniAppPageActivation=!1;G.playablesDestPageActivation=!1;G.lockupActivation=!1;G.showMiniplayerCommandActivation=!1;G.playlistSuggestionsShelfActivation=!1;G.mediaSessionPipActivation=!1;G.watchPipActivation=!1;G.watchWhileActivation=!1;G.shortsPipActivation=!1;G.companionCanvasActivation=!1};
_.bnw=function(){var G=_.PN(),H=G.mediaSessionPipActivation,Z=G.watchPipActivation,Q=G.watchWhileActivation,p=G.playlistWatchPageActivation,l=G.lockupActivation,q=G.showMiniplayerCommandActivation,u=G.navigatingAwayFromWatchDeletedVideo,B=G.shortsPipActivation,t=G.playlistSuggestionsShelfActivation,D=G.productDetailsPageActivation,d=G.miniAppPageActivation,e=G.playablesDestPageActivation,n=G.companionCanvasActivation;return!G.miniplayerButtonActivation&&!p&&!t&&!D&&!d&&!e&&!l&&!q&&!H&&!Z&&!Q&&!B&&
!n||u};var FQo;_.rU=_.U3("FEwhat_to_watch","/",3854);_.bav=_.U3("FEdownloads","/feed/downloads",42352);FQo=_.U3("FEmusic_offline","browse/FEmusic_offline",42352);var oq=function(G,H){H=H===void 0?[]:H;var Z=Z===void 0?[]:Z;H=RPM.apply(null,[NPR.apply(null,_.OP(H))].concat(_.OP(Z)));this.store=EuW(G,void 0,H)};
oq.prototype.getState=function(){return this.store.getState()};
oq.prototype.dispatch=function(G){return this.store.dispatch(G)};
oq.prototype.subscribe=function(G){return this.store.subscribe(G)};
oq.prototype.replaceReducer=function(G){return this.store.replaceReducer(G)};
oq.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.wU=function(G,H,Z){var Q=H(G.getState());return G.subscribe(function(){var p=H(G.getState());if(p!==Q){var l=Q;Q=p;Z(p,l)}})};var TWR;_.uP=function(G,H,Z){return _.Lo({type:"REPLACE_ENTITY",payload:{entityPayload:Z,entityType:G,key:H}})};
TWR=function(G){return _.Lo({type:"REPLACE_ENTITIES",payload:G})};
_.eO=function(G,H,Z,Q){return _.Lo({type:"UPDATE_ENTITY",payload:{entityPayload:Z,entityType:G,key:H,mergeOption:Q}})};var APR=function(G){var H=this;G=G===void 0?[]:G;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;G.forEach(function(Z){H.append(Z)})};
_.g=APR.prototype;_.g.getLength=function(){return this.totalLength};
_.g.append=function(G){var H=this.arrays.length===0?!1:(H=this.arrays[this.arrays.length-1])&&H.buffer===G.buffer&&H.byteOffset+H.length===G.byteOffset;H?(H=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(H.buffer,H.byteOffset,H.length+G.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(G);this.totalLength+=G.length};
_.g.split=function(G){for(var H=new APR,Z=new APR,Q=_.I(this.arrays),p=Q.next();!p.done;p=Q.next())p=p.value,G>=p.length?(H.append(p),G-=p.length):G?(H.append(new Uint8Array(p.buffer,p.byteOffset,G)),Z.append(new Uint8Array(p.buffer,p.byteOffset+G,p.length-G)),G=0):Z.append(p);return{headView:H,tailView:Z}};
_.g.isFocused=function(G){return G>=this.arrayPos&&G<this.arrayPos+this.arrays[this.arrayIdx].length};
_.g.focus=function(G){if(!this.isFocused(G))for(G<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=G&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var G7p=function(G,H){G.focus(H);return G.arrays[G.arrayIdx][H-G.arrayPos]};(function(){var G=function(Q){return new Uint8Array(Q)},H=function(Q){for(var p=new Uint8Array(Q.length),l=0;l<Q.length;l++)p[l]=Q[l];
return p},Z=new Uint8Array([1]);
return Z.length===1&&Z[0]===1?G:H})();
var yPf=Array(1024),aD2=window.TextDecoder?new TextDecoder:void 0,mzo=window.TextEncoder?new TextEncoder:void 0;var NU2=function(G){this.arrayView=G;this.pos=0;this.pendingTagAndType=-1},E3=function(G){var H=G7p(G.arrayView,G.pos);
++G.pos;if(H<128)return H;for(var Z=H&127,Q=1;H>=128;)H=G7p(G.arrayView,G.pos),++G.pos,Q*=128,Z+=(H&127)*Q;return Z},xzf=function(G,H){var Z=G.pendingTagAndType;
for(G.pendingTagAndType=-1;G.pos+1<=G.arrayView.totalLength;){Z<0&&(Z=E3(G));var Q=Z>>3,p=Z&7;if(Q===H)return!0;if(Q>H){G.pendingTagAndType=Z;break}Z=-1;switch(p){case 0:E3(G);break;case 1:G.pos+=8;break;case 2:Q=E3(G);G.pos+=Q;break;case 5:G.pos+=4}}return!1};var E9o=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=Rse(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},bf=function(G,H){H=G.pos+H;
if(!(G.buf.length>=H)){for(var Z=G.buf.length*2;Z<H;)Z*=2;G.buf=Rse(Z,G.wasm,G.buf.subarray(0,G.pos));G.view=new DataView(G.buf.buffer,G.buf.byteOffset,G.buf.byteLength)}},Fs=function(G,H){if(H>268435455){bf(G,4);
for(var Z=H&1073741823,Q=0;Q<4;Q++)G.view.setUint8(G.pos,Z&127|128),Z>>=7,G.pos+=1;H=Math.floor(H/268435456)}for(bf(G,4);H>127;)G.view.setUint8(G.pos,H&127|128),H>>=7,G.pos+=1;G.view.setUint8(G.pos,H);G.pos+=1};for(var Ygf={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},Lde={},H8G=_.I(Object.entries(Ygf)),sbG=H8G.next();!sbG.done;sbG=H8G.next()){var Z8T=_.I(sbG.value),QbR=Z8T.next().value,p6N=Z8T.next().value,lnw=QbR,gcw=p6N;gcw&&(Lde[gcw]=lnw)};var bQX=function(G,H){G=G===void 0?{}:G;switch(H.type){case "ENTITY_LOADED":return H.payload.reduce(function(Q,p){var l,q=(l=p.options)==null?void 0:l.persistenceOption;if(q&&q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Q;if(!p.entityKey)return _.me(Error("If")),Q;if(p.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!p.payload)return p=new _.C$("REPLACE entity mutation is missing a payload",{entityKey:p.entityKey}),_.me(p),Q;var u=(0,_.oN.getAnyKey)(p.payload);
return H2f(Q,u,p.entityKey,p.payload[u])}if(p.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{p=p.entityKey;try{var B=_.YK(p).entityType;u=H2f(Q,B,p);break a}catch(d){if(d instanceof Error){p=new _.C$("Failed to deserialize entity key",{entityKey:p,originalMessage:d.message});_.me(p);u=Q;break a}throw d;}u=void 0}return u}if(p.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!p.payload)return p=new _.C$("UPDATE entity mutation is missing a payload",{entityKey:p.entityKey}),_.me(p),Q;u=(0,_.oN.getAnyKey)(p.payload);
var t,D;return sTo(Q,u,p.entityKey,p.payload[u],(t=p.fieldMask)==null?void 0:(D=t.mergeOptions)==null?void 0:D.repeatedFieldsMergeOption)}return Q},G);
case "REPLACE_ENTITY":var Z=H.payload;return H2f(G,Z.entityType,Z.key,Z.entityPayload);case "REPLACE_ENTITIES":return Object.keys(H.payload).reduce(function(Q,p){var l=H.payload[p];return Object.keys(l).reduce(function(q,u){return H2f(q,p,u,l[u])},Q)},G);
case "UPDATE_ENTITY":return Z=H.payload,sTo(G,Z.entityType,Z.key,Z.entityPayload,Z.mergeOption);default:return G}};var Z2j;var Int=!1,hP,CQ,iZ,Og,aI,qUa=function(G){_.wI.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Int){var H,Z=new Uint8Array(256),Q=new Uint8Array(256);var p=1;for(H=0;H<256;H++)Z[p]=H,Q[H]=p,p^=p<<1^(p>>7&&283);hP=new Uint8Array(256);CQ=s7(256);iZ=s7(256);Og=s7(256);aI=s7(256);for(var l=0;l<256;l++){p=l?Q[255^Z[l]]:0;p^=p<<1^p<<2^p<<3^p<<4;p=p&255^p>>>8^99;hP[l]=p;H=p<<1^(p>>7&&283);var q=H^p;CQ[l]=H<<24|p<<16|p<<8|q;iZ[l]=q<<24|CQ[l]>>>8;Og[l]=p<<24|iZ[l]>>>
8;aI[l]=p<<24|Og[l]>>>8}Int=!0}p=s7(44);for(Z=0;Z<4;Z++)p[Z]=G[4*Z]<<24|G[4*Z+1]<<16|G[4*Z+2]<<8|G[4*Z+3];for(Q=1;Z<44;Z++)G=p[Z-1],Z%4||(G=(hP[G>>16&255]^Q)<<24|hP[G>>8&255]<<16|hP[G&255]<<8|hP[G>>>24],Q=Q<<1^(Q>>7&&283)),p[Z]=p[Z-4]^G;this.key=p};
_.T(qUa,_.wI);
qUa.prototype.encrypt=function(G){var H=G.length;G=new Uint8Array(G.buffer.slice(G.byteOffset,G.byteOffset+H));for(var Z=this.cipherBlock,Q=0;Q<H&&this.blockOffset<16;)G[Q++]^=Z[this.blockOffset++];for(var p=H-(H-Q)%16;Q<p;)SUt(this),G[Q++]^=Z[0],G[Q++]^=Z[1],G[Q++]^=Z[2],G[Q++]^=Z[3],G[Q++]^=Z[4],G[Q++]^=Z[5],G[Q++]^=Z[6],G[Q++]^=Z[7],G[Q++]^=Z[8],G[Q++]^=Z[9],G[Q++]^=Z[10],G[Q++]^=Z[11],G[Q++]^=Z[12],G[Q++]^=Z[13],G[Q++]^=Z[14],G[Q++]^=Z[15];if(Q<H)for(SUt(this),this.blockOffset=0;Q<H;)G[Q++]^=
Z[this.blockOffset++];return G};
var SUt=function(G){for(var H=G.key,Z=G.counter[0]^H[0],Q=G.counter[1]^H[1],p=G.counter[2]^H[2],l=G.counter[3]^H[3],q=3;q>=0&&!(G.counter[q]=-~G.counter[q]);q--);for(var u,B,t=4;t<40;)q=CQ[Z>>>24]^iZ[Q>>16&255]^Og[p>>8&255]^aI[l&255]^H[t++],u=CQ[Q>>>24]^iZ[p>>16&255]^Og[l>>8&255]^aI[Z&255]^H[t++],B=CQ[p>>>24]^iZ[l>>16&255]^Og[Z>>8&255]^aI[Q&255]^H[t++],l=CQ[l>>>24]^iZ[Z>>16&255]^Og[Q>>8&255]^aI[p&255]^H[t++],Z=q,Q=u,p=B;G=G.cipherBlock;q=H[40];G[0]=hP[Z>>>24]^q>>>24;G[1]=hP[Q>>16&255]^q>>16&255;G[2]=
hP[p>>8&255]^q>>8&255;G[3]=hP[l&255]^q&255;q=H[41];G[4]=hP[Q>>>24]^q>>>24;G[5]=hP[p>>16&255]^q>>16&255;G[6]=hP[l>>8&255]^q>>8&255;G[7]=hP[Z&255]^q&255;q=H[42];G[8]=hP[p>>>24]^q>>>24;G[9]=hP[l>>16&255]^q>>16&255;G[10]=hP[Z>>8&255]^q>>8&255;G[11]=hP[Q&255]^q&255;q=H[43];G[12]=hP[l>>>24]^q>>>24;G[13]=hP[Z>>16&255]^q>>16&255;G[14]=hP[Q>>8&255]^q>>8&255;G[15]=hP[p&255]^q&255};var u$G=!1;(function(){var G=function(Q){return new Uint8Array(Q)},H=function(Q){for(var p=new Uint8Array(Q.length),l=0;l<Q.length;l++)p[l]=Q[l];
return p},Z=new Uint8Array([1]);
return Z.length===1&&Z[0]===1?G:H})();
var yi;var tBG=function(G){a:{if(!u$G&&!qh){if(yi){var H=yi;break a}yi=(H=window.crypto)==null?void 0:H.subtle;var Z,Q,p;if(((Z=yi)==null?0:Z.importKey)&&((Q=yi)==null?0:Q.sign)&&((p=yi)==null?0:p.encrypt)){H=yi;break a}yi=void 0}H=void 0}H&&(this.nativeEncryptor=new Bha(G,H));this.encryptorPolyfill=new JJT(G)};
tBG.prototype.encrypt=function(G,H){var Z=this,Q;return _.S(function(p){switch(p.nextAddress){case 1:if(!Z.nativeEncryptor){p.jumpTo(2);break}_.XV(p,3);return p.yield(Z.nativeEncryptor.encrypt(G,H),5);case 5:return p.return(p.yieldResult);case 3:Q=_.Wg(p),_.Rp(Q),u$G=!0,Z.nativeEncryptor=void 0;case 2:return p.return(Z.encryptorPolyfill.encrypt(G,H))}})};
tBG.prototype.decrypt=function(G,H){return this.encrypt(G,H)};
var Bha=function(G,H){this.JSC$12850_aesKey=G;this.subtleCrypto=H};
Bha.prototype.encrypt=function(G,H){var Z=this,Q;return _.S(function(p){if(p.nextAddress==1)return _.XV(p,2),p.yield(k7G(Z,G,H),4);if(p.nextAddress!=2)return p.return(p.yieldResult);Q=_.Wg(p);_.Rp(Q);u$G=!0;throw Q;})};
var k7G=function(G,H,Z){var Q,p;return _.S(function(l){switch(l.nextAddress){case 1:if(G.cryptoKey){l.jumpTo(2);break}return l.yield(G.subtleCrypto.importKey("raw",G.JSC$12850_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:G.cryptoKey=l.yieldResult;case 2:return Q={name:"AES-CTR",counter:Z,length:128},l.yield(G.subtleCrypto.encrypt(Q,G.cryptoKey,H),4);case 4:return p=l.yieldResult,l.return(new Uint8Array(p))}})},JJT=function(G){this.JSC$12853_aesKey=G};
JJT.prototype.encrypt=function(G,H){this.encryptor||(this.encryptor=new qUa(this.JSC$12853_aesKey));for(var Z=this.encryptor,Q=0;Q<4;Q++)Z.counter[Q]=H[Q*4]<<24|H[Q*4+1]<<16|H[Q*4+2]<<8|H[Q*4+3];Z.blockOffset=16;return this.encryptor.encrypt(G)};
JJT.prototype.decrypt=function(G,H){return this.encrypt(G,H)};var DTw={},lOj=J3("yt-idb-pref-storage",{objectStores:(DTw.prefs={addedAtVersion:1},DTw),shared:!1,upgrade:function(G,H){H(1)&&Fq(YN(G,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.oI=function(G){this.token=G};
_.oI.getInstance=function(){return _.S(function(G){return G.return(new Promise(function(H){_.BP().then(function(Z){Z?(_.oI.instance||(_.oI.instance=new _.oI(Z)),H(_.oI.instance)):H(void 0)})}))})};
_.oI.prototype.get=function(G){var H=this,Z,Q,p;return _.S(function(l){if(l.nextAddress==1)return l.yield(gyU(H.token),2);if(l.nextAddress!=3)return Z=l.yieldResult,l.yield(Z.get("prefs",G),3);Q=l.yieldResult;if(!Q)return l.return();p=(0,_.t3)();return Q.expirationTimestampMs<=p?l.return():l.return(Q.value)})};
_.oI.prototype.set=function(G,H,Z){Z=Z===void 0?31536E3:Z;var Q=this,p,l,q;return _.S(function(u){if(u.nextAddress==1)return p=(0,_.t3)(),l={key:G,value:H,expirationTimestampMs:p+Z*1E3},u.yield(gyU(Q.token),2);q=u.yieldResult;return u.yield(q.put("prefs",l),0)})};
_.oI.prototype.remove=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(gyU(H.token),2);Z=Q.yieldResult;return Q.yield(Z.delete("prefs",G),0)})};var md={},dTa=(md.INVALID_ENCODER_VERSION="Invalid encoder version",md.KEY_CREATION_FAILED="Failed to create encoder key",md.UNKNOWN_DECODE_ERROR="Failed to decode PES data",md.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",md.WRONG_DATA_TYPE="Encoder cannot process the data type",md),Zf=function(G,H){H=H===void 0?{}:H;_.C$.call(this,dTa[G],Object.assign({},{name:"PESEncoderError",type:G},H));this.type=G;this.level="WARNING";Object.setPrototypeOf(this,Zf.prototype)};
_.T(Zf,_.C$);var Ug=function(){};
Ug.prototype.encode=function(G,H){try{return this.encodeImpl(G,H)}catch(Z){ueu(Z,qrj)}};
Ug.prototype.decode=function(G,H){try{return this.decodeImpl(G,H)}catch(Z){ueu(Z,Srv)}};
var eFp=function(G,H,Z){var Q;return _.S(function(p){if(p.nextAddress==1)return _.XV(p,2),p.yield(G.decodeAsyncImpl(H,Z),4);if(p.nextAddress!=2)return p.return(p.yieldResult);Q=_.Wg(p);ueu(Q,Srv);_.K0(p)})};
Ug.prototype.decodeAsyncImpl=function(G,H){return Promise.resolve(this.decodeImpl(G,H))};var RI=function(G,H){this.aesEncryptor=G;this.aesEncryptorAsync=H};
_.T(RI,Ug);RI.prototype.encodeImpl=function(G,H){H=BWf(H);G=(new TextEncoder).encode(JSON.stringify(G));return this.aesEncryptor.encrypt(G,H)};
RI.prototype.decodeImpl=function(G,H){if(!(G instanceof Uint8Array))throw IOj(1);var Z=new TextDecoder;H=BWf(H);G=this.aesEncryptor.decrypt(G,H);return JSON.parse(Z.decode(G))};
RI.prototype.decodeAsyncImpl=function(G,H){var Z=this,Q,p,l;return _.S(function(q){if(q.nextAddress==1){if(!(G instanceof Uint8Array))throw IOj(1);Q=new TextDecoder;p=BWf(H);return q.yield(Z.aesEncryptorAsync.decrypt(G,p),2)}l=q.yieldResult;return q.return(JSON.parse(Q.decode(l)))})};var J9o={accountLinkStatusEntity:gla,booleanEntity:wZt,buttonEntity:K9G,captionTrack:Jfx,channelHandle:q4G,chipEntity:Qra,commerceAcquisitionClientPayloadEntity:skR,commerceCartListEntity:ZJ7,compositeSourceEntity:zBw,multiviewStagingEntity:K$4,contextNoteFeedEntityPayload:XKw,contextNoteUserRatingEntityPayload:cOR,continuationTokenEntity:NUp,downloadQualityPickerEntity:wNw,downloadsPageRefreshTokenEntity:CZa,downloadsPageViewConfigurationEntity:H2G,downloadStatusEntity:hsR,dismissState:prp,sfvAudioItemCurrentlyPlayingEntity:NvT,
emojiFountainDataEntity:v3_,emojiCustomizationSetEntity:f9_,fakeChannel:iFp,fakePlaylist:OFt,fakePlaylistEntryCollection:aR2,fakeVideo:oxa,fakeVideoDescription:mot,featuredProductsEntity:$PG,flowStateEntity:ZsG,iconBadgeEntity:Qkx,interstitialInteractionStateEntity:c$w,likeButtonAnimationEntity:sTx,liveChatPollStateEntity:jH_,dataFreshnessEntity:cip,liveViewerLeaderboardChatEntryPointStateEntity:WH2,liveViewerLeaderboardPointsEntity:z1w,liveReactionsDataEntity:W9d,logoEntity:$ua,macroMarkerEntity:Z2R,
mainDownloadsLibraryEntity:iQw,mainDownloadsListEntity:OQt,mainPlaylistDownloadStateEntity:yP4,mainPlaylistEntity:APw,mainPlaylistVideoEntity:xzG,mainVideoDownloadStateEntity:o94,mainVideoEntity:Fdd,markersEngagementPanelSyncEntity:QTa,markersVisibilityOverrideEntity:p9a,musicAlbumReleaseDetail:hB2,musicAlbumReleaseDownloadMetadataEntity:M57,musicAlbumRelease:w94,musicAlbumReleaseUserDetail:C3G,musicArtistDetail:O2w,musicArtist:i2a,musicArtistUserDetail:aOT,musicDownloadsLibraryEntity:jT2,musicLibraryEdit:y9w,
musicLibraryStatusEntity:oya,musicPlaylist:mPw,musicPlaylistDownloadMetadataEntity:P3T,musicShare:RBx,musicTrackDetail:A92,musicTrackDownloadMetadataEntity:r92,musicTrack:NWa,musicTrackUserDetail:xPw,offlineOrchestrationActionWrapperEntity:t8a,offlineVideoPolicy:kp7,offlineVideoStreams:DZt,offlineabilityEntity:mzx,orchestrationWebSamplingEntity:Uza,pageHeaderEntity:kiR,pdpStateEntity:pbN,pinnedProductEntity:X9p,playbackData:dZT,playerStateEntity:lON,quantityIncrementerEntity:lF4,refresh:e1t,saveToPlaylistListEntity:BQR,
selectedChipIndexEntityPayload:gyT,settingEntity:r4w,stringEntity:hb4,suggestedFeedbackChipStateEntity:IOR,transfer:nga,trendingOfferEntity:c9N,videoDownloadContextEntity:V82,videoOverviewAsyncDataEntity:Kaw,videoPlaybackPositionEntity:PAN,votingEntity:n3w,ytMainChannelEntity:bQ7,youchatPendingResponseEntity:qrR,ytMainDownloadedVideoEntity:Rsa,ytMainVideoEntity:GPN};var nc4,$Tx,qv,$Pf,X92,Th_,vc2,fn4,cJd;nc4=function(G,H){this.JSC$12872_wrapped=G;this.JSC$12872_encoderRegistry=H;this.changedKeys={}};
$Tx=function(G,H){return VB4(G.JSC$12872_encoderRegistry,H.version).decode(H.data,H.key)};
_.X6N=function(G,H,Z){return G.JSC$12872_wrapped.objectStore("EntityStore").get(H).then(function(Q){if(Q){if(Z&&Q.entityType!==Z)throw Error("Jf");return $Tx(G,Q)}})};
qv=function(G,H,Z){return Z?(Z=Z.map(function(Q){return _.X6N(G,Q,H)}),FP.all(Z)):G.JSC$12872_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(H)).then(function(Q){return Q.map(function(p){return $Tx(G,p)})})};
_.V5b=function(G,H,Z){var Q=Fd3(H),p=VB4(G.JSC$12872_encoderRegistry,1),l=Object.assign({},H);return G.JSC$12872_wrapped.objectStore("EntityStore").get(Q).then(function(q){if(q){if(q.entityType!==Z)throw Error("Jf");l.entityMetadata||(q=$Tx(G,q),l.entityMetadata=q.entityMetadata)}}).then(function(){var q={key:Q,
entityType:Z,data:p.encode(l,Q),version:1};return FP.all([G.JSC$12872_wrapped.objectStore("EntityStore").put(q),cJd(G,l,Z)])}).then(function(){Th_(G,Q,Z);
return Q})};
$Pf=function(G,H){var Z=_.YK(H).entityType;return FP.all([G.JSC$12872_wrapped.objectStore("EntityStore").delete(H),fn4(G,H)]).then(function(){Th_(G,H,Z)})};
X92=function(G,H,Z,Q){var p=VB4(G.JSC$12872_encoderRegistry,1);return _.X6N(G,H,Q).then(function(l){if(l){l=OQu(l,Z);var q={key:H,entityType:Q,data:p.encode(l,H),version:1};return FP.all([G.JSC$12872_wrapped.objectStore("EntityStore").put(q),cJd(G,l,Q)])}}).then(function(){Th_(G,H,Q);
return H})};
Th_=function(G,H,Z){var Q=G.changedKeys[Z];Q||(Q=new Set,G.changedKeys[Z]=Q);Q.add(H)};
vc2=function(G,H,Z){var Q=Fd3(H);Z=t5X(Z);if(!Z)return FP.resolve([]);Z=new Z(H);G=G.JSC$12872_wrapped.objectStore("EntityAssociationStore");H=[];Z=_.I(Z.getAssociations());for(var p=Z.next();!p.done;p=Z.next())H.push(G.put({parentEntityKey:Q,childEntityKey:p.value}));return FP.all(H).then(function(l){return l.map(function(q){return q[1]})})};
fn4=function(G,H){return G.JSC$12872_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(H))};
cJd=function(G,H,Z){var Q=Fd3(H);return fn4(G,Q).then(function(){return vc2(G,H,Z)})};var W4p=function(){};
_.T(W4p,Ug);W4p.prototype.encodeImpl=function(G){return G};
W4p.prototype.decodeImpl=function(G){if(G instanceof Uint8Array)throw IOj(0);return G};var dPe=function(){this.cacheMap={};this.cacheMap[0]=new W4p;if(!_.V("aes_pes_encoder_killswitch")){var G=this.cacheMap;try{var H=_.w7();var Z=BWf(H);var Q=new RI(new JJT(Z),new tBG(Z))}catch(p){throw G=p instanceof Error?new Zf("KEY_CREATION_FAILED",{originalMessage:p.message}):new Zf("KEY_CREATION_FAILED"),_.me(G),G;}G[1]=Q}},VB4=function(G,H){H=H===void 0?0:H;
G=G.cacheMap[H];if(!G)throw H=new Zf("INVALID_ENCODER_VERSION",{encoderVersion:H}),_.me(H),H;return G};var pN=function(G,H){_.wI.call(this);this.token=G;this.JSC$12886_encoderRegistry=H;this.observers=[];G=new _.Qf.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.w7());G.onmessage=this.JSC$12886_handleMessage.bind(this);this.channel=G};
_.T(pN,_.wI);_.Iq=function(G,H,Z){var Q,p,l,q;return _.S(function(u){if(u.nextAddress==1)return u.yield(p9e(G.token),2);if(u.nextAddress!=3)return Q=u.yieldResult,u.yield(_.l7(Q,["EntityStore","EntityAssociationStore"],H,function(B){p=new nc4(B,G.JSC$12886_encoderRegistry);return Z(p)}),3);
l=u.yieldResult;p&&(q=p.changedKeys,Object.keys(q).length>0&&(G.channel.postMessage(q),zF_(G,q)));return u.return(l)})};
pN.prototype.observe=function(G){var H=this;this.observers.push(G);return function(){var Z=H.observers.indexOf(G);Z>=0&&H.observers.splice(Z,1)}};
var kue=function(G){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(_.Iq(G,{mode:"readonly",enableRetries:!0},function(Q){return Q.JSC$12872_wrapped.objectStore("EntityStore").getAll()}),2);
H=Z.yieldResult;return Z.return(Promise.all(H.filter(function(Q){return!!Q}).map(function(Q){var p,l;
return _.S(function(q){if(q.nextAddress==1){p=Q.key;l=Q.entityType;var u=q.yield;var B=eFp(VB4(G.JSC$12886_encoderRegistry,Q.version),Q.data,Q.key);return u.call(q,B,2)}return q.return({key:p,entityType:l,data:q.yieldResult})})})))})};
pN.prototype.JSC$12886_handleMessage=function(G){zF_(this,G.data)};
var zF_=function(G,H){G=_.I(G.observers);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z(H)};
pN.prototype.disposeInternal=function(){this.channel.close()};
var kPf;var Nz,MBR,oyb;Nz={};_.K4_=(Nz.mainVideoEntity="mainVideoEntityActionMetadata",Nz.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Nz.musicTrack="musicTrackEntityActionMetadata",Nz.musicPlaylist="musicPlaylistEntityActionMetadata",Nz);MBR=new _.Gv("DOWNLOADS_ENTITY_TYPE_MAP");_.eS=_.G9("","downloadsPageViewConfigurationEntity");oyb=_.G9("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.$Zj=_.G9("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.G9("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.G9("SMART_DOWNLOADS_ENABLED","settingEntity");_.G9("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var W$f=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var w9f=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var jbw={isLeaderTab:!0};var qMj={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var AP=window,Pv=AP.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",Iio=AP.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||rc,J4f=AP.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||H8,EXa=AP.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Lwd,AWa=AP.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||gXp,gBf=AP.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||JW7;var gOu;iX({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 ZBf=tEe(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(G){return G}}}),rxR=tEe(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(G){return G}}}),LSU=new Map;var pkb=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],GVX;var Pr_=function(G){return _.Lo({type:"SET_EPHEMERAL_ACTION",payload:G})};var rJx={ephemeralAction:null};var w6w=zE({ephemeralAction:function(G,H){G=G===void 0?rJx.ephemeralAction:G;switch(H.type){case "SET_EPHEMERAL_ACTION":return H.payload;default:return G}}});var hF4=function(G){return _.Lo({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:G})};var Crx={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var i8p={sharedUi:Crx,a11y:rJx,entities:{}},MiX={sharedUi:function(G,H){G=G===void 0?Crx:G;switch(H.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},G,{animatedThumbnailEnabled:H.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},G,{inlinePreviewEnabled:H.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},G,{currentPageType:H.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},G,{currentPageSubType:H.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},G,{persistentPanelVisible:H.payload});default:return G}},
a11y:w6w,entities:GPj};var u_W={playlistId:"",inviteLinkURL:""};var O8N={continuationCommand:{}};var Xko=zE({continuationCommand:function(G,H){G=G===void 0?O8N.continuationCommand:G;switch(H.type){case "SET_CONTINUATION_COMMAND":return H.payload.continuationCommand;default:return G}}});var JD2={currentFormId:"",commandsMap:{}};var cDj=zE({isLeaderTab:function(G,H){G=G===void 0?jbw.isLeaderTab:G;switch(H.type){case "SET_IS_LEADER_TAB":var Z,Q;return(Q=H==null?void 0:(Z=H.payload)==null?void 0:Z.isLeaderTab)!=null?Q:G;default:return G}}});var yJ2;_.an7=function(G){return _.Lo({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:G}})};
yJ2=function(G){return _.Lo({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:G}})};var x9={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var KO3=zE({isDesktopSmallWidth:function(G,H){G=G===void 0?x9.isDesktopSmallWidth:G;switch(H.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return H.payload.isDesktopSmallWidth;default:return G}},
isShortsActive:function(G,H){G=G===void 0?x9.isShortsActive:G;switch(H.type){case "SET_IS_SHORTS_ACTIVE":return H.payload.isShortsActive;default:return G}},
isWatchWhileMode:function(G,H){G=G===void 0?x9.isWatchWhileMode:G;switch(H.type){case "SET_IS_WATCH_WHILE_MODE":return H.payload.isWatchWhileMode;default:return G}},
playerState:function(G,H){G=G===void 0?x9.playerState:G;switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return G}},
isFullscreen:function(G,H){G=G===void 0?x9.isFullscreen:G;switch(H.type){case "SET_IS_FULLSCREEN":return H.payload.isFullscreen;default:return G}},
isSmallScreenSqueezeback:function(G,H){G=G===void 0?x9.isSmallScreenSqueezeback:G;switch(H.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return H.payload.isSmallScreenSqueezeback;default:return G}},
isShortsPipActive:function(G,H){G=G===void 0?x9.isShortsPipActive:G;switch(H.type){case "SET_IS_SHORTS_PIP_ACTIVE":return H.payload.isShortsPipActive;default:return G}},
isPlaybackStarted:function(G,H){G=G===void 0?x9.isPlaybackStarted:G;switch(H.type){case "SET_IS_PLAYBACK_STARTED":return H.payload.isPlaybackStarted;default:return G}}});var kVb={currentMode:"canvas-hidden"};var PUM=function(){return function(G){return function(H){var Z=G(H);_.AZ(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[H],!0);return Z}}};var ocp,iR3;ocp=new _.sD;_.LI=new _.Gv("WATCH_PLAYER_PROMISE_TOKEN");_.mTt=new _.sD;_.UTR=new _.Gv("SHORTS_PLAYER_PROMISE_TOKEN");iR3=new _.Gv("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var rD3=function(){return function(G){return function(H){H.type==="ENTITY_LOADED"&&_.tp().resolve(_.LI).then(function(Z){var Q;(Q=Z.dispatchReduxAction)==null||Q.call(Z,H)});
return G(H)}}};var RFN={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var TVb=zE({additionalContext:function(G,H){G=G===void 0?RFN.additionalContext:G;switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var Z;return(Z=H.payload)!=null?Z:"";default:return G}},
impersonatedChannelUrl:function(G,H){G=G===void 0?RFN.impersonatedChannelUrl:G;switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var Z;return(Z=H.payload)!=null?Z:"";default:return G}},
selectedVideoIds:function(G,H){G=G===void 0?RFN.selectedVideoIds:G;switch(H.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var Z={};return Object.assign({},G,(Z[H.payload]=!0,Z));case "VIDEO_UNSELECTED":return H=H.payload,G=Object.assign({},G),delete G[H],G;default:return G}}});var NhT={parentClickTrackingParams:""};var fKX=zE({parentClickTrackingParams:function(G,H){G=G===void 0?NhT.parentClickTrackingParams:G;switch(H.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return H.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return G}}});var AJ_=function(G){return _.Lo({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:G})},xTG=function(G){return _.Lo({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:G})};var L4d={stepStates:{}};var vEb=zE({stepStates:function(G,H){G=G===void 0?L4d.stepStates:G;switch(H.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var Z=G,Q=H.payload,p,l,q;G={};H={selectionStates:Object.assign({},(q=(p=Z[Q.stepId])==null?void 0:p.selectionStates)!=null?q:{},(G[Q.token]={isSelected:Q.isSelected},G)),userQuery:(l=Z[Q.stepId])==null?void 0:l.userQuery};p={};return Object.assign({},Z,(p[Q.stepId]=H,p));case "TALK_TO_RECS_UPDATE_USER_QUERY":return p=G,l=H.payload,q=
{selectionStates:Object.assign({},(Q=(Z=p[l.stepId])==null?void 0:Z.selectionStates)!=null?Q:{}),userQuery:{userQuery:l.userQuery,token:l.userQueryToken}},Z={},Object.assign({},p,(Z[l.stepId]=q,Z));default:return G}}});var EcN,YU4,b8x;EcN=function(G){return _.Lo({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:G})};
YU4=function(G){return _.Lo({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:G})};
_.dq=function(G){return _.Lo({type:"SET_CURRENT_PAGE_TYPE",payload:G})};
_.F4x=function(G){return _.Lo({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:G})};
b8x=function(G){return _.Lo({type:"SET_CHIP_BAR_IS_STICKY",payload:G})};var dtU={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"};_.GKw=function(G){return _.Lo({type:"SET_PLAYER_STATE",payload:{playerState:G}})};var LQ={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:nEj(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var WOj=zE({isTheaterMode:function(G,H){G=G===void 0?nEj():G;switch(H.type){case "SET_IS_THEATER_MODE":return H.payload.isTheaterMode;default:return G}},
isWatchActive:function(G,H){G=G===void 0?LQ.isWatchActive:G;switch(H.type){case "SET_IS_WATCH_ACTIVE":return H.payload.isWatchActive;default:return G}},
isLearningJourneyActive:function(G,H){G=G===void 0?LQ.isLearningJourneyActive:G;switch(H.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return H.payload.isLearningJourneyActive;default:return G}},
isWatchFullscreen:function(G,H){G=G===void 0?LQ.isWatchFullscreen:G;switch(H.type){case "SET_IS_WATCH_FULLSCREEN":return H.payload.isWatchFullscreen;default:return G}},
isWatchNarrowWidth:function(G,H){G=G===void 0?LQ.isWatchNarrowWidth:G;switch(H.type){case "SET_IS_WATCH_NARROW_WIDTH":return H.payload.isWatchNarrowWidth;default:return G}},
isSwatcherooActive:function(G,H){G=G===void 0?LQ.isSwatcherooActive:G;switch(H.type){case "SET_IS_SWATCHEROO_ACTIVE":return H.payload.isSwatcherooActive;default:return G}},
isWatchRetroMode:function(G,H){G=G===void 0?LQ.isWatchRetroMode:G;switch(H.type){case "SET_IS_WATCH_RETRO_MODE":return H.payload.isWatchRetroMode;default:return G}},
isLiveChatCollapsed:function(G,H){G=G===void 0?LQ.isLiveChatCollapsed:G;switch(H.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return H.payload.isLiveChatCollapsed;default:return G}},
openEngagementPanels:function(G,H){G=G===void 0?LQ.openEngagementPanels:G;var Z=[].concat(_.OP(G));switch(H.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return Z.push(H.payload.panelToAdd),Z;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return Z.splice(Z.indexOf(H.payload.panelToRemove),1),Z;default:return G}},
playerState:function(G,H){G=G===void 0?LQ.playerState:G;switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return G}},
watchScrollTop:function(G,H){G=G===void 0?LQ.watchScrollTop:G;switch(H.type){case "SET_WATCH_SCROLL_TOP":return H.payload.watchScrollTop;default:return G}},
watchWindowSize:function(G,H){G=G===void 0?LQ.watchWindowSize:G;switch(H.type){case "SET_WATCH_WINDOW_SIZE":return H.payload.watchWindowSize;default:return G}}});var H5a={surveyFeedbackData:{feedbackTokens:[]}};var znW=zE({surveyFeedbackData:function(G,H){G=G===void 0?H5a.surveyFeedbackData:G;switch(H.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return H.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},G,H.payload);default:return G}}});var Vio={};var hn2=void 0;_.V("web_enable_redux_store_on_demand")||(hn2=wkW());var sw7=function(G,H,Z){var Q=this;this.listId=G;this.JSC$13030_updateCallback=H;this.isOfflineVideoCallback=Z;_.mm().subscribe(function(){Q.handleUpdate()})};
sw7.prototype.getPlaylistData=function(){var G=_.mm().getState().entities;if(this.listId&&this.listId!=="PPSV"){var H=F$e(G,this.listId,!0),Z=_.G9(this.listId,"mainPlaylistEntity"),Q,p;G=G==null?void 0:(Q=G.mainPlaylistEntity)==null?void 0:(p=Q[Z])==null?void 0:p.title;return CUR(H,G,this.listId)}H=_.hBv(WHv(G));G=_.hBv(_.nN(G));G=H.concat(G);return CUR(G)};
sw7.prototype.getPlaylistId=function(){return this.listId};
sw7.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13030_updateCallback(this.listId,this.getPlaylistData(),{})};var Eg=function(G,H,Z,Q){Q=Q===void 0?[]:Q;this.JSC$13033_playlistNetworkManager=G;this.listId=H;this.JSC$13033_updateCallback=Z;this.videoIds=Q;this.pendingUpdates=[];this.currentIndex=0};
Eg.prototype.JSC$13033_setCurrentIndex=function(G){this.currentIndex=G};
Eg.prototype.setListId=function(G){this.listId=G};
var Z5t=function(G,H){G.currentCreateRequest&&G.currentCreateRequest.cancel(H);G.currentUpdateRequest&&G.currentUpdateRequest.cancel(H);G.currentRefreshRequest&&G.currentRefreshRequest.cancel(H)};
Eg.prototype.delete=function(){Z5t(this,"PROXY DELETED")};
Eg.prototype.addVideos=function(G,H,Z){var Q=this;Z!==void 0?this.videoIds.splice.apply(this.videoIds,[Z,0].concat(_.OP(G))):this.videoIds.push.apply(this.videoIds,_.OP(G));this.listId||this.currentCreateRequest?(G.forEach(function(p,l){p={addedVideoId:p,action:"ACTION_ADD_VIDEO"};Z&&(p.addedVideoPosition=Z+l);Q.pendingUpdates.push(p)}),Y9(this)):Qw7(this,H.onCreateListCommand)};
var p_G=function(G,H,Z,Q,p){OWW(G.videoIds,H,Z);H>G.currentIndex&&Z<=G.currentIndex?G.JSC$13033_setCurrentIndex(G.currentIndex+1):H===G.currentIndex?G.JSC$13033_setCurrentIndex(Z):H<G.currentIndex&&Z>=G.currentIndex&&G.JSC$13033_setCurrentIndex(G.currentIndex-1);G.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:Q,movedSetVideoIdPredecessor:p});Y9(G)},Qw7=function(G,H){Z5t(G,"OBSOLETE");
G.currentCreateRequest=luT(G.JSC$13033_playlistNetworkManager,H,G.videoIds);_.fK(G.currentCreateRequest,function(){G.currentCreateRequest=void 0}).then(function(Z){G.setListId(Z.playlistId);
G.pendingUpdates.length>0?Y9(G):gZG(G)})},Y9=function(G){if(G.pendingUpdates.length!==0&&(G.currentRefreshRequest&&G.currentRefreshRequest.cancel("OBSOLETE"),!G.currentUpdateRequest&&!G.currentCreateRequest)){var H=G.pendingUpdates.splice(0,G.pendingUpdates.length);
G.currentUpdateRequest=G.JSC$13033_playlistNetworkManager.updatePlaylist(G.listId,H);_.fK(G.currentUpdateRequest,function(){G.currentUpdateRequest=void 0}).then(function(){G.pendingUpdates.length>0?Y9(G):gZG(G)}).thenCatch(function(){G.pendingUpdates.unshift.apply(G.pendingUpdates,_.OP(H))})}},gZG=function(G){G.currentRefreshRequest=_.Iut(G.JSC$13033_playlistNetworkManager,G.listId,G.currentIndex,G.videoIds[G.currentIndex]);
_.fK(G.currentRefreshRequest,function(){G.currentRefreshRequest=void 0}).then(function(H){G.JSC$13033_updateCallback(H.playlistId,H.playlistPanelRenderer,H.autoplayRenderer)})};
Eg.prototype.size=function(){return this.videoIds.length};var qEa=function(G,H,Z,Q){Q=Q===void 0?[]:Q;Eg.call(this,G,H,Z,Q);this.JSC$13033_playlistNetworkManager=G;this.listId=H;this.JSC$13033_updateCallback=Z;this.videoIds=Q};
_.T(qEa,Eg);_.Fo=function(G,H,Z,Q,p,l,q){p=p===void 0?[]:p;q=q===void 0?pK:q;Eg.call(this,G,H,Z,p);this.JSC$13033_playlistNetworkManager=G;this.listId=H;this.JSC$13033_updateCallback=Z;this.onAuthChange=Q;this.videoIds=p;this.storage=l;this.cookieReader=q;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.E6(_.Ui,this.checkLoggedInStatusChange.bind(this),1E3)};
_.T(_.Fo,Eg);_.g=_.Fo.prototype;_.g.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.E6(_.Ui,this.checkLoggedInStatusChange.bind(this),1E3)};
_.g.JSC$13033_setCurrentIndex=function(G){Eg.prototype.JSC$13033_setCurrentIndex.call(this,G);this.store()};
_.g.delete=function(){_.Ui.cancelJob(this.queueSapisIdJob);Eg.prototype.delete.call(this)};
_.g.setListId=function(G){Eg.prototype.setListId.call(this,G);this.store()};
_.g.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var SER=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],uRG=["playerResponse","videoDetails"],B$a=["response","currentVideoEndpoint","watchEndpoint","videoId"],J77=["response","currentVideoEndpoint","watchEndpoint","playlistId"],tf7=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],kKa=["response","contents","twoColumnWatchNextResults","playlist","playlist"],DRd=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
dR4=["response","contents","twoColumnWatchNextResults"];var bZ={},oEM=(bZ.WEB_UNPLUGGED="^unplugged/",bZ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",bZ.WEB_UNPLUGGED_OPS="^unplugged/",bZ.WEB_UNPLUGGED_PUBLIC="^unplugged/",bZ.WEB_CREATOR="^creator/",bZ.WEB_KIDS="^kids/",bZ.WEB_EXPERIMENTS="^experiments/",bZ.WEB_MUSIC="^music/",bZ.WEB_REMIX="^music/",bZ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",bZ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",bZ);var Jzu,luT;Jzu=function(G,H){this.networkManager=G;this.innertubeTransportService=H};
luT=function(G,H,Z){if(!_.X(H,_.Ge))return _.DJ(Error("Nf"));_.X(H,_.Ge).videoIds=Z;Z={create_playlist_title:_.Zg("QUEUE",void 0,"Queue")};return aK2(_.wb(G.innertubeTransportService,H,Z),iBv)};
_.Iut=function(G,H,Z,Q){H={videoId:Q,playlistId:H,playlistIndex:Z};Z=_.U7(kQR);return aK2(_.GP(G.innertubeTransportService,H,Z),yDW)};
Jzu.prototype.updatePlaylist=function(G,H){return aK2(_.wb(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:G,actions:H}}),OBj)};var em2=function(G){this.storage=G},nZa;
em2.prototype.store=function(G,H){H=H===void 0?0:H;if(this.storage&&G.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",G),this.storage.set("TLPQindex",String(H)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(Z){}};
em2.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
em2.prototype.getPlaylistId=function(){if(!this.storage)return null;var G=null;try{G=this.storage.get("TLPQplaylist")}catch(H){}return G};var NVU=["navigationEndpoint","watchEndpoint","videoId"],RnM=["nextButtonVideo","watchEndpoint","videoId"];_.J0=new _.Gv("NETWORK_TOKEN");_.o0=new _.Gv("PAGE_TOKEN");_.H9=new _.Gv("PLAYLIST_TOKEN");var Vf_;Vf_=new _.Gv("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.t0=new _.Gv("INNERTUBE_TRANSPORT_TOKEN");var $R_,sr,c7G,T$x,vZN,WE7;$R_=new Set(["ci","cr","carml"]);sr=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13080_parkedJobs=new Map;this.parkedProcessors=new Map};
_.ZO=function(){sr.instance||(sr.instance=new sr);return sr.instance};
sr.prototype.onAny=function(G){return _.X_2(this,G,2)};
sr.prototype.parkOrScheduleJob=function(G,H,Z,Q,p){_.QA(this,Z)?_.DG().addJob(G,H,Q):(p&&(G=c7G(G),T$x(this,G,H,Z,p)),p=this.JSC$13080_parkedJobs.get(Z),p||(this.JSC$13080_parkedJobs.set(Z,[]),p=this.JSC$13080_parkedJobs.get(Z)),p.push({job:G,priority:H,delay:Q}))};
sr.prototype.addListener=function(G,H,Z){Z&&(H=c7G(H),T$x(this,H,0,G,Z));Z=this.parkedProcessors.get(G);Z||(this.parkedProcessors.set(G,[]),Z=this.parkedProcessors.get(G));Z.push(H)};
sr.prototype.processSignal=function(G){if(!_.QA(this,G)){this.inProgressSignals.add(G);var H=this.JSC$13080_parkedJobs.get(G);if(H){H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,_.DG().addJob(Z.job,Z.priority,Z.delay);this.JSC$13080_parkedJobs.delete(G)}if(H=this.parkedProcessors.get(G)){H=_.I(H);for(Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z();this.parkedProcessors.delete(G)}this.signals.push(G);this.inProgressSignals.delete(G)}};
_.QA=function(G,H){return $R_.has(H)||_.YI("IS_HOMEPAGE_COLD")||_.YI("IS_RESULTS_PAGE_COLD")||_.YI("IS_WATCH_PAGE_COLD")?G.signals.indexOf(H)>=0:!0};
c7G=function(G){var H=!1;return function(){H||(H=!0,G())}};
T$x=function(G,H,Z,Q,p){if(fuw.has(Q))_.DG().addJob(H,Z,p);else{var l=G.compoundSignals.get(Q);l&&_.DG().addJob(function(){_.QA(G,Q)||(l.isTimeoutConditionSatisfied?_.DG().addJob(H,Z):l.timeoutConditionObservers.push(function(){_.DG().addJob(H,Z)}))},Z,p)}};
_.X_2=function(G,H,Z){if(H.length>1){var Q=[],p=Object.create(null);H=_.I(H);for(var l=H.next();!l.done;l=H.next())l=l.value,p[l]||(Q.push(l),p[l]=!0);H=Q}if(H.length===1)return H[0];l=H;Q="";p=Z===2?"|":"&";l.sort();l=_.I(l);for(var q=l.next();!q.done;q=l.next())Q+=q.value+p;if(!G.compoundSignals.get(Q)){p=0;l=[];q=_.I(H);for(var u=q.next();!u.done;u=q.next())u=u.value,p++,_.QA(G,u)||l.push(u);(Z=Z===2)&&p>l.length||!Z&&!l.length?G.signals.push(Q):vZN(G,Q,Z,H,l)}return Q};
vZN=function(G,H,Z,Q,p){var l=p.length,q=function(){Z||--l===0?G.processSignal(H):WE7(G,H)};
p=_.I(p);for(var u=p.next();!u.done;u=p.next())G.addListener(u.value,q);G.compoundSignals.set(H,{signals:Q,isOnAny:Z,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});WE7(G,H)};
WE7=function(G,H){if(!_.QA(G,H)){var Z=G.compoundSignals.get(H);if(Z&&!Z.isTimeoutConditionSatisfied){for(var Q=!1,p=0,l=0,q=_.I(Z.signals),u=q.next();!u.done;u=q.next()){var B=u.value;u=!_.QA(G,B);fuw.has(B)?Q=!0:(B=G.compoundSignals.get(B))?u&&!B.isTimeoutConditionSatisfied&&(l++,Z.isInitialized||B.timeoutConditionObservers.push(function(){WE7(G,H)})):u&&p++}Z.isInitialized=!0;
Z.isOnAny?Q&&(Z.isTimeoutConditionSatisfied=!0):p===0&&l===0&&(Z.isTimeoutConditionSatisfied=!0);if(Z.isTimeoutConditionSatisfied)for(Z=_.I(Z.timeoutConditionObservers),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q()}}};
sr.prototype.processSignal=sr.prototype.processSignal;sr.prototype.parkOrScheduleJob=sr.prototype.parkOrScheduleJob;sr.prototype.onAny=sr.prototype.onAny;_.u7("ytsignals.getInstance",_.ZO);sr.prototype.onAny=sr.prototype.onAny;sr.prototype.parkOrScheduleJob=sr.prototype.parkOrScheduleJob;sr.prototype.processSignal=sr.prototype.processSignal;var fuw=new Set(["eop","eocs","dl","pcl"]);_.WM=new _.Gv("MINIPLAYER_SERVICE");var p2,zmG,KEa;p2=function(G,H,Z){var Q=_.sS.getInstance();if(!nZa){var p=new yUo;var l=void 0,q=_.xI("ID_TOKEN");q&&p.isAvailable()&&(l=new yD(p,"yt-queue"+q));nZa=new em2(l)}p=nZa;l=_.ZO();this.JSC$13087_actionRouter=Q;this.JSC$13087_pageManager=G;this.playlistManager=H;this.JSC$13087_playlistNetworkManager=Z;this.storage=p;this.signals=l;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.l3=function(){if(!zmG){var G=_.tp(),H=G.resolve(_.Jp(_.o0)),Z=G.resolve(_.Jp(_.J0)),Q=G.resolve(_.Jp(_.H9));G=G.resolve(_.t0);zmG=new p2(H,Q,new Jzu(Z,G))}return zmG};
KEa=function(G,H,Z){if(Z){var Q;if(((Q=G.responsePlaylistData)==null?void 0:Q.playlistId)!==Z)return}G.responsePlaylistData&&(Z=FOW(H,G.responsePlaylistData),G.responsePlaylistData=(0,_.oN.unsafeClone)(G.responsePlaylistData),Gij(G.responsePlaylistData,Z));Z=G.temporaryItems.findIndex(function(p){return p.videoId===H});
Z>-1&&G.temporaryItems.splice(Z,1);_.gW(G,_.IT(G,G.response?G.response.autoplayRenderer:void 0))};
_.Mf7=function(G,H){if(G.responsePlaylistData){var Z=bBe(H,G.responsePlaylistData);Gij(G.responsePlaylistData,Z);if(G.queueProxy){var Q=G.queueProxy;Z<0||(Q.videoIds.splice(Z,1),Z<Q.currentIndex&&Q.JSC$13033_setCurrentIndex(Q.currentIndex-1),Q.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:H}),Y9(Q))}}_.gW(G,_.IT(G,G.response?G.response.autoplayRenderer:void 0))};
p2.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.gW(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
p2.prototype.setPlaylistData=function(G,H,Z){this.temporaryItems=[];this.listId=G;this.responsePlaylistData=H;_.gW(this,_.IT(this,Z))};
var jw4=function(G){return(G==null?0:G.playlistId)?G.playlistId:"PPSV"},PRx=function(G){return G&&G.playlistId?G.playlistId==="PPSV"?!0:EyR(_.mm().getState().entities,G.playlistId):!1};
p2.prototype.isPlayingOfflineVideo=function(){return this.response?PRx(this.response):!1};
p2.prototype.closeMiniplayer=function(G){var H=this.queueProxy&&this.queueProxy.size()<=1,Z=_.tp().resolve(_.WM);if(!this.queueProxy||H)this.queueProxy&&this.clearQueue(),Z.close(!0);else{Z.pipController.getWindow()&&window.focus();H=this.responsePlaylistData;var Q=this.temporaryItems.length+(H&&H.contents?H.contents.length:0);H=_.Zg("QUEUE_CLEARED_UNPLURALIZED")||_.QY("QUEUE_CLEARED",Q);H=_.Nv(H);Z=_.Zg("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");Q=_.Zg("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.QY("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",Q);var p=_.Zg("MINIPLAYER_CLOSE",void 0,"Close"),l=_.Zg("CANCEL",void 0,"Cancel");_.hA(this.JSC$13087_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.aq(Z),dialogMessages:[_.aq(Q)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aq(p),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
H]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.aq(l)}}}}}}],G)}};
_.IT=function(G,H){var Z={},Q=G.response;Z.autoplayRenderer=H;if(!G.responsePlaylistData&&!G.temporaryItems.length)return!Q||!Q.hasRelatedVideoData&&_.V("kevlar_prefetch_data_augments_network_data")||(Z.playerData={rvs:Q.relatedVideoArgs,endScreenRenderer:Q.endScreenRenderer}),Z;Z.playerData={};if(G.index===void 0)return _.me(Error("Pf")),Z;Z.panel=G.responsePlaylistData?(0,_.oN.unsafeClone)(G.responsePlaylistData):{titleText:_.aq(_.Zg("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
H=Z.panel;if(H.contents)for(var p=_.I(G.temporaryItems),l=p.next();!l.done;l=p.next())H.contents.push({playlistPanelVideoRenderer:l.value});G.queueProxy&&Q&&Q.playingVideo&&Q.playingVideoId&&!Ynj(Q.playingVideoId,Z.panel)&&(H=Q.playingVideo,p=Z.panel,l=G.index,p.contents&&p.contents.splice(l===void 0?0:l,0,{playlistPanelVideoRenderer:H}));Q&&Q.playingVideoId&&(H=G.index,p=Z.panel,H=!p.contents||H>=p.contents.length?void 0:p.contents[H].playlistPanelVideoRenderer,H&&H.videoId===Q.playingVideoId||(H=
FOW(Q.playingVideoId,Z.panel),G.index=H!==-1?H:G.index?G.index-1:0));H=EE3(G.index+1,Z.panel);p=void 0;G.index>0&&(p=EE3(G.index-1,Z.panel));if(p||H)Z.autoplayRenderer=ADu(H,p,Z.autoplayRenderer);!H&&(Q==null?0:Q.relatedVideoArgs)&&(Z.playerData.rvs=Q.relatedVideoArgs);Q=Q?Q.playlistIndexOffset:0;G.queueProxy?Zdf(Z.panel,G.index,Q,LO2,!0,!0,!0):Zdf(Z.panel,G.index,Q);Z.playerData.playlistPanelRenderer=Z.panel;return Z};
p2.prototype.openToast=function(G){_.tp().resolve(_.WM).openToast(G,_.Zg("ADDED_TO_QUEUE",void 0,"Added to queue"))};
p2.prototype.isMiniplayerActive=function(){return _.tp().resolve(_.WM).isMiniplayerActive()};
_.gW=function(G,H){G.playlistManager.setAutoplayRenderer(H.autoplayRenderer||null);G.playlistManager.setPlaylistData(H.panel||null);H.playerData&&G.playlistManager.setPlayerPlaybackControlData(H.playerData)};var pr2="#";var r7a={},w_N={},hm2={},CR_={},i5a={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:(r7a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",r7a),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:(w_N.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",w_N),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:(hm2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",hm2),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:(CR_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",CR_),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 o3o=[{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:i5a},{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:i5a}}];var jrR;_.H$=[[["a2luZCM5bThxZXVxZWJkaW0=","YWx1ZSNtcDUxcDlkMzU2eDR2"],"VEFSVCNjZXYzdHRzaGJiOXJBRF9QTEFDRU1FTlRfS0lORF9T"]];
jrR=[[["bWFyeSM3MmEzeW96M3F2bHRwcmk=",null,null],[null,["ZGVyZXIjNndqdmp2djhteTJ5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW4=","Y29wZSMybm5idHR1N2t5N2tzdHlsZS1z"],null],["ZC1hZCNuaHR6aGl0bDA5YzdtYXN0aGVh",["ZXJlciN6N295a2toeXFqaWp5dGQtcmljaC1ncmlkLXJlbmQ="],null],[null,["ZXJlciM2Mm9wMXVqcmwzbnN5dGQtcmljaC1ncmlkLXJlbmQ=","Y29wZSNxaDNudml4bmtvd3lzdHlsZS1z"],null],[null,["ZXJlciNlb20za3dpcjZsZmt5dGQtYmFubmVyLXByb21vLXJlbmQ=","Y29wZSMzbTEzc2htb2JvaWxzdHlsZS1z"],null],[null,["ZXJlciN1am9vMm95eTcyM3J5dGQtYWQtc2xvdC1yZW5k"],
null]],[["LWFkcyMzMmdqMHRuNDJndzhwbGF5ZXI=",null,null]]];_.Gz=["YWNrcyNlejFuc2wzY21qaHVnbG9iYWxDYWxsYg==","Y3RlZCNodThtMG1pbDRidmVvbkFibm9ybWFsaXR5RGV0ZQ==","U2tpcCNyZ3Fvbjl5NnNod3pvbkFk","b25zZSNuajlzMHZnbHgzY2RyYXdfcGxheWVyX3Jlc3A=","bG90cyNna2h4aG44cnhuaXhhZFM="];_.qP="YWNrcyNlejFuc2wzY21qaHVnbG9iYWxDYWxsYg== Y3RlZCNodThtMG1pbDRidmVvbkFibm9ybWFsaXR5RGV0ZQ== U2tpcCNyZ3Fvbjl5NnNod3pvbkFk b25zZSNuajlzMHZnbHgzY2RyYXdfcGxheWVyX3Jlc3A= c19rcyN2OHMzcDZxMDhzdmV3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcA== YV9lZiM2YnQ1djYydnRsemJhYl9z bG90cyNna2h4aG44cnhuaXhhZFM=".split(" ");var S5;S5=function(G,H,Z){this.pu4=G;this.qYy=H;this.bCi=Z};
_.Ga2=[new S5("b.f_",!1,0),new S5("j.s_",!1,2),new S5("r.s_",!1,4),new S5("e.h_",!1,6),new S5("i.s_",!0,8),new S5("s.t_",!1,10),new S5("p.h_",!1,12),new S5("s.i_",!1,14),new S5("f.i_",!1,16),new S5("a.b_",!1,18),new S5("a.o_",!1),new S5("g.o_",!1,22),new S5("p.i_",!1,24),new S5("p.m_",!1),new S5("n.k_",!0,20),new S5("i.f_",!1),new S5("a.s_",!0),new S5("m.c_",!1),new S5("n.h_",!1,26),new S5("o.p_",!1),new S5("m.p_",!0,28),new S5("o.a_",!1),new S5("d.p_",!1),new S5("e.i_",!1)].reduce(function(G,H){G[H.pu4]=
H;return G},{});var O5w=function(){};
O5w.prototype.flush=function(G,H){G=G===void 0?[]:G;H=H===void 0?!1:H;if(_.V("enable_client_streamz_web")){G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Svd(Z.value),this.rootSpec&&_.fq(Z,2,this.rootSpec),Z={serializedIncrementBatch:_.Cm(Z.JSC$9616_serializeBinary())},_.yR("streamzIncremented",Z,{sendIsolatedPayload:H})}};
var S5R=function(){};
_.T(S5R,O5w);var aup=function(G){var H=new Zba;var Z=new Gyw;Z=_.ha(Z,1,"botguard");G=_.ha(Z,2,G);this.rootSpec=_.vO(H,1,QMp,G)};
_.T(aup,O5w);var Ya,y7_=new Map;var hgv,ByM,$JM,kij,egU,K9f,idW,W93;hgv=2;ByM=2;$JM=2;kij=2;egU=2;K9f=2;idW=2;W93=new Q1R;var mRG,URd;mRG=function(){this.ongoingFlowNonces=new Map};
_.Q$=function(){URd||(URd=new mRG);return URd};
_.Zp=function(G,H,Z){return{eventType:{flowEventNamespace:G,flowEventType:H},metadata:Z,statusCode:void 0,csn:void 0,can:void 0}};
_.skj=function(G,H){var Z=_.Q$(),Q=Rm4(Z,H,!0);Z.logFlowEvent(G,H,Q,void 0)};
mRG.prototype.logFlowEvent=function(G,H,Z,Q){H={flowNonce:Z||Rm4(this,H),flowType:H,flowEventType:G.eventType};G.metadata&&(H.flowMetadata=G.metadata);G.statusCode!==void 0&&(H.flowEventStatus=G.statusCode);G.csn&&(H.csn=G.csn);G.can&&(H.can=G.can);_.yR("flowEvent",H,Q)};
var Rm4=function(G,H,Z){Z=Z===void 0?!1:Z;var Q=G.ongoingFlowNonces.get(H);if(!Q||Z)Q=eu(16),G.ongoingFlowNonces.set(H,Q);return Q};_.N$R=new ZgN;var gzj={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 u3=function(G,H,Z,Q,p,l,q){Z=Z===void 0?!1:Z;Q=Q===void 0?!1:Q;l=l===void 0?_.l3():l;this.hasRun=!1;this.kkW=G;this.dTn=H;this.eRi=Z;this.fromHistory=Q;this.previousVideoId=p;this.noq=l;this.tempData=q;this.dZk=new _.pP4};
_.T(u3,k9);u3.prototype.validate=function(G){return!(!G.data.playerResponse||G.data.page!=="watch"&&G.data.page!=="learning_journey_watch"&&G.data.page!=="shorts"||this.hasRun)};
u3.prototype.handle=function(G){var H=this,Z=_.X(G.endpoint,_.hZ),Q=_.X(G.endpoint,_.uS);if(_.V("kevlar_continue_playback_without_player_response")&&(Z==null?0:Z.videoId)&&this.previousVideoId&&(Z==null?void 0:Z.videoId)===this.previousVideoId&&(Z==null?0:Z.continuePlayback)&&!this.fromHistory)this.kkW.resolve();else{var p={};Z?p.watch_endpoint=Z:Q&&(p.watch_endpoint=Q,Q.endTimeSeconds&&(p.end=Q.endTimeSeconds));G.data.page==="watch"?(G.data.filler||this.eRi||(_.TD("cfg"),_.sS.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(p,A7a(this,G.endpoint)),_.V("enable_masthead_quartile_ping_fix")&&Object.assign(p,xR2(this)),Object.assign(p,void 0),G.data.forceExternalPlaylist&&(p.external_list=!0)):G.data.page==="shorts"?_.sS.getInstance().triggerAction("yt-start-loading-shorts"):G.data.page==="learning_journey_watch"&&_.sS.getInstance().triggerAction("yt-start-loading-learning-journey");if(Z=this.dTn()){try{Z.loadVideoWithPlayerResponse(G.data.playerResponse,p),Z.getPlayerPromise().then(this.kkW.resolve)}catch(l){_.me(l),
this.kkW.resolve()}this.hasRun=!0;Z.getPlayerPromise().then(function(l){l.addEventListener("onAbnormalityDetected",function(){var q=G.data.playerResponse,u=l.getVideoData().cpn;idW=0;_.oZa=u;if(u=bdf(q))H.dZk.increment("IN_PLAYER"),_.p3(5),_.V("ab_st_vid_ks")?l.pauseVideo(!0):l.stopVideo(),q.playabilityStatus=Object.assign({},q.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:u}}),q.videoDetails=void 0,_.sS.getInstance().triggerOptionalAction("yt-updated-playability-status",
q.playabilityStatus)})})}else _.Rp(Error("Sf"))}};
var A7a=function(G,H){var Z=_.X(H,_.hZ);if(H&&Z&&Z.playlistId&&Z.videoId&&(G=G.noq,G.queueProxy?(G=G.queueProxy,Z=G.listId===Z.playlistId?G.attributionData.get(Z.videoId):void 0):Z=void 0,Z))return{queue_info:Z}},xR2=function(G){var H;
if((H=G.tempData)==null?0:H.adpings)return{adpings:G.tempData.adpings}};var B9=function(G,H,Z){this.hasRun=!1;this.rMk=G;this.t5H=H;this.zRT=Z};
_.T(B9,k9);B9.prototype.validate=function(G){return!!_.oN.getValueByKeys.apply(null,[G.data].concat(_.OP(dR4)))};
B9.prototype.handle=function(G){var H=this;this.rMk.promise.then(function(){var Z=G.data;var Q=_.oN.getValueByKeys.apply(null,[Z].concat(_.OP(SER))),p=_.oN.getValueByKeys.apply(null,[Z].concat(_.OP(kKa))),l=_.oN.getValueByKeys.apply(null,[Z].concat(_.OP(B$a)));var q=(q=_.oN.getValueByKeys.apply(null,[Z].concat(_.OP(uRG))))?{videoId:q.videoId,thumbnail:q.thumbnail,title:q.title?_.aq(q.title):void 0,shortBylineText:q.author?_.aq(q.author):void 0}:void 0;var u=void 0;_.V("web_get_playlist_id_from_current_endpoint_ks")||
(u=_.oN.getValueByKeys.apply(null,[Z].concat(_.OP(J77))));var B=_.oN.getValueByKeys.apply(null,[Z].concat(_.OP(DRd))),t=_.oN.getValueByKeys.apply(null,[Z].concat(_.OP(tf7))),D=!!B||!!t&&!!t.results&&t.results.length>0,d=0;p&&p.currentIndex&&p.localCurrentIndex&&(d=p.currentIndex-p.localCurrentIndex);p&&p.playlistId&&(u=p.playlistId);Z={rawResponse:Z,autoplayRenderer:Q,hasRelatedVideoData:D,playingVideo:q,playingVideoId:l,playlistPanelRenderer:p,playlistId:u,playlistIndex:p&&p.currentIndex,relatedVideoArgs:B,
endScreenRenderer:t,playlistIndexOffset:d};a:{Q=H.zRT;p=H.t5H;Q.response=Z;if(PRx(Z))Q.downloadPlaylistProxy&&Q.downloadPlaylistProxy.getPlaylistId()===jw4(Z)||(Q.downloadPlaylistProxy=new sw7(jw4(Z),Q.setPlaylistData.bind(Q),Q.isPlayingOfflineVideo.bind(Q))),Q.responsePlaylistData=Q.downloadPlaylistProxy.getPlaylistData(),Q.listId=jw4(Z),Q.index=0;else if(Z.playlistPanelRenderer&&Z.playlistId&&Z.autoplayRenderer)Z.playlistId.startsWith("TLPQ")?Q.queueProxy?Q.listId===Z.playlistId?(Q.index=Z.playlistIndex,
Q.responsePlaylistData=Z.playlistPanelRenderer,Q.queueProxy.JSC$13033_setCurrentIndex(Q.index)):Z.playingVideoId&&Q.index!==void 0&&p.clientParams.autoSaveToQueue&&(Q.index+=1,Q.queueProxy.JSC$13033_setCurrentIndex(Q.index),Q.queueProxy.addVideos([Z.playingVideoId],{},Q.index)):(Q.queueProxy=new _.Fo(Q.JSC$13087_playlistNetworkManager,Z.playlistId,Q.setPlaylistData.bind(Q),Q.clearQueue.bind(Q),_.Hde(Z.playlistPanelRenderer),Q.storage),Q.responsePlaylistData=Z.playlistPanelRenderer,Q.listId=Z.playlistId,
Q.index=Z.playlistIndex):(Q.index=Z.playlistIndex,Q.listId!==Z.playlistId&&Q.clearQueue(),Q.responsePlaylistData=Z.playlistPanelRenderer,Q.listId=Z.playlistId,Q.playlistProxy=new qEa(Q.JSC$13087_playlistNetworkManager,Z.playlistId,Q.setPlaylistData.bind(Q),_.Hde(Z.playlistPanelRenderer)));else if(!Q.queueProxy)Q.responsePlaylistData=void 0;else if(Z.playingVideoId&&p.clientParams.autoSaveToQueue){if(Q.index===void 0){_.me(Error("Of"));Q.clearQueue();break a}Q.queueProxy.videoIds.includes(Z.playingVideoId)||
(Q.index+=1,Q.queueProxy.JSC$13033_setCurrentIndex(Q.index),Q.queueProxy.addVideos([Z.playingVideoId],{},Q.index))}_.gW(Q,_.IT(Q,Q.response.autoplayRenderer))}})};var LEG=function(G,H){H=H===void 0?_.l3():H;Mz.call(this);this.gu.push(new B9(this.jf,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},H));this.gu.push(new u3(this.jf,G,!1,!1));_.V("web_response_commands_chunk_processor")&&this.gu.push(new jw)};
_.T(LEG,Mz);LEG.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.jf.resolve();Mz.prototype.processChunk.call(this,G)};var J9=function(G,H){G=G===void 0?{layer:0}:G;this.hasRun=!1;this.createScreenConfig=G;this.cVq=H};
_.T(J9,k9);J9.prototype.validate=function(G){return!(this.hasRun||!G.endpoint)};
J9.prototype.handle=function(G){var H=_.gr(),Z,Q,p=(Q=_.X((Z=G.endpoint)==null?void 0:Z.commandMetadata,_.HA))==null?void 0:Q.rootVe;this.cVq&&p?_.Te(H,p,this.cVq,this.createScreenConfig):hrw(H,G.endpoint,this.createScreenConfig);this.hasRun=!0};var t9=function(G,H){this.hasRun=!1;this.aZD=G;this.previousVideoId=H};
_.T(t9,k9);t9.prototype.validate=function(G){return _.V("kevlar_continue_playback_without_player_response")&&(G=_.X(G.endpoint,_.hZ),(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback))?!1:this.aZD.vdg===0};
t9.prototype.handle=function(G){_.sS.getInstance().triggerAction("yt-stop-old-player",G.data,!0)};var EZ4=function(G){G=G===void 0?{layer:0}:G;Mz.call(this);this.gu.push(new t9(this));this.gu.push(new J9(G));this.gu.push(new KQ(G))};
_.T(EZ4,Mz);var ky=function(){k9.apply(this,arguments)};
_.T(ky,k9);ky.prototype.validate=function(G){return!!G.data.preconnect};
ky.prototype.handle=function(G){_.$K("bc");G=_.I(G.data.preconnect);for(var H=G.next();!H.done;H=G.next())H=H.value,(new Image).src=H};var YE4=function(G,H,Z,Q,p,l,q){Z=Z===void 0?{layer:0}:Z;l=l===void 0?_.l3():l;Mz.call(this);if(Q)if(p){p=l;this.gu.push(new B9(this.jf,H,p));this.gu.push(new ky);var u,B;this.gu.push(new u3(this.jf,G,!1,!((u=H.clientParams)==null||!u.fromHistory),(B=H.clientParams)==null?void 0:B.previousVideoId,p,H.tempData));var t;this.gu.push(new t9(this,(t=H.clientParams)==null?void 0:t.previousVideoId));var D;(D=H.clientParams)!=null&&D.fromHistory||(Z.layer||(Z=Object.assign({},Z,{layer:0})),this.gu.push(new J9(Z,
q)),this.gu.push(new KQ(Z)))}else this.gu.push(new B9(this.jf,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},l)),this.gu.push(new u3(this.jf,G,!1,!1));else this.gu.push(new t9(this)),this.gu.push(new J9(Z)),this.gu.push(new KQ(Z));_.V("web_response_commands_chunk_processor")&&Q&&this.gu.push(new jw)};
_.T(YE4,Mz);YE4.prototype.processChunk=function(G){G&&G.data.player===void 0&&this.jf.resolve();Mz.prototype.processChunk.call(this,G)};var FEd=function(){this.hasRun=this.hasRun=!1};
_.T(FEd,k9);FEd.prototype.validate=function(G){return!this.hasRun&&!(!G.data.csn||!G.data.rootVe)};
FEd.prototype.handle=function(G){this.hasRun=!0;_.cf(G.data.csn,G.data.rootVe,3)};var b5w=function(G,H,Z){Z=Z===void 0?{layer:0}:Z;Mz.call(this);this.gu.push(new u3(this.jf,G));this.gu.push(new J9(Z));this.gu.push(new KQ(Z))};
_.T(b5w,Mz);var GSR=function(G,H,Z,Q,p){Z=Z===void 0?{layer:0}:Z;Q=Q===void 0?_.l3():Q;Mz.call(this);var l=!!H&&!!H.clientParams&&!!H.clientParams.miniplayer;l&&this.gu.push(new FEd);this.gu.push(new B9(this.jf,H,Q));this.gu.push(new ky);var q,u;this.gu.push(new u3(this.jf,G,l,!((q=H.clientParams)==null||!q.fromHistory),(u=H.clientParams)==null?void 0:u.previousVideoId,Q,H.tempData));var B;this.gu.push(new t9(this,(B=H.clientParams)==null?void 0:B.previousVideoId));var t;(t=H.clientParams)!=null&&t.fromHistory||
(Z.layer||(Z=Object.assign({},Z,{layer:l?3:0})),this.gu.push(new J9(Z,p)),this.gu.push(new KQ(Z)));_.V("web_response_commands_chunk_processor")&&this.gu.push(new jw)};
_.T(GSR,Mz);var DO,ZSx;DO={};
_.HSt=(DO["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},DO["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},DO["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},DO["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},DO["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},DO["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},DO["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},DO);_.dW=new _.Lg("yt-edu");_.snt=function(){this.JSC$13185_eduDisplayedThisLoad_={}};
ZSx=function(G){var H=_.snt.getInstance();var Z=_.eA("kevlar_tooltip_impression_cap");H=Z&&parseInt(_.dW.get(G+"-impression")||0,10)>=Z||_.dW.get(G+"-dismissed")?!1:(Z=_.HSt[G])&&!H.JSC$13185_eduDisplayedThisLoad_[Z.setKey||G]&&(Z.titleText&&_.Zg(Z.titleText)||Z.bodyText&&_.Zg(Z.bodyText))?!0:!1;if(!H)return null;H=_.HSt[G];if(!H)return null;Z=H.bodyText?_.Zg(H.bodyText):void 0;var Q=H.titleText?_.Zg(H.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:H.position,popup:{bubbleHintRenderer:{text:Q?
_.aq(Q):void 0,detailsText:Z?_.aq(Z):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.aq(_.Zg("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:G}}]}}}}}}}},{eduImpressionAction:{key:G}}]};
_.R6(_.snt);var ZJX=!1;for(var Qna="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),pid=[],e5=6;e5>=1;e5--)pid.push({columnCount:e5,query:e5==1?0:e5*2*107-4+32,className:"grid-"+e5+"-columns",width:e5*2*107+"px"});_.n2=function(G){this.actionRouter_=G=G===void 0?_.sS.getInstance():G;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.lcG(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.lcG=function(G){var H=G.documentWidth_-(G.miniGuideVisible_?72:0)-(G.guidePersistentAndVisible_?240:0)-(G.persistentPanelVisible_?400:0);return pid.find(function(Z){return H>Z.query})};
_.R6(_.n2);var gLd=function(){var G=this;this.JSC$13197_keyboardInUse=!1;document.addEventListener("keydown",function(){G.onKeydown()});
document.addEventListener("mousedown",function(){G.JSC$13197_keyboardInUse=!1})},Ic_;
gLd.prototype.isKeyBoardInUse=function(){return this.JSC$13197_keyboardInUse};
gLd.prototype.onKeydown=function(){this.JSC$13197_keyboardInUse=!0};var qY2,Xe;_.VA=new _.Lg("yt-mentions");_.$y=function(){};
qY2=function(G,H){return Xe(H,"drag-to-reorder-edu-displayed")};
Xe=function(G,H,Z,Q,p,l){Z=Z===void 0?"OPEN_POPUP_POSITION_TOP":Z;if(H){if(_.VA.get(H))return;_.VA.set(H,!0,Q)}if(p&&l!==void 0){H=Number(_.VA.get(p)||0);if(H>=l)return;_.VA.set(p,H+1)}return[{openPopupAction:{popupType:"HINT",position:Z,popup:{bubbleHintRenderer:{detailsText:G,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.R6(_.$y);var SYR,uha,Bz_;SYR=function(G,H,Z,Q){this.JSC$13207_taskManager_=G;this.onFulfilled_=typeof H==="function"?H:null;this.onRejected_=typeof Z==="function"?Z:null;this.JSC$13207_context_=Q};
uha=function(G,H){G.onFulfilled_&&_.JW(G.JSC$13207_taskManager_,function(){G.onFulfilled_.call(G.JSC$13207_context_,H)})};
Bz_=function(G,H){G.onRejected_&&_.JW(G.JSC$13207_taskManager_,function(){G.onRejected_.call(G.JSC$13207_context_,H)})};
_.c9=function(G){this.JSC$13210_taskManager_=G;this.callbacks_=[]};
_.c9.prototype.then=function(G,H,Z){this.callbacks_.push(new SYR(this.JSC$13210_taskManager_,G,H,Z));return this};
_.c9.prototype.onSuccess=function(G){this.callbacks_.forEach(function(H){uha(H,G)})};
_.c9.prototype.onFailure=function(G){this.callbacks_.forEach(function(H){Bz_(H,G)})};
_.c9.prototype.cancel=function(){this.callbacks_.length=0};
JeT(_.c9);_.q0o=null;_.Bh=new _.Gv("ACTIVITY_TOKEN");var JGa;_.JB=new _.Gv("PAGE_REQUEST_TOKEN");JGa=new _.Gv("FETCH_PBJ_TOKEN");_.tv_=function(G){if(G.validatedFragments_.length==0)return null;if(!G.mergedPrefetchedData_){for(var H=[],Z=_.I(G.validatedFragments_),Q=Z.next();!Q.done;Q=Z.next()){Q=_.I(G.fragmentConfiguration_[Q.value].graftedKeys);for(var p=Q.next();!p.done;p=Q.next())(p=G.prefetchedData_[p.value].trackingParams)&&H.push(p)}G.mergedPrefetchedData_={};Object.assign(G.mergedPrefetchedData_,G.prefetchedData_,{clientSideGrafts:H})}return G.mergedPrefetchedData_};var kS4;_.TP=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
kS4=function(G,H,Z){if(_.S0j(H))return G.prefetchCache_.get(_.ufj(H,Z))};_.f2=new _.Gv("NAVIGATION_TOKEN");var D3T=function(G){var H=this;var Z=Z===void 0?to3():Z;var Q=Q===void 0?_.tp().resolve(_.f2):Q;this.onePickCommand=G;this.JSC$13282_playlistNetworkManager=Z;this.navigationManager=Q;this.videoPickerBuilder=_.BBW("yt-addtoplaylist");_.rk4(vkR(Wjd(fQa(this.videoPickerBuilder.setTitle(G.modalTitle).setSize(1E3).addView(Kga()).addView(zkp())).addView("youtube"),G.selectButtonLabel)),function(p){H.handleAction(p)})};
D3T.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
D3T.prototype.handleAction=function(G){var H=this;if(G&&this.onePickCommand.listId&&G.action==="picked"&&G.docs){var Z=[];G.docs.forEach(function(Q){Z.push({addedVideoId:Q.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13282_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,Z).then(function(){_.V("playlist_add_video_hard_reload_killswitch")?H.navigationManager.reload():d34(H.navigationManager)})}};var eXd=function(){if(this.constructor===eXd)throw new TypeError("Uf");};
_.g=eXd.prototype;_.g.dispose=function(){};
_.g.disconnect=function(){};
_.g.reconnect=function(){};
_.g.observe=function(G,H,Z){return{element:G,option:Z}};
_.g.unobserveByKey=function(){};var kaM=function(G,H){H=H===void 0?0:H;eXd.call(this);this.viewroot=G;this.defaultPrescanHeight=H;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),G?{root:G,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.T(kaM,eXd);_.g=kaM.prototype;_.g.dispose=function(){this.disconnect();this.handlers.clear()};
_.g.disconnect=function(G){this.isConnected=!1;this.pauseObservingUntilReconnect=G===void 0?!1:G;this.observer.disconnect();G=_.I(this.prescanObservers.values());for(var H=G.next();!H.done;H=G.next())H.value.disconnect()};
_.g.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var G=_.I(this.handlers),H=G.next();!H.done;H=G.next()){var Z=_.I(H.value);H=Z.next().value;var Q=Z.next().value;Z=!1;Q=_.I(Q.keys());for(var p=Q.next();!p.done;p=Q.next())if((p=p.value)&&p.state==="prescan"){Z=!0;break}Z&&nL_(this,H).observe(H);this.observer.observe(H)}}};
_.g.handleObserveEvent=function(G){G=_.I(G);for(var H=G.next();!H.done;H=G.next()){H=H.value;var Z=this.handlers.get(H.target);if(Z){var Q=H.isIntersecting;Z=_.I(Z);for(var p=Z.next();!p.done;p=Z.next()){var l=_.I(p.value);p=l.next().value;l=l.next().value;p&&(p.state==="visible"&&Q||p.state==="hidden"&&!Q)&&(l(H.target,p.state),p.calledOnce&&this.unobserveByKey({element:H.target,option:p}))}}}};
_.g.handlePrescanEvent=function(G){G=_.I(G);for(var H=G.next();!H.done;H=G.next()){H=H.value;var Z=this.handlers.get(H.target);if(Z&&H.isIntersecting){Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;Q&&Q.state==="prescan"&&(p(H.target,Q.state),Q.calledOnce&&this.unobserveByKey({element:H.target,option:Q}))}}}};
_.g.observe=function(G,H,Z){var Q=(Q=this.handlers.get(G))&&Q.has(Z)?{element:G,option:Z}:void 0;if(Q)return Q;Q={element:G,option:Z};this.handlers.has(G)||this.handlers.set(G,new Map);var p=this.handlers.get(G);p&&!p.has(Z)&&p.set(Z,H);this.pauseObservingUntilReconnect||(Z.state==="prescan"&&nL_(this,G).observe(G),this.observer.observe(G));return Q};
_.g.unobserveByKey=function(G){var H=this.handlers.get(G.element);if(H&&H.has(G.option)){H.delete(G.option);if(G&&G.option.state==="prescan")for(var Z=_.I(this.prescanObservers.values()),Q=Z.next();!Q.done;Q=Z.next())Q.value.unobserve(G.element);H.size===0&&(this.handlers.delete(G.element),this.observer.unobserve(G.element))}};
var nL_=function(G,H){var Z=G.defaultPrescanHeight;H.hasAttribute("prescan-height")&&(H=Number(H.getAttribute("prescan-height")),isNaN(H)||(Z=H));if(G.prescanObservers.has(Z))return G.prescanObservers.get(Z);H="-0.1px -0.1px "+Z+"px -0.1px";H=new IntersectionObserver(G.handlePrescanEvent.bind(G),G.viewroot?{root:G.viewroot,rootMargin:H}:{rootMargin:H});G.prescanObservers.set(Z,H);return H};var Vvw=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],$3a=function(){var G,H=this;this.JSC$13299_actionRouter=G=G===void 0?_.sS.getInstance():G;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return H.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return H.visibilityObservedElementHandlerKeys}}},Xi_,TzG,Wkw;
$3a.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.V("kevlar_use_vimio_behavior")&&_.xI("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=DAU())};
$3a.prototype.dispose=function(){this.visibilityMonitor&&_.VX(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
$3a.prototype.handleVisibilityRefreshed=function(){for(var G=_.I(this.targetMap.entries()),H=G.next();!H.done;H=G.next()){var Z=_.I(H.value);H=Z.next().value;Z=Z.next().value;_.cGN(this,H,Z)}};
_.vL2=function(G,H,Z){TzG(G,Z);var Q=_.fcw(G,H);Q.element=Z;G.targetedElements.set(Z,H);_.cGN(G,H,Q)};
TzG=function(G,H){var Z=G.targetedElements.get(H);if(Z){var Q=G.targetMap.get(Z);Q&&(delete Q.element,G.targetMap.set(Z,Q));G.targetedElements.delete(H);G.visibilityObserver&&G.visibilityObservedElementHandlerKeys&&(Z=G.visibilityObservedElementHandlerKeys.get(H))&&(G.visibilityObserver.unobserveByKey(Z),G.visibilityObservedElementHandlerKeys.delete(H))}};
_.cGN=function(G,H,Z){var Q=Z.action,p=Z.element;p&&Q&&(Vvw.includes(H)||_.xI("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||G.visibilityMonitor&&G.visibilityMonitor.isNodeVisible(p)?Wkw(G,H,Z):G.visibilityObserver&&(G.visibilityObservedElementHandlerKeys||(G.visibilityObservedElementHandlerKeys=new WeakMap),Q=G.visibilityObserver.observe(p,function(){Wkw(G,H,Z);G.visibilityObservedElementHandlerKeys.delete(p)},{calledOnce:!0,
state:"visible"}),G.visibilityObservedElementHandlerKeys.set(p,Q)))};
Wkw=function(G,H,Z){var Q=Z.action;(Z=Z.element)&&Q&&(_.hA(G.JSC$13299_actionRouter,[Q],Z),G.targetMap.delete(H),G.targetedElements.delete(Z),G.triggeredTargets.add(H))};
_.fcw=function(G,H){var Z=G.targetMap.get(H);Z||(Z={},G.targetMap.set(H,Z));return Z};
_.v9=function(){Xi_||(Xi_=new $3a);return Xi_};var zXa=document.createElement("div");zXa.style.touchAction="pan-down";var dAb=zXa.style.touchAction==="pan-down";var Kk_,Mv2;Kk_=function(){this.hammerFn=j6a();this.JSC$13307_screenManager=_.gr();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.bl(83615);_.vN(this.JSC$13307_screenManager,this.ve);e9W()};
_.W9=function(){Mv2||(Mv2=new Kk_);return Mv2};
Kk_.prototype.registerTouchEvents=function(G,H,Z){var Q=_.Ry.apply(3,arguments),p=this.hammerFn(G,{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}]]});Z&&p.set({touchAction:Z});this.nodeManagerMapping.set(G,p);var l=
nzo(H);Q=_.I(Q);for(var q=Q.next();!q.done;q=Q.next()){q=q.value;if(q.includes("swipe")||q.includes("pinch")||q.includes("pan"))q.includes("swipe")?p.get("swipe").set({enable:!0,direction:l,velocity:.2}):q.includes("pinch")?p.get("pinch").set({enable:!0}):q.includes("pan")&&(p.get("pan").set({enable:!0,direction:l}),p.get("swipe").set({enable:!0,direction:l,velocity:.2}),p.get("swipe").recognizeWith("pan"));jnG(this,G,p,q)}};
var jnG=function(G,H,Z,Q){Z.on(Q,function(p){if(Q.includes("pinch"))G.lastPinchTime=Date.now();else if(Q.includes("swipe")&&Date.now()-G.lastPinchTime<400)return;p.pointerType!=="mouse"&&(p=Q==="doubletap"?{coordinates:p.center}:Q.includes("pan")?p:Q.includes("swipe")?{target:p.target}:{},H.dispatchEvent(new CustomEvent(Q,{bubbles:!0,composed:!0,detail:p})))})};
Kk_.prototype.unregisterTouchEvents=function(G){var H=_.Ry.apply(1,arguments),Z=this.nodeManagerMapping.get(G);if(Z){H=_.I(H);for(var Q=H.next();!Q.done;Q=H.next())Z.off(Q.value);this.nodeManagerMapping.delete(G);G.style.touchAction="unset"}};var PB2=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Vov=null;_.kT={getLocalStorage:_.e4(function(){try{var G=new agR;var H=G.isAvailable()?G:null}catch(Z){return null}return H?new _.Vg(H):null}),
getSessionStorage:_.e4(function(){var G=new yUo;return G.isAvailable()?new _.Vg(G):null})};var rGw=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},OJR=function(){rGw.instance||(rGw.instance=new rGw);
return rGw.instance},aFo=function(G){var H=G.networkEvents;
G.networkEvents=[];return _.V("enable_network_monitoring")?H:[]};var wiw;wiw={};_.hXR=J3("yt-serviceworker-metadata",{objectStores:(wiw.auth={addedAtVersion:1},wiw["resource-manifest-assets"]={addedAtVersion:2},wiw),shared:!0,upgrade:function(G,H){H(1)&&YN(G,"resource-manifest-assets");H(2)&&YN(G,"auth")},
version:2});var vze=self.location.origin+"/";Waj([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);Waj([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);Waj([/\.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\//]);Waj([/purge_shell=1/]);var CB2=void 0;CB2=CB2===void 0?[]:CB2;
for(var iS_=[],OSR=_.I(S3T),act=OSR.next();!act.done;act=OSR.next())iS_.push({key:act.value});for(var yGt=_.I(CB2),oLt=yGt.next();!oLt.done;oLt=yGt.next())iS_.push(oLt.value);var m3R,n3=_.Qf==null?void 0:(m3R=_.Qf.performance)==null?void 0:m3R.memory,Moj=!1,yzo={},rzj={},V$={},$T=navigator;var zP=function(G){this.JSC$13352_expiringStorage=new Od(G)};
zP.prototype.set=function(G,H,Z){Z=Z!==void 0?Date.now()+Z:void 0;this.JSC$13352_expiringStorage.set(G,H,Z)};
zP.prototype.get=function(G){return this.JSC$13352_expiringStorage.get(G)};
zP.prototype.remove=function(G){this.JSC$13352_expiringStorage.remove(G)};var Lae=_.CM(["https://www.youtube.com/",""]),EzM=_.CM(["https://studio.youtube.com/",""]),He2="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",Faj=null,lEo;var U3w=_.CM(["https://www.youtube.com/iframe_api"]),K2=function(){this.playerResolver_=_.hQ();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.dP;this.playbackDurationSeconds_=0},RXG=function(G){var H=function(){return window.YT&&typeof window.YT.ready==="function"};
if(H())return _.Yk(window.YT);var Z=_.hQ(),Q=_.z$("SCRIPT");Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||(Q.onload=_.dP,Q.onreadystatechange=_.dP,Q.onerror=_.dP,H()?Z.resolve(window.YT):Z.reject(new _.C$("Failed to load the iframe player library","script.onload",Q.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
Q.onerror=function(p){Q.onload=_.dP;Q.onreadystatechange=_.dP;Q.onerror=_.dP;Z.reject(new _.C$("Failed to load the iframe player library","script.onerror",p&&p.target&&p.target.src))};
_.gJ(Q,_.VB(U3w));G.insertBefore(Q,G.firstChild);return Z.promise},NzG=function(G,H,Z){var Q,p;
_.S(function(l){switch(l.nextAddress){case 1:return G.playbackEndedCallback_=Z,_.XV(l,2),l.yield(RXG(H.parentElement||null),4);case 4:Q=l.yieldResult;_.Za(l,3);break;case 2:return p=_.Wg(l),p instanceof _.C$&&p.args&&p.args[0]=="script.onerror"?_.Rp(p):_.me(p),l.return();case 3:Q.ready(function(){return new Q.Player(H,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:G.onPlayerReady_.bind(G),onStateChange:G.onPlayerStateChange_.bind(G),
onCueRangeExit:G.onCueRangeExit_.bind(G)}})}),_.K0(l)}})};
_.g=K2.prototype;_.g.getPlayerPromise=function(){return this.playerPromise_};
_.g.onPlayerReady_=function(G){this.playerResolver_.resolve(G.target)};
_.g.onPlayerStateChange_=function(G){if(G.data==YT.PlayerState.PLAYING){G=G.target;var H=G.getCurrentTime();G.addCueRange("playback",H,H+this.playbackDurationSeconds_)}};
_.g.onCueRangeExit_=function(G){G.data=="playback"&&(G.target.stopVideo(),this.playbackEndedCallback_())};
_.g.stopVideo=function(){this.playerPromise_.then(function(G){G.stopVideo()})};
var AGa=function(G){G.playerVars_&&G.playerPromise_.then(function(H){typeof H.cueVideoByPlayerVars!="function"?_.Rp(new _.C$("vmh: player API not ready","cueVideoByPlayerVars",typeof H.cueVideoByPlayerVars)):H.cueVideoByPlayerVars(G.playerVars_)})};
K2.prototype.playVideo=function(){var G=this;this.playerVars_&&this.playerPromise_.then(function(H){typeof H.loadVideoByPlayerVars!="function"?(H=new _.C$("vmh: player API not ready","loadVideoByPlayerVars",typeof H.loadVideoByPlayerVars),_.me(H)):H.loadVideoByPlayerVars(G.playerVars_)})};
var x3x=function(G,H,Z,Q,p){H&&(Z===void 0&&(Z=0),Q===void 0&&(Q=0),G.playbackDurationSeconds_=Q/1E3,G.playerVars_={adformat:"17_8",videoId:H,suggestedQuality:"hd720",startSeconds:Z/1E3,player_params:p})};
K2.prototype.mute=function(){this.playerPromise_.then(function(G){G.mute()})};
K2.prototype.unMute=function(){this.playerPromise_.then(function(G){G.unMute()})};var JVj=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var MP;MP=function(){this.tokenJars={};if(this.cookiesEnabled=_.r7()){var G=_.jA.get("CONSISTENCY",void 0);G&&Lkt(this,{encryptedTokenJarContents:G})}};
_.kfj=function(){MP.instance||(MP.instance=new MP);return MP.instance};
MP.prototype.handleResponse=function(G,H){if(!H)throw Error("Zf");var Z,Q;H=((Z=H.innerTubeRequest.context)==null?void 0:(Q=Z.request)==null?void 0:Q.consistencyTokenJars)||[];var p;(G=(p=G.responseContext)==null?void 0:p.consistencyTokenJar)&&this.replace(H,G)};
MP.prototype.replace=function(G,H){G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())delete this.tokenJars[Z.value.encryptedTokenJarContents];Lkt(this,H)};
var Lkt=function(G,H){if(H.encryptedTokenJarContents&&(G.tokenJars[H.encryptedTokenJarContents]=H,typeof H.expirationSeconds==="string")){var Z=Number(H.expirationSeconds);setTimeout(function(){delete G.tokenJars[H.encryptedTokenJarContents]},Z*1E3);
G.cookiesEnabled&&_.PU("CONSISTENCY",H.encryptedTokenJarContents,Z,void 0,!0)}};var ELa,j5;ELa=window.location.hostname.split(".").slice(-2).join(".");_.rT=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var G=_.xI("LOCATION_PLAYABILITY_TOKEN");_.xI("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=YYG(this))&&(G=this.localStorage.get("yt-location-playability-token"));G&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0)};
_.rT.getInstance=function(){j5=_.GF("yt.clientLocationService.instance");j5||(j5=new _.rT,_.u7("yt.clientLocationService.instance",j5));return j5};
_.rT.prototype.setLocationOnInnerTubeContext=function(G){G.client||(G.client={});if(this.mostRecentPosition)G.client.locationInfo||(G.client.locationInfo={}),G.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),G.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),G.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),G.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)G.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.rT.prototype.handleResponse=function(G){var H;G=(H=G.responseContext)==null?void 0:H.locationPlayabilityToken;G!==void 0&&(this.locationPlayabilityToken=G,this.mostRecentPosition=void 0,_.xI("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=YYG(this))&&this.localStorage.set("yt-location-playability-token",G,15552E3):_.PU("YT_CL",JSON.stringify({loctok:G}),15552E3,ELa,!0))};
var YYG=function(G){return G.localStorage===void 0?new _.Lg("yt-client-location"):G.localStorage};
_.rT.prototype.clearLocationPlayabilityToken=function(G){G==="TVHTML5"?(this.localStorage=YYG(this))&&this.localStorage.remove("yt-location-playability-token"):_.PfR("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.rT.prototype.getCurrentPositionFromGeolocation=function(){var G=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var H=!1,Z=1E4;_.xI("INNERTUBE_CLIENT_NAME")==="MWEB"&&(H=!0,Z=15E3);return new Promise(function(Q,p){navigator.geolocation.getCurrentPosition(function(l){G.mostRecentPosition=l;Q(l)},function(l){p(l)},{enableHighAccuracy:H,
maximumAge:0,timeout:Z})})};
_.rT.prototype.createUnpluggedLocationInfo=function(G){var H={};G=G.coords;if(G==null?0:G.latitude)H.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)H.longitudeE7=Math.floor(G.longitude*1E7);if(G==null?0:G.accuracy)H.locationRadiusMeters=Math.round(G.accuracy);return H};
_.rT.prototype.createLocationInfo=function(G){var H={};G=G.coords;if(G==null?0:G.latitude)H.latitudeE7=Math.floor(G.latitude*1E7);if(G==null?0:G.longitude)H.longitudeE7=Math.floor(G.longitude*1E7);return H};var Fk4=function(G,H){var Z=Wf();G||(G="unknown");H||(H="unknown");G="MAIN_APP_WEB_PAGE_TYPE_"+G.toUpperCase();G in TUp||(G="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");H="MAIN_APP_WEB_REQUEST_TYPE_"+H.toUpperCase();H in fDR||(H="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.G1(Z,{mainAppWeb:{pageType:G,requestType:H,isShellLoad:_.YI("IS_SHELL_LOAD",!1)}})},bS2={start:function(){_.G1(fRR(),{mainAppWeb:_.wT()})},
success:function(){_.HM(fRR(),"SUCCESS")},
failure:function(){_.HM(fRR(),"FAILURE")},
cancelled:function(){_.HM(fRR(),"CANCELLED")}};var GYT,H_p,VYe;GYT=_.CM(["/sw.js"]);H_p=_.CM(["/sw.js?0"]);_.shd=_.VB(GYT);VYe=_.VB(H_p);var Z_t=function(){var G=Error.apply(this,arguments);this.message=G.message;"stack"in G&&(this.stack=G.stack)};
_.T(Z_t,Error);_.iS.prototype.load=function(G){this.megabloxUrl_=_.xI("YPC_MB_URL");_.zh(this.megabloxUrl_,(0,_.Cu)(function(){G&&G()},this))};
_.Ohf=function(G,H,Z,Q,p,l,q,u,B,t,D){_.XRv(B);G.load((0,_.Cu)(function(){try{var d=l?l:_.xI("HL"),e=_.xI("SESSION_INDEX");_.QHb("client",function(){dhd("59",{helpCenterPath:"/youtube",locale:d,window:window}).JSC$9984_loadChatSupport({authuser:String(e)})})}catch(n){throw h0(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),p&&p(n),_.me(n),n;
}QhR(this,H,Z,Q,p,l,q,u,B,t,D)},G))};
_.iS.prototype.openFixFlowDialog=function(G,H,Z,Q){this.load((0,_.Cu)(function(){try{pcG(this,_.GF("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(G).withIntegratorCallback(H).load(Z,Q)}catch(p){throw _.me(p),p;}},this))};
var pcG=function(G,H,Z,Q){var p=H.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.V("enable_window_constrained_buy_flow_dialog")&&(p=p.usingPopupStyle(_.GF("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));Q&&(p=p.usingCloseCallback(Q));H.bootstrap.fromPaymentsUrl(G.megabloxUrl_);G=H.bootstrap.asMashupMode(p);Z=Z?Z:_.xI("HL");G.usingGaiaIndex(_.xI("SESSION_INDEX")).usingLocale(Z).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.V("enable_google_payments_buyflow_material2_style_web")?
G.usingStyle(":m2;pc=#444;ac=#065fd4"):G.usingStyle(":md;pc=#444;ac=#065fd4");return G},QhR=function(G,H,Z,Q,p,l,q,u,B,t,D){try{var d=_.GF("payments.business.integration");
if(!d)throw new Z_t("payments.business.integration is undefined");var e=d.standaloneContextAuthId.forUserId(),n=pcG(G,d,l,function(){TYM(!1);u&&u()});
q&&n.usingServerAnalyticsEventHandler(q);var c=n.inStandaloneContext(e).buyFlow(function(W){if(W&&(!W.integratorData||W.integratorData===""||W.error))if(W.error!=null)if(String(W.error)==="-1")_.cVf(B);else{var M=String(W.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";h0(10,D,M,W.debugCode);_.C3(M,B,W.debugCode);M=new _.C$("PAYMENT_ERROR_MESSAGE::"+W.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+W.internalErrorDetails);
_.me(M)}else h0(10,D,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.C3("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",B,"EMPTY_INTEGRATOR_DATA"),_.me(Error("bg"));Z&&(TYM(!1),Z(W))}).withEncryptedParameters(H);
t&&c.withClientParameters(nRw(_.CK2(t)));c.load(function(){h0(24,D);_.fo("ttc",void 0,"commerce_transaction");no("commerce_transaction");Q&&(Q(),TYM(!0))},function(W){if(W==null?0:W.debugCode)var M=W==null?void 0:W.debugCode;
else if(!W||(W==null?0:W.debugCode))M="EMPTY_LOAD_FAILURE_ERROR",_.me(Error(M));else{M="EMPTY_LOAD_FAILURE_DEBUG_CODE";var r=new _.C$("LOAD_FAILURE:"+W.message," DEBUG_CODE:"+M);_.me(r)}h0(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M);_.C3("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",B,M);_.me(W);p&&p(W)})}catch(W){throw W instanceof Z_t&&(h0(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),p&&p(W)),_.me(W),W;
}};var lrw;lrw=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.hJW=function(G,H){H=H===void 0?!1:H;G=lrw.test(G)?_.j7(G):null;!H&&window.payments||!G?(G=_.hQ(),H=G.promise,G.resolve()):H=_.QZa(G,{attributes:{"data-payments-main":"",id:"payment-lib"}});return H};var g1T;g1T=_.CM(["//www.googletagmanager.com/gtm.js?id=",""]);_.P9=function(G,H){_.Ni(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:H}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.xI("GL")}),H=_.z$("SCRIPT"),H.async=!0,_.gJ(H,_.VB(g1T,G)),H.id="gtm",G=document.getElementsByTagName("script"),G.length==0?document.head.appendChild(H):(G=G[0],G.parentNode.insertBefore(H,G)))};
_.rW=function(G){if(G=JSON.parse(G))window.dataLayer=window.dataLayer||[],window.dataLayer.push(G)};var Irx,qcp;Irx=_.CM(["https://clients2.google.com/gr/gr_sync.js"]);_.rof=function(){};
_.rof.prototype.init=function(){if(qcp()){var G=_.hQ();G.resolve();return G.promise}return _.QZa(_.VB(Irx)).then(function(){if(!qcp())throw Error("cg");},function(){throw Error("dg");
})};
_.wmf=function(){if(!qcp())return"";var G=window.google.gr;G.init({async:{schedule:"sync"},merchantId:"youtube"});G.start();G=G.finish();return G==null?"":G};
qcp=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.C=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.T(_.C,PolymerFakeBaseClassWithoutHtml);_.uq=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.T(_.uq,PolymerFakeBaseClassWithoutHtml);var fEv=window.ShadyDOM;var qhv,gUf,u4o,BXW,t$o,kQj,wW,ED;qhv=_.V("enable_shadydom_free_scoped_query_methods");gUf=_.V("enable_shadydom_free_scoped_node_methods");u4o=_.V("enable_shadydom_free_scoped_readonly_properties_batch_one");BXW=_.V("enable_shadydom_free_parent_node");t$o=_.V("enable_shadydom_free_children");kQj=_.V("enable_shadydom_free_last_child");wW=window.ShadyDOM;_.sI=wW&&wW.noPatch&&wW.wrap?wW.wrap:wW?function(G){return wW.patch(G)}:function(G){return G};
ED=function(G){if(G instanceof ShadowRoot)this.host=(0,_.sI)(G.host),this.root=G;else if(G.$$){this.host=(0,_.sI)(G);var H;this.root=(H=G.root)!=null?H:this.host}else if(G.polymerController){this.host=(0,_.sI)(G);var Z;this.root=(Z=this.host.shadowRoot)!=null?Z:this.host}else this.root=this.host=(0,_.sI)(G)};
Izo();Sh2();Dgu();dgj();JjR();var Scw={querySelector:function(G,H){H=OeX(H,mA(G));return _.V("sunnydom_native_scoped_query_selectors")?Wob(G,H):Wob(_.UD(G),H)},
querySelectorAll:function(G,H){H=OeX(H,mA(G));return _.V("sunnydom_native_scoped_query_selectors")?Array.from(zWU(G,H)):zWU(_.UD(G),H)}},umw={appendChild:function(G,H){var Z=mA(G),Q=_.o_(H);
return _.pFM(_.UD(G),Z?_.Nl(H,Z,Q):H)},
cloneNode:function(G,H){var Z=_.o_(G);G=_.UD(G);H=y$(G).prototype.cloneNode.call(G,H);return Z?A0(H,Z):H},
contains:function(G,H){var Z=mA(G),Q=_.o_(H);return Z!==Q?!1:lzo(G,H)},
insertBefore:function(G,H,Z){var Q=mA(G),p=_.o_(H);G=_.UD(G);H=Q?_.Nl(H,Q,p):H;return y$(G).prototype.insertBefore.call(G,H,Z)},
removeChild:function(G,H){var Z=mA(G);G=_.UD(G);H=Z?A0(H,Z):H;return y$(G).prototype.removeChild.call(G,H)},
replaceChild:function(G,H,Z){var Q=mA(G),p=_.o_(H);H=Q?_.Nl(H,Q,p):p?A0(H,p):H;Z=Q?A0(Z,Q):Z;G=_.UD(G);return y$(G).prototype.replaceChild.call(G,H,Z)},
getRootNode:function(G,H){H=H===void 0?{composed:!0}:H;var Z;if(((Z=H)!=null?Z:{}).composed)G=QVb(G);else{H=G;for(G=MYj(G);G;)H=G,G=yVW(G);G=H}return G}},nUj=u4o?{firstChild:Foe,
nextSibling:Lov,previousSibling:YF2,firstElementChild:bef,lastElementChild:Hnf,nextElementSibling:xyu,previousElementSibling:EnR,childNodes:sV3}:{};BXW&&(nUj.parentNode=AVo);t$o&&(nUj.children=ZnX);kQj&&(nUj.lastChild=GQo);qhv&&erU(Scw);gUf&&erU(umw);V$f();var $gu=function(G){this.node=G instanceof ShadowRoot?G.host:G};
XFW();cje();var vUU=new WeakMap;var zrb=Symbol("Bd");var rjf=new Set(["tap","track","down","up"]),wF3=_.V("pbcm_fi_query_decorators");var h9=function(){return _.uq.apply(this,arguments)||this};
_.T(h9,_.uq);_.g=h9.prototype;_.g.getState=function(){return this.store.getState()};
_.g.dispatch=function(G){this.store.dispatch(G)};
_.g.beforeRegister=function(){if(this&&typeof this==="object"){var G;var H=!!this.useSignals||!((G=this.polymerController)==null||!G.useSignals)}else H=!1;if(!H&&this.properties)for(H=_.I(Object.keys(this.properties)),G=H.next();!G.done;G=H.next()){var Z=G.value;G=this.properties[Z];if(G.selector){if(G.computed)throw Error("kg");Z=["reduxPropertiesRecomputeTrigger",'"'+Z+'"'].concat(_.OP(G.selectorArgs||[])).join(",");G.computed="recomputeReduxSelector("+Z+")"}}};
_.g.attached=function(){var G=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){G.reduxPropertiesRecomputeTrigger++}));
_.V("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.g.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.g.recomputeReduxSelector=function(G,H){var Z=_.Ry.apply(2,arguments),Q=this.properties[H].selector;if(!Q)throw Error("ig`"+H);return Q.apply(null,[this.store.getState()].concat(_.OP(Z)))};
_.g.select=function(G){var H=_.Ry.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return G.apply(null,[this.store.getState()].concat(_.OP(H)))};
_.u4.Object.defineProperties(h9.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
h9.prototype.recomputeReduxSelector=h9.prototype.recomputeReduxSelector;_.N([_.h(),_.A("design:type",Number)],h9.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.N([_.BG()],h9);var C2=[],OnW={},Tq=function(){return Jc.apply(this,arguments)||this};
_.T(Tq,Jc);Tq.prototype._addPropertyEffect=function(G,H,Z){if(H==="__observeEffects"&&Z){var Q,p=(Q=Z.info.method)!=null?Q:Z.info.methodName;if(p){var l=this[p];this[p]=function(){C2.push(p);try{l==null||l.apply(this,arguments)}finally{C2.pop()}}}}_.vK._addPropertyEffect.apply(this,[G,
H,Z])};
Tq.prototype._setPendingProperty=function(G,H,Z){if(C2.length){var Q=C2[C2.length-1],p;(p=OnW[this.is])!=null&&p.has(Q)||(azu(this.is,Q),_.yR("polymerPropertyChangedInObserver",{componentName:this.is,observerName:Q}))}return _.vK._setPendingProperty.apply(this,[G,H,Z])};
_.N([sxf()],Tq);var yjf=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),mgb,kQ={};_.V("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=kQ);var e9=function(){return _.uq.apply(this,arguments)||this};
_.T(e9,_.uq);e9.prototype._setUnmanagedPropertyToNode=function(G,H,Z){G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!0);if(Z!==G[H]||typeof Z==="object")G[H]=Z;G.is&&G.polymerController&&G.polymerController!==G&&DI(G.is,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!1)};
_.N([_.BG()],e9);oUf()&&(bu.prototype._setUnmanagedPropertyToNode=(new e9)._setUnmanagedPropertyToNode);_.Z8U={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(G){},set polymerController(G){}}]};var cG=function(){var G=Jc.apply(this,arguments)||this;G.json=function(){};
return G};
_.T(cG,Jc);cG.prototype.equals=function(G,H){return G===H};
cG.prototype.isEmpty=function(G){var H;(H=!G)||(H=_.Uj(G)&&G.length===0);return H};
_.N([sxf()],cG);var BiG=function(G){G=Zt3(G);R$.call(this,G)};
_.T(BiG,R$);BiG.prototype.addProvider=function(G){G=G.key?G:Zt3([G])[0];var H=this.keyIdToIndex.get(G.key.id);if(H){if(xg3(G,this.providers[H]))throw Error("lg`"+G.key.displayName);}else R$.prototype.addProvider.call(this,G)};
var J5x=new BiG([]);var tWR=!1;var G72={};tWR||(bnR(),tWR=!0);
G72.InjectBehavior={initializeInjection:function(){var G=this.provide;try{if((G=G!=null?G:[])&&G.length>0)for(var H=Zt3(G),Z=_.I(H),Q=Z.next();!Q.done;Q=Z.next())J5x.addProvider(Q.value);var p=new Set;L5v(this.behaviors||[],p);H={};for(var l=_.I(p),q=l.next();!q.done;q=l.next()){var u=q.value;u.inject&&Object.assign(H,u.inject)}this.inject&&Object.assign(H,this.inject);for(var B=_.I(Object.keys(H)),t=B.next();!t.done;t=B.next()){var D=t.value,d=H[D];try{this[D]=J5x.resolve(d)}catch(e){throw e;}}}catch(e){throw Error(e.message);
}}};var sbf;var Qbj=/\bclass\b/.test(function(){}.toString()),gcW=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var kY4=function(G){this.wasDefined=!0;Array.isArray(G)||G instanceof Array?(this.JSC$13510_getImpl=G[0],this.JSC$13510_setImpl=G[1]):this.JSC$13510_getImpl=G};
_.g=kY4.prototype;_.g.getWithPath=function(G){return SUu(this.JSC$13510_getImpl(),G)};
_.g.setWithPath=function(G,H){var Z=this;if(G.length)throw Error("mg");if(!this.JSC$13510_setImpl)throw Error("ng");Mf(function(){Z.JSC$13510_setImpl(H)})};
_.g.notifyPath=function(){throw Error("og");};
_.g.notifySplices=function(){throw Error("pg");};
_.g.getChangeRecordSignal=function(G,H){var Z=this;if(G.length)throw Error("qg");return function(){var Q=Z.getWithPath(G);return{path:H!=null?H:"",base:Q,value:Q}}};
_.g.getSplicesSignal=function(){throw Error("rg");};
_.g.getPathMutationSignal=function(){throw Error("sg");};
_.g.pop=function(){throw Error("tg");};
_.g.push=function(){throw Error("ug");};
_.g.splice=function(){throw Error("vg");};
_.g.unshift=function(){throw Error("wg");};var i3=function(G){var H=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(G)||G instanceof Array?(this.JSC$13515_getImpl=G[0],this.JSC$13515_setImpl=G[1]):this.JSC$13515_getImpl=G;this.wasDefined=!1;_.cS(function(){H.wasDefined=H.JSC$13515_getImpl()!==void 0})};
i3.prototype.getWithPath=function(G){return SUu(this.JSC$13515_getImpl(),G)};
i3.prototype.setWithPath=function(G,H){var Z=this;if(G[G.length-1]!=="*"&&G[G.length-1]!=="splices"){var Q=_.cS(function(){return Z.getWithPath([])});
if(G.length===0){if(!this.JSC$13515_setImpl)throw Error("xg");if(Q===H)return;this.wasDefined||(this.wasDefined=H!==void 0);Mf(function(){Z.JSC$13515_setImpl(H)})}else{for(var p=0;p<G.length-1;p++){if(!Q)return;
Q=Q[G[p]]}p=G[G.length-1];Q&&(Q[p]=H);this.wasDefined||(this.wasDefined=G.length>1||H!==void 0)}Dx2(this,G,{pathComponents:G,value:H})}};
i3.prototype.notifyPath=function(G,H){G.length===0?H&&this.setWithPath(G,H.value):Dx2(this,G,{pathComponents:G,value:H==null?void 0:H.value,fallbackWhenUndefined:H==null?void 0:H.value})};
var Dx2=function(G,H,Z,Q){if(G.setMutationSignal){var p=++G.mutationIndex,l=[G.observedPath],q=G.observedPath,u;H.length===0&&(u=q);for(var B=0;B<H.length;B++){var t=q.subPaths[H[B]];if(!t)break;l.push(t);q=t;B===H.length-1&&(u=t)}for(H=!1;l.length;)q=l.shift(),q.data={index:p,mutation:Z,spliceMutationIndex:Q},H||(H=q===u),H&&l.push.apply(l,_.OP(Object.values(q.subPaths)));Mf(function(){G.setMutationSignal(p)})}};
i3.prototype.notifySplices=function(G,H){var Z=this,Q=_.cS(function(){return Z.getWithPath(G)}),p=[].concat(_.OP(G),["splices"]);
Dx2(this,p,{pathComponents:p,value:{indexSplices:H}});if(Q==null?0:Q.length)H=this.mutationIndex,p=[].concat(_.OP(G),["length"]),Dx2(this,p,{pathComponents:p,value:Q.length},H)};
var dx7=function(G,H,Z,Q,p,l){G.notifySplices(Z,[{index:Q,addedCount:p,removed:l,object:H,type:"splice"}])},e$a=function(G,H){G=G.observedPath;
for(var Z=0;Z<H.length;Z++){var Q=H[Z],p=G.subPaths[Q];p||(p={pathComponents:H.slice(0,Z+1),subPaths:{}},G.subPaths[Q]=p);G=p}},VWa=function(G,H,Z){e$a(G,H);
if(!G.getMutationSignal){var Q=_.I(_.Ty(G.mutationIndex,void 0,"sNBMCd"));G.getMutationSignal=Q.next().value;G.setMutationSignal=Q.next().value}var p=G.getMutationSignal;return _.Kb(function(){p();return Z(n1d(G,H))},void 0,"zvsXEd")};
i3.prototype.getChangeRecordSignal=function(G,H){var Z=this,Q=this.mutationIndex,p;return VWa(this,G,function(l){if(l&&l.index>Q){var q=l.mutation;Q=l.index;p=void 0}l=_.cS(function(){return Z.getWithPath(G)});
if(q){var u=q.pathComponents[q.pathComponents.length-1],B=[].concat(_.OP(q.pathComponents));if(u==="splices"||u==="length")return{base:l,path:(H?[H].concat(_.OP(B)):B).join("."),value:q.value};var t=G.length>B.length?G:B,D;return{base:l!=null?l:q.fallbackWhenUndefined,path:(H?[H].concat(_.OP(t)):t).join("."),value:(D=_.cS(function(){return Z.getWithPath(t)}))!=null?D:q.fallbackWhenUndefined}}p||(p={base:l,
path:(H?[H].concat(_.OP(G)):G).join("."),value:l});return p})};
i3.prototype.getSplicesSignal=function(G){var H=this.mutationIndex,Z;return VWa(this,G,function(Q){if(Q&&Q.index>H&&Q.spliceMutationIndex!==H){var p=Q.mutation;H=Q.index;Z=void 0}return p&&p.pathComponents[p.pathComponents.length-1]==="splices"?Z=Q=p.value:Z})};
i3.prototype.getPathMutationSignal=function(G){var H=this;e$a(this,G);if(!this.getMutationSignal){var Z=_.I(_.Ty(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=Z.next().value;this.setMutationSignal=Z.next().value}var Q=this.getMutationSignal,p=this.mutationIndex,l;return _.Kb(function(){Q();var q=n1d(H,G);if(q&&q.index>p&&q.mutation&&u$f(q.mutation.pathComponents,G)){var u=q.mutation;p=q.index}if(!l||p!==l.index){var B,t;q=(t=_.cS(function(){return H.getWithPath(G)}))!=null?t:(B=u)==null?
void 0:B.fallbackWhenUndefined;
l={index:p,value:q}}return l},void 0,"RXYC9b")};
var n1d=function(G,H){G=G.observedPath;H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())G=G.subPaths[Z.value];return G.data};
i3.prototype.pop=function(G){var H=this,Z=_.cS(function(){return H.getWithPath(G)});
if(!(Z instanceof Array))throw Error("yg");var Q=Z.length>0,p=Z.pop();Q&&dx7(this,Z,G,Z.length,0,[p]);return p};
i3.prototype.push=function(G){var H=_.Ry.apply(1,arguments),Z=this,Q=_.cS(function(){return Z.getWithPath(G)});
if(!(Q instanceof Array))throw Error("zg");var p=Q.length,l=Q.push.apply(Q,_.OP(H));H.length&&dx7(this,Q,G,p,H.length,[]);return l};
i3.prototype.splice=function(G,H,Z){var Q=_.Ry.apply(3,arguments),p=this,l=_.cS(function(){return p.getWithPath(G)});
if(!(l instanceof Array))throw Error("Ag");H<0?H=l.length-Math.floor(-H):H&&(H=Math.floor(H));var q=l.splice.apply(l,[H,Z].concat(_.OP(Q)));(Q.length||q.length)&&dx7(this,l,G,H,Q.length,q);return q};
i3.prototype.unshift=function(G){var H=_.Ry.apply(1,arguments),Z=this,Q=_.cS(function(){return Z.getWithPath(G)});
if(!(Q instanceof Array))throw Error("Bg");var p=Q.unshift.apply(Q,_.OP(H));H.length&&dx7(this,Q,G,0,H.length,[]);return p};var Or=function(G,H,Z){this.model=G;this.unknownSignalResolver=H;this.options=Z;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];H=_.I(VBf());G=H.next().value;H=H.next().value;this.owner=G;this.disposeImpl=H};
Or.prototype.dispose=function(){if(!this.isDisposed){for(var G=_.I(this.childSignalProxies),H=G.next();!H.done;H=G.next())H.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var $xa=function(G,H){G=_.qf(G.owner);try{H()}finally{_.qf(G)}};
Or.prototype.effect=function(G){$xa(this,function(){_.RM(G,"g")})};
var XcN=function(G,H){G.options!=null||(G.options={});var Z;(Z=G.options).immutableProps!=null||(Z.immutableProps=new Set);G.options.immutableProps.add(H)},NhU=function(G,H){H=""+H;
c5d(G,H);var Z,Q;if((Z=G.options)==null?0:(Q=Z.immutableProps)==null?0:Q.has(H))return!0;var p;if((p=G.model.__signalCache)==null?0:p.has(H))Z=G.model.__signalCache.get(H),Array.isArray(Z)&&XcN(G,H);var l,q,u;return(u=(l=G.options)==null?void 0:(q=l.immutableProps)==null?void 0:q.has(H))!=null?u:!1},Tiw=function(G,H){var Z;
G.unknownSignalResolver&&(Z=G.unknownSignalResolver(H));var Q,p;((Q=G.options)==null?0:(p=Q.immutableProps)==null?0:p.has(H))?Z!=null||(Z=new kY4(_.Ty(G.model[H],void 0,"By5iP"))):Z!=null||(Z=new i3(_.Ty(G.model[H],void 0,"CXghNc")));var l=G.model.hostElement;Object.defineProperty(G.model,H,{get:function(){RrM(l,H);return Z.getWithPath([])},
set:function(q){dx(l,H);G.setWithPath([H],q)},
configurable:!0});return Z},c5d=function(G,H){var Z,Q,p;
((Z=G.model.__signalCache)==null||!Z.has(H))&&((Q=G.options)==null?0:(p=Q.externalSignalProps)==null?0:p.has(H))&&G.model[H]},zq=function(G,H){H=""+H;
var Z=G.signalCache[H];if(Z!==void 0)return Z;Z=!1;c5d(G,H);var Q;if((Q=G.model.__signalCache)==null?0:Q.has(H))if(Z=G.model.__signalCache.get(H),Array.isArray(Z))Z=!0,XcN(G,H);else return G.signalCache[H]=G.model.__signalCache.get(H).signal,G.signalCache[H];var p,l;Q=(l=(p=G.options)==null?void 0:p.reactivityMode)!=null?l:0;var q,u;if(!((q=G.options)==null?0:(u=q.reactiveProps)==null?0:u.has(H))&&!Z&&Q===1)throw Error("Cg`"+H);p=Z?frt(G,H):Tiw(G,H);return G.signalCache[H]=p},frt=function(G,H){var Z=
Object.getOwnPropertyDescriptor(G.model.constructor.prototype,H),Q=function(){return G.model[H]};
return new kY4(Z&&Z.get&&!Z.set?Q:[Q,function(p){G.model[H]=p}])};
Or.prototype.getWithPath=function(G){var H=_.I(G);G=H.next().value;H=lV(H);RrM(this.model.hostElement,""+G);return zq(this,G).getWithPath(H)};
Or.prototype.setWithPath=function(G,H){if(G.length){dx(this.model.hostElement,G.join("."));var Z=_.I(G);G=Z.next().value;Z=lV(Z);zq(this,G).setWithPath(Z,H)}};
Or.prototype.getPathMutationSignal=function(G){var H=_.I(G);G=H.next().value;H=lV(H);return zq(this,G).getPathMutationSignal(H)};
Or.prototype.notifyPath=function(G,H){var Z=_.I(G);G=Z.next().value;Z=lV(Z);zq(this,G).notifyPath(Z,H)};
var v12=function(G,H){if(H.type==="literal")return function(){return{rootWasDefined:!0,value:H.value}};
var Z=vG(H.path),Q=_.I(Z),p=Q.next().value;Q=lV(Q);var l,q;if(H.type==="path"&&(Z.length===1||((l=G.options)==null?0:(q=l.immutableProps)==null?0:q.has(p))))return function(){var d=G.getWithPath(Z.slice(0,1));d=SUu(d,Z.slice(1));return{rootWasDefined:zq(G,Z[0]).wasDefined,value:d}};
var u=zq(G,p);if(H.type==="path"){var B=u.getPathMutationSignal(Q);return function(){var d,e=(d=B())==null?void 0:d.value;return{rootWasDefined:u.wasDefined,value:e}}}if(H.type==="splices"){var t=u.getSplicesSignal(Q);
return function(){var d=t();return{rootWasDefined:u.wasDefined,value:d}}}var D=u.getChangeRecordSignal(Q,""+p);
return function(){var d=D();return{rootWasDefined:u.wasDefined,value:d}}},dTe=function(G,H,Z){var Q=Z.map(function(u){return v12(G,u)}),p=Z.length===0,l=[],q=Z.length!==1||Z[0].type!=="path"?!1:!0;
G.effect(function(){for(var u=Q.length,B=[],t=!!l.length,D=0;D<u;D++){var d=Q[D](),e=d.rootWasDefined;d=d.value;p||(p=e);B[D]=d;q&&(B[D+u]=t?l[D]:B[D],l[D]=d)}p&&Nf(G.owner,function(){return void H.apply(null,_.OP(B))})})},Bhb=function(G,H,Z,Q,p){var l=zq(G,H);
p!==void 0&&l.setWithPath([],p);dTe(G,function(){var q=_.Ry.apply(0,arguments);dx(G.model.hostElement,H,!0);l.setWithPath([],Z.apply(null,_.OP(q)))},Q)};
Or.prototype.arrayPush=function(G){var H=_.Ry.apply(1,arguments),Z=_.I(G),Q=Z.next().value;Z=lV(Z);Q=zq(this,Q);return Q.push.apply(Q,[Z].concat(_.OP(H)))};
Or.prototype.arraySplice=function(G,H,Z){var Q=_.Ry.apply(3,arguments),p=_.I(G),l=p.next().value;p=lV(p);l=zq(this,l);return l.splice.apply(l,[p,H,Z].concat(_.OP(Q)))};
Or.prototype.arrayUnshift=function(G){var H=_.Ry.apply(1,arguments),Z=_.I(G),Q=Z.next().value;Z=lV(Z);Q=zq(this,Q);return Q.unshift.apply(Q,[Z].concat(_.OP(H)))};
Or.prototype.notifySplices=function(G,H){var Z=_.I(G);G=Z.next().value;Z=lV(Z);zq(this,G).notifySplices(Z,H)};var Wxa=!0,z$2=!1,A7e=!1,Kxp=!1,MWR=0;Kxp=!1;MWR=0;Wxa=!0;z$2=A7e=!1;var vcv=/([^\s]+?)\(([\s\S]*)\)/,cJ3=/\.([^.]+)$/,zFM=/\\,/g,$To=/&comma;/g,X6j=/\\(.)/g,W42=[],ThM={"*":"wildcard",splices:"splices"};var O8j=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"),w6W=/[A-Z]/,jhN=["class","hidden","id","on-dom-change"],yJv=new Set([].concat(_.OP(jhN),
["if","notify-dom-change","restamp"])),oc2=new Set([].concat(_.OP(jhN),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),mTu=new Set(["restamp"]);var yGu=new Set(["className","id"]);var xTf=Symbol(),H5e=window;var qEe=window;var DR3=0,B$e=0,KH=[],kKe=0,uRf=!1,tfX=document.createTextNode("");(new window.MutationObserver(J7X)).observe(tfX,{characterData:!0});var j9=new Map,M6=0,PFa=function(G){this.mappedHandleId=G},emv=function(G,H,Z,Q){this.mappedHandleId=G;
var p=this;this.mappedHandleId=G;this.callback=H;this.waitTime=Z;this.schedulerPriority=Q;this.handleId=_.Ui.addJob(function(){p.callback();j9.delete(p.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.T(emv,PFa);emv.prototype.cancel=function(){_.Ui.cancelJob(this.handleId);j9.delete(this.mappedHandleId)};
var nZb=function(G,H){this.mappedHandleId=G;var Z=this;this.mappedHandleId=G;this.callback=H;this.handleId=dRf(function(){Z.callback();j9.delete(Z.mappedHandleId)})};
_.T(nZb,PFa);nZb.prototype.cancel=function(){var G=this.handleId-B$e;G<0||KH.length<=G||(KH[G]=null);j9.delete(this.mappedHandleId)};var c7f=function(){};
c7f.prototype.cancel=function(){this.jobHandle!==void 0&&(VfM(this.jobHandle),this.jobHandle=void 0)};
c7f.prototype.run=function(G,H,Z){var Q=this;this.cancel();this.callback=G;this.jobHandle=_.PG(function(){G();Q.callback=void 0},H,Z)};
c7f.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var $RM=new WeakMap;var r5a=bO(function(G){for(var H=G,Z=0;Z<3;Z++)H=Object.getPrototypeOf(H);delete H.prototype.connectedCallback;var Q=function(){return G.apply(this,arguments)||this};
_.T(Q,G);Q.prototype._attachDom=function(p){if(!p)return null;var l=(0,_.sI)(this.hostElement);l.attachShadow({mode:"open",shadyUpgradeFragment:p});l.shadowRoot.appendChild(p);return l.shadowRoot};
Q.prototype._takeAttributes=function(){for(var p=this.hostElement.attributes,l=0;l<p.length;l++){var q=p[l],u=void 0,B=void 0;(B=(u=this).__attributeReaction)==null||B.call(u,q.name,null,q.value)}};
Q.prototype._readyClients=function(){G.prototype._readyClients.call(this);this.root=this};
Q.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);G.prototype.connectedCallback.call(this)};
_.u4.Object.defineProperties(Q,{template:{configurable:!0,enumerable:!0,get:function(){return Q.prototype._template}}});
return Q}),wct=bO(function(G){var H=function(){return G.apply(this,arguments)||this};
_.T(H,G);H.prototype.created=function(){if(this.__notifyEffects)for(var Z=_.I(Object.values(this.__notifyEffects)),Q=Z.next();!Q.done;Q=Z.next()){Q=_.I(Q.value);for(var p=Q.next();!p.done;p=Q.next())p.value.fn=WEX}if(this.__reflectEffects)for(Z=_.I(Object.values(this.__reflectEffects)),Q=Z.next();!Q.done;Q=Z.next())for(Q=_.I(Q.value),p=Q.next();!p.done;p=Q.next())p.value.fn=zmf};
H.prototype._addEventListenerToNode=function(Z,Q,p){Z=wx(Z);US(Z,Q,p)||G.prototype._addEventListenerToNode.call(this,Z,Q,p)};
H.prototype._removeEventListenerFromNode=function(Z,Q,p){Z=wx(Z);RA(Z,Q,p)||G.prototype._removeEventListenerFromNode.call(this,Z,Q,p)};
H.prototype._propertiesChanged=function(Z,Q,p){if(this.__dataToNotify&&this.__notifyEffects)for(var l=_.I(Object.keys(this.__dataToNotify)),q=l.next();!q.done;q=l.next()){q=q.value;var u=vZj(q);this.__notifyEffects[u]||delete this.__dataToNotify[q]}else this.__dataToNotify=null;G.prototype._propertiesChanged.call(this,Z,Q,p)};
H.prototype.fire=function(Z,Q,p){Q=Q===void 0?{}:Q;var l;return _.N5(wx((l=p==null?void 0:p.node)!=null?l:this),Z,Q,p)};
H.prototype._ensureAttribute=function(Z,Q){var p=wx(this);p.hasAttribute(Z)||WG(p,Q,Z)};
H.prototype.isLightDescendant=function(Z){var Q=wx(this);return wx(Q)!==Z&&_.F9(Q).contains(Z)&&_.F9(Q).getRootNode()===_.F9(Z).getRootNode()};
return H});
_.WZ.ready=function(){var G;((G=this.hostElement)!=null?G:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var H;((H=this.hostElement)!=null?H:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.hS._subscribeIronResize=function(G){var H;((H=G.hostElement)!=null?H:G).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.hS._unsubscribeIronResize=function(G){var H;((H=G.hostElement)!=null?H:G).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var jwf=[Array,Boolean,Date,Number,Object,String],CH=function(G,H,Z,Q){this.polySiInfo=G;this.polySiParams=H;this.polySiContext=Z;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;Q||this instanceof HTMLElement&&(Q=this);if(!Q)throw Error("Jg");this.allowedProps=H.allowedProps;this.hostElement=Q;this.is=G.is;this.upgradeDisabled=!!H.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");G=new Set(H.reactiveSchemas.filter(function(p){return p.type!==
"observe"}).map(function(p){return p.propertyKey}));
this.signalProxy=new Or(this,void 0,{reactiveProps:G,reactivityMode:H.reactivityMode});this.__dataHasAccessor={};H=_.I(H.reactiveSchemas);for(G=H.next();!G.done;G=H.next())G=G.value,G.type==="signal"&&(this.__dataHasAccessor[G.propertyKey]=!0);this.upgradeDisabled||h$2(this)};
CH.prototype.getExtraMethodsToForward=function(){return[]};
var h$2=function(G){G.polySiContext.didRegister||(G.registered(),G.polySiContext.didRegister=!0);G.polySiContext.finalizedTemplate||(G.polySiContext.finalizedTemplate={},G.polySiParams.templateGetter&&(G.polySiContext.finalizedTemplate.processedTemplate=SEj(G.polySiParams.templateGetter,G.polySiParams.is)));CFd(G);var H=G.hostElement;H.loggingStatus!=null||(H.loggingStatus={});H.loggingStatus.isInitializing=!0;_.cS(function(){return void G.created()});
H.loggingStatus.isInitializing=!1;G.isPolySiElementConnected&&i_x(G)},i_x=function(G){G.didCallReady||(_.cS(function(){return void G.ready()}),G.didCallReady=!0);
G.isAttached=!0;G.attached()};
_.g=CH.prototype;_.g.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||i_x(this)};
_.g.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.g.attributeChangedCallback=function(G,H,Z){if(this.upgradeDisabled)G==="disable-upgrade"&&Z===null&&(this.upgradeDisabled=!1,h$2(this));else if(H!==Z){var Q=_.Qa(G),p=this.polySiContext.typesForSignals[Q];if(p&&(!this.reflecting||_.V("polysi_attribute_changed_serializing_killswitch"))){switch(p){case Object:try{var l=JSON.parse(Z)}catch(u){l=Z}break;case Array:try{l=JSON.parse(Z)}catch(u){l=null}break;case Date:l=isNaN(Z)?String(Z):Number(Z);l=new Date(l);break;case Boolean:l=Z!==null;break;case Number:l=
Number(Z);break;default:l=Z}this[Q]=l}Q=_.I(this.polySiParams.behaviors);for(p=Q.next();!p.done;p=Q.next())l=void 0,(l=p.value.attributeChanged)==null||l.call(this,G,H,Z);var q;(q=this.attributeChanged)==null||q.call(this,G,H,Z)}};
_.g.attributeChangedCallbackWrapper=function(G,H,Z){this.attributeChangedCallback(G,H,Z)};
_.g.setPropertiesFromInitialAttributeValues=function(){for(var G=0;G<this.hostElement.attributes.length;G++){var H=this.hostElement.attributes[G];(H.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(H.name))&&this.attributeChangedCallback(H.name,null,H.value)}};
_.g.created=function(){this.provide=this.polySiParams.provide;var G;(G=this.initializeInjection)==null||G.call(this);G=_.I(this.polySiParams.reactiveSchemas);for(var H=G.next();!H.done;H=G.next())H=H.value,H.type==="signal"&&(this.mutablePropNames.add(H.propertyKey),zq(this.signalProxy,H.propertyKey));MfX(this,this.polySiInfo,this.polySiParams.behaviors);G=_.I(this.polySiParams.reactiveSchemas);for(H=G.next();!H.done;H=G.next())H=H.value,H.type==="signal"&&H.value!==void 0&&(this.signalProxy.model[H.propertyKey]=
typeof H.value==="function"?H.value.call(this):H.value);if(this.polySiParams.signalProperties)for(G=_.I(this.polySiParams.signalProperties),H=G.next();!H.done;H=G.next()){H=H.value;var Z=void 0;((Z=this.__signalCache)==null?0:Z.has(H))||(this.signalProxy.model[H]=void 0)}Kxp||O_G(this);KEb(this);G=_.I(this.polySiParams.behaviors);for(H=G.next();!H.done;H=G.next())Z=void 0,(Z=H.value.created)==null||Z.call(this);var Q;(Q=this.polySiInfo.created)==null||Q.call(this)};
_.g.registered=function(){var G=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var H=Object.getPrototypeOf(this);H.addReactiveSchema=function(u){G.polySiParams.reactiveSchemas.push(u)};
for(var Z=_.I(this.polySiParams.behaviors),Q=Z.next();!Q.done;Q=Z.next()){var p=void 0;(p=Q.value.beforeRegister)==null||p.call(H)}var l;(l=this.polySiInfo.beforeRegister)==null||l.call(H);H.addReactiveSchema=r7b;Z=_.I(this.polySiParams.behaviors);for(Q=Z.next();!Q.done;Q=Z.next())p=void 0,(p=Q.value.registered)==null||p.call(H);var q;(q=this.polySiInfo.registered)==null||q.call(H)};
_.g.ready=function(){var G;(G=this.beforeReady)==null||G.call(this);Kxp&&O_G(this);var H;if(G=(H=this.polySiContext.finalizedTemplate)==null?void 0:H.processedTemplate){G=Iuu(G.template,G.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:G.hasInsertionPoint,thisCtx:this});H=G.nodesById;G=G.root;var Z=this.hostElement;var Q=Q===void 0?!1:Q;Z=(0,_.sI)(Z);if(!Z.attachShadow)throw Error("Hd");if(!Z.shadowRoot||Q)Z.attachShadow({mode:"open",shadyUpgradeFragment:G}),Z.shadowRoot.appendChild(G);
this.root=Z.shadowRoot;this.$=H}ara(this);Q=_.I(this.polySiParams.behaviors);for(H=Q.next();!H.done;H=Q.next())G=void 0,(G=H.value.ready)==null||G.call(this);var p;(p=this.polySiInfo.ready)==null||p.call(this)};
_.g.attached=function(){for(var G=_.I(this.polySiParams.behaviors),H=G.next();!H.done;H=G.next()){var Z=void 0;(Z=H.value.attached)==null||Z.call(this)}var Q;(Q=this.polySiInfo.attached)==null||Q.call(this)};
_.g.detached=function(){for(var G=_.I(this.polySiParams.behaviors),H=G.next();!H.done;H=G.next()){var Z=void 0;(Z=H.value.detached)==null||Z.call(this)}var Q;(Q=this.polySiInfo.detached)==null||Q.call(this)};
var CFd=function(G){for(var H=_.I(G.polySiParams.behaviors),Z=H.next();!Z.done;Z=H.next())if(Z=Z.value,Z.listeners)for(var Q in Z.listeners)gZf(G,G.hostElement,Q,Z.listeners[Q]);if(G.polySiInfo.listeners)for(var p in G.polySiInfo.listeners)gZf(G,G.hostElement,p,G.polySiInfo.listeners[p])},gZf=function(G,H,Z,Q,p){G=qUe(G,Q,p);
US(H,Z,G)||H.addEventListener(Z,G);return G},O_G=function(G){for(var H=_.I(G.polySiParams.reactiveSchemas),Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.type==="compute"||Z.type==="computeWithMethod"?JJU(G.signalProxy,Z,G):Z.type==="redux"?DTR(G.signalProxy,Z,G.store):Z.type==="signal"&&Z.readOnly&&k7f(G.signalProxy,Z)},ara=function(G){for(var H=_.I(G.polySiParams.reactiveSchemas),Z=H.next(),Q={};!Z.done;Q={schema$jscomp$12:void 0},Z=H.next())Q.schema$jscomp$12=Z.value,Q.schema$jscomp$12.type==="notify"?
eF2(G.signalProxy,Q.schema$jscomp$12,G.hostElement):Q.schema$jscomp$12.type==="observe"?ncf(G.signalProxy,Q.schema$jscomp$12,G):Q.schema$jscomp$12.type==="reflect"&&G.signalProxy.effect(function(l){return function(){var q=G.signalProxy.getWithPath([l.schema$jscomp$12.propertyKey]);
G.reflecting=!0;MBj(G.hostElement,l.schema$jscomp$12.propertyKey,q,!0);G.reflecting=!1}}(Q));
if(G.reflectedAttributes)for(H=_.I(Object.entries(G.reflectedAttributes)),Q=H.next(),Z={};!Q.done;Z={key$jscomp$938:void 0,value$jscomp$10131:void 0},Q=H.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;Z.key$jscomp$938=Q;Z.value$jscomp$10131=p;G.signalProxy.effect(function(l){return function(){G.reflecting=!0;MBj(G.hostElement,l.key$jscomp$938,(0,l.value$jscomp$10131)(),!0);G.reflecting=!1}}(Z))}};
_.g=CH.prototype;_.g._setPendingProperty=function(G,H){this.set(G,H);return!1};
_.g._enableProperties=function(){};
_.g._setPendingPropertyOrPath=function(G,H){this.notifyPath(G,H);return!1};
_.g._addPropertyEffect=function(){};
_.g._stampTemplate=function(){throw Error("Kg");};
_.g.fire=function(G,H,Z){H=H===void 0?{}:H;Z=Z===void 0?{}:Z;var Q,p,l={bubbles:(Q=Z.bubbles)!=null?Q:!0,cancelable:!!Z.cancelable,composed:(p=Z.composed)!=null?p:!0},q;return _.N5(w_j((q=Z.node)!=null?q:this.hostElement),G,H,l)};
_.g.get=function(G,H){var Z=vG(G);return H?SUu(H,Z):G==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(Z)};
_.g.linkPaths=function(){};
_.g.listen=function(G,H,Z){G=w_j(G);this.boundListeners!=null||(this.boundListeners=new WeakMap);var Q=this.boundListeners.get(G);Q||(Q={},this.boundListeners.set(G,Q));var p=H+Z;Q[p]||(Q[p]=gZf(this,G,H,Z))};
_.g.notifyPath=function(G,H){this.signalProxy.notifyPath(vG(G),arguments.length===2?{value:H}:void 0)};
_.g.canNotifyPath=function(G){return this.mutablePropNames.has(G)&&!NhU(this.signalProxy,G)};
_.g.notifySplices=function(G,H){this.signalProxy.notifySplices(vG(G),H)};
_.g.pop=function(G){var H=this.signalProxy;G=vG(G);var Z=_.I(G);G=Z.next().value;Z=lV(Z);return zq(H,G).pop(Z)};
_.g.push=function(G){var H=_.Ry.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[vG(G)].concat(_.OP(H)))};
_.g.set=function(G,H,Z){if(Z)throw Error("Lg");G==="hidden"?this.hostElement.hidden=!!H:this.signalProxy.setWithPath(vG(G),H)};
_.g.setProperties=function(G){G=_.I(Object.entries(G));for(var H=G.next();!H.done;H=G.next()){var Z=_.I(H.value);H=Z.next().value;Z=Z.next().value;this[H]=Z}};
_.g.splice=function(G,H,Z){var Q=_.Ry.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[vG(G),H,Z].concat(_.OP(Q)))};
_.g.unlinkPaths=function(){};
_.g.unlisten=function(G,H,Z){G=w_j(G);if(this.boundListeners){var Q=this.boundListeners.get(G);if(Q){Z=H+Z;var p=Q[Z];p&&(RA(G,H,p)||G.removeEventListener(H,p),delete Q[Z])}}};
_.g.unshift=function(G){var H=_.Ry.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[vG(G)].concat(_.OP(H)))};
_.u4.Object.defineProperties(CH.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 N$j=[Array,Boolean,Date,Number,Object,String];var LEf=!1;var aT=function(){var G=HTMLElement.apply(this,arguments)||this;G.restamp=!1;G.notifyDomChange=!1;G.JSC$13623_didCallConnected=!1;G.JSC$13623_renderDebouncer=null;G.disableTemplateUpdateSignalImpl=iq()?void 0:_.Ty(!1,void 0,"Ofhkwb");var H;G.getDisableTemplateUpdate=(H=G.disableTemplateUpdateSignalImpl)==null?void 0:H[0];var Z;G.setDisableTemplateUpdate=(Z=G.disableTemplateUpdateSignalImpl)==null?void 0:Z[1];return G};
_.T(aT,HTMLElement);var y5w=function(G){G.conditionSignalImpl!=null||(G.conditionSignalImpl=new i3(_.Ty(!1,void 0,"gE52Fb")));return G.conditionSignalImpl};
_.g=aT.prototype;_.g.showHideChildren=function(G){o14(this,G,this.if)};
_.g.attributeChangedCallback=function(G,H,Z){if(this.JSC$13623_didCallConnected)throw Error("Pg`"+G);G==="notify-dom-change"?this.notifyDomChange=Z!==null:G==="restamp"&&(this.restamp=Z!==null)};
_.g.debounceRender=function(){this.JSC$13623_renderDebouncer=_.u2(this.JSC$13623_renderDebouncer,Ak,this.JSC$13623_renderImpl.bind(this));_.BK(this.JSC$13623_renderDebouncer)};
_.g.disconnectedCallback=function(){var G=(0,_.sI)(this).parentNode;(!G||G.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in G&&!G.host)&&mx4(this)};
_.g.connectedCallback=function(){var G=this;this.JSC$13623_didCallConnected=!0;Wxa?EZf():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.V("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){y5w(G).getWithPath([]);G.debounceRender()})};
_.g.render=function(){_.Dy()};
_.g.JSC$13623_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var G=this.if,H=!1;if(G){this.hasInstance()||(Ux4(this),H=!0);a:{var Z=(0,_.sI)(this).parentNode;if(this.hasInstance()){var Q=this.instance.children;if((Q==null?0:Q.length)&&(0,_.sI)(this).previousSibling!==Q[Q.length-1])for(var p=0;p<Q.length;p++)(0,_.sI)(Z).insertBefore(Q[p],this)}else{if(!Z){Z=!1;break a}R$t(this,Z)}Z=!0}if(!Z)return}else this.restamp&&mx4(this);o14(this,!1,G);G&&!H&&Ux4(this);z$2&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.g.hasInstance=function(){return!!this.instance};
var R$t=function(G,H){var Z=G.parentSignalProxy;if(iq()){var Q=_.I(_.Ty(!0,void 0,"dkzufd"));var p=Q.next().value;Q=Q.next().value;Z=G.parentSignalProxy}else{var l;var q=new Or((l=Ni2(G))!=null?l:{},function(B){var t=zq(G.parentSignalProxy,B).getChangeRecordSignal([]);B=_.Ty(void 0,void 0,"iG8Uwe");var D=new i3(B);q.effect(function(){if(G.getDisableTemplateUpdate&&!G.getDisableTemplateUpdate()){var d=t();D.notifyPath(vG(d.path),{value:d.value})}});
return D});
G.parentSignalProxy.childSignalProxies.push(q);var u=Z=q}Z=Iuu(G.templateInfo,G.templateInfo.nodeInfoList,Z,{eventListenerHost:G.eventListenerHost,hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,enabledSignal:iq()?p:void 0,getModel:function(){return Ni2(G)}}).root;
G.instance={root:Z,children:[],hidden:!1,signalProxy:u,getTemplateUpdatesEnabled:p,setTemplateUpdatesEnabled:Q};u=_.I(Z.childNodes);for(p=u.next();!p.done;p=u.next())G.instance.children.push(p.value);(0,_.sI)(H).insertBefore(G.instance.root,G)},Ni2=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var H={},Z;
for(Z in G)G.hasOwnProperty(Z)&&(H[Z]=G[Z]);return H}},mx4=function(G){if(G.instance){var H=G.instance.children;
if(H.length){var Z=(0,_.sI)(H[0]).parentNode;if(Z){Z=(0,_.sI)(Z);for(var Q=0;Q<H.length;Q++)Z.removeChild(H[Q])}}iq()?G.instance.setTemplateUpdatesEnabled(!1):G.instance.signalProxy.dispose();G.instance=void 0}},o14=function(G,H,Z){H=H||!Z;
G.instance&&G.instance.hidden!==H&&(G.instance.hidden=H,xRv(H,G.instance.children))},Ux4=function(G){if(iq()){var H=G.instance;
H&&Nf(G.parentSignalProxy.owner,function(){return!H.getTemplateUpdatesEnabled()})&&H.setTemplateUpdatesEnabled(!0)}else G.setDisableTemplateUpdate(!1)};
_.u4.Object.defineProperties(aT.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var G=this;return Nf(this.parentSignalProxy.owner,function(){return y5w(G).getWithPath([])})},
set:function(G){G||(iq()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));y5w(this).setWithPath([],!!G)}}});
_.u4.Object.defineProperties(aT,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",aT);var A5a=[],yA=function(){var G=HTMLElement.apply(this,arguments)||this;G.as="item";G.indexAs="index";G.itemsIndexAs="itemsIndex";G.targetFramerate=20;G.notifyDomChange=!1;G.isDetached=!1;G.JSC$13630_renderDebouncer=null;G.instances=[];G.chunkingId=null;G.chunkCount=null;G.shouldMeasureChunk=!1;G.shouldContinueChunking=!1;G.renderStartTime=null;G.JSC$13630_didCallConnected=!1;return G};
_.T(yA,HTMLElement);var xx4=function(G){G.itemSignalImpl!=null||(G.itemSignalImpl=new i3(_.Ty(A5a,void 0,"YBrqgf")));return G.itemSignalImpl},Lx7=function(G,H){Array.isArray(H)||(H=A5a);
xx4(G).setWithPath([],H)};
_.g=yA.prototype;_.g.showHideChildren=function(G){for(var H=_.I(this.instances),Z=H.next();!Z.done;Z=H.next())xRv(G,Z.value.children)};
_.g.notifyPath=function(G,H){G=vG(G);G[0]==="items"&&(G.length===1?Lx7(this,H):xx4(this).setWithPath(G.slice(1),H))};
_.g.canNotifyPath=function(G){return G==="items"};
_.g.attributeChangedCallback=function(G,H,Z){if(this.JSC$13630_didCallConnected)throw Error("Qg`"+G);G==="as"?this.as=Z:G==="index-as"?this.indexAs=Z:G==="items-index-as"?this.itemsIndexAs=Z:G==="initial-count"?this.initialCount=Number(Z):G==="notify-dom-change"?this.notifyDomChange=Z!==null:G==="target-framerate"&&(this.targetFramerate=Number(Z))};
_.g.disconnectedCallback=function(){this.isDetached=!0;for(var G=0;G<this.instances.length;G++)E14(this,G);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.g.connectedCallback=function(){var G=this,H=xx4(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var p=H(),l=vG(p.path);if(l[0]===void 0||l[0]==="splices"||l[0]==="length")G.debounceRender();else{var q=l[0];if(q=G.instances[typeof q==="string"?Math.floor(Number(q)):q])l=[G.as].concat(_.OP(l.slice(1))),q.signalProxy.notifyPath(l,p)}});
this.JSC$13630_didCallConnected=!0;Wxa?EZf():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var Z=(0,_.sI)((0,_.sI)(this).parentNode),Q=0;Q<this.instances.length;Q++)Z.insertBefore(this.instances[Q].root,this);this.chunkingId&&this.render()}};
_.g.debounceRender=function(){this.JSC$13630_renderDebouncer=_.u2(this.JSC$13630_renderDebouncer,Ak,this.JSC$13630_renderImpl.bind(this));_.BK(this.JSC$13630_renderDebouncer)};
_.g.render=function(){this.debounceRender();_.Dy()};
_.g.JSC$13630_renderImpl=function(){var G=this;if(!this.parentSignalProxy.isDisposed){var H=this.items,Z=YcT(this,H.length);FxT(this,H,Z);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){G.chunkingId=null;if(G.shouldMeasureChunk){var Q=performance.now()-G.renderStartTime;G.chunkCount=Math.round(Math.ceil(1E3/G.targetFramerate)/Q*G.chunkCount)||1}G.shouldContinueChunking&&G.debounceRender()}));
z$2&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var YcT=function(G,H){var Z=H,Q=G.instances.length;if(G.initialCount){if(G.chunkCount){var p=Math.min(Math.max(H-Q,0),G.chunkCount);Z=Math.min(Q+p,H)}else Z=Math.min(H,G.initialCount),p=Math.max(Z-Q,0),G.chunkCount=p||1;G.shouldMeasureChunk=p===G.chunkCount;G.shouldContinueChunking=Z<H;G.renderStartTime=performance.now()}return Z},FxT=function(G,H,Z){for(var Q=0;Q<Z;Q++){var p=G.instances[Q],l=H[Q];
p?(p.signalProxy.setWithPath([G.as],l),p.signalProxy.setWithPath([G.indexAs],Q)):b_t(G,l,Q)}for(H=G.instances.length-1;H>=Q;H--)Z=G,p=H,E14(Z,p),_.I(Z.instances.splice(p,1)).next().value.signalProxy.dispose()},E14=function(G,H){G=G.instances[H];
H=(0,_.sI)(G.root);for(var Z=0;Z<G.children.length;Z++)H.appendChild(G.children[Z])},b_t=function(G,H,Z){var Q={};
H=Object.assign({},G6w(G),(Q[G.as]=H,Q[G.indexAs]=Z,Q[G.itemsIndexAs]=Z,Q));var p=new Or(H,function(q){if(q!==G.as&&q!==G.indexAs){if(q===G.itemsIndexAs)return zq(p,G.indexAs);var u=zq(G.parentSignalProxy,q).getChangeRecordSignal([]);q=_.Ty(void 0,void 0,"T21Pqc");var B=new i3(q);p.effect(function(){var t=u();B.notifyPath(vG(t.path),{value:t.value})});
return B}});
G.parentSignalProxy.childSignalProxies.push(p);Q=Iuu(G.templateInfo,G.templateInfo.nodeInfoList,p,{eventListenerHost:G.eventListenerHost,getModel:function(){var q={};return Object.assign({},G6w(G),(q[G.as]=p.model[G.as],q[G.indexAs]=p.model[G.indexAs],q[G.itemsIndexAs]=p.model[G.indexAs],q))},
hasInsertionPoint:G.templateInfo.hasInsertionPoint,thisCtx:G.eventListenerHost,methodInvocationRequirement:MWR,enabledSignal:G.stampingEnabled}).root;H={root:Q,children:[],signalProxy:p};Q=_.I(Q.childNodes);for(var l=Q.next();!l.done;l=Q.next())H.children.push(l.value);Q=(Q=G.instances[Z+1])?Q.children[0]:G;(0,_.sI)((0,_.sI)(G).parentNode).insertBefore(H.root,Q);G.instances[Z]=H},G6w=function(G){if((G=G.parentSignalProxy.model)&&!G.hostElement){var H={},Z;
for(Z in G)G.hasOwnProperty(Z)&&(H[Z]=G[Z]);return H}};
yA.prototype.itemForElement=function(G){var H=this,Z=this.instances.find(function(Q){return Q.children.includes(G)});
if(Z)return Nf(this.parentSignalProxy.owner,function(){return Z.signalProxy.getWithPath([H.as])})};
yA.prototype.indexForElement=function(G){var H=this.instances.findIndex(function(Z){return Z.children.includes(G)});
return H>=0?H:void 0};
_.u4.Object.defineProperties(yA.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var G=this;return Nf(this.parentSignalProxy.owner,function(){return xx4(G).getWithPath([])})},
set:function(G){Lx7(this,G)}},
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}}});
_.u4.Object.defineProperties(yA,{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",yA);var Hcw,s4w;_.oT=new _.Gv("STATE_STORE_TOKEN");Hcw=new _.Gv("SELECT_TOKEN");s4w=new _.Gv("DISPATCH_TOKEN");var snu={getSelectFn:function(){var G;return(G=_.tp().resolve(_.Jp(Hcw)))!=null?G:YEf},
getDispatchFn:function(){var G;return(G=_.tp().resolve(_.Jp(s4w)))!=null?G:_.OI().dispatch.bind(_.OI())},
getAppStore:function(){return _.tp().resolve(_.oT)}},FE3,HSu=!1;var qYv=function(){};var lcf=void 0;var ZcG=function(){};
ZcG.prototype.hasAttribute=function(G){if(G==="dir")return!1;if(G==="disable-upgrade"){var H,Z;return(Z=(H=this.hostElement)==null?void 0:H.hasAttribute("disable-upgrade"))!=null?Z:!1}throw Error("Rg`"+G);};
ZcG.prototype.attributeChangedCallbackWrapper=function(G,H,Z){if(G==="disable-upgrade"&&this.__isUpgradeDisabled&&Z===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var Q;((Q=this.hostElement)!=null?Q:this).isConnected&&this.connectedCallback()}else H===Z||this.__isReflecting||this.attributeChangedCallback(G,H,Z)};
ZcG.prototype.getExtraMethodsToForward=function(){for(var G=this,H=[],Z=_.I(Q4G),Q=Z.next(),p={};!Q.done;p={tagName$jscomp$67:void 0,name$jscomp$629:void 0},Q=Z.next())p.name$jscomp$629=Q.value,Q=void 0,p.name$jscomp$629==="_setPendingProperty"?(p.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),Q=function(l){return function(q,u,B){DI(l.tagName$jscomp$67,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return G._setPendingProperty(q,u,B)}}(p)):Q=function(l){return function(){return G[l.name$jscomp$629].apply(G,
_.OP(_.Ry.apply(0,arguments)))}}(p),H.push([p.name$jscomp$629,
Q]);return H};
for(var BzM=wct(r5a((0,_.ft)(ZcG))),D3U=["disabled","disable-upgrade"],pwt=(0,_.ft)(function(){}),lsw=new Set(Object.getOwnPropertyNames(pwt.prototype)),$3e=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.OP(lsw))),eX3=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),Q4G=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),gdw=new Set([].concat(_.OP(eX3),_.OP(Q4G),_.OP(lsw))),IsG=_.I(gdw),qT2=IsG.next();!qT2.done;qT2=IsG.next())yjf.add(qT2.value);var VvW={created:function(){KEb(this);this.initializeInjection()}};var Mvv=!1,N6=window.ShadyDOM,OSj=["appendChild","insertBefore","removeChild","replaceChild"],iSM=[Node];N6&&iSM.push(N6.Wrapper);var Nzf,AGb,ELb={};var Av,H_2=new WeakMap,Fkf=new Set;var lrR=new Set("context didCallReady is info params signalProxy".split(" ")),Iro="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),qc2="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var STG=zE({entities:GPj}),uB_=new oq(STG);var Bdw=function(){return _.uq.apply(this,arguments)||this};
_.T(Bdw,_.uq);_.u4.Object.defineProperties(Bdw.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return uB_}}});
_.N([_.BG()],Bdw);_.m$=[h9.prototype,Bdw.prototype];_.Ur={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var G=this,H={};setTimeout(function(){var Z;return _.N5((Z=G.hostElement)!=null?Z:G,"yt-live-chat-add-tooltip-target",H)},0);
this.handler_=H.handler},
detached:function(){if(this.handler_){var G;this.handler_.removeElementFromSupportingTooltips((G=this.hostElement)!=null?G:this)}this.handler_=null}}};_.Gt=new _.Gv("ICON_MANAGER_TOKEN");var JhG=[48,20,18,16,15,13,12],Kx2=new Map,fru=new Set,Xcj=new Set,TiR=new Set,$xb=new Set,c53=new Set,Wxb=new Promise(function(G){var H=!1,Z=!1,Q=!1,p=[],l=function(q){if("detail"in q)if(q=q.detail,q.name==="yt-icons")v1v(q),H=!0;else if(q.name==="yt-sys-icons")v1v(q),Z=!0;else{var u;((u=q.name)==null?0:u.includes("yt-sys-icons"))&&q.size!==24&&(v1v(q,!0),p.push(q.size),p.length===JhG.length&&(Q=!0))}H&&Z&&Q&&(window.removeEventListener("iron-iconset-added",l),G())};
window.addEventListener("iron-iconset-added",l)}),tzw=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"]]);_.RT={};_.RT.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.yn,computeHref_:function(G,H){H=H===void 0?!1:H;if(!G||G.commandExecutorCommand)return null;var Z=Swb(G,H);return H||Z!==null?Z?_.V("enable_polymer_resin")?_.m0(Z).toString():Z:null:(_.Rp(new _.C$("computeHref was null",this.is,G)),null)},
computeOptionalHref_:function(G){return this.computeHref_(G,!0)},
computeNofollow_:function(G){return G?HGW(G)?"nofollow":null:null},
computeIcon_:function(G){return G&&G.iconType?_.bq(G.iconType):""},
resolveCommand:function(G,H,Z){H=H===void 0?{}:H;return _.s6(G,this.hostElement,H,Z===void 0?!1:Z)}};var DIT,NP;_.k6R={};DIT=null;
NP={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_=DAU(this.viewroot));_.PG(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var G=this;this.unobserve_();if(_.V("kevlar_vimio_use_shared_monitor"))wcu(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 H=[];this.visibilityOptionVisible_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return G.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=H}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){MWj(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 G=_.xr(this.parentNode,function(Z){var Q,p=(Q=Z.polymerController)!=null?Q:Z;return!!p.getVisibilityObserverForChild&&p.getVisibilityObserverForChild()},!0);
if(G){var H;this.localVisibilityObserver_=((H=G.polymerController)!=null?H:G).getVisibilityObserverForChild()}else DIT||(DIT=DAU()),this.localVisibilityObserver_=DIT;return this.localVisibilityObserver_},visibilityCallback:function(G){G?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.V("kevlar_use_vimio_behavior")||(NP={});NP&&!_.V("kevlar_use_vimio_behavior")&&(delete NP.attached,delete NP.detached);_.k6R.YtVisibilityObserverBehavior=[NP];var dIa={};dIa.YtVisualElementBehavior=[_.k6R.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.V("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.V("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var G=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportShown(this,void 0,G)}},
onHidden:function(){if(_.V("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.V("kevlar_vimio_use_shared_monitor")){var G=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportHidden(this,void 0,G)}},
getVisibilityLogger:function(){return _.V("kevlar_use_vimio_behavior")?_.Qw():null},
shouldSkipLogging:function(){if(_.xI("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var G=this.getParentRenderer&&this.getParentRenderer();if(!G)return!1;var H,Z=(H=G.polymerController)!=null?H:G;if(!Z.data)return!1;G=this.data.trackingParams;G=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:G;var Q;H=(Q=Z.data)==null?void 0:Q.trackingParams;var p,l;H=((p=Z.data)==null?0:p.loggingDirectives)?(l=Z.data)==null?void 0:l.loggingDirectives.trackingParams:H;return G&&H&&G===
H}}];var i_o=new Map,Jt;var U03=function(G){this.layer=G},sV=function(G){return G.layer!==void 0?G.layer:G.parent?sV(G.parent):G.layer=0};var Uxf;_.Y={};Uxf=0;_.Y.YtRendererBehavior=[_.RT.YtComponentBehavior,dIa.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.V("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var G,H;(H=(G=this.monitorScrollElement)!=null?G:this.hostElement)==null||H.removeEventListener("scroll",_.pH(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();h$v(this.hostElement);TzG(_.v9(),this.hostElement);yY.delete(this.hostElement)},
registerRenderer:function(G){var H;((H=G.polymerController)!=null?H:G).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(G),this.markDirty())},
unregisterRenderer_:function(G){this.useVimio_||(this.childCache_.delete(G),this.markDirty())},
attached:function(){var G=this,H=this.getParentRenderer();if(H){var Z,Q,p;(Q=(Z=(p=H.polymerController)!=null?p:H).registerRenderer)==null||Q.call(Z,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var l,q;(q=(l=this.monitorScrollElement)!=null?l:this.hostElement)==null||q.addEventListener("scroll",_.pH(this,this.onScroll))}_.Ui.addJob(function(){O_f(G.hostElement)},8);
Z=new U03(this.screenLayer||void 0);(H=yY.get(H))&&H.layerNode&&(Z.parent=H.layerNode);H={};n9j(this.hostElement,(H.isRenderer=!0,H.layerNode=Z,H[RUM]=this.data,H))},
getParentRenderer:function(){for(var G=this.hostElement.parentNode,H,Z;G&&((H=yY.get(G))==null||!H.isRenderer)&&!((Z=G.polymerController)!=null?Z:G).isRenderer_;)G=G.parentNode||G.host;return G},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.V("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.YI("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.V("debug_web_ve_data")&&this.data.trackingParams){var G="";try{G=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(Z){_.me(Z)}if(G){var H=zEo(G,1);H!==void 0&&(this.hostElement.dataset.veIndex=String(H));G=zEo(G,2);
G!==void 0&&(this.hostElement.dataset.ve=String(G))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.V("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.BT(this.data.loggingDirectives.trackingParams)),this.visualElement=_.pX(_.gr(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var G=this.data.targetId;_.vL2(_.v9(),G,this.hostElement)}else TzG(_.v9(),this.hostElement)},
onScroll:function(){var G=Date.now();G-this.lastHandledScroll_<50||(this.lastHandledScroll_=G,this.markDirty())},
markDirty:function(){_.V("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():R$u(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var G=this.getParentRenderer();if(G&&(G=yY.get(G))&&G.layerNode)return sV(G.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.OP(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++)this.sendImpression(this.data.impressionEndpoints[G]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(G){G.clickTrackingParams&&delete G.clickTrackingParams;var H,Z;(G==null?0:(H=G.commandMetadata)==null?0:(Z=H.webCommandMetadata)==null?0:Z.sendPost)?_.L9(this.hostElement,[G,{impression:!0}]):_.El(this.hostElement,[G],this.hostElement)},
logExplicitClick:function(G){var H=_.$k(this.getScreenLayer());if(H){var Z,Q=(Z=G.polymerController)!=null?Z:G;G=Q.visualElement;Q=Q.trackingParams||Q.clickTrackingParams;!G&&Q&&(G=_.BT(Q));G&&_.Co(H,G)}}}];var e5t={},A9=function(){return _.uq.apply(this,arguments)||this};
_.T(A9,_.uq);A9.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
A9.prototype.onPdgItemBehaviorClick=A9.prototype.onPdgItemBehaviorClick;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],A9.prototype,"data",void 0);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],A9.prototype,"onPdgItemBehaviorClick",null);_.N([_.BG()],A9);e5t.YtPdgLiveChatItemBehavior=[A9.prototype,_.Y.YtRendererBehavior];var ndN;var Vz2;_.xy={};_.xy.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var L2=function(){var G=Jc.apply(this,arguments)||this;G.switchTemplateAtRegistration=!1;return G};
_.T(L2,Jc);L2.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||LxX(this),_.T$o(this,"doRender"),this.doRender())};
L2.prototype.debounceRender=function(){this.templatingFn&&_.rx(this,"doRender",this.doRender)};
L2.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.me(Error("ah"))};
L2.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.N([sxf()],L2);var $IN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Er={},b_u=(Er[1]={filterString:null,isUnwrappable:null,unwrap:null},Er[2]={filterString:function(G,H,Z){return FD(Z)},
isUnwrappable:function(G){return G instanceof xY},
unwrap:function(G){return Fx(G)}},Er[3]={filterString:function(G,H,Z){return $IN.test(Z)?Z:oy.toString()},
isUnwrappable:function(G){return Cq(G)},
unwrap:function(G){return _.iI(G)}},Er[4]={filterString:function(){return oy.toString()},
isUnwrappable:function(G){return G instanceof Kq},
unwrap:function(G){return _.PO(G).toString()}},Er[5]={filterString:function(G,H,Z){return Z},
isUnwrappable:function(G){return typeof G==="string"},
unwrap:function(G){return G.toString()}},Er[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(G){return G instanceof _.Z6},
unwrap:function(G){return p0(G)}},Er[8]={filterString:function(G,H,Z){Z=String(Z).toLowerCase();
return zk2(G,H,Z)?Z:"zClosurez"},
isUnwrappable:null,unwrap:null},Er[10]={filterString:null,isUnwrappable:null,unwrap:null},Er);uu[YF["default"]]=HcW;var s4W=[];(function(){var G=qV;qV=function(H){G==null||G(H);dr(function(){for(var Z=0;Z<H.length;Z++)Zcf(H[Z])})}})();var Xwp=function(){var G=_.uq.apply(this,arguments)||this;G.hasUnmounted=!1;return G};
_.T(Xwp,_.uq);_.g=Xwp.prototype;_.g.beforeRegister=function(){var G=this.doIdomRender;this.templatingFn?_.me(Error("$g")):(this.templatingFn=G,this.switchTemplateAtRegistration=!0,FxU(this))};
_.g.attached=function(){};
_.g.detached=function(){Zcf(this.hostElement)};
_.g.renderIdom=function(){throw Error("ch");};
_.g.doIdomRender=function(){var G=this;cWf(this.hostElement,function(){G.renderIdom()})};
_.N([_.BG()],Xwp);var ch_=[L2.prototype,Xwp.prototype];var Td4,fsR=function(){return Td4!==void 0?Td4:Td4=document.createElement("template")};
document.head.appendChild(fsR().content);var vdx;var W8G,z5w=function(){return W8G!==void 0?W8G:W8G=document.createElement("template")};
document.head.appendChild(z5w().content);var K8R;var Mz_=document.head,j4d=Mz_.appendChild,PsN;if(K8R===void 0){var rhN=document.createElement("template");_.f(rhN,"\x3c!--css-build:shady--\x3e");rhN.content.insertBefore(z5w().content.cloneNode(!0),rhN.content.firstChild);K8R=rhN}PsN=K8R;j4d.call(Mz_,PsN.content);var ww2,h54=function(){return ww2!==void 0?ww2:ww2=document.createElement("template")};
document.head.appendChild(h54().content);var Cst;var icG=document.head,Ocx=icG.appendChild,asd;if(Cst===void 0){var yh_=document.createElement("template");_.f(yh_,"\x3c!--css-build:shady--\x3e");yh_.content.insertBefore(h54().content.cloneNode(!0),yh_.content.firstChild);Cst=yh_}asd=Cst;Ocx.call(icG,asd.content);var odd=document.head,mIx=odd.appendChild,UId;if(vdx===void 0){var R54=document.createElement("template");_.f(R54,"\x3c!--css-build:shady--\x3e");R54.content.insertBefore(fsR().content.cloneNode(!0),R54.content.firstChild);vdx=R54}UId=vdx;mIx.call(odd,UId.content);var Nd2,Ah4=function(){return Nd2!==void 0?Nd2:Nd2=document.createElement("template")};
document.head.appendChild(Ah4().content);var xId;_.rr=new _.Gv("DARK_THEME_TOKEN");var Ndv=new _.bn("accessibilityProperties");var R5f=new _.bn("layoutProperties");var Ahf=new _.bn("imageType");var L8w={};if("ytAttributedStringLinkHoverColor"in L8w)throw Error("fh`ytAttributedStringLinkHoverColor");(function(G,H){L8w[G]="value"in H&&"unit"in H?qTv(G,H):function(Z){try{return H(Z)}catch(Q){throw Error("dh`"+G+"`"+Q.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var Ed_=function(G){var H=this;this.holdTime=G===void 0?500:G;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(Z){var Q=new CustomEvent("LONG_PRESS"),p;(p=Z.changedTouches[0].target)==null||p.dispatchEvent(Q)};
this.ontouchstart=function(Z){H.longPressTimeout=_.ZG(_.Ui,function(){H.onlongpress(Z);H.longPressOccurred=!0},H.holdTime)};
this.ontouchmove=function(){_.Ui.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!0};
this.ontouchend=function(Z){if(H.longPressTimeout&&!H.longPressOccurred&&!H.moveOccurred){var Q;(Q=Z.changedTouches[0].target)==null||Q.dispatchEvent(new Event("click"))}_.Ui.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!1}};var W8f=function(G,H){Ed_.call(this,H);var Z=this;this.callback=G;this.onlongpress=function(Q){var p;(p=Z.callback)==null||p.call(Z,Q)}};
_.T(W8f,Ed_);var z5R=function(G,H){var Z=Object.assign({},H);G=_.I(new Map([["ontouchstart",G.ontouchstart],["ontouchend",G.ontouchend],["ontouchmove",G.ontouchmove]]));for(var Q=G.next(),p={};!Q.done;p={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},Q=G.next()){var l=_.I(Q.value);Q=l.next().value;l=l.next().value;p.eventName$jscomp$103=Q;p.eventHandler$jscomp$2=l;H[p.eventName$jscomp$103]=function(q){return function(u){var B;(B=Z[q.eventName$jscomp$103])==null||B.call(Z,u);(0,q.eventHandler$jscomp$2)(u)}}(p)}};_.Dk=new _.Gv("COMMAND_HANDLER_TOKEN");var uBM=new _.bn("parallelCommand");var tzW=new _.bn("performOnceCommand");var Jhf=new _.bn("serialCommand");var k6j=void 0;var YTp=function(){this.data=[];this.consumer=null};
YTp.prototype.push=function(G){this.consumer?this.consumer(G):this.data.push(G)};var ru={};_.Ty(ru,void 0,"sgPmTd");_.Ty(null,void 0,"jypsq");_.Ty(null,void 0,"mWiOof");var ivU=new YTp;var chM=[mUR,UUx,Rdx,ANt,N02,oYN,xU4,L0_];var mIo=new _.bn("bracketTextDecorator");var jk=new _.bn("highlightTextDecorator");_.ht=new _.Gv("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var icf=function(){},F8p;
(F8p=window.requestIdleCallback)==null||F8p.bind(window);var as3={calledOnce:!1,state:"visible"},Oco={calledOnce:!1,state:"hidden"};var bc2=new _.Gv("ICON_WIZ_COMPONENT_TOKEN");_.ll=_.y(function(G){var H=G.icon;var Z=G.active;var Q=G.className;var p=G.style;var l=G.dataSelected;var q=G.dataDisabled;var u=G.role;var B=G.animateIcon;var t=G.themeOverride;var D=G.ariaHidden;var d=G.ariaExpanded;var e=G.ariaLabel;var n=G.tabindex;var c=G.id;var W=G.size;var M=G.iconFilter;var r=G.gradientColor;var w=G.onKeydown;var x=G.title;return _.J(_.k,{cond:H,then:function(){var U=_.tp().resolve(bc2);return _.J(U,{icon:H,dataSelected:l,dataDisabled:q,animateIcon:B,themeOverride:t,ariaExpanded:d,
tabindex:n,id:c,active:Z,size:W,role:u,className:Q,ariaHidden:D,ariaLabel:e,style:function(){return p!=null&&p()||W==null||!W()?p==null?void 0:p():"width: "+(W==null?void 0:W())+"px;height: "+((W==null?void 0:W())+"px;")},
title:x,iconFilter:M,gradientColor:r,onKeydown:w})}})},"k");
_.ll.idomCompat={callbacks:{onKeydown:!0}};var q2u=window.devicePixelRatio||1;var Jnv=new Map([["yt_outline_bag_black_24","bag"]]);var Yy=function(G){var H=this;this.margin=.1;this.whenInViewportWithMargin=G;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){H.requestScan()});
window.addEventListener("touchend",function(){H.requestScan()});
window.addEventListener("updateui",function(){H.requestScan()});
var Z=new _.Zo((0,_.Cu)(this.requestScan,this),100);window.addEventListener("scroll",function(){Z.fire()},!0);
window.addEventListener("resize",(0,_.Cu)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){H.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Cu)(this.requestScan,this))};
Yy.prototype.observe=function(G){this.observationTargets.includes(G)||this.observationTargets.push(G)};
Yy.prototype.unobserve=function(G){this.observationTargets=this.observationTargets.filter(function(H){return H!==G})};
Yy.prototype.requestScan=function(){var G=this;this.scanRequested||(dr(function(){GnR(G)}),this.scanRequested=!0)};
var GnR=function(G){var H=(1+G.margin)*(document.documentElement.clientHeight||window.innerHeight);G.observationTargets=G.observationTargets.filter(function(Z){var Q=Z.getBoundingClientRect();(Q=H>Q.top&&!!Q.height)&&G.whenInViewportWithMargin(Z);return!Q&&Z.parentNode});
G.scanRequested=!1};
Yy.prototype.disconnect=function(){this.observationTargets=[]};var HCw,ZCR;HCw=_.I(_.Ty(ewW(),void 0,"O3X2wd"));_.sc4=HCw.next().value;ZCR=HCw.next().value;window.addEventListener("resize",function(){ZCR(ewW())});var Qcx={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},pXG=void 0,lVR=window.innerWidth,gvR=window.innerHeight;window.addEventListener("resize",function(){pXG=void 0});var IVR;if("IntersectionObserver"in window)IVR=$pe();else{if(pXG===void 0){var q2t;q2t="matchMedia"in window?window.matchMedia(Qcx.landscape+","+Qcx.portrait).matches:void 0;pXG=q2t!==void 0?q2t:lVR>=930&&gvR>=550||lVR>=550&&gvR>=930}IVR=pXG?{observe:function(G){dr(function(){var H;(H=G.onViewportEntered)==null||H.call(G)})},
unobserve:function(){}}:new Yy(function(G){dr(function(){var H;
(H=G.onViewportEntered)==null||H.call(G)})})}var nvR=IVR;var S2x=_.y(function(G){var H=!1,Z=_.IA("img",function(Q){_.oM(function(){H=!0;Q.onload=null})});
_.yN(function(){var Q,p=(Q=G.data)==null?void 0:Q.call(G),l,q=(l=G.getSrc)==null?void 0:l.call(G).cb,u;Q=(u=G.config)==null?void 0:u.call(G);if(u=Z.value)if(l=function(t,D){if(!H)return q?q(t,D):t},T6U(u,Q),_.V("web_image_dont_reload_same_src")&&cnR(u,p,l))_.V("web_image_dont_reload_same_src_simulate_load")&&u.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var B;XXb(u,p||null,l,Q,(B=G.lazy)==null?void 0:B.call(G))}},"zS0jKb");
return _.J("img",{el:Z})},"m");
S2x.idomCompat=!0;_.ib=_.y(function(G){var H=function(){var Z,Q=G.data(),p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L,H3,qX,B3,fW,e2,$R,ie,W3,DT,UR;var zx={contentMode:(p=G.contentMode)==null?void 0:p.call(G),loadedClass:(l=G.loadedClass)==null?void 0:l.call(G),isPreloaded:(q=G.isPreloaded)==null?void 0:q.call(G),notifyOnLoaded:(u=G.notifyOnLoaded)==null?void 0:u.call(G),notifyOnUnloaded:(B=G.notifyOnUnloaded)==null?void 0:B.call(G),preferredThumbnail:(t=G.preferredThumbnail)==null?void 0:t.call(G),preserveHeight:(D=G.preserveHeight)==
null?void 0:D.call(G),preserveWidth:(d=G.preserveWidth)==null?void 0:d.call(G),objectPosition:(e=G.objectPosition)==null?void 0:e.call(G),targetWidth:(n=G.targetWidth)==null?void 0:n.call(G),targetHeight:(c=G.targetHeight)==null?void 0:c.call(G),shouldShowPlaceholder:(W=G.shouldShowPlaceholder)==null?void 0:W.call(G),useWidth:(M=G.useWidth)==null?void 0:M.call(G),isToggled:(r=G.isToggled)==null?void 0:r.call(G),alt:(w=G.alt)==null?void 0:w.call(G),className:(x=G.className)==null?void 0:x.call(G),
onerror:G.onerror,onload:G.onload,style$:((U=G.style$)==null?void 0:U.call(G))||((R=G.style)==null?void 0:R.call(G)),color:(L=G.color)==null?void 0:L.call(G),width:(H3=G.width)==null?void 0:H3.call(G),height:(qX=G.height)==null?void 0:qX.call(G),"aria-hidden$":(DT=(B3=G["aria-hidden$"])==null?void 0:B3.call(G))!=null?DT:(fW=G.ariaHidden)==null?void 0:fW.call(G),draggable:(e2=G.draggable)==null?void 0:e2.call(G),"data-disabled$":(UR=($R=G["data-disabled$"])==null?void 0:$R.call(G))!=null?UR:(ie=G.dataDisabled)==
null?void 0:ie.call(G),size:(W3=G.size)==null?void 0:W3.call(G)};return WBf(Q,zx,(Z=G.hideOn404)==null?void 0:Z.call(G))};
return _.J(_.iW,null,_.J(_.wO,{when:function(){var Z;return((Z=H())==null?void 0:Z.type)==="image"}},function(){return _.J(S2x,{data:function(){return H().image},
getSrc:{cb:function(Z,Q){var p=H().image.sources,l=H().config.isPreloaded,q=H().config.useWidth,u=H().config.targetWidth,B=H().config.targetHeight,t=H().config.preferredThumbnail;return _.S2o(Q,p,l,q,u,B,t)||""}},
config:function(){var Z=H().config,Q;for(Q in Z)Z[Q]===void 0&&delete Z[Q];return Z},
lazy:G.renderLazy})}),_.J(_.wO,{when:function(){var Z;
return((Z=H())==null?void 0:Z.type)==="icon"}},function(){return _.J(_.ll,{icon:function(){return H().iconName},
role:function(){return H().config.role},
className:function(){return H().config.className},
style:function(){return H().config.style$+";width: "+(H().config.width+"px;height: ")+(H().config.height+"px;color: ")+(H().config.color+";")},
ariaLabel:function(){return H().config["aria-label$"]},
ariaHidden:function(){return H().config["aria-hidden$"]},
dataDisabled:function(){return H().config["data-disabled$"]},
active:function(){return H().config.isToggled},
size:function(){return H().config.size}})}))},"n");
_.ib.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var uIa=function(G){return function(H){return _.J(yWj,null,function(){var Z=H.data(),Q=_.Uv(H.config);return _.J(dBb,null,function(){return void G(Z,Q)})})}}(Pge),M0U=_.y(function(G){var H=function(p){var l,q=_.aX(function(n){l=mf(function(){for(var c=_.I(d()),W=c.next();!W.done;W=c.next()){W=rnj(W.value);
W=typeof W==="string"?document.createTextNode(W):W;if(!(W instanceof Node)){c=new _.C$("Part is not a node",W,typeof W);_.me(c);break}n.appendChild(W)}})});
var u=_.V("web_wiz_attributed_string_skip_empty")?p:yw(function(){return L8R(p())},{isEqual:KBj});
var B=_.yy(G.config),t=function(){var n,c=u();return!((n=B())==null||!n.ariaLabel)||!(c.commandRuns&&c.commandRuns.length!==0||c.paragraphStyleRuns&&c.paragraphStyleRuns.length!==0)},D=yw(B,{isEqual:hwj}),d=function(){var n=xI3(u(),D());
YT2(n,D());return u().content?ZCj(u().content,n).parts:[]},e=!0;
_.yN(function(){u();D();if(e)e=!1;else{var n=d();Promise.resolve().then(function(){var c=q.value;if(c){c.innerText="";var W;(W=l)==null||W();l=_.az(c,function(){return _.J(wXj,{parts:n})},"o")}})}},"S2CIIe");
return _.J("span",{el:q,class:function(){return u()&&rhj(u(),B())},
dir:function(){var n;return((n=B())==null?0:n.userInput)?"auto":void 0},
"aria-label":function(){var n;return t()?(n=B())==null?void 0:n.ariaLabel:void 0},
role:function(){return t()?"text":void 0}})},Z=_.V("web_wiz_attributed_string_skip_empty")?yw(function(){var p,l=(p=G.text)==null?void 0:p.call(G);
if(l)return p=L8R(l),(p==null?0:p.content)?p:void 0},{isEqual:KBj}):G.text,Q;
return((Q=G.config)==null?0:Q.renderedFromFormattedString)?H(Z):_.J(_.k,{cond:Z,then:H})},"q");
M0U.idomCompat=!0;_.Fe=_.y(function(G){var H=_.yy(G.text),Z=CgW(G);G.renderedFromFormattedString!==void 0&&(Z.renderedFromFormattedString=!0);return _.V("attr_string_reactive")?_.J(M0U,{text:H,config:Z}):_.J(_.k,{cond:function(){var Q;return H()&&((Q=L8R(H()))==null?void 0:Q.content)},
then:function(){return _.J(uIa,{data:G.text,config:Z})},
debugInstance:"Apcuac"})},"r");
_.Fe.idomCompat=!0;var iCf=function(G,H,Z){H=H===void 0?"unknown":H;Z=Z===void 0?{}:Z;_.C$.call(this,G+" ("+H+")",Object.assign({},{name:"YtWcwError",tagName:H},Z));Object.setPrototypeOf(this,this.constructor.prototype)};
_.T(iCf,_.C$);_.U6=new WeakMap;_.m3=!1;var mpf,Up3,ovW;_.b3=Symbol("hh");_.oX=Symbol("ih");mpf=Symbol("jh");Up3=new Set(Object.getOwnPropertyNames(Element.prototype));ovW=Symbol("kh");var B6a=_.y(function(G){return _.J("yt-attributed-string",{"aria-label":G.ariaLabel,hidden:G.hidden,id:G.id,class:G.className,"force-default-style":G.forceDefaultStyle},_.J(_.Fe,{text:G.data,ariaLabel:G.ariaLabel,ellipsisTruncate:G.ellipsisTruncate,isOverlay:G.isOverlay,linkInheritColor:G.linkInheritColor,noPreWrap:G.noPreWrap,noWrap:G.noWrap,userInput:G.userInput,noEndpoints:G.noEndpoints,headerRuns:G.headerRuns,isHeadline:G.isHeadline}))},"s");
_.V("web_wiz_attributed_string")&&_.RX(B6a,"yt-attributed-string",{props:{ariaHidden:_.b3,ariaLabel:_.b3,className:_.b3,ellipsisTruncate:_.b3,isOverlay:_.b3,linkInheritColor:_.b3,noEndpoints:_.b3,noStyleRuns:_.b3,noLinkColor:_.b3,noPreWrap:_.b3,noWrap:_.b3,skipOnClick:_.b3,userInput:_.b3,headerRuns:_.b3,isHeadline:_.b3,id:_.b3,data:_.b3,hidden:_.b3,forceDefaultStyle:_.b3,text:_.oX,disableUpgrade:_.oX,disable:_.oX,slot:_.oX}});var Gp=function(){return _.C.apply(this,arguments)||this};
_.T(Gp,_.C);Gp.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},Pge(this.data,this.config))};
_.N([_.v(ch_),_.A("design:type",Object)],Gp.prototype,"ytIdomTemplatingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Gp.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Gp.prototype,"ariaLabel",void 0);_.N([_.h(),_.A("design:type",Boolean)],Gp.prototype,"disable",void 0);_.N([_.h(),_.A("design:type",Boolean)],Gp.prototype,"ellipsisTruncate",void 0);_.N([_.h(),_.A("design:type",Boolean)],Gp.prototype,"isOverlay",void 0);
_.N([_.h(),_.A("design:type",Boolean)],Gp.prototype,"linkInheritColor",void 0);_.N([_.h(),_.A("design:type",Boolean)],Gp.prototype,"noPreWrap",void 0);_.N([_.h(),_.A("design:type",Boolean)],Gp.prototype,"noWrap",void 0);_.N([_.h(),_.A("design:type",Boolean)],Gp.prototype,"userInput",void 0);_.N([_.h(),_.A("design:type",Boolean)],Gp.prototype,"noEndpoints",void 0);_.N([_.h(),_.A("design:type",Array)],Gp.prototype,"headerRuns",void 0);
_.N([_.fH({is:"yt-attributed-string",disableElementRegistration:!0})],Gp);
_.V("web_wiz_attributed_string")||_.m(Gp,"yt-attributed-string",function(){if(xId===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
G.content.insertBefore(Ah4().content.cloneNode(!0),G.content.firstChild);xId=G}G=xId;return G},{mode:2});var Jn2,t02,Y2v;Jn2=function(){this.firstThumbnailLoaded=!1};
_.knG=function(){t02||(t02=new Jn2);return t02};
Y2v=function(G){var H=_.knG();H.firstThumbnailLoaded||(H.firstThumbnailLoaded=!0,_.$K("ftl",G))};
Jn2.prototype.reset=function(){this.firstThumbnailLoaded=!1};var N6j=0,Evu=new WeakMap,xpj=0,xC=new Set;var Dpx,dp4=function(){return Dpx!==void 0?Dpx:Dpx=document.createElement("template")};
document.head.appendChild(dp4().content);var eww;var HPo,ZPf,HY;_.YC=_.Qf.caches;HY=function(){};
HY.prototype.open=function(G){return _.YC.open(nvw(G))};
HY.prototype.has=function(G){return _.YC.has(nvw(G))};
HY.prototype.delete=function(G){return _.YC.delete(nvw(G))};
HY.prototype.match=function(G,H){var Z=this,Q,p,l,q,u,B;return _.S(function(t){switch(t.nextAddress){case 1:return t.yield(Z.keys(),2);case 2:Q=t.yieldResult,p=_.I(Q),l=p.next();case 3:if(l.done){t.jumpTo(5);break}q=l.value;return t.yield(Z.open(q),6);case 6:return u=t.yieldResult,t.yield(u.match(G,H),7);case 7:if(B=t.yieldResult)return t.return(B);l=p.next();t.jumpTo(3);break;case 5:return t.return()}})};
var Qdv=function(){};
_.T(Qdv,HY);var nvw=function(G){if(G.includes(":"))throw Error("nh`"+G);return G+":"+_.w7("CacheStorage get")};
Qdv.prototype.keys=function(){var G,H,Z,Q,p,l,q,u,B;return _.S(function(t){if(t.nextAddress==1)return G=[],H=_.w7("CacheStorage keys"),t.yield(_.YC.keys(),2);Z=t.yieldResult;Q=_.I(Z);for(p=Q.next();!p.done;p=Q.next())l=p.value,q=_.G0f(l),u=q.originalName,B=q.datasyncId,B===H&&G.push(u);return t.return(G)})};var sM=function(){var G=_.C.apply(this,arguments)||this;G.objectURL=null;G.loadTime=Infinity;return G};
_.T(sM,_.C);_.g=sM.prototype;_.g.renderIdom=function(){bCX(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&fVj(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.g.objectFitToContentMode=function(G){switch(G){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.g.logThumbnailFailureVe=function(){var G=_.bl(197497);_.fQ(_.gr(),G);var H=_.$k();H&&G&&H&&_.w8(H,[G])};
_.g.loadImageFromCacheIfExists=function(G){var H=this,Z=G.target;(Z==null?0:Z.src)&&lm2(Z.src).then(function(Q){H.objectURL=_.U_(Q).toString();H.setSrc(Z,H.objectURL)}).catch(function(){})};
_.g.onError=function(G){var H=this;if(_.V("web_use_cache_for_image_fallback")){var Z=G.target;Z&&lm2(Z.src).then(function(Q){H.objectURL=_.U_(Q).toString();H.setSrc(Z,H.objectURL)}).catch(function(){_.V("kevlar_woffle_log_thumbnail_failure_ve")&&H.logThumbnailFailureVe();
_.V("kevlar_woffle_fallback_image")&&H.setSrc(Z,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.g.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.g.setConfig=function(){var G=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(H){G.loadImageFromCacheIfExists(H);G.revokeObjectURL();FB2(G.hostElement)},
onerror:function(H){G.onError(H)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.V("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.g.setSrc=function(G,H){H&&(G.src=H)};
_.N([_.v(ch_),_.A("design:type",Object)],sM.prototype,"ytIdomTemplatingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sM.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],sM.prototype,"alt",void 0);_.N([_.h(),_.A("design:type",Boolean)],sM.prototype,"ftlEligible",void 0);_.N([_.h(),_.A("design:type",Number)],sM.prototype,"height",void 0);_.N([_.h(),_.A("design:type",Boolean)],sM.prototype,"notifyOnLoaded",void 0);
_.N([_.h(),_.A("design:type",Boolean)],sM.prototype,"notifyOnUnloaded",void 0);_.N([_.h(),_.A("design:type",String)],sM.prototype,"objectFit",void 0);_.N([_.h(),_.A("design:type",String)],sM.prototype,"objectPosition",void 0);_.N([_.h(),_.A("design:type",String)],sM.prototype,"preferredThumbnail",void 0);_.N([_.h(),_.A("design:type",Boolean)],sM.prototype,"preserveHeight",void 0);_.N([_.h(),_.A("design:type",Boolean)],sM.prototype,"preserveWidth",void 0);
_.N([_.h({value:!0}),_.A("design:type",Boolean)],sM.prototype,"useWidth",void 0);_.N([_.h({value:function(){return!_.YI("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.A("design:type",Boolean)],sM.prototype,"shouldRenderLazy",void 0);_.N([_.h(),_.A("design:type",Number)],sM.prototype,"width",void 0);_.N([_.fH({is:"yt-image",disableElementRegistration:!0})],sM);
_.m(sM,"yt-image",function(){if(eww===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);G.content.insertBefore(dp4().content.cloneNode(!0),G.content.firstChild);
eww=G}G=eww;return G},{mode:2});var Z7=function(){return _.C.apply(this,arguments)||this};
_.T(Z7,_.C);Z7.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var G=_.Tt(this.data.onVisibleCommand);G&&this.ytComponentBehavior.resolveCommand(G)}};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Z7.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.xy.YtVisibilityBehavior),_.A("design:type",Object)],Z7.prototype,"ytVisibilityBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Z7.prototype,"data",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Z7);
_.m(Z7,"yt-bumper-user-edu-content-view-model",function(){if(Vz2===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;ndN===void 0&&(ndN=document.createElement("template"));var Q=ndN;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Vz2=G}G=Vz2;return G},{mode:0});var V0p;var $pa,XXa=function(){if($pa!==void 0)return $pa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;V0p===void 0&&(V0p=document.createElement("template"));var Q=V0p;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return $pa=G};var cnw;_.Q6={};cnw=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"]);_.Q6.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var G=this.getContext_();return G?G.getTaskManager():_.Ui},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var G=_.N5(this.hostElement,"yt-get-context-provider",{});G.detail&&G.detail.contextProvider?this.cachedProviderNode_=G.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return cnw.has(this.hostElement.localName)},
getNetworkManager:function(){var G=this.getContext_();if(G)return G.getNetworkManager()}};var B42,T6T,vv_,fVN;_.pi=function(G){var H=T6T.get(G);if(H&&(H=H.pop()))return fVN++,H;vv_++;try{var Z=document.createElement(G)}catch(Q){throw new _.C$("ElementPool failed to create element",G,Q.message);}return Z};
B42=function(G){var H=G.is;if(H){var Z=T6T.get(H);Z||(Z=[],T6T.set(H,Z));var Q=_.xI("ELEMENT_POOL_CONFIG")||{};Z.length>=(Q[H]!==void 0?Q[H]:_.xI("ELEMENT_POOL_DEFAULT_CAP",0))||Z.push(G)}else _.Rp(new _.C$("Element pool should only handle custom elements:",G.nodeName))};
T6T=new Map;vv_=0;fVN=0;var Fg=new WeakMap,uHj=new WeakMap;var zwN;_.l1=function(G,H,Z){Z=Z===void 0?_.DG():Z;this.JSC$13894_defaultPriority=G;this.signal=H;this.scheduler=Z;this.nextJobDescriptor=0;this.JSC$13894_parkedJobs=[];this.scheduledJobs=new Map};
_.gv=function(G,H){if(H){var Z=_.ZO();G.signal&&!_.QA(Z,G.signal)?(Z.addListener(G.signal,function(){G.processSignal()}),G.JSC$13894_parkedJobs.push({job:H,
priority:void 0})):WB4(G,H)}};
zwN=function(G,H){if(H!==G.JSC$13894_defaultPriority){G.JSC$13894_defaultPriority=H;for(var Z=_.I(G.scheduledJobs.values()),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,G.scheduler.cancelJob(Q.jobId),Q.jobId=G.scheduler.addJob(Q.jobWrapper,H)}};
_.l1.prototype.flushJobs=function(){zwN(this,10);this.processSignal()};
_.l1.prototype.cancel=function(){for(var G=_.I(this.scheduledJobs),H=G.next();!H.done;H=G.next()){var Z=_.I(H.value);H=Z.next().value;Z=Z.next().value;this.scheduler.cancelJob(Z.jobId);this.scheduledJobs.delete(H)}this.JSC$13894_parkedJobs=[]};
_.l1.prototype.processSignal=function(){for(var G=_.I(this.JSC$13894_parkedJobs),H=G.next();!H.done;H=G.next())H=H.value,WB4(this,H.job,H.priority);this.JSC$13894_parkedJobs=[]};
var WB4=function(G,H,Z){Z=Z||G.JSC$13894_defaultPriority;if(Z===10)LX(H);else{var Q=G.nextJobDescriptor++,p=function(){H();G.scheduledJobs.delete(Q)},l=G.scheduler.addJob(p,Z);
G.scheduledJobs.set(Q,{jobWrapper:p,jobId:l,priority:Z})}};var KBN;_.Ii={};KBN={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Ii.YtRendererstamperBehavior=[_.Q6.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 G in this.stampDom){var H=this.stampDom[G];H&&H.id&&this.addReactiveSchema({type:"observe",method:{methodName:ImX(H.id),args:[{type:"wildcard",path:G}]}})}else{(G=(this.constructor.generatedFrom||this).observers)||(G=[]);for(H in this.stampDom){var Z=this.stampDom[H];Z&&Z.id&&G.push(ImX(Z.id)+"("+H+".*)")}this.constructor.generatedFrom.observers=G}},
addStampDomObserverFns_:function(){for(var G in this.stampDom){var H=this.stampDom[G];H.id?(this[ImX(H.id)]=this.rendererStamperObserver_.bind(this,G,H.id),this.hasDataPath_[G]=!1):(H=new _.C$("Bad rendererstamper config",this.is+":"+G),_.me(H))}},
rendererStamperObserver_:function(G,H,Z){if(Z.path==G){if(Z.value===void 0&&!this.hasDataPath_[G])return;this.hasDataPath_[G]=Z.value!==void 0}this.rendererStamperApplyChangeRecord_(G,H,Z)},
rendererStamperApplyChangeRecord_:function(G,H,Z){var Q=this.renderJobsMap_[H],p=null;G==Z.path?(Z=Z.value,_.Uj(Z)||(Z=Z===void 0||Z===null?[]:[Z]),G=this.stampDom[G],G.mapping&&(p=this.stampDomArray_.bind(this,Z,H,G.mapping,G.reuseComponents,G.events,G.stamperStableList)),Q&&Q.cancel(),Z=G.usePageScheduler?this.getTaskManager():void 0,Q||G.initialRenderPriority==void 0)?G.renderPriority==void 0||Q||(Q=new _.l1(G.renderPriority,G.waitForSignal,Z),this.renderJobsMap_[H]=Q):(Q=new _.l1(G.initialRenderPriority,
G.waitForSignal,Z),this.renderJobsMap_[H]=Q,p=function(l,q){l();zwN(q,10)}.bind(this,p,Q)):p=G+".splices"==Z.path?this.stampDomArraySplices_.bind(this,G,H,Z.value):this.forwardRendererStamperChanges_.bind(this,G,H,Z);
Q?_.gv(Q,p):p()},
forwardRendererStamperChanges_:function(G,H,Z){var Q=Z.path.slice(G.length+1),p=this.getStampContainer_(H),l=Q.indexOf("."),q=Q.substring(0,l),u=!1,B=0,t=parseInt(q,0);if(q[0]=="#"){u=parseInt(q.substring(1),0);t=this.get(G);var D=this.get([G,q]);t[u]==D?B=u:B=t.indexOf(D);u=!0}else isNaN(t)||(B=t,u=!0);u&&(Q=Q.substring(q.length+1),l=Q.indexOf("."));q=this.polymerDom(p).children[B];var d;if(p=(d=q==null?void 0:q.polymerController)!=null?d:q)Q="data"+Q.slice(l),typeof p.notifyPath!=="function"?_.Rp(new _.C$("notifyPath missing",
this.is+": "+G+", "+H)):Z.value?p.notifyPath(Q,Z.value):p.notifyPath(Q)},
stampDomArraySplices_:function(G,H,Z){if(Z&&Z.indexSplices){var Q=this.getStampContainer_(H);if(Q){for(var p=this.polymerDom(Q),l=S8X(this.stampDom[G].reuseComponents),q=Z.indexSplices.length,u=0;u<q;u++){for(var B=Z.indexSplices[u],t=p.children[B.index],D=B.removed.length;D>0;D--)t&&t.parentElement&&(this.polymerDom(t.parentElement).removeChild(t),l&&B42(t),t=p.children[B.index]);D=this.stampDom[G].mapping;for(var d=B.index+B.addedCount,e=document.createDocumentFragment(),n=l,c=B.index;c<d;c++){var W=
B.object[c],M=g7e(D,W);if(M){var r=D[M];W=W[M];M=this.getComponentName_(r,W);var w=t?Fg.has(t):!1;n&&t&&t.is==M&&w?(M=t,this.telemetry_.reuse++,t=t.nextElementSibling):n&&t&&w?(M=this.createComponent_(r,W,l),w=this.polymerDom(t).nextElementSibling,p.insertBefore(M,w),tZj(this.is,p,t,l),t=w):(n=!1,M=this.createComponent_(r,W,l),e.appendChild(M));this.deferRenderStamperBinding_(M,r,W)}else r=new _.C$("Unimplemented type",G,H,Q.tagName,Object.keys(W)[0]),_.me(r)}p.insertBefore(e,t)}this.flushRenderStamperComponentBindings_();
this.stampDom[G].events&&_.N5(this.hostElement,"yt-rendererstamper-finished",{container:Q})}else G=new _.C$("Container object not found",H,this.hostElement?this.hostElement.is:""),_.me(G)}},
stampDomArray_:function(G,H,Z,Q,p,l){var q=this.getStampContainer_(H);if(q)if(H=this.polymerDom(q),Q=S8X(Q),G){var u=0,B=0,t;if(l=l===void 0?_.YI("STAMPER_STABLE_LIST",!1):l||!1)for(t=H.firstElementChild;t&&!Fg.has(t)&&G.length>B;){l=G[B];var D=g7e(Z,l);if(D){if(this.getComponentName_(Z[D],l[D])!=t.is){var d=this.createComponent_(Z[D],l[D],Q),e=_.Bf(t).nextElementSibling;e?H.insertBefore(d,e):H.appendChild(d);tZj(this.is,H,t,Q);t=d}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(t,Z[D],
l[D]);u++;B++;t=this.polymerDom(t).nextElementSibling}else B++}k0f(this.is,H,u,Q);u=t;if(G.length>B){l=document.createDocumentFragment();for(D=G.length;B<D;B++)if(d=G[B],e=g7e(Z,d))t=this.createComponent_(Z[e],d[e],Q),this.deferRenderStamperBinding_(t,Z[e],d[e]),l.appendChild(t);if(u&&this.polymerDom(u).parentNode&&t&&!Fg.has(t))H.insertBefore(l,u);else try{H.appendChild(l)}catch(n){_.Rp(new _.C$("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();p&&_.N5(this.hostElement,"yt-rendererstamper-finished",{container:q})}else k0f(this.is,H,0,Q);else G=new _.C$("Container object not found",H,this.hostElement?this.hostElement.is:""),_.me(G)},
polymerDom:function(G){return this.minimizePipBreakages?G:_.Bf(G)},
getStampContainer_:function(G){return this.$&&this.$[G]||_.F9(this.hostElement).querySelector("#"+G)},
getComponentName_:function(G,H){return typeof G==="string"?G:G.matcher?G.matcher.call(this,H):G.component},
createComponent_:function(G,H,Z){G=this.getComponentName_(G,H);try{var Q=Fkf.has(G);if(Z&&!Q){var p=_.pi(G);try{_.ZI(p)}catch(l){Z="Failed to clear styles for "+G+".",l.message&&(Z+=" Original error: "+l.message),_.Rp(new _.C$(Z))}}else p=document.createElement(G)}catch(l){return p="YtRendererStamperBehavior failed to create "+G+".",l.message&&(p+=" Original description: "+l.message),l.message="YtRendererStamperBehavior failed to create element",_.N1(l,p),KBN.hasOwnProperty(G)?_.Rp(l):_.me(l),document.createElement("SPAN")}this.telemetry_.create++;
return p},
deferRenderStamperBinding_:function(G,H,Z){this.deferredBindingTasks_.push({component:G,typeOrConfig:H,data:Z})},
flushRenderStamperComponentBindings_:function(){for(var G=0,H=this.deferredBindingTasks_.length;G<H;G++){var Z=this.deferredBindingTasks_[G];if(!Z)break;var Q=void 0,p=void 0,l=void 0,q=void 0,u=Z.component,B=Z.typeOrConfig;Z=Z.data;var t=(q=u.polymerController)!=null?q:u;q=u.loggingStatus;try{q&&(q.isRendererStamper=!0);if(typeof B!=="string"){for(l in B.attributes)B.attributes[l]===!0?u.setAttribute(l,""):B.attributes[l]===!1?u.removeAttribute(l):u.setAttribute(l,B.attributes[l]);for(p in B.params)t[p]=
B.params[p],u!==t&&DI(u.localName,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(Q in B.properties){var D=B.properties[Q];if(D){var d=q8u(D);t[Q]=this.get(d);u!==t&&DI(u.localName,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(Q==="on-tap"||Q==="on-click"){var e=this.get(d);u.addEventListener("click",e);uHj.set(u,{property:Q,listener:{type:"element",eventName:"click",handler:e}})}}else{var n=new _.C$("Undefined property binding",Q);_.me(n)}}}if(B.classListBinding){var c=q8u(B.classListBinding),
W=c?this[c]:null;if(W)for(Q=0;Q<W.length;Q++)_.Gq(u,W[Q],!0)}t.data=Z}finally{q&&(q.isRendererStamper=!1)}if(Q=Fg.get(u))u.hidden=!1,Fg.delete(u),_.Ui.cancelJob(Q)}this.deferredBindingTasks_.length=0}}];_.RX(_.y(function(G){function H(){Z().seconds&&l(Qae({seconds:Number(Z().seconds)-Date.now()/1E3}))}
var Z=G.targetTimestamp;G=G.className;var Q=_.I(_.Ty("",void 0,"U1Q8Ae")),p=Q.next().value,l=Q.next().value;_.yP(function(){H();var q=setInterval(function(){H()},1E3);
_.oM(function(){clearInterval(q)})});
return _.J("yt-countdown",{class:_.bb("ytCountDownHost",G)},_.J("div",null,p))},"u"),"yt-countdown",{props:{targetTimestamp:_.b3,
className:_.oX}});_.qZ=new _.Gv("KEY_MANAGER_TOKEN");var cTR={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"};_.S8=_.y(function(G){var H=_.IA("a",G.ref),Z=G.aTagConfig?G.aTagConfig:_.Kb(function(){var Q,p,l,q,u;var B=(u=_.Tt((l=G.command)==null?void 0:l.call(G)))!=null?u:(q=G.command)==null?void 0:q.call(G);return _.vT({innertubeCommand:B,skipOnClick:(Q=G.skipOnClick)==null?void 0:Q.call(G),defaultTarget:(p=G.target)==null?void 0:p.call(G)})||{}},void 0,"TAvz0");
_.yN(function(){_.V("mweb_get_endpoint_from_atag_command")||(H.value._data=Z()._data,H.value.params=Z().params)},"dcjvAe");
return _.J("a",{el:H,href:function(){return Z().href$},
rel:function(){return Z().rel$},
class:function(){var Q,p;return(p=Z().className)!=null?p:(Q=G.className)==null?void 0:Q.call(G)},
style:function(){var Q;if((Q=G.style)==null?0:Q.call(G))return G.style();var p;return((p=G.disabled)==null?0:p.call(G))?"pointer-events:none":""},
"aria-haspopup":function(){return!!Z()["aria-haspopup$"]},
"force-new-state":sO(function(){return Z()["force-new-state$"]}),
title:sO(function(){var Q,p;return(p=Z().title$)!=null?p:(Q=G.title)==null?void 0:Q.call(G)}),
role:sO(function(){var Q;return((Q=G.role)==null?void 0:Q.call(G))||Z().role$}),
target:sO(function(){return Z().target$}),
dir:sO(function(){var Q;return((Q=G.dir)==null?void 0:Q.call(G))||Z().dir}),
tabindex:function(){var Q;return Z().tabindex$?Number(Z().tabindex$):(Q=G.tabIndex)==null?void 0:Q.call(G)},
"aria-hidden":function(){var Q,p;return(p=Z()["aria-hidden$"])!=null?p:(Q=G.ariaHidden)==null?void 0:Q.call(G)},
"aria-label":function(){var Q,p;return(p=Z()["aria-label$"])!=null?p:(Q=G.ariaLabel)==null?void 0:Q.call(G)},
"aria-current":G.ariaCurrent,"aria-disabled":G.disabled,"aria-labelledby":G.ariaLabelledby,"aria-describedby":G.ariaDescribedby,"aria-selected":G.ariaSelected,"tab-identifier":G.tabIdentifier,"on:pointerdown":_.Hh(function(Q){var p,l;return void((l=(p=Z()).onpointerdown)==null?void 0:l.call(p,Q))}),
"on:click":_.Hh(function(Q){var p,l;(l=(p=Z()).onclick)==null||l.call(p,Q);var q;(q=G.onClick)==null||q.call(G,Q)}),
"on:focusin":_.Hh(function(Q){var p;(p=G.onFocusin)==null||p.call(G,Q)}),
"on:focusout":_.Hh(function(Q){var p;(p=G.onFocusout)==null||p.call(G,Q)})},G.children)},"w");var jde={duration:1E3,easing:"ease",fill:"forwards"};MZU.componentType=Cb;var wJe={duration:1E3,easing:"ease",fill:"forwards"},Pga=_.y(function(G){var H=_.IA("animated-rolling-character"),Z=void 0,Q=function(){var u,B;return iJ((u=G.character)==null?void 0:u.call(G))||iJ((B=G.previousCharacter)==null?void 0:B.call(G))},p=_.I(_.Ty(0,void 0,"CYT8Ob")),l=p.next().value,q=p.next().value;
_.yP(function(){if(window.ResizeObserver&&_.V("web_fix_rolling_numbers_zoom_safari")){var u=new _.Zo(function(){var t,D,d=Math.round(((D=(t=H.value.querySelector("div"))==null?void 0:t.getBoundingClientRect().height)!=null?D:0)*100)/100;d&&q(d)},500),B=new ResizeObserver(function(){u.fire()});
B.observe(H.value);_.oM(function(){B.disconnect();u.dispose()})}});
_.yN(function(){var u=_.V("web_fix_rolling_numbers_zoom_safari")?l:G.marginMultiplier;if(u()){var B;(B=Z)==null||B.cancel();if(Q()){var t;B=((t=G.previousCharacter)==null?0:t.call(G))?Number(G.previousCharacter())+10:G.rollUp()?0:30;var D;if((D=G.shouldAnimate)==null||!D.call(G)){var d,e;B-=rTf((d=G.character)==null?void 0:d.call(G),(e=G.previousCharacter)==null?void 0:e.call(G),G.rollUp(),B)}}else{B=G.rollUp()?0:2;var n;(n=G.shouldAnimate)!=null&&n.call(G)||(t=B,D=G.rollUp()?-1:1,B=t-D)}H.value.style.marginTop=
"-"+B*u()+"px";var c;if((c=G.shouldAnimate)==null?0:c.call(G)){var W,M;Z=h6e(H.value,(W=G.character)==null?void 0:W.call(G),(M=G.previousCharacter)==null?void 0:M.call(G),G.rollUp(),B,Q(),u())}else{var r;H.value.style.display=((r=G.character)==null?0:r.call(G))?"":"none"}}},"CA6Pmf");
return _.J("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},_.J(_.k,{cond:Q,then:function(){return _.J(M0T,null)},
else:function(){return _.J(jc_,{character:G.character})}}))},"z");
Pga.idomCompat=!0;var ChU=_.V("web_enable_sink_animated_rolling_character_and_number")?Pga:MZU,rnR=_.V("web_enable_sink_animated_rolling_character_and_number")?Pga:Phf(MZU),M0T=_.y(function(){for(var G=[],H=1;H<30;H++)G.push(_.J("div",null,H%10));return _.J(_.kI,null,_.J("div",null,"\u00a0"),G,_.J("div",null,"\u00a0"))},"A"),jc_=_.y(function(G){var H=G.character;
return _.J(_.kI,null,_.J("div",null,"\u00a0"),_.J(_.k,{cond:function(){return!(H==null?0:H())||_.ue(H==null?void 0:H())},
then:function(){return _.J("div",null,"\u00a0")},
else:function(){return _.J("div",null,H)}}),_.J("div",null,"\u00a0"))},"B");iPv.componentType=Cb;var wXN=_.y(function(G){var H=void 0,Z=void 0,Q=function(){var l;return((l=G.fontSizeMultiplier)==null?0:l.call(G))?G.heightPx()*G.fontSizeMultiplier():G.heightPx()},p=_.Kb(function(){if(!G.numberText())return[];
var l,q,u=((l=G.forceRollUp)==null?void 0:l.call(G))||!Z||!((q=G.numberValue)==null?0:q.call(G))||Z<G.numberValue(),B,t=G.numberText();l=Q();q=!((B=G.shouldAnimate)==null||!B.call(G));B=[];var D=0,d=0,e=(H?H.replace(/\D/g,"").length:0)-(t?t.replace(/\D/g,"").length:0),n=H?H.split(/(\d)/).filter(Boolean):[];for(t=t.split(/(\d)/).filter(Boolean);e<0;){var c=t[d];B.push({character:c,rollUp:u,marginMultiplier:l,shouldAnimate:q});d++;iJ(c)&&e++}for(;D<e;)c=n[D],B.push({previousCharacter:c,rollUp:u,marginMultiplier:l,
shouldAnimate:q}),D++,iJ(c)||e++;for(;d<t.length;)e=t[d],c=n[D],iJ(e)===iJ(c)?(d++,D++):iJ(e)?(D++,e=void 0):iJ(c)&&(d++,c=void 0),B.push({character:e,previousCharacter:c,rollUp:u,marginMultiplier:l,shouldAnimate:q});H=G.numberText();var W;Z=(W=G.numberValue)==null?void 0:W.call(G);return B},void 0,"kWiBv");
return _.J("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return G.numberText()?["height: "+Q()+"px;","line-height: "+G.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.J(_.Cl,{each:p,keyBy:"INDEX"},function(l){return _.J(rnR,{character:function(){return l().character},
previousCharacter:function(){return l().previousCharacter},
marginMultiplier:function(){return l().marginMultiplier},
rollUp:function(){return l().rollUp},
shouldAnimate:function(){return l().shouldAnimate}})}))},"C");
wXN.idomCompat=!0;_.hwR=_.V("web_enable_sink_animated_rolling_character_and_number")?wXN:Phf(iPv);var Cgw=function(G,H){this.fillAnimation=new Animation(o7b(G),document.timeline);this.strokeAnimation=new Animation(mDb(H),document.timeline)};
Cgw.prototype.play=function(){var G,H;(H=(G=this.fillAnimation).play)==null||H.call(G);var Z,Q;(Q=(Z=this.strokeAnimation).play)==null||Q.call(Z)};
Cgw.prototype.cancel=function(){var G,H;(H=(G=this.fillAnimation).cancel)==null||H.call(G);var Z,Q;(Q=(Z=this.strokeAnimation).cancel)==null||Q.call(Z)};_.u1=_.y(function(G){var H=G.model;var Z=G.pointerDownEvent;var Q=G.pointerUpEvent;var p=G.pointerLeaveEvent;var l=G.hovered;G=_.IA("yt-touch-feedback-shape");var q=_.IA("div"),u=_.IA("div"),B=_.I(_.QF(function(){return(Q==null?0:Q())||(p==null?0:p())?!1:!(Z==null||!Z())||!1})),t=B.next().value,D=B.next().value,d=void 0,e=function(){!d&&u.value&&q.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(d=new Cgw(u.value,q.value));
var w;(w=d)==null||w.play()},n=function(){var w;
(w=d)==null||w.cancel()},c=function(){var w;
(w=d)==null||w.cancel()};
_.yN(function(){(Q==null?0:Q())&&e()},"bg756c");
_.yN(function(){(Z==null?0:Z())&&n()},"QAes8c");
_.yN(function(){(p==null?0:p())&&c()},"YaFbrc");
B=_.Hh(function(){e();D(!1)});
var W=_.Hh(function(){n();D(!0)}),M=_.Hh(function(){c();
D(!1)});
_.oM(function(){if(d){var w;(w=d)==null||w.cancel();d=void 0}});
var r={};t=_.bb("yt-spec-touch-feedback-shape",function(){return UDR(H().color)},function(){return R6e(H().thumbnailSize,!!H().isExtended)},(r["yt-spec-touch-feedback-shape--focused"]=function(){return!!H().focused&&!H().disabled},r["yt-spec-touch-feedback-shape--circular"]=function(){return!!H().circular},r["yt-spec-touch-feedback-shape--down"]=t,r["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!H().triggerEvents},r["yt-spec-touch-feedback-shape--hovered"]=function(){return l==
null?void 0:l()},r));
return _.J("yt-touch-feedback-shape",{el:G,class:t,style:_.pI({"margin-top":function(){return H().customTopExtend?"-"+H().customTopExtend+"px":void 0}}),
"on:mousedown":W,"on:mouseup":B,"on:pointerleave":M,"on:touchstart":W,"on:touchend":B,"aria-hidden":!0},_.J(_.k,{cond:function(){return!!H().hoverEffect},
then:function(){return _.J("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.pI({"border-radius":function(){return H().borderRadius},
background:function(){var w;if(w=H().hoverEffect){for(var x=[],U=_.I((w==null?void 0:w.lightingTechniques)||[]),R=U.next();!R.done;R=U.next())switch(R.value){case 2:var L=R=void 0,H3=void 0,qX=void 0;x.push("linear-gradient(180deg, "+((R=w)==null?void 0:(L=R.palette)==null?void 0:L.keyLight)+", "+((H3=w)==null?void 0:(qX=H3.palette)==null?void 0:qX.background)+")")}var B3,fW;x.push((B3=H().hoverEffect)==null?void 0:(fW=B3.palette)==null?void 0:fW.background);w=x.join(", ")}else w=void 0;return w}})})}}),
_.J("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.pI({"border-radius":function(){return H().borderRadius},
"border-color":function(){var w,x;return(w=H().touchEffect)==null?void 0:(x=w.palette)==null?void 0:x.background}}),
el:q}),_.J("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.pI({"border-radius":function(){return H().borderRadius},
"background-color":function(){var w,x;return(w=H().touchEffect)==null?void 0:(x=w.palette)==null?void 0:x.background}}),
el:u}))},"I");
_.u1.idomCompat=!0;var iCG={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 BY=_.nW();BY=BY.toLowerCase();if(_.JM(BY,"android")){var OCN=BY.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);OCN&&parseFloat(OCN[1])<100||BY.match("("+Object.keys(iCG).join("|")+")")};var aVN=_.y(function(G){return _.J(_.k,{cond:G.aTagConfig,then:function(H){return _.J(_.S8,{aTagConfig:H,disabled:G.disabled,className:G.className,style:G.style,title:G.title,ariaLabel:G.ariaLabel,ariaCurrent:function(){var Z,Q;return((Z=G.toggleable)==null?void 0:Z.call(G))&&((Q=G.toggled)==null?void 0:Q.call(G))},
ref:G.ref},G.children)},
else:function(){return _.J("button",{el:_.aX(G.ref),"on:click":_.Hh(function(H){var Z;return(Z=G.onClick)==null?void 0:Z.call(G,H)}),
class:G.className,title:G.title,style:G.style,disabled:G.disabled,"aria-pressed":function(){var H,Z;return((H=G.toggleable)==null?0:H.call(G))?!((Z=G.toggled)==null||!Z.call(G)):void 0},
"aria-label":G.ariaLabel,"aria-disabled":G.visiblyDisabled,"aria-hidden":G.ariaHidden,tabindex:G.tabIndex},G.children)}})},"J"),ovw=_.y(function(G){var H=G.data;
var Z=G.hasIconLeading;var Q=G.hasIconLeadingTrailing;var p=G.hasIconTrailing;var l=G.iconButton;var q=G.iconClassName;var u=G.secondaryIconClassName;var B=G.icon;var t=G.secondaryIcon;var D=G.textContentClassName;return _.J(Jf,{className:"",style:"display: inherit; justify-content: center"},_.J(_.k,{debugInstance:"V4z1Uc",cond:function(){return B&&(Z()||Q()||(l==null?void 0:l()))},
then:function(){return _.J(Jf,null,_.J("div",{class:q,"aria-hidden":"true"},B==null?void 0:B()))}}),_.J(_.k,{debugInstance:"ok3btb",
cond:function(){return(H().buttonText||H().animatedTextProps||H().formattedButtonText)&&!(l==null?0:l())},
then:function(){return _.J(Jf,null,_.J(ynG,{className:D,iconPosition:function(){return H().iconPosition},
text:function(){return H().buttonText},
oneOffCustomTextWrap:function(){return H().oneOffCustomTextWrap},
formattedButtonText:function(){return H().formattedButtonText},
animatedTextProps:function(){return H().animatedTextProps}}))}}),_.J(_.k,{debugInstance:"DO5Rz",
cond:p,then:function(){return _.J(Jf,null,_.J("div",{class:q},B==null?void 0:B()))}}),_.J(_.k,{debugInstance:"bnojSc",
cond:Q,then:function(){return _.J(Jf,null,_.J("div",{class:u},t==null?void 0:t()))}}),_.J(_.k,{debugInstance:"HN3kad",
cond:function(){return!H().disabled&&!0},
then:function(){return _.J(_.u1,{model:function(){var d=H();return{color:d.style==="overlay-dark"?4:d.style==="overlay"?d.type==="filled"?4:3:d.type==="filled"||d.style==="call-to-action-inverse"||d.style==="mono-inverse"?2:1}}})}}))},"K"),ynG=_.y(function(G){var H=function(){var Z,Q;
return((Z=G.iconPosition)==null?void 0:Z.call(G))==="icon-with-label"||((Q=G.oneOffCustomTextWrap)==null?void 0:Q.call(G))};
return _.J("div",{class:G.className,"aria-hidden":function(){var Z,Q,p;return((Z=G.ariaHidden)==null?void 0:Z.call(G))&&(!((Q=G.animatedTextProps)==null||!Q.call(G))||!((p=G.formattedButtonText)==null||!p.call(G)))}},_.J(_.iW,null,_.J(_.wO,{when:function(){var Z;
return(Z=G.animatedTextProps)==null?void 0:Z.call(G)}},function(){return _.J(_.hwR,{numberText:function(){return G.animatedTextProps().numberText},
numberValue:function(){return G.animatedTextProps().numberValue},
heightPx:function(){return G.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return G.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return G.animatedTextProps().shouldAnimate},
forceRollUp:function(){return G.animatedTextProps().forceRollUp}})}),_.J(_.wO,{when:function(){var Z;
return(Z=G.formattedButtonText)==null?void 0:Z.call(G)}},function(){return _.J(_.Fe,{text:function(){return Object.assign({},G.formattedButtonText(),{lineBreakMode:H()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":G.formattedButtonText().lineBreakMode,
alignment:H()?"TEXT_ALIGNMENT_CENTER":G.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!H()}})}),_.J(_.wO,{when:function(){var Z,Q;
return((Z=G.iconPosition)==null?void 0:Z.call(G))==="icon-with-label"&&((Q=G.text)==null?void 0:Q.call(G))}},function(){return _.J(_.Fe,{text:function(){return{content:G.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.J(_.he,null,function(){return G.text})))},"L"),mp4=_.y(function(G){return _.J(_.k,{debugInstance:"kM7Sgc",
cond:G.hasLabel,then:function(){var H;return _.J("label",{class:G.className},G.children,(H=G.textContent)==null?void 0:H.call(G))},
else:function(){return G.children}})},"M"),Jf=_.y(function(G){return G.children},"N");var Upd=_.y(function(G){function H(){l(void 0);u(void 0);t(void 0)}
var Z=_.aX(),Q=_.I(_.Ty(void 0,void 0,"Ug77pc")),p=Q.next().value,l=Q.next().value;Q=_.I(_.Ty(void 0,void 0,"XGf7Zb"));var q=Q.next().value,u=Q.next().value,B=_.I(_.Ty(void 0,void 0,"w55oqd"));Q=B.next().value;var t=B.next().value;B=_.I(_.Ty(0,void 0,"rBgpzc"));var D=B.next().value,d=B.next().value;B=_.Hh(function(){switch(D()){case 1:d(2);break;case 3:var n,c;(c=(n=Z.value).hidePopover)==null||c.call(n);d(0);H()}});
_.yN(function(){if(G.show()){var n;l((n=G.children)==null?void 0:n.call(G));var c;u((c=G.location)==null?void 0:c.call(G));var W;t((W=G.classNames)==null?void 0:W.call(G));switch(D()){case 0:var M,r;(r=(M=Z.value).showPopover)==null||r.call(M);d(1);break;case 3:d(1);var w,x;(x=(w=Z.value).hidePopover)==null||x.call(w);var U,R;(R=(U=Z.value).showPopover)==null||R.call(U)}}else switch(D()){case 2:d(3);break;case 1:var L,H3;(H3=(L=Z.value).hidePopover)==null||H3.call(L);H();d(0)}},"Z8V4Qb");
_.mR(function(){});
var e={};return _.J("yt-popover",{popover:"manual",el:Z,style:_.pI({left:function(){var n;return(n=q())==null?void 0:n.left},
top:function(){var n;return(n=q())==null?void 0:n.top},
bottom:function(){var n;return(n=q())==null?void 0:n.bottom},
right:function(){var n;return(n=q())==null?void 0:n.right}}),
class:_.bb("ytPopoverComponentHost",Q,(e.ytPopoverComponentHostClosing=function(){return D()===3},e.ytPopoverComponentHostSeeThrough=function(){var n;
return((n=G.seeThrough)==null?void 0:n.call(G))===!0},e)),
"on:animationend":B},p)},"P");var Rw7={left:"0px",right:"auto",top:"0px",bottom:"auto"},N6R=function(){var G=this;this.registerTooltipElement=function(Z){var Q;G.tooltipElement=(Q=Z.querySelector("yt-popover"))!=null?Q:void 0};
var H=_.I(_.Ty(void 0,void 0,"EIh5sc"));this.state=H.next().value;this.setState=H.next().value;H=_.I(_.Ty(void 0,void 0,"PC1M0b"));this.schedulerJobID=H.next().value;this.setSchedulerJobID=H.next().value},GNb=function(G,H){var Z=I0,Q=_.Ui.addJob(function(){var p=An4(Z,G,H);
Z.currentConfig=H;Z.setState({text:H.text,location:_.V("web_tooltip_location_fix")?void 0:p,anchor:G,offset:H.offset,style:H.style})},4,H.delay);
Z.setSchedulerJobID(Q)},H7f=function(){var G=I0,H=G.schedulerJobID();
H&&(_.Ui.cancelJob(H),G.setSchedulerJobID(void 0));G.setState(void 0);G.currentConfig=void 0};
N6R.prototype.notify=function(G,H){var Z;((Z=this.state())==null?void 0:Z.anchor)===G&&(Z=An4(this,G,H),this.currentConfig=H,this.setState({text:H.text,location:_.V("web_tooltip_location_fix")?void 0:Z,anchor:G,offset:H.offset,style:H.style}))};
var An4=function(G,H,Z){var Q=H.getBoundingClientRect();H=window.innerWidth;var p=window.innerHeight,l=Z.location,q=Z.offset;Z=Z.text;if(G=G.tooltipElement){var u=getComputedStyle(G);G=u.font;var B=gb(u.lineHeight),t=gb(u.paddingLeft),D=gb(u.paddingRight),d=gb(u.paddingTop);u=gb(u.paddingBottom);var e=document.createElement("canvas").getContext("2d");e.font=G;Z={width:e.measureText(Z).width+t+D,height:B+d+u}}else Z=void 0;G=Z;if(!G)return Rw7;Z=G.width;G=G.height;t=q+G;d=q+Z;B=Q.top>=t;t=p-Q.bottom>=
t;D=Q.left>=d;d=H-Q.right>=d;u=l;switch(l){case "top":!B&&t&&(u="bottom");break;case "bottom":!t&&B&&(u="top");break;case "left":!D&&d&&(u="right");break;case "right":!d&&D&&(u="left")}switch(u){case "top":l=Q.left+Q.width/2-Z/2;Q=Q.top-G-q;break;case "bottom":l=Q.left+Q.width/2-Z/2;Q=Q.bottom+q;break;case "left":l=Q.left-Z-q;Q=Q.top+Q.height/2-G/2;break;case "right":l=Q.right+q;Q=Q.top+Q.height/2-G/2;break;default:l=Q.left+Q.width/2-Z/2,Q=Q.bottom+q}q=Object.assign({},Rw7);l+Z>H?(q.right="0px",q.left=
"auto"):(q.left=Math.round(Math.max(0,l)+window.scrollX)+"px",q.right="auto");Q+G>p?(q.bottom="0px",q.top="auto"):(q.top=Math.round(Math.max(0,Q)+window.scrollY)+"px",q.bottom="auto");return q};var I0;I0=new N6R;_.xpR=_.y(function(){var G=_.Kb(function(){var p;return(p=I0.state())==null?void 0:p.anchor},void 0,"tiGUn"),H=_.Kb(function(){var p;
return(p=I0.state())==null?void 0:p.text},void 0,"TA2GQe"),Z=_.Kb(function(){var p;
return(p=I0.state())==null?void 0:p.style},void 0,"ucvFsf"),Q=_.V("web_tooltip_location_fix")?_.Kb(function(){var p=G();
var l=I0.currentConfig;if(p&&l)return An4(I0,p,l)},void 0,"EpDz6"):_.Kb(function(){var p;
return(p=I0.state())==null?void 0:p.location},void 0,"aRJtfd");
return _.J("yt-tooltip",{class:"ytTooltipContainerHost",el:_.aX(I0.registerTooltipElement),"aria-hidden":"true"},_.J(Upd,{classNames:function(){switch(Z()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:Q,show:function(){return!!H()&&!!Q()},
seeThrough:!0},H))},"Q");var h3f=uV("stamper-context");_.tf=_.y(function(G){var H=G.data;var Z=G.icon;var Q=G.iconName;var p=G.animateIcon;var l=G.secondaryIcon;var q=G.secondaryIconName;var u=G.focusedOverride;var B=G.clientOnlyWizTooltipsEnabled;Z72();var t=N4b(H),D=t.size,d=t.style;G=t.disabled;var e=t.onTap,n=t.alignByText,c=t.aTagConfig,W=t.customColors,M=t.segmentedPosition,r=t.toggled,w=t.toggleable,x=t.accessibilityLabel,U=t.onToggle,R=t.iconPosition,L=t.oneOffCustomTextWrap,H3=t.disableTextEllipsis,qX=t.disableBackdropFilter,B3=t.tooltipText,
fW=t.ariaHidden,e2=t.tabIndex,$R=t.buttonText,ie=t.formattedButtonText,W3=t.animatedTextProps,DT=t.onClickRateLimitMs,UR=E7u(H,Z,l,Q,q,u,p),zx=UR.type;Z=UR.shouldFocus;Q=UR.hasIconLeading;p=UR.hasIconTrailing;var be=UR.hasIconLeadingTrailing,J_=UR.hasIconOnly;l=UR.hasIconOnly40;var rG=UR.hasIconWithLabel;q=UR.iconButton;var Kw=UR.visiblyDisabled;u=UR.overrideSmallSizeIcon;var cD=UR.iconToRender;UR=UR.secondaryIconToRender;var ec=_.I(s8f(B3,t.tooltipShape)).next().value,gf=function($w){e==null||e($w);
w()&&(U==null||U($w))},sR=_.Kb(function(){return DT==null?void 0:DT()},void 0,"siKywb"),ep=_.Kb(function(){return sR()?hLd(gf,sR()):gf},void 0,"wDTcN");
t={};var Qh={};return _.J(mp4,{className:_.bb("yt-spec-button-shape-with-label",(t["yt-spec-button-shape-with-label--is-overlay"]=function(){return d()==="overlay"||d()==="overlay-dark"},t)),
hasLabel:rG,textContent:function(){return _.J(ynG,{text:$R,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:L,iconPosition:R,formattedButtonText:ie,animatedTextProps:W3})}},_.J(aVN,{aTagConfig:c,
className:_.bb("yt-spec-button-shape-next",function(){return Y8R(zx())},function(){return Kw()?void 0:Fbo(d())},function(){return bPv(D())},(Qh["yt-spec-button-shape-next--disabled"]=Kw,Qh["yt-spec-button-shape-next--focused"]=Z,Qh["yt-spec-button-shape-next--icon-trailing"]=p,Qh["yt-spec-button-shape-next--icon-leading"]=Q,Qh["yt-spec-button-shape-next--icon-leading-trailing"]=be,Qh["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return be()&&!($R()||ie())},Qh["yt-spec-button-shape-next--icon-button"]=
function(){return J_()||rG()},Qh["yt-spec-button-shape-next--icon-only-default"]=l,Qh["yt-spec-button-shape-next--align-by-text"]=n,Qh["yt-spec-button-shape-next--segmented-start"]=function(){return M()==="start"},Qh["yt-spec-button-shape-next--segmented-end"]=function(){return M()==="end"},Qh["yt-spec-button-shape-next--override-small-size-icon"]=u,Qh["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=L,Qh["yt-spec-button-shape-next--disable-text-ellipsis"]=H3,Qh["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!qX()&&!_.V("web_disable_backdrop_filter")},Qh)),
style:function(){var $w=W();if($w){var Zt=$w.color;var rJ=$w.backgroundColor;$w=$w.borderColor;var N7="";Zt&&(N7+="color: "+Zt+";");rJ&&(N7+="background-color: "+rJ+";");$w&&(N7+="border-color: "+$w+";");Zt={style:N7}}else Zt={};return Zt.style},
onClick:function($w){ep()($w)},
disabled:G,ariaLabel:x,toggleable:w,toggled:r,title:function(){return(B==null?0:B())||!B3()?"":B3()},
visiblyDisabled:Kw,ariaHidden:fW,tabIndex:e2,ref:function($w){(B==null?0:B())&&ec($w)}},_.J(ovw,{data:H,
hasIconLeading:Q,hasIconLeadingTrailing:be,hasIconTrailing:p,iconButton:q,icon:cD,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:UR})))},"S");
_.tf.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.kg=_.y(function(G){var H=G.data;var Z=G.className;var Q=G.style;var p=G.useOutlinedIcon;var l=G.buttonOverrides;var q=G.animatedTextProps;var u=G.onClick;var B=G.target;var t=_.IA("button-view-model",function(U){U.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var R=H().targetId;R&&_.vL2(_.v9(),R,U);return function(){TzG(_.v9(),U)}}),D=function(){return H().iconName},d=_.SQ(function(U){a:{var R=H().entityKey,L=H().buttonEntitySelectorType;
if(L&&R)switch(L){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":U=(U=_.G3(U,R))?{isHidden:U.adsState==="ADS_STATE_NONE"||U.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:U={isHidden:!1};break a}U=void 0}return U}),e,n=(e=_.tp().resolve(_.Jp(_.rr)))==null?void 0:e(),c=function(){var U=H();
var R=l==null?void 0:l(),L=q==null?void 0:q(),H3=B==null?void 0:B();if(U){var qX=u23(U.type);var B3=!!U.title||!!U.titleFormatted;var fW=!(!U.iconName&&!U.iconImage);B3=fW&&!B3?"icon-only":fW?U.iconTrailing||U.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;B3==="icon-only-40"&&(qX="text");var e2;fW=(e2=R==null?void 0:R.state)!=null?e2:BFW(U.state);var $R,ie=($R=R==null?void 0:R.disabled)!=null?$R:U.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||U.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.V("web_button_vm_refactor_disabled")){var W3;ie=(W3=R==null?void 0:R.disabled)!=null?W3:fW==="disabled"}L=L&&L.numberText&&!isNaN(Number(L.numberValue))?L:void 0;$R=Object;W3=$R.assign;e2=U.title;var DT=U.titleFormatted,UR=U.accessibilityText,zx=SQj(U.style),be=JXv(U.buttonSize);H3=qQf(U,t,ie,u,H3);ie=ie&&!U.onDisabledTap;var J_=geb(U,t),rG=U.customFontColor,Kw=U.customBackgroundColor;var cD=U.customBorderColor;var ec=U.customDarkThemeFontColor,gf=U.customDarkThemeBackgroundColor,sR=U.customDarkThemeBorderColor;
rG=n&&ec?ec:rG;Kw=n&&gf?gf:Kw;cD=n&&sR?sR:cD;cD={color:rG?_.c$(rG):void 0,backgroundColor:Kw?_.c$(Kw):void 0,borderColor:cD?_.c$(cD):void 0};if(sR=_.X(U.tooltipData,TyR)){var ep;Kw={text:(ep=sR.tooltipText)!=null?ep:"",location:pj3(sR.placement),style:sR.style}}else Kw=void 0;U=W3.call($R,{},{buttonText:e2,formattedButtonText:DT,animatedTextProps:L,accessibilityLabel:UR,style:zx,type:qX,state:fW,size:be,iconPosition:B3,onTap:H3,disabled:ie,aTagConfig:J_,customColors:cD,tooltipText:U.tooltip,tooltipShape:Kw},
R)}else U={style:"mono",type:"text",state:"active",size:"M"};U.focused=r();return U},W=function(){return xD3(c(),!!H().iconName)};
G=_.I(_.Ty(!1,void 0,"yZ8hab"));e=G.next().value;var M=G.next().value,r=e;G=_.Hh(function(){var U=_.tp().resolve(_.Jp(_.qZ));U&&M(U.isKeyBoardInUse());return!1});
e=_.Hh(function(){M(!1);return!1});
_.yN(function(){var U,R=_.X(H==null?void 0:(U=H())==null?void 0:U.onVisible,_.cT);R&&_.fX(R,{disableClickTracking:!0})},"G9MlKd");
var w=function(){var U;return(H==null?0:(U=H())==null?0:U.iconImage)?{sources:[H().iconImage]}:void 0},x=_.V("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.J("button-view-model",{el:t,class:_.bb("ytSpecButtonViewModelHost",Z),"on:focusin":G,"on:focusout":e},_.J(_.k,{cond:function(){var U,R;return!((R=H().entityKey&&H().buttonEntitySelectorType&&((U=d())==null?void 0:U.isHidden))!=null&&R)},
then:function(){return _.J(_.k,{cond:w,then:function(U){return _.J(_.tf,{data:c,icon:function(){return _.J(_.ib,{data:U,alt:"",targetWidth:W,targetHeight:W,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:x})},
else:function(){return _.J(_.tf,{data:c,icon:function(){return _.J(_.ll,{icon:D,active:function(){return(p==null?0:p())?!1:c().toggled},
animateIcon:function(){var U;return!!(Q==null?0:(U=Q())==null?0:U.animateIcon)},
size:W})},
clientOnlyWizTooltipsEnabled:x})}})}}))},"U");
_.kg.idomCompat={callbacks:{onClick:!0}};_.RX(_.y(function(G){return _.J("yt-button-view-model",{id:G.id,class:_.bb(G.scopingClassName,G.classes),icon:function(){var H;return(H=G.icon)==null?void 0:H.call(G)},
"dialog-dismiss":function(){var H;return((H=G.dialogDismiss)==null?0:H.call(G))?"":void 0}},_.J(_.kg,{data:function(){var H;
return(H=G.data)==null?void 0:H.call(G)},
className:function(){var H;return(H=G.className)==null?void 0:H.call(G)},
style:function(){var H;return(H=G.style)==null?void 0:H.call(G)},
useOutlinedIcon:function(){var H;return(H=G.useOutlinedIcon)==null?void 0:H.call(G)},
buttonOverrides:function(){var H;return(H=G.buttonOverrides)==null?void 0:H.call(G)},
animatedTextProps:function(){var H;return(H=G.animatedTextProps)==null?void 0:H.call(G)},
onClick:function(H){var Z;return(Z=G.onClick)==null?void 0:Z.call(G,H)}}))},"V"),"yt-button-view-model",{props:{data:_.b3,
className:_.b3,style:_.b3,useOutlinedIcon:_.b3,buttonOverrides:_.b3,animatedTextProps:_.b3,onClick:_.oX,scopingClassName:_.b3,id:_.b3,icon:_.b3,dialogDismiss:_.b3,classes:_.b3,target:_.oX}});_.RX(_.y(function(G){var H=G.data;var Z=G.id;var Q=G.className;var p=G.iconName;var l=G.animateIcon;var q=G.secondaryIconName;G=_.I(_.Ty(!1,void 0,"TtJl8"));var u=G.next().value,B=G.next().value,t=function(){var d=_.tp().resolve(_.Jp(_.qZ));d&&B(d.isKeyBoardInUse())},D=function(){B(!1)};
G=_.IA("yt-button-shape",function(d){if(_.tp().resolve(_.Jp(_.qZ)))return d.addEventListener("focusin",t),d.addEventListener("focusout",D),function(){d.removeEventListener("focusin",t);d.removeEventListener("focusout",D)}});
return _.J("yt-button-shape",{el:G,id:Z,class:Q},_.J(_.k,{cond:H,then:function(){return _.J(_.tf,{data:H,iconName:p,secondaryIconName:q,focusedOverride:u,animateIcon:l})}}))},"W"),"yt-button-shape",{props:{data:_.b3,
id:_.b3,className:_.b3,iconName:_.b3,animateIcon:_.b3,secondaryIconName:_.b3,clientOnlyWizTooltipsEnabled:_.b3,disableUpgrade:_.b3},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var D7=function(){var G=_.C.apply(this,arguments)||this;G.isGoalActive=!0;return G};
_.T(D7,_.C);D7.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
D7.prototype.progressBarChanged=function(){var G=_.F9(this.hostElement).querySelector("#progress-bar-progress"),H,Z,Q,p=(Q=Number((H=this.creatorGoalState)==null?void 0:H.currentGoalCount)/Number((Z=this.creatorGoalState)==null?void 0:Z.totalGoalCount)*100)!=null?Q:0,l;G.style.width=((l=Math.min(p,100))!=null?l:0)+"%"};
D7.prototype.goalStateChanged=function(){var G;this.isGoalActive=((G=this.creatorGoalState)==null?void 0:G.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var H;G={"--yt-progress-bar-color":Niv((H=this.creatorGoalState)==null?void 0:H.progressBarColor)};_.ZI(this.hostElement,G)};
D7.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.u4.Object.defineProperties(D7.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var G;return this.isGoalActive&&!((G=this.creatorGoalState)==null||!G.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.endTimestampMs){var H;G=Number((H=this.creatorGoalState)==null?void 0:H.endTimestampMs)/1E3;return{seconds:String(G)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.creatorGoalState)==null?0:G.themedTargetImage){var H;G=_.X((H=this.creatorGoalState)==null?void 0:H.themedTargetImage,BBw);return this.isAppDarkTheme()?G==null?void 0:G.imageDark:G==null?void 0:G.imageLight}}}});
_.u4.Object.defineProperties(D7,{template:{configurable:!0,enumerable:!0,get:function(){return XXa()}}});
D7.prototype.goalStateChanged=D7.prototype.goalStateChanged;D7.prototype.progressBarChanged=D7.prototype.progressBarChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],D7.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);
_.N([_.h({selectorArgs:["data.creatorGoalEntityKey"],selector:function(G,H){return _.Hv(G.entities,"creatorGoalEntity",H)}}),
_.A("design:type",Object)],D7.prototype,"creatorGoalState",void 0);_.N([_.h(),_.A("design:type",Object)],D7.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],D7.prototype,"isGoalActive",void 0);_.N([_.z("creatorGoalState","isGoalActive"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],D7.prototype,"shouldShowCountdown",null);_.N([_.z("creatorGoalState"),_.A("design:type",Object),_.A("design:paramtypes",[])],D7.prototype,"endTimestamp",null);
_.N([_.z("creatorGoalState"),_.A("design:type",Object),_.A("design:paramtypes",[])],D7.prototype,"targetIconThemedImage",null);_.N([_.gx("creatorGoalState.currentGoalCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D7.prototype,"progressBarChanged",null);_.N([_.gx("creatorGoalState.creatorGoalState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D7.prototype,"goalStateChanged",null);
_.N([_.fH({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],D7);_.m(D7,"yt-creator-goal-progress-flow-view-model",function(){return XXa()},{mode:0});var LBp;var Evt;var dv=function(){return _.C.apply(this,arguments)||this};
_.T(dv,_.C);dv.prototype.attached=function(){var G,H,Z;if(this==null?0:(G=this.data)==null?0:(H=G.pdgPurchasedBumperLoggingDirectives)==null?0:(Z=H.loggingDirectives)==null?0:Z.trackingParams){var Q,p,l;Dw2(this==null?void 0:(Q=this.data)==null?void 0:(p=Q.pdgPurchasedBumperLoggingDirectives)==null?void 0:(l=p.loggingDirectives)==null?void 0:l.trackingParams)}};
dv.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],dv.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],dv.prototype,"data",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],dv);
_.m(dv,"yt-live-chat-item-bumper-view-model",function(){if(Evt===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;LBp===void 0&&(LBp=document.createElement("template"));var Q=LBp;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Evt=G}G=Evt;return G},{mode:0});var Y22;var FBp;_.il=function(G,H){this.data=G;this.actions=H;this.data=G;this.actions=H};
_.Mi=function(){};_.e8={};_.e8.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(G,H){dwW(this.hostElement,G,H)},
getNavigationEndpointPopupAction:function(G){return eC2(G,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(G,H){nev(this.hostElement,G,H,this.openPopupConfig)}};var K6b=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.ni={};
_.ni.YtEndpointBehavior=[_.e8.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.xI("openPopupConfig");(this.useClickHandler=_.YI("useClickHandler",!1))?this.hostElement.addEventListener("click",Qy(this,this.onEndpointClick_)):(US(this.hostElement,"tap",Qy(this,this.onEndpointTap_)),US(this.hostElement,"touchend",Qy(this,this.onEndpointTouchEnd_)));US(this.hostElement,"touchstart",Qy(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Qy(this,this.onEndpointTapStart_))},
onEndpointClick_:function(G){Xje(this.hostElement,G,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(G){var H=this.hostElement,Z=this.openPopupConfig,Q=this.disableCommandHandlerOverride;Q=Q===void 0?!1:Q;var p=VRf(G);if(p){p.href&&W$(p.href);var l=G.detail;var q=l.sourceEvent;l=l.preventer;q=q.button!==void 0?q.button===0&&!ul(q):l?!ul(l):!0;p.data&&q&&$wf(H,p,G,Z,Q)}},
onEndpointTouchEnd_:function(G){ul(G)||VRf(G)&&G.preventDefault()},
onEndpointTapStart_:function(G){W6W(G)}}];_.V6={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(G){for(var H=_.sS.getInstance(),Z=_.I(Object.keys(G)),Q=Z.next();!Q.done;Q=Z.next()){var p=Q.value;Q=G[p];if(this&&this[Q]){var l=H.actionRoutingMap.get(p);l||(l=new Map,H.actionRoutingMap.set(p,l));H.registerActionHandler(this,p,this[Q].bind(this),l)}else p=Error("ld"),p.params=Q,_.FU(p)}},
unregisterActionMap:function(G){_.lu(_.sS.getInstance(),G,this)}}]};var tQ=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_"+(_.V("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.V("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.V("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.V("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.V("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.V("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var JQ;var kV=new Map;var hCe=window.matchMedia("(forced-colors: active)").matches;var bC7;var G04;var HPx=new _.Gv("LOTTIE_LOADER_TOKEN");_.cY=_.y(function(G){var H=G.data;var Z=G.className;var Q=G.animationName;var p=G.animationRef;var l=G.elRefForInterop;var q=_.qK("lottie-component"),u;_.oM(function(){var t;return void((t=u)==null?void 0:t.destroy())});
var B;_.yN(function(){var t=_.Uv(Q);if(t!==B){B=t;var D=Object.assign({},{animationName:t,animationRef:_.Uv(p)},_.Uv(H));try{_.tp().resolve(HPx)().then(function(n){var c;(c=u)==null||c.destroy();var W,M;c=(M=l==null?void 0:(W=l())==null?void 0:W.value)!=null?M:q.value;W=D.animationRef;M=D.listeners;n=n.loadAnimation(Object.assign({},{container:c},D.animationConfig));W&&(W.lottieEl=n);if(M)for(c=_.I(Object.entries(M)),W=c.next();!W.done;W=c.next())M=_.I(W.value),W=M.next().value,(M=M.next().value)&&
n.addEventListener(W,M);u=n})}catch(n){t=n;
var d="LottieComponent error.";t.message&&(d+=" Original description: "+t.message);_.N1(t,d);_.Rp(t);var e;((e=D.listeners)==null?0:e.error)&&D.listeners.error(t)}}},"nrJISd");
return _.J(IQU,{cond:function(){return!(l==null?0:l())},
then:function(){return _.J("lottie-component",{class:_.bb("ytLottieComponentHost",Z),el:q})}})},"Y");_.RX(_.y(function(G){return _.J("ytd-lottie-player",{id:G.id,hidden:G.hidden,class:G.className,"aria-label":G.ariaLabel,style:"display: block;"},_.J(_.cY,{data:G.data,animationName:function(){var H;return((H=G.data().animationConfig)==null?void 0:H.name)||""},
animationRef:function(){return G.data().animationRef}}))},"Z"),"ytd-lottie-player",{props:{data:_.b3,
id:_.b3,hidden:_.b3,className:_.b3,ariaLabel:_.b3}});var Tp=function(){var G=_.C.apply(this,arguments)||this;G.animationRef={};G.delhiIconsEnabled=_.V("enable_web_delhi_icons");return G};
_.T(Tp,_.C);_.g=Tp.prototype;
_.g.handlePropertyChange=function(){var G=this.animatedIcon,H=this.active,Z=this.isDarkTheme;if(G){var Q=this.previousActive!==H;this.previousActive=H;this.animationRef.lottieEl?Q&&this.toggleAnimation(H,G.totalFrames):H?this.initializeAnimationAsToggled(G.lottiePlayerProps,G.totalFrames):this.initializeAnimationAsUntoggled(G.lottiePlayerProps);G.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=G.type;this.lottiePlayerProps=this.computeLottiePlayerProps(G,Z)}};
_.g.computeLottiePlayerProps=function(G,H){var Z=this.deepCloneLottiePlayerProps(G);H?(H=G.nameDarkTheme,G=G.pathDarkTheme):(H=G.name,G=G.path);Z.animationConfig.name=H;(H=kV.get(G))?Z.animationConfig.animationData=H:Z.animationConfig.path=G;return Z};
_.g.initializeAnimationAsToggled=function(G,H){G.animationConfig.initialSegment=[H-1,H]};
_.g.initializeAnimationAsUntoggled=function(G){G.animationConfig.initialSegment=void 0};
_.g.toggleAnimation=function(G,H){if(G){var Z;(Z=this.animationRef.lottieEl)==null||Z.playSegments([0,H],!0)}else{var Q;(Q=this.animationRef.lottieEl)==null||Q.playSegments([0,1],!0)}};
_.g.deepCloneLottiePlayerProps=function(G){var H=Object.assign({},G.lottiePlayerProps.animationConfig);G=Object.assign({},G.lottiePlayerProps);G.animationConfig=H;return G};
Tp.prototype.handlePropertyChange=Tp.prototype.handlePropertyChange;_.N([_.h(),_.A("design:type",Object)],Tp.prototype,"animatedIcon",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Tp.prototype,"active",void 0);_.N([_.h(),_.A("design:type",Boolean)],Tp.prototype,"isDarkTheme",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],Tp.prototype,"animatedIconType",void 0);_.N([_.h(),_.A("design:type",Boolean)],Tp.prototype,"previousActive",void 0);
_.N([_.h(),_.A("design:type",Object)],Tp.prototype,"lottiePlayerProps",void 0);_.N([_.h(),_.A("design:type",Object)],Tp.prototype,"animationRef",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Tp.prototype,"delhiIconsEnabled",void 0);_.N([_.gx("animatedIcon","active","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tp.prototype,"handlePropertyChange",null);_.N([_.fH({is:"yt-animated-icon",disableElementRegistration:!0})],Tp);
_.m(Tp,"yt-animated-icon",function(){if(G04===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;bC7===void 0&&(bC7=document.createElement("template"));var Q=bC7;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);G04=G}G=G04;return G},{mode:2});var sd_;var ZP4;var oeW=_.y(function(G){var H=_.qK("span"),Z=UJ(function(){return{value:null,cancelled:!1}});
_.oM(function(){Z.cancelled=!0});
var Q=_.Kb(G.data,{equals:function(p,l){return p.iconName===l.iconName&&p.iconStyle===l.iconStyle&&p.iconSize===l.iconSize&&p.iconSetName===l.iconSetName&&p.iconSelected===l.iconSelected}},"AoOoyf");
_.yN(function(){var p,l=(p=G.options)==null?void 0:p.call(G);yXj(H,Z,Q(),l)},"Tie9e");
return _.J("span",{class:"yt-icon-shape",el:H})},"aa");
oeW.idomCompat=!0;var QG3=["youtube_fill","youtube_outline"];var Qd2=new _.jL({type:"iconset",value:void 0}),fi=function(){var G=_.C.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.iconName="";G.iconsetName="yt-icons";G.iconset=null;G.missingIconSet=!1;G.iconType=null;G.iconShapeDataSignal=_.Ty(void 0,void 0,"TaEgXd");G.renderingOptionsSignal=_.Ty({iconWidth:"100%",iconHeight:"100%",iconFilter:G.iconFilter,iconColor:G.gradientColor},void 0,"a1vqYe");G.wizHasRendered=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return G};
_.T(fi,_.C);fi.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
fi.prototype.handlePropertyChange=function(){var G=this,H,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r;return _.S(function(w){switch(w.nextAddress){case 1:if(H=!G.icon&&!G.iconName||!G.isAttached)return w.return();Z=G;Q=Z.icon;p=Z.size;l=Z.defaultToFilled;q=Z.active;u=Z.targetContainer;G.toggleContainerClass(u);_.V("kevlar_use_wil_icons")&&Q&&(B=VWe(Q),G.iconType=B.length?B[1]:null);if(Q){w.jumpTo(2);break}G.iconsetName="";G.iconName="";return w.yield(G.renderIcon(u,Q),3);case 3:return w.return();case 2:t=pJx(Q);
D=VWe(t);D.length&&(G.iconsetName=D[0],G.iconName=D[1]);if(!_.V("kevlar_use_wil_icons")){w.jumpTo(4);break}d=fi;e=lmp;n=G.iconType;c=G.active;W=G.defaultToFilled;M=G.size;r=G.iconsetName;return w.yield(g7a(),6);case 6:return w.yield(e.call(d,n,c,W,M,r,w.yieldResult),5);case 5:G.iconShapeData=w.yieldResult;case 4:if(G.shouldRenderIconShape(u)){w.jumpTo(7);break}return w.yield(G.determineIconSet(t,q,l,p,u),7);case 7:return w.yield(G.renderIcon(u,Q),0)}})};
fi.prototype.toggleContainerClass=function(G){G?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var pJx=function(G){return!_.V("default_to_innertube_icon")||G.indexOf(":")>0?G:_.bq(G)};
_.g=fi.prototype;_.g.determineIconSet=function(G,H,Z,Q){var p=this;return _.S(function(l){return l.nextAddress==1?_.V("kevlar_system_icons")||_.xI("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.xI("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?l.yield(p.switchToYtSysIconset(G,H,Z,Q),3):l.jumpTo(2):l.nextAddress!=2?l.return():l.yield(p.useYtSysIconsetForMissingIcons(G,H,Z,Q),0)})};
_.g.switchToYtSysIconset=function(G,H,Z,Q){var p=this,l,q,u,B,t,D,d;return _.S(function(e){switch(e.nextAddress){case 1:if(!G||p.iconsetName!=="yt-icons"&&p.iconsetName!=="yt-sys-icons"){e.jumpTo(0);break}l=VWe(G);q=l[1];var n=q;if(z$v(n))q=n;else{var c=n=n.toLowerCase();(n=tzw.get(n))&&(c=n);q=c}_.V("enable_polymer_icons_replace_underscores_dash")&&q.includes("_filled")&&(q=q.replace(/_filled/g,"-filled"));return e.yield(FT(q,!0),3);case 3:return u=e.yieldResult,e.yield(FT(q,!1),4);case 4:if((B=
e.yieldResult)||H&&u)p.iconsetName="yt-sys-icons";p.iconName=p.getIconName(q,H,Z,B,u);if(Q===24){e.jumpTo(0);break}t="yt-sys-icons"+Q+":"+p.iconName;return e.yield(FT(t,!1,!0),6);case 6:return D=e.yieldResult,e.yield(FT(t,!0,!0),7);case 7:d=e.yieldResult;p.iconName=p.getIconName(q,H,Z,D,d);if(!H&&D||H&&d)p.iconsetName="yt-sys-icons"+Q;_.K0(e)}})};
_.g.getIconName=function(G,H,Z,Q,p){G.includes("-filled")&&(G=G.replace("-filled",""));return p&&(H||Z)?G+"-filled":G};
_.g.useYtSysIconsetForMissingIcons=function(G,H,Z,Q){var p=this,l,q;return _.S(function(u){if(u.nextAddress==1)return p.iconsetName!=="yt-icons"?u.jumpTo(0):u.yield(FT(p.iconName,!1,!1,!0),3);if(u.nextAddress!=4)return l=u.yieldResult,u.yield(FT(p.iconName,!1),4);q=u.yieldResult;if(l||!q)return u.jumpTo(0);p.iconsetName="yt-sys-icons";return u.yield(p.switchToYtSysIconset(G,H,Z,Q),0)})};
_.g.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var g7a=function(){return _.S(function(G){try{return G.return(_.tp().resolve(_.Gt))}catch(H){return G.return(new Promise(function(Z){_.ZO().parkOrScheduleJob(function(){Z(_.tp().resolve(_.Gt))},2,"ci")}))}})},lmp=function(G,H,Z,Q,p,l){Q=Q===void 0?24:Q;
if(G){G=G.toLowerCase();var q=G.endsWith("_filled")||G.endsWith("-filled");H={iconName:G,iconStyle:(H===void 0?0:H)||(Z===void 0?0:Z)||q?"youtube_fill":"youtube_outline",iconSize:Q,iconSetName:p===void 0?"yt-icons":p};Z=!!l.resolveIcon(H);Z||(H.iconSize=void 0,Z=!!l.resolveIcon(H));!Z&&q&&(H.iconName=G.substring(0,G.length-7),H.iconSize=Q,Z=!!l.resolveIcon(H),Z||(H.iconSize=void 0,Z=!!l.resolveIcon(H)));Z||(H.iconStyle=void 0,Z=!!l.resolveIcon(H));Z||_.Rp(new _.C$("Icon not supported",{iconName:H.iconName,
iconStyle:H.iconStyle,iconSize:H.iconSize,iconType:G}));return Z?H:void 0}};
_.g=fi.prototype;_.g.shouldRenderIconShape=function(G){if(!_.V("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;G=this.getContainer(G);return!Cpj(G,this.icon)};
_.g.renderIcon=function(G,H){var Z=this,Q,p,l,q,u,B,t,D;return _.S(function(d){switch(d.nextAddress){case 1:if(H&&Z.icon!==H)return d.return();Q=Z.getContainer(G);p=Cpj(Q,Z.icon);if(Z.shouldRenderIconShape(G)&&Z.iconType)return Z.applyIconShape(p,Q),d.return();Z.removeIconShape();if(!Q)return d.return();Z.iconName===""&&Z.iconset&&Q&&(Z.removeStaticIcon(Z.iconset,Q),p&&Z.removeAnimatedIcon(Q));if(Z.iconName===""&&Z.iconset||!Z.iconsetName||!Qd2)return d.return();Z.iconset=Qd2.byKey(Z.iconsetName);
if(!Z.iconset)return Z.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.pH(Z,Z.onIconsetAdded)),d.return();Z.missingIconSet&&(Z.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.pH(Z,Z.onIconsetAdded)));q=(l=p||Z.isAnimatedIcon?rXu(Z.icon):void 0)&&!l.lazyLoad;B=l&&((u=l)==null?void 0:u.lazyLoad)&&(l.lottiePlayerProps.animationConfig.animationData?!0:kV.get(Z.isDarkTheme?l.pathDarkTheme:l.path)?!0:!1);if(q||B)return Z.applyAnimatedIcon(Q,l,Z.iconset),d.return();if(B||
(t=l)==null||!t.lazyLoad){d.jumpTo(2);break}D=O7U(l,Z.isDarkTheme);Z.applyStaticIcon(Z.iconset,Q,Z.iconName,G,p);return d.yield(D,3);case 3:return d.yield(Z.renderIcon(Z.targetContainer,Z.icon),4);case 4:return d.return();case 2:Z.applyStaticIcon(Z.iconset,Q,Z.iconName,G,p),_.K0(d)}})};
_.g.getContainer=function(G){var H,Z=(H=QVb(this.hostElement))==null?void 0:H.host;H=!!Z&&!!Z.polymerController;if(!G||H)return G?this.getTargetContainer(G,Z):this.hostElement};
_.g.getTargetContainer=function(G,H){var Z=_.F9(H).querySelector("#"+G);Z||(G=new _.C$("yt-icon container missing",H.is,G),_.me(G));return Z};
_.g.applyStaticIcon=function(G,H,Z,Q,p){p&&this.removeAnimatedIcon(H);this.removeIconShape();p=p&&!!this.iconType&&!!this.iconShapeData&&_.V("kevlar_use_wil_icons");try{p?this.applyIconShape(!1,H):G.applyIcon(H,Z)}catch(l){this.handleError(l,Q,H)}};
_.g.applyIconShape=function(G,H){this.iconset&&H&&(this.removeStaticIcon(this.iconset,H),G&&this.removeAnimatedIcon(H));G={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var Z=_.I(this.iconShapeDataSignal);H=Z.next().value;Z=Z.next().value;var Q=_.I(this.renderingOptionsSignal),p=Q.next().value;Q=Q.next().value;Z(this.iconShapeData);Q(G);if(!this.wizHasRendered)for(this.wizHasRendered=!0,G=_.I(mwf(H,p)).next().value;G.firstChild;)_.F9(this.hostElement).appendChild(G.firstChild)};
_.g.removeIconShape=function(){if(_.V("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.g.removeStaticIcon=function(G,H){G.removeIcon(H)};
_.g.applyAnimatedIcon=function(G,H,Z){this.removeStaticIcon(Z,G);this.removeIconShape();var Q;Z=this.animatedIconElement&&((Q=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:Q.type)===H.type;if(this.animatedIconElement&&Z){this.animatedIconElement.polymerController.animatedIcon=H;var p;((p=this.animatedIconElement)==null?void 0:p.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(G),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=H,this.animatedIconElement.polymerController.active=this.active,_.V("delhi_modern_web_player_icons")?(H=wjj(G,this.icon)&&G.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=H?H.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.V("kevlar_use_wil_icons")?
G.insertBefore(this.animatedIconElement,G.childNodes[0]):(G=_.F9(G),G.insertBefore(this.animatedIconElement,G.childNodes[0]))};
_.g.removeAnimatedIcon=function(G){_.V("kevlar_use_wil_icons")?this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement):(G=_.F9(G),this.animatedIconElement&&G.contains(this.animatedIconElement)&&G.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.g.handleError=function(G,H,Z){_.N1(G,this.iconName,H,Z);H=Cpj(Z,this.icon);var Q=!1;window.location.href.includes("JpymaW6Lh2w")?Q=!0:Z._svgIcon&&(Z=(Z=Z._svgIcon.parentNode)?Z.tagName:"unknown",_.N1(G,Z),Z==="YT-ICON"&&G.name==="NotFoundError"?Q=!0:G.name==="NotFoundError"&&H&&(Q=!0));Q?_.Rp(G):_.me(G)};
_.u4.Object.defineProperties(fi,{template:{configurable:!0,enumerable:!0,get:function(){if(ZP4===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;
sd_===void 0&&(sd_=document.createElement("template"));var Q=sd_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ZP4=G}G=ZP4;return G}}});
fi.prototype.handlePropertyChange=fi.prototype.handlePropertyChange;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],fi.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",String)],fi.prototype,"icon",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],fi.prototype,"active",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],fi.prototype,"defaultToFilled",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],fi.prototype,"isAnimatedIcon",void 0);
_.N([_.h({value:24}),_.A("design:type",Number)],fi.prototype,"size",void 0);_.N([_.h({value:""}),_.A("design:type",String)],fi.prototype,"targetContainer",void 0);_.N([_.h(),_.A("design:type",Object)],fi.prototype,"animatedIconElement",void 0);_.N([_.h(),_.A("design:type",Object)],fi.prototype,"isDarkTheme",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],fi.prototype,"ariaHidden",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],fi.prototype,"ariaLabel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],fi.prototype,"role",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],fi.prototype,"tabindex",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],fi.prototype,"title",void 0);_.N([_.h(),_.A("design:type",String)],fi.prototype,"style",void 0);_.N([_.h(),_.A("design:type",String)],fi.prototype,"iconFilter",void 0);_.N([_.h(),_.A("design:type",String)],fi.prototype,"gradientColor",void 0);
_.N([_.gx("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],fi.prototype,"handlePropertyChange",null);_.N([_.fH({is:"yt-icon",noInjection:!0})],fi);var Uwo="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),NF2=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Im7={};Im7.YtPlaintextBehavior=[_.vZ,{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(G){G.preventDefault();G=G.clipboardData.getData("text/plain");document.execCommand("insertText",!1,G)},
preventRichTextFormatting_:function(G){_.sy&&(G=G.detail.keyboardEvent,G.stopImmediatePropagation(),G.preventDefault())}}];var q8t;var S87;var vY=function(){var G=_.C.apply(this,arguments)||this;G.ignoreShadyDom=!1;G.hasChange_=!1;G.hasSetTitle_=!1;G.useIOObserverForVisibilityLogging_=_.V("kevlar_use_vimio_behavior")&&_.xI("INNERTUBE_CLIENT_NAME")==="WEB";G.ytFormattedStringObserverHandlerKeys_=void 0;return G};
_.T(vY,_.C);_.g=vY.prototype;_.g.created=function(){this.useIOObserverForVisibilityLogging_=_.V("kevlar_use_vimio_behavior")&&_.xI("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.g.ready=function(){_.xI("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_()};
_.g.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.g.detached=function(){this.unobserveIOObservers_()};
_.g.clearContents_=function(){for(var G=this.getRoot(),H=G.lastChild;H&&H.tagName!=="STYLE";){try{G.removeChild(H)}catch(Z){break}H=G.lastChild}};
_.g.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var G=_.I(this.ytFormattedStringObserverHandlerKeys_),H=G.next();!H.done;H=G.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(H.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.g.resetForAttributedString=function(){var G=this.getRoot();!G.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),G.appendChild(this.ytAttributedStringElementRef))};
_.g.resetForFormattedString=function(){var G=this.getRoot(),H=G.querySelector("yt-attributed-string");H&&(this.ytAttributedStringElementRef=G.removeChild(H))};
_.g.textChanged=function(){this.textChanged_(this.text)};
_.g.textChanged_=function(G){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!G||!G.runs&&!G.simpleText;if(_.V("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var H=this.hostElement.firstChild;H&&H.nodeName==="FONT";){var Z=H;H=H.nextSibling;this.hostElement.removeChild(Z)}H=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
Z=G.simpleText;var Q;!Z&&((Q=G.runs)==null?void 0:Q.length)===1&&this.isSimpleString_(G.runs[0])&&(Z=G.runs[0].text);Z!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.xI("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(Z!==void 0){try{H.textContent=Z}catch(p){}H.textContent||(this.isEmpty=!0)}else G=G.runs,Z!==void 0&&(G=[{text:Z}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),G&&this.updateText_(G),
H.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.g.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)};
_.g.computeAriaLabel_=function(G){return G};
_.g.computeEllipsisTruncateStyling=function(G,H){return G&&!H};
_.g.computeUseAttributedString=function(G){return _.V("web_replace_formatted_with_attributed_string")&&Isf(G)&&!this.disableAttributedString&&!this.enableContentEditable};
_.g.setNodeStyle_=function(G,H){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.V("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?H.removeAttribute("dir"):H.setAttribute("dir","auto");H.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");H.style.color="";var Z=null;this.noStyles||(G.bold&&(H.classList.add("bold"),Z="bold"),G.deemphasize&&(H.classList.add("deemphasize"),Z="deemphasize"),G.italics&&H.classList.add("italic"),
G.strikethrough&&H.classList.add("strikethrough"),G.errorUnderline&&(H.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),G.bracket&&H.classList.add("bracket"),G.textColor&&(H.style.color=_.X9(G.textColor)));Z!==H.getAttribute("style-target")&&(Z?H.setAttribute("style-target",Z):H.removeAttribute("style-target"))};
_.g.setUpVisibilityLogging_=function(G,H){var Z=this;this.setNodeTrackingParams_(G,H);var Q;((Q=H.data)==null?0:Q.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(G=this.ytRendererBehavior.visibilityObserver.observe(H,function(p){var l=Z.ytRendererBehavior.getVisibilityLogger();l&&l.reportShown(p)},this.ytRendererBehavior.visibilityOptionVisible_),H=this.ytRendererBehavior.visibilityObserver.observe(H,function(p){var l=Z.ytRendererBehavior.getVisibilityLogger();
l&&l.reportHidden(p)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(G),this.ytFormattedStringObserverHandlerKeys_.push(H))};
_.g.setNodeTrackingParams_=function(G,H){H.data||(H.data={});if((G=G.loggingDirectives?G.loggingDirectives.trackingParams:null)||H.data.trackingParams)H.data.trackingParams=G};
_.g.computeHasLinkOnly_=function(G){return!(!G||G.length!==1||this.noEndpoints||!G[0].navigationEndpoint)};
_.g.getRoot=function(){var G=this.buildScopeDomOptions();return this.enableContentEditable?_.F9(_.F9(this.hostElement,G).querySelector("[contenteditable]")):_.F9(this.hostElement,G)};
_.g.fixContenteditableScope=function(){var G=function(H){H&&(H.nodeType===1&&H.classList&&(H.classList.add("style-scope"),H.classList.add("yt-formatted-string")),H.childNodes&&H.childNodes.forEach(function(Z){G(Z)}))};
G(this.getRoot())};
_.g.updateText_=function(G){for(var H=G.length,Z=this.getRoot(),Q=Z.firstChild;Q&&Q.nodeName==="STYLE";)Q=Q.nextSibling;for(var p=0;p<H&&Q;){var l=G[p],q=_.V("remove_cr_char")&&l.text?l.text.replace("\r",""):l.text;if(this.isSimpleString_(l)&&!this.useMixedDirectionFormattedStrings)if(Q.nodeName==="#text"){Q.textContent!=q&&(Q.textContent=q);p++;Q=Q.nextSibling;continue}else break;if(_.X(l,$C))break;else if(!this.noEndpoints&&l.navigationEndpoint){if(Q.nodeName!=="A")break;this.setDataOnAnchor_(Q,
l.navigationEndpoint)}else if(Q.nodeName!=="SPAN")break;this.setNodeStyle_(l,Q);this.setUpVisibilityLogging_(l,Q);Q.textContent!=q&&(Q.textContent=q);p++;Q=Q.nextSibling}if(Q)for(l=Z.lastChild,Q=p?Q.previousSibling:null;l&&l!=Q;){try{Z.removeChild(l)}catch(u){break}l=Z.lastChild}p!==H&&this.addTextNodes_(G,p)};
_.g.addTextNodes_=function(G,H){for(var Z=document.createDocumentFragment(),Q=G.length;H<Q;H++){var p=G[H],l=_.V("remove_cr_char")&&p.text?p.text.replace("\r",""):p.text;if(this.isSimpleString_(p)&&!this.useMixedDirectionFormattedStrings)Z.appendChild(document.createTextNode(l));else{var q=_.X(p,$C);if(q){if(q.image){var u=document.createElement("img");q.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");q.isCustomEmoji&&(u.dataset.emojiId=q.emojiId);u.src=_.N$(q.image.thumbnails,
this.emojiSize);(p=this.get("image.accessibility.accessibilityData.label",q))?u.alt=p:q.shortcuts&&q.shortcuts.length>0?u.alt=q.shortcuts[0]:q.emojiId&&(u.alt=q.emojiId);Z.appendChild(u);this.hasEmoji=!0}}else!this.noEndpoints&&p.navigationEndpoint?(u=document.createElement("a"),u.classList.add("yt-simple-endpoint"),u.setAttribute("spellcheck","false"),this.setDataOnAnchor_(u,p.navigationEndpoint)):u=document.createElement("span"),this.setNodeStyle_(p,u),this.setUpVisibilityLogging_(p,u),u.appendChild(document.createTextNode(l)),
Z.appendChild(u)}}this.getRoot().appendChild(Z)};
_.g.isSimpleString_=function(G){return(this.noEndpoints||!G.navigationEndpoint)&&!_.X(G,$C)&&(this.noStyles||!(G.bold||G.deemphasize||G.italics||G.strikethrough||G.errorUnderline||G.bracket||G.textColor))&&!G.loggingDirectives};
_.g.getRawText=function(){return _.yn(this.text)};
_.g.getFirstRunText=function(){var G;if(((G=this.text)==null?0:G.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.g.setFirstRunText=function(G){var H;((H=this.text)==null?0:H.runs)&&this.text.runs[0]&&(this.text.runs[0].text=G,this.textChanged_(this.text))};
_.g.setDataOnAnchor_=function(G,H){var Z=this;!_.V("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(H)||this.isSignalServiceEndpoint_(H)?(G.onclick=this.serviceEndpointHandler_(H),AN(G,"#")):bI2({text:this.text,command:H},function(){uuo(G,H,Z.target)})};
_.g.isServiceEndpoint_=function(G){var H;return!((H=_.X(G==null?void 0:G.commandMetadata,_.HA))==null||!H.sendPost)};
_.g.isSignalServiceEndpoint_=function(G){return!!_.X(G,_.GD)};
_.g.serviceEndpointHandler_=function(G){var H=this;return function(Z){_.L9(H.hostElement,[G]);Z.preventDefault()}};
_.g.overrideAriaLabelChanged_=function(){var G=this.getRoot();this.enableContentEditable&&G&&G.setAttribute("aria-label",this.overrideAriaLabel)};
_.g.enableContentEditableChanged_=function(){var G=this,H=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),H=_.F9(this.hostElement,H),!H.lastChild||H.lastChild instanceof HTMLElement&&H.lastChild.id!=="contenteditable-root"){var Z=document.createElement("div");Z.id="contenteditable-root";Z.setAttribute("contenteditable","true");Z.setAttribute("dir","auto");Z.onfocus=function(){G.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
H.appendChild(Z);this.overrideAriaLabel&&Z.setAttribute("aria-label",this.overrideAriaLabel)}}else Z=_.bS(this.hostElement).firstChild,Z instanceof HTMLElement&&Z.id==="contenteditable-root"&&_.F9(this.hostElement,H).removeChild(Z)};
_.g.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.g.getNodesForVisibilityLogging_=function(){return _.LM(this.getRoot().childNodes,function(G){var H;return!((H=G.data)==null||!H.trackingParams)})};
_.g.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.g.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(H){G.reportShown(H)})}};
_.g.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var G=this.ytRendererBehavior.getVisibilityLogger();G&&this.getNodesForVisibilityLogging_().forEach(function(H){G.reportHidden(H)})}};
_.u4.Object.defineProperties(vY.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.V("enable_mixed_direction_formatted_strings")}}});
vY.prototype.enableContentEditableChanged_=vY.prototype.enableContentEditableChanged_;vY.prototype.overrideAriaLabelChanged_=vY.prototype.overrideAriaLabelChanged_;vY.prototype.ellipsisTruncateChanged_=vY.prototype.ellipsisTruncateChanged_;vY.prototype.textChanged=vY.prototype.textChanged;_.N([_.v(Im7.YtPlaintextBehavior),_.A("design:type",Object)],vY.prototype,"ytPlaintextBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],vY.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vY.prototype,"text",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"noEndpoints",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"noStyles",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],vY.prototype,"isDarkTheme",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],vY.prototype,"splitLines",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],vY.prototype,"forceDefaultStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],vY.prototype,"ellipsisTruncate",void 0);_.N([_.h(),_.A("design:type",Object)],vY.prototype,"ignoreShadyDom",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.A("design:type",Boolean)],vY.prototype,"ellipsisTruncateStyling",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.A("design:type",String)],vY.prototype,"ariaLabel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],vY.prototype,"isEmpty",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.A("design:type",Boolean)],vY.prototype,"hasLinkOnly_",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"hasEmoji",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"disableAttributedString",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"isOverlay",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"linkInheritColor",void 0);
_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"noPreWrap",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"userInput",void 0);_.N([_.h({value:16}),_.A("design:type",Number)],vY.prototype,"emojiSize",void 0);_.N([_.h(),_.A("design:type",String)],vY.prototype,"target",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"enableContentEditable",void 0);_.N([_.h(),_.A("design:type",String)],vY.prototype,"overrideAriaLabel",void 0);
_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"respectHtmlDir",void 0);_.N([_.h(),_.A("design:type",Boolean)],vY.prototype,"respectLangDir",void 0);_.N([_.z("plaintextOnly"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vY.prototype,"useMixedDirectionFormattedStrings",null);_.N([_.h({computed:"computeUseAttributedString(text)"}),_.A("design:type",Boolean)],vY.prototype,"useYtAttributedString",void 0);
_.N([_.gx("text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vY.prototype,"textChanged",null);_.N([_.gx("ellipsisTruncate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vY.prototype,"ellipsisTruncateChanged_",null);_.N([_.gx("overrideAriaLabel"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vY.prototype,"overrideAriaLabelChanged_",null);
_.N([_.gx("enableContentEditable"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vY.prototype,"enableContentEditableChanged_",null);_.N([_.fH({is:"yt-formatted-string",disableElementRegistration:!0})],vY);
_.m(vY,"yt-formatted-string",function(){if(S87===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;q8t===void 0&&(q8t=document.createElement("template"));var Q=q8t;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);S87=G}G=S87;return G});var uHN;var B4p;var JTa;var tZN;var WY=function(){var G=_.C.apply(this,arguments)||this;G.focused=!1;G.disabled=!1;G.isOverlay=!1;return G};
_.T(WY,_.C);WY.prototype.triggerDown=function(){if(!this.disabled){_.Gq(this.hostElement,"down",!0);var G;(G=this.currentAnimation)==null||G.cancel()}};
WY.prototype.triggerUp=function(){if(!this.disabled){_.Gq(this.hostElement,"down",!1);var G=this.fillElement;var H=this.strokeElement;typeof GroupEffect==="function"?(G=new GroupEffect([o7b(G),mDb(H)]),G=new Animation(G,document.timeline)):G=new Cgw(G,H);this.currentAnimation=G;var Z;(Z=this.currentAnimation)==null||Z.play()}};
_.N([_.q6(".stroke"),_.A("design:type",HTMLElement)],WY.prototype,"strokeElement",void 0);_.N([_.q6(".fill"),_.A("design:type",HTMLElement)],WY.prototype,"fillElement",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WY.prototype,"focused",void 0);_.N([_.h(),_.A("design:type",Object)],WY.prototype,"disabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WY.prototype,"isOverlay",void 0);_.N([_.fH({is:"yt-interaction",disableElementRegistration:!0})],WY);
_.m(WY,"yt-interaction",function(){if(tZN===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;JTa===void 0&&(JTa=document.createElement("template"));var Q=JTa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);tZN=G}G=tZN;return G},{mode:2});var zp=function(){return _.C.apply(this,arguments)||this};
_.T(zp,_.C);_.g=zp.prototype;_.g.ready=function(){var G=this,H=_.F9(this.hostElement).querySelector("#button");H.addEventListener("focus",function(){Ic_||(Ic_=new gLd);G.keyboardFocused=Ic_.isKeyBoardInUse()});
H.addEventListener("blur",function(){G.keyboardFocused=!1;G.rippleUp_()})};
_.g.computeTabIndex_=function(G){return G?-1:0};
_.g.computeButtonAriaPressed_=function(G){if(this.toggleable)return G?"true":"false"};
_.g.rippleDown_=function(){_.F9(this.hostElement).querySelector("#interaction").triggerDown()};
_.g.rippleUp_=function(){_.F9(this.hostElement).querySelector("#interaction").triggerUp()};
_.g.onPressedChanged_=function(){var G=_.bS(_.F9(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.bS(_.F9(this.hostElement).querySelector("#button")).children[0];G&&(G.active=this.pressed)};
zp.prototype.onPressedChanged_=zp.prototype.onPressedChanged_;zp.prototype.rippleUp_=zp.prototype.rippleUp_;zp.prototype.rippleDown_=zp.prototype.rippleDown_;_.N([_.h(),_.A("design:type",String)],zp.prototype,"label",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],zp.prototype,"disabled",void 0);_.N([_.h(),_.A("design:type",Boolean)],zp.prototype,"pressed",void 0);_.N([_.h(),_.A("design:type",Object)],zp.prototype,"toggleable",void 0);
_.N([_.h(),_.A("design:type",Boolean)],zp.prototype,"untabbable",void 0);_.N([_.h(),_.A("design:type",Boolean)],zp.prototype,"keyboardFocused",void 0);_.N([_.lq("down"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zp.prototype,"rippleDown_",null);_.N([_.lq("up"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zp.prototype,"rippleUp_",null);
_.N([_.gx("pressed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zp.prototype,"onPressedChanged_",null);_.N([_.fH({is:"yt-icon-button",disableElementRegistration:!0})],zp);
_.m(zp,"yt-icon-button",function(){if(B4p===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;uHN===void 0&&(uHN=document.createElement("template"));var Q=uHN;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);B4p=G}G=B4p;return G},{mode:2});var k04;var DDd=function(){var G=document.body,H=G.appendChild;if(k04===void 0){var Z=document.createElement("template");_.f(Z,'\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>');
k04=Z}Z=k04;H.call(G,Z.content)};
document.body?DDd():window.addEventListener("DOMContentLoaded",DDd);var dDx=_.CM(["aria-"]),Ki={};Ki.YtRenderButtonBehavior=[_.Y.YtRendererBehavior,_.ni.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!!_.tp().resolve(_.Jp(_.qZ))&&_.V("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var G=this.computeHref_(this.endpoint,!0);G?AN(this.elements_.endpoint,G):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){G=this.buttonClass.split(" ");G=_.I(G);for(var H=G.next();!H.done;H=G.next())H=H.value,_.Gq(this.hostElement,H,!0),this.elements_.button&&_.Gq(this.elements_.button,H,!0),this.elements_.text&&_.Gq(this.elements_.text,H,!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&&(G=null,this.buttonAccessibility&&(G=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=G:G?_.q_([_.et(dDx)],this.elements_.button,"aria-label",G):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var G=_.tp().resolve(_.Jp(_.qZ));G&&(this.keyboardFocused=G.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.pi("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,_.Bf(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Bf(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(G,H){if(H)for(G=H.split(" "),G=_.I(G),H=G.next();!H.done;H=G.next())H=H.value,_.Gq(this.hostElement,H,!1),this.elements_.button&&_.Gq(this.elements_.button,H,!1),this.elements_.text&&_.Gq(this.elements_.text,H,!1)},
buttonIconChanged_:function(G){this.elements_.icon?G?(this.elements_.icon.icon=G,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Bf(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.HG(this.hostElement,"is-paper-button-with-icon",!1)):G&&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"&&_.Bf(this.elements_.button).appendChild(this.elements_.icon):_.Bf(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.HG(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(G){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,G){var H=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(G){case "yt_icon_button_with_label":H=!0;_.Gq(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();G=_.Bf(this.elements_.button).firstElementChild;
this.elements_.icon=G;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Bf(this.elements_.endpoint).appendChild(this.elements_.button);_.Bf(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.pi("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;_.Bf(this.elements_.button).appendChild(this.elements_.text);_.Bf(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":H=!0,this.elements_.button=this.getYtIconButton_(),G=_.Bf(this.elements_.button).firstElementChild,this.elements_.icon=G,this.setIconActive_(this.elements_.icon),
_.Bf(this.elements_.endpoint).appendChild(this.elements_.button)}_.HG(this.hostElement,"is-icon-button",H);_.HG(this.hostElement,"is-paper-button",!H);_.HG(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 Z;_.F9((Z=this.container.hostElement)!=null?Z:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Bf(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(G){if(G!=void 0||this.disabled)this.disabled=G,this.elements_.button&&(this.elements_.button.disabled=G)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(G){_.V("kevlar_system_icons")&&G&&this.data&&(this.data.isSelected!==void 0?G.active=this.data.isSelected:this.data.isToggled!==void 0&&(G.active=this.data.isToggled))},
observeBasicPalette_:function(G){_.Do(this.hostElement,G)},
disabledChanged_:function(G){this.data&&this.set("data.isDisabled",G)},
onYtButtonTap_:function(G){if(this.disabled)G.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.L9(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(G=this.disableCommandHandlerOverride,!this.data||!this.data.command||G||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.V("handle_service_request_actions")||_.L9(this.hostElement,[this.serviceEndpoint]),
_.N5(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.V("handle_service_request_actions")?(G=[],this.serviceEndpoint&&G.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&G.push(this.data.command),G.length&&_.El(this.hostElement,G,this.hostElement)):this.data&&this.data.command&&(G=this.data.command,G.accountUnlinkCommand||G.accountLinkCommand||G.insertAdCommand||G.insertHighlightMarkerCommand||
G.createLivestreamHighlightClipCommand||G.getVideoUploadFeedbackCommand||G.musicDeletePrivatelyOwnedEntityCommand||G.ypcCancelRecurrenceEndpoint||G.getMultiSelectCommandEndpoint?_.L9(this.hostElement,[G]):_.El(this.hostElement,[G],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 G,H=_.F9((G=this.container.hostElement)!=null?G:this.container);H.lastChild&&H.lastChild.tagName!="STYLE";)try{H.removeChild(H.lastChild)}catch(Z){break}},
getYtIconButton_:function(){var G=this.reuseEnabled_()?_.pi("yt-icon-button"):document.createElement("yt-icon-button"),H=_.Bf(G).firstElementChild;if(H&&H.is!="yt-icon"){for(H=_.Bf(G);H.lastChild;)H.removeChild(H.lastChild);H=null}H||(H=this.getIcon_(),this.setIconActive_(H),_.Bf(G).appendChild(H));return G},
reuseEnabled_:function(){return _.V("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.pi("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.pi("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.e67={};
_.e67.YtButtonBehavior=[Ki.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var G=this.data;G&&(this._setEndpoint(this.computeEndpoint_(G)),this._setServiceEndpoint(this.computeServiceEndpoint_(G)),this._setCommand(this.computeCommand_(G)),this._setButtonIcon(this.computeButtonIcon_(G)),this._setButtonText(this.computeButtonText_(G,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(G)),this._setButtonTooltip(this.computeTooltip_(G)),this._setButtonClass(this.computeButtonClass_(G)),this._setIconPositionType(this.computeIconPositionType_(G)),this.updateRenderedElements())},
setPressedState:function(G){var H;if((H=this.elements_)==null?0:H.button)this.elements_.button.pressed=!!G},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeEndpoint_:function(G){var H=G&&G.navigationEndpoint,Z=this.get("data.command.commandMetadata.webCommandMetadata.url"),Q=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:G&&G.command&&G.command.modalEndpoint?G.command:Z&&!Q&&G.command?G.command:null},
computeServiceEndpoint_:function(G){var H=G&&G.serviceEndpoint,Z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:Z&&G.command?G.command:null},
computeCommand_:function(G){return G&&G.command||null},
computeButtonIcon_:function(G){return G&&G.icon&&G.icon.iconType?_.bq(G.icon.iconType):null},
computeButtonText_:function(G,H){return!H&&G&&G.text||null},
computeAccessibility_:function(G){return this.get("accessibilityData.accessibilityData",G)||G&&G.accessibility||(G&&G.text?{label:this.getSimpleString(G.text)}:null)},
computeTooltip_:function(G){return G?G.isDisabled&&G.disabledTooltip||G.tooltip||null:null},
computeButtonClass_:function(G){var H=G&&G.style?G.style.toLowerCase().replace(/_/g,"-")+" ":"";H+=G&&G.size?G.size.toLowerCase().replace(/_/g,"-")+" ":"";G.colorData&&G.colorData.basicColorPaletteData&&G.colorData.basicColorPaletteData.borderColor&&(H+="palette-with-border");return H.trim()}}];var db={};var n72;var VZ_;var $DT,XJ_=function(){return $DT!==void 0?$DT:$DT=document.createElement("template")};
document.head.appendChild(XJ_().content);var cTw;var T4w,fma=function(){return T4w!==void 0?T4w:T4w=document.createElement("template")};
document.head.appendChild(fma().content);var v7p;var WbN,z6R=function(){return WbN!==void 0?WbN:WbN=document.createElement("template")};
document.head.appendChild(z6R().content);var KbR;var MZT=document.head,jda=MZT.appendChild,Ph4;if(KbR===void 0){var rT4=document.createElement("template");_.f(rT4,"\x3c!--css-build:shady--\x3e");rT4.content.insertBefore(z6R().content.cloneNode(!0),rT4.content.firstChild);KbR=rT4}Ph4=KbR;jda.call(MZT,Ph4.content);var wJa=document.head,h6a=wJa.appendChild,ChT;if(v7p===void 0){var iP2=document.createElement("template");_.f(iP2,"\x3c!--css-build:shady--\x3e");iP2.content.insertBefore(fma().content.cloneNode(!0),iP2.content.firstChild);v7p=iP2}ChT=v7p;h6a.call(wJa,ChT.content);var OPw=document.head,amG=OPw.appendChild,yTw;if(cTw===void 0){var o7a=document.createElement("template");_.f(o7a,"\x3c!--css-build:shady--\x3e");o7a.content.insertBefore(XJ_().content.cloneNode(!0),o7a.content.firstChild);cTw=o7a}yTw=cTw;amG.call(OPw,yTw.content);var mDa;_.eQ("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");mDa=_.V("web_button_rework")&&_.YI("BUTTON_REWORK")||_.V("web_button_rework_with_live");_.MZ=function(){return _.C.apply(this,arguments)||this};
_.T(_.MZ,_.C);_.MZ.prototype.created=function(){this.openPopupConfig=_.xI("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.MZ.prototype.onYtNavigate_=function(G){var H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);H&&(this.ytOpenPopupBehavior.openPopup(H),G.stopPropagation(),G.preventDefault())};
_.u4.Object.defineProperties(_.MZ,{template:{configurable:!0,enumerable:!0,get:function(){if(VZ_===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var H=G.content,Z=H.insertBefore;n72===void 0&&(n72=document.createElement("template"));var Q=n72;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);VZ_=G}G=VZ_;return G}}});
_.MZ.prototype.onYtNavigate_=_.MZ.prototype.onYtNavigate_;_.N([_.v(_.e8.YtOpenPopupBehavior),_.A("design:type",Object)],_.MZ.prototype,"ytOpenPopupBehavior",void 0);_.N([_.v(_.e67.YtButtonBehavior),_.A("design:type",Object)],_.MZ.prototype,"ytButtonBehavior",void 0);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],_.MZ.prototype,"onYtNavigate_",null);
_.N([_.fH({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:mDa})],_.MZ);var UDw;var R6a=_.V("web_button_rework")&&_.YI("BUTTON_REWORK")||_.V("web_button_rework_with_live"),j8=function(){var G=_.C.apply(this,arguments)||this;G.isPressed=!1;G.forceIconButton=!1;G.forceIconOnly=!1;G.forceModernIconButton=!1;G.skipCommandHandling=!1;G.alignByText=!1;G.fitToVisibleBounds=!0;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};G.onTap=function(H){_.N5(G.hostElement,"yt-service-request-sent-button-renderer",H)};
return G};
_.T(j8,_.C);_.g=j8.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.g.onClick=function(G){var H,Z=this.disabled||((H=this.data)==null?void 0:H.isDisabled);H=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");Z&&H&&G.stopPropagation()};
_.g.computeIcon=function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.icon)==null?void 0:H.iconType;if(Z)return _.bq(Z)};
_.g.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.g.handleUpdateButtonAction=function(G){G=_.X(G,LrT);var H=_.X(G==null?void 0:G.updatedButton,_.Yl);if(this.data&&G&&H){var Z=this.data;Z.targetId&&G.targetId&&Z.targetId===G.targetId&&(this.data=H)}};
_.u4.Object.defineProperties(j8.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var G=this;if(this.data){var H=F6b({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.N5(G.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.N5(G.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});H.alignByText=this.alignByText;return H}}}});
_.u4.Object.defineProperties(j8,{template:{configurable:!0,enumerable:!0,get:function(){if(UDw===void 0){var G=document.createElement("template");_.f(G,'\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>');UDw=G}G=UDw;return G}}});
j8.prototype.onClick=j8.prototype.onClick;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],j8.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],j8.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],j8.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],j8.prototype,"isPressed",void 0);
_.N([_.h(),_.A("design:type",Object)],j8.prototype,"forceIconButton",void 0);_.N([_.h(),_.A("design:type",Object)],j8.prototype,"forceIconOnly",void 0);_.N([_.h(),_.A("design:type",Object)],j8.prototype,"forceModernIconButton",void 0);_.N([_.h(),_.A("design:type",Object)],j8.prototype,"skipCommandHandling",void 0);_.N([_.h(),_.A("design:type",Object)],j8.prototype,"alignByText",void 0);_.N([_.h(),_.A("design:type",Object)],j8.prototype,"buttonTooltipPosition",void 0);
_.N([_.h(),_.A("design:type",Object)],j8.prototype,"fitToVisibleBounds",void 0);_.N([_.h({computed:"computeTooltip(data)"}),_.A("design:type",Object)],j8.prototype,"tooltip",void 0);_.N([_.h(),_.A("design:type",Object)],j8.prototype,"overrides",void 0);_.N([_.h(),_.A("design:type",Boolean)],j8.prototype,"disabled",void 0);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],j8.prototype,"onClick",null);
_.N([_.z("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.A("design:type",Object),_.A("design:paramtypes",[])],j8.prototype,"computedButtonShape",null);_.N([_.fH({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!R6a,cssBuildOptOut:!0}),_.fH({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!R6a,cssBuildOptOut:!0})],j8);var N4a;var ATd;var PY=function(){var G=_.C.apply(this,arguments)||this;G.empty_=!0;G.loadTime=Infinity;G.pendingPaint=!1;G.hasChange_=!1;G.oldThumbnail_=null;G.oldDelayedSrc_="";G.objectURL_=null;return G};
_.T(PY,_.C);_.g=PY.prototype;_.g.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.g.ready=function(){var G=this.shouldShowPlaceholder_();_.Gq(this.hostElement,"no-transition",!0);G&&this.hostElement.classList.add("with-placeholder")};
_.g.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.g.isThumbPreloaded_=function(G){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",G)};
_.g.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||xDd};
_.g.computeThumbnailSrc_=function(G){return G&&G.thumbnails?_.N$(G.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.g.computeAlt_=function(){var G=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&G||""};
_.g.thumbnailChanged_=function(){var G=_.I([this.thumbnail,this.oldThumbnail_]),H=G.next().value;G=G.next().value;this.oldThumbnail_=H;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(G=this.computeThumbnailSrc_(G),this.computeThumbnailSrc_(H)===G))return;_.V("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(H)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):H&&_.YI("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.q2(this,this.onReload_):_.q2(this,this.onShow_):this.resetImage_();H&&(this.hostElement.style.opacity=""+H.opacity)}};
_.g.delayedSrcChanged_=function(){var G=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===G||this.resetImage_()};
_.g.setSrc_=function(G){G?(_.F9(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.F9(this.hostElement).querySelector("#img").src=G):(_.F9(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.g.resetImage_=function(){bCX(this.hostElement);this.empty_=!0;this.setSrc_(xDd);this.ytRendererBehavior.invalidate(!1)};
_.g.observePlaceholderColor_=function(){var G=this.thumbnail&&this.thumbnail.placeholderColor;G?this.hostElement.style.backgroundColor=_.X9(G):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.g.onLoad_=function(){_.F9(this.hostElement).querySelector("#img").src&&_.F9(this.hostElement).querySelector("#img").src!==xDd&&(FB2(this.hostElement),this.notifyOnLoaded&&_.N5(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.g.onError_=function(){var G=this;if(_.V("web_use_cache_for_image_fallback"))lm2(_.F9(this.hostElement).querySelector("#img").src).then(function(H){G.objectURL_=_.U_(H).toString();G.setSrc_(G.objectURL_)}).catch(function(){_.V("kevlar_woffle_fallback_image")&&G.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.g.onPrescanVisible=function(){this.onShow_()};
_.g.onVisible=function(){if(_.V("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.g.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var G=this.computeSrc_();G!==_.F9(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))}};
_.g.onReload_=function(){this.empty_=!1;var G=this.computeSrc_();G!==_.F9(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(G))};
_.g.shouldShowPlaceholder_=function(){return _.V("kevlar_thumbnail_bg")};
PY.prototype.observePlaceholderColor_=PY.prototype.observePlaceholderColor_;PY.prototype.delayedSrcChanged_=PY.prototype.delayedSrcChanged_;PY.prototype.thumbnailChanged_=PY.prototype.thumbnailChanged_;_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],PY.prototype,"alt",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],PY.prototype,"ariaHidden",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],PY.prototype,"ariaLabel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],PY.prototype,"hidden",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],PY.prototype,"id",void 0);_.N([_.v(_.xy.YtVisibilityBehavior),_.A("design:type",Object)],PY.prototype,"ytVisibilityBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",String)],PY.prototype,"delayedSrc",void 0);
_.N([_.h(),_.A("design:type",Object)],PY.prototype,"thumbnail",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],PY.prototype,"loaded",void 0);_.N([_.h(),_.A("design:type",Boolean)],PY.prototype,"notifyOnLoaded",void 0);_.N([_.h(),_.A("design:type",Number)],PY.prototype,"height",void 0);_.N([_.h(),_.A("design:type",Number)],PY.prototype,"width",void 0);_.N([_.h({value:function(){return"width"}}),
_.A("design:type",String)],PY.prototype,"dimension",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],PY.prototype,"fit",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],PY.prototype,"fitHeight",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],PY.prototype,"fitWidth",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],PY.prototype,"objectFit",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],PY.prototype,"objectPosition",void 0);_.N([_.h(),_.A("design:type",String)],PY.prototype,"preferredThumbnail",void 0);_.N([_.h({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.A("design:type",String)],PY.prototype,"alt_",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],PY.prototype,"sharedTooltipText",void 0);
_.N([_.h(),_.A("design:type",Boolean)],PY.prototype,"ftlEligible",void 0);_.N([_.h({value:void 0}),_.A("design:type",String)],PY.prototype,"observeHiddenOption",void 0);_.N([_.h({value:"observe_once"}),_.A("design:type",String)],PY.prototype,"observePrescanOption",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],PY.prototype,"roundedContainer",void 0);
_.N([_.Jv("thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PY.prototype,"thumbnailChanged_",null);_.N([_.Jv("delayedSrc"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PY.prototype,"delayedSrcChanged_",null);_.N([_.gx("thumbnail.placeholderColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],PY.prototype,"observePlaceholderColor_",null);
_.N([_.fH({is:"yt-img-shadow",disableElementRegistration:!0})],PY);var xDd=_.YI("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.xQ()(PY,"yt-img-shadow",function(){if(ATd===void 0){var G=document.createElement("template");_.f(G,'\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">');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;N4a===void 0&&(N4a=document.createElement("template"));var Q=N4a;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ATd=G}G=ATd;return G},{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 lWW;_.rv=new _.Gv("SCREEN_MANAGER_TOKEN");lWW=new _.Gv("LOG_INITIAL_SCREEN_TOKEN");var LbR=VF({entities:{}});_.wv=$V(LbR)(LbR.entities,{selectSfvAudioItemPlaybackState:function(G,H){var Z,Q;G=(Q=_.Hv(G,"sfvAudioItemCurrentlyPlayingEntity",H))!=null?Q:void 0;return(Z=G==null?void 0:G.sfvAudioItemPlaybackState)!=null?Z:void 0},
playlistLoopStateEntitySelector:HDb,toggleMenuServiceItemEntitySelector:sDM});_.hf=_.y(function(G){function H(H3){return _.X(H3,_.HN)}
function Z(){var H3=Q().isTogglingDisabled||W()&&Q().toggledIsTogglingDisabled,qX=H3||e()?W():!W();M(qX);w(!1);if(!H3){var B3;(B3=q)==null||B3(!!qX)}var fW;((fW=l)==null?0:fW())||_.ze(_.tp().resolve(_.rv),Q().trackingParams);var e2;if(!qX||!H(Q().defaultButtonViewModel)||(e2=l)!=null&&e2()){var $R;!H(Q().toggledButtonViewModel)||(($R=l)==null?0:$R())||_.ze(_.tp().resolve(_.rv),H(Q().toggledButtonViewModel).trackingParams)}else _.ze(_.tp().resolve(_.rv),H(Q().defaultButtonViewModel).trackingParams)}
var Q=G.data,p=G.buttonShapeOverrides,l=G.disableExplicitClickLogging,q=G.onToggle,u=G.style,B=G.useOutlinedIcon,t=G.className,D=function(){var H3,qX;return W()?(H3=G.animatedTextPropsToggled)==null?void 0:H3.call(G):(qX=G.animatedTextPropsDefault)==null?void 0:qX.call(G)},d=_.Kb(function(){return D()?Object.assign({},D(),{shouldAnimate:r()}):void 0},void 0,"Zp4uoe"),e=function(){var H3;
return((H3=R())==null?void 0:H3.isToggled)!==void 0},n=_.I(_.QF(function(){var H3,qX,B3;
return e()?(H3=R())==null?void 0:H3.isToggled:(B3=p==null?void 0:(qX=p())==null?void 0:qX.toggled)!=null?B3:Q().isToggled})),c=n.next().value;
n=n.next().value;var W=c,M=n;n=_.I(_.QF(function(){var H3,qX;return(H3=G.animatedTextPropsToggled)==null?void 0:(qX=H3.call(G))==null?void 0:qX.shouldAnimate}));
c=n.next().value;n=n.next().value;var r=c,w=n;c=_.I(_.Ty(!1,void 0,"mq3Zfe"));var x=c.next().value,U=c.next().value,R=_.SQ(function(H3){a:{var qX=Q().entityKey,B3=Q().toggledStateEntitySelectorType;if(B3)switch(B3){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!qX)break;H3=_.wv.selectSfvAudioItemPlaybackState(H3,qX);if(H3==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){H3={isToggled:!0};break a}if(H3){H3={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":H3=
{isToggled:_.p0o(H3).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":H3={isToggled:_.p0o(H3).includes("engagement-panel-live-chat-item-section")};break a;default:_.Rp(new _.C$("Error: entitySelectorType defined but not matched in selector.",H3,B3))}H3=void 0}return H3}),L=function(){return Object.assign({},p==null?void 0:p(),{onToggle:Z,
toggleable:!0,toggled:W(),focused:x()})};
return _.J("toggle-button-view-model",{"on:focusin":_.Hh(function(){var H3=_.tp().resolve(_.Jp(_.qZ));H3&&U(H3.isKeyBoardInUse());return!1}),
"on:focusout":_.Hh(function(){U(!1);return!1})},_.J(_.k,{cond:function(){return W()?H(Q().toggledButtonViewModel):H(Q().defaultButtonViewModel)},
then:function(H3){return _.J(_.kg,{data:H3,className:t,style:u,useOutlinedIcon:B,buttonOverrides:L,animatedTextProps:d})}}))},"ca");
_.hf.idomCompat={callbacks:{onToggle:!0}};_.RX(_.y(function(G){return _.J("yt-toggle-button-view-model",{class:function(){var H;return(H=G.scopingClassName)==null?void 0:H.call(G)}},_.J(_.hf,{data:function(){var H;
return(H=G.data)==null?void 0:H.call(G)},
buttonShapeOverrides:function(){var H;return(H=G.overrides)==null?void 0:H.call(G)},
animatedTextPropsDefault:function(){var H;return(H=G.animatedTextPropsDefault)==null?void 0:H.call(G)},
animatedTextPropsToggled:function(){var H;return(H=G.animatedTextPropsToggled)==null?void 0:H.call(G)},
disableExplicitClickLogging:function(){var H;return(H=G.disableExplicitClickLogging)==null?void 0:H.call(G)},
onToggle:function(H){var Z;return(Z=G.onToggle)==null?void 0:Z.call(G,H)},
style:function(){var H;return(H=G.style)==null?void 0:H.call(G)},
useOutlinedIcon:function(){var H;return(H=G.useOutlinedIcon)==null?void 0:H.call(G)},
className:function(){var H;return(H=G.className)==null?void 0:H.call(G)}}))},"da"),"yt-toggle-button-view-model",{props:{data:_.b3,
buttonShapeOverrides:_.b3,overrides:_.b3,animatedTextPropsDefault:_.b3,animatedTextPropsToggled:_.b3,disableExplicitClickLogging:_.b3,onToggle:_.oX,style:_.b3,useOutlinedIcon:_.b3,className:_.b3,scopingClassName:_.b3}});var Ci=function(){return _.C.apply(this,arguments)||this};
_.T(Ci,_.C);Ci.prototype.onTap=function(G){G.stopPropagation();G=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.eO("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G})):this.ytLiveChatReduxBehavior.dispatch(_.uP("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:G}))};
_.u4.Object.defineProperties(Ci.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.engagementState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.X(this.data.toggleButton,_.ZD),H;if(Number(((H=this.likeCountState)==null?void 0:H.likeCountIfIndifferentNumber)||"0")===0){var Z;H=((Z=this.data.likeCountPlaceholder)==null?void 0:Z.content)||""}else{var Q,p,l;H=((Q=this.likeCountState)==null?void 0:(p=Q.likeCountIfIndifferent)==null?void 0:p.content)||((l=this.data.likeCountPlaceholder)==null?void 0:l.content)||""}var q,u;Z=((q=this.likeCountState)==null?void 0:(u=
q.likeCountIfLiked)==null?void 0:u.content)||"1";q=_.X(G.toggledButtonViewModel,_.HN);return Object.assign({},G,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.X(G.defaultButtonViewModel,_.HN),{title:H})},toggledButtonViewModel:{buttonViewModel:Object.assign({},q,{title:Z})}})}}}});
Ci.prototype.onTap=Ci.prototype.onTap;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Ci.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],Ci.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ci.prototype,"data",void 0);
_.N([_.h({selectorArgs:["data.likeCountEntityKey"],selector:lhf}),_.A("design:type",Object)],Ci.prototype,"likeCountState",void 0);_.N([_.h({selectorArgs:["data.engagementStateKey"],selector:tRo}),_.A("design:type",Object)],Ci.prototype,"engagementState",void 0);_.N([_.z("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ci.prototype,"isLiked",null);
_.N([_.z("data","likeCountState","isLiked"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ci.prototype,"toggleButton",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Ci.prototype,"onTap",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Ci);
_.m(Ci,"yt-live-chat-like-button-view-model",function(){if(FBp===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Y22===void 0&&(Y22=document.createElement("template"));var Q=Y22;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);FBp=G}G=FBp;return G},{mode:0});var E7t;var Y8w;var i1=function(){return _.C.apply(this,arguments)||this};
_.T(i1,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],i1.prototype,"data",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],i1);
_.m(i1,"yt-live-chat-paid-message-footer-renderer",function(){if(Y8w===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;E7t===void 0&&(E7t=document.createElement("template"));var Q=E7t;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Y8w=G}G=Y8w;return G},{mode:0});var Fbx;var bP2;var GNa;var H74,s8G=function(){if(H74!==void 0)return H74;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;GNa===void 0&&(GNa=document.createElement("template"));var Q=GNa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return H74=G};var OM=function(){return _.C.apply(this,arguments)||this};
_.T(OM,_.C);OM.prototype.onTap=function(G){G.stopPropagation()};
_.u4.Object.defineProperties(OM.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=_.X(this.data.replyButton,_.HN),H,Z,Q,p,l,q,u,B=Number(((H=this.replyCountState)==null?void 0:H.replyCountNumber)||"0")===0?(Z=this.data)==null?void 0:(Q=Z.replyCountPlaceholder)==null?void 0:Q.content:((p=this.replyCountState)==null?void 0:(l=p.replyCount)==null?void 0:l.content)||((q=this.data)==null?void 0:(u=q.replyCountPlaceholder)==null?void 0:u.content)||"",t;return Object.assign({},
G,{title:B,accessibilityText:(t=this.replyCountState)==null?void 0:t.replyButtonAccessibilityText})}}}});
_.u4.Object.defineProperties(OM,{template:{configurable:!0,enumerable:!0,get:function(){return s8G()}}});
OM.prototype.onTap=OM.prototype.onTap;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],OM.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],OM.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],OM.prototype,"data",void 0);
_.N([_.h({selectorArgs:["data.replyCountEntityKey"],selector:function(G,H){return _.Hv(G.entities,"replyCountEntity",H)}}),
_.A("design:type",Object)],OM.prototype,"replyCountState",void 0);_.N([_.z("data","replyCountState"),_.A("design:type",Object),_.A("design:paramtypes",[])],OM.prototype,"buttonViewModel",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],OM.prototype,"onTap",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],OM);_.m(OM,"yt-live-chat-reply-button-view-model",function(){return s8G()},{mode:0});var Z7p;var Q8a;var ai=function(){var G=_.C.apply(this,arguments)||this;G.ariaLabel="";return G};
_.T(ai,_.C);
ai.prototype.dataChanged=function(){for(var G=(0,_.sI)(_.F9(this.hostElement).querySelector("#image"));G.firstChild;)G.removeChild(G.firstChild);if(this.data)if(this.data.icon){var H=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(H.polymerController.icon="yt-sys-icons:shield-filled",H.polymerController.defaultToFilled=!0):H.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();G.appendChild(H)}else if(this.data.customThumbnail){H=document.createElement("img");
var Z=_.RwX(this.data.customThumbnail.thumbnails,16);Z?(H.src=Z,G.appendChild(H),H.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Rp(new _.C$("Could not compute URL for thumbnail",this.data.customThumbnail))}};
ai.prototype.identity=function(G){return G};
ai.prototype.computeType=function(G){return EI(G||void 0)};
ai.prototype.dataChanged=ai.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],ai.prototype,"data",void 0);_.N([_.h({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.A("design:type",Object)],ai.prototype,"ariaLabel",void 0);_.N([_.h({computed:"computeType(data)",reflectToAttribute:!0}),_.A("design:type",String)],ai.prototype,"type",void 0);
_.N([_.h({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.A("design:type",String)],ai.prototype,"sharedTooltipText",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("live_chat_enable_new_moderator_badge")}}),
_.A("design:type",Boolean)],ai.prototype,"enableNewModeratorBadge",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ai.prototype,"dataChanged",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],ai);
_.m(ai,"yt-live-chat-author-badge-renderer",function(){if(Q8a===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Z7p===void 0&&(Z7p=document.createElement("template"));var Q=Z7p;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Q8a=G}G=Q8a;return G},{mode:0});var pjd;var le2;var y6=function(){return _.C.apply(this,arguments)||this};
_.T(y6,_.C);_.g=y6.prototype;_.g.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"}}}}};
_.g.computeBadgesInsideChip=function(G){return G?G.filter(function(H){return EI(H.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.g.computeBadgesOutsideChip=function(G){return this.prependChatBadges||!G?[]:G.filter(function(H){H=EI(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"})};
_.g.computeBadgesBeforeChip=function(G){return this.prependChatBadges&&G?G.filter(function(H){H=EI(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"}):[]};
_.g.computeIsHighlighted=function(G,H){var Z=!!Bif(G,"owner"),Q=!!Bif(G,"verified");G=!!Bif(G,"moderator");return(Z||Q&&!G)&&!H};
_.g.computeAuthorType=function(G){return umW(G)};
_.g.computeAuthorClass=function(G,H){return H?(G?G+" ":"")+"single-line":G};
_.g.onSeedColorChanged=function(){_.V("live_chat_author_name_color_usernames")||_.V("live_chat_seed_color_usernames")||_.V("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.V("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
y6.prototype.onSeedColorChanged=y6.prototype.onSeedColorChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],y6.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],y6.prototype,"authorName",void 0);_.N([_.h(),_.A("design:type",Array)],y6.prototype,"authorBadges",void 0);
_.N([_.h({computed:"computeAuthorType(authorBadges)"}),_.A("design:type",String)],y6.prototype,"authorType",void 0);_.N([_.h({computed:"computeAuthorClass(authorType, singleLine)"}),_.A("design:type",String)],y6.prototype,"authorClass",void 0);_.N([_.h({computed:"computeBadgesInsideChip(authorBadges)"}),_.A("design:type",Array)],y6.prototype,"badgesInsideChip",void 0);_.N([_.h({computed:"computeBadgesOutsideChip(authorBadges)"}),_.A("design:type",Array)],y6.prototype,"badgesOutsideChip",void 0);
_.N([_.h({computed:"computeBadgesBeforeChip(authorBadges)"}),_.A("design:type",Array)],y6.prototype,"badgesBeforeChip",void 0);_.N([_.h({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.A("design:type",Boolean)],y6.prototype,"isHighlighted",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],y6.prototype,"singleLine",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],y6.prototype,"disableHighlighting",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],y6.prototype,"dashboardMoneyFeed",void 0);_.N([_.h({value:_.V("live_chat_prepend_badges"),reflectToAttribute:!0}),_.A("design:type",Boolean)],y6.prototype,"prependChatBadges",void 0);_.N([_.h(),_.A("design:type",String)],y6.prototype,"authorNameColor",void 0);_.N([_.q6("#author-name"),_.A("design:type",HTMLDivElement)],y6.prototype,"username",void 0);
_.N([_.gx("authorNameColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y6.prototype,"onSeedColorChanged",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],y6);
_.m(y6,"yt-live-chat-author-chip",function(){if(le2===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;pjd===void 0&&(pjd=document.createElement("template"));var Q=pjd;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);le2=G}G=le2;return G},{mode:0});var gea;var IeR;var oi=function(){var G=_.C.apply(this,arguments)||this;G.debounceCommand=_.nO(function(H){G.ytComponentBehavior.resolveCommand(H)},1500);
return G};
_.T(oi,_.C);oi.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var G=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",H,Z,Q=this.isHearted?(H=this.data)==null?void 0:H.unheartCommand:(Z=this.data)==null?void 0:Z.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.eO("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:G}));(G=_.Tt(Q))&&this.debounceCommand(G)}};
_.u4.Object.defineProperties(oi.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G,H;if(!((G=this.data)==null?0:(H=G.creatorThumbnail)==null?0:H.sources))return{};G={thumbnails:[]};H={};H.url=this.data.creatorThumbnail.sources[0].url;G.thumbnails.push(H);return G}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((Z=this.engagementState)==null?void 0:Z.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}}});
oi.prototype.onTap=oi.prototype.onTap;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],oi.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],oi.prototype,"data",void 0);
_.N([_.h({selectorArgs:["data.engagementStateKey"],selector:tRo}),_.A("design:type",Object)],oi.prototype,"engagementState",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],oi.prototype,"thumbnailDetails",null);_.N([_.z("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oi.prototype,"isHearted",null);_.N([_.z("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oi.prototype,"isEditable",null);
_.N([_.z("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oi.prototype,"showCreatorView",null);_.N([_.z("data","engagementState"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oi.prototype,"showButton",null);_.N([_.z("data","isHearted"),_.A("design:type",String),_.A("design:paramtypes",[])],oi.prototype,"label",null);_.N([_.z("data","isHearted"),_.A("design:type",Object),_.A("design:paramtypes",[])],oi.prototype,"heartHoverText",null);
_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oi.prototype,"onTap",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],oi);
_.m(oi,"yt-live-chat-creator-heart-view-model",function(){if(IeR===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;gea===void 0&&(gea=document.createElement("template"));var Q=gea;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);IeR=G}G=IeR;return G},{mode:0});var mH=function(G,H){this.serviceId=new Jkt(G,H)};
mH.prototype.toString=function(){return this.serviceId.toString()};var qQ4=function(){this.internalMap={}};
_.g=qQ4.prototype;_.g.contains=function(G){return Object.prototype.hasOwnProperty.call(this.internalMap,G)};
_.g.get=function(G){if(this.contains(G))return this.internalMap[G]};
_.g.set=function(G,H){this.internalMap[G]=H};
_.g.getKeys=function(){return Object.keys(this.internalMap)};
_.g.remove=function(G){delete this.internalMap[G]};var UM=function(){this.mappings=new qQ4;this.errorCallbacks=new Set};
UM.prototype.getModuleId=function(G){return G.serviceId.getModuleId()};
UM.prototype.get=function(G){var H=this.mappings.get(G.toString());return SQN(this,H,G)};
UM.prototype.getMultipleAsync=function(){var G=_.Ry.apply(0,arguments),H=this,Z=G.map(function(B){return H.getModuleId(B)}),Q=G.map(function(B){return H.mappings.get(B.toString())}).filter(function(B){return B});
if(Q.length===G.length)return _.Yk(Q.map(function(B,t){return SQN(H,B,G[t])}));
var p=of().loadMultiple(Z);Q=_.Tw(Z.map(function(B){return p[B]}));
var l=document.hidden,q=-1,u=_.eA("get_async_timeout_ms",-1);u>-1&&(q=setTimeout(function(){_.Rp(new _.C$("Module timeout.",Z,l,document.hidden))},u));
return _.fK(Q.then(function(){return G.map(function(B){return SQN(H,H.mappings.get(B.toString()),B)})}).thenCatch(function(B){for(var t=_.I(H.errorCallbacks),D=t.next();!D.done;D=t.next())D=D.value,D(B);
throw B;}),function(){clearTimeout(q)})};
UM.prototype.registerService=function(G,H){this.mappings.set(G.toString(),{type:"mapping",value:H});return G};
var SQN=function(G,H,Z){switch(H.type){case "mapping":return H.value;case "factory":return H=H.value(),G.mappings.set(Z.toString(),{type:"mapping",value:H}),H;default:return _.Lw(H)}};
UM.prototype.onLoadError=function(G){var H=this;this.errorCallbacks.add(G);return function(){H.errorCallbacks.delete(G)}};
_.Ri=new UM;var u2d=function(){};
_.g=u2d.prototype;
_.g.JSC$14170_getRequest=function(G,H,Z){H=H===void 0?{}:H;Z=Z===void 0?dma:Z;var Q=H;if(this.isNavigationCommand()){var p,l=(p=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?void 0:p.url;Q=_.DyM(G.clickTrackingParams,!0,!1,l,this.JSC$14170_getClientScreen(Q))}else Q=_.DyM(G.clickTrackingParams,!1,this.includeCsn);Q={context:Q};if(p=this.getExtension(G))return this.JSC$14170_buildRequest(Q,p,H),p=this.getApiUrl(G),l=Object.assign({},{command:G},this.getRequestConfig(G,H)),Q={input:p,requestShell:rj(p),
innerTubeRequest:Q,config:l},Q.config.authStrategy?Q.config.authStrategy.identity=Z:Q.config.authStrategy={identity:Z},(G=this.JSC$14170_getRequestKey(G,H))&&!Q.config.requestKey&&(Q.config.requestKey=G),Q;G=new _.C$("Error: Failed to create Request from Command.",G);_.me(G)};
_.g.getApiUrl=function(G){var H=_.U7(this.getApiPaths(G)),Z;(G=(Z=_.X(G.commandMetadata,_.HA))==null?void 0:Z.apiUrl)&&(H=G);return ySb(aRv(H))};
_.g.isNavigationCommand=function(){return!1};
_.g.JSC$14170_getClientScreen=function(){};
_.g.JSC$14170_getRequestKey=function(){};
_.g.getRequestConfig=function(){};
_.u4.Object.defineProperties(u2d.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var NZ=function(){};
_.T(NZ,u2d);NZ.prototype.JSC$14177_getStoreKey=function(){};
NZ.prototype.JSC$14170_getRequestKey=function(G,H){H=H===void 0?{}:H;return this.JSC$14177_getStoreKey(G,H)};var Af=function(){};
_.T(Af,NZ);Af.prototype.JSC$14170_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:rj("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Af.prototype.getApiPaths=function(){return[]};
Af.prototype.getExtension=function(){};
Af.prototype.JSC$14170_buildRequest=function(){};var BFw={},JX2=(BFw.GET_DATASYNC_IDS=Wh(Af),BFw);var tRx,kN4,Dwp,Xja,xg,VR4,dww,ne2,eCp;tRx="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");kN4=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Ph=function(G,H,Z,Q,p,l,q,u,B){this.endpointMap=G;this.networkManager=H;this.authService=Z;this.responseProcessorMap=Q;this.innertubeResponseStore=p;this.contextProcessors=l;this.asyncContextProcessors=q;this.localInnertubeRouter=u;this.requestSequencer=B;this.inflightRequests=new Map;G.signalEndpointMap||(G.signalEndpointMap={});G.signalEndpointMap=Object.assign({},JX2,G.signalEndpointMap)};
Dwp=function(G,H,Z,Q,p,l,q,u,B){if(_.Ph.instance!==void 0){if(Q=_.Ph.instance,G=[G!==Q.endpointMap,H!==Q.networkManager,Z!==Q.authService,p!==Q.innertubeResponseStore,l!==Q.contextProcessors,q!==Q.asyncContextProcessors,u!==Q.localInnertubeRouter],G.some(function(t){return t}))throw new _.C$("InnerTubeTransportService is already initialized",G);
}else _.Ph.instance=new _.Ph(G,H,Z,Q,p,l,q,u,B)};
_.wb=function(G,H,Z){var Q=Q===void 0?dma:Q;var p=dww(G,H);return p?new _.T_(function(l,q){var u,B,t,D,d;return _.S(function(e){switch(e.nextAddress){case 1:return e.yield(p,2);case 2:u=e.yieldResult;B=u.JSC$14170_getRequest(H,Z,Q);if(!B){q(new _.C$("Error: Failed to build request for command.",H));e.jumpTo(0);break}W$(B.input);D=((t=B.requestShell)==null?void 0:t.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){d=eCp(B.config,D);e.jumpTo(4);break}return e.yield(ne2(B.config,D),5);case 5:d=
e.yieldResult;case 4:l(VR4(G,B,d)),_.K0(e)}})}):_.DJ(new _.C$("Error: No request builder found for command.",H))};
Xja=function(G,H,Z,Q){var p=p===void 0?dma:p;var l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L;return _.S(function(H3){switch(H3.nextAddress){case 1:l=SBR(H,G.endpointMap);if(!l)throw new _.C$("Error: No streaming request builder found for command",H);q=l.JSC$14170_getRequest(H,Z,p);if(!q)throw new _.C$("Failed to build YtRequest for streaming Command",H);if((u=G.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(q.input,q.innerTubeRequest)){H3.jumpTo(2);break}return H3.yield(G.localInnertubeRouter.localInnertubeResponse(q.input,
q.innerTubeRequest),3);case 3:return B=H3.yieldResult,t={},B.playerResponse&&(xg(G,B.playerResponse,q),t.player=B.playerResponse,(D=Q)==null||D(t,B)),B.watchNextResponse&&(xg(G,B.watchNextResponse,q),t.content=B.watchNextResponse,(d=Q)==null||d(t,B)),H3.return(t);case 2:n=((e=q.requestShell)==null?void 0:e.mode)==="cors"?"cors":void 0;if(G.authService.syncHeaders){c=eCp(q.config,n);H3.jumpTo(4);break}return H3.yield(ne2(q.config,n),5);case 5:c=H3.yieldResult;case 4:return r=(M=(W=q.requestShell)==
null?void 0:W.headers)!=null?M:{},q.requestShell=Object.assign({},q.requestShell,{headers:Object.assign({},r,c)}),w=Object.assign({},q.requestShell),x=JSON.stringify(q.innerTubeRequest),q.requestShell.method==="POST"&&(w=Object.assign({},w,{body:x})),U=function(qX,B3){xg(G,B3.playerResponse||B3.watchNextResponse||B3.reelItemWatchResponse||B3.reelWatchSequenceResponse,q);Q==null||Q(qX,B3)},R={},H3.yield($w4(G.networkManager,q.input,w,U),6);
case 6:return R=H3.yieldResult,((L=q.config)==null?0:L.responseTick)&&_.$K(q.config.responseTick),H3.return(R)}})};
_.GP=function(G,H,Z,Q,p){p=p===void 0?{authStrategy:{identity:dma}}:p;var l=l===void 0?!0:l;var q=function(){};
q=bsW(YLf(Z));H.context||(H.context=_.DyM(Q,l));return new _.T_(function(u){var B,t,D,d,e;return _.S(function(n){if(n.nextAddress==1)return B=aRv(Z),t=_.Pf(B),G.authService.syncHeaders?(D=eCp(p,t),n.jumpTo(2)):n.yield(ne2(p,t),3);n.nextAddress!=2&&(D=n.yieldResult);d=ySb(aRv(Z));e={input:d,requestShell:rj(d),innerTubeRequest:H,config:p};u(VR4(G,e,D,q));_.K0(n)})})};
xg=function(G,H,Z){var Q;if(H&&!(H==null?0:(Q=H.sequenceMetaData)==null?0:Q.skipProcessing)&&G.responseProcessorMap){Q=_.I(tRx);for(var p=Q.next();!p.done;p=Q.next())p=p.value,G.responseProcessorMap[p]&&G.responseProcessorMap[p].handleResponse(H,Z)}};
VR4=function(G,H,Z,Q){Q=Q===void 0?function(){}:Q;
var p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L,H3,qX,B3,fW,e2,$R,ie,W3,DT,UR,zx,be,J_,rG,Kw,cD,ec,gf,sR,ep,Qh;return _.S(function($w){switch($w.nextAddress){case 1:q=(p=H.config)==null?void 0:(l=p.storeStrategy)==null?void 0:l.storeKey;if(!(q&&G.innertubeResponseStore&&G.innertubeResponseStore.has(q))||((u=H.config)==null?0:(B=u.storeStrategy)==null?0:B.disableCache)){$w.jumpTo(2);break}return $w.yield(G.innertubeResponseStore.get(q),3);case 3:if((t=$w.yieldResult)&&!t.isExpired())return $w.return(Promise.resolve(_.mU(t)));
case 2:if(!((D=H)==null?0:(d=D.innerTubeRequest)==null?0:d.context)){$w.jumpTo(4);break}e=H.innerTubeRequest.context;if(!(G.asyncContextProcessors&&G.asyncContextProcessors.length>0)){$w.jumpTo(5);break}n=[];c=_.I(G.asyncContextProcessors);for(W=c.next();!W.done;W=c.next())M=W.value,r=M.processContext(H),r.wrappedPromise_&&n.push(r.wrappedPromise_);if(!(n.length>0)){$w.jumpTo(5);break}return $w.yield(Promise.all(n),5);case 5:w=_.I(G.contextProcessors||[]),x=w.next();case 8:if(x.done){$w.jumpTo(4);
break}U=x.value;return $w.yield(U.processContext(e),9);case 9:x=w.next();$w.jumpTo(8);break;case 4:if((R=G.localInnertubeRouter)==null||!R.shouldPreferLocalResponse(H.input,H.innerTubeRequest)){$w.jumpTo(12);break}return $w.yield(G.localInnertubeRouter.localInnertubeResponse(H.input,H.innerTubeRequest),13);case 13:return L=$w.yieldResult,xg(G,L,H),$w.return(L);case 12:return(B3=(qX=H.config)==null?void 0:qX.requestKey)&&G.inflightRequests.has(B3)?H3=G.inflightRequests.get(B3):(fW=JSON.stringify(H.innerTubeRequest),
ie=($R=(e2=H.requestShell)==null?void 0:e2.headers)!=null?$R:{},H.requestShell=Object.assign({},H.requestShell,{headers:Object.assign({},ie,Z)}),W3=Object.assign({},H.requestShell),H.requestShell.method==="POST"&&(W3=Object.assign({},W3,{body:fW})),((DT=H.config)==null?0:DT.requestTick)&&_.$K(H.config.requestTick),UR=function(){return G.networkManager.fetch(H.input,W3,H.config)},H3=G.requestSequencer?cXt(G.requestSequencer,H,UR):UR(),B3&&G.inflightRequests.set(B3,H3)),$w.yield(H3,14);
case 14:(zx=$w.yieldResult)&&_.V("web_streaming_player")&&Array.isArray(zx)&&(zx=zx[0].playerResponse);if(zx&&"error"in zx&&((be=zx)==null?0:(J_=be.error)==null?0:J_.details))for(rG=zx.error.details,Kw=_.I(rG),cD=Kw.next();!cD.done;cD=Kw.next())ec=cD.value,(gf=ec["@type"])&&kN4.indexOf(gf)>-1&&(delete ec["@type"],zx=ec);B3&&G.inflightRequests.has(B3)&&G.inflightRequests.delete(B3);((sR=H.config)==null?0:sR.responseTick)&&_.$K(H.config.responseTick);if(zx||(ep=G.localInnertubeRouter)==null||!ep.canProvideFallbackResponse(H.input,
H.innerTubeRequest)){$w.jumpTo(15);break}return $w.yield(G.localInnertubeRouter.localFallbackInnertubeResponse(H.input,H.innerTubeRequest),16);case 16:zx=$w.yieldResult;case 15:return xg(G,zx,H),((Qh=H.config)==null?0:Qh.processorTick)&&_.$K(H.config.processorTick),Q(),$w.return(zx||void 0)}})};
_.rb=function(G,H){return qBM(H,G.endpointMap)};
dww=function(G,H){G=u0W(H,G.endpointMap);if(G!==void 0)return Promise.resolve(G)};
ne2=function(G,H){var Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1){p=(Z=G)==null?void 0:(Q=Z.authStrategy)==null?void 0:Q.sessionIndex;var u=q.yield;var B=_.Yk(Ay3({sessionIndex:p}));return u.call(q,B,2)}l=q.yieldResult;return q.return(Promise.resolve(Object.assign({},BDf(H),l)))})};
eCp=function(G,H){var Z;G=G==null?void 0:(Z=G.authStrategy)==null?void 0:Z.sessionIndex;Z=Ay3({sessionIndex:G});return Object.assign({},BDf(H),Z)};var TFG,fex,ve7,W6w,zCR,K6a,PpT,rXt,Yg,wjN,hCa,j8w,CpN;TFG=0;fex=/tone[1-5]/;ve7=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");W6w="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
zCR=Number.MAX_SAFE_INTEGER;K6a=RegExp("\ufe0f","g");_.Li=function(G){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;G&&_.MRw(this,G)};
_.MRw=function(G,H){try{_.WU(H,{context:G,onSuccess:function(Q,p){Array.isArray(p)?G.load(p):(Q=new _.C$("Emoji manager JSON response was not an array!",{response:p}),_.me(Q))},
onError:function(Q){Q=new _.C$("Failed to retrieve emoji manager initial JSON data!",{url:H,statusCode:_.XP(Q).toString()});_.Rp(Q)}})}catch(Q){var Z=new _.C$("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:H});
_.Rp(Z)}};
_.Li.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Li.prototype.load=function(G,H){if(H)if(G.length)G=G.concat(H.emojis);else{this.emojis=H.emojis;this.emojiMap=H.emojiMap;this.emojiShortcutMap=H.emojiShortcutMap;this.emojiShortcutCharMap=j8w(H);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=H.emojiRegex;return}this.emojis=[].concat(_.OP(new Set(this.emojis.concat(G))));this.hasInitializedShortcutCharMap=!1;G=Array(this.emojis.length);for(H=0;H<this.emojis.length;H++){var Z=this.emojis[H];if(Z.emojiId){this.emojiMap[Z.emojiId]=Z;this.emojiMap[Z.emojiId].index=
H;for(var Q=0;Z.shortcuts&&Q<Z.shortcuts.length;Q++)this.emojiShortcutMap[Z.shortcuts[Q].toLocaleLowerCase()]=Z;G[H]=Z.isCustomEmoji&&Z.shortcuts?Z.shortcuts[0]:Z.emojiId}}G.sort(function(p,l){return l.length-p.length});
if(G.length)try{this.emojiRegex=new RegExp(G.join("|").replace("*","\\*"),"gi")}catch(p){this.emojiRegex=/$./}else this.emojiRegex=/$./};
PpT=function(G,H){H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){var Q=Z.value;if(Q.emojiId&&G.emojiMap[Q.emojiId]){Z=Object.assign({},G.emojiMap[Q.emojiId],Q);G.emojiMap[Q.emojiId]=Z;var p=void 0;Z.index&&((p=G.emojis[Z.index])==null?void 0:p.emojiId)===Q.emojiId&&(G.emojis[Z.index]=Z);Q=void 0;if((Q=Z.shortcuts)==null?0:Q.length)for(G.hasInitializedShortcutCharMap=!1,Q=_.I(Z.shortcuts),p=Q.next();!p.done;p=Q.next())G.emojiShortcutMap[p.value.toLocaleLowerCase()]=Z}}};
rXt=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.oI.getInstance(),2);if(Q.nextAddress!=3)return(H=Q.yieldResult)?Q.yield(H.get("ytlc-emoji-pref"),3):Q.return();(Z=Q.yieldResult)&&PpT(G,Object.keys(Z).map(function(p){return{emojiId:p,stickyPrefId:Z[p]}}).filter(function(p){return!!p.emojiId&&!!p.stickyPrefId}));
_.K0(Q)})};
_.EM=function(G,H,Z){return(G=G.emojiMap[H])&&(!G.isLocked||Z!==void 0&&Z)?G:void 0};
Yg=function(G,H,Z){Z=_.EM(G,H,Z===void 0?!1:Z);var Q=H.match("\u200d");Z&&G.skinTone!==0&&(G=(Q==null?void 0:Q.length)===1?_.EM(G,H.replace("\u200d",ve7[G.skinTone]+"\u200d")):_.EM(G,H+ve7[G.skinTone]))&&(Z=G);return Z};
wjN=function(G,H){var Z=G.emojiMap[H];return(Z==null?0:Z.stickyPrefId)?G.emojiMap[Z.stickyPrefId]:Yg(G,H)};
_.xX=function(G,H){G=G.emojiShortcutMap[H.toLocaleLowerCase()];return!G||G.isLocked?null:G};
hCa=function(G,H,Z){return j8w(G,Z===void 0?!1:Z)[H]||{}};
j8w=function(G,H){H=H===void 0?!1:H;if(!G.hasInitializedShortcutCharMap){G.hasInitializedShortcutCharMap=!0;for(var Z=0;Z<G.emojis.length;Z++){var Q=G.emojis[Z];if(!(Q.isLocked||H&&Q.isCustomEmoji&&Q.emojiId&&!G.pickerCustomEmojiIds.includes(Q.emojiId)))for(var p=0;Q.shortcuts&&p<Q.shortcuts.length;p++){var l=Q.shortcuts[p];l.startsWith(":_")&&Q.isCustomEmoji&&(G.emojiShortcutCharMap[":_"]==null&&(G.emojiShortcutCharMap[":_"]=Object.create(null)),G.emojiShortcutCharMap[":_"][l]=Q);if(!(l.length<3||
!Q.isCustomEmoji&&fex.test(l))){var q=l.substr(0,3).toLocaleLowerCase();G.emojiShortcutCharMap[q]==null&&(G.emojiShortcutCharMap[q]=Object.create(null));G.emojiShortcutCharMap[q][l]=Q}}}}return G.emojiShortcutCharMap};
_.Li.prototype.createEmoji=function(G,H){H=H===void 0?!0:H;var Z=document.createElement("img");G.isCustomEmoji||Z.classList.add("small-emoji");Z.classList.add("emoji");Z.classList.add("yt-formatted-string");Z.src=G.image?_.N$(G.image.thumbnails,this.emojiSize)||"":"";var Q=void 0;G.image&&G.image.accessibility&&G.image.accessibility.accessibilityData&&(Q=G.image.accessibility.accessibilityData.label);Z.alt=Q?Q:(G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId)||"";G.isCustomEmoji&&(Z.dataset.emojiId=
G.emojiId);_.Yj&&(Z.setAttribute("contenteditable","false"),Z.setAttribute("unselectable","on"));H&&(G.shortcuts&&G.shortcuts.length&&Z.setAttribute("shared-tooltip-text",G.shortcuts[0]),Z.id="emoji-"+TFG++);return Z};
_.Li.prototype.createDocumentFragment=function(G,H,Z,Q){H=H===void 0?!1:H;Z=Z===void 0?!0:Z;Q=Q===void 0?!1:Q;G=G.replace(K6a,"");for(var p=document.createDocumentFragment(),l=0,q,u=0;(q=this.emojiRegex.exec(G))!=null;){var B=_.EM(this,q[0])||_.xX(this,q[0]);!B||B.isCustomEmoji&&!H||(B=this.createEmoji(B,Z),l!==q.index&&p.appendChild(document.createTextNode(G.substring(l,q.index))),p.appendChild(B),l=q.index+q[0].length,u++)}if(!Q||u)return p.appendChild(document.createTextNode(G.substr(l))),p};
CpN=function(G,H,Z){var Q,p,l,q,u,B,t,D,d;return _.S(function(e){if(e.nextAddress==1){if(!H.emojiId||!G.emojiMap[H.emojiId])return e.return();Q=Object.assign({},G.emojiMap[H.emojiId],{stickyPrefId:Z});G.emojiMap[H.emojiId]=Q;H.index&&((p=G.emojis[H.index])==null?void 0:p.emojiId)===H.emojiId&&(G.emojis[H.index]=Q);if((l=H.shortcuts)==null?0:l.length)for(G.hasInitializedShortcutCharMap=!1,q=_.I(H.shortcuts),u=q.next();!u.done;u=q.next())B=u.value,G.emojiShortcutMap[B.toLocaleLowerCase()]=Q;return e.yield(_.oI.getInstance(),
2)}if(e.nextAddress!=4)return(t=e.yieldResult)?e.yield(t.get("ytlc-emoji-pref"),4):e.jumpTo(0);d=(D=e.yieldResult)!=null?D:{};d[H.emojiId]=Z;return e.yield(t.set("ytlc-emoji-pref",d,zCR),0)})};
_.FY=new _.Li;var aea;_.b1={};
aea={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.V("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.V("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new O7(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 G=_.F9(this.hostElement||this).querySelector("#inline-action-button-container");G&&G.setAttribute("aria-hidden","true");this.menuButton=_.F9(this.hostElement).querySelector("#menu-button")},
attached:function(){var G=this.menuButton;G&&(G.addEventListener("focusin",_.pH(this,this.onMenuButtonFocus_)),G.addEventListener("focusout",_.pH(this,this.onMenuButtonBlur_)))},
detached:function(){var G=this.menuButton;G&&(G.removeEventListener("focusin",_.pH(this,this.onMenuButtonFocus_)),G.removeEventListener("focusout",_.pH(this,this.onMenuButtonBlur_)))},
identity:_.CW,truthy:function(G){return!!G},
computeTimestampString:function(G){return G?G.timestampText?this.getSimpleString(G.timestampText):this.TIME_FORMATTER.format(new Date(G.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(G){return G},
computeMenuVisible_:function(G,H){return G||H},
computeHasInlineActionButtons:function(G){if(!G)return!1;var H,Z;return!((H=G.inlineActionButtons)==null||!H.length)||!((Z=G.additionalInlineActionButtons)==null||!Z.length)},
createDocumentFragmentFromString:function(G){var H=_.FY.createDocumentFragment.bind(_.FY),Z;if((Z=this.participantsManager)==null||!Z.viewerRegex)return H(G);Z=document.createDocumentFragment();for(var Q=0,p;(p=this.participantsManager.viewerRegex.exec(G))!=null;){if(p.index>0){var l=":"+p[0]+":";if((_.EM(_.FY,l)||_.xX(_.FY,l))&&G.indexOf(l)===p.index-1)continue}Z.appendChild(H(G.substring(Q,p.index)));Q=document.createElement("span");Q.appendChild(H(p[0]));Q.classList.add("mention");Z.appendChild(Q);
Q=p.index+p[0].length}Z.appendChild(H(G.substring(Q)));return Z},
createDocumentFragment:function(G){var H=document.createDocumentFragment();if(G.simpleText)return H.appendChild(this.createDocumentFragmentFromString(G.simpleText)),H;if(!G.runs)return H;for(var Z=0;Z<G.runs.length;Z++){var Q=G.runs[Z];if(Q.emoji)H.appendChild(_.FY.createEmoji(Q.emoji));else if(Q.text)if(Q.navigationEndpoint){var p=document.createElement("a");p.classList.add("yt-simple-endpoint");uuo(p,Q.navigationEndpoint);_.F9(p).appendChild(this.createDocumentFragmentFromString(Q.text));H.appendChild(p)}else H.appendChild(this.createDocumentFragmentFromString(Q.text))}return H},
hasModerationOverlayVisible:function(){var G;return((G=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:G.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(G){G.composedPath().some(function(H){return(H=H instanceof Element?H:null)?H.tagName&&(H.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||H.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.V("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(G)},
colorFromDecimal:function(G){return Niv(G)},
markAsDeleted:function(G,H){this.set("data.deletedStateMessage",G);this.set("data.showOriginalContentMessage",H)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(G){if(this.data.contextMenuEndpoint){var H=_.tp().resolve(_.J0),Z=this.data.contextMenuEndpoint,Q;(Q=_.Ph.instance)&&_.rb(Q,Z)?(H=i7t(H,Z),Q=_.GP(Q,{},H)):Q=_.O7T(H,Z);Q.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);G&&G.stopPropagation()}},
handleGetContextMenuResponse_:function(G){var H=_.Ph.instance;H&&_.rb(H,{liveChatEndpoint:{}})||(G=G.response);G.liveChatItemContextMenuSupportedRenderers&&G.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(G.liveChatItemContextMenuSupportedRenderers.menuRenderer);G.actions&&_.AZ(this.hostElement,"yt-live-chat-actions",[G.actions])},
handleGetContextMenuError:function(G){if(G instanceof Error||G instanceof Object||G instanceof String)var H=G;_.me(new _.C$("Error encountered calling GetLiveChatItemContextMenu",H))},
showContextMenu_:function(G){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.N5(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.N5(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.b1.YtLiveChatItemBehavior=[aea,_.RT.YtComponentBehavior,_.e8.YtOpenPopupBehavior];_.GZ=function(){};var yXN;var oew;var mwG;var Uwx;var H5=function(){var G=_.C.apply(this,arguments)||this;G.active=!1;G.identity=_.CW;return G};
_.T(H5,_.C);H5.prototype.dataChanged=function(){this.active=!1};
H5.prototype.onClick=function(){_.N5(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
H5.prototype.dataChanged=H5.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],H5.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],H5.prototype,"active",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],H5.prototype,"dataChanged",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],H5);
_.m(H5,"yt-live-chat-text-input-field-suggestion",function(){if(Uwx===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;mwG===void 0&&(mwG=document.createElement("template"));var Q=mwG;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Uwx=G}G=Uwx;return G},{mode:0});_.sp=function(G,H,Z){return CustomEvent.call(this,G,{detail:{value:H,path:Z}})||this};
_.T(_.sp,CustomEvent);_.Zi=function(){var G=_.C.apply(this,arguments)||this;G.viewerName=null;G.actionMap={"yt-live-chat-actions":"onChatMessage_"};G.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];G.PARTICIPANT_TIME_USEC_=3E8;return G};
_.T(_.Zi,_.C);_.g=_.Zi.prototype;_.g.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.g.addParticipant=function(G){var H=_.Ce2(this.participants,G,function(Q,p){Q=Q[Object.keys(Q)[0]];p=p[Object.keys(p)[0]];Q=String(_.yn(Q.authorName)).toLowerCase();p=String(_.yn(p.authorName)).toLowerCase();return Q<p?-1:Q==p?0:1}.bind(this));
if(H>=0){var Z=this.participants[H];Z[Object.keys(Z)[0]].timestampUsec&&this.splice("participants",H,1,G)}else this.splice("participants",-H-1,0,G);G=G[Object.keys(G)[0]];H=_.yn(G.authorName).toLocaleLowerCase();Z=H.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(Z)||(this.allParticipantsCharMap_[Z]={});this.allParticipantsCharMap_[Z][H]=G};
_.g.getAuthorsFromPrefix=function(G){return this.allParticipantsCharMap_.hasOwnProperty(G)?this.allParticipantsCharMap_[G]:null};
_.g.computeViewerRegex_=function(G){if(!G)return null;G=G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var H=G.indexOf("@")===0&&_.V("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(H+G.replace(/ /g,"\\s*")+"|^"+G.replace(/ /g,"\\s*")+"$|^"+G.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+G.replace(/ /g,"\\s*")+"$|(?<=\\s)"+G.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.g.checkForStaleParticipants_=function(){var G=this;this.trimOldParticipants_();this.asyncHandle_&&VfM(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.PG(function(){G.checkForStaleParticipants_()},3E4))};
_.g.onChatMessage_=function(G){var H=this,Z=Date.now()*1E3;G.forEach(function(Q){if(Q=_.X(Q,WXa)){Q=Q.item;var p=Object.keys(Q)[0];H.SUPPORTED_ITEM_TYPES_.indexOf(p)!=-1&&Q[p].timestampUsec>=Z-H.PARTICIPANT_TIME_USEC_&&H.addParticipant(Q)}},this);
this.checkForStaleParticipants_()};
_.g.trimOldParticipants_=function(){for(var G=Date.now()*1E3,H=this.participants.length-1;H>=0;H--){var Z=this.participants[H];Z=Z[Object.keys(Z)[0]];Z.timestampUsec&&Z.timestampUsec<G-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",H,1)}};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],_.Zi.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],_.Zi.prototype,"viewerName",void 0);_.N([_.h({computed:"computeViewerRegex_(viewerName)"}),_.A("design:type",Object)],_.Zi.prototype,"viewerRegex",void 0);_.N([_.h({value:function(){return[]},
notify:!0}),_.A("design:type",Array)],_.Zi.prototype,"participants",void 0);_.N([_.fH({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Zi);var RCp=/.*([:@#].*?)$/,Q7=/\u00a0/g,NFp=String.fromCharCode(160),AXa={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"},pr=function(){var G=_.C.apply(this,arguments)||this;G.disabled=!1;G.liveChatRichMessageInput=null;G.messageInput=null;G.isValidWithNoInputText=!1;G.suggestions=[];G.emojiManager=_.FY;G.inputMethodEditorActive=
!1;G.suggestionIndex=-1;G.JSC$14228_lastSuggestionRange=null;return G};
_.T(pr,_.C);_.g=pr.prototype;_.g.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.g.attached=function(){_.FW&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.g.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.g.dataChanged=function(){if(!this.ignoreColorMapping){var G=!1,H={},Z;for(Z in AXa)this.data&&this.data.hasOwnProperty(Z)&&(H[AXa[Z]]=this.colorFromDecimal(this.data[Z]),G=!0);G&&_.ZI(this.hostElement,H)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.g.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.g.colorFromDecimal=function(G){G=Math.floor(Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
_.g.preventDrag=function(G){G.dataTransfer&&(G.dataTransfer.dropEffect="none");G.preventDefault()};
_.g.preventResize=function(G){G.returnValue=!1};
_.g.onInputChange=function(){var G=this.characterCount,H=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&H&&H.remove();if(!H&&this.characterCount>this.maxCharacterLimit){var Z=window.getSelection();if(Z){var Q=Z.getRangeAt(0);Z.removeAllRanges();Z.addRange(Q)}}if(Z=this.getCurrentRange())Q=this.calculateTextBeforeRange(Z),this.completeEmojisInRange(Z,Q,!0)||this.updateSuggestions(Z,Q);Q=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Q);
_.N5(this.hostElement,"yt-live-chat-message-input-change",Q);H&&this.characterCount===0&&H.remove();Z&&Z.commonAncestorContainer.parentElement.id==="input"&&Z.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>G):Z&&!Z.collapsed&&Z.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(G=this.input.childNodes.length-1;G>=0;G--)this.input.childNodes[G].nodeName==="BR"&&this.input.childNodes[G].remove()};
_.g.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.g.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var G=this.getCurrentRange();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.g.mergeOverflowText=function(G){if(G){var H=document.createRange();H.selectNodeContents(G);H=H.extractContents();this.input.insertBefore(H,G)}};
_.g.checkRangeAtEndOfInput=function(){var G=this.getCurrentRange();if(G){var H=_.F9(this.hostElement).querySelector("#overflow-text"),Z=document.createRange();H&&H.previousSibling?H.previousSibling instanceof HTMLImageElement?Z.selectNode(H.previousSibling):Z.selectNodeContents(H.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?Z.selectNode(this.input.lastChild):Z.selectNodeContents(this.input.lastChild));Z.collapse(!1);return Z.isPointInRange(G.startContainer,
G.startOffset)}return!1};
_.g.handleOverflowText=function(G){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var H=_.F9(this.hostElement).querySelector("#overflow-text"),Z=this.getCurrentRange();this.input.normalize();G=this.checkRangeAtEndOfInput()&&G;this.mergeOverflowText(H);for(var Q,p=0,l=0,q,u=this.input.childNodes,B=0;B<u.length;B++){var t=u[B];t instanceof Text?(l+=t.textContent.length,l>this.maxCharacterLimit&&(Q=t,p=this.maxCharacterLimit+t.textContent.length-l)):t instanceof HTMLImageElement&&
(Q=void 0,l=t.dataset.emojiId&&((Q=this.data)==null?0:Q.emojiCharacterCount)?l+this.data.emojiCharacterCount:l+t.alt.length,Q=this.input,p=B);if(l>this.maxCharacterLimit&&Q){q=document.createRange();q.collapse(!1);H?(l=this.input.lastChild.previousSibling,l instanceof Text?q.setEnd(this.input.lastChild.previousSibling,l.textContent.length):l instanceof HTMLImageElement&&q.setEnd(this.input,this.input.childNodes.length-1)):q.selectNodeContents(this.input);q.setStart(Q,p);break}}q&&(Q=!1,Z&&(G=q.isPointInRange(Z.startContainer,
Z.startOffset-1)),H||(H=document.createElement("span"),H.id="overflow-text",H.textContent="",H.setAttribute("contenteditable","true"),_.F9(_.F9(this.hostElement).querySelector("#input")).appendChild(H),Q=!0),H&&(Z=q.extractContents(),H.insertBefore(Z,H.firstChild),G&&H.firstChild&&(Z=document.createRange(),Q?Z.setStartAfter(H.lastChild):Z.setStartAfter(H.firstChild),Z.collapse(!0),H=window.getSelection(),H.removeAllRanges(),H.addRange(Z))))}};
_.g.checkForDuplicateSpans=function(){for(var G=0;G<this.input.childNodes.length;G++){var H=this.input.childNodes[G];if(H.nodeName==="SPAN"){var Z=document.createRange();Z.selectNodeContents(H);Z=Z.extractContents();this.input.insertBefore(Z,H);H.remove()}}this.handleOverflowText(!0)};
_.g.getCurrentRange=function(){var G=window.getSelection();return G&&G.rangeCount?G.getRangeAt(0).cloneRange():null};
_.g.getInputRange=function(){var G=this.getCurrentRange();if(G){for(var H=G.commonAncestorContainer,Z=!1,Q=_.F9(this.hostElement).querySelector("#input");H;){if(H===Q){Z=!0;break}H=H.parentNode}Z||(G=null)}G||(G=this.getRangeAtEnd());return G};
_.g.getRangeAtEnd=function(){var G=document.createRange(),H=_.F9(this.hostElement).querySelector("#input").lastChild;!H||H.nodeName!=="#text"&&H.nodeName!=="SPAN"?(G.selectNodeContents(_.F9(this.hostElement).querySelector("#input")),G.collapse(!1)):H.nodeName==="#text"?G.setStart(H,H.textContent.length):G.setStart(H,H.childNodes.length);return G};
_.g.getChatParticipantSuggestions=function(G,H,Z,Q){var p=_.V("live_chat_enable_handles_web_text_input_update");if(H)for(var l in H)if(l.indexOf(G)===0||p&&l.indexOf(Z+G)===0){var q=H[l],u=_.yn(q.authorName);Q.push({suggestion:{author:!0,authorType:Z,image:q.authorPhoto,alt:u,text:u}});if(Q.length>=64)break}};
_.g.getSuggestions=function(G){var H=[],Z=G.substring(0,3),Q=hCa(_.FY,Z,!0);if(Q)for(var p in Q)if(p.toLocaleLowerCase().indexOf(G)===0){var l=Q[p];if(l&&l.emojiId){if(l=wjN(_.FY,l.emojiId)){var q=void 0,u=void 0,B=void 0,t=void 0,D=((q=l.image)==null?0:(u=q.accessibility)==null?0:(B=u.accessibilityData)==null?0:B.label)||l.isCustomEmoji?(t=l.shortcuts)==null?void 0:t[0]:l.emojiId;H.push({suggestion:{emoji:!0,image:l.image,alt:D,text:p,textToInsertWhenSelected:l.isCustomEmoji?p:D}})}if(H.length>=
64)break}}if(!this.participantsManager)return null;if(Z.indexOf("@")===0||Z.indexOf("#")===0)Q=Z.charAt(0),G=G.substring(1),p=_.V("live_chat_enable_handles_web_text_input_update"),Z.indexOf("@")===0&&p&&(p=this.participantsManager.getAuthorsFromPrefix(Z.substring(0,2)),this.getChatParticipantSuggestions(G,p,Q,H)),Z=Z.substring(1),Z=this.participantsManager.getAuthorsFromPrefix(Z),this.getChatParticipantSuggestions(G,Z,Q,H);return H?H.sort(function(d,e){return e.suggestion.text<d.suggestion.text?-1:
e.suggestion.text===d.suggestion.text?0:1}):null};
_.g.insertSuggestion=function(G){var H=_.V("live_chat_enable_handles_web_text_input_update"),Z=G.authorType;H=G.text.indexOf(Z)===0&&H?G.text+NFp:Z+G.text+NFp;G.emoji?this.insertTextAtRange(this.JSC$14228_lastSuggestionRange,G.textToInsertWhenSelected||""):G.author&&this.insertTextAtRange(this.JSC$14228_lastSuggestionRange,H)};
_.g.updateSuggestionsAtCaret=function(){var G=this.getCurrentRange();G&&this.updateSuggestions(G,this.calculateTextBeforeRange(G))};
_.g.offsetStartOfRangeBy=function(G,H){for(;H>0;)if(G.startOffset-H>=0){G.setStart(G.startContainer,G.startOffset-H);break}else{H=G.startContainer instanceof HTMLImageElement?H-G.startContainer.alt.length:H-G.startOffset;var Z=G.startContainer.previousSibling;if(!Z){G.setStart(G.startContainer,0);break}if(_.V("live_chat_require_space_for_autocomplete_emoji")){var Q=void 0,p=void 0;G.setStart(Z,((Q=Z)==null?void 0:(p=Q.textContent)==null?void 0:p.length)||0)}else G.setStart(Z,Z.childNodes.length||
0)}};
_.g.updateSuggestions=function(G,H){var Z=this;this.JSC$14228_lastSuggestionRange&&(this.JSC$14228_lastSuggestionRange.detach(),this.JSC$14228_lastSuggestionRange=null);if((H=RCp.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2&&(this.offsetStartOfRangeBy(G,H.length),this.JSC$14228_lastSuggestionRange=G,(G=this.getSuggestions(H))&&G.length))){this.suggestions=G;_.q2(this,function(){_.F9(Z.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(G.length-1);return}this.dropdown.opened=!1};
_.g.completeEmojisInRange=function(G,H,Z){var Q=H.replace(/[\s\xa0]+$/,"");H=H.length-Q.length;Q=Q.split(" ");Q=Q[Q.length-1].trim().toLocaleLowerCase();var p=Q.lastIndexOf(":");if(Z&&!H&&p!==Q.length-1)return!1;p!==-1&&(Z=Q.lastIndexOf(":",p-1),Z!==-1&&(Q=Q.substring(Z)));if((Z=_.xX(_.FY,Q))&&Z.emojiId){Z=wjN(_.FY,Z.emojiId)||null;this.offsetStartOfRangeBy(G,Q.length+H);var l,q,u,B;Q=(((l=Z)==null?0:l.isCustomEmoji)?(q=Z)==null?void 0:(u=q.shortcuts)==null?void 0:u[0]:(B=Z)==null?void 0:B.emojiId)||
"";H&&(Q+=NFp);this.insertTextAtRange(G,Q);this.dropdown.opened=!1;return!0}return!1};
_.g.onSuggestion=function(G){this.insertSuggestion(G.detail);this.dropdown.opened=!1};
_.g.onKeyPress=function(G){G.keyCode===13&&(G.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.N5(this.hostElement,"yt-live-chat-send-message"))};
_.g.completeEmojis=function(){var G=document.createRange(),H=_.F9(this.hostElement).querySelector("#input").lastChild;H?G.setStart(H,H.childNodes.length):(G.selectNodeContents(_.F9(this.hostElement).querySelector("#input")),G.collapse(!1));this.completeEmojisInRange(G,this.calculateTextBeforeRange(G),_.V("live_chat_require_space_for_autocomplete_emoji"))};
_.g.maybePreventTextFormatting=function(G){!_.sy||!G.ctrlKey&&!G.metaKey||G.keyCode!==66&&G.keyCode!==73||(G.stopImmediatePropagation(),G.preventDefault())};
_.g.onKeyDown=function(G){this.maybePreventTextFormatting(G);if(this.dropdown.opened)switch(G.keyCode){case 27:this.dropdown.opened=!1;G.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;G.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);G.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),G.preventDefault()}};
_.g.onKeyUp=function(G){switch(G.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Yj)this.onInputChange()};
_.g.changeSuggestionIndex=function(G){if(this.dropdown.opened){var H=_.F9(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<H.children.length&&(H.children[this.suggestionIndex].active=!1);var Z=this.suggestions.length;this.suggestionIndex=(G+Z)%Z;G=H.children[this.suggestionIndex];G.active=!0;H.scrollTop=G.offsetTop}};
_.g.onInputPaste=function(G){G.preventDefault();(G=G.clipboardData)&&G.types&&(G=G.getData("text/plain")||"",G=G.replace(/\n/g,""),this.insertText(G));(G=this.getCurrentRange())&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.g.onFocus=function(){this._setFocused(!0)};
_.g.onBlur=function(){this._setFocused(!1)};
_.g.insertText=function(G){this.insertTextAtRange(this.getInputRange(),G)};
_.g.insertTextAtRange=function(G,H){if(G&&(G.collapsed||G.deleteContents(),H=_.FY.createDocumentFragment(H,!0,!1))){for(var Z=_.I((H==null?void 0:H.childNodes)||[]),Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var p=void 0,l=void 0,q=void 0,u=void 0,B=void 0;(q=(p=window)==null?void 0:(l=p.ShadyCSS)==null?void 0:l.ScopingShim)==null||(B=(u=q).scopeNode)==null||B.call(u,Q,this.hostElement.localName)}Z=H.lastChild;G.insertNode(H);this.focused||this.input.focus();if(this.focused){G=G.cloneRange();G.selectNodeContents(Z);
G.collapse(!1);if(H=window.getSelection())H.removeAllRanges(),H.addRange(G);G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}G=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(G);_.N5(this.hostElement,"yt-live-chat-message-input-change",G)}};
_.g.setLiveChatRichMessageInput=function(G){_.F9(_.F9(this.hostElement).querySelector("#input")).textContent="";if(G&&G.textSegments){for(var H=0;H<G.textSegments.length;H++){var Z=G.textSegments[H];Z.text?_.F9(_.F9(this.hostElement).querySelector("#input")).appendChild(_.FY.createDocumentFragment(Z.text,!0,!1)):Z.emojiId&&(Z=_.EM(_.FY,Z.emojiId))&&_.F9(_.F9(this.hostElement).querySelector("#input")).appendChild(_.FY.createEmoji(Z,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.g.setText=function(G){this.setLiveChatRichMessageInput(G?{textSegments:[{text:G}]}:null)};
_.g.calculateTextBeforeRange=function(G){var H="",Z=G.startContainer;if(Z&&Z instanceof Text){var Q;H=((Q=Z.textContent)==null?void 0:Q.substring(0,G.startOffset))||"";Z=Z.previousSibling}for(;Z&&Z instanceof Text;)H=Z.textContent+H,Z=Z.previousSibling;return H.replace(Q7," ")};
_.g.calculateLiveChatRichMessageInput=function(){for(var G=[],H="",Z=_.F9(_.F9(this.hostElement).querySelector("#input")).childNodes,Q=0;Q<Z.length;Q++){var p=Z[Q];p instanceof Text?H+=p.textContent:p instanceof HTMLImageElement&&(p.dataset.emojiId?(H&&(G.push({text:H.replace(Q7," ")}),H=""),G.push({emojiId:p.dataset.emojiId})):H+=p.alt)}H&&G.push({text:H.replace(Q7," ")});if(Z=_.F9(this.hostElement).querySelector("#overflow-text")){H="";Z=Z.childNodes;for(Q=0;Q<Z.length;Q++)p=Z[Q],p instanceof Text?
H+=p.textContent:p instanceof HTMLImageElement&&(p.dataset.emojiId?(H&&(G.push({text:H.replace(Q7," ")}),H=""),G.push({emojiId:p.dataset.emojiId})):H+=p.alt);H&&G.push({text:H.replace(Q7," ")})}return{textSegments:G}};
_.g.computeCharacterCount=function(G){if(!G||!G.textSegments)return 0;for(var H=0,Z=0;Z<G.textSegments.length;Z++){var Q=G.textSegments[Z];if(Q.text)H+=Q.text.length;else if(Q.emojiId){var p=void 0;if((p=this.data)==null?0:p.emojiCharacterCount)H+=this.data.emojiCharacterCount;else{var l=p=void 0,q=void 0;H+=((l=_.EM(_.FY,(p=Q)==null?void 0:p.emojiId))==null?void 0:(q=l.shortcuts)==null?void 0:q[0].length)||0}}}return H};
_.g.characterCountChanged=function(){_.N5(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.g.focusedChanged=function(){this.hostElement.dispatchEvent(new _.sp("focused-changed",this.focused))};
_.g.focus=function(){this.setFocus(!1)};
_.g.focusAtEnd=function(){this.setFocus(!0)};
_.g.setFocus=function(G){G=G?this.getRangeAtEnd():this.getInputRange();_.F9(this.hostElement).querySelector("#input").focus();var H=window.getSelection();H&&(H.removeAllRanges(),H.addRange(G))};
_.g.insertEmoji=function(G){var H,Z=((G==null?0:G.isCustomEmoji)?(H=G.shortcuts)==null?void 0:H[0]:G==null?void 0:G.emojiId)||"";this.insertText(Z)};
_.g.computeText=function(G){if(!G||!G.textSegments)return"";for(var H="",Z=0;Z<G.textSegments.length;Z++){var Q=G.textSegments[Z];if(Q.text)H+=Q.text;else if(Q.emojiId){var p=void 0,l=void 0,q=void 0;H+=((l=_.EM(_.FY,(p=Q)==null?void 0:p.emojiId))==null?void 0:(q=l.shortcuts)==null?void 0:q[0])||""}}return H};
_.g.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.u4.Object.defineProperties(pr.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
pr.prototype.focusedChanged=pr.prototype.focusedChanged;pr.prototype.characterCountChanged=pr.prototype.characterCountChanged;pr.prototype.onSuggestion=pr.prototype.onSuggestion;pr.prototype.onMessageSet=pr.prototype.onMessageSet;pr.prototype.dataChanged=pr.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],pr.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],pr.prototype,"disabled",void 0);_.N([_.z("disabled"),_.A("design:type",Number),_.A("design:paramtypes",[])],pr.prototype,"inputTabIndex",null);_.N([_.z("data.maxCharacterLimit"),_.h({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],pr.prototype,"maxCharacterLimit",null);
_.N([_.z("liveChatRichMessageInput"),_.h({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],pr.prototype,"characterCount",null);_.N([_.z("maxCharacterLimit, characterCount"),_.h({readOnly:!0,notify:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],pr.prototype,"remainingCharacterCount",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],pr.prototype,"isChatMessageInput",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],pr.prototype,"inputExpanded",void 0);_.N([_.h({readOnly:!0,notify:!0}),_.A("design:type",Object)],pr.prototype,"liveChatRichMessageInput",void 0);_.N([_.h(),_.A("design:type",Object)],pr.prototype,"messageInput",void 0);_.N([_.h(),_.A("design:type",Boolean)],pr.prototype,"ignoreColorMapping",void 0);_.N([_.z("characterCount"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],pr.prototype,"hasText",null);
_.N([_.h(),_.A("design:type",Object)],pr.prototype,"isValidWithNoInputText",void 0);_.N([_.z("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.h(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],pr.prototype,"isInputValid",null);_.N([_.h({readOnly:!0,value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],pr.prototype,"focused",void 0);_.N([_.h(),_.A("design:type",Array)],pr.prototype,"suggestions",void 0);
_.N([_.h(),_.A("design:type",_.Li)],pr.prototype,"emojiManager",void 0);_.N([_.h(),_.A("design:type",_.Zi)],pr.prototype,"participantsManager",void 0);_.N([_.h(),_.A("design:type",Boolean)],pr.prototype,"noUnderline",void 0);_.N([_.h(),_.A("design:type",Object)],pr.prototype,"inputMethodEditorActive",void 0);_.N([_.q6("#dropdown"),_.A("design:type",Object)],pr.prototype,"dropdown",void 0);_.N([_.q6("#input"),_.A("design:type",HTMLElement)],pr.prototype,"input",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pr.prototype,"dataChanged",null);_.N([_.gx("messageInput"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pr.prototype,"onMessageSet",null);_.N([_.lq("yt-live-chat-select-suggestion"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],pr.prototype,"onSuggestion",null);
_.N([_.gx("characterCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pr.prototype,"characterCountChanged",null);_.N([_.gx("focused"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pr.prototype,"focusedChanged",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],pr);
_.xww=_.m(pr,"yt-live-chat-text-input-field-renderer",function(){if(oew===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;yXN===void 0&&(yXN=document.createElement("template"));var Q=yXN;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);oew=G}G=oew;return G},{mode:0});var lz=function(){var G=_.C.apply(this,arguments)||this;G.buttonOverrides={style:"overlay",type:"filled"};G.allowAnimations=!1;G.modern=_.V("web_button_rework_with_live");G.noPadding=!1;return G};
_.T(lz,_.C);_.g=lz.prototype;_.g.shouldSupportInlineActionButtons=function(){return!0};
_.g.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"}}}}};
_.g.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.g.attached=function(){this.allowAnimations=!1};
_.g.dataChanged=function(){if(this.data){var G={"--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)};_.ZI(this.hostElement,G);this.allowAnimations=!0}};
_.g.messageChanged=function(){var G,H=(G=this.data)==null?void 0:G.message;G=_.F9(_.F9(this.hostElement).querySelector("#message"));G.textContent="";H&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.g.computeShowOnlyHeader=function(G,H){return!G||G.pdgLikeButton||G.replyButton||G.buyFlowButton?!1:this.isEmpty(G,H)&&!G.footer};
_.g.computeShowFooterDivider=function(G,H,Z){return G?!!G.footer&&!this.isEmpty(G,H)&&!Z:!1};
_.g.computeIsUserEditable=function(G){return!!G.inputField};
_.g.computeHasHeartButton=function(G){return(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(G==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.g.computeNoveltyImage=function(G){if(G.headerOverlayImage&&G.headerOverlayImage.thumbnails.length){var H=G.headerOverlayImage.thumbnails[0],Z,Q;if((Z=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Q=Z.loggingDirectives)==null?0:Q.trackingParams){var p,l;Dw2((p=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(l=p.loggingDirectives)==null?void 0:l.trackingParams)}return H.width||0}return 0};
_.g.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.g.inputFocus=function(){var G=_.F9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");G&&G.focus()};
_.g.inputInsertEmoji=function(G){var H=_.F9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");H&&H.insertEmoji(G)};
_.g.inputMessage=function(){var G=_.F9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),H;return G&&((H=this.data)==null?0:H.inputField)?(G.completeEmojis(),_.KI(G.liveChatRichMessageInput)):null};
_.g.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.g.isEmpty=function(G,H){return G?G.empty||!(G.message||G.inputField||H):!0};
_.g.onLowerBuyButtonClick=function(){var G,H=_.X((G=this.data)==null?void 0:G.buyButton,_.Yl);H&&H.trackingParams&&!xxf(H.command)&&(G=_.BT(H.trackingParams))&&(H=_.$k())&&_.Co(H,G)};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.u4.Object.defineProperties(lz.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
lz.prototype.isDeletedChanged=lz.prototype.isDeletedChanged;lz.prototype.messageChanged=lz.prototype.messageChanged;lz.prototype.dataChanged=lz.prototype.dataChanged;_.N([_.v(e5t.YtPdgLiveChatItemBehavior),_.A("design:type",Object)],lz.prototype,"ytPdgLiveChatItemBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],lz.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],lz.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lz.prototype,"data",void 0);_.N([_.h({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:tRo}),_.A("design:type",Object)],lz.prototype,"engagementState",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.A("design:type",Boolean)],lz.prototype,"isUserEditable",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.A("design:type",Boolean)],lz.prototype,"hasHeartButton",void 0);_.N([_.h({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.A("design:type",Boolean)],lz.prototype,"showOnlyHeader",void 0);
_.N([_.h({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.A("design:type",Boolean)],lz.prototype,"showFooterDivider",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],lz.prototype,"allowAnimations",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],lz.prototype,"dashboardMoneyFeed",void 0);_.N([_.h({computed:"computeNoveltyImage(data)"}),_.A("design:type",Number)],lz.prototype,"noveltyWidth",void 0);
_.N([_.h({computed:"computeAuthorPhotoSize(data)"}),_.A("design:type",Number)],lz.prototype,"authorPhotoSize",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lz.prototype,"modern",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lz.prototype,"noPadding",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lz.prototype,"dataChanged",null);
_.N([_.gx("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lz.prototype,"messageChanged",null);_.N([_.z("data","dashboardMoneyFeed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],lz.prototype,"hideLowerBumper",null);_.N([_.gx("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lz.prototype,"isDeletedChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],lz);
_.m(lz,"yt-live-chat-paid-message-renderer",function(){if(bP2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Fbx===void 0&&(Fbx=document.createElement("template"));var Q=Fbx;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);bP2=G}G=bP2;return G},{mode:0});var L6N;var Ee_;var gQ=function(){var G=_.uq.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.T(gQ,_.uq);gQ.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.xI("openPopupConfig")};
_.N([_.v(_.e8.YtOpenPopupBehavior),_.A("design:type",Object)],gQ.prototype,"ytOpenPopupBehavior",void 0);_.N([_.BG()],gQ);_.Ia=[_.e8.YtOpenPopupBehavior,gQ.prototype];var YQ4;var Kte=[_.gT,QBG,_.A$,_.I_,_.hZ,_.vxa,_.uS,_.J4G,_.Vb,rCv,_.Pz2];_.V("web_continuation_response_processing")&&Kte.push(_.vh);var zte=new _.Gv("RESPONSE_RECEIVED_COMMANDS"),zQv=new _.Gv("RESPONSE_RECEIVED_COMMANDS");var $GU="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Vh2=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],n2j=["GET_UNSEEN_NOTIFICATION_COUNT"];var qH=function(){var G=_.uq.apply(this,arguments)||this;G._noAccessors=!0;G.serviceEndpointHandlers=[];return G};
_.T(qH,_.uq);qH.prototype.created=function(){var G=this;this.endpointHandlerActionMap={"yt-service-request":function(H,Z,Q,p){var l;return eQf(G.hostElement,H,Z,Q,p,G.serviceEndpointHandlers,(l=G.onEntitiesUpdated)==null?void 0:l.bind(G))}}};
qH.prototype.attached=function(){_.p1(_.sS.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
qH.prototype.detached=function(){_.lu(_.sS.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.N([_.BG()],qH);_.F6a=[qH.prototype];var b77,GgN=function(){return b77!==void 0?b77:b77=document.createElement("template")};
document.head.appendChild(GgN().content);var HDa;var sD_=document.head,ZDN=sD_.appendChild,QD2;if(HDa===void 0){var p0x=document.createElement("template");_.f(p0x,"\x3c!--css-build:shady--\x3e");p0x.content.insertBefore(GgN().content.cloneNode(!0),p0x.content.firstChild);HDa=p0x}QD2=HDa;ZDN.call(sD_,QD2.content);var lhG,g24=function(){return lhG!==void 0?lhG:lhG=document.createElement("template")};
document.head.appendChild(g24().content);var Ih2;var qB_=document.head,SBw=qB_.appendChild,u0w;if(Ih2===void 0){var BD4=document.createElement("template");_.f(BD4,"\x3c!--css-build:shady--\x3e");BD4.content.insertBefore(g24().content.cloneNode(!0),BD4.content.firstChild);Ih2=BD4}u0w=Ih2;SBw.call(qB_,u0w.content);var JCa;_.eQ("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.eQ("sharingRendererButtons","buttonRenderer","ytd-button-renderer");JCa=_.V("web_button_rework")&&_.YI("BUTTON_REWORK")||_.V("web_button_rework_with_live");_.SE=function(){var G=_.C.apply(this,arguments)||this;G.isPressed=!1;G.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return G};
_.T(_.SE,_.C);_.g=_.SE.prototype;_.g.created=function(){this.showTooltips=!0};
_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.onHintIdChanged=function(){var G=this,H,Z,Q=(H=this.ytButtonBehavior.data)==null?void 0:(Z=H.hint)==null?void 0:Z.hintRenderer;if(Q&&Q.hintId){H=_.xk(this.hostElement,"yt-get-opened-popups-action");H=(H&&H.length===1?H[0]:[]).length>0;var p=null;Q.hintId!=="sponsor-pre-purchase"||H?Q.hintId.startsWith("sponsor-post-purchase")&&!H?p=ZSx("membership-manage"):Q.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!H&&(p=ZSx("membership-freebie-join")):p=ZSx("membership-join");p&&_.Ui.addLowPriorityJob(function(){for(var l=
_.I(p),q=l.next();!q.done;q=l.next())G.ytComponentBehavior.resolveCommand(q.value)})}};
_.g.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.g.onYtNavigate=function(G){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);H&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.g.onYtServiceRequestSent=function(G,H){this.handleServiceRequestActions(H);_.N5(this.hostElement,"yt-service-request-sent-button-renderer")};
_.g.onServiceRequestCompleted=function(G,H){this.handleServiceRequestActions(H);_.N5(this.hostElement,"yt-service-request-completed-button-renderer")};
_.g.updateButton=function(G){var H;if(G=(H=_.X(G,LrT))==null?void 0:H.updatedButton)this.ytButtonBehavior.data=_.X(G,_.Yl)};
_.g.handleUpdateButtonAction=function(G){var H=this.ytButtonBehavior.data;H.targetId&&G.updateButtonAction.targetId&&H.targetId===G.updateButtonAction.targetId&&this.updateButton(G)};
_.g.handleServiceRequestActions=function(G){if(G=G.actions)for(var H=0;H<G.length;H++)this.updateButton(G[H])};
_.u4.Object.defineProperties(_.SE,{template:{configurable:!0,enumerable:!0,get:function(){if(YQ4===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);YQ4=G}G=YQ4;return G}}});
_.SE.prototype.onServiceRequestCompleted=_.SE.prototype.onServiceRequestCompleted;_.SE.prototype.onYtServiceRequestSent=_.SE.prototype.onYtServiceRequestSent;_.SE.prototype.onYtNavigate=_.SE.prototype.onYtNavigate;_.SE.prototype.onPressedStateChanged=_.SE.prototype.onPressedStateChanged;_.SE.prototype.onHintIdChanged=_.SE.prototype.onHintIdChanged;_.N([_.h(),_.A("design:type",Object)],_.SE.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],_.SE.prototype,"isPressed",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],_.SE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.e67.YtButtonBehavior),_.A("design:type",Object)],_.SE.prototype,"ytButtonBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],_.SE.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],_.SE.prototype,"ytComponentBehavior",void 0);
_.N([_.v(Ki.YtRenderButtonBehavior),_.A("design:type",Object)],_.SE.prototype,"ytRenderButtonBehavior",void 0);_.N([_.gx("data.hint.hintRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],_.SE.prototype,"onHintIdChanged",null);_.N([_.gx("isPressed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],_.SE.prototype,"onPressedStateChanged",null);
_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],_.SE.prototype,"onYtNavigate",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],_.SE.prototype,"onYtServiceRequestSent",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],_.SE.prototype,"onServiceRequestCompleted",null);_.N([_.O({is:"ytd-button-renderer",disableElementRegistration:JCa})],_.SE);var uz=function(){var G=_.C.apply(this,arguments)||this;G.modern=_.V("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.T(uz,_.C);_.g=uz.prototype;_.g.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"}}}}};
_.g.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.g.dataChanged=function(){if(this.data&&this.data.sticker){var G=_.N$(this.data.sticker.thumbnails,this.stickerWidth);G||_.Cy3(G).thenCatch(function(){_.Rp(new _.C$("Failed to load Super Sticker with url",G))})}};
_.g.computeAuthorPhotoSize=function(G){return(G==null?0:G.isV2Style)?32:40};
_.g.computeIsV2Style=function(G){return(G==null?0:G.isV2Style)?!0:!1};
_.g.onStickerLoaded=function(G){var H,Z,Q;(H=_.a_(G))==null||(Z=H.parentNode)==null||(Q=Z.classList)==null||Q.add("sticker-loaded")};
_.g.computeNoveltyImageWidth=function(G){var H,Z;if(G==null?0:(H=G.headerOverlayImage)==null?0:(Z=H.thumbnails)==null?0:Z.length){H=G.headerOverlayImage.thumbnails[0];var Q,p;if((Q=G.pdgPurchasedNoveltyLoggingDirectives)==null?0:(p=Q.loggingDirectives)==null?0:p.trackingParams){var l,q;Dw2((l=G.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(q=l.loggingDirectives)==null?void 0:q.trackingParams)}return H.width||0}return 0};
_.g.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.g.updateStickerStyles=function(){var G=this.data;G&&(G={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(G.authorNameTextColor)},
_.ZI(this.hostElement,G))};
_.g.onBuyButtonClick=function(){var G,H=_.X((G=this.data)==null?void 0:G.buyButton,_.Yl);H&&!xxf(H.command)&&this.ytRendererBehavior.logExplicitClick(H)};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.u4.Object.defineProperties(uz.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 G;return((G=this.data)==null?0:G.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
uz.prototype.updateStickerStyles=uz.prototype.updateStickerStyles;uz.prototype.isDeletedChanged=uz.prototype.isDeletedChanged;uz.prototype.onStickerLoaded=uz.prototype.onStickerLoaded;uz.prototype.dataChanged=uz.prototype.dataChanged;_.N([_.v(e5t.YtPdgLiveChatItemBehavior),_.A("design:type",Object)],uz.prototype,"ytPdgLiveChatItemBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],uz.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],uz.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uz.prototype,"data",void 0);
_.N([_.h({computed:"computeAuthorPhotoSize(data)"}),_.A("design:type",Number)],uz.prototype,"authorPhotoSize",void 0);_.N([_.h(),_.A("design:type",Boolean)],uz.prototype,"isDeleted",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],uz.prototype,"dashboardMoneyFeed",void 0);_.N([_.h({computed:"computeNoveltyImageWidth(data)"}),_.A("design:type",Number)],uz.prototype,"noveltyWidth",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],uz.prototype,"modern",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.A("design:type",Boolean)],uz.prototype,"isV2Style",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uz.prototype,"dataChanged",null);_.N([_.lq("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],uz.prototype,"onStickerLoaded",null);
_.N([_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],uz.prototype,"stickerWidth",null);_.N([_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],uz.prototype,"stickerHeight",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],uz.prototype,"hasHeartButton",null);_.N([_.z("data","dashboardMoneyFeed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],uz.prototype,"hideLowerBumper",null);
_.N([_.gx("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uz.prototype,"isDeletedChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uz.prototype,"updateStickerStyles",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],uz);
_.m(uz,"yt-live-chat-paid-sticker-renderer",function(){if(Ee_===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;L6N===void 0&&(L6N=document.createElement("template"));var Q=L6N;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Ee_=G}G=Ee_;return G},{mode:0});var thN;var kgx;var DG2,dGw=function(){return DG2!==void 0?DG2:DG2=document.createElement("template")};
document.head.appendChild(dGw().content);var eQ4,n2R=function(){return eQ4!==void 0?eQ4:eQ4=document.createElement("template")};
document.head.appendChild(n2R().content);var Vhp;var $GT,X0w=function(){return $GT!==void 0?$GT:$GT=document.createElement("template")};
document.head.appendChild(X0w().content);var cC2;var TDT=document.head,fhd=TDT.appendChild,v2t;if(cC2===void 0){var WtG=document.createElement("template");_.f(WtG,"\x3c!--css-build:shady--\x3e");WtG.content.insertBefore(X0w().content.cloneNode(!0),WtG.content.firstChild);cC2=WtG}v2t=cC2;fhd.call(TDT,v2t.content);var zQ2=document.head,Kta=zQ2.appendChild,Mht;if(Vhp===void 0){var B5=document.createElement("template");_.f(B5,"\x3c!--css-build:shady--\x3e");B5.content.insertBefore(n2R().content.cloneNode(!0),B5.content.firstChild);B5.content.insertBefore(dGw().content.cloneNode(!0),B5.content.firstChild);Vhp=B5}Mht=Vhp;Kta.call(zQ2,Mht.content);var J4=function(){var G=_.uq.apply(this,arguments)||this;G.focusedIndex=0;G.verticalOffset=0;G.verticalAlign="top";G.dynamicAlign=!0;return G};
_.T(J4,_.uq);J4.prototype.emojiUrl=function(G){G=_.EM(this.emojiManager,G);if(!G)return"";var H;G=(H=G.image)==null?void 0:H.thumbnails;return _.N$(G,24)||""};
var jDw=function(G){var H;G.emojiVariants&&(H=G.data)!=null&&H.target&&_.q2(G,function(){G.set("verticalOffset",-1*G.hostElement.clientHeight);var Z=_.F9(G.hostElement).querySelector("img");Z&&Z.focus()})};
_.g=J4.prototype;_.g.onKeyboardEnter=function(){};
_.g.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.g.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.g.onKeyDown=function(G){switch(G.keyCode){case 13:this.onKeyboardEnter();G.preventDefault();break;case 40:this.changeFocus(1);G.preventDefault();break;case 38:this.changeFocus(-1);G.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.g.onYtEmojiSelect=function(G){var H=this,Z,Q,p,l,q,u,B,t;return _.S(function(D){if(D.nextAddress==1)return Q=(Z=H.data)==null?void 0:Z.emoji,q=((p=Q)==null?void 0:p.stickyPrefId)||((l=Q)==null?void 0:l.emojiId),B=(u=G.detail)==null?void 0:u.emojiId,q&&B&&q!==B?D.yield((t=H.emojiManager)==null?void 0:CpN(t,Q,B),2):D.return();_.AZ(H.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[Q,B]);_.K0(D)})};
_.g.changeFocus=function(G){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+G+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(G=_.F9(this.hostElement).querySelector("#variants"))&&G.children[this.focusedIndex].focus())};
_.u4.Object.defineProperties(J4.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
J4.prototype.onYtEmojiSelect=J4.prototype.onYtEmojiSelect;J4.prototype.onKeyDown=J4.prototype.onKeyDown;J4.prototype.onEmojiVariantsChanged=J4.prototype.onEmojiVariantsChanged;J4.prototype.onVerticalOffsetOrPositionTargetChanged=J4.prototype.onVerticalOffsetOrPositionTargetChanged;_.N([_.v(_.Fv),_.A("design:type",Object)],J4.prototype,"ironOverlayBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],J4.prototype,"data",void 0);_.N([_.h(),_.A("design:type",_.Li)],J4.prototype,"emojiManager",void 0);
_.N([_.h(),_.A("design:type",Object)],J4.prototype,"emojiVariants",void 0);_.N([_.h(),_.A("design:type",Object)],J4.prototype,"focusedIndex",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],J4.prototype,"positionTarget",null);_.N([_.h({reflectToAttribute:!0}),_.z("verticalOffset","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],J4.prototype,"isPositioned",null);_.N([_.h(),_.A("design:type",Object)],J4.prototype,"verticalOffset",void 0);
_.N([_.h(),_.A("design:type",Object)],J4.prototype,"verticalAlign",void 0);_.N([_.h(),_.A("design:type",Object)],J4.prototype,"dynamicAlign",void 0);_.N([_.gx("verticalOffset","positionTarget"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J4.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.N([_.gx("emojiVariants"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J4.prototype,"onEmojiVariantsChanged",null);
_.N([_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],J4.prototype,"onKeyDown",null);_.N([_.lq("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype",Promise)],J4.prototype,"onYtEmojiSelect",null);_.N([_.BG()],J4);var Pyt=[J4.prototype];var rC2;var w0x;var hQa=/medium-light|medium-dark|light|medium|dark/,Cyd=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,iD2=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),t4=function(){var G=_.C.apply(this,arguments)||this;G.userSelection={left:null,right:null};G.scrollAction="lock";G.isEmojiDraftInProgress=!1;return G};
_.T(t4,_.C);_.g=t4.prototype;_.g.onClick=function(G){G=_.a_(G);G instanceof HTMLImageElement&&this.selectOrUpdateEmoji(G)};
_.g.selectOrUpdateEmoji=function(G){var H=G.getAttribute("selection");H&&(H==="default"?_.N5(this.hostElement,"yt-emoji-select",_.EM(this.emojiManager,G.id)):H==="left"?this.userSelection=Object.assign({},this.userSelection,{left:G.src}):H==="right"?this.userSelection=Object.assign({},this.userSelection,{right:G.src}):H==="user"&&this.userSelection.left&&this.userSelection.right&&_.N5(this.hostElement,"yt-emoji-select",_.EM(this.emojiManager,G.id)))};
_.g.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.g.onMultiSelectorThumbnailRowChanged=function(){var G,H,Z;((G=this.data)==null?0:(H=G.emoji)==null?0:(Z=H.multiSelectorThumbnailRow)==null?0:Z.length)&&this.openSelector()};
_.g.getThumbnailFromEmojiRow=function(G){var H,Z;return(G==null?void 0:(H=G.thumbnails)==null?void 0:(Z=H[0])==null?void 0:Z.url)||""};
_.g.getEmojiAltTextForPartialSelector=function(G){var H;return((H=this.getThumbnailFromEmojiRow(G).match(Cyd))==null?void 0:H[0])||""};
_.g.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.g.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.g.getRowSelection=function(G){return["left","right"][G]};
_.g.getIdFromComposedEmoji=function(G){return(G==null?void 0:G.emojiId)||""};
_.g.getEmojiFromPartialSelections=function(G,H){if(!G&&!H)return null;var Z,Q,p=(Z=this.data)==null?void 0:(Q=Z.emoji)==null?void 0:Q.variantIds;if(!p||!p.length)return null;var l;G=(l=G.match(hQa))==null?void 0:l[0];var q;H=(q=H.match(hQa))==null?void 0:q[0];if(!G||!H)return null;var u=iD2.get(G);q=iD2.get(H);if(u===q){q=Array.from(iD2.values()).filter(function(t){return t!==u}).join("|");
var B=new RegExp("^((?!("+q+")).)*"+u+"$")}else B=new RegExp(u+".*"+q);return(p=p.find(function(t){return B.test(t)}))&&_.EM(this.emojiManager,p)||null};
_.g.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var G,H=this.ytEmojiSelectorBehavior.emojiUrl(((G=this.data.emoji)==null?void 0:G.emojiId)||"");_.F9(this.hostElement).querySelector('[selection="user"]').src.includes(H)||(this.isEmojiDraftInProgress=!0)}};
_.g.onDomChange=function(){jDw(this.ytEmojiSelectorBehavior)};
_.g.getFocusableElements=function(){return _.F9(this.hostElement).querySelectorAll("img").filter(function(G){return G.getAttribute("role")==="option"})};
_.g.changeFocus=function(G){var H=this.getFocusableElements();H!=null&&H.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+G+H.length)%H.length,this.ytEmojiSelectorBehavior.focusedIndex<H.length&&(G=H[this.ytEmojiSelectorBehavior.focusedIndex])&&G.focus())};
_.g.onKeyboardEnter=function(){var G=this.getFocusableElements();G!=null&&G.length&&(G=G[this.ytEmojiSelectorBehavior.focusedIndex])&&G instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(G),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.u4.Object.defineProperties(t4.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,H,Z,Q;return this.emojiManager&&((H=this.data)==null?0:(Z=H.emoji)==null?0:(Q=Z.variantIds)==null?0:Q.length)?this.data.emoji.variantIds.map(function(p){return!!p&&_.EM(G.emojiManager,p)}).filter(function(p){return!!p}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G,H=(G=this.userSelection)==null?void 0:G.left,Z;G=(Z=this.userSelection)==null?void 0:Z.right;return H&&G?this.getEmojiFromPartialSelections(H,G):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.composedEmojiSelection)==null?0:G.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var H;G=(H=this.userSelection)==null?void 0:H.left;var Z;H=(Z=this.userSelection)==null?void 0:Z.right;if(!G&&!H){var Q;return this.ytEmojiSelectorBehavior.emojiUrl(((Q=this.data.emoji)==null?void 0:Q.emojiId)||"")}return G&&!H?G:!G&&H?H:""}}});
t4.prototype.onMultiSelectorThumbnailRowChanged=t4.prototype.onMultiSelectorThumbnailRowChanged;t4.prototype.onClick=t4.prototype.onClick;_.N([_.v(_.Fv),_.A("design:type",Object)],t4.prototype,"ironOverlayBehavior",void 0);_.N([_.v(Pyt),_.A("design:type",Object)],t4.prototype,"ytEmojiSelectorBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],t4.prototype,"data",void 0);_.N([_.h(),_.A("design:type",_.Li)],t4.prototype,"emojiManager",void 0);
_.N([_.h(),_.A("design:type",Object)],t4.prototype,"userSelection",void 0);_.N([_.h(),_.A("design:type",Object)],t4.prototype,"scrollAction",void 0);_.N([_.h(),_.A("design:type",Object)],t4.prototype,"isEmojiDraftInProgress",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],t4.prototype,"emojiVariants",null);_.N([_.z("data","userSelection"),_.A("design:type",Object),_.A("design:paramtypes",[])],t4.prototype,"composedEmojiSelection",null);
_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],t4.prototype,"onClick",null);_.N([_.gx("data.emoji.multiSelectorThumbnailRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t4.prototype,"onMultiSelectorThumbnailRowChanged",null);_.N([_.z("data","userSelection","composedEmojiSelection"),_.A("design:type",String),_.A("design:paramtypes",[])],t4.prototype,"draftEmojiUrl",null);
_.N([_.fH({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],t4);
_.m(t4,"yt-emoji-multi-person-selector",function(){if(w0x===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;rC2===void 0&&(rC2=document.createElement("template"));var Q=rC2;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);w0x=G}G=w0x;return G},{mode:2});var ODa;var ahw;var kO=function(){var G=_.C.apply(this,arguments)||this;G.tooltip_=null;return G};
_.T(kO,_.C);_.g=kO.prototype;_.g.dataChanged_=function(){var G;if((G=this.data)==null?0:G.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.F9(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.sI)(this.tooltip_).textContent=this.data.tooltip};
_.g.computeTargetId=function(){var G;return((G=this.data)==null?void 0:G.targetId)||""};
_.g.computeId_=function(G){return G};
_.g.computeIcon_=function(G){return _.bq(G)};
_.g.onTap_=function(){this.active=!this.active;_.N5(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.g.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("active-changed",this.active))};
_.u4.Object.defineProperties(kO.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var G,H;if((G=this.data)==null?0:(H=G.icon)==null?0:H.iconType)return this.data.icon.iconType==="SUPER_STICKER";var Z,Q;return((Z=this.data)==null?void 0:(Q=Z.icon)==null?void 0:Q.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
kO.prototype.activeChangedForBinding=kO.prototype.activeChangedForBinding;kO.prototype.dataChanged_=kO.prototype.dataChanged_;_.N([_.v(_.Ur.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],kO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],kO.prototype,"data",void 0);_.N([_.h({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.A("design:type",String)],kO.prototype,"id",void 0);
_.N([_.h({computed:"computeTargetId(data.targetId)"}),_.A("design:type",String)],kO.prototype,"targetId",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],kO.prototype,"active",void 0);_.N([_.h({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.A("design:type",String)],kO.prototype,"icon",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kO.prototype,"dataChanged_",null);
_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kO.prototype,"iconFilled",null);_.N([_.gx("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kO.prototype,"activeChangedForBinding",null);_.N([_.fH({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],kO);
_.m(kO,"yt-emoji-picker-category-button-renderer",function(){if(ahw===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;ODa===void 0&&(ODa=document.createElement("template"));var Q=ODa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ahw=G}G=ahw;return G},{mode:2});var yCa;var o24;var Di=function(){var G=_.C.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};G.JSC$14293_ignoreNextFocus_=!1;G.longPressTimeoutId=-1;return G};
_.T(Di,_.C);_.g=Di.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.g.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.gr(),H=0;H<this.emoji.length;H++){var Z={veType:88013,elementIndex:H},Q=this.emoji[H];Q.isCustomEmoji&&(Q=document.querySelector(("#"+Q.emojiId).replace("/","\\/")))&&(Z=_.pX(G,Z))&&(Q.visualElement=Z)}};
_.g.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.g.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.g.emojiSkinToneChanged_=function(G){this.skinTone=G};
_.g.dataChanged=function(){this.data&&this.data.emojiData&&PpT(this.emojiManager,this.data.emojiData)};
_.g.emojiUrl=function(G){G=this.getEmoji(G);if(!G)return"";var H;G=(H=G.image)==null?void 0:H.thumbnails;return _.N$(G,24)||""};
_.g.emojiAlt=function(G){var H=this.get("image.accessibility.accessibilityData.label",G);return H?H:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.g.emojiAriaLabel=function(G){return G.shortcuts?G.shortcuts[0]:""};
_.g.emojiAriaSelected=function(G,H,Z){return G&&Z==H?"true":"false"};
_.g.getEmoji=function(G){if(this.emojiManager)return this.shouldUseStickyPreferences?wjN(this.emojiManager,G):Yg(this.emojiManager,G)};
_.g.computeId_=function(G){return G.categoryId||""};
_.g.computeEmoji=function(G){var H=this;return this.emojiManager?G.emojiIds?G.emojiIds.map(function(Z){return Z?_.EM(H.emojiManager,Z):null}).filter(iDv):G.emojiData?G.emojiData.map(function(Z){var Q=!!Z.emojiId&&_.EM(H.emojiManager,Z.emojiId);
return Q?Object.assign({},Q,Z):null}).filter(iDv):[]:[]};
_.g.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.g.computeAriaLabel_=function(G){return _.yn(G)};
_.g.computeAriaActivedescendant_=function(G,H){return G&&G[H]?G[H].emojiId||"":""};
_.g.handleLongPressEmojiWithVariants=function(G,H){this.changeFocusToEmoji(G.emojiId,!1);this.openVariantSelector(G,H)};
_.g.onMouseDown=function(G){var H=this;this.hostElement!==document.activeElement&&(this.JSC$14293_ignoreNextFocus_=!0);if(G.button===0){var Z=_.a_(G);if(Z instanceof HTMLImageElement){var Q=_.F9(this.hostElement).querySelector("#repeat").itemForElement(Z);this.emojiContainsVariants(Q)&&(this.longPressTimeoutId=setTimeout(function(){H.handleLongPressEmojiWithVariants(Q,Z)},500))}}};
_.g.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.g.onFocus=function(){this.JSC$14293_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14293_ignoreNextFocus_=!1};
_.g.onBlur_=function(){this.showFocus=!1};
_.g.emojiContainsVariants=function(G){return!!(G&&G.variantIds&&G.variantIds.length)};
_.g.onClick=function(G){clearTimeout(this.longPressTimeoutId);G=_.a_(G);if(G instanceof HTMLImageElement){var H=G.id;this.changeFocusToEmoji(H,!1);var Z=this.getEmoji(H),Q;if(Q=this.shouldUseStickyPreferences&&this.emojiContainsVariants(Z)){var p;Q=!((p=this.emojiManager.emojiMap[H])!=null&&p.stickyPrefId)}Q?(p=_.F9(this.hostElement).querySelector("#repeat").itemForElement(G),this.openVariantSelector(p,G)):_.N5(this.hostElement,"yt-emoji-select",Z)}};
_.g.isActiveEmojiWithVariants=function(G,H){return G&&H?H.stickyPrefId?G===H.stickyPrefId:G===H.emojiId:!1};
_.g.onCloseEmojiVariantSelector=function(G){this.activeEmojiWithVariantsId===G&&(this.activeEmojiWithVariantsId="")};
_.g.onMouseOver_=function(G){G=_.a_(G);G instanceof HTMLImageElement&&_.N5(this.hostElement,"yt-emoji-hover",_.EM(this.emojiManager,G.id))};
_.g.changeFocus_=function(G,H){this.focusedIndex=(this.focusedIndex+G+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(G=this.emoji[this.focusedIndex],H&&(this.showFocus=!0,_.F9(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.N5(this.hostElement,"yt-emoji-hover",G)))};
_.g.changeFocusToEmoji=function(G,H){if(G){var Z=this.emoji.findIndex(function(Q){return Q.emojiId===G});
Z!==-1&&this.changeFocus_(Z-this.focusedIndex,H)}};
_.g.onKeyDown_=function(G){switch(G.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var H=this.emoji[this.focusedIndex];if(H&&H.emojiId){if(this.emojiContainsVariants(H)){var Z=_.F9(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(H,Z)}else _.N5(this.hostElement,"yt-emoji-select",Yg(this.emojiManager,H.emojiId)),this.hostElement.focus();G.preventDefault()}}break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),
G.preventDefault()}};
_.g.onEmojiStickyPreferenceChanged=function(G,H){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&G.emojiId&&G.variantIds&&G.variantIds.includes(H)&&this.activeEmojiWithVariantsId!==H&&this.setStickyEmojiPreference(G.emojiId,H)};
_.g.openVariantSelector=function(G,H){this.activeEmojiWithVariantsId=G.stickyPrefId||G.emojiId||"";_.N5(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:G,target:H})};
_.g.setStickyEmojiPreference=function(G,H){if(this.data){var Z=this.emoji.findIndex(function(p){return p.emojiId===G});
if(Z!==-1){var Q=this.emoji[Z];Q.stickyPrefId=H;this.set("emoji."+Z,Object.assign({},Q));this.activeEmojiWithVariantsId=H}}};
Di.prototype.onKeyDown_=Di.prototype.onKeyDown_;Di.prototype.onMouseOver_=Di.prototype.onMouseOver_;Di.prototype.onClick=Di.prototype.onClick;Di.prototype.onBlur_=Di.prototype.onBlur_;Di.prototype.onFocus=Di.prototype.onFocus;Di.prototype.onMouseUp=Di.prototype.onMouseUp;Di.prototype.onMouseDown=Di.prototype.onMouseDown;Di.prototype.dataChanged=Di.prototype.dataChanged;Di.prototype.disableIncrementalLoadingChanged_=Di.prototype.disableIncrementalLoadingChanged_;Di.prototype.emojiManagerChanged_=Di.prototype.emojiManagerChanged_;
Di.prototype.emojiChanged_=Di.prototype.emojiChanged_;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Di.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Di.prototype,"data",void 0);_.N([_.h({computed:"computeId_(data)"}),_.A("design:type",String)],Di.prototype,"id",void 0);_.N([_.h({computed:"computeEmoji(data)"}),_.A("design:type",Array)],Di.prototype,"emoji",void 0);_.N([_.h(),_.A("design:type",Number)],Di.prototype,"skinTone",void 0);
_.N([_.h(),_.A("design:type",_.Li)],Di.prototype,"emojiManager",void 0);_.N([_.h(),_.A("design:type",Boolean)],Di.prototype,"disableIncrementalLoading",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Di.prototype,"focusedIndex",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Di.prototype,"showFocus",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.A("design:type",Object)],Di.prototype,"ariaLabel",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.A("design:type",Object)],Di.prototype,"ariaActivedescendant",void 0);_.N([_.h({value:60}),_.A("design:type",Number)],Di.prototype,"domRepeatTargetFramerate",void 0);_.N([_.h({value:1}),_.A("design:type",Number)],Di.prototype,"domRepeatInitialCount",void 0);_.N([_.h({value:""}),_.A("design:type",String)],Di.prototype,"activeEmojiWithVariantsId",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],Di.prototype,"shouldUseStickyPreferences",void 0);_.N([_.gx("emoji"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Di.prototype,"emojiChanged_",null);_.N([_.gx("emojiManager"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Di.prototype,"emojiManagerChanged_",null);
_.N([_.gx("disableIncrementalLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Di.prototype,"disableIncrementalLoadingChanged_",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Di.prototype,"dataChanged",null);_.N([_.lq("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],Di.prototype,"onMouseDown",null);
_.N([_.lq("mouseup"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Di.prototype,"onMouseUp",null);_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Di.prototype,"onFocus",null);_.N([_.lq("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Di.prototype,"onBlur_",null);
_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Di.prototype,"onClick",null);_.N([_.lq("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Di.prototype,"onMouseOver_",null);_.N([_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Di.prototype,"onKeyDown_",null);
_.N([_.fH({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Di);
_.m(Di,"yt-emoji-picker-category-renderer",function(){if(o24===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;yCa===void 0&&(yCa=document.createElement("template"));var Q=yCa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);o24=G}G=o24;return G},{mode:2});var mGd;var UGt;var RQp;var ND2;var dQ=function(){var G=_.C.apply(this,arguments)||this;G.ariaLabel=null;G.ariaActivedescendant=null;G.getFormattedStringRawText=_.yn;G.JSC$14299_ignoreNextFocus_=!1;return G};
_.T(dQ,_.C);_.g=dQ.prototype;_.g.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")};
_.g.emojiUrl=function(G){var H,Z;G=(H=Yg(this.emojiManager,G,!0))==null?void 0:(Z=H.image)==null?void 0:Z.thumbnails;return _.N$(G,24)||""};
_.g.emojiAlt=function(G){var H=this.get("image.accessibility.accessibilityData.label",G);return H?H:G.isCustomEmoji?G.shortcuts[0]:G.emojiId};
_.g.emojiId=function(G){return"emoji"+G};
_.g.computeId_=function(G){return G.categoryId||""};
_.g.computeAriaActivedescendant_=function(G){return this.emoji&&G<this.emoji.length?this.emojiId(G):""};
_.g.emojiChanged_=function(){this.changeFocus_(0,!1);for(var G=_.gr(),H=0;H<this.emoji.length;H++){var Z={veType:88013,elementIndex:H},Q=this.emoji[H];Q.isCustomEmoji&&(Q=document.querySelector(("#"+Q.emojiId).replace("/","\\/")))&&(Z=_.pX(G,Z))&&(Q.visualElement=Z)}};
_.g.computeEmoji_=function(G){var H=this;return this.emojiManager?G.emojiIds.map(function(Z){return _.EM(H.emojiManager,Z,!0)}).filter(ODe):[]};
_.g.titleOffsetChanged_=function(){var G=this.hostElement.getBoundingClientRect(),H=_.F9(this.hostElement).querySelector("#title").getBoundingClientRect();G=Math.max(0,Math.min(this.titleOffset,G.height-H.height));_.F9(this.hostElement).querySelector("#title").style.top=G+"px"};
_.g.onEmojiMouseOver_=function(G){_.N5(this.hostElement,"yt-emoji-hover",G.model.item)};
_.g.onEmojiTap_=function(G){this.data.command&&(G=TFf(_.tp().resolve(_.Jp(GU)),this.data.command,G),_.N5(this.hostElement,"yt-navigate",G))};
_.g.emojiAriaLabel=function(G){return G.shortcuts[0]};
_.g.emojiAriaSelected=function(G,H,Z){return G&&Z==H?"true":"false"};
_.g.changeFocus_=function(G,H){var Z=this.emoji.length;this.focusedIndex=(this.focusedIndex+G+Z)%Z;G=this.emoji[this.focusedIndex];if(H){var Q;(Q=_.F9(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||Q.scrollIntoView(!1);_.N5(this.hostElement,"yt-emoji-hover",G)}};
_.g.onMouseDown_=function(){this.JSC$14299_ignoreNextFocus_=!0};
_.g.onFocus_=function(){this.JSC$14299_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14299_ignoreNextFocus_=!1};
_.g.onBlur_=function(){this.showFocus=!1};
_.g.onKeyDown_=function(G){switch(G.keyCode){case 13:this.onEmojiTap_(G);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);G.preventDefault();break;case 38:this.changeFocus_(-1,!0),G.preventDefault()}};
dQ.prototype.onKeyDown_=dQ.prototype.onKeyDown_;dQ.prototype.onBlur_=dQ.prototype.onBlur_;dQ.prototype.onFocus_=dQ.prototype.onFocus_;dQ.prototype.onMouseDown_=dQ.prototype.onMouseDown_;dQ.prototype.onEmojiTap_=dQ.prototype.onEmojiTap_;dQ.prototype.titleOffsetChanged_=dQ.prototype.titleOffsetChanged_;dQ.prototype.emojiChanged_=dQ.prototype.emojiChanged_;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],dQ.prototype,"ytComponentBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],dQ.prototype,"data",void 0);_.N([_.h({computed:"computeId_(data)"}),_.A("design:type",String)],dQ.prototype,"id",void 0);_.N([_.h({computed:"computeEmoji_(data)"}),_.A("design:type",Array)],dQ.prototype,"emoji",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],dQ.prototype,"titleOffset",void 0);_.N([_.h({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.A("design:type",Object)],dQ.prototype,"ariaLabel",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.A("design:type",Object)],dQ.prototype,"ariaActivedescendant",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],dQ.prototype,"showFocus",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],dQ.prototype,"focusedIndex",void 0);_.N([_.h(),_.A("design:type",_.Li)],dQ.prototype,"emojiManager",void 0);
_.N([_.gx("emoji"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"emojiChanged_",null);_.N([_.gx("titleOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"titleOffsetChanged_",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],dQ.prototype,"onEmojiTap_",null);
_.N([_.lq("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"onMouseDown_",null);_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"onFocus_",null);_.N([_.lq("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dQ.prototype,"onBlur_",null);
_.N([_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],dQ.prototype,"onKeyDown_",null);_.N([_.fH({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],dQ);
_.m(dQ,"yt-emoji-picker-upsell-category-renderer",function(){if(ND2===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;RQp===void 0&&(RQp=document.createElement("template"));var Q=RQp;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ND2=G}G=ND2;return G},{mode:2});var ACp;var xG4;var eE=function(){var G=_.C.apply(this,arguments)||this;G.scrollAction="lock";G.verticalAlign="top";return G};
_.T(eE,_.C);_.g=eE.prototype;_.g.onClick=function(G){G=_.a_(G);G instanceof HTMLImageElement&&_.N5(this.hostElement,"yt-emoji-select",_.EM(this.emojiManager,G.id))};
_.g.openSelector=function(){this.ironOverlayBehavior.open()};
_.g.onDomChange=function(){jDw(this.ytEmojiSelectorBehavior)};
_.g.computeIsFamilySelector=function(G){var H;return(G==null?void 0:(H=G.emoji)==null?void 0:H.emojiId)==="\ud83d\udc6a"};
_.g.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var G=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];G&&G.emojiId&&(_.N5(this.hostElement,"yt-emoji-select",_.EM(this.emojiManager,G.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.u4.Object.defineProperties(eE.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var G=this,H,Z,Q;return this.emojiManager&&((H=this.data)==null?0:(Z=H.emoji)==null?0:(Q=Z.variantIds)==null?0:Q.length)?this.data.emoji.variantIds.map(function(p){return!!p&&_.EM(G.emojiManager,p)}).filter(function(p){return!!p}):[]}}});
eE.prototype.onClick=eE.prototype.onClick;_.N([_.v(_.Fv),_.A("design:type",Object)],eE.prototype,"ironOverlayBehavior",void 0);_.N([_.v(Pyt),_.A("design:type",Object)],eE.prototype,"ytEmojiSelectorBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],eE.prototype,"data",void 0);_.N([_.h(),_.A("design:type",_.Li)],eE.prototype,"emojiManager",void 0);_.N([_.h(),_.A("design:type",Object)],eE.prototype,"scrollAction",void 0);_.N([_.h(),_.A("design:type",Object)],eE.prototype,"verticalAlign",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.A("design:type",Boolean)],eE.prototype,"isFamilySelector",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],eE.prototype,"emojiVariants",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],eE.prototype,"onClick",null);_.N([_.fH({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],eE);
_.m(eE,"yt-emoji-variant-selector",function(){if(xG4===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;ACp===void 0&&(ACp=document.createElement("template"));var Q=ACp;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);xG4=G}G=xG4;return G},{mode:2});var LtR=/:/g,E2p=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],nr=function(){var G=_.C.apply(this,arguments)||this;G.emojiVariantSelector=null;G.emojiMultiPersonSelector=null;G.identity=_.CW;G.lastAnimationTime_=0;G.animationStart_=null;G.animationEnd_=null;return G};
_.T(nr,_.C);_.g=nr.prototype;
_.g.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}}};
_.g.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.FY)};
_.g.attached=function(){_.Yj&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&rXt(this.emojiManager)};
_.g.dataChanged=function(){var G;if((G=this.data)==null?0:G.categories){G=this.emojiManager;var H=this.getCustomEmojiIds();G.pickerCustomEmojiIds=[].concat(_.OP(W6w),_.OP(H))}};
_.g.getCustomEmojiIds=function(){var G,H=(G=this.data.categories)==null?void 0:G.find(function(l){var q;return((q=l.emojiPickerCategoryRenderer)==null?void 0:q.categoryId)&&E2p.includes(l.emojiPickerCategoryRenderer.categoryId)}),Z;
G=(Z=this.data.categories)==null?void 0:Z.find(function(l){return l.emojiPickerUpsellCategoryRenderer});
var Q,p;return[H==null?void 0:(Q=H.emojiPickerCategoryRenderer)==null?void 0:Q.emojiIds,G==null?void 0:(p=G.emojiPickerUpsellCategoryRenderer)==null?void 0:p.emojiIds].flat().filter(function(l){return!!l})};
_.g.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.g.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.g.updateCategoriesAndPlaceholderInternal=function(G,H){var Z=this;G&&H&&(this.categories=G.categories||[],this.categoryButtons=G.categoryButtons||[],this.resetPlaceholder(),this.search="",_.PG(function(){Z.updateButtons_()}))};
_.g.computeId_=function(G){return G.id||""};
_.g.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(G){return G.emojiPickerCategoryRenderer&&G.emojiPickerCategoryRenderer.emojiData}):!1};
_.g.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.g.onShowEmojiVariantSelector=function(G){var H=G.detail.emojiData;H.variantIds&&H.variantIds.length&&(H.multiSelectorThumbnailRow&&H.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:H,target:G.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:H,target:G.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.g.onIronOverlayClosed=function(G){var H=wjN(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");H&&G.composedPath&&(G.composedPath().includes(_.F9(this.hostElement).querySelector("#emoji-variant-selector"))||G.composedPath().includes(_.F9(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.AZ(this.hostElement,"yt-close-emoji-variant-selector",[H.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.g.onEmojiVariantSelectorMouseup=function(G){var H=G.target.firstChild;this.variantSelectorOpened&&H&&_.PG(function(){H.noCancelOnOutsideClick=!1},100)};
_.g.onEmojiVariantSelectorMousedown=function(G){G=G.target.firstChild;this.variantSelectorOpened&&G&&(G.noCancelOnOutsideClick=!1)};
_.g.onSelectCategory_=function(G){var H=this.search!="";this.search="";for(var Z=_.F9(this.hostElement).querySelector("#categories").children,Q=0;Q<Z.length;Q++){var p=Z[Q];if(p.id==G.detail.categoryId){H?(_.F9(this.hostElement).querySelector("#categories").scrollTop=p.offsetTop,this.updateButtons_()):(this.animationStart_=_.F9(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=p.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.g.onEmojiHover_=function(G){this.placeholder=G.detail.shortcuts?G.detail.shortcuts[0]:""};
_.g.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.g.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.g.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.g.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.g.computeSearchCategory_=function(G){G=G.replace(LtR,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();G=G.split(" ");for(var H=[],Z=this.emojiManager.emojis,Q=0;Q<Z.length;Q++){var p=Z[Q];if(p.searchTerms)for(var l=0;l<p.searchTerms.length;l++){for(var q=p.searchTerms[l].toLocaleLowerCase(),u=!1,B=0;B<G.length;B++)if(q.indexOf(G[B])!=-1){u=!0;break}if(u&&(!p.isCustomEmoji||!p.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(p.emojiId))){H.push(p.emojiId);
break}}}return{categoryId:-1,emojiIds:H}};
_.g.computeSearchEmptyMessage_=function(G,H){return G&&H&&H.emojiIds&&H.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.g.computeSearching_=function(G){return this.emojiManager&&G.replace(LtR,"").length>1};
_.g.computeSkinToneHidden=function(){var G;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((G=this.data)==null||!G.hideSkinTonePicker)};
_.g.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.g.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.g.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.g.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.g.selectSkinTone_=function(G){G=Number(G.target.getAttribute("tone"));this.set("emojiManager.skinTone",G);_.AZ(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[G]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.g.skinToneChanged_=function(){_.F9(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var G=_.F9(this.hostElement).querySelector("#dropdown-content").children,H=0;H<G.length;H++)H===this.skinTone?G[H].setAttribute("selected",""):G[H].removeAttribute("selected")};
_.g.animateScroll_=function(G){this.lastAnimationTime_||(this.lastAnimationTime_=G);G-=this.lastAnimationTime_;G<200?(_.F9(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*G/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.F9(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.g.searchChanged_=function(){this.updateButtons_()};
_.g.updateButtons_=function(){var G=null;if(!this.search)for(var H=_.F9(this.hostElement).querySelector("#categories").scrollTop,Z=_.F9(this.hostElement).querySelector("#categories").children,Q=0;Q<Z.length;Q++){var p=Z[Q];p.offsetTop<=H&&(G=p.id)}H=_.F9(this.hostElement).querySelector("#category-buttons").children;for(Z=0;Z<H.length;Z++)Q=H[Z],Q.active=Q.id===G};
nr.prototype.searchChanged_=nr.prototype.searchChanged_;nr.prototype.skinToneChanged_=nr.prototype.skinToneChanged_;nr.prototype.onEmojiHover_=nr.prototype.onEmojiHover_;nr.prototype.onSelectCategory_=nr.prototype.onSelectCategory_;nr.prototype.onShowEmojiVariantSelector=nr.prototype.onShowEmojiVariantSelector;nr.prototype.updateCategoriesAndPlaceholder_=nr.prototype.updateCategoriesAndPlaceholder_;nr.prototype.dataChanged=nr.prototype.dataChanged;
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nr.prototype,"data",void 0);_.N([_.h({value:function(){return[]}}),
_.A("design:type",Array)],nr.prototype,"categories",void 0);_.N([_.h({value:function(){return[]}}),
_.A("design:type",Array)],nr.prototype,"categoryButtons",void 0);_.N([_.h({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.A("design:type",Boolean)],nr.prototype,"disableScroll",void 0);_.N([_.h({computed:"computeId_(data)",reflectToAttribute:!0}),_.A("design:type",String)],nr.prototype,"id",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],nr.prototype,"selected",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],nr.prototype,"disableIncrementalLoading",void 0);_.N([_.h(),_.A("design:type",String)],nr.prototype,"placeholder",void 0);_.N([_.h({value:""}),_.A("design:type",String)],nr.prototype,"search",void 0);_.N([_.h({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.A("design:type",Boolean)],nr.prototype,"searching",void 0);_.N([_.h({computed:"computeSearchCategory_(search)"}),_.A("design:type",Object)],nr.prototype,"searchCategory",void 0);
_.N([_.h({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.A("design:type",Object)],nr.prototype,"searchEmptyMessage",void 0);_.N([_.h({computed:"identity(emojiManager.skinTone)"}),_.A("design:type",Number)],nr.prototype,"skinTone",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],nr.prototype,"skinToneOpened",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],nr.prototype,"variantSelectorOpened",void 0);
_.N([_.h({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.A("design:type",Boolean)],nr.prototype,"skinToneHidden",void 0);_.N([_.h(),_.A("design:type",_.Li)],nr.prototype,"emojiManager",void 0);_.N([_.h(),_.A("design:type",Object)],nr.prototype,"emojiVariantSelector",void 0);_.N([_.h(),_.A("design:type",Object)],nr.prototype,"emojiMultiPersonSelector",void 0);
_.N([_.h({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.A("design:type",Boolean)],nr.prototype,"shouldUseStickyPreferences",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nr.prototype,"dataChanged",null);_.N([_.gx("data","selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nr.prototype,"updateCategoriesAndPlaceholder_",null);
_.N([_.lq("yt-show-emoji-variant-selector"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],nr.prototype,"onShowEmojiVariantSelector",null);_.N([_.lq("yt-emoji-picker-select-category"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],nr.prototype,"onSelectCategory_",null);_.N([_.lq("yt-emoji-hover"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],nr.prototype,"onEmojiHover_",null);
_.N([_.gx("skinTone"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nr.prototype,"skinToneChanged_",null);_.N([_.gx("search"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nr.prototype,"searchChanged_",null);_.N([_.fH({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],nr);
_.m(nr,"yt-emoji-picker-renderer",function(){if(UGt===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;mGd===void 0&&(mGd=document.createElement("template"));var Q=mGd;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);UGt=G}G=UGt;return G},{mode:2});var V7=function(){var G=_.C.apply(this,arguments)||this;G.emojiManager=_.FY;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.selectedIndex=1;G.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return G};
_.T(V7,_.C);_.g=V7.prototype;_.g.handleEmojiCustomizationVisible=function(G){this.emojiPickerRenderer.selected=G;this.selectedIndex=1;G?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.g.emojiCustomizationSetChanged=function(){var G;(G=this.data)!=null&&G.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Ej(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.g.updateSaveButtonState=function(G){var H;(H=this.data)!=null&&H.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.uP("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:G}))};
_.g.emojiUrl=function(G){G=_.EM(this.emojiManager,G);if(!G)return"";var H;G=(H=G.image)==null?void 0:H.thumbnails;return _.N$(G,24)||""};
_.g.emojiAlt=function(G){var H=_.EM(this.emojiManager,G);if(!H)return G;var Z,Q,p,l=(H==null?void 0:(Z=H.image)==null?void 0:(Q=Z.accessibility)==null?void 0:(p=Q.accessibilityData)==null?void 0:p.label)||"";return l?l:H.isCustomEmoji?H.shortcuts[0]:H.emojiId||G};
_.g.emojiAriaLabel=function(G){var H,Z;return((H=_.EM(this.emojiManager,G))==null?void 0:(Z=H.shortcuts)==null?void 0:Z[0])||G};
_.g.onEmojiClick=function(G){G.model.index!==0&&(this.selectedIndex=G.model.index)};
_.g.onEmojiSelect=function(G){G=G.detail;var H,Z;((H=this.data)==null?0:H.emojiCustomizationSetEntityKey)&&((Z=this.emojiCustomizationSet)==null?0:Z.emojiId)&&G.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.uP("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,G.emojiId,this.selectedIndex)}))};
_.g.canEditEmoji=function(G,H,Z){G=G.indexOf(H);return G===Z||G===0||Z===0?!1:!0};
_.g.getUpdatedEmojiIdList=function(G,H,Z){var Q=G.indexOf(H);G=[].concat(_.OP(G));Q>=0&&(G[Q]=G[Z]);G[Z]=H;return G};
_.u4.Object.defineProperties(V7,{template:{configurable:!0,enumerable:!0,get:function(){if(kgx===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;thN===void 0&&(thN=document.createElement("template"));var Q=thN;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);kgx=G}G=kgx;return G}}});
V7.prototype.onEmojiSelect=V7.prototype.onEmojiSelect;_.N([_.v(_.m$),_.A("design:type",Object)],V7.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],V7.prototype,"ytActionHandlerBehavior",void 0);_.N([_.q6("yt-emoji-picker-renderer"),_.A("design:type",Object)],V7.prototype,"emojiPickerRenderer",void 0);
_.N([_.h({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(G,H){return _.Hv(G.entities,"emojiCustomizationSetEntity",H)},
observer:"emojiCustomizationSetChanged"}),_.A("design:type",Object)],V7.prototype,"emojiCustomizationSet",void 0);_.N([_.h(),_.A("design:type",Object)],V7.prototype,"originalEmojiSet",void 0);_.N([_.h(),_.A("design:type",_.Li)],V7.prototype,"emojiManager",void 0);_.N([_.h(),_.A("design:type",Object)],V7.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],V7.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",Object)],V7.prototype,"selectedIndex",void 0);
_.N([_.lq("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],V7.prototype,"onEmojiSelect",null);_.N([_.fH({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],V7);var YB7;var Fta;var bDt;var GHw;var $O=function(){var G=_.C.apply(this,arguments)||this;G.authorBadges=[];return G};
_.T($O,_.C);_.g=$O.prototype;_.g.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.g.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]]"}}}}}};
_.g.dataChanged=function(){var G=umW(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",G)};
_.g.updateMessage=function(){var G=this.data.message,H=_.F9(_.F9(this.hostElement).querySelector("#message"));H.textContent="";G&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.g.onShowOriginalClick=function(G){G.preventDefault();this.showOriginal=!0};
_.g.computeShowBar=function(G,H,Z){return G&&H||Z};
_.g.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.g.computeAuthorIsOwner=function(G){return!!Bif(G.authorBadges,"owner")};
_.g.computeAuthorNameColor=function(G){var H;if(_.V("live_chat_author_name_color_usernames")&&(G==null?0:(H=G.authorName)==null?0:H.simpleText))return _.e$e(_.n13(G.authorName.simpleText));if(_.V("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.e$e(_.YQ(G.authorSeedColorArgb));if(_.V("live_chat_colored_usernames"))return"#cc0000";var Z;return _.V("live_chat_simple_color_usernames")&&(G==null?0:(Z=G.authorName)==null?0:Z.simpleText)&&(G==null?0:G.authorUsernameColorLight)&&
(G==null?0:G.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.YQ(G.authorUsernameColorDark):_.YQ(G.authorUsernameColorLight):""};
$O.prototype.updateMessage=$O.prototype.updateMessage;$O.prototype.dataChanged=$O.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],$O.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$O.prototype,"data",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],$O.prototype,"showOriginal",void 0);_.N([_.h({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.A("design:type",Boolean)],$O.prototype,"isDimmed",void 0);_.N([_.h({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.A("design:type",Boolean)],$O.prototype,"showBar",void 0);
_.N([_.h({computed:"computeAuthorBadges(data)"}),_.A("design:type",Array)],$O.prototype,"authorBadges",void 0);_.N([_.h({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],$O.prototype,"authorIsOwner",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],$O.prototype,"inCollapsedBanner",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],$O.prototype,"inBanner",void 0);
_.N([_.h({value:_.V("live_chat_hide_avatars"),reflectToAttribute:!0}),_.A("design:type",Boolean)],$O.prototype,"avatarHidden",void 0);_.N([_.h({computed:"computeAuthorNameColor(data)"}),_.A("design:type",String)],$O.prototype,"authorNameColor",void 0);_.N([_.h(),_.A("design:type",_.Zi)],$O.prototype,"participantsManager",void 0);_.N([_.h({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.A("design:type",Object)],$O.prototype,"filledButtonOverrides",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$O.prototype,"dataChanged",null);_.N([_.gx("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$O.prototype,"updateMessage",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],$O);
_.m($O,"yt-live-chat-text-message-renderer",function(){if(GHw===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;bDt===void 0&&(bDt=document.createElement("template"));var Q=bDt;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);GHw=G}G=GHw;return G},{mode:0});var Xi=function(){var G=_.C.apply(this,arguments)||this;G.tonalButtonOverrides={type:"tonal",style:"overlay"};return G};
_.T(Xi,_.C);
Xi.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]]"}}}}}};
Xi.prototype.shouldSupportInlineActionButtons=function(){return!0};
Xi.prototype.shouldSupportWholeItemClick=function(){return!0};
_.u4.Object.defineProperties(Xi.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],Xi.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Xi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Xi.prototype,"data",void 0);_.N([_.h(),_.A("design:type",_.Zi)],Xi.prototype,"participantsManager",void 0);
_.N([_.h(),_.A("design:type",Object)],Xi.prototype,"tonalButtonOverrides",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.infoDialogButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],Xi.prototype,"hasInfoDialogButton",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Xi);
_.m(Xi,"yt-live-chat-auto-mod-message-renderer",function(){if(Fta===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;YB7===void 0&&(YB7=document.createElement("template"));var Q=YB7;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Fta=G}G=Fta;return G},{mode:0});var HRG;var sWx;var ZRa;var QWN=function(){return _.C.apply(this,arguments)||this};
_.T(QWN,_.C);_.N([_.h(),_.A("design:type",Object)],QWN.prototype,"data",void 0);_.N([_.O({is:"ytd-factoid-renderer",disableElementRegistration:!0})],QWN);
_.m(QWN,"ytd-factoid-renderer",function(){if(ZRa!==void 0)return ZRa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ZRa=G},{mode:1});var c5=function(){return _.C.apply(this,arguments)||this};
_.T(c5,_.C);c5.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.N([_.h(),_.A("design:type",Object)],c5.prototype,"data",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],c5);
_.m(c5,"yt-live-chat-channel-activity-reputation-renderer",function(){if(sWx===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;HRG===void 0&&(HRG=document.createElement("template"));var Q=HRG;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);sWx=G}G=sWx;return G},{mode:0});var pp2;var lb2;var TZ=function(){return _.C.apply(this,arguments)||this};
_.T(TZ,_.C);TZ.prototype.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],TZ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Boolean)],TZ.prototype,"menuFocused",void 0);_.N([_.h(),_.A("design:type",Object)],TZ.prototype,"data",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],TZ.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],TZ);
_.m(TZ,"yt-live-chat-donation-announcement-renderer",function(){if(lb2===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;pp2===void 0&&(pp2=document.createElement("template"));var Q=pp2;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);lb2=G}G=lb2;return G},{mode:0});var g$2;var Ibw,qtx=function(){if(Ibw!==void 0)return Ibw;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;g$2===void 0&&(g$2=document.createElement("template"));var Q=g$2;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Ibw=G};var fr=function(){return _.C.apply(this,arguments)||this};
_.T(fr,_.C);_.u4.Object.defineProperties(fr,{template:{configurable:!0,enumerable:!0,get:function(){return qtx()}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fr.prototype,"data",void 0);_.N([_.fH({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],fr);_.m(fr,"yt-live-chat-empty-feed-view-model",function(){return qtx()},{mode:0});var StN;var uXx;var v5=function(){return _.C.apply(this,arguments)||this};
_.T(v5,_.C);v5.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"}}}}}};
_.u4.Object.defineProperties(v5.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var G,H;return{runs:[{text:(G=this.data)==null?void 0:(H=G.channelName)==null?void 0:H.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var G=[],H;if((H=this.data)==null||!H.channelBadges)return G;var Z;H=_.I((Z=this.data)==null?void 0:Z.channelBadges);for(Z=H.next();!Z.done;Z=H.next()){Z=_.X(Z.value,IDa);var Q=void 0,p=void 0;if((Q=Z)==null?0:(p=Q.badgeImage)==null?0:p.sources)Q=void 0,p={liveChatAuthorBadgeRenderer:{tooltip:Z.tooltip,accessibility:{accessibilityData:{label:(Q=_.X(Z.rendererContext,_.qc))==null?void 0:Q.label}}}},Z.badgeImage.sources[0].clientResource?p.liveChatAuthorBadgeRenderer.icon=
{iconType:Z.badgeImage.sources[0].clientResource.imageName}:p.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:Z.badgeImage.sources},G.push(p)}return G}}});
_.N([_.h(),_.A("design:type",Object)],v5.prototype,"data",void 0);_.N([_.z("data.channelName"),_.A("design:type",Object),_.A("design:paramtypes",[])],v5.prototype,"channelName",null);_.N([_.z("data.channelBadges"),_.A("design:type",Array),_.A("design:paramtypes",[])],v5.prototype,"channelBadges",null);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],v5);
_.m(v5,"yt-live-chat-identity-view-model",function(){if(uXx===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;StN===void 0&&(StN=document.createElement("template"));var Q=StN;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);uXx=G}G=uXx;return G},{mode:0});var BAp;var Jdx;var tIw;var kHG;var W5=function(){var G=_.C.apply(this,arguments)||this;G.hidden=!1;G.supportsInlineActionButtons=!0;return G};
_.T(W5,_.C);W5.prototype.ready=function(){var G;((G=document.querySelector("yt-live-chat-app"))==null?0:G.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
W5.prototype.dataChanged=function(G){var H=(0,_.sI)(_.F9(this.hostElement).querySelector("#detail-text"));H.textContent="";(G==null?0:G.detailText)&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G.detailText))};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],W5.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h({observer:"dataChanged"}),_.A("design:type",Object)],W5.prototype,"data",void 0);
_.N([_.h({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.A("design:type",Object)],W5.prototype,"hidden",void 0);_.N([_.O({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],W5);
_.m(W5,"yt-live-chat-legacy-paid-message-renderer",function(){if(kHG===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;tIw===void 0&&(tIw=document.createElement("template"));var Q=tIw;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);kHG=G}G=kHG;return G},{mode:0});var DMG;var dMw;var eqT={},zZ=function(){return _.uq.apply(this,arguments)||this};
_.T(zZ,_.uq);zZ.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
zZ.prototype.onLiveChatMembershipItemBehaviorClick=zZ.prototype.onLiveChatMembershipItemBehaviorClick;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zZ.prototype,"data",void 0);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],zZ.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.N([_.BG()],zZ);
eqT.YtLiveChatMembershipItemBehavior=[zZ.prototype,_.Y.YtRendererBehavior];var Kr=function(){var G=_.C.apply(this,arguments)||this;G.supportsInlineActionButtons=!0;G.hasPrimaryHeaderText=!1;G.showOnlyHeader=!1;G.authorBadges=[];G.modern=_.V("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.T(Kr,_.C);_.g=Kr.prototype;_.g.shouldSupportInlineActionButtons=function(){return!0};
_.g.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.g.ready=function(){var G=document.querySelector("yt-live-chat-app");G&&G.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.g.messageChanged=function(){var G=this.data.message,H=(0,_.sI)(_.F9(this.hostElement).querySelector("#message"));H.textContent="";G&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.g.computeHasPrimaryHeaderText=function(G){return!(!G||!G.headerPrimaryText)};
_.g.computeShowOnlyHeader=function(G,H){return this.isMessageEmpty(G,H)};
_.g.computeAuthorBadges=function(G){return G.authorBadges||[]};
_.g.isMessageEmpty=function(G,H){return!G||G.empty?!0:!G.message&&!G.inputField&&!H};
_.g.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.g.getInputElement=function(){return _.F9(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.g.inputFocus=function(){var G=this.getInputElement();G&&G.focus()};
_.g.inputInsertEmoji=function(G){var H=this.getInputElement();H&&H.insertEmoji(G)};
_.g.inputMessage=function(){var G=this.getInputElement();return G&&this.data.inputField?(G.completeEmojis(),_.KI(G.liveChatRichMessageInput)):null};
_.g.onFooterButtonClick=function(){this.data.footerButton&&_.N5(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.g.shouldSupportWholeItemClick=function(){return!0};
Kr.prototype.isDeletedChanged=Kr.prototype.isDeletedChanged;Kr.prototype.messageChanged=Kr.prototype.messageChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],Kr.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.v(eqT.YtLiveChatMembershipItemBehavior),_.A("design:type",Object)],Kr.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Kr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kr.prototype,"data",void 0);_.N([_.h({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Kr.prototype,"hasPrimaryHeaderText",void 0);_.N([_.h({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.A("design:type",Object)],Kr.prototype,"showOnlyHeader",void 0);
_.N([_.h({computed:"computeAuthorBadges(data)"}),_.A("design:type",Array)],Kr.prototype,"authorBadges",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kr.prototype,"modern",void 0);_.N([_.gx("data.message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kr.prototype,"messageChanged",null);_.N([_.gx("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kr.prototype,"isDeletedChanged",null);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Kr);
_.m(Kr,"yt-live-chat-membership-item-renderer",function(){if(dMw===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;DMG===void 0&&(DMG=document.createElement("template"));var Q=DMG;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);dMw=G}G=dMw;return G},{mode:0});var n$N;var VI4;var MH=function(){return _.C.apply(this,arguments)||this};
_.T(MH,_.C);MH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],MH.prototype,"data",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],MH);
_.m(MH,"yt-live-chat-mode-change-message-renderer",function(){if(VI4===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;n$N===void 0&&(n$N=document.createElement("template"));var Q=n$N;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);VI4=G}G=VI4;return G},{mode:0});var $Mx;var Xpa;var jE=function(){return _.C.apply(this,arguments)||this};
_.T(jE,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],jE.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],jE.prototype,"data",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],jE);
_.m(jE,"yt-live-chat-moderation-message-renderer",function(){if(Xpa===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;$Mx===void 0&&($Mx=document.createElement("template"));var Q=$Mx;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Xpa=G}G=Xpa;return G},{mode:0});var cda;var TAT;var P5=function(){return _.C.apply(this,arguments)||this};
_.T(P5,_.C);P5.prototype.onClick=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var H;_.HT.instance.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],P5.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],P5.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],P5.prototype,"data",void 0);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],P5);
_.m(P5,"yt-live-chat-offer-click-count-message-renderer",function(){if(TAT===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;cda===void 0&&(cda=document.createElement("template"));var Q=cda;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);TAT=G}G=TAT;return G},{mode:0});var fbR;var v$a=function(){return _.C.apply(this,arguments)||this};
_.T(v$a,_.C);_.N([_.h(),_.A("design:type",Object)],v$a.prototype,"data",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],v$a);
_.m(v$a,"yt-live-chat-placeholder-item-renderer",function(){if(fbR===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);fbR=G}G=fbR;return G},{mode:0});var Wqa;var zqR;var KqG=new O7(7),rQ=function(){var G=_.C.apply(this,arguments)||this;G.data={};return G};
_.T(rQ,_.C);rQ.prototype.dataChanged=function(){var G;((G=this.data)==null?0:G.class)&&_.Gq(this.hostElement,this.data.class,!0);var H;((H=this.oldData)==null?0:H.class)&&_.Gq(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
rQ.prototype.computeTimestampString=function(G){return KqG.format(new Date(G/1E3))};
rQ.prototype.dataChanged=rQ.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],rQ.prototype,"data",void 0);_.N([_.h({computed:"computeTimestampString(data.timestampUsec)"}),_.A("design:type",String)],rQ.prototype,"timestampString",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rQ.prototype,"dataChanged",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],rQ);
_.m(rQ,"yt-live-chat-server-error-message",function(){if(zqR===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Wqa===void 0&&(Wqa=document.createElement("template"));var Q=Wqa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);zqR=G}G=zqR;return G},{mode:0});var MIa;var jW2;var wQ=function(){var G=_.C.apply(this,arguments)||this;G.defaultToFilledIcon=!1;return G};
_.T(wQ,_.C);wQ.prototype.computeHasPrimaryColorIcon=function(G){return G==="SPARK"||G==="SPONSORSHIP_STAR"};
wQ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],wQ.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wQ.prototype,"defaultToFilledIcon",void 0);_.N([_.h(),_.A("design:type",Object)],wQ.prototype,"data",void 0);
_.N([_.h({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.A("design:type",Boolean)],wQ.prototype,"hasPrimaryColorIcon",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],wQ);
_.m(wQ,"yt-live-chat-viewer-engagement-message-renderer",function(){if(jW2===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;MIa===void 0&&(MIa=document.createElement("template"));var Q=MIa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);jW2=G}G=jW2;return G},{mode:0});var Pdd;var h4=function(){var G=_.C.apply(this,arguments)||this;G.modernUpdate=!1;G.buttonStyle="overlay";G.buttonType="filled";return G};
_.T(h4,_.C);h4.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
h4.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],h4.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],h4.prototype,"modernUpdate",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],h4.prototype,"buttonStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],h4.prototype,"buttonType",void 0);
_.N([_.O({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],h4);
_.m(h4,"ytd-ad-hover-text-button-renderer",function(){if(Pdd!==void 0)return Pdd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Pdd=G},{mode:1});var rdG;var Cr=function(){var G=_.C.apply(this,arguments)||this;G.buttonOverrides={size:"XS"};return G};
_.T(Cr,_.C);Cr.prototype.onHelpTap=function(G){this.data&&this.data.informationDialog&&(_.N5(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),G.preventDefault(),G.stopPropagation())};
_.N([_.h(),_.A("design:type",Object)],Cr.prototype,"buttonOverrides",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Cr.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Cr);
_.m(Cr,"ytd-live-chat-purchased-product-message-renderer",function(){if(rdG!==void 0)return rdG;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rdG=G},{mode:1});var wpT;var hqa;var iz=function(){var G=_.C.apply(this,arguments)||this;G.isContainerDeleted=!1;return G};
_.T(iz,_.C);iz.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
iz.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))};
iz.prototype.isContainerDeletedChanged=iz.prototype.isContainerDeletedChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],iz.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],iz.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],iz.prototype,"isContainerDeleted",void 0);
_.N([_.h(),_.A("design:type",String)],iz.prototype,"deletedStateMessage",void 0);_.N([_.gx("isContainerDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iz.prototype,"isContainerDeletedChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],iz);
_.m(iz,"ytd-sponsorships-live-chat-header-renderer",function(){if(hqa!==void 0)return hqa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return hqa=G},{mode:1});var Op=function(){var G=_.C.apply(this,arguments)||this;G.modern=_.V("web_button_rework_with_live");G.buttonOverrides={style:"overlay",type:"filled"};return G};
_.T(Op,_.C);Op.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]]"}}}}}};
Op.prototype.onCtaButtonClick=function(){var G,H=_.X((G=this.data)==null?void 0:G.optInPrompt,_.Yl);if(G=this.maybeGetButtonCommand(H)){var Z;(Z=_.gr())==null||Z.clickCommand(G)}};
Op.prototype.maybeGetButtonCommand=function(G){return!G||!G.command||_.X(G.command,xtN)===void 0&&_.X(G.command,ADt)===void 0?null:G.command};
Op.prototype.shouldHideOptinPrompt=function(G,H){return!G||H};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Op.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],Op.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Op.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Op.prototype,"modern",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Op);
_.m(Op,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(wpT!==void 0)return wpT;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wpT=G},{mode:1});var Cd4;var aa=function(){return _.C.apply(this,arguments)||this};
_.T(aa,_.C);aa.prototype.onContextMenuClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
aa.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))};
aa.prototype.isDeletedChanged=aa.prototype.isDeletedChanged;_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],aa.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],aa.prototype,"data",void 0);_.N([_.gx("isDeleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aa.prototype,"isDeletedChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],aa);
_.m(aa,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Cd4!==void 0)return Cd4;var G=document.createElement("template");_.f(G,'\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="star_circle_ribbon" 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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Cd4=G},{mode:1});var y7=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return G};
_.T(y7,_.C);_.g=y7.prototype;
_.g.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"}}}};
_.g.handleLiveChatAction=function(G){_.X(G,KXd)?this.handleMarkChatItemAsDeletedAction(_.X(G,KXd)):_.X(G,zH_)&&this.handleRemoveChatItemAction(_.X(G,zH_))};
_.g.handleLiveChatActions=function(G){G.forEach(this.handleLiveChatAction,this)};
_.g.handleMarkChatItemAsDeletedAction=function(G){var H=this,Z;((Z=this.data)==null?0:Z.items)&&this.data.items.forEach(function(Q,p){var l=Object.keys(Q)[0];Object.values(Q)[0].id===G.targetItemId&&H.markAsDeleted("data.items",p,l,G.deletedStateMessage,G.showOriginalContentMessage)})};
_.g.handleRemoveChatItemAction=function(G){var H=this,Z;((Z=this.data)==null?0:Z.items)&&this.data.items.forEach(function(Q,p){Object.values(Q)[0].id===G.targetItemId&&H.splice("data.items",p,1)})};
_.g.markAsDeleted=function(G,H,Z,Q,p){G=[G,H,Z].join(".");this.set(G+".deletedStateMessage",Q);this.set(G+".showOriginalContentMessage",p)};
_.N([_.h(),_.A("design:type",Object)],y7.prototype,"data",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],y7.prototype,"ytActionHandlerBehavior",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],y7);
_.m(y7,"yt-live-chat-item-display-list-renderer",function(){if(Jdx===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;BAp===void 0&&(BAp=document.createElement("template"));var Q=BAp;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Jdx=G}G=Jdx;return G},{mode:0});var iRd;var ORp,ab2=function(){if(ORp!==void 0)return ORp;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;iRd===void 0&&(iRd=document.createElement("template"));var Q=iRd;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return ORp=G};var oa=function(){var G=_.C.apply(this,arguments)||this;G.isHeader=!1;return G};
_.T(oa,_.C);oa.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.u4.Object.defineProperties(oa,{template:{configurable:!0,enumerable:!0,get:function(){return ab2()}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],oa.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],oa.prototype,"isHeader",void 0);_.N([_.fH({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],oa);_.m(oa,"yt-live-chat-item-display-renderer",function(){return ab2()},{mode:0});var ydx,o$p,Adp,NAw;
ydx={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}};o$p={home:"eohps",search:"eosps",watch:"eowps"};_.mM_=["watch","search","home"];
_.mS=function(){this.JSC$14410_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14410_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.xI("PRECONSTRUCTION_DELAY",0);this.signals_=_.ZO();this.targetPage_=""};
_.mS.prototype.init=function(G,H){G=G===void 0?"":G;H=H===void 0?null:H;if(this.JSC$14410_isInitialized_)this.abort();else if(this.JSC$14410_isInitialized_=!0,G&&_.UMR(this,G),H){var Z=_.QA(this.signals_,"pcl")?0:10,Q=function(){for(var p=0,l;l=_.mM_[p++];)l!=G&&l!=H&&this.pendingPages_.push(l);_.Rqw(this)}.bind(this);
this.signals_.parkOrScheduleJob(Q,Z,"pcl")}};
_.mS.prototype.abort=function(){this.fragmentJobId_&&(_.Ui.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);NAw(this)};
_.UMR=function(G,H){G.JSC$14410_isInitialized_&&!G.targetPage_&&(G.targetPage_=H,Adp(G,H),G.isInitialPass_=!1,Adp(G,H),G.signals_.processSignal(o$p[G.targetPage_]),NAw(G),_.Rqw(G))};
_.Rqw=function(G){G.pendingPages_.length&&!G.pagePreparerJobId_&&(G.pagePreparerJobId_=_.wM(_.Ui,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.UMR(this,this.pendingPages_.shift())}.bind(G),G.DEFAULT_DELAY_))};
Adp=function(G,H){if(H=ydx[H])for(var Z in H){var Q=!1,p=Z;Z.charAt(0)=="~"&&(Q=!0,p=Z.substring(1));var l=H[Z];l=typeof l=="object"?l:{count:l};H[Z]=l;l.componentName=p;l.count>0&&(G.isInitialPass_?Q||G.isSeenDuringInitialPass_[p]||(G.JSC$14410_queue_.push({componentName:p,count:1,signals:l.signals}),G.isSeenDuringInitialPass_[p]=!0,l.count--):G.JSC$14410_queue_.push(l))}};
NAw=function(G){G.JSC$14410_queue_.length=0;G.targetPage_="";G.isInitialPass_=!0;G.signals_.processSignal("eop")};
_.mS.getInstance=function(){return _.yj(_.mS)};var xMp=function(){this.signals=_.ZO();this.init()};
xMp.prototype.startPreconstruction=function(){_.mS.getInstance().init(_.YI("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
xMp.prototype.init=function(){Lqt(this);window.Polymer&&s5p&&Qko();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var G=_.Qf.ytcsi;if(G&&G.gt&&(G=G.gt())&&G.tick&&(G.tick.aft>0||G.tick.pbs>0)&&(_.YI("IS_HOMEPAGE_COLD")||_.YI("IS_RESULTS_PAGE_COLD")||_.YI("IS_WATCH_PAGE_COLD"))){E$N(this);break a}O3j(olj,this.onNotifications,this)}};
var Lqt=function(G){var H=function(){G.signals.processSignal("dl")};
document.readyState==="complete"?(_.HU(Error("th"),"WARNING"),H()):_.tkU(window,"load",H)};
xMp.prototype.onNotifications=function(G){G.timer||(_.YI("IS_HOMEPAGE_COLD")||_.YI("IS_RESULTS_PAGE_COLD")||_.YI("IS_WATCH_PAGE_COLD"))&&E$N(this)};
var E$N=function(G){G.signals.parkOrScheduleJob(function(){G.signals.processSignal("eocs")},10,"eor")};
new xMp;var YtG=function(){return _.uq.apply(this,arguments)||this};
_.T(YtG,_.uq);_.u4.Object.defineProperties(YtG.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_entity_store_from_dependency_injection")?_.OI():_.mm()}}});
_.N([_.BG()],YtG);_.Up=[h9.prototype,YtG.prototype];var FqN=["ytd-rich-shelf-renderer"],Ra=function(){var G=_.uq.apply(this,arguments)||this;G._noAccessors=!0;G.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";G.followUpDialogPromise=null;G.followUpDialogPromiseResolve=null;G.followUpDialogPromiseReject=null;return G};
_.T(Ra,_.uq);_.g=Ra.prototype;_.g.dismissibleItemIsDismissedChanged_=function(G){_.V("kevlar_fluid_dismiss")&&(G?_.N5(this.hostElement,"yt-dismissible-item-dismissed"):_.N5(this.hostElement,"yt-dismissible-item-undismissed"))};
_.g.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.g.dismissibleItemReset_=function(){var G=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 _.T_(function(H,Z){G.followUpDialogPromiseResolve=H;G.followUpDialogPromiseReject=Z});
_.N5(this.hostElement,"yt-enable-lockup-interaction")};
_.g.dismissibleItemOnYtServiceRequestSent_=function(G,H){H.actions&&this.dismissibleItemProcessActions(H.actions,G)};
_.g.dismissibleItemOnRequestSent=function(G){for(var H=_.I(G.detail),Z=H.next();!Z.done;Z=H.next()){var Q=void 0;(Z=(Q=_.X(Z.value,_.GD))==null?void 0:Q.actions)&&this.dismissibleItemProcessActions(Z,G)}};
_.g.dismissibleItemOnCommandSent=function(G,H){H&&this.dismissibleItemProcessActions(H,G)};
_.g.setAndGetDismissedContentId=function(G){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+G};
_.g.replayDismissAction=function(G){this.dismissibleItemProcessActions([G])};
_.g.dismissibleItemProcessActions=function(G,H){for(var Z=0;Z<G.length;Z++){var Q=G[Z],p=void 0;((p=_.X(Q,_.Ft))==null?0:p.commands)&&this.dismissibleItemProcessActions(_.X(Q,_.Ft).commands,H);if(_.X(Q,_.zm)){if(p=_.X(Q,_.zm),!p.replaceParentSection||FqN.includes(this.hostElement.nodeName.toLowerCase()))p.groupDismissal&&ahR(this,p.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(p),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.uP("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:Q})),Q=void 0,(Q=H)==null||Q.stopPropagation()}else if(_.X(Q,cAp))this.dismissibleItemHandleHideEnclosingAction_(),Q=void 0,(Q=H)==null||Q.stopPropagation();else if(_.X(Q,xda))Q=_.X(Q,xda),p=void 0,((p=Q)==null?0:p.targetGroupId)&&ahR(this,{targetGroupId:Q.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.uP("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
Q=void 0,(Q=H)==null||Q.stopPropagation();else if(_.X(Q,_.GD))(Q=_.X(Q,_.GD).actions)&&_.El(this.hostElement,Q,this.hostElement),Q=void 0,(Q=H)==null||Q.stopPropagation();else{var l=p=void 0;((p=_.X(Q,_.bc))==null?void 0:p.signal)!=="TELL_US_WHY"||((l=_.X(Q,_.bc))==null?0:l.targetId)&&_.V("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),Q=void 0,(Q=H)==null||Q.stopPropagation())}}};
_.g.dismissibleItemOnYtServiceRequestCompleted_=function(G,H){var Z=this.get("feedbackResponses.0.followUpDialog",H.data);Z?this.followUpDialogPromiseResolve(Z):H.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(H.actions,G)};
_.g.dismissibleItemHandleReplaceEnclosingAction_=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0;var H=null;(H=_.F9(this.hostElement).querySelector("#dismissed"))&&_.q2(this,function(){_.lc(H)});
_.N5(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.g.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.g.dismissibleItemHandleUndoFeedbackAction_=function(){_.N5(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.g.dismissibleItemHandleTellUsWhySignalAction_=function(){var G=this;this.followUpDialogPromise.then(function(H){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:H}})})};
Ra.prototype.dismissibleItemOnYtServiceRequestCompleted_=Ra.prototype.dismissibleItemOnYtServiceRequestCompleted_;Ra.prototype.dismissibleItemOnCommandSent=Ra.prototype.dismissibleItemOnCommandSent;Ra.prototype.dismissibleItemOnRequestSent=Ra.prototype.dismissibleItemOnRequestSent;Ra.prototype.dismissibleItemOnYtServiceRequestSent_=Ra.prototype.dismissibleItemOnYtServiceRequestSent_;Ra.prototype.dismissibleItemDataChanged_=Ra.prototype.dismissibleItemDataChanged_;
Ra.prototype.dismissibleItemIsDismissedChanged_=Ra.prototype.dismissibleItemIsDismissedChanged_;_.N([_.v(_.Ia),_.A("design:type",Object)],Ra.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Ra.prototype,"ytdReduxBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ra.prototype,"isDismissed",void 0);_.N([_.h(),_.A("design:type",Object)],Ra.prototype,"dismissedRenderer",void 0);
_.N([_.gx("isDismissed"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],Ra.prototype,"dismissibleItemIsDismissedChanged_",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ra.prototype,"dismissibleItemDataChanged_",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],Ra.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.N([_.lq("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ra.prototype,"dismissibleItemOnRequestSent",null);
_.N([_.lq("yt-dismissible-item-action"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Array]),_.A("design:returntype")],Ra.prototype,"dismissibleItemOnCommandSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],Ra.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.N([_.BG()],Ra);_.NH=[_.Ia,_.Up,Ra.prototype];var A4=function(){var G=_.uq.apply(this,arguments)||this;G.disableGridStateAware=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};G.currentGridClass="";return G};
_.T(A4,_.uq);A4.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.q2(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var G=this.gridStateAwareGetElement();_.Gq(G,"grid",!0)}};
A4.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
A4.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.F9(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
A4.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var G="grid-disabled";else{G=_.n2.getInstance();var H=this.get("pageSubtype");G=H&&Qna.includes(H)?"grid-disabled":G.currentSnapState_?G.currentSnapState_.className:null}(H=this.gridStateAwareGetElement())&&G!==this.currentGridClass&&(G&&_.Gq(H,G,!0),this.currentGridClass&&_.Gq(H,this.currentGridClass,!1),this.currentGridClass=G)};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],A4.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",String)],A4.prototype,"gridStateAwareSizingElementSelector",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],A4.prototype,"disableGridStateAware",void 0);_.N([_.BG()],A4);_.xO=[A4.prototype,_.V6.YtActionHandlerBehavior];_.Lr=new _.Gv("GUIDE_TOKEN");var YO;_.Ep={};YO=function(){var G=_.uq.apply(this,arguments)||this;G.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 G};
_.T(YO,_.uq);_.g=YO.prototype;_.g.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var G=_.tp().resolve(_.Jp(_.Lr));G&&(this.guidePersistentAndVisible=G.getGuidePersistentAndVisible(),this.activeEndpoint=G.getActiveEndpoint(),this.guideOpened=G.getGuideOpened(),this.miniGuideVisible=G.getMiniGuideVisible())};
_.g.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.g.handleGuideStateAction=function(G){this.guidePersistentAndVisible=G};
_.g.handleMiniGuideStateAction=function(G){this.miniGuideVisible=G};
_.g.handleGuideOpenedAction=function(G){this.guideOpened=G};
_.g.handleActiveEndpointAction=function(G){this.activeEndpoint=G};
YO.prototype.onActiveEndpointChange=YO.prototype.onActiveEndpointChange;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],YO.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],YO.prototype,"guidePersistentAndVisible",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],YO.prototype,"miniGuideVisible",void 0);_.N([_.h(),_.A("design:type",Object)],YO.prototype,"activeEndpoint",void 0);
_.N([_.gx("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YO.prototype,"onActiveEndpointChange",null);_.N([_.h(),_.A("design:type",Boolean)],YO.prototype,"guideOpened",void 0);_.N([_.BG()],YO);_.Ep.YtdGuideStateAwareBehavior=[];_.Ep.YtdGuideStateAwareBehavior.push(YO.prototype,_.V6.YtActionHandlerBehavior);var bRR=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Fi=function(){var G=_.uq.apply(this,arguments)||this;G.hoverJobId=0;G.JSC$14437_touched=!1;return G};
_.T(Fi,_.uq);_.g=Fi.prototype;_.g.created=function(){this.useExpandableTooltip=!bRR.includes(this.is)};
_.g.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.g.detached=function(){this.useExpandableTooltip=!1};
_.g.lockupOnDown=function(G){this.interactionElement&&!_.OO(_.OD(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.g.lockupOnUp=function(G){this.interactionElement&&!_.OO(_.OD(G),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.g.onTouchStart=function(){this.JSC$14437_touched=!0};
_.g.lockupOnMouseEnter=function(){var G=this,H=_.eA("kevlar_lockup_hover_delay",-1);this.JSC$14437_touched&&H>=0?(_.Ui.cancelJob(this.hoverJobId),this.hoverJobId=_.Ui.addJob(function(){G.lockupIsHovered=!0},8,H),this.JSC$14437_touched=!1):this.lockupIsHovered=!0};
_.g.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Ui.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.g.lockupOnPopupClosed=function(G,H){var Z;((Z=H.popupRenderer)==null?void 0:Z.is)==="ytd-menu-popup-renderer"&&(G=H.popupRenderer.veData,H=_.$k(),G&&H&&_.hU(H,[G]))};
_.g.lockupOnLockupRequested=function(G){var H=G.detail.videoIds[0],Z;G.detail&&H===((Z=this.data)==null?void 0:Z.videoId)&&(G.detail.returnValue=[this.data])};
_.g.lockupOnYtServiceRequestSent=function(G,H){if(G=H.actions)for(var Z=0;Z<G.length;Z++){var Q=G[Z];if(Q.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&H.ajaxPromise){var p=void 0,l=(p=_.X(H.endpoint,_.A$))==null?void 0:p.playlistId;p=void 0;Q=(p=Q.removedVideoId)!=null?p:"";KEa(_.l3(),Q,l)}else Q.action==="ACTION_REMOVE_VIDEO"&&H.ajaxPromise&&(l=void 0,Q=(l=Q.setVideoId)!=null?l:"",_.Mf7(_.l3(),Q))}};
_.g.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.g.lockupOnLockupEnabled=function(){if(!this.$){var G=_.tp().resolve(_.o0).getCurrentPage(),H=this.getParentRenderer?this.getParentRenderer():void 0;_.Rp(new _.C$("component not ready",this.is,this.isAttached,G==null?void 0:G.is,H==null?void 0:H.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Fi.prototype.lockupOnLockupEnabled=Fi.prototype.lockupOnLockupEnabled;Fi.prototype.lockupOnLockupDisabled=Fi.prototype.lockupOnLockupDisabled;Fi.prototype.lockupOnYtServiceRequestSent=Fi.prototype.lockupOnYtServiceRequestSent;Fi.prototype.lockupOnLockupRequested=Fi.prototype.lockupOnLockupRequested;Fi.prototype.lockupOnPopupClosed=Fi.prototype.lockupOnPopupClosed;Fi.prototype.lockupOnMouseLeave=Fi.prototype.lockupOnMouseLeave;Fi.prototype.lockupOnMouseEnter=Fi.prototype.lockupOnMouseEnter;
Fi.prototype.onTouchStart=Fi.prototype.onTouchStart;Fi.prototype.lockupOnUp=Fi.prototype.lockupOnUp;Fi.prototype.lockupOnDown=Fi.prototype.lockupOnDown;_.N([_.h(),_.A("design:type",Object)],Fi.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Fi.prototype,"lockupIsHovered",void 0);_.N([_.h(),_.A("design:type",Boolean)],Fi.prototype,"lockupTouchTriggered",void 0);_.N([_.h(),_.A("design:type",Boolean)],Fi.prototype,"useExpandableTooltip",void 0);
_.N([_.q6("#interaction"),_.A("design:type",Object)],Fi.prototype,"interactionElement",void 0);_.N([_.lq("down"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Fi.prototype,"lockupOnDown",null);_.N([_.lq("up"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Fi.prototype,"lockupOnUp",null);
_.N([_.lq("touchstart"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fi.prototype,"onTouchStart",null);_.N([_.lq("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fi.prototype,"lockupOnMouseEnter",null);_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fi.prototype,"lockupOnMouseLeave",null);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Fi.prototype,"lockupOnPopupClosed",null);_.N([_.lq("yt-lockup-requested"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Fi.prototype,"lockupOnLockupRequested",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],Fi.prototype,"lockupOnYtServiceRequestSent",null);_.N([_.lq("yt-disable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fi.prototype,"lockupOnLockupDisabled",null);
_.N([_.lq("yt-enable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fi.prototype,"lockupOnLockupEnabled",null);_.N([_.BG()],Fi);_.bz=[Fi.prototype];_.Gct={YtdReduxBehavior:[]};_.Gct.YtdReduxBehavior.push.apply(_.Gct.YtdReduxBehavior,_.Up);var GV=function(){var G=_.uq.apply(this,arguments)||this;G._noAccessors=!0;G.disableNowPlaying=!1;G.disableTooltips=!1;G.useHoveredProperty=!1;G.hovered=!1;G.isThumbnailHovered_=!1;G.addBackground=_.V("kevlar_thumbnail_bg");G.nowPlaying=!1;G.disableRounding=!1;G.size="small";return G};
_.T(GV,_.uq);_.g=GV.prototype;_.g.computeThumbnailOverlaySidePanelWidth_=function(G,H){return G-H};
_.g.computeSize=function(G,H){if(!this.disableRounding){if(!G&&!H)return"small";G=Math.max(G||0,H||0);return G>=256?"large":G>=96?"medium":"small"}};
_.g.computeFinalHoveredState_=function(G,H,Z){return this.nowPlaying?!1:_.V("kevlar_thumbnail_fluid")&&G?H:Z};
_.g.computeHoverOverlays_=function(G,H){return G&&H?H:void 0};
_.g.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.g.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.g.checkMiniplayer_=function(){var G;if(((G=this.data)==null?0:G.playlistSetVideoId)&&_.V("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{G=_.PN();var H=G.currentEndpoint;!this.disableNowPlaying&&H&&_.X(H,_.hZ)&&this.data?(H=_.X(H,_.hZ),this.nowPlaying=this.data.playlistId?H.playlistId===this.data.playlistId:H.videoId===this.data.videoId,this.isVideoPlaying=G==null?void 0:G.isVideoPlaying):this.nowPlaying=!1}};
GV.prototype.checkMiniplayer_=GV.prototype.checkMiniplayer_;GV.prototype.onMouseLeave_=GV.prototype.onMouseLeave_;GV.prototype.onMouseEnter_=GV.prototype.onMouseEnter_;GV.prototype.computeHoverOverlays_=GV.prototype.computeHoverOverlays_;GV.prototype.computeFinalHoveredState_=GV.prototype.computeFinalHoveredState_;GV.prototype.computeSize=GV.prototype.computeSize;GV.prototype.computeThumbnailOverlaySidePanelWidth_=GV.prototype.computeThumbnailOverlaySidePanelWidth_;
_.N([_.v(_.Up),_.A("design:type",Object)],GV.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],GV.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],GV.prototype,"height",void 0);_.N([_.h(),_.A("design:type",Boolean)],GV.prototype,"bottomSidePanel",void 0);_.N([_.h(),_.A("design:type",Number)],GV.prototype,"width",void 0);_.N([_.h(),_.A("design:type",Object)],GV.prototype,"disableNowPlaying",void 0);
_.N([_.h({selector:_.T9}),_.A("design:type",Boolean)],GV.prototype,"miniplayerIsActive",void 0);_.N([_.h(),_.A("design:type",Object)],GV.prototype,"disableTooltips",void 0);_.N([_.h(),_.A("design:type",Object)],GV.prototype,"useHoveredProperty",void 0);_.N([_.h(),_.A("design:type",Object)],GV.prototype,"hovered",void 0);_.N([_.h(),_.A("design:type",Object)],GV.prototype,"isThumbnailHovered_",void 0);
_.N([_.h({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.A("design:type",Boolean)],GV.prototype,"finalHoveredState_",void 0);_.N([_.h({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.A("design:type",Number)],GV.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],GV.prototype,"addBackground",void 0);
_.N([_.h({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.A("design:type",Object)],GV.prototype,"hoverOverlays_",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],GV.prototype,"nowPlaying",void 0);_.N([_.h(),_.A("design:type",Boolean)],GV.prototype,"isVideoPlaying",void 0);_.N([_.h(),_.A("design:type",Object)],GV.prototype,"disableRounding",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.A("design:type",Object)],GV.prototype,"size",void 0);_.N([_.lq("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GV.prototype,"onMouseEnter_",null);_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GV.prototype,"onMouseLeave_",null);
_.N([_.gx("data","disableNowPlaying","miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GV.prototype,"checkMiniplayer_",null);_.N([_.BG()],GV);var HZa=[GV.prototype];_.Hk={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(G,H){return G+":"+_.LW(H)},
getPlayerListener_:function(G,H,Z){G=this.getPlayerListenerKey_(G,H);H=this.playerListeners_.get(G);Z&&this.playerListeners_.delete(G);return H},
savePlayerListener_:function(G,H){var Z=H.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(G,H),Z);return Z},
listenToPlayerEvent:function(G,H,Z){Z=this.savePlayerListener_(H,Z);G.addEventListener(H,Z)},
listenToPlayerEvents:function(G,H){H.forEach(function(Z,Q){this.listenToPlayerEvent(G,Q,Z)}.bind(this))},
unlistenFromPlayerEvent:function(G,H,Z){Z=this.getPlayerListener_(H,Z,!0);G.removeEventListener(H,Z)},
unlistenFromPlayerEvents:function(G,H){H.forEach(function(Z,Q){this.unlistenFromPlayerEvent(G,Q,Z)}.bind(this))}}};
_.sn=function(){};_.sLx=new _.Gv("PLAYER_API_TOKEN");var UGu=!1,xGf,NDv=!1,E22;var AQ=function(G,H,Z,Q,p){_.wI.call(this);var l=this;this.playerId=H;this.webPlayerContextConfig=Q;this.qjj=p;this.fh5=!1;this.api={};this.bgi=this.cp4=null;this.t1t=new _.K$;this.eG={};this.z34=this.czN=this.elementId=this.dxr=this.config=null;this.gFl=!1;this.di=this.pu7=null;this.s0Q={};this.lYj=["onReady"];this.lastError=null;this.t1n=NaN;this.l1M={};this.gnp=0;this.ez=this.targetElement=G;_.T$(this,this.t1t);ZZG(this);Z?this.gnp=setTimeout(function(){l.loadNewVideoConfig(Z)},0):Q&&(QL_(this),
pIw(this))};
_.T(AQ,_.wI);AQ.prototype.getId=function(){return this.playerId};
AQ.prototype.loadNewVideoConfig=function(G){if(!this.isDisposed()){this.gnp&&(clearTimeout(this.gnp),this.gnp=0);var H=G||{};H instanceof h9w||(H=new h9w(H));this.config=H;this.setConfig(G);pIw(this);this.isReady()&&lja(this)}};
var QL_=function(G){var H;G.webPlayerContextConfig?H=G.webPlayerContextConfig.rootElementId:H=G.config.attrs.id;G.elementId=H||G.elementId;G.elementId==="video-player"&&(G.elementId=G.playerId,G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.playerId:G.config.attrs.id=G.playerId);var Z;((Z=G.ez)==null?void 0:Z.id)===G.elementId&&(G.elementId+="-player",G.webPlayerContextConfig?G.webPlayerContextConfig.rootElementId=G.elementId:G.config.attrs.id=G.elementId)};
AQ.prototype.setConfig=function(G){this.dxr=G;this.config=g6p(G);QL_(this);if(!this.czN){var H;this.czN=Ij_(this,((H=this.config.args)==null?void 0:H.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var Z;if((Z=this.config)==null?0:Z.attrs)G=this.config.attrs,(H=G.width)&&this.ez&&(this.ez.style.width=hH(Number(H)||H,!0)),(G=G.height)&&this.ez&&(this.ez.style.height=hH(Number(G)||G,!0))};
AQ.prototype.getConfig=function(){return this.dxr};
var lja=function(G){if(G.config&&G.config.loaded!==!0)if(G.config.loaded=!0,!G.config.args||G.config.args.autoplay!=="0"&&G.config.args.autoplay!==0&&G.config.args.autoplay!==!1){var H;G.api.loadVideoByPlayerVars((H=G.config.args)!=null?H:null)}else G.api.cueVideoByPlayerVars(G.config.args)},S9x=function(G){var H=!0,Z=G.getPlayerElement();
Z&&G.config&&(H=Z.dataset.version===q9T(G));return H&&!!_.GF("yt.player.Application.create")},pIw=function(G){if(!G.isDisposed()&&!G.gFl){var H=S9x(G);
if(H&&(G.getPlayerElement()?"html5":null)==="html5")G.z34="html5",G.isReady()||udd(G);else if(BLd(G),G.z34="html5",H&&G.di&&G.targetElement)G.targetElement.appendChild(G.di),udd(G);else{G.config&&(G.config.loaded=!0);var Z=!1;G.pu7=function(){Z=!0;var Q=Jba(G,"player_bootstrap_method")?_.GF("yt.player.Application.createAlternate")||_.GF("yt.player.Application.create"):_.GF("yt.player.Application.create");var p=G.config?g6p(G.config):void 0;Q&&Q(G.targetElement,p,G.webPlayerContextConfig,G.qjj);udd(G)};
G.gFl=!0;H?G.pu7():(_.zh(q9T(G),G.pu7),(H=tN4(G))&&I8f(H||""),kca(G)&&!Z&&_.u7("yt.player.Application.create",null))}}};
AQ.prototype.getPlayerElement=function(){var G=_.Ni(document,this.elementId);!G&&this.ez&&this.ez.querySelector&&(G=this.ez.querySelector("#"+this.elementId));return G};
var udd=function(G){if(!G.isDisposed()){var H=G.getPlayerElement(),Z=!1;H&&H.getApiInterface&&H.getApiInterface()&&(Z=!0);if(Z){G.gFl=!1;if(!Jba(G,"html5_remove_not_servable_check_killswitch")){var Q;if((H==null?0:H.isNotServable)&&G.config&&(H==null?0:H.isNotServable((Q=G.config.args)==null?void 0:Q.video_id)))return}DCa(G)}else G.t1n=setTimeout(function(){udd(G)},50)}},DCa=function(G){ZZG(G);
G.fh5=!0;var H=G.getPlayerElement();if(H){G.cp4=dCt(G,H,"addEventListener");G.bgi=dCt(G,H,"removeEventListener");var Z=H.getApiInterface();Z=Z.concat(H.getInternalApiInterface());for(var Q=G.api,p=0;p<Z.length;p++){var l=Z[p];Q[l]||(Q[l]=dCt(G,H,l))}}for(var q in G.eG)G.eG.hasOwnProperty(q)&&G.cp4&&G.cp4(q,G.eG[q]);lja(G);G.czN&&G.czN(G.api);G.t1t.publish("onReady",G.api)},dCt=function(G,H,Z){var Q=H[Z];
return function(){var p=_.Ry.apply(0,arguments);try{return G.lastError=null,Q.apply(H,p)}catch(l){if(Z!=="sendAbandonmentPing")throw l.params=Z,G.lastError=l,p=new _.C$("PlayerProxy error in method call",{error:l,method:Z,playerId:G.playerId}),p.level="WARNING",p;}}},ZZG=function(G){G.fh5=!1;
if(G.bgi)for(var H in G.eG)G.eG.hasOwnProperty(H)&&G.bgi(H,G.eG[H]);for(var Z in G.l1M)G.l1M.hasOwnProperty(Z)&&clearTimeout(Number(Z));G.l1M={};G.cp4=null;G.bgi=null;H=G.api;for(var Q in H)H.hasOwnProperty(Q)&&(H[Q]=null);H.addEventListener=function(p,l){G.addEventListener(p,l)};
H.removeEventListener=function(p,l){G.removeEventListener(p,l)};
H.destroy=function(){G.dispose()};
H.getLastError=function(){return G.getLastError()};
H.getPlayerType=function(){return G.getPlayerType()};
H.getCurrentVideoConfig=function(){return G.getConfig()};
H.loadNewVideoConfig=function(p){G.loadNewVideoConfig(p)};
H.isReady=function(){return G.isReady()}};
AQ.prototype.isReady=function(){return this.fh5};
AQ.prototype.addEventListener=function(G,H){var Z=this;this.isDisposed();var Q=Ij_(this,H);Q&&(_.yf(this.lYj,G)||this.eG[G]||(H=e0t(this,G),this.cp4&&this.cp4(G,H)),this.t1t.subscribe(G,Q),G==="onReady"&&this.isReady()&&setTimeout(function(){Q(Z.api)},0))};
AQ.prototype.removeEventListener=function(G,H){this.isDisposed()||(H=Ij_(this,H))&&this.t1t.unsubscribe(G,H)};
var Ij_=function(G,H){var Z=H;if(typeof H==="string"){if(G.s0Q[H])return G.s0Q[H];Z=function(){var Q=_.Ry.apply(0,arguments),p=_.GF(H);if(p)try{p.apply(_.Qf,Q)}catch(l){throw Q=new _.C$("PlayerProxy error when executing callback",{error:l}),Q.level="ERROR",Q;}};
G.s0Q[H]=Z}return Z?Z:null},e0t=function(G,H){var Z=function(Q){var p=function(){G.isDisposed();
if(!G.isDisposed())try{G.t1t.publish(H,Q!=null?Q:void 0)}catch(u){var q=new _.C$("PlayerProxy error when creating global callback",{error:u.message,event:H,playerId:G.playerId,data:Q,originalStack:u.stack,componentStack:u.componentStack});q.level="WARNING";throw q;}};
if(Jba(G,"web_player_publish_events_immediately"))p();else{var l=setTimeout(function(){p();_.oN.remove(G.l1M,String(l))},0);
_.oN.add(G.l1M,String(l),!0)}};
return G.eG[H]=Z};
AQ.prototype.getPlayerType=function(){return this.z34||(this.getPlayerElement()?"html5":null)};
AQ.prototype.getLastError=function(){return this.lastError};
var BLd=function(G){G.cancel();ZZG(G);G.z34=null;G.config&&(G.config.loaded=!1);var H=G.getPlayerElement();H&&(S9x(G)||!kca(G)?G.di=H:(H&&H.destroy&&H.destroy(),G.di=null));G.targetElement&&_.zL(G.targetElement)};
AQ.prototype.cancel=function(){this.pu7&&_.CMe(q9T(this),this.pu7);clearTimeout(this.t1n);this.gFl=!1};
AQ.prototype.disposeInternal=function(){BLd(this);if(this.di&&this.config&&this.di.destroy)try{this.di.destroy()}catch(H){var G=new _.C$("PlayerProxy error during disposal",{error:H});G.level="ERROR";throw G;}this.s0Q=null;for(G in this.eG)this.eG.hasOwnProperty(G)&&delete this.eG[G];this.dxr=this.config=this.api=null;delete this.targetElement;delete this.ez;_.wI.prototype.disposeInternal.call(this)};
var kca=function(G){var H,Z;G=(H=G.config)==null?void 0:(Z=H.args)==null?void 0:Z.fflags;return!!G&&G.indexOf("player_destroy_old_version=true")!==-1},q9T=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.jsUrl:(G=G.config.assets)?G.js:""},tN4=function(G){return G.webPlayerContextConfig?G.webPlayerContextConfig.cssUrl:(G=G.config.assets)?G.css:""},Jba=function(G,H){if(G.webPlayerContextConfig)var Z=G.webPlayerContextConfig.serializedExperimentFlags;
else{var Q;if((Q=G.config)==null?0:Q.args)Z=G.config.args.fflags}return(Z||"").split("&").includes(H+"=true")},g6p=function(G){for(var H={},Z=_.I(Object.keys(G)),Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;
var p=G[Q];H[Q]=typeof p==="object"?_.oN.clone(p):p}return H};var HRf={},GHW="player_uid_"+(Math.random()*1E9>>>0);var ZK=function(G,H,Z,Q,p,l){H=H===void 0?document.createElement("div"):H;this.webPlayerContextConfig=G;this.container=H;this.commandResolver=Z;this.apiResolver=QWj();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.sD;Q||l?n6a(this):VNd(this);this.pendingPlayerResponse=Q;this.pendingWatchNextResponse=p;this.pendingPlayerVars=l;$C_(this)};
ZK.prototype.loadVideoWithPlayerResponse=function(G,H,Z){this.loadVideo(G,H,Z)};
ZK.prototype.loadVideoWithPlayerVars=function(G){return this.loadVideo(void 0,void 0,G)};
ZK.prototype.destroy=function(G){if(G=_.Ni(document,G))G=GHW+"_"+_.LW(G),(G=HRf[G])&&G.dispose()};
var cbd=function(G,H){var Z;_.S(function(Q){if(Q.nextAddress==1)return G.pendingWatchNextResponse=H,G.synchronousApi?(Z=G.synchronousApi,Q.jumpTo(2)):Q.yield(G.api,3);Q.nextAddress!=2&&(Z=Q.yieldResult);if(!XId(G,Z))return Q.return();G.pendingWatchNextResponse&&(Z.updateVideoData({raw_watch_next_response:G.pendingWatchNextResponse}),G.pendingWatchNextResponse=void 0);_.K0(Q)})},XId=function(G,H){var Z;
if(!(H==null?0:(Z=H.isReady)==null?0:Z.call(H))){var Q;_.Rp(new _.C$("playerApi is falsey",{synchronousApi:G.synchronousApi,apiResolved:G.apiResolver.resolved,playerApiUndefined:H===void 0,playerApiNull:H===null,playerApiReady:(H==null?void 0:(Q=H.isReady)==null?void 0:Q.call(H))===!0,playerApiMethods:H?Object.keys(H):[]}));return!1}return!0},TLR=function(G,H){if(typeof G[H]==="function")return G[H]()},fja=function(G){var H=window,Z,Q=(Z=H.ytplayer)==null?void 0:Z.bootstrapPlayerContainer;
if((Z=Q==null?void 0:Q.firstElementChild)&&_.yX(Z,"html5-video-player")){var p,l,q=(p=H.ytplayer)==null?void 0:(l=p.bootstrapWebPlayerContextConfig)==null?void 0:l.contextId;p=G.webPlayerContextConfig.contextId;if(q&&q===p){Q!==G.container&&(Q=!1,TLR(Z,"getPlayerState")===2&&(Q=!0),G.container.appendChild(Z),Q||TLR(Z,"playVideo"));var u;if((u=H.ytplayer)==null?0:u.bootstrapPlayerResponse)G.bootstrapPlayerResponse=H.ytplayer.bootstrapPlayerResponse}}},$C_=function(G){var H,Z,Q,p,l;
_.S(function(q){if(q.nextAddress==1)return G.pageReadyOrDataAvailable?q.jumpTo(2):q.yield(G.pageReadyOrDataAvailableResolver.promise,2);if(q.nextAddress!=4)return!_.V("kevlar_player_unified_player_loading")||RQ2()&&AC2()?q.jumpTo(4):q.yield(Ftb(),4);fja(G);if(G.pendingPlayerResponse||G.pendingPlayerVars)H=bDu(G.pendingPlayerResponse,G.pendingWatchNextResponse,G.pendingPlayerVars),G.pendingPlayerResponse&&G.pendingPlayerResponse===G.bootstrapPlayerResponse&&(H.loaded=!0),G.bootstrapPlayerResponse=
void 0;Z=ZRe(G.container,H,G.webPlayerContextConfig);((Q=H)==null?0:Q.loaded)&&G.pendingWatchNextResponse?(cbd(G,G.pendingWatchNextResponse),G.pendingPlayerResponse=void 0,G.pendingPlayerVars=void 0):v62(G);p=function(u){Z.removeEventListener("onReady",p);G.synchronousApi=u;G.apiResolver.resolve(u)};
Z.addEventListener("onReady",p);G.commandResolver!==void 0&&(l=G.commandResolver,Z.addEventListener("innertubeCommand",function(u){l(u)}));
_.K0(q)})};
ZK.prototype.loadVideo=function(G,H,Z){var Q=this,p,l,q,u,B,t,D,d,e;return _.S(function(n){if(n.nextAddress==1)return Q.pendingPlayerResponse=G,Q.pendingWatchNextResponse=H,Q.pendingPlayerVars=Z,n6a(Q),Q.synchronousApi?(p=Q.synchronousApi,n.jumpTo(2)):n.yield(Q.api,3);n.nextAddress!=2&&(p=n.yieldResult);if(!XId(Q,p))return n.return(new Promise(function(){}));
q=new Promise(function(c){l=c});
u=function(){var c=p.getPlayerResponse();c&&(p.removeEventListener("onVideoDataChange",u),l(c))};
p.addEventListener("onVideoDataChange",u);if(Q.pendingPlayerResponse||Q.pendingPlayerVars)Q.pendingPlayerResponse&&Q.pendingPlayerResponse===Q.bootstrapPlayerResponse?(l(Q.pendingPlayerResponse),Q.pendingWatchNextResponse&&cbd(Q,Q.pendingWatchNextResponse)):(B=bDu(Q.pendingPlayerResponse,Q.pendingWatchNextResponse,Q.pendingPlayerVars),(e=(t=Q.pendingPlayerResponse)==null?void 0:(D=t.playerConfig)==null?void 0:(d=D.playbackStartConfig)==null?void 0:d.startPaused)?p.cueVideoByPlayerVars(B.args):p.loadVideoByPlayerVars(B.args)),
v62(Q),Q.bootstrapPlayerResponse=void 0;return n.return(q)})};
var VNd=function(G){if(document.readyState==="complete"||document.readyState==="interactive")n6a(G);else{var H=function(){document.removeEventListener("DOMContentLoaded",H);n6a(G)};
document.addEventListener("DOMContentLoaded",H)}},n6a=function(G){G.pageReadyOrDataAvailable=!0;
G.pageReadyOrDataAvailableResolver.resolve()},v62=function(G){G.pendingPlayerResponse=void 0;
G.pendingWatchNextResponse=void 0;G.pendingPlayerVars=void 0};
_.u4.Object.defineProperties(ZK.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Qp=function(G){rK.call(this,G===void 0?"document_active":G);var H=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(Z){H.transition("document_disposed",{event:Z})});
window.addEventListener("beforeunload",function(Z){H.transition("document_disposed_preventable",{event:Z})});
window.addEventListener("unload",function(Z){H.transition("document_disposed",{event:Z});H.hasRun=new Map})};
_.T(Qp,rK);
Qp.prototype.runPreventableDispose=function(G,H){if(!this.hasRun.get("document_disposed_preventable")){G(H==null?void 0:H.event);var Z,Q;if((H==null?0:(Z=H.event)==null?0:Z.defaultPrevented)||(H==null?0:(Q=H.event)==null?0:Q.returnValue)){H.event.returnValue||(H.event.returnValue=!0);H.event.defaultPrevented||H.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")};
Qp.prototype.runDispose=function(G,H){this.hasRun.get("document_disposed")?this.transition("document_active"):(G(H==null?void 0:H.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Qp.prototype.runFlush=function(G,H){G(H==null?void 0:H.event);this.transition("document_active")};
Qp.prototype.runActive=function(){};var pB=function(G){rK.call(this,G===void 0?"document_visibility_unknown":G);var H=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(Z){document.visibilityState==="visible"?H.transition("document_visible",{event:Z}):H.transition("document_hidden",
{event:Z})});
_.V("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(Z){H.transition("document_backgrounded",{event:Z})}),window.addEventListener("focus",function(Z){H.transition("document_foregrounded",{event:Z})}))};
_.T(pB,rK);pB.prototype.runVisible=function(G,H){G(H==null?void 0:H.event);_.V("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
pB.prototype.runHidden=function(G,H){G(H==null?void 0:H.event);_.V("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
pB.prototype.runBackgrounded=function(G,H){G(H==null?void 0:H.event)};
pB.prototype.runForegrounded=function(G,H){G(H==null?void 0:H.event)};var lU=function(){this.teardownLifecycle=new Qp;this.visibilityLifecycle=new pB};
lU.prototype.install=function(){var G=_.Ry.apply(0,arguments),H=this;G.forEach(function(Z){H.teardownLifecycle.install(Z)});
G.forEach(function(Z){H.visibilityLifecycle.install(Z)})};var gV=function(){lU.call(this);var G={};this.install((G.document_disposed={callback:this.abortSlisAndFlush},G));_.V("combine_ve_grafts")&&(G={},this.install((G.document_disposed={callback:this.flushInteractionLoggingAttachVes},G)));G={};this.install((G.flush_logs={callback:this.logFinalPayload},G));_.V("web_log_cfg_cee_ks")||_.wM(_.Ui,WF2)};
_.T(gV,lU);var ppv=function(){gV.loggingInstance||(gV.loggingInstance=new gV);return gV.loggingInstance};
gV.prototype.logFinalPayload=function(){if(_.V("web_fp_via_jspb")){var G=new MSN,H=_.$k();H&&_.ha(G,1,H);H=_.V("jspb_sparse_encoded_pivot")?new rM([{}]):new rM;_.vO(H,380,jqd,G);vlf("finalPayload",H);_.V("web_fp_via_jspb_and_json")&&_.yR("finalPayload",{csn:_.$k()})}else _.yR("finalPayload",{csn:_.$k()})};
gV.prototype.abortSlisAndFlush=function(){Vo2(pQ);lZ!=null&&lZ.flush()};
gV.prototype.flushInteractionLoggingAttachVes=function(){azt(_.gr())};
var WF2=function(){var G=_.xI("CLIENT_EXPERIMENT_EVENTS");if(G){var H=ste();G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,H(Z)&&_.yR("genericClientExperimentEvent",{eventType:Z});delete _.NV.CLIENT_EXPERIMENT_EVENTS}};var z07={};
z07.YtPlayerBehavior=[_.Hk.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 G=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.sD;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;lbv(function(){G.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.NK(this,"pan-down"),_.V("kevlar_pinch_fullscreen")&&_.W9().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.V("kevlar_pinch_fullscreen")&&_.W9().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(G,H,Z){var Q=this;xV(this.useUnifiedPlayer_());if(this.mainAppPlayer_)xV(!1,"MainAppPlayer already created.");else{var p=_.V("kevlar_player_container_query_killswitch")?this.$.container:_.F9(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ZK(this.getWebPlayerContextConfig_(),p,function(l){return _.s6(l,Q.hostElement)},G,H,Z);
this.mainAppPlayer_.api.then(function(l){Q.player_=l;Q.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&ocp.resolve(l)})}},
loadVideoWithPlayerResponse:function(G,H){var Z=this;if(this.useUnifiedPlayer_()){var Q=this.watchNextData,p,l=(p=G.videoDetails)==null?void 0:p.videoId,q,u,B;(p=(q=this.watchNextData)==null?void 0:(u=q.currentVideoEndpoint)==null?void 0:(B=u.watchEndpoint)==null?void 0:B.videoId)&&l!=p&&(Q=void 0,_.V("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(G,Q,H):this.createMainAppPlayer_(G,Q,H);this.mainAppPlayer_.api.then(function(){_.N5(Z.hostElement,
"yt-player-updated")})}else this.update(yCb(G,H))},
loadVideoWithPlayerVars:function(G){var H=this;this.useUnifiedPlayer_()?(_.V("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(G):this.createMainAppPlayer_(void 0,void 0,G),this.mainAppPlayer_.api.then(function(){_.N5(H.hostElement,"yt-player-updated")})):this.update({args:G})},
update:function(G){var H=this;if(this.useUnifiedPlayer_())xV(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(G);var Z=N5u(G.args);Z&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==Z&&Object.assign(G.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(G).then(function(Q){_.N5(H.hostElement,"yt-player-updated",_.V("kevlar_player_updated_obsolete_player_killswitch")?
Q:void 0)})}_.UN(new _.C$("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(H.getPlayerPromise(),2);Z=Q.yieldResult;if(!Z)throw Error("vh");G&&H.updatePlayerPlaylist_(G);_.K0(Q)})},
acquireApi_:function(G){var H=this;if(this.useUnifiedPlayer_())xV(!1,"Invalid method call in kevlar_unified_player.");else return _.Ui.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(xV(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(Z){H.shouldAutoplay_(G)?Z.loadVideoByPlayerVars(G.args):Z.cueVideoByPlayerVars(G.args)})):this.initPlayerPromise_=this.initPlayerContainer_(G),this.initPlayerPromise_},
initPlayerContainer_:function(G){var H=this;if(this.useUnifiedPlayer_())xV(!1,"Invalid method call in kevlar_unified_player.");else return xV(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Rp(Error("wh")),xV(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.V("kevlar_player_container_query_killswitch")?this.$.container:_.F9(this.hostElement).querySelector("#container"),Ftb().then(function(){var Z=H.initPlayer_(G);H.playerResolver_.resolve(Z);
return Z})},
onPlayerReady_:function(G,H){this.useUnifiedPlayer_()?xV(!1,"Invalid method call in kevlar_unified_player."):(G.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&ocp.resolve(G),H(G))},
maybeCallApiMethodOnElement_:function(G,H){if(typeof G[H]==="function")return G[H]()},
maybeAdoptBootstrapPlayer_:function(){var G=window,H,Z=(H=G.ytplayer)==null?void 0:H.bootstrapPlayerContainer;if((H=Z==null?void 0:Z.firstElementChild)&&H.classList.contains("html5-video-player")){var Q,p,l=(Q=G.ytplayer)==null?void 0:(p=Q.bootstrapWebPlayerContextConfig)==null?void 0:p.contextId;Q=this.getWebPlayerContextConfig_().contextId;if(l&&l===Q){Z!==this.playerContainer_&&(Z=!1,this.maybeCallApiMethodOnElement_(H,"getPlayerState")===2&&(Z=!0),this.playerContainer_.appendChild(H),Z||this.maybeCallApiMethodOnElement_(H,
"playVideo"));var q;if((q=G.ytplayer)==null?0:q.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=G.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(G){var H=this;if(this.useUnifiedPlayer_())xV(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(Z){H.maybeAdoptBootstrapPlayer_();var Q=G?o2f(G):void 0;Q&&Q==H.bootstrapPlayerResponse_&&(G.loaded=!0);Q=H.playerContainer_;var p=H.getWebPlayerContextConfig_();Q=ZRe(Q,G,p);H.player_=Q;H.onPlayerReadyEvent_=H.onPlayerReady_.bind(H,H.player_,Z);H.player_.addEventListener("onReady",H.onPlayerReadyEvent_);H.player_.addEventListener("innertubeCommand",
H.onPlayerInnerTubeCommand_.bind(H))})},
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(G){G.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(G){G.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var G=_.tp().resolve(_.o0).getCurrentPage();G&&G.getScrollTop()<=0?_.NK(this,"pan-down"):_.NK(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(G){G.isFullscreen()||G.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(G){G.isFullscreen()&&G.toggleFullscreen()})},
updatePlayerPlaylist_:function(G){var H=this,Z,Q,p;return _.S(function(l){if(l.nextAddress==1)return Z=_.tp().resolve(_.Jp(_.H9)),Q=!!(Z&&Z.playlistComponent&&Z.playlistComponent.loopOn),l.yield(H.getPlayerPromise(),2);var q=p=l.yieldResult,u=q.updatePlaylist,B=[];if(_.V("kevlar_player_playlist_use_local_index")){var t,D;var d=(D=(t=G.localCurrentIndex)!=null?t:G.currentIndex)!=null?D:0}else{var e;d=(e=G.currentIndex)!=null?e:0}if(G.contents)for(t=0;t<G.contents.length;t++)if((D=G.contents[t])&&D.playlistPanelVideoRenderer)if(xtj(D)){D=
D.playlistPanelVideoRenderer;e="";D.shortBylineText&&(e=_.yn(D.shortBylineText));var n="";D.title?n=_.yn(D.title):D.unplayableText&&(n=_.yn(D.unplayableText));B.push({author:e,title:n,encrypted_id:D.videoId})}else t<d&&--d;u.call(q,{index:d,list:G.playlistId?G.playlistId:"",loop:Q,playlist_title:G.title,playlist_length:B.length,video:B,fetch:0,external_list:"1",title:G.title?G.title:"",playlist_author:G.ownerName?_.yn(G.ownerName):void 0});_.K0(l)})},
focusOnPlayer:function(){_.q2(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var G=this.playerContainer_.querySelector(".html5-video-player");G&&(_.IP(_.tp().resolve(_.Bh)),G.focus())}})},
preparePlayer:function(){var G=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(H){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")H();else{var Z=function(){document.removeEventListener("DOMContentLoaded",Z);H()};
document.addEventListener("DOMContentLoaded",Z)}})).then(function(){return Ftb()}).then(function(){G.initPlayerPromise_||G.preparePlayerJobId_||(G.preparePlayerJobId_=_.wM(_.Ui,function(){G.initPlayerPromise_||(G.initPlayerPromise_=G.initPlayerContainer_())}))}):_.UN(new _.C$("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(G){this.useUnifiedPlayer_()?xV(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(G)||(G.args.autoplay="0")},
shouldAutoplay_:function(G){if(this.useUnifiedPlayer_())xV(!1,"Invalid method call in kevlar_unified_player.");else{var H=this.get("args.el",G);return H&&H!="detailpage"&&this.isMiniplayerActive_()||H&&(H=="sponsorshipsoffer"||H=="handlesclaiming")&&this.get("args.autoplay",G)=="0"?!1:(G=o2f(G))&&this.get("playerConfig.playbackStartConfig.startPaused",G)?!1:!0}},
isMiniplayerActive_:function(){return _.tp().resolve(_.WM).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var G=this.getPlayer();if(G){var H=G.getPlayerState();_.V("kevlar_player_check_ad_state_on_stop")&&(H=G.getPlayerState(G.getPresentingPlayerType()));H!=5&&G.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(G,H,Z){Z=Z===void 0?!1:Z;var Q=this,p,l,q,u;return _.S(function(B){if(B.nextAddress==1)return H||(H=Q.hostElement),p=Q.useUnifiedPlayer_()?!!Q.mainAppPlayer_:!!Q.initPlayerPromise_,p?B.yield(Q.getPlayerPromise(),2):(Z?G.insertBefore(H,G.firstChild):G.appendChild(H),B.return());l=B.yieldResult;q=l.getPlayerState(l.getPresentingPlayerType());u=!1;if(q==-1||q==1||q==3)u=!0;Z?G.insertBefore(H,G.firstChild):G.appendChild(H);u&&l.playVideo();l.setSize(NaN,NaN);_.K0(B)})},
watchNextDataChanged_:function(G){var H=this;G&&(this.useUnifiedPlayer_()&&_.V("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&cbd(this.mainAppPlayer_,G):this.getPlayerPromise().then(function(Z){Z.updateVideoData(H.computeWatchNextPlayerVars_(G))}))},
computeWatchNextPlayerVars_:function(G){if(this.useUnifiedPlayer_()&&_.V("kevlar_unified_player_update_watch_next_killswitch"))xV(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:G}},
maybeSendAbandonmentPing_:function(){var G=this.getPlayer();G&&G.getPlayerState()!=5&&G.getPlayerState()!=0&&G.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var G=_.xI("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(G=Object.assign({},G),G.rootElementId=this.playerId);G.serializedExperimentIds&&G.serializedExperimentFlags||_.Rp(Error("xh"));return G},
hasWebPlayerContextConfig_:function(){return!!_.xI("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(G){this.useUnifiedPlayer_()?xV(!1,"Invalid method call in kevlar_unified_player."):_.s6(G,this.hostElement)},
useUnifiedPlayer_:function(){var G=_.V("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.V("kevlar_unified_player")||G}}];var KFG={};KFG.YtPlaylistPanelBehavior=[_.Y.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(G){G=G.detail;if(G.actions.loop!=void 0||G.actions["yt-icons:loop"]!=void 0)this.loopOn=G.actions.loop||G.actions["yt-icons:loop"];if(G.actions.shuffle!=void 0||G.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=G.actions.shuffle||G.actions["yt-icons:shuffle"]},
setMenuData_:function(G){if(!G||!G.playlistButtons||G.isInfinite)return null;for(var H=G.playlistButtons.menuRenderer.topLevelButtons,Z=H.length,Q=0;Q<Z;Q++)if(H[Q].toggleButtonRenderer){var p=H[Q].toggleButtonRenderer;p.defaultIcon.iconType=="LOOP"&&this.loopOn?p.isToggled=this.loopOn:p.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(p.isToggled=this.shuffleOn)}return G.playlistButtons}}];_.qt={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(G,H,Z){var Q=this.getClickTarget_(H);if(Q&&this.isClickAllowed_(Q)){H.preventDefault();G=(0,_.oN.unsafeClone)(G);var p=this.getContainerBoundingRect();H=this.getRelativeClickXy_(H,p);this.expandEndpointUrlMacros_(G,{NX:H[0],NY:H[1],NB:Q.code});Z&&this.truncateWebCommendMetadataUrl_(G);_.N5(this.hostElement,"yt-navigate",{endpoint:G})}},
getClickTarget_:function(G){if(!this.clickTargetMap)return null;G=_.OD(G)||[];G=_.I(G);for(var H=G.next();!H.done;H=G.next()){H=H.value;if(H===_.F9(this.hostElement).querySelector("#menu"))break;if(H=this.clickTargetMap.get(H.id))return H}return null},
getRelativeClickXy_:function(G,H){var Z=Math.round(G.detail.x-H.left);G=Math.round(G.detail.y-H.top);return Z<0||G<0?[null,null]:[Z,G]},
getContainerBoundingRect:function(){return _.F9(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(G,H){for(var Z=_.I(G.loggingUrls||[]),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.baseUrl&&(Q.baseUrl=uM3(Q.baseUrl,H));G.urlEndpoint&&G.urlEndpoint.url&&(G.urlEndpoint.url=uM3(G.urlEndpoint.url,H));G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url&&(G.commandMetadata.webCommandMetadata.url=uM3(G.commandMetadata.webCommandMetadata.url,H))},
truncateWebCommendMetadataUrl_:function(G){if(G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.url){var H=G.commandMetadata.webCommandMetadata.url,Z=H.indexOf("&pp=");if(Z>0){var Q=H.indexOf("&",Z+1);G.commandMetadata.webCommandMetadata.url=Q>Z&&Q<H.length?H.slice(0,Z)+H.slice(Q):H.slice(0,Z)}}},
configureClickTargets:function(G,H,Z){this.containerId=G;this.clickTargetMap=new Map;G=_.I(H);for(H=G.next();!H.done;H=G.next())if(H=H.value,H.location){var Q=Z.get(H.location);Q&&(_.Gq(_.F9(this.hostElement).querySelector("#"+Q),"yt-simple-endpoint",this.isClickAllowed_(H)),this.clickTargetMap.set(Q,H))}},
isClickAllowed_:function(G){return G.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||G.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Si={};
_.Si.YtLazyListBehavior=[_.Q6.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 G=(this.constructor.generatedFrom||this).observers;G||(G=[]);G.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
G}},
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 G=this.renderElementsOutsideVisibleArea_;G&&(zwN(G,4),G.processSignal())},
deepLazyListObserver_:function(G){var H=this;if(G){var Z=G.value||[];if(this.itemsPath==G.path){var Q=this.nonDeferredItemCount;G=0;Q>-1&&Z.length>Q&&(G=_.xI("REMAINING_DOVA_DEFERRED_CHUNKS",-1));G>0?(Q>0&&(Q=Z.slice(0,Q),this.setInitialItemsOnDataChanged(Q)),(Q=this.renderElementsOutsideVisibleArea_)?Q.cancel():(Q=this.renderElementsOutsideVisibleArea_=new _.l1(2,"eocs"),_.tkU(window,"scroll",function(){return H.renderDeferredElements()})),_.gv(Q,function(){H.setInitialItemsOnDataChanged(Z)}),_.Ae("REMAINING_DOVA_DEFERRED_CHUNKS",
G-1)):this.setInitialItemsOnDataChanged(Z)}else if(this.itemsPath+".splices"==G.path)this.onItemsUpdated_(Z);
else Q="shownItems"+G.path.substr(this.itemsPath.length),this.useSignals&&Q==="shownItems.length"||this.notifyPath(Q,G.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(G){G&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(G),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(G){G=G.indexSplices;for(var H=0,Z=G.length;H<Z;H++){var Q=G[H];if(Q.index<this.shownCount&&(Q.removed&&this.splice("shownItems",Q.index,Q.removed.length),Q.addedCount)){var p=Q.object.slice(Q.index,Q.index+Q.addedCount);Q=["shownItems",Q.index,0];Q.push.apply(Q,p);this.splice.apply(this,Q)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(G){this.cancelPendingTasks_();G||(G=[]);this.items_=G;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&&(_.YI("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.q2(this,this.tryRenderChunk_)))},
fillRange_:function(G,H){this.canShowMore&&this.items_&&(G=this.items_.slice(G,H),G.unshift("shownItems"),this.push.apply(this,G),this.shownCount=H,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var G=this;this.canShowMore&&_.rx(this,"renderChunk",function(){G.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.YI("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.JW(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var G=this.renderElementsOutsideVisibleArea_;G&&(G.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var G=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(G-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=G;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(G){return Math.ceil(1E3/G)},
onCanShowMoreUpdated_:function(G){this.data&&this.items_!==null&&(G?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(G){!this.shouldUseTaskManager()&&this.data&&(!G&&this.canShowMore?(_.T$o(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):G&&this.partiallyRenderedItems_.has(this.items_)&&(_.V("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var JD;_.uU={};
JD=function(){var G=_.uq.apply(this,arguments)||this;G.atStart=!0;G.atEnd=!0;G.startIndex=0;G.endIndex=0;G.scrollCount=0;G.initialStartIndex=0;G.disableScrollEventListener=!1;G.useFloorScrolling=!1;G.isSearch=!1;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.disableWheelScroll=!1;G.centerListItems=!1;G.offset=0;G.minComponentWidth=0;G.marginWidthRight=0;G.marginWidthLeft=0;G.setButtonsStateRequested=!1;G.itemsVisibilityObserver=null;G.fullyVisibleItemsIndices=[];G.JSC$14499_onWheelScroll=function(H){if(G.isSearch&&
!G.disableWheelScroll&&_.V("desktop_enable_dmpanel_wheel_scroll")){var Z=H.shiftKey?Math.abs(H.deltaY)>Math.abs(H.deltaX)?H.deltaY:H.deltaX:H.deltaX;Z!==0&&(H.preventDefault(),G.ytLazyListBehavior.fillRemainingListItems(),G.offset+=Z,Bk(G),G.reposition_())}};
G.onPointerDown=function(H){MN7(G)&&(G.dragMouseStart=H.clientX,G.dragOffsetStart=G.offset,G.dragging=!0)};
G.onPointerMove=function(H){MN7(G)&&G.dragging&&(G.ytLazyListBehavior.fillRemainingListItems(),G.offset=G.dragOffsetStart-(H.clientX-G.dragMouseStart),Bk(G),G.reposition_())};
G.onPointerUp=function(){MN7(G)&&(G.dragging=!1)};
return G};
_.T(JD,_.uq);var jL4=function(G){var H=_.F9(G.hostElement).querySelector("#items").children;if(!H)return 0;var Z=0;G=_.I(G.fullyVisibleItemsIndices);for(var Q=G.next();!Q.done;Q=G.next())Z+=H[Q.value].clientWidth;return Z},MN7=function(G){return G.isSearch&&_.V("desktop_enable_dmpanel_click_drag_scroll")};
JD.prototype.created=function(){this.cachedViewportWidth=_.xI("initialInnerWidth")||window.innerWidth;this.JSC$14499_cachedViewportHeight=_.xI("initialInnerHeight")||window.innerHeight;_.xI("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Ae("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
JD.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.V("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();PiT(this)};
JD.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.V("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var G;(G=this.itemsVisibilityObserver)==null||G.disconnect();this.itemsVisibilityObserver=null;var H;(H=this.itemsObserver)==null||H.disconnect()};
var PiT=function(G){var H=_.F9(G.hostElement).querySelector("#scroll-container");if(H){if(!G.itemsVisibilityObserver){var Z=window.getComputedStyle(H).marginRight;G.itemsVisibilityObserver=new IntersectionObserver(function(Q){rb7(G,Q)},{root:H,
rootMargin:Z,threshold:.98})}if(H=_.F9(G.hostElement).querySelector("#items"))G.itemsObserver=new pTa(H,function(Q){wIT(G,Q)})}},wIT=function(G,H){h0d(G)&&(Array.from(H.addedNodes).filter(function(Z){return Z.nodeType===Node.ELEMENT_NODE}).forEach(function(Z){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.observe(Z)}),Array.from(H.removedNodes).filter(function(Z){return Z.nodeType===Node.ELEMENT_NODE}).forEach(function(Z){G.itemsVisibilityObserver&&G.itemsVisibilityObserver.unobserve(Z)}))},
rb7=function(G,H){var Z=new Set(G.fullyVisibleItemsIndices);
H=_.I(H);for(var Q=H.next();!Q.done;Q=H.next()){Q=Q.value;var p=Q.target.parentElement;p?(p=Array.from(p.children).indexOf(Q.target),Q.isIntersecting?Z.add(p):Z.has(p)&&Z.delete(p)):_.Rp(new _.C$("Parent element not found",Q.target.nodeName))}G.fullyVisibleItemsIndices=Array.from(Z).sort(function(l,q){return l-q});
Z.size===0?_.Rp(new _.C$("No visible entries in horizontal list")):(G.startIndex=G.fullyVisibleItemsIndices[0],G.endIndex=G.fullyVisibleItemsIndices[G.fullyVisibleItemsIndices.length-1])},h0d=function(G){G.data?G=(G=G.data)&&G.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===G.itemSizeConstraint:!1:G=!1;
return G};
_.g=JD.prototype;_.g.addScrollEventListeners=function(){var G=_.F9(this.hostElement).querySelector("#scroll-container");G.style.touchAction="pan-y";G.addEventListener("wheel",this.JSC$14499_onWheelScroll);G.addEventListener("pointerdown",this.onPointerDown);G.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.g.removeScrollEventListeners=function(){var G=_.F9(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.JSC$14499_onWheelScroll);G.removeEventListener("pointerdown",this.onPointerDown);G.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.g.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.q2(this,this.setStartIndex,[this.initialStartIndex])};
_.g.reposition_=function(){var G=_.xI("HTML_DIR")=="rtl"?"":"-",H=_.F9(this.hostElement).querySelector("#items");H&&(H.style.transform="translateX("+G+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.g.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.q2(this,this.setButtonsState_))};
_.g.setButtonsState_=function(){this.setButtonsStateRequested=!1;var G=_.F9(this.hostElement).querySelector("#items").firstElementChild;if(G){this.minComponentWidth||(this.minComponentWidth=Cix(this,G));G=_.F9(this.hostElement).querySelector("#scroll-container").clientWidth;var H=_.F9(this.hostElement).querySelector("#items");H=_.V("kevlar_horizontal_list_scroll_width_killswitch")?H.clientWidth:H.scrollWidth;var Z=this.get(this.ytLazyListBehavior.itemsPath,this);if(Z){var Q=Math.round(G/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+Q,Z.length)-1)}this.ytLazyListBehavior.canShowMore?H+this.minComponentWidth>=this.offset+G&&(this.atEnd=!1):this.atEnd=this.offset+G>=H-20?!0:!1;this.atStart=this.offset<=20}};
_.g.setStartIndex=function(G){if(!this.minComponentWidth){var H=_.F9(this.hostElement).querySelector("#items").firstElementChild;if(!H)return;this.minComponentWidth=Cix(this,H)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*G;Bk(this);this.reposition_()};
_.g.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Dy();var G=_.F9(this.hostElement).querySelector("#scroll-container").clientWidth;_.V("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Cix(this,_.F9(this.hostElement).querySelector("#items").firstElementChild));G=this.useFloorScrolling?Math.floor(G/this.minComponentWidth)||1:Math.round(G/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&iZa(this);this.offset+=h0d(this)?
jL4(this):G*this.minComponentWidth;Bk(this);this.reposition_();this.scrollCount++};
_.g.prevClick_=function(){var G=_.F9(this.hostElement).querySelector("#scroll-container").clientWidth;G=this.useFloorScrolling?Math.floor(G/this.minComponentWidth)||1:Math.round(G/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=h0d(this)?jL4(this):this.minComponentWidth*this.scrollCount-1):this.offset-=h0d(this)?jL4(this):G*this.minComponentWidth;this.centerListItems&&iZa(this);Bk(this);this.reposition_()};
_.g.onIronResize_=function(){this.resizeSupportEnabled&&_.q2(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.g.onItemsTransitionEnd_=function(G){_.a_(G)===_.F9(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.g.onChildElementFocus_=function(G){G=G.target.closest("#items > *");var H=_.F9(this.hostElement).querySelector("#scroll-container");if(H.contains(G)){if(_.V("web_horizontal_list_behavior_focus_killswitch"))if(G.offsetLeft<this.offset)this.offset=Math.abs(G.offsetLeft)<G.clientWidth?0:G.offsetLeft;else if(G.offsetLeft+G.clientWidth>this.offset+H.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Dy(),this.offset=G.offsetLeft+G.clientWidth-H.clientWidth;else return;else{var Z=_.F9(this.hostElement).querySelector("#items"),
Q=_.xI("HTML_DIR")==="rtl",p=Q?Z.clientWidth-G.offsetLeft:G.offsetLeft;Z=Q?Z.clientWidth-(G.offsetLeft+G.clientWidth):G.offsetLeft+G.clientWidth;var l=Q?p>this.offset+H.clientWidth:p<this.offset,q=Q?Z<this.offset:Z>this.offset+H.clientWidth,u=Q?l:q;if(Q?q:l)H=Q?Z:p,this.offset=Math.abs(H)<G.clientWidth?0:H;else if(u)this.ytLazyListBehavior.fillRemainingListItems(),_.Dy(),this.offset=(Q?p:Z)-H.clientWidth;else return}Bk(this);this.reposition_()}};
_.g.observeShownItems_=function(){this.reset()};
_.g.checkComponentWidthResize=function(){var G=_.F9(this.hostElement).querySelector("#items").firstElementChild;G&&(G=Cix(this,G),this.centerListItems||G!==this.minComponentWidth)&&(this.minComponentWidth=G,this.offset=G*this.scrollCount,this.centerListItems&&iZa(this),Bk(this),this.reposition_())};
var Cix=function(G,H){var Z=window.getComputedStyle(H).marginRight;Z=Math.floor(Number(Z.replace("px","")));var Q=window.getComputedStyle(H).marginLeft;Q=Math.floor(Number(Q.replace("px","")));G.centerListItems&&!G.marginWidthRight&&(G.marginWidthRight=Z,G.marginWidthLeft=Q);return G.resizeSupportEnabled?H.getBoundingClientRect().width+Z:H.offsetWidth+Z},Bk=function(G){var H=_.F9(G.hostElement).querySelector("#scroll-container").clientWidth,Z=_.F9(G.hostElement).querySelector("#items").clientWidth;
G.offset<0?G.offset=0:G.offset+H>=Z&&(G.offset=Z-H)},iZa=function(G){G.offset-=(_.F9(G.hostElement).querySelector("#scroll-container").clientWidth+G.marginWidthRight-G.minComponentWidth)/2-G.marginWidthLeft};
_.u4.Object.defineProperties(JD.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var G=_.xI("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(G==-1)G=this.JSC$14499_cachedViewportHeight,G=G>1320?5:G>1020?4:G>730?3:G>430?2:1;else if(G==0)return 0;_.Ae("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",G-1);G=_.xI("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(G>-1)return G;G=this.cachedViewportWidth;G=G>1600?6:G>1400?5:G>1300?4:G>1090?5:G>870?4:G>660?3:2;_.Ae("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
G);return G},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.V("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
JD.prototype.observeShownItems_=JD.prototype.observeShownItems_;JD.prototype.onChildElementFocus_=JD.prototype.onChildElementFocus_;JD.prototype.onItemsTransitionEnd_=JD.prototype.onItemsTransitionEnd_;JD.prototype.onIronResize_=JD.prototype.onIronResize_;JD.prototype.prevClick_=JD.prototype.prevClick_;JD.prototype.nextClick_=JD.prototype.nextClick_;JD.prototype.setButtonsState_=JD.prototype.setButtonsState_;JD.prototype.requestButtonsStateUpdate_=JD.prototype.requestButtonsStateUpdate_;
JD.prototype.reposition_=JD.prototype.reposition_;JD.prototype.reset=JD.prototype.reset;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],JD.prototype,"ytLazyListBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],JD.prototype,"atStart",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],JD.prototype,"atEnd",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"startIndex",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"endIndex",void 0);_.N([_.h({value:6}),_.A("design:type",Number)],JD.prototype,"initialCount",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"scrollCount",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"initialStartIndex",void 0);
_.N([_.h(),_.A("design:type",Object)],JD.prototype,"disableScrollEventListener",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"supportComponentResize",void 0);_.N([_.h({value:function(){var G=this;return function(){return G.prevClick_()}}}),
_.A("design:type",Function)],JD.prototype,"boundPrevClick",void 0);_.N([_.h({value:function(){var G=this;return function(){return G.nextClick_()}}}),
_.A("design:type",Function)],JD.prototype,"boundNextClick",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"useFloorScrolling",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"isSearch",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"dragging",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"dragMouseStart",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"dragOffsetStart",void 0);
_.N([_.h(),_.A("design:type",Object)],JD.prototype,"disableWheelScroll",void 0);_.N([_.h(),_.A("design:type",Object)],JD.prototype,"centerListItems",void 0);_.N([_.lq("iron-resize"),_.gx("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JD.prototype,"onIronResize_",null);_.N([_.lq("transitionend"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],JD.prototype,"onItemsTransitionEnd_",null);
_.N([_.lq("focusin"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],JD.prototype,"onChildElementFocus_",null);_.N([_.gx("shownItems"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JD.prototype,"observeShownItems_",null);_.N([_.BG()],JD);_.uU.YtdHorizontalListBehavior=[];_.uU.YtdHorizontalListBehavior.push(_.hS,_.Y.YtRendererBehavior,_.Si.YtLazyListBehavior,_.Ep.YtdGuideStateAwareBehavior,JD.prototype);var IbW=["APP_STATE","PI"];var tD,kE=function(G){this.hostElement=G},DK=function(G,H){if(H&&(BA2(H.viewableCommands)||BA2(H.endOfSessionCommands))){var Z=tIW(H.viewableCommands);
H=tIW(H.endOfSessionCommands);if(!tD){var Q=_.eA("custom_active_view_tos_timeout_ms");tD=Q>0&&Q!==36E5?new yIf(Jdo(),Q):new yIf(Jdo())}mNf(tD,G.hostElement);UNb(tD,G.hostElement,Z,H)}},dV=function(G){tD&&mNf(tD,G.hostElement)};var OZ4=_.CM(["about:blank"]),ajN={pushState:window.history.pushState,replaceState:window.history.replaceState};var ei=function(G){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=G;this.internalPushState=G.pushState.bind(G);this.internalReplaceState=G.replaceState.bind(G)};
ei.prototype.init=function(){this.initialized=!0};
ei.prototype.pushState=function(G,H){this.initialized||this.init();this.internalPushState&&this.internalPushState(G,"",H)};
ei.prototype.replaceState=function(G,H){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(G,"",H)};
ei.prototype.getState=function(){return this.history&&this.history.state};var ybR=function(G){var H=function(){var Z=G.apply(this,arguments)||this;Z.boundHistoryPushState=!1;Z.boundHistoryReplaceState=!1;Z.debugInfo={};return Z};
_.T(H,G);H.prototype.init=function(){var Z=_.z$("IFRAME");_.bI(Z,_.VB(OZ4));Z.sandbox="allow-same-origin";Z.style.display="none";this.iframe=Z;document.body.appendChild(Z);this.bindHistoryStateFunctions();G.prototype.init.call(this)};
H.prototype.bindHistoryStateFunctions=function(){var Z=this,Q=[],p;this.iframe&&((p=this.iframe.contentWindow)==null?0:p.history)&&(p=this.iframe.contentWindow.history)&&(Q.push(p),Object.getPrototypeOf(p)&&Q.push(Object.getPrototypeOf(p)));window.history&&Q.push(window.history);p=window.history;Object.getPrototypeOf(p)&&Q.push(Object.getPrototypeOf(p));Q.push(ajN);p=function(q){for(var u=null,B=0;B<Q.length;B++){var t=Q[B][q];if(typeof t==="function"){u=t.bind(window.history);Z.debugInfo[q]=B;break}}return u};
if(!this.boundHistoryReplaceState){var l=p("replaceState");l&&(this.internalReplaceState=l,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(p=p("pushState"))&&(this.internalPushState=p,this.boundHistoryPushState=!0)};
return H}(ei),o6R=function(){return ybR.call(this,window.history)||this};
_.T(o6R,ybR);o6R.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var nB=function(G){this.browserHistory=G;this.initialized=!1};
nB.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
nB.prototype.pushState=function(G,H){this.initialized||this.init();this.browserHistory.pushState(G,H)};
nB.prototype.replaceState=function(G,H){this.initialized||this.init();this.browserHistory.replaceState(G,H)};
nB.prototype.handlePopstate=function(G){return G.state};_.mC7=function(G,H,Z,Q,p){this.endpoint=G;this.forward=H;this.historyEntry=Z;this.JSC$30489_savedComponentState=Q;this.legacyBorder=p===void 0?!1:p};var UCw=function(G,H){this.rootData=G;this.scrollTop=H};_.Vp=new _.Gv("EPHEMERAL_STORE_TOKEN");_.$E=function(G){this.data=Object.assign({},G);var H;(H=this.data.innertubeResponse)==null||delete H.frameworkUpdates};
_.$E.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.t3)()};
_.mU=function(G){return Object.assign({},G.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var R07=function(){this.maxSize=100;this.timeToDataCache=new Map};
R07.prototype.get=function(G){var H=this.timeToDataCache.get(G);H&&(this.timeToDataCache.delete(G),this.timeToDataCache.set(G,H));if(H&&H.rootData&&(_.V("web_use_response_store_for_history_cache")||_.V("mweb_use_new_history_manager"))){var Z=_.tp().resolve(_.Vp),Q=NLw(H),p=!!Q;if(Q){if(Q.content){var l=X_(Z,Q.content);p&&l?H.rootData.response=_.mU(l):p=!1}Q.player&&(l=X_(Z,Q.player),p&&l?H.rootData.playerResponse=_.mU(l):p=!1);Q.reelSequence&&(Z=X_(Z,Q.reelSequence),p&&Z?H.rootData.reelWatchSequenceResponse=
_.mU(Z):p=!1)}p||(this.timeToDataCache.delete(G),H=void 0)}return H};
R07.prototype.set=function(G,H){if(H.rootData&&(_.V("web_use_response_store_for_history_cache")||_.V("mweb_use_new_history_manager"))){var Z=NLw(H),Q=Object.assign({},H.rootData);Z&&(Z.content&&H.rootData.response&&(Ab2(this,Z.content,H.rootData.response),Q.response=null),Z.player&&H.rootData.playerResponse&&(Ab2(this,Z.player,H.rootData.playerResponse),Q.playerResponse=null),Z.reelSequence&&H.rootData.reelWatchSequenceResponse&&(Ab2(this,Z.reelSequence,H.rootData.reelWatchSequenceResponse),Q.reelWatchSequenceResponse=
null));H=new UCw(Q,H.scrollTop)}this.timeToDataCache.has(G)?this.timeToDataCache.delete(G):this.timeToDataCache.size>=this.maxSize&&(Z=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(Z.value));this.maxSize!==0&&this.timeToDataCache.set(G,H)};
R07.prototype.clear=function(){this.timeToDataCache.clear()};
var NLw=function(G){var H=_.tp().resolve(_.Jp(_.JB)),Z;if((Z=G.rootData)==null?0:Z.endpoint)return H==null?void 0:XHj(H,G.rootData.endpoint);var Q;_.Rp(new _.C$("History snapshot response data does not contain endpoint",(Q=G.rootData)==null?void 0:Q.url));return null},Ab2=function(G,H,Z){if(G.maxSize>0){var Q;
(G=(Q=Z.responseContext)==null?void 0:Q.maxAgeSeconds)&&Number(G)>0&&(Q=_.tp().resolve(_.Vp),Z=YV(Z,G),Q.put(H,new _.$E(Z)))}};var xCa=function(G,H,Z){this.endpoint=H;this.JSC$30495_savedComponentState=Z===void 0?null:Z;this.entryTime=G};var dMW=1;var ck=function(G){var H=function(){var Z=G.apply(this,[].concat(_.OP(_.Ry.apply(0,arguments))))||this;Z.historyEntryTime=0;Z.historySnapshotCache=Z.createHistoryCache();return Z};
_.T(H,G);H.prototype.createHistoryCache=function(){return new R07};
H.prototype.saveAndReplace=function(Z,Q,p){var l=window.location.href;var q=q===void 0?{}:q;var u=(u=this.browserHistory.getState())&&u.entryTime?u.entryTime:eqU();Z=this.createNewHistoryEntry(Z,q,u);this.saveSnapshot(u,Q,p);this.replaceState(Z,l||window.location.href)};
H.prototype.saveAndPush=function(Z,Q,p,l,q){q=q===void 0?{}:q;this.saveSnapshot(this.historyEntryTime,p,l);p=this.historySnapshotCache;l=this.historyEntryTime;var u=p.timeToDataCache.keys();u=_.I(u);for(var B=u.next();!B.done;B=u.next())B=B.value,B>l&&p.timeToDataCache.delete(B);Q=this.createNewHistoryEntry(Q,q);this.pushState(Q,Z)};
H.prototype.saveSnapshot=function(Z,Q,p){this.historySnapshotCache.set(Z,new UCw(Q,p))};
H.prototype.createNewHistoryEntry=function(Z,Q,p){p=p===void 0?eqU():p;return new xCa(p,Z,Q)};
H.prototype.handlePopstate=function(Z){var Q=G.prototype.handlePopstate.call(this,Z),p=null,l=null,q=!1,u=null;Q&&Q.entryTime&&(u=this.historySnapshotCache.get(Q.entryTime)||null,q=Q.entryTime>this.historyEntryTime,this.historyEntryTime=Q.entryTime,p=Q.endpoint,l=Q.JSC$30495_savedComponentState);this.handleHistoryCacheLoad(new _.mC7(p,q,u,l),Z);return Q};
H.prototype.pushState=function(Z,Q){Number(Z==null?void 0:Z.entryTime)>=0&&(this.historyEntryTime=Z.entryTime);G.prototype.pushState.call(this,Z,Q)};
H.prototype.replaceState=function(Z,Q){Number(Z==null?void 0:Z.entryTime)>=0&&(this.historyEntryTime=Z.entryTime);G.prototype.replaceState.call(this,Z,Q)};
H.prototype.handleHistoryCacheLoad=function(){};
return H}(nB),LF7=function(){var G=ck.call(this,new o6R)||this;
G.dispatchElement=null;G.entryIndex=0;return G};
_.T(LF7,ck);_.g=LF7.prototype;_.g.init=function(G){G=G===void 0?!0:G;ck.prototype.init.call(this);this.initialized||(G||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.g.handlePopstate=function(G){var H=null;G.state||(H="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return ck.prototype.handlePopstate.call(this,G);var Z=new CustomEvent("yt-history-pop",{cancelable:!0});_.AZ(this.dispatchElement,"yt-history-pop",[Z,{errorMsg:H}]);_.xk(this.dispatchElement,"yt-close-all-popups-action");if(!Z.defaultPrevented){Z=_.tp().resolve(_.o0);H=Z.getCurrentData();var Q=Z.getCurrentPage();Z=0;Q?(Q=_.AZ(this.dispatchElement,"yt-get-page-offset",
[Q]),Q.length>0&&(Z=Q[0])):_.Rp(new _.C$("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:H?H.page:"undefined"}));H&&(H.csn=_.$k());this.saveSnapshot(this.historyEntryTime,H,Z)}return ck.prototype.handlePopstate.call(this,G)};
_.g.handleHistoryCacheLoad=function(G,H){G.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.I(_.xk(this.dispatchElement,"yt-history-will-navigate",[H])).next().value||_.AZ(this.dispatchElement,"yt-history-load",[H,G]))};
_.g.pushState=function(G,H){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var Z=new _.C$("history.pushState is not a function",this.getDebugString());_.me(Z)}ck.prototype.pushState.call(this,G,H)};
_.g.replaceState=function(G,H){if(!this.browserHistory.boundHistoryReplaceState){var Z=new _.C$("history.replaceState is not a function",this.getDebugString());_.me(Z)}ck.prototype.replaceState.call(this,G,H)};
_.g.saveAndPush=function(G,H,Z,Q,p){p=p===void 0?{}:p;Z&&(Z.csn=_.$k());ck.prototype.saveAndPush.call(this,G,H,Z,Q,p)};
_.g.getDebugString=function(){var G=[];this.initialized&&G.push("i");this.browserHistory.boundHistoryReplaceState&&G.push("bhr");this.browserHistory.boundHistoryPushState&&G.push("bhs");"replaceState"in this.browserHistory.debugInfo&&G.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&G.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&G.push("ei:"+String(this.entryIndex));return G.join(",")};
_.TV=function(G,H){G.init(!0);var Z=G.browserHistory.getState();G.replaceState(Z,EO(H))};
LF7.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.fB=new _.Gv("DESKTOP_HISTORY_MANAGER_TOKEN");var E6_=[10,20,30,40,50,60],vk=function(){this.currentPartitionIndex=0},Y92=function(G){z9a({mainAppWeb:_.wT(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},FF7=function(G){z9a({mainAppWeb:_.wT(),
survivalSli:{partitionMinute:G,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},bZR=function(G){return G.currentPartitionIndex>=0&&G.currentPartitionIndex<E6_.length?E6_[G.currentPartitionIndex]:-1},GT2=function(G){return G.currentPartitionIndex>0&&G.currentPartitionIndex-1<E6_.length?E6_[G.currentPartitionIndex-1]:-1};
vk.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var G=GT2(this);G>0&&FF7(G);G=bZR(this);G>0&&Y92(G);HLR(this)}};
var HLR=function(G){var H=bZR(G);if(H>0){var Z=GT2(G);Z<0&&(Z=0);G.intervalId=_.Ui.addJob(function(){var Q=GT2(G);Q>0&&FF7(Q);Q=bZR(G);Q>0&&Y92(Q);HLR(G)},3,(H-Z)*6E4);
G.currentPartitionIndex+=1}else G.currentPartitionIndex=-1};var sgR=function(G){n6.call(this,G,132);this.isDocument=G===document.documentElement};
_.T(sgR,n6);sgR.prototype.calculateScrollDelta=function(G,H,Z){var Q=0;G<H?Q=G<H-100?-48:-8:G>H+Z&&(Q=G>H+Z+100?48:8);return Q};
sgR.prototype.JSC$11400_onMouseMove=function(G){this.isDocument||(G.clientX=G.event_.pageX,G.clientY=G.event_.pageY);n6.prototype.JSC$11400_onMouseMove.call(this,G)};_.ZLG=function(G,H){var Z=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14553_dragListGroup=null;this.onDraggerCreated=function(Q){var p=Q.JSC$11396_dragger;p.scrollTarget_=Z.scrollElement;Q=Q.draggerEl;p&&Q.menuOpened&&p.setEnabled(!1)};
this.onDragStart=function(Q){var p=Q.draggerEl;Q=Q.currDragItem;var l=Object.assign({},Q==null?void 0:Q.data);l.trackingParams=void 0;p.data=l;p.style.position="absolute";p.style.width=(Q==null?void 0:Q.clientWidth)+"px";p.style.zIndex="2030";p.onDrag&&p.onDrag();Q=_.N4(p);(l=Q.querySelector("ytd-app"))?_.F9(l).appendChild(p):Q.body.appendChild(p);Z.dragScrollSupport=new sgR(Z.scrollElement);Z.dragScrollSupport.horizontalScrolling_=!1;p=Z.dragScrollSupport;p.constrainScroll_=!!p.margin_&&!1};
this.onDrop=function(Q){Z.handleDrop(Q);Z.dragScrollSupport&&(_.S_(Z.dragScrollSupport),Z.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(Z.JSC$14553_dragListGroup){var Q=Z.JSC$14553_dragListGroup;KGw(Q,Q.currDragItem_)}};
this.handleDrop=H};
_.Wk=function(G){G.JSC$14553_dragListGroup&&(_.VX(G.JSC$14553_dragListGroup,VQd,G.onDragStart),_.VX(G.JSC$14553_dragListGroup,Tb7,G.onDragStart),G.JSC$14553_dragListGroup.dispose(),G.JSC$14553_dragListGroup=null);G.dragScrollSupport&&(_.S_(G.dragScrollSupport),G.dragScrollSupport=null);G.scrollElement.removeEventListener("scroll",G.onReorderableScroll)};
_.Qg7=function(G,H,Z,Q){Q=Q===void 0?"":Q;_.Wk(G);Z&&(G.scrollElement=Z);G.JSC$14553_dragListGroup=new mr;G.JSC$14553_dragListGroup.hysteresisDistance_=2;vVw(G.JSC$14553_dragListGroup,H);G.JSC$14553_dragListGroup.draggerElClasses_=kR("dragging").split(" ");Q&&WG_(G.JSC$14553_dragListGroup,function(p){var l=p||document,q=null;l.getElementsByClassName?q=l.getElementsByClassName(Q)[0]:q=grt("*",Q,p);return q||p});
_.tt(G.JSC$14553_dragListGroup,eh7,G.onDraggerCreated);_.tt(G.JSC$14553_dragListGroup,VQd,G.onDragStart);_.tt(G.JSC$14553_dragListGroup,Tb7,G.onDrop);G.JSC$14553_dragListGroup.init();G.scrollElement.addEventListener("scroll",G.onReorderableScroll,{passive:!0})};
_.u4.Object.defineProperties(_.ZLG.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var paN=function(){this.skipNextNavigation=!1},lPt=function(G,H,Z){if(!H)return!1;
if(G.skipNextNavigation)return G.skipNextNavigation=!1;if(_.X(Z,_.Hx))return!1;var Q,p,l;if((Q=_.X(Z,_.gT))==null?0:(p=Q.browseEndpointContextSupportedConfigs)==null?0:(l=p.browseEndpointContextMainConfig)==null?0:l.skipConfirmation)return!1;var q;return((q=_.X(H.commandMetadata,_.HA))==null?void 0:q.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
paN.prototype.showConfirmationDialog=function(G,H){this.navigateParams=H;this.customConfirmationCommand?_.tp().resolve(_.Dk).resolveCommand(this.customConfirmationCommand):(H={openPopupAction:{popup:{confirmDialogRenderer:{title:_.aq(_.Zg("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.aq(_.Zg("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.aq(_.Zg("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.aq(_.Zg("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.sS.getInstance().triggerAction("yt-open-popup-action",H,G))};
paN.prototype.cancelPendingNavigation=function(){var G;((G=this.navigateParams)==null?void 0:G.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var gt4=function(){},qm4=function(G,H,Z,Q,p,l,q){Z=Z===void 0?{}:Z;
q=q===void 0?{}:q;var u=_.tp().resolve(_.JB),B,t=(B=_.X(H,_.Hx))==null?void 0:B.url;return t?QFj(u,t,Z,window.location.href,function(D,d){IPw(G,D,d,!1,!0,Z,l,Q)},function(){return!1}):MW(u,H,Z,window.location.href,ql(H),function(D,d){IPw(G,D,d,!1,!0,Z,l,Q)},p,q)},IPw=function(G,H,Z,Q,p,l,q,u){if(!G.JSC$14568_chunkHandler)if(Z.page==="learning_journey_watch"&&_.V("web_enable_canvas_on_learning_journey")){var B=!_.X(u,_.gT);
p=p||Q;if(B)if(p){if(_.V("kevlar_continue_playback_without_player_response")){var t;var D=(t=_.X(u,_.hZ))==null?void 0:t.videoId}Q={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Q,previousVideoId:D},tempData:l}}else Q={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else Q={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};G.JSC$14568_chunkHandler=new YE4(_.UO,Q,q,B,p)}else if(Z.page==="watch"||Z.page==="learning_journey_watch")if(p||Q){if(_.V("kevlar_continue_playback_without_player_response")){var d;
B=(d=_.X(u,_.hZ))==null?void 0:d.videoId}G.JSC$14568_chunkHandler=new GSR(_.UO,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Q,previousVideoId:B},tempData:l},q)}else G.JSC$14568_chunkHandler=new LEG(_.UO);else Z.page==="shorts"&&p&&!Q?G.JSC$14568_chunkHandler=new b5w(_.UO,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:l},q):G.JSC$14568_chunkHandler=new EZ4(q);G.JSC$14568_chunkHandler.processChunk({endpoint:H,data:Z});return G.JSC$14568_chunkHandler.jf.promise},
SmN=function(G,H,Z,Q,p){(Z=_.tv_(Z))&&IPw(G,H,Z,!1,!0,Q,void 0,p)};_.u5w=new _.Gv("NAVIGATION_SERVICE_TOKEN");var B24=function(){this.pendingNavigationPromise=null};
_.g=B24.prototype;_.g.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.g.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.g.addEventListener=function(){throw Error("yh");};
_.g.dispatchEvent=function(){throw Error("yh");};
_.g.removeEventListener=function(){throw Error("yh");};var Jxx=new _.Gv("APP_ROOT");var VIf=null;var tFa=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],zV=function(){_.$f.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];kTx(this)};
_.T(zV,_.$f);zV.prototype.verifyUser=function(){var G=kTx(this),H=G.logout;if(!G.sessionChange)return!0;this.dispatchEvent("ytsessionchange");H&&this.dispatchEvent("ytuserinvalid");return!1};
var kTx=function(G){var H=tFa.map(function(p){var l;return(l=_.jA.get(p))!=null?l:""}),Z=H.some(function(p,l){return G.sessionCookies&&G.sessionCookies[l]!==""&&p===""}),Q=H.some(function(p,l){return G.sessionCookies&&G.sessionCookies[l]!==p});
G.sessionCookies=H;return{logout:Z,sessionChange:Q}};
zV.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Ui.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var v$b=new _.Gv("POSTMESSAGE_TUNNEL_TOKEN");var cde=["/parent_tools","/file_download","/artist_roster"],Kqf=[mUR,UUx,Rdx,ANt,N02,oYN,xU4,L0_];var KB=new _.Gv("NAVIGATION_CONFIRMATION_SERVICE");var DLx="/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(" "),dL_=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],Mt=function(G,H){this.pendingNavigationPromise=null;this.JSC$14591_clientRoot=G;this.historyManager=H;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 gt4;this.debugString=G.is;G={"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};_.p1(_.sS.getInstance(),G,this.JSC$14591_clientRoot)},Xa2,cxN,T2G,fPN,$Lt;
_.T(Mt,B24);Mt.prototype.reload=function(){_.zz(window.location.href)};
var d34=function(G){G.currentEndpoint&&_.X(G.currentEndpoint,_.uS)?G.reload():G.currentEndpoint&&G.navigate(G.currentEndpoint,!0,void 0,{disableCache:!0})};
Mt.prototype.navigate=function(G,H,Z,Q,p,l,q,u){H=H===void 0?!1:H;Z=Z===void 0?{}:Z;Q=Q===void 0?{}:Q;var B=_.tp().resolve(KB),t;if(!q&&lPt(B,(t=this.currentEndpoint)!=null?t:void 0,G))return B.showConfirmationDialog(this.JSC$14591_clientRoot.parentElement,{endpoint:G,reload:H,params:Z,tempData:Q,requestType:p,createScreenConfig:l}),!1;var D=_.ZO();_.QA(D,"eocs")||D.parkOrScheduleJob(function(){D.processSignal("eocs")},10,"eor");
$Mo();q=ql(G);B=Q.autonav==="1";t=_.$k();zV.instance||(zV.instance=new zV);var d=zV.instance.verifyUser(),e;if(_.V("enable_dark_theme_only_on_shorts")){var n=document.documentElement.hasAttribute("dark"),c=_.Ml(!0)==="USER_INTERFACE_THEME_DARK";if(q==="shorts"){if(!n)if(_.V("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var W;_.zz((W=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?void 0:W.url,void 0,void 0,window.top)}}else{var M;_.zz(_.l0((M=_.X(G==
null?void 0:G.commandMetadata,_.HA))==null?void 0:M.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.V("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!n){var r;_.zz(_.l0((r=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?void 0:r.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(c!==n){var w;_.zz(_.l0((w=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?void 0:w.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(q==="watch"){if(epd(_.tp().resolve(_.WM),
G)&&(d||_.V("fix_miniplayer_navigation_killswitch")))return!1;_.V("block_all_player_prefetch_requests")||(e=kS4(_.yj(_.TP),G,B))}else{var x,U=(x=_.X(this.currentEndpoint,_.hZ))==null?void 0:x.videoId;U&&_.oI.getInstance().then(function(ie){ie&&ie.set("yt-miniplayer-shown-video-id",U)})}e&&(Z.frags=e.missingFragments_.join(","));
W=null;var R;M=(R=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?void 0:R.ignoreNavigation;if(!M)if(_.V("kevlar_command_url")){var L;W=(L=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?void 0:L.url}else W=_.GkX(G,Z);if(W&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&W==this.lastNavigationUrl)return _.ee({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.HM(Wf(),"CANCELLED")}W&&(this.lastNavigationUrl=W);HJ3();_.Ae("IS_HOMEPAGE_COLD",
!1);_.Ae("IS_RESULTS_PAGE_COLD",!1);_.Ae("IS_WATCH_PAGE_COLD",!1);G.loggingUrls&&G.loggingUrls.forEach(function(ie){ie.baseUrl&&_.G_(ie.baseUrl)});
_.rdf(G,l?l.layer:0)&&_.V("kevlar_flush_logs_on_away_navigation")&&_.op();if(MIe(G))return!1;Fk4(q,p);if(!W)return M||_.Rp(new _.C$("Can't construct url for endpoint",G)),_.HM(Wf(),"FAILURE"),!1;_.Xpb();R=G&&_.X(G,_.gT)&&_.X(G,_.gT).browseId.startsWith("UC");Z=(L=_.V("enable_dark_theme_only_on_shorts")&&q==="shorts"?!1:_.jX()&&document.documentElement.hasAttribute("dark")!==_.K3())?{themeRefresh:1}:{};L&&!_.r7()&&_.Ml()==="USER_INTERFACE_THEME_DARK"&&(Z.theme="dark");R=L||ntw(W)&&!R&&!_.V("kevlar_disable_url_allowlist");
d||(R=!0);if(R||_.xI("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var H3;var qX=(H3=window.top)==null?void 0:H3.location.href}catch(ie){var B3;qX=(B3=ie)==null?void 0:B3.message}_.Rp(new _.C$("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:qX}))}G=_.V("kevlar_redirect_on_window_killswitch")?window.top:window;W$(W);_.zz(_.l0(W,Z),void 0,void 0,G);_.HM(Wf(),"ABORTED");return!1}_.V("kevlar_early_popup_close")&&_.AZ(this.JSC$14591_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14568_chunkHandler=void 0;var fW;qX=ql((fW=this.currentEndpoint)!=null?fW:void 0);(fW=q==="shorts"&&qX==="shorts")||_.NSj();_.bW(jHM)("nr",void 0);B&&_.ee({webInfo:{navigationReason:"an"}});G.clickTrackingParams&&(Q.itct=G.clickTrackingParams,Q.csn=t);Gf2(Q);Q.endpoint=JSON.stringify(G);_.V("enable_unknown_lact_fix_on_html5")&&(_.tp().resolve(_.Bh),Q.lact=_.JL());_.oN.isEmpty(Q)||_.aO(W,Q);!_.V("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(l=Object.assign({},{layer:0},l,{parentLayer:3}));this.pendingNavigationPromise=l=qm4(this.pageFetcher,G,Q,this.currentEndpoint,this.JSC$14591_isNetworkPromiseStale.bind(this),l,u);l=l.then(this.handleNavigateSuccess.bind(this,l,G,e,Q),this.handleNavigateFail.bind(this,l,G));_.PN().navigationFinishPromise=l;H={endpoint:G,pageType:q,url:EO(W),reload:!!H,noProgressBar:fW};p&&(H.type=p);var e2;p=_.lS((e2=this.currentEndpoint)!=null?e2:null);e2=_.lS(G!=null?G:null);this.fireEvent("yt-navigate-start",
H);var $R;($R=_.tp().resolve(_.Jp(_.u5w)))==null||$R.publish("navigation-start",{sourcePageSubtype:p,destinationPageSubtype:e2});e&&SmN(this.pageFetcher,G,e,Q,this.currentEndpoint);return!0};
Mt.prototype.JSC$14591_isNetworkPromiseStale=function(G){return G!=this.pendingNavigationPromise};
var VF2=function(G,H,Z,Q,p){var l=ql(H);H={endpoint:H,pageType:l};p&&(H.errorMessage=p);_.Rp(Z);H.navigationDoneMs=_.$K("nd");H.navigationErrorReason=Q;G.fireEvent("yt-navigate-error",H)};
Mt.prototype.handleNavigateFail=function(G,H,Z){var Q=void 0;Z instanceof _.fA&&(Q=Z,FGe(Z));if(this.JSC$14591_isNetworkPromiseStale(G))return _.DJ(Q);_.HM(Wf(),"FAILURE");VF2(this,H,Z,"101");return _.DJ(Z)};
Mt.prototype.handleNavigateSuccess=function(G,H,Z,Q,p){if(this.JSC$14591_isNetworkPromiseStale(G))return _.Yk();this.pendingNavigationPromise=null;if(!p)return H=new _.C$("Missing data in response for navigation endpoint",H),_.DJ(H);if(p.reload)return window.location.reload(!0),_.Yk();Z&&(G={},_.oN.extend(G,_.tv_(Z),p),p=G);var l,q;Z=(l=p)==null?void 0:(q=l.timing)==null?void 0:q.responseStart;Z!=null&&_.$K("srt",Z);_.$K("pdc");var u,B;l=(u=p)==null?void 0:(B=u.timing)==null?void 0:B.info;l!=null&&
(u=_.bW(_.hHv)(l),_.ee(u));_.HM(Wf(),"SUCCESS");$Lt(this,H,p,1,Q);return _.Yk()};
var ntw=function(G){var H=G;_.V("kevlar_no_redirect_to_classic_2_ks")||(H=(new _.C9(G)).getPath());if(H==="/"||H==="/red")return!1;var Z=!0;DLx.forEach(function(Q){G.indexOf(Q)===0&&(Z=!1)});
dL_.forEach(function(Q){var p=Q.url;_.V(Q.expFlag)&&G.indexOf(p)===0&&(Z=!1)});
return Z};
Mt.prototype.publishPageData=function(G){this.fireEvent("yt-page-data-fetched",{pageData:G})};
Xa2=function(G,H,Z,Q,p,l){var q=null;H.page!=="watch"&&H.page!=="learning_journey_watch"||Q?H.filler||_.AZ(G.JSC$14591_clientRoot,"yt-stop-old-player",[H]):q=IPw(G.pageFetcher,p,H,Z,!1,l,void 0,G.currentEndpoint);if(q)return q.then(G.publishPageData.bind(G,H));G.publishPageData(H);return _.Yk()};
cxN=function(G,H,Z){var Q=null;if(!Z)return Q=new _.C$("Empty data",G.debugString,H);var p=Z.response;if(!p)return Q;var l={endpointType:ql(H)||"unknown"};p.responseContext?(p=p.responseContext.errors)&&(Q=new _.C$("Errors in response context",G.debugString,H,p,l)):Q=p.error||p.errorMetadata?new _.C$("Errors in response",G.debugString,H,p.error,p.errorMetadata,l):new _.C$("responseContext missing",G.debugString,H,Object.keys(p).sort().join(","),l);var q,u,B,t;if(G=Z==null?void 0:(q=Z.response)==null?
void 0:(u=q.responseContext)==null?void 0:(B=u.webResponseContextExtensionData)==null?void 0:(t=B.webResponseContextDebugData)==null?void 0:t.debugErrorMessages)for(q=0;q<G.length;q++);return Q};
T2G=function(G){var H,Z,Q,p;return G==null?void 0:(H=G.response)==null?void 0:(Z=H.responseContext)==null?void 0:(Q=Z.errors)==null?void 0:(p=Q.error)==null?void 0:p["0"]};
fPN=function(G,H){var Z;if(Z=H.url&&!H.url.startsWith("/clip"))Z=H.url,Z=!_.V("webfe_parse_debug_param_in_resolveurl_service")&&G.searchDebugUrlMatcher.test(Z)||gKW(Z)?!0:!1;if(Z)gKW(H.url)&&_.p$(window.location.href).themeRefresh?(H=_.ya(H.url,"themeRefresh"),_.TV(G.historyManager,H)):H.url&&!kHf(H.url)&&_.TV(G.historyManager,H.url);else if(H.endpoint){var Q,p,l;(Z=(Q=H.endpoint)==null?void 0:(p=Q.commandMetadata)==null?void 0:(l=p.webCommandMetadata)==null?void 0:l.url)&&!kHf(Z)&&_.TV(G.historyManager,
Z);Z&&H.url&&Z!=H.url&&!H.url.match("playnext=1")&&new _.C$("Response url mismatch in response data",G.debugString,Z,H.url)}};
_.vtt=function(G,H,Z,Q,p,l,q,u){l=l===void 0?!1:l;var B=_.tp().resolve(KB),t;if(!u&&lPt(B,(t=G.currentEndpoint)!=null?t:void 0,H))return B.showConfirmationDialog(G.JSC$14591_clientRoot.parentElement,{endpoint:H,data:Z,navigationType:Q,tempData:p,isMiniplayer:l,isForwardHistoryNavigation:q==null?void 0:q.forward}),_.Yk();G.pageFetcher.JSC$14568_chunkHandler=void 0;return $Lt(G,H,Z,Q,p,l)};
$Lt=function(G,H,Z,Q,p,l){l=l===void 0?!1:l;G.isMiniplayerExpansion=l;var q=Q===2;G.currentEndpoint=H;G.numNavigations++;G.numNavigations&&(yzo.navigationCount=G.numNavigations);_.Ae("NUM_NAV",G.numNavigations);var u=cxN(G,H,Z);if(u)return VF2(G,H,u,"102",T2G(Z)),_.DJ(u);var B,t,D,d;u=Z.rootVe||(Z==null?void 0:(B=Z.response)==null?void 0:(t=B.responseContext)==null?void 0:(D=t.webResponseContextExtensionData)==null?void 0:(d=D.ytConfigData)==null?void 0:d.rootVisualElementType);!q&&Z&&fPN(G,Z);var e,
n;B=Z==null?void 0:(e=Z.response)==null?void 0:(n=e.responseContext)==null?void 0:n.maxAgeSeconds;if(!q&&!isNaN(B)){var c;_.V("kevlar_use_response_ttl_to_invalidate_cache")?c=(0,_.t3)()+1E3*B:_.V("kevlar_always_invalidate_cache")&&(c=0);isNaN(c)||(Z.expirationTime=c)}_.yj(_.TP).prefetchCache_.clear();q||Z.page!=="watch"||Z.type!=="reduced"&&Q!==1?Q=Xa2(G,Z,q,!!l,H,p):(G.publishPageData(Z),Q=_.Yk());p=Q.then(function(){var W=ql(H);W={endpoint:H,pageType:W,fromHistory:q,response:Z};W.navigationDoneMs=
_.$K("nd");G.fireEvent("yt-navigate-finish",W);var M;(M=_.tp().resolve(_.Jp(_.u5w)))==null||M.publish("navigation-end")});
Z.csn&&u&&Z.clientSideGrafts&&Q.then(G.attachClientSideGrafts.bind(G,Z,_.Va()));return p};
_.g=Mt.prototype;_.g.attachClientSideGrafts=function(G,H){G.clientSideGrafts&&H&&G.clientSideGrafts.forEach(function(Z){if(H&&Z){var Q=_.BT(Z);_.V("combine_ve_grafts")?_.gr().graftServerVe(Z,H):_.je(G.csn,H,Q)}})};
_.g.handleSignalActionHistoryBack=function(){window.history.back()};
_.g.handleSignalActionCloseWindow=function(){window.close()};
_.g.handleSignalActionReloadPage=function(){this.reload()};
_.g.handleSignalActionSoftReloadPage=function(){d34(this)};
_.g.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.g.fireEvent=function(G,H){G=new CustomEvent(G,{bubbles:!0,cancelable:!1,composed:!0,detail:H});this.dispatchEvent(G)};
_.g.addEventListener=function(G,H){this.JSC$14591_clientRoot.addEventListener(G,H)};
_.g.dispatchEvent=function(G){return this.JSC$14591_clientRoot.dispatchEvent(G)};
_.g.removeEventListener=function(G,H){this.JSC$14591_clientRoot.removeEventListener(G,H)};
Mt[kM]=[Jxx,_.fB];_.gDe=new mH("browse","h8y2qb");_.Ilf=new mH("search","JzFVk");_.qbu=new mH("shorts","xwEKAe");_.SbU=new mH("watchFixie","nmfa2d");_.uJf=new mH("watchFlexy","CF909");_.BCU=new mH("watchGrid","Tm0L3c");_.JKf=new mH("watchLearningJourney","L3n37");var Wzx;var zp_=function(){return _.C.apply(this,arguments)||this};
_.T(zp_,_.C);_.u4.Object.defineProperties(zp_,{template:{configurable:!0,enumerable:!0,get:function(){if(Wzx===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);Wzx=G}G=Wzx;return G}}});
_.N([_.v(z07.YtPlayerBehavior),_.A("design:type",Object)],zp_.prototype,"ytPlayerBehavior",void 0);_.N([_.O({is:"ytd-player"})],zp_);var Kzt;var MFa;var jga;var ji=function(){var G=_.C.apply(this,arguments)||this;G.forceModernIconButton=!1;G.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return G};
_.T(ji,_.C);ji.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]]"}}}}}};
ji.prototype.handleAccountLinkingStateChangedCommand=function(G){if(G=_.X(G,l8w)){var H,Z=(H=this.data)==null?void 0:H.providerKey;H=G.providerKey;Z&&H&&Z.id===H.id&&Z.subject===H.subject&&(G=G.linked,G!==void 0&&(this.set("data.linked",G),this.notifyPath("data.linked"),_.V("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(G)))}};
ji.prototype.setPlayerAccountLinkState=function(G){var H=new XN_;cPx(H,VwN(new n9R,G));var Z=_.UO();Z&&Z.getPlayerPromise().then(function(Q){Q.setAccountLinkState(_.Cm(H.JSC$12325_serializeBinary(),4));Q.updateAccountLinkingConfig(G)})};
ji.prototype.handleShowAccountLinkDialog=function(){var G=this.get("button.buttonRenderer.command");G&&_.bJ([G],this.hostElement)};
_.u4.Object.defineProperties(ji.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}}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ji.prototype,"ytRendererBehavior",void 0);_.N([_.v([_.V6.YtActionHandlerBehavior]),_.A("design:type",Object)],ji.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ji.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],ji.prototype,"overrides",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ji.prototype,"forceModernIconButton",void 0);_.N([_.h({value:"bottom"}),_.A("design:type",String)],ji.prototype,"buttonTooltipPosition",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],ji.prototype,"forceIconButton",void 0);_.N([_.h(),_.A("design:type",Boolean)],ji.prototype,"disableTextTransform",void 0);
_.N([_.z("data","data.linked","data.isWarning"),_.A("design:type",Object),_.A("design:paramtypes",[])],ji.prototype,"button",null);_.N([_.O({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],ji);
_.m(ji,"ytd-account-link-button-renderer",function(){if(jga!==void 0)return jga;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return jga=G},{mode:1});var Pkt;var rxw=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Pk=function(){return _.C.apply(this,arguments)||this};
_.T(Pk,_.C);Pk.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Pk.prototype.updateButtonActiveState=function(){var G=this,H=!!rxw.find(function(Z){return G.currentState===Z});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.V("enable_web_delhi_icons")&&(H=!1);this.button&&(this.button.isPressed=H)};
_.u4.Object.defineProperties(Pk.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.playlistLoopStateEntity)==null?void 0:G.state)||((H=this.data)==null?void 0:H.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=void 0,H;if(this.currentState&&((H=this.data)==null?0:H.states)){H=_.I(this.data.states);for(var Z=H.next();!Z.done;Z=H.next()){Z=_.X(Z.value,_.XZa);var Q=void 0;if(((Q=Z)==null?void 0:Q.state)===this.currentState){G=Z;break}}}return G}}});
Pk.prototype.updateButtonActiveState=Pk.prototype.updateButtonActiveState;_.N([_.v(_.Up),_.A("design:type",Object)],Pk.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.wv.playlistLoopStateEntitySelector}),_.A("design:type",Object)],Pk.prototype,"playlistLoopStateEntity",void 0);_.N([_.h(),_.A("design:type",Object)],Pk.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Pk.prototype,"forceIconOnly",void 0);_.N([_.q6("ytd-button-renderer"),_.A("design:type",_.SE)],Pk.prototype,"button",void 0);
_.N([_.z("data","playlistLoopStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Pk.prototype,"currentState",null);_.N([_.gx("currentButtonStateRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pk.prototype,"updateButtonActiveState",null);_.N([_.z("currentState"),_.A("design:type",Object),_.A("design:paramtypes",[])],Pk.prototype,"currentButtonStateRenderer",null);
_.N([_.O({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Pk);
_.m(Pk,"ytd-playlist-loop-button-renderer",function(){if(Pkt!==void 0)return Pkt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Pkt=G},
{mode:1});var wa2;var hp2=_.Zg("DOWNLOAD",{},"Download"),Cka=_.Zg("DOWNLOADING",{},"Downloading"),iLa=_.Zg("DOWNLOADED",{},"Downloaded"),OLw=_.Zg("RETRY",{},"Retry"),rV=function(){var G=_.C.apply(this,arguments)||this;G.forceIconButton=!1;G.forceIconOnly=!1;G.overrides=!1;G.buttonTooltipPosition=!1;G.styleActionButton=!1;G.disableTextTransform=!1;G.downloadProgress=0;G.isDownloadComplete=!1;G.isHidden=!0;G.transferState="TRANSFER_STATE_UNKNOWN";G.isVideoDeletedByUser=!1;G.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return G};
_.T(rV,_.C);_.g=rV.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.dataChanged=function(){var G;(G=this.data)!=null&&G.text||(G=_.Wv(_.mm().getState(),this.videoId),this.updateButtonState(G))};
_.g.computeVideoId=function(G){return G};
_.g.computePlayerStateEntityKey=function(G){return G};
_.g.showHideButton=function(){this.updateButtonVisibility()};
_.g.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var G;((G=this.playerStateEntity)==null?void 0:G.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};
_.g.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.g.updateButtonState=function(G){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Cka||!_.uX(G))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=hp2;var H="OFFLINE_DOWNLOAD";var Z="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":G=OLw;H="OFFLINE_DOWNLOAD";Z="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":G=iLa;H="OFFLINE_PIN";Z="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":G=
Cka;H="OFFLINE_DOWNLOADING_ZERO";Z="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":G=OLw;H="OFFLINE_DOWNLOAD";Z="ACTION_RETRY";break;default:G=hp2,H="OFFLINE_DOWNLOAD",Z="ACTION_ADD"}this.isVideoDeletedByUser&&(G=hp2,H="OFFLINE_DOWNLOAD",Z="ACTION_ADD");var Q=Object.assign({},this.data);Q.text=_.aq(G);Q.tooltip=G;Q.icon={iconType:H};Q.size="SIZE_DEFAULT";Q.style="STYLE_DEFAULT";_.X(Q.command,_.Qt)&&(_.X(Q.command,_.Qt).action=Z);this.set("data",Q)}};
_.g.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var G="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?G="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?G="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?G="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?G="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?G="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(G="OFFLINE_PIN",this.isDownloadComplete=!0);var H;G!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.text=_.aq(Cka),H.tooltip=Cka,H.icon={iconType:G},_.X(H.command,_.Qt)&&(_.X(H.command,_.Qt).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
rV.prototype.updateProgress=rV.prototype.updateProgress;rV.prototype.onTransferStateChanged=rV.prototype.onTransferStateChanged;rV.prototype.showHideButton=rV.prototype.showHideButton;rV.prototype.dataChanged=rV.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],rV.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rV.prototype,"forceIconButton",void 0);
_.N([_.h(),_.A("design:type",Object)],rV.prototype,"forceIconOnly",void 0);_.N([_.h(),_.A("design:type",Object)],rV.prototype,"overrides",void 0);_.N([_.h(),_.A("design:type",Object)],rV.prototype,"buttonTooltipPosition",void 0);_.N([_.h(),_.A("design:type",Object)],rV.prototype,"styleActionButton",void 0);_.N([_.h(),_.A("design:type",Object)],rV.prototype,"disableTextTransform",void 0);
_.N([_.h({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.A("design:type",String)],rV.prototype,"videoId",void 0);_.N([_.h({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.A("design:type",String)],rV.prototype,"playerStateEntityKey",void 0);_.N([_.h(),_.A("design:type",Object)],rV.prototype,"data",void 0);_.N([_.h({selector:KN,selectorArgs:["videoId"]}),_.A("design:type",Object)],rV.prototype,"downloadProgress",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],rV.prototype,"isDownloadComplete",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],rV.prototype,"isHidden",void 0);_.N([_.h({selector:_.Wv,selectorArgs:["videoId"]}),_.A("design:type",String)],rV.prototype,"transferState",void 0);_.N([_.h({selector:_.bi2,selectorArgs:["videoId"]}),_.A("design:type",Object)],rV.prototype,"isVideoDeletedByUser",void 0);
_.N([_.h({selector:Afv,selectorArgs:["videoId"]}),_.A("design:type",Object)],rV.prototype,"offlineabilityState",void 0);_.N([_.h({selector:_.G3,selectorArgs:["playerStateEntityKey"]}),_.A("design:type",Object)],rV.prototype,"playerStateEntity",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],rV.prototype,"showTooltips",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],rV.prototype,"sendCommandWhenDisabled",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],rV.prototype,"disabled",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rV.prototype,"dataChanged",null);_.N([_.Jv("offlineabilityState","playerStateEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rV.prototype,"showHideButton",null);
_.N([_.Jv("transferState","isVideoDeletedByUser"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rV.prototype,"onTransferStateChanged",null);_.N([_.Jv("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rV.prototype,"updateProgress",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],rV);
_.m(rV,"ytd-download-button-renderer",function(){if(wa2!==void 0)return wa2;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wa2=G},{mode:2});var aP_;var yxa,otw=function(){if(yxa!==void 0)return yxa;var G=document.createElement("template");_.f(G,'\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 yxa=G};var mLw=_.V("web_button_rework")&&_.YI("BUTTON_REWORK")||_.V("web_button_rework_with_live"),ULw=_.eA("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,wV=function(){var G=_.C.apply(this,arguments)||this;G.isPressed=!1;G.forceIconButton=!1;G.forceIconOnly=!1;G.forceModernIconButton=!1;G.alignByText=!1;G.isShorts=!1;G.animatedText=!1;G.shouldAnimate=!1;G.JSC$14629_browserSupportsAnimation=_.V("web_supports_animations_api");G.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};G.onTap=function(){var H;if((H=G.data)==null||!H.defaultNavigationEndpoint){var Z;H=!((Z=G.data)==null?0:Z.isToggled);var Q;if((Q=G.data)==null||!Q.preventAutoToggle){G.shouldAnimate=!1;G.disableTextUpdateJobId&&_.Ui.cancelJob(G.disableTextUpdateJobId);G.disableTextUpdateJobId=_.Ui.addLowPriorityJob(function(){G.disableTextUpdateJobId=void 0},ULw);
var p;G.set("data.isToggled",!((p=G.data)==null?0:p.isToggled));Z=G.getInnertubeIcon();Q={toggled:H,actions:{}};Z&&(Q.actions[Z.toLowerCase()]=H);_.N5(G.hostElement,"yt-toggle-button",Q)}}};
return G};
_.T(wV,_.C);_.g=wV.prototype;_.g.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Ui.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.toggle=function(G){var H;this.set("data.isToggled",G!==void 0?G:!((H=this.data)==null?0:H.isToggled))};
_.g.handleUpdateToggleButtonStateCommand=function(G){if(this.data){G=_.X(G,JSG);var H,Z,Q,p=(H=this.data)==null?void 0:(Z=H.toggleButtonSupportedData)==null?void 0:(Q=Z.toggleButtonIdData)==null?void 0:Q.id;p&&G&&p===(G==null?void 0:G.buttonId)&&this.set("data.isToggled",G.toggled)}};
_.g.handleUpdateToggleButtonTextAction=function(G){if(this.data){G=_.X(G,wr2);var H,Z,Q,p=(H=this.data)==null?void 0:(Z=H.toggleButtonSupportedData)==null?void 0:(Q=Z.toggleButtonIdData)==null?void 0:Q.id;p&&G&&p===(G==null?void 0:G.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=G.defaultNumericalValue,this.set("data.defaultText",G.defaultText),this.set("data.toggledText",G.toggledText),this.shouldAnimate=!1)}};
_.g.getInnertubeIcon=function(){var G=this.data;if(G){var H,Z,Q=((H=G.defaultIcon)==null?0:H.iconType)?(Z=G.defaultIcon)==null?void 0:Z.iconType:null,p,l;H=((p=G.toggledIcon)==null?0:p.iconType)?(l=G.toggledIcon)==null?void 0:l.iconType:Q;return G.isToggled?H:Q}};
_.g.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.u4.Object.defineProperties(wV.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G={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$14629_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var H=G.renderer;var Z=G.element;var Q=G.toggled;var p=G.onTapCallback;var l=G.commandClientArgs;var q=G.overrides;var u=G.forceIcon;var B=G.forceModernIconButton;var t=G.forceDisabled;var D=G.useAnimatedText;var d=G.animatedTextProps;G=Cdf(H,Q);u=!H.defaultIcon||!u&&H.defaultText?H.defaultIcon?"leading":void 0:B?"icon-only":"icon-only-40";u==="icon-only-40"&&(G.type="text");var e;B=Object;var n=B.assign,c;a:switch((c=
H.style)==null?void 0:c.styleType){case "STYLE_COMPACT_GRAY":c={size:"S"};break a;default:c={size:"M"}}var W=!!Q;var M=(M=Q&&H.toggledText||H.defaultText)?_.Vw(M):void 0;D?(D=_.yn(Q&&H.toggledText||H.defaultText))&&d&&!isNaN(Number(d.numberValue))?(d.numberText=D,Q&&(d.numberValue+=1),D=d):D=void 0:D=void 0;var r,w,x,U;var R=(d=((w=Q?H.toggledAccessibilityData||((R=H.toggledText)==null?void 0:R.accessibility):H.accessibilityData||((r=H.defaultText)==null?void 0:r.accessibility))==null?void 0:(x=w.accessibilityData)==
null?void 0:x.label)||((U=H.accessibility)==null?void 0:U.label))?d:_.yn(Q&&H.toggledText||H.defaultText);t=t===void 0?H.isDisabled:t;Z=hqb(H,Q,p,Z,l);Q=wpU(H,Q);Q!=null&&Q.length?(Q=_.vT({innertubeCommand:$Ij(Q),forceNewState:!0}),Q=WT(Q)?Q:void 0):Q=void 0;H=n.call(B,{},G,c,{iconPosition:u},q,{focused:!1,toggled:W,toggleable:!0,formattedButtonText:M,animatedTextProps:D,accessibilityLabel:R,disabled:t,onTap:Z,aTagConfig:Q},AXe((e=H.colorData)==null?void 0:e.basicColorPaletteData));H.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(H.type="filled");return H}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.getInnertubeIcon();if(G)return _.bq(G)}}});
wV.prototype.resetAnimation=wV.prototype.resetAnimation;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],wV.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],wV.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],wV.prototype,"isPressed",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"forceIconButton",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"forceIconOnly",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"forceModernIconButton",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"alignByText",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"overrides",void 0);
_.N([_.h(),_.A("design:type",Boolean)],wV.prototype,"disabled",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"isShorts",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"buttonTooltipPosition",void 0);_.N([_.h(),_.A("design:type",Object)],wV.prototype,"animatedText",void 0);_.N([_.h(),_.A("design:type",String)],wV.prototype,"textNumberValue",void 0);_.N([_.h({computed:"computeTooltip(data, data.isToggled)"}),_.A("design:type",Object)],wV.prototype,"tooltip",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wV.prototype,"resetAnimation",null);_.N([_.z("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.A("design:type",Object),_.A("design:paramtypes",[])],wV.prototype,"computedButtonShape",null);_.N([_.z("data.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],wV.prototype,"computedIcon",null);
_.N([_.O({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],wV);mLw&&_.m(wV,"ytd-toggle-button-renderer",otw,{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var Rpp=_.y(function(G){function H(t){var D;return _.S(function(d){if(d.nextAddress==1)return(D=!OR2(t,u())||!u().enabled)?d.jumpTo(2):d.yield(UMj(),3);d.nextAddress!=2&&(D=d.yieldResult);if(D)return d.return();Z();setTimeout(function(){q(!1)},1500);
_.K0(d)})}
function Z(){setTimeout(function(){q(!0);var t;(t=Q.lottieEl)==null||t.goToAndPlay(0)},150)}
var Q=_.sw(),p=_.I(_.Ty(!1,void 0,"UfUosc")),l=p.next().value,q=p.next().value,u=_.yy(G.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.mR(function(){var t,D;((t=G.settings)==null?void 0:(D=t.call(G))==null?void 0:D.uniqueId)==="this is not intended behavior"&&_.Rp(new _.C$("Smartimation Settings is undefined"))});
_.yN(function(){u().experimentEnabled&&(u().enabled?abv(H):(q(!1),ydo(H)),_.oM(function(){ydo(H)}))},"IHhVmc");
_.yN(function(){u().timings.join("");u().experimentEnabled&&(o$2(u()),_.oM(function(){mMM(u())}))},"fsfhOe");
var B=_.Kb(function(){var t=Q,D=u().uniqueId+"-border",d,e;var n="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((e=(d=_.tp().resolve(_.Jp(_.rr)))==null?void 0:d())!=null&&e?"dark":"light")+"_v2.json";return{animationRef:t,animationConfig:{name:D,autoplay:!1,loop:!1,path:n}}},void 0,"UWvUGe");
p={};return _.J("yt-smartimation",{class:_.bb(G.className,"smartimation",(p["smartimation--experiment-enabled"]=function(){return u().experimentEnabled},p["smartimation--active-border"]=l,p["smartimation--enable-masking"]=RqR(),p))},_.J(_.k,{cond:function(){return u().experimentEnabled},
then:function(){return _.J("div",{class:"smartimation__border"},_.J(_.cY,{className:"smartimation__border-gradient",data:B,animationName:function(){return B().animationConfig.name}}))}}),_.J("div",{class:"smartimation__content"},G.children))},"ga");
Rpp.idomCompat=!0;_.RX(Rpp,"yt-smartimation",{props:{className:_.b3,settings:_.b3}});var hD=function(){var G=_.C.apply(this,arguments)||this;G.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};G.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};G.shouldEnableSmartimation=!1;return G};
_.T(hD,_.C);hD.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
hD.prototype.onDataChanged=function(){var G,H;this.shouldEnableSmartimation=(((G=this.data)==null?void 0:(H=G.timedAnimationData)==null?void 0:H.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
hD.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var G=_.X(this.data.likeButton,_.Fw),H=_.X(this.data.dislikeButton,_.Fw);return!!((G==null?0:G.isToggled)||(H==null?0:H.isToggled))};
hD.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]]"}}}}}};
_.u4.Object.defineProperties(hD.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=((G=this.data)==null?void 0:(H=G.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"like-dislike",timings:Z,enabled:this.shouldEnableSmartimation,experimentEnabled:Z.length>0}}}});
hD.prototype.onDataChanged=hD.prototype.onDataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],hD.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],hD.prototype,"likeButtonOverride",void 0);_.N([_.h(),_.A("design:type",Object)],hD.prototype,"dislikeButtonOverride",void 0);
_.N([_.z("shouldEnableSmartimation"),_.A("design:type",Object),_.A("design:paramtypes",[])],hD.prototype,"smartimationSettings",null);_.N([_.gx("data"),_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hD.prototype,"onDataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],hD);
_.m(hD,"ytd-segmented-like-dislike-button-renderer",function(){if(aP_!==void 0)return aP_;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return aP_=G},{mode:1});var N22;var Axp;(Axp=document.body)==null||Axp.setAttribute("rounded-container","");var xLw={};xLw.YtToggleButtonBehavior=[_.V6.YtActionHandlerBehavior,Ki.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 G=this.data.isToggled;if(!this.isModal_(G)){if(!this.data.preventAutoToggle){this.toggle();var H={toggled:this.data.isToggled,actions:{}};H.actions[this.buttonIcon]=this.data.isToggled;_.N5(this.hostElement,"yt-toggle-button",H)}H=this.data.defaultServiceEndpoint||null;var Z=this.data.toggledServiceEndpoint||null;if(H&&Z||H&&this.data.preventAutoToggle)G=G?Z:H,H=this.disableCommandHandlerOverride,_.V("killswitch_toggle_button_behavior_resolve_command")||H?_.L9(this.hostElement,
[G]):_.s6(G,this.hostElement),_.N5(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:G})}},
stateChanged_:function(){var G=this.data;if(G){var H=G.isToggled;this._setEndpoint(this.computeEndpoint_(G));this._setServiceEndpoint(this.computeServiceEndpoint_(G));this._setButtonIcon(this.computeButtonIcon_(G,H));this._setButtonText(this.computeButtonText_(G,H));this._setButtonAccessibility(this.computeAccessibility_(G,H));this._setButtonTooltip(this.computeTooltip_(G,H));this._setButtonClass(this.computeButtonClass_(G,H));this._setIconPositionType(this.computeIconPositionType_(G));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=H):this.elements_.button.setAttribute("aria-pressed",H));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=H)}},
shouldSetIconActiveState_:function(){return _.V("kevlar_system_icons")},
toggle:function(G){this.set("data.isToggled",G!==void 0?G:!this.data.isToggled);_.V("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(G){if(G){var H,Z;return!!((H=this.data)==null?0:(Z=H.toggledServiceEndpoint)==null?0:Z.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(G){return G&&G.defaultNavigationEndpoint||null},
computeButtonIcon_:function(G,H){var Z=G&&G.defaultIcon?_.bq(G.defaultIcon.iconType):null;G=G&&G.toggledIcon?_.bq(G.toggledIcon.iconType):Z;return H?G:Z},
handleUpdateToggleButtonStateCommand_:function(G){G=G.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&this.toggle(G.toggled)},
computeButtonText_:function(G,H){return G?H&&G.toggledText||G.defaultText||null:null},
computeAccessibility_:function(G,H){return G?(H?this.get("toggledAccessibilityData.accessibilityData",G):this.get("accessibilityData.accessibilityData",G))||G.accessibility||null:null},
computeTooltip_:function(G,H){return G?H&&G.toggledTooltip||G.defaultTooltip||null:null},
computeButtonClass_:function(G,H){if(!G)return"";var Z="",Q=G.toggledStyle||G.style;if(H=H?Q:G.style){H.styleType&&(H=H.styleType);try{Z+=H.toLowerCase().replace(/_/g,"-")+" "}catch(p){_.N1(p,H,typeof H),_.Rp(p)}}if(G=G.size){G.sizeType&&(G=G.sizeType);try{Z+=G.toLowerCase().replace(/_/g,"-")+" "}catch(p){_.N1(p,G,typeof G),_.Rp(p)}}return Z.trim()},
computeIconPositionType_:function(G){return G&&G.iconPosition||null},
computeServiceEndpoint_:function(G){var H=G&&G.serviceEndpoint,Z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:Z&&G.command?G.command:null},
handleUpdateToggleButtonTextAction_:function(G){G=G.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==G.buttonId&&(this.set("data.defaultText",G.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",G.toggledText),this.notifyPath("data.toggledText"))}}];_.eQ("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Lz7=_.V("web_button_rework")&&_.YI("BUTTON_REWORK")||_.V("web_button_rework_with_live"),CB=function(){var G=_.C.apply(this,arguments)||this;G.systemIcons=_.V("kevlar_system_icons");G.roundedContainer=!0;return G};
_.T(CB,_.C);CB.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
CB.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var G=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var H={toggled:!!this.data.isToggled,actions:{}};H.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var Z,Q;H.actions.playlistId=(Z=this.data.defaultServiceEndpoint)==null?void 0:(Q=Z.playlistEditEndpoint)==null?void 0:Q.playlistId;_.N5(this.hostElement,"yt-toggle-button",H)}(G=G?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(G)}};
CB.prototype.onYtNavigate=function(G){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);H&&(G.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.u4.Object.defineProperties(CB,{template:{configurable:!0,enumerable:!0,get:function(){if(N22===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);N22=G}G=N22;return G}}});
CB.prototype.onYtNavigate=CB.prototype.onYtNavigate;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],CB.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],CB.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(xLw.YtToggleButtonBehavior),_.A("design:type",Object)],CB.prototype,"ytToggleButtonBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],CB.prototype,"data",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],CB.prototype,"showTooltips",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],CB.prototype,"systemIcons",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],CB.prototype,"roundedContainer",void 0);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],CB.prototype,"onYtNavigate",null);
_.N([_.O({is:"ytd-toggle-button-renderer",disableElementRegistration:Lz7})],CB);var Et4,Ymt;_.iU=new _.Gv("PANEL_CONTROLLER_TOKEN");_.On=new _.Gv("SHEET_CONTROLLER_TOKEN");_.aP=new _.Gv("DIALOG_CONTROLLER_TOKEN");Et4=new _.Gv("DIALOG_CONTAINER_TOKEN");Ymt=new _.Gv("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.yp=new _.Gv("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Gcu=_.Zg("DOWNLOAD",{},"Download"),HZb=_.Zg("DOWNLOADING",{},"Downloading"),sLo=_.Zg("DOWNLOADED",{},"Downloaded"),ZZf=_.Zg("RETRY",{},"Retry");var FzG=_.y(function(G){var H=IjM,Z=function(){return""},Q=QLM(G.data),p=pIR(G.data),l=ljb(G.data),q=g62(G.data);
H=function(){var u=G.data(),B=Fqj(u,Q(),p(),l(),q()),t=!!u.videoId,D=B.text;return{title:t?D:void 0,tooltip:t?void 0:D,accessibilityText:D,onTap:B.onTap,iconName:B.iconType,style:u.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:B.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:u.buttonSize}};
Z={};Z=_.bb("ytDownloadButtonViewModelHost",(Z.ytDownloadButtonViewModelIsHidden=function(){var u=G.data(),B=q();return u.playlistId||B()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||B()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},Z));
return _.J("download-button-view-model",{class:Z},_.J(_.kg,{data:H}))},"ha");
FzG.idomCompat=!0;var dCu=new _.Gv("SUBMIT_API_SERVICE_TOKEN");var tNf,kcb,e0u={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var h03=new _.Gv("RENDERER_LOGGER_TOKEN");var jLf=new _.Gv("RENDERER_STAMPER_OPTIONS_TOKEN");var VN3;_.qB=new uy7;VN3=new Map;var PiU="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),wIU=["notificationTextRenderer","notificationMultiActionRenderer"],
rbX="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),MNX=$CM(function(G){return _.Uv(G==null?void 0:G.targetId)}).useUpdatableData;var KFf=0;_.SP.debugName="EjJbCe";var bL2=_.y(function(G){var H=G.data;G=G.className;_.yP(function(){H().formId||_.me(Error("Ch"))});
var Z=_.Jbe(function(){return H().formId},function(){return H().beforeSubmitCommand},function(){return H().afterSubmitCommand}),Q=Z.submitForm,p=Z.isValid,l=Z.isSubmitting,q=function(){return{state:H().isDisabled||!p()||l()?"disabled":"active"}};
return _.J("yt-submit-button-view-model",{class:_.bb("ytSubmitButtonViewModelHost",G)},_.J(_.SP,{data:function(){return H().button}},{buttonViewModel:function(u){return _.J(_.kg,{data:u.data,
buttonOverrides:q,onClick:Q})}}))},"ka");var HU_=_.y(function(G){var H=G.backgroundLottieRef;var Z=G.foregroundLottieRef;var Q=G.children;var p=G.wrapperClass;var l=G.disableAnimation;G=function(){return(_.V("web_animated_actions")||_.V("web_animated_actions_v2"))&&!(l==null?0:l())};
return _.J("yt-animated-action",{class:_.bb("ytAnimatedActionHost",p)},_.J("div",{class:"ytAnimatedActionContentWithBackground"},_.J(_.k,{cond:G,then:function(){return _.J(G2T,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:H==null?void 0:H(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(Cio()?"dark":"light")+"_v5.json"}}}})}}),Q),_.J(_.k,{cond:G,
then:function(){return _.J(G2T,{lottiePlayerProps:function(){return{animationRef:Z==null?void 0:Z(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(Cio()?"dark":"light")+"_v4.json"}}}})}}))},"la");
HU_.idomCompat=!0;var G2T=_.y(function(G){var H=G.wrapperClass;var Z=G.lottieClass;var Q=G.lottiePlayerProps;return _.J("div",{class:_.bb("ytAnimatedActionLottie",H),"aria-hidden":"true"},_.J(_.cY,{className:Z,data:Q,animationName:function(){return Q().animationConfig.name}}))},"ma");var iZe={isOpen:!1};var ajj={isAllowed:!1};var o6j={errorMessage:"",title:"",privacy:"",isDisabled:!0};var UCW={isOpen:!1};var NLW={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var sYp={response:void 0};var xCe=function(G,H){G=G===void 0?sYp:G;switch(H.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},G,{response:H.payload});default:return G}};var ZUG={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var LFX=function(G,H){G=G===void 0?ZUG:G;switch(H.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},G,{nextDisabled:H.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},G,{nextCommand:H.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},G,{footerSubmissionData:H.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},G,{isImpersonationValid:H.payload});default:return G}};var QYN={reportFormData:void 0,reportDetailsFormData:void 0};var E6M=function(G,H){G=G===void 0?QYN:G;switch(H.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportFormData:H.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},G,{reportDetailsFormData:H.payload});default:return G}};var pBa=void 0;_.V("mweb_enable_redux_store_on_demand")||(pBa=new oq(Y9v()));var oP=_.V("enable_web_delhi_icons");var lXG=_.y(function(G){G=_.oK(G,{themeOverride:void 0,animationRef:{}});var H=G.animatedIconType,Z=G.active,Q=G.themeOverride,p=G.animationRef;G=G.staticIconFn;var l=_.I(_.Ty(void 0,void 0,"l48agc")),q=l.next().value,u=l.next().value,B=function(){a:{var M=H();var r=Q==null?void 0:Q();var w;r=(r==null?void 0:r.useDarkTheme)||((w=_.tp().resolve(_.Jp(_.rr)))==null?void 0:w());switch(M){case "LIKE":pBa||(pBa=new oq(Y9v()));M=(M=XJM(pBa.getState()))&&M.animationLightUrl&&M.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:r?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:r?M.animationDarkUrl:M.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(M){r=M;break a}r="animated_like_icon_"+(r?"dark":"light")+"_"+(oP?"v5":"v4");r={lottiePlayerProps:{animationConfig:{name:r,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+r+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(oP?" animated-like-icon-delhi":"")}}},totalFrames:oP?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":r={lottiePlayerProps:{animationConfig:{name:r?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(r?"dark":"light")+(oP?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(oP?" animated-subscribe-icon-delhi":"")}}},totalFrames:oP?120:79,lazyLoad:!1};break a}r=
void 0}return r},t=function(){var M,r;
return(r=(M=B())==null?void 0:M.lottiePlayerProps.animationConfig.name)!=null?r:""},D=function(){if(B()){var M=B().lottiePlayerProps.animationConfig.path;
return kV.get(M)||q()}};
l=_.I(_.Ty(!1,void 0,"sDrGId"));var d=l.next().value;l=l.next().value;var e=bZj(l),n=function(){var M=B(),r,w,x;return(x=M==null?void 0:(r=M.lottiePlayerProps.animationConfig)==null?void 0:(w=r.rendererSettings)==null?void 0:w.className)!=null?x:""},c=void 0,W=void 0;
_.yN(function(){var M=B(),r=t(),w=D(),x=d(),U=Z();if(M&&(W!==r&&(W=r,c=U,r=p(),e.animationConfig=M.lottiePlayerProps.animationConfig,e.animationRef=r,w&&(e.animationConfig.animationData=w,e.animationConfig.path=void 0),r=M.lottiePlayerProps.animationConfig.path,!kV.get(r)&&M.lazyLoad&&r&&FFX(r,u)),!(x||M.lazyLoad&&!w))){if(w=!p().lottieEl)U?(x=M.totalFrames,e.animationConfig.initialSegment=[x-1,x]):e.animationConfig.initialSegment=void 0;if(c!==U&&!w)if(w=p(),U){var R;(R=w.lottieEl)==null||R.playSegments([0,
M.totalFrames],!0)}else{var L;(L=w.lottieEl)==null||L.playSegments([0,1],!0)}c=U}},"RQVZ1d");
return _.J("animated-icon",{class:"ytAnimatedIconHost"},_.J(_.k,{cond:function(){var M,r;return!((M=B())==null||!M.lottiePlayerProps.animationConfig.path||((r=B())==null?0:r.lazyLoad)&&!D()||d())},
then:function(){return _.J(_.cY,{data:e,animationName:t,className:n,animationRef:p})},
else:G}))},"oa");_.mO=_.y(function(G){var H=_.IA("yt-subscribe-button-view-model"),Z=_.IA("div"),Q=_.IA("div"),p=_.sw(),l=_.sw(),q=_.sw(),u=_.gu(ZLf,function(){return G.data().stateEntityStoreKey}),B=_.gu(QgX,function(){var be,J_;
return(J_=(be=G.data().notificationStateEntityStoreKeys)==null?void 0:be.subsNotificationStateKey)!=null?J_:""}),t=function(){return!G.data().enableSubscribeButtonPostClickAnimation},D=_.I(_.Ty(0,void 0,"YtsSKb")),d=D.next().value,e=D.next().value;
D=_.I(_.Ty(0,void 0,"V6JxRe"));var n=D.next().value,c=D.next().value;D=_.I(_.Ty(!1,void 0,"JUCSZ"));var W=D.next().value,M=D.next().value;D=_.I(_.Ty(!1,void 0,"oV6jwf"));var r=D.next().value,w=D.next().value;D=_.I(_.Ty(!1,void 0,"hK1Whe"));var x=D.next().value,U=D.next().value,R;D=_.I(_.Ty(!1,void 0,"Asaolf"));var L=D.next().value,H3=D.next().value,qX=function(){w(!0);_.JW(_.Ui,function(){w(!1)},1500)};
_.yN(function(){var be=r();_.cS(function(){be&&!t()&&u()&&ep3(p,l,q)})},"Qq6Hsf");
_.yN(function(){var be=u();_.cS(function(){if(!t()&&be){var J_;((J_=G.animateWidth)==null?0:J_.call(G))&&dLM(H.value,!!be.subscribed,d(),n());var rG,Kw;((rG=R)==null?0:rG.subscribed)||!be.subscribed||be.key!==((Kw=R)==null?void 0:Kw.key)||qX();R=be}})},"hog8te");
D=_.Kb(function(){var be,J_,rG,Kw=G.data(),cD=!((be=u())==null||!be.subscribed);be=!((J_=G.isOverlay)==null||!J_.call(G));J_=W()?H:void 0;var ec=(rG=B())==null?void 0:rG.state;rG=L();DLo(Kw,ec);return sgj({model:Kw,subscribed:cD,isOverlay:be,element:J_,notificationState:ec,disableTextEllipsis:!0,focused:rG})},void 0,"hc1PRd");
var B3=function(){var be;if(!t()&&((be=G.animateWidth)==null?0:be.call(G))&&(Z==null?0:Z.value)&&(Q==null?0:Q.value)&&!x()){be=u();var J_=_.I((be==null?0:be.subscribed)?[Z,Q]:[Q,Z]),rG=J_.next().value;J_=J_.next().value;rG=Math.ceil(rG.value.getBoundingClientRect().width);J_=Math.ceil(J_.value.getBoundingClientRect().width);e(rG);c(J_);dLM(H.value,!(be==null||!be.subscribed),rG,J_);U(!0)}},fW=_.Hh(function(be){B3();
var J_=u();J_&&(be.detail.endpoint.subscribeEndpoint||be.detail.endpoint.unsubscribeEndpoint)&&B2f(H.value,!J_.subscribed,J_)}),e2=function(){var be=_.tp().resolve(_.Jp(_.qZ));
be&&H3(be.isKeyBoardInUse())},$R=function(){H3(!1)};
_.gN("yt-player-subscribe",function(be){var J_=u();J_&&be===G.data().channelId&&B2f(H.value,!0,J_)});
_.gN("yt-player-unsubscribe",function(be){var J_=u();J_&&be===G.data().channelId&&B2f(H.value,!1,J_)});
_.gN("yt-update-subscribe-button-action",function(be){be=_.X(be,EhN);var J_=u();J_&&be&&be.channelId===G.data().channelId&&B2f(H.value,!!be.subscribed,J_)});
_.mR(function(){H.value&&(H.value.addEventListener("focusin",e2),H.value.addEventListener("focusout",$R));var be=_.wM(_.Ui,function(){B3()});
M(!0);_.oM(function(){_.Ui.cancelJob(be);H.value&&(H.value.removeEventListener("focusin",e2),H.value.removeEventListener("focusout",$R))})});
var ie=function(){var be,J_,rG;if(rG=!((be=u())==null||!be.subscribed))be=!!G.data().disableNotificationBell,rG=(J_=B())==null?void 0:J_.state,rG=!be&&!!rG;return rG},W3=function(){var be;
return!((be=u())==null?0:be.subscribed)},DT=function(){var be,J_;
if(J_=W3()){J_=!!G.data().disableNotificationBell;var rG=(be=B())==null?void 0:be.state;J_=!J_&&!!rG}return J_},UR={},zx={};
return _.J("yt-subscribe-button-view-model",{class:_.bb(G.className,"ytSubscribeButtonViewModelHost",(UR.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var be,J_;return!((be=u())==null||!be.subscribed)&&((J_=G.animateWidth)==null?void 0:J_.call(G))&&r()},UR.ytSubscribeButtonViewModelHostHidden=function(){var be;
return!((be=u())==null?0:be.subscribed)&&G.data().hideWhenUnsubscribed},UR)),
el:H,"on:yt-service-request-sent":fW},_.J(HU_,{backgroundLottieRef:p,foregroundLottieRef:l,wrapperClass:_.bb("ytSubscribeButtonViewModelAnimatedActionWrapper",(zx.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var be;return((be=G.animateWidth)==null?void 0:be.call(G))&&r()},zx.ytSubscribeButtonViewModelStaticWidth=function(){var be;
return!((be=G.animateWidth)==null?0:be.call(G))},zx)),
disableAnimation:t},_.J("div",{el:Z,class:"ytSubscribeButtonViewModelContainer"},_.J(_.tf,{data:D,icon:function(){return _.J(_.k,{cond:ie,then:function(){var be=function(){var J_;return u5W((J_=B())==null?void 0:J_.state)};
return _.J(_.k,{cond:function(){return t()||be()!=="NOTIFICATIONS_NONE"},
then:function(){return _.J(_.ll,{icon:be})},
else:function(){return _.J(lXG,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:q})}})}})},
secondaryIconName:function(){return ie()?"EXPAND":void 0}}))),_.J("div",{el:Q,
class:"ytSubscribeButtonViewModelInvisible"},_.J(_.k,{cond:function(){var be;return((be=G.animateWidth)==null?void 0:be.call(G))&&!t()&&!x()},
then:function(){return _.J(_.tf,{data:_.Kb(function(){var be;return sgj({model:G.data(),subscribed:W3(),isOverlay:!((be=G.isOverlay)==null||!be.call(G)),element:H,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var be;return DT()?u5W((be=B())==null?void 0:be.state):void 0},
secondaryIconName:function(){return DT()?"EXPAND":void 0}})}})))},"ra");
_.mO.idomCompat=!0;var goa=_.y(function(G){var H=G.data;var Z=_.gu(ZLf,function(){return H().subscriptionStateEntityKey});
return _.J(_.k,{cond:function(){var Q=H(),p=Z();return!Q.hideWhenUnsubscribed||(p==null?0:p.subscribed)?_.X(H().button,_.HN):void 0},
then:function(Q){return _.J("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.J(_.kg,{data:Q,buttonOverrides:function(){return{toggled:!0}}}))}})},"sa");
goa.idomCompat=!0;var IXT,Un;IXT=_.y(function(G){return _.J(_.SP,{data:function(){return G.actionRow().actions}},{buttonViewModel:function(H){var Z=H.data;
return _.J(Un,{isRow:G.isRow,isIconOnlyButton:function(){return ntR(Z())},
useIntrinsicWidth:G.useIntrinsicWidth},_.J(_.kg,{data:Z}))},
subscribeButtonViewModel:function(H){return _.J(Un,{isRow:G.isRow},_.J(_.mO,{data:H.data,isOverlay:!1,animateWidth:function(){return!G.isRow()}}))},
downloadButtonViewModel:function(H){var Z=H.data;return _.J(Un,{isRow:G.isRow,isIconOnlyButton:function(){return!!Z().playlistId}},_.J(FzG,{data:Z}))},
submitButtonViewModel:function(H){var Z=H.data;return _.J(Un,{isRow:G.isRow,isIconOnlyButton:function(){var Q=Z();return ntR(_.X(Q==null?void 0:Q.button,_.HN))}},_.J(bL2,{data:Z}))},
toggleButtonViewModel:function(H){var Z=H.data;return _.J(Un,{isRow:G.isRow,isIconOnlyButton:function(){var Q=Z();return ntR(_.X(Q.isToggled?Q.toggledButtonViewModel:Q.defaultButtonViewModel,_.HN))}},_.J(_.hf,{data:Z}))},
subscribePlusButtonViewModel:function(H){return _.J(Un,{isRow:G.isRow},_.J(goa,{data:H.data}))}})},"ta");
Un=_.y(function(G){var H={};return _.J("div",{class:_.bb("ytFlexibleActionsViewModelAction",(H.ytFlexibleActionsViewModelActionRowAction=G.isRow,H.ytFlexibleActionsViewModelActionIntrinsicWidth=G.useIntrinsicWidth,H.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,H.ytFlexibleActionsViewModelActionIconOnlyButton=G.isIconOnlyButton,H))},G.children)},"ua");
_.RP=_.y(function(G){var H=function(){var Q;return((Q=G.layout)==null?void 0:Q.call(G))===1},Z={};
return _.J("yt-flexible-actions-view-model",{class:_.bb("ytFlexibleActionsViewModelHost",G.className,(Z.ytFlexibleActionsViewModelInline=function(){return!H()},Z.ytFlexibleActionsViewModelScrollable=function(){return G.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},Z))},_.J(_.Cl,{each:function(){return G.data().actionsRows||[]}},function(Q){return _.J(_.k,{cond:H,
then:function(){return _.J("div",{class:"ytFlexibleActionsViewModelActionRow"},_.J(IXT,{actionRow:Q,isRow:H,useIntrinsicWidth:function(){return!!G.data().respectActionIntrinsicWidth}}))},
else:function(){return _.J(IXT,{actionRow:Q,isRow:H})}})}))},"va");_.RX(_.RP,"yt-flexible-actions-view-model",{props:{data:_.b3,layout:_.b3,justifyContentOverride:_.b3,className:_.b3}});_.Nt=_.y(function(G){var H=_.gu(fI,function(){var p;return(p=G.data().dislikeEntityKey)!=null?p:""}),Z=_.Kb(function(){var p=H();
return p?p.likeStatus==="DISLIKE":_.X(G.data().toggleButtonViewModel,_.ZD).isToggled},void 0,"fNr9he"),Q=_.Kb(function(){return Object.assign({},_.X(G.data().toggleButtonViewModel,_.ZD),{isToggled:Z()})},void 0,"AezoCc");
return _.J("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.J(_.hf,{data:Q,buttonShapeOverrides:G.buttonShapeOverrideables,onToggle:function(p){var l=H();l&&p!==(l.likeStatus==="DISLIKE")&&l.key&&_.aK(_.eO("likeStatusEntity",l.key,{likeStatus:p?"DISLIKE":"INDIFFERENT",hadUserInteraction:p}))}}))},"wa");
_.Nt.idomCompat=!0;_.AD=_.y(function(G){var H=_.V("web_supports_animations_api"),Z=yw(function(e){var n=t();if(!e){var c,W;return{numberText:(W=n==null?void 0:(c=n.likeCountIfIndifferent)==null?void 0:c.content)!=null?W:"",numberValue:Number(n==null?void 0:n.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var M;c=(n==null?void 0:(M=n.likeCountIfIndifferent)==null?void 0:M.content)!==e.numberText;if(u()||!c)return e;var r;return{numberText:(n==null?void 0:(r=n.likeCountIfIndifferent)==null?void 0:r.content)||
"",numberValue:Number(n==null?void 0:n.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!n}}),Q=yw(function(e){var n=t();
if(!e){var c,W;return{numberText:(W=n==null?void 0:(c=n.likeCountIfLiked)==null?void 0:c.content)!=null?W:"",numberValue:Number(n==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var M;c=(n==null?void 0:(M=n.likeCountIfIndifferent)==null?void 0:M.content)!==e.numberText;if(u()||!c)return e;var r;return{numberText:(n==null?void 0:(r=n.likeCountIfLiked)==null?void 0:r.content)||"",numberValue:Number(n==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!n}}),p=_.I(_.Ty(void 0,
void 0,"xldjge")),l=p.next().value,q=p.next().value,u=l,B=_.gu(fI,function(){var e,n;
return(n=(e=G.data())==null?void 0:e.likeStatusEntityKey)!=null?n:""}),t=_.gu(lhf,function(){var e,n;
return((e=G.likeCountEntity)==null?void 0:(n=e.call(G))==null?void 0:n.key)||""}),D=_.Kb(function(){var e;
return((e=B())==null?void 0:e.likeStatus)==="LIKE"},void 0,"B3od5e"),d=function(){var e;
return H&&!((e=G.likeCountEntity)==null||!e.call(G))};
return _.J("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.J(_.hf,{data:function(){var e=Object,n=e.assign,c;var W=_.X((c=G.data())==null?void 0:c.toggleButtonViewModel,_.ZD);return n.call(e,{},W||{},{isToggled:D()})},
buttonShapeOverrides:G.buttonShapeOverrideables,animatedTextPropsDefault:function(){return d()?Z():void 0},
animatedTextPropsToggled:function(){return d()?Q():void 0},
onToggle:function(e){VFv(e,B(),u(),q)},
style:function(){var e;return((e=G.disableIconAnimation)==null?0:e.call(G))?void 0:{animateIcon:"true"}}}))},"xa");
_.AD.idomCompat=!0;var qu4=_.y(function(G){var H=function(){return _.X(G.data().likeButtonViewModel,_.RH)},Z=function(){var p;
return((p=H())==null?void 0:p.likeStatusEntityKey)||""},Q=_.Kb(function(){var p,l;
var q=(l=_.gu(fI,Z)())!=null?l:(p=H())==null?void 0:p.likeStatusEntity;p=G.data();var u;p=(p==null?void 0:(u=p.timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:"like-dislike",timings:p,enabled:(q==null?void 0:q.likeStatus)==="INDIFFERENT"&&p.length>0,experimentEnabled:p.length>0}},void 0,"zZ3GQb");
return _.J("segmented-like-dislike-button-view-model",{class:_.bb("ytSegmentedLikeDislikeButtonViewModelHost",G.className),"button-renderer":!0},_.J(Rpp,{settings:Q},_.J("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.J(_.k,{cond:H,then:function(p){return _.J(_.AD,{data:p,likeCountEntity:function(){return G.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.V("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.J(_.k,{cond:function(){return _.X(G.data().dislikeButtonViewModel,_.UL)},
then:function(p){return _.J(_.Nt,{data:p,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"ya");
qu4.idomCompat=!0;_.RX(qu4,"segmented-like-dislike-button-view-model",{props:{data:_.b3,className:_.b3}});var Sua=_.y(function(G){var H=G.data;var Z=G.className;var Q=G.setMinWidth;var p=G.forceIconOnly;var l=_.IA("account-link-button-view-model"),q=_.gu(_.$Lu,function(){var e;return(e=H().accountLinkStatusEntityKey)!=null?e:""}),u=_.gu(_.$Lu,function(){var e;
return(e=H().accountLinkStatusSecondaryEntityKey)!=null?e:""}),B=function(){if(!_.V("web_account_link_secondary_killswitch")){var e,n;
return((e=q())==null?void 0:e.linked)||((n=u())==null?void 0:n.linked)}var c;return(c=q())==null?void 0:c.linked};
_.yN(function(){var e=q();if(e){var n=cPx(new XN_,VwN(new n9R,!!e.linked));_.Gk().then(function(c){c&&(c.setAccountLinkState(_.Cm(n.JSC$12325_serializeBinary(),4)),c.updateAccountLinkingConfig(!!e.linked))})}},"IvZF7");
var t=function(){return _.X(H().toggleButtonViewModel,_.ZD)};
_.gN("yt-signal-action-show-account-link-dialog",function(){if(t()){var e=B()?t().toggledButtonViewModel:t().defaultButtonViewModel;e=_.X(e,_.HN);var n;if((n=q())==null?0:n.isWarning){n=_.X(H().warningButtonViewModel,_.HN);if(!n){_.HU(Error("Dh"));return}e=n}var c;(n=_.Tt((c=e)==null?void 0:c.onTap))&&_.bJ([n],l.value)}else _.HU(Error("Eh"))});
var D=function(){var e=t();return Object.assign({},e,{isToggled:B()})},d=function(){return(p==null?0:p())?{iconPosition:"icon-only"}:{}};
return _.J("account-link-button-view-model",{class:_.bb("ytwAccountLinkButtonViewModelHost",Z,function(){return(Q==null?0:Q())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:l,"button-renderer":!0},_.J("div",null,_.J(_.k,{cond:function(){var e;if((e=q())==null?0:e.isWarning)return(e=_.X(H().warningButtonViewModel,_.HN))||_.HU(Error("Dh")),e},
then:function(e){return _.J(_.kg,{data:e,buttonOverrides:d})},
else:function(){return _.J(_.hf,{data:D,buttonShapeOverrides:d})}})))},"Aa");_.RX(Sua,"account-link-button-view-model",{props:{data:_.b3,className:_.oX,setMinWidth:_.oX,forceIconOnly:_.oX}});_.eQ("menuRenderer","menuRenderer","ytd-menu-renderer");
var unp={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"}},
B9x=_.V("web_fix_missing_action_buttons")?100:200,xE=function(){var G=_.C.apply(this,arguments)||this;G.safeArea=!_.V("kevlar_flex_menu_safe_area_killswitch");G.tonalOverride=!1;G.threeDotSize="M";G.isOverlay=!1;G.useOverlayDark=!1;G.topLevelIconsOnly=!1;G.JSC$14762_lastWidth=0;G.maybeUpdateFlexibleMenu=function(){_.V("web_fix_missing_action_buttons")?requestAnimationFrame(G.maybeUpdateFlexibleMenuImpl):G.maybeUpdateFlexibleMenuImpl()};
G.maybeUpdateFlexibleMenuImpl=function(){var H;if((H=G.data)!=null&&H.flexibleItems){G.maybeFlushDebouncer();H=G.hostElement.clientWidth;var Z=H>G.JSC$14762_lastWidth,Q,p=((Q=G.topLevelButtonsContainer)==null?void 0:Q.scrollHeight)||0,l;Q=((l=G.flexibleItemButtonsContainer)==null?void 0:l.scrollHeight)||0;l=G.hostElement.scrollHeight>Math.max(p,Q)+8;Z?(G.resetFlexibleItems(),G.JSC$14762_lastWidth=G.hostElement.clientWidth,G.maybeUpdateFlexibleMenu()):l&&(G.shrinkFlexibleMenu(),G.JSC$14762_lastWidth=
H)}};
G.computeThreeDotButtonShape=function(){if(G.tonalOverride)return Object.assign({},{onTap:function(){G.onOverflowTap()},
iconPosition:"icon-only",style:G.isOverlay?G.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:G.threeDotSize,state:"active",accessibilityLabel:G.computeAccessibilityLabel(G.data)},G.threeDotButtonOverride)};
G.onOverflowTap=function(){if(G.data.fetchMenuCommand)_.tp().resolve(_.Dk).resolveCommand(G.data.fetchMenuCommand,{form:{element:G.hostElement}});else if(G.data.isDisabled&&G.data.disabledCommand)_.s6(G.data.disabledCommand,G.hostElement);else{var H=G.createMenuRendererVe(),Z={items:G.items};G.data.menuPopupAccessibility&&(Z.menuPopupAccessibility=G.data.menuPopupAccessibility);G.data.footer&&(Z.footer=G.data.footer);H={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:Z},veData:H}};
_.tp().resolve(_.On).openSheet({openPopupActionCommand:H},G.hostElement)}};
return G};
_.T(xE,_.C);_.g=xE.prototype;_.g.updateButtonOverrides=function(){if(!_.V("menu_renderer_label_update_upkillswitch")){var G=_.F9(this.hostElement).querySelector("yt-button-view-model");G&&(G.buttonOverrides=this.buttonOverrides)}};
_.g.computeHasItems=function(){var G;return((G=this.topLevelButtonData)==null?void 0:G.length)||this.hasFlexibleItems};
_.g.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.g.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.ZI(this.hostElement,{"--ytd-menu-renderer-button-color":_.X9(this.data.iconColor)}))};
_.g.onStamperFinished=function(){this.JSC$14762_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.g.setupFlexibleMenu=function(){var G=this,H;(H=this.data)!=null&&H.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Zo(this.maybeUpdateFlexibleMenu,B9x,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){G.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))};
_.g.maybeFlushDebouncer=function(){if(_.V("web_replace_formatted_with_attributed_string")){var G;(G=this.topLevelButtons)==null||G.forEach(function(Z){var Q;(Z=(Q=Z.getElementsByTagName("yt-attributed-string"))==null?void 0:Q[0])&&fuR(Z)});
var H;(H=this.flexibleItemButtons)==null||H.forEach(function(Z){var Q;(Z=(Q=Z.getElementsByTagName("yt-attributed-string"))==null?void 0:Q[0])&&fuR(Z)})}};
_.g.resetFlexibleItems=function(){var G;if((G=this.data)!=null&&G.flexibleItems){_.V("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var H;this.flexAsTopLevelButtons=(H=this.data.flexibleItems)==null?void 0:H.map(function(Z){return _.X(Z,_.Hr4).topLevelButton});
_.V("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.g.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.g.shrinkFlexibleMenu=function(){var G;(G=this.flexAsTopLevelButtons)!=null&&G.length&&(this.flexAsTopLevelButtons=[].concat(_.OP(this.flexAsTopLevelButtons.slice(0,-1))))};
_.g.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:unp,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:unp,events:!0}}};
_.g.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.g.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.g.detached=function(){this.icon="MORE_VERT"};
_.g.computeTopLevelButtonData=function(G){if(!G)return[];var H;G=(H=G==null?void 0:G.topLevelButtons)!=null?H:[];return _.oN.unsafeClone([].concat(_.OP(G)))};
_.g.computeItems=function(G,H){if(!G)return[];var Z=[];if(H){var Q=(G.flexibleItems||[]).map(function(q){return _.X(q,_.Hr4)});
Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next())p=p.value,H.includes(p.topLevelButton)||(p=p.menuItem)&&Z.push(p)}var l;G=(l=G==null?void 0:G.items)!=null?l:[];return[].concat(_.OP(Z),_.OP(G))};
_.g.computeMenuActive=function(G,H){return G||H};
_.g.onPopupOpened=function(){this.overlayOpen=!0;_.N5(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.g.onPopupClosed=function(){this.overlayOpen=!1;_.N5(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.g.onPopupCanceled=function(){this.overlayOpen=!1;_.N5(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.g.computeAccessibilityLabel=function(G){return this.get("accessibility.accessibilityData.label",G)};
_.g.isHidden=function(G,H){return this.tonalOverride||!G?!0:G.fetchMenuCommand||G.isDisabled&&G.disabledCommand?!1:!(H==null?0:H.length)};
_.g.isModernOverflowHidden=function(G,H){return this.tonalOverride&&G?G.fetchMenuCommand?!1:!(H==null?0:H.length):!0};
_.g.createMenuRendererVe=function(){var G=this.data.trackingParams,H=_.$k(),Z=_.Va();return G&&H&&Z?(G=_.BT(G),Z=_.bl(7591),_.V("combine_ve_grafts")?_.fQ(_.gr(),Z,G):_.je(H,G,Z),Z):null};
_.u4.Object.defineProperties(xE.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.flexAsTopLevelButtons)==null||!G.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
xE.prototype.onPopupCanceled=xE.prototype.onPopupCanceled;xE.prototype.onPopupClosed=xE.prototype.onPopupClosed;xE.prototype.onPopupOpened=xE.prototype.onPopupOpened;xE.prototype.tonalOverrideChanged=xE.prototype.tonalOverrideChanged;xE.prototype.resetFlexibleItems=xE.prototype.resetFlexibleItems;xE.prototype.setupFlexibleMenu=xE.prototype.setupFlexibleMenu;xE.prototype.iconButtonColorChanged=xE.prototype.iconButtonColorChanged;xE.prototype.updateButtonOverrides=xE.prototype.updateButtonOverrides;
_.N([_.v(_.Ia),_.A("design:type",Object)],xE.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],xE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("#button-shape"),_.A("design:type",HTMLElement)],xE.prototype,"buttonShape",void 0);_.N([_.q6("#button"),_.A("design:type",Object)],xE.prototype,"button",void 0);
_.N([_.h(),_.A("design:type",Object)],xE.prototype,"data",void 0);_.N([_.h({computed:"computeTopLevelButtonData(data)"}),_.A("design:type",Array)],xE.prototype,"topLevelButtonData",void 0);_.N([_.h(),_.A("design:type",Array)],xE.prototype,"flexAsTopLevelButtons",void 0);_.N([_.h({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.A("design:type",Array)],xE.prototype,"items",void 0);_.N([_.h({value:"MORE_VERT"}),_.A("design:type",String)],xE.prototype,"icon",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],xE.prototype,"safeArea",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.A("design:type",Boolean)],xE.prototype,"menuActive",void 0);_.N([_.h(),_.A("design:type",Boolean)],xE.prototype,"menuFocused",void 0);_.N([_.h({value:"bottom"}),_.A("design:type",String)],xE.prototype,"buttonTooltipPosition",void 0);_.N([_.h(),_.A("design:type",Boolean)],xE.prototype,"overlayOpen",void 0);
_.N([_.h({value:!0}),_.A("design:type",Boolean)],xE.prototype,"forceIconButton",void 0);_.N([_.h(),_.A("design:type",Boolean)],xE.prototype,"styleActionButton",void 0);_.N([_.h(),_.A("design:type",Boolean)],xE.prototype,"disableTextTransformOnButtons",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],xE.prototype,"tonalOverride",void 0);_.N([_.h(),_.A("design:type",Object)],xE.prototype,"threeDotSize",void 0);
_.N([_.h(),_.A("design:type",Object)],xE.prototype,"threeDotButtonOverride",void 0);_.N([_.h(),_.A("design:type",Object)],xE.prototype,"isOverlay",void 0);_.N([_.h(),_.A("design:type",Object)],xE.prototype,"useOverlayDark",void 0);_.N([_.h({computed:"computeButtonOverride(tonalOverride)"}),_.A("design:type",Object)],xE.prototype,"buttonOverride",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],xE.prototype,"hasCustomIconColor",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("flexAsTopLevelButtons"),_.A("design:type",Object),_.A("design:paramtypes",[])],xE.prototype,"hasFlexibleItems",null);_.N([_.h({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.A("design:type",Boolean)],xE.prototype,"hasItems",void 0);_.N([_.h(),_.A("design:type",Object)],xE.prototype,"topLevelIconsOnly",void 0);
_.N([_.gx("topLevelIconsOnly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xE.prototype,"updateButtonOverrides",null);_.N([_.z("topLevelIconsOnly"),_.A("design:type",Object),_.A("design:paramtypes",[])],xE.prototype,"buttonOverrides",null);_.N([_.q6("#top-level-buttons-computed"),_.A("design:type",HTMLElement)],xE.prototype,"topLevelButtonsContainer",void 0);_.N([_.S9(".top-level-buttons > *"),_.A("design:type",Array)],xE.prototype,"topLevelButtons",void 0);
_.N([_.q6("#flexible-item-buttons"),_.A("design:type",HTMLElement)],xE.prototype,"flexibleItemButtonsContainer",void 0);_.N([_.S9("#flexible-item-buttons > *"),_.A("design:type",Array)],xE.prototype,"flexibleItemButtons",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xE.prototype,"iconButtonColorChanged",null);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xE.prototype,"setupFlexibleMenu",null);_.N([_.Jv("topLevelIconsOnly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xE.prototype,"resetFlexibleItems",null);_.N([_.gx("tonalOverride"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xE.prototype,"tonalOverrideChanged",null);
_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xE.prototype,"onPopupOpened",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xE.prototype,"onPopupClosed",null);_.N([_.lq("yt-popup-canceled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xE.prototype,"onPopupCanceled",null);
_.m(xE,"ytd-menu-renderer",function(){if(MFa===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);MFa=G}G=MFa;return G},{mode:2});var JFd;var tmN;_.LB=_.y(function(G){var H=G.data;var Z=function(){if(H().icon)a:{var p={iconName:H().icon};for(var l=_.tp().resolve(_.Gt),q=_.I([12,24]),u=q.next();!u.done;u=q.next()){var B=u.value;u=Object.assign({},p,{iconStyle:"youtube_fill",iconSize:B});B=Object.assign({},p,{iconStyle:"youtube_outline",iconSize:B});if(l.resolveIcon(u)){p=u;break a}if(l.resolveIcon(B)){p=B;break a}}p=void 0}else p=void 0;return p};
G={};var Q={};return _.J("badge-shape",{class:_.bb("yt-badge-shape",function(){return Wzo(H().type)},(G["yt-badge-shape--overlay"]=function(){return H().isOverlay},G["yt-badge-shape--ads-include-dot"]=function(){return H().adsIncludeDot},G["yt-badge-shape--thumbnail-badge"]=function(){a:switch(H().type){case 17:case 18:case 19:var p=!0;
break a;default:p=!1}return p},G["yt-badge-shape--status-badge"]=function(){a:switch(H().type){case 12:case 13:case 14:case 15:case 16:var p=!0;
break a;default:p=!1}return p},G["yt-badge-shape--no-text"]=function(){return!H().text},G["yt-badge-shape--modern"]=function(){return H().modern||_.V("web_modern_badge_shape")},G)),
style:_.pI({"background-color":function(){var p;return(p=H().customColors)==null?void 0:p.backgroundColor}}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},_.J(_.k,{cond:function(){return H().animation},
then:function(p){return _.J(_.cY,{className:"yt-badge-shape__icon",data:p,animationName:function(){return p().animationConfig.name||""}})}}),_.J(_.k,{cond:function(){var p;
return Z()&&!((p=H())==null?0:p.animation)},
then:function(){return _.J("div",{class:"yt-badge-shape__icon"},_.J(oeW,{data:function(){return Z()}}))}}),_.J("div",{class:_.bb("yt-badge-shape__text",(Q["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(H().numBadgesInRow||0)>1},Q))},function(){var p;
return(p=H())==null?void 0:p.text}))},"Ba");
_.LB.idomCompat=!0;_.RX(_.LB,"badge-shape",{props:{data:_.b3}});var En=function(){var G=_.C.apply(this,arguments)||this;G.systemIcons=_.V("kevlar_system_icons");G.animated=_.V("animated_live_badge_icon");G.useBadgeShape=_.V("web_badge_shape_defrag");return G};
_.T(En,_.C);_.g=En.prototype;_.g.addTooltips=function(){for(var G=_.F9(this.hostElement).querySelectorAll(".badge"),H=0,Z;Z=G[H++];){var Q=this.repeatElement.itemForElement(Z);Z=_.F9(Z);Z.lastChild&&Z.lastChild.is==="tp-yt-paper-tooltip"&&Z.removeChild(Z.lastChild);if(Q=Q.metadataBadgeRenderer&&Q.metadataBadgeRenderer.tooltip){var p=_.pi("tp-yt-paper-tooltip");(0,_.sI)(p).textContent=Q;p.setAttribute("position","top");p.setAttribute("aria-hidden","true");Z.appendChild(p)}}};
_.g.badgesChanged=function(){var G=this;_.ZO().parkOrScheduleJob(function(){G.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.g.standaloneRoundedBadgeChanged=function(){var G=this.useRoundedBadge?this.useRoundedBadge:void 0;G&&(this.useRoundedBadge=G)};
_.g.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.g.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.g.computeStyle=function(G){_.V("enable_html5_teal_ad_badge")&&G==="BADGE_STYLE_TYPE_AD"&&(G="badge-style-type-ad-alternate");_.V("kevlar_ytb_live_badges")&&G==="BADGE_STYLE_TYPE_LIVE_NOW"&&(G="badge-style-type-live-now-alternate");return G?G.toLowerCase().replace(/_/g,"-"):""};
_.g.computeRole=function(G){return this.computeAriaLabel(G)?"img":"status"};
_.g.computeAriaLabel=function(G){var H;return(G==null?void 0:(H=G.accessibilityData)==null?void 0:H.label)||(G==null?void 0:G.label)};
_.g.computeBadgeShape=function(G){if(G){var H,Z;var Q=fPj(G.style);var p=vtu(G.style),l=G.label,q=((H=G.accessibilityData)==null?void 0:H.label)||G.label;a:switch(G.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":H=!0;break a;default:H=!1}var u=(Z=G.icon)==null?void 0:Z.iconType;a:switch(G.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":G=!0;break a;default:G=!1}Q={type:Q,brNzRatingBadgeType:p,text:l,accessibilityText:q,
isOverlay:H,icon:u!=="PREMIUM"?u:void 0,modern:_.V("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:G}}else Q={};return Q};
_.g.updateComputedBadges=function(G,H,Z){var Q=this;(H=H?[H]:Z?[Z]:void 0)?this.computedBadges=H:this.computedBadges=G==null?void 0:G.filter(function(p){var l;if((l=p.metadataBadgeRenderer)==null?0:l.groups){l=!1;p=_.I(p.metadataBadgeRenderer.groups);for(var q=p.next();!q.done;q=p.next()){q=q.value;var u=void 0;l=l||((u=Q.hiddenBadgeGroups)==null?void 0:u.includes(q))}return!l}return!0})};
_.g.useFilledIcons=function(G){return _.V("kevlar_system_icons")&&(G==="AUDIO_BADGE"||G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE"||G==="SPONSORSHIP_STAR"||G==="PERSON_RADAR_FILLED"||G==="PERSON_RADAR")};
_.g.computeBadgeShapeStyle=function(G){return this.useBadgeShape?G==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||G==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":G==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.g.computeIcon=function(G){var H,Z;G=G==null?void 0:(H=G.metadataBadgeRenderer)==null?void 0:(Z=H.icon)==null?void 0:Z.iconType;if(G!=="PREMIUM"&&G)return _.bq(G)};
_.g.computeStandaloneBadge=function(G){var H;G=G==null?void 0:(H=G.icon)==null?void 0:H.iconType;return G==="PREMIUM_STANDALONE"||G==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
En.prototype.hiddenBadgeGroupsChanged=En.prototype.hiddenBadgeGroupsChanged;En.prototype.standaloneBadgeChanged=En.prototype.standaloneBadgeChanged;En.prototype.standaloneRoundedBadgeChanged=En.prototype.standaloneRoundedBadgeChanged;En.prototype.badgesChanged=En.prototype.badgesChanged;_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"hidden",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],En.prototype,"componentBehavior",void 0);
_.N([_.h(),_.A("design:type",Array)],En.prototype,"badges",void 0);_.N([_.h(),_.A("design:type",Object)],En.prototype,"topStandaloneBadge",void 0);_.N([_.h(),_.A("design:type",Object)],En.prototype,"bottomStandaloneBadge",void 0);_.N([_.h(),_.A("design:type",Object)],En.prototype,"computedBadges",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"mediumFontAdBadge",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"useRoundedBadge",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"largeFontAdBadge",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"overlayAd",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"overlayPremium",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"noDotAdBadge",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"collectionTruncate",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"isThumbnailBadge",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],En.prototype,"wrapBadges",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Number)],En.prototype,"numBadgesInRow",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],En.prototype,"systemIcons",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],En.prototype,"animated",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],En.prototype,"useBadgeShape",void 0);_.N([_.h({value:[]}),_.A("design:type",Array)],En.prototype,"hiddenBadgeGroups",void 0);_.N([_.q6("#repeat"),_.A("design:type",$Q)],En.prototype,"repeatElement",void 0);_.N([_.Jv("badges"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],En.prototype,"badgesChanged",null);
_.N([_.Jv("useRoundedBadge"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],En.prototype,"standaloneRoundedBadgeChanged",null);_.N([_.Jv("topStandaloneBadge","bottomStandaloneBadge"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],En.prototype,"standaloneBadgeChanged",null);_.N([_.Jv("hiddenBadgeGroups"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],En.prototype,"hiddenBadgeGroupsChanged",null);
_.N([_.O({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],En);
var k2R=_.xQ()(En,"ytd-badge-supported-renderer",function(){if(tmN===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);tmN=G}G=tmN;return G},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.LH("kevlar_poly_si_batch_j053")?1:2});var YE=function(){var G=_.C.apply(this,arguments)||this;G.iconType="STAR";G.standardizeIconSize=_.V("kevlar_system_icons");G.mediaHoverOverlayInitialVisibility=_.V("enable_top_landscape_image_button_command_web");G.noBottomMargin=!1;G.thumbnailObjectFit="CONTAIN";G.thumbnailFitHeight=!0;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.T(YE,_.C);_.g=YE.prototype;_.g.created=function(){this.activeView=new kE(this.hostElement)};
_.g.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"}}}};
_.g.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",YE.JSC$14774_DEFAULT_CLICK_LOCATION_BEHAVIOR,YE.JSC$14774_CLICK_LOCATION_ID_MAP))};
_.g.onTap=function(G){this.onTapOrClick(G)};
_.g.onTapOrClick=function(G){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,G,!1)};
_.g.updateMediaBackgroundImage=function(){var G=this.get("data.image.thumbnail.thumbnails");G&&(G=_.N$(G,0))&&_.ZI(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+G+")"})};
_.g.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var G=0;G<this.data.impressionEndpoints.length;G++){var H=this.data.impressionEndpoints[G];H.clickTrackingParams&&delete H.clickTrackingParams;_.tp().resolve(_.Dk).resolveCommand(H,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var Z;((Z=this.data)==null?0:Z.activeView)&&DK(this.activeView,this.data.activeView)}};
_.g.handleMuteAd=function(){};
_.g.attached=function(){var G=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dV(G.activeView)})};
_.g.detached=function(){_.V("stop_av_measurement_on_detach")&&dV(this.activeView)};
_.u4.Object.defineProperties(YE.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.titleText)return"";var H;return _.Zg("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((H=this.data)==null?void 0:H.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.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 G;return!((G=this.data)==null||!G.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"}}});
YE.prototype.onTap=YE.prototype.onTap;YE.prototype.dataChanged=YE.prototype.dataChanged;
YE.JSC$14774_CLICK_LOCATION_ID_MAP=_.V("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
YE.JSC$14774_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.V("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.NH),_.A("design:type",Object)],YE.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],YE.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],YE.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.v([_.V6.YtActionHandlerBehavior]),_.A("design:type",Object)],YE.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],YE.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],YE.prototype,"clickCommand",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],YE.prototype,"miniMode",void 0);_.N([_.h(),_.A("design:type",String)],YE.prototype,"iconType",void 0);_.N([_.z("data.titleText"),_.A("design:type",String),_.A("design:paramtypes",[])],YE.prototype,"titleAriaLabel",null);_.N([_.z("data.rating"),_.A("design:type",Object),_.A("design:paramtypes",[])],YE.prototype,"getRating",null);
_.N([_.z("data.price"),_.A("design:type",Object),_.A("design:paramtypes",[])],YE.prototype,"getPrice",null);_.N([_.z("data.thirdLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],YE.prototype,"getThirdLine",null);_.N([_.z("data.fourthLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],YE.prototype,"getFourthLine",null);_.N([_.z("data.fifthLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],YE.prototype,"getFifthLine",null);
_.N([_.z("getRating"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YE.prototype,"computeRatingHidden",null);_.N([_.z("getPrice"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YE.prototype,"computePriceHidden",null);_.N([_.z("getThirdLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YE.prototype,"computeThirdLineHidden",null);_.N([_.z("getFourthLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YE.prototype,"computeFourthLineHidden",null);
_.N([_.z("getFifthLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YE.prototype,"computeFifthLineHidden",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.energyIcon"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YE.prototype,"hasEnergyIcon",null);_.N([_.z("computePriceHidden","computeRatingHidden"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YE.prototype,"computeSecondaryTextHidden",null);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YE.prototype,"standardizeIconSize",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YE.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YE.prototype,"noBottomMargin",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.layout"),_.A("design:type",String),_.A("design:paramtypes",[])],YE.prototype,"layout",null);
_.N([_.z("data.layout"),_.A("design:type",Object),_.A("design:paramtypes",[])],YE.prototype,"mediaThumbnailWidth",null);_.N([_.z("layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YE.prototype,"useRoundedBadge",null);_.N([_.h(),_.A("design:type",String)],YE.prototype,"thumbnailObjectFit",void 0);_.N([_.h(),_.A("design:type",Object)],YE.prototype,"thumbnailFitHeight",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YE.prototype,"dataChanged",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],YE.prototype,"onTap",null);_.N([_.O({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],YE);
_.m(YE,"ytd-display-ad-renderer",function(){if(JFd!==void 0)return JFd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JFd=G},{mode:1});var DS7;var dSw;var eap;var zpM=new Map;var noG=!1;var F_=function(){var G=_.C.apply(this,arguments)||this;G.DEFAULT_TOOLTIP_OFFSET="10";G.TOOLTIP_OFFSET_NO_BANNER="-8";G.badges=null;G.noEndpoints=!1;G.wrapText=!1;G.forceVerified=!1;G.tooltipPosition="top";G.compactStyle=!1;G.height=0;G.lineHeight=0;return G};
_.T(F_,_.C);_.g=F_.prototype;_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.g.attached=function(){var G=this;this.observer=new MutationObserver(function(H,Z){G.handleResized();Z.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.g.detached=function(){this.observer&&this.observer.disconnect()};
_.g.logTooltipEvent=function(){_.V("kevlar_wiz_tooltip_event_killswitch")||noG||(_.Kzu("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),noG=!0)};
_.g.handleWindowResized=function(){this.handleResized()};
_.g.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")))};
_.g.onHeightChanged=function(){if(this.verified){var G=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.xI("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=G:this.textContainerEl.style.marginRight=G}};
_.g.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.xI("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.g.handleResized=function(){var G=this;this.verified&&_.Ui.addLowPriorityJob(function(){G.fitBackgroundToText();var H=getComputedStyle(G.hostElement).lineHeight;H&&(H=H.match(/\d+/))&&H.length&&(G.lineHeight=Number(H[0]));G.height=G.lineHeight&&!G.wrapText?G.lineHeight:G.textEl.offsetHeight})};
_.g.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var G=document.createRange(),H=_.F9(this.textEl).children;H.length>0?G.selectNodeContents(H[0]):G.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(G.getBoundingClientRect().width)+"px"}};
_.g.computeChannelBadgeStyle=function(G){var H;if((G==null?0:(H=G.runs)==null?0:H.length)&&G.runs[0].textColor)return"--ytd-badge-icon-color:"+_.X9(G.runs[0].textColor)+";"};
_.u4.Object.defineProperties(F_.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"?_.aq(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var G=this.get("badges.0.metadataBadgeRenderer.tooltip");if(G)return G}return _.yn(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
F_.prototype.onLineHeightChanged=F_.prototype.onLineHeightChanged;F_.prototype.onHeightChanged=F_.prototype.onHeightChanged;F_.prototype.onChannelNameChanged=F_.prototype.onChannelNameChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],F_.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],F_.prototype,"badges",void 0);_.N([_.h(),_.A("design:type",Object)],F_.prototype,"channelName",void 0);
_.N([_.h(),_.A("design:type",Object)],F_.prototype,"noEndpoints",void 0);_.N([_.h(),_.A("design:type",Object)],F_.prototype,"wrapText",void 0);_.N([_.h(),_.A("design:type",Object)],F_.prototype,"forceVerified",void 0);_.N([_.h(),_.A("design:type",Object)],F_.prototype,"tooltipPosition",void 0);_.N([_.h(),_.A("design:type",String)],F_.prototype,"tooltip",void 0);_.N([_.h(),_.A("design:type",Boolean)],F_.prototype,"hasChannelArt",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],F_.prototype,"compactStyle",void 0);_.N([_.q6("#text-container"),_.A("design:type",HTMLElement)],F_.prototype,"textContainerEl",void 0);_.N([_.q6("#text"),_.A("design:type",Object)],F_.prototype,"textEl",void 0);_.N([_.q6("#verified-tooltip"),_.A("design:type",HTMLElement)],F_.prototype,"verifiedTooltip",void 0);_.N([_.h(),_.A("design:type",Object)],F_.prototype,"height",void 0);
_.N([_.h(),_.A("design:type",Object)],F_.prototype,"lineHeight",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("badges","forceVerified"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],F_.prototype,"verified",null);_.N([_.z("badges","verified"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],F_.prototype,"hideBadges",null);_.N([_.z("channelName"),_.A("design:type",Object),_.A("design:paramtypes",[])],F_.prototype,"formattedName",null);
_.N([_.z("badges","verified","formattedName"),_.A("design:type",String),_.A("design:paramtypes",[])],F_.prototype,"tooltipText",null);_.N([_.z("hasChannelArt"),_.A("design:type",String),_.A("design:paramtypes",[])],F_.prototype,"tooltipOffset",null);_.N([_.gx("channelName"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],F_.prototype,"onChannelNameChanged",null);
_.N([_.gx("height"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],F_.prototype,"onHeightChanged",null);_.N([_.gx("lineHeight","height"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],F_.prototype,"onLineHeightChanged",null);_.N([_.O({is:"ytd-channel-name",disableElementRegistration:!0})],F_);
_.m(F_,"ytd-channel-name",function(){if(eap!==void 0)return eap;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return eap=G},{mode:_.LH("kevlar_poly_si_batch_j036")?1:2});var bU=function(){var G=_.C.apply(this,arguments)||this;G.standardizeIconSize=_.V("kevlar_system_icons");return G};
_.T(bU,_.C);bU.prototype.basicPaletteChanged=function(){var G;(G=this.data.color)!=null&&G.basicColorPaletteData&&_.Do(this.hostElement,this.data.color.basicColorPaletteData)};
bU.prototype.useFilledIcons=function(G){return _.V("kevlar_system_icons")&&(G==="CHECK_CIRCLE_THICK"||G==="OFFICIAL_ARTIST_BADGE")};
_.u4.Object.defineProperties(bU.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return this.data.authorCreator||((G=this.data)==null?void 0:(H=G.color)==null?void 0:(Z=H.basicColorPaletteData)==null?void 0:Z.backgroundColor)}}});
bU.prototype.basicPaletteChanged=bU.prototype.basicPaletteChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bU.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],bU.prototype,"standardizeIconSize",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.authorUnifiedVerified"),_.A("design:type",Object),_.A("design:paramtypes",[])],bU.prototype,"verified",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],bU.prototype,"creator",null);_.N([_.gx("data.color.basicColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bU.prototype,"basicPaletteChanged",null);_.N([_.O({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],bU);
_.m(bU,"ytd-author-comment-badge-renderer",function(){if(dSw!==void 0)return dSw;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return dSw=G},{mode:1});var Vmw;var Gi=function(){return _.C.apply(this,arguments)||this};
_.T(Gi,_.C);Gi.prototype.computeThumbnailWidth=function(G){if(G==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Gi.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Gi.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],Gi.prototype,"icon",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],Gi.prototype,"surface",void 0);
_.N([_.h({reflectToAttribute:!0,value:_.V("enable_shrink_image_size_on_web_posts_singleton")}),_.A("design:type",Boolean)],Gi.prototype,"searchSxsUx",void 0);_.N([_.h({reflectToAttribute:!0,value:_.V("enable_community_page_on_desktop")}),_.A("design:type",Boolean)],Gi.prototype,"useSmallerPostImageAttachments",void 0);_.N([_.O({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Gi);
_.m(Gi,"ytd-backstage-image-renderer",function(){if(Vmw!==void 0)return Vmw;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Vmw=G},{mode:1});var $St;var Hr=function(){var G=_.C.apply(this,arguments)||this;G.isLoading=!1;G.selectedItemIndex=-1;return G};
_.T(Hr,_.C);_.g=Hr.prototype;_.g.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.g.computeIsImagePoll=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.g.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.g.thumbnailSrc=function(G){var H,Z,Q,p;return(G==null?0:(H=G.thumbnails)==null?0:(Z=H[0])==null?0:Z.url)?_.m0((Q=G.thumbnails)==null?void 0:(p=Q[0])==null?void 0:p.url):void 0};
_.g.progressWidth=function(G){return"width:"+(G?G*100:0)+"%;"};
_.g.textAreaWidth=function(G){return this.isImagePoll?null:"width:"+(G?G*100:0)+"%;"};
_.g.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.g.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var G=this.data.choices,H=0;H<G.length;H++)if(G[H].selected){this.selectedItemIndex=H;break}};
_.g.onPopupClosed=function(G,H){G=Number(this.pollVotes.selected);H.confirmed&&(this.selectChoice(G,!1),_.AZ(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.g.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.g.onYtCommentPollRevert=function(G,H){H&&(this.selectChoice(H.selectedChoiceIndex,!0),this.set("data.totalVotes",H.totalVotes))};
_.g.onYtServiceRequestSent=function(G,H){if(H.actions)for(G=0;G<H.actions.length;G++){var Z=H.actions[G];_.X(Z,jj)&&this.set("data.totalVotes",_.X(Z,jj).totalVotes)}};
_.g.onYtServiceRequestCompleted=function(G){var H=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.N5(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.g.getEndpoint=function(G,H){return H===G?this.data.choices[H].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.g.selectChoice=function(G,H){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var Z=0;Z<this.data.choices.length;Z++){var Q;if(G===this.selectedItemIndex){var p=!1;var l=Q=null}else Q=(p=Z===G)?this.data.choices[Z].voteRatioIfSelected:this.data.choices[Z].voteRatioIfNotSelected,l=p?this.data.choices[Z].votePercentageIfSelected:this.data.choices[Z].votePercentageIfNotSelected;this.set("data.choices."+Z+".voteRatio",Q);
this.set("data.choices."+Z+".votePercentage",l);this.set("data.choices."+Z+".selected",p)}H||(this.isLoading=!0,(H=this.getEndpoint(G,this.selectedItemIndex))&&_.tp().resolve(_.Dk).resolveCommand(H,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.u4.Object.defineProperties(Hr.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Hr.prototype.onYtServiceRequestCompleted=Hr.prototype.onYtServiceRequestCompleted;Hr.prototype.onYtServiceRequestSent=Hr.prototype.onYtServiceRequestSent;Hr.prototype.onYtCommentPollRevert=Hr.prototype.onYtCommentPollRevert;Hr.prototype.onPopupClosed=Hr.prototype.onPopupClosed;Hr.prototype.dataChanged=Hr.prototype.dataChanged;_.N([_.v(_.He),_.A("design:type",Object)],Hr.prototype,"paperItemBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],Hr.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Hr.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Hr.prototype,"isLoading",void 0);_.N([_.h({computed:"computeIsChannelOwner(data.choices)"}),_.A("design:type",Boolean)],Hr.prototype,"isChannelOwner",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.A("design:type",Boolean)],Hr.prototype,"isImagePoll",void 0);_.N([_.h({computed:"computeIsTotalVotesDisabled(data)"}),_.A("design:type",Boolean)],Hr.prototype,"isTotalVotesDisabled",void 0);_.N([_.h(),_.A("design:type",Object)],Hr.prototype,"previousPollInfo",void 0);_.N([_.h(),_.A("design:type",Object)],Hr.prototype,"selectedItemIndex",void 0);_.N([_.q6("#poll-votes"),_.A("design:type",Object)],Hr.prototype,"pollVotes",void 0);
_.N([_.z("isChannelOwner"),_.A("design:type",Object),_.A("design:paramtypes",[])],Hr.prototype,"endpointStyle",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hr.prototype,"dataChanged",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Hr.prototype,"onPopupClosed",null);
_.N([_.lq("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Hr.prototype,"onYtCommentPollRevert",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],Hr.prototype,"onYtServiceRequestSent",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Hr.prototype,"onYtServiceRequestCompleted",null);_.N([_.O({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Hr);
_.m(Hr,"ytd-backstage-poll-renderer",function(){if($St!==void 0)return $St;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $St=G},{mode:2});var XBR;var cFd={autoplay:!1,loop:!1},T9R={simpleText:""},s5=function(){var G=_.C.apply(this,arguments)||this;G.isLoading=!1;G.usesPanelLockup=!1;G.selectedItemIndex=-1;G.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},cFd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});G.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},cFd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});G.correctnessAnimationProps=[];G.correctnessAnimationRefs=[];return G};
_.T(s5,_.C);_.g=s5.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.g.computeIsChannelOwner=function(G){if(!G)return!0;G=G[0];return!(G&&(G.signinEndpoint||G.selectServiceEndpoint))};
_.g.computeIsTotalVotesDisabled=function(G){return!(G==null?0:G.totalVotes)};
_.g.computeIsImageQuiz=function(G){return(G==null?void 0:G.type)==="POLL_TYPE_IMAGE"};
_.g.onExplanationChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var G=this.data.choices;if(G){this.maybeInitializeQuizLotties(G);for(var H=0;H<G.length;H++)if(G[H].isSelected||this.isChannelOwner&&G[H].isCorrect){this.selectedItemIndex=H;return}this.selectedItemIndex=-1}}};
_.g.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var G=this.selectedItemIndex,H=Number(this.quizVotes.selected);this.selectChoice(H);this.sendVoteAction(H,G);this.quizVotes.selected=-1;var Z;G=!((Z=this.data)==null?0:Z.enableAnimation);this.maybePlayAnswerAnimations(G)}};
_.g.onYtCommentPollRevert=function(G,H){H&&(this.selectChoice(H.selectedChoiceIndex),this.set("data.totalVotes",H.totalVotes))};
_.g.onYtServiceRequestSent=function(G,H){if(H.actions)for(G=_.I(H.actions),H=G.next();!H.done;H=G.next())(H=_.X(H.value,jj))&&this.set("data.totalVotes",H.totalVotes)};
_.g.onYtServiceRequestCompleted=function(G){var H=this.get("detail.data.actionResults.0.feedback",G);G=this.get("detail.data.actionResults.0.status",G);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,G==="STATUS_FAILED"?_.N5(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.g.getAnimationPropsForChoiceIndex=function(G,H){return H[G]};
_.g.maybePlayAnswerAnimations=function(G){G=G===void 0?!1:G;var H;if((H=this.data)!=null&&H.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){H=_.I(this.correctnessAnimationRefs);for(var Z=H.next();!Z.done;Z=H.next()){var Q=void 0,p=void 0;(Q=Z.value)==null||(p=Q.lottieEl)==null||p.stop()}if(!(this.selectedItemIndex<0)){H=0;G&&(H=this.isCorrect?37:25);var l,q;(l=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(q=l.lottieEl)==null||q.goToAndPlay(G?H:0,!0);if(!(this.isCorrect||
(l=this.data.choices.findIndex(function(D){return D.isCorrect}),l<0))){var u,B;
(B=(u=this.correctnessAnimationRefs[l])==null?void 0:u.lottieEl)==null||B.goToAndPlay(37,!0);var t;u=(t=this.fadeContainers)==null?void 0:t.item(l);!G&&u&&this.fadeIn(u)}}}};
_.g.thumbnailSrc=function(G){var H,Z,Q,p;return(G==null?0:(H=G.thumbnails)==null?0:(Z=H[0])==null?0:Z.url)?_.m0((Q=G.thumbnails)==null?void 0:(p=Q[0])==null?void 0:p.url):void 0};
_.g.a11yVotedText=function(G,H){var Z,Q,p=((Z=this.data)==null?void 0:(Q=Z.correctVotedText)==null?void 0:Q.simpleText)||"",l,q;Z=((l=this.data)==null?void 0:(q=l.votedText)==null?void 0:q.simpleText)||"";if(!H)return"";var u,B;if((u=this.data)==null?0:(B=u.choices)==null?0:B[G].isCorrect)return p;var t,D;return((t=this.data)==null?0:(D=t.choices)==null?0:D[G].isSelected)?Z:""};
_.g.getEndpoint=function(G,H){return H===G?this.data.choices[G].deselectServiceEndpoint||null:this.data.choices[G].selectServiceEndpoint||null};
_.g.sendVoteAction=function(G,H){if(G=this.getEndpoint(G,H))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(G)};
_.g.selectChoice=function(G){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var H=0;H<this.data.choices.length;H++)this.set("data.choices."+H+".isSelected",G===this.selectedItemIndex?!1:H===G);this.selectedItemIndex=this.selectedItemIndex===G?-1:G};
_.g.maybeInitializeQuizLotties=function(G){var H=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=G.map(function(Z){return{animationConfig:Z.isCorrect?H.baseCorrectLottiePlayerAnimationConfig:H.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){H.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(Z){return Z.animationRef||{}})};
_.g.fadeIn=function(G){G.classList.add("fade-in");_.E6(_.Ui,function(){G.classList.remove("fade-in")},900)};
_.u4.Object.defineProperties(s5.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.yn(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 G,H;return((G=this.data)==null?void 0:(H=G.choices)==null?void 0:H.some(function(Z){return Z.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null||!G.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?T9R:this.data.choices[this.selectedItemIndex].explanation||T9R}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null||!G.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
s5.prototype.onYtServiceRequestCompleted=s5.prototype.onYtServiceRequestCompleted;s5.prototype.onYtServiceRequestSent=s5.prototype.onYtServiceRequestSent;s5.prototype.onYtCommentPollRevert=s5.prototype.onYtCommentPollRevert;s5.prototype.dataChanged=s5.prototype.dataChanged;s5.prototype.onExplanationChanged=s5.prototype.onExplanationChanged;_.N([_.v(_.He),_.A("design:type",Object)],s5.prototype,"paperItemBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],s5.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Q6.YtTaskEmitterBehavior),_.A("design:type",Object)],s5.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],s5.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],s5.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],s5.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Object)],s5.prototype,"usesPanelLockup",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.A("design:type",Boolean)],s5.prototype,"isChannelOwner",void 0);_.N([_.h({computed:"computeIsTotalVotesDisabled(data)"}),_.A("design:type",Boolean)],s5.prototype,"isTotalVotesDisabled",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.A("design:type",Boolean)],s5.prototype,"isImageQuiz",void 0);_.N([_.h(),_.A("design:type",Object)],s5.prototype,"previousQuizInfo",void 0);_.N([_.h(),_.A("design:type",Object)],s5.prototype,"selectedItemIndex",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data","usesPanelLockup"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s5.prototype,"shouldUseModernUi",null);
_.N([_.S9(".fade-container"),_.A("design:type",Object)],s5.prototype,"fadeContainers",void 0);_.N([_.h(),_.A("design:type",Array)],s5.prototype,"correctnessAnimationProps",void 0);_.N([_.z("explanation","showCorrectAnswer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s5.prototype,"showExplanation",null);_.N([_.z("isChannelOwner","isAttempted"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s5.prototype,"showCorrectAnswer",null);
_.N([_.z("isChannelOwner","isAttempted","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s5.prototype,"isQuizAnsweringDisabled",null);_.N([_.z("isQuizAnsweringDisabled"),_.A("design:type",Object),_.A("design:paramtypes",[])],s5.prototype,"endpointStyle",null);_.N([_.z("data","selectedItemIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s5.prototype,"isAttempted",null);
_.N([_.z("data","selectedItemIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],s5.prototype,"explanation",null);_.N([_.z("data","selectedItemIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],s5.prototype,"isCorrect",null);_.N([_.q6("ytd-expander"),_.A("design:type",Object)],s5.prototype,"expander",void 0);_.N([_.q6("#quiz-votes"),_.A("design:type",Object)],s5.prototype,"quizVotes",void 0);
_.N([_.gx("explanation"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],s5.prototype,"onExplanationChanged",null);_.N([_.gx("data","isChannelOwner"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],s5.prototype,"dataChanged",null);_.N([_.lq("yt-comment-quiz-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],s5.prototype,"onYtCommentPollRevert",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],s5.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],s5.prototype,"onYtServiceRequestCompleted",null);_.N([_.O({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],s5);
_.m(s5,"ytd-backstage-quiz-renderer",function(){if(XBR!==void 0)return XBR;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return XBR=G},{mode:1});var fXw;var Z9=function(){return _.C.apply(this,arguments)||this};
_.T(Z9,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Z9.prototype,"data",void 0);_.N([_.O({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Z9);
_.m(Z9,"ytd-post-uploaded-video-renderer",function(){if(fXw!==void 0)return fXw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fXw=G},{mode:1});var vo4;var QM=function(){return _.C.apply(this,arguments)||this};
_.T(QM,_.C);QM.prototype.useFilledIcons=function(G){return G==="SPONSORSHIP_STAR"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],QM.prototype,"data",void 0);_.N([_.O({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],QM);
var WCT=_.xQ()(QM,"ytd-sponsors-only-badge-renderer",function(){if(vo4===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);vo4=G}G=vo4;return G},{allowedProps:["data"],
mode:1});var za_;var pd=function(){return _.C.apply(this,arguments)||this};
_.T(pd,_.C);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],pd.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],pd.prototype,"data",void 0);_.N([_.O({is:"ytd-child-video-renderer",disableElementRegistration:!0})],pd);
_.m(pd,"ytd-child-video-renderer",function(){if(za_!==void 0)return za_;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return za_=G},{mode:1});var KCT;var Mmt;var lA=function(){var G=_.C.apply(this,arguments)||this;G.size=0;G.fallbackImageSize={height:void 0,width:9999};G.webModernCollections=!1;return G};
_.T(lA,_.C);_.g=lA.prototype;_.g.computeBlurredImageSize=function(G){return G?{height:G*2,width:G*2}:this.fallbackImageSize};
_.g.computeImageSize=function(G){return G?{height:G,width:G}:this.fallbackImageSize};
_.g.computeObjectFit=function(G){return G?"FILL":"CONTAIN"};
_.g.computePreserve=function(G){return G?!0:!1};
_.g.setBackground=function(){var G,H;if((G=this.data)==null?0:(H=G.thumbnail)==null?0:H.sampledThumbnailColor)G=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+G.red+","+G.green+","+G.blue+",1)"};
lA.prototype.setBackground=lA.prototype.setBackground;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],lA.prototype,"watchFeedThumbnail",void 0);_.N([_.h(),_.A("design:type",Object)],lA.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],lA.prototype,"size",void 0);
_.N([_.h({computed:"computeBlurredImageSize(size)"}),_.A("design:type",Object)],lA.prototype,"blurredImageSize",void 0);_.N([_.h({computed:"computeImageSize(size)"}),_.A("design:type",Object)],lA.prototype,"imageSize",void 0);_.N([_.h({computed:"computePreserve(size)"}),_.A("design:type",String)],lA.prototype,"preserve",void 0);_.N([_.h({computed:"computeObjectFit(size)"}),_.A("design:type",String)],lA.prototype,"objectFit",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lA.prototype,"webModernCollections",void 0);_.N([_.gx("data.thumbnail.sampledThumbnailColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lA.prototype,"setBackground",null);_.N([_.O({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],lA);
_.m(lA,"ytd-playlist-custom-thumbnail-renderer",function(){if(Mmt!==void 0)return Mmt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Mmt=G},{mode:1});var jYT;var gy=function(){return _.C.apply(this,arguments)||this};
_.T(gy,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gy.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],gy.prototype,"width",void 0);_.N([_.O({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],gy);
_.m(gy,"ytd-playlist-video-thumbnail-renderer",function(){if(jYT!==void 0)return jYT;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jYT=G},{mode:1});var P9p;var Ir=function(){return _.C.apply(this,arguments)||this};
_.T(Ir,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ir.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],Ir.prototype,"width",void 0);_.N([_.O({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Ir);
_.m(Ir,"ytd-show-custom-thumbnail-renderer",function(){if(P9p!==void 0)return P9p;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return P9p=G},{mode:1});var rFw;var qJ=function(){return _.C.apply(this,arguments)||this};
_.T(qJ,_.C);qJ.prototype.useFilledIcons=function(G){return G==="MUSIC"||G==="COURSE"};
qJ.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Tz(this.overlayColor,"0.8");else if(this.overlayColor){var G=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+G.red+","+G.green+","+G.blue+",0.8)"}};
_.u4.Object.defineProperties(qJ.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)}}});
qJ.prototype.overlayColorChanged=qJ.prototype.overlayColorChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qJ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qJ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],qJ.prototype,"overlayColor",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],qJ.prototype,"overlayStyle",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data.icon","data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],qJ.prototype,"overlayTextStyle",null);_.N([_.gx("overlayColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qJ.prototype,"overlayColorChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],qJ);
_.m(qJ,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(rFw!==void 0)return rFw;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return rFw=G},{mode:1});var wBa;var Sr=function(){var G=_.C.apply(this,arguments)||this;G.active=!1;return G};
_.T(Sr,_.C);Sr.prototype.computeIsSpinnerHidden=function(G){return(G==null?void 0:G.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Sr.prototype.computeOverlayIcon=function(G){return(G==null?void 0:G.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(G==null?void 0:G.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Sr.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Sr.prototype,"active",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Sr);
_.m(Sr,"ytd-thumbnail-overlay-downloading-renderer",function(){if(wBa!==void 0)return wBa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wBa=G},{mode:1});var haR;var uA=function(){return _.C.apply(this,arguments)||this};
_.T(uA,_.C);_.u4.Object.defineProperties(uA.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uA.prototype,"data",void 0);_.N([_.z("data.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],uA.prototype,"text",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],uA);
_.m(uA,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(haR!==void 0)return haR;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return haR=G},{mode:1});var C9a,iUw=function(){if(C9a!==void 0)return C9a;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return C9a=G};var Br=function(){return _.C.apply(this,arguments)||this};
_.T(Br,_.C);_.u4.Object.defineProperties(Br,{template:{configurable:!0,enumerable:!0,get:function(){return iUw()}}});
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Br.prototype,"animateEqualizer",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Br);_.xQ()(Br,"ytd-thumbnail-overlay-equalizer",function(){return iUw()},{allowedProps:["animateEqualizer"],
mode:1});var OUa;var Ji=function(){var G=_.C.apply(this,arguments)||this;G.nowPlayingBadge=_.V("web_now_playing_badge");G.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return G};
_.T(Ji,_.C);Ji.prototype.activeChanged=function(){var G=this;_.V("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.q2(this,function(){_.N5(G.hostElement,"yt-playlist-lockup-now-playing-active",G)})};
Ji.prototype.onMiniplayerPlayStateChanged=function(G){var H,Z=(H=_.X(_.PN().currentEndpoint,_.hZ))==null?void 0:H.videoId;this.isVideoPlaying=G&&(_.V("web_limit_now_playing_animation_killswitch")||this.videoId===Z)};
Ji.prototype.activeChanged=Ji.prototype.activeChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ji.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ji.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Ji.prototype,"isVideoPlaying",void 0);_.N([_.h(),_.A("design:type",String)],Ji.prototype,"videoId",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ji.prototype,"equalizerOnly",void 0);_.N([_.h(),_.A("design:type",Boolean)],Ji.prototype,"isActive",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ji.prototype,"nowPlayingBadge",void 0);_.N([_.gx("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ji.prototype,"activeChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Ji);
_.m(Ji,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(OUa!==void 0)return OUa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return OUa=G},{mode:1});var aXt;var ti=function(){return _.C.apply(this,arguments)||this};
_.T(ti,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ti.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],ti);
_.m(ti,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(aXt!==void 0)return aXt;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return aXt=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var yFd;var k3=function(){return _.C.apply(this,arguments)||this};
_.T(k3,_.C);k3.prototype.onDurationChanged=function(){var G,H;_.F9(this.hostElement).querySelector("#progress").style.width=((H=(G=this.data)==null?void 0:G.percentDurationWatched)!=null?H:0)+"%"};
k3.prototype.onDurationChanged=k3.prototype.onDurationChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],k3.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],k3.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],k3.prototype,"isLive",void 0);_.N([_.gx("data.percentDurationWatched"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k3.prototype,"onDurationChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],k3);
_.m(k3,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(yFd!==void 0)return yFd;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return yFd=G},{mode:1});var ooa;var D9=function(){var G=_.C.apply(this,arguments)||this;G.bottomPanel=!1;G.richGridOverlay=!1;G.watchFeedOverlay=!1;G.isCompact=!1;return G};
_.T(D9,_.C);D9.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.u4.Object.defineProperties(D9.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:(H=G.icon)==null?void 0:H.iconType)==="PLAY_ALL"&&_.V("kevlar_system_icons")}}});
D9.prototype.widthChanged=D9.prototype.widthChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],D9.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],D9.prototype,"width",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],D9.prototype,"bottomPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],D9.prototype,"richGridOverlay",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],D9.prototype,"watchFeedOverlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],D9.prototype,"isCompact",void 0);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],D9.prototype,"isIconFilled",null);_.N([_.gx("width","watchFeedOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D9.prototype,"widthChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],D9);
_.m(D9,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(ooa!==void 0)return ooa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ooa=G},{mode:1});var mS7;var USa=["CLIP","SHORTS"],dy=function(){var G=_.C.apply(this,arguments)||this;G.animated=_.V("animated_live_badge_icon");G.hasIcon=!1;G.updateTimerIntervalId=0;G.timeSinceLive=0;return G};
_.T(dy,_.C);_.g=dy.prototype;_.g.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.g.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.g.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.g.hasIconOrText=function(){var G,H;return!!(((G=this.data)==null?0:G.icon)||((H=this.data)==null?0:H.text))};
_.g.initializeLiveBadgeTimer=function(){var G=this,H,Z=(H=this.liveBadgeData)==null?void 0:H.startTimestampSec;if(Z&&this.canShowLiveBadgeTimer()){var Q;H=Number((Q=this.liveBadgeData)==null?void 0:Q.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(Z);this.updateTimerIntervalId=_.TF(function(){G.canShowLiveBadgeTimer()?G.timeSinceLive++:(G.timeSinceLive=0,window.clearInterval(G.updateTimerIntervalId))},H)}else this.timeSinceLive=0};
_.g.canShowLiveBadgeTimer=function(){var G=Date.now(),H,Z;return G<(Number((H=this.liveBadgeData)==null?void 0:H.endTimestampSec)-1)*1E3&&G>Number((Z=this.liveBadgeData)==null?void 0:Z.startTimestampSec)*1E3};
_.u4.Object.defineProperties(dy.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.MFe(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 G;return(G=this.data)==null?void 0:G.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 USa.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
dy.prototype.initializeLiveBadgeTimer=dy.prototype.initializeLiveBadgeTimer;dy.prototype.dataChanged=dy.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],dy.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],dy.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],dy.prototype,"icon",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],dy.prototype,"animated",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.A("design:type",Boolean)],dy.prototype,"hideTimeStatus",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],dy.prototype,"hasIcon",void 0);_.N([_.h(),_.A("design:type",Object)],dy.prototype,"timeSinceLive",void 0);_.N([_.z("data","timeSinceLive"),_.A("design:type",Object),_.A("design:paramtypes",[])],dy.prototype,"badgeShapeData",null);
_.N([_.z("data","overlayType"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dy.prototype,"hideBadgeShape",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dy.prototype,"dataChanged",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],dy.prototype,"overlayStyle",null);
_.N([_.z("data.liveBadgeData"),_.A("design:type",Object),_.A("design:paramtypes",[])],dy.prototype,"liveBadgeData",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.type"),_.A("design:type",Object),_.A("design:paramtypes",[])],dy.prototype,"overlayType",null);_.N([_.z("overlayType","overlayStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],dy.prototype,"useFilledIcon",null);
_.N([_.Jv("liveBadgeData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dy.prototype,"initializeLiveBadgeTimer",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],dy);
_.m(dy,"ytd-thumbnail-overlay-time-status-renderer",function(){if(mS7!==void 0)return mS7;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mS7=G},{mode:_.LH("kevlar_poly_si_batch_j035")?1:2});var Ra2;var er=function(){return _.C.apply(this,arguments)||this};
_.T(er,_.C);er.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"}}}}};
er.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(G){if(this.hasPlaybackProgressBar)return{percentDurationWatched:G.percentDurationWatched}};
er.prototype.computeHasPlaybackProgressBar=function(G){return!!G.percentDurationWatched&&G.percentDurationWatched>0};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],er.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],er.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.A("design:type",Boolean)],er.prototype,"hasPlaybackProgressBar",void 0);
_.N([_.O({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],er);
_.m(er,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Ra2!==void 0)return Ra2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ra2=G},{mode:1});var N9t;var AFd=_.y(function(G){var H=G.data;var Z=G.children;var Q=function(){return!!H().doubleStack},p=function(){return!!H().includeStackHeight};
return _.J("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!H().experimentEnabled}},_.J(_.k,{cond:H,
then:function(){var l={};return _.J(_.kI,null,_.J(_.k,{cond:p,then:function(){var q={};return _.J("div",{class:_.bb("ytCollectionsStackSpacer",(q.ytCollectionsStackSpacerDoubleStack=Q,q))})}}),_.J("div",{class:_.bb((l.ytCollectionsStackRelativeStack=p,l))},_.J(_.k,{cond:Q,
then:function(){var q={};return _.J("div",{class:_.bb("ytCollectionsStackCollectionStack2",function(){return H().customClassName2ndStack},(q.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return H().enableResponsiveMode},q)),
style:_.pI({"background-color":function(){return Pku(H())}})})}}),_.J("div",{class:_.bb("ytCollectionsStackCollectionStack1",function(){return H().customClassName1stStack},function(){return jgb(H().thumbnailSize?H().thumbnailSize:"medium")}),
style:_.pI({"background-color":function(){return Pku(H())}})}),Z))}}))},"Ca");_.RX(AFd,"yt-collections-stack",{props:{data:_.b3}});var nd=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};G.webModernCollections=!1;G.isSearch=!1;G.isDoubleStack=!1;G.thumbnailSize="medium";return G};
_.T(nd,_.C);_.g=nd.prototype;
_.g.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]]"}}}}}};
_.g.getThumbnailDetails=function(G){if(G!=null&&G.thumbnailRenderer){var H=G.thumbnailRenderer,Z;if((Z=H.playlistVideoThumbnailRenderer)==null?0:Z.thumbnail)return H.playlistVideoThumbnailRenderer.thumbnail;var Q;if((Q=H.playlistCustomThumbnailRenderer)==null?0:Q.thumbnail)return H.playlistCustomThumbnailRenderer.thumbnail;G=G.thumbnailRenderer;var p;if((p=G.showCustomThumbnailRenderer)==null?0:p.thumbnail)return G.showCustomThumbnailRenderer.thumbnail}};
_.g.computeOverlayColor=function(G){var H,Z;if((H=this.getThumbnailDetails(G))==null?0:(Z=H.darkColorPalette)==null?0:Z.section2Color)return this.getThumbnailDetails(G).darkColorPalette.section2Color;var Q;return(Q=this.getThumbnailDetails(G))==null?void 0:Q.sampledThumbnailColor};
_.g.computeWebModernCollections=function(G){if(G==null||!G.thumbnailOverlays)return!1;G=_.I(G.thumbnailOverlays);for(var H=G.next();!H.done;H=G.next()){var Z=void 0;if((Z=H.value)==null?0:Z.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.g.computeNavigationEndpoint=function(G){return CZb(G==null?void 0:G.navigationEndpoint)};
_.u4.Object.defineProperties(nd.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:G==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:G==null?void 0:G.vibrantColorPalette,darkColorPalette:G==null?void 0:G.darkColorPalette,experimentEnabled:!0}}}});
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],nd.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(HZa),_.A("design:type",Object)],nd.prototype,"ytdThumbnailBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],nd.prototype,"componentBehavior",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],nd.prototype,"watchFeedThumbnail",void 0);_.N([_.h(),_.A("design:type",Number)],nd.prototype,"customThumbnailSize",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],nd.prototype,"hideAria",void 0);_.N([_.h(),_.A("design:type",Object)],nd.prototype,"data",void 0);_.N([_.h({computed:"computeOverlayColor(data)"}),_.A("design:type",Object)],nd.prototype,"overlayColor",void 0);
_.N([_.h({computed:"computeWebModernCollections(data)"}),_.A("design:type",Object)],nd.prototype,"webModernCollections",void 0);_.N([_.h({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],nd.prototype,"computedNavigationEndpoint",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],nd.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],nd.prototype,"isDoubleStack",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],nd.prototype,"thumbnailSize",void 0);_.N([_.z("data","isDoubleStack","thumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],nd.prototype,"collectionStack",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],nd);
_.m(nd,"ytd-playlist-thumbnail",function(){if(N9t!==void 0)return N9t;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return N9t=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var xSp;_.RX(_.y(function(G){return _.J("yt-text-view-model",{class:_.bb("ytTextViewModelHost")},_.J(_.Fe,{text:function(){return G.data().text}}))},"Da"),"yt-text-view-model",{props:{data:_.b3}});var VM=function(){var G=_.C.apply(this,arguments)||this;G.noEndpoints=!1;G.amsterdamPostMvp=_.V("web_amsterdam_post_mvp_playlists");G.badges=[];G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.T(VM,_.C);_.g=VM.prototype;_.g.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.g.getMetadata=function(G){if(!G)return[];var H=[],Z=G.shortViewCountText||G.viewCountText;Z&&H.push(_.yn(Z));G.publishedTimeText&&H.push(_.yn(G.publishedTimeText));G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&H.push(_.tW(_.yn(G.upcomingEventData.upcomingEventText),Number(G.upcomingEventData.startTime)));return H};
_.g.observeDataForBylineSeparator=function(){this.data&&_.Gq(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.g.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.X9(this.metadataColor)};
_.g.getSimpleString=function(G){return _.yn(G)};
_.g.isBylineHidden=function(G){return this.noByline||!((G==null?0:G.longBylineText)||(G==null?0:G.shortBylineText))};
_.g.isMetadataHidden=function(G){var H;return((H=this.getMetadata(G))==null?void 0:H.length)===0};
_.g.isBylineMetadataSeparatorHidden=function(G){return this.isMetadataHidden(G)||!this.shouldShowVideoInfo};
_.g.isLongByline=function(G,H){return H&&!(G==null||!G.longBylineText)};
_.u4.Object.defineProperties(VM.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var G;return this.amsterdamPostMvp&&!((G=this.data)==null||!G.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 G;return!((G=this.data)==null||!G.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
VM.prototype.metadataColorChanged=VM.prototype.metadataColorChanged;VM.prototype.observeDataForBylineSeparator=VM.prototype.observeDataForBylineSeparator;_.N([_.v(_.Up),_.A("design:type",Object)],VM.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],VM.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],VM.prototype,"noEndpoints",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VM.prototype,"isSlimShort",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VM.prototype,"radioMeta",void 0);_.N([_.h({selector:_.T3}),_.A("design:type",Object)],VM.prototype,"isGridViewEnabled",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VM.prototype,"richMeta",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],VM.prototype,"amsterdamPostMvp",void 0);
_.N([_.h(),_.A("design:type",Boolean)],VM.prototype,"noByline",void 0);_.N([_.h({computed:"isLongByline(data, radioMeta)"}),_.A("design:type",Boolean)],VM.prototype,"longByline",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VM.prototype,"truncateMetadataLine",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VM.prototype,"miniMode",void 0);_.N([_.h(),_.A("design:type",Number)],VM.prototype,"metadataColor",void 0);
_.N([_.h(),_.A("design:type",Array)],VM.prototype,"badges",void 0);_.N([_.h({selector:_.Wv,selectorArgs:["data.videoId"]}),_.A("design:type",String)],VM.prototype,"transferState",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VM.prototype,"isDownloading",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VM.prototype,"typographyBump",void 0);_.N([_.q6("#metadata-line"),_.A("design:type",HTMLElement)],VM.prototype,"metadataLine",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VM.prototype,"observeDataForBylineSeparator",null);_.N([_.gx("metadataColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VM.prototype,"metadataColorChanged",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],VM.prototype,"shouldShowVideoInfo",null);
_.N([_.z("badges"),_.A("design:type",String),_.A("design:paramtypes",[])],VM.prototype,"inlineBadgeClass",null);_.N([_.z("longByline"),_.A("design:type",String),_.A("design:paramtypes",[])],VM.prototype,"longBylineClass",null);_.N([_.z("data","longByline"),_.A("design:type",Object),_.A("design:paramtypes",[])],VM.prototype,"bylineText",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],VM.prototype,"hasAttributedBylineText",null);
_.N([_.z("isGridViewEnabled","data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],VM.prototype,"watchFeedBigThumbs",null);_.N([_.O({is:"ytd-video-meta-block",disableElementRegistration:!0})],VM);
_.m(VM,"ytd-video-meta-block",function(){if(xSp!==void 0)return xSp;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xSp=G},{mode:_.LH("kevlar_poly_si_batch_j080")?1:2});_.eQ("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var $3=function(){var G=_.C.apply(this,arguments)||this;G.displayItemCount=2;G.isBackstagePlaylist=!1;G.isPostCompactPlaylist=!1;G.shouldShowChannelThumbnail=!1;return G};
_.T($3,_.C);_.g=$3.prototype;_.g.computeFirstVideos=function(G,H){return G===void 0||H===void 0?[]:G.slice(0,H)};
_.g.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var G=this.data.thumbnailRenderer;G.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",G.playlistVideoThumbnailRenderer.thumbnail);G.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",G.playlistCustomThumbnailRenderer.thumbnail)}};
_.g.computeThumbnailHeight=function(G,H,Z,Q,p){return Q?p==="BIG"?280:p==="MASSIVE"?337:234:Z?240:H?72:G?118:138};
_.g.computeThumbnailWidth=function(G,H,Z,Q,p){return Q?p==="MEDIUM"?450:p==="BIG"?500:p==="MASSIVE"?600:420:Z?360:H?128:G?210:246};
_.g.computeUseBiggerThumbs=function(G){return G&&_.V("enable_desktop_search_bigger_thumbs")};
_.g.computeShouldShowChannelThumbnail=function(G,H){return G&&!(H==null||!H.channelThumbnail)};
_.u4.Object.defineProperties($3.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
$3.prototype.dataChanged=$3.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],$3.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],$3.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$3.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],$3.prototype,"displayItemCount",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],$3.prototype,"isBackstagePlaylist",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],$3.prototype,"isPostCompactPlaylist",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],$3.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.A("design:type",Boolean)],$3.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],$3.prototype,"biggerThumbsStyle",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],$3.prototype,"isDownloads",void 0);_.N([_.h({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.A("design:type",Object)],$3.prototype,"shouldShowChannelThumbnail",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$3.prototype,"dataChanged",null);
_.N([_.z("isSearch"),_.A("design:type",String),_.A("design:paramtypes",[])],$3.prototype,"stackThumbnailSize",null);_.N([_.O({is:"ytd-playlist-renderer",disableElementRegistration:!0})],$3);
_.m($3,"ytd-playlist-renderer",function(){if(KCT===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);KCT=G}G=KCT;return G},{mode:1});var LCR;var Eo7;var Xl=function(){var G=_.C.apply(this,arguments)||this;G.startX=0;return G};
_.T(Xl,_.C);Xl.prototype.onEndpointMouseDown=function(G){this.startX=G.clientX};
Xl.prototype.onEndpointClick=function(G){this.startX!==G.clientX&&(G.preventDefault(),G.stopPropagation())};
Xl.prototype.computeObjectFit=function(G){return G==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||G==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||G==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Xl.prototype.computeCardStyle=function(G){return G?G.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.u4.Object.defineProperties(Xl.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:(H=G.searchRefinementCardRendererStyle)==null?void 0:H.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Xl.prototype,"data",void 0);_.N([_.h({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.A("design:type",Number)],Xl.prototype,"objectFit",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.A("design:type",String)],Xl.prototype,"cardStyle",void 0);
_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],Xl.prototype,"roundContainer",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Xl.prototype,"isAlbumCard",null);_.N([_.z("data","isAlbumCard"),_.A("design:type",Object),_.A("design:paramtypes",[])],Xl.prototype,"collectionStack",null);_.N([_.O({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],Xl);
_.m(Xl,"ytd-search-refinement-card-renderer",function(){if(Eo7!==void 0)return Eo7;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Eo7=G},{mode:1});var Yua;var cr=function(){var G=_.C.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.T(cr,_.C);_.N([_.h(),_.A("design:type",Object)],cr.prototype,"data",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],cr.prototype,"componentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],cr.prototype,"ytdReduxBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],cr.prototype,"isRichGrid",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],cr.prototype,"miniMode",void 0);
_.N([_.O({is:"ytd-game-details-renderer",disableElementRegistration:!0})],cr);
_.m(cr,"ytd-game-details-renderer",function(){if(Yua!==void 0)return Yua;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Yua=G},{mode:1});var FC7;var bUp;var Ti=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return G};
_.T(Ti,_.C);_.g=Ti.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.currentStateData=function(G){var H=G||this.data;return H&&H.states&&H.currentStateId!=null?H.states.find(function(Z){return Z.stateId===H.currentStateId})||null:null};
_.g.currentStateRendererData=function(G){return(G=this.currentStateData(G))&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.g.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())};
_.g.computeButtonIcon=function(G){G=this.currentStateRendererData(G);var H;return(G==null?0:(H=G.icon)==null?0:H.iconType)?G.icon.iconType.toLowerCase():null};
_.g.computeAccessibility=function(G){return(G=this.currentStateRendererData(G))&&G.accessibilityData?G.accessibilityData.accessibilityData||null:null};
_.g.computeButtonClass=function(G){var H=this.currentStateRendererData(G);if(!H)return"";G="";var Z=H.style;Z&&(G+=Z.toLowerCase().replace(/_/g,"-")+" ");(H=H.size)&&(G+=H.toLowerCase().replace(/_/g,"-")+" ");return G.trim()};
_.g.computeServiceEndpoint=function(G){if(!G)return null;var H=G&&G.serviceEndpoint,Z=this.get("command.commandMetadata.webCommandMetadata.sendPost",G);return H?H:Z&&G.command?G.command:null};
_.g.computeBellMenuItemParams=function(G){var H;G=(H=_.X(G==null?void 0:G.command,_.Ft))==null?void 0:H.commands;if(!G||G.length===0)return null;H=_.X(G[0],_.Pe);var Z,Q;return(H==null?0:(Z=H.popup)==null?0:(Q=Z.menuPopupRenderer)==null?0:Q.items)?H.popup.menuPopupRenderer.items.map(function(p){return p.menuServiceItemRenderer.trackingParams}):null};
_.g.handleBellMenuOpenSelectedAction=function(G){var H=G.trackingParams,Z=this.computeBellMenuItemParams(this.data);this.data&&H&&Z&&Z.includes(H)&&this.ytRenderButtonBehavior._setButtonIcon(G.icon.iconType.toLowerCase())};
_.g.onYtServiceRequestCompleted=function(G,H){(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))&&this.set("data",G)};
_.g.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.g.resetState=function(){this.set("data.currentStateId",3)};
_.g.onYtButtonTapHandler=function(){if(this.data){var G=this.currentStateRendererData(this.data);G&&this.ytRendererBehavior.logExplicitClick(G)}};
Ti.prototype.onYtServiceRequestError=Ti.prototype.onYtServiceRequestError;Ti.prototype.onYtServiceRequestCompleted=Ti.prototype.onYtServiceRequestCompleted;Ti.prototype.stateChanged=Ti.prototype.stateChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ti.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(Ki.YtRenderButtonBehavior),_.A("design:type",Object)],Ti.prototype,"ytRenderButtonBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ti.prototype,"data",void 0);_.N([_.Jv("data","data.currentStateId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ti.prototype,"stateChanged",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],Ti.prototype,"onYtServiceRequestCompleted",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ti.prototype,"onYtServiceRequestError",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Ti);
_.m(Ti,"ytd-subscription-notification-toggle-button-renderer",function(){if(bUp!==void 0)return bUp;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bUp=G},{mode:1});var GMw;var fd=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};G.tapHandler=function(){if(G.data){var H=G.currentStateRendererData();H&&G.ytRendererBehavior.logExplicitClick(H)}};
return G};
_.T(fd,_.C);_.g=fd.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.currentStateData=function(){var G=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(H){return H.stateId===G.data.currentStateId})||null:null};
_.g.currentStateRendererData=function(){var G=this.currentStateData();return G&&G.state&&G.state.buttonRenderer?G.state.buttonRenderer:null};
_.g.computeAccessibilityLabel=function(){var G,H,Z;return(G=this.currentStateRendererData())==null?void 0:(H=G.accessibilityData)==null?void 0:(Z=H.accessibilityData)==null?void 0:Z.label};
_.g.computeBellMenuItemParams=function(){var G,H,Z=(H=_.X((G=this.data)==null?void 0:G.command,_.Ft))==null?void 0:H.commands;if(!Z||Z.length===0)return null;G=_.X(Z[0],_.Pe);var Q,p;return(G==null?0:(Q=G.popup)==null?0:(p=Q.menuPopupRenderer)==null?0:p.items)?G.popup.menuPopupRenderer.items.map(function(l){return l.menuServiceItemRenderer.trackingParams}):null};
_.g.handleBellMenuOpenSelectedAction=function(G){var H=G.trackingParams,Z=this.computeBellMenuItemParams();if(this.data&&H&&Z&&Z.includes(H)&&(G==null||!G.isDisabled)){var Q;((Q=_.X(G.serviceEndpoint,_.GD))==null?void 0:Q.signal)!=="CLIENT_SIGNAL"&&(this.icon=G.icon.iconType)}};
_.g.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.g.onYtServiceRequestCompleted=function(G,H){if(G=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))this.icon=void 0,this.set("data",G)};
_.g.onYtServiceRequestError=function(){this.icon=void 0};
_.u4.Object.defineProperties(fd.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data,H=this.textLabel,Z=this.hostElement,Q=this.computeAccessibilityLabel(),p=this.tapHandler,l=this.isOverlay?"overlay":"mono",q=(G==null?0:G.disableButton)?"disabled":"active";H=H?_.Vw(H):void 0;return{style:l,type:"tonal",state:q,size:"M",focused:!1,formattedButtonText:H,iconPosition:"leading-trailing",onTap:wav(G,p,Z),accessibilityLabel:Q}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var G=this.currentStateRendererData(),H,Z,Q=(Z=this.icon)!=null?Z:G==null?void 0:(H=G.icon)==null?void 0:H.iconType;if(Q)return _.bq(Q)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.secondaryIcon)==null?void 0:H.iconType;if(Z)return _.bq(Z)}}});
fd.prototype.onYtServiceRequestError=fd.prototype.onYtServiceRequestError;fd.prototype.onYtServiceRequestCompleted=fd.prototype.onYtServiceRequestCompleted;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],fd.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fd.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],fd.prototype,"textLabel",void 0);
_.N([_.h(),_.A("design:type",String)],fd.prototype,"icon",void 0);_.N([_.h(),_.A("design:type",Boolean)],fd.prototype,"isOverlay",void 0);_.N([_.z("data.*","textLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],fd.prototype,"computedButtonShape",null);_.N([_.z("data.*","icon"),_.A("design:type",Object),_.A("design:paramtypes",[])],fd.prototype,"computedIcon",null);_.N([_.z("computedIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],fd.prototype,"computedAnimateIcon",null);
_.N([_.z("data.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],fd.prototype,"computedSecondaryIcon",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],fd.prototype,"onYtServiceRequestCompleted",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fd.prototype,"onYtServiceRequestError",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],fd);
_.m(fd,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(GMw!==void 0)return GMw;var G=document.createElement("template");_.f(G,'\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 GMw=G},{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var Hfa;_.RX(HU_,"yt-animated-action",{props:{backgroundLottieRef:_.b3,foregroundLottieRef:_.b3,wrapperClass:_.b3,disableAnimation:_.b3},unsafeExternallySettableAttributes:new Set(["key"])});var vr=function(){var G=_.C.apply(this,arguments)||this;G.animatedActionEnabled=_.V("web_animated_actions");G.foregroundLottieRef={};G.backgroundLottieRef={};G.forceIconOnly=!1;G.showTextWhileAnimating=!1;G.keyboardFocused=!1;G.isAnimating=!1;G.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return G};
_.T(vr,_.C);_.g=vr.prototype;_.g.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.g.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]]"}}}}}};
_.g.attached=function(){this.keyboardFocused=!1};
_.g.onYtServiceRequestSent=function(G,H){(this.get("endpoint.subscribeEndpoint",H)||this.get("endpoint.unsubscribeEndpoint",H))&&this.updateSubscriptionState(!this.subscribed)};
_.g.onYtServiceRequestCompleted=function(G,H){(G=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",H.data))&&this.bellButton&&(this.bellButton.data=G)};
_.g.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.ZI(this.hostElement)};
_.g.onPlayerSubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.g.onPlayerUnsubscribe=function(G){this.isCompactRed()||G!==this.data.channelId||this.updateSubscriptionState(!1)};
_.g.handleUpdateSubscribeButtonAction=function(G){G=_.X(G,EhN);var H;G&&G.channelId===((H=this.data)==null?void 0:H.channelId)&&this.updateSubscriptionState(!!G.subscribed)};
_.g.computeButtonStyle=function(G){return this.get("style.styleType",G)||null};
_.g.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.g.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.g.updateSubscriptionState=function(G){if(G!==this.subscribed){this.set("data.subscribed",G);var H,Z=(H=this.data)==null?void 0:H.subscribedEntityKey;Z&&this.ytdReduxBehavior.dispatch(_.uP("subscriptionStateEntity",Z,{key:Z,subscribed:G}));this.isCompactRed()||_.N5(this.hostElement,"yt-subscription-changed",G);G||(_.AZ(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!G),G&&this.hasBellButton&&this.startAnimation())}};
_.g.startAnimation=function(){var G=this;if(!this.isAnimating){var H=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var Z;(Z=this.backgroundLottieRef.lottieEl)==null||Z.goToAndPlay(0);var Q;(Q=this.foregroundLottieRef.lottieEl)==null||Q.goToAndPlay(0);_.Ui.addJob(function(){G.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Ui.addJob(function(){G.updateContainerToFitContent(!!G.subscribed,!0)},2,1500);
_.Ui.addJob(function(){G.isAnimating=!1},2,H)}};
_.g.maybeAnimateBellIcon=function(){var G=_.bS(this.hostElement).querySelector("yt-animated-icon");if(G){var H;(H=G.animationRef.lottieEl)==null||H.goToAndPlay(0)}};
_.g.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.g.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.g.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var G;this.unsubscribedWidth=(G=this.subscribeButtonShape)==null?void 0:G.getBoundingClientRect().width}var H;this.subscribedWidth=(H=this.bellButton)==null?void 0:H.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.g.updateContainerToFitContent=function(G,H){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(G?(G=this.subscribedWidth,H=this.isAnimating&&!H,this.subscribedIconOnlyWidth===void 0||H||(G=this.subscribedIconOnlyWidth),this.hostElement.style.width=G+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.g.clearContainerSize=function(){this.hostElement.style.width=""};
_.g.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.g.maybeSetSubscribedButtonIconOnlyWidth=function(){var G=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 H;G.subscribedIconOnlyWidth=(H=G.bellButton)==null?void 0:H.getBoundingClientRect().width;requestAnimationFrame(function(){if(G.bellButton){var Z;G.bellButton.textLabel=
(Z=G.data)==null?void 0:Z.subscribedButtonText}})})))};
_.u4.Object.defineProperties(vr.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 G;return(G=this.data)==null?void 0:G.subscribedButtonText}var H;return this.forceIconOnly?void 0:(H=this.data)==null?void 0:H.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=((G=this.data)==null?void 0:(H=G.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"subscribe",timings:Z,enabled:Z.length>0&&!this.subscribed,experimentEnabled:Z.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!this.subscribed&&((G=this.data)==null?void 0:G.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 G={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var H=G.renderer;var Z=G.element;var Q=G.subscribed;var p=G.commandController;var l=G.isOverlay;G=G.stopPropagation;var q=OLW(H,Q);l&&(q.style="overlay");l=Object;var u=l.assign,B;a:switch((B=H.style)==null?void 0:B.styleType){case "COMPACT_GRAY":case "COMPACT_RED":B={size:"S"};break a;default:B={size:"M"}}var t=iLe(H,
Q);var D=(D=Q?H.subscribedButtonText:H.unsubscribedButtonText)?_.Vw(D):void 0;return u.call(l,{},q,B,{focused:!1,toggled:Q,accessibilityLabel:t,formattedButtonText:D,onTap:Cke(H,Q,Z,p,G)})}}}});
vr.prototype.onMouseDown=vr.prototype.onMouseDown;vr.prototype.onDataChanged=vr.prototype.onDataChanged;vr.prototype.observedSubscribed=vr.prototype.observedSubscribed;vr.prototype.onYtServiceRequestCompleted=vr.prototype.onYtServiceRequestCompleted;vr.prototype.onYtServiceRequestSent=vr.prototype.onYtServiceRequestSent;vr.prototype.maybeUpdateBellButtonText=vr.prototype.maybeUpdateBellButtonText;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],vr.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],vr.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],vr.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vr.prototype,"data",void 0);
_.N([_.h({selectorArgs:["data.subscribedEntityKey"],selector:ZLf}),_.A("design:type",Object)],vr.prototype,"subscriptionStateEntity",void 0);_.N([_.h({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.A("design:type",Boolean)],vr.prototype,"subscribed",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],vr.prototype,"branded",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vr.prototype,"animatedActionEnabled",void 0);
_.N([_.h(),_.A("design:type",Object)],vr.prototype,"foregroundLottieRef",void 0);_.N([_.h(),_.A("design:type",Object)],vr.prototype,"backgroundLottieRef",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],vr.prototype,"overlayButton",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.A("design:type",Object)],vr.prototype,"buttonStyle",void 0);_.N([_.h(),_.A("design:type",Object)],vr.prototype,"forceIconOnly",void 0);
_.N([_.h(),_.A("design:type",Object)],vr.prototype,"showTextWhileAnimating",void 0);_.N([_.h({value:function(){return!!_.tp().resolve(_.Jp(_.qZ))&&_.V("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.A("design:type",Boolean)],vr.prototype,"useKeyboardFocused",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vr.prototype,"keyboardFocused",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vr.prototype,"isAnimating",void 0);_.N([_.z("data.notificationPreferenceButton.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],vr.prototype,"hasBellButton",null);
_.N([_.gx("subscribedButtonText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vr.prototype,"maybeUpdateBellButtonText",null);_.N([_.z("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],vr.prototype,"subscribedButtonText",null);_.N([_.z("data.timedAnimationData.animationTiming","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],vr.prototype,"smartimationSettings",null);
_.N([_.h({reflectToAttribute:!0}),_.z("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],vr.prototype,"subscribeButtonHidden",null);_.N([_.h({reflectToAttribute:!0}),_.z("subscribed","hasBellButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],vr.prototype,"subscribeButtonInvisible",null);
_.N([_.h({reflectToAttribute:!0}),_.z("subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],vr.prototype,"unsubscribeButtonHidden",null);_.N([_.q6("ytd-subscription-notification-toggle-button-renderer-next"),_.A("design:type",Object)],vr.prototype,"bellButton",void 0);_.N([_.q6("#subscribe-button-shape"),_.A("design:type",HTMLElement)],vr.prototype,"subscribeButtonShape",void 0);
_.N([_.z("overlayButton","subscribed","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vr.prototype,"buttonShape",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],vr.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],vr.prototype,"onYtServiceRequestCompleted",null);
_.N([_.gx("subscribed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vr.prototype,"observedSubscribed",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vr.prototype,"onDataChanged",null);_.N([_.lq("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],vr.prototype,"onMouseDown",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],vr);
_.m(vr,"ytd-subscribe-button-renderer",function(){if(Hfa!==void 0)return Hfa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Hfa=G},{mode:1});var Wr=function(){var G=_.C.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.T(Wr,_.C);Wr.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Wr.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wr.prototype,"isRichGrid",void 0);_.N([_.O({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Wr);
_.m(Wr,"ytd-game-card-renderer",function(){if(FC7!==void 0)return FC7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return FC7=G},{mode:1});var zi={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.V("defer_menus")&&!PB2?0:void 0,waitForSignal:"eocs"};var s7G;var ZfR;var Kd=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return G};
_.T(Kd,_.C);_.g=Kd.prototype;_.g.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.g.onSeriesReminderStateEntityChange=function(){var G,H,Z;((G=this.eventReminderStateEntity)==null?0:G.key)&&((H=this.seriesReminderStateEntity)==null?void 0:H.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((Z=this.eventReminderStateEntity)==null?void 0:Z.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.uP("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.g.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.g.onYtServiceRequestError=function(){var G;this.updateReminderStateEntitiesFromButtonState((G=this.data)==null?void 0:G.currentState)};
_.g.handleUpdateUpcomingEventReminderButtonStateCommand=function(G){if(G=_.X(G,EEd)){var H,Z=(H=this.data)==null?void 0:H.targetId;Z&&G.targetId===Z&&_.PG(this.updateReminderStateEntitiesFromButtonState.bind(this,G.state))}};
_.g.getButtonStateFromReminderState=function(){var G;if(((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var H;if(((H=this.eventReminderStateEntity)==null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var Z,Q;if(((Z=this.seriesReminderStateEntity)==null?void 0:Z.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((Q=this.eventReminderStateEntity)==
null?void 0:Q.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var p;return(p=this.data)==null?void 0:p.currentState};
_.g.updateReminderStateEntitiesFromButtonState=function(G){if(G){switch(G){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":G="UPCOMING_EVENT_REMINDER_STATE_NONE";var H="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":G="UPCOMING_EVENT_REMINDER_STATE_SINGLE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":G="UPCOMING_EVENT_REMINDER_STATE_NONE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var Z;
((Z=this.eventReminderStateEntity)==null?0:Z.key)&&this.ytdReduxBehavior.dispatch(_.uP("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:G})));var Q;((Q=this.seriesReminderStateEntity)==null?0:Q.key)&&this.ytdReduxBehavior.dispatch(_.uP("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:H})))}};
_.u4.Object.defineProperties(Kd.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.getButtonStateFromReminderState(),H,Z;if(G&&((H=this.data)==null?0:(Z=H.states)==null?0:Z.length))for(H=_.I(this.data.states),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=void 0;if(((Q=_.X(Z,YnN))==null?void 0:Q.state)===G)return _.X(Z,YnN)}}}});
Kd.prototype.onYtServiceRequestError=Kd.prototype.onYtServiceRequestError;Kd.prototype.onYtServiceRequestCompleted=Kd.prototype.onYtServiceRequestCompleted;Kd.prototype.onSeriesReminderStateEntityChange=Kd.prototype.onSeriesReminderStateEntityChange;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Kd.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Kd.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kd.prototype,"data",void 0);_.N([_.h({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:paj}),_.A("design:type",Object)],Kd.prototype,"eventReminderStateEntity",void 0);
_.N([_.h({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(G,H){return _.Hv(G.entities,"sportsSeriesReminderStateEntity",H)}}),
_.A("design:type",Object)],Kd.prototype,"seriesReminderStateEntity",void 0);_.N([_.z("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kd.prototype,"currentButtonStateRenderer",null);_.N([_.gx("seriesReminderStateEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kd.prototype,"onSeriesReminderStateEntityChange",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kd.prototype,"onYtServiceRequestCompleted",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kd.prototype,"onYtServiceRequestError",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Kd);
_.m(Kd,"ytd-upcoming-event-reminder-button-renderer",function(){if(ZfR!==void 0)return ZfR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return ZfR=G},{mode:1});var Q7w;var MJ=function(){return _.C.apply(this,arguments)||this};
_.T(MJ,_.C);MJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.u4.Object.defineProperties(MJ.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.V("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],MJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],MJ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],MJ.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],MJ.prototype,"shelfDismissal",void 0);_.N([_.z("data.responseText"),_.A("design:type",Object),_.A("design:paramtypes",[])],MJ.prototype,"text",null);
_.N([_.z("data.responseText"),_.A("design:type",Object),_.A("design:paramtypes",[])],MJ.prototype,"textAriaLabel",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],MJ);
_.m(MJ,"ytd-notification-multi-action-renderer",function(){if(Q7w!==void 0)return Q7w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Q7w=G},{mode:1});var pCx;var jr=function(){return _.C.apply(this,arguments)||this};
_.T(jr,_.C);jr.prototype.ready=function(){var G=this;_.F9(this.hostElement).querySelector("#undo").addEventListener("tap",function(){G.onUndoTap()})};
jr.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],jr.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],jr);
_.m(jr,"ytd-notification-text-renderer",function(){if(pCx!==void 0)return pCx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pCx=G},{mode:1});var lLa;var Pr=function(){var G=_.C.apply(this,arguments)||this;G.mouseOverDelayJobId=0;G.fadeInImageDelayJobId=0;G.startTimeMs=-1;G.loadingStartTimeMs=-1;G.loadingEndTimeMs=-1;G.hasVideoPreview=!1;return G};
_.T(Pr,_.C);_.g=Pr.prototype;_.g.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.g.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.g.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.g.showThumbnail=function(){var G=this;this.csn=_.$k();_.TD("fmth");_.Ui.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.E6(_.Ui,function(){G.loadingStartTimeMs=(0,_.t3)();var H=_.F9(G.hostElement).querySelector("#thumbnail");H.complete?G.displayMouseOverImage():H.addEventListener("load",_.pH(G,G.displayMouseOverImage))},150):_.Gq(_.F9(this.hostElement).querySelector("#play"),"show",!0)};
_.g.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.g.onTap=function(){this.removeVideoPreview()};
_.g.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var G=this.videoId,H=this.csn,Z=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,Q=this.startTimeMs,p=this.hasVideoPreview,l=_.BT(this.trackingParams),q={isMovingThumbnail:p};p&&Q>0&&(Z>0&&(q.movingThumbnailLoadingDurationMs=Math.round(Z)),q.durationHoveredMs=Math.round((0,_.t3)()-Q));G&&(q.videoId=G);_.O3(H,l,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:q});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.g.removeVideoPreview=function(){_.Ui.cancelJob(this.mouseOverDelayJobId);_.Ui.cancelJob(this.fadeInImageDelayJobId);var G=_.F9(this.hostElement).querySelector("#thumbnail");_.Gq(G,"fade-in",!1);G.removeEventListener("load",_.pH(this,this.displayMouseOverImage));G=_.F9(this.hostElement).querySelector("#play");_.Gq(G,"fade-in",!1);_.Gq(G,"show",!1)};
_.g.displayMouseOverImage=function(){var G=_.F9(this.hostElement).querySelector("#thumbnail"),H=_.F9(this.hostElement).querySelector("#play");this.isImageAvailable(G)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.t3)(),this.startTimeMs=(0,_.t3)(),this.fadeInImageDelayJobId=_.E6(_.Ui,function(){_.Gq(G,"fade-in",!0)},50)):_.Gq(H,"fade-in",!0)};
_.g.computeThumbnail=function(G,H){var Z;G&&G.movingThumbnailDetails&&G.movingThumbnailDetails.thumbnails&&H?Z=_.N$(G.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):Z=H?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(Z)return _.m0(Z)};
_.g.isImageAvailable=function(G){return!(!G.src||G.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||G.naturalWidth===120)};
Pr.prototype.onTap=Pr.prototype.onTap;Pr.prototype.dataChanged=Pr.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Pr.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Pr.prototype,"csn",void 0);_.N([_.h(),_.A("design:type",Object)],Pr.prototype,"trackingParams",void 0);
_.N([_.h(),_.A("design:type",String)],Pr.prototype,"videoId",void 0);_.N([_.h(),_.A("design:type",Boolean)],Pr.prototype,"isAttachedAndDataSet",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pr.prototype,"dataChanged",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pr.prototype,"onTap",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Pr);
_.m(Pr,"ytd-moving-thumbnail-renderer",function(){if(lLa!==void 0)return lLa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return lLa=G},{mode:1});var gs2;_.YG=function(G){this.hostElement=G;this.eventSink=null;this.eventList=[]};
_.YG.prototype.shouldForward=function(){var G,H;return(H=(G=this.eventSink)==null?void 0:G.isConnected)!=null?H:document.body.contains(this.eventSink)};
_.YG.prototype.start=function(G,H){this.eventSink&&this.stop();for(var Z=0;Z<G.length;Z++)this.hostElement.addEventListener(G[Z],_.pH(this,this.forwardEvent));var Q;this.eventSink=(Q=H.hostElement)!=null?Q:H;this.eventList=G};
_.YG.prototype.stop=function(){for(var G=0;G<this.eventList.length;G++)this.hostElement.removeEventListener(this.eventList[G],_.pH(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.YG.prototype.forwardEvent=function(G,H){this.shouldForward()&&(G.stopPropagation(),this.eventSink instanceof Element?_.N5(this.eventSink,G.type,H):_.Rp(new _.C$("eventSink is not an element")))};_.ry={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.YG(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(G,H){this.forwarder_.start(G,H)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var wy=function(){return _.C.apply(this,arguments)||this};
_.T(wy,_.C);_.g=wy.prototype;_.g.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=_.xI("HTML_DIR")==="rtl"?"right":"left"};
_.g.dataChanged=function(){this.popupOpen=!1};
_.g.computeAriaLabel=function(G){return _.X(G,kvN).label};
_.g.onTap=function(G){G.stopPropagation();G.preventDefault();this.data.command&&_.tp().resolve(_.Dk).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.g.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.g.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
wy.prototype.onPopupClosed=wy.prototype.onPopupClosed;wy.prototype.onPopupOpened=wy.prototype.onPopupOpened;wy.prototype.onTap=wy.prototype.onTap;wy.prototype.dataChanged=wy.prototype.dataChanged;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],wy.prototype,"eventForwardingBehavior",void 0);_.N([_.v(_.iM),_.A("design:type",Object)],wy.prototype,"ironButtonState",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],wy.prototype,"componentBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],wy.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:-1}),_.A("design:type",Number)],wy.prototype,"tabindex",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.A("design:type",Object)],wy.prototype,"ariaLabel",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],wy.prototype,"disableTooltips",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],wy.prototype,"popupOpen",void 0);
_.N([_.h(),_.A("design:type",Element)],wy.prototype,"eventSink",void 0);_.N([_.q6("#tooltip"),_.A("design:type",Object)],wy.prototype,"tooltip",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wy.prototype,"dataChanged",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wy.prototype,"onTap",null);
_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wy.prototype,"onPopupOpened",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wy.prototype,"onPopupClosed",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],wy);
_.m(wy,"ytd-thumbnail-overlay-button-renderer",function(){if(gs2!==void 0)return gs2;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return gs2=G},{mode:1});var IL7;var hi=function(){return _.C.apply(this,arguments)||this};
_.T(hi,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],hi.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],hi.prototype,"disableAnimation",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],hi.prototype,"rounded",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],hi.prototype,"transparentBackground",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],hi.prototype,"noPadding",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],hi);
_.m(hi,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(IL7!==void 0)return IL7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return IL7=G},{mode:1});var q$w;var Cd=function(){return _.C.apply(this,arguments)||this};
_.T(Cd,_.C);Cd.prototype.computeIconPosition=function(G){return this.get("iconPosition",G)||null};
Cd.prototype.computeIconStyle=function(G){return this.get("iconStyle",G)||null};
Cd.prototype.computeIsIconStyleFilled=function(G){if(!G)return!1;var H;return G.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((H=G.icon)==null?void 0:H.iconType)==="ERROR_BLACK"};
_.N([_.h(),_.A("design:type",Object)],Cd.prototype,"data",void 0);_.N([_.h({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Cd.prototype,"iconPosition",void 0);_.N([_.h({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Cd.prototype,"iconStyle",void 0);_.N([_.h({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Cd.prototype,"iconStyleFilled",void 0);
_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Cd);
_.m(Cd,"ytd-thumbnail-overlay-icon-renderer",function(){if(q$w!==void 0)return q$w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return q$w=G},{mode:1});var S$a;var iA=function(){return _.C.apply(this,arguments)||this};
_.T(iA,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],iA.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],iA);
_.m(iA,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(S$a!==void 0)return S$a;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return S$a=G},{mode:1});var u62;var O5=function(){var G=_.C.apply(this,arguments)||this;G.isPreviewLoading=!1;return G};
_.T(O5,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],O5.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],O5.prototype,"isPreviewLoading",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],O5);
_.m(O5,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(u62!==void 0)return u62;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return u62=G},{mode:1});var BR7;var ar=function(){return _.C.apply(this,arguments)||this};
_.T(ar,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ar.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],ar);
_.m(ar,"ytd-thumbnail-overlay-pinking-renderer",function(){if(BR7!==void 0)return BR7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return BR7=G},{mode:1});var JIx;var yM=function(){var G=_.C.apply(this,arguments)||this;G.disableTooltips=!1;G.isLoading=!1;G.useExpandableTooltip=!1;G.toggled=!1;G.hovered=!1;G.mouseoverDelayJobId=0;G.toggleDelayJobId=0;G.expandAnimationDelayJobId=0;return G};
_.T(yM,_.C);_.g=yM.prototype;_.g.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");_.F9(this.hostElement).querySelector("#tooltip").position=_.xI("HTML_DIR")==="rtl"?"right":"left"};
_.g.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Ui.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Ui.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Ui.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.g.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Ui.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Ui.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Ui.cancelJob(this.expandAnimationDelayJobId)};
_.g.computeIcon=function(G,H,Z){return(G=Z?H:G)&&G.iconType?_.bq(G.iconType):void 0};
_.g.computeAriaLabel=function(G,H,Z){return _.X(Z?H:G,kvN).label};
_.g.computeTooltip=function(G,H,Z){return Z?H:G};
_.g.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.g.computeIconOnHover=function(G,H){if((G==null?0:G.iconType)&&!H)return _.bq(G.iconType)};
_.g.onTap=function(G){var H=this;G.stopPropagation();G.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(G),this.useExpandableTooltip&&(this.toggleDelayJobId=_.E6(_.Ui,function(){H.hovered=!1;H.data&&!H.data.toggledServiceEndpoint&&(H.expandAnimationDelayJobId=_.E6(_.Ui,function(){H.set("data.isToggled",
!1)},200))},2E3))};
_.g.onMouseenter=function(){var G=this;this.mouseoverDelayJobId=_.E6(_.Ui,function(){G.hovered=!0},300)};
_.g.onMouseleave=function(){_.Ui.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.g.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.g.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.g.onServiceRequestCompleted=function(G,H){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(H)||this.set("data.isToggled",!this.data.isToggled)};
_.g.serviceRequestWasSuccessful=function(G){return _.X(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.A$)?G.data.status==="STATUS_SUCCEEDED":!0};
yM.prototype.onServiceRequestCompleted=yM.prototype.onServiceRequestCompleted;yM.prototype.onPopupClosed=yM.prototype.onPopupClosed;yM.prototype.onPopupOpened=yM.prototype.onPopupOpened;yM.prototype.onMouseleave=yM.prototype.onMouseleave;yM.prototype.dataChanged=yM.prototype.dataChanged;_.N([_.v(_.iM),_.A("design:type",Object)],yM.prototype,"ironButtonState",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],yM.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],yM.prototype,"ytEventForwardingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],yM.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.A("design:type",Object)],yM.prototype,"ariaLabel",void 0);_.N([_.h(),_.A("design:type",Object)],yM.prototype,"disableTooltips",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],yM.prototype,"popupOpen",void 0);_.N([_.h(),_.A("design:type",Object)],yM.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Element)],yM.prototype,"eventSink",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yM.prototype,"useExpandableTooltip",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.A("design:type",Object)],yM.prototype,"toggled",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yM.prototype,"hovered",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.A("design:type",Object)],yM.prototype,"iconOnHover",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yM.prototype,"dataChanged",null);
_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yM.prototype,"onMouseleave",null);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yM.prototype,"onPopupOpened",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yM.prototype,"onPopupClosed",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],yM.prototype,"onServiceRequestCompleted",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],yM);
_.m(yM,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(JIx!==void 0)return JIx;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JIx=G},{mode:_.LH("kevlar_poly_si_batch_j053")?1:2});var tCa;var kMN=_.y(function(G){var H=G.data;var Z=G.thumbnailSize;var Q=function(){return H().enableSegmentView};
return _.J("yt-thumbnail-overlay-progress-bar-view-model",{class:_.bb("ytThumbnailOverlayProgressBarHost",function(){return aPM(Z==null?void 0:Z())})},_.J(_.k,{cond:Q,
then:function(){return _.J("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.J("div",{class:_.Dq("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+H().startPercent+"%"}}),_.J("div",{class:_.Dq("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+H().segmentDurationPercent+"%"}},_.J("div",{class:_.Dq("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.J("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.J("div",null," ",function(){return H().segmentLabel})),_.J("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.J("div",{class:_.Dq("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.J(_.k,{cond:function(){return!Q()&&H().startPercent},
then:function(){var p={};return _.J("div",{class:_.Dq("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(p.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.V("web_enable_modern_progress_bar_overlay"),p))},_.J("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+H().startPercent+"%"}}))}}))},"Ea");
kMN.idomCompat=!0;var DNT=_.y(function(G){var H=_.sw(),Z=_.SQ(function(p){var l,q,u;a:{var B=(l=G.data())==null?void 0:l.animationActivationTargetId;l=((q=G.data())==null?void 0:q.animationActivationEntityKey)||"";q=(u=G.data())==null?void 0:u.animationActivationEntitySelectorType;if(l&&B)switch(q){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":p=_.G3(p,l);u=_.tp().resolve(_.Jp(_.WM));B=!!(p&&p.videoId===B&&(u==null?0:u.isMiniplayerActive()));B={activated:B,playAnimation:B&&p.playerState==="PLAYER_STATE_PLAYING"};
break a}B=void 0}return B});
_.yN(function(){var p;if((p=Z())==null?0:p.activated){var l;if((l=Z())==null?0:l.playAnimation){var q;(q=H.lottieEl)==null||q.goToAndPlay(0)}else{var u;(u=H.lottieEl)==null||u.goToAndStop(0)}}},"DbQiXd");
var Q=function(){var p,l=!((p=Z())==null||!p.activated);if(G.data()){p=G.data();var q=void 0;p.icon&&(q=_.gvj(p.icon),q=t0v(q));var u=void 0,B;if((B=p.backgroundColor)==null?0:B.lightTheme){var t;u={backgroundColor:Tz((t=p.backgroundColor)==null?void 0:t.lightTheme,"0.8")}}if(p.text||q||l){if(l&&p.lottieData&&H){t=p.lottieData;var D,d,e;B={animationConfig:{name:t.url,path:t.url,autoplay:(D=t.settings)==null?void 0:D.autoplay,loop:(e=(d=t.settings)==null?void 0:d.loop)!=null?e:!0},animationRef:H}}else B=
void 0;if(l)D=17;else b:switch(p.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":D=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":D=19;break b;default:D=17}l={type:D,text:l&&p.animatedText?p.animatedText:p.text,icon:q,customColors:u,animation:B}}else l=void 0}else l=void 0;return l};
return _.J("yt-thumbnail-badge-view-model",{class:_.bb("ytThumbnailBadgeViewModelHost",G.class)},_.J(_.k,{cond:Q,then:function(){return _.J(_.LB,{data:function(){return Q()}})}}))},"Ga");var dNa=_.y(function(G){var H={},Z={};return _.J("yt-thumbnail-bottom-overlay-view-model",{class:_.bb("ytThumbnailBottomOverlayViewModelHost",(H.ytThumbnailBottomOverlayViewModelHostBackground=function(){return G.data().enableGradientBackground},H))},_.J(_.SP,{data:function(){return G.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(Q){return _.J(kMN,{data:Q.data,
thumbnailSize:G.thumbnailSize})}}),_.J("div",{class:_.bb("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var Q;
return yxb((Q=G.thumbnailSize)==null?void 0:Q.call(G))},(Z.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var Q;
return(Q=G.isClip)==null?void 0:Q.call(G)},Z.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var Q;
return!_.V("web_enable_modern_progress_bar_overlay")&&((Q=G.thumbnailSize)==null?void 0:Q.call(G))==="small"},Z))},_.J(_.SP,{data:function(){return G.data().badge}},{thumbnailBadgeViewModel:function(Q){return _.J(DNT,{data:Q.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.J(_.SP,{data:function(){return G.data().badges}},{thumbnailBadgeViewModel:function(Q){return _.J(DNT,{data:Q.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ha");
dNa.idomCompat=!0;_.RX(dNa,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.oX,thumbnailSize:_.oX,isClip:_.oX}});var Ymu={calledOnce:!1,state:"visible"},Fzf={calledOnce:!1,state:"hidden"};var or=_.y(function(G){var H=G.data;var Z=G.className;G=G.alwaysShow;var Q=_.ULR(),p={};return _.J("thumbnail-hover-overlay-view-model",{el:_.aX(_.$X(function(){return H().rendererContext})),
class:_.bb("ytThumbnailHoverOverlayViewModelHost",Z,(p.ytThumbnailHoverOverlayViewModelHostForceHover=G,p)),"aria-label":function(){var l;return(l=_.X(H().rendererContext,_.qc))==null?void 0:l.label},
role:function(){return _.nG(H().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.nG(H().rendererContext)!==void 0?0:void 0},
"on:keypress":Q},_.J("div",{class:_.bb("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(H().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var l="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:l="ytThumbnailHoverOverlayViewModelStyleCover"}return l})},_.J(_.k,{cond:function(){return H().icon},
then:function(l){return _.J(_.ib,{data:l,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.J(_.k,{cond:function(){return H().text},
then:function(l){return _.J(_.Fe,{text:l,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ja");
or.idomCompat=!0;var e7x=_.y(function(G){var H=G.data;return _.J(_.SP,{data:function(){return H==null?void 0:H().overlays}},{thumbnailHoverOverlayViewModel:or})},"Ka");
e7x.idomCompat=!0;var nsx={};var VCw=_.y(function(G){var H=G.data;var Z=G.image;var Q=G.state;var p=G.iconType;var l=G.overlays;var q=G.isOverlay;var u=_.qK("div");G=_.I(_.Ty(!0,void 0,"AA4e7b"));var B=G.next().value,t=G.next().value,D=function(){return!!H().onTap},d=_.yy(p,"LIVE");
_.yN(function(){var n=H();requestAnimationFrame(function(){if(u.value===null)var c=!0;else{var W=u.value;c=n.badgeText;var M=HUM(n.size);c in nsx?W=nsx[c]:(W=W.clientWidth,nsx[c]=W);(c=W>M)?u.value.style.display="none":u.value.style.visibility="visible"}t(c)})},"vNdN8b");
var e=function(){var n={};return n["yt-spec-avatar-shape__image"]=!0,n["yt-spec-avatar-shape__image--ads-app"]=H().type===1,n["yt-spec-avatar-shape__image--inscribed-square"]=H().type===2,n};
return _.J("yt-avatar-shape",null,_.J("div",{el:_.aX(ZUf(D,{keydown:function(n){if(n.key==="Enter"){var c;(c=n.currentTarget)==null||c.click()}},
click:function(n){var c,W;return void((W=(c=H()).onTap)==null?void 0:W.call(c,n))}})),
class:function(){var n={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},c=H();n=(n[c.clusterLayoutConfig?lXf(c.clusterLayoutConfig):gob(c.size)]=!0,n["yt-spec-avatar-shape__button--tappable"]=D(),n);(c=H().avatarButtonCustomClassName)&&(n[c]=!0);return _.Dq(n)},
"aria-label":function(){return D()?H().accessibilityText:""},
role:function(){return D()?"button":void 0},
tabindex:function(){return D()?0:void 0}},_.J("div",{class:function(){var n,c=H(),W=Q==null?void 0:Q(),M=q==null?void 0:q(),r=!((n=c.decorations)==null||!n.includes(2)||c.size!=="medium"&&c.size!=="large"),w=c.size==="tiny"||c.size==="extra-small",x,U,R,L,H3={};
n=(H3["yt-spec-avatar-shape--live-ring"]=!!(((x=c.decorations)==null?0:x.includes(0))&&quf(c.size)),H3["yt-spec-avatar-shape--stories-watched"]=r&&!(W==null||!W.storiesWatched),H3["yt-spec-avatar-shape--stories-unwatched"]=r&&!(W==null?0:W.storiesWatched),H3["yt-spec-avatar-shape--background-border"]=Sue(c.decorations)&&!w,H3["yt-spec-avatar-shape--background-border-thin"]=Sue(c.decorations)&&w,H3["yt-spec-avatar-shape__on-select-border"]=!((U=c.decorations)==null||!U.includes(4)),H3["yt-spec-avatar-shape__white-border"]=
!((R=c.decorations)==null||!R.includes(5)),H3["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((L=c.decorations)==null?0:L.includes(5))&&w),H3["yt-spec-avatar-shape--is-overlay"]=!!M,H3);return _.Dq(n)},
style:function(){a:{var n=H().clusterLayoutConfig;if(n){b:{var c=n.numAvatarsInCluster;var W=n.avatarIndex;if(W!==c-1){switch(n.clusterSize){case "small":n="32";break;case "medium":n="36";break;case "40":n="40";break;default:c=void 0;break b}c="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+n+"x"+n+"_avatars_"+c+"_index_"+W+".svg"}else c=void 0}if(c){c=_.pI({"-webkit-mask-image":"url("+c+")","mask-image":"url("+c+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}c=void 0}return c}},_.J("div",{class:function(){var n={};
var c=H();n=(n[c.clusterLayoutConfig?QYj(c.clusterLayoutConfig):pBe(c.size)]=!0,n["yt-spec-avatar-shape--no-margin"]=Sue(H().decorations),n["yt-spec-avatar-shape--square"]=H().type===2,n);return _.Dq(n)}},_.J(_.ib,{data:Z,
alt:function(){return!D()&&H().accessibilityText?H().accessibilityText:""},
targetWidth:function(){return IXU(H().size)},
targetHeight:function(){return IXU(H().size)},
className:function(){return _.Dq(e())}}),_.J(_.k,{cond:function(){var n;
return((n=H().decorations)==null?void 0:n.includes(0))&&quf(H().size)},
then:function(){return _.J("div",{class:function(){var n={};n=(n["yt-spec-avatar-shape__live-badge"]=!0,n["yt-spec-avatar-shape__live-badge--badge-small"]=H().size==="small",n["yt-spec-avatar-shape__live-badge--badge-medium"]=H().size==="medium"||H().size==="48",n["yt-spec-avatar-shape__live-badge--badge-large"]=H().size==="large",n["yt-spec-avatar-shape__live-badge--badge-extra-large"]=H().size==="extra-large"||H().size==="extra-extra-large"||H().size==="giant",n);return _.Dq(n)}},_.J(_.k,{cond:function(){return H().badgeText},
then:function(n){return _.J("div",{class:"yt-spec-avatar-shape__badge-text",el:u},n)}}),_.J(_.k,{cond:B,
then:function(){return _.J("div",{class:"yt-spec-avatar-shape__badge-icon"},_.J(_.ll,{icon:d,size:function(){a:switch(H().size){case "extra-large":var n=16;break a;default:n=13}return n}}))}}))}}),_.J(_.k,{cond:function(){var n,c;
return((n=H().decorations)==null?void 0:n.includes(1))||((c=H().decorations)==null?void 0:c.includes(0))&&!quf(H().size)},
then:function(){return _.J("div",{class:function(){var n=H(),c,W,M={};var r=(M["yt-spec-avatar-shape__live-dot"]=!((c=n.decorations)==null||!c.includes(0)||quf(n.size)),M["yt-spec-avatar-shape__new-content"]=!((W=n.decorations)==null||!W.includes(1)),M);return _.Dq(r)}})}}),_.J(_.k,{cond:function(){return!!l},
then:function(){return _.J("div",{class:function(){var n={};n=Object.assign((n["yt-spec-avatar-shape__image-overlays"]=!0,n),e());return _.Dq(n)}},l==null?void 0:l())}})))))},"Na");
VCw.idomCompat={callbacks:{overlays:!0}};_.m9=_.y(function(G){function H(){Z().endpoint&&_.zt(Z().endpoint)}
var Z=G.data;var Q=G.decorations;var p=G.avatarButtonCustomClassName;var l=G.isOverlay;var q=G.clusterLayoutConfig;return _.J("avatar-view-model",null,_.J(_.k,{cond:function(){return Z().image},
then:function(u){return _.J(VCw,{data:function(){return B9o({data:Z(),onTap:Z().endpoint?H:void 0,decorations:Q==null?void 0:Q(),badgeText:void 0,accessibilityText:Z().accessibilityText,avatarButtonCustomClassName:p==null?void 0:p(),clusterLayoutConfig:q==null?void 0:q()})},
image:u,iconType:"RADAR_LIVE",overlays:function(){return _.J(e7x,{data:Z})},
isOverlay:l})}}))},"Oa");
_.m9.idomCompat=!0;_.U5=_.y(function(G){var H=G.data;G=G.className;var Z=_.qK("yt-decorated-avatar-view-model"),Q=function(){return _.X(H().avatar,_.Xu)},p=_.Kb(function(){var l,q=H(),u=Q(),B=_.nG(H().rendererContext),t=(l=Z.value)!=null?l:void 0,D;
if(u){t={data:q,avatar:u,onTap:B,element:t};l=t.data;q=t.avatar;u=t.onTap;B=t.element;t=t.commandController;u=u?DSX(u,B,t):void 0;B=[];l.liveData&&B.push(0);var d;t=(d=l.liveData)==null?void 0:d.liveBadgeText;d=(D=_.X(l.rendererContext,_.qc))==null?void 0:D.label;D=B9o({data:q,onTap:u,decorations:B,badgeText:t,accessibilityText:d?d:l.a11yLabel})}else D={size:"medium"};return D},void 0,"c00kWd");
return _.J("yt-decorated-avatar-view-model",{class:_.bb("ytDecoratedAvatarViewModelHost",G),el:Z},_.J(_.k,{cond:function(){var l;return(l=Q())==null?void 0:l.image},
then:function(l){return _.J(VCw,{data:p,image:l,iconType:"RADAR_LIVE",overlays:function(){return _.J(e7x,{data:Q})}})}}))},"Pa");
_.U5.idomCompat=!0;_.Rr=_.y(function(G){var H=function(){var u;return Object.assign({},G.data(),(u=G.overrides)==null?void 0:u.call(G))},Z=function(){return _.Vt(H().rendererContext)},Q=function(){var u=H().avatars,B,t;
return(t=(B=(u==null?0:u[0])?_.X(u[0],_.Xu):void 0)==null?void 0:B.avatarImageSize)!=null?t:"AVATAR_SIZE_UNKNOWN"},p=function(){return k2j(H())},l=function(){if(H().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var u=void 0;
else if((u=G.decorations)==null?0:u.call(G))u=G.decorations();else{u=H();var B=0;u.avatars&&(B+=u.avatars.length);u.decoratedText&&(B+=1);u=B>1?[3]:[]}return u},q={};
return _.J("yt-avatar-stack-view-model",{el:_.aX(_.$X(function(){return H().rendererContext})),
class:_.bb("yt-avatar-stack-view-model",G.className,(q["yt-avatar-stack-view-model--tappable"]=Z,q["yt-avatar-stack-view-model--is-overlay"]=G.isOverlay,q["yt-avatar-stack-view-model--medium-text"]=G.useMediumText,q)),tabindex:function(){return Z()?0:void 0},
role:function(){return Z()?"link":void 0},
"aria-label":function(){var u,B;return(B=(u=_.X(H().rendererContext,_.qc))==null?void 0:u.label)!=null?B:""}},_.J(_.k,{cond:function(){var u;
return H().avatars&&!((u=G.hideAvatar)==null?0:u.call(G))},
then:function(){return _.J("div",{class:"yt-avatar-stack-view-model__avatars"},_.J(_.k,{cond:function(){return H().decoratedText},
then:function(u){var B={};return _.J("div",{class:_.bb("yt-avatar-stack-view-model__text-container",(B["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return Q()==="AVATAR_SIZE_XXS"||Q()==="AVATAR_SIZE_XS"},B["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var t;
return((t=G.isOverlay)==null?void 0:t.call(G))&&(Q()==="AVATAR_SIZE_XXS"||Q()==="AVATAR_SIZE_XS")},B)),
style:_.pI({width:function(){return p().avatarSizeInPx+"px"},
height:function(){return p().avatarSizeInPx+"px"}})},_.J(_.Fe,{text:u,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.J("div",{style:function(){return _.pI(p().avatarStackStyle)()},
class:function(){return p().avatarStackClass}},_.J(_.SP,{data:function(){return p().avatars.reverse()}},{avatarViewModel:function(u,B){return _.J("div",{style:function(){var t,D;
return _.pI((D=(t=p()).avatarStyle)==null?void 0:D.call(t,B()))()},
class:function(){return p().avatarClass}},_.J(_.m9,{data:u.data,
decorations:l,avatarButtonCustomClassName:function(){return p().avatarButtonCustomClassName},
isOverlay:G.isOverlay,clusterLayoutConfig:function(){var t,D;return(D=(t=p()).clusterLayoutConfig)==null?void 0:D.call(t,B())}}))},
decoratedAvatarViewModel:function(u,B){return _.J("div",{style:function(){var t,D;return _.pI((D=(t=p()).avatarStyle)==null?void 0:D.call(t,B()))()},
class:function(){return p().avatarClass}},_.J(_.U5,{data:u.data}))}})))}}),_.J(_.k,{cond:function(){return H().text},
then:function(u){return _.J(_.Fe,{text:u,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Qa");
_.Rr.idomCompat=!0;_.RX(_.y(function(G){var H=G.data;var Z=G.thumbnailSize;return _.J("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.J("div",{class:_.bb("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return dSW(Z==null?void 0:Z())})},_.J(_.SP,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(Q){return _.J(_.Rr,{data:Q.data,
decorations:[5]})}})))},"Ra"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.b3,
thumbnailSize:_.b3}});var $N4=_.y(function(G){G=_.oK(G,{hidden:!1});var H=G.data;G=G.hidden;return _.J("yt-thumbnail-overlay-title-view-model",{class:_.bb("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(H().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var Z="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:Z="ytThumbnailOverlayTitleViewModelPositionTop"}return Z}),
hidden:G},_.J(_.k,{cond:function(){return H().leadingContent},
then:function(Z){return _.J("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.J(_.SP,{data:Z},{decoratedAvatarViewModel:_.U5}))}}),_.J("div",null,_.J(_.Fe,{text:function(){return H().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.J(_.k,{cond:function(){return H().subtitle},
then:function(){return _.J(_.Fe,{text:function(){return H().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Sa");
$N4.idomCompat=!0;_.RX($N4,"yt-thumbnail-overlay-title-view-model",{props:{data:_.b3,hidden:_.b3}});_.XC2=_.y(function(G){G=_.oK(G,{isClip:!1});var H=G.data,Z=G.thumbnailSize,Q={};return _.J("yt-thumbnail-overlay-badge-view-model",{class:_.bb("yt-thumbnail-overlay-badge-view-model",function(){a:switch(H().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var p="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:p="yt-thumbnail-overlay-badge-view-model--bottom-end"}return p},function(){return ea2(Z==null?void 0:Z())},(Q["yt-thumbnail-overlay-badge-view-model--clip"]=G.isClip,
Q))},_.J(_.SP,{data:function(){return H().thumbnailBadges}},{thumbnailBadgeViewModel:function(p){return _.J(DNT,{data:p.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ta");
_.XC2.idomCompat=!0;_.RX(_.XC2,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.b3,thumbnailSize:_.b3,isClip:_.b3}});var cI4=_.y(function(G){var H=G.data;G=G.hidden;var Z=_.Kb(function(){return H().indicatorCount||0},void 0,"AbKnMc"),Q={};
return _.J("yt-page-indicator-view-model",{class:_.bb("ytPageIndicatorViewModelHost",(Q.ytPageIndicatorViewModelIndicatorHidden=function(){return!H().indicatorCount},Q)),
hidden:G},_.J(_.Cl,{each:function(){return Array(Z())}},function(p,l){var q={};
return _.J("div",{class:_.bb("ytPageIndicatorViewModelIndicator",(q.ytPageIndicatorViewModelIndicatorSelected=function(){return H().selectedIndex===l()},q))})}))},"Ua");
cI4.idomCompat=!0;_.RX(cI4,"yt-page-indicator-view-model",{props:{data:_.b3,hidden:_.b3}});var NJ=function(){var G=_.C.apply(this,arguments)||this;G.eventSink=function(){return G};
G.disableInteraction=!1;G.noRoundedCorners=!1;G.isPreviewLoading=!1;G.isOriginalAspectRatio=!1;G.computedObjectFit=!1;G.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return G};
_.T(NJ,_.C);_.g=NJ.prototype;
_.g.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.V("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.g.onImageLoaded=function(){this.loaded=!0};
_.g.onImageUnloaded=function(){this.loaded=!1};
_.g.computeRichThumbnail=function(G,H,Z,Q){if(G&&H&&!Q&&!_.V("disable_moving_thumbs_handling")&&!Z)return H};
_.g.computeImageWidth=function(G,H){return H||9999};
_.g.computeIsOriginalAspectRatio=function(G){return G};
_.g.computeIsLive=function(G){if(G==null?0:G.badges)for(var H=0;H<G.badges.length;H++){var Z=G.badges[H];if(Z.metadataBadgeRenderer&&Z.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(G==null?0:G.thumbnailOverlays)for(H=0;H<G.thumbnailOverlays.length;H++)if(Z=G.thumbnailOverlays[H],Z.thumbnailOverlayTimeStatusRenderer&&Z.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.g.computeObjectFit=function(G,H){return H||(G?"CONTAIN":"")};
_.g.computeNavigationEndpoint=function(G,H,Z){return G?H:Z};
_.g.computeHasClip=function(G){G=_.I(G||[]);for(var H=G.next();!H.done;H=G.next())if(H.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.g.computeOverlayColor=function(G){var H;return(G==null?0:(H=G.darkColorPalette)==null?0:H.section2Color)?G.darkColorPalette.section2Color:G==null?void 0:G.sampledThumbnailColor};
_.u4.Object.defineProperties(NJ.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return amf(this.width)}}});
NJ.prototype.onImageUnloaded=NJ.prototype.onImageUnloaded;NJ.prototype.onImageLoaded=NJ.prototype.onImageLoaded;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],NJ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],NJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(HZa),_.A("design:type",Object)],NJ.prototype,"ytdThumbnailBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],NJ.prototype,"componentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],NJ.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],NJ.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],NJ.prototype,"circular",void 0);
_.N([_.h({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.A("design:type",Object)],NJ.prototype,"richThumbnail",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.A("design:type",Boolean)],NJ.prototype,"hasClip",void 0);_.N([_.h(),_.A("design:type",Object)],NJ.prototype,"eventSink",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],NJ.prototype,"queued",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],NJ.prototype,"richGridThumbnail",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],NJ.prototype,"useExpandableTooltip",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],NJ.prototype,"useUntranslatedNavigationEndpoint",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NJ.prototype,"disableInteraction",void 0);
_.N([_.h({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.A("design:type",Object)],NJ.prototype,"computedNavigationEndpoint",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],NJ.prototype,"nowPlayingEqualizerOnly",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],NJ.prototype,"hidePlaybackStatus",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],NJ.prototype,"objectFit",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NJ.prototype,"noRoundedCorners",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],NJ.prototype,"watchFeedThumbnail",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NJ.prototype,"isPreviewLoading",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.A("design:type",Object)],NJ.prototype,"isOriginalAspectRatio",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.A("design:type",Object)],NJ.prototype,"computedObjectFit",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.A("design:type",Boolean)],NJ.prototype,"isLiveVideo",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],NJ.prototype,"loaded",void 0);_.N([_.h({computed:"computeOverlayColor(data.thumbnail)"}),_.A("design:type",Object)],NJ.prototype,"overlayColor",void 0);_.N([_.h({selector:_.h1e}),_.A("design:type",Boolean)],NJ.prototype,"inlinePreviewIsEnabled",void 0);_.N([_.h(),_.A("design:type",Number)],NJ.prototype,"width",void 0);
_.N([_.z("inlinePreviewIsEnabled"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],NJ.prototype,"isPreviewDisabled",null);_.N([_.z("width"),_.A("design:type",String),_.A("design:paramtypes",[])],NJ.prototype,"thumbnailSize",null);_.N([_.lq("image-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NJ.prototype,"onImageLoaded",null);
_.N([_.lq("image-unloaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NJ.prototype,"onImageUnloaded",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-thumbnail"})],NJ);
var TRw=_.xQ()(NJ,"ytd-thumbnail",function(){if(tCa===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);tCa=G}G=tCa;return G},{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 $Su=function(G){var H=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15034_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15034_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(Z){fLN(H,Z)};
this.onLockupMouseLeaveFn=function(Z){Z=Z.relatedTarget;var Q,p;((Q=document.getElementsByTagName("ytd-video-preview"))==null?0:(p=Q.item(0))==null?0:p.contains(Z))||(H.terminateVideoPreview(),Ai(H))};
this.onThumbnailMouseDownFn=function(){H.terminateVideoPreview();Ai(H)};
this.onTouchStart=function(){H.JSC$15034_touched=!0};
this.mediaRenderer=G.mediaRenderer;this.thumbnailElement=G.thumbnailElement;this.lockupElement=G.lockupElement;this.videoPreviewOptsInput=G.videoPreviewOpts;vs4(this);x3(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)):
_.Rp(Error("Fh")):_.Rp(Error("Gh")):W7p(this)},iL=function(G){W7p(G);
var H;(H=G.lockupElement)==null||H.removeEventListener("mouseenter",G.onMouseMoveFn);var Z;(Z=G.lockupElement)==null||Z.removeEventListener("mouseleave",G.onLockupMouseLeaveFn);var Q;(Q=G.lockupElement)==null||Q.removeEventListener("touchstart",G.onTouchStart);var p;(p=G.thumbnailElement)==null||p.removeEventListener("mousedown",G.onThumbnailMouseDownFn);Ai(G)},vs4=function(G){G.inlinePreviewIsEnabledForUser=_.mm().getState().ui.inlinePreviewIsEnabled;
G.unsubscribeFromInlinePreviewIsEnabled=_.wU(_.mm(),_.h1e,function(H){(G.inlinePreviewIsEnabledForUser=H)||Ai(G)});
G.JSC$15034_unsubscribeFromInlinePreviewIsActive=_.wU(_.mm(),_.wY3,function(H){(G.inlinePreviewIsActive=H)||Ai(G)})},W7p=function(G){G.unsubscribeFromInlinePreviewIsEnabled();
G.unsubscribeFromInlinePreviewIsEnabled=function(){};
G.JSC$15034_unsubscribeFromInlinePreviewIsActive();G.JSC$15034_unsubscribeFromInlinePreviewIsActive=function(){}},fLN=function(G,H){H.buttons>0||(H=_.eA("kevlar_lockup_hover_delay",-1),G.JSC$15034_touched&&H>=0?(_.Ui.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.E6(_.Ui,function(){z7p(G)},H),G.JSC$15034_touched=!1):z7p(G))},uje=function(G){G.videoPreviewJobId=_.E6(_.Ui,function(){return _.S(function(H){return H.yield(K77(G,{isAutoplay:!0}),0)})})},z7p=function(G){!G.previewTriggered&&x3(G)&&
(G.inlinePreviewIsActive&&G.terminateVideoPreview(),G.previewTriggered=!0,G.mediaRenderer.isInlinePreviewTriggered=!0,_.Ui.cancelJob(G.videoPreviewJobId),G.videoPreviewJobId=_.E6(_.Ui,function(){return _.S(function(H){return H.yield(K77(G),0)})}))},K77=function(G,H){H=H===void 0?{}:H;
var Z=H.isAutoplay===void 0?!1:H.isAutoplay;var Q,p,l,q;return _.S(function(u){if(u.nextAddress==1){if(!x3(G))return u.return();Q=G.getVideoPreviewOpts();if(!Q)return u.return();Z&&(Q.isAutoplay=!0);return(l=(p=_.xk(G.mediaRenderer.hostElement,"yt-open-video-preview-action",[Q]))&&p[0])?u.yield(p[0],3):u.jumpTo(2)}u.nextAddress!=2&&(l=u.yieldResult===1);if(l){var B=(q=G.mediaRenderer)==null?void 0:q.data;B&&(VmW(B)?delete B.inlinePlayerData:"inlinePlaybackEndpoint"in B&&delete B.inlinePlaybackEndpoint)}_.K0(u)})};
$Su.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var G,H;if((H=(G=this.videoPreviewOptsInput)==null?void 0:G.videoPreviewData)!=null)G=H;else if(G=this.mediaRenderer.data)if(VmW(G))G={inlinePlaybackEndpoint:_.Tt(G.inlinePlayerData.onVisible),navigationEndpoint:_.Tt(G.onTap),thumbnail:"image"in G?G.image:G.thumbnail,thumbnailOverlays:void 0,accessibilityText:nof(G)};else if("multipleInlinePlaybackEndpoint"in G){var Z=_.X(_.X(G.multipleInlinePlaybackEndpoint,j$a),PM4);if(Z!=
null&&Z.playerDescriptors){H=[];Z=_.I(Z.playerDescriptors);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,H.push({inlinePlaybackEndpoint:Q.inlinePlaybackEndpoint,navigationEndpoint:Q.navigationEndpoint,thumbnail:Q.thumbnail,thumbnailOverlays:Q.thumbnailOverlays,accessibilityText:nof(G)});G=H}else G=void 0}else G={inlinePlaybackEndpoint:G.inlinePlaybackEndpoint,navigationEndpoint:G.navigationEndpoint,thumbnail:G.thumbnail,thumbnailOverlays:G.thumbnailOverlays,accessibilityText:nof(G)};else G=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:G,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var x3=function(G){var H;if(H=G.inlinePreviewIsEnabledForUser)H=(G=G.mediaRenderer.data)?"inlinePlaybackEndpoint"in G&&G.inlinePlaybackEndpoint||VmW(G)&&G.inlinePlayerData||"multipleInlinePlaybackEndpoint"in G&&G.multipleInlinePlaybackEndpoint?!0:!1:!1;return H};
$Su.prototype.terminateVideoPreview=function(){_.AZ(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Ai=function(G){_.Ui.cancelJob(G.videoPreviewJobId);G.inlinePreviewIsActive=!1;G.previewTriggered=!1;G.mediaRenderer.isInlinePreviewTriggered=!1};var MCx=_.CM(["#"]),Ld=function(){var G=_.C.apply(this,arguments)||this;G.isDisabled=!1;return G};
_.T(Ld,_.C);_.g=Ld.prototype;
_.g.configureRendererStamper=function(){return{"data.menu":zi,"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"}}}};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.getMetadata=function(G){var H=[];if(G.metadataText&&Object.keys(G.metadataText).length>0){var Z=this.ytRendererBehavior.getSimpleString(G.metadataText);G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&(Z=_.tW(Z,Number(G.upcomingEventData.startTime)));H.push(Z)}else G.shortViewCountText&&H.push(this.ytRendererBehavior.getSimpleString(G.shortViewCountText)),G.publishedTimeText&&H.push(this.ytRendererBehavior.getSimpleString(G.publishedTimeText)),G.upcomingEventData&&G.upcomingEventData.upcomingEventText&&
(Z=this.ytRendererBehavior.getSimpleString(G.upcomingEventData.upcomingEventText),H.push(_.tW(Z,Number(G.upcomingEventData.startTime))));return H};
_.g.calculateBylineText=function(G){return G.shortBylineText?G.shortBylineText:G.bylineText?G.bylineText:null};
_.g.calculateIsDisabled=function(G){return!!G.isDisabled};
_.g.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.gb2(MCx)};
_.g.onDetailsTap=function(G){var H=this.data&&this.data.navigationEndpoint;H&&!_.OO(_.OD(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.V("kevlar_grid_video_renderer_killswitch")?_.N5(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.g.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15041_inlinePreviewHoverListener=cV({mediaRenderer:this,lockupElement:_.F9(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.F9(this.hostElement).querySelector("ytd-thumbnail")})};
_.g.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15041_inlinePreviewHoverListener)==null||iL(G)};
_.g.computeThumbnailWidth=function(G,H){return H&&H>0?H:G?360:210};
_.g.computeNumBadgesInRow=function(G){var H;return((H=G.badges)==null?void 0:H.length)||0};
_.g.computeShowChannelThumbnail=function(G,H){var Z;return H&&!!(G==null?0:(Z=G.channelThumbnailSupportedRenderers)==null?0:Z.channelThumbnailWithLinkRenderer)};
_.u4.Object.defineProperties(Ld.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15041_inlinePreviewHoverListener)==null?0:x3(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
Ld.prototype.dataChanged=Ld.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Ld.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],Ld.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.v(_.bz),_.A("design:type",Object)],Ld.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Ld.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ld.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Ld.prototype,"noEndpoints",void 0);_.N([_.h({computed:"calculateBylineText(data)"}),_.A("design:type",Object)],Ld.prototype,"bylineText",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Ld.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Ld.prototype,"isDownloading",void 0);_.N([_.h({reflectToAttribute:!0,value:0}),_.A("design:type",Number)],Ld.prototype,"width",void 0);_.N([_.h({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.A("design:type",Object)],Ld.prototype,"isDisabled",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ld.prototype,"dataChanged",null);_.N([_.z("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ld.prototype,"isHovered",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ld.prototype,"hasAttributedBylineText",null);
_.N([_.z("bylineText","hasAttributedBylineText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ld.prototype,"showBylineText",null);_.N([_.O({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Ld);
_.m(Ld,"ytd-grid-video-renderer",function(){if(s7G!==void 0)return s7G;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return s7G=G},{mode:_.LH("kevlar_poly_si_batch_j047")?1:2});var j74;var E5=function(){var G=_.C.apply(this,arguments)||this;G.roundedContainer=!0;G.skipRoundingTop=!1;G.disableTopPadding=!1;G.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");G.extractOverlay=!1;return G};
_.T(E5,_.C);E5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
E5.prototype.onClick=function(G){var H,Z=(H=this.data)==null?void 0:H.sourceEndpoint;!_.OO(_.OD(G),this.hostElement,["A".toString()])&&Z&&_.N5(this.hostElement,"yt-navigate",{endpoint:Z})};
_.u4.Object.defineProperties(E5.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 G;return!((G=this.data)==null||!G.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=(G=this.data)==null?void 0:G.paragraphMaxLines)!=null?H:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],E5.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"showVerticalDividers",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"roundedContainer",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"skipRoundingTop",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"disableTopPadding",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],E5.prototype,"amsterdamEnabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],E5.prototype,"extractOverlay",void 0);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"showMetadataAtTop",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"showMetadataBelowTitle",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"hasMenu",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data.truncateParagraphs"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"truncateParagraphs",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.paragraphMaxLines"),_.A("design:type",Number),_.A("design:paramtypes",[])],E5.prototype,"paragraphMaxLines",null);
_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.A("design:type",Object),_.A("design:paramtypes",[])],E5.prototype,"background",null);_.N([_.O({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],E5);
_.m(E5,"ytd-info-panel-content-renderer",function(){if(j74!==void 0)return j74;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return j74=G},{mode:_.LH("kevlar_poly_si_batch_j076")?1:2});var PH4;var rIT;var wC_;var h7w;var Y3=function(){return _.C.apply(this,arguments)||this};
_.T(Y3,_.C);Y3.prototype.computeStyle=function(G){return G};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Y3.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],Y3.prototype,"style_",void 0);_.N([_.fH({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Y3);
_.m(Y3,"yt-channel-thumbnail-with-link-renderer",function(){if(h7w===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;wC_===void 0&&(wC_=document.createElement("template"));var Q=wC_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);h7w=G}G=h7w;return G},{mode:2});var Fl=function(){return _.C.apply(this,arguments)||this};
_.T(Fl,_.C);Fl.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"}}}};
Fl.prototype.computeTitleStyle=function(G){return G||null};
Fl.prototype.computeAvatarStyle=function(G){return G||null};
Fl.prototype.computeShowNavigationButton=function(G,H){return!(G==null||!G.navigationButton||H)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Fl.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.A("design:type",String)],Fl.prototype,"titleStyle",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.A("design:type",String)],Fl.prototype,"avatarStyle",void 0);_.N([_.h(),_.A("design:type",Boolean)],Fl.prototype,"hideNavigationButton",void 0);_.N([_.O({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Fl);
_.m(Fl,"ytd-rich-list-header-renderer",function(){if(rIT!==void 0)return rIT;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rIT=G},{mode:_.LH("kevlar_poly_si_batch_j058")?1:2});var bA=function(){return _.C.apply(this,arguments)||this};
_.T(bA,_.C);bA.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]]"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bA.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],bA.prototype,"isSearch",void 0);_.N([_.O({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],bA);
_.m(bA,"ytd-preview-card-renderer",function(){if(PH4!==void 0)return PH4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return PH4=G},{mode:1});var CHa;var Ga=function(){return _.C.apply(this,arguments)||this};
_.T(Ga,_.C);Ga.prototype.configureRendererStamper=function(){return{"data.menu":zi}};
Ga.prototype.dataChanged=function(){var G=this.get("colorExtractionPalette.section1Color",this.data);G=_.X9(G);_.ZI(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":G})};
Ga.prototype.computeCardStyle=function(G){return this.get("style.value",G)||null};
Ga.prototype.dataChanged=Ga.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],Ga.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ga.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.A("design:type",String)],Ga.prototype,"cardStyle",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ga.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Ga);
_.m(Ga,"ytd-compact-channel-recommendation-card-renderer",function(){if(CHa!==void 0)return CHa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return CHa=G},{mode:1});var ift;var Ofw;var Hb=function(){var G=_.C.apply(this,arguments)||this;G.alignAuto=!1;G.collapsed=!0;G.isToggled=!1;G.alwaysCollapsed=!1;G.canToggle=!0;G.collapsedHeight=80;G.disableToggle=!1;G.alwaysToggleable=!1;G.reversed=!1;G.shouldUseNumberOfLines=!1;G.recomputeOnResize=!1;G.canToggleJobId=0;G.lastReversed=!1;return G};
_.T(Hb,_.C);_.g=Hb.prototype;_.g.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.g.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.g.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var G=_.F9(this.hostElement),H=G.childNodes,Z=document.createDocumentFragment(),Q=G.childNodes.length-1;Q>=0;Q--)_.F9(Z).appendChild(H[Q]);_.V("enable_shadydom_free_scoped_node_methods")?_.bS(this.hostElement).appendChild(Z):G.appendChild(Z)}};
_.g.ready=function(){var G=this;_.PG(function(){G.initChildrenObserver()},1)};
_.g.attached=function(){var G;(G=this.resizeObserver)==null||G.observe(this.content)};
_.g.detached=function(){this.detachObserver()};
_.g.toggle=function(G,H){this.canToggle&&(this.isToggled=H,_.N5(this.hostElement,"yt-refit"),G&&G.stopPropagation())};
_.g.reset=function(){this.childrenChanged()};
_.g.onIronResize=function(){this.recomputeOnResize&&!_.V("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.g.computeIsMoreVisible=function(G,H){return G&&!H};
_.g.computeShouldUseNumberOfLines=function(G){try{return!!G&&window.CSS.supports("-webkit-line-clamp","1")}catch(H){}return!1};
_.g.computeIsLessVisible=function(G,H){return G&&H};
_.g.observeCollapsedHeightAndMaxLines=function(){var G=this.collapsedHeight,H=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.ZI(this.hostElement,{"--ytd-expander-max-lines":""+H,"--ytd-expander-collapsed-height":""}):_.ZI(this.hostElement,{"--ytd-expander-collapsed-height":G+"px","--ytd-expander-max-lines":""})};
_.g.handleMoreTap=function(G){this.disableToggle||(_.N5(this.hostElement,"yt-expander-more-tapped"),this.toggle(G,!0))};
_.g.handleLessTap=function(G){_.N5(this.hostElement,"yt-expander-less-tapped");this.toggle(G,!1)};
_.g.initChildrenObserver=function(){var G=this;this.observer=new MutationObserver(function(){G.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.V("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Zo(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var H;(H=G.resizeThrottle)==null||H.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.g.childrenChanged=function(){var G=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){LX(function(){G.canToggleJobId=0;G.calculateCanCollapse()})}))};
_.g.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};
_.g.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.g.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("collapsed-changed",this.collapsed))};
_.g.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("is-toggled-changed",this.isToggled))};
_.g.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("can-toggle-changed",this.canToggle))};
_.u4.Object.defineProperties(Hb.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Hb.prototype.canToggleChangedForBinding=Hb.prototype.canToggleChangedForBinding;Hb.prototype.isToggledChangedForBinding=Hb.prototype.isToggledChangedForBinding;Hb.prototype.collapsedChangedForBinding=Hb.prototype.collapsedChangedForBinding;Hb.prototype.observeCollapsedHeightAndMaxLines=Hb.prototype.observeCollapsedHeightAndMaxLines;Hb.prototype.onIronResize=Hb.prototype.onIronResize;Hb.prototype.reversedChanged=Hb.prototype.reversedChanged;Hb.prototype.toggledChanged=Hb.prototype.toggledChanged;
Hb.prototype.alwaysToggleableChanged=Hb.prototype.alwaysToggleableChanged;_.N([_.v(_.hS),_.A("design:type",Object)],Hb.prototype,"ironResizableBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Hb.prototype,"alignAuto",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Hb.prototype,"collapsed",void 0);_.N([_.h(),_.A("design:type",Object)],Hb.prototype,"isToggled",void 0);_.N([_.h(),_.A("design:type",Object)],Hb.prototype,"alwaysCollapsed",void 0);
_.N([_.h(),_.A("design:type",Object)],Hb.prototype,"canToggle",void 0);_.N([_.h(),_.A("design:type",Object)],Hb.prototype,"collapsedHeight",void 0);_.N([_.h(),_.A("design:type",Object)],Hb.prototype,"disableToggle",void 0);_.N([_.h(),_.A("design:type",Object)],Hb.prototype,"alwaysToggleable",void 0);_.N([_.h(),_.A("design:type",Object)],Hb.prototype,"reversed",void 0);_.N([_.h(),_.A("design:type",Number)],Hb.prototype,"maxNumberOfLines",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.A("design:type",Object)],Hb.prototype,"shouldUseNumberOfLines",void 0);_.N([_.h(),_.A("design:type",Object)],Hb.prototype,"recomputeOnResize",void 0);_.N([_.q6("#content"),_.A("design:type",HTMLDivElement)],Hb.prototype,"content",void 0);_.N([_.Jv("alwaysToggleable"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hb.prototype,"alwaysToggleableChanged",null);
_.N([_.Jv("isToggled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hb.prototype,"toggledChanged",null);_.N([_.z("canToggleJobId"),_.A("design:type",Object),_.A("design:paramtypes",[])],Hb.prototype,"isResetting",null);_.N([_.gx("reversed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hb.prototype,"reversedChanged",null);
_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hb.prototype,"onIronResize",null);_.N([_.gx("maxNumberOfLines","collapsedHeight"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hb.prototype,"observeCollapsedHeightAndMaxLines",null);_.N([_.gx("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hb.prototype,"collapsedChangedForBinding",null);
_.N([_.gx("isToggled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hb.prototype,"isToggledChangedForBinding",null);_.N([_.gx("canToggle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hb.prototype,"canToggleChangedForBinding",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-expander"})],Hb);
_.m(Hb,"ytd-expander",function(){if(Ofw!==void 0)return Ofw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ofw=G},{mode:1});var s0=function(){return _.C.apply(this,arguments)||this};
_.T(s0,_.C);s0.prototype.computeIsCarousel=function(G){return!!G.isCarousel};
s0.prototype.observeLightsourcePalette=function(){var G,H=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;H&&_.Do(this.hostElement,H)};
s0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
s0.prototype.observeLightsourcePalette=s0.prototype.observeLightsourcePalette;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],s0.prototype,"data",void 0);_.N([_.h({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],s0.prototype,"isCarousel",void 0);
_.N([_.gx("data.vibrantsourceColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],s0.prototype,"observeLightsourcePalette",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],s0);
_.m(s0,"ytd-media-upsell-renderer",function(){if(ift!==void 0)return ift;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ift=G},{mode:2});var aL2;var ZF=function(){var G=_.C.apply(this,arguments)||this;G.JSC$15068_playerEvents=new Map;G.listeningToPlayer=!1;G.startX=0;G.active=!1;G.shouldShowButtons=_.V("web_buttons_hidden_killswitch");G.isHighlighted=!1;G.useHighlightStyling=_.V("web_enable_deeper_metadata_highlight_styling");G.enableProblemWalkthrough=_.V("problem_walkthrough_sd");return G};
_.T(ZF,_.C);_.g=ZF.prototype;
_.g.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}}}}}};
_.g.created=function(){this.JSC$15068_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.g.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.pH(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.pH(this,this.onActiveUpdate))};
_.g.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.pH(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.pH(this,this.onActiveUpdate))};
_.g.onDataChanged=function(){this.removePlayerListeners()};
_.g.onColorPaletteChange=function(){var G={},H;if(_.Ml()==="USER_INTERFACE_THEME_DARK"&&((H=this.data)==null?0:H.darkColorPalette)){var Z=this.data.darkColorPalette;G["--ytd-macro-markers-list-item-background-color"]=_.c$(this.get("section2Color",Z))}else{var Q;_.Ml()==="USER_INTERFACE_THEME_LIGHT"&&((Q=this.data)==null?0:Q.lightColorPalette)&&(Z=this.data.lightColorPalette,G["--ytd-macro-markers-list-item-background-color"]=_.c$(this.get("section3Color",Z)))}Z?(G["--ytd-macro-markers-list-item-title-color"]=
_.c$(this.get("primaryTitleColor",Z)),G["--ytd-macro-markers-list-item-secondary-color"]=_.c$(this.get("secondaryTitleColor",Z)),G["--ytd-macro-markers-list-item-timestamp-background-color"]=_.c$(this.get("section1Color",Z)),this.customButtonProperties={customColors:{color:_.c$(this.get("primaryTitleColor",Z))}},this.useColorSampling=!0):(G["--ytd-macro-markers-list-item-background-color"]="initial",G["--ytd-macro-markers-list-item-title-color"]="initial",G["--ytd-macro-markers-list-item-secondary-color"]=
"initial",G["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.ZI(this.hostElement,G)};
_.g.onEndpointMouseDown=function(G){this.startX=G.clientX};
_.g.onEndpointClick=function(G){var H=this,Z,Q,p;return _.S(function(l){if(l.nextAddress==1){if(H.startX!==G.clientX)return G.preventDefault(),l.return();H.data&&H.ytRendererBehavior.logExplicitClick(H.data);if(!H.seekWithAnimationOnClick)return l.jumpTo(0);if(G.button!==0||G.shiftKey||G.altKey||G.metaKey||G.ctrlKey||_.OO(_.OD(G),H.hostElement,["BUTTON".toString()]))return l.return();G.stopPropagation();G.preventDefault();return H.data?l.yield(_.R0().getPlayerPromise(),3):l.return()}Z=l.yieldResult;
p=(Q=_.X(H.data.onTap,_.hZ))==null?void 0:Q.startTimeSeconds;p!==void 0&&Z.seekToTimeWithAnimation(p*1E3,_.yn(H.data.title));_.K0(l)})};
_.g.computeLayout=function(G){return G};
_.g.computeIsHighlighted=function(G){return!!G};
_.g.computeCarouselType=function(G){return G};
_.g.hideCarousel=function(G){return this.hideThumbnail(G)};
_.g.hideThumbnail=function(G){return this.enableProblemWalkthrough&&G!==null&&G==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.g.onRepeatButtonToggle=function(G){var H=this;G.detail.toggled&&_.R0().getPlayerPromise().then(function(Z){H.ytPlayerListenerBehavior.listenToPlayerEvents(Z,H.JSC$15068_playerEvents);H.listeningToPlayer=!0})};
_.g.onLoopRangeChange=function(G){var H=_.F9(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(H){var Z=H.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",H.polymerController.data);if(Z){var Q=Number(Z.endTimeMs);if(Number(Z.startTimeMs)!==(G==null?void 0:G.startTimeMs)||Q!==(G==null?void 0:G.endTimeMs))H.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.g.removePlayerListeners=function(){var G=this;this.listeningToPlayer&&_.R0().getPlayerPromise().then(function(H){G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(H,G.JSC$15068_playerEvents);G.listeningToPlayer=!1})};
_.g.onActiveUpdate=function(G){this.active=G.detail.active};
ZF.prototype.onColorPaletteChange=ZF.prototype.onColorPaletteChange;ZF.prototype.onDataChanged=ZF.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],ZF.prototype,"ytPlayerListenerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],ZF.prototype,"data",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],ZF.prototype,"useCustomColors",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ZF.prototype,"active",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],ZF.prototype,"shouldShowButtons",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.A("design:type",String)],ZF.prototype,"layout",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.A("design:type",Object)],ZF.prototype,"isHighlighted",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ZF.prototype,"useHighlightStyling",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ZF.prototype,"enableProblemWalkthrough",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.A("design:type",String)],ZF.prototype,"carouselType",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],ZF.prototype,"useColorSampling",void 0);_.N([_.h(),_.A("design:type",Boolean)],ZF.prototype,"seekWithAnimationOnClick",void 0);_.N([_.h(),_.A("design:type",Object)],ZF.prototype,"customButtonProperties",void 0);
_.N([_.q6("#repeat-button"),_.A("design:type",HTMLElement)],ZF.prototype,"repeatButton",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZF.prototype,"onDataChanged",null);_.N([_.gx("data.lightColorPalette","data.darkColorPalette"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZF.prototype,"onColorPaletteChange",null);_.N([_.O({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],ZF);
_.m(ZF,"ytd-macro-markers-list-item-renderer",function(){if(aL2!==void 0)return aL2;var G=document.createElement("template");_.f(G,'\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="[[hideCarousel(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="[[!hideCarousel(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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return aL2=G},{mode:1});var yIG;var os_;var QH=function(){return _.C.apply(this,arguments)||this};
_.T(QH,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],QH.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],QH);
_.m(QH,"ytd-title-and-button-list-header-renderer",function(){if(os_!==void 0)return os_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return os_=G},{mode:1});var mNG;var UNa=new _.Gv("BUTTON_RENDERER_TOKEN");_.pJ=_.y(function(G){var H=_.tp().resolve(UNa);return _.J(H,Object.assign({},G,{overrides:G.buttonOverrides}))},"Va");var R7p=_.y(function(G){var H=G.data,Z=_.yy(G.useSquareAspectRatio,!1);return _.J("dismissed-mini-game-card-view-model",null,_.J(_.k,{cond:function(){var Q,p;return(Q=H().responseText)==null?void 0:(p=Q.runs)==null?void 0:p.length},
then:function(){var Q={};return _.J("div",{class:_.bb("yt-mini-game-card-view-model__dismissed-card",(Q["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!Z()},Q["yt-mini-game-card-view-model--dismissed-square-card"]=Z,Q))},_.J("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.J(_.k,{cond:function(){return H().responseText.runs[0].text},
then:function(p){return _.J("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:p},p)}}),_.J(_.SP,{data:function(){return H().buttons}},{buttonRenderer:_.pJ,
buttonViewModel:_.kg})))}}))},"Wa");var F77=_.y(function(G){G=_.oK(G,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var H=G.data,Z=G.useFullWidth,Q=G.isDesktopWeb,p=G.addSearchResultTopMargin,l=function(){return H().layout},q=function(){return H().title},u=function(){return H().metadataText?H().metadataText:H().genre},B=function(){return H().channelName},t=function(){return H().image},D=function(){return H().colorPalette},d=function(){return H().actionButton},e=function(){return H().overflowButton},
n=function(){return H().avatar},c=function(){var w={};
w=_.bb("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(w["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return Q()},w));
return _.J("div",{class:w},_.J(NRT,{imageData:t,colorPalette:D}),_.J(AIN,{onTap:function(){return H().onTap},
imageData:t,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
isDesktopWeb:Q}),_.J(_.k,{cond:function(){return!Q()},
then:function(){return _.J(_.kI,null,_.J(xNw,{layout:l,colorPalette:D,isDesktopWeb:Q,overflowButton:e,avatar:n,onTap:function(){return H().onTap},
genre:u,title:q,channelName:B}),_.J(L7_,{actionButton:d}))}}))},W=function(){var w={};
w=_.bb((w["yt-mini-game-card-view-model--search-result-desktop"]=function(){return Q()},w["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!Q()},w["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return p()},w));
return _.J("div",{class:w},c(),_.J(Esd,{description:function(){return H().description},
isDesktopWeb:Q,title:q,genre:u,onTap:function(){return H().onTap},
actionButton:d,overflowButton:e,avatar:n,channelName:B}))},M=function(){var w={};
w=_.bb("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(w["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return Q()},w["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return Q()&&H().width===135},w["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return Q()},w["yt-mini-game-card-view-model--big-metadata-font"]=function(){return H().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},w["yt-mini-game-card-view-model--use-full-width"]=
function(){return Z()},w["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!d()},w));
return _.J("div",{class:w},_.J(Y$t,{colorPalette:D,isDesktopWeb:Q,onTap:function(){return H().onTap},
accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
actionButton:d,imageData:t}),_.J(xNw,{layout:l,colorPalette:D,isDesktopWeb:Q,overflowButton:e,avatar:n,onTap:function(){return H().onTap},
genre:u,title:q,channelName:B}))},r=function(){var w={};
w=_.bb("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(w["yt-mini-game-card-view-model--square-card-desktop"]=function(){return Q()},w["yt-mini-game-card-view-model--use-full-width"]=function(){return Z()},w));
return _.J("div",{class:w},_.J(AIN,{onTap:function(){return H().onTap},
imageData:t,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
isDesktopWeb:Q}),_.J(xNw,{layout:l,colorPalette:D,isDesktopWeb:Q,overflowButton:e,avatar:n,onTap:function(){return H().onTap},
genre:u,title:q,channelName:B}))};
return _.J("mini-game-card-view-model",{class:G.className},_.J(_.iW,null,_.J(_.wO,{when:function(){return l()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return M()}),_.J(_.wO,{when:function(){return l()==="MINI_APP_LAYOUT_SQUARE"}},function(){return r()}),_.J(_.wO,{when:function(){return l()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return W()})))},"Xa");
F77.idomCompat=!0;var L7_=_.y(function(G){var H=_.yy(G.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.J(_.SP,{data:G.actionButton},{buttonViewModel:function(Z){return _.J("div",{class:H},_.J(_.kg,{data:Z.data}))}})},"Ya"),AIN=_.y(function(G){var H=G.onTap;
var Z=G.imageData;var Q=G.accessibilityText;var p=G.overlayBadgeText;var l=G.iconName;var q=G.unplayableInlinePlaybackIconName;G=G.isDesktopWeb;return _.J(_.S8,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:H},_.J(_.ib,{data:Z,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(Q==null?void 0:Q())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.J(bfa,{overlayBadgeText:p,iconName:l,unplayableInlinePlaybackIconName:q,isDesktopWeb:G}))},"Za"),bfa=_.y(function(G){var H=G.overlayBadgeText;
var Z=G.iconName;var Q=G.unplayableInlinePlaybackIconName;var p=G.isDesktopWeb;return _.J("div",{class:"yt-mini-game-card-view-model__badge-container"},_.J(_.k,{cond:Z,then:function(l){return _.J("div",{class:"yt-mini-game-card-view-model__badge"},_.J("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.J(_.ll,{icon:l,className:"yt-mini-game-card-view-model__icon",size:12}),_.J("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},H)))}}),_.J(_.k,{cond:function(){return!Z()&&
H()},
then:function(){return _.J("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},H)}}),_.J(_.k,{cond:function(){return Q()&&p()},
then:function(){return _.J("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.J(_.ll,{icon:Q,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"$a"),NRT=_.y(function(G){var H=G.colorPalette;
var Z=G.imageData;var Q=function(){return H().vibrantColorPalette?H().vibrantColorPalette.section2Color:H().sectionTwoColor};
return _.J(_.kI,null,_.J("div",{class:"yt-mini-game-card-view-model__background-base",style:_.pI({"background-color":function(){return Tz(Q(),"1")}})}),_.J("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.pI({"background-image":function(){return"url("+Z().sources[0].url+")"}})}),_.J("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.pI({background:function(){return"linear-gradient(180deg,\n    "+Tz(Q(),".8")+" 0%,\n    "+Tz(Q(),".4")+" 25%,\n    "+Tz(H().vibrantColorPalette?H().vibrantColorPalette.section4Color:H().sectionFourColor,".8")+" 100%)"}})}))},"ab"),xNw=_.y(function(G){var H=G.layout;
var Z=G.colorPalette;var Q=G.overflowButton;var p=G.avatar;var l=G.onTap;var q=G.title;var u=G.channelName;var B=G.genre;var t=function(){var D;return H()!=="MINI_APP_LAYOUT_SQUARE"&&((D=Z())==null?0:D.textPrimaryColor)?"color: "+Tz(Z().textPrimaryColor,".7"):""};
return _.J("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.J(_.k,{cond:p,then:function(){return _.J("div",{class:"yt-mini-game-card-view-model__avatar"},_.J(_.SP,{data:p},{avatarViewModel:_.m9}))}}),_.J(_.S8,{command:l,
className:"yt-mini-game-card-view-model__metadata-details"},_.J("h3",{class:"yt-mini-game-card-view-model__title",title:q},q),_.J(_.k,{cond:p,then:function(){return _.J("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.J("span",{class:"yt-mini-game-card-view-model__genre",title:u,style:t},u),_.J("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:t},B))},
else:function(){return _.J("span",{class:"yt-mini-game-card-view-model__genre",title:B},B)}})),_.J("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.J(_.SP,{data:Q},{buttonViewModel:function(D){var d=D.data;
return _.J(_.kg,{data:function(){return Object.assign({},d(),{customFontColor:H()==="MINI_APP_LAYOUT_SINGLETON"?d().customFontColor:void 0})}})}})))},"bb"),Y$t=_.y(function(G){var H=G.colorPalette;
var Z=G.isDesktopWeb;var Q=G.onTap;var p=G.accessibilityText;var l=G.overlayBadgeText;var q=G.iconName;var u=G.unplayableInlinePlaybackIconName;var B=G.actionButton;G=G.imageData;return _.J("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.J(NRT,{imageData:G,colorPalette:H}),_.J(AIN,{onTap:Q,imageData:G,accessibilityText:p,overlayBadgeText:l,iconName:q,unplayableInlinePlaybackIconName:u,isDesktopWeb:Z}),_.J(_.k,{cond:function(){return B==null?void 0:B()},
then:function(){return _.J(L7_,{actionButton:B})}}))},"cb"),Esd=_.y(function(G){var H=G.description;
var Z=G.isDesktopWeb;var Q=G.title;var p=G.genre;var l=G.onTap;var q=G.actionButton;var u=G.overflowButton;var B=G.avatar;G=G.channelName;var t={};t=_.bb("yt-mini-game-card-view-model--search-result-metadata-wrapper",(t["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=Z,t["yt-mini-game-card-view-model--show-unplayable-on-hover"]=Z,t["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!Z()},t));
var D={};D=_.bb("yt-mini-game-card-view-model__search-result-info-row",(D["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!Z()},D));
return _.J("div",{class:t},_.J("div",{class:D},_.J(_.S8,{command:l,className:"yt-mini-game-card-view-model__metadata-details"},_.J("h3",{class:"yt-mini-game-card-view-model__title",title:Q},Q),_.J("span",{class:"yt-mini-game-card-view-model__genre",title:p},p)),_.J(L7_,{actionButton:q,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.J("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.J(_.SP,{data:u},{buttonViewModel:_.kg}))),_.J("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.J("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.J("div",{class:"yt-mini-game-card-view-model__avatar"},_.J(_.SP,{data:B},{avatarViewModel:function(d){var e=d.data;return _.J(_.m9,{data:function(){return Object.assign({},e(),{avatarImageSize:Z()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.J(_.S8,{command:l,
className:"yt-mini-game-card-view-model__description"},_.J("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},G)),_.J(_.S8,{command:l,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.J("div",null)))),_.J(_.k,{cond:Z,then:function(){return _.J(_.S8,{command:l,className:"yt-mini-game-card-view-model__description"},H)}}))},"db");_.RX(F77,"mini-game-card-view-model",{props:{data:_.b3,className:_.b3,useFullWidth:_.b3,isDesktopWeb:_.b3,addSearchResultTopMargin:_.b3}});_.RX(R7p,"dismissed-mini-game-card-view-model",{props:{data:_.b3,useSquareAspectRatio:_.b3}});var lx=function(){var G=_.C.apply(this,arguments)||this;G.isSearch=!1;G.isRichGrid=!1;return G};
_.T(lx,_.C);_.g=lx.prototype;_.g.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.g.dismissibleItemOnYtServiceRequestSent=function(G,H){H.actions&&this.dismissibleItemProcessActions(G,H.actions)};
_.g.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.g.dataChanged=function(){this.dismissibleItemReset()};
_.g.dismissibleItemProcessActions=function(G,H){for(var Z=0;Z<H.length;Z++){var Q=H[Z];_.X(Q,_.zm)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.X(Q,_.zm)),G.stopPropagation())}};
_.g.dismissibleItemHandleReplaceEnclosingAction=function(G){this.dismissedRenderer=G.item;this.isDismissed=!0};
_.u4.Object.defineProperties(lx.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var G;return!!this.data&&!((G=this.dismissedRenderer)==null?0:G.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.dismissedRenderer)==null||!G.notificationMultiActionRenderer)}}});
lx.prototype.dataChanged=lx.prototype.dataChanged;lx.prototype.dismissibleItemOnRequestSent=lx.prototype.dismissibleItemOnRequestSent;lx.prototype.dismissibleItemOnYtServiceRequestSent=lx.prototype.dismissibleItemOnYtServiceRequestSent;_.N([_.h(),_.A("design:type",Object)],lx.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lx.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],lx.prototype,"isDismissed",void 0);
_.N([_.h(),_.A("design:type",Object)],lx.prototype,"dismissedRenderer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lx.prototype,"isRichGrid",void 0);_.N([_.z("data.layout"),_.A("design:type",Object),_.A("design:paramtypes",[])],lx.prototype,"useSquareAspectRatio",null);_.N([_.z("data","dismissedRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],lx.prototype,"showCard",null);
_.N([_.z("data","dismissedRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],lx.prototype,"showDismissed",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],lx.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.N([_.lq("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],lx.prototype,"dismissibleItemOnRequestSent",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lx.prototype,"dataChanged",null);_.N([_.fH({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],lx);
_.m(lx,"ytd-mini-game-card-view-model",function(){if(mNG!==void 0)return mNG;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return mNG=G},{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var Glw;var Haa;var gB=function(){return _.BE.apply(this,arguments)||this};
_.T(gB,_.BE);gB.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
gB.prototype.getContinuationUrl=function(G){var H={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.g7(G,H)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gB.prototype,"data",void 0);_.N([_.fH({is:"yt-reload-continuation",noInjection:!0})],gB);var sRp;var ZaG;var Ik=function(){var G=_.C.apply(this,arguments)||this;G.notificationData={};return G};
_.T(Ik,_.C);_.g=Ik.prototype;_.g.isMenuExpanded=function(G){return G&&G.length<=1?"undefined":"false"};
_.g.dataChanged_=function(){this.selected=void 0;var G=this.computeSelectedIndex_(this.data);G>=0&&(this.selected=G);G=this.data&&this.data.length>1;_.Gq(this.hostElement,"has-items",G);_.F9(this.hostElement).querySelector("#label").tabIndex=G?0:-1};
_.g.onDropdownOpen=function(){var G=_.$k();if(this.parentTrackingParams&&this.data){var H=_.BT(this.parentTrackingParams);this.data.forEach(function(Z){G&&H&&Z.trackingParams&&(Z=_.BT(Z.trackingParams),_.je(G,H,Z),_.w8(G,[Z]))})}else this.parentTrackingParams||_.Rp(new _.C$("No parent tracking params passed in for yt-dropdown-menu."))};
_.g.hasNotification=function(G){var H;if(G.targetId&&((H=this.notificationData)==null?0:H.targetId)){var Z;return G.targetId===((Z=this.notificationData)==null?void 0:Z.targetId)}};
_.g.computeSelectedIndex_=function(G){if(G)for(var H=0,Z=G.length;H<Z;H++)if(G[H].selected)return H;return-1};
_.g.computeLabel_=function(G){return this.data&&G!=void 0?this.data[G].title:""};
_.g.computeShowIcon_=function(G,H){return!H&&!!G};
_.g.computeVerticalOffset_=function(G){return G?36:0};
_.g.computeEndpoint_=function(G){return G.endpoint||G.navigationEndpoint};
_.g.onLabelClick_=function(G){this.data&&this.data.length<=1?G.stopPropagation():this.menuExpanded="true"};
_.g.onIronActivate_=function(G){G=G.detail.item;var H=_.F9(this.hostElement).querySelector("#repeat").itemForElement(G);if(H&&H.trackingParams){var Z=_.$k(),Q=_.BT(H.trackingParams);Z&&_.Co(Z,Q)}if(H&&H.serviceEndpoint)_.V("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(H.serviceEndpoint):_.L9(this.hostElement,[H.serviceEndpoint]),_.N5(this.hostElement,"yt-playlist-reloading");else a:{if((H=G.querySelector("yt-supported-renderers"))&&
(H=H.rendererElement)&&H.is=="yt-reload-continuation"){H.trigger();break a}(G=G.querySelector("yt-reload-continuation"))&&G.trigger()}};
_.g.onTap_=function(G){G.preventDefault()};
_.g.onItemTap_=function(G){this.ytEndpointBehavior.onEndpointTap_(G)};
_.g.onLinkFocus_=function(G){try{var H=G.target}catch(Q){}if(H){var Z=H.querySelector("tp-yt-paper-item");Z&&_.rx(this,"focus",function(){Z.focus()})}};
_.g.onMenuClose_=function(){this.menuExpanded="false"};
_.g.isLabelIconActive_=function(G){return G==="true"};
_.g.computeHasSubtitle_=function(G){return!!G};
_.g.computeHrefForItem_=function(G){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(G))};
_.g.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
_.u4.Object.defineProperties(Ik.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Ik.prototype.onMenuClose_=Ik.prototype.onMenuClose_;Ik.prototype.onTap_=Ik.prototype.onTap_;Ik.prototype.onIronActivate_=Ik.prototype.onIronActivate_;Ik.prototype.onDropdownOpen=Ik.prototype.onDropdownOpen;Ik.prototype.dataChanged_=Ik.prototype.dataChanged_;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Ik.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.ni.YtEndpointBehavior),_.A("design:type",Object)],Ik.prototype,"ytEndpointBehavior",void 0);
_.N([_.h(),_.A("design:type",Array)],Ik.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Ik.prototype,"parentTrackingParams",void 0);_.N([_.h(),_.A("design:type",Object)],Ik.prototype,"selected",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Ik.prototype,"useLabel",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Ik.prototype,"useComputedAriaLabel",void 0);_.N([_.h(),_.A("design:type",String)],Ik.prototype,"icon",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],Ik.prototype,"iconLabel",void 0);_.N([_.h(),_.A("design:type",String)],Ik.prototype,"ariaLabel",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ik.prototype,"disabled",void 0);_.N([_.h({computed:"isMenuExpanded(data)"}),_.A("design:type",String)],Ik.prototype,"menuExpanded",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Ik.prototype,"closeOnActivate",void 0);
_.N([_.h({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.A("design:type",Boolean)],Ik.prototype,"modernButtons",void 0);_.N([_.h(),_.A("design:type",Object)],Ik.prototype,"notificationData",void 0);_.N([_.z("ariaLabel, selected"),_.h(),_.A("design:type",String),_.A("design:paramtypes",[])],Ik.prototype,"computedAriaLabel",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ik.prototype,"dataChanged_",null);
_.N([_.lq("paper-dropdown-open"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Ik.prototype,"onDropdownOpen",null);_.N([_.lq("iron-activate"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Ik.prototype,"onIronActivate_",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ik.prototype,"onTap_",null);
_.N([_.lq("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Ik.prototype,"onMenuClose_",null);_.N([_.fH({is:"yt-dropdown-menu",disableElementRegistration:!0})],Ik);
_.m(Ik,"yt-dropdown-menu",function(){if(ZaG===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;sRp===void 0&&(sRp=document.createElement("template"));var Q=sRp;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ZaG=G}G=ZaG;return G},{mode:2});var qA=function(){var G=_.C.apply(this,arguments)||this;G.hasNotification=!1;return G};
_.T(qA,_.C);qA.prototype.computeId=function(G){return G};
qA.prototype.computeHorizontalAlign=function(G){return G?"right":"left"};
qA.prototype.computeAccessibilityLabel=function(G){var H,Z;return((H=G.accessibility)==null?void 0:(Z=H.accessibilityData)==null?void 0:Z.label)||null};
qA.prototype.notificationDataChanged=function(){var G;this.hasNotification=!!this.notificationData&&!((G=this.data)==null?0:G.icon)};
qA.prototype.notificationDataChanged=qA.prototype.notificationDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ur.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],qA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qA.prototype,"data",void 0);_.N([_.h({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",String)],qA.prototype,"id",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],qA.prototype,"isRightAligned",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],qA.prototype,"disabled",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],qA.prototype,"closeOnActivate",void 0);_.N([_.h(),_.A("design:type",Object)],qA.prototype,"notificationData",void 0);_.N([_.h(),_.A("design:type",Object)],qA.prototype,"hasNotification",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],qA.prototype,"useComputedAriaLabel",void 0);_.N([_.gx("notificationData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qA.prototype,"notificationDataChanged",null);_.N([_.fH({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],qA);
_.m(qA,"yt-sort-filter-sub-menu-renderer",function(){if(Haa===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Glw===void 0&&(Glw=document.createElement("template"));var Q=Glw;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Haa=G}G=Haa;return G},{mode:2});var QRN=_.y(function(G){var H=G.data;var Z=_.Hh(function(){var l=H().onTap;(l=_.X(l,_.cT))&&_.tp().resolve(_.Dk).resolveCommand(l);return!1}),Q=function(){return{sources:[{url:H().thumbnailUrl,
width:120,height:90}]}},p=function(){return H().rating&&H().ratingA11yLabel&&H().reviewsCount&&H().reviewsCountA11yLabel};
return _.J("place-data-view-model",null,_.J(_.k,{cond:function(){return H().placeName&&H().placeCategory},
then:function(){return _.J("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":Z},_.J(_.ib,{data:Q,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.J(_.S8,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return H().onTap}},_.J("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return H().placeName}},function(){return H().placeName})),_.J("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.J(_.k,{cond:p,
then:function(){return _.J("div",{class:_.bb("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.J("span",{class:"score",title:function(){return H().ratingA11yLabel}},function(){return H().rating}),_.J("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.J(_.ll,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.J("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return H().reviewsCountA11yLabel}},function(){return H().reviewsCount}))},
else:function(){return _.J("div",{class:_.bb("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.J("div",{class:_.bb("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.J("span",{class:"category",
title:function(){return H().placeCategory}},function(){return H().placeCategory}))))}}))},"eb");
QRN.idomCompat=!0;_.RX(QRN,"place-data-view-model",{props:{data:_.b3}});var pu4=new _.Gv("INLINE_PLAYBACK_HOOK_TOKEN");var l44=VF({sharedUi:Crx});_.KG=$V(l44)(l44.sharedUi,{animatedThumbnailEnabledSelector:function(G){return G.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(G){return G.inlinePreviewEnabled},
currentPageTypeSelector:function(G){return G.currentPageType},
currentPageSubTypeSelector:function(G){return G.currentPageSubType},
persistentPanelVisibleSelector:function(G){return G.persistentPanelVisible}});var g0a=function(G){this.setActiveSlideIndex=G;this.jobIds=[];this.isSlideshowPlaying=!1},Skw=function(G,H){G.isSlideshowPlaying||(G.isSlideshowPlaying=!0,I42(G),qkG(G,H,0))},I42=function(G){_.E6(_.Ui,function(){G.setActiveSlideIndex(0)},1)},qkG=function(G,H,Z){G.jobIds.push(_.E6(_.Ui,function(){var Q=Z<H-1?Z+1:0;
G.setActiveSlideIndex(Q);qkG(G,H,Q)},1800))};var uK_=new _.Gv("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN"),BEx=new _.Gv("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");var JEx=new _.Gv("IMAGE_ON_LOAD_HANDLER_TOKEN");var tqw=_.y(function(G){return _.J("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.J(_.k,{cond:function(){var H;return(H=G.data())==null?void 0:H.thumbnail},
then:function(H){return _.J(_.ib,{data:H,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"fb");_.klx=_.y(function(G){var H=G.data;var Z=G.lockupExperiments;G={};return _.J("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.J("div",{class:_.bb("ytThumbnailOverlayButtonViewModelButton",(G.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var Q;return Z&&((Q=Z())==null?void 0:Q.useLegacySizedIconButton)},G))},_.J(_.SP,{data:function(){return H().overlayButton}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
buttonOverrides:function(){var p;return Z&&((p=Z())==null?0:p.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"gb");
_.klx.idomCompat=!0;var Dkd=_.y(function(G){return _.J("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Hh(function(H){H.preventDefault();return!1})},_.J(_.SP,{data:function(){return G.data().buttons}},{toggleButtonViewModel:function(H){return _.J("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.J(_.hf,{data:H.data}))}}))},"hb");
Dkd.idomCompat=!0;var dkw=_.y(function(G){var H=function(){var Z;return((Z=_.X(G.data().rendererContext,_.qc))==null?void 0:Z.label)||""};
return _.J("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.J(_.k,{cond:function(){return G.data().image},
then:function(){return _.J("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.J(_.ib,{data:function(){return G.data().image},
alt:H}))}}),_.J(_.k,{cond:function(){return G.data().text},
then:function(){return _.J("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return G.data().text})}}))},"ib");var eVp;eVp=_.KG.animatedThumbnailEnabledSelector;_.So=_.y(function(G){var H=[],Z=function(){var e,n;return amf((e=G.width)==null?void 0:e.call(G),(n=G.height)==null?void 0:n.call(G))},Q=_.tp().resolve(_.Jp(JEx)),p=_.IA("yt-thumbnail-view-model",function(){H.push("elRef.value set");
var e;(e=G.playbackRef)==null||e.call(G,{thumbnailElRef:p,thumbnail:G.data().image,thumbnailOverlays:G.data().overlays,thumbnailSize:Z()})});
_.mR(function(){H.push("onInit");_.oM(function(){H.push("onCleanup")})});
var l=_.SQ(eVp),q=function(){var e,n;return(n=(e=G.aspectRatio)==null?void 0:e.call(G))!=null?n:0},u=function(){return(G.data().image?_.lVj(G.data().image):q())<=1&&q()===0},B=function(){return u()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},t=function(){p.value||_.Rp(new _.C$("Thumbnail elRef.value is null",H.join("\n")));
Q&&p.value&&Q(p.value)},D=function(){var e,n;
return((e=G.hovered)==null?void 0:e.call(G))&&Z()!=="large"&&((n=G.data().overlays)==null?void 0:n.some(function(c){return _.X(c,egT)}))},d={};
return _.J("yt-thumbnail-view-model",{class:_.bb("ytThumbnailViewModelHost",G.className,function(){return cF3(q())},function(){var e,n;
a:{var c=Z(),W=(e=G.disableRounding)==null?void 0:e.call(G);e=(n=G.isClip)==null?void 0:n.call(G);if(!W&&!e)switch(c){case "large":n="ytThumbnailViewModelLarge";break a;case "small":n="ytThumbnailViewModelSmall";break a;default:n="ytThumbnailViewModelMedium";break a}n=void 0}return n},(d.ytThumbnailViewModelCinematic=u,d)),
style:_.pI({"background-color":function(){var e,n=u()?(e=G.data().backgroundColor)==null?void 0:e.lightTheme:void 0;return n?Tz(n,"1"):void 0}}),
el:p},_.J(_.k,{cond:u,then:function(){return _.J("div",{class:"ytThumbnailViewModelBlurredImage"},_.J(_.ib,{data:function(){return G.data().image},
alt:"",contentMode:B,targetWidth:G.width,onload:t}))}}),_.J("div",{class:"ytThumbnailViewModelImage"},_.J(_.ib,{data:function(){return G.data().image},
alt:"",contentMode:B,targetWidth:G.width,onload:t}),null),_.J(_.SP,{data:function(){return D()?void 0:G.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:$N4,thumbnailOverlayBadgeViewModel:function(e){return _.J(_.XC2,{data:e.data,thumbnailSize:Z,isClip:G.isClip})},
thumbnailBottomOverlayViewModel:function(e){return _.J(dNa,{data:e.data,thumbnailSize:Z,isClip:G.isClip})},
thumbnailOverlayFullViewModel:dkw,thumbnailOverlayButtonViewModel:function(e){return _.J(_.klx,{data:e.data,lockupExperiments:G.lockupExperiments})},
channelDisclosureViewModel:function(e){e=e.data;var n;return _.J("div",null,(n=_.tp().resolve(_.Jp(uK_)))==null?void 0:n({data:e}))}}),_.J(_.SP,{data:function(){var e;
return((e=G.hovered)==null?0:e.call(G))?G.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(e){return _.J(or,{data:e.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Dkd}),_.J(_.SP,{data:function(){var e;return((e=G.hovered)==null?0:e.call(G))&&l()?G.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:tqw}),_.J(_.k,{cond:G.isClip,then:function(){return _.J("div",{class:"ytPinkingNsHost"},_.J("svg",{class:"ytPinkingNsPinkingLeft"},_.J("defs",null,_.J("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.J("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.J("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.J("svg",{class:"ytPinkingNsPinkingRight"},_.J("defs",null,_.J("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.J("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.J("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"jb");
_.So.idomCompat={callbacks:{playbackRef:!0}};var n0a=_.y(function(G){var H=_.I(_.Ty(-1,void 0,"RW2Ole")),Z=H.next().value,Q=H.next().value;_.mR(function(){var p=new g0a(Q);Skw(p,G.data().thumbnails.length);_.oM(function(){if(p.isSlideshowPlaying){p.isSlideshowPlaying=!1;for(var l=p.jobIds,q=0,u=l.length;q<u;q++)_.Ui.cancelJob(l[q]);p.jobIds.length=0}})});
return _.J("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.J(_.SP,{data:function(){return G.data().thumbnails}},{thumbnailViewModel:function(p,l){return _.J("div",{class:function(){var q=!G.data().primaryThumbnail,u=l(),B=Z(),t=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
q&&u===0&&t.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");u<=B&&t.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return t.join(" ")}},_.J(_.So,{data:p.data,
disableRounding:G.disableRounding}))}}))},"kb");
n0a.idomCompat=!0;var T9j=new _.Gv("DWELL_DETECTOR_REGISTRY_TOKEN");var $kx=_.y(function(G){var H=fXR(G.triggeringElement),Z=function(){return!!G.data().primaryThumbnail},Q=function(){var l,q=(l=G.data())==null?void 0:l.maxHeight,u;
l=(u=G.maxHeight)==null?void 0:u.call(G);return q!=null&&l!=null?Math.min(q,l):l!=null?l:q},p=function(){var l=Q();
if(l){var q;if(Z()&&(q=G.includeStackHeight)!=null&&q.call(G)){var u;q=((u=G.doubleStack)==null?0:u.call(G))?8:4}else q=0;l=l-q-1;if(!(l<0)){u=Math;q=u.ceil;var B,t;var D=OPR((t=(B=G.aspectRatio)==null?void 0:B.call(G))!=null?t:0);return q.call(u,l*D)}}};
return _.J("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.pI({height:function(){return Q()?Q()+"px":void 0},
width:function(){return p()?p()+"px":void 0}})},_.J(VqN,{stackEnabled:Z,
thumbnailSize:function(){var l,q;return amf((l=G.width)==null?void 0:l.call(G),(q=G.height)==null?void 0:q.call(G))},
doubleStack:G.doubleStack,stackColor:function(){return G.data().stackColor},
includeStackHeight:G.includeStackHeight},_.J(_.SP,{data:function(){return G.data().primaryThumbnail}},{thumbnailViewModel:function(l){var q={};
return _.J(_.So,{data:l.data,width:G.width,height:G.height,aspectRatio:G.aspectRatio,disableRounding:G.disableRounding,className:_.bb((q.ytCollectionThumbnailViewModelHostHasStacks=Z,q)),hovered:G.hovered,playbackRef:G.playbackRef})}}),_.J(_.k,{cond:function(){var l;
return H()&&((l=G.data().thumbnails)==null?void 0:l.length)},
then:function(){return _.J("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.J(n0a,{data:G.data,disableRounding:function(){return!Z()}}))}})))},"lb");
$kx.idomCompat={callbacks:{playbackRef:!0}};
var VqN=_.y(function(G){var H=G.children;var Z=G.stackEnabled;var Q=G.thumbnailSize;var p=G.doubleStack;var l=G.stackColor;var q=G.includeStackHeight;var u,B=(u=_.tp().resolve(_.Jp(_.rr)))==null?void 0:u();return _.J(_.k,{cond:Z,then:function(){return _.J(AFd,{data:function(){var t,D;return{experimentEnabled:!0,thumbnailSize:Q(),doubleStack:p==null?void 0:p(),color:B?l==null?void 0:(t=l())==null?void 0:t.darkTheme:l==null?void 0:(D=l())==null?void 0:D.lightTheme,enableResponsiveMode:!1,includeStackHeight:q==
null?void 0:q()}}},H)},
else:function(){return H}})},"mb");var Xu4=new _.Gv("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Bb;_.ux={calledOnce:!0,state:"visible"};Bb={calledOnce:!0,state:"hidden"};_.Jz=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;var Q=G.className;var p=G.delayedClassName;var l=G.animationEntityKey;var q=G.isCompactWidth;var u=G.isContentWidth;G=_.I(_.Ty(!1,void 0,"pC3tUb"));var B=G.next().value,t=G.next().value,D=_.yy(l,""),d=_.gu(VZM,D),e=function(){var e2,$R;return($R=(e2=d())==null?void 0:e2.value)!=null?$R:!1},n=function(){_.aK(_.uP("booleanEntity",D(),{key:D(),
value:!0}));R=void 0};
l=_.I(_.QF(e));var c=l.next().value,W=l.next().value;l=_.I(_.QF(e));var M=l.next().value,r=l.next().value;l=_.I(_.QF(function(){var e2;return e()?(e2=H().styleTransitionConfig)==null?void 0:e2.destinationStyle:void 0}));
var w=l.next().value,x=l.next().value,U=function(){var e2=Object.assign({},H(),w()&&{style:w()});var $R,ie,W3=e2.label,DT=($R=e2.interaction)==null?void 0:(ie=$R.accessibility)==null?void 0:ie.label;$R=e2.iconImage?e2.label&&e2.label.content?e2.iconLeading?"leading":"trailing":"icon-only":void 0;e2={formattedButtonText:W3,accessibilityLabel:DT,style:KCU(e2.style),type:Mmu(e2.style),state:"active",size:zaM(e2.size),iconPosition:$R,disabled:!1,aTagConfig:WCU(e2,Z)};_.V("enable_desktop_vdcbg_components")&&
(e2.focused=B());return e2},R;
l=_.tk({visibilityCallback:function(e2){var $R,ie=($R=H().interaction)==null?void 0:$R.onFirstVisible;e2&&ie&&_.zt(ie)},
showOption:_.ux});var L=function(){return xD3(U(),!!H().iconImage)};
G={};var H3={};Q=_.bb(function(){return"ytwAdButtonViewModelHost"},function(){return H().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var e2=!!H().delayedAppearanceConfig,$R=c();
return e2?$R?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var e2=!!H().delayedAppearanceConfig,$R=M();
return e2?$R?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!H().delayedAppearanceConfig||c()?p==null?void 0:p():""},(G.ytwAdButtonViewModelHostCompactWidth=function(){return q==null?void 0:q()},G),(H3.ytwAdButtonViewModelHostContentWidth=function(){return u==null?void 0:u()},H3),Q!=null?Q:"");
var qX=function(){var e2,$R=(e2=H().delayedAppearanceConfig)==null?void 0:e2.delayedInvisibleSeconds;$R&&(R=_.JW(_.Ui,function(){W(!0);B3()},$R*1E3))},B3=function(){var e2,$R=(e2=H().delayedAppearanceConfig)==null?void 0:e2.delayedVisibleSeconds;
$R&&(R=_.JW(_.Ui,function(){r(!0);fW()},$R*1E3))},fW=function(){var e2,$R=(e2=H().styleTransitionConfig)==null?void 0:e2.styleTransitionSeconds,ie,W3=(ie=H().styleTransitionConfig)==null?void 0:ie.destinationStyle;
$R&&W3?R=_.JW(_.Ui,function(){x(W3);n()},$R*1E3):n()};
_.mR(function(){qX()});
_.oM(function(){R&&_.Ui.cancelJob(R)});
return _.J("ad-button-view-model",{"on:focusin":_.Hh(_.V("enable_desktop_vdcbg_components")?function(){var e2=_.tp().resolve(_.Jp(_.qZ));e2&&t(e2.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Hh(_.V("enable_desktop_vdcbg_components")?function(){t(!1);return!1}:void 0),
class:Q,el:_.aX(l),style:_.pI({"transition-duration":"0.3s"})},_.J(_.k,{cond:U,then:function(){return _.J(_.tf,{data:U,icon:function(){return _.J(_.k,{cond:function(){return H().iconImage},
then:function(e2){return _.J(_.ib,{data:e2,alt:"",targetWidth:L,targetHeight:L,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ob");var cEG=_.y(function(G){var H=G.data;G=function(){return H().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var Z=_.tk({visibilityCallback:function(l){var q,u=(q=H().interaction)==null?void 0:q.onFirstVisible;l&&u&&_.zt(u)},
showOption:_.ux}),Q={},p={};return _.J("ad-button-group-view-model",{class:_.bb("ytwAdButtonGroupViewModelHost",(Q.ytwAdButtonGroupViewModelHostCompactWidth=G,Q)),el:_.aX(Z)},_.J("div",{class:_.bb("ytwAdButtonGroupViewModelHostSecondaryButton",(p.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=G,p))},_.J(_.SP,{data:function(){return H().secondaryAdButton}},{adButtonViewModel:function(l){return _.J(_.Jz,{data:l.data})}})),_.J("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.J(_.SP,
{data:function(){return H().primaryAdButton}},{adButtonViewModel:function(l){return _.J(_.Jz,{data:l.data})}})))},"pb");var TEw=_.y(function(G){var H=function(){var Z;return((Z=G.data())==null?void 0:Z.answers)||[]};
return _.J("yt-survey-icons",{class:"ytSurveyIconsHost"},_.J("div",{class:"ytSurveyIconsHeader"},_.J("div",{class:"ytSurveyIconsTitle"},function(){var Z;return(Z=G.data())==null?void 0:Z.text}),_.J("div",null,_.J(_.tf,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var Z;(Z=G.onDismiss)==null||Z.call(G)}}},
iconName:"DISMISSAL"}))),_.J("div",null,_.J("div",{class:"ytSurveyIconsAnswers"},_.J(_.Cl,{each:function(){return H()},
keyBy:"INDEX"},function(Z,Q){return _.J("div",null,_.J(_.tf,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var p;(p=G.onSelect)==null||p.call(G,Z(),Q)}}},
icon:function(){return _.J(_.ll,{icon:function(){var p,l;return(p=Z())==null?void 0:(l=p.icon)==null?void 0:l.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.J("div",{class:"ytSurveyIconsAnswersText"},_.J("div",null,function(){return H().length?H()[0].text:""}),_.J("div",null,function(){return H().length?H()[H().length-1].text:""}))))},"qb");var f4w=_.y(function(G){var H=_.aX(_.$X(function(){var B;return(B=G.data())==null?void 0:B.rendererContext},void 0,void 0,void 0,!0)),Z=_.I(_.Ty(!1,void 0,"GW0yjf")),Q=Z.next().value,p=Z.next().value,l=_.gu(Xav,function(){var B;
return(B=G.data().keys)==null?void 0:B.surveyEntityKey}),q=_.gu(cxj,function(){var B;
return(B=G.data().keys)==null?void 0:B.surveyStateEntityKey});
_.gN("ytd-slimline-survey-show-action",function(){p(!1)});
var u=function(){var B,t;var D=(B=q())==null?void 0:(t=B.questionStack)==null?void 0:t[0];if(D!==void 0){var d,e;return(d=l())==null?void 0:(e=d.questions)==null?void 0:e[D]}};
Z={};return _.J("yt-slimline-survey-view-model",{el:H,class:_.bb("ytSlimlineSurveyViewModelHost",(Z.ytSlimlineSurveyViewModelCollapsed=function(){return Q()},Z))},_.J("div",{class:"ytSlimlineSurveyViewModelContainer"},_.J(_.k,{cond:function(){var B;
return((B=u())==null?void 0:B.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.J(TEw,{data:function(){return u()},
onSelect:function(B,t){var D,d;return _.S(function(e){p(!0);if(d=(D=G.data())==null?void 0:D.onSelectRating)_.zt(d),_.aK(EcN(t));_.K0(e)})},
onDismiss:function(){p(!0);var B;var t=(B=l())==null?void 0:B.dismissalFeedbackToken;B=t?{feedbackEndpoint:{feedbackToken:t}}:void 0;B&&_.fX(B,{form:{element:H.value}})}})}})))},"rb");var v0T=_.y(function(G){return _.J("yt-table-view-model",{class:_.bb("ytTableViewModelHost",G.className)},_.J(_.Cl,{each:function(){return G.data().rows||[]}},function(H){var Z={};
return _.J("div",{class:_.bb("ytTableViewModelRow",(Z.ytTableViewModelRowBottomBorder=function(){return G.data().showSeparators},Z))},_.J(_.Cl,{each:function(){return(H==null?void 0:H.cells)||[]}},function(Q,p){var l,q={};
return _.J("span",{class:_.bb((q.ytTableViewModelRowLabel=function(){return p()===0&&G.data().showHorizontalHeaders},q.ytTableViewModelCell=function(){return!G.data().showHorizontalHeaders||p()>0},q))},(l=Q.text)==null?void 0:l.content)}))}))},"sb");var WQT=_.y(function(G){return _.J("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.J(_.SP,{data:function(){var H;return(H=G.data())==null?void 0:H.attachments}},{flexibleActionsViewModel:function(H){return _.J("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.J(_.RP,{data:H.data,
layout:function(){var Z;return((Z=G.lockupStyle())==null?void 0:Z.arrangement)===1?0:1},
justifyContentOverride:function(){var Z;return((Z=G.lockupStyle())==null?void 0:Z.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(H){return _.J("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.J(f4w,{data:H.data}))},
expandableMetadataViewModel:function(H){H=H.data;var Z;return _.J("div",{class:_.bb("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(Z=_.tp().resolve(_.Jp(Xu4)))==null?void 0:Z({data:H}))},
adButtonGroupViewModel:function(H){return _.J("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.J(cEG,{data:H.data}))},
adButtonViewModel:function(H){return _.J("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.J(_.Jz,{data:H.data,isCompactWidth:!0}))},
tableViewModel:function(H){return _.J("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.J(v0T,{data:H.data}))},
aiCompanionAttachmentViewModel:function(H){H=H.data;var Z;return _.J("div",{class:"ytLockupAttachmentsViewModelAttachment"},(Z=_.tp().resolve(_.Jp(BEx)))==null?void 0:Z({data:H}))}}))},"tb");var C9e=_.eA("rich_grid_min_item_width",310),wBe=_.eA("rich_grid_max_item_width",500);var zV7=_.y(function(G){var H=G.data;return _.J("br-nz-badge-shape",{class:_.bb(function(){return Rav(H().brNzRatingBadgeType)}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},function(){var Z;
return(Z=H())==null?void 0:Z.text})},"ub");_.tz=_.y(function(G){var H=function(){var Z=G.data(),Q,p,l;if(Z){var q=!((Q=G.workaroundShortsIsThumbnailBadge)==null||!Q.call(G));Q=(p=G.modern)==null?void 0:p.call(G);p=(l=G.numBadgesInRow)==null?void 0:l.call(G);var u;a:switch(Z.badgeStyle){case "BADGE_OVERLAY":l=!0;break a;default:l=!1}Z={type:q?17:N9u(Z.badgeStyle),brNzRatingBadgeType:AF3(Z.badgeStyle),text:Z.badgeText,icon:Z.iconName,isOverlay:l,modern:Q||_.V("web_modern_badge_view_model"),accessibilityText:Z.accessibilityLabel||((u=_.X(Z.rendererContext,
_.qc))==null?void 0:u.label),numBadgesInRow:p}}else Z=void 0;return Z};
return _.J("yt-badge-view-model",{class:_.bb("ytBadgeViewModelHost",G.class)},_.J(_.iW,null,_.J(_.wO,{when:function(){var Z;return!((Z=H())==null||!Z.brNzRatingBadgeType)}},function(){return _.J(zV7,{data:function(){return H()}})}),_.J(_.wO,{when:function(){return!!H()&&!H().brNzRatingBadgeType}},function(){return _.J(_.LB,{data:function(){return H()}})})))},"vb");
_.tz.idomCompat=!0;var LCj,xS2;LCj=16/9;xS2=2/3;_.kz=_.y(function(G){var H=G.data;var Z=G.className;var Q=G.imageSizeConfig;var p=G.notifyOnLoaded;var l=function(){return H().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},q=function(){var e;
return _.Vt((e=H())==null?void 0:e.rendererContext)};
G={};G=(G.ytContentPreviewImageViewModelHost=!0,G.ytContentPreviewImageViewModelCircleImage=function(){return l()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},G.ytContentPreviewImageViewModelTappable=function(){return q()},G);
var u=function(){var e,n;return(n=(e=_.X(H().rendererContext,_.qc))==null?void 0:e.label)!=null?n:""},B=function(){return Yub(H())},t=function(){var e=EoX(l(),H().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",Q==null?void 0:Q(),FCX(B()),H().layoutWidth,H().layoutHeight),n=Object.assign({},e);
e.width&&(n.width=Math.round(e.width));e.height&&(n.height=Math.round(e.height));e.maxWidth&&(n.maxWidth=Math.round(e.maxWidth));e.maxHeight&&(n.maxHeight=Math.round(e.maxHeight));return n},D=_.Kb(function(){return t().height},void 0,"CxFlJb"),d=_.Kb(function(){return t().width},void 0,"lb8Jhd");
return _.J("yt-content-preview-image-view-model",{el:_.aX(_.$X(function(){var e;return(e=H())==null?void 0:e.rendererContext})),
role:function(){return q()?"link":void 0},
tabindex:function(){return q()?0:void 0},
class:_.bb(Z,G,function(){var e=l();var n=Q==null?void 0:Q();e=e==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||e==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||e==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||e==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(n==null?void 0:n.size)!=null&&n.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(n==null?void 0:n.size)!=null&&n.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return e}),
style:function(){var e=t(),n=[];e.width&&n.push("width: "+e.width+"px");e.height&&n.push("height: "+e.height+"px");e.maxWidth&&n.push("max-width: "+e.maxWidth+"px");e.maxHeight&&n.push("max-height: "+e.maxHeight+"px");e.fullWidth&&n.push("width: 100%");return n.join(";")}},_.J(_.k,{cond:B,
then:function(e){return _.J(_.ib,{data:e,alt:u,"data-disabled$":function(){return!u()},
notifyOnLoaded:p,targetWidth:d,targetHeight:D,preserveWidth:function(){return!!d()},
preserveHeight:function(){return!!D()}})}}),_.J(_.SP,{data:function(){var e;
return(e=H())==null?void 0:e.overlays}},{thumbnailHoverOverlayViewModel:or,
thumbnailOverlayButtonViewModel:_.klx}))},"wb");
_.kz.idomCompat=!0;var DF=_.y(function(G){var H=G.data;var Z=G.className;var Q=G.useSmallLayout;var p=G.useMediumText;G=G.useHeavyText;var l={};return _.J("yt-attribution-view-model",{el:_.aX(_.$X(function(){var q;return(q=H())==null?void 0:q.rendererContext})),
class:_.bb(Z,(l.ytAttributionViewModelHost=!0,l.ytAttributionViewModelMediumText=p,l.ytAttributionViewModelHeavyText=G,l))},_.J(_.k,{cond:function(){return _.Vt(H().rendererContext)},
then:function(){return _.J("button",{class:"ytAttributionViewModelTappable"},_.J(KQw,{data:H,useSmallLayout:Q}))},
else:function(){return _.J(KQw,{data:H,useSmallLayout:Q})}}))},"xb"),KQw=_.y(function(G){var H=G.data;
var Z=G.useSmallLayout;var Q=function(){return{size:(Z==null?0:Z())?16:24}};
return _.J(_.kI,null,_.J(_.SP,{data:function(){return H().contentPreviewImage}},{contentPreviewImageViewModel:function(p){return _.J(_.kz,{data:p.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:Q})}}),_.J(_.SP,{data:function(){return H().badge}},{badgeViewModel:function(p){return _.J(_.tz,{data:p.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.J(_.k,{cond:function(){return H().text},
then:function(){return _.J(_.Fe,{text:function(){return H().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.J(_.k,{cond:function(){return H().suffix},
then:function(){return _.J(_.Fe,{text:function(){return H().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"yb");
DF.idomCompat=!0;var MqN,jRd,Pwa,rE2,wua;MqN=_.y(function(G){var H=G.delimiter;var Z=G.max;var Q=G.index;var p=G.isStandalone;return _.J(_.k,{cond:function(){return Z()-1>Q()},
then:function(){var l={};return _.J("span",{class:_.bb("yt-content-metadata-view-model__delimiter",(l["yt-content-metadata-view-model__delimiter--standalone"]=p,l)),"aria-hidden":!0},H)}})},"zb");
jRd=_.y(function(G){var H=G.metadataPart;var Z=G.maxLines;return _.J(_.Fe,{text:function(){return H().text},
linkInheritColor:!0,className:function(){return bU2(Z())},
userInput:!0})},"Ab");
Pwa=_.y(function(G){var H=G.metadataPart;var Z=G.maxLines;return _.J(_.k,{cond:function(){return H().tooltip},
then:function(Q){return _.J("span",{title:Q,role:"tooltip"},_.J(jRd,{metadataPart:H,maxLines:Z}))},
else:function(){return _.J(jRd,{metadataPart:H,maxLines:Z})}})},"Bb");
rE2=_.y(function(G){var H=G.metadataPart;var Z=G.isOverlay;var Q=G.useMediumText;var p=G.hideAvatar;var l=function(){return H().maxLines!==void 0?H().maxLines:1};
return _.J(_.kI,null,_.J(_.SP,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(q){return _.J(_.Rr,{data:q.data,
isOverlay:Z,useMediumText:Q,hideAvatar:p})},
badgeViewModel:_.tz}),_.J(_.k,{cond:function(){return H().leadingIcon},
then:function(q){return _.J(_.ll,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return q().name},
size:function(){return q().width}})}}),_.J(_.k,{cond:function(){return H().text},
then:function(){return _.J(Pwa,{metadataPart:H,maxLines:l})}}),_.J(_.k,{cond:function(){return H().icon},
then:function(q){return _.J(_.ll,{className:"yt-content-metadata-view-model__icon",icon:function(){return q().name},
size:function(){return q().width}})}}))},"Cb");
wua=_.y(function(G){var H=G.metadataRow;var Z=G.isInline;var Q=G.delimiter;var p=G.isOverlay;var l=G.useMediumText;var q=G.extensions;var u=function(){var t,D=q==null?void 0:(t=q())==null?void 0:t.lockupMetadata;t=H();var d,e;return!!((D==null?0:(d=D.byline)==null?0:d.hideAvatar)&&((e=_.X(t,S5w))==null?void 0:e.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},B=function(){return H().metadataParts||[]};
G={};return _.J("div",{class:_.bb("yt-content-metadata-view-model__metadata-row",(G["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=Z,G["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var t,D=q==null?void 0:(t=q())==null?void 0:t.lockupMetadata;t=H();var d,e;return!!((D==null?0:(d=D.byline)==null?0:d.addPadding)&&((e=_.X(t,S5w))==null?void 0:e.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},G["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var t;
return!!(q==null?0:(t=q())==null?0:t.lockupMetadata)&&H().badges&&!H().metadataParts},G))},_.J(_.SP,{data:function(){return H().badges}},{badgeViewModel:function(t){return _.J("div",{class:"yt-content-metadata-view-model__badge"},_.J(_.tz,{data:t.data,
numBadgesInRow:function(){var D,d;return((D=H())==null?void 0:(d=D.badges)==null?void 0:d.length)||0}}))}}),_.J(_.Cl,{each:B},function(t,D){return _.J(_.kI,null,_.J(rE2,{metadataPart:t,
isOverlay:p,useMediumText:l,hideAvatar:u}),_.J(MqN,{delimiter:Q,max:function(){return B().length},
index:D,isStandalone:!1}))}),_.J(_.k,{cond:function(){return H().isSpacerRow&&!Z()},
then:function(){return _.J("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Db");
_.dB=_.y(function(G){G=_.oK(G,{layout:0,isOverlay:!1});var H=G.data,Z=G.layout,Q=G.isOverlay,p=G.useMediumText,l=G.extensions,q=function(){return Z()===0},u=function(){var t;
return((t=H().metadataRows)==null?void 0:t.filter(function(D){var d,e=l==null?void 0:(d=l())==null?void 0:d.lockupMetadata,n,c;d=!!((e==null?0:(n=e.description)==null?0:n.hideDescription)&&((c=_.X(D,S5w))==null?void 0:c.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var W,M;return!((e==null?0:(W=e.spacer)==null?0:W.hideSpacer)&&((M=_.X(D,S5w))==null?void 0:M.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||d)}))||[]},B={};
return _.J("yt-content-metadata-view-model",{class:_.bb(G.className,"yt-content-metadata-view-model",(B["yt-content-metadata-view-model--inline"]=q,B["yt-content-metadata-view-model--tappable"]=function(){return _.Vt(H().rendererContext)},B["yt-content-metadata-view-model--medium-text"]=p,B)),
el:_.aX(_.$X(function(){return H().rendererContext}))},_.J(_.Cl,{each:u},function(t,D){return _.J(_.kI,null,_.J(wua,{metadataRow:t,
isInline:q,delimiter:function(){return H().delimiter},
isOverlay:Q,useMediumText:p,extensions:l}),_.J(_.k,{cond:function(){return q()&&!t.isSpacerRow},
then:function(){return _.J(MqN,{delimiter:function(){return H().delimiter},
max:function(){return u().length},
index:D,isStandalone:!0})}}))}))},"Eb");
_.dB.idomCompat=!0;var hVt=_.y(function(G){var H=_.tp().resolve(_.Jp(_.rr)),Z={};return _.J("yt-lockup-metadata-view-model",{class:_.bb("yt-lockup-metadata-view-model",function(){a:{var Q=G.lockupStyle();if(Q==null?0:Q.isOverlay)Q="yt-lockup-metadata-view-model--overlay";else switch(Q==null?void 0:Q.arrangement){case 1:Q="yt-lockup-metadata-view-model--horizontal";break a;default:Q="yt-lockup-metadata-view-model--vertical"}}return Q},function(){a:{var Q=G.lockupStyle();
switch(Q==null?void 0:Q.titleMaxLines){case 1:Q="yt-lockup-metadata-view-model--title-max-lines-1";break a}Q=void 0}return Q},function(){a:{var Q=G.lockupStyle();
if(Q==null?0:Q.isTiny)Q="yt-lockup-metadata-view-model--tiny";else switch(Q==null?void 0:Q.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":Q="yt-lockup-metadata-view-model--compact";break a;default:Q="yt-lockup-metadata-view-model--standard"}}return Q},(Z["yt-lockup-metadata-view-model--overlay"]=function(){var Q;
return(Q=G.lockupStyle())==null?void 0:Q.isOverlay},Z["yt-lockup-metadata-view-model--card"]=function(){var Q;
return(Q=G.lockupStyle())==null?void 0:Q.isCard},Z["yt-lockup-metadata-view-model--centered"]=function(){var Q;
return(Q=G.lockupStyle())==null?void 0:Q.isCentered},Z["yt-lockup-metadata-view-model--typography-bump"]=function(){var Q;
return(Q=G.lockupStyle())==null?void 0:Q.typographyBump},Z["yt-lockup-metadata-view-model--legacy-typography"]=function(){var Q;
return(Q=G.lockupStyle())==null?void 0:Q.useLegacyTypography},Z["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var Q;
return(Q=G.lockupStyle())==null?void 0:Q.useRichGridLegacyTypography},Z))},_.J(_.SP,{data:function(){return G.data().image}},{avatarStackViewModel:function(Q){return _.J("div",{class:"yt-lockup-metadata-view-model__avatar"},_.J(_.Rr,{data:Q.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(Q){return _.J("div",{class:"yt-lockup-metadata-view-model__avatar"},_.J(_.m9,{data:Q.data}))},
decoratedAvatarViewModel:function(Q){return _.J("div",{class:"yt-lockup-metadata-view-model__avatar"},_.J(_.U5,{data:Q.data}))}}),_.J("div",{class:"yt-lockup-metadata-view-model__text-container"},_.J("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var Q;return(Q=G.data().title)==null?void 0:Q.content}},_.J(_.k,{cond:function(){return G.data().title},
then:function(Q){return _.J(_.S8,{command:G.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.pI({color:function(){var p;a:{var l=G.lockupStyle();var q=(p=G.hovered)==null?void 0:p.call(G);p=!(H==null||!H());var u;if((l==null?0:(u=l.onFocusEffect)==null?0:u.textPrimaryColor)&&q&&(l=p?l.onFocusEffect.textPrimaryColor.darkTheme:l.onFocusEffect.textPrimaryColor.lightTheme)){l=f3(l);break a}l=void 0}return l}}),
ariaLabel:G.lockupAccessibilityLabel},_.J(_.Fe,{text:Q,userInput:!0}))}})),_.J("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.pI({color:function(){var Q;a:{var p=G.lockupStyle();var l=(Q=G.hovered)==null?void 0:Q.call(G);Q=!(H==null||!H());var q;if((p==null?0:(q=p.onFocusEffect)==null?0:q.textSecondaryColor)&&l&&(p=Q?p.onFocusEffect.textSecondaryColor.darkTheme:p.onFocusEffect.textSecondaryColor.lightTheme)){p=f3(p);break a}p=void 0}return p}})},_.J(_.SP,{data:function(){return G.data().metadata}},{contentMetadataViewModel:function(Q){return _.J(_.dB,{data:Q.data,
layout:function(){var p,l;return(l=(p=G.layout)==null?void 0:p.call(G))!=null?l:1},
useMediumText:function(){var p,l;return((p=G.lockupStyle())==null?void 0:p.typographyBump)||((l=G.lockupStyle())==null?void 0:l.useRichGridLegacyTypography)},
extensions:function(){var p,l,q,u;return{lockupMetadata:{byline:{hideAvatar:((p=G.lockupStyle())==null?void 0:p.arrangement)===0,addPadding:((l=G.lockupStyle())==null?void 0:l.arrangement)===1},description:{hideDescription:!((q=G.lockupStyle())==null||!q.compactMetadata)},spacer:{hideSpacer:!((u=G.lockupStyle())==null||!u.compactMetadata)}}}}})}})),_.J(_.SP,{data:function(){return G.data().attribution}},{attributionViewModel:function(Q){return _.J("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.J(DF,{data:Q.data,
useSmallLayout:!0}))}})),_.J("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.J(_.SP,{data:function(){return G.data().menuButton}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
buttonOverrides:function(){var p;return((p=G.lockupStyle())==null?0:p.isOverlay)?{style:"overlay"}:void 0}})}})))},"Fb");
hVt.idomCompat=!0;var Cwp=_.y(function(G){var H=_.IA("notification-multi-action-renderer");_.yP(function(){requestAnimationFrame(function(){_.lc(H.value)})});
var Z={},Q={},p={};return _.J("notification-multi-action-renderer",{class:_.bb("ytNotificationMultiActionRendererHost",(Z.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var l;return(l=G.useLegacyShelfStyle)==null?void 0:l.call(G)},Z)),
el:H},_.J("span",{"aria-live":"polite",class:_.bb("ytNotificationMultiActionRendererTextContainer",(Q.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var l;return(l=G.useLegacyShelfStyle)==null?void 0:l.call(G)},Q))},_.J(_.Fe,{text:function(){return G.data().responseText}})),_.J("div",{class:_.bb("ytNotificationMultiActionRendererButtonContainer",(p.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var l;
return(l=G.useLegacyShelfStyle)==null?void 0:l.call(G)},p))},_.J(_.SP,{data:function(){var l;
return(l=G.data().buttons)==null?void 0:l.map(function(q){if(q=q.buttonRenderer){var u,B=Object,t=B.assign,D=(u=q.icon)==null?void 0:u.iconType;u=(u=q.command||q.serviceEndpoint||q.navigationEndpoint)?{innertubeCommand:u}:void 0;q={buttonViewModel:t.call(B,{},{iconName:D,onTap:u,trackingParams:q.trackingParams,titleFormatted:q.text?_.Vw(q.text):void 0},Hfe(q))}}else q=void 0;return q}).filter(function(q){return!!q})}},{buttonViewModel:function(l,q){return _.J("div",null,_.J(_.kg,{data:l.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var u;return((u=G.useModernStyles)==null?0:u.call(G))?{type:q()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Hb");var iaG=_.y(function(G){var H=_.IA("notification-text-renderer");_.yP(function(){requestAnimationFrame(function(){_.lc(H.value)})});
return _.J("notification-text-renderer",{el:H,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.J(_.Fe,{text:function(){return G.data().successResponseText}}))},"Jb");_.eo=_.y(function(G){var H=_.gu(Smj,function(){var Q;return s7f((Q=G.contentId)==null?void 0:Q.call(G))}),Z=function(){var Q;
return _.X((Q=H())==null?void 0:Q.command,_.zm)};
return _.J(_.k,{cond:function(){var Q;if(!(Q=Z())){var p;Q=_.X((p=H())==null?void 0:p.command,cAp)}return Q},
then:function(){return _.J(_.k,{cond:Z,then:function(){var Q={};return _.J("div",{class:_.bb("ytDismissibleItemReplacedContent",function(){var p;return Zfj((p=G.aspectRatio)==null?void 0:p.call(G))})},_.J("div",{class:_.bb((Q.ytDismissibleItemAspectRatioContainer=function(){var p;
return((p=G.aspectRatio)==null?void 0:p.call(G))!==void 0},Q))},_.J(_.SP,{data:function(){var p;
return(p=Z())==null?void 0:p.item}},{notificationMultiActionRenderer:function(p){return _.J(Cwp,{data:p.data,
useModernStyles:G.useModernStyle,useLegacyShelfStyle:G.useLegacyShelfStyle})},
notificationTextRenderer:iaG})))}})},
else:G.children})},"Kb");_.Oaw=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;G=_.aX(_.tk({visibilityCallback:function(l){var q,u=(q=H().interaction)==null?void 0:q.onFirstVisible;l&&u&&_.zt(u)},
showOption:_.ux}));var Q=function(){var l;return((l=H().interaction)==null?0:l.onTap)?function(q){var u;vof(q,(u=H().interaction)==null?void 0:u.onTap,Z)}:void 0},p=function(){var l,q=H(),u=Q(),B=(l=_.X(H().rendererContext,_.qc))==null?void 0:l.label;
a:switch(q.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":l=1;break a;default:l=0}return{size:lLb(q.size),type:l,onTap:u,accessibilityText:B}};
return _.J("ad-avatar-view-model",{class:function(){var l;return((l=H().interaction)==null?0:l.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:G},_.J(_.k,{cond:function(){return H().image},
then:function(l){return _.J(VCw,{data:p,image:l})}}))},"Lb");_.nJ=_.y(function(G){var H=_.oK(G,{hasDot:!1,usedInMasthead:!1}),Z=Object.assign({},H),Q=H.data,p=H.hasDot;G=H.customCommandResolver;var l=H.usedInMasthead,q=(delete Z.data,delete Z.hasDot,delete Z.customCommandResolver,delete Z.usedInMasthead,Z);H=function(){return Q().style};
H!==void 0&&H!==null||_.HU(Error("Hh"));G=_.fG(function(){return Q().interaction},G);
return _.J("ad-badge-view-model",{class:_.bb(function(){var u;return((u=Q().interaction)==null?0:u.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var u=q.adRenderingContextType(),B=l();
Q();return u!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||B?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.aX(G)},_.J(_.LB,{data:function(){var u;Q();return{type:2,text:(u=Q().label)==null?void 0:u.content,adsIncludeDot:p(),isOverlay:Q().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Mb");var a44;_.VH=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;var Q=G.adRenderingContextType;return _.J("ad-details-line-view-model",{class:function(){var p;return((p=H().interaction)==null?0:p.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.aX(_.tk({visibilityCallback:function(p){var l,q=(l=H().interaction)==null?void 0:l.onFirstVisible;p&&q&&_.zt(q)},
showOption:_.ux}),_.fG(function(){return H().interaction},Z))},_.J(_.k,{cond:function(){return H().style},
then:function(p){return _.J(_.Cl,{each:function(){var l;return((l=H())==null?void 0:l.attributes)||[]},
keyBy:"INDEX"},function(l){return _.J(a44,{attribute:l,style:p,adRenderingContextType:function(){return Q()}})})}}))},"Nb");
a44=_.y(function(G){var H=G.attribute;var Z=G.style;var Q=G.adRenderingContextType;return _.J(_.k,{cond:function(){return H().text},
then:function(p){return _.J(_.Fe,{text:p,className:function(){var l=Q();Z();return l==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ob");var yEw=_.y(function(G){var H=G.data;var Z=G.typographyBump;var Q=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
G={};return _.J(_.kI,null,_.J("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.J(_.Fe,{text:function(){return H().headline},
className:_.bb("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return Q==null?void 0:Q()},G.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(Z==null?void 0:Z())&&!(Q==null?0:Q())},G)),
linkInheritColor:!0}),_.J(_.k,{cond:function(){return H().description},
then:function(p){var l={};return _.J(_.Fe,{text:p,className:_.bb("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(l.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return Q==null?void 0:Q()},l.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(Z==null?void 0:Z())&&!(Q==null?0:Q())},l)),
linkInheritColor:!0})}}),_.J(_.k,{cond:function(){return H().secondaryDescription},
then:function(p){var l={};return _.J(_.Fe,{text:p,className:_.bb("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(l.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return Z==null?void 0:Z()},l)),
linkInheritColor:!0})}}),_.J("div",{class:function(){return Q()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.J(_.k,{cond:function(){return H().adAvatar},
then:function(){return _.J("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.J(_.SP,{data:function(){return H().adAvatar}},{adAvatarViewModel:_.Oaw}))}}),_.J(_.SP,{data:function(){return H().adBadge}},{adBadgeViewModel:function(p){return _.J(_.nJ,{data:p.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.J(_.SP,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(p){return _.J(_.VH,{data:p.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}}))),_.J("div",{class:function(){return Q()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.J(_.SP,{data:function(){return H().menu}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
buttonOverrides:function(){a:switch(H().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var l="S";break a;default:l="M"}return{size:l}}})}})))},"Pb"),o0_=_.y(function(G){var H=G.data;
var Z=G.noBottomMargin;var Q=G.useVideoLockupTopPadding;var p=G.typographyBump;G={};G=_.bb("ytwFeedAdMetadataViewModelHostMetadata",(G.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return Z==null?void 0:Z()},G.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Q==null?void 0:Q()},G));
var l=function(){return H().adBadge};
l!==void 0&&l!==null||_.HU(Error("Ih"));l={};var q={};return _.J(_.kI,null,_.J(_.k,{cond:function(){return H().adAvatar},
then:function(){return _.J("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.J(_.SP,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(u){return _.J(_.Oaw,{data:u.data})}}))}}),_.J("div",{class:G},_.J("div",{class:_.bb("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(l.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return p==null?void 0:p()},l.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(p==
null?void 0:p())&&_.V("web_enable_typography_bump_v2")},l))},_.J(_.Fe,{text:function(){return H().headline},
linkInheritColor:!0})),_.J(_.k,{cond:function(){return H().description},
then:function(u){return _.J(_.Fe,{text:u,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.J("div",{class:function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.V("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.J(_.SP,{data:function(){return H().adBadge}},
{adBadgeViewModel:function(u){return _.J(_.nJ,{data:u.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.J(_.SP,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(u){return _.J(_.VH,{data:u.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}})),_.J(_.k,{cond:function(){return H().secondaryDescription},
then:function(u){return _.J(_.Fe,{text:u,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.J("div",{class:_.bb("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(q.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Q==null?void 0:Q()},q))},_.J(_.SP,{data:function(){return H().menu}},{buttonViewModel:_.kg})))},"Qb"),$z=_.y(function(G){var H=G.data;
var Z=G.noBottomMargin;var Q=G.listenToTapEvent;var p=G.setTouchEndHandler;var l=G.useVideoLockupTopPadding;var q=G.typographyBump;G=_.tk({visibilityCallback:function(d){var e,n=(e=H().interaction)==null?void 0:e.onFirstVisible;d&&n&&_.zt(n)},
showOption:_.ux});var u=_.fG(function(){return H().interaction},void 0,function(){return Q==null?void 0:Q()}),B=_.I(_.Ty(!1,void 0,"a2FSrb")),t=B.next().value,D=B.next().value;
B=_.Hh(function(d){(p==null?0:p())&&!t()&&(d.currentTarget.click(),D(!0),setTimeout(function(){D(!1)},100));
return!1});
return _.J("feed-ad-metadata-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.aX(G,u),"on:touchend":B},_.J(_.iW,null,_.J(_.wO,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.J(yEw,{data:H,
typographyBump:q})}),_.J(_.wO,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.J(o0_,{data:H,
noBottomMargin:Z,useVideoLockupTopPadding:l,typographyBump:q})})))},"Rb");var mka,UkG;mka=_.KG.inlinePreviewEnabledSelector;_.Xf=_.y(function(G){return _.J("yt-lockup-view-model",{class:_.bb(G.className,"yt-lockup-view-model--wrapper")},_.J(_.eo,{contentId:function(){return G.data().contentId},
useModernStyle:!0,aspectRatio:function(){var H,Z;return((H=G.containerType)==null?void 0:H.call(G))!==3?mSX(G.data().contentType,(Z=G.force16By9ThumbnailAspectRatio)==null?void 0:Z.call(G)):void 0}},function(){return _.J(UkG,Object.assign({},G))}))},"Sb");
UkG=_.y(function(G){G=_.oK(G,{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 H=G.data,Z=G.containerLayoutConfig,Q=G.containerType,p=G.sizing,l=G.protectBackground,q=G.typographyBump,u=G.force16By9ThumbnailAspectRatio,B=G.thumbnailFixedWidth,t=G.thumbnailTargetWidth,D=G.lockupExperiments,d=G.elementsPerRow,
e=_.tp().resolve(_.Jp(_.rr));G=_.aX(_.$X(function(){var W3;return(W3=H())==null?void 0:W3.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 n=_.SQ(mka),c=_.tp().resolve(_.Jp(pu4)),W=c?{}:void 0,M=function(){var W3,DT,UR;return(UR=(DT=_.X((W3=H())==null?void 0:W3.rendererContext,_.qc))==null?void 0:DT.label)!=null?UR:void 0},r=function(){var W3;
return(W3=_.X(H().metadata,_.ult))==null?void 0:W3.endorsement},w=function(){var W3=Z==null?void 0:Z(),DT;
if(W3==null?0:W3.containerType){var UR=(DT=H())==null?void 0:DT.contentType;DT=D();var zx=q(),be=t(),J_=l();W3=Object.assign({},USb(OUb(W3),WV(W3.responsiveSize),zx,UR,W3.force16By9ThumbnailAspectRatio,be,J_,DT),{thumbnailFixedWidth:W3.contentPreviewWidth})}else W3=USb(Q(),p(),q(),(UR=H())==null?void 0:UR.contentType,u(),t(),l(),D());return W3};
c&&W&&c({enabled:function(){return n()},
itemPlaybackModel:function(){return H().itemPlayback},
thumbnailElRef:function(){return W.thumbnailElRef},
containerElRef:G,options:function(){var W3=W.thumbnailOverlays||[],DT=r(),UR;!DT||((UR=D())==null?0:UR.onFocusEffect)||W3.push(DT);var zx,be;return{thumbnail:W.thumbnail,thumbnailOverlays:W3,accessibilityText:M(),thumbnailSize:W.thumbnailSize,enableRounding:w().isCollection,containPlayerWithinThumbnail:w().isCollection,mouseleaveCallback:function(){R(!1)},
trackingParams:(zx=_.X(H().rendererContext,_.IX))==null?void 0:(be=zx.loggingDirectives)==null?void 0:be.trackingParams}}});
var x=0;c=_.I(_.Ty(!1,void 0,"YXogPb"));var U=c.next().value,R=c.next().value;c=_.I(_.Ty(!1,void 0,"vgDaqd"));var L=c.next().value,H3=c.next().value;c=_.Hh(function(){L()?(_.Ui.cancelJob(x),x=_.Ui.addJob(function(){R(!0)},8,32)):R(!0);
return!0});
var qX=_.Hh(function(W3){W3=W3.relatedTarget;var DT=document.querySelector("ytd-video-preview");W3&&DT&&DT.contains(W3)||(x&&(_.Ui.cancelJob(x),x=0),R(!1))});
_.oM(function(){x&&(_.Ui.cancelJob(x),x=0)});
var B3=pCo(function(){H3(!0)}),fW=B3.touchFeedbackEvents,e2=B3.touchFeedbackOnPointerUp,$R=B3.touchFeedbackOnPointerDown;
B3=B3.touchFeedbackOnPointerLeave;var ie={};return _.J(_.kI,null,_.J("div",{el:G,class:_.bb("yt-lockup-view-model",function(){a:{var W3=w();if(W3.isOverlay)W3="yt-lockup-view-model--overlay";else switch(W3.arrangement){case 1:W3="yt-lockup-view-model--horizontal";break a;default:W3="yt-lockup-view-model--vertical"}}return W3},function(){a:{var W3=w();
if(W3.isOverlay)W3="yt-lockup-view-model--overlay";else{switch(W3.collectionStackNumber){case 1:W3="yt-lockup-view-model--collection-stack-1";break a;case 2:W3="yt-lockup-view-model--collection-stack-2";break a}W3=void 0}}return W3},function(){var W3;
return _.GMW((W3=H())==null?void 0:W3.contentId)},(ie["yt-lockup-view-model--card"]=function(){return w().isCard},ie["yt-lockup-view-model--compact"]=function(){return w().isTiny||w().sizing!=="STANDARD"},ie["yt-lockup-view-model--protect-background"]=l,ie["yt-lockup-view-model--add-margins"]=function(){return w().addMarginForFullbleed},ie["yt-lockup-view-model--centered"]=function(){return w().isCentered},ie["yt-lockup-view-model--fullbleed"]=function(){return w().fullbleed},ie["yt-lockup-view-model--single-column-grid"]=
function(){return d()===1&&Q()===2},ie["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var W3;
return(W3=D())==null?void 0:W3.useRichGridLegacyMargin},ie["yt-lockup-view-model--flex-none"]=function(){return!_.V("lockup_flex_none_killswitch")},ie)),
"on:mousedown":$R,"on:mouseleave":qX,"on:mouseup":e2,"on:mouseover":c,"on:touchstart":$R,"on:touchend":e2,"on:pointerleave":B3},_.J(_.u1,{model:function(){var W3,DT,UR=Object,zx=UR.assign,be=(W==null?void 0:W.thumbnailSize)||"small";a:{var J_=w();var rG=!!(r()&&((W3=D())==null?0:W3.onFocusEffect));switch((W==null?void 0:W.thumbnailSize)||"small"){case "small":W3=4;break;case "large":W3=12;break;default:W3=8}if(rG)J_=W3+24;else{switch(J_.collectionStackNumber){case 1:J_=W3+8;break a;case 2:J_=W3+12;
break a}J_=void 0}}be={thumbnailSize:be,triggerEvents:!0,customTopExtend:J_};var Kw;J_=(DT=D())==null?void 0:DT.onFocusEffect;rG=!(e==null||!e());if(J_){var cD,ec;DT=rG?(cD=J_.onFocusColor)==null?void 0:cD.darkTheme:(ec=J_.onFocusColor)==null?void 0:ec.lightTheme;var gf,sR;cD=rG?(gf=J_.keyLightColor)==null?void 0:gf.darkTheme:(sR=J_.keyLightColor)==null?void 0:sR.lightTheme;var ep;gf=rG?(Kw=J_.touchResponseColor)==null?void 0:Kw.darkTheme:(ep=J_.touchResponseColor)==null?void 0:ep.lightTheme;Kw={background:DT!==
void 0?f3(DT):void 0,keyLight:cD!==void 0?f3(cD):void 0};ep=[];sR=_.I(J_.lightingTechniques||[]);for(cD=sR.next();!cD.done;cD=sR.next())switch(cD.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":ep.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":ep.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":ep.push(3)}Kw={hoverEffect:{palette:Kw,lightingTechniques:ep},touchEffect:{palette:{background:gf!==void 0?f3(gf):void 0}}}}else Kw={};return zx.call(UR,{},be,Kw)},
hovered:function(){return U()},
pointerDownEvent:fW.pointerDownEvent,pointerUpEvent:fW.pointerUpEvent,pointerLeaveEvent:fW.pointerLeaveEvent}),_.J(_.k,{cond:function(){var W3,DT;return r()&&U()&&((W3=D())==null?void 0:W3.onFocusEffect)&&!((DT=D())==null?0:DT.isFirstRow)},
then:function(){return _.J("div",{class:"yt-lockup-view-model__endorsement"},_.J(_.SP,{data:function(){return r()}},{attributionViewModel:function(W3){return _.J(DF,{data:W3.data,
useHeavyText:!0})}}))}}),_.J(_.S8,{command:function(){var W3;
return _.nG((W3=H())==null?void 0:W3.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return B()&&w().arrangement===1?"width: "+B():""}},_.J(_.SP,{data:function(){var W3;
return(W3=H())==null?void 0:W3.contentImage}},{thumbnailViewModel:function(W3){return _.J(_.So,{data:W3.data,
aspectRatio:function(){return w().aspectRatio},
disableRounding:function(){return w().disableRounding},
width:t,hovered:function(){return U()&&!(n()&&H().itemPlayback)},
isClip:function(){var DT;return((DT=H())==null?void 0:DT.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:XBj(W),lockupExperiments:function(){return D()}})},
collectionThumbnailViewModel:function(W3){return _.J($kx,{data:W3.data,aspectRatio:function(){return w().aspectRatio},
disableRounding:function(){return w().disableRounding},
width:t,doubleStack:function(){return w().collectionStackNumber===2},
hovered:function(){return U()&&!(n()&&H().itemPlayback)},
playbackRef:XBj(W)})},
decoratedAvatarViewModel:_.U5})),_.J("div",{class:"yt-lockup-view-model__metadata"},_.J(_.SP,{data:function(){var W3;return(W3=H())==null?void 0:W3.metadata}},{lockupMetadataViewModel:function(W3){return _.J(hVt,{data:W3.data,
hovered:U,lockupStyle:w,lockupCommand:function(){var DT;return _.nG((DT=H())==null?void 0:DT.rendererContext)},
lockupAccessibilityLabel:function(){return M()},
layout:function(){var DT;return((DT=D())==null?0:DT.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(W3){return _.J($z,{data:W3.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:q})}}),_.J(_.SP,{data:function(){var W3;
return(W3=H())==null?void 0:W3.attachmentSlot}},{lockupAttachmentsViewModel:function(W3){return _.J(WQT,{data:W3.data,
lockupStyle:w})}}))),_.J(_.SP,{data:function(){var W3;
return(W3=H())==null?void 0:W3.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(W3){return _.J(WQT,{data:W3.data,
lockupStyle:w})}}))},"Tb");
_.Xf.idomCompat=!0;_.RX(_.Xf,"yt-lockup-view-model",{props:{data:_.b3,containerLayoutConfig:_.b3,containerType:_.b3,sizing:_.b3,protectBackground:_.b3,typographyBump:_.b3,thumbnailFixedWidth:_.b3,thumbnailTargetWidth:_.b3,force16By9ThumbnailAspectRatio:_.b3,className:_.b3,lockupExperiments:_.b3,elementsPerRow:_.b3}});var S$b,RV2=_.y(function(G){var H=_.oK(G,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),Z=H.text,Q=H.alwaysShowTruncationText;G=H.truncationText;var p=H.onTextClick,l=H.maxLines,q=H.disableTextMask,u=H.textStyle,B=H.accessibilityLabel,t=H.textSize,D=H.alwaysTruncateAtMaxLines,d=H.expandOnClick;H=_.I(_.Ty(!1,void 0,"EzA1q"));var e=H.next().value,n=H.next().value;H=_.Hh(function(){d()&&n(!e());p==null||p()});
var c=function(){a:switch(t()){case "medium":var H3=2;break a;case "large":H3=2.2;break a;default:H3=1.8}return H3},W=JIo(Z,function(){return e()?Infinity:l()},c,q,D,e),M=W.isTruncated;
Z=W.displayText;D=W.contentRef;var r=W.hiddenRef,w=W.placeholderTruncationTextRef,x=W.hiddenTruncationTextRef;W=W.truncationTextRef;var U={},R={},L={};return _.J("truncated-text",{class:_.bb((U["yt-truncated-text"]=!0,U["yt-truncated-text--overlay"]=function(){return u()==="overlay"},U["yt-truncated-text--medium-text"]=function(){return t()==="medium"},U["yt-truncated-text--large-text"]=function(){return t()==="large"},U["yt-truncated-text--primary-text"]=function(){return u()==="primary-text"},U)),
"on:click":H,style:function(){return"line-height: "+c()+"rem;"}},_.J("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:D,style:function(){return e()?"":"max-height: "+l()*c()+"rem;"}},_.J(_.Fe,{text:Z}),_.J("button",{"aria-disabled":!0,
disabled:!0,class:_.bb((R["yt-truncated-text__inline-button"]=!0,R["yt-truncated-text--hidden"]=function(){return!(!e()&&(Q!=null&&Q()||M()))},R)),
el:w,style:function(){return"line-height: "+c()+"rem;"}},_.J(_.Fe,{text:G}))),_.J("truncated-text-content",{class:_.bb("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:r,style:function(){return e()?"":"max-height: "+l()*c()+"rem;"},
"aria-hidden":"true"},_.J(_.Fe,{text:Z}),_.J("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:x,style:function(){return"line-height: "+c()+"rem;"}},_.J(_.Fe,{text:G}))),_.J("button",{"aria-label":B,
class:_.bb((L["yt-truncated-text__absolute-button"]=function(){return!q()},L["yt-truncated-text__bottom-button"]=function(){return q()},L["yt-truncated-text--hidden"]=function(){return!(!e()&&(Q!=null&&Q()||M()))},L)),
el:W,style:function(){return"line-height: "+c()+"rem;"}},_.J(_.Fe,{text:G})))},"Vb");
RV2.idomCompat={callbacks:{onTextClick:!0}};var xkw=_.y(function(G){var H=G.data;G=G.className;var Z=_.Kb(function(){return kMj(H())},void 0,"uDhDke"),Q=_.J(_.kI,null,_.J(_.k,{cond:function(){return H().heroText||H().image},
then:function(){return _.J(NEG,{data:H})}}),_.J(AE7,{data:H,
sizeSmall:function(){return H().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.J("yt-video-attribute-view-model",{class:G},_.J("div",{class:function(){var p=H();a:switch(p.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var l="yt-video-attribute-view-model--vertical";break a;default:l="yt-video-attribute-view-model--horizontal"}a:switch(p.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var q="yt-video-attribute-view-model--image-small";break a;default:q="yt-video-attribute-view-model--image-large"}a:switch(p.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var u=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":u="yt-video-attribute-view-model--image-avatar";break a;default:u=""}a:switch(p.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var B="yt-video-attribute-view-model--metadata-header";break a;default:B=""}a:switch(p.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var t="yt-video-attribute-view-model--container-card";break a;default:t=""}return["yt-video-attribute-view-model",l,q,
u,B,t,kMj(p)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.pI({"background-color":function(){var p=H();if(p.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var l="";else{l=p.lightColorPalette;p=p.darkColorPalette;var q,u=((q=_.tp().resolve(_.Jp(_.rr)))==null?0:q())&&p?p:l;l=(l=u==null?void 0:u.section2Color)?_.c$(l):""}return l}})},_.J(_.k,{cond:Z,
then:function(){return _.J(_.S8,{className:"yt-video-attribute-view-model__content-container",command:Z,role:"group",ariaLabel:function(){return H().title}},Q)},
else:function(){return _.J("div",{class:"yt-video-attribute-view-model__content-container"},Q)}})))},"Wb");
xkw.idomCompat=!0;var NEG=_.y(function(G){var H=G.data;var Z,Q=(Z=_.tp().resolve(_.Jp(_.rr)))==null?void 0:Z(),p=function(){return Q&&H().darkThemeImage?H().darkThemeImage:H().image},l=_.Kb(function(){return DNU(H())},void 0,"UDqj0b");
return _.J("div",{class:"yt-video-attribute-view-model__hero-section"},_.J(_.iW,null,_.J(_.wO,{when:p},function(){return _.J(_.ib,{data:function(){return p()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.J(_.wO,{when:function(){return H().heroText}},function(){return _.J("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.J("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return H().heroText}))})),_.J(_.k,{cond:function(){return H().overflowMenuOnTap},
then:function(){return _.J("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.J(_.tf,{data:l,iconName:"MORE_VERT"}))}}))},"Xb");
NEG.idomCompat=!0;var AE7=_.y(function(G){var H=G.data;G=G.sizeSmall;var Z=function(){return H().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},Q=_.Kb(function(){return WT(_.vT({innertubeCommand:kMj(H())}))?"link":kMj(H())?"button":"group"},void 0,"e2MmYe"),p={};
return _.J("div",{class:_.bb("yt-video-attribute-view-model__metadata",(p["yt-video-attribute-view-model--small-font"]=G,p)),role:Q},_.J("h1",{class:"yt-video-attribute-view-model__title"},function(){return H().title}),_.J(_.k,{cond:function(){return H().subtitle},
then:function(){return _.J("h4",{class:"yt-video-attribute-view-model__subtitle"},_.J(_.k,{cond:Z,then:function(){return _.J(RV2,{text:function(){return tCb(H().subtitle)},
truncationText:function(){return tCb(H().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.J("span",null,function(){return H().subtitle})}}))}}),_.J(_.k,{cond:function(){return H().secondarySubtitle},
then:function(l){return _.J("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.J(_.Fe,{text:function(){var q=l();if(q!=null&&q.attachmentRuns){for(var u=[],B=_.I(q.attachmentRuns),t=B.next();!t.done;t=B.next())t=t.value,t.element&&u.push(Object.assign({},t,{element:Object.assign({},t.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));q=Object.assign({},q,{attachmentRuns:u})}return q}}))}}),_.J(_.SP,
{data:function(){return H().buttonViewModel}},{buttonViewModel:function(l){return _.J(_.kg,{data:l.data,
className:"yt-video-attribute-view-model__button"})}}))},"Yb");
AE7.idomCompat=!0;_.RX(xkw,"yt-video-attribute-view-model",{props:{data:_.b3,className:_.b3}});var cb=function(){var G=_.C.apply(this,arguments)||this;G.useHighlightStyling=_.V("web_enable_deeper_metadata_highlight_styling");G.isSearch=!1;G.JSC$15278_lastScrollContainerWidth=NaN;G.pageLoadingFromNavigation=!1;G.currentIndex=0;G.supportComponentResize=!1;return G};
_.T(cb,_.C);_.g=cb.prototype;
_.g.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}}}}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.pH(this,this.onPageChange))};
_.g.detached=function(){document.removeEventListener("yt-page-type-changed",_.pH(this,this.onPageChange))};
_.g.getItemsPath=function(){return"data.cards"};
_.g.onIronResize=function(){this.updateListStyles()};
_.g.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var G;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(G=this.data)==null?void 0:G.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.V("problem_walkthrough_sd")&&!!this.centerItems};
_.g.computeCardListStyle=function(G){return G||null};
_.g.computeEmpty=function(G){return!this.get("cards.length",G)};
_.g.computeThumbnailStyle=function(G){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",G)||null};
_.g.computeHasSubtitle=function(G){return!!this.get("header.richListHeaderRenderer.subtitle",G)};
_.g.computeInitialCountNumber=function(G){return this.hasSquareMiniApp&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.g.computeUseFloorScrolling=function(G){return G==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.g.computeHasGameCard=function(G){return(G=this.get("cards",G))?G.some(function(H){return H.gameCardRenderer}):!1};
_.g.computeCenterHeaderTitle=function(G){return!(G==null||!G.centerHeaderTitle)};
_.g.computeHasPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.g.computeHasSquareMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.g.computeHasSkinnyWidthPortraitMiniApp=function(G){return(G=G==null?void 0:G.cards)?G.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.width===135}):!1};
_.g.computeCenterItems=function(G){return!!G};
_.g.computeHasInfoPanel=function(G){var H;return G==null?void 0:(H=G.cards)==null?void 0:H.some(function(Z){return Z.infoPanelContentRenderer})};
_.g.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.g.getItemByIndex=function(G){var H=this.items.children;return H&&H.length>G?H[G]:void 0};
_.g.onPageChange=function(){var G=this;this.pageLoadingFromNavigation=!0;_.Ui.addJob(function(){G.pageLoadingFromNavigation=!1;_.xk(G.hostElement,"yt-terminate-video-preview-action")},8)};
_.g.updateListStyles=function(){if(_.V("problem_walkthrough_sd")&&this.JSC$15278_scrollContainer!==void 0){var G=this.JSC$15278_scrollContainer.clientWidth;G!==this.JSC$15278_lastScrollContainerWidth&&(this.JSC$15278_lastScrollContainerWidth=G,_.ZI(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(G*.8,415)+"px"}),_.N5(this.hostElement,"iron-resize"))}};
_.u4.Object.defineProperties(cb.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.V("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!!((G=this.data)==null?0:(H=G.cards)==null?0:(Z=H[0])==null?0:Z.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!!((G=this.data)==null?0:(H=G.cards)==null?0:(Z=H[0])==null?0:Z.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return _.V("enable_desktop_amsterdam_info_panels")&&!!((G=this.data)==null?0:(H=G.cards)==null?0:(Z=H[0])==null?0:Z.infoPanelContentRenderer)}}});
cb.prototype.dataChanged=cb.prototype.dataChanged;cb.prototype.onIronResize=cb.prototype.onIronResize;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.uU.YtdHorizontalListBehavior),_.A("design:type",Object)],cb.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.v(_.NH),_.A("design:type",Object)],cb.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cb.prototype,"data",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],cb.prototype,"useCustomColors",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],cb.prototype,"useHighlightStyling",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.A("design:type",Object)],cb.prototype,"cardListStyle",void 0);_.N([_.h({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.A("design:type",Boolean)],cb.prototype,"empty",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.A("design:type",Boolean)],cb.prototype,"hasSubtitle",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.A("design:type",Boolean)],cb.prototype,"thumbnailStyle",void 0);_.N([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.A("design:type",Boolean)],cb.prototype,"hasGameCard",void 0);_.N([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.A("design:type",Boolean)],cb.prototype,"centerHeaderTitle",void 0);
_.N([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.A("design:type",Boolean)],cb.prototype,"hasPortraitMiniApp",void 0);_.N([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.A("design:type",Boolean)],cb.prototype,"hasSquareMiniApp",void 0);_.N([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.A("design:type",Boolean)],cb.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.N([_.h({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.A("design:type",Boolean)],cb.prototype,"hasInfoPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],cb.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],cb.prototype,"inlineStructuredDescription",void 0);_.N([_.q6("#scroll-container"),_.A("design:type",HTMLDivElement)],cb.prototype,"JSC$15278_scrollContainer",void 0);
_.N([_.h({computed:"computeInitialCountNumber(data.style.type)"}),_.A("design:type",Number)],cb.prototype,"initialCount",void 0);_.N([_.h({computed:"computeUseFloorScrolling(data.style.type)"}),_.A("design:type",Boolean)],cb.prototype,"useFloorScrolling",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.A("design:type",Boolean)],cb.prototype,"centerItems",void 0);_.N([_.h(),_.A("design:type",Object)],cb.prototype,"pageLoadingFromNavigation",void 0);
_.N([_.h(),_.A("design:type",Object)],cb.prototype,"currentIndex",void 0);_.N([_.h(),_.A("design:type",Number)],cb.prototype,"scrollCount",void 0);_.N([_.h(),_.A("design:type",Object)],cb.prototype,"supportComponentResize",void 0);_.N([_.q6("#items"),_.A("design:type",HTMLDivElement)],cb.prototype,"items",void 0);_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cb.prototype,"onIronResize",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cb.prototype,"dataChanged",null);_.N([_.h({reflectToAttribute:!0}),_.z("inlineStructuredDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cb.prototype,"hideNavigationButton",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cb.prototype,"modernChapters",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cb.prototype,"hasVideoAttributeViewModels",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cb.prototype,"modernInfoPanels",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],cb);
_.m(cb,"ytd-horizontal-card-list-renderer",function(){if(yIG!==void 0)return yIG;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return yIG=G},{mode:_.LH("kevlar_poly_si_batch_j072")?1:2});var LQw=_.y(function(G){var H=G.data;var Z={};return _.J("video-summary-content-view-model",{class:_.bb("videoSummaryContentViewModelHost",G.className,(Z.videoSummaryContentViewModelHostIsSearch=G.isSearch,Z))},_.J(_.Cl,{each:function(){var Q=[],p=H().paragraphs;if(p==null||!p.length)return[];for(var l=0;l<p.length;l++){var q=_.X(p[l],uet),u=void 0;l>0&&(u=_.X(p[l-1],uet));u&&!!u.marker===!!q.marker?Q[Q.length-1].paragraphs.push(q):Q.push({isList:!!q.marker,paragraphs:[q]})}return Q},
keyBy:"INDEX"},function(Q){return _.J(_.k,{cond:function(){return Q().isList},
then:function(){return _.J("ul",{class:"videoSummaryContentViewModelList"},_.J(_.Cl,{each:function(){return Q().paragraphs},
keyBy:"INDEX"},function(p){return _.J("li",{class:"videoSummaryContentViewModelListItem"},_.J(_.Fe,{text:function(){return p().text}}))}))},
else:function(){return _.J("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.J(_.Cl,{each:function(){return Q().paragraphs},
keyBy:"INDEX"},function(p){return _.J("p",{class:"videoSummaryContentViewModelParagraph"},_.J(_.Fe,{text:function(){return p().text}}))}))}})}),_.J(_.k,{cond:function(){return!!_.X(H().likeButtonViewModel,_.RH)&&!!_.X(H().dislikeButtonViewModel,_.UL)},
then:function(){return _.J("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.J("div",{class:"videoSummaryContentViewModelLikeButton"},_.J(_.AD,{data:function(){return _.X(H().likeButtonViewModel,_.RH)},
disableIconAnimation:!0})),_.J(_.Nt,{data:function(){return _.X(H().dislikeButtonViewModel,_.UL)}}))}}))},"Zb");
LQw.idomCompat=!0;_.RX(LQw,"video-summary-content-view-model",{props:{data:_.b3,isSearch:_.b3,className:_.b3}});var Ta=function(){var G=_.C.apply(this,arguments)||this;var H,Z;G.isExpanded=(Z=(H=G.data)==null?void 0:H.isExpanded)!=null?Z:!1;G.disableExpand=!1;G.showProminentLabel=!1;G.showRightSideLabel=!0;G.toggleExpandableContent=function(Q){G.disableExpand||(Q.stopPropagation(),_.yF(_.OD(Q),G.hostElement,["info","expanded-subtitle"])||(G.isExpanded=!G.isExpanded,G.ytRendererBehavior.logExplicitClick(G.data),G.JSC$15289_cardList&&!_.V("expandable_metadata_a11y_fix_ks")&&_.q2(G,function(){_.pT(G.hostElement)})))};
G.useSquareThumbnail=!1;G.startX=0;return G};
_.T(Ta,_.C);_.g=Ta.prototype;_.g.computeUseSquareThumbnail=function(){var G;return(G=this.data)==null?void 0:G.useSquareThumbnail};
_.g.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"}}}}};
_.g.dataChanged=function(){if(this.data){var G,H;this.isExpanded=(H=(G=this.data)==null?void 0:G.isExpanded)!=null?H:!1;var Z,Q,p,l;if(G=this.isDarkTheme()?(Z=this.data)==null?void 0:(Q=Z.colorData)==null?void 0:Q.darkColorPalette:(p=this.data)==null?void 0:(l=p.colorData)==null?void 0:l.lightColorPalette){var q,u;if((q=this.data)==null?0:(u=q.colorData)==null?0:u.vibrantColorPalette)G.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Do(this.hostElement,G)}}};
_.g.isExpandedChanged=function(){this.isExpanded&&this.JSC$15289_cardList&&_.N5(this.JSC$15289_cardList,"iron-resize")};
_.g.computeIsExpanded=function(G){return!!G.isExpanded};
_.g.computeShowProminentLabel=function(G,H){var Z;return!!(G==null?0:(Z=G.header)==null?0:Z.showLeadingCollapsedLabel)&&!H};
_.g.computeShowRightSideLabel=function(G,H){var Z;return!(G==null?0:(Z=G.header)==null?0:Z.showLeadingCollapsedLabel)&&!H};
_.g.captureContentClick=function(G){if(!this.disableExpand)if(_.V("expandable_metadata_fix_killswitch")){var H=G.target;_.jN4(H,"ytd-macro-markers-list-item-renderer")||G.stopPropagation();(H==null?void 0:H.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.yF(_.OD(G),this.hostElement,["items"])||_.OO(_.OD(G),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.g.timestampClick=function(G){G.stopPropagation();var H,Z;(G=(H=this.data)==null?void 0:(Z=H.header)==null?void 0:Z.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(G)};
_.g.onDown=function(G){G.stopPropagation();this.startX=G.detail?G.detail.x:0};
_.g.onUp=function(G){this.skipKeyInteraction(G)&&G.stopPropagation()};
_.g.skipKeyInteraction=function(G){var H=G.target;if((H==null?void 0:H.id)==="scroll-container"||(H==null?void 0:H.id)==="items"||G.detail&&G.detail.x!==this.startX)return!0;G=_.OD(G);G=_.I(G);for(H=G.next();!H.done;H=G.next()){H=H.value;if(H===this.hostElement)break;if(H.hasAttribute&&H.hasAttribute("skip-key-interaction"))return!0}return!1};
_.g.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.u4.Object.defineProperties(Ta.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.X((G=this.data)==null?void 0:G.expandedContent,Sr2)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.X((G=this.data)==null?void 0:G.expandedContent,_.By_)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null||!G.useCustomColors)&&!((H=this.data)==null||!H.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var G,H;return!!((G=this.data)==null?0:(H=G.header)==null?0:H.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var G,H;return!!((G=this.data)==null?0:(H=G.header)==null?0:H.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,H;return!!((G=this.data)==null?0:(H=G.header)==null?0:H.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Ta.prototype.onUp=Ta.prototype.onUp;Ta.prototype.onDown=Ta.prototype.onDown;Ta.prototype.isExpandedChanged=Ta.prototype.isExpandedChanged;Ta.prototype.dataChanged=Ta.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ta.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ta.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ta.prototype,"isExpanded",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ta.prototype,"disableExpand",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Ta.prototype,"isSearch",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ta.prototype,"isWatch",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.A("design:type",Object)],Ta.prototype,"showProminentLabel",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.A("design:type",Object)],Ta.prototype,"showRightSideLabel",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ta.prototype,"hasVideoSummary",null);_.N([_.h({value:!1,reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ta.prototype,"hasLockupViewModel",null);_.N([_.h({reflectToAttribute:!0}),_.z("data","isWatch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ta.prototype,"useCustomColors",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ta.prototype,"showInfoButton",null);_.N([_.z("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ta.prototype,"showTimestamp",null);_.N([_.z("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ta.prototype,"showExpandedSubtitle",null);
_.N([_.z("data","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ta.prototype,"showThumbnail",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ta.prototype,"useVppShoppingDestinationStyle",null);_.N([_.h(),_.A("design:type",Object)],Ta.prototype,"toggleExpandableContent",void 0);_.N([_.q6("ytd-horizontal-card-list-renderer"),_.A("design:type",Object)],Ta.prototype,"JSC$15289_cardList",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.A("design:type",Object)],Ta.prototype,"useSquareThumbnail",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ta.prototype,"dataChanged",null);_.N([_.gx("isExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ta.prototype,"isExpandedChanged",null);
_.N([_.lq("down"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ta.prototype,"onDown",null);_.N([_.lq("up"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ta.prototype,"onUp",null);_.N([_.O({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Ta);
_.m(Ta,"ytd-expandable-metadata-renderer",function(){if(LCR!==void 0)return LCR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LCR=G},{mode:1});var E0a,Yk2=function(){if(E0a!==void 0)return E0a;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return E0a=G};_.RX(_.Rr,"yt-avatar-stack-view-model",{props:{className:_.b3,data:_.b3,overrides:_.b3,isOverlay:_.b3,useMediumText:_.b3,decorations:_.b3,hideAvatar:_.b3}});_.eQ("itemSectionRenderer","videoRenderer","ytd-video-renderer");var fJ=function(){var G=_.C.apply(this,arguments)||this;G.disableExpand=!1;G.shouldShowChannelInfo=!1;G.hasAttributedBylineText=!1;G.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return G};
_.T(fJ,_.C);_.g=fJ.prototype;_.g.computeUseSearchUi=function(){var G,H;return this.isSearch||((G=this.data)==null?void 0:(H=G.style)==null?void 0:H.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.g.computeUseThreeLineTitle=function(){var G;return((G=this.data)==null?void 0:G.maxTitleLines)===3};
_.g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.V("polymer_video_renderer_defer_menu")&&!PB2?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"}}}};
_.g.attached=function(){_.Gq(this.hostElement,"blue-links",_.V("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.HG(_.F9(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;G&&((H=_.X(G.commandMetadata,_.rS))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G);this.updateInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15294_inlinePreviewHoverListener=cV({mediaRenderer:this,lockupElement:this.JSC$15294_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.g.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15294_inlinePreviewHoverListener)==null||iL(G)};
_.g.onTextWrapperClick=function(G){var H,Z,Q=this.hideTranslation?(H=this.data)==null?void 0:H.untranslatedNavigationEndpoint:(Z=this.data)==null?void 0:Z.navigationEndpoint;H=_.yF(_.OD(G),this.hostElement,["expandable-metadata"]);!Q||H&&!_.V("expandable_metadata_fix_killswitch")||_.OO(_.OD(G),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.N5(this.hostElement,"yt-navigate",{endpoint:Q})};
_.g.computeThumbnailWidth=function(G,H,Z,Q,p){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:Q?p==="MASSIVE"?600:p==="BIG"?500:p==="MEDIUM"?450:420:Z?360:H?128:G?210:246};
_.g.computeUseBiggerThumbs=function(G){return G&&_.V("enable_desktop_search_bigger_thumbs")};
_.g.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.g.computeHasAttributedBylineText=function(){var G;return!((G=this.data)==null||!G.attributedBylineText)};
_.g.computeVideoStyle=function(){if(_.V("enable_video_style")){var G,H;return(G=this.data)==null?void 0:(H=G.style)==null?void 0:H.value}};
_.g.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.g.handleHideItemSectionVideosByIdCommand=function(G){var H;G=(H=_.X(G,PZa))==null?void 0:H.videoId;this.data&&this.data.videoId===G&&(this.isHidden=!0)};
_.g.getMetadataSnippetContainerClass=function(G){return G?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.g.computeTitleText=function(G,H,Z){return G?Z:H};
_.g.computeDescriptionSnippet=function(G,H,Z){return G?Z:H};
_.g.computeSnippetText=function(G,H,Z){return G?Z:H};
_.g.computeNavigationEndpoint=function(G,H){return G?H==null?void 0:H.untranslatedNavigationEndpoint:H==null?void 0:H.navigationEndpoint};
_.g.hideInlineTitleIcon=function(G,H){return G||!H};
_.u4.Object.defineProperties(fJ.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 G;return(G=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?G:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!!(this==null?0:(G=this.data)==null?0:(H=G.channelThumbnailSupportedRenderers)==null?0:(Z=H.channelThumbnailWithLinkRenderer)==null?0:Z.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.X((G=this.data)==null?void 0:G.avatar,Jid)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15294_inlinePreviewHoverListener)==null?0:x3(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.u4.Object.defineProperties(fJ,{template:{configurable:!0,enumerable:!0,get:function(){return Yk2()}}});
fJ.prototype.dataChanged=fJ.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],fJ.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],fJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.v(_.bz),_.A("design:type",Object)],fJ.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],fJ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],fJ.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fJ.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fJ.prototype,"isBackstageVideo",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fJ.prototype,"isPostCompactVideo",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],fJ.prototype,"isHistory",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fJ.prototype,"isRichGridVideoPost",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fJ.prototype,"isHidden",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fJ.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.A("design:type",Boolean)],fJ.prototype,"useSearchUi",void 0);_.N([_.h({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.A("design:type",Boolean)],fJ.prototype,"useThreeLineTitle",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.A("design:type",Boolean)],fJ.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.A("design:type",Object)],fJ.prototype,"videoStyle",void 0);_.N([_.h({computed:"computeDisableExpand(videoStyle)"}),_.A("design:type",Object)],fJ.prototype,"disableExpand",void 0);
_.N([_.h({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.A("design:type",Object)],fJ.prototype,"shouldShowChannelInfo",void 0);_.N([_.h({computed:"computeHasAttributedBylineText(data)"}),_.A("design:type",Object)],fJ.prototype,"hasAttributedBylineText",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],fJ.prototype,"biggerThumbsStyle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.A("design:type",String)],fJ.prototype,"inlineTitleIcon",void 0);_.N([_.h({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.A("design:type",Object)],fJ.prototype,"computedNavigationEndpoint",void 0);_.N([_.h({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(G,H){return _.Hv(G.entities,"searchVideoResultEntity",H)}}),
_.A("design:type",Object)],fJ.prototype,"searchVideoResultEntity",void 0);_.N([_.q6("ytd-thumbnail"),_.A("design:type",HTMLElement)],fJ.prototype,"thumbnail",void 0);_.N([_.q6("#dismissible"),_.A("design:type",HTMLElement)],fJ.prototype,"JSC$15294_dismissibleMedia",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fJ.prototype,"dataChanged",null);
_.N([_.z("searchVideoResultEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fJ.prototype,"hideTranslation",null);_.N([_.z("searchVideoResultEntity"),_.A("design:type",Array),_.A("design:paramtypes",[])],fJ.prototype,"hiddenBadgeGroups",null);_.N([_.z("data","useAvatar"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fJ.prototype,"shouldShowChannelThumbnail",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fJ.prototype,"useAvatar",null);
_.N([_.z("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fJ.prototype,"isHovered",null);_.N([_.O({is:"ytd-video-renderer",disableElementRegistration:!0})],fJ);_.m(fJ,"ytd-video-renderer",function(){return Yk2()},{mode:_.LH("kevlar_poly_si_batch_j047")?1:2});var vb=function(){var G=_.C.apply(this,arguments)||this;G.editDialog=null;G.roundedContainer=!0;G.isLoading=!1;G.isRichGrid=!1;G.isRichGridRepost=!1;G.reduceSidePaddings=_.V("reduce_side_paddings_in_shelf");G.JSC$15301_spinnerEl=null;return G};
_.T(vb,_.C);_.g=vb.prototype;
_.g.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"}}}};
_.g.contentTextChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){var G=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var H=0,Z=this.data.actions&&this.data.actions.length;H<Z;H++)this.openEditDialog(_.X(this.data.actions[H],Dd2));if((H=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(H=this.get("buttonRenderer.hint.hintRenderer.hintId",H))&&H.startsWith("share-post-hint")){var Q=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(Q){_.$y.getInstance();var p=Xe(_.aq(_.Zg("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Ui.addLowPriorityJob(function(){_.El(G.hostElement,p,Q)})}}}};
_.g.updatePoll=function(G){G>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.g.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15301_spinnerEl||(this.JSC$15301_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.F9(this.hostElement).appendChild(this.JSC$15301_spinnerEl));this.JSC$15301_spinnerEl&&(this.JSC$15301_spinnerEl.active=this.isLoading)};
_.g.onYtNavigate=function(G){var H=this.get("updateCommentDialogEndpoint",G.detail.endpoint);H&&(this.openEditDialog(H),G.stopPropagation())};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.onYtCommentPollRevert=function(G,H){H&&this.updatePoll(H.selectedChoiceIndex)};
_.g.onYtServiceRequestSent=function(G,H){var Z;H.endpoint&&(_.X(H.endpoint,c4p)||_.X(H.endpoint,X5a)&&((Z=_.X(H.endpoint,X5a))==null||!Z.clientActions))&&(this.isLoading=!0);if(H.actions)for(G=0;G<H.actions.length;G++)Z=H.actions[G],_.X(Z,jj)&&(Z=this.get("updateBackstagePollAction.selectedChoiceIndex",Z),Z==void 0&&(Z=-1),this.updatePoll(Z))};
_.g.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.g.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.g.computeIsPostHidden=function(G,H){return!!G||H};
_.g.computeSurfaceType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.g.computeUsesCompactLockup=function(G){return G==="BACKSTAGE_SURFACE_TYPE_HOME"||G==="BACKSTAGE_SURFACE_TYPE_SEARCH"||G==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||G==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||G==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||G==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.g.computeShowWithoutToolbar=function(G){return!G.actionButtons&&!G.actionMenu};
_.g.computePostAttachment=function(G){if(G.backstageAttachment){if(_.X(G.backstageAttachment,sa_))return"poll";if(_.X(G.backstageAttachment,yfw))return"quiz";if(_.X(G.backstageAttachment,_.bN))return"video";if(_.X(G.backstageAttachment,ogw))return"uploaded-videos";if(_.X(G.backstageAttachment,oqT))return G.contentText?"image":"image-only";if(_.X(G.backstageAttachment,C1d))return"playlist"}return"none"};
_.g.computePostTabIndex=function(G){return G?0:-1};
_.g.computeButtonTooltipPosition=function(G){return this.computeUsesCompactLockup(G)?"top":"bottom"};
_.g.computeHasText=function(G){return!(G==null||!G.contentText)};
_.g.onTap=function(G){var H,Z;if(((H=this.data)==null?0:H.navigationEndpoint)&&((Z=this.data)==null?void 0:Z.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var Q;((Q=this.data)==null?0:Q.navigationEndpoint)&&!_.OO(_.OD(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.u4.Object.defineProperties(vb.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.aq("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.X(this.data.backstageAttachment,sa_))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.X(this.data.backstageAttachment,ogw))}}});
vb.prototype.onYtServiceRequestCompleted=vb.prototype.onYtServiceRequestCompleted;vb.prototype.onYtServiceRequestSent=vb.prototype.onYtServiceRequestSent;vb.prototype.onYtCommentPollRevert=vb.prototype.onYtCommentPollRevert;vb.prototype.onYtCommentboxDismiss=vb.prototype.onYtCommentboxDismiss;vb.prototype.onYtNavigate=vb.prototype.onYtNavigate;vb.prototype.isLoadingChanged=vb.prototype.isLoadingChanged;vb.prototype.dataChanged=vb.prototype.dataChanged;vb.prototype.contentTextChanged=vb.prototype.contentTextChanged;
_.N([_.v(_.NH),_.A("design:type",Object)],vb.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],vb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],vb.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vb.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],vb.prototype,"editDialog",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vb.prototype,"roundedContainer",void 0);_.N([_.h(),_.A("design:type",Object)],vb.prototype,"isLoading",void 0);_.N([_.h({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.A("design:type",String)],vb.prototype,"surface",void 0);
_.N([_.h({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.A("design:type",Boolean)],vb.prototype,"usesCompactLockup",void 0);_.N([_.h({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],vb.prototype,"showWithoutToolbar",void 0);_.N([_.h({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.A("design:type",String)],vb.prototype,"attachment",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vb.prototype,"isRichGrid",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vb.prototype,"isRichGridRepost",void 0);_.N([_.h({reflectToAttribute:!0,value:_.V("use_better_post_dismissals")}),_.A("design:type",Boolean)],vb.prototype,"useBetterPostDismissals",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vb.prototype,"reduceSidePaddings",void 0);
_.N([_.h({computed:"computeHasText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],vb.prototype,"hasText",void 0);_.N([_.q6("#expander"),_.A("design:type",Object)],vb.prototype,"expander",void 0);_.N([_.q6("#action-buttons"),_.A("design:type",Object)],vb.prototype,"actionButtons",void 0);_.N([_.q6("#edit-dialog"),_.A("design:type",HTMLElement)],vb.prototype,"editDialogEl",void 0);
_.N([_.gx("data.contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vb.prototype,"contentTextChanged",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vb.prototype,"dataChanged",null);_.N([_.gx("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vb.prototype,"isLoadingChanged",null);
_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],vb.prototype,"onYtNavigate",null);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vb.prototype,"onYtCommentboxDismiss",null);_.N([_.lq("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],vb.prototype,"onYtCommentPollRevert",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],vb.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],vb.prototype,"onYtServiceRequestCompleted",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vb.prototype,"voteCount",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vb.prototype,"commentCount",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vb.prototype,"hasPoll",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vb.prototype,"hasUploadedVideo",null);_.N([_.O({is:"ytd-post-renderer",disableElementRegistration:!0})],vb);
_.m(vb,"ytd-post-renderer",function(){if(DS7!==void 0)return DS7;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return DS7=G},{mode:1});var FQx;var ba2;var Wb=function(){return _.C.apply(this,arguments)||this};
_.T(Wb,_.C);Wb.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.uU.YtdHorizontalListBehavior),_.A("design:type",Object)],Wb.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Wb.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Wb.prototype,"data",void 0);
_.N([_.h({value:"$.items.children"}),_.A("design:type",String)],Wb.prototype,"itemsPath",void 0);_.N([_.h({value:1}),_.A("design:type",Number)],Wb.prototype,"initialCount",void 0);_.N([_.h({reflectToAttribute:!0,value:_.V("enable_community_page_on_desktop")}),_.A("design:type",Boolean)],Wb.prototype,"useSmallerPostImageAttachments",void 0);_.N([_.h(),_.A("design:type",String)],Wb.prototype,"surface",void 0);_.N([_.O({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],Wb);
_.m(Wb,"ytd-post-multi-image-renderer",function(){if(ba2!==void 0)return ba2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ba2=G},{mode:_.LH("kevlar_poly_si_batch_j079")?1:2});var GRt={"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"}}},
za=function(){var G=_.C.apply(this,arguments)||this;G.hasInlineCommentSection=!1;G.editDialog=null;G.isLoading=!1;G.shouldHideAuthor=!1;G.shouldShowVideoTime=!1;G.isInEngagementPanel=!1;G.hideBorder=!1;G.usesFullLockup=!1;G.shouldShowMenuInCompactView=!1;G.JSC$15316_spinnerEl=null;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.T(za,_.C);_.g=za.prototype;_.g.configureRendererStamper=function(){return GRt};
_.g.computeIsPollHeaderEnabled=function(G){return(G==null?void 0:G.pollMetadataIcon)!=null};
_.g.getPublishTimeStampString=function(G,H){H=new Date((Number(H)-60*((new Date).getTimezoneOffset()-(new Date(Number(H)*1E3)).getTimezoneOffset()))*1E3);H=(new O7(10)).format(H);if(G&&G.runs&&G.runs.length)for(var Z=0;Z<G.runs.length;Z++)G.runs[Z].text&&(G.runs[Z].text=G.runs[Z].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",H));return G};
_.g.created=function(){this.JSC$15316_spinnerEl=null};
_.g.contentTextChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var G;if((G=this.data)==null?0:G.actions){G=_.I(this.data.actions);for(var H=G.next();!H.done;H=G.next())this.openEditDialog(_.X(H.value,Dd2))}};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){_.F9(this.hostElement).querySelector("#action-buttons").reply()};
_.g.updatePoll=function(G,H){H&&this.set("data.pollMetadataVoteCountText",H);this.hasInlineCommentSection&&(G=G>=0,H=_.F9(this.hostElement).querySelector("#action-buttons"),G?H.reply():H.hideReplyDialog())};
_.g.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15316_spinnerEl||(this.JSC$15316_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.F9(this.hostElement).appendChild(this.JSC$15316_spinnerEl));this.JSC$15316_spinnerEl&&(this.JSC$15316_spinnerEl.active=this.isLoading)};
_.g.onYtNavigate=function(G){var H=this.get("updateCommentDialogEndpoint",G.detail.endpoint);H&&(this.openEditDialog(H),G.stopPropagation())};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.onYtCommentPollRevert=function(G,H){H&&this.updatePoll(H.selectedChoiceIndex,H.totalVotes)};
_.g.onYtServiceRequestSent=function(G,H){G.stopPropagation();G=_.X(H.endpoint,X5a);if(_.X(H.endpoint,c4p)||G&&!G.clientActions)this.isLoading=!0;if(H.actions)for(G=0;G<H.actions.length;G++){var Z=H.actions[G],Q=_.X(Z,jj);Q&&(Z=this.get("updateBackstagePollAction.selectedChoiceIndex",Z),Z===void 0&&(Z=-1),this.updatePoll(Z,Q.totalVotes))}};
_.g.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.g.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.editDialogElement.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.g.computeIsBodyHidden=function(G,H){return!!G||H};
_.u4.Object.defineProperties(za.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var G=this.data,H=G.showPostAuthorBackgroundHighlight,Z=G.postAuthorBadgeType,Q=G.authorEndpoint;if(!H&&Z!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&Z!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var p,l,q;G=_.aq(((p=G.authorText)==null?void 0:(l=p.runs)==null?void 0:(q=l[0])==null?void 0:q.text)||"");p=void 0;switch(Z){case "POST_AUTHOR_BADGE_TYPE_ARTIST":p={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":p={iconType:H?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:G,authorEndpoint:Q,authorCreator:H,icon:p}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var G,H;if((G=this.data)==null?0:(H=G.pollMetadataIcon)==null?0:H.iconType)return _.bq(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.aq("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.X(this.data.backstageAttachment,sa_))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.X(this.data.backstageAttachment,yfw))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.X(this.data.backstageAttachment,ogw))}}});
za.prototype.onYtServiceRequestCompleted=za.prototype.onYtServiceRequestCompleted;za.prototype.onYtServiceRequestSent=za.prototype.onYtServiceRequestSent;za.prototype.onYtCommentPollRevert=za.prototype.onYtCommentPollRevert;za.prototype.onYtCommentboxDismiss=za.prototype.onYtCommentboxDismiss;za.prototype.onYtNavigate=za.prototype.onYtNavigate;za.prototype.isLoadingChanged=za.prototype.isLoadingChanged;za.prototype.dataChanged=za.prototype.dataChanged;za.prototype.contentTextChanged=za.prototype.contentTextChanged;
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],za.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],za.prototype,"rendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],za.prototype,"rendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],za.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.q6("#contentTextExpander"),_.A("design:type",Object)],za.prototype,"expander",void 0);_.N([_.q6("#edit-dialog"),_.A("design:type",Element)],za.prototype,"editDialogElement",void 0);_.N([_.h(),_.A("design:type",Object)],za.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],za.prototype,"hasInlineCommentSection",void 0);_.N([_.h(),_.A("design:type",Object)],za.prototype,"editDialog",void 0);_.N([_.h(),_.A("design:type",Object)],za.prototype,"isLoading",void 0);
_.N([_.h({computed:"computeIsPollHeaderEnabled(data)"}),_.A("design:type",Boolean)],za.prototype,"isPollHeaderEnabled",void 0);_.N([_.h(),_.A("design:type",Object)],za.prototype,"shouldHideAuthor",void 0);_.N([_.h(),_.A("design:type",Object)],za.prototype,"shouldShowVideoTime",void 0);_.N([_.h(),_.A("design:type",Object)],za.prototype,"isInEngagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],za.prototype,"hideBorder",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],za.prototype,"usesFullLockup",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],za.prototype,"shouldShowMenuInCompactView",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],za.prototype,"authorCommentBadge",null);_.N([_.z("isInEngagementPanel"),_.A("design:type",Number),_.A("design:paramtypes",[])],za.prototype,"postTextMaxLines",null);
_.N([_.z("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],za.prototype,"pollIcon",null);_.N([_.gx("data.contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],za.prototype,"contentTextChanged",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],za.prototype,"dataChanged",null);
_.N([_.gx("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],za.prototype,"isLoadingChanged",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],za.prototype,"onYtNavigate",null);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],za.prototype,"onYtCommentboxDismiss",null);
_.N([_.lq("yt-comment-poll-revert"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],za.prototype,"onYtCommentPollRevert",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],za.prototype,"onYtServiceRequestSent",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],za.prototype,"onYtServiceRequestCompleted",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],za.prototype,"voteCount",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],za.prototype,"commentCount",null);
_.N([_.z("data.backstageAttachment"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],za.prototype,"hasPoll",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],za.prototype,"hasQuiz",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],za.prototype,"hasUploadedVideo",null);_.N([_.O({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],za);
_.m(za,"ytd-backstage-post-renderer",function(){if(FQx!==void 0)return FQx;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return FQx=G},{mode:1});var Hz_;var KJ=function(){var G=_.C.apply(this,arguments)||this;G.editDialog=null;G.showExpandButton=!1;G.isRichGrid=!1;G.usesFullLockup=!1;return G};
_.T(KJ,_.C);_.g=KJ.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.g.computeShowExpandButton=function(G){return this.usesCompactLockup||G&&G.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.g.computeUsesCompactLockup=function(G){return!!G.condensedContent};
_.g.computeShowFullContentText=function(G){return!G};
_.g.onYtNavigate=function(G){G=this.get("updateCommentDialogEndpoint",G.detail.endpoint);this.openEditDialog(G)};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.openEditDialog=function(G){G&&G.dialog&&(this.editDialog=G.dialog,G=this.repostEditDialogEl.firstElementChild)&&(G.focus(),G.openDialog&&G.openDialog())};
_.g.onTap=function(G){if(this.data){var H=null;this.usesCompactLockup&&!_.OO(_.OD(G)||[],this.hostElement,["YT-IMG-SHADOW"])?H=this.get("navigationEndpoint",this.data):G.target===this.moreButtonEl&&(H=this.get("navigationEndpoint",G.target.data));H&&_.N5(this.hostElement,"yt-navigate",{endpoint:H})}};
KJ.prototype.onYtCommentboxDismiss=KJ.prototype.onYtCommentboxDismiss;KJ.prototype.onYtNavigate=KJ.prototype.onYtNavigate;KJ.prototype.dataChanged=KJ.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],KJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],KJ.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],KJ.prototype,"editDialog",void 0);_.N([_.h({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],KJ.prototype,"usesCompactLockup",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],KJ.prototype,"showExpandButton",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],KJ.prototype,"isRichGrid",void 0);
_.N([_.h({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.A("design:type",Boolean)],KJ.prototype,"showFullContentText",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],KJ.prototype,"usesFullLockup",void 0);_.N([_.q6("#more"),_.A("design:type",Object)],KJ.prototype,"moreButtonEl",void 0);_.N([_.q6("#repost-content-text"),_.A("design:type",HTMLElement)],KJ.prototype,"repostContentTextEl",void 0);
_.N([_.q6("#repost-edit-dialog"),_.A("design:type",HTMLElement)],KJ.prototype,"repostEditDialogEl",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],KJ.prototype,"dataChanged",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],KJ.prototype,"onYtNavigate",null);
_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],KJ.prototype,"onYtCommentboxDismiss",null);_.N([_.O({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],KJ);
_.m(KJ,"ytd-shared-post-renderer",function(){if(Hz_!==void 0)return Hz_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Hz_=G},{mode:1});var seT;var Zz7;var MA=function(){return _.C.apply(this,arguments)||this};
_.T(MA,_.C);MA.prototype.attached=function(){var G=this;this.networkStatusManager||(this.networkStatusManager=new _.sN,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){G.onlineHandler()}))};
MA.prototype.detached=function(){var G=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){G.onlineHandler()}),delete this.networkStatusManager)};
MA.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],MA.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],MA.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],MA);
_.m(MA,"ytd-reload-page-button-renderer",function(){if(Zz7!==void 0)return Zz7;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return Zz7=G},{mode:1});var Qe7={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"},jo=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(jo,_.C);_.g=jo.prototype;_.g.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.g.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.g.computeHasBodyText=function(G){return!!G.bodyText};
_.g.computeButtons=function(G){var H=[];G.ctaButton&&H.push(G.ctaButton);G.secondaryButton&&H.push(G.secondaryButton);return H};
_.g.computeRendererStyle=function(G){return G.style?G.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():G.icon?"":"no-icon"};
_.g.getIconName=function(G,H){H=H===void 0?!1:H;if(G===void 0)return"";G=this.get("icon.iconType",G);var Z;_.V("enable_hlp_client_icon_pick")?Z=this.getThemedIcon(G,H):Z=G;(H=Qe7[Z])||(H="yt-icons");return[H,Z].join(":")};
_.g.getThemedIcon=function(G,H){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(G)?H?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(G)?H?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":G};
_.g.isThumbnail=function(G){return!!G.thumbnail};
_.g.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],jo.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],jo.prototype,"data",void 0);
_.N([_.h({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],jo.prototype,"rendererStyle",void 0);_.N([_.h({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.A("design:type",String)],jo.prototype,"iconName",void 0);_.N([_.h({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],jo.prototype,"thumbnail",void 0);_.N([_.h({computed:"computeButtons(data)"}),_.A("design:type",Array)],jo.prototype,"buttons",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],jo.prototype,"isDarkTheme",void 0);_.N([_.h({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],jo.prototype,"hasBodyText",void 0);_.N([_.O({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],jo);
_.m(jo,"ytd-background-promo-renderer",function(){if(seT!==void 0)return seT;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return seT=G},{mode:1});var p24;var Pb=function(){return _.C.apply(this,arguments)||this};
_.T(Pb,_.C);_.u4.Object.defineProperties(Pb.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q,p,l;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(H=G.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(Z=this.data)==null?void 0:(Q=Z.thumbnail)==null?void 0:Q.vibrantColorPalette,darkColorPalette:(p=this.data)==null?void 0:(l=p.thumbnail)==null?void 0:l.darkColorPalette,experimentEnabled:!0}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Pb.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Pb.prototype,"collectionStack",null);_.N([_.O({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Pb);
_.m(Pb,"ytd-compact-station-renderer",function(){if(p24!==void 0)return p24;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return p24=G},{mode:1});var l5p;var rB=function(){var G=_.C.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.T(rB,_.C);rB.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rB.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],rB.prototype,"isRichGrid",void 0);_.N([_.O({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],rB);
_.m(rB,"ytd-grid-channel-renderer",function(){if(l5p!==void 0)return l5p;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return l5p=G},{mode:1});var gWw;var wB=function(){return _.C.apply(this,arguments)||this};
_.T(wB,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wB.prototype,"data",void 0);_.N([_.O({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],wB);
_.m(wB,"ytd-grid-movie-playlist-renderer",function(){if(gWw!==void 0)return gWw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return gWw=G},{mode:1});var I5w;var hz=function(){var G=_.C.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.modernButtons=_.V("web_modern_buttons");return G};
_.T(hz,_.C);hz.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
hz.prototype.configureRendererStamper=function(){return{"data.menu":zi}};
hz.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
hz.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.V("woffle_playlist_renderer_killswitch")){var G,H=qnM(this.entityInfo,this.transferState,this.downloadProgress,(G=this.data)==null?void 0:G.playlistId,this.isOnline);G=H.viewPlaylistText;var Z=H.badges;H=H.thumbnailOverlays;this.isDownloads=!!G||!!Z;this.set("data.viewPlaylistText",G);Z&&Z.length>0&&this.set("data.badges",Z);H&&H.length>0&&this.set("data.thumbnailOverlays",
H)}};
_.u4.Object.defineProperties(hz.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 G;return!((G=this.data)==null?0:G.menu)}}});
hz.prototype.transferStateChanged=hz.prototype.transferStateChanged;hz.prototype.dataChanged=hz.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],hz.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],hz.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],hz.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h({selector:_.UZu,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],hz.prototype,"downloadProgress",void 0);_.N([_.h({selector:_.z9,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],hz.prototype,"transferState",void 0);_.N([_.h({selector:mZo,selectorArgs:["data.playlistId"]}),_.A("design:type",Object)],hz.prototype,"entityInfo",void 0);_.N([_.h({selector:_.vv}),_.A("design:type",Boolean)],hz.prototype,"isOnline",void 0);
_.N([_.h(),_.A("design:type",Object)],hz.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],hz.prototype,"downloadRenderData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],hz.prototype,"modernButtons",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],hz.prototype,"isDownloads",void 0);_.N([_.z("transferState"),_.h({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],hz.prototype,"downloadState",null);
_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],hz.prototype,"menuHidden",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hz.prototype,"dataChanged",null);_.N([_.Jv("transferState","downloadProgress","isOnline"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hz.prototype,"transferStateChanged",null);
_.N([_.O({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],hz);
_.m(hz,"ytd-grid-playlist-renderer",function(){if(I5w!==void 0)return I5w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return I5w=G},{mode:1});var qHT;var CJ=function(){return _.C.apply(this,arguments)||this};
_.T(CJ,_.C);CJ.prototype.configureRendererStamper=function(){return{"data.menu":zi,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u4.Object.defineProperties(CJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q,p,l;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(H=G.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(Z=this.data)==null?void 0:(Q=Z.thumbnail)==null?void 0:Q.vibrantColorPalette,darkColorPalette:(p=this.data)==null?void 0:(l=p.thumbnail)==null?void 0:l.darkColorPalette,experimentEnabled:!0}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],CJ.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],CJ.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],CJ.prototype,"data",void 0);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],CJ.prototype,"collectionStack",null);_.N([_.O({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],CJ);
_.m(CJ,"ytd-grid-radio-renderer",function(){if(qHT!==void 0)return qHT;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qHT=G},{mode:1});var SH7;var ix=function(){return _.C.apply(this,arguments)||this};
_.T(ix,_.C);ix.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
ix.prototype.computeNavigationEndpoint=function(G){return CZb(G==null?void 0:G.navigationEndpoint)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],ix.prototype,"ytdLockupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ix.prototype,"data",void 0);_.N([_.h({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],ix.prototype,"computedNavigationEndpoint",void 0);
_.N([_.O({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],ix);
_.m(ix,"ytd-grid-show-renderer",function(){if(SH7!==void 0)return SH7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SH7=G},{mode:1});var uFw;_.O0=function(G){this.playerClient=G};
_.BHa=function(G,H,Z){Z=Z===void 0?{}:Z;return G.playerClient.setOption("ad",H,Z)};
_.O0.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.O0.prototype.executeCommand=function(G,H){this.getOptions().includes("executeCommand")?_.BHa(this,"executeCommand",{command:G,layoutId:H}):_.MB("Calling executeCommand when adModule is not loaded")};var ak=function(){return _.C.apply(this,arguments)||this};
_.T(ak,_.C);ak.prototype.getLayoutId=function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
ak.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var G=_.UO(),H=this.getLayoutId(),Z=this.data.clickthroughEndpoint;G&&H&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(Q){(new _.O0(Q)).executeCommand(Z,H)}):_.N5(this.hostElement,"yt-navigate",{endpoint:Z})}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ak.prototype,"data",void 0);_.N([_.O({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],ak);
_.m(ak,"ytd-shopping-companion-item-renderer",function(){if(uFw!==void 0)return uFw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uFw=G},{mode:1});var J1d;var yH=function(){var G=_.C.apply(this,arguments)||this;G.isExpandableContent=!1;return G};
_.T(yH,_.C);_.u4.Object.defineProperties(yH.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.data)==null?void 0:G.price)||((H=this.data)==null?void 0:(Z=H.dealsData)==null?void 0:Z.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var G,H;if((G=this.data)!=null&&G.dealsData&&((H=this.data)==null||!H.priceReplacementText)){G=this.data.dealsData;var Z,Q,p;return((Z=G.salesData)==null?void 0:Z.originalPrice)||((Q=G.priceDropData)==null?void 0:Q.referencePrice)||((p=G.promotionData)==null?void 0:p.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var G,H;return(G=this.data)==null?void 0:(H=G.dealsData)==null?void 0:H.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],yH.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],yH.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yH.prototype,"isExpandableContent",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"showCta",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"ctaText",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"hasPriceTopPosition",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"hasPriceBottomPosition",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"useNewStyle",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"showPriceReplacementText",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"priceValue",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"showDeal",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"showAffiliateDisclaimer",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"useSaleStyle",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"useFromBrandCtaStyle",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"useFromVendorCtaStyle",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yH.prototype,"useShoppingCollectionCtaStyle",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],yH);
_.m(yH,"ytd-vertical-product-card-renderer",function(){if(J1d!==void 0)return J1d;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return J1d=G},{mode:1});var t1p;var ok=function(){return _.C.apply(this,arguments)||this};
_.T(ok,_.C);ok.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],ok.prototype,"ytdLockupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ok.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],ok);
_.m(ok,"ytd-grid-movie-renderer",function(){if(t1p!==void 0)return t1p;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return t1p=G},{mode:1});var kR2;var ma=function(){var G=_.C.apply(this,arguments)||this;G.roundedFix=_.V("web_enable_merch_item_rounding_fix");G.itemStyle="small-item";return G};
_.T(ma,_.C);ma.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,H,Z,Q,p=(H=_.X((G=this.data)==null?void 0:G.buttonCommand,_.Xs7))==null?void 0:(Z=H.item)==null?void 0:(Q=Z.notificationTextRenderer)==null?void 0:Q.successResponseText;p&&_.dNb(this.hostElement,p)}};
_.u4.Object.defineProperties(ma.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:G.isProductPlaceholder)!==void 0&&((H=this.data)==null?void 0:H.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ma.prototype,"roundedFix",void 0);_.N([_.h(),_.A("design:type",Object)],ma.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],ma.prototype,"itemStyle",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ma.prototype,"hasPrice",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ma.prototype,"hasPriceReplacementText",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ma.prototype,"hasAdditionalFeesText",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ma.prototype,"hasAffiliateDisclaimer",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ma.prototype,"isProductPlaceholder",null);
_.N([_.h(),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ma.prototype,"hideOpenInNewIcon",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ma.prototype,"ariaLabel",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],ma);
_.m(ma,"ytd-merch-shelf-item-renderer",function(){if(kR2!==void 0)return kR2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return kR2=G},{mode:1});_.RX(_.y(function(G){return _.J("button-card-view-model",{el:_.aX(_.$X(function(){return G.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return G.data().title},
role:"button"},_.J(_.u1,{model:{}}),_.J("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.J("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.J(_.k,{cond:function(){return G.data().image},
then:function(H){return _.J(_.ib,{data:H,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.J("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return G.data().title})))},"$b"),"button-card-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){G=_.oK(G,{className:void 0});var H=G.data;G=G.className;var Z=_.Kb(function(){return H().onTapCommand},void 0,"SXkP9e");
return _.J("ytd-shopping-item-card",{class:_.bb("ytdShoppingItemCardHost",G)},_.J(_.S8,{command:Z,className:"ytdShoppingItemCardHostLink"},_.J("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.J(_.SP,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(Q){return _.J(_.So,{data:Q.data,
aspectRatio:3})}})),_.J("div",null,_.J("p",{class:"ytdShoppingItemCardHostItemTitle"},_.J(_.Fe,{text:function(){return H().itemTitle}})),_.J("p",{class:"ytdShoppingItemCardHostPrice"},_.J(_.Fe,{text:function(){return H().priceOrStatus}})))))},"ac"),"ytd-shopping-item-card",{props:{data:_.b3,
className:_.b3}});var D9R={isAdsVideo:!0},d9w={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},eY7={showPlayerControls:!1,videoPreviewDurationMs:15E3},nWw={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},V1p={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,
hideScrubber:!0};var PV=null,e7o={};var $Nf="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(" "),U0={},XCv=(U0.FEwhat_to_watch="home",U0.FEhashtag="hashtag",U0.FEtrending="trending",U0.FEhistory="history",U0.SPunlimited="premium",U0.FEmemberships_and_purchases="paid_memberships",U0.SPredeem_code="redeem",U0.SPverify_location="locate",U0.SPminor_moment="minor_moment",
U0.FEmini_app_container="mini_app",U0.FEnews_destination="news",U0.SPopen_in_app="open_in_app",U0.FEexplore="explore",U0.FEsubscriptions="subscriptions",U0.FEsfv_audio_pivot="sfv_audio_pivot",U0.FEplaylist_aggregation="playlist_aggregation",U0);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");_.Yk("init");var $94=function(){},f5a=_.y(function(G){var H=G.data;
var Z=G.inlineMetadata;var Q=G.aspectRatio;var p=G.scrimStyle;var l=G.className;var q=G.useDefaultStyle;var u=G.titleStyle;var B=new $94,t=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",D=_.Kb(function(){return(q==null?0:q())?t==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),d=_.Kb(function(){return _.Uv(Z)||D()||!1},void 0,"SEL6Qd"),e=function(){return(p==null?void 0:p())!==void 0?p==null?void 0:p():1},
n=_.Kb(function(){return H().belowThumbnailMetadata||!d()},void 0,"KAqk1b");
G=_.tk({visibilityCallback:function(qX){var B3=H().onFirstVisible;qX&&B3&&_.zt(B3)},
showOption:{calledOnce:!0,state:"visible"}});var c=_.aX(),W={},M=_.bb(function(){return D(),"shortsLockupViewModelHostThumbnailContainer"},(W.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Uv(Q)===1},W.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Uv(Q)===2},W.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.V("web_shorts_2_by_3_lockups_study")&&!_.V("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
W)),r=_.Kb(function(){if(_.Uv(Q)===1)return 1;
_.Uv(Q);return 2},void 0,"Bg5Es"),w,x=function(){if(B){var qX;
(qX=w)==null||iL(qX);var B3;if(B.hostElement&&((B3=B.data)==null?0:B3.inlinePlayerData)){var fW,e2;qX=((fW=B.data)==null?0:(e2=fW.inlinePlayerData)==null?0:e2.enableAudioControl)?Object.assign({},V1p):Object.assign({},nWw);var $R,ie;(($R=B.data)==null?void 0:(ie=$R.inlinePlayerData)==null?void 0:ie.maxPlaybackLengthSec)!==void 0&&(qX.videoPreviewDurationMs=B.data.inlinePlayerData.maxPlaybackLengthSec*1E3);w=cV({mediaRenderer:B,lockupElement:B.hostElement,thumbnailElement:c.value,videoPreviewOpts:qX})}}};
_.yN(function(){B&&(B.data=H(),x())},"wo9C7e");
var U=_.Kb(function(){return H().thumbnail},void 0,"haijYd");
W=_.Kb(function(){return H().badge},void 0,"RpDeSe");
var R=_.Kb(function(){return H().onTap},void 0,"hOfuOb"),L={},H3={};
return _.J("ytm-shorts-lockup-view-model",{el:_.aX(function(qX){B&&(B.hostElement=qX)},x,G),
class:_.bb("shortsLockupViewModelHost",l)},_.J(_.kI,null,_.J(_.S8,{command:R,className:_.bb("shortsLockupViewModelHostEndpoint",(L.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!n()},L),"reel-item-endpoint",""),
ariaHidden:function(){return!d()},
tabIndex:function(){return d()?0:-1}},_.J("div",{el:c,
class:_.bb("shortsLockupViewModelHostThumbnailParentContainer",(H3.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!D()},H3))},_.J(_.k,{cond:U,
then:function(){return _.J("div",{class:M},_.J(_.ib,{data:function(){var qX;return(qX=U==null?void 0:U())!=null?qX:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.J(_.SP,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(qX){return _.J(_.So,{data:qX.data,
aspectRatio:function(){return r()},
disableRounding:function(){return D()}})}}),null),_.J(_.k,{cond:d,
then:function(){return _.J(X2G,{data:H,scrimStyle:e,useDefaultStyle:q,titleStyle:u})}}),_.J(_.SP,{data:W},{badgeViewModel:function(qX){return _.J(_.tz,{data:qX.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.J(_.k,{cond:function(){return d()&&H().menuOnTap},
then:function(){return _.J(c1t,{data:H,inlineMetadata:!0})}}),_.J(_.k,{cond:n,
then:function(){return _.J(THT,{data:H,useDefaultStyle:q,inlineMetadata:d})}})))},"cc"),X2G=_.y(function(G){var H=G.data;
var Z=G.scrimStyle;var Q=G.useDefaultStyle;var p=G.titleStyle;var l=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",q=Q&&_.V("web_hide_primary_text_for_pivot_panel"),u=_.Kb(function(){return(Q==null?0:Q())?l==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
G={};G=_.bb("shortsLockupViewModelHostInlineMetadata",(G.shortsLockupViewModelHostMetadataRounded=function(){return!u()},G.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(Z==null?void 0:Z())===3&&!_.V("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(Z==null?void 0:Z())===3&&_.V("enable_shorts_lockup_new_scrim")},G.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(Z==null?void 0:Z())===2||(Z==null?void 0:
Z())===4},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
var B={};return _.J("div",{class:G},_.J("h3",{class:_.bb("shortsLockupViewModelHostMetadataTitle",(B.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(Z==null?void 0:Z())===4},B.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return H().belowThumbnailMetadata},B.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(p==null?void 0:p())===1},B.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(p==null?void 0:p())===2},B)),
"aria-label":function(){return H().accessibilityText}},_.J(_.k,{cond:function(){var t;
return!((t=H().overlayMetadata)==null||!t.primaryText)&&!q},
then:function(){return _.J(_.Fe,{text:function(){var t;return(t=H().overlayMetadata)==null?void 0:t.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.J(_.k,{cond:function(){var t;
return(t=H().overlayMetadata)==null?void 0:t.secondaryText},
then:function(){return _.J(vWT,{data:H,scrimStyle:Z,className:void 0})}}))},"dc"),THT=_.y(function(G){var H=G.data;
var Z=G.useDefaultStyle;var Q=G.inlineMetadata;var p=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",l=_.Kb(function(){return(Z==null?0:Z())?p==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),q=_.aX(),u;
G=_.Hh(function(n){if(_.eP(_.du(n),q.value,["AVATAR-VIEW-MODEL"]))return!1;var c;(c=u)==null||c.click();return!1});
var B=_.Kb(function(){return H().belowThumbnailMetadata||H().overlayMetadata},void 0,"GwezKf"),t=function(){return H().menuOnTap&&!Q()},D=function(){var n;
return(n=B())==null?void 0:n.avatar},d={},e={};
return _.J("div",{class:_.bb(function(){return l()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(d.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!D()},d.shortsLockupViewModelHostOutsideMetadataHasMenu=t,d)),
"on:click":G,el:q,role:"presentation"},_.J(_.SP,{data:D},{avatarViewModel:function(n){return _.J("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.J(_.m9,{data:n.data}))}}),_.J("div",null,_.J("h3",{class:_.bb("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(e.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var n,c;
return!((n=B())==null?0:(c=n.primaryText)==null?0:c.content)},e.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=Q,e)),
role:"presentation"},_.J(_.S8,{ref:function(n){return void(u=n)},
command:function(){return H().onTap},
className:_.bb("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var n,c;return(n=B())==null?void 0:(c=n.primaryText)==null?void 0:c.content},
"aria-label":function(){return H().accessibilityText}},_.J(_.k,{cond:function(){var n;
return(n=B())==null?void 0:n.primaryText},
then:function(n){return _.J(_.Fe,{text:n,noEndpoints:!0,noStyleRuns:!0})}}))),_.J(_.k,{cond:function(){var n;
return(n=B())==null?void 0:n.secondaryText},
then:function(n){return _.J("div",{class:_.bb("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.J(_.Fe,{text:n,noStyleRuns:!0}))}})),_.J(_.k,{cond:t,
then:function(){return _.J(c1t,{data:H,inlineMetadata:!1})}}))},"ec"),vWT=_.y(function(G){var H=G.data;
var Z=G.scrimStyle;G=G.className;var Q={};return _.J("div",{class:_.bb((Q.shortsLockupViewModelHostMetadataSubhead=function(){return(Z==null?void 0:Z())!==4},Q.shortsLockupViewModelHostMetadataSubheadNew=_.V("enable_shorts_lockup_new_scrim"),Q.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(Z==null?void 0:Z())===4},Q),G),
"aria-hidden":"true"},_.J(_.Fe,{text:function(){var p;return(p=H().overlayMetadata)==null?void 0:p.secondaryText},
noStyleRuns:!0}))},"fc"),c1t=_.y(function(G){var H=G.data;
var Z=G.inlineMetadata;G={};G=_.bb((G.shortsLockupViewModelHostInlineMetadataMenu=function(){return Z()},G.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!Z()},G.shortsLockupViewModelHostShowOverPlayer=function(){return!0},G),"image-overlay-text");
return _.J("div",{class:G},_.J(_.tf,{data:function(){return{style:Z()?"overlay":"mono",accessibilityLabel:H().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(Q){Q.preventDefault();Q.stopPropagation();var p=_.vT({elementsCommand:H().menuOnTap,forceNewState:!0});if(p==null?0:p.onclick)p.onclick(Q)}}},
iconName:"MORE_VERT"}))},"gc");var WJ2=_.y(function(G){var H=G.data;var Z=G.inlineMetadata;var Q=G.aspectRatio;var p=G.scrimStyle;var l=G.className;var q=G.useDefaultStyle;G=_.Kb(function(){var u=H().entityId;return u?u.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.J("ytm-shorts-lockup-view-model-v2",{class:_.bb("shortsLockupViewModelHost",l)},_.J(_.eo,{contentId:G,aspectRatio:function(){return(Q==null?void 0:Q())===1?1:(Q==null?void 0:Q())===2?2:4}},function(){return _.J(f5a,{data:H,
inlineMetadata:Z,aspectRatio:Q,scrimStyle:p,className:l,useDefaultStyle:q})}))},"hc");_.RX(WJ2,"ytm-shorts-lockup-view-model-v2",{props:{data:_.oX,inlineMetadata:_.oX,aspectRatio:_.oX,scrimStyle:_.oX,className:_.oX,useDefaultStyle:_.oX,titleStyle:_.oX}});var zY_=16/9*210,Rk=function(){var G=_.C.apply(this,arguments)||this;G.isExpandableContent=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.buttonClasses=["arrow"];G.isSearch=!1;G.disableScrollEventListener=!1;G.containsLockup=!1;G.overrideArrowPositionForProductCard=!1;G.overrideArrowPositionForShoppingItemCard=!1;G.overrideArrowPositionForReelItems=!1;G.overrideArrowPositionForGridMovie=!1;G.overrideArrowPositionToCenter=!1;G.isSearchPostShelf=!1;G.overrideArrowPositionForMixedShelf=!1;G.overrideArrowPositionForMixedShelfShortsOnly=
!1;G.hasBigThumbsReelItems=!1;G.shouldUseMixedListHeight=!1;G.shouldUseShortsListHeight=!1;G.gridVideoWidth=0;G.isSearchVodShelf=!1;G.disableWheelScroll=!1;G.sizing="COMPACT";G.shortsLockupAspectRatio=0;return G};
_.T(Rk,_.C);_.g=Rk.prototype;
_.g.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]]"}}}}};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.V("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.g.computeInitialCountNumber=function(G){if(!G)return 6;var H=G.items.some(function(l){return!!l.topicRecommendationsChipRenderer}),Z=G.items.some(function(l){return!!l.displayAdRenderer}),Q=this.computeShouldListItemsHaveEqualHeight(G),p=G.items.some(function(l){return!!l.gridPlaylistRenderer});
G=G.items.some(function(l){return!!l.shoppingItemCardViewModel});
return H?9:Z?8:p||Q?10:G?7:6};
_.g.computeContainsPost=function(G){return!!G&&!!G.items&&G.items.some(function(H){return!!H.postRenderer})};
_.g.computeContainsLockup=function(){if(_.V("web_horizontal_list_lockup_arrow_killswitch"))return!1;var G,H;return(G=this.data)==null?void 0:(H=G.items)==null?void 0:H.some(function(Z){return!!Z.lockupViewModel})};
_.g.maybeUpdateLockupAspectRatio=function(){var G,H;if(this.computeContainsLockup()&&((G=this.data)==null?0:(H=G.items)==null?0:H.length)){var Z;G=mSX((Z=this.data.items[0].lockupViewModel)==null?void 0:Z.contentType,this.data.force16By9ThumbnailAspectRatio);Z=yTR(G);Z=this.computeLockupWidth()/Z;_.ZI(this.hostElement,{"--yt-horizontal-list-content-height":Z+"px"})}};
_.g.computeOverrideArrowPositionForProductCard=function(G){if(this.isExpandableContent)return!1;var H;return!!(G==null?0:(H=G.items)==null?0:H.some(function(Z){return!!Z.verticalProductCardRenderer}))};
_.g.computeOverrideArrowPositionForShoppingItemCard=function(G){var H;return!!(G==null?0:(H=G.items)==null?0:H.some(function(Z){return!!Z.shoppingItemCardViewModel}))};
_.g.computeOverrideArrowPositionForReelItemRenderer=function(G){return this.containsReelItemRenderer(G)};
_.g.computeHasBigThumbsReelItems=function(G,H){return G&&this.containsReelItemRenderer(H)};
_.g.computeShouldListItemsHaveEqualHeight=function(G){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(G==null?void 0:G.itemSizeConstraint)};
_.g.computeShouldListItemsHaveShortsHeight=function(G){return this.computeShouldListItemsHaveEqualHeight(G)&&!this.containsGridVideoRenderer(G)};
_.g.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.g.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.g.containsReelItemRenderer=function(G){var H;return!!(G==null?0:(H=G.items)==null?0:H.some(function(Z){return!(!Z.reelItemRenderer&&!Z.shortsLockupViewModel)}))};
_.g.containsGridVideoRenderer=function(G){var H;return!!(G==null?0:(H=G.items)==null?0:H.some(function(Z){return!!Z.gridVideoRenderer||!!Z.lockupViewModel}))};
_.g.computeContainsGridMovieRenderer=function(G){var H;return!!(G==null?0:(H=G.items)==null?0:H.some(function(Z){return!!Z.gridMovieRenderer}))};
_.g.computeOverrideArrowPositionToCenter=function(G){return this.computeIsSearchPostShelf(G)};
_.g.computeIsSearchPostShelf=function(G){var H;return!!(G==null?0:(H=G.items)==null?0:H.some(function(Z){var Q,p;return((p=(Q=Z.postRenderer)==null?void 0:Q.surface)!=null?p:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.g.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(G){var H;return!!(G==null?0:(H=G.items)==null?0:H.some(function(Z){var Q,p,l;return((l=(Q=Z.backgroundPromoRenderer)==null?void 0:(p=Q.style)==null?void 0:p.value)!=null?l:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.g.computeIsSearchVodShelf=function(G,H){return G&&this.containsGridVideoRenderer(H)};
_.g.computeDisableWheelScroll=function(G,H){return this.computeIsSearchVodShelf(G,H)};
_.g.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.g.computeShortsLockupAspectRatio=function(){return 1};
_.g.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.ZI(this.hostElement,{"--ytd-reel-item-thumbnail-height":zY_+"px"})};
Rk.prototype.dataChanged=Rk.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.uU.YtdHorizontalListBehavior),_.A("design:type",Object)],Rk.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Rk.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],Rk.prototype,"isExpandableContent",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"hideShelfHeader",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"engagementPanel",void 0);_.N([_.h(),_.A("design:type",Array)],Rk.prototype,"buttonClasses",void 0);_.N([_.h(),_.A("design:type",Object)],Rk.prototype,"isSearch",void 0);
_.N([_.h(),_.A("design:type",Object)],Rk.prototype,"disableScrollEventListener",void 0);_.N([_.h({computed:"computeInitialCountNumber(data)"}),_.A("design:type",Number)],Rk.prototype,"initialCount",void 0);_.N([_.h({computed:"computeContainsPost(data)"}),_.A("design:type",Boolean)],Rk.prototype,"supportComponentResize",void 0);_.N([_.h({computed:"computeContainsPost(data)"}),_.A("design:type",Boolean)],Rk.prototype,"containsPost",void 0);
_.N([_.h({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"containsLockup",void 0);_.N([_.h({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Rk.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.N([_.h({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"overrideArrowPositionForProductCard",void 0);_.N([_.h({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.N([_.h({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"overrideArrowPositionForReelItems",void 0);_.N([_.h({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"overrideArrowPositionForGridMovie",void 0);
_.N([_.h({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"overrideArrowPositionToCenter",void 0);_.N([_.h({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"isSearchPostShelf",void 0);_.N([_.h({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.N([_.h({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.N([_.h({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"hasBigThumbsReelItems",void 0);
_.N([_.h({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"shouldUseMixedListHeight",void 0);_.N([_.h({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"shouldUseShortsListHeight",void 0);_.N([_.h({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"gridVideoWidth",void 0);
_.N([_.h({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"isSearchVodShelf",void 0);_.N([_.h({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.A("design:type",Object)],Rk.prototype,"disableWheelScroll",void 0);_.N([_.h({computed:"computeSizing(isSearch)"}),_.A("design:type",Object)],Rk.prototype,"sizing",void 0);
_.N([_.h({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.A("design:type",Object)],Rk.prototype,"shortsLockupAspectRatio",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rk.prototype,"dataChanged",null);
_.m(Rk,"yt-horizontal-list-renderer",function(){if(Kzt===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);Kzt=G}G=Kzt;return G},{mode:1});var KJa=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
KJa.prototype.subscribe=function(G,H){var Z=this.subscriptions.get(G);if(!Z)return function(){};
Z.add(H);return function(){Z.delete(H)}};
KJa.prototype.unsubscribe=function(G,H){(G=this.subscriptions.get(G))&&G.delete(H)};
KJa.prototype.publish=function(G,H){H=H===void 0?{}:H;(G=this.subscriptions.get(G))&&G.forEach(function(Z){Z(H)})};var M1x;var jea=[10,12,14,16,18,20,24,28,32,36],Pt2=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],NA=function(){var G=_.C.apply(this,arguments)||this;G.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";G.hideOverflow=!1;G.useRoboto=!1;G.fontClass="";G.overflown=!1;G.actionMap={"yt-window-resized":"resize"};return G};
_.T(NA,_.C);_.g=NA.prototype;
_.g.attached=function(){var G=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();_.q2(this,function(){G.resize()});
if(!_.Yj){var H,Z,Q;(H=document)==null||(Z=H.fonts)==null||(Q=Z.ready)==null||Q.then(function(){G.resize()})}};
_.g.dataChanged=function(){this.resize()};
_.g.guideIsExpandedChanged=function(){this.resize()};
_.g.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 G=this.getMaxNumLines(),H=this.getMinFont(),Z=this.getMaxFont(),Q=this.useRoboto?jea:Pt2;for(Q=Q.filter(function(l){return l<=Z&&l>=H});Q.length>1;){var p=Math.floor(Q.length/2);
this.updateFontSize(Q[p]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=G)Q=Q.slice(p,Q.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>G)Q=Q.slice(0,p);else break}this.updateFontSize(Q[Q.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(G)}};
_.g.handleOverflow=function(G){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>G&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",G.toString()))};
_.g.updateFontSize=function(G){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+G;this.textNode.classList.add(this.fontClass)};
_.g.getMaxFont=function(){var G=this.useRoboto?jea:Pt2;G=G[G.length-1];return this.maxFontSize&&this.maxFontSize<=G?this.maxFontSize:G};
_.g.getMinFont=function(){var G=(this.useRoboto?jea:Pt2)[0];return this.minFontSize&&this.minFontSize>=G?this.minFontSize:G};
_.g.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.g.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.g.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.yn(this.text).split("\n").length-1:Infinity};
_.g.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("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
NA.prototype.guideIsExpandedChanged=NA.prototype.guideIsExpandedChanged;NA.prototype.dataChanged=NA.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],NA.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],NA.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],NA.prototype,"text",void 0);
_.N([_.h(),_.A("design:type",String)],NA.prototype,"fontFamily",void 0);_.N([_.h(),_.A("design:type",Number)],NA.prototype,"maxWidth",void 0);_.N([_.h(),_.A("design:type",Number)],NA.prototype,"maxHeight",void 0);_.N([_.h(),_.A("design:type",Number)],NA.prototype,"maxFontSize",void 0);_.N([_.h(),_.A("design:type",Number)],NA.prototype,"minFontSize",void 0);_.N([_.h(),_.A("design:type",Number)],NA.prototype,"maxLines",void 0);_.N([_.h(),_.A("design:type",Object)],NA.prototype,"hideOverflow",void 0);
_.N([_.h({selector:_.M8j}),_.A("design:type",Boolean)],NA.prototype,"guideIsExpanded",void 0);_.N([_.q6("#container"),_.A("design:type",HTMLElement)],NA.prototype,"containerNode",void 0);_.N([_.q6("#text"),_.A("design:type",HTMLElement)],NA.prototype,"textNode",void 0);_.N([_.Jv("text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NA.prototype,"dataChanged",null);
_.N([_.Jv("guideIsExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NA.prototype,"guideIsExpandedChanged",null);_.N([_.O({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],NA);
_.m(NA,"yt-dynamic-sizing-formatted-string",function(){if(M1x!==void 0)return M1x;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return M1x=G},{mode:1});var r1G;_.w2w=function(G){_.sj.call(this,G)};
_.T(_.w2w,_.sj);var hYd=function(G){_.sj.call(this,G)};
_.T(hYd,_.w2w);var Az=function(){return _.C.apply(this,arguments)||this};
_.T(Az,_.C);Az.prototype.onTapSuspendedChannel=function(){var G;if((G=this.data)!=null&&G.serviceEndpoint){var H,Z;(G=(Z=_.X((H=this.data)==null?void 0:H.serviceEndpoint,_.Hx))==null?void 0:Z.url)?_.zz(G,void 0,void 0,window.top):(H=new hYd("Did not handle suspended account tap. No appealUrl."),_.me(H))}else H=new hYd("Did not handle suspended account tap. No serviceEndpoint."),_.me(H)};
Az.prototype.onTap=function(){var G=this,H=_.gr(),Z,Q=(Z=_.pX(H,{veType:7116}))!=null?Z:void 0;_.jQ(H,{visualElement:Q});_.v$();this.saveRoleText();var p;if((p=this.data)==null?0:p.youtubeSuspended)this.onTapSuspendedChannel();else{var l=!1,q,u;(H=(u=_.X((q=this.data)==null?void 0:q.serviceEndpoint,_.KST))==null?void 0:u.supportedTokens)&&H.forEach(function(B){if(B.accountSigninToken)if(l=!0,G.onAccountItemTap)G.onAccountItemTap(B.accountSigninToken.signinUrl);else _.zz(B.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!l){if(q=this.get("serviceEndpoint",this.data))l=!0,this.ytComponentBehavior.resolveCommand(q);l||_.UN(new hYd("Did not handle account switch tap. No token."))}}};
Az.prototype.saveRoleText=function(){if(this.data){var G=this.data,H=G.channelDelegationRole;if(H){var Z,Q=(Z=_.X(G==null?void 0:G.serviceEndpoint,_.KST))==null?void 0:Z.supportedTokens;if(!Q){var p,l,q,u;Q=(p=_.X(G==null?void 0:G.serviceEndpoint,_.Pe))==null?void 0:(l=p.popup)==null?void 0:(q=l.confirmDialogRenderer)==null?void 0:(u=q.confirmButton)==null?void 0:u.buttonRenderer;var B;Q=(B=_.X(Q==null?void 0:Q.command,_.Ft))==null?void 0:B.commands;if(!Q)return;var t;Q=(t=_.X(Q[1],_.KST))==null?
void 0:t.supportedTokens}if(Q){B=void 0;t=_.I(Q);for(Q=t.next();!Q.done;Q=t.next())if(Q=Q.value,Q.datasyncIdToken){B=Q.datasyncIdToken.datasyncIdToken;break}if(B){var D;a:{if(_.Azv()&&(t=_.oKX(B+"::pom"))){t=new zP(t);break a}t=void 0}(D=t)==null||D.set("role_text",H);if((lEo?lEo:window.location).href.indexOf("studio")!==-1&&(D=xAM())){t=D.src?(new URL(D.src)).origin:"*";var d;(d=D.contentWindow)==null||d.postMessage({action:"save_pom_role",datasyncId:B,roleText:H},t)}}}}}};
_.u4.Object.defineProperties(Az.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.accountPhoto)==null?void 0:H.thumbnails;return Z&&Z.length>0&&(Z[0].height===36||Z[0].height===48)?Z[0].height:40}}});
Az.prototype.onTap=Az.prototype.onTap;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Az.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Az.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!1}),_.A("design:type",Function)],Az.prototype,"onAccountItemTap",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Az.prototype,"enableRingForActiveAccount",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Az.prototype,"thumbnailSize",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Az.prototype,"onTap",null);_.N([_.O({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Az);
_.m(Az,"ytd-account-item-renderer",function(){if(r1G!==void 0)return r1G;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return r1G=G},{mode:1});var Ct4;var xz=function(){return _.C.apply(this,arguments)||this};
_.T(xz,_.C);xz.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.tp().resolve(_.Dk).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xz.prototype,"data",void 0);_.N([_.O({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],xz);
_.m(xz,"ytd-identity-chip-renderer",function(){if(Ct4!==void 0)return Ct4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ct4=G},{mode:1});var iz2;var Oz_;var a5G;var y1a;var LJ=function(){var G=_.C.apply(this,arguments)||this;G.richItemMinWidth=_.eA("wn_grid_min_item_width",310);G.isShorts=!1;G.isWatchNext=!1;G.isExploreHub=!1;return G};
_.T(LJ,_.C);_.u4.Object.defineProperties(LJ.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var G=[],H=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.ZI(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var Z;if(((Z=this.data)==null?0:Z.rows)&&H)for(H*=this.data.rows,Z=0;Z<H;Z++)G.push({});return G}}});
_.N([_.v(_.Up),_.A("design:type",Object)],LJ.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],LJ.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.cv,value:3}),_.A("design:type",Number)],LJ.prototype,"itemsPerRow",void 0);_.N([_.h({selector:_.KHv,value:6}),_.A("design:type",Number)],LJ.prototype,"slimItemsPerRow",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Number)],LJ.prototype,"richItemMinWidth",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],LJ.prototype,"miniMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],LJ.prototype,"isShorts",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],LJ.prototype,"isWatchNext",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],LJ.prototype,"isExploreHub",void 0);
_.N([_.z("isExploreHub"),_.h({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],LJ.prototype,"shimmerAnimation",null);_.N([_.z("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.A("design:type",Array),_.A("design:paramtypes",[])],LJ.prototype,"cardItems",null);_.N([_.O({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],LJ);
_.oWw=_.xQ()(LJ,"ytd-ghost-grid-renderer",function(){if(y1a===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);y1a=G}G=y1a;return G},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.RX(_.y(function(G){var H=_.oK(G,{numberOfComments:3}).numberOfComments,Z=_.oK(G,{isInitialLoad:!1}).isInitialLoad,Q=_.oK(G,{engagementPanel:!1}).engagementPanel,p=function(){return Math.min(Number(H==null?void 0:H())||20,20)};
return _.J("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.J(_.k,{cond:function(){return!(Q==null?0:Q())&&(Z==null?void 0:Z())},
then:function(){return _.J("div",{class:"ytGhostCommentsComments"},_.J("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.J("div",{class:_.bb("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.J("div",{class:_.bb("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.J("div",{class:"ytGhostCommentsGhostCard"},_.J("div",{class:"ytGhostCommentsAvatar"},_.J("div",{class:"ytGhostCommentsCircle"})),_.J("div",{class:"ytGhostCommentsComments"},_.J("div",{class:"ytGhostCommentsMeta"},
_.J("div",{class:_.bb("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.J("div",{class:_.bb("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.J("div",{class:"ytGhostCommentsComments"},_.J(_.Cl,{each:function(){return Array((p==null?void 0:p())||3)}},function(){return _.J("div",{class:"ytGhostCommentsGhostCard"},_.J("div",{class:"ytGhostCommentsAvatar"},_.J("div",{class:"ytGhostCommentsCircle"})),_.J("div",{class:"ytGhostCommentsHost"},_.J("div",{class:"ytGhostCommentsMeta"},
_.J("div",{class:_.bb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.J("div",{class:_.bb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.J("div",{class:_.bb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.J("div",{class:"ytGhostCommentsGhostLikeDislike"},_.J("div",{class:_.bb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.J("div",{class:_.bb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ic"),"yt-ghost-comments",{props:{numberOfComments:_.b3,
isInitialLoad:_.b3,engagementPanel:_.b3},unsafeExternallySettableAttributes:new Set(["hidden"])});_.eQ("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var E0=function(){var G=_.C.apply(this,arguments)||this;G.isOverridable=!1;G.spinnerActive=!1;G.showButton=!1;G.isCommentsSection=!1;G.engagementPanel=!0;G.isShortsGrid=!1;G.isShortsPage=!1;G.isWatchPage=!1;G.originalShowButton=!1;G.endOfList=!1;return G};
_.T(E0,_.C);_.g=E0.prototype;_.g.resetIntersectionObserver=function(){var G;(G=this.observer)==null||G.disconnect();this.observer=void 0};
_.g.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var G,H;((G=this.data)==null?void 0:G.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((H=this.data)==null?0:H.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.g.initializeIntersectionObserver=function(){var G=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(H){H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z.value.isIntersecting&&(G.triggerContinuation(),G.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.g.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{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]]"}}}}}};
_.g.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var G;((G=this.data)==null?0:G.continuationEndpoint)&&(G=_.X(this.data.continuationEndpoint,_.vh))&&this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:G}}))};
_.g.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.g.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.g.onServiceRequestCompleted=function(G,H){if(!_.V("kevlar_hide_spinner_on_empty_continuation_killswitch")){var Z;(Z=H.actions)!=null&&Z.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.g.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.g.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.g.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.g.numberOfGhostCommentsChanged=function(){var G=3;if(this.engagementPanel){var H,Z,Q;G=Math.floor(((((H=this.hostElement)==null?void 0:(Z=H.parentElement)==null?void 0:(Q=Z.parentElement)==null?void 0:Q.scrollHeight)||108)-108)/108);G=this.isInitialLoad?Math.max(G,3):3}H=[].concat(_.OP(this.hostElement.querySelectorAll("yt-ghost-comments")));H=_.I(H);for(Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.numberOfComments=G,Z.isInitialLoad=this.isInitialLoad,Z.engagementPanel=this.engagementPanel};
_.g.detached=function(){this.resetIntersectionObserver()};
_.u4.Object.defineProperties(E0.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
E0.prototype.numberOfGhostCommentsChanged=E0.prototype.numberOfGhostCommentsChanged;E0.prototype.continuationTriggerOffsetChanged=E0.prototype.continuationTriggerOffsetChanged;E0.prototype.showButtonChanged=E0.prototype.showButtonChanged;E0.prototype.onYtServiceRequestCompletedForButtonRenderer=E0.prototype.onYtServiceRequestCompletedForButtonRenderer;E0.prototype.onServiceRequestCompleted=E0.prototype.onServiceRequestCompleted;E0.prototype.onYtServiceRequestSentForButtonRenderer=E0.prototype.onYtServiceRequestSentForButtonRenderer;
E0.prototype.observeData=E0.prototype.observeData;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.xy.YtVisibilityBehavior),_.A("design:type",Object)],E0.prototype,"ytVisibilityBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],E0.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],E0.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],E0.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],E0.prototype,"isOverridable",void 0);_.N([_.h(),_.A("design:type",Object)],E0.prototype,"spinnerActive",void 0);_.N([_.h(),_.A("design:type",Object)],E0.prototype,"showButton",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],E0.prototype,"isCommentsSection",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],E0.prototype,"engagementPanel",void 0);_.N([_.h(),_.A("design:type",Object)],E0.prototype,"isShortsGrid",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.rfe}),_.A("design:type",Object)],E0.prototype,"isShortsPage",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.P1e}),_.A("design:type",Object)],E0.prototype,"isWatchPage",void 0);_.N([_.h(),_.A("design:type",Number)],E0.prototype,"continuationTriggerOffset",void 0);
_.N([_.h(),_.A("design:type",Object)],E0.prototype,"endOfList",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],E0.prototype,"isInitialLoad",void 0);_.N([_.q6("ytd-button-renderer"),_.A("design:type",_.SE)],E0.prototype,"buttonRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],E0.prototype,"buttonOverrides",void 0);
_.N([_.h(),_.z("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.A("design:type",Object),_.A("design:paramtypes",[])],E0.prototype,"showGhostCardComments",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"observeData",null);
_.N([_.lq("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],E0.prototype,"onServiceRequestCompleted",null);
_.N([_.lq("yt-service-request-completed-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.N([_.Jv("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"showButtonChanged",null);
_.N([_.Jv("continuationTriggerOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"continuationTriggerOffsetChanged",null);_.N([_.gx("isInitialLoad","engagementPanel"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E0.prototype,"numberOfGhostCommentsChanged",null);_.N([_.O({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],E0);
_.m(E0,"ytd-continuation-item-renderer",function(){if(a5G!==void 0)return a5G;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return a5G=G},{mode:1});var m9a;var Yz=function(){var G=_.C.apply(this,arguments)||this;G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.downloadState="DOWNLOAD_STATE_UNKNOWN";G.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";G.offlineVideoPolicyExpirationTimestamp=0;G.downloadedVideoPlaybackPosition=0;return G};
_.T(Yz,_.C);Yz.prototype.dataChanged=function(){var G;this.videoData=_.X((G=this.data)==null?void 0:G.renderer,gOt);this.transferStateChanged()};
Yz.prototype.downloadProgressChanged=function(){if(this.entityInfo){var G=Object.assign({},this.videoData),H=Snf(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Z=H.publishedTimeText,Q=H.badges;G.shortViewCountText=H.shortViewCountText;G.publishedTimeText=Z;G.badges=Q;this.set("videoData",G)}};
Yz.prototype.transferStateChanged=function(){if(this.entityInfo){var G=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",H=_.uX(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!SS(this.entityInfo.policyEntity),Z=Object.assign({},this.videoData),Q=Snf(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),p=Q.publishedTimeText,l=Q.badges;Z.shortViewCountText=
Q.shortViewCountText;Z.publishedTimeText=p;Z.badges=l;Z.isDisabled=H;Z.isWatched=this.downloadedVideoPlaybackPosition>0;Z.navigationEndpoint=H?void 0:wNR(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var q;G&&((q=this.videoData)==null?0:q.videoId)&&!_.V("dl_resume_click_killswitch")&&(Z.isDisabled=!1,Z.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});Z.thumbnailOverlays=IKR(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",Z)}};
Yz.prototype.transferStateChanged=Yz.prototype.transferStateChanged;Yz.prototype.downloadProgressChanged=Yz.prototype.downloadProgressChanged;Yz.prototype.dataChanged=Yz.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Yz.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Yz.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],Yz.prototype,"videoData",void 0);_.N([_.h({selector:KN,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],Yz.prototype,"downloadProgress",void 0);_.N([_.h(),_.A("design:type",Number)],Yz.prototype,"relativeDateReference",void 0);_.N([_.h({selector:_.Wv,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],Yz.prototype,"transferState",void 0);
_.N([_.h({selector:GZe,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],Yz.prototype,"downloadState",void 0);_.N([_.h({selector:Oie,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],Yz.prototype,"offlinePolicyAction",void 0);_.N([_.h({selector:a7W,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],Yz.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.N([_.h({selector:jS,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],Yz.prototype,"downloadedVideoPlaybackPosition",void 0);_.N([_.h({selector:ogR,selectorArgs:["videoData.videoId"]}),_.A("design:type",Object)],Yz.prototype,"entityInfo",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Yz.prototype,"isDownloading",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yz.prototype,"dataChanged",null);
_.N([_.Jv("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yz.prototype,"downloadProgressChanged",null);_.N([_.Jv("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Yz.prototype,"transferStateChanged",null);
_.N([_.O({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Yz);
_.m(Yz,"ytd-downloaded-video-grid-video-renderer",function(){if(m9a!==void 0)return m9a;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return m9a=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var U92;var Ff=function(){};
Ff.prototype.resolve=function(G,H){var Z=this;return _.S(function(Q){return Q.yield(Z.resolveCommand(G,H),0)})};var RYR,bx;RYR=$CM(function(G){return G.targetId},{shouldPersist:!1});
bx=RYR.updateData;_.NHt=RYR.useUpdatableData;var A1T,x94;A1T=$CM(function(G){return G.targetId});
x94=A1T.updateData;_.LJN=A1T.useUpdatableData;var EWd=vsf.bind(null,bx),YH7=vsf.bind(null,x94);(function(G,H,Z){var Q=_.X(Z==null?void 0:Z.updatedRenderer,_.iia);return Q?G({targetId:H},function(){return Q}):!1}).bind(null,bx);var Gf=function(){};
_.T(Gf,Ff);Gf.prototype.resolveCommand=function(G){var H;return _.S(function(Z){H=_.X(G,_.jDR);if(!H)return Z.return();EWd(H.targetId,H);_.K0(Z)})};var HR=function(){var G=_.uq.apply(this,arguments)||this;G.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return G};
_.T(HR,_.uq);_.g=HR.prototype;_.g.configureContinuationPathMap=function(){return{}};
_.g.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.g.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.g.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.g.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.g.handleAppendContinuationItemsAction=function(G){var H=_.X(G,_.jB_);if(this.data&&this.data.targetId&&H&&this.continuationPathMap&&H.targetId===this.data.targetId){var Z=QSe(G),Q=Z&&this.continuationPathMap[Z];if(Q&&Z)if(G=this.get(Q,this.data)){a:{for(Z=0;Z<G.length;Z++){var p=G[Z],l=void 0,q=!!_.X((l=_.X(p,ebG))==null?void 0:l.content,_.Zr2);if(_.X(p,_.Oz)||q)break a}Z=G.length}Q="data."+Q;H.continuationItems?Z===G.length-1?(this.pop(Q),this.push.apply(this,[Q].concat(_.OP(H.continuationItems)))):
Z===G.length?this.push.apply(this,[Q].concat(_.OP(H.continuationItems))):this.splice.apply(this,[Q,Z,1].concat(_.OP(H.continuationItems))):this.splice(Q,Z,1);(_.V("web_enable_voting_animation")||_.V("enable_music_web_cairo_voting_animation"))&&_.N5(this.hostElement,"yt-append-continuation-items-action-finished");_.N5(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Rp(new _.C$("append continuation items does not exist",Z));else _.Rp(new _.C$("append continuation path does not exist",
Z))}};
_.g.handleReloadContinuationItemsCommand=function(G){var H=_.X(G,_.jDR);if(this.data&&H){if(_.V("web_client_explore_hub")||_.V("web_explore_hub_on_hover")||_.V("web_client_explore_hub_on_hover"))try{_.tp().resolve(Gf).resolveCommand(G)}catch(l){}if(this.data.targetId&&this.continuationPathMap&&H.targetId===this.data.targetId&&(!_.V("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||H.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var Z,Q=(Z=H.slot)==null?void 0:
Z.replace("RELOAD_CONTINUATION_SLOT_","");Z=(G=QSe(G)+"-"+(Q==null?void 0:Q.toLowerCase()))&&this.continuationPathMap[G];if(!Z||!G||!Q)_.Rp(new _.C$("reload continuation path does not exist",G));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(H)){if(H.replaceWithFirstItem){var p;this.set("data."+Z,((p=H.continuationItems)==null?0:p.length)?H.continuationItems[0]:{})}else this.set("data."+Z,H.continuationItems?H.continuationItems:[]);this.continuationIsReloading=
!1;_.N5(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.g.handleShowReloadUiCommand=function(G){G=_.X(G,AON);var H;((H=this.data)==null?0:H.targetId)&&(G==null?0:G.targetId)&&G.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
HR.prototype.observeData=HR.prototype.observeData;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],HR.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],HR.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],HR.prototype,"data",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],HR.prototype,"continuationIsReloading",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HR.prototype,"observeData",null);_.N([_.BG()],HR);_.sF=[_.RT.YtComponentBehavior,_.V6.YtActionHandlerBehavior,HR.prototype];_.ZE={};_.ZE.YtNextContinuationBehavior=[_.Q6.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",_.pH(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.pH(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(G,H){G.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,H,{}):(G={locationRetrieved:function(Z){this.makeNextContinuationRequest_(Z,H,{})}.bind(this)},_.N5(this.hostElement,"yt-retrieve-location",G))},
makeNextContinuationRequest_:function(G,H,Z){_.TD("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();G=H(G);var Q;this.canUseContextualNetworkManager_()&&(Q=this.getNetworkManager());Q||(Q=_.tp().resolve(_.J0));H=_.Ph.instance;if(_.xI("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&H){Q=_.U7([G.startsWith("/")?G.substr(1):G]);var p,l;Z=_.GP(H,{},Q,Z==null?void 0:(p=Z.context)==null?void 0:(l=p.clickTracking)==null?void 0:l.clickTrackingParams).then(function(q){return{response:q}})}else Z=
this.nextContinuation.usePost?Q.postData(G,Z):Q.fetchData(G);
Z.then(this.updateNextContinuationData_.bind(this,G));this.pendingContinuationRequest_=Z;this.startListeningForNavigate_()},
updateNextContinuationData_:function(G,H){var Z=this;_.TD("ncl");this.pendingContinuationRequest_=void 0;if(H){var Q={};this.nextContinuation&&(Q=this.nextContinuation);if(H.response&&H.response.continuationContents&&H.response.continuationContents[Q.continuationType]){G=H.response.continuationContents[Q.continuationType];var p=Q.header||"data.header",l=G[Q.responseHeaderKey||"header"];l&&this.set(p,l);p=Q.contentsArray||"data.contents";l=this.getContents_(G,Q.responseContentsKey||"contents")||[];
this.pathExists_(p)?(l.unshift(p),this.push.apply(this,l)):this.set(p,l);l&&(W72(_.gr(),H.response,this.hostElement,function(q){_.AZ(Z.hostElement,"yt-store-grafted-ve-action",[q])}),_.N5(this.hostElement,"yt-next-continuation-data-updated",{continuationData:H,
page:this,contentsArray:p}));this.set(Q.continuationsArray||"data.continuations",G[Q.responseContinuationsKey||"continuations"]||[])}else H.reload?_.Rp(new _.C$("Reloading from continuation is unsupported")):H.responseContext&&H.responseContext.errors||(delete H.xsrf_token,delete H.timing,delete H.endpoint,delete H.csn,H.responseContext&&delete H.responseContext.serviceTrackingParams,p={request:_.l0(G,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(H).sort()},H.response&&(p.responseContentKeys=
Object.keys(H.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(p.continuationType=this.nextContinuation.continuationType.substr(0,256)),H=new _.C$("Malformed continuation",p),G.indexOf("/comment_service_ajax")==0?_.Rp(H):_.me(H)),this.set(Q.continuationsArray||"data.continuations",[])}else _.UN(new _.C$("Missing continuation response",G))},
getContents_:function(G,H){H=H.split(".");return _.oN.getValueByKeys(G,H)},
pathExists_:function(G){var H=this;G=G.toString().split(".");for(var Z=0;Z<G.length;Z++)if(H=H[G[Z]],H===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var FJR;var bzw;var QK=function(){var G=_.C.apply(this,arguments)||this;G.triggered_=!1;return G};
_.T(QK,_.C);_.g=QK.prototype;_.g.attached=function(){this.maybeTriggerAutoload()};
_.g.detached=function(){this.hasBeenTriggered_=!1};
_.g.onPrescanVisible=function(){this.onShow()};
_.g.onShow=function(){this.showButton||this.trigger()};
_.g.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.N5(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.g.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.g.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.g.computeLabel_=function(G,H){return G===void 0?null:G.label||!H?G.label:this.showMoreText_};
_.g.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.g.getContinuationUrl=function(G){var H={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.g7(G,H)};
_.g.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
QK.prototype.showButtonChanged_=QK.prototype.showButtonChanged_;QK.prototype.observeData_=QK.prototype.observeData_;_.N([_.v(_.xy.YtVisibilityBehavior),_.A("design:type",Object)],QK.prototype,"ytVisibilityBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],QK.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],QK.prototype,"showButton",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],QK.prototype,"showIcon",void 0);_.N([_.h({computed:"computeLabel_(data, showButton)"}),_.A("design:type",Object)],QK.prototype,"label",void 0);_.N([_.h({value:_.aq(_.Zg("SHOW_MORE",void 0,"Show More"))}),_.A("design:type",Object)],QK.prototype,"showMoreText_",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],QK.prototype,"spinnerActive_",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],QK.prototype,"hasBeenTriggered_",void 0);
_.N([_.h({value:void 0}),_.A("design:type",String)],QK.prototype,"observeVisibleOption",void 0);_.N([_.h({value:void 0}),_.A("design:type",String)],QK.prototype,"observeHiddenOption",void 0);_.N([_.h({value:"observe_once"}),_.A("design:type",Object)],QK.prototype,"observePrescanOption",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QK.prototype,"observeData_",null);
_.N([_.gx("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QK.prototype,"showButtonChanged_",null);_.N([_.fH({is:"yt-next-continuation",disableElementRegistration:!0})],QK);
_.m(QK,"yt-next-continuation",function(){if(bzw===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;FJR===void 0&&(FJR=document.createElement("template"));var Q=FJR;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);bzw=G}G=bzw;return G},{mode:2});var GA2;var HvT;var pe=function(){return _.C.apply(this,arguments)||this};
_.T(pe,_.C);pe.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],pe.prototype,"data",void 0);_.N([_.fH({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],pe);
_.m(pe,"yt-music-pass-small-feature-info-renderer",function(){if(HvT===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;GA2===void 0&&(GA2=document.createElement("template"));var Q=GA2;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);HvT=G}G=HvT;return G},{mode:2});_.eQ("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var lT=function(){var G=_.C.apply(this,arguments)||this;G.isCollapsible=!1;G.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return G};
_.T(lT,_.C);_.g=lT.prototype;_.g.computeIsCollapsible=function(G){return!!(((G==null?0:G.showMoreText)||(G==null?0:G.visibleRowCount))&&(G==null?0:G.isCollapsible))};
_.g.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"}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.g.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.g.onIronResize=function(){var G=this;_.rx(this,"updateGridInitItems",function(){G.maybeUpdateInitialItemsDisplayed()})};
_.g.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var G=this.getVisibleWidth();G!==0&&(G=Math.floor(G/214)*(this.data.visibleRowCount||2),G!==this.initialCount&&(this.initialCount=G,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.g.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.g.computeExpandVisible=function(G,H,Z,Q){return G&&H&&Z&&!!Q&&!!Q.showMoreText};
_.g.computeShowMoreButton=function(G){return{text:G,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.g.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.g.initCollapsed=function(){var G=this;this.ytLazyListBehavior.canShowMore=!1;var H;(this.collapsed=!((H=this.data)==null||!H.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.q2(this,function(){_.xk(G.hostElement,"yt-refit-popups-action")})};
_.g.fillRestIfNotCollapsible=function(){var G=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!G||this.ytLazyListBehavior.fillRemainingListItems()};
_.g.computeViewAllHidden=function(G,H){return G||!H.viewAllEndpoint};
lT.prototype.fillRestIfNotCollapsible=lT.prototype.fillRestIfNotCollapsible;lT.prototype.initCollapsed=lT.prototype.initCollapsed;lT.prototype.onIronResize=lT.prototype.onIronResize;lT.prototype.persistentGuideChanged=lT.prototype.persistentGuideChanged;_.N([_.v(_.hS),_.A("design:type",Object)],lT.prototype,"ironResizableBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],lT.prototype,"ytLazyListBehavior",void 0);_.N([_.v(_.ZE.YtNextContinuationBehavior),_.A("design:type",Object)],lT.prototype,"ytNextContinuationBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],lT.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.v(_.sF),_.A("design:type",Object)],lT.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lT.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],lT.prototype,"collapsed",void 0);_.N([_.h(),_.A("design:type",Number)],lT.prototype,"initialCount",void 0);_.N([_.h({computed:"computeShowMoreButton(data.showMoreText)"}),_.A("design:type",Object)],lT.prototype,"showMoreButton",void 0);
_.N([_.h({computed:"computeIsCollapsible(data)"}),_.A("design:type",Object)],lT.prototype,"isCollapsible",void 0);_.N([_.q6("#items"),_.A("design:type",HTMLElement)],lT.prototype,"items",void 0);_.N([_.Jv("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lT.prototype,"persistentGuideChanged",null);_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lT.prototype,"onIronResize",null);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lT.prototype,"initCollapsed",null);_.N([_.Jv("canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lT.prototype,"fillRestIfNotCollapsible",null);_.N([_.O({is:"ytd-grid-renderer",disableElementRegistration:!0})],lT);
_.m(lT,"ytd-grid-renderer",function(){if(U92!==void 0)return U92;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return U92=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var gY=function(){return _.C.apply(this,arguments)||this};
_.T(gY,_.C);
gY.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"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gY.prototype,"data",void 0);_.N([_.O({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],gY);
_.m(gY,"ytd-carousel-ad-renderer",function(){if(Oz_!==void 0)return Oz_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Oz_=G},{mode:1});var s2R;var Io=function(){return _.C.apply(this,arguments)||this};
_.T(Io,_.C);_.g=Io.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Io.JSC$15498_CLICK_LOCATION_ID_MAP))};
_.g.onSitelinkTap=function(G){G.stopPropagation();var H,Z,Q=G==null?void 0:(H=G.model)==null?void 0:(Z=H.item)==null?void 0:Z.onTap;Q&&this.ytSparklesClickLocationBehavior.handleClick(Q,G,!1)};
_.g.onTap=function(G){var H=this.data&&this.data.content&&this.data.content.navigationEndpoint;H&&this.ytSparklesClickLocationBehavior.handleClick(H,G,!1)};
_.g.sendImpression=function(){if(this.data&&this.data.content)for(var G=_.I(this.data.content.impressionEndpoints||[]),H=G.next();!H.done;H=G.next()){H=_.I(H.value.loggingUrls||[]);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.baseUrl&&HW(Z.baseUrl,Z.attributionSrcMode)}};
Io.prototype.onTap=Io.prototype.onTap;Io.prototype.dataChanged=Io.prototype.dataChanged;Io.JSC$15498_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"]]);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],Io.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Io.prototype,"data",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Io.prototype,"dataChanged",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Io.prototype,"onTap",null);_.N([_.O({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Io);
_.m(Io,"ytd-promoted-sparkles-text-search-renderer",function(){if(s2R!==void 0)return s2R;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return s2R=G},{mode:1});var Zva;var qy=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.T(qy,_.C);_.g=qy.prototype;_.g.created=function(){this.activeView=new kE(this.hostElement)};
_.g.configureRendererStamper=function(){return{"data.menu":{id:_.V("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.g.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.g.computeHasAdBadge=function(G){return!(G==null||!G.adBadge)};
_.g.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",qy.JSC$15507_DEFAULT_AD_BADGE_RENDERER),_.Gq(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&DK(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,qy.JSC$15507_CLICK_LOCATION_ID_MAP))};
_.g.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var G;(((G=this.data)==null?void 0:G.impressionCommands)||[]).forEach(function(H){H=_.I(H.loggingUrls||[]);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.baseUrl&&HW(Z.baseUrl,Z.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.g.onTap=function(G){var H,Z=(H=this.data)==null?void 0:H.navigationEndpoint,Q;(H=(Q=this.data)==null?void 0:Q.thumbnailNavigationEndpoint)&&_.yF(_.OD(G),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(H,G,!1):Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,G,!1)};
_.g.handleMuteAd=function(){this.collapsed=!0};
_.g.attached=function(){var G=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dV(G.activeView)})};
_.g.detached=function(){_.V("stop_av_measurement_on_detach")&&dV(this.activeView)};
_.u4.Object.defineProperties(qy.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var G;return!(((G=this.data)==null?void 0:G.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var G;return!(((G=this.data)==null?void 0:G.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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}}});
qy.prototype.dataChanged=qy.prototype.dataChanged;
qy.JSC$15507_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"]]);
qy.JSC$15507_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Zg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],qy.prototype,"actionHandlerBehavior",void 0);
_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],qy.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qy.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],qy.prototype,"collapsed",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],qy.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],qy.prototype,"biggerThumbsStyle",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.A("design:type",Boolean)],qy.prototype,"fixAlignmentSmallScreens",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs_square")}}),
_.A("design:type",Boolean)],qy.prototype,"useBiggerThumbsSquare",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.mediaHoverOverlay"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qy.prototype,"hideHoverOverlay",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qy.prototype,"webSearchLayout",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qy.prototype,"webSearchLayoutLandscape",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qy.prototype,"webSearchLayoutSquare",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qy.prototype,"sparklesCtaNoBackground",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.actionButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qy.prototype,"hideActionButton",null);_.N([_.h({computed:"computeButtonOverride(uiUpdate)"}),_.A("design:type",Object)],qy.prototype,"buttonOverride",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.A("design:type",Boolean)],qy.prototype,"hasNewAdBadge",void 0);_.N([_.z("data.promotedSparklesWebStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qy.prototype,"useRoundedBadge",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qy.prototype,"dataChanged",null);_.N([_.O({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],qy);
_.m(qy,"ytd-promoted-sparkles-web-renderer",function(){if(Zva!==void 0)return Zva;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Zva=G},{mode:1});var Q2_;var SY=function(){var G=_.C.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.enableMonoStyle=_.V("enable_default_mono_cta_migration_web_client");return G};
_.T(SY,_.C);_.g=SY.prototype;_.g.created=function(){this.activeView=new kE(this.hostElement)};
_.g.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]]"}}}}}};
_.g.computeShowCta=function(G){return!(G==null||!G.ctaRenderer)};
_.g.onCtaClick=function(){var G,H,Z,Q=(G=this.data)==null?void 0:(H=G.ctaRenderer)==null?void 0:(Z=H.buttonRenderer)==null?void 0:Z.command;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.g.onWatchButtonClick=function(){var G,H,Z,Q=(G=this.data)==null?void 0:(H=G.watchButtonRenderer)==null?void 0:(Z=H.buttonRenderer)==null?void 0:Z.command;Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.g.onTap=function(){};
_.g.dataChanged=function(){if(this.data){var G;_.V("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",SY.JSC$15511_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&DK(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",SY.JSC$15511_DEFAULT_CLICK_LOCATION_BEHAVIOR,SY.JSC$15511_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var H;if(((H=this.data)==null?0:H.forceImpAutoplay)&&_.V("enable_force_imp_autoplay_on_desktop_search")){var Z;(Z=this.JSC$15512_inlinePreviewHoverListener)==null||uje(Z)}}};
_.g.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var G=_.I(this.data.impressionUrls),H=G.next();!H.done;H=G.next())H=H.value,m6j(H,R2j(H));this.data.impressionsFired=!0}};
_.g.maybeComputeHref=function(){return null};
_.g.computeIsShortDR=function(G){return!(G==null||!G.watchButtonRenderer)&&!(G==null||!G.ctaRenderer)&&!!this.enableShortDR};
_.g.computeIsNewUiOrShortDr=function(G){return!!this.enableUiUpdate||this.computeIsShortDR(G)};
_.g.computeIsNewUiAndNotShortDr=function(G){return!!this.enableUiUpdate&&!this.computeIsShortDR(G)};
_.g.computeHideAvatar=function(G){return!((G==null?0:G.channelThumbnail)&&this.computeIsNewUiOrShortDr(G))};
_.g.onClick=function(G){var H,Z=(H=this.data)==null?void 0:H.navigationEndpoint;if(this.enableShortDR&&Z&&(_.X(Z,_.hZ)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(Z,G,!!_.X(Z,_.hZ)),G.stopPropagation();else if(Z&&_.X(Z,_.hZ))this.ytSparklesClickLocationBehavior.handleClick(Z,G,!0),G.stopPropagation();else if(Z){var Q,p;((Q=this.data)==null?0:Q.navigationEndpoint)&&((p=this.data)==null?0:p.adPlaybackContextParams)&&(H=this.data.navigationEndpoint,G=this.data.adPlaybackContextParams,
H.commandMetadata&&_.X(H.commandMetadata,_.HA)&&_.X(H.commandMetadata,_.HA).url&&(H=_.p$(_.X(H.commandMetadata,_.HA).url).adurl)&&_.Rv3(H)&&_.aO(_.M5(H),{encoded_ad_playback_context:G}));this.ytComponentBehavior.resolveCommand(Z)}};
_.g.computeButtonOverride=function(G){if(this.computeIsNewUiOrShortDr(G))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.g.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.g.onThumbnailContainerClick=function(G){this.onClick(G)};
_.g.computeThumbnailWidth=function(G,H){return G?H==="MASSIVE"?600:H==="BIG"?500:H==="MEDIUM"?450:420:360};
_.g.attached=function(){var G=this,H;_.V("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dV(G.activeView)})};
_.g.detached=function(){var G;_.V("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.V("stop_av_measurement_on_detach")&&dV(this.activeView)};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15512_inlinePreviewHoverListener=cV({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:D9R})};
_.g.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15512_inlinePreviewHoverListener)==null||iL(G)};
SY.prototype.dataChanged=SY.prototype.dataChanged;SY.prototype.onTap=SY.prototype.onTap;SY.JSC$15511_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Zg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};SY.JSC$15511_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
SY.JSC$15511_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"}];_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],SY.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],SY.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.q6("#main-container"),_.A("design:type",HTMLElement)],SY.prototype,"mainContainer",void 0);
_.N([_.h(),_.A("design:type",Object)],SY.prototype,"isInlinePreviewTriggered",void 0);_.N([_.h(),_.A("design:type",Object)],SY.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],SY.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_video_display_compact_button_group_for_desktop_search")}}),
_.A("design:type",Boolean)],SY.prototype,"enableShortDR",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_vac_ui_update_for_desktop_search")}}),
_.A("design:type",Boolean)],SY.prototype,"enableUiUpdate",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],SY.prototype,"biggerThumbsStyle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.A("design:type",Boolean)],SY.prototype,"showCta",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.A("design:type",Boolean)],SY.prototype,"isShortDr",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.A("design:type",Boolean)],SY.prototype,"isShortDrOrNewUi",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.A("design:type",Boolean)],SY.prototype,"isNewUiAndNotShortDr",void 0);_.N([_.h({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],SY.prototype,"buttonOverride",void 0);_.N([_.h({computed:"computeSecondaryButtonOverride(data)"}),_.A("design:type",Object)],SY.prototype,"secondaryButtonOverride",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],SY.prototype,"enableMonoStyle",void 0);
_.N([_.q6("ytd-thumbnail"),_.A("design:type",HTMLElement)],SY.prototype,"thumbnail",void 0);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SY.prototype,"onTap",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SY.prototype,"dataChanged",null);_.N([_.O({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],SY);
_.m(SY,"ytd-promoted-video-renderer",function(){if(Q2_!==void 0)return Q2_;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Q2_=G},{mode:1});var p17;var uT=function(){var G=_.C.apply(this,arguments)||this;G.useRoundedBadge=!0;G.sitelinkIds=[];return G};
_.T(uT,_.C);_.g=uT.prototype;
_.g.configureRendererStamper=function(){return{"data.menu":{id:_.V("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.g.dataChanged=function(){var G;(G=this.data)!=null&&G.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,uT.JSC$15517_CLICK_LOCATION_ID_MAP)};
_.g.onTap=function(G){var H,Z=(H=this.data)==null?void 0:H.navigationCommand;Z&&!_.yF(_.OD(G),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(Z,G,!1)};
_.g.onSitelinkTap=function(G){var H,Z,Q=G==null?void 0:(H=G.model)==null?void 0:(Z=H.item)==null?void 0:Z.onTap;Q&&this.ytSparklesClickLocationBehavior.handleClick(Q,G,!1)};
_.g.configureSitelinkClickTargets=function(){var G=this,H,Z,Q=(H=this.data)==null?void 0:(Z=H.clickLocationTargets)==null?void 0:Z.find(function(p){return p.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
Q&&_.F9(this.hostElement).querySelectorAll(".sitelink").forEach(function(p){_.Gq(p,"yt-simple-endpoint",!0);G.sitelinkIds.push(p.id);var l,q;(l=G.ytSparklesClickLocationBehavior)==null||(q=l.clickTargetMap)==null||q.set(p.id,Q)})};
_.g.sendImpression=function(){var G,H,Z=((G=this.data)==null?void 0:(H=G.impressionCommand)==null?void 0:H.loggingUrls)||[];G=_.I(Z);for(H=G.next();!H.done;H=G.next())H=H.value,H.baseUrl&&HW(H.baseUrl,H.attributionSrcMode)};
_.g.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.u4.Object.defineProperties(uT.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
uT.prototype.onTap=uT.prototype.onTap;uT.prototype.dataChanged=uT.prototype.dataChanged;uT.JSC$15517_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"]]);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],uT.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uT.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],uT.prototype,"showFavicon",null);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],uT.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],uT.prototype,"biggerThumbsStyle",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.A("design:type",Boolean)],uT.prototype,"enableThumbnailScalingFix",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uT.prototype,"dataChanged",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],uT.prototype,"onTap",null);_.N([_.O({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],uT);
_.m(uT,"ytd-text-image-no-button-layout-renderer",function(){if(p17!==void 0)return p17;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return p17=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var l3w;var BR=function(){var G=_.C.apply(this,arguments)||this;G.isInlinePlaybackState=!1;G.uiUpdate=_.V("web_modern_buttons");G.hideCta=_.V("hide_cta_for_home_web_video_ads");G.noBottomMargin=!1;G.animateInTimeStamp=_.eA("hide_cta_for_home_web_video_ads_animate_in_time");G.animateInCta=!1;G.isHovered=!1;G.enableMonoStyle=_.V("enable_default_mono_cta_migration_web_client");G.player=null;G.JSC$15524_playerEvents=new Map;G.JSC$15524_preventProgressSaveTimer=null;G.delayedCtaJobId=null;return G};
_.T(BR,_.C);_.g=BR.prototype;_.g.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]]"}}}}}};
_.g.attached=function(){this.JSC$15524_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15524_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.V("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.g.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15524_playerEvents)};
_.g.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",BR.JSC$15523_DEFAULT_CLICK_LOCATION_BEHAVIOR,BR.JSC$15523_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.g.hoverChanged=function(){var G=this;this.delayedCtaJobId&&(_.Ui.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.V("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.JW(_.Ui,function(){G.buttonContainer.classList.add("show-delayed-buttons")},_.eA("delayed_cta_on_web_delay_milliseconds")))};
_.g.setPlayer=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return(H=_.xk(G.hostElement,"yt-get-inline-preview-player-action"))&&H[0]?Z.yield(H[0].getPlayerPromise(),3):Z.jumpTo(0);G.player=Z.yieldResult;G.ytPlayerListenerBehavior.listenToPlayerEvents(G.player,G.JSC$15524_playerEvents);_.K0(Z)})};
_.g.onPlaybackStart=function(){var G=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15524_preventProgressSaveTimer=_.E6(_.Ui,function(){G.JSC$15524_preventProgressSaveTimer=null},1E4))};
_.g.onVideoProgress=function(G){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&G>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.g.resetPreventProgressSaveTimer=function(){_.Ui.cancelJob(this.JSC$15524_preventProgressSaveTimer);this.JSC$15524_preventProgressSaveTimer=null};
_.g.getSimpleString=function(G){return _.yn(G)};
_.g.onClick=function(G){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var H,Z=(H=this.data)==null?void 0:H.navigationEndpoint,Q;H=(Q=this.data)==null?void 0:Q.channelEndpoint;var p,l;((l=_.X((p=this.data)==null?void 0:p.adCtaButton,_.Yl))==null?0:l.command)&&_.yF(_.OD(G),this.hostElement,["call-to-action"])||(H&&_.yF(_.OD(G),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(H,G,!1):!_.yF(_.OD(G),this.hostElement,
["secondary-button"])&&Z&&(_.V("enable_short_dr_for_desktop_launchable")?(Q=!!_.X(Z,_.hZ),this.isInlinePlaybackState&&Q&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(Z,G,Q)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(Z,G,!0))))}};
_.g.updateWatchEndpointStartTime=function(){var G,H;this.player&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&((H=this.data)==null?0:H.navigationEndpoint)&&!this.JSC$15524_preventProgressSaveTimer&&(G=Math.floor(this.player.getCurrentTime()),_.X(this.data.navigationEndpoint,_.hZ).startTimeSeconds=G,_.X(this.data.inlinePlaybackEndpoint,_.hZ).startTimeSeconds=G)};
_.g.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.g.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.u4.Object.defineProperties(BR.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.V("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null||!G.watchButton)&&!((H=this.data)==null||!H.adCtaButton)}}});
BR.prototype.hoverChanged=BR.prototype.hoverChanged;BR.prototype.dataChanged=BR.prototype.dataChanged;
BR.JSC$15523_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"]]);
BR.JSC$15523_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"}];
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],BR.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],BR.prototype,"ytSparklesClickLocationBehavior",void 0);
_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],BR.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],BR.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BR.prototype,"isInlinePlaybackState",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],BR.prototype,"miniMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BR.prototype,"uiUpdate",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BR.prototype,"hideCta",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BR.prototype,"noBottomMargin",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BR.prototype,"animateInCta",void 0);_.N([_.h({computed:"computeButtonOverride(uiUpdate)"}),_.A("design:type",Object)],BR.prototype,"buttonOverride",void 0);
_.N([_.h({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.A("design:type",Object)],BR.prototype,"secondaryButtonOverride",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BR.prototype,"isHovered",void 0);_.N([_.q6("#button-container"),_.A("design:type",HTMLElement)],BR.prototype,"buttonContainer",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],BR.prototype,"typographyBump",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("typographyBump"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BR.prototype,"typographyBumpV2",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BR.prototype,"enableMonoStyle",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BR.prototype,"dataChanged",null);
_.N([_.gx("isHovered"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BR.prototype,"hoverChanged",null);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BR.prototype,"isButtonGroup",null);_.N([_.O({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],BR);
_.m(BR,"ytd-ad-inline-playback-meta-block",function(){if(l3w!==void 0)return l3w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return l3w=G},{mode:_.LH("kevlar_poly_si_batch_j065")?1:2});var gpR;var JV=function(){var G=_.C.apply(this,arguments)||this;G.noBottomMargin=!1;G.isInlinePreviewTriggered=!1;G.JSC$15529_activeViewMeasurementDataResolver=_.hQ();return G};
_.T(JV,_.C);_.g=JV.prototype;_.g.created=function(){this.activeView=new kE(this.hostElement)};
_.g.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15529_activeViewMeasurementDataResolver.promise.then(function(H){DK(G.activeView,H)});
_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dV(G.activeView)})};
_.g.detached=function(){this.clearInlinePreviewHoverListeners();_.V("stop_av_measurement_on_detach")&&dV(this.activeView)};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15529_inlinePreviewHoverListener=cV({mediaRenderer:this,lockupElement:this.JSC$15529_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:D9R})};
_.g.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15529_inlinePreviewHoverListener)==null||iL(G)};
_.g.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15529_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",JV.JSC$15528_DEFAULT_CLICK_LOCATION_BEHAVIOR,JV.JSC$15528_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"));var H;if((H=this.data)==
null?0:H.forceImpAutoplay){var Z;(Z=this.JSC$15529_inlinePreviewHoverListener)==null||uje(Z)}};
_.g.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.g.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var H,Z=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(Z,G,!!_.X(Z,_.hZ));G.stopPropagation()}};
_.g.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.g.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,Z,Q=(Z=_.X((H=this.data)==null?void 0:H.onImpression,_.Ft))==null?void 0:Z.commands;Q&&(Q.forEach(function(p){p.clickTrackingParams&&delete p.clickTrackingParams;G.ytComponentBehavior.resolveCommand(p)}),this.data.impressionsFired=!0)}};
_.u4.Object.defineProperties(JV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15529_inlinePreviewHoverListener)==null?0:x3(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
JV.prototype.onTypographyBumpChanged=JV.prototype.onTypographyBumpChanged;JV.prototype.onDataChanged=JV.prototype.onDataChanged;JV.JSC$15528_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);JV.JSC$15528_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"}];
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],JV.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],JV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],JV.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],JV.prototype,"ytdLockupBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],JV.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],JV.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],JV.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],JV.prototype,"noBottomMargin",void 0);_.N([_.h(),_.A("design:type",Object)],JV.prototype,"isInlinePreviewTriggered",void 0);
_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],JV.prototype,"miniMode",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],JV.prototype,"typographyBump",void 0);_.N([_.q6("ytd-thumbnail"),_.A("design:type",HTMLElement)],JV.prototype,"thumbnail",void 0);_.N([_.q6("#dismissible"),_.A("design:type",HTMLElement)],JV.prototype,"JSC$15529_dismissibleMedia",void 0);
_.N([_.q6("ytd-ad-inline-playback-meta-block"),_.A("design:type",HTMLElement)],JV.prototype,"adInlinePlaybackMetaBlock",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JV.prototype,"onDataChanged",null);_.N([_.Jv("typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],JV.prototype,"onTypographyBumpChanged",null);
_.N([_.z("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],JV.prototype,"isHovered",null);_.N([_.O({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],JV);
_.m(JV,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(gpR!==void 0)return gpR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return gpR=G},{mode:1});var I3G;var tV=function(){var G=_.C.apply(this,arguments)||this;G.isInlinePreviewTriggered=!1;G.JSC$15532_activeViewMeasurementDataResolver=_.hQ();return G};
_.T(tV,_.C);_.g=tV.prototype;_.g.created=function(){this.activeView=new kE(this.hostElement)};
_.g.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.attached=function(){var G=this;this.updateInlinePreviewHoverListeners();this.JSC$15532_activeViewMeasurementDataResolver.promise.then(function(H){DK(G.activeView,H)})};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15532_inlinePreviewHoverListener=cV({mediaRenderer:this,lockupElement:this.JSC$15532_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:D9R})};
_.g.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$15532_inlinePreviewHoverListener)==null||iL(G)};
_.g.onDataChanged=function(){var G;((G=this.data)==null?0:G.activeView)&&this.JSC$15532_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",tV.JSC$15531_DEFAULT_CLICK_LOCATION_BEHAVIOR,tV.JSC$15531_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))};
_.g.onThumbnailContainerClick=function(G){if(this.data&&this.data.navigationEndpoint){var H,Z=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(Z,G,!0);G.stopPropagation()}};
_.g.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.g.impressionLog=function(){var G=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,Z,Q=(Z=_.X((H=this.data)==null?void 0:H.onImpression,_.Ft))==null?void 0:Z.commands;Q&&(Q.forEach(function(p){p.clickTrackingParams&&delete p.clickTrackingParams;_.tp().resolve(_.Dk).resolveCommand(p,{form:{element:G.hostElement}})}),this.data.impressionsFired=!0)}};
_.u4.Object.defineProperties(tV.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$15532_inlinePreviewHoverListener)==null?0:x3(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tV.prototype.onDataChanged=tV.prototype.onDataChanged;tV.JSC$15531_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);tV.JSC$15531_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"}];_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],tV.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],tV.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],tV.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],tV.prototype,"ytSparklesClickLocationBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],tV.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],tV.prototype,"isInlinePreviewTriggered",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],tV.prototype,"miniMode",void 0);_.N([_.q6("ytd-thumbnail"),_.A("design:type",HTMLElement)],tV.prototype,"thumbnail",void 0);_.N([_.q6("#dismissible"),_.A("design:type",HTMLElement)],tV.prototype,"JSC$15532_dismissibleMedia",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tV.prototype,"onDataChanged",null);_.N([_.z("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tV.prototype,"isHovered",null);_.N([_.O({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],tV);
_.m(tV,"ytd-video-display-full-buttoned-renderer",function(){if(I3G!==void 0)return I3G;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return I3G=G},{mode:1});var aS=function(G,H,Z,Q){Q=Q===void 0?!1:Q;_.sj.call(this,G);this.adsClientErrorMessage=Z;this.aggressivelySample=Q;this.args=[];H&&this.args.push(H)};
_.T(aS,_.sj);var iP=function(G,H,Z,Q){Q=Q===void 0?!1:Q;_.sj.call(this,G);this.adsClientErrorMessage=Z;this.aggressivelySample=Q;this.args=[];H&&this.args.push(H)};
_.T(iP,_.sj);var qf2=function(G){_.wI.call(this);var H=this;this.initializationFunction=G;this.instance=null;this.addOnDisposeCallback(function(){_.S_(H.instance);H.instance=null})};
_.T(qf2,_.wI);qf2.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.MB("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var h7R=function(){var G=new Map;[].forEach(function(H){G.set(H.JSC$30802_getType(),H)});
this.getters=G};new Promise(function(){});var MCo=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"]]),z72=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"}]]),Sf4=function(G){this.experimentApiProvider=G;G=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=G<.1};var kn=function(G,H,Z,Q){_.wI.call(this);this.adsControlFlowEventListeners=H;this.adEventLogger=Z;this.experimentApiProvider=Q;this.adsControlFlowManagerHelper=G(this,this,this,this,this);_.T$(this,this.adsControlFlowManagerHelper);G=_.I(H);for(H=G.next();!H.done;H=G.next())_.T$(this,H.value)};
_.T(kn,_.wI);var uSw=function(G,H,Z,Q){DE(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",H,Z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q);G=_.I(G.adsControlFlowEventListeners);for(Q=G.next();!Q.done;Q=G.next())uSw(Q.value,H,Z)};
_.g=kn.prototype;_.g.onOpportunityProcessedExternallyManaged=function(G,H,Z,Q){DE(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",G,Z,H,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q)};
_.g.onSlotReceivedExternallyManaged=function(G,H){dY(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",G,H)};
_.g.onSlotEntered=function(G){if(eY(this.adsControlFlowManagerHelper,G)!=null){dY(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",G);this.adsControlFlowManagerHelper.onSlotEntered(G);for(var H=_.I(this.adsControlFlowEventListeners),Z=H.next();!Z.done;Z=H.next())Z.value.onSlotEntered(G);if(eY(this.adsControlFlowManagerHelper,G)!=null&&eY(this.adsControlFlowManagerHelper,G).isOccupyingSlotType()&&ne(this.adsControlFlowManagerHelper,G)&&!B_t(this.adsControlFlowManagerHelper,G)){var Q;VK(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",G,(Q=ne(this.adsControlFlowManagerHelper,G))!=null?Q:void 0);G=eY(this.adsControlFlowManagerHelper,G);G.slotLifecycleStage!=="entered"&&$n(G.slot,G.slotLifecycleStage,"enterLayoutForSlot");G.slotLifecycleStage="rendering";G.registeredLayoutRenderingAdapter.startRendering(G.layout)}}};
_.g.onSlotExited=function(G){if(eY(this.adsControlFlowManagerHelper,G)!=null){dY(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",G);this.adsControlFlowManagerHelper.onSlotExited(G);for(var H=_.I(this.adsControlFlowEventListeners),Z=H.next();!Z.done;Z=H.next())Z.value.onSlotExited(G);eY(this.adsControlFlowManagerHelper,G)!=null&&eY(this.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests&&JYx(this,G)}};
_.g.onLayoutReceivedExternallyManaged=function(G,H,Z){G.managerLayer!=="core"&&VK(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",G,H,Z)};
var tTR=function(G,H,Z){if(eY(G.adsControlFlowManagerHelper,H)!=null){VK(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,Z);G=_.I(G.adsControlFlowEventListeners);for(var Q=G.next();!Q.done;Q=G.next())tTR(Q.value,H,Z)}};
kn.prototype.onLayoutExited=function(G,H,Z){if(eY(this.adsControlFlowManagerHelper,G)!=null){VK(this.adEventLogger,K7X(Z),G,H);this.adsControlFlowManagerHelper.onLayoutExited(G,H);for(var Q=_.I(this.adsControlFlowEventListeners),p=Q.next();!p.done;p=Q.next())p.value.onLayoutExited(G,H,Z);(Z=ne(this.adsControlFlowManagerHelper,G))&&H.layoutId===Z.layoutId&&kAG(this,G)}};
kn.prototype.disposeInternal=function(){var G=Dqt(this.adsControlFlowManagerHelper);G=_.I(G);for(var H=G.next();!H.done;H=G.next())JYx(this,H.value);_.wI.prototype.disposeInternal.call(this)};
var JYx=function(G,H){if(eY(G.adsControlFlowManagerHelper,H)!=null)if(eY(G.adsControlFlowManagerHelper,H).JSC$30832_isSlotExitRequested()||eY(G.adsControlFlowManagerHelper,H).JSC$30832_isLayoutExitRequested())eY(G.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(eY(G.adsControlFlowManagerHelper,H).isOccupyingSlotType())eY(G.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0,kAG(G,H);else if(eY(G.adsControlFlowManagerHelper,H).JSC$30832_isSlotFillRequested())eY(G.adsControlFlowManagerHelper,
H).markedForUnscheduleAfterOutboundAdapterRequests=!0,eY(G.adsControlFlowManagerHelper,H)!=null&&(dY(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",H),H=eY(G.adsControlFlowManagerHelper,H),H.fulfillmentLifecycleStage="fill_cancel_requested",H.registeredFulfillmentAdapter.cancelSlotFilling());else{var Z=ne(G.adsControlFlowManagerHelper,H),Q;G.experimentApiProvider.get();(Q=_.V("h5_enable_layout_unscheduling_events"))&&(Z?dqw(G,H,Z):_.MB(Error("Lh"),H,Z,void 0,!1));dY(G.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",H);var p=eY(G.adsControlFlowManagerHelper,H),l=H.slotEntryTrigger,q=p.registeredSlotEntryTriggerAdapters.get(l.triggerId);q&&(q.unregisterTrigger(l),p.registeredSlotEntryTriggerAdapters.delete(l.triggerId));l=_.I(H.slotFulfillmentTriggers);for(q=l.next();!q.done;q=l.next()){q=q.value;var u=p.registeredFulfillmentTriggerAdapters.get(q.triggerId);u&&(u.unregisterTrigger(q),p.registeredFulfillmentTriggerAdapters.delete(q.triggerId))}l=_.I(H.slotExpirationTriggers);
for(q=l.next();!q.done;q=l.next())if(q=q.value,u=p.registeredExpirationTriggerAdapters.get(q.triggerId))u.unregisterTrigger(q),p.registeredExpirationTriggerAdapters.delete(q.triggerId);p.hasLayout()&&(l=p.layout,X1(p,l.layoutExitNormalTriggers),X1(p,l.layoutExitSkipTriggers),X1(p,l.layoutExitMuteTriggers),X1(p,l.layoutExitUserInputSubmittedTriggers),X1(p,l.layoutExitUserCancelledTriggers));p.registeredFulfillmentAdapter=void 0;p.registeredSlotAdapter!=null&&(p.registeredSlotAdapter.release(),p.registeredSlotAdapter=
void 0);p.registeredLayoutRenderingAdapter!=null&&(p.registeredLayoutRenderingAdapter.release(),p.registeredLayoutRenderingAdapter=void 0);p=G.adsControlFlowManagerHelper;eY(p,H)&&(p=eZw(p,H.slotType+"_"+H.slotPhysicalPosition))&&p.delete(H.slotId);dY(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);G=_.I(G.adsControlFlowEventListeners);for(p=G.next();!p.done;p=G.next())p=p.value,p.onSlotUnscheduled(H),Z&&!Q&&dqw(p,H,Z)}},dqw=function(G,H,Z){VK(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
H,Z);
VK(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",H,Z);G=_.I(G.adsControlFlowEventListeners);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value,Z&&dqw(Q,H,Z)},kAG=function(G,H){if(eY(G.adsControlFlowManagerHelper,H)!=null&&eY(G.adsControlFlowManagerHelper,H).isOccupyingSlotType()){var Z=ne(G.adsControlFlowManagerHelper,H);
if(Z&&B_t(G.adsControlFlowManagerHelper,H)){if(eY(G.adsControlFlowManagerHelper,H)!=null){var Q=G.adEventLogger,p;var l=((p=z72.get("abandoned"))==null?void 0:p.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";VK(Q,l,H,Z);G=eY(G.adsControlFlowManagerHelper,H);G.slotLifecycleStage!=="rendering"&&$n(G.slot,G.slotLifecycleStage,"exitLayout");G.slotLifecycleStage="rendering_stop_requested";G.registeredLayoutRenderingAdapter.stopRendering(Z,"abandoned")}}else{dY(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
H);try{Q=eY(G.adsControlFlowManagerHelper,H);if(!Q)throw new iP("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");Q.slotLifecycleStage!=="enter_requested"&&Q.slotLifecycleStage!=="entered"&&Q.slotLifecycleStage!=="rendering"&&$n(Q.slot,Q.slotLifecycleStage,"exitSlot");Q.slotLifecycleStage="exit_requested";if(Q.registeredSlotAdapter===void 0)throw Q.slotLifecycleStage="scheduled",new iP("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
Q.registeredSlotAdapter.exit()}catch(q){q instanceof iP&&q.adsClientErrorMessage?(npw(G.adEventLogger,q.adsClientErrorMessage,H),_.MB(q,H,void 0,void 0,q.aggressivelySample)):(npw(G.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",H),_.MB(q,H))}}}};var cR=function(G,H,Z,Q,p,l){_.wI.call(this);this.registry=G;this.experimentApiProvider=l;this.slotMap=new Map};
_.T(cR,_.wI);var eZw=function(G,H){return(G=G.slotMap.get(H))?G:new Map},eY=function(G,H){return eZw(G,H.slotType+"_"+H.slotPhysicalPosition).get(H.slotId)},Dqt=function(G){var H=[];
G.slotMap.forEach(function(Z){Z=_.I(Z.values());for(var Q=Z.next();!Q.done;Q=Z.next())H.push(Q.value.slot)});
return H};
cR.prototype.onSlotEntered=function(G){G=eY(this,G);G.slotLifecycleStage!=="enter_requested"&&$n(G.slot,G.slotLifecycleStage,"onSlotEntered");G.slotLifecycleStage="entered"};
var B_t=function(G,H){G=eY(G,H);return G.hasLayout()&&G.isRendering()},ne=function(G,H){(G=eY(G,H))?G.hasLayout()&&!G.layout&&_.MB("Unexpected empty layout",H):_.MB("Unexpected undefined slotState",H);
return(G==null?void 0:G.layout)||null};
cR.prototype.onSlotExited=function(G){G=eY(this,G);G.slotLifecycleStage!=="exit_requested"&&$n(G.slot,G.slotLifecycleStage,"onSlotExited");G.slotLifecycleStage="scheduled"};
cR.prototype.onLayoutExited=function(G,H){G=eY(this,G);G.isPrimaryLayout(H)&&(G.slotLifecycleStage!=="rendering_stop_requested"&&$n(G.slot,G.slotLifecycleStage,"onLayoutExited"),G.slotLifecycleStage="entered")};
var X1=function(G,H){H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=G.registeredLayoutExitTriggerAdapters.get(Z.triggerId);Q&&(Q.unregisterTrigger(Z),G.registeredLayoutExitTriggerAdapters.delete(Z.triggerId))}},$n=function(G,H,Z){_.MB("Slot stage was "+H+" when calling method "+Z,G)};var $qp=function(G){_.wI.call(this);this.deps=G;this.JSC$15585_adsControlFlowManager=VTt(this)};
_.T($qp,_.wI);var VTt=function(G){var H=new kn(function(Z,Q,p,l){return new cR(G.deps.registry,Z,Q,p,l,G.deps.experimentApiProvider)},new Set(wCM(G.deps.registry).concat(G.deps.listeners)),G.deps.adEventLogger,G.deps.experimentApiProvider);
_.T$(G,H);return H};var EkW=function(){};var X17=function(G,H){_.wI.call(this);this.experimentApiProvider=G;this.eventLoggingSettingsProvider=H;this.eventCount=0;this.premiumAdSeenEventLogger=Ylj()()};
_.T(X17,_.wI);X17.prototype.logEvent=function(G){DE(this,G)};
var dY=function(G,H,Z,Q){DE(G,H,void 0,void 0,void 0,Z,void 0,void 0,void 0,Z.adSlotLoggingData,void 0,void 0,Q)},VK=function(G,H,Z,Q,p){DE(G,H,void 0,void 0,void 0,Z,Q?Q:void 0,void 0,void 0,Z.adSlotLoggingData,Q?Q.adLayoutLoggingData:void 0,void 0,p);
Z=_.tp().resolve(_.Jp(hL))==null?void 0:CT();H=Z==null?void 0:Z.adsSeenHotConfig;Z=Z==null?void 0:Z.adsHotConfig;(H==null?0:H.logOnAdsSeen)&&(Z==null?0:Z.webEnablePremiumAdsSeenLogging)&&cY7(G,Q?Q:void 0,p)},npw=function(G,H,Z){DE(G,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Z,void 0,void 0,void 0,Z.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:H})},DE=function(G,H,Z,Q,p,l,q,u,B,t,D,d,e){e=e===void 0?0:e;
T_t(G.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+H,"slot:",l,"layout:",q,"ping:",u,"Opportunity:",{opportunityType:Z,associatedSlotId:Q,slotsFromOpportunity:p,triggerBundle:B,adSlotLoggingData:t,adLayoutLoggingData:D});try{var n=function(){G.experimentApiProvider.get();if(H!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){H||_.MB("Empty PACF event type",l,q);var c=G.eventLoggingSettingsProvider.get();var W;(W=c.alwaysIncludeDebugData)||(c.experimentApiProvider.get(),W=
!1);c=W;W={eventType:H,eventOrder:++G.eventCount};var M={};l&&(M.slotData=PHf(c,l));if(q){var r={type:q.layoutType,controlFlowManagerLayer:MCo.get(q.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c&&(r.debugData={layoutId:q.layoutId});M.layoutData=r}u&&(M.pingData={pingDispatchStatus:u.dispatchStatus,serializedAdPingMetadata:u.ping.serializedAdPingMetadata,pingIndex:u.index});B&&(M.triggerData=j7f(B.trigger,B.category));Z&&(M.opportunityData=rIU(c,Z,Q,p));W.adClientData=M;t&&(W.serializedSlotAdServingData=
t.serializedSlotAdServingDataEntry);D&&(W.serializedAdServingData=D.serializedAdServingDataEntry);d&&(W.errorInfo=d);_.yR("adsClientStateChange",{adsClientEvent:W})}};
e&&e>0?_.wM(_.DG(),function(){return n()},e):n()}catch(c){T_t(G.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.wM(_.DG(),function(){_.MB(c instanceof Error?c:String(c),l,q,{pacf_message:"exception during pacf logging"})})}},cY7=function(G,H,Z){if(H){var Q=H.adLayoutLoggingData;
_.wM(_.DG(),function(){G.premiumAdSeenEventLogger!=null&&Q&&_.yR("adsSeenClientLogging",{serializedAdServingDataEntry:Q.serializedAdServingDataEntry})},Z!=null?Z:0)}};var f3R=function(G,H){X17.call(this,G,H)};
_.T(f3R,X17);var vp4=function(){},T_t=function(G,H){return _.V(H)};var zZ4=function(){var G=new WVG;this.JSC$15610_adsControlFlowManager=(new $qp(G)).JSC$15585_adsControlFlowManager},WVG=function(){_.wI.call(this);
var G=this;this.experimentApiProvider=new qf2(function(){return new vp4});
var H=new qf2(function(){return new Sf4(G.experimentApiProvider)});
this.adEventLogger=new f3R(this.experimentApiProvider,H);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.T(WVG,_.wI);var KV4=function(){},MTa,Tf=function(){MTa||(MTa=new KV4);
return MTa},fe=function(G){if(!G.JSC$15621_externallyManagedSlotAdapterCallback){var H=(new zZ4).JSC$15610_adsControlFlowManager;
G.JSC$15621_externallyManagedSlotAdapterCallback=H}return G.JSC$15621_externallyManagedSlotAdapterCallback},j2d=function(G,H,Z){var Q=H.opportunityType,p=Error("Mh");
if(Q!==void 0){var l=fe(G);uSw(l,Q,void 0,Z)}else _.MB(p,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});l=[];if(H.adSlotAndLayoutMetadata!==void 0){H=_.I(H.adSlotAndLayoutMetadata);for(var q=H.next();!q.done;q=H.next()){var u=q.value;if(q=u.adSlotMetadata)if(l.push(q),G.onSlotReceivedExternallyManaged(q,Z),u.adLayoutMetadata){u=_.I(u.adLayoutMetadata);for(var B=u.next();!B.done;B=u.next())G.onLayoutReceivedExternallyManaged(q,B.value,Z)}else Z>0&&_.MB("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else Z>0&&_.MB("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else Z>0&&_.MB("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(Q!==void 0)G.onOpportunityProcessedExternallyManaged(Q,l,void 0,Z);else _.MB(p,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
KV4.prototype.onSlotReceivedExternallyManaged=function(G,H){G=Ow(G);if(G instanceof iP)_.MB(G,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else fe(this).onSlotReceivedExternallyManaged(G,H)};
KV4.prototype.onLayoutReceivedExternallyManaged=function(G,H,Z){G=Ow(G);H=CHb(H);if(G instanceof iP)_.MB(G,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(H instanceof aS)_.MB(H,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else fe(this).onLayoutReceivedExternallyManaged(G,H,Z)};
KV4.prototype.onOpportunityProcessedExternallyManaged=function(G,H,Z,Q){var p=[];H=_.I(H);for(var l=H.next();!l.done;l=H.next())l=Ow(l.value),l instanceof iP?_.MB(l,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):p.push(l);fe(this).onOpportunityProcessedExternallyManaged(G,p,Z,Q)};
var Pjp=function(G,H){H=Ow(H);if(H instanceof iP)_.MB(H,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var Z=fe(G);dY(Z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",H);Z=_.I(Z.adsControlFlowEventListeners);for(var Q=Z.next();!Q.done;Q=Z.next())Q=eY(Q.value,H),Q.slotLifecycleStage!=="not_scheduled"&&$n(Q.slot,Q.slotLifecycleStage,"onSlotScheduled"),Q.slotLifecycleStage="scheduled";G=fe(G);dY(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",H);G=_.I(G.adsControlFlowEventListeners);
for(Z=G.next();!Z.done;Z=G.next())Z.value.onSlotEntered(H)}},rYG=function(G,H){H=Ow(H);
if(H instanceof iP)_.MB(H,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var Z=fe(G);dY(Z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",H);Z=_.I(Z.adsControlFlowEventListeners);for(var Q=Z.next();!Q.done;Q=Z.next())Q.value.onSlotExited(H);G=fe(G);dY(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);G=_.I(G.adsControlFlowEventListeners);for(Z=G.next();!Z.done;Z=G.next())Z.value.onSlotUnscheduled(H)}},w12=function(G,H,Z){H=Ow(H);
Z=CHb(Z);if(H instanceof iP)_.MB(H,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(Z instanceof aS)_.MB(Z,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var Q=fe(G);VK(Q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",H,Z);Q=_.I(Q.adsControlFlowEventListeners);for(var p=Q.next();!p.done;p=Q.next())p.value.onLayoutScheduled(H,Z);G=fe(G);VK(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,Z);G=_.I(G.adsControlFlowEventListeners);
for(Q=G.next();!Q.done;Q=G.next())tTR(Q.value,H,Z)}},vR=function(G,H,Z){H=Ow(H);
Z=CHb(Z);if(H instanceof iP)_.MB(H,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(Z instanceof aS)_.MB(Z,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var Q=fe(G);VK(Q.adEventLogger,K7X("normal"),H,Z);Q=_.I(Q.adsControlFlowEventListeners);for(var p=Q.next();!p.done;p=Q.next())p.value.onLayoutExited(H,Z,"normal");G=fe(G);G=_.I(G.adsControlFlowEventListeners);for(Q=G.next();!Q.done;Q=G.next())dqw(Q.value,H,Z)}};_.PR=_.y(function(G){var H=_.oK(G,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});G=Object.assign({},H);var Z=H.data;H=H.customCommandResolver;var Q=(delete G.data,delete G.customCommandResolver,G);G=_.tk({visibilityCallback:function(u,B){var t,D=(t=Z().interaction)==null?void 0:t.onFirstVisible;u&&(D&&_.zt(D),Q.setOnErrorHandler()&&ifu(B))},
showOption:_.ux});H=_.fG(function(){return Z().interaction},H,function(){var u;
return(u=Q.listenToTapEvent)==null?void 0:u.call(Q)});
var p=_.I(_.Ty(!1,void 0,"wAC0Lc")),l=p.next().value,q=p.next().value;p=_.Hh(function(u){var B;((B=Q.setTouchEndHandler)==null?0:B.call(Q))&&!l()&&(u.currentTarget.click(),q(!0),setTimeout(function(){q(!1)},100));
return!1});
return _.J("ad-image-view-model",{class:function(){var u,B=[((u=Z().interaction)==null?0:u.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],t;((t=Q.isGridViewEnabled)==null?0:t.call(Q))&&B.push("ytwAdImageViewModelHostInGridView");return B.join(" ")},
el:_.aX(G,H),"on:touchend":p},_.J("div",{class:"ytwAdImageViewModelHostImageContainer"},_.J(_.ib,{data:function(){var u;return{sources:Z().imageSources,contentMode:(u=Z().imageProperties)==null?void 0:u.contentMode}},
alt:function(){var u,B;return((u=Z().interaction)==null?void 0:(B=u.accessibility)==null?void 0:B.label)||""},
targetHeight:Q.targetHeight,targetWidth:Q.targetWidth,preserveHeight:Q.preserveHeight,preserveWidth:Q.preserveWidth,useWidth:Q.useWidth,style:function(){var u,B;return"vertical-align: bottom;"+(((u=Z().background)==null?0:u.color)?"background-color:"+_.X9((B=Z().background)==null?void 0:B.color)+";":"")},
className:function(){return Q.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var u,B;return(B=(u=Q.setDraggable)==null?void 0:u.call(Q))!=null?B:void 0}})))},"jc");var hZG=_.y(function(G){var H=G.data,Z=G.listenToTapEvent,Q=function(){};
return _.J("ad-button-hover-overlay-view-model",{"on:click":_.Hh(function(p){if(_.V("enable_web_home_top_landscape_image_layout_legacy_click_command")){var l,q=(l=H().interaction)==null?void 0:l.onTap;q&&_.N5(p.currentTarget,"yt-navigate",{endpoint:_.Tt(q)})}}),
class:function(){var p;return((p=H().interaction)==null?0:p.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.aX(_.tk({visibilityCallback:function(p){var l,q=(l=H().interaction)==null?void 0:l.onFirstVisible;p&&q&&_.zt(q)},
showOption:_.ux}),_.fG(function(){return H().interaction},void 0,function(){return!_.V("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(Z==null?void 0:Z())}))},function(){return _.V("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.J(_.SP,{data:function(){return H().button}},{adButtonViewModel:function(p){return _.J(_.Jz,{data:p.data,
customCommandResolver:Q})}}):_.J(_.SP,{data:function(){return H().button}},{adButtonViewModel:_.Jz})}())},"kc");var oS;_.RX(_.y(function(G){var H=G.data;G=_.tk({visibilityCallback:function(u,B){if(u){var t;(u=(t=H().interaction)==null?void 0:t.onFirstVisible)&&_.zt(u);var D;if(t=(D=H().adLayoutData)==null?void 0:D.activeViewData)mw(B,t),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Uw(B)})}else _.V("stop_av_measurement_on_detach")&&Uw(B)},
showOption:_.ux,hideOption:Bb});var Z=_.fG(function(){return H().interaction},void 0,function(){return!0}),Q=_.I(_.Ty(!1,void 0,"VNDDT")),p=Q.next().value,l=Q.next().value;
Q=_.Hh(function(){l(!0)});
var q=_.Hh(function(){l(!1)});
return _.J("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.aX(G,R72,Z),"on:mouseenter":Q,"on:mouseleave":q},_.J("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.pI({"max-width":function(){return _.V("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.J("div",{class:function(){var u;
a:{var B;switch((u=_.X(H().thumbnailImage,hA7))==null?void 0:(B=u.imageProperties)==null?void 0:B.renderingAspect){case "RENDERING_ASPECT_SQUARE":u="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":u="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}u=void 0}return u}},_.J(_.SP,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(u){return _.J(_.PR,
{data:u.data,
listenToTapEvent:!0,setTouchEndHandler:_.V("enable_top_landscape_image_experiment_dom_id_web")})}})),_.J("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.J(_.k,{cond:function(){var u,B,t;
return(u=_.X(H().thumbnailImage,hA7))==null?void 0:(B=u.imageProperties)==null?void 0:(t=B.overlayIcon)==null?void 0:t.iconImage},
then:function(u){return _.J(_.ib,{data:u,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.J("div",{class:function(){return p()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.J(_.SP,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(u){return _.J(hZG,
{data:u.data,
listenToTapEvent:!0})}}))),_.J("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.J(_.SP,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(u){return _.J($z,{data:u.data,
listenToTapEvent:!0,setTouchEndHandler:_.V("enable_top_landscape_image_experiment_dom_id_web")})}})))},"lc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;G=_.tk({visibilityCallback:function(u,B){if(u){var t;(u=(t=H().interaction)==null?void 0:t.onFirstVisible)&&_.zt(u);var D;if(t=(D=H().adLayoutData)==null?void 0:D.activeViewData)mw(B,t),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Uw(B)})}else _.V("stop_av_measurement_on_detach")&&Uw(B)},
showOption:_.ux,hideOption:Bb});var Z=_.SQ(_.T3),Q=_.fG(function(){return H().interaction}),p={},l={},q={};
return _.J("square-image-layout-view-model",{class:_.bb("ytwSquareImageLayoutViewModelHost",(p.ytwSquareImageLayoutViewModelHostColumn=Z,p)),el:_.aX(G,NRU,Q)},_.J("div",{class:_.bb("ytwSquareImageLayoutViewModelHostImage",(l.ytwSquareImageLayoutViewModelHostColumnImage=Z,l))},function(){return _.J(_.SP,{data:function(){return H().adImage}},{adImageViewModel:function(u){return _.J(_.PR,{data:u.data,
isGridViewEnabled:Z,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.J("div",{class:_.bb("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=Z,q))},_.J(_.SP,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:$z}),function(){return _.J(_.SP,{data:function(){return H().adButton}},{adButtonViewModel:function(u){var B={};
return _.J(_.Jz,{data:u.data,className:_.bb((B.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,B.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=Z,B))})}})}()))},"mc"),"square-image-layout-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=G.noBottomMargin;var Q=G.typographyBump;G=_.tk({visibilityCallback:function(d,e){if(d){var n;(d=(n=H().interaction)==null?void 0:n.onFirstVisible)&&_.zt(d);var c;if(n=(c=H().adLayoutData)==null?void 0:c.activeViewData)mw(e,n),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Uw(e)})}else _.V("stop_av_measurement_on_detach")&&Uw(e)},
showOption:_.ux,hideOption:Bb});var p=_.fG(function(){return H().interaction},void 0,function(){return _.V("enable_web_home_top_landscape_image_layout_level_click")}),l=function(){return H().interaction};
l!==void 0&&l!==null||_.HU(Error("Nh"));var q=function(){var d,e,n;return(d=_.X(H().thumbnailImage,hA7))==null?void 0:(e=d.background)==null?void 0:(n=e.backgroundImageSource)==null?void 0:n.imageSources};
l=_.I(_.Ty(!1,void 0,"NFjwje"));var u=l.next().value,B=l.next().value;l=_.Hh(function(){B(!0)});
var t=_.Hh(function(){B(!1)}),D=function(){return u()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.J("top-landscape-image-layout-view-model",{class:function(){var d;return((d=H().interaction)==null?0:d.onTap)&&_.V("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.aX(G,AIj,p),"on:mouseenter":l,"on:mouseleave":t},_.J("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.J(_.k,{cond:function(){return q()&&q().length>0},
then:function(){return _.J("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.pI({top:"0","background-image":function(){return"url("+String(q()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.J(_.k,{cond:function(){return!!H().adButtonHoverOverlay},
then:function(){return _.J("div",{class:D},_.J(_.SP,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:hZG}))}}),_.J("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.J(_.SP,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(d){return _.J(_.PR,{data:d.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.V("enable_web_home_top_landscape_image_layout_level_click")})}})),_.J("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.J(_.ib,{data:{sources:[{clientResource:{imageName:_.V("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.J("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.J(_.SP,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(d){return _.J($z,{data:d.data,
noBottomMargin:function(){return Z==null?void 0:Z()},
listenToTapEvent:function(){return _.V("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return Q==null?void 0:Q()}})}})))},"nc"),"top-landscape-image-layout-view-model",{props:{data:_.b3,
noBottomMargin:_.b3,typographyBump:_.b3}});var Cjw=_.y(function(G){var H=G.data,Z=_.tk({visibilityCallback:function(p){var l,q=(l=H().interaction)==null?void 0:l.onFirstVisible;p&&q&&_.zt(q)},
showOption:_.ux});G=_.fG(function(){return H().interaction},G.customCommandResolver);
var Q={};return _.J("ad-text-image-view-model",{class:_.bb("ytwAdTextImageViewModelHost",(Q.ytwAdTextImageViewModelHostDarkBackground=function(){return H().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},Q)),
el:_.aX(Z,G),"aria-label":function(){var p,l;return(p=H().interaction)==null?void 0:(l=p.accessibility)==null?void 0:l.label}},_.J("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.J(_.Fe,{text:function(){return H().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.J(_.k,{cond:function(){return H().overlayIcon},
then:function(p){return _.J("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.J(_.ib,{data:p,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"oc");var ivT=_.y(function(G){var H=G.data;return _.J("feed-ad-sitelink-view-model",{class:function(){var Z;return((Z=H().interaction)==null?0:Z.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.aX(_.fG(function(){return H().interaction},G.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var Z,Q;return(Z=H().interaction)==null?void 0:(Q=Z.accessibility)==null?void 0:Q.label},
role:"link",tabindex:0},_.J(_.Fe,{text:function(){return H().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"pc");var Ov4=_.y(function(G){var H=G.data;G={};return _.J("feed-ad-sitelinks-carousel-view-model",{el:_.aX(_.tk({visibilityCallback:function(Z){var Q,p=(Q=H().interaction)==null?void 0:Q.onFirstVisible;Z&&p&&_.zt(p)},
showOption:_.ux})),class:_.bb("ytwFeedAdSitelinksCarouselViewModelHost",(G.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return H().style==="FEED_AD_SITELINKS_STYLE_NONE"},G))},_.J(_.SP,{data:function(){return H().sitelinks}},{feedAdSitelinkViewModel:ivT}))},"qc");_.RX(_.y(function(G){var H=G.data;G=_.tk({visibilityCallback:function(q,u){if(q){var B;(q=(B=H().interaction)==null?void 0:B.onFirstVisible)&&_.zt(q);var t;(B=(t=H().adLayoutData)==null?void 0:t.activeViewData)&&mw(u,B)}},
showOption:_.ux});var Z=_.I(_.Ty(!1,void 0,"BzPhl")),Q=Z.next().value,p=Z.next().value;Z=_.Hh(function(){p(!0)});
var l=_.Hh(function(){p(!1)});
return _.J("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.aX(G),"on:mouseenter":Z,"on:mouseleave":l},_.J("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.J("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.J(_.SP,{data:function(){return H().textImage}},{adTextImageViewModel:Cjw})),_.J("div",{class:function(){return Q()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.J(_.SP,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(q){return _.J(hZG,{data:q.data,
listenToTapEvent:!0})}}))),_.J("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.J(_.SP,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(q){return _.J($z,{data:q.data,
listenToTapEvent:!0})}}),_.J(_.SP,{data:function(){return H().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:Ov4})))},"rc"),"text-image-no-button-layout-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=G.typographyBump;return _.J("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.aX(_.tk({visibilityCallback:function(Q,p){if(Q){var l;(Q=(l=H().interaction)==null?void 0:l.onFirstVisible)&&_.zt(Q);var q;(l=(q=H().adLayoutData)==null?void 0:q.activeViewData)&&mw(p,l)}},
showOption:_.ux,hideOption:Bb}))},_.J("div",null,_.J(_.SP,{data:function(){return H().videoLockup}},{lockupViewModel:function(Q){return _.J(_.Xf,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:Z})}})))},"sc"),"video-display-button-group-layout-view-model",{props:{data:_.b3,
noBottomMargin:_.b3,typographyBump:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=G.className;var Q=G.typographyBump;return _.J("video-display-compact-button-group-layout-view-model",{el:_.aX(_.tk({visibilityCallback:function(p,l){if(p){var q;(p=(q=H().interaction)==null?void 0:q.onFirstVisible)&&_.zt(p);var u;(q=(u=H().adLayoutData)==null?void 0:u.activeViewData)&&mw(l,q)}},
showOption:_.ux})),class:_.bb("videoDisplayCompactButtonGroupLayoutViewModelHost",Z)},_.J(_.SP,{data:function(){return H().videoLockup}},{lockupViewModel:function(p){return _.J(_.Xf,{data:p.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Q})}}))},"tc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.b3,
className:_.b3,typographyBump:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=G.className;var Q=G.typographyBump;return _.J("video-display-compact-buttoned-layout-view-model",{el:_.aX(_.tk({visibilityCallback:function(p,l){if(p){var q;(p=(q=H().interaction)==null?void 0:q.onFirstVisible)&&_.zt(p);var u;(q=(u=H().adLayoutData)==null?void 0:u.activeViewData)&&mw(l,q)}},
showOption:_.ux})),class:_.bb("videoDisplayCompactButtonedLayoutViewModelHost",Z)},_.J(_.SP,{data:function(){return H().videoLockup}},{lockupViewModel:function(p){return _.J(_.Xf,{data:p.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Q})}}))},"uc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.b3,
className:_.b3,typographyBump:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=G.className;var Q=G.typographyBump;var p=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},l=_.SQ(_.T3);
G=_.tk({visibilityCallback:function(t,D){if(t){var d=H();t=d.adLayoutData;var e;(d=(e=d.interaction)==null?void 0:e.onFirstVisible)&&_.zt(d);(e=t==null?void 0:t.activeViewData)&&mw(D,e)}},
showOption:_.ux});var q=_.Kb(function(){return{containerType:p()&&l()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:p()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),u=_.Kb(function(){return p()&&l()?"":p()?"168px":"50%"},void 0,"Om6kNe"),B=_.Kb(function(){return p()&&l()?9999:void 0},void 0,"S71lKd");
return _.J("video-display-compact-layout-view-model",{el:_.aX(G),class:_.bb("videoDisplayCompactLayoutViewModelHost",Z)},_.J(_.SP,{data:function(){return H().videoLockup}},{lockupViewModel:function(t){return _.J(_.Xf,{data:t.data,
containerLayoutConfig:q,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:u,thumbnailTargetWidth:B,typographyBump:Q})}}))},"vc"),"video-display-compact-layout-view-model",{props:{data:_.b3,
className:_.b3,typographyBump:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=G.typographyBump;return _.J("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.aX(_.tk({visibilityCallback:function(Q,p){if(Q){var l;(Q=(l=H().interaction)==null?void 0:l.onFirstVisible)&&_.zt(Q);var q;(l=(q=H().adLayoutData)==null?void 0:q.activeViewData)&&mw(p,l)}},
showOption:_.ux,hideOption:Bb}))},_.J("div",null,_.J(_.SP,{data:function(){return H().videoLockup}},{lockupViewModel:function(Q){return _.J(_.Xf,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:Z})}})))},"wc"),"video-display-full-layout-view-model",{props:{data:_.b3,
noBottomMargin:_.b3,typographyBump:_.b3}});_.a3R=_.y(function(G){var H=G.data;G=_.IA("ad-card-badge-view-model");return _.J("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:G},_.J(_.k,{cond:function(){return H().imageBadge},
then:function(Z){return _.J(_.ib,{data:Z,alt:""})}}))},"xc");var yYT=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;return _.J("carousel-ad-card-image-view-model",{class:function(){var Q;return((Q=H().interaction)==null?0:Q.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.aX(_.tk({visibilityCallback:function(Q){var p,l=(p=H().interaction)==null?void 0:p.onFirstVisible;Q&&l&&_.zt(l)},
showOption:_.ux}),_.fG(function(){return H().interaction},Z)),
"aria-label":function(){var Q,p;return(Q=H().interaction)==null?void 0:(p=Q.accessibility)==null?void 0:p.label}},_.J(_.SP,{data:function(){return H().adImage}},{adImageViewModel:function(Q){return _.J(_.PR,{data:Q.data,
customCommandResolver:Z})}}),_.J("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.J(_.SP,{data:function(){return H().badge}},{adCardBadgeViewModel:_.a3R})),_.J(_.u1,{model:{color:4}}))},"yc");var opp=_.y(function(G){var H=_.I(_.Ty(0,void 0,"JJ0QQc")),Z=H.next().value;H.next();var Q=H.next().value,p=_.I(_.Ty(!1,void 0,"f6YICe"));H=p.next().value;var l=p.next().value,q;_.oM(function(){clearTimeout(q)});
p=_.Hh(function(){var t;((t=G.animate)==null?0:t.call(G))?(l(!0),q=setTimeout(function(){l(!1);u()},200)):u();
return!1});
var u=function(){Q(function(t){return(t+G.numShownItems())%G.data().length})},B={};
return _.J("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.J("div",{class:_.bb("ytwHorizontalCarouselCarouselWrapper")},_.J("div",{class:_.bb("ytwHorizontalCarouselCarouselInnerWrapper",(B.ytwHorizontalCarouselAnimating=H,B))},_.J(_.Cl,{each:G.data,keyBy:"INDEX"},function(t,D){return _.J("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.pI({"flex-basis":function(){return"calc((100% - (8px * "+(G.numShownItems()-1)+")) / "+G.numShownItems()+")"},
order:function(){var d=D-Z();d<0&&(d+=G.data().length);return d}})},G.children(t,D))}))),_.J("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":p},G.nextButton()))},"zc");var mqw=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;var Q=G.expansive;return _.J("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.aX(_.tk({visibilityCallback:function(p){var l,q=(l=H().interaction)==null?void 0:l.onFirstVisible;p&&q&&_.zt(q)},
showOption:_.ux}))},_.J(opp,{data:function(){var p;return((p=H())==null?void 0:p.carouselAdCards)||[]},
nextButton:function(){return _.J(_.SP,{data:function(){return H().nextButton}},{buttonViewModel:function(p){var l=p.data;
return _.J(_.kg,{data:function(){return(Q==null?0:Q())?Object.assign({},l(),{style:"mono"}):l()},
className:_.V("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(p){return _.J(_.SP,{data:p},{carouselAdCardImageViewModel:function(l){return _.J(yYT,{data:l.data,customCommandResolver:Z})}})}))},"Ac");var Uq_=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;var Q=G.className;var p=G.buttonClassName;var l=G.animationEntityKey;var q=G.expansive;return _.J("carousel-button-view-model",{class:_.bb("ytwCarouselButtonViewModelHost",Q)},_.J(_.SP,{data:function(){return H().carousel}},{carouselAdCardCollectionViewModel:function(u){return _.J(mqw,{data:u.data,
customCommandResolver:Z,expansive:q})}}),_.J(_.SP,{data:function(){return H().button}},{adButtonViewModel:function(u){var B=u.data;
return _.J(_.Jz,{data:function(){return(q==null?0:q())?Object.assign({},B(),{style:"AD_BUTTON_STYLE_TONAL"}):B()},
className:p,customCommandResolver:Z,animationEntityKey:l})}}))},"Bc");_.RZa=_.y(function(G){var H=G.data;G=G.className;var Z=_.IA("pivot-button-view-model");_.mR(function(){var Q;((Q=H())==null?0:Q.backgroundColor)&&Z.value.setAttribute("data-background-color",String(H().backgroundColor))});
return _.J("pivot-button-view-model",{el:Z,class:_.bb("ytwPivotButtonViewModelHost",G)},_.J(_.S8,{command:function(){var Q=H();Q=Q.onClickCommand?_.Tt(Q.onClickCommand):Q.contentDescription?_.Nv(Q.contentDescription):void 0;return Q},
ariaLabel:function(){return H().contentDescription}},_.J(_.k,{cond:function(){return H().thumbnail},
then:function(Q){return _.J(_.ib,{data:Q,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.J(_.k,{cond:function(){return H().icon},
then:function(Q){return _.J(_.ll,{icon:function(){return Q().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cc");_.N_a=_.y(function(G){var H=G.data;var Z=G.buttonShapeOverrideables;return _.J("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.J(_.SP,{data:function(){return H().buttonViewModels}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
buttonOverrides:Z})},
likeButtonViewModel:function(Q){return _.J(_.AD,{data:Q.data,buttonShapeOverrideables:Z})},
dislikeButtonViewModel:function(Q){return _.J(_.Nt,{data:Q.data,buttonShapeOverrideables:Z})},
toggleButtonViewModel:function(Q){return _.J(_.hf,{data:Q.data,buttonShapeOverrides:Z})}}))},"Dc");var AYa=_.y(function(G){var H=G.avatar;var Z=G.headline;var Q=G.badge;var p=G.description;var l=G.expansive;G={};return _.J("yt-ad-metadata-shape",{class:_.bb("ytAdMetadataShapeHost",(G.ytAdMetadataShapeHostLarge=l,G))},_.J("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.J(_.k,{cond:H,then:function(q){return _.J(_.Oaw,{data:function(){return(l==null?0:l())?Object.assign({},q(),{size:"AD_AVATAR_SIZE_M"}):q()}})}}),_.J("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.J(_.Fe,{text:Z,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.J(_.k,{cond:Q,then:function(q){return _.J(_.nJ,{data:function(){return(l==null?0:l())?Object.assign({},q(),{style:"AD_BADGE_STYLE_STARK"}):q()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.J("h2",{class:"ytAdMetadataShapeHostDescription"},_.J(_.Fe,{text:p,
linkInheritColor:!0,isHeadline:function(){return l==null?void 0:l()}})))},"Ec");var xq_=_.y(function(G){var H=G.data;var Z=G.onShow;var Q=G.expansive;G=_.fG(function(){return H().interaction});
_.mR(function(){var l,q=(l=H().animatedRenderingConfig)==null?void 0:l.delayedSecondsToVisible;if(q){var u=setTimeout(Z,q*1E3);_.oM(function(){clearTimeout(u)})}});
var p={};return _.J("reels-ad-card-buttoned-view-model",{class:_.bb(function(){var l;return((l=H().interaction)==null?0:l.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(p.ytwReelsAdCardButtonedViewModelHostExpansive=Q,p)),
el:_.aX(G)},_.J(AYa,{avatar:function(){return _.X(H().avatar,POw)},
headline:function(){return H().headline},
badge:function(){return _.X(H().adBadge,rAx)},
description:function(){return H().description},
expansive:Q}),_.J(_.SP,{data:function(){return H().ctaButton}},{adButtonViewModel:function(l){var q=l.data;
return _.J(_.Jz,{data:function(){return(Q==null?0:Q())?Object.assign({},q(),{style:"AD_BUTTON_STYLE_FILLED"}):q()}})}}))},"Fc");var LVa=_.y(function(G){var H=G.data;G=G.expansive;var Z=_.V("web_ad_metadata_clickable")?_.fG(function(){return H().interaction},void 0,function(){return _.V("web_ad_metadata_clickable")}):void 0,Q={};
Q=_.Dq("ytwReelsAdMetadataViewModelHost",(Q.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.V("web_ad_metadata_clickable"),Q));return _.J("reels-ad-metadata-view-model",{class:Q,el:_.aX(Z)},_.J(AYa,{avatar:function(){return _.X(H().avatar,POw)},
headline:function(){return H().headline},
badge:function(){return _.X(H().adBadge,rAx)},
description:function(){return H().description},
expansive:G}))},"Gc");var EpN={iconPosition:"icon-with-label",size:"L"},Yf_=_.y(function(G){var H=G.data;var Z=G.overlayDensity;var Q=G.extractOverlay;var p=G.extractActionBar;G=_.IA("reels-player-overlay-layout-view-model");var l=_.yy(Z,0),q=function(){var n;return(n=H().reelsAdCardButtonedEntityKey)!=null?n:""},u=function(){return q()+"/ad_button"},B=_.gu(VZM,q),t=function(){var n,c;
return(c=(n=B())==null?void 0:n.value)!=null?c:!1},D=_.SQ(xNW),d=function(){var n;
return Object.assign({},EpN,(D()||!((n=p==null?void 0:p())!=null&&n))&&{style:"overlay-dark"})};
Z={};var e={};return _.J("reels-player-overlay-layout-view-model",{class:_.bb("ytwReelsPlayerOverlayLayoutViewModelHost",(Z.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!H().extension},Z.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},Z.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return l()===1&&!(Q==null?0:Q())},Z.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var n;
return(n=Q==null?void 0:Q())!=null?n:!1},Z.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var n;
return(n=p==null?void 0:p())!=null?n:!1},Z)),
"overlay-density":function(){return String(l())},
el:G},_.J("div",{class:_.bb("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(e.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},e))},_.J("div",{"aria-hidden":function(){return t()},
class:_.bb("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return t()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.pI({"transition-duration":function(){return F7X(H())}})},_.J(_.SP,{data:function(){return H().adMetadata}},{reelsAdMetadataViewModel:function(n){return _.J(LVa,{data:n.data,
expansive:function(){return l()===1}})}}),_.J(_.k,{cond:function(){return H().extension},
then:function(n){return _.J("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.J(_.SP,{data:n},{adButtonViewModel:function(c){return _.J(_.Jz,{data:c.data,animationEntityKey:u,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(c){return _.J(Uq_,{data:c.data,animationEntityKey:u,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return l()===1}})}}))}})),_.J("div",{"aria-hidden":function(){return!t()},
class:_.bb("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return t()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.pI({"transition-duration":function(){return F7X(H())}})},_.J(_.SP,{data:function(){return H().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(n){return _.J(xq_,{data:n.data,
onShow:function(){_.aK(_.uP("booleanEntity",q(),{key:q(),value:!0}))},
expansive:function(){return l()===1}})}}))),_.J("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.J(_.SP,{data:function(){return H().actions}},{reelActionBarViewModel:function(n){return _.J(_.N_a,{data:n.data,
buttonShapeOverrideables:d})}}),_.J(_.SP,{data:function(){return H().menu}},{buttonViewModel:function(n){return _.J(_.kg,{data:n.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},d(),{type:"tonal"})}})}}),_.J(_.SP,{data:function(){return H().pivotButton}},{pivotButtonViewModel:function(n){return _.J(_.RZa,{data:n.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hc");_.RX(Yf_,"reels-player-overlay-layout-view-model",{props:{data:_.b3,overlayDensity:_.b3,extractOverlay:_.b3,extractActionBar:_.b3}});var rY=function(){var G=_.C.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.T(rY,_.C);_.g=rY.prototype;
_.g.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.V("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.g.ready=function(){var G=this;lbv(function(){G.isAttached&&hW(G.JSC$15667_storedAdSlotMetadata,G.JSC$15667_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&vR(Tf(),G.JSC$15667_storedAdSlotMetadata,G.JSC$15667_storedAdLayoutMetadata)})};
_.g.attached=function(){hW(this.JSC$15667_storedAdSlotMetadata,this.JSC$15667_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&w12(Tf(),this.JSC$15667_storedAdSlotMetadata,this.JSC$15667_storedAdLayoutMetadata)};
_.g.detached=function(){hW(this.JSC$15667_storedAdSlotMetadata,this.JSC$15667_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&vR(Tf(),this.JSC$15667_storedAdSlotMetadata,this.JSC$15667_storedAdLayoutMetadata)};
_.g.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.g.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15667_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15667_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15667_storedAdLayoutMetadata!==void 0&&this.JSC$15667_storedAdSlotMetadata!==void 0&&vR(Tf(),this.JSC$15667_storedAdSlotMetadata,this.JSC$15667_storedAdLayoutMetadata),w12(Tf(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15667_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15667_storedAdSlotMetadata=this.adSlotMetadata)};
_.u4.Object.defineProperties(rY.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
rY.prototype.onAdMetadataChanged=rY.prototype.onAdMetadataChanged;rY.prototype.onTypographyBumpChanged=rY.prototype.onTypographyBumpChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],rY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rY.prototype,"rendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],rY.prototype,"ytComponentBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],rY.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],rY.prototype,"noBottomMargin",void 0);_.N([_.h(),_.A("design:type",Object)],rY.prototype,"overlayDensity",void 0);_.N([_.h(),_.A("design:type",Object)],rY.prototype,"extractOverlay",void 0);_.N([_.h(),_.A("design:type",Object)],rY.prototype,"extractActionBar",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],rY.prototype,"typographyBump",void 0);
_.N([_.z("data.adLayoutMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],rY.prototype,"adLayoutMetadata",null);_.N([_.h(),_.A("design:type",Object)],rY.prototype,"adSlotMetadata",void 0);_.N([_.q6("ytd-video-display-full-buttoned-and-button-group-renderer"),_.A("design:type",HTMLElement)],rY.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.N([_.gx("typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rY.prototype,"onTypographyBumpChanged",null);_.N([_.gx("adLayoutMetadata","adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rY.prototype,"onAdMetadataChanged",null);_.N([_.O({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],rY);
_.m(rY,"ytd-in-feed-ad-layout-renderer",function(){if(iz2!==void 0)return iz2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return iz2=G},
{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var FVp;var bv4;_.RX(_.nJ,"ad-badge-view-model",{props:{data:_.b3,hasDot:_.b3,customCommandResolver:_.oX,adRenderingContextType:_.oX,usedInMasthead:_.oX}});_.RX(_.Jz,"ad-button-view-model",{props:{data:_.b3,customCommandResolver:_.oX,className:_.oX,delayedClassName:_.oX,animationEntityKey:_.oX,isCompactWidth:_.oX,isContentWidth:_.oX}});var wY=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return G};
_.T(wY,_.C);_.g=wY.prototype;_.g.computeHasLiveDescription=function(G){return!(G==null||!G.liveDescription)};
_.g.computeHasByline=function(G){return!(G==null||!G.byline)};
_.g.computeUsesAdButtonViewModel=function(G){return!!_.X(G==null?void 0:G.cta,ws_)};
_.g.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"}}}}}};
_.g.onYtToggleButton=function(G){var H,Z=(H=this.data)==null?void 0:H.videoReminderEntityKey;Z&&this.ytdReduxBehavior.dispatch(_.uP("upcomingEventReminderStateEntity",Z,{key:Z,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.g.attached=function(){this.updateChannelBanner()};
_.g.dataChanged=function(){this.updateChannelBanner()};
_.g.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.X((G=this.data)==null?void 0:G.cta,_.Fw)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.g.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var G=_.N$(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);G&&(G.startsWith("//")&&(G="https:"+G),this.hostElement.classList.add("channel-banner"),_.ZI(this.hostElement,{"--ytvmh-channel-banner":"url("+G+")"}))}else _.V("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.g.onPlayerReady=function(){this.onIronResize()};
_.g.maybeFlushDebouncer=function(){_.V("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(G){var H;G=(H=G.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0];fuR(G==null?void 0:G.polymerController)})};
_.g.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var G=_.F9(this.hostElement).querySelector("#live-description"),H;G&&((H=this.data)==null?0:H.shortLiveDescription)&&G.clientWidth<G.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
wY.prototype.onIronResize=wY.prototype.onIronResize;wY.prototype.videoReminderStateChanged=wY.prototype.videoReminderStateChanged;wY.prototype.dataChanged=wY.prototype.dataChanged;wY.prototype.onYtToggleButton=wY.prototype.onYtToggleButton;_.N([_.v(_.hS),_.A("design:type",Object)],wY.prototype,"ironResizableBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],wY.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],wY.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wY.prototype,"data",void 0);_.N([_.h({selectorArgs:["data.videoReminderEntityKey"],selector:paj}),_.A("design:type",Object)],wY.prototype,"videoReminderState",void 0);
_.N([_.h({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.A("design:type",Boolean)],wY.prototype,"rounded",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.A("design:type",Boolean)],wY.prototype,"hasLiveDescription",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.A("design:type",Boolean)],wY.prototype,"hasByline",void 0);
_.N([_.h({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.A("design:type",String)],wY.prototype,"adRenderingContextType",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],wY.prototype,"isMasthead",void 0);_.N([_.h({computed:"computeUsesAdButtonViewModel(data)"}),_.A("design:type",Boolean)],wY.prototype,"usesAdButtonViewModel",void 0);
_.N([_.h({reflectToAttribute:!0,value:_.V("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.A("design:type",Boolean)],wY.prototype,"resizableAdBannerSafariFix",void 0);_.N([_.S9("yt-formatted-string"),_.A("design:type",Array)],wY.prototype,"formattedStrings",void 0);_.N([_.q6("#cta-button"),_.A("design:type",HTMLElement)],wY.prototype,"ctaButton",void 0);
_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wY.prototype,"onYtToggleButton",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wY.prototype,"dataChanged",null);_.N([_.gx("videoReminderState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wY.prototype,"videoReminderStateChanged",null);
_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wY.prototype,"onIronResize",null);_.N([_.O({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],wY);
_.m(wY,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(bv4!==void 0)return bv4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return bv4=G},{mode:1});var Gb_;var hV=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};G.isLocked=!1;return G};
_.T(hV,_.C);_.g=hV.prototype;_.g.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.g.onExpandedChanged=function(){this.expanded&&_.xk(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.g.onMouseOver=function(){this.maybeExpand()};
_.g.onTap=function(){this.maybeExpand()};
_.g.onExpandableTileExpanding=function(G){G!==this&&(this.expanded=!1)};
_.g.onExpandableTileLockAndCollapse=function(G){this.isLocked=!0;G!==this&&(this.expanded=!1)};
_.g.onExpandableTileUnlock=function(){this.isLocked=!1};
hV.prototype.onTap=hV.prototype.onTap;hV.prototype.onMouseOver=hV.prototype.onMouseOver;hV.prototype.onExpandedChanged=hV.prototype.onExpandedChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],hV.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],hV.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],hV.prototype,"expanded",void 0);_.N([_.Jv("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hV.prototype,"onExpandedChanged",null);_.N([_.lq("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hV.prototype,"onMouseOver",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hV.prototype,"onTap",null);
_.N([_.O({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],hV);
_.m(hV,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Gb_!==void 0)return Gb_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Gb_=G},{mode:1});var H4w;var Ce=function(){var G=_.C.apply(this,arguments)||this;G.buttonOverrides={style:"overlay"};G.useYtdPlayer=_.V("use_ytd_player_for_desktop_masthead");G.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};G.playbackFinished=!1;G.JSC$15681_playerManager=null;G.JSC$15681_mastheadCounter=new Hgd;return G};
_.T(Ce,_.C);_.g=Ce.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$15681_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15681_playerManager=new K2)};
_.g.ready=function(){var G=this;this.JSC$15681_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var H=_.F9(this.hostElement).querySelector("#player");this.useYtdPlayer?H.style.display="none":(this.ytdPlayer.style.display="none",NzG(this.JSC$15681_playerManager,H,function(){G.onPlaybackEnded()}),_.F9(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var Z;
((Z=G.data)==null?0:Z.navigationEndpoint)&&_.N5(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})}))};
_.g.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15681_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.g.attached=function(){var G=this;_.PG(function(){G.maybePlayVideo()})};
_.g.maybePlayVideo=function(){var G=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$15681_playerManager.playVideo(),this.getPlayerPromise().then(function(){G.JSC$15681_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.g.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15681_playerManager.stopVideo()};
_.g.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var G,H={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((G=this.data.playbackStartMs)!=null?G:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else x3x(this.JSC$15681_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(AGa(this.JSC$15681_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.g.getPlayerPromise=function(){return this.JSC$15681_playerManager.getPlayerPromise()};
_.g.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$15681_playerManager.mute():this.JSC$15681_playerManager.unMute()};
_.g.onYtNavigate=function(G){var H=IEj(G.detail.endpoint),Z=qFX(this.data.clickthroughReportingData);H&&Z&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=Z:_.aO(H,Z,30))};
_.g.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.g.onExpandedChanged=function(){this.expanded?(_.xk(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.g.onMouseOver=function(){this.maybeExpand()};
_.g.onTap=function(){this.maybeExpand()};
_.g.onExpandableTileExpanding=function(G){G!==this&&(this.stopVideo(),this.expanded=!1)};
_.g.onExpandableTileLockAndCollapse=function(G){G!==this&&(this.isLocked=!0,this.expanded=!1)};
_.g.onExpandableTileUnlock=function(){this.isLocked=!1};
_.g.lockAndCollapseExpandableTiles=function(){_.AZ(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.g.unlockExpandableTiles=function(){_.AZ(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.g.setupYtdPlayer=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.ytdPlayer.getPlayerPromise(),2);H=Z.yieldResult;H.addEventListener("onStateChange",function(Q){G.onPlayerStateChange(Q)});
H.addEventListener("onCueRangeExit",function(Q){G.onCueRangeExit(Q)});
_.K0(Z)})};
_.g.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var H=G.getCurrentTime(),Z,Q,p=H+((Q=(Z=this.data)==null?void 0:Z.playbackDurationMs)!=null?Q:0)/1E3;G.addCueRange("playback",H,p);this.JSC$15681_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.g.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.g.toggleMute=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(H.ytdPlayer.getPlayerPromise(),2);Z=Q.yieldResult;G?Z.mute():Z.unMute();_.K0(Q)})};
Ce.prototype.onTap=Ce.prototype.onTap;Ce.prototype.onMouseOver=Ce.prototype.onMouseOver;Ce.prototype.onExpandedChanged=Ce.prototype.onExpandedChanged;Ce.prototype.onYtNavigate=Ce.prototype.onYtNavigate;Ce.prototype.onYtToggleButton=Ce.prototype.onYtToggleButton;Ce.prototype.dataChanged=Ce.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ce.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ce.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ce.prototype,"expanded",void 0);_.N([_.h(),_.A("design:type",Object)],Ce.prototype,"buttonOverrides",void 0);
_.N([_.h(),_.A("design:type",Object)],Ce.prototype,"useYtdPlayer",void 0);_.N([_.q6("#ytd-player"),_.A("design:type",Object)],Ce.prototype,"ytdPlayer",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ce.prototype,"dataChanged",null);_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ce.prototype,"onYtToggleButton",null);
_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ce.prototype,"onYtNavigate",null);_.N([_.Jv("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ce.prototype,"onExpandedChanged",null);_.N([_.lq("mouseover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ce.prototype,"onMouseOver",null);
_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ce.prototype,"onTap",null);_.N([_.O({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Ce);
_.m(Ce,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(H4w!==void 0)return H4w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return H4w=G},{mode:1});var sma;var iT=function(){return _.C.apply(this,arguments)||this};
_.T(iT,_.C);iT.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
iT.prototype.onShow=function(){var G=_.F9(this.hostElement).querySelector("#live-description"),H;G&&((H=this.data)==null?0:H.shortLiveDescription)&&G.clientWidth<G.scrollWidth&&this.hostElement.classList.add("short-live-description")};
iT.prototype.onYtToggleButton=function(G){var H,Z=(H=this.data)==null?void 0:H.videoReminderEntityKey;Z&&this.ytdReduxBehavior.dispatch(_.uP("upcomingEventReminderStateEntity",Z,{key:Z,state:G.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
iT.prototype.videoReminderStateChanged=function(){var G;this.videoReminderState&&_.X((G=this.data)==null?void 0:G.cta,_.Fw)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
iT.prototype.videoReminderStateChanged=iT.prototype.videoReminderStateChanged;iT.prototype.onYtToggleButton=iT.prototype.onYtToggleButton;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],iT.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],iT.prototype,"data",void 0);
_.N([_.h({selectorArgs:["data.videoReminderEntityKey"],selector:paj}),_.A("design:type",Object)],iT.prototype,"videoReminderState",void 0);_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],iT.prototype,"onYtToggleButton",null);_.N([_.gx("videoReminderState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iT.prototype,"videoReminderStateChanged",null);
_.N([_.O({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],iT);
_.m(iT,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(sma!==void 0)return sma;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sma=G},{mode:_.LH("kevlar_poly_si_batch_j065")?1:2});var Z4a;var OF=function(){var G=_.C.apply(this,arguments)||this;G.useYtdPlayer=_.V("use_ytd_player_for_desktop_masthead");G.buttonOverrides={style:"overlay"};G.JSC$15689_playerManager=null;G.JSC$15689_mastheadCounter=new Hgd;G.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return G};
_.T(OF,_.C);_.g=OF.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$15689_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15689_playerManager=new K2)};
_.g.ready=function(){var G=this;this.JSC$15689_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var H;(H=this.embeddedPlayer)==null||H.remove()}else{var Z;(Z=this.ytdPlayer)==null||Z.remove();NzG(this.JSC$15689_playerManager,this.embeddedPlayer,function(){G.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){G.data&&G.data.navigationEndpoint&&_.N5(G.hostElement,"yt-navigate",{endpoint:G.data.navigationEndpoint})})}};
_.g.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15689_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.g.dataChanged=function(){var G=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var H=!this.data.disableAutoPlayback,Z,Q={autoplay:H,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((Z=this.data.playbackStartMs)!=null?Z:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(H?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(Q);this.setupYtdPlayer()}else x3x(this.JSC$15689_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(AGa(this.JSC$15689_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15689_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.AZ(G.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");G.JSC$15689_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.g.getPlayerPromise=function(){return this.JSC$15689_playerManager.getPlayerPromise()};
_.g.onYtToggleButton=function(G){this.useYtdPlayer?this.toggleMute(G.detail.toggled):G.detail.toggled?this.JSC$15689_playerManager.mute():this.JSC$15689_playerManager.unMute()};
_.g.onYtNavigate=function(G){var H=IEj(G.detail.endpoint),Z=qFX(this.data.clickthroughReportingData);H&&Z&&(G.detail.endpoint.watchEndpoint?G.detail.tempData=Z:_.aO(H,Z,30))};
_.g.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15689_playerManager.stopVideo()};
_.g.setupYtdPlayer=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.ytdPlayer.getPlayerPromise(),2);H=Z.yieldResult;H.addEventListener("onStateChange",function(Q){G.onPlayerStateChange(Q)});
H.addEventListener("onCueRangeExit",function(Q){G.onCueRangeExit(Q)});
_.K0(Z)})};
_.g.onPlayerStateChange=function(G){if(G===1&&(G=this.ytdPlayer.getPlayer())){var H=G.getCurrentTime(),Z,Q,p=H+((Q=(Z=this.data)==null?void 0:Z.playbackDurationMs)!=null?Q:0)/1E3;G.addCueRange("playback",H,p);_.AZ(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15689_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.g.onCueRangeExit=function(G){G==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.g.toggleMute=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(H.ytdPlayer.getPlayerPromise(),2);Z=Q.yieldResult;G?Z.mute():Z.unMute();_.K0(Q)})};
_.u4.Object.defineProperties(OF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G,H;if(!((G=this.data)==null?0:(H=G.accessibilityData)==null?0:H.label))return"Ad primary link";var Z,Q;return _.Zg("AD_TITLE",{title:(Z=this.data)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label})}}});
OF.prototype.onYtMastheadHidden=OF.prototype.onYtMastheadHidden;OF.prototype.onYtNavigate=OF.prototype.onYtNavigate;OF.prototype.onYtToggleButton=OF.prototype.onYtToggleButton;OF.prototype.dataChanged=OF.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],OF.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],OF.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],OF.prototype,"useYtdPlayer",void 0);_.N([_.q6("ytd-toggle-button-renderer"),_.A("design:type",Object)],OF.prototype,"muteButton",void 0);_.N([_.h(),_.A("design:type",Object)],OF.prototype,"buttonOverrides",void 0);
_.N([_.z("data.accessibilityData.label"),_.A("design:type",String),_.A("design:paramtypes",[])],OF.prototype,"titleAriaLabel",null);_.N([_.q6("#replay-button"),_.A("design:type",Object)],OF.prototype,"replayButton",void 0);_.N([_.q6("#player-container"),_.A("design:type",Object)],OF.prototype,"playerContainer",void 0);_.N([_.q6("#player"),_.A("design:type",Object)],OF.prototype,"embeddedPlayer",void 0);_.N([_.q6("#ytd-player"),_.A("design:type",Object)],OF.prototype,"ytdPlayer",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OF.prototype,"dataChanged",null);_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],OF.prototype,"onYtToggleButton",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],OF.prototype,"onYtNavigate",null);
_.N([_.lq("yt-masthead-hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OF.prototype,"onYtMastheadHidden",null);_.N([_.O({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],OF);
_.m(OF,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Z4a!==void 0)return Z4a;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Z4a=G},{mode:2});var QmN;var ao=function(){var G=_.C.apply(this,arguments)||this;G.collapsed=!1;G.impressionResolver=_.hQ();G.JSC$15693_activeViewMeasurementDataResolver=_.hQ();G.actionMap={"yt-mute-ad-action":"handleMuteAd"};return G};
_.T(ao,_.C);_.g=ao.prototype;_.g.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"}}}};
_.g.created=function(){this.activeView=new kE(this.hostElement)};
_.g.ready=function(){var G=this;_.F9(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){G.expandAd()});
this.hostElement.addEventListener("yt-action",function(H){if(H.detail.actionName==="yt-service-request"){var Z=H.detail.args[1];Z.videoMastheadAdMuteCommand&&(G.collapseAd(Z.videoMastheadAdMuteCommand.encryptedMastheadId),H.stopPropagation())}})};
_.g.attached=function(){var G=this;_.PG(function(){G.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(H){if(!G.collapsed){H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,HW(Z.baseUrl,Z.attributionSrcMode);G.data.impressionCommand=void 0}});
this.JSC$15693_activeViewMeasurementDataResolver.promise.then(function(H){DK(G.activeView,H)});
_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dV(G.activeView)})};
_.g.dataChanged=function(){var G;((G=this.data.impressionCommand)==null?0:G.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var H;((H=this.data)==null?0:H.activeView)&&this.JSC$15693_activeViewMeasurementDataResolver.resolve(this.data.activeView);(G=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(G.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.g.computeWidescreen=function(G){var H;return!!(G&&((H=_.X(G,W1_))==null?0:H.isWidescreen))};
_.g.computeExpandable=function(G){return!!(G&&G.length>0)};
_.g.onIronResize=function(){if(this.expandable){var G=_.F9(this.hostElement).querySelector("#expandable-tile-container :first-child");G&&!G.expanded&&(G.expanded=!0)}};
_.g.handleMuteAd=function(){this.collapseAd(null)};
_.g.restoreCollapsedState=function(G){this.collapsed=_.lf().get("HIDDEN_MASTHEAD_ID")===G};
_.g.collapseAd=function(G){if(G){var H=_.lf();H.set("HIDDEN_MASTHEAD_ID",G);H.save()}(G=_.F9(this.hostElement).querySelector("#video"))&&_.N5(G,"yt-masthead-hidden");this.collapsed=!0};
_.g.expandAd=function(){var G=_.lf();G.set("HIDDEN_MASTHEAD_ID",!1);G.save();location.reload()};
_.g.detached=function(){_.V("stop_av_measurement_on_detach")&&dV(this.activeView)};
ao.prototype.onIronResize=ao.prototype.onIronResize;ao.prototype.dataChanged=ao.prototype.dataChanged;_.N([_.v(_.hS),_.A("design:type",Object)],ao.prototype,"ironResizableBehavior",void 0);_.N([_.v(_.xO),_.A("design:type",Object)],ao.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],ao.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ao.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.A("design:type",Boolean)],ao.prototype,"widescreen",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.A("design:type",Boolean)],ao.prototype,"expandable",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ao.prototype,"collapsed",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ao.prototype,"dataChanged",null);_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ao.prototype,"onIronResize",null);_.N([_.O({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],ao);
_.m(ao,"ytd-video-masthead-ad-v3-renderer",function(){if(QmN!==void 0)return QmN;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return QmN=G},{mode:2});var yK=function(){return _.C.apply(this,arguments)||this};
_.T(yK,_.C);_.g=yK.prototype;_.g.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.g.ready=function(){var G=this;lbv(function(){G.isAttached&&hW(G.JSC$15698_storedAdSlotMetadata,G.JSC$15698_storedAdLayoutMetadata,G.adSlotMetadata,G.adLayoutMetadata)&&vR(Tf(),G.JSC$15698_storedAdSlotMetadata,G.JSC$15698_storedAdLayoutMetadata)})};
_.g.attached=function(){hW(this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&w12(Tf(),this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata)};
_.g.detached=function(){hW(this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&vR(Tf(),this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata)};
_.g.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15698_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15698_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15698_storedAdLayoutMetadata!==void 0&&this.JSC$15698_storedAdSlotMetadata!==void 0&&vR(Tf(),this.JSC$15698_storedAdSlotMetadata,this.JSC$15698_storedAdLayoutMetadata),w12(Tf(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15698_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15698_storedAdSlotMetadata=this.adSlotMetadata)};
_.u4.Object.defineProperties(yK.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.adLayoutMetadata}}});
yK.prototype.onAdMetadataChanged=yK.prototype.onAdMetadataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],yK.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],yK.prototype,"data",void 0);_.N([_.z("data.adLayoutMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],yK.prototype,"adLayoutMetadata",null);
_.N([_.h(),_.A("design:type",Object)],yK.prototype,"adSlotMetadata",void 0);_.N([_.gx("adLayoutMetadata","adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yK.prototype,"onAdMetadataChanged",null);_.N([_.O({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],yK);
_.m(yK,"ytd-page-top-ad-layout-renderer",function(){if(FVp!==void 0)return FVp;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return FVp=
G},{mode:_.LH("kevlar_poly_si_batch_j070")?1:2});var pL4;var oo=function(){var G=_.C.apply(this,arguments)||this;G.noBottomMargin=!1;G.overlayDensity=0;G.typographyBump=!1;G.extractOverlay=!1;G.extractActionBar=!1;return G};
_.T(oo,_.C);_.g=oo.prototype;
_.g.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]]"}}}}}};
_.g.ready=function(){var G=this;lbv(function(){G.isAttached&&G.adSlotMetadata&&rYG(Tf(),G.adSlotMetadata)})};
_.g.attached=function(){if(this.adSlotMetadata){var G;if(this.adSlotMetadata===((G=this.data)==null?void 0:G.adSlotMetadata))Pjp(Tf(),this.adSlotMetadata);else{var H;_.Rp(Error("Oh`"+this.adSlotMetadata+"`"+((H=this.data)==null?void 0:H.adSlotMetadata)))}}};
_.g.detached=function(){this.adSlotMetadata&&rYG(Tf(),this.adSlotMetadata)};
_.g.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.g.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&rYG(Tf(),this.adSlotMetadata),Pjp(Tf(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.u4.Object.defineProperties(oo.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=_.X((G=this.data)==null?void 0:(H=G.fulfillmentContent)==null?void 0:H.fulfilledLayout,_.K1p),Q;return(G=(Q=_.X(Z==null?void 0:Z.renderingContent,zAw))==null?void 0:Q.layout)?G.toLowerCase().replace(/_/g,"-"):""}}});
oo.prototype.onAdSlotMetadataChanged=oo.prototype.onAdSlotMetadataChanged;oo.prototype.onTypographyBumpChanged=oo.prototype.onTypographyBumpChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],oo.prototype,"rendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],oo.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],oo.prototype,"noBottomMargin",void 0);_.N([_.h(),_.A("design:type",Object)],oo.prototype,"overlayDensity",void 0);_.N([_.h(),_.A("design:type",Object)],oo.prototype,"typographyBump",void 0);_.N([_.h(),_.A("design:type",Object)],oo.prototype,"extractOverlay",void 0);_.N([_.h(),_.A("design:type",Object)],oo.prototype,"extractActionBar",void 0);
_.N([_.q6("ytd-in-feed-ad-layout-renderer"),_.A("design:type",HTMLElement)],oo.prototype,"inFeedAdLayoutRenderer",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],oo.prototype,"layout",null);_.N([_.gx("typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oo.prototype,"onTypographyBumpChanged",null);
_.N([_.gx("data.adSlotMetadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oo.prototype,"onAdSlotMetadataChanged",null);_.N([_.O({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],oo);
_.m(oo,"ytd-ad-slot-renderer",function(){if(pL4!==void 0)return pL4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return pL4=G},{mode:_.LH("kevlar_poly_si_batch_j077")?
1:2});var lBG;var mo=function(){return _.C.apply(this,arguments)||this};
_.T(mo,_.C);_.g=mo.prototype;_.g.created=function(){this.activeView=new kE(this.hostElement)};
_.g.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"}}}};
_.g.maybeComputeHref=function(){return null};
_.g.onTap=function(){};
_.g.onThumbnailContainerClick=function(G){this.onClick(G)};
_.g.onClick=function(G){var H,Z=(H=this.data)==null?void 0:H.navigationEndpoint;Z&&_.X(Z,_.hZ)&&(this.ytSparklesClickLocationBehavior.handleClick(Z,G,!1),G.stopPropagation())};
_.g.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var G=_.I(this.data.impressionUrls),H=G.next();!H.done;H=G.next())H=H.value,m6j(H,R2j(H));this.data.activeView&&DK(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",mo.JSC$15706_DEFAULT_CLICK_LOCATION_BEHAVIOR,mo.JSC$15706_CLICK_LOCATION_ID_MAP);this.thumbnail&&(G=this.thumbnail.getElementsByTagName("a"),G.length>0&&(G=G.namedItem("thumbnail"))&&G.removeAttribute("href"))}};
_.g.attached=function(){var G=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dV(G.activeView)})};
_.g.detached=function(){_.V("stop_av_measurement_on_detach")&&dV(this.activeView)};
_.u4.Object.defineProperties(mo.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
mo.prototype.dataChanged=mo.prototype.dataChanged;mo.prototype.onTap=mo.prototype.onTap;mo.JSC$15706_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
mo.JSC$15706_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"}];_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],mo.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],mo.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],mo.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],mo.prototype,"ytSparklesClickLocationBehavior",void 0);
_.N([_.h({selector:_.T3}),_.A("design:type",Object)],mo.prototype,"isGridViewEnabled",void 0);_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],mo.prototype,"watchFeedBigThumbs",null);_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],mo.prototype,"thumbnailWidth",null);_.N([_.h(),_.A("design:type",Object)],mo.prototype,"data",void 0);
_.N([_.q6("ytd-thumbnail"),_.A("design:type",HTMLElement)],mo.prototype,"thumbnail",void 0);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mo.prototype,"onTap",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mo.prototype,"dataChanged",null);_.N([_.O({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],mo);
_.m(mo,"ytd-compact-promoted-video-renderer",function(){if(lBG!==void 0)return lBG;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return lBG=G},{mode:1});var gBG;_.eQ("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var UF=function(){return _.C.apply(this,arguments)||this};
_.T(UF,_.C);UF.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],UF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],UF.prototype,"data",void 0);_.N([_.O({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],UF);
_.m(UF,"ytd-search-pyv-renderer",function(){if(gBG!==void 0)return gBG;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return gBG=G},{mode:1});var IB7;_.eQ("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Ro=function(){var G=_.C.apply(this,arguments)||this;G.roundedContainer=!0;G.JSC$15714_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.T(Ro,_.C);_.g=Ro.prototype;
_.g.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}}};
_.g.onStampFinished=function(){this.JSC$15714_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.F9(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");G?G.openDialog():this.JSC$15714_handleOpenPostCommentDialogActionAfterStamp=!0};
_.g.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.g.computeHideBorder=function(){return this.isInEngagementPanel};
_.g.computeIsCompact=function(){return this.isInEngagementPanel};
_.g.computeUsesCompactLockup=function(G){return G==="BACKSTAGE_SURFACE_TYPE_HOME"||G==="BACKSTAGE_SURFACE_TYPE_SEARCH"||G==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||G==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||G==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||G==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.g.computeUsesFullLockup=function(){var G,H=(G=this.data)==null?void 0:G.post,Z;G=(Z=_.X(H,mOw))==null?void 0:Z.surface;var Q;Z=(Q=_.X(H,NKa))==null?void 0:Q.originalPost;var p;if(Q=G||((p=_.X(Z,mOw))==null?void 0:p.surface))return!this.computeUsesCompactLockup(Q)&&this.useUpdatedRepostUi;var l;return((l=_.X(H,NKa))==null?void 0:l.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.u4.Object.defineProperties(Ro.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var G,H;return((H=_.X((G=this.data)==null?void 0:G.post,mOw))==null?void 0:H.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.useUpdatedRepostUi}}});
Ro.prototype.onYtCommentModerationPanelEmpty=Ro.prototype.onYtCommentModerationPanelEmpty;Ro.prototype.onStampFinished=Ro.prototype.onStampFinished;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ro.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Ro.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ro.prototype,"roundedContainer",void 0);_.N([_.h({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ro.prototype,"hideBorder",void 0);_.N([_.h({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ro.prototype,"isCompact",void 0);
_.N([_.h({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ro.prototype,"usesFullLockup",void 0);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ro.prototype,"onStampFinished",null);
_.N([_.lq("ytd-comment-moderation-panel-empty"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ro.prototype,"onYtCommentModerationPanelEmpty",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ro.prototype,"isInEngagementPanel",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ro.prototype,"useUpdatedRepostUi",null);
_.N([_.O({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Ro);
_.m(Ro,"ytd-backstage-post-thread-renderer",function(){if(IB7!==void 0)return IB7;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return IB7=G},{mode:1});var qGp;var Ny=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(Ny,_.C);Ny.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Ny.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var G=this.data.thumbnail.thumbnails;this.isDarkTheme&&(G=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(G=_.N$(G,24,void 0,"height"))?G:void 0}};
Ny.prototype.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
Ny.prototype.computeHasText=function(){var G;return!((G=this.data)==null||!G.text)};
_.u4.Object.defineProperties(Ny.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.m0(this.bannerImageUrl))+'");'}}});
Ny.prototype.computeHasText=Ny.prototype.computeHasText;Ny.prototype.computeBannerImageUrl=Ny.prototype.computeBannerImageUrl;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ny.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ny.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Ny.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Ny.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",String)],Ny.prototype,"bannerImageUrl",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.A("design:type",Boolean)],Ny.prototype,"hasText",void 0);_.N([_.gx("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ny.prototype,"computeBannerImageUrl",null);
_.N([_.gx("data.text"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ny.prototype,"computeHasText",null);_.N([_.z("bannerImageUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ny.prototype,"bannerStyle",null);_.N([_.O({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Ny);
_.m(Ny,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(qGp!==void 0)return qGp;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return qGp=G},{mode:1});var SGT;var AV=function(){return _.C.apply(this,arguments)||this};
_.T(AV,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],AV.prototype,"data",void 0);_.N([_.O({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],AV);
_.m(AV,"ytd-backstage-zero-state-renderer",function(){if(SGT!==void 0)return SGT;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SGT=G},{mode:1});var uct;var xn=function(){return _.C.apply(this,arguments)||this};
_.T(xn,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xn.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],xn.prototype,"icon",void 0);_.N([_.O({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],xn);
_.m(xn,"ytd-post-filter-zero-state-renderer",function(){if(uct!==void 0)return uct;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uct=G},{mode:1});var Bow;var J84={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Le=function(){return _.C.apply(this,arguments)||this};
_.T(Le,_.C);Le.prototype.configureRendererStamper=function(){return J84};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Le.prototype,"rendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Le.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],Le.prototype,"icon",void 0);_.N([_.O({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Le);
_.m(Le,"ytd-post-scheduling-zero-state-renderer",function(){if(Bow!==void 0)return Bow;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Bow=G},{mode:1});var tUa;var EF=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return G};
_.T(EF,_.C);EF.prototype.onTabsActivate=function(G){this.data&&this.data.tabs&&_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[G.detail.selected].navigationEndpoint})};
EF.prototype.shouldShowTotalCount=function(G){return G&&G.totalCount!==void 0};
EF.prototype.handleUpdatePostsTotalCountAction=function(G){var H=this.get(["data.tabs",1,"totalCount"]),Z=this.get("updatePostsTotalCountAction.updateType",G);G=this.get("updatePostsTotalCountAction.number",G);H!==void 0&&Z!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&G&&(Z==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(H)+G):Z==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(H)-G))};
_.u4.Object.defineProperties(EF.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var G=0,H=this.data.tabs.length;G<H;G++)if(this.data.tabs[G].selected)return G;return 0}}});
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],EF.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],EF.prototype,"rendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],EF.prototype,"data",void 0);_.N([_.z("data.tabs"),_.A("design:type",Number),_.A("design:paramtypes",[])],EF.prototype,"selected",null);_.N([_.O({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],EF);
_.m(EF,"ytd-post-stream-filter-renderer",function(){if(tUa!==void 0)return tUa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return tUa=G},{mode:1});var kbw;var Yn=function(){return _.C.apply(this,arguments)||this};
_.T(Yn,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Yn.prototype,"kevlarBehaviors",void 0);_.N([_.h(),_.A("design:type",Object)],Yn.prototype,"data",void 0);_.N([_.O({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],Yn);
_.m(Yn,"ytd-channel-age-gate-renderer",function(){if(kbw!==void 0)return kbw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return kbw=G},{mode:1});var DFa;_.eQ("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var F1=function(){var G=_.C.apply(this,arguments)||this;G.data=null;return G};
_.T(F1,_.C);F1.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u4.Object.defineProperties(F1.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.data)==null?0:(H=G.title)==null?0:(Z=H.runs)==null?0:Z.length)?147:160}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],F1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],F1.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],F1.prototype,"imageSizePx",null);_.N([_.O({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],F1);
_.m(F1,"ytd-channel-owner-empty-state-renderer",function(){if(DFa!==void 0)return DFa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return DFa=G},{mode:1});var dF4;var ezR;var bT=function(){var G=_.C.apply(this,arguments)||this;G.boundSubmitSearch=function(){G.submitSearch()};
G.boundClearSearch=function(){G.clearSearch()};
return G};
_.T(bT,_.C);_.g=bT.prototype;_.g.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]]"}}}}}};
_.g.toggleClearButton=function(){this.hideClearButton=aUN||!this.input.value};
_.g.submitOnEnterKeyUp=function(G){G.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.g.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.g.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.g.submit=function(){_.N5(this.hostElement,"search-query-changed",this.input.value)};
bT.prototype.toggleClearButton=bT.prototype.toggleClearButton;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],bT.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bT.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],bT.prototype,"hideClearButton",void 0);_.N([_.h(),_.A("design:type",Object)],bT.prototype,"boundSubmitSearch",void 0);_.N([_.h(),_.A("design:type",Object)],bT.prototype,"boundClearSearch",void 0);_.N([_.q6("#input"),_.A("design:type",Object)],bT.prototype,"input",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bT.prototype,"toggleClearButton",null);
_.N([_.O({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],bT);
_.m(bT,"ytd-channel-switcher-search-box-renderer",function(){if(ezR!==void 0)return ezR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ezR=G},{mode:1});var nBt;var GQ=function(){var G=_.C.apply(this,arguments)||this;G.boundSubmit=function(){G.submit()};
return G};
_.T(GQ,_.C);_.g=GQ.prototype;_.g.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"}}}}};
_.g.ready=function(){var G=this;this.form.addEventListener("submit",function(H){return G.onSubmit(H)})};
_.g.onSubmit=function(G){G.preventDefault();return!1};
_.g.toggleClearButton=function(){this.hideClearButton=aUN||!this.input.value};
_.g.submitOnEnterKeyUp=function(G){G.keyCode===13&&this.submit()};
_.g.submit=function(){var G=this.data.endpoint,H=(0,_.oN.unsafeClone)(G);_.X(H,_.gT)?_.X(H,_.gT).query=this.input.value:_.X(H,_.I_)&&(_.X(H,_.I_).query=this.input.value);var Z=_.X(H.commandMetadata,_.HA);(Z==null?0:Z.url)?(Z.url=_.LT(Z.url,"query",this.input.value),_.N5(this.hostElement,"yt-navigate",{endpoint:H})):_.X(H,$Od)?(_.X(H,$Od).channelSwitcherQuery=this.input.value,_.tp().resolve(_.Dk).resolveCommand(H,{form:{element:this.hostElement}})):(G=Error("Ph`"+JSON.stringify(G)),_.me(G))};
_.g.getUrl=function(G){return this.get("commandMetadata.webCommandMetadata.url",G)};
GQ.prototype.toggleClearButton=GQ.prototype.toggleClearButton;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],GQ.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],GQ.prototype,"hideClearButton",void 0);
_.N([_.h(),_.A("design:type",Object)],GQ.prototype,"boundSubmit",void 0);_.N([_.q6("#form"),_.A("design:type",HTMLFormElement)],GQ.prototype,"form",void 0);_.N([_.q6("#input"),_.A("design:type",Object)],GQ.prototype,"input",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GQ.prototype,"toggleClearButton",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],GQ);
_.m(GQ,"ytd-search-box-renderer",function(){if(nBt!==void 0)return nBt;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return nBt=G},{mode:2});var HF=function(){var G=_.C.apply(this,arguments)||this;G.showSearchBox=!0;return G};
_.T(HF,_.C);HF.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],HF.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],HF.prototype,"showSearchBox",void 0);_.N([_.O({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],HF);
_.m(HF,"ytd-channel-switcher-header-renderer",function(){if(dF4!==void 0)return dF4;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return dF4=G},{mode:1});var VU2;var $Fw;var sh=function(){var G=_.C.apply(this,arguments)||this;G.isDisplayed=!0;return G};
_.T(sh,_.C);_.g=sh.prototype;_.g.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.dataChanged=function(){this.isDisplayed=!0};
_.g.computeType=function(G){return G||"UNKNOWN"};
_.g.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isDisplayed=!1};
_.g.onClose=function(){this.isDisplayed=!1};
sh.prototype.onYtServiceRequestCompleted=sh.prototype.onYtServiceRequestCompleted;sh.prototype.dataChanged=sh.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sh.prototype,"data",void 0);
_.N([_.h({computed:"computeType(data.type)",reflectToAttribute:!0}),_.A("design:type",String)],sh.prototype,"type",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],sh.prototype,"isDisplayed",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sh.prototype,"dataChanged",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],sh.prototype,"onYtServiceRequestCompleted",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],sh);
_.m(sh,"ytd-alert-with-button-renderer",function(){if($Fw!==void 0)return $Fw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $Fw=G},{mode:1});var Zz=function(){var G=_.C.apply(this,arguments)||this;G.noResult=!1;G.enableAlertBanner=!1;G.dismissedAlertBanner=!1;G.hideCreateChannelButton=!1;G.boundDismissAlertBanner=function(){G.dismissAlertBanner()};
G.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return G};
_.T(Zz,_.C);_.g=Zz.prototype;_.g.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.g.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.g.updateChannelSwitcherAction=function(G){var H;G=(H=_.X(G,dox))==null?void 0:H.page;_.X(G,Dow)!==void 0&&(this.data=_.X(G,Dow))};
_.g.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]]"}}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.g.searchQueryChanged=function(G,H){if(this.data&&this.data.contents&&this.data.contents.length){G=[];var Z=[];this.hideCreateChannelButton=this.noResult=!1;for(var Q=document.querySelectorAll("ytd-account-item-renderer"),p=_.I(Q),l=p.next();!l.done;l=p.next())l=l.value,Z.push(l),l.style.display="block";this.resetRightBorder(Z);if(H){this.hideCreateChannelButton=!0;for(Z=1;Z<this.data.contents.length;Z++)if(l=this.data.contents[Z],_.X(l,eAd)){var q=void 0,u=void 0;p=(q=_.X(l,eAd))==null?void 0:(u=
q.accountName)==null?void 0:u.simpleText;u=q=void 0;l=(q=_.X(l,eAd))==null?void 0:(u=q.channelHandle)==null?void 0:u.simpleText;(q=Q[Z-1])&&p&&_.tM(p,H)?G.push(q):_.V("enable_handle_search_on_channel_switcher")&&q&&l&&_.tM(l.toString(),H.toString())?G.push(q):q.style.display="none"}G.length===0&&(this.noResult=!0);this.resetRightBorder(G)}}};
_.g.resetRightBorder=function(G){for(var H=0;H<G.length;H++)G[H].style.borderRight=!this.hideCreateChannelButton&&(H+2)%3===0||this.hideCreateChannelButton&&(H+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.g.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.g.setShowSearchBox=function(G){if(G&&G.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var H=0;H<G.contents.length;H++)_.X(G.contents[H],_.Oz)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.g.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.u4.Object.defineProperties(Zz.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.contents)}}});
Zz.prototype.onContinuationItemsUpdated=Zz.prototype.onContinuationItemsUpdated;Zz.prototype.searchQueryChanged=Zz.prototype.searchQueryChanged;Zz.prototype.onDataChanged=Zz.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Zz.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Zz.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],Zz.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Zz.prototype,"data",void 0);_.N([_.q6("ytd-channel-switcher-header-renderer"),_.A("design:type",Object)],Zz.prototype,"channelSwitcherHeaderRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],Zz.prototype,"noResult",void 0);
_.N([_.h(),_.A("design:type",Object)],Zz.prototype,"enableAlertBanner",void 0);_.N([_.h(),_.A("design:type",Object)],Zz.prototype,"dismissedAlertBanner",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Zz.prototype,"hideCreateChannelButton",void 0);_.N([_.z("data.contents"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Zz.prototype,"isLoading",null);_.N([_.h(),_.A("design:type",Object)],Zz.prototype,"boundDismissAlertBanner",void 0);
_.N([_.h({computed:"computeButtonOverride()"}),_.A("design:type",Object)],Zz.prototype,"buttonOverride",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zz.prototype,"onDataChanged",null);_.N([_.lq("search-query-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],Zz.prototype,"searchQueryChanged",null);
_.N([_.lq("yt-next-continuation-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Zz.prototype,"onContinuationItemsUpdated",null);_.N([_.O({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Zz);
_.m(Zz,"ytd-channel-switcher-page-renderer",function(){if(VU2!==void 0)return VU2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VU2=G},{mode:1});var XL2;var c82;var Qz=function(){var G=_.C.apply(this,arguments)||this;G.images=[];G.selectedImageIndex=0;return G};
_.T(Qz,_.C);_.g=Qz.prototype;
_.g.ready=function(){_.tt(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.tt(this.JSC$15759_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.tt(this.JSC$15759_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.tt(this.JSC$15759_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.g.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.g.updateImageThumbnails=function(G){G=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:G.event_.detail});this.images.splice(this.selectedImageIndex,1,G);this.images=[].concat(_.OP(this.images))};
_.g.cancelImageRepositions=function(){this.selectedImageIndex=0;_.N5(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.g.saveImageRepositions=function(){this.selectedImageIndex=0;_.N5(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.u4.Object.defineProperties(Qz.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var G=this;return(this.images||[]).map(function(H,Z){return{image:H,selected:Z===G.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("ytd-backstage-image-preview-renderer"),_.A("design:type",Object)],Qz.prototype,"JSC$15759_imagePreviewContainer",void 0);_.N([_.q6(".thumbnail-images-container"),_.A("design:type",HTMLElement)],Qz.prototype,"thumbnailImagesContainer",void 0);_.N([_.h(),_.A("design:type",Array)],Qz.prototype,"images",void 0);
_.N([_.h(),_.A("design:type",Object)],Qz.prototype,"repositionInstructions",void 0);_.N([_.h(),_.A("design:type",Object)],Qz.prototype,"selectedImageIndex",void 0);_.N([_.z("images","selectedImageIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],Qz.prototype,"thumbnailRendererDatas",null);_.N([_.z("images","selectedImageIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],Qz.prototype,"selectedImageData",null);
_.N([_.O({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Qz);
_.m(Qz,"ytd-backstage-multi-image-reposition-renderer",function(){if(c82!==void 0)return c82;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return c82=G},{mode:1});var pn=function(G,H){_.$f.call(this);this.uploadUrl=G;this.channelId=H;this.imagesUploadData=[]};
_.T(pn,_.$f);pn.prototype.getAllUploadStatuses=function(){var G=this,H,Z,Q;return _.S(function(p){if(p.nextAddress==1)return p.yield(To_(G),2);H=p.yieldResult;Z=H.get("succeed");Q=H.get("failed");return p.return(Z.concat(Q))})};
var vBw=function(G){var H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(To_(G),2);H=Q.yieldResult;Z=H.get("failed");Z.length>0&&fBp(G,Z);return Q.return(G.getAllUploadStatuses())})},To_=function(G){var H,Z,Q,p,l,q,u;
return _.S(function(B){if(B.nextAddress==1)return H=new Map,B.yield(Promise.allSettled(G.imagesUploadData.map(function(t){return t.uploadPromise})),2);
Z=B.yieldResult;Q=[];p=_.I(Z);for(l=p.next();!l.done;l=p.next())q=l.value,q.status==="fulfilled"&&Q.push(q.value);u=G.imagesUploadData.map(function(t){return t.image}).filter(function(t){return Q.every(function(D){return D.id!==t.id})});
H.set("succeed",Q);H.set("failed",u);return B.return(H)})},fBp=function(G,H){H=_.I(H);
for(var Z=H.next();!Z.done;Z=H.next()){var Q=G;Z=Z.value;Wpa(Q,Z.id)>=0&&Q.cancel(Z.id);var p=new zz_(Z),l=_.lNa(Q.uploadUrl,{"X-YouTube-ChannelId":Q.channelId},Z.imageBlob);p.transfer=l;p.uploadPromise=Kp_(l,Z);Q.imagesUploadData.push(p);l.run()}};
pn.prototype.cancel=function(G){var H=Wpa(this,G);H!==-1&&((H=this.imagesUploadData[H].transfer)&&H.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(Z){return Z.image.id!==G}))};
var Wpa=function(G,H){return G.imagesUploadData.findIndex(function(Z){return Z.image.id===H})},Kp_=function(G,H){return new Promise(function(Z,Q){G.listen("l",function(){var p=G.getResponseText();
p?(p=JSON.parse(p).encryptedBlobId,H.encryptedBlobId=p,Z(H)):Q("upload failed")});
G.listen("n",function(){Q("upload failed")})})},zz_=function(G){this.image=G};var bfe=function(G,H,Z,Q,p){this.id=G;this.imageBlob=H;this.localImageSrc=Z;this.naturalWidth=Q;this.naturalHeight=p;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 MU7=[".jpeg",".jpg",".png"],lC=function(){var G=_.C.apply(this,arguments)||this;G.showImagesPreview=!1;G.pollOptions=[];G.errorMessage="";G.optionPlaceholderText="";G.optionDefaultText="";G.JSC$15770_imageId=0;G.maxFileSizeMb=0;G.maxAspectRatio=0;G.invalidFileSizeError="";G.invalidAspectRatioError="";G.invalidFileTypeError="";G.imageSelector=new ns(null,"single_file",MU7);return G};
_.T(lC,_.C);_.g=lC.prototype;_.g.ready=function(){_.tt(this.imageSelector,"j",this.onImageSelect,!1,this);_.tt(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.tt(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.g.dataChanged=function(){var G,H,Z=_.X((G=this.data)==null?void 0:(H=G.cellTemplate)==null?void 0:H.onEmptyCellTap,YrG);if(Z&&Z.uploadUrl&&Z.channelId){var Q;this.maxFileSizeMb=((Q=Z.imageValidationInfo)==null?void 0:Q.maxFileSizeMb)||0;var p;this.maxAspectRatio=((p=Z.imageValidationInfo)==null?void 0:p.allowedMaxAspectRatio)||0;var l;this.invalidFileSizeError=this.getSimpleString((l=this.data)==null?void 0:l.invalidFileSizeError);var q;this.invalidAspectRatioError=this.getSimpleString((q=this.data)==
null?void 0:q.invalidAspectRatioError);var u;this.invalidFileTypeError=this.getSimpleString((u=this.data)==null?void 0:u.invalidFileTypeError);this.uploadManager=new pn(Z.uploadUrl,Z.channelId)}};
_.g.onEditorInfoChange=function(){this.optionPlaceholderText=_.yn(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.yn(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.g.observeAddImageError=function(){this.errorMessage!==""&&_.N5(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.g.onPollOptionsChange=function(){for(var G=!1,H=[],Z=0;Z<this.pollOptions.length;Z++){var Q=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(Z+1);this.pollOptions[Z].placeholderText!==Q?(G=!0,H.push(Object.assign({},this.pollOptions[Z],{placeholderText:Q}))):H.push(this.pollOptions[Z])}G&&(this.pollOptions=H);this.isValid()?_.N5(this.hostElement,"yt-commentbox-post-enable"):_.N5(this.hostElement,"yt-commentbox-post-disable")};
_.g.createPollOptions=function(G){var H=[],Z;G=(Z=G==null?void 0:G.minPollOptions)!=null?Z:0;for(Z=0;Z<G;Z++)H.push(this.createPollOption());return H};
_.g.onImageSelect=function(G){var H=this,Z,Q,p,l,q,u;return _.S(function(B){if(B.nextAddress==1){if(H.selectedImageIndex===void 0)return B.jumpTo(0);Z=G.files[0];H.errorMessage="";Q=H.validateImage(Z);if(Q!=="")return H.errorMessage=Q,B.return();p=new qz(H.maxAspectRatio,!1,!0);return B.yield(p.transform(Z),3)}if(B.nextAddress!=4)return l=B.yieldResult,l.transformedData?l.invalidAspectRatio?(H.errorMessage=H.invalidAspectRatioError,B.return()):B.yield(GlW(H.JSC$15770_imageId,G.files[0],l.transformedData),
4):(H.errorMessage=H.invalidFileTypeError,B.return());q=B.yieldResult;H.JSC$15770_imageId++;fBp(H.uploadManager,[q]);u=Object.assign({},H.pollOptions[H.selectedImageIndex],{image:q});H.pollOptions.splice(H.selectedImageIndex,1,u);H.refreshPollOptions();_.N5(H.hostElement,"yt-backstage-poll-image-select");_.K0(B)})};
_.g.validateImage=function(G){return G.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.g.refreshPollOptions=function(){this.pollOptions=[].concat(_.OP(this.pollOptions))};
_.g.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.OP(this.pollOptions),[this.createPollOption()]))};
_.g.onRemovePollOption=function(G){var H=this.pollOptions[G.model.index];H&&H.image&&this.uploadManager.cancel(H.image.id);this.pollOptions.splice(G.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.N5(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.g.onTextInput=function(){this.refreshPollOptions()};
_.g.onImageButtonClick=function(G){this.selectedImageIndex=G.model.index;this.imageSelector.click()};
_.g.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.g.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.g.saveImageRepositions=function(G){G=G.event_.detail;for(var H=0,Z=[],Q=_.I(this.pollOptions),p=Q.next();!p.done;p=Q.next())p=p.value,p.image!==void 0?(p=Object.assign({},p,{image:G[H]}),Z.push(p),H++):Z.push(p);this.showImagesPreview=!1;this.pollOptions=[].concat(_.OP(Z))};
_.g.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 G=0,H=_.I(this.pollOptions),Z=H.next();!Z.done;Z=H.next())if(Z=Z.value,Z.optionText.trim()!==""||Z.image!==void 0){if(!Z.image||this.hasCustomOptionText&&Z.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;G++}return G>=Number(this.editorInfo.minPollOptions)};
_.g.getAllUploadStatuses=function(){var G=this,H,Z,Q,p;return _.S(function(l){if(l.nextAddress==1)return l.yield(G.uploadManager.getAllUploadStatuses(),2);H=l.yieldResult;Z=_.I(H);for(Q=Z.next();!Q.done;Q=Z.next())if(p=Q.value,p.encryptedBlobId===void 0)return l.return(vBw(G.uploadManager));return l.return(H)})};
_.g.getPostCreateOptions=function(){for(var G=[],H=_.I(this.pollOptions),Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.image!==void 0&&G.push({text:this.hasCustomOptionText?Z.optionText:Z.placeholderText,image:Z.image});return G};
_.g.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.g.createButtonRenderer=function(G,H){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleString(G)}},isDisabled:H}};
_.g.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.g.computeThumbnailRendererData=function(G){return G?{image:G,selected:!1}:void 0};
_.g.getSimpleString=function(G){return _.yn(G)};
_.g.updateOptionTextFromBinding=function(G){if(G.target){var H=Array.from(_.F9(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(G.target);if(H>=0){var Z;this.pollOptions[H].optionText=(Z=G.detail.value)!=null?Z:""}}};
_.u4.Object.defineProperties(lC.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,H;return this.pollOptions.length<((H=(G=this.editorInfo)==null?void 0:G.maxPollOptions)!=null?H:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(G){return G.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(G){return G.image}).map(function(G){return G.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(G){return G.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var G,H=(G=this.data)==null?void 0:G.addOptionButtonText;return H?this.createButtonRenderer(H,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var G,H=(G=this.data)==null?void 0:G.repositionImagesButtonLabel;return H?this.createButtonRenderer(H,!this.hasImages):void 0}}});
lC.prototype.onPollOptionsChange=lC.prototype.onPollOptionsChange;lC.prototype.observeAddImageError=lC.prototype.observeAddImageError;lC.prototype.onEditorInfoChange=lC.prototype.onEditorInfoChange;lC.prototype.dataChanged=lC.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("ytd-backstage-multi-image-reposition-renderer"),_.A("design:type",Object)],lC.prototype,"imageRepositionContainer",void 0);
_.N([_.h(),_.A("design:type",Object)],lC.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],lC.prototype,"editorInfo",void 0);_.N([_.h(),_.A("design:type",pn)],lC.prototype,"uploadManager",void 0);_.N([_.h(),_.A("design:type",Object)],lC.prototype,"showImagesPreview",void 0);_.N([_.h(),_.A("design:type",Array)],lC.prototype,"pollOptions",void 0);_.N([_.h(),_.A("design:type",Object)],lC.prototype,"errorMessage",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lC.prototype,"dataChanged",null);_.N([_.Jv("editorInfo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lC.prototype,"onEditorInfoChange",null);_.N([_.gx("errorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lC.prototype,"observeAddImageError",null);
_.N([_.Jv("pollOptions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lC.prototype,"onPollOptionsChange",null);_.N([_.z("pollOptions","editorInfo"),_.A("design:type",Object),_.A("design:paramtypes",[])],lC.prototype,"isAllowedToAddOption",null);_.N([_.z("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],lC.prototype,"hasImages",null);
_.N([_.z("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],lC.prototype,"imagesToReposition",null);_.N([_.z("pollOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],lC.prototype,"hasCustomOptionText",null);_.N([_.z("data","isAllowedToAddOption"),_.A("design:type",Object),_.A("design:paramtypes",[])],lC.prototype,"addOptionButton",null);_.N([_.z("data","hasImages"),_.A("design:type",Object),_.A("design:paramtypes",[])],lC.prototype,"repositionImagesButton",null);
_.N([_.O({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],lC);
_.m(lC,"ytd-backstage-image-poll-editor-renderer",function(){if(XL2!==void 0)return XL2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return XL2=G},{mode:2});var jma={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 PKw;var gX=function(){var G=_.C.apply(this,arguments)||this;G.a11yConfig=jma;G.imageDisplayOffsetTop=0;G.imageDisplayOffsetLeft=0;G.pickerDisplayOffsetTop=0;G.pickerDisplayOffsetLeft=0;G.showPreviewContainer=!0;G.startPicker=!1;G.repositionOptional=!1;G.editOnlyMode=!1;G.savedImageDisplayOffsetTop=0;G.savedImageDisplayOffsetLeft=0;return G};
_.T(gX,_.C);_.g=gX.prototype;_.g.created=function(){_.AS.requestAvailability()};
_.g.ready=function(){};
_.g.onArrowKeysDown=function(G){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var H=0,Z=0,Q="";switch(G.detail.keyboardEvent.key){case "ArrowUp":Hae(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Q=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":Hae(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Q=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":Hae(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Q=this.a11yConfig.reachRightOfImage:Z=this.imageWidth*.05*-1;break;case "ArrowRight":Hae(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Q=this.a11yConfig.reachLeftOfImage:Z=this.imageWidth*.05}Q&&_.Zg(Q)&&_.N5(this.hostElement,"iron-announce",{text:_.Zg(Q)});if(Z||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.Zg(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+Z)),G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),G=_.Zg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.N5(this.hostElement,"iron-announce",{text:G})}};
_.g.getPreviewPosition=function(G,H,Z,Q){return Math.round(100*(G+H*.5-Z)/Q)};
_.g.calculateDisplayPosition=function(){var G=this.imageData.naturalWidth,H=this.imageData.naturalHeight;this.displayScale=Math.max(200/G,200/H);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var Z=G*this.displayScale*this.imageData.previewCoordinates.left,Q=H*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=H>G?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-Z;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=G>H?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-Q;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=G*this.displayScale;this.imageHeight=H*this.displayScale};
_.g.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.g.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.g.getSignedPosition=function(G,H,Z){return H==="X"&&_.xI("HTML_DIR")==="rtl"?Z==="-"?G+"px":G*-1+"px":Z==="-"?G*-1+"px":G+"px"};
_.g.pickerMove=function(G){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-G.clientX,Z=this.pickerOffsetY-G.clientY;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
Z)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.g.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.g.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var G=this.generateCropPreview();G&&_.N5(this.hostElement,"ytd-backstage-image-preview-coordinates-update",G)};
_.g.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.N5(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.g.deleteImage=function(){_.N5(this.hostElement,"ytd-backstage-image-preview-delete")};
_.g.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.g.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var G=this.generateCropPreview();G&&_.N5(this.hostElement,"ytd-backstage-image-preview-coordinates-save",G)};
_.g.getPreviewOffset=function(G,H,Z){return H&&G?(Z==="X"&&_.xI("HTML_DIR")==="rtl"?300/H*G:300/H*G*-1)+"px":"0px"};
_.g.getSimpleText=function(G){return G?_.yn(G):""};
_.g.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}};
_.u4.Object.defineProperties(gX.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Zg(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.Zg(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Zg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.Zg(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 G,H,Z=(G=this.instruction)==null?void 0:(H=G.previewInstruction)==null?void 0:H.editButtonLabel;return Z?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:Z,accessibilityData:{accessibilityData:{label:this.getSimpleText(Z)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q,p=this.editOnlyMode?(G=this.instruction)==null?void 0:(H=G.editInstruction)==null?void 0:H.saveImagesButtonLabel:(Z=this.instruction)==null?void 0:(Q=Z.editInstruction)==null?void 0:Q.saveButtonLabel;return p?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:p,accessibilityData:{accessibilityData:{label:this.getSimpleText(p)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.instruction)==null?void 0:(H=G.previewInstruction)==null?void 0:H.deleteButtonLabel;return Z?{size:"SIZE_SMALL",text:Z,accessibilityData:{accessibilityData:{label:this.getSimpleText(Z)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.instruction)==null?void 0:(H=G.editInstruction)==null?void 0:H.cancelButtonLabel;G=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return Z?{style:G,size:"SIZE_SMALL",text:Z,accessibilityData:{accessibilityData:{label:this.getSimpleText(Z)}}}: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"}}});
gX.prototype.onEditOnlyModeUpdate=gX.prototype.onEditOnlyModeUpdate;gX.prototype.onImageChange=gX.prototype.onImageChange;_.N([_.h(),_.A("design:type",bfe)],gX.prototype,"imageData",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"instruction",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"a11yConfig",void 0);_.N([_.h(),_.A("design:type",Number)],gX.prototype,"imageWidth",void 0);_.N([_.h(),_.A("design:type",Number)],gX.prototype,"imageHeight",void 0);
_.N([_.h(),_.A("design:type",Number)],gX.prototype,"displayScale",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"imageDisplayOffsetTop",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"imageDisplayOffsetLeft",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"pickerDisplayOffsetTop",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"pickerDisplayOffsetLeft",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"showPreviewContainer",void 0);
_.N([_.h(),_.A("design:type",Object)],gX.prototype,"startPicker",void 0);_.N([_.h(),_.A("design:type",Number)],gX.prototype,"pickerOffsetX",void 0);_.N([_.h(),_.A("design:type",Number)],gX.prototype,"pickerOffsetY",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"repositionOptional",void 0);_.N([_.h(),_.A("design:type",Object)],gX.prototype,"editOnlyMode",void 0);_.N([_.q6("#picker-container"),_.A("design:type",HTMLElement)],gX.prototype,"JSC$15783_pickerContainer",void 0);
_.N([_.q6("#picker"),_.A("design:type",HTMLElement)],gX.prototype,"picker",void 0);_.N([_.q6("#preview-clipper"),_.A("design:type",HTMLElement)],gX.prototype,"previewClipper",void 0);_.N([_.q6("#image-in-picker-background"),_.A("design:type",HTMLImageElement)],gX.prototype,"JSC$15783_imageInBackground",void 0);_.N([_.q6("#image-in-picker"),_.A("design:type",HTMLImageElement)],gX.prototype,"JSC$15783_imageInPicker",void 0);
_.N([_.q6("#image-in-preview-clipper"),_.A("design:type",HTMLImageElement)],gX.prototype,"JSC$15783_imageInPreviewClipper",void 0);_.N([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],gX.prototype,"altLabelForImage",null);_.N([_.z("imageHeight","imageWidth"),_.A("design:type",Number),_.A("design:paramtypes",[])],gX.prototype,"pickerSize",null);
_.N([_.z("imageHeight","imageWidth"),_.A("design:type",Object),_.A("design:paramtypes",[])],gX.prototype,"imageOrientationStyle",null);_.N([_.z("instruction"),_.A("design:type",Object),_.A("design:paramtypes",[])],gX.prototype,"editButton",null);_.N([_.z("instruction","editOnlyMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],gX.prototype,"saveButton",null);_.N([_.z("instruction"),_.A("design:type",Object),_.A("design:paramtypes",[])],gX.prototype,"deleteButton",null);
_.N([_.z("instruction","editOnlyMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],gX.prototype,"cancelButton",null);_.N([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.A("design:type",Number),_.A("design:paramtypes",[])],gX.prototype,"cropOffsetTop",null);_.N([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.A("design:type",Number),_.A("design:paramtypes",[])],gX.prototype,"cropOffsetLeft",null);
_.N([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],gX.prototype,"pickerBackgroundStyle",null);_.N([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],gX.prototype,"pickerDisplayStyle",null);_.N([_.z("cropOffsetLeft","cropOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],gX.prototype,"imageInPickerStyle",null);
_.N([_.z("cropOffsetLeft","cropOffsetTop","pickerSize"),_.A("design:type",String),_.A("design:paramtypes",[])],gX.prototype,"previewClipperStyle",null);_.N([_.Jv("imageData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gX.prototype,"onImageChange",null);_.N([_.Jv("editOnlyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gX.prototype,"onEditOnlyModeUpdate",null);
_.N([_.z("showPreviewContainer"),_.A("design:type",String),_.A("design:paramtypes",[])],gX.prototype,"pickerModeStyle",null);_.N([_.O({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],gX);
_.m(gX,"ytd-backstage-image-preview-renderer",function(){if(PKw!==void 0)return PKw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return PKw=G},{mode:1});var r8w;var wLp={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 hz4;var CKp;var IV=function(){var G=_.C.apply(this,arguments)||this;G.a11yConfig=wLp;G.imageDisplayOffsetTop=0;G.imageDisplayOffsetLeft=0;G.pickerDisplayOffsetTop=0;G.pickerDisplayOffsetLeft=0;G.cropCoordinatesSaved=!1;G.previewSize=0;G.startPicker=!1;G.repositionOptional=!1;return G};
_.T(IV,_.C);_.g=IV.prototype;_.g.created=function(){_.AS.requestAvailability()};
_.g.ready=function(){};
_.g.onArrowKeysDown=function(G){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){G.detail.keyboardEvent.preventDefault();var H=0,Z=0,Q="";switch(G.detail.keyboardEvent.key){case "ArrowUp":sR2(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Q=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":sR2(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Q=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":sR2(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Q=this.a11yConfig.reachRightOfImage:Z=this.imageWidth*.05*-1;break;case "ArrowRight":sR2(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Q=this.a11yConfig.reachLeftOfImage:Z=this.imageWidth*.05}Q&&_.Zg(Q)&&_.N5(this.hostElement,"iron-announce",{text:_.Zg(Q)});if(Z||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),G=_.Zg(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+Z)),G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),G=_.Zg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})),G&&_.N5(this.hostElement,"iron-announce",{text:G})}};
_.g.getPreviewPosition=function(G,H,Z,Q){return Math.round(100*(G+H*.5-Z)/Q)};
_.g.displayImage=function(){var G=this.JSC$15794_pickerContainer.getBoundingClientRect().width,H=this.JSC$15794_pickerContainer.getBoundingClientRect().height,Z=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),Q=this.JSC$15794_imageInBackground.naturalWidth,p=this.JSC$15794_imageInBackground.naturalHeight;this.displayScale=Math.max(Z/Q,Z/p);this.imageWidth=Q*this.displayScale;this.imageHeight=p*this.displayScale;this.pickerDisplayOffsetLeft=(G-Z)/2;this.pickerDisplayOffsetTop=
(H-Z)/2;this.imageDisplayOffsetLeft=p>Q?this.pickerDisplayOffsetLeft:(G-this.imageWidth)/2;this.imageDisplayOffsetTop=Q>p?this.pickerDisplayOffsetTop:(H-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.g.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15794_imageInBackground.src=this.imageData.toString(),this.JSC$15794_imageInPicker.src=this.imageData.toString(),this.JSC$15794_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.g.getSignedPosition=function(G,H,Z){return H==="X"&&_.xI("HTML_DIR")==="rtl"?Z==="-"?G+"px":G*-1+"px":Z==="-"?G*-1+"px":G+"px"};
_.g.pickerMove=function(G){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-G.clientX,Z=this.pickerOffsetY-G.clientY;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
Z)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.g.pickerMoveStart=function(G){this.startPicker=!0;this.pickerOffsetX=G.clientX;this.pickerOffsetY=G.clientY};
_.g.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.g.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.N5(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.g.getPreviewOffset=function(G,H,Z,Q){return H&&G&&Z?(Q==="X"&&_.xI("HTML_DIR")==="rtl"?Z/H*G:Z/H*G*-1)+"px":"0px"};
_.g.getSimpleText=function(G){return G?_.yn(G):""};
_.g.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var G=this.cropOffsetTop/this.imageHeight,H=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,Z=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,Q=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.F9(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.N5(this.hostElement,"yt-img-crop-coordinates-update",{top:G,right:H,bottom:Z,left:Q})}};
_.u4.Object.defineProperties(IV.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var G=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Zg(this.a11yConfig.imageVerticalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.Zg(this.a11yConfig.verticalRepositionInstruction)}G=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Zg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+G,y_percent:""+(100-G)})+"\n"+_.Zg(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 G,H=(G=this.learnMore.runs[0])==null?void 0:G.navigationEndpoint,Z;return((Z=_.X(H,_.Hx))==null?void 0:Z.url)||void 0}}}});
IV.prototype.onImageDataChange=IV.prototype.onImageDataChange;_.N([_.h(),_.A("design:type",Object)],IV.prototype,"imageData",void 0);_.N([_.h(),_.A("design:type",Object)],IV.prototype,"instruction",void 0);_.N([_.h(),_.A("design:type",Object)],IV.prototype,"a11yConfig",void 0);_.N([_.h(),_.A("design:type",Number)],IV.prototype,"imageWidth",void 0);_.N([_.h(),_.A("design:type",Number)],IV.prototype,"imageHeight",void 0);_.N([_.h(),_.A("design:type",Number)],IV.prototype,"displayScale",void 0);
_.N([_.h(),_.A("design:type",Object)],IV.prototype,"imageDisplayOffsetTop",void 0);_.N([_.h(),_.A("design:type",Object)],IV.prototype,"imageDisplayOffsetLeft",void 0);_.N([_.h(),_.A("design:type",Object)],IV.prototype,"pickerDisplayOffsetTop",void 0);_.N([_.h(),_.A("design:type",Object)],IV.prototype,"pickerDisplayOffsetLeft",void 0);_.N([_.h(),_.A("design:type",Object)],IV.prototype,"cropCoordinatesSaved",void 0);_.N([_.h(),_.A("design:type",Object)],IV.prototype,"previewSize",void 0);
_.N([_.h(),_.A("design:type",Object)],IV.prototype,"startPicker",void 0);_.N([_.h(),_.A("design:type",Number)],IV.prototype,"pickerOffsetX",void 0);_.N([_.h(),_.A("design:type",Number)],IV.prototype,"pickerOffsetY",void 0);_.N([_.h(),_.A("design:type",Object)],IV.prototype,"repositionOptional",void 0);_.N([_.q6("#picker-container"),_.A("design:type",HTMLElement)],IV.prototype,"JSC$15794_pickerContainer",void 0);_.N([_.q6("#picker"),_.A("design:type",HTMLElement)],IV.prototype,"picker",void 0);
_.N([_.q6("#image-in-picker-background"),_.A("design:type",HTMLImageElement)],IV.prototype,"JSC$15794_imageInBackground",void 0);_.N([_.q6("#image-in-picker"),_.A("design:type",HTMLImageElement)],IV.prototype,"JSC$15794_imageInPicker",void 0);_.N([_.q6("#image-in-preview-clipper"),_.A("design:type",HTMLImageElement)],IV.prototype,"JSC$15794_imageInPreviewClipper",void 0);_.N([_.q6("#full-image-as-preview"),_.A("design:type",HTMLImageElement)],IV.prototype,"imageAsPreview",void 0);
_.N([_.z("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],IV.prototype,"altLabelForImage",null);_.N([_.z("imageHeight","imageWidth"),_.A("design:type",Number),_.A("design:paramtypes",[])],IV.prototype,"pickerSize",null);_.N([_.z("imageHeight","imageWidth"),_.A("design:type",Object),_.A("design:paramtypes",[])],IV.prototype,"imageOrientationStyle",null);
_.N([_.z("instruction.previewInstruction.editButtonLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],IV.prototype,"editButton",null);_.N([_.z("instruction.editInstruction.saveButtonLabel"),_.A("design:type",Object),_.A("design:paramtypes",[])],IV.prototype,"saveButton",null);_.N([_.z("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.A("design:type",Number),_.A("design:paramtypes",[])],IV.prototype,"cropOffsetTop",null);
_.N([_.z("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.A("design:type",Number),_.A("design:paramtypes",[])],IV.prototype,"cropOffsetLeft",null);_.N([_.z("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],IV.prototype,"pickerBackgroundStyle",null);_.N([_.z("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],IV.prototype,"pickerDisplayStyle",null);
_.N([_.z("cropOffsetLeft","cropOffsetTop"),_.A("design:type",String),_.A("design:paramtypes",[])],IV.prototype,"imageInPickerStyle",null);_.N([_.z("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.A("design:type",String),_.A("design:paramtypes",[])],IV.prototype,"previewClipperStyle",null);_.N([_.gx("imageData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],IV.prototype,"onImageDataChange",null);
_.N([_.z("cropCoordinatesSaved"),_.A("design:type",String),_.A("design:paramtypes",[])],IV.prototype,"pickerModeStyle",null);_.N([_.z("instruction.editInstruction.learnMore"),_.A("design:type",Object),_.A("design:paramtypes",[])],IV.prototype,"learnMore",null);_.N([_.z("learnMore"),_.A("design:type",Object),_.A("design:paramtypes",[])],IV.prototype,"learnMoreUrl",null);_.N([_.fH({is:"yt-img-crop-picker",disableElementRegistration:!0})],IV);
_.m(IV,"yt-img-crop-picker",function(){if(CKp===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;hz4===void 0&&(hz4=document.createElement("template"));var Q=hz4;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);CKp=G}G=CKp;return G},{mode:2});var qg=function(){var G=_.C.apply(this,arguments)||this;G.errorMessage="";G.hasPreview=!1;G.isBackstagePost=!1;G.dismissButtonOverrides={size:"XS"};return G};
_.T(qg,_.C);_.g=qg.prototype;_.g.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"}}}};
_.g.detached=function(){this.removeOverlay()};
_.g.setPreview=function(G){_.F9(this.hostElement).querySelector("#preview-picker").imageData=G;this.hasPreview=!0;_.N5(this.hostElement,"yt-backstage-image-select-preview")};
_.g.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var G=_.F9(this.hostElement).querySelector("#dropzone");G.classList.remove("dragover");G.classList.remove("error");_.N5(this.hostElement,"yt-backstage-image-select-cancel")};
_.g.setupOverlay=function(){var G=this.imageUploadEndpoint;this.removeOverlay();if(G&&G.imageValidationInfo){var H=_.F9(this.hostElement).querySelector("#dropzone"),Z=_.F9(this.hostElement).querySelector("#select");this.overlay=new uZ(G.uploadUrl,G.channelId,G.imageValidationInfo.maxFileSizeMb,G.imageValidationInfo.allowedMaxAspectRatio,H,Z,!0);_.tt(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.tt(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.tt(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.tt(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.tt(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.g.removeOverlay=function(){this.overlay&&(_.VX(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.VX(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.VX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.VX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.VX(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.g.onDragOver=function(G){var H=_.F9(this.hostElement).querySelector("#dropzone");_.Gq(H,"dragover",G.value)};
_.g.onPreview=function(G){this.setPreview(G.value)};
_.g.onImageError=function(G){if(G.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var H;G=(H=this.data)==null?void 0:H.fileSizeError}else if(G.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var Z;G=(Z=this.data)==null?void 0:Z.invalidError}else if(G.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var Q;G=(Q=this.data)==null?void 0:Q.invalidAspectRatioError}else return;this.errorMessage=_.yn(G);_.F9(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.g.onImageAlert=function(G){this.onImageError(G)};
_.g.uploadPromise=function(){var G=this,H=this.overlay&&this.overlay.uploadPromise();if(H)return H.catch(function(){throw Error(G.data?_.yn(G.data.uploadFailureError):"");})};
_.u4.Object.defineProperties(qg.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var G,H;if((G=this.data)==null?0:(H=G.icon)==null?0:H.iconType)return _.bq(this.data.icon.iconType)}}});
qg.prototype.setupOverlay=qg.prototype.setupOverlay;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],qg.prototype,"rendererStamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qg.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qg.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],qg.prototype,"imageUploadEndpoint",void 0);_.N([_.h(),_.A("design:type",Object)],qg.prototype,"errorMessage",void 0);
_.N([_.h(),_.A("design:type",uZ)],qg.prototype,"overlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],qg.prototype,"hasPreview",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],qg.prototype,"isBackstagePost",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qg.prototype,"selectionCancel",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qg.prototype,"previewCancel",null);
_.N([_.z("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],qg.prototype,"icon",null);_.N([_.h(),_.A("design:type",Object)],qg.prototype,"dismissButtonOverrides",void 0);_.N([_.gx("imageUploadEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qg.prototype,"setupOverlay",null);_.N([_.O({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],qg);
_.m(qg,"ytd-backstage-image-select-renderer",function(){if(r8w!==void 0)return r8w;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return r8w=G},{mode:1});var i4p;var O4t;var S$=function(){var G=_.C.apply(this,arguments)||this;G.selected=!1;return G};
_.T(S$,_.C);_.g=S$.prototype;_.g.computeSelected=function(G){return G==null?void 0:G.selected};
_.g.computeTransform=function(G,H,Z){var Q,p,l=(p=(Q=this.imageContainer)==null?void 0:Q.getBoundingClientRect())!=null?p:{width:0,height:0};Q=Math.max(l.width/H,l.height/Z);Z=Z*Q*G.top;return"translateX("+this.getSignedPosition(H*Q*G.left,"X","-")+") translateY("+this.getSignedPosition(Z,"Y","-")+")"};
_.g.getSignedPosition=function(G,H,Z){return H==="X"&&_.xI("HTML_DIR")==="rtl"?Z==="-"?G+"px":G*-1+"px":Z==="-"?G*-1+"px":G+"px"};
_.g.onClick=function(){var G;_.N5(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(G=this.data)==null?void 0:G.image)};
_.g.onKeyPress=function(G){if(G.keyCode===13)this.onClick()};
_.u4.Object.defineProperties(S$.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:(H=G.image)==null?void 0:H.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.image){var H;G=(H=this.data)==null?void 0:H.image;return G.previewCoordinates.top!==0||G.previewCoordinates.left!==0?(H=this.computeTransform(G.previewCoordinates,G.naturalWidth,G.naturalHeight),G.naturalHeight>=G.naturalWidth?"width:inherit;transform:"+H+";":"height:inherit;transform:"+H+";"):G.naturalHeight>=G.naturalWidth?"width:inherit;":"height:inherit;"}}}});
S$.prototype.onKeyPress=S$.prototype.onKeyPress;_.N([_.q6(".image-container"),_.A("design:type",HTMLElement)],S$.prototype,"imageContainer",void 0);_.N([_.h(),_.A("design:type",Object)],S$.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.A("design:type",Object)],S$.prototype,"selected",void 0);_.N([_.z("data.image"),_.A("design:type",Object),_.A("design:paramtypes",[])],S$.prototype,"thumbnailUrl",null);
_.N([_.z("data.image","data.image.previewCoordinates"),_.A("design:type",Object),_.A("design:paramtypes",[])],S$.prototype,"thumbnailStyle",null);_.N([_.lq("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],S$.prototype,"onKeyPress",null);_.N([_.O({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],S$);
_.m(S$,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(O4t!==void 0)return O4t;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return O4t=G},{mode:2});var uC=function(G,H,Z){Z=Z===void 0?!1:Z;_.$f.call(this);var Q=this;this.dropZoneOverlay=new ej(G);this.selectOverlay=Z?new ns(H,"multiple_file",["image/*"]):new ns(H,"single_file",["image/*"]);this.handler=new _.en(this);_.T$(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(H,"click",function(){Q.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.T(uC,_.$f);uC.prototype.onChange=function(G){var H;(H=G.files)!=null&&H.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:G.files}))};var BF=function(){var G=_.C.apply(this,arguments)||this;G.addImageErrorMessage="";G.errorMessage="";G.images=[];G.selectedImageIndex=0;G.modern=_.V("web_modern_buttons");G.maxNumImagesPerPost=_.eA("max_num_images_per_post_web_ui");G.JSC$15809_imageId=0;return G};
_.T(BF,_.C);_.g=BF.prototype;_.g.created=function(){var G=this;this.JSC$15809_ytReorderableController=new _.ZLG(100,function(H){G.handleDrop(H)})};
_.g.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.N5(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.g.observeDragToReorder=function(){var G=this;if(this.showImagesPreview){var H,Z=qY2(_.$y.getInstance(),(H=this.data)==null?void 0:H.dragToReorderTooltip);_.Ui.addLowPriorityJob(function(){_.El(G.hostElement,Z,G.thumbnailDragDropArea)})}};
_.g.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}}};
_.g.computeThumbnail=function(G){return(G==null?void 0:G.localImageSrc)||void 0};
_.g.onRendererstamperFinished=function(){_.Qg7(this.JSC$15809_ytReorderableController,_.F9(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.F9(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.g.handleDrop=function(G){var H=G.currDragItem;if(H!=null&&H.data){G=this.images[this.selectedImageIndex];var Z=H.data.image,Q=this.images.indexOf(Z)||0;H=_.Oj(H.parentNode.children,H);this.images.splice(Q,1);this.images.splice(H,0,Z);this.images=[].concat(_.OP(this.images));this.selectedImageIndex=this.images.indexOf(G)}};
_.g.setUpImagePicker=function(){var G=this.imageUploadEndpoint;G&&G.imageValidationInfo&&(this.uploadManager=new pn(G.uploadUrl,G.channelId),this.initialPicker||(this.initialPicker=new uC(this.dropzone,this.selectLink,!0),_.tt(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new uC(this.addImageButtonContainer,this.addImageSelectButton),_.tt(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.tt(this.JSC$15809_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.tt(this.JSC$15809_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.tt(_.F9(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.g.detached=function(){this.initialPicker&&(_.VX(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.VX(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Wk(this.JSC$15809_ytReorderableController)};
_.g.onInitialSelectImages=function(G){var H=this;return _.S(function(Z){return Z.yield(H.onSelectImages(G,!1),0)})};
_.g.onAddImage=function(G){var H=this;return _.S(function(Z){return Z.yield(H.onSelectImages(G,!0),0)})};
_.g.onSelectImages=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L;return _.S(function(H3){switch(H3.nextAddress){case 1:H?Z.addImageErrorMessage="":(Z.images=[],Z.errorMessage="");Q=G.detail;p=Z.validateImages([].concat(_.OP(Q)));if(p!=="")return H?Z.addImageErrorMessage=p:Z.errorMessage=p,H3.return();l=[].concat(_.OP(Q)).map(function(qX){return(new qz(Z.maxAspectRatio,!1,!0)).transform(qX)});
return H3.yield(Promise.allSettled(l),2);case 2:q=H3.yieldResult,u=_.I(q.entries()),B=u.next();case 3:if(B.done){H3.jumpTo(5);break}t=B.value;D=_.I(t);d=D.next().value;e=D.next().value;n=d;c=e;if(c.status!=="fulfilled"){r=M=W=void 0;H?Z.addImageErrorMessage=_.yn((W=Z.data)==null?void 0:W.invalidError):Z.errorMessage=Z.errorMessage===""?_.yn((M=Z.data)==null?void 0:M.invalidError):_.yn((r=Z.data)==null?void 0:r.multiFileError);H3.jumpTo(4);break}w=c.value;w.cropped&&_.N5(Z.hostElement,"yt-backstage-multi-image-cropped");
if(w.invalidAspectRatio){R=U=x=void 0;H?Z.addImageErrorMessage=_.yn((x=Z.data)==null?void 0:x.invalidAspectRatioError):Z.errorMessage=Z.errorMessage===""?_.yn((U=Z.data)==null?void 0:U.invalidAspectRatioError):_.yn((R=Z.data)==null?void 0:R.multiFileError);H3.jumpTo(4);break}return H3.yield(GlW(Z.JSC$15809_imageId,G.detail[n],w.transformedData),8);case 8:L=H3.yieldResult,Z.images.push(L),Z.JSC$15809_imageId++;case 4:B=u.next();H3.jumpTo(3);break;case 5:if(Z.errorMessage!==""||Z.addImageErrorMessage!==
"")return H3.return();H?fBp(Z.uploadManager,[Z.images[Z.images.length-1]]):fBp(Z.uploadManager,Z.images);Z.images=[].concat(_.OP(Z.images));Z.selectedImageIndex=H?Math.max(Z.images.length-1,0):0;_.N5(Z.hostElement,"yt-backstage-multi-image-select");_.K0(H3)}})};
_.g.onThumbnailClick=function(G){if(G=G.event_.detail)this.selectedImageIndex=this.images.indexOf(G)};
_.g.validateImages=function(G){if(G.length>this.maxNumImagesPerPost){var H;return _.yn((H=this.data)==null?void 0:H.multiImageExceedMaxImageCountError)}var Z=1048576*this.maxFileSizeMb;G=G.filter(function(l){return l.size>Z}).length;
if(G===0)return"";var Q,p;G=G>1?(Q=this.data)==null?void 0:Q.multiFileError:(p=this.data)==null?void 0:p.fileSizeError;return _.yn(G)};
_.g.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.OP(this.images));this.selectedImageIndex=0};
_.g.repositionImage=function(G){this.images[this.selectedImageIndex].previewCoordinates=G.event_.detail;this.images=[].concat(_.OP(this.images))};
_.g.getAllUploadStatuses=function(){var G=this,H,Z,Q,p;return _.S(function(l){if(l.nextAddress==1)return l.yield(G.uploadManager.getAllUploadStatuses(),2);H=l.yieldResult;Z=_.I(H);for(Q=Z.next();!Q.done;Q=Z.next())if(p=Q.value,p.encryptedBlobId===void 0)return l.return(vBw(G.uploadManager));return l.return(H)})};
_.g.hasImages=function(){return this.images.length>0};
_.g.cancel=function(){for(var G=this.uploadManager,H=_.I(G.imagesUploadData),Z=H.next();!Z.done;Z=H.next())G.cancel(Z.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.N5(this.hostElement,"yt-backstage-multi-image-cancel")};
_.u4.Object.defineProperties(BF.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.imageUploadEndpoint)==null?void 0:(H=G.imageValidationInfo)==null?void 0:H.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.imageUploadEndpoint)==null?void 0:(H=G.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var G,H;if((G=this.data)==null?0:(H=G.icon)==null?0:H.iconType)return _.bq(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.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 G=this;return(this.images||[]).map(function(H,Z){return{renderer:{image:H,selected:Z===G.selectedImageIndex}}})}}});
BF.prototype.setUpImagePicker=BF.prototype.setUpImagePicker;BF.prototype.onRendererstamperFinished=BF.prototype.onRendererstamperFinished;BF.prototype.observeDragToReorder=BF.prototype.observeDragToReorder;BF.prototype.observeAddImageError=BF.prototype.observeAddImageError;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],BF.prototype,"rendererStamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);
_.N([_.q6("#dropzone"),_.A("design:type",HTMLElement)],BF.prototype,"dropzone",void 0);_.N([_.q6("#select-link"),_.A("design:type",HTMLElement)],BF.prototype,"selectLink",void 0);_.N([_.q6("#thumbnail-drag-drop-area"),_.A("design:type",HTMLElement)],BF.prototype,"thumbnailDragDropArea",void 0);_.N([_.q6("#add-image-button-container"),_.A("design:type",HTMLElement)],BF.prototype,"addImageButtonContainer",void 0);
_.N([_.q6("#add-image-button"),_.A("design:type",HTMLElement)],BF.prototype,"addImageSelectButton",void 0);_.N([_.q6("#image-preview-container"),_.A("design:type",Object)],BF.prototype,"JSC$15809_imagePreviewContainer",void 0);_.N([_.h(),_.A("design:type",Object)],BF.prototype,"addImageErrorMessage",void 0);_.N([_.h(),_.A("design:type",Object)],BF.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],BF.prototype,"errorMessage",void 0);
_.N([_.h(),_.A("design:type",Object)],BF.prototype,"imageUploadEndpoint",void 0);_.N([_.h(),_.A("design:type",Array)],BF.prototype,"images",void 0);_.N([_.h(),_.A("design:type",uC)],BF.prototype,"initialPicker",void 0);_.N([_.h(),_.A("design:type",uC)],BF.prototype,"addImagePicker",void 0);_.N([_.h(),_.A("design:type",pn)],BF.prototype,"uploadManager",void 0);_.N([_.h(),_.A("design:type",Object)],BF.prototype,"selectedImageIndex",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BF.prototype,"modern",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],BF.prototype,"maxNumImagesPerPost",void 0);_.N([_.z("imageUploadEndpoint"),_.A("design:type",Number),_.A("design:paramtypes",[])],BF.prototype,"maxAspectRatio",null);_.N([_.z("imageUploadEndpoint"),_.A("design:type",Number),_.A("design:paramtypes",[])],BF.prototype,"maxFileSizeMb",null);
_.N([_.z("data.icon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],BF.prototype,"dropIcon",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],BF.prototype,"selectionCancel",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],BF.prototype,"previewCancel",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],BF.prototype,"dataForAddImageButton",null);
_.N([_.z("errorMessage"),_.A("design:type",String),_.A("design:paramtypes",[])],BF.prototype,"dropzoneClass",null);_.N([_.z("images"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BF.prototype,"showImagesPreview",null);_.N([_.z("images"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BF.prototype,"containMaxImages",null);_.N([_.gx("addImageErrorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BF.prototype,"observeAddImageError",null);
_.N([_.gx("showImagesPreview"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BF.prototype,"observeDragToReorder",null);_.N([_.z("images","selectedImageIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],BF.prototype,"selectedImageData",null);_.N([_.z("images","selectedImageIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],BF.prototype,"thumbnailRenderers",null);
_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BF.prototype,"onRendererstamperFinished",null);_.N([_.gx("imageUploadEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BF.prototype,"setUpImagePicker",null);_.N([_.O({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],BF);
_.m(BF,"ytd-backstage-multi-image-select-renderer",function(){if(i4p!==void 0)return i4p;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return i4p=G},{mode:1});var aB2;var y8R;var oBG;var Jj=function(){var G=_.C.apply(this,arguments)||this;G.boundCaptureFocus=function(H){G.onCaptureFocus(H)};
return G};
_.T(Jj,_.C);_.g=Jj.prototype;_.g.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.g.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.g.onCaptureFocus=function(G){_.OD(G).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.g.getIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.g.onSelect=function(){var G;if((G=this.data)==null?0:G.onSelectCommand)if(_.V("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var H;((H=_.X(this.data.onSelectCommand.commandMetadata,_.HA))==null?0:H.url)?_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.tp().resolve(_.Dk).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.u4.Object.defineProperties(Jj.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.yn(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}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Jj.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Jj.prototype,"data",void 0);_.N([_.q6("#item"),_.A("design:type",HTMLElement)],Jj.prototype,"item",void 0);_.N([_.z("data.label"),_.A("design:type",String),_.A("design:paramtypes",[])],Jj.prototype,"label",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Jj.prototype,"value",null);_.N([_.O({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Jj);
_.m(Jj,"ytd-privacy-dropdown-item-renderer",function(){if(oBG!==void 0)return oBG;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return oBG=G},{mode:1});var tj=function(){var G=_.C.apply(this,arguments)||this;G.value="";G.label="";G.disabled=!1;return G};
_.T(tj,_.C);_.g=tj.prototype;_.g.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"}}}};
_.g.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.g.dataChanged=function(){this.reset()};
_.g.valueChanged=function(){var G;if(this.value&&(G=this.data)!=null&&G.entries){G=_.I(this.data.entries);for(var H=G.next();!H.done;H=G.next())if((H=this.getRendererForEntry(H.value))&&this.getItemRendererValue(H)===this.value){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}}};
_.g.setInitialLabel=function(){if(this.data&&this.data.entries)for(var G=_.I(this.data.entries),H=G.next();!H.done;H=G.next())if(H=this.getRendererForEntry(H.value)){if(H.isSelected){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}this.data.label&&(this.label=this.data.label)}};
_.g.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var G=_.I(this.data.entries),H=G.next();!H.done;H=G.next()){H=this.getRendererForEntry(H.value);var Z=void 0;if((Z=H)==null?0:Z.isSelected)return this.getItemRendererValue(H)||-1}return-1};
_.g.getItemRendererValue=function(G){return"stringValue"in G||"int32Value"in G?G.stringValue||G.int32Value||null:null};
_.g.getRendererForEntry=function(G){return G.dropdownItemRenderer||G.privacyDropdownItemRenderer||G.navigationDropdownItemRenderer||null};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("value-changed",this.value))};
_.g.updateValueFromBinding=function(G){this.value=G.detail.value};
tj.prototype.valueChangedForBinding=tj.prototype.valueChangedForBinding;tj.prototype.valueChanged=tj.prototype.valueChanged;tj.prototype.dataChanged=tj.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],tj.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],tj.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],tj.prototype,"value",void 0);_.N([_.h(),_.A("design:type",Object)],tj.prototype,"label",void 0);_.N([_.q6("#entries"),_.A("design:type",Object)],tj.prototype,"entries",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],tj.prototype,"disabled",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"dataChanged",null);
_.N([_.Jv("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"valueChanged",null);_.N([_.gx("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tj.prototype,"valueChangedForBinding",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],tj);
_.m(tj,"ytd-flat-dropdown-renderer",function(){if(y8R!==void 0)return y8R;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return y8R=G},{mode:1});var mFG;var kU=function(){var G=_.C.apply(this,arguments)||this;G.quizOptions=[];G.explanationPlaceholderText="";G.optionPlaceholderText="";G.correctAnswerIndex=-1;G.isMarkAnswerTooltipShown=!1;G.timer=0;return G};
_.T(kU,_.C);_.g=kU.prototype;_.g.dataChanged=function(){this.optionPlaceholderText=_.yn(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.yn(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.g.onMarkCorrectAnswer=function(G){var H,Z=((H=this.quizOptions[this.correctAnswerIndex])==null?void 0:H.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[G.model.index]=Object.assign({},this.quizOptions[G.model.index],{explanationText:Z,isCorrect:!0});this.correctAnswerIndex=G.model.index;this.quizOptions=[].concat(_.OP(this.quizOptions))};
_.g.updatePlaceholderTexts=function(){for(var G=!1,H=[],Z=0;Z<this.quizOptions.length;Z++){var Q=this.optionPlaceholderText+" "+(Z+1),p=void 0;((p=this.quizOptions[Z])==null?void 0:p.placeholderText)!==Q?(G=!0,H.push(Object.assign({},this.quizOptions[Z],{placeholderText:Q}))):H.push(this.quizOptions[Z])}G&&(this.quizOptions=H);this.isValid()?_.N5(this.hostElement,"yt-commentbox-post-enable"):_.N5(this.hostElement,"yt-commentbox-post-disable")};
_.g.getSimpleString=function(G){return _.yn(G)};
_.g.createQuizOptions=function(G){var H=[],Z;G=(Z=G==null?void 0:G.minQuizOptions)!=null?Z:0;for(Z=0;Z<G;Z++)H.push(this.createQuizOption());return H};
_.g.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.OP(this.quizOptions),[this.createQuizOption()]))};
_.g.onInput=function(){this.quizOptions=[].concat(_.OP(this.quizOptions))};
_.g.onExplanationInput=function(){_.N5(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.g.onRemoveQuizOption=function(G){this.quizOptions.splice(G.model.index,1);G.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:G.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.OP(this.quizOptions));this.quizOptions.length===0&&_.N5(this.hostElement,"yt-quiz-attachment-dismiss")};
_.g.updateHintRenderer=function(){var G=this;clearTimeout(this.timer);this.timer=setTimeout(function(){G.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.g.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var G=0,H=0,Z=_.I(this.quizOptions),Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var p=void 0;if(((p=Q.optionText)==null?void 0:p.trim())!==""||Q.isCorrect){Q.isCorrect&&H++;p=void 0;if(this.hasCustomOptionText&&((p=Q.optionText)==null?void 0:p.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;G++}}return G>=
Number(this.editorInfo.minQuizOptions)&&H===1};
_.g.getPostCreateOptions=function(){for(var G=[],H=_.I(this.quizOptions),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=void 0;((Q=Z.optionText)==null?void 0:Q.trim())!==""&&G.push({pollOption:{text:Z.optionText,explanation:Z.explanationText},isCorrect:Z.isCorrect})}return G};
_.g.getExplanationText=function(){var G;return((G=this.quizOptions[this.correctAnswerIndex])==null?void 0:G.explanationText)||""};
_.g.maybeDisplayMarkAnswerEduToolTip=function(){var G,H,Z,Q,p,l,q;this.shouldShowMarkAnswerTooltip()&&((G=this.editorInfo)==null?0:(H=G.markAnswerButton)==null?0:(Z=H.buttonRenderer)==null?0:(Q=Z.hint)==null?0:(p=Q.hintRenderer)==null?0:(l=p.content)==null?0:(q=l.bubbleHintRenderer)==null?0:q.text)&&(_.$y.getInstance(),G=Xe(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,(G==null?void 0:G.length)>0&&this.optionSelectors&&_.s6(G[0],this.optionSelectors[0]))};
_.g.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var G=0,H=_.I(this.quizOptions),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=void 0;((Q=Z.optionText)==null?void 0:Q.trim())!==""&&G++;if(Z.isCorrect)return!1}return G<2?!1:!0};
_.g.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.g.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.g.updateOptionTextFromBinding=function(G){if(G.target){var H=Array.from(_.F9(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(G.target);if(H>=0){var Z;this.quizOptions[H].optionText=(Z=G.detail.value)!=null?Z:""}}};
_.u4.Object.defineProperties(kU.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.editorInfo)==null?void 0:(H=G.addOptionButton)==null?void 0:H.buttonRenderer;Z&&(Z.style="STYLE_SUGGESTIVE",Z.size="SIZE_SMALL",Z.isDisabled=!this.isAllowedToAddOption);return(Z==null?0:Z.text)?Z:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var G,H;return this.quizOptions.length<((H=(G=this.editorInfo)==null?void 0:G.maxQuizOptions)!=null?H:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(G){var H;return(H=G.optionText)==null?void 0:H.trim()})}}});
kU.prototype.updatePlaceholderTexts=kU.prototype.updatePlaceholderTexts;kU.prototype.dataChanged=kU.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],kU.prototype,"editorInfo",void 0);_.N([_.h(),_.A("design:type",Array)],kU.prototype,"quizOptions",void 0);_.N([_.h(),_.A("design:type",Object)],kU.prototype,"explanationPlaceholderText",void 0);_.N([_.S9(".option-selector-button"),_.A("design:type",Array)],kU.prototype,"optionSelectors",void 0);
_.N([_.Jv("editorInfo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kU.prototype,"dataChanged",null);_.N([_.z("editorInfo","isAllowedToAddOption","quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],kU.prototype,"addAnswerButton",null);_.N([_.z("editorInfo","quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],kU.prototype,"isAllowedToAddOption",null);
_.N([_.Jv("quizOptions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kU.prototype,"updatePlaceholderTexts",null);_.N([_.z("quizOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],kU.prototype,"hasCustomOptionText",null);_.N([_.O({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],kU);
_.m(kU,"ytd-backstage-quiz-editor-renderer",function(){if(mFG!==void 0)return mFG;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mFG=G},{mode:2});var UFa;var RzR=(H8.FIRSTDAYOFWEEK+1)%7;var Not;var A8p=[],xFa=0,Lp4=0;xFa=0;Lp4=24;if(.25*(Lp4-xFa)<0)Not=[];else{for(var EBt=xFa;EBt<Lp4;EBt+=.25)A8p.push(EBt);Not=A8p}var YGw=Not.map(function(G){G=G*60*60;return{secondsSinceMidnight:G,text:(new O7(7)).format(new Date(0,0,0,0,0,G))}});var Fpa;var Dz=function(){var G=_.C.apply(this,arguments)||this;G.skipNextOpenDialog=!1;G.errorMessage="";G.previousMonthLabel=_.Zg("PREVIOUS_MONTH_LABEL");G.nextMonthLabel=_.Zg("NEXT_MONTH_LABEL");return G};
_.T(Dz,_.C);_.g=Dz.prototype;_.g.attached=function(){var G=this,H=new MutationObserver(function(){G.JSC$15851_calendarMain.scrollHeight>0&&(H.disconnect(),G.calendarConfig&&G.calendarConfig.selectedDate&&G.scrollToDate())});
H.observe(this.JSC$15851_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){H.disconnect()},1E3)};
_.g.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.g.onDateTextChange=function(){if(this.calendarConfig){var G=this.validateDateText();G.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(G.details)):this.textbox.setAttribute("invalid","")}};
_.g.handleDayClick=function(G){G.model.day.date&&(this.commitDate(G.model.day.date),this.dialog.close())};
_.g.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var G=uKM(this.calendarConfig.selectedDate,this.renderData);G!==void 0&&this.JSC$15851_calendarMain.scrollToIndex(G)}};
_.g.scrollToNextMonth=function(){this.JSC$15851_calendarMain.scrollToIndex(this.JSC$15851_calendarMain.firstVisibleIndex+1)};
_.g.scrollToPrevMonth=function(){this.JSC$15851_calendarMain.firstVisibleIndex===0&&this.JSC$15851_calendarMain.scrollTo(0,0);this.JSC$15851_calendarMain.scrollToIndex(this.JSC$15851_calendarMain.firstVisibleIndex-1)};
_.g.onFormSubmit=function(G){G.preventDefault();this.calendarConfig&&(G=this.validateDateText(),G.isValid&&(this.commitDate(G.details),this.dialog.close()))};
_.g.onEscOrClickingOutside=function(G){G=G.detail.path&&!!G.detail.path.length&&G.detail.path[0];if(G.classList.contains("ytd-calendar-date-picker")){G===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var H=0;H<this.dropdownButton.children.length;H++)this.dropdownButton.children[H]===G&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}G=this.textbox.value!==this.dateText;H=this.validateDateText();G&&H.isValid&&this.commitDate(H.details);this.dialog.close();this.textbox.value=
this.dateText};
_.g.commitDate=function(G){this.calendarConfig&&(this.set("calendarConfig.selectedDate",G),_.N5(this.hostElement,"ytd-calendar-date-selected",G))};
_.g.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var G=this.textbox.value;var H=new Date;G=(new Mqj(2)).parse(G,H,{validate:!0})===G.length?qkf(H):void 0;if(!G)return this.errorMessage=_.Zg("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};H=this.calendarConfig.start;var Z=this.calendarConfig.end;if(QRj(G,H))return this.errorMessage=_.Zg("ENTER_DATE_OR_LATER",{allowed_date:I4v(H)}),{isValid:!1,details:void 0};if(QRj(Z,G))return this.errorMessage=
_.Zg("ENTER_DATE_OR_EARLIER",{allowed_date:I4v(Z)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:G}};
_.u4.Object.defineProperties(Dz.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?I4v(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var G=this.calendarConfig,H=[],Z=0;Z<7;Z++)H.push(H8.NARROWWEEKDAYS[(Z+RzR)%7]);Z=[];for(var Q=new Date(G.start.year,G.start.month);Q.getFullYear()<G.end.year||Q.getFullYear()===G.end.year&&Q.getMonth()<=G.end.month;){var p=Z,l=p.push,q=Q.getFullYear(),u=Q.getMonth(),B=G,t=void 0,D=[],d=Object.freeze({extraCssClass:"invisible",debugClass:""}),e=new Date(q,u),n=qkf(e);e=e.getDay();for(var c=qkf(new Date);n.month===
u;){e!==RzR&&t||(t=Array.from({length:7}).fill(d),D.push(t));var W={date:{year:q,month:u,day:n.day},extraCssClass:"",debugClass:""};B.selectedDate&&W.date&&Zaf(W.date,B.selectedDate)&&(W.extraCssClass+=" selected");if(QRj(n,B.start)||QRj(B.end,n))W.extraCssClass+=" disabled";Zaf(n,c)&&(W.extraCssClass+=" today");W.extraCssClass=W.extraCssClass.trim();t[(e-RzR+7)%7]=W;n=l4f(n);e=(e+1)%7}l.call(p,{weeks:D,monthLabel:H8.SHORTMONTHS[u]+" "+q,year:q,month:u,monthLabelExtraCssClass:D[0][2]===d?"shift-down-label":
""});Q.setMonth(Q.getMonth()+1)}return{months:Z,daysOfWeekLabel:H}}}}});
Dz.prototype.onEscOrClickingOutside=Dz.prototype.onEscOrClickingOutside;Dz.prototype.scrollToDate=Dz.prototype.scrollToDate;_.N([_.h(),_.A("design:type",Object)],Dz.prototype,"calendarConfig",void 0);_.N([_.h(),_.A("design:type",Object)],Dz.prototype,"skipNextOpenDialog",void 0);_.N([_.h(),_.A("design:type",Object)],Dz.prototype,"errorMessage",void 0);_.N([_.h(),_.A("design:type",Object)],Dz.prototype,"previousMonthLabel",void 0);
_.N([_.h(),_.A("design:type",Object)],Dz.prototype,"nextMonthLabel",void 0);_.N([_.q6("#textbox"),_.A("design:type",HTMLInputElement)],Dz.prototype,"textbox",void 0);_.N([_.q6("#calendar-dialog"),_.A("design:type",Object)],Dz.prototype,"dialog",void 0);_.N([_.q6("#calendar-main"),_.A("design:type",Object)],Dz.prototype,"JSC$15851_calendarMain",void 0);_.N([_.q6("#date-picker"),_.A("design:type",HTMLElement)],Dz.prototype,"dropdownButton",void 0);
_.N([_.z("calendarConfig.selectedDate"),_.A("design:type",String),_.A("design:paramtypes",[])],Dz.prototype,"dateText",null);_.N([_.z("calendarConfig","calendarConfig.selectedDate"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dz.prototype,"renderData",null);_.N([_.gx("renderData","calendarConfig.selectedDate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dz.prototype,"scrollToDate",null);
_.N([_.lq("iron-overlay-canceled"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Dz.prototype,"onEscOrClickingOutside",null);_.N([_.fH({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Dz);
_.m(Dz,"ytd-calendar-date-picker",function(){if(Fpa!==void 0)return Fpa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Fpa=G},{mode:2});var b4w=_.Zg("UTC_OFFSET_FORMAT",{utc_offset:(new O7("Z")).format(new Date)}),GXp=(new Date).getTimezoneOffset()*-60,HhR=new Date,sG_,Zhw=iX(HhR.getTimezoneOffset());sG_=yQT(miT(Zhw,HhR));var QGd=_.Zg("LOCAL_TIME_GMT_LABEL",{gmt_text:sG_.replace("+0","+").replace("-0","-").replace(":00","")}),dX=function(){var G=_.C.apply(this,arguments)||this;G.selectedTimeIndex=0;G.selectedTimezoneIndex=0;G.timeOfDayOptions=YGw;return G};
_.T(dX,_.C);_.g=dX.prototype;_.g.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var G=g0b();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=G,this.selectedTimeIndex=0;else{var H=SkW(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},G,{selectedDate:H.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(Z){return Z.secondsSinceMidnight===H.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.g.onDatePicked=function(G){this.selectedDate=G.detail};
_.g.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.N5(this.hostElement,"ytd-date-time-selection-cancelled")};
_.g.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var G=this.selectedDate;G=new Date(G.year,G.month,G.day);_.N5(this.hostElement,"ytd-date-time-selection-update",Math.floor(G.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+G.getTimezoneOffset()*60))}};
_.g.getTimezoneFormat=function(G){return G.localizedDisplayText?G.localizedDisplayText:_.Zg("TIMEZONE_FORMAT",{utc_offset_text:""+G.localizedUtcOffset,city_name:""+G.localizedName})};
_.g.updateSelectedTimeIndexFromBinding=function(G){this.selectedTimeIndex=G.detail.value};
_.g.updateSelectedTimezoneIndexFromBinding=function(G){this.selectedTimezoneIndex=G.detail.value};
_.u4.Object.defineProperties(dX.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var G=this.data.timezoneOptions;var H={name:"Etc/Unknown",localizedName:_.Zg("LOCAL_TIME_LABEL"),localizedUtcOffset:b4w,utcOffsetSec:""+GXp,localizedDisplayText:QGd};G?G.length&&G[0].name!==H.name&&(G[0].localizedDisplayText||(H.localizedDisplayText=""),G.unshift(H)):G=[H];return G}}},
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]}}});
dX.prototype.onDateTimeTimezoneChange=dX.prototype.onDateTimeTimezoneChange;dX.prototype.onDatePicked=dX.prototype.onDatePicked;dX.prototype.updateDefaultSelectedValue=dX.prototype.updateDefaultSelectedValue;_.N([_.h(),_.A("design:type",Object)],dX.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],dX.prototype,"calendarConfig",void 0);_.N([_.h(),_.A("design:type",Object)],dX.prototype,"selectedDate",void 0);_.N([_.h(),_.A("design:type",Object)],dX.prototype,"selectedTimeIndex",void 0);
_.N([_.h(),_.A("design:type",Object)],dX.prototype,"selectedTimezoneIndex",void 0);_.N([_.q6("#time-listbox"),_.A("design:type",Object)],dX.prototype,"timeListBox",void 0);_.N([_.q6("#timezone-listbox"),_.A("design:type",Object)],dX.prototype,"timezoneListBox",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],dX.prototype,"rendererStamperBehavior",void 0);_.N([_.z("data.timezoneOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],dX.prototype,"timeZones",null);
_.N([_.Jv("data","timeZones"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dX.prototype,"updateDefaultSelectedValue",null);_.N([_.z("selectedTimezoneIndex","timeZones"),_.A("design:type",Object),_.A("design:paramtypes",[])],dX.prototype,"selectedTimezone",null);_.N([_.z("selectedTimeIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],dX.prototype,"selectedTime",null);
_.N([_.lq("ytd-calendar-date-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],dX.prototype,"onDatePicked",null);_.N([_.gx("selectedTimezone","selectedTime","selectedDate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dX.prototype,"onDateTimeTimezoneChange",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],dX);
_.m(dX,"ytd-date-time-picker-renderer",function(){if(UFa!==void 0)return UFa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return UFa=G},{mode:1});var pma;var e$=function(){var G=_.C.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.dismissTapHandler()};
G.dismissButtonOverrides={size:"XS"};return G};
_.T(e$,_.C);e$.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}}}}}};
e$.prototype.dismissTapHandler=function(){_.N5(this.hostElement,"yt-backstage-attachment-dismissed")};
e$.prototype.computeAttachmentType=function(G){return G?G.backstageImageRenderer?"image":G.videoRenderer?"video":"none":"none"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],e$.prototype,"attachmentPreview",void 0);_.N([_.h(),_.A("design:type",Object)],e$.prototype,"dismissButton",void 0);_.N([_.h(),_.A("design:type",Object)],e$.prototype,"boundOnTapDismissButton",void 0);
_.N([_.h(),_.A("design:type",Object)],e$.prototype,"dismissButtonOverrides",void 0);_.N([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.A("design:type",String)],e$.prototype,"attachmentType",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],e$);
_.m(e$,"ytd-backstage-dismissable-attachment",function(){if(pma!==void 0)return pma;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pma=G},{mode:1});var ldx;var nn=function(){var G=_.C.apply(this,arguments)||this;G.selectedVideoId=void 0;G.picker=void 0;G.dismissButtonOverrides={size:"XS"};G.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return G};
_.T(nn,_.C);_.g=nn.prototype;_.g.onServiceRequestCompleted=function(G){G.stopPropagation()};
_.g.handleAddVideoPreviewAction=function(G){G=this.get("addVideoPreviewAction",G);this.onGetVideoPreviewSuccess(G)};
_.g.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}}}}}};
_.g.onLaunchVideoPicker=function(G){var H=this,Z=_.yn(this.get("addVideoLinkAction.title",G)),Q=this.get("addVideoLinkAction.onePickHostId",G);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",G);Q&&(this.picker||(Z=_.rk4(_.BBW(Q).setTitle(Z).addView(Kga()).addView(zkp()),function(p){H.onPickVideo(p)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",G)||Z.addView("youtube"),this.picker=Z.build()),this.picker.setVisible(!0))};
_.g.onPickVideo=function(G){if(G)if(G.action==="cancel")_.N5(this.hostElement,"yt-video-link-button-cancel");else if(G.action==="picked"){G=G.docs;if(!G||G.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(G=(G==null?0:G.length)?G[0]:void 0)?G.id:void 0;this.setVideoPreview()}};
_.g.setVideoPreview=function(){var G=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){G.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.g.onGetVideoPreviewSuccess=function(G){if(G&&G.videoPreview&&G.cancelButton)this.videoPreview=G.videoPreview,this.cancelButton=G.cancelButton,_.N5(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.g.onGetVideoPreviewError=function(){this.cancel()};
_.g.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.N5(this.hostElement,"yt-video-link-cancel")};
_.g.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
nn.prototype.onServiceRequestCompleted=nn.prototype.onServiceRequestCompleted;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],nn.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],nn.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nn.prototype,"videoPreview",void 0);_.N([_.h(),_.A("design:type",Object)],nn.prototype,"cancelButton",void 0);_.N([_.h(),_.A("design:type",Object)],nn.prototype,"getVideoPreviewCommand",void 0);_.N([_.h(),_.A("design:type",Object)],nn.prototype,"dismissButtonOverrides",void 0);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],nn.prototype,"onServiceRequestCompleted",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],nn);
_.m(nn,"ytd-backstage-video-link-attachment",function(){if(ldx!==void 0)return ldx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ldx=G},{mode:1});var g44;var Idw;var qZw;var Vz=function(){return _.C.apply(this,arguments)||this};
_.T(Vz,_.C);Vz.prototype.dataChanged=function(){this.active=!1};
Vz.prototype.onTap=function(){_.N5(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Vz.prototype.identity=function(G){return G};
_.u4.Object.defineProperties(Vz.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q;if((G=this.data)==null?0:(H=G.image)==null?0:(Z=H.thumbnails)==null?0:(Q=Z[0])==null?0:Q.url)return G=this.data.image.thumbnails[0].url,G.startsWith("data:image/svg+xml")?hN(G):_.m0(G)}}});
Vz.prototype.dataChanged=Vz.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],Vz.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Vz.prototype,"active",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vz.prototype,"dataChanged",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vz.prototype,"imageSrc",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Vz);
_.m(Vz,"ytd-emoji-suggestion",function(){if(qZw!==void 0)return qZw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qZw=G},{mode:1});var SZR=/.*([:@#].*?)$/,$U=function(){var G=_.C.apply(this,arguments)||this;G.suggestions=[];G.suggestionIndex=-1;G.JSC$15879_lastSuggestionRange=null;return G};
_.T($U,_.C);_.g=$U.prototype;_.g.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.g.getSuggestions=function(G){var H=[],Z=hCa(this.emojiManager,G.substr(0,3));if(Z)for(var Q in Z)if(Q.toLocaleLowerCase().indexOf(G)===0){var p=Z[Q];if(p&&p.emojiId){p=Yg(this.emojiManager,p.emojiId);var l=void 0,q=void 0,u=void 0,B=void 0,t=((l=p)==null?0:l.isCustomEmoji)?(q=p)==null?void 0:(u=q.shortcuts)==null?void 0:u[0]:(B=p)==null?void 0:B.emojiId;l=void 0;H.push({suggestion:{image:(l=p)==null?void 0:l.image,alt:t,text:Q}});if(H.length>=64)break}}return H?H.sort(function(D,d){return d.suggestion.text<
D.suggestion.text?-1:d.suggestion.text===D.suggestion.text?0:1}):null};
_.g.insertSuggestion=function(G){_.N5(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15879_lastSuggestionRange,text:G.alt});this.dropdown.opened=!1};
_.g.updateSuggestionsAtCaret=function(G){this.updateSuggestions(G,this.retrieveTextBeforeRange(G))};
_.g.offsetStartOfRangeBy=function(G,H){G.startOffset>=H&&G.setStart(G.startContainer,G.startOffset-H)};
_.g.updateSuggestions=function(G,H){var Z=this;this.JSC$15879_lastSuggestionRange&&(this.JSC$15879_lastSuggestionRange.detach(),this.JSC$15879_lastSuggestionRange=null);if((H=SZR.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2||H===":_")&&(this.offsetStartOfRangeBy(G,H.length),this.JSC$15879_lastSuggestionRange=G,(G=this.getSuggestions(H))&&G.length)){this.suggestions=G;_.q2(this,function(){Z.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(G.length-1);return}this.dropdown.opened=!1};
_.g.onKeyDown=function(G){if(this.dropdown.opened)switch(G.key){case "Escape":this.dropdown.opened=!1;G.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);G.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);G.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),G.preventDefault()}};
_.g.onKeyUp=function(G,H){switch(G.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(H);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(H)}};
_.g.onKeyPress=function(G){G.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),G.preventDefault())};
_.g.changeSuggestionIndex=function(G){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(G+this.suggestions.length)%this.suggestions.length,G=this.dropdownContent.children[this.suggestionIndex],G.active=!0,this.dropdownContent.scrollTop=G.offsetTop)};
_.g.retrieveTextBeforeRange=function(G){var H=G.startContainer;return H&&H.nodeType===Node.TEXT_NODE?H.textContent.substr(0,G.startOffset):""};
$U.prototype.onKeyPress=$U.prototype.onKeyPress;$U.prototype.onKeyUp=$U.prototype.onKeyUp;$U.prototype.onKeyDown=$U.prototype.onKeyDown;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Array)],$U.prototype,"suggestions",void 0);_.N([_.h(),_.A("design:type",_.Li)],$U.prototype,"emojiManager",void 0);_.N([_.h(),_.A("design:type",Number)],$U.prototype,"verticalSuggestionsOffset",void 0);
_.N([_.q6("#dropdown"),_.A("design:type",Object)],$U.prototype,"dropdown",void 0);_.N([_.q6("#dropdown-content"),_.A("design:type",HTMLDivElement)],$U.prototype,"dropdownContent",void 0);_.N([_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],$U.prototype,"onKeyDown",null);_.N([_.lq("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent,Range]),_.A("design:returntype")],$U.prototype,"onKeyUp",null);
_.N([_.lq("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],$U.prototype,"onKeyPress",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-emoji-input"})],$U);
_.m($U,"ytd-emoji-input",function(){if(Idw!==void 0)return Idw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Idw=G},{mode:2});var uja;var X4=function(){var G=_.C.apply(this,arguments)||this;G.hasMaxOptions=!1;return G};
_.T(X4,_.C);_.g=X4.prototype;_.g.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.g.setPrefilledChoices=function(G){var H=this;this.set("pollOptions",[]);var Z;for(Z=0;Z<Math.min(G.length,this.data.maxPollOptions);Z++)this.push("pollOptions",G[Z].substring(0,this.data.maxPollOptionChars));for(;Z<this.data.minPollOptions;Z++)this.push("pollOptions","");this.hasMaxOptions=Z>=this.data.maxPollOptions;_.q2(this,function(){for(var Q=H.pollOptions,p=_.F9(H.hostElement).querySelectorAll(".poll-option-input"),l=0;l<p.length;l++)p[l].value=Q[l]})};
_.g.focusChanged=function(){_.ZI(this.hostElement)};
_.g.onInput=function(){var G=this;_.rx(this,"onInput",function(){G.isValid()?_.N5(G.hostElement,"yt-commentbox-post-enable"):_.N5(G.hostElement,"yt-commentbox-post-disable")},300)};
_.g.setPollOptions=function(){var G=[],H,Z=((H=this.data)==null?0:H.minPollOptions)?this.data.minPollOptions:0;for(H=0;H<Z;H++)G.push("");return G};
_.g.addPollOption=function(){var G=this;_.N5(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Ui.addLowPriorityJob(function(){var H;(H=_.F9(G.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||H.focus()})};
_.g.onRemovePollOption=function(G){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.N5(this.hostElement,"yt-poll-attachment-dismiss")):(G=this.repeat.indexForElement(G.target.parentNode),G!==null&&(this.splice("pollOptions",G,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.N5(this.hostElement,"yt-commentbox-post-enable"))))};
_.g.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.g.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var G=0,H=this.pollOptions.length;G<H;G++)if(this.pollOptions[G].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.g.getPollOptions=function(){return this.pollOptions};
_.g.setPollOptionsFromInputs=function(){for(var G=_.F9(this.hostElement).querySelectorAll(".poll-option-input"),H=0;H<G.length;H++)this.pollOptions[H]=G[H].value.trim()};
_.g.clearPollOptions=function(){var G=_.F9(this.hostElement).querySelectorAll(".poll-option-input");G=_.I(G);for(var H=G.next();!H.done;H=G.next())H.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.g.getSimpleString=function(G){return _.yn(G)};
_.g.updateValueFromBinding=function(G){if(G.target&&this.pollOptions){var H=Array.from(_.F9(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(G.target);if(H>=0){var Z;this.pollOptions[H]=(Z=G.detail.value)!=null?Z:"";this.notifyPath("pollOptions."+H)}}};
X4.prototype.dataChanged=X4.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],X4.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Array)],X4.prototype,"pollOptions",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],X4.prototype,"hasMaxOptions",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],X4.prototype,"enableCreationBox",void 0);
_.N([_.q6("#repeat"),_.A("design:type",$Q)],X4.prototype,"repeat",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],X4.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-poll-attachment"})],X4);
_.m(X4,"ytd-poll-attachment",function(){if(uja!==void 0)return uja;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uja=G},{mode:2});var BZa;var JoT;var tJ2;var kXd;var cF=function(){return _.C.apply(this,arguments)||this};
_.T(cF,_.C);_.u4.Object.defineProperties(cF.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cF.prototype,"rendererBehaviors",void 0);_.N([_.h(),_.A("design:type",Object)],cF.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],cF.prototype,"focused",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("focused"),_.A("design:type",Object),_.A("design:paramtypes",[])],cF.prototype,"ariaSelected",null);_.N([_.fH({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],cF);
_.m(cF,"yt-user-mention-suggestion-renderer",function(){if(kXd===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;tJ2===void 0&&(tJ2=document.createElement("template"));var Q=tJ2;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);kXd=G}G=kXd;return G},{mode:2});var Ds4;var ds4;var TQ=function(){var G=_.C.apply(this,arguments)||this;G.focusedSuggestionIndex=-1;return G};
_.T(TQ,_.C);_.g=TQ.prototype;_.g.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.g.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.g.setFocusedSuggestionIndex=function(G){!this.data||!this.data.suggestions||G<0||G>=this.data.suggestions.length||(this.focusedSuggestionIndex=G,G=this.getSuggestionId(G),this._setFocusedSuggestionId(G))};
_.g.advanceSuggestion=function(G){this.focusedSuggestionIndex===-1||G!==-1&&G!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+G),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.g.ensureSuggestionVisible=function(G){G=this.getSuggestionId(G);G=_.F9(this.hostElement).querySelector("[id="+G+"]");G!=null&&(G.offsetTop<this.hostElement.scrollTop?G.scrollIntoView(!0):G.offsetTop+G.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&G.scrollIntoView(!1))};
_.g.getSuggestionId=function(G){return"user-mention-suggestion-"+G};
_.g.onSuggestionTap=function(G){var H=_.X(G.model.item,NVT);this.ytRendererBehavior.logExplicitClick(H);_.N5(this.hostElement,"yt-user-mention-suggestion-selected",{data:H,index:G.model.index})};
_.g.onSuggestionMouseMove=function(G){G.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(G.model.index)};
_.g.isSuggestionFocused=function(G,H){return G===H};
_.g.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.g.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("focused-suggestion-id-changed",this.focusedSuggestionId))};
TQ.prototype.focusedSuggestionIdChangedForBinding=TQ.prototype.focusedSuggestionIdChangedForBinding;TQ.prototype.onDomChange=TQ.prototype.onDomChange;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],TQ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],TQ.prototype,"focusedSuggestionIndex",void 0);_.N([_.h({readOnly:!0}),_.A("design:type",String)],TQ.prototype,"focusedSuggestionId",void 0);
_.N([_.lq("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],TQ.prototype,"onDomChange",null);_.N([_.gx("focusedSuggestionId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TQ.prototype,"focusedSuggestionIdChangedForBinding",null);_.N([_.fH({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],TQ);
_.m(TQ,"yt-user-mention-suggestions-dropdown",function(){if(ds4===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Ds4===void 0&&(Ds4=document.createElement("template"));var Q=Ds4;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ds4=G}G=ds4;return G},{mode:2});var fn=function(){var G=_.C.apply(this,arguments)||this;G.suggestionsResponse=null;G.activeMention=null;G.selectionChangeListener=G.onSelectionChange.bind(G);G.handlesEnabled=_.V("enable_handles_in_mention_suggest_posts");G.handlesInMentionSuggestionsEnabled=_.V("handles_in_mention_suggest_posts");G.zeroPrefixMentionSuggestionEnabled=_.V("enable_zero_prefix_mention_suggestion_web");G.pendingQuery=null;G.flowNonce=null;return G};
_.T(fn,_.C);_.g=fn.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.g.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.g.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.g.hasSuggestions=function(G){return!!(G&&G.suggestions&&G.suggestions.length>0)};
_.g.onInput=function(){var G=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var H=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),Z=this.activeMention.JSC$11352_getText().slice(-1)===" ",Q=this.activeMention.JSC$11352_getText().slice(-2,-1)===" ",p="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11352_getText().slice(-2,
-1))>=0;p=this.zeroPrefixMentionSuggestionEnabled&&p;if(this.activeMention.isCollapsed()||(H||Q||p)&&Z)this.cancelActiveMention();else{var l=this.activeMention.JSC$11352_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.rx(this,"requestSuggestions",function(){G.requestSuggestions(l)},100)}}}};
_.g.onServiceRequestSent=function(G){G.stopPropagation()};
_.g.onServiceRequestCompleted=function(G){G.stopPropagation();G=G.detail.data;G.query&&(!this.pendingQuery||this.pendingQuery!==G.query)||!this.zeroPrefixMentionSuggestionEnabled&&G.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=G,this.hasSuggestions(G)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.g.onServiceRequestError=function(G){G.stopPropagation()};
_.g.onUserMentionSuggestionSelected=function(G){this.selectSuggestion(G.detail.data,G.detail.index)};
_.g.onSelectionChange=function(){if(this.activeMention){var G=_.Ew(),H=this.activeMention.JSC$11352_containsRange(G);G=G&&this.containsHelper(this.dropdown,G.getContainer());H||G||this.cancelActiveMention()}};
_.g.containsHelper=function(G,H){var Z;if(((Z=window.ShadyDOM)==null?void 0:Z.noPatch)===!0)return G.contains(H);for(;H;){if(H===G)return!0;H=H instanceof ShadowRoot?H.host:H.parentNode}return!1};
_.g.maybeStartSuggest=function(){var G=_.Ew();if(G&&G.isCollapsed()){var H=G.JSC$11352_getStartNode(),Z=G.JSC$11352_getStartOffset();if(H instanceof Text&&!(Z<1)){var Q=H.textContent;!(Q=Q&&Q.charAt(Z-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(Q)<0||(this.activeMention=_.yQ(H,Z-1,G.JSC$11352_getEndNode(),G.JSC$11352_getEndOffset()),this.flowNonce=eu(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.g.updateActiveMention=function(){if(this.activeMention){var G=_.Ew();G&&G.isCollapsed()&&(this.activeMention=_.yQ(this.activeMention.JSC$11352_getStartNode(),this.activeMention.JSC$11352_getStartOffset(),G.JSC$11352_getEndNode(),G.JSC$11352_getEndOffset()))}};
_.g.requestSuggestions=function(G){if(this.activeMention){var H={suggestions_query:G};this.pendingQuery=G;_.L9(this.hostElement,[this.suggestionsEndpoint,H])}};
_.g.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()};
_.g.focusPreviousSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),G.preventDefault())};
_.g.focusNextSuggestion=function(G){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),G.preventDefault())};
_.g.selectFocusedSuggestion=function(G){if(this.hasSuggestions(this.suggestionsResponse)){var H=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.X(H,NVT)&&(this.selectSuggestion(_.X(H,NVT),this.dropdown.focusedSuggestionIndex),G.preventDefault())}};
_.g.selectSuggestion=function(G,H){if(G){var Z=this.activeMention;if(Z){var Q=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&G.handle?_.Pn(Q,"\u00a0\u2068@"+G.handle+"\u2069\u00a0"):this.handlesEnabled?_.Pn(Q,"\u00a0"+G.displayName+"\u00a0"):_.Pn(Q,"\u00a0@"+G.displayName+"\u00a0");AN(Q,"/channel/"+G.channelId);Q.classList.add("yt-formatted-string","yt-simple-endpoint");Q.setAttribute("spellcheck","false");Z.isCollapsed()||Z.JSC$11352_removeContents();Z.insertNode(Q,!0);G=document.createTextNode(" ");
Q.parentNode.insertBefore(G,Q.nextSibling);window.getSelection().collapse(G,1);H={suggestionSelected:{suggestionIndex:H}};if(this.zeroPrefixMentionSuggestionEnabled){var p;H.suggestionSelected.isZeroPrefix=((p=this.suggestionsResponse)==null?void 0:p.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",H);this.cancelActiveMention();_.N5(this.hostElement,"yt-mention-inserted")}}};
_.g.getPositionTarget=function(G){return G&&G.getBrowserRangeObject()};
_.g.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.g.onFocusedSuggestionIdChanged=function(G){var H=_.fzu(this.hostElement)[0];H&&(G.detail.value?H.setAttribute("aria-activedescendant",G.detail.value):H.removeAttribute("aria-activedescendant"))};
_.g.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.g.logGELEvent=function(G,H){G={eventType:G,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};H&&(G=Object.assign(G,H));_.yR("userMentionAutoCompleteBoxEvent",G)};
fn.prototype.onDomChange=fn.prototype.onDomChange;fn.prototype.onUserMentionSuggestionSelected=fn.prototype.onUserMentionSuggestionSelected;fn.prototype.onServiceRequestError=fn.prototype.onServiceRequestError;fn.prototype.onServiceRequestCompleted=fn.prototype.onServiceRequestCompleted;fn.prototype.onServiceRequestSent=fn.prototype.onServiceRequestSent;fn.prototype.onInput=fn.prototype.onInput;_.N([_.v(_.vZ),_.A("design:type",Object)],fn.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],fn.prototype,"suggestionsEndpoint",void 0);_.N([_.h(),_.A("design:type",Object)],fn.prototype,"suggestionsResponse",void 0);_.N([_.h(),_.A("design:type",Object)],fn.prototype,"activeMention",void 0);_.N([_.q6("#dropdown"),_.A("design:type",Object)],fn.prototype,"dropdown",void 0);_.N([_.q6("#iron-dropdown"),_.A("design:type",Object)],fn.prototype,"ironDropdown",void 0);
_.N([_.lq("input"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],fn.prototype,"onInput",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fn.prototype,"onServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fn.prototype,"onServiceRequestCompleted",null);
_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fn.prototype,"onServiceRequestError",null);_.N([_.lq("yt-user-mention-suggestion-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fn.prototype,"onUserMentionSuggestionSelected",null);
_.N([_.lq("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fn.prototype,"onDomChange",null);_.N([_.fH({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],fn);
_.m(fn,"yt-user-mention-autosuggest-input",function(){if(JoT===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;BZa===void 0&&(BZa=document.createElement("template"));var Q=BZa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);JoT=G}G=JoT;return G},{mode:2});var vF=null;
_.Vy({is:"ytd-commentbox",_template:function(){if(g44!==void 0)return g44;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return g44=G},
behaviors:[_.Z8U.YtHostElementBehavior,_.vZ,_.V6.YtActionHandlerBehavior,_.RT.YtComponentBehavior,_.Ii.YtRendererstamperBehavior,_.Gct.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(G,H){return _.Hv(G.entities,"aadcGuidelinesStateEntityPayload",H)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(G,H){return _.Hv(G.entities,"commentboxStateEntity",H)},
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 _.FY}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.V("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.V("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.pH(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(G){this.fire(G?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(G){this.set("submitButtonDisabled",void 0);this.clear();G&&this.computeIsEmojiButtonDisplayed_(G)&&(G=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&G.updateEmojiCategories()},
observePrefilledImage_:function(G,H,Z){this.isValidPrefilledImage_(G,H,Z)&&(this.prefilledAttachment_="image",this.prefilledImageData_=H,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(G,H){this.isValidPrefilledVideo_(G,H)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(G){G&&G.pollData&&G.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(G.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Dy();this.focus()},
detached:function(){document.removeEventListener("tap",_.pH(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(G){G=G.detail;G=G.isCustomEmoji?G.shortcuts[0]:G.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,G);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var G=_.Ew();if(G){G=G.getBrowserRangeObject();for(var H=G.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return G;H=H.parentNode}}G=this.getEditableTextArea_();G=_.aB(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,H,Z){(H=this.emojiManager.createDocumentFragment(H,!0,!1,Z===void 0?!0:Z))&&H.childNodes.length!==0&&(G.collapsed||G.deleteContents(),Z=H.lastChild,G.insertNode(H),_.Iox(Z).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var G=_.Ew();if(G){var H=G.JSC$11352_getStartNode(),Z=G.JSC$11352_getEndNode();if(BEo(H)&&BEo(Z)){var Q=G.JSC$11352_getStartOffset(),p;if(_.H4&&H.nodeType===Node.ELEMENT_NODE&&(p=_.Iwa(H)))_.aB(p,0).select();else{p=AW(H)?H:_.xr(H,AW);var l=AW(Z)?Z:_.xr(Z,AW);if(p||l)if(G.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){G=!0;Q===H.length&&(G=!1);if(vF==="end"||vF==="right")G=!1;H=H.parentNode;G=[].concat(_.OP(H.parentNode.childNodes)).indexOf(H)+(G?0:1);_.aB(H.parentNode,
G).select()}}else p?p.previousSibling&&p.previousSibling.length>0?_.yQ(Z,G.JSC$11352_getEndOffset(),p.previousSibling,p.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),p.parentNode.insertBefore(H,p),_.yQ(Z,G.JSC$11352_getEndOffset(),H,0).select()):l&&(l.nextSibling&&l.nextSibling.length>0?_.yQ(H,G.JSC$11352_getStartOffset(),l.nextSibling,1).select():(Z=document.createTextNode("\u200b"),l.parentNode.insertBefore(Z,l.nextSibling),_.yQ(H,G.JSC$11352_getStartOffset(),Z,Z.length).select()));
vF=null}}else vF=null}else vF=null},
leftKeyPressed_:function(){vF="left"},
rightKeyPressed_:function(){vF="right"},
endKeyPressed_:function(){vF="end"},
maybeDeleteChip_:function(){var G=eV2(!0);if(G){var H=_.Ew(),Z=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();_.wa(Z,H,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=eV2(!1);if(G){var H=_.Ew(),Z=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();_.wa(Z,H,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var H=_.Ew();if(H.isCollapsed()){var Z=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();var Q=n0e(Z,H,!0);Q&&(_.wa(Z,H,Q,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var H=_.Ew();if(H.isCollapsed()){var Z=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();var Q=n0e(Z,H,!1);Q&&(_.wa(Z,H,Q,Q.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onTap_:function(G){if(!G.defaultPrevented&&(G.currentTarget.tagName==="YTD-COMMENTBOX"&&AW(G.target)&&G.preventDefault(),this.isEmojiPickerDisplayed)){var H=this.$$("#emojis"),Z=this.$$("#emoji-button"),Q=this.getEditableTextArea_();if((G=G.path?G.path:G.composedPath&&G.composedPath())&&!G.includes(H)&&!G.includes(Q)&&!G.includes(Z))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(G,H,Z){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H!==void 0&&H.encryptedBlobId!==null&&H.sourceExternalVideoId!==null&&Z!==void 0&&Z.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(G,H){return G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!H&&!!H.videoRenderer&&!!H.videoRenderer.videoId},
isValidPrefilledAttachment_:function(G,H,Z){return this.isValidPrefilledImage_(G,H,Z)||this.isValidPrefilledVideo_(G,Z)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.V("enable_multi_image_post_creation")){var G=this.$$("ytd-backstage-multi-image-select-renderer");G&&G.hasImages()&&G.cancel()}else(G=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&G.cancel();(G=this.$["poll-attachment"])&&this.hasPoll_&&G.clearPollOptions();(G=this.$["image-poll-attachment"])&&this.hasImagePoll_&&G.resetPollOptions();(G=this.$["quiz-attachment"])&&this.hasQuiz_&&G.resetQuizOptions();
(G=this.$["video-link-attachment"])&&this.hasVideo_&&G.cancel();(G=this.$["access-restrictions-selector"].firstElementChild)&&G.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 _.F9(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.F9(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(G,H){G=tqW(G,this.emojiManager,H).cloneNode(!0);for(H=G.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var Z=_.vn();_.D4_(Z,H);H=Z.nextSibling;break;case "DIV":(Z=H.lastChild)&&H.nextSibling&&_.ME(_.vn(),Z);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.KO(_.vn(),H);Z&&Z.nodeName==="BR"&&_.Ku(Z);Z=H;H.hasChildNodes()?(H=H.firstChild,
_.d4a(Z)):(H=H.nextSibling,_.Ku(Z));break;default:H=H.nextSibling}return Vqj(G)},
onAddImageError_:function(G){G.stopPropagation();this.errorMessage_=_.aq(G.detail)},
setTextAreaValue_:function(G){G||(G="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});H.text=G},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();vF=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.aB(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.xI("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",H)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var G;return btv((G=this.$["quiz-attachment"])==null?void 0:G.getExplanationText())||btv(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(G=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(G,!0);this.updateCharCount_();this.setSubmitButton_();G=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=G.scrollHeight>G.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var G=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:G})},
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(G){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(G)},
onPasteEmoji_:function(G){G.preventDefault();G.stopImmediatePropagation();G=G.clipboardData.getData("text/plain");this.insertText_(G,!1,!1)},
insertText_:function(G,H,Z){H=H===void 0?!1:H;Z=Z===void 0?!0:Z;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var Q=this.getInputRange_().cloneRange();this.emojiManager&&Q&&(H&&this.emojiInput.offsetStartOfRangeBy(Q,G.length),this.insertTextWithEmojis_(Q,G,Z),JEo(this.getEditableTextArea_().lastChild)||(Q=this.getInputRange_().cloneRange()),Q&&(this.emojiInput.updateSuggestions(Q,G),this.updateSuggestionOffset_(Q)))}},
setSubmitButton_:function(){if(this.data){var G=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",H=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(G||H){var Z=this.getTextAreaValue().trim();H=Z===this.previousText_;Z=!Z||this.aboveCharLimit_;G&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(Z=this.aboveCharLimit_);this.submitButtonDisabled=
H||Z||!this.getTextLength();G&&_.V("enable_post_scheduling")&&(this.submitButtonDisabled=H&&!this.scheduledPublishTimeSec_||Z)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.yn,computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computeFooterMessageClass_:function(G,H){return H?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(G,H){return H?H:G},
computeFooterMessageHidden_:function(G,H){return!H&&!G},
computePlaceholderText_:function(G,H,Z){return(Z==="video"||Z==="image")&&(G==null?0:G.prefilledPlaceholderText)?G==null?void 0:G.prefilledPlaceholderText:H==="poll"||H==="image-poll"?G==null?void 0:G.pollPostPlaceholderText:H==="quiz"?G==null?void 0:G.quizPostPlaceholderText:H==="image"?G==null?void 0:G.imagePostPlaceholderText:G==null?void 0:G.placeholderText},
computeHideAttachmentButtons_:function(G,H,Z,Q){return G===void 0?!1:Q&&this.getSimpleString(Q)===this.getSimpleString(G.rateLimitErrorMessage)?!0:H!=="none"||Z!=="none"||!G.videoLinkButton&&!G.pollButton&&!G.imagePollButton&&!G.quizButton&&!G.imageButton},
computeHideDismissableAttachment_:function(G){return G!=="image"&&G!=="video"},
computeHasVideo_:function(G){return G==="video"},
computeHasImage_:function(G){return G==="image"},
computeHasPoll_:function(G){return G==="poll"},
computeHasImagePoll_:function(G){return G==="image-poll"},
computeHasQuiz_:function(G){return G==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(G){return G&&G.backstageAttachment?G.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!G.backstageAttachment.quizRenderer&&!G.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(G){if(this.isValidPrefilledAttachment_(G.purpose,G.prefilledImageData,G.backstageAttachment))return G.backstageAttachment},
computeEditAttachment_:function(G){if(this.computePrefilledContent_(G)===void 0)return G.backstageAttachment},
computeAuthorThumbnailDimension_:function(G,H){return G&&!H?24:40},
computeImageUploadEndpoint_:function(G){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",G)},
computeRateLimitErrorCommands_:function(G){var H,Z;return G==null?void 0:(H=G.advancedTierFeatures)==null?void 0:(Z=H.rateLimit)==null?void 0:Z.rateLimitCommands},
computeIsBackstageComment_:function(G){return!(!G||G!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)||this.get("replyButton.buttonRenderer.serviceEndpoint",G)||this.get("postButton.buttonRenderer.serviceEndpoint",G)},
computeSubmitButtonOverride:function(){if(_.V("web_modern_buttons")){var G,H;return{segmentedPosition:this.dropdownSchedulePanel_||!((G=this.data)==null?0:(H=G.postOptionsMenu)==null?0:H.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.V("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(G,H){G=this.get("submitButton.buttonRenderer",G)||this.get("replyButton.buttonRenderer",G)||this.get("postButton.buttonRenderer",G);H&&(G=H);G&&(G=Object.assign({},G),G.serviceEndpoint=void 0,G.isDisabled=this.submitButtonDisabled);return G},
computeHasExternalLinksAccess_:function(G){if(_.V("enable_rfa_external_links")){var H,Z,Q;return(Q=G==null?void 0:(H=G.advancedTierFeatures)==null?void 0:(Z=H.externalLinks)==null?void 0:Z.allowExternalLinks)!=null?Q:!0}return!0},
computeIsEmojiButtonDisplayed_:function(G){return G.emojiButton&&G.emojiPicker&&G.emojiPicker.emojiPickerRenderer&&G.emojiPicker.emojiPickerRenderer.categories?G.emojiPicker.emojiPickerRenderer.categories.find(function(H){return H.emojiPickerCategoryRenderer?H.emojiPickerCategoryRenderer.emojiIds&&H.emojiPickerCategoryRenderer.emojiIds.length>0:H.emojiPickerUpsellCategoryRenderer?H.emojiPickerUpsellCategoryRenderer.emojis&&H.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(G){return G.charLimit?G.charLimit:null},
computeDropdownSchedulingPanel_:function(G,H){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H)return H},
computeInlineSchedulingPanel_:function(G,H){if(G==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&H)return H},
computeHideAuthorThumbnail_:function(G,H){return G||this.computeUseIdentityChip_(H)},
computeHideIdentityChipRenderer_:function(G,H){return G||!this.computeUseIdentityChip_(H)},
computeUseIdentityChip_:function(G){return!!G&&!!G.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(G){var H,Z,Q,p;(G==null?0:(H=G.detail)==null?0:(Z=H.endpoint)==null?0:Z.ypcGetOffersEndpoint)||(G==null?0:(Q=G.detail)==null?0:(p=Q.endpoint)==null?0:p.ypcOffersEndpoint)?(G.stopPropagation(),_.L9(this,[G.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(G.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(G){this.addedAttachment="video";this.selectedVideoId_=G.detail.videoId},
commentboxStateEntityChanged_:function(G){var H=this;(G==null?void 0:G.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(G==null?void 0:G.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){H.focus()})},
onYtServiceRequestSent_:function(G,H){if(H.actions)for(G=_.I(H.actions),H=G.next();!H.done;H=G.next())H.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(G){this.isLoading=!1;var H=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",G),Z,Q,p,l=G==null?void 0:(Z=G.detail)==null?void 0:(Q=Z.data)==null?void 0:(p=Q.actionResult)==null?void 0:p.commentboxStateEntityKey;if(H)this.errorMessage_=H;else if(l){var q;this.dismissData_=G==null?void 0:(q=G.detail)==null?void 0:q.data;this.commentboxStateKey_=l}else{this.clear();var u;this.fire("yt-commentbox-dismiss",G==null?void 0:(u=G.detail)==
null?void 0:u.data)}},
onYtServiceRequestError_:function(G){G.stopPropagation();this.isLoading=!1;var H,Z;if(((H=this.data)==null?void 0:H.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((Z=this.data)==null?void 0:Z.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(H=this.get("detail.error.args",G)||[],H.length>1&&H[1].message){this.handlePostsServiceRequestError_(H[1].message);return}(G=this.get("detail.error.message",G))?this.errorMessage_=this.data.errorMessage||_.aq(G):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(G){if(_.V("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var H=_.I(this.rateLimitErrorCommands),Z=H.next();!Z.done;Z=H.next())if(Z=Z.value,Z.errorLabel===G){_.s6(Z.command,this.hostElement);return}this.errorMessage_=_.aq(G)},
submitIfNotBackstagePost_:function(G){if(!this.isBackstagePost)this.onSubmit_(G)},
onSubmit_:function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M;return _.S(function(r){switch(r.nextAddress){case 1:G.stopPropagation();if(!H.serviceEndpoint||!H.isValidInput_())return r.return();if(H.shouldShowPostAadcNotice_())return H.showPostAadcNotice_(),r.return();if(H.shouldShowCommentAadcNotice_())return H.showCommentAadcNotice_(),r.return();if(!(H.$$("ytd-backstage-multi-image-select-renderer")&&H.hasImage_&&_.V("enable_multi_image_post_creation"))){r.jumpTo(2);break}Z=H.$$("ytd-backstage-multi-image-select-renderer");
return r.yield(Z.getAllUploadStatuses(),3);case 3:Q=r.yieldResult;if(!Q)return r.return();p=_.I(Q);for(l=p.next();!l.done;l=p.next())if(q=l.value,q.encryptedBlobId===void 0)return H.isLoading=!1,B=u=void 0,H.errorMessage_=(B=(u=H.imageUploadEndpoint_)==null?void 0:u.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?B:null,r.return();return r.return(H.submitForm_(void 0,void 0,void 0,void 0,Z.images,H.taggedVideoId_));case 2:if(!H.hasImagePoll_||!H.$["image-poll-attachment"]){r.jumpTo(4);
break}return r.yield(H.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:t=r.yieldResult;if(!t)return r.return();D=_.I(t);for(d=D.next();!d.done;d=D.next())if(e=d.value,!e.encryptedBlobId)return H.isLoading=!1,n=void 0,H.errorMessage_=(n=H.data.errorMessage)!=null?n:null,r.return();case 4:W=(c=H.$$("ytd-backstage-image-select-renderer"))&&c.uploadPromise(),M=H.getSharedPostId_(),W?W.then(function(){H.submitForm_.apply(H,_.OP(_.Ry.apply(0,arguments)))}).catch(function(w){H.isLoading=!1;
H.errorMessage_=_.aq(w.message)}):H.selectedVideoId_?H.submitForm_(void 0,H.selectedVideoId_):H.prefilledAttachment_==="image"?H.submitForm_(H.prefilledImageData_.encryptedBlobId,void 0,void 0,H.prefilledImageData_.sourceExternalVideoId,void 0,H.taggedVideoId_):H.prefilledAttachment_==="video"?H.submitForm_(void 0,H.data.backstageAttachment.videoRenderer.videoId):M?H.submitForm_(void 0,void 0,M):H.taggedVideoId_!==void 0?H.submitForm_(void 0,void 0,void 0,void 0,void 0,H.taggedVideoId_):H.submitForm_(),
_.K0(r)}})},
openSchedulingPanel:function(G){G&&G.scheduleButton&&G.scheduleButton.buttonRenderer&&(this.scheduleButton_=G.scheduleButton.buttonRenderer);G&&G.dateTimePicker&&this.set("data.schedulingDateTimePicker",G.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(G){G.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(G){G.stopPropagation();G.detail.alertMessage&&(this.alertMessage_=G.detail.alertMessage)},
onImageSelected_:function(G){G.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(G){G.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(G.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(G){G.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(G){var H=this.$["video-link-attachment"];H&&H.onLaunchVideoPicker(G)},
onAttachmentDismiss_:function(G){G.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.V("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.V("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var G;if(this.addedAttachment==="image-poll"&&((G=this.$["image-poll-attachment"])==null||!G.isValid()))return!1;var H;if(this.addedAttachment==="quiz"&&((H=this.$["quiz-attachment"])==null||!H.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;G=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(G=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")G=!0;return G||!!this.getTextAreaValue().trim()},
submitForm_:function(G,H,Z,Q,p,l){var q=this.getTextAreaValue().trim(),u={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&q===this.previousText_&&(q=void 0);q!==void 0&&(u.comment_text=q);this.isLoading=!0;l!=void 0&&(u.tagged_video_id=l);G?(u.image_blob_id=G,this.imagePreviewCoordinates_&&(u.image_preview_coordinates=this.imagePreviewCoordinates_)):H?u.attached_video_id=H:Z?u.shared_post_id=Z:p&&p.length>0&&(u.images_data=p.map(function(B){return{encryptedBlobId:B.encryptedBlobId,
previewCoordinates:B.previewCoordinates}}));
Q&&(u.source_video_id=Q);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(u.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(u.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(u.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.V("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(u.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.V("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(u.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.L9(this,[this.serviceEndpoint,u])},
onIsInputFocusChanged_:function(G,H){G?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var H=this.getEditableTextArea_();[].concat(_.OP(G.dataTransfer.items)).forEach(function(Z){Z.kind==="string"&&Z.type.match("^text/plain")&&Z.getAsString(function(Q){H.appendChild(document.createTextNode(Q))})});
G.preventDefault()},
preventDefault_:function(G){G.preventDefault()},
onSuggestionInsert_:function(G){this.insertTextWithEmojis_(G.detail.range,G.detail.text)},
onEmojiSuggestionClick_:function(G){this.emojiInput.insertSuggestion(G.detail)},
computeSubmitButtonClass_:function(G,H){return!H||G?"":"with-options"},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.F9(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,Z=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-Z)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-H;_.F9(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(G){if(_.V("enable_post_scheduling")&&this.data&&this.data.purpose){G=G.detail;if(Math.floor(Date.now()/1E3)>=G)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var H=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(H)||H!==G?this.scheduledPublishTimeSec_=G:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=G;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var G=["image-button","image-poll-button","poll-button"];_.V("enable_quiz_creation")&&G.push("quiz-button");_.V("auto_convert_posts_video_tag")||G.push("video-link-button");return G},
getButtonRenderer:function(G,H){if(G)switch(H){case "video-link-button":var Z;return((Z=G.videoLinkButton)==null?void 0:Z.buttonRenderer)||void 0;case "image-button":var Q;return((Q=G.imageButton)==null?void 0:Q.buttonRenderer)||void 0;case "poll-button":var p;return((p=G.pollButton)==null?void 0:p.buttonRenderer)||void 0;case "image-poll-button":var l;return((l=G.imagePollButton)==null?void 0:l.buttonRenderer)||void 0;case "quiz-button":var q;return((q=G.quizButton)==null?void 0:q.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var G;return(G=this.data)==null||!G.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var G,H;return!((G=this.data)==null||!G.openAadcDialog)&&!((H=this.aadcGuidelinesState_)==null||!H.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.xI("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var G;((G=this.data)==null?0:G.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Lg("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(G){G.clickTrackingParams&&_.gr().clickCommand(G);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.AZ(this,"yt-close-popup-action")},
onHideIdentityChip:function(G){var H;this.set("data.placeholderText",(H=G.hideIdentityChipAction)==null?void 0:H.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var WF=function(){var G=_.C.apply(this,arguments)||this;G.isOpen=!1;G.modern=_.V("web_modern_buttons");G.roundedContainer=!0;G.dropdownButtonOverride=_.V("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;G.inPopupContainer=!1;G.isCommentboxLoading=!1;var H=["image-button","image-poll-button","poll-button"];_.V("enable_quiz_creation")&&H.push("quiz-button");_.V("auto_convert_posts_video_tag")||H.push("video-link-button");G.attachmentButtonIds=H;G.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 G};
_.T(WF,_.C);_.g=WF.prototype;_.g.computeButtonOverride=function(){var G;return((G=this.data)==null?0:G.postOptionsMenu)&&_.V("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.g.configureRendererStamper=function(){var G={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.V("auto_convert_posts_video_tag")||(G["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return G};
_.g.ready=function(){var G=this,H=_.F9(this.hostElement).querySelector("#placeholder-area"),Z=function(Q){G.onOpen(Q)};
H.addEventListener("tap",Z);H.addEventListener("keypress",Z)};
_.g.showButtonEduTooltip=function(){var G,H,Z,Q,p,l,q;if(_.V("enable_quiz_creation")&&((G=this.data)==null?0:(H=G.quizButton)==null?0:(Z=H.buttonRenderer)==null?0:(Q=Z.hint)==null?0:(p=Q.hintRenderer)==null?0:(l=p.content)==null?0:(q=l.bubbleHintRenderer)==null?0:q.text)&&(_.$y.getInstance(),G=Xe(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(G==null?void 0:
G.length)>0)){this.ytComponentBehavior.resolveCommand(G[0],{form:{element:this.quizButton}});return}var u;if((u=this.data)==null?0:u.imagePollButtonTooltip)if(_.$y.getInstance(),u=Xe(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(u==null?void 0:u.length)>0){this.ytComponentBehavior.resolveCommand(u[0],{form:{element:this.imagePollButton}});return}var B;_.V("enable_multi_image_post_creation")&&
((B=this.data)==null?0:B.multiImageButtonTooltip)&&(_.$y.getInstance(),B=Xe(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(B==null?void 0:B.length)>0&&this.ytComponentBehavior.resolveCommand(B[0],{form:{element:this.imageButton}}))};
_.g.onCreatePollAction=function(G){_.X(G,tMa)&&(this.JSC$15934_commentbox.addedAttachment="poll",this.openDialog())};
_.g.onAddVideoLinkAction=function(G){if(_.X(G,S4t))this.JSC$15934_commentbox.onAddVideoLink(G)};
_.g.onShowSchedulingPanelCommand=function(G){(G=_.X(G,aNd))&&this.openSchedulingPanel(G)};
_.g.onCreateImagePollCommand=function(G){_.X(G,Oia)&&(this.JSC$15934_commentbox.openImagePollComponent(),this.openDialog())};
_.g.onCreateQuizCommand=function(G){_.X(G,a7w)&&(this.JSC$15934_commentbox.openQuizComponent(),this.openDialog())};
_.g.openSchedulingPanel=function(G){_.V("enable_post_scheduling")&&(this.openDialog(),this.JSC$15934_commentbox.openSchedulingPanel(G))};
_.g.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.JSC$15934_commentbox.clear(),this.closeDialog())};
_.g.onOpen=function(G){G instanceof KeyboardEvent&&G.type==="keypress"&&G.keyCode!==13&&G.keyCode!==32||(this.data.prepareAccountEndpoint?_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.g.onYtCommentboxDismiss=function(){this.closeDialog()};
_.g.onYtCommentboxLoadingStart=function(G){G.stopPropagation();this.isCommentboxLoading=!0};
_.g.onYtCommentboxLoadingEnd=function(G){G.stopPropagation();this.isCommentboxLoading=!1};
_.g.onYtVideoLinkButtonCancel=function(G){G.stopPropagation();this.onOpen(G)};
_.g.onYtVideoLinkSelected=function(G){G.stopPropagation();this.onOpen(G)};
_.g.onIronSelect=function(G){G.stopPropagation();G.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=G.detail.item.value&&(this.accessRestriction?(this.accessRestriction=G.detail.item.value,this.onOpen(G)):this.accessRestriction=G.detail.item.value)};
_.g.onYtNavigate=function(G){this.get("detail.endpoint.backstageImageUploadEndpoint",G)&&(this.JSC$15934_commentbox.addedAttachment="image",this.JSC$15934_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.g.onRequestSent=function(G){for(var H=_.I(G.detail),Z=H.next();!Z.done;Z=H.next())_.X(Z.value,YrG)&&(this.JSC$15934_commentbox.addedAttachment="image",this.JSC$15934_commentbox.submitButtonDisabled=!0,this.onOpen(G))};
_.g.openDialog=function(){var G;(G=this.data)!=null&&G.isIneligibleForCommunityPagePostCreation||(this.JSC$15934_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15934_commentbox.focus())};
_.g.onPopupClosed=function(){_.$y.getInstance()};
_.g.computeCreationDisabled=function(G){return!!G};
_.g.computeIsCreationDialog=function(G){return!!G&&G==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.g.computeDisabledPostButton=function(G){if(!G)return null;G.isDisabled=!0;return G};
_.g.computeIsCreationDialogWithHeader=function(G){return!this.inPopupContainer&&!!G&&!!G.authorText&&G.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.g.computeIsHeaderHidden=function(G,H){return!G||H};
_.g.computeDropdownRendererClasses=function(G){return G?["text-secondary-style"]:[]};
_.g.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var G=_.F9(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;G&&G.reset()};
WF.prototype.onPopupClosed=WF.prototype.onPopupClosed;WF.prototype.onRequestSent=WF.prototype.onRequestSent;WF.prototype.onYtNavigate=WF.prototype.onYtNavigate;WF.prototype.onIronSelect=WF.prototype.onIronSelect;WF.prototype.onYtVideoLinkSelected=WF.prototype.onYtVideoLinkSelected;WF.prototype.onYtVideoLinkButtonCancel=WF.prototype.onYtVideoLinkButtonCancel;WF.prototype.onYtCommentboxLoadingEnd=WF.prototype.onYtCommentboxLoadingEnd;WF.prototype.onYtCommentboxLoadingStart=WF.prototype.onYtCommentboxLoadingStart;
WF.prototype.onYtCommentboxDismiss=WF.prototype.onYtCommentboxDismiss;WF.prototype.showButtonEduTooltip=WF.prototype.showButtonEduTooltip;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],WF.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],WF.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],WF.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WF.prototype,"isOpen",void 0);_.N([_.h({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],WF.prototype,"buttonOverride",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WF.prototype,"modern",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WF.prototype,"roundedContainer",void 0);_.N([_.h(),_.A("design:type",Object)],WF.prototype,"dropdownButtonOverride",void 0);_.N([_.h({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.A("design:type",Boolean)],WF.prototype,"creationDisabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],WF.prototype,"enableCreationBox",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.A("design:type",Boolean)],WF.prototype,"isCreationDialog",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WF.prototype,"inPopupContainer",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.A("design:type",Boolean)],WF.prototype,"isCreationDialogWithHeader",void 0);_.N([_.h(),_.A("design:type",Object)],WF.prototype,"accessRestriction",void 0);
_.N([_.h({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.A("design:type",Array)],WF.prototype,"dropdownRendererClasses",void 0);_.N([_.h(),_.A("design:type",Object)],WF.prototype,"isCommentboxLoading",void 0);_.N([_.h(),_.A("design:type",Array)],WF.prototype,"attachmentButtonIds",void 0);_.N([_.q6("#image-button"),_.A("design:type",HTMLElement)],WF.prototype,"imageButton",void 0);
_.N([_.q6("#image-poll-button"),_.A("design:type",HTMLElement)],WF.prototype,"imagePollButton",void 0);_.N([_.q6("#quiz-button"),_.A("design:type",HTMLElement)],WF.prototype,"quizButton",void 0);_.N([_.q6("#commentbox"),_.A("design:type",Object)],WF.prototype,"JSC$15934_commentbox",void 0);_.N([_.gx("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WF.prototype,"showButtonEduTooltip",null);
_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WF.prototype,"onYtCommentboxDismiss",null);_.N([_.lq("yt-commentbox-loading-start"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WF.prototype,"onYtCommentboxLoadingStart",null);
_.N([_.lq("yt-commentbox-loading-end"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WF.prototype,"onYtCommentboxLoadingEnd",null);_.N([_.lq("yt-video-link-button-cancel"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WF.prototype,"onYtVideoLinkButtonCancel",null);
_.N([_.lq("yt-video-link-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WF.prototype,"onYtVideoLinkSelected",null);_.N([_.lq("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WF.prototype,"onIronSelect",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WF.prototype,"onYtNavigate",null);
_.N([_.lq("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],WF.prototype,"onRequestSent",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WF.prototype,"onPopupClosed",null);_.N([_.O({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],WF);
_.m(WF,"ytd-backstage-post-dialog-renderer",function(){if(aB2!==void 0)return aB2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return aB2=G},{mode:1});var eJa;var n4w;var zQ=function(){return _.C.apply(this,arguments)||this};
_.T(zQ,_.C);_.g=zQ.prototype;_.g.computeHeartButtonStyle=function(G){return(G==null?0:G.styleType)?G.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.g.onYtButtonTap=function(){if(this.data.isEnabled){var G=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(G=this.getEndpoint(G))&&_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}})}else(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(G)};
_.g.toggle=function(G){this.set("data.isHearted",G!==void 0?G:!this.data.isHearted)};
_.g.getEndpoint=function(G){var H,Z=(H=this.data)==null?void 0:H.heartEndpoint,Q;H=(Q=this.data)==null?void 0:Q.unheartEndpoint;if(Z&&H)return G?H:Z};
_.g.computeButtonAccessibility=function(G,H){var Z,Q,p=G==null?void 0:(Z=G.heartedAccessibility)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label,l,q;G=G==null?void 0:(l=G.unheartedAccessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label;return H?p:G};
_.u4.Object.defineProperties(zQ.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 G;return _.V("kevlar_system_icons")&&!((G=this.data)==null||!G.isHearted)}}});
zQ.prototype.onYtButtonTap=zQ.prototype.onYtButtonTap;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],zQ.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zQ.prototype,"data",void 0);_.N([_.z("data.isHearted"),_.A("design:type",Object),_.A("design:paramtypes",[])],zQ.prototype,"heartTooltip",null);
_.N([_.z("data.isHearted"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zQ.prototype,"iconFilled",null);_.N([_.h({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.A("design:type",String)],zQ.prototype,"buttonAccessibility",void 0);_.N([_.h({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],zQ.prototype,"heartButtonStyle",void 0);
_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zQ.prototype,"onYtButtonTap",null);_.N([_.O({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],zQ);
_.m(zQ,"ytd-creator-heart-renderer",function(){if(n4w!==void 0)return n4w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return n4w=G},{mode:1});var Kn=function(){var G=_.C.apply(this,arguments)||this;G.hasCreatorReply=!1;G.buttonOverrides={size:"S",iconPosition:"icon-only"};G.replyButtonOverrides={size:"S",type:"text"};G.forceIconButton=!_.V("web_modern_buttons");G.modern=_.V("web_modern_buttons");G.buttonTooltipPosition="bottom";G.systemIcons=_.V("kevlar_system_icons");G.replyDialog=null;return G};
_.T(Kn,_.C);_.g=Kn.prototype;
_.g.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]]"}}}}}};
_.g.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.g.dataChange=function(){this.replyDialog&&_.F9(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var G,H,Z;this.isLiked=this.systemIcons&&!!((G=this.data)==null?0:(H=G.likeButton)==null?0:(Z=H.toggleButtonRenderer)==null?0:Z.isToggled)};
_.g.computeShowVoteCountBeginning=function(G,H){return G===void 0||H===void 0?!0:G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.g.computeShowVoteCountEnd=function(G,H){return G===void 0||H===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.g.computeShowCommentCount=function(G,H){return G===void 0||H===void 0?!0:G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.g.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.g.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.g.showReplyDialog=function(G){G&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.F9(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=G,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.g.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.g.onRequestSent=function(G){G=_.I(G.detail);for(var H=G.next();!H.done;H=G.next())(H=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",H.value))&&this.showReplyDialog(H)};
_.g.onYtNavigate=function(G){var H,Z;(G=(H=_.X(G.detail.endpoint,_.b2_))==null?void 0:(Z=H.dialog)==null?void 0:Z.commentReplyDialogRenderer)&&this.showReplyDialog(G)};
_.g.onYtServiceRequestSent=function(G,H){G.stopPropagation();if(H.actions)for(G=0;G<H.actions.length;G++){var Z=_.X(H.actions[G],VMa);Z&&this.handleUpdateCommentVoteAction(Z)}};
_.g.handleUpdateCommentVoteAction=function(G){this.voteCount=G.voteCount||_.aq("0");G.voteStatus==="LIKE"?this.JSC$15946_ytdDislikeToggleButtonRenderer.toggle(!1):G.voteStatus==="DISLIKE"?this.JSC$15946_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15946_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15946_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.g.computeReplyButtonHidden=function(G){return G};
_.g.computeReplyButtonBeginning=function(G){return(G==null?0:G.replyButton)&&G.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.g.computeReplyButtonEnd=function(G){return(G==null?0:G.replyButton)&&G.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?G.replyButton:void 0};
_.g.computeActionButtonStyle=function(G){return(G==null?0:G.style)?G.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.g.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.g.onYtToggleButton=function(G){var H,Z;this.isLiked=this.systemIcons&&!!((H=G.detail)==null?0:(Z=H.actions)==null?0:Z.like)};
Kn.prototype.onYtToggleButton=Kn.prototype.onYtToggleButton;Kn.prototype.onButtonTooltipPositionChanged=Kn.prototype.onButtonTooltipPositionChanged;Kn.prototype.onYtServiceRequestSent=Kn.prototype.onYtServiceRequestSent;Kn.prototype.onYtNavigate=Kn.prototype.onYtNavigate;Kn.prototype.onRequestSent=Kn.prototype.onRequestSent;Kn.prototype.onYtCommentboxDismiss=Kn.prototype.onYtCommentboxDismiss;Kn.prototype.dataChange=Kn.prototype.dataChange;
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"voteCount",void 0);_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"commentCount",void 0);_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"replyThumbnail",void 0);
_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"hasCreatorReply",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kn.prototype,"enableCreationBox",void 0);_.N([_.h({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],Kn.prototype,"actionButtonsStyle",void 0);_.N([_.h({computed:"computeReplyButtonBeginning(data)"}),_.A("design:type",Object)],Kn.prototype,"replyButtonBeginning",void 0);
_.N([_.h({computed:"computeReplyButtonEnd(data)"}),_.A("design:type",Object)],Kn.prototype,"replyButtonEnd",void 0);_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"buttonOverrides",void 0);_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"replyButtonOverrides",void 0);_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"forceIconButton",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kn.prototype,"useCommentIcon",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kn.prototype,"modern",void 0);_.N([_.h(),_.A("design:type",Object)],Kn.prototype,"buttonTooltipPosition",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kn.prototype,"systemIcons",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kn.prototype,"isLiked",void 0);_.N([_.q6("ytd-button-renderer"),_.A("design:type",Object)],Kn.prototype,"ytdReplyButtonRenderer",void 0);
_.N([_.q6("#like-button"),_.A("design:type",Object)],Kn.prototype,"JSC$15946_ytdLikeToggleButtonRenderer",void 0);_.N([_.q6("#dislike-button"),_.A("design:type",Object)],Kn.prototype,"JSC$15946_ytdDislikeToggleButtonRenderer",void 0);_.N([_.q6("#reply-dialog"),_.A("design:type",HTMLElement)],Kn.prototype,"replyDialogElement",void 0);_.N([_.q6("#reply-button"),_.A("design:type",HTMLElement)],Kn.prototype,"replyButtonElement",void 0);
_.N([_.q6("#reply-button-end"),_.A("design:type",HTMLElement)],Kn.prototype,"replyButtonEndElement",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kn.prototype,"dataChange",null);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Kn.prototype,"onYtCommentboxDismiss",null);
_.N([_.lq("yt-service-request-sent-button-renderer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Kn.prototype,"onRequestSent",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Kn.prototype,"onYtNavigate",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],Kn.prototype,"onYtServiceRequestSent",null);_.N([_.gx("buttonTooltipPosition"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kn.prototype,"onButtonTooltipPositionChanged",null);
_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Kn.prototype,"onYtToggleButton",null);_.N([_.O({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Kn);
_.m(Kn,"ytd-comment-action-buttons-renderer",function(){if(eJa!==void 0)return eJa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return eJa=G},{mode:1});var VJ7;var Mg=function(){return _.C.apply(this,arguments)||this};
_.T(Mg,_.C);Mg.prototype.focus=function(){_.F9(this.hostElement).querySelector("#commentbox").focus()};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Mg.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Mg.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Mg.prototype,"zeroStepChannelCreationRenderer",void 0);_.N([_.O({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Mg);
_.m(Mg,"ytd-comment-dialog-renderer",function(){if(VJ7!==void 0)return VJ7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VJ7=G},{mode:1});var $st;var j$=function(){var G=_.C.apply(this,arguments)||this;G.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.V("enable_web_delhi_icons")};G.replyButtonOverrides={size:"S",type:"text"};return G};
_.T(j$,_.C);_.g=j$.prototype;_.g.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.g.detached=function(){this.replyBox&&this.replyBox.remove()};
_.g.showReplyDialog=function(G){if(G){var H=this.replyBox;H||(H=document.createElement("ytd-comment-reply-dialog-renderer"),H.id="replybox",_.F9(this.replyDialogDiv).appendChild(H));H.data=G;this.replyDialogDiv.hidden=!1;H.openDialog()}};
_.g.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.g.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var G,H=_.X((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand,_.cT);H&&_.N5(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:H})}};
_.g.onYtServiceRequestSent=function(G,H){G.stopPropagation();if(H.actions)for(var Z=0;Z<H.actions.length;Z++){var Q=_.X(H.actions[Z],VMa);Q?this.handleUpdateCommentVoteAction(Q):G.target===this.heartButton&&this.toggleHeartState()}};
_.g.handleUpdateCommentVoteAction=function(G){var H;(H=this.toolbarState)!=null&&H.key&&this.ytdReduxBehavior.dispatch(_.eO("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:G.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":G.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.g.toggleHeartState=function(){var G;(G=this.toolbarState)!=null&&G.key&&this.ytdReduxBehavior.dispatch(_.eO("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.u4.Object.defineProperties(j$.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return(((G=this.toolbarState)==null?void 0:G.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(H=this.toolbarData)==null?void 0:H.likeCountLiked:(Z=this.toolbarData)==null?void 0:Z.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand)!==void 0&&!_.V("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,H=_.X((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.cT),Z,Q,p,l,q,u,B,t,D;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((Z=this.toolbarSharedData)==null||!Z.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((Q=this.toolbarState)==null?void 0:Q.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:H!=null?H:_.X((p=this.toolbarSurface)==null?void 0:p.likeCommand,_.cT),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.X((l=this.toolbarSurface)==null?void 0:l.unlikeCommand,_.cT),defaultCommand:this.isVisiblyDisabled?_.X((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand,_.cT):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.likeInactiveTooltip,toggledTooltip:(B=this.toolbarData)==null?void 0:B.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(t=this.toolbarData)==null?void 0:t.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(D=this.toolbarSharedData)==null?void 0:D.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G,H=_.X((G=this.toolbarSurface)==null?void 0:G.prepareAccountCommand,_.cT),Z,Q,p,l,q,u,B,t,D,d;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((Z=this.toolbarSharedData)==null||!Z.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((Q=this.toolbarState)==null?void 0:Q.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.X((p=this.toolbarSurface)==null?void 0:p.dislikeCommand,_.cT),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.X((l=this.toolbarSurface)==null?void 0:l.undislikeCommand,_.cT),defaultCommand:this.isVisiblyDisabled?_.X((q=this.toolbarSurface)==null?void 0:q.commentDisabledActionCommand,_.cT):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.dislikeInactiveTooltip,toggledTooltip:(B=this.toolbarData)==null?void 0:
B.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(t=this.toolbarSharedData)==null?void 0:t.dislikeReplyButtonA11y:(D=this.toolbarSharedData)==null?void 0:D.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;if(((G=this.toolbarState)==null?void 0:G.heartState)!==void 0&&((H=this.toolbarState)==null?void 0:H.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((Z=this.toolbarState)==null?void 0:Z.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var Q,p,l,q,u,B,t,D,d,e,n,c,W,M;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(Q=this.toolbarData)==null?void 0:Q.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((p=this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((l=this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((q=this.toolbarState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((u=this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.X((B=this.toolbarSurface)==null?void 0:B.heartCommand,
_.cT),unheartEndpoint:this.isVisiblyDisabled?void 0:_.X((t=this.toolbarSurface)==null?void 0:t.unheartCommand,_.cT),disabledEndpoint:this.isVisiblyDisabled?_.X((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand,_.cT):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(d=this.toolbarData)==null?void 0:d.heartActiveTooltip,unheartedTooltip:(e=this.toolbarData)==null?void 0:e.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((n=
this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(c=this.toolbarSharedData)==null?void 0:c.unheartButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(M=this.toolbarSharedData)==null?void 0:M.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.toolbarSurface)==null||!G.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.commentStrings)!=null&&G.replyButtonText){var H,Z,Q,p;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(H=this.commentStrings)==null?void 0:H.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.X((Z=this.toolbarSurface)==null?void 0:Z.replyCommand,_.cT),command:this.isVisiblyDisabled?
_.X((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.cT):this.isSubsOnlyCommentsIneligibleUser?_.X((p=this.toolbarSurface)==null?void 0:p.subscribersOnlySnackbarCommand,_.cT):void 0}}}}});
j$.prototype.onYtServiceRequestSent=j$.prototype.onYtServiceRequestSent;j$.prototype.hideReplyDialogDiv=j$.prototype.hideReplyDialogDiv;_.N([_.h(),_.A("design:type",Object)],j$.prototype,"commentStrings",void 0);_.N([_.h(),_.A("design:type",Boolean)],j$.prototype,"isReply",void 0);_.N([_.h(),_.A("design:type",Object)],j$.prototype,"toolbarData",void 0);_.N([_.h(),_.A("design:type",Object)],j$.prototype,"toolbarSharedData",void 0);
_.N([_.h(),_.A("design:type",String)],j$.prototype,"toolbarStateKey",void 0);_.N([_.h(),_.A("design:type",String)],j$.prototype,"toolbarSurfaceKey",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],j$.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],j$.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Ia),_.A("design:type",Object)],j$.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.q6("#reply-dialog"),_.A("design:type",HTMLElement)],j$.prototype,"replyDialogDiv",void 0);_.N([_.q6("#replybox"),_.A("design:type",Object)],j$.prototype,"replyBox",void 0);_.N([_.q6("ytd-creator-heart-renderer"),_.A("design:type",Object)],j$.prototype,"heartButton",void 0);_.N([_.h({selector:function(G,H){return _.Hv(G.entities,"engagementToolbarStateEntityPayload",H)},
selectorArgs:["toolbarStateKey"]}),_.A("design:type",Object)],j$.prototype,"toolbarState",void 0);_.N([_.h({selector:gtf,selectorArgs:["toolbarSurfaceKey"]}),_.A("design:type",Object)],j$.prototype,"toolbarSurface",void 0);_.N([_.h(),_.A("design:type",Object)],j$.prototype,"buttonOverrides",void 0);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j$.prototype,"hideReplyDialogDiv",null);
_.N([_.z("toolbarData","toolbarState"),_.A("design:type",String),_.A("design:paramtypes",[])],j$.prototype,"likeCount",null);_.N([_.z("likeCount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j$.prototype,"showLikeCount",null);_.N([_.z("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j$.prototype,"isVisiblyDisabled",null);_.N([_.z("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j$.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.N([_.z("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j$.prototype,"isSubsOnlyCommentsEligibleUser",null);_.N([_.z("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j$.prototype,"hasPrepareAccountCommand",null);_.N([_.z("toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],j$.prototype,"likeToggleButtonRenderer",null);
_.N([_.z("isReply","toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],j$.prototype,"dislikeToggleButtonRenderer",null);_.N([_.z("toolbarData","toolbarState","toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],j$.prototype,"creatorHeartSupportedRenderer",null);_.N([_.z("toolbarSurface"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j$.prototype,"hasReplyCommand",null);
_.N([_.z("toolbarSurface","commentStrings","isVisiblyDisabled"),_.A("design:type",Object),_.A("design:paramtypes",[])],j$.prototype,"replyButtonRenderer",null);_.N([_.h(),_.A("design:type",Object)],j$.prototype,"replyButtonOverrides",void 0);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],j$.prototype,"onYtServiceRequestSent",null);_.N([_.O({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],j$);
_.m(j$,"ytd-comment-engagement-bar",function(){if($st!==void 0)return $st;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $st=G},{mode:1});var Xmw;var PF=function(){return _.C.apply(this,arguments)||this};
_.T(PF,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],PF.prototype,"data",void 0);_.N([_.O({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],PF);
_.m(PF,"ytd-comment-inline-thumbnail-renderer",function(){if(Xmw!==void 0)return Xmw;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Xmw=G},{mode:1});var cod;var rX=function(){return _.C.apply(this,arguments)||this};
_.T(rX,_.C);rX.prototype.onMessageTap=function(){if(this.onTapCommand){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);G&&this.ytdOpenPopupBehavior.openPopup(G)}};
_.u4.Object.defineProperties(rX.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return(G=this.data)==null?void 0:(H=G.button)==null?void 0:(Z=H.buttonRenderer)==null?void 0:Z.command}}});
_.N([_.v(_.Ia),_.A("design:type",Object)],rX.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rX.prototype,"data",void 0);_.N([_.z("data.button.buttonRenderer.command"),_.A("design:type",Object),_.A("design:paramtypes",[])],rX.prototype,"onTapCommand",null);_.N([_.O({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],rX);
_.m(rX,"ytd-comment-pause-composer-renderer",function(){if(cod!==void 0)return cod;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return cod=G},{mode:1});var TZ4;var fdx;var wX=function(){var G=_.C.apply(this,arguments)||this;G.isOpen=!1;return G};
_.T(wX,_.C);_.g=wX.prototype;_.g.dataChanged=function(){this.isOpen=!1};
_.g.onTap=function(){this.data&&(this.data.navigationEndpoint?_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.g.focus=function(){this.JSC$15976_commentbox.focus()};
_.g.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.g.openDialog=function(){this.isOpen=!0;this.JSC$15976_commentbox.focus();this.JSC$15976_commentbox.maybeHeightChanged()};
wX.prototype.onYtCommentboxDismiss=wX.prototype.onYtCommentboxDismiss;wX.prototype.dataChanged=wX.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wX.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],wX.prototype,"isOpen",void 0);_.N([_.q6("#commentbox"),_.A("design:type",Object)],wX.prototype,"JSC$15976_commentbox",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wX.prototype,"dataChanged",null);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wX.prototype,"onYtCommentboxDismiss",null);_.N([_.O({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],wX);
_.m(wX,"ytd-comment-reply-dialog-renderer",function(){if(fdx!==void 0)return fdx;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return fdx=G},{mode:1});var v4a;var hj=function(){return _.C.apply(this,arguments)||this};
_.T(hj,_.C);_.u4.Object.defineProperties(hj.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.icon)==null?void 0:H.iconType;return Z?"yt-icons:"+Z.toLowerCase():null}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],hj.prototype,"data",void 0);_.N([_.h(),_.z("data.icon"),_.A("design:type",Object),_.A("design:paramtypes",[])],hj.prototype,"icon",null);_.N([_.O({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],hj);
_.m(hj,"ytd-pinned-comment-badge-renderer",function(){if(v4a!==void 0)return v4a;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return v4a=G},{mode:1});var WcG;var zJx={},Kca={input:!0,meta:!0,br:!0,link:!0,img:!0},Cn=null;zJx.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(){Cn==null&&(Cn=document.createElement("tp-yt-paper-tooltip"),Cn.offset=8,Cn.fitToVisibleBounds=!0)},
onMouseOver_:function(G){if(G=_.xr(G.target,function(p){return p==this||p.getAttribute&&p.getAttribute("shared-tooltip-text")}.bind(this),!0)){var H=G.getAttribute("shared-tooltip-text");
if(H){var Z=this,Q=null;G!=this&&(G.tagName.toLowerCase()in Kca?Z=G.parentElement:Z=G,G.id&&(Q=G.id));this.polymerController.createTooltipIfRequired_();if(Cn.parentElement!=Z||Cn.for!=Q)(0,_.sI)(Cn).textContent=H,_.F9(Z).appendChild(Cn),Cn.for=Q,Cn.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Cn.position=this.polymerController.sharedTooltipPosition}}}};var iC=function(){return _.C.apply(this,arguments)||this};
_.T(iC,_.C);iC.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]]"}}}}}};
iC.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var G;((G=this.data)==null?0:G.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var H;((H=this.data)==null?0:H.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
iC.prototype.colorChanged=function(){var G,H,Z,Q=(G=this.data)==null?void 0:(H=G.color)==null?void 0:(Z=H.basicColorPaletteData)==null?void 0:Z.foregroundBodyColor;Q&&(this.rgbBadgeColor=_.X9(Q));_.F9(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
iC.prototype.tooltipChanged=function(){var G;((G=this.data)==null?0:G.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
iC.prototype.tooltipChanged=iC.prototype.tooltipChanged;iC.prototype.colorChanged=iC.prototype.colorChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(zJx.YtSharedTooltipBehavior),_.A("design:type",Object)],iC.prototype,"ytSharedTooltipBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],iC.prototype,"data",void 0);
_.N([_.h({value:"#4285F4"}),_.A("design:type",String)],iC.prototype,"rgbBadgeColor",void 0);_.N([_.gx("data.color"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iC.prototype,"colorChanged",null);_.N([_.gx("data.tooltip"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iC.prototype,"tooltipChanged",null);_.N([_.O({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],iC);
_.m(iC,"ytd-sponsor-comment-badge-renderer",function(){if(WcG!==void 0)return WcG;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return WcG=G},{mode:1});var MJ7;var jGd;var Oh=function(){return _.C.apply(this,arguments)||this};
_.T(Oh,_.C);Oh.prototype.computeState=function(G){switch(G==null?void 0:G.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"}};
Oh.prototype.updateStateIdentifier=function(G){if(this.viewModel.triStateKey){var H=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.eO("triStateButtonStateEntityPayload",H,{key:H,stateIdentifier:G}))}};
Oh.prototype.onClick=function(){var G=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(){G.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){G.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.u4.Object.defineProperties(Oh.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 G;return((G=this.data)==null?void 0:G.buttonText)||""}}});
_.N([_.h(),_.A("design:type",Object)],Oh.prototype,"viewModel",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Oh.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Oh.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.N([_.h({selector:IPR,selectorArgs:["viewModel.triStateKey"]}),_.A("design:type",Object)],Oh.prototype,"triStateButtonStateEntity",void 0);
_.N([_.h({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.A("design:type",String)],Oh.prototype,"state",void 0);_.N([_.z("viewModel","state"),_.A("design:type",Object),_.A("design:paramtypes",[])],Oh.prototype,"data",null);_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],Oh.prototype,"buttonText",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Oh);
_.m(Oh,"ytd-tri-state-button-view-model",function(){if(jGd!==void 0)return jGd;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jGd=G},{mode:1});var PQG;var roG;var aV=function(){var G=_.C.apply(this,arguments)||this;G.defaultIconToFilled=!_.V("kevlar_fill_comment_chip_icon_killswitch");return G};
_.T(aV,_.C);aV.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
aV.prototype.dataChanged=function(){if(this.data){var G,H;((G=this.data.chipColorPalette)==null?0:G.backgroundColor)&&((H=this.data.chipColorPalette)==null?0:H.foregroundTitleColor)&&_.ZI(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.c$(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.c$(this.data.chipColorPalette.foregroundTitleColor)});var Z;((Z=this.data)==null?0:Z.command)?(_.ZI(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.ZI(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}};
aV.prototype.onTap=function(){var G;if(this.data&&(G=this.data)!=null&&G.command){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.command)}};
aV.prototype.getIconSize=function(){return _.V("kevlar_fill_comment_chip_icon_killswitch")?24:12};
aV.prototype.onTap=aV.prototype.onTap;aV.prototype.dataChanged=aV.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],aV.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.vZ),_.A("design:type",Object)],aV.prototype,"ironA11yKeysBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],aV.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],aV.prototype,"basePriceText",void 0);_.N([_.h(),_.A("design:type",Object)],aV.prototype,"chipIcon",void 0);_.N([_.h(),_.A("design:type",Object)],aV.prototype,"defaultIconToFilled",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aV.prototype,"dataChanged",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aV.prototype,"onTap",null);
_.N([_.fH({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],aV);
_.m(aV,"yt-pdg-comment-chip-renderer",function(){if(roG===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;PQG===void 0&&(PQG=document.createElement("template"));var Q=PQG;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);roG=G}G=roG;return G},{mode:2});var yz=function(){var G=_.C.apply(this,arguments)||this;G.useSmallAvatars=_.V("small_avatars_for_comments");G.commentThreadingEnabled=_.V("web_delhi_comment_threads");G.webWatchCompactComments=_.V("web_watch_compact_comments");G.editDialog=null;return G};
_.T(yz,_.C);_.g=yz.prototype;_.g.onShow=function(){_.TD("cmv",void 0,"wn_comments")};
_.g.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"}}}};
_.g.detached=function(){this.editDialog=null;this.expander.reset()};
_.g.updateBackgroundColor=function(){if(this.backgroundColor){var G={"--ytd-comment-paid-background-color":_.c$(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.ZI(this.hostElement,G)}else _.ZI(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.g.resetExpander=function(){var G;(G=this.expander)==null||G.reset()};
_.g.openEditDialog=function(G){G.dialog&&(this.editDialog=G.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.g.onYtNavigate=function(G){var H=G.detail.endpoint;if(H=_.X(H,_.Gpx)||_.X(H,_.HiR))G.stopPropagation(),this.openEditDialog(H)};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null;_.ZI(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.g.onAuthorThumbnailClicked=function(){_.V("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.g.onYtCommentboxResize=function(G){var H;(G==null?0:(H=G.detail)==null?0:H.height)&&_.ZI(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":G.detail.height+"px"})};
_.u4.Object.defineProperties(yz.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 G,H=(G=this.commentEntity)==null?void 0:G.author;return H&&(H.isCreator||H.isVerified||H.isArtist)?{renderer:{authorEndpoint:H.channelPageEndpoint?_.X(H.channelPageEndpoint,_.cT):_.X(H.channelCommand,_.cT),authorText:{runs:[{text:H.displayName}]},color:H.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:H.isArtist?{iconType:"AUDIO_BADGE"}:
H.isVerified?{iconType:H.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:H.isArtist||H.isVerified?H.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var G,H=(G=this.commentEntity)==null?void 0:G.author;return H!=null&&H.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:H.sponsorBadgeUrl}]},tooltip:H.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return _.X((G=this.commentSurfaceEntity)==null?void 0:G.pdgCommentChip,_.KH2)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var G;return this.voiceReplyContainerViewModel&&((G=this.voiceReplyContainerViewModel)==null?void 0:G.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.X((G=this.commentSurfaceEntity)==null?void 0:G.voiceReplyContainerViewModel,Krx)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var G;return this.voiceReplyContainerViewModel&&(G=this.voiceReplyContainerViewModel)!=null&&G.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=(G=this.commentSurfaceEntity)==null?void 0:G.commentBackgroundColor)!=null?H:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.V("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var G,H;return(((G=this.commentEntity)==null?void 0:(H=G.properties)==null?void 0:H.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,H;if(_.V("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(H=G.author)==null?0:H.profileCardEndpoint)&&this.viewModel.allowProfileCard){var Z,Q;return _.X((Z=this.commentEntity)==null?void 0:(Q=Z.author)==null?void 0:Q.profileCardEndpoint,_.cT)}var p,l;return _.X((p=this.commentEntity)==null?void 0:(l=p.avatar)==null?void 0:l.endpoint,_.cT)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var G,H;if(_.V("enable_profile_cards_on_comments")&&((G=this.commentEntity)==null?0:(H=G.author)==null?0:H.channelPageEndpoint)){var Z,Q;return _.X((Z=this.commentEntity)==null?void 0:(Q=Z.author)==null?void 0:Q.channelPageEndpoint,_.cT)}var p,l;return _.X((p=this.commentEntity)==null?void 0:(l=p.avatar)==null?void 0:l.endpoint,_.cT)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q,p=(G=this.commentEntity)==null?void 0:(H=G.avatar)==null?void 0:(Z=H.image)==null?void 0:(Q=Z.sources)==null?void 0:Q[0];return p?{thumbnails:[{url:p.url,width:p.width,height:p.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.commentEntity)==null?0:(H=G.author)==null?0:H.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.commentEntity)==null?void 0:(H=G.author)==null?void 0:H.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.commentEntity)==null?void 0:(H=G.properties)==null?void 0:H.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.X((G=this.commentSurfaceEntity)==null?void 0:G.publishedTimeCommand,_.cT)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var G,H;if(((G=this.commentEntity)==null?0:G.translatedContent)&&((H=this.translateButtonState)==null?void 0:H.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var Z;if((Z=this.voiceReplyContainerViewModel)==null?0:Z.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var Q,p;return((Q=this.commentEntity)==null?void 0:(p=Q.properties)==null?void 0:p.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.commentSharedEntity)==null?void 0:(H=G.strings)==null?void 0:H.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.commentSharedEntity)==null?void 0:(H=G.strings)==null?void 0:H.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.commentEntity)==null||!G.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var G,H,Z=(H=_.X((G=this.viewModel)==null?void 0:G.translateButton,zea))!=null?H:{},Q,p,l,q,u,B,t,D,d,e,n;return Object.assign({},Z,{untoggledStateData:Object.assign({},Z.untoggledStateData,{buttonText:(Q=this.commentEntity)==null?void 0:(p=Q.translateData)==null?void 0:p.text}),togglingStateData:Object.assign({},Z.togglingStateData,{buttonText:(l=this.commentSharedEntity)==null?
void 0:(q=l.strings)==null?void 0:q.translatingText}),toggledStateData:Object.assign({},Z.toggledStateData,{buttonText:(u=this.commentSharedEntity)==null?void 0:(B=u.strings)==null?void 0:B.seeOriginalText}),transitionCommand:((t=this.commentEntity)==null?0:t.translatedContent)?void 0:_.X((D=this.commentEntity)==null?void 0:(d=D.translateData)==null?void 0:d.translateComment,_.cT),triStateKey:(e=this.commentEntity)==null?void 0:(n=e.properties)==null?void 0:n.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((H=_.X(_.X((G=this.toolbarSurface)==null?void 0:G.menuCommand,_.cT),siG))==null?void 0:(Z=H.menu)==null?void 0:Z.menuRenderer)||null}}});
yz.prototype.onYtCommentboxResize=yz.prototype.onYtCommentboxResize;yz.prototype.onYtCommentboxDismiss=yz.prototype.onYtCommentboxDismiss;yz.prototype.onYtNavigate=yz.prototype.onYtNavigate;yz.prototype.resetExpander=yz.prototype.resetExpander;yz.prototype.updateBackgroundColor=yz.prototype.updateBackgroundColor;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],yz.prototype,"ytdReduxBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],yz.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("#author-thumbnail > button"),_.A("design:type",HTMLElement)],yz.prototype,"authorThumbnailAnchor",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yz.prototype,"linked",null);
_.N([_.z("viewModel","linked"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"linkedCommentBadge",null);_.N([_.h({reflectToAttribute:!0}),_.z("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yz.prototype,"pinned",null);_.N([_.z("viewModel","pinned"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"pinnedCommentBadge",null);
_.N([_.z("commentEntity","commentSharedEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"authorCommentBadge",null);_.N([_.h({reflectToAttribute:!0}),_.z("authorCommentBadge"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"hasAuthorBadge",null);_.N([_.z("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"sponsorCommentBadge",null);
_.N([_.h({reflectToAttribute:!0}),_.z("sponsorCommentBadge"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"hasSponsorBadge",null);_.N([_.z("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"pdgCommentChipRenderer",null);_.N([_.h({reflectToAttribute:!0}),_.z("voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"hasVoiceReply",null);
_.N([_.z("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"voiceReplyContainerViewModel",null);_.N([_.z("voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"voiceReplyUnavailableText",null);_.N([_.h(),_.A("design:type",Object)],yz.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"viewModel",null);
_.N([_.h({selector:function(G,H){return _.Hv(G.entities,"commentSharedEntityPayload",H)},
selectorArgs:["viewModel.sharedKey"]}),_.A("design:type",Object)],yz.prototype,"commentSharedEntity",void 0);_.N([_.h({selector:lPu,selectorArgs:["viewModel.commentKey"]}),_.A("design:type",Object)],yz.prototype,"commentEntity",void 0);_.N([_.h({selector:function(G,H){return _.Hv(G.entities,"commentSurfaceEntityPayload",H)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.A("design:type",Object)],yz.prototype,"commentSurfaceEntity",void 0);_.N([_.h({selector:gtf,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.A("design:type",Object)],yz.prototype,"toolbarSurface",void 0);_.N([_.h({selector:IPR,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.A("design:type",Object)],yz.prototype,"translateButtonState",void 0);
_.N([_.z("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"backgroundColor",null);_.N([_.h({reflectToAttribute:!0}),_.z("viewModel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yz.prototype,"optimalReadingWidthComments",null);_.N([_.q6("ytd-expander"),_.A("design:type",Object)],yz.prototype,"expander",void 0);
_.N([_.gx("backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yz.prototype,"updateBackgroundColor",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yz.prototype,"useSmallAvatars",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],yz.prototype,"engagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yz.prototype,"commentThreadingEnabled",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yz.prototype,"webWatchCompactComments",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"isReply",null);_.N([_.z("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"authorThumbnailEndpoint",null);_.N([_.z("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"authorNameEndpoint",null);
_.N([_.z("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"authorThumbnail",null);_.N([_.z("commentEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],yz.prototype,"authorTextClass",null);_.N([_.z("commentEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],yz.prototype,"authorChannelName",null);_.N([_.z("commentEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"publishedTime",null);
_.N([_.z("commentSurfaceEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"publishedTimeCommand",null);_.N([_.z("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"contentText",null);_.N([_.gx("contentText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yz.prototype,"resetExpander",null);
_.N([_.z("commentEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yz.prototype,"shouldShowReadMoreInitially",null);_.N([_.z("commentSharedEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],yz.prototype,"expandText",null);_.N([_.z("commentSharedEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],yz.prototype,"collapseText",null);_.N([_.z("commentEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],yz.prototype,"shouldShowTranslateButton",null);
_.N([_.z("commentEntity","commentSharedEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"translateButton",null);_.N([_.z("toolbarSurface"),_.A("design:type",Object),_.A("design:paramtypes",[])],yz.prototype,"overflowMenuRenderer",null);_.N([_.h(),_.A("design:type",Object)],yz.prototype,"editDialog",void 0);_.N([_.q6("ytd-comment-dialog-renderer"),_.A("design:type",Object)],yz.prototype,"editCommentDialogContainer",void 0);
_.N([_.q6("ytd-comment-reply-dialog-renderer"),_.A("design:type",Object)],yz.prototype,"editReplyDialogContainer",void 0);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yz.prototype,"onYtNavigate",null);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yz.prototype,"onYtCommentboxDismiss",null);
_.N([_.lq("yt-commentbox-resize"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yz.prototype,"onYtCommentboxResize",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-comment-view-model"})],yz);
_.m(yz,"ytd-comment-view-model",function(){if(MJ7!==void 0)return MJ7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return MJ7=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});_.RX(_.y(function(G){var H={};return _.J("yt-sub-thread",{class:_.bb("ytSubThreadHost",(H.ytSubThreadHasButton=G.isButton,H.ytSubThreadHovered=G.hovered,H.ytSubThreadTopLevelThread=function(){var Z,Q;return((Z=G.topLevelThread)==null?void 0:Z.call(G))&&!(_.V("small_avatars_for_comments")&&((Q=G.engagementPanel)==null?0:Q.call(G)))},H))},_.J("div",{class:"ytSubThreadThreadline"},_.J(_.k,{cond:function(){var Z;
return!((Z=G.isTeaser)==null?0:Z.call(G))},
then:function(){return _.J("div",{class:"ytSubThreadConnection"})}}),_.J("div",{class:"ytSubThreadContinuation"}),_.J("div",{class:"ytSubThreadShadow"})),_.J("div",{class:"ytSubThreadSubThreadContent"},G.children))},"Ic"),"yt-sub-thread",{props:{isButton:_.b3,
isTeaser:_.b3,hovered:_.b3,topLevelThread:_.b3,engagementPanel:_.b3}});var oV=function(){var G=_.C.apply(this,arguments)||this;G.modern=_.V("web_modern_buttons");G.commentThreadingEnabled=_.V("web_delhi_comment_threads");G.isWatchGrid=_.V("kevlar_watch_grid");G.buttonOverrides=G.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};G.JSC$16022_spinnerEl=null;return G};
_.T(oV,_.C);_.g=oV.prototype;_.g.configureContinuationPathMap=function(){return _.V("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.g.shouldShowLegacyTeasers=function(G,H){return G&&!H};
_.g.shouldShowExpandedThreads=function(G,H){return this.commentThreadingEnabled&&H&&(G==null?void 0:G.length)>0};
_.g.shouldShowCollapsedThreads=function(G,H){return this.commentThreadingEnabled&&!H&&G};
_.g.computeCommentViewModel=function(G){return _.X(G,Wra)};
_.g.computeThreadRenderer=function(G){return _.X(G,$dw)};
_.g.computeIsContinuationItem=function(G){return!!this.computeContinuationItemRenderer(G)};
_.g.computeButtonRenderer=function(G){return _.X(G,_.Yl)};
_.g.computeContinuationItemRenderer=function(G){return _.X(G,_.Oz)};
_.g.computeShowButton=function(G){var H;return!((H=this.computeContinuationItemRenderer(G))==null||!H.button)};
_.g.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]]"}}}}}};
_.g.attached=function(){this.isShowRepliesVisible=!0};
_.g.dataChanged=function(){var G=this.expanderContents;G&&(G.hidden=!0);this.isLoading=!1};
_.g.endsInContinuation=function(G){return!!G&&G.length>0&&!!this.computeContinuationItemRenderer(G[G.length-1])};
_.g.computeShouldShowHideRepliesButton=function(G,H){return!G&&H};
_.g.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.g.isLoadingChanged=function(){this.isLoading&&!this.JSC$16022_spinnerEl&&(this.JSC$16022_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.F9(this.expanderContents).appendChild(this.JSC$16022_spinnerEl));this.JSC$16022_spinnerEl&&(this.JSC$16022_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var G;(G=this.contents)==null||G.classList.remove("reloading")}};
_.g.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var G=_.X(this.data.viewReplies,_.Yl);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.g.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var G=_.X(this.data.hideReplies,_.Yl);G&&this.ytRendererBehavior.logExplicitClick(G);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.g.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var G=_.F9(this.hostElement).querySelector("#expander-contents");G&&(G.hidden=this.isShowRepliesVisible)}};
_.g.computeAlign=function(){if(this.modern){var G;return!((G=this.data)==null?0:G.viewRepliesCreatorThumbnail)}};
_.u4.Object.defineProperties(oV.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var G,H;return this.endsInContinuation((G=this.data)==null?void 0:G.contents)||this.commentThreadingEnabled&&this.endsInContinuation((H=this.data)==null?void 0:H.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var G;return(G=this.data)==null?void 0:G.teaserContents}}});
oV.prototype.isShowMoreChanged=oV.prototype.isShowMoreChanged;oV.prototype.isLoadingChanged=oV.prototype.isLoadingChanged;oV.prototype.triggerFirstContinuation=oV.prototype.triggerFirstContinuation;oV.prototype.dataChanged=oV.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.sF),_.A("design:type",Object)],oV.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],oV.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],oV.prototype,"modern",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],oV.prototype,"commentThreadingEnabled",void 0);_.N([_.h(),_.A("design:type",Boolean)],oV.prototype,"expanded",void 0);
_.N([_.h(),_.A("design:type",Function)],oV.prototype,"toggleExpanded",void 0);_.N([_.h(),_.A("design:type",Array)],oV.prototype,"addedReplies",void 0);_.N([_.h(),_.A("design:type",Boolean)],oV.prototype,"hovered",void 0);_.N([_.h(),_.A("design:type",Boolean)],oV.prototype,"topLevelThread",void 0);_.N([_.h(),_.A("design:type",Boolean)],oV.prototype,"isLoading",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],oV.prototype,"isShowRepliesVisible",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],oV.prototype,"useNewFormatting",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],oV.prototype,"engagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],oV.prototype,"isWatchGrid",void 0);_.N([_.h(),_.A("design:type",Object)],oV.prototype,"buttonOverrides",void 0);_.N([_.q6("#expander-contents"),_.A("design:type",HTMLElement)],oV.prototype,"expanderContents",void 0);
_.N([_.q6("ytd-continuation-item-renderer"),_.A("design:type",Object)],oV.prototype,"continuationItemRenderer",void 0);_.N([_.q6("#contents"),_.A("design:type",HTMLElement)],oV.prototype,"contents",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oV.prototype,"dataChanged",null);_.N([_.z("data.contents","data.subThreads.*"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oV.prototype,"hasContinuation",null);
_.N([_.z("data.teaserContents"),_.A("design:type",Object),_.A("design:paramtypes",[])],oV.prototype,"subThreadTeasers",null);_.N([_.lq("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oV.prototype,"triggerFirstContinuation",null);_.N([_.gx("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oV.prototype,"isLoadingChanged",null);
_.N([_.gx("isShowRepliesVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oV.prototype,"isShowMoreChanged",null);_.N([_.O({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],oV);
_.m(oV,"ytd-comment-replies-renderer",function(){if(TZ4!==void 0)return TZ4;var G=document.createElement("template");_.f(G,'\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="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" 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="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" 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    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" 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 engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" 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 engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" 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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TZ4=G},{mode:1});var wmG;var m5=function(){var G=_.C.apply(this,arguments)||this;G.isOpen=!1;G.commentDialog=null;G.useSmallAvatars=_.V("small_avatars_for_comments");G.useSmallAvatarsEngagementPanelOnly=_.V("small_avatars_for_comments_ep");G.placeholderFocusListener=null;G.hasOpenedDialog=!1;G.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return G};
_.T(m5,_.C);_.g=m5.prototype;_.g.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]]"}}}}}};
_.g.ready=function(){var G=this,H=_.F9(this.hostElement).querySelector("#placeholder-area"),Z=_.F9(this.hostElement).querySelector("#simplebox-placeholder"),Q=function(p){p.stopPropagation();p instanceof KeyboardEvent&&p.type==="keypress"&&p.keyCode!==13&&p.keyCode!==32||G.openDialog()};
this.placeholderFocusListener=Q;Z.addEventListener("focus",this.placeholderFocusListener);H.addEventListener("tap",Q);H.addEventListener("keypress",Q)};
_.g.maybeRemoveFocusEventListener=function(){var G;(G=this.data)!=null&&G.prepareAccountEndpoint&&!_.V("web_comments_simplebox_modal_focus_on_tap_ks")&&(G=_.F9(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(G.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.g.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.g.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.V("web_comment_simplebox_resolve_polymer_command_ks")?_.HT.instance.resolveCommand(this.data.prepareAccountEndpoint):_.s6(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);G&&this.ytdOpenPopupBehavior.openPopup(G);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.F9(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.g.onYtCommentboxDismiss=function(G){G.stopPropagation();this.isOpen=!1};
_.g.onCreateCommentAction=function(G){this.get("createCommentAction.contents",G)&&(this.isOpen=!1)};
_.g.computeCommentDialog=function(G){return{placeholderText:G.placeholderText,authorThumbnail:G.authorThumbnail,submitButton:G.submitButton,imageButton:G.imageButton,cancelButton:G.cancelButton,emojiButton:G.emojiButton,emojis:G.emojis,emojiPicker:G.emojiPicker,aadcGuidelinesStateEntityKey:G.aadcGuidelinesStateEntityKey,openAadcDialog:G.openAadcDialog,unicodeEmojisUrl:G.unicodeEmojisUrl}};
_.g.onHideIdentityChip=function(G){_.X(G,kJ7)&&this.set("data.placeholderText",_.X(G,kJ7).placeholderText)};
m5.prototype.onYtCommentboxDismiss=m5.prototype.onYtCommentboxDismiss;m5.prototype.dataChanged=m5.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],m5.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],m5.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],m5.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],m5.prototype,"isOpen",void 0);_.N([_.h(),_.A("design:type",Object)],m5.prototype,"commentDialog",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],m5.prototype,"engagementPanel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],m5.prototype,"useSmallAvatars",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],m5.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],m5.prototype,"enableCreationBox",void 0);_.N([_.h(),_.A("design:type",Boolean)],m5.prototype,"showCreateDialog",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],m5.prototype,"dataChanged",null);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],m5.prototype,"onYtCommentboxDismiss",null);_.N([_.O({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],m5);
_.m(m5,"ytd-comment-simplebox-renderer",function(){if(wmG!==void 0)return wmG;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wmG=G},{mode:1});var hJw;_.eQ("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Uh=function(){var G=_.C.apply(this,arguments)||this;G.addHoverEffect=_.V("swatcheroo_comments_hover_effect");G.useSmallAvatars=_.V("small_avatars_for_comments");G.scrollingEnabled=_.V("web_comment_threading_scroll_on_collapse");G.isSubThread=!1;G.threadHovered=!1;G.expanded=!1;G.removed=!1;G.addedReplies=[];G.actionMap=G.configureActionMap();G.toggleExpanded=function(){G.expanded=!G.expanded;!G.expanded&&G.scrollingEnabled&&_.AZ(G.hostElement,"yt-scroll-to-comment-element",[G.commentElement])};
return G};
_.T(Uh,_.C);_.g=Uh.prototype;_.g.configureActionMap=function(){return _.V("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.g.createCommentReplyAction=function(G){G=_.X(G,JOR);if(G!=null&&G.contents){var H=G.replyToCommentId,Z=G.parentCommentId,Q,p=(Q=this.commentViewModel)==null?void 0:Q.commentId;(p===H||p===Z&&!H)&&this.maybeAttachReply(G.contents)}};
_.g.maybeAttachReply=function(G){var H,Z;(((H=this.commentEntity)==null?void 0:(Z=H.properties)==null?void 0:Z.replyLevel)||0)>=3?_.N5(this.hostElement,"yt-pushed-create-comment-reply",G):this.attachReply(G)};
_.g.onPushedCreateCommentReply=function(G){var H,Z;(((H=this.commentEntity)==null?void 0:(Z=H.properties)==null?void 0:Z.replyLevel)||0)>=3||(this.attachReply(G.detail),G.stopPropagation())};
_.g.attachReply=function(G){var H;((H=this.data)==null?0:H.replies)?(H=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+H+".continuationItemRenderer")?H===0?this.push("addedReplies",G):this.splice("data.replies.commentRepliesRenderer.subThreads",H,0,G):this.push("data.replies.commentRepliesRenderer.subThreads",G)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[G],viewReplies:{buttonRenderer:{text:_.Nm(_.Zg("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.g.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.OP(this.addedReplies))),this.set("addedReplies",[]))};
_.g.removeCommentAction=function(G){G=_.X(G,eet);var H=G==null?void 0:G.commentId,Z;H&&((Z=this.commentViewModel)==null?void 0:Z.commentId)===H&&this.maybeRemoveComment(G.actionResult)};
_.g.banAuthorAction=function(G){G=_.X(G,uER);var H=G==null?void 0:G.commentId,Z;H&&((Z=this.commentViewModel)==null?void 0:Z.commentId)===H&&this.maybeRemoveComment(G.actionResult)};
_.g.hideReportedCommentAction=function(G){G=_.X(G,rOa);var H=G==null?void 0:G.commentId,Z;H&&((Z=this.commentViewModel)==null?void 0:Z.commentId)===H&&this.maybeRemoveComment(G.actionResult)};
_.g.maybeRemoveComment=function(G){G&&G.status==="STATUS_SUCCEEDED"&&(this.feedbackText=G.feedbackText||_.Nm("Reply removed"),this.removed=!0)};
_.g.onTap=function(G){if(this.addHoverEffect&&!this.engagementPanel&&!_.OO(_.OD(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||_.s6({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.g.attached=function(){var G=this;this.isSubThread&&(this.expanded=!0);var H;(H=this.commentThreadHitbox)==null||H.addEventListener("mouseover",function(){G.threadHovered=!0});
var Z;(Z=this.commentThreadHitbox)==null||Z.addEventListener("mouseout",function(){G.threadHovered=!1});
var Q;(Q=this.commentThreadHitbox)==null||Q.addEventListener("click",function(){G.maybeToggleExpanded()})};
_.g.maybeToggleExpanded=function(){var G,H,Z,Q=(G=this.data)==null?void 0:(H=G.replies)==null?void 0:(Z=H.commentRepliesRenderer)==null?void 0:Z.subThreads,p;(Q==null?void 0:Q.length)===1&&((p=_.X(Q[0],_.Oz))==null?0:p.button)&&this.expanded||this.toggleExpanded()};
_.u4.Object.defineProperties(Uh.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return _.X((G=this.data)==null?void 0:G.commentViewModel,Wra)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return _.V("web_delhi_comment_threads")&&!!((G=this.data)==null?0:(H=G.replies)==null?0:(Z=H.commentRepliesRenderer)==null?0:Z.subThreads)}}});
Uh.prototype.onTap=Uh.prototype.onTap;Uh.prototype.onAppendContinuationItemsActionFinished=Uh.prototype.onAppendContinuationItemsActionFinished;Uh.prototype.onPushedCreateCommentReply=Uh.prototype.onPushedCreateCommentReply;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Uh.prototype,"ytdReduxBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Uh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Uh.prototype,"addHoverEffect",void 0);_.N([_.h(),_.A("design:type",Object)],Uh.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Uh.prototype,"useSmallAvatars",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Uh.prototype,"scrollingEnabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Uh.prototype,"isSubThread",void 0);_.N([_.q6(".thread-hitbox"),_.A("design:type",HTMLElement)],Uh.prototype,"commentThreadHitbox",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Uh.prototype,"threadHovered",void 0);_.N([_.q6("#comment"),_.A("design:type",HTMLElement)],Uh.prototype,"commentElement",void 0);
_.N([_.h(),_.A("design:type",Object)],Uh.prototype,"expanded",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Uh.prototype,"removed",void 0);_.N([_.h(),_.A("design:type",Object)],Uh.prototype,"feedbackText",void 0);_.N([_.h(),_.A("design:type",Array)],Uh.prototype,"addedReplies",void 0);_.N([_.h({selector:lPu,selectorArgs:["commentViewModel.commentKey"]}),_.A("design:type",Object)],Uh.prototype,"commentEntity",void 0);
_.N([_.lq("yt-pushed-create-comment-reply"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Uh.prototype,"onPushedCreateCommentReply",null);_.N([_.lq("yt-append-continuation-items-action-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Uh.prototype,"onAppendContinuationItemsActionFinished",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Uh.prototype,"commentViewModel",null);
_.N([_.z("data.replies"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Uh.prototype,"hasSubThreading",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Uh.prototype,"engagementPanel",void 0);_.N([_.lq("tap"),_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Uh.prototype,"onTap",null);_.N([_.O({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Uh);
_.m(Uh,"ytd-comment-thread-renderer",function(){if(hJw!==void 0)return hJw;var G=document.createElement("template");_.f(G,'\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]]" engagement-panel="[[engagementPanel]]" 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 added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" 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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return hJw=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var CQt;var RV=function(){var G=_.C.apply(this,arguments)||this;G.compactHeader=_.V("web_watch_compact_comments_header");G.hidePanelButton=!1;G.isPostSchedulingEnabled=_.V("enable_post_scheduling");G.hasFinishedStamping=!1;G.JSC$16045_handleOpenPostCommentDialogActionAfterStamp=!1;G.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return G};
_.T(RV,_.C);_.g=RV.prototype;
_.g.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"}}}};
_.g.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.g.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16045_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.g.onYtServiceRequestSent=function(G,H){if(!_.V("kevlar_command_handler")&&H.actions)for(G=0;G<H.actions.length;G++){var Z=H.actions[G];_.X(Z,aNd)&&_.F9(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.X(Z,aNd))}};
_.g.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var G;if(this.getPrefilledBackstagePostDialog((G=this.data)==null?void 0:G.actions)){_.F9(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var H=_.F9(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;H&&_.q2(this,function(){H.focus();H.openDialog&&H.openDialog()})}}else this.hasActionsChange=!0};
_.g.computeIsBackstage=function(G){return G};
_.g.onYtCommentboxDismiss=function(){_.F9(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.g.removePrefilledDialog=function(G){if(G==null?0:G.actions){for(var H=G.actions.length-1;H>=0;H--){var Z=void 0;((Z=_.X(G.actions[H],F$a))==null?0:Z.dialog)&&delete G.actions[H]}this.set("data",void 0);this.set("data",G)}};
_.g.getPrefilledBackstagePostDialog=function(G){if(G)for(var H=0;H<G.length;H++){var Z=G[H],Q=void 0;if((Q=_.X(Z,F$a))==null?0:Q.dialog)return _.X(Z,F$a).dialog}return null};
_.g.computeBackstagePostDialog=function(G){return G&&(this.getPrefilledBackstagePostDialog(G.actions)||G.createRenderer)};
_.g.dataChanged=function(){if(this.data){var G=this.data.customEmojis,H=this.data.unicodeEmojisUrl;_.FY.clear();H&&_.MRw(_.FY,H);G&&_.FY.load(G)}};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){var G=_.F9(this.hostElement).querySelector("ytd-comment-simplebox-renderer");G?G.openDialog():this.JSC$16045_handleOpenPostCommentDialogActionAfterStamp=!0};
_.g.onPostHeaderTap=function(){var G;((G=this.data)==null?0:G.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.u4.Object.defineProperties(RV.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.V("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q,p,l,q;return!this.hidePanelButton&&_.V("kevlar_watch_comments_panel_button")&&((q=_.X((G=this.data)==null?void 0:(H=G.sortMenu)==null?void 0:(Z=H.sortFilterSubMenuRenderer)==null?void 0:(Q=Z.subMenuItems)==null?void 0:(p=Q[0])==null?void 0:(l=p.serviceEndpoint)==null?void 0:l.commandMetadata,_.HA))==null?void 0:q.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Zg("MINIPLAYER_EXPAND_LABEL"),text:_.aq(_.Zg("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
RV.prototype.dataChanged=RV.prototype.dataChanged;RV.prototype.onYtCommentboxDismiss=RV.prototype.onYtCommentboxDismiss;RV.prototype.observePrefilledBackstagePostDialog=RV.prototype.observePrefilledBackstagePostDialog;RV.prototype.onYtServiceRequestSent=RV.prototype.onYtServiceRequestSent;RV.prototype.onStampFinished=RV.prototype.onStampFinished;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],RV.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],RV.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],RV.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],RV.prototype,"compactHeader",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],RV.prototype,"engagementPanel",void 0);_.N([_.h(),_.A("design:type",Object)],RV.prototype,"hidePanelButton",void 0);_.N([_.h({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.A("design:type",Boolean)],RV.prototype,"isBackstage",void 0);_.N([_.h({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.A("design:type",Object)],RV.prototype,"backstagePostDialog",void 0);
_.N([_.h(),_.A("design:type",Object)],RV.prototype,"isPostSchedulingEnabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data","showCommentsPanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],RV.prototype,"useSpaceBetween",null);_.N([_.h({reflectToAttribute:!0}),_.z("data","hidePanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],RV.prototype,"showCommentsPanelButton",null);
_.N([_.z("data","showCommentsPanelButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],RV.prototype,"commentsPanelButtonData",null);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RV.prototype,"onStampFinished",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],RV.prototype,"onYtServiceRequestSent",null);
_.N([_.gx("data.actions"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RV.prototype,"observePrefilledBackstagePostDialog",null);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],RV.prototype,"onYtCommentboxDismiss",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RV.prototype,"dataChanged",null);
_.N([_.O({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],RV);
_.m(RV,"ytd-comments-header-renderer",function(){if(CQt!==void 0)return CQt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return CQt=G},{mode:1});var iht;var Ng=function(){return _.C.apply(this,arguments)||this};
_.T(Ng,_.C);_.N([_.h(),_.A("design:type",Object)],Ng.prototype,"data",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.N([_.O({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Ng);
_.m(Ng,"ytd-destination-button-renderer",function(){if(iht!==void 0)return iht;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iht=G},{mode:1});var OhG;var Aj=function(){var G=_.C.apply(this,arguments)||this;G.isRichGrid=!1;G.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return G};
_.T(Aj,_.C);_.g=Aj.prototype;_.g.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.g.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.g.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var G;if((G=this.data)==null||!G.isExpanded){G=this.hostElement.clientWidth;var H;if(G&&(H=this.data)!=null&&H.destinationButtons){H=Math.floor((G+4)/214);G=this.data.destinationButtons.length;var Z=Math.ceil(G/H);this.fullyVisibleRows=G%H===1&&Z===2?1:Math.min(Z,2);this.isShowMoreVisible=this.fullyVisibleRows<Z}}}};
_.g.updateRichGridDestinationButtonsVisibility=function(){var G,H;if(this.isRichGrid&&((G=this.data)==null||!G.isExpanded)&&(H=this.data)!=null&&H.destinationButtons){G=this.richGridItemsPerRow+1;H=this.data.destinationButtons.length;var Z=Math.ceil(H/G);this.fullyVisibleRows=H%G===1&&Z===2?1:Math.min(Z,2);this.isShowMoreVisible=this.fullyVisibleRows<Z}};
_.g.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Aj.prototype.updateRichGridDestinationButtonsVisibility=Aj.prototype.updateRichGridDestinationButtonsVisibility;_.N([_.h(),_.A("design:type",Object)],Aj.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Number)],Aj.prototype,"fullyVisibleRows",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Aj.prototype,"isShowMoreVisible",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Aj.prototype,"isRichGrid",void 0);
_.N([_.h({selector:_.cv,value:0}),_.A("design:type",Number)],Aj.prototype,"richGridItemsPerRow",void 0);_.N([_.h(),_.A("design:type",Object)],Aj.prototype,"gridStateActionMap",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Aj.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Aj.prototype,"ytdReduxBehavior",void 0);_.N([_.gx("data","richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Aj.prototype,"updateRichGridDestinationButtonsVisibility",null);_.N([_.O({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Aj);
_.m(Aj,"ytd-destination-shelf-renderer",function(){if(OhG!==void 0)return OhG;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return OhG=G},{mode:1});var adT;var xU=function(){return _.C.apply(this,arguments)||this};
_.T(xU,_.C);xU.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xU.prototype,"data",void 0);_.N([_.O({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],xU);
_.m(xU,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(adT!==void 0)return adT;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return adT=G},{mode:1});var yow;var Ln=function(){var G=_.C.apply(this,arguments)||this;G.disableAnimation=!1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;return G};
_.T(Ln,_.C);Ln.prototype.onTap=function(G){G.preventDefault();this.data&&_.N5(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.u4.Object.defineProperties(Ln.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 G,H,Z,Q,p;return((G=this.data)==null?0:G.checked)?(H=this.data)==null?void 0:(Z=H.onStateIcon)==null?void 0:Z.iconType:(Q=this.data)==null?void 0:(p=Q.defaultStateIcon)==null?void 0:p.iconType}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Ln.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ln.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Ln.prototype,"disableAnimation",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ln.prototype,"isSlimlineSurvey",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ln.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ln.prototype,"isShortsStyle",void 0);_.N([_.z("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ln.prototype,"isAnimatedIcon",null);
_.N([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Number),_.A("design:paramtypes",[])],Ln.prototype,"iconSize",null);_.N([_.z("isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Ln.prototype,"isDarkTheme",null);_.N([_.z("data.checked"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ln.prototype,"icon",null);_.N([_.O({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Ln);
_.m(Ln,"ytd-rating-survey-option-renderer",function(){if(yow!==void 0)return yow;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return yow=G},{mode:2});var o42;var Eh=function(){var G=_.C.apply(this,arguments)||this;G.firstResponseText=null;G.lastResponseText=null;G.selectedNonStarOption=null;G.hideOptions=!1;G.hideUndoButton=!0;G.disableAnimation=!1;G.showResponseRangeText=!1;G.selectedRatingIndex=-1;G.isSlimlineSurvey=!1;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;G.slimlineSurveyRatingSelectedIndex=-1;return G};
_.T(Eh,_.C);_.g=Eh.prototype;_.g.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.g.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.g.onOptionChange=function(G,H){var Z=this;G=H.onStateIcon&&H.defaultStateIcon&&H.onStateIcon.iconType===H.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(q,u){q.responseText===H.responseText?Z.isSlimlineSurvey?(Z.selectedRatingIndex=u,Z.ytdReduxBehavior.dispatch(EcN(u))):(Z.setSurveyOptionValue(u,!0,"checked"),Z.setSurveyOptionValue(u,!0,"selected")):(Z.setSurveyOptionValue(u,!1,"checked"),Z.setSurveyOptionValue(u,
!1,"selected"))});
else if(G)this.selectedNonStarOption=H,this.hideOptions=!0;else{var Q=this.ytRendererBehavior.getSimpleString(H.responseText),p=!0;this.getOptionRenderers().forEach(function(q,u){Z.setSurveyOptionValue(u,p,"checked");Z.setSurveyOptionValue(u,!1,"selected");Z.ytRendererBehavior.getSimpleString(q.responseText)===Q&&(p=!1,Z.setSurveyOptionValue(u,!0,"selected"))})}G=H.responseEndpoint;
var l;H.followUpCommand&&(l=_.X(H.followUpCommand,Rba));this.isSlimlineSurvey?(this.resetComponent(),_.AZ(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.AZ(this.hostElement,"ytd-inline-survey-rating-select-action",[G,l])};
_.g.showSelectedOption=function(){var G=this;_.Ui.addJob(function(){var H=G.getOptionRenderers()[G.slimlineSurveyRatingSelectedIndex];G.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),H)},8,100)};
_.g.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(G){var H;return(H=_.X(G,ASa))!=null?H:{}}):[]};
_.g.onUndoClick=function(){this.resetComponent();_.AZ(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.g.setSurveyOptionValue=function(G,H,Z){this.notifyPath("data.ratings."+G+".ratingSurveyOptionRenderer."+Z);this.set("data.ratings."+G+".ratingSurveyOptionRenderer."+Z,H)};
_.g.resetComponent=function(){var G=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var H=this.getOptionRenderers(),Z,Q;this.firstResponseText=(Q=(Z=H[0])==null?void 0:Z.responseText)!=null?Q:null;var p,l;this.lastResponseText=(l=(p=H[H.length-1])==null?void 0:p.responseText)!=null?l:null;H.forEach(function(q,u){G.setSurveyOptionValue(u,!1,"checked");G.setSurveyOptionValue(u,!1,"selected")})};
_.u4.Object.defineProperties(Eh.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Eh.prototype.onOptionChange=Eh.prototype.onOptionChange;Eh.prototype.dataChanged=Eh.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Eh.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"firstResponseText",void 0);_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"lastResponseText",void 0);_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"selectedNonStarOption",void 0);_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"hideOptions",void 0);_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"hideUndoButton",void 0);_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"disableAnimation",void 0);
_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"showResponseRangeText",void 0);_.N([_.h(),_.A("design:type",Object)],Eh.prototype,"selectedRatingIndex",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Eh.prototype,"isSlimlineSurvey",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Eh.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Eh.prototype,"isShortsStyle",void 0);_.N([_.h({selector:function(G){return G.ui.slimlineSurveyRatingSelectedIndex}}),
_.A("design:type",Object)],Eh.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.N([_.z("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Eh.prototype,"isSingleSelect",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Eh.prototype,"dataChanged",null);
_.N([_.lq("ytd-rating-survey-option-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Eh.prototype,"onOptionChange",null);_.N([_.O({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Eh);
_.m(Eh,"ytd-rating-survey-renderer",function(){if(o42!==void 0)return o42;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return o42=G},{mode:1});var msd;var Us2;var RJt;var WQU=(H8.FIRSTDAYOFWEEK+1)%7,NZ_=function(G,H,Z,Q){var p="";if(Q.selection&&cEf(Q.selection))Fu(G,Q.selection)&&(p+=" selected");else if(Q.selection&&TER(Q.selection)){var l=Q.selection.selectionState||"START_DATE";Fu(G,Q.selection.start)&&(p+=" period-start ",l==="START_DATE"&&(p+="selected"));Fu(G,Q.selection.end)&&(p+=" period-end ",l==="END_DATE"&&(p+="selected"));bP(G,Q.selection.start)||bP(Q.selection.end,G)||(p+=" highlighted")}if(bP(H,Q.start)||bP(Q.end,H))p+=" disabled";Q.circleToday&&
Fu(H,Z)&&(p+=" today");return p};var YU=function(){return _.C.apply(this,arguments)||this};
_.T(YU,_.C);_.g=YU.prototype;_.g.attached=function(){var G=this;_.q2(this,function(){G.JSC$16079_calendarMain.scrollHeight>0&&(G.calendarConfig.selection?G.scrollToDate(f4R(G.calendarConfig.selection)):G.scrollToDate(G.calendarConfig.end))})};
_.g.updateSelection=function(G){G=zVX(Object.assign({},this.calendarConfig,{selection:G}),NZ_);this.splice.apply(this,["renderData.months",0,G.length].concat(_.OP(G)))};
_.g.scrollToDate=function(G){this.renderData&&(G=KQR(G,this.renderData),G!==void 0&&this.JSC$16079_calendarMain.scrollToIndex(G))};
_.g.scrollToNextMonth=function(){this.JSC$16079_calendarMain.scrollToIndex(this.JSC$16079_calendarMain.firstVisibleIndex+1)};
_.g.scrollToPrevMonth=function(){this.JSC$16079_calendarMain.firstVisibleIndex===0&&this.JSC$16079_calendarMain.scrollTo(0,0);this.JSC$16079_calendarMain.scrollToIndex(this.JSC$16079_calendarMain.firstVisibleIndex-1)};
_.g.handleDayClick=function(G){_.AZ(this.hostElement,"ytd-calendar-date-clicked",[G.model.day.date])};
_.g.handleDayMouseDown=function(G){G.preventDefault();_.AZ(this.hostElement,"ytd-calendar-date-mousedown",[G.model.day.date])};
_.g.handleDayMouseUp=function(G){_.AZ(this.hostElement,"ytd-calendar-date-mouseup",[G.model.day.date])};
_.g.handleDayMouseEnter=function(G){G.preventDefault();_.AZ(this.hostElement,"ytd-calendar-date-mouseenter",[G.model.day.date])};
_.g.handleDayMouseLeave=function(G){_.AZ(this.hostElement,"ytd-calendar-date-mouseleave",[G.model.day.date])};
_.u4.Object.defineProperties(YU.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var G=this.calendarConfig,H=NZ_;H=H===void 0?NZ_:H;for(var Z=[],Q=0;Q<7;Q++)Z.push(H8.NARROWWEEKDAYS[(Q+WQU)%7]);return{months:zVX(G,H),daysOfWeekLabel:Z}}}});
_.N([_.h(),_.A("design:type",Object)],YU.prototype,"calendarConfig",void 0);_.N([_.q6("#calendar-main"),_.A("design:type",Object)],YU.prototype,"JSC$16079_calendarMain",void 0);_.N([_.z("calendarConfig"),_.A("design:type",Object),_.A("design:paramtypes",[])],YU.prototype,"renderData",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],YU);
_.m(YU,"ytd-scrollable-calendar",function(){if(RJt!==void 0)return RJt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return RJt=G},{mode:2});var Aow;var xsa;var F4=function(){var G=_.C.apply(this,arguments)||this;G.hideCharCounter=!1;G.hideLabel=!1;G.noLabelFloat=!1;G.autoValidate=!0;G.invalid=!1;G.disabled=!1;G.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return G};
_.T(F4,_.C);_.g=F4.prototype;_.g.reset=function(G){this.value=G&&this.data?this.data.value=G:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.g.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.g.focusTextInput=function(){this.input.focus()};
_.g.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()};
_.g.valueChanged=function(){var G,H;if(((G=this.data)==null?0:G.value)||((H=this.data)==null?void 0:H.value)==="")this.value=this.data.value;else{var Z;((Z=this.data)==null?void 0:Z.value)!==void 0||this.value||(this.value="")}};
_.g.computeLabel=function(G,H){return H?"":_.yn(G)};
_.g.computeAriaLabel=function(G,H){return H?_.yn(G):""};
_.g.computeErrorMessage=function(G,H,Z,Q){!G&&H?G=Z||this.strings.REQUIRED_LABEL:(G=_.yn(Q),G=_.JM(G,"&")?"document"in _.Qf?sst(G):Z0R(G):G);return G};
_.g.computeType=function(G){return G==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.g.onTextValueChanged=function(G){this.value=G.detail.value;var H;(H=this.onValueChanged)==null||H.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.g.handleUpdateTextInputFormFieldRendererCommand=function(G){(G=_.X(G,B52))&&this.data&&this.data.id===G.id&&(G.invalid!==void 0&&(this.invalid=G.invalid),G.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",G.invalidValueErrorMessage))};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("value-changed",this.value))};
_.g.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.u4.Object.defineProperties(F4.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var G;return!((G=this.data)==null||!G.isMultiline)}}});
F4.prototype.valueChangedForBinding=F4.prototype.valueChangedForBinding;F4.prototype.valueChanged=F4.prototype.valueChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],F4.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],F4.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],F4.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],F4.prototype,"value",void 0);_.N([_.h(),_.A("design:type",String)],F4.prototype,"pattern",void 0);_.N([_.h(),_.A("design:type",String)],F4.prototype,"errorMessage",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],F4.prototype,"componentStyle",void 0);_.N([_.h(),_.A("design:type",Object)],F4.prototype,"hideCharCounter",void 0);
_.N([_.h(),_.A("design:type",Object)],F4.prototype,"hideLabel",void 0);_.N([_.h(),_.A("design:type",Object)],F4.prototype,"noLabelFloat",void 0);_.N([_.h(),_.A("design:type",Function)],F4.prototype,"onValueChanged",void 0);_.N([_.h(),_.A("design:type",Boolean)],F4.prototype,"isMultilineOverride",void 0);_.N([_.h(),_.A("design:type",Object)],F4.prototype,"autoValidate",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],F4.prototype,"invalid",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],F4.prototype,"disabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],F4.prototype,"enableOverlayTheme",void 0);_.N([_.h({value:{REQUIRED_LABEL:_.Zg("REQUIRED_LABEL",void 0,"Required")}}),_.A("design:type",Object)],F4.prototype,"strings",void 0);_.N([_.q6("#input"),_.A("design:type",Object)],F4.prototype,"input",void 0);
_.N([_.z("data","isMultilineOverride"),_.A("design:type",Object),_.A("design:paramtypes",[])],F4.prototype,"isMultiline",null);_.N([_.Jv("data.value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],F4.prototype,"valueChanged",null);_.N([_.gx("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],F4.prototype,"valueChangedForBinding",null);_.N([_.fH({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],F4);
_.m(F4,"yt-text-input-form-field-renderer",function(){if(xsa===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Aow===void 0&&(Aow=document.createElement("template"));var Q=Aow;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);xsa=G}G=xsa;return G},{mode:2});var bC=function(){var G=_.C.apply(this,arguments)||this;G.data=void 0;G.selectionState="START_DATE";G.isStartDateInvalid=!1;G.isEndDateInvalid=!1;G.autoapply=!1;G.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 G};
_.T(bC,_.C);_.g=bC.prototype;_.g.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"}}}}};
_.g.focus=function(){this.startDateInput.focus()};
_.g.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:GG(this.data.selection.start),end:GG(this.data.selection.end)})};
_.g.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.g.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Lw(this.selectionState)}};
_.g.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.g.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.g.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.g.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,H=G.end;G=jR3({start:G.start,end:this.endDate||H},this.startDateInput.value||"");this.isStartDateInvalid=!G.isValid;G.isValid&&(G=G.value,this.selection=this.endDate?{start:G,end:this.endDate}:G,this.calendar.scrollToDate(G));this.updateInvalidState()}};
_.g.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var G=this.calendar.calendarConfig,H=G.start;G=jR3({start:this.startDate||H,end:G.end},this.endDateInput.value||"");this.isEndDateInvalid=!G.isValid;G.isValid&&(G=G.value,this.selection={start:this.startDate,end:G},this.calendar.scrollToDate(G));this.updateInvalidState()}};
_.g.handleCalendarDateClicked=function(G){var H=this.selection&&f4R(this.selection),Z=this.selection&&v0U(this.selection);H&&!bP(G,H)&&this.selectionState==="END_DATE"?(this.selection={start:H,end:G},this.selectionState="START_DATE"):(Z&&!bP(Z,G)?this.selection={start:G,end:Z}:this.selection=G,this.selectionState="END_DATE")};
_.g.handleCalendarDateMouseDown=function(G){this.selection&&!cEf(this.selection)&&(this.dragPivot=Fu(G,this.selection.start)?this.selection.end:Fu(G,this.selection.end)?this.selection.start:G)};
_.g.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.g.handleCalendarDateMouseEnter=function(G){this.dragPivot&&(this.selection={start:function(H,Z){return bP(H,Z)?H:Z}(this.dragPivot,G),
end:function(H,Z){return bP(H,Z)?Z:H}(this.dragPivot,G)},this.dragPivot||(this.selectionState="START_DATE"))};
_.g.handleCalendarDateMouseLeave=function(){};
_.g.handleCalendarSubmitDateRange=function(){this.selection&&!cEf(this.selection)&&_.AZ(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.g.updateInvalidState=function(){var G=function(H,Z){Z?H.setAttribute("invalid",""):H.removeAttribute("invalid")};
G(this.startDateInput,this.isStartDateInvalid);G(this.endDateInput,this.isEndDateInvalid)};
_.g.updateDateStrings=function(){this.selection&&(cEf(this.selection)?Xuf(this.selection):(Xuf(this.selection.start),Xuf(this.selection.end)))};
_.g.updateCalendarSelection=function(G){this.calendar.updateSelection(Object.assign({},G,{selectionState:this.selectionState}))};
_.g.updateIsStartDateInvalidFromBinding=function(G){this.isStartDateInvalid=G.detail.value};
_.g.updateIsEndDateInvalidFromBinding=function(G){this.isEndDateInvalid=G.detail.value};
_.g.updateStartDateStringFromBinding=function(){};
_.g.updateEndDateStringFromBinding=function(){};
_.u4.Object.defineProperties(bC.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:GG(this.data.dateRangeStart),end:GG(this.data.dateRangeEnd),selection:{start:GG(this.data.selection.start),end:GG(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&f4R(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&v0U(this.selection)}}});
bC.prototype.resetTextboxes=bC.prototype.resetTextboxes;bC.prototype.observeSelection=bC.prototype.observeSelection;bC.prototype.dataChanged=bC.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],bC.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("#calendar"),_.A("design:type",Object)],bC.prototype,"calendar",void 0);
_.N([_.q6("#start-date"),_.A("design:type",Object)],bC.prototype,"startDateInput",void 0);_.N([_.q6("#end-date"),_.A("design:type",Object)],bC.prototype,"endDateInput",void 0);_.N([_.h(),_.A("design:type",Object)],bC.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],bC.prototype,"selection",void 0);_.N([_.h(),_.A("design:type",String)],bC.prototype,"selectionState",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],bC.prototype,"calendarConfig",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],bC.prototype,"errorMessage",null);_.N([_.z("selection"),_.A("design:type",Object),_.A("design:paramtypes",[])],bC.prototype,"startDate",null);_.N([_.z("selection"),_.A("design:type",Object),_.A("design:paramtypes",[])],bC.prototype,"endDate",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bC.prototype,"dataChanged",null);
_.N([_.gx("selection","selectionState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bC.prototype,"observeSelection",null);_.N([_.gx("selectionState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bC.prototype,"resetTextboxes",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],bC);
_.m(bC,"ytd-date-period-picker-renderer",function(){if(Us2!==void 0)return Us2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Us2=G},{mode:1});var G7=function(){var G=_.C.apply(this,arguments)||this;var H={};G.actionMap=(H["ytd-date-period-picker-apply"]="handleDateRangeUpdated",H);return G};
_.T(G7,_.C);G7.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
G7.prototype.handleDateRangeUpdated=function(){};
_.N([_.h(),_.A("design:type",Object)],G7.prototype,"data",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],G7.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],G7.prototype,"rendererstamperBehavior",void 0);_.N([_.O({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],G7);
_.m(G7,"ytd-report-history-section-header-renderer",function(){if(msd!==void 0)return msd;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return msd=G},{mode:1});var Lcw;var E4x;var YZT;var H6=function(){return _.C.apply(this,arguments)||this};
_.T(H6,_.C);_.u4.Object.defineProperties(H6.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?0:(H=G.icon)==null?0:H.iconType)?_.bq(this.data.icon.iconType):""}}});
_.N([_.h(),_.A("design:type",Object)],H6.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],H6.prototype,"icon",null);_.N([_.O({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],H6);
_.m(H6,"ytd-report-history-table-text-cell-renderer",function(){if(YZT!==void 0)return YZT;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YZT=G},{mode:1});var sU=function(){return _.C.apply(this,arguments)||this};
_.T(sU,_.C);sU.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sU.prototype,"data",void 0);_.N([_.O({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],sU);
_.m(sU,"ytd-report-history-table-reason-cell-renderer",function(){if(E4x!==void 0)return E4x;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return E4x=G},{mode:1});var Zn=function(){return _.C.apply(this,arguments)||this};
_.T(Zn,_.C);Zn.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"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Zn.prototype,"rendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Zn.prototype,"data",void 0);_.N([_.O({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Zn);
_.m(Zn,"ytd-report-history-table-cell-renderer",function(){if(Lcw!==void 0)return Lcw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return Lcw=G},{mode:1});var Fcx;var QE=function(){var G=_.C.apply(this,arguments)||this;G.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 G};
_.T(QE,_.C);QE.prototype.onDataChanged=function(){var G;if((G=this.data)==null?0:G.style)this.componentStyle=this.getStyleName(this.data.style)};
QE.prototype.getCellForColumn=function(G){return this.cells.find(function(H){var Z;return((Z=_.X(H==null?void 0:H.cell,Ex_)||_.X(H==null?void 0:H.cell,LLw))==null?void 0:Z.columnId)===G.type})};
QE.prototype.getClassForColumn=function(G){switch(G){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
QE.prototype.getStyleName=function(G){switch(G){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.u4.Object.defineProperties(QE.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.cells)||[]).map(function(H){return _.X(H,xo2)})}}});
QE.prototype.onDataChanged=QE.prototype.onDataChanged;_.N([_.h(),_.A("design:type",Object)],QE.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Array)],QE.prototype,"columnRenderData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],QE.prototype,"componentStyle",void 0);_.N([_.z("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],QE.prototype,"cells",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QE.prototype,"onDataChanged",null);_.N([_.O({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],QE);
_.m(QE,"ytd-report-history-table-row-renderer",function(){if(Fcx!==void 0)return Fcx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Fcx=G},{mode:1});var bhT;var Gud;var Pwe={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},rEv={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var p8=function(){return _.C.apply(this,arguments)||this};
_.T(p8,_.C);p8.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"}}}}}};
p8.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.u4.Object.defineProperties(p8.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.columns)?OaW(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Cw2(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var G=this.tableSpec,H=Pwe;H=H===void 0?rEv:H;H=iaf(G.columnDimensions,G.columnsToShow||[],H);G=0;H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,G+=Z.minWidth+Z.paddingLeft+Z.paddingRight;return G}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.N([_.v(_.sF),_.A("design:type",Object)],p8.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],p8.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],p8.prototype,"tableSpec",null);_.N([_.z("tableSpec"),_.A("design:type",Array),_.A("design:paramtypes",[])],p8.prototype,"columnRenderData",null);
_.N([_.z("tableSpec"),_.A("design:type",Number),_.A("design:paramtypes",[])],p8.prototype,"totalMinWidth",null);_.N([_.z("totalMinWidth"),_.A("design:type",String),_.A("design:paramtypes",[])],p8.prototype,"tableWidthStyle",null);_.N([_.O({is:"ytd-table-renderer",disableElementRegistration:!0})],p8);
_.m(p8,"ytd-table-renderer",function(){if(Gud!==void 0)return Gud;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Gud=G},{mode:1});var lr=function(){return _.C.apply(this,arguments)||this};
_.T(lr,_.C);lr.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}}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lr.prototype,"data",void 0);_.N([_.O({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],lr);
_.m(lr,"ytd-report-reason-history-modal-renderer",function(){if(bhT!==void 0)return bhT;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return bhT=G},{mode:1});var Hyp;var slw;var Zy2;var gh=function(){return _.C.apply(this,arguments)||this};
_.T(gh,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gh.prototype,"data",void 0);_.N([_.O({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],gh);
_.m(gh,"ytd-profile-column-stats-entry-renderer",function(){if(Zy2!==void 0)return Zy2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Zy2=G},{mode:1});var QlR;var Ib=function(){return _.C.apply(this,arguments)||this};
_.T(Ib,_.C);Ib.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ib.prototype,"data",void 0);_.N([_.O({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Ib);
_.m(Ib,"ytd-profile-column-stats-renderer",function(){if(QlR!==void 0)return QlR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return QlR=G},{mode:1});var pqw;var qT=function(){return _.C.apply(this,arguments)||this};
_.T(qT,_.C);_.u4.Object.defineProperties(qT.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var H,Z;G=(H=this.data)==null?void 0:(Z=H.thumbnail)==null?void 0:Z.thumbnails;var Q;return G&&((Q=G[0])==null?void 0:Q.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.useThumbnailSize)return 80;var H,Z;G=(H=this.data)==null?void 0:(Z=H.thumbnail)==null?void 0:Z.thumbnails;var Q;return G&&((Q=G[0])==null?void 0:Q.height)||80}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qT.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],qT.prototype,"componentStyle",void 0);_.N([_.z("data.useThumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],qT.prototype,"thumbnailWidth",null);
_.N([_.z("data.useThumbnailSize"),_.A("design:type",Object),_.A("design:paramtypes",[])],qT.prototype,"thumbnailHeight",null);_.N([_.O({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],qT);
_.m(qT,"ytd-profile-column-user-info-renderer",function(){if(pqw!==void 0)return pqw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pqw=G},{mode:1});var SB=function(){return _.C.apply(this,arguments)||this};
_.T(SB,_.C);SB.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]]"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],SB.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],SB.prototype,"componentStyle",void 0);_.N([_.O({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],SB);
_.m(SB,"ytd-profile-column-renderer",function(){if(slw!==void 0)return slw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return slw=G},{mode:1});var ur=function(){var G=_.C.apply(this,arguments)||this;G.componentStyle="NON_CENTERED_PROFILE";return G};
_.T(ur,_.C);ur.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
ur.prototype.getIcon=function(G){return G?"settings:"+G.toLowerCase():null};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ur.prototype,"data",void 0);_.N([_.O({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],ur);
_.m(ur,"ytd-page-introduction-renderer",function(){if(Hyp!==void 0)return Hyp;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Hyp=G},{mode:1});var lCp;var B6=function(){return _.C.apply(this,arguments)||this};
_.T(B6,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],B6.prototype,"data",void 0);_.N([_.O({is:"ytd-report-description-renderer",disableElementRegistration:!0})],B6);
_.m(B6,"ytd-report-description-renderer",function(){if(lCp!==void 0)return lCp;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return lCp=G},{mode:1});var g8p;var ICa;var JJ=function(){return _.C.apply(this,arguments)||this};
_.T(JJ,_.C);JJ.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],JJ.prototype,"data",void 0);_.N([_.O({is:"ytd-video-report-renderer",disableElementRegistration:!0})],JJ);
_.m(JJ,"ytd-video-report-renderer",function(){if(ICa!==void 0)return ICa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ICa=G},{mode:1});var qX2;_.eQ("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.eQ("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var tJ=function(){return _.C.apply(this,arguments)||this};
_.T(tJ,_.C);tJ.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]]"}}}}}};
tJ.prototype.computeMessageStyle=function(G){return G};
tJ.prototype.computeButtonOverride=function(G){var H;if((G==null?0:(H=G.style)==null?0:H.value)&&G.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],tJ.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],tJ.prototype,"shelf",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],tJ.prototype,"panel",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.A("design:type",Boolean)],tJ.prototype,"componentStyle",void 0);_.N([_.h({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],tJ.prototype,"buttonOverride",void 0);_.N([_.O({is:"ytd-message-renderer",disableElementRegistration:!0})],tJ);
_.m(tJ,"ytd-message-renderer",function(){if(qX2!==void 0)return qX2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qX2=G},{mode:1});var kc=function(){return _.C.apply(this,arguments)||this};
_.T(kc,_.C);kc.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"}}}};
kc.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
kc.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.u4.Object.defineProperties(kc.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var G,H;return!!(((G=this.data)==null?0:G.header)&&((H=this.data)==null?0:H.table))}}});
kc.prototype.onRequestError=kc.prototype.onRequestError;_.N([_.v(_.sF),_.A("design:type",Object)],kc.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],kc.prototype,"data",void 0);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],kc.prototype,"isUnifiedReportHistory",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kc.prototype,"onRequestError",null);_.N([_.O({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],kc);
_.m(kc,"ytd-report-history-section-renderer",function(){if(g8p!==void 0)return g8p;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return g8p=G},{mode:1});var SXR;var Dn=function(){var G=_.C.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.T(Dn,_.C);Dn.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Dn.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dn.prototype,"answerExpanded",void 0);_.N([_.O({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Dn);
_.m(Dn,"ytd-handles-claiming-faq-renderer",function(){if(SXR!==void 0)return SXR;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return SXR=G},{mode:1});var u3a;var B1w=function(){return _.C.apply(this,arguments)||this};
_.T(B1w,_.C);_.N([_.h(),_.A("design:type",Object)],B1w.prototype,"data",void 0);_.N([_.O({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],B1w);
_.m(B1w,"ytd-handles-claiming-faq-section-renderer",function(){if(u3a!==void 0)return u3a;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return u3a=G},{mode:1});var Jua;var dh=function(){var G=_.C.apply(this,arguments)||this;G.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";G.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";G.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";G.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";G.leftSquiggly=G.leftSquigglyLight;G.rightSquiggly=G.rightSquigglyLight;
G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return G};
_.T(dh,_.C);_.g=dh.prototype;_.g.updateLeftSquigglyStyle=function(){_.ZI(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.g.updateRightSquigglyStyle=function(){_.ZI(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.g.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.g.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),G?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
dh.prototype.updateRightSquigglyStyle=dh.prototype.updateRightSquigglyStyle;dh.prototype.updateLeftSquigglyStyle=dh.prototype.updateLeftSquigglyStyle;_.N([_.h(),_.A("design:type",Object)],dh.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],dh.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",String)],dh.prototype,"leftSquiggly",void 0);_.N([_.h(),_.A("design:type",String)],dh.prototype,"rightSquiggly",void 0);
_.N([_.gx("leftSquiggly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dh.prototype,"updateLeftSquigglyStyle",null);_.N([_.gx("rightSquiggly"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dh.prototype,"updateRightSquigglyStyle",null);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],dh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],dh.prototype,"actionButtonOverride",void 0);_.N([_.O({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],dh);
_.m(dh,"ytd-handles-claiming-header-renderer",function(){if(Jua!==void 0)return Jua;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Jua=G},{mode:1});var t3t;var eB=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";G.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";G.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";G.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
G.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";G.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";G.image0SquigglyBackground=G.image0LightSquigglyBackground;G.image1SquigglyBackground=G.image1LightSquigglyBackground;G.image3SquigglyBackground=G.image3LightSquigglyBackground;return G};
_.T(eB,_.C);_.g=eB.prototype;_.g.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.g.onDataChanged=function(){this.updateTitleAndImages()};
_.g.onThemeChanged=function(){this.updateTitleAndImages()};
_.g.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.g.updateImage0SquigglyBackground=function(){_.ZI(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.g.updateImage1SquigglyBackground=function(){_.ZI(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.g.updateImage3SquigglyBackground=function(){_.ZI(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.g.updateTitleAndImages=function(){var G,H;((G=this.data)==null?void 0:(H=G.titleImages)==null?void 0:H.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))};
eB.prototype.updateImage3SquigglyBackground=eB.prototype.updateImage3SquigglyBackground;eB.prototype.updateImage1SquigglyBackground=eB.prototype.updateImage1SquigglyBackground;eB.prototype.updateImage0SquigglyBackground=eB.prototype.updateImage0SquigglyBackground;eB.prototype.onThemeChanged=eB.prototype.onThemeChanged;eB.prototype.onDataChanged=eB.prototype.onDataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],eB.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],eB.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"title0",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"title1",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"title2",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"title3",void 0);
_.N([_.h(),_.A("design:type",Object)],eB.prototype,"title4",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"image0",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"image1",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"image2",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"image3",void 0);_.N([_.h(),_.A("design:type",Object)],eB.prototype,"image4",void 0);_.N([_.h(),_.A("design:type",String)],eB.prototype,"image0SquigglyBackground",void 0);
_.N([_.h(),_.A("design:type",String)],eB.prototype,"image1SquigglyBackground",void 0);_.N([_.h(),_.A("design:type",String)],eB.prototype,"image3SquigglyBackground",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eB.prototype,"onDataChanged",null);_.N([_.gx("isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eB.prototype,"onThemeChanged",null);
_.N([_.gx("image0SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eB.prototype,"updateImage0SquigglyBackground",null);_.N([_.gx("image1SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eB.prototype,"updateImage1SquigglyBackground",null);
_.N([_.gx("image3SquigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eB.prototype,"updateImage3SquigglyBackground",null);_.N([_.O({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],eB);
_.m(eB,"ytd-handles-claiming-title-images-section-renderer",function(){if(t3t!==void 0)return t3t;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return t3t=G},{mode:1});var kua;var n8=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(n8,_.C);n8.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
n8.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
n8.prototype.onCopyButtonClick=function(){var G=this,H,Z,Q;return _.S(function(p){return(H=G.data)!=null&&H.primaryChannelUrl?p.yield(navigator.clipboard.writeText(((Z=G.data)==null?0:Z.encodedChannelUrl)?G.data.encodedChannelUrl:"https://"+_.yn((Q=G.data)==null?void 0:Q.primaryChannelUrl)),0):p.jumpTo(0)})};
_.N([_.h(),_.A("design:type",Object)],n8.prototype,"data",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],n8.prototype,"ytComponentBehavior",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],n8.prototype,"isDarkTheme",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],n8.prototype,"ytActionHandlerBehavior",void 0);_.N([_.O({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],n8);
_.m(n8,"ytd-handles-claiming-update-social-renderer",function(){if(kua!==void 0)return kua;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return kua=G},{mode:1});var Db4;var VE=function(){var G=_.C.apply(this,arguments)||this;G.JSC$16173_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";G.JSC$16173_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};G.squigglyBackground=G.JSC$16173_squigglyBackgroundLight;return G};
_.T(VE,_.C);VE.prototype.updateSquigglyBackgroundStyle=function(){_.ZI(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
VE.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.squigglyBackground=G?this.JSC$16173_squigglyBackgroundDark:this.JSC$16173_squigglyBackgroundLight};
VE.prototype.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16173_squigglyBackgroundDark:this.JSC$16173_squigglyBackgroundLight)};
VE.prototype.updateSquigglyBackgroundStyle=VE.prototype.updateSquigglyBackgroundStyle;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],VE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],VE.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VE.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",String)],VE.prototype,"squigglyBackground",void 0);_.N([_.gx("squigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VE.prototype,"updateSquigglyBackgroundStyle",null);_.N([_.O({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],VE);
_.m(VE,"ytd-handles-claiming-vanity-info-renderer",function(){if(Db4!==void 0)return Db4;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Db4=G},{mode:1});var db2;var $c=function(){var G=_.C.apply(this,arguments)||this;G.JSC$16176_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";G.JSC$16176_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";G.squigglyBackground=G.JSC$16176_squigglyBackgroundLight;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T($c,_.C);_.g=$c.prototype;_.g.ready=function(){var G=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(G)};
_.g.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.set("isDarkTheme",G),this.squigglyBackground=G?this.JSC$16176_squigglyBackgroundDark:this.JSC$16176_squigglyBackgroundLight)};
_.g.updateSquigglyBackgroundStyle=function(){_.ZI(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.g.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.g.detached=function(){this.stop()};
_.g.stop=function(){this.playerElement.stop()};
_.g.setupVideoPlayer=function(){var G=this,H,Z;return _.S(function(Q){H=G.data.videoId;Z="http://i1.ytimg.com/vi/"+H+"/maxresdefault.jpg";G.playerElement.loadVideoWithPlayerVars({video_id:H,iurlhq:Z});_.K0(Q)})};
$c.prototype.onDataChanged=$c.prototype.onDataChanged;$c.prototype.updateSquigglyBackgroundStyle=$c.prototype.updateSquigglyBackgroundStyle;_.N([_.h({value:!1}),_.A("design:type",Boolean)],$c.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",String)],$c.prototype,"squigglyBackground",void 0);_.N([_.q6("#player"),_.A("design:type",Object)],$c.prototype,"playerElement",void 0);_.N([_.h(),_.A("design:type",Object)],$c.prototype,"data",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],$c.prototype,"ytActionHandlerBehavior",void 0);_.N([_.gx("squigglyBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$c.prototype,"updateSquigglyBackgroundStyle",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$c.prototype,"onDataChanged",null);
_.N([_.O({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],$c);
_.m($c,"ytd-handles-claiming-video-item-renderer",function(){if(db2!==void 0)return db2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return db2=G},{mode:1});var eDx;var c6=function(){var G=_.uq.apply(this,arguments)||this;G.dragging=!1;G.dragMouseStart=0;G.dragOffsetStart=0;G.containerWidthDiff=0;G.boundPrevClick=function(){G.set("offset",X$(G,G.offset-(G.scrollDistance||320)))};
G.boundNextClick=function(){G.set("offset",X$(G,G.offset+(G.scrollDistance||320)))};
G.boundScrollContainerMouseDown=function(H){G.dragMouseStart=H.clientX;G.dragOffsetStart=G.offset;G.dragging=!0};
G.boundScrollContainerDrag=function(H){G.dragging&&G.set("offset",X$(G,G.dragOffsetStart-(H.clientX-G.dragMouseStart)))};
G.boundMouseUp=function(){G.onMouseUp()};
G.boundWheelScroll=function(H){var Z=0;Math.abs(H.deltaX)>=Math.abs(H.deltaY)?Z=H.deltaX:H.shiftKey&&(Z=H.deltaY);Z!==0&&(G.offset+=Z,H.stopPropagation(),H.preventDefault())};
G.boundChipCloudChipScrollIntoView=function(H){(H=H.detail)&&G.scrollChipIntoView(H)};
return G};
_.T(c6,_.uq);c6.prototype.attached=function(){var G=_.F9(this.hostElement).querySelector("#scroll-container");G.addEventListener("wheel",this.boundWheelScroll);G.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);G.style.touchAction="pan-y";G.addEventListener("pointerdown",this.boundScrollContainerMouseDown);G.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
c6.prototype.detached=function(){var G=_.F9(this.hostElement).querySelector("#scroll-container");G.removeEventListener("wheel",this.boundWheelScroll);G.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);G.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);G.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
c6.prototype.reset=function(){this.set("offset",0);_.q2(this,this.setContainerWidthDiff);_.q2(this,this.setButtonsState)};
var X$=function(G,H){return Math.min(Math.max(H,0),G.containerWidthDiff)};
_.g=c6.prototype;_.g.onMouseUp=function(){this.dragging=!1};
_.g.transformContainer=function(){this.offset=X$(this,this.offset);var G=_.xI("HTML_DIR")==="rtl"?"":"-";_.F9(this.hostElement).querySelector("#chips").style.transform="translateX("+G+this.offset+"px)";_.q2(this,this.setButtonsState)};
_.g.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=X$(this,this.offset));this.atStart=this.offset<=0};
_.g.setContainerWidthDiff=function(){var G=_.F9(this.hostElement).querySelector("#scroll-container"),H=_.F9(this.hostElement).querySelector("#chips");G&&H&&(this.containerWidthDiff=H.clientWidth-G.clientWidth)};
_.g.scrollChipIntoView=function(G){var H=_.F9(this.hostElement).querySelector("#scroll-container");if(H){var Z=this.atStart?0:106,Q=this.atEnd?0:106;G.offsetLeft<this.offset+Z?this.offset=X$(this,G.offsetLeft-Z):G.offsetLeft+G.clientWidth>this.offset+H.clientWidth-Q&&(this.offset=X$(this,G.offsetLeft+G.clientWidth+Q-H.clientWidth))}};
c6.prototype.transformContainer=c6.prototype.transformContainer;_.N([_.h({value:0}),_.A("design:type",Number)],c6.prototype,"offset",void 0);_.N([_.h({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],c6.prototype,"atStart",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],c6.prototype,"atEnd",void 0);_.N([_.h(),_.A("design:type",Number)],c6.prototype,"scrollDistance",void 0);
_.N([_.gx("offset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c6.prototype,"transformContainer",null);_.N([_.BG()],c6);var n8w;var V34;var cua=_.y(function(G){var H=G.data;G=_.I(_.Ty(!1,void 0,"bob3J"));var Z=G.next().value,Q=G.next().value;G=function(l){if((H==null?void 0:H().state)!==1){var q,u;(u=(q=H()).onTap)==null||u.call(q,l)}};
var p={};return _.J("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Hh(function(){var l=_.tp().resolve(_.Jp(_.qZ));if(l){Q(l.isKeyBoardInUse());var q,u;(u=(q=H()).onFocusIn)==null||u.call(q)}return!1}),
"on:focusout":_.Hh(function(){Q(!1);return!1})},_.J($bd,{shouldWrapInButton:function(){return H().type!==2},
selected:function(){return H().state===0},
onClick:G,isDropdown:function(){return H().type===1},
accessibilityLabel:function(){return H().type===1?void 0:H().accessibilityLabel}},_.J("div",{class:_.bb("ytChipShapeChip",function(){a:switch(H==null?void 0:H().state){case 0:var l="ytChipShapeActive";
break a;case 1:l="ytChipShapeDisabled";break a;default:l="ytChipShapeInactive"}return l},function(){var l=H().type===1||H().type===2,q=H();
return l||q!=null&&q.startIcon?q==null||!q.startIcon||q!=null&&q.text?l?"ytChipShapeEndIconPadding":(q==null?0:q.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var l=H();
if((l==null?void 0:l.style)===0&&(l==null?void 0:l.state)===0){var q;l=((q=_.tp().resolve(_.Jp(_.rr)))==null?0:q())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else l="";return l},(p.ytChipShapeFocused=function(){var l;
return Z()&&((l=H())==null?void 0:l.state)!==1},p))},_.J(_.k,{cond:function(){return H().startIcon},
then:function(){return _.J(_.ll,{icon:function(){var l;return(l=H())==null?void 0:l.startIcon},
className:_.bb(function(){return H().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var l=H(),q,u=(q=_.tp().resolve(_.Jp(_.rr)))==null?void 0:q();
return(l==null?void 0:l.style)===0&&(l==null?void 0:l.state)===0&&u?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return H().text},_.J(Xqw,{shape:H,
onClick:G}),_.J(_.u1,{model:{borderRadius:"8px"}}))))},"Jc");
cua.idomCompat=!0;var $bd=_.y(function(G){var H=_.Hh(function(Z){G.onClick(Z);return!1});
return _.J(_.k,{cond:G.shouldWrapInButton,then:function(){return _.J("button",{class:"ytChipShapeButtonReset","on:click":H,role:function(){return G.isDropdown()?"combobox":"tab"},
"aria-label":G.accessibilityLabel,"aria-selected":G.selected},G.children)},
else:function(){return G.children}})},"Kc"),Xqw=_.y(function(G){var H=G.shape;
var Z=G.onClick;var Q=_.Hh(function(p){Z(p);return!1});
return _.J(_.iW,null,_.J(_.wO,{when:function(){return H().type===1}},function(){return _.J(_.ll,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.J(_.wO,{when:function(){return H().type===2}},function(){return _.J("button",{class:"ytChipShapeButtonReset",
"on:click":Q},_.J(_.ll,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.J(_.wO,{when:function(){return H().type===0}},function(){return _.J(_.kI,null)}))},"Lc");_.RX(cua,"chip-shape",{props:{data:_.b3}});var T7=function(){var G=_.C.apply(this,arguments)||this;G.disableDeselectEvent=!1;G.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return G};
_.T(T7,_.C);_.g=T7.prototype;_.g.onSelectChipCommand=function(G){if(!this.selected&&this.data&&(G=_.X(G,s$w),G.targetId&&G.targetId===this.data.targetId))this.onTap()};
_.g.onFilterChipTransformCommand=function(G){if(!this.selected&&this.data){var H;(G=(H=_.X(G,Eqa))==null?void 0:H.chipUniqueId)&&G===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.g.dataChanged=function(){var G=this;_.q2(this,function(){G.data&&G.data.isSelected&&!G.selected&&(G.scrollChipIntoView(),G.onTap())})};
_.g.computeChipStyle=function(G){return G!=null?G:"STYLE_DEFAULT"};
_.g.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.AZ(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.AZ(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.g.onFocus=function(){var G=_.tp().resolve(_.Jp(_.qZ));G&&G.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.g.scrollChipIntoView=function(){_.N5(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.u4.Object.defineProperties(T7.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return NEf({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
T7.prototype.onFocus=T7.prototype.onFocus;T7.prototype.onTap=T7.prototype.onTap;T7.prototype.dataChanged=T7.prototype.dataChanged;_.N([_.v(_.KF),_.A("design:type",Object)],T7.prototype,"ironButtonState",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],T7.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],T7.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.vZ),_.A("design:type",Object)],T7.prototype,"ironA11yKeysBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],T7.prototype,"disableDeselectEvent",void 0);_.N([_.h(),_.A("design:type",Object)],T7.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.icon"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],T7.prototype,"hasIcon",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data.uniqueId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],T7.prototype,"isGnomeChip",null);_.N([_.h({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.A("design:type",String)],T7.prototype,"chipStyle",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],T7.prototype,"selected",void 0);
_.N([_.z("data","selected"),_.A("design:type",Object),_.A("design:paramtypes",[])],T7.prototype,"chipShapeData",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],T7.prototype,"dataChanged",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],T7.prototype,"onTap",null);
_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],T7.prototype,"onFocus",null);_.N([_.fH({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],T7);
_.m(T7,"yt-chip-cloud-chip-renderer",function(){if(V34===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;n8w===void 0&&(n8w=document.createElement("template"));var Q=n8w;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);V34=G}G=V34;return G},{mode:2});var xkW=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.T1d=_.y(function(G){function H(){if(xkW.has(G.data().displayType)){var t=!Q(),D;if((D=G.disableDeselection)==null||!D.call(G)||t){G.data().selected=t;D=Object.assign({},q(),{selected:t});u(D);var d;(d=G.callback)==null||d.call(G,D,t)}}}
var Z=_.IA("chip-view-model"),Q=function(){var t,D;return!!(((t=G.selected)==null?void 0:t.call(G))!==void 0?(D=G.selected)==null?0:D.call(G):q().selected)},p=_.I(_.QF(G.data)),l=p.next().value;
p=p.next().value;var q=l,u=p,B=_.gu(AEX,function(){return G.data().chipEntityKey||""});
return _.J("chip-view-model",{class:"ytChipViewModelHost",el:Z},_.J(cua,{data:function(){var t,D=Object.assign({},q(),{selected:Q()}),d=B(),e=(t=G.disableDeselection)==null?void 0:t.call(G);a:switch(D.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":t=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":t=3;break a;default:t=0}return{text:(d==null?void 0:d.text)||D.text,state:D.disabled?1:D.selected?0:2,type:t,onTap:LQR(D,Z,H,e),
accessibilityLabel:D.accessibilityLabel||D.text}}}))},"Mc");
_.T1d.idomCompat={callbacks:{callback:!0}};_.f8=_.y(function(G){var H=G.data;var Z=G.callback;var Q=G.selectionBehavior;var p=G.disableChipsScrollAnimation;var l=_.qK("div");G=_.I(_.Ty(!0,void 0,"aUEsOc"));var q=G.next().value,u=G.next().value;G=_.I(_.Ty(!1,void 0,"V0aKld"));var B=G.next().value,t=G.next().value,D=!1,d=0;_.yP(function(){u(c());t(W())});
G=_.I(_.QF(function(){var H3={};return H().autoselectedChipIndex!=null?(H3[H().autoselectedChipIndex]=!0,H3):{}}));
var e=G.next().value,n=G.next().value,c=function(){var H3=l.value;return H3==null||H3.scrollLeft-1<=0},W=function(){var H3=l.value;
return H3==null?!1:H3.scrollLeft+1>=(H3==null?NaN:H3.scrollWidth)-(H3==null?NaN:H3.clientWidth)},M=function(){return H().isHorizontallyScrollable},r=function(H3){l.value!=null&&(_.xI("HTML_DIR")==="rtl"&&(H3=-H3),l.value.scrollBy({left:H3,
behavior:(p==null?0:p())?"instant":"smooth"}))},w=function(){r(-320)},x=function(){r(320)},U=_.Hh(function(H3){D=!0;
d=H3.clientX}),R=_.Hh(function(H3){if(D){H3=H3.clientX;
var qX=H3-d;d=H3;var B3;(B3=l.value)==null||B3.scrollBy({left:-qX})}}),L=_.Hh(function(){var H3=c(),qX=W();
H3!==q()&&u(H3);qX!==B()&&t(qX)});
_.Bx("pointerup",function(){D&&(D=!1)});
return _.J("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.J(_.eo,{contentId:function(){return H().contentId},
useModernStyle:!0},function(){var H3={},qX={};return _.J("div",null,_.J(_.k,{cond:function(){return H().title},
then:function(){return _.J("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.J("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return H().title}),_.J(_.SP,{data:function(){return H().overflowButton}},{buttonViewModel:_.kg}))}}),_.J("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.J(_.k,{cond:function(){return H().previousButton},
then:function(){var B3={};return _.J("div",{class:_.bb("ytChipsShelfViewModelLeftArrowContainer",(B3.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return q()},B3))},_.J(_.SP,{data:function(){return H().previousButton}},{buttonViewModel:function(fW){return _.J(_.kg,{data:fW.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:w})}}))}}),_.J("div",{el:l,
"on:pointerdown":U,"on:pointermove":R,"on:scroll":L,class:_.bb("ytChipsShelfViewModelChipsScrollContainer",(H3.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=M,H3))},_.J("div",{class:_.bb("ytChipsShelfViewModelChipsContainer",(qX.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=M,qX.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,qX)),role:"tablist"},_.J(_.SP,{data:function(){return H().contents}},{chipViewModel:function(B3,fW){return _.J("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.J(_.T1d,{data:B3.data,
callback:function(e2,$R){var ie=fW(),W3,DT=(W3=Q==null?void 0:Q())!=null?W3:0;DT===1||DT===2?(W3={},n((W3[ie]=$R,W3))):(W3={},n(Object.assign({},e(),(W3[ie]=$R,W3))));Z==null||Z(e2,$R,ie)},
disableDeselection:function(){return(Q==null?void 0:Q())===1},
selected:function(){return!!e()[fW()]}}))}}))),_.J(_.k,{cond:function(){return H().nextButton},
then:function(){var B3={};return _.J("div",{class:_.bb("ytChipsShelfViewModelRightArrowContainer",(B3.ytChipsShelfViewModelRightArrowContainerIsHidden=B,B3))},_.J(_.SP,{data:function(){return H().nextButton}},{buttonViewModel:function(fW){return _.J(_.kg,{data:fW.data,
className:"ytChipsShelfViewModelRightArrow",onClick:x})}}))}})))}))},"Oc");
_.f8.idomCompat={callbacks:{callback:!0}};var fCR=_.y(function(G){var H=G.data;return _.J("ytd-ai-response-box-view-model",{class:_.bb("ytdAiResponseBoxViewModelHost")},_.J("div",{class:"ytdAiResponseBoxViewModelResponseMessageContainer"},_.J(_.Fe,{text:function(){return H().responseMessage}})),_.J(_.SP,{data:function(){return H().chipsShelf}},{chipsShelfViewModel:function(Z){return _.J("div",{class:"ytdAiResponseBoxViewModelChipsShelfContainer"},_.J(_.f8,{data:Z.data}))}}))},"Pc");var v8d;v8d=Object.assign({},{continuation:O8N,download:jbw,canvas:kVb,reportChannelAbuse:RFN,ui:dtU,share:NhT,talkToRecs:L4d,watch:LQ,ypc:H5a,radioButtonGroup:JD2,collabInviteLink:u_W},i8p,{voiceSearch:Vio,shorts:x9});_.v6=VF(v8d);_.WPt=$V(_.v6);_.zDd=(0,_.WPt)(_.v6.talkToRecs,{talkToRecsStateSelector:function(G){return G}});_.RX(_.y(function(G){var H=G.data;var Z=_.SQ(_.zDd.talkToRecsStateSelector);G=_.I(_.QF(function(){var B,t,D;return(D=(t=Ykv(H(),Z()))!=null?t:(B=H().textInputValue)==null?void 0:B.content)!=null?D:""}));
var Q=G.next().value,p=G.next().value,l=function(B){var t=H().onUpdateText;t&&_.zt(t,{form:{userQuery:B}})},q=_.nO(function(B){l(B)},150);
G=_.Hh(function(B){B=B.target.value.trim();p(B);q(B);return!1});
_.yN(function(){var B=Ykv(H(),Z());B&&B!==Q()&&p(B)},"xcvOld");
var u=_.Hh(function(B){if(B.key==="Enter"){l(B.target.value.trim());var t=_.X(H().submitButton,_.HN);B=void 0;var D;if(t==null?0:(D=t.loggingDirectives)==null?0:D.trackingParams)B=_.BT(t.loggingDirectives.trackingParams);(D=t==null?void 0:t.onTap)&&_.zt(D,{clickedVisualElement:B})}return!1});
return _.J("ytd-feed-customization-form-view-model",{class:"ytdFeedCustomizationFormViewModelHost"},_.J("div",{class:"ytdFeedCustomizationFormViewModelHeaderContainer"},_.J(_.ll,{icon:"SPARKLE_FILLED"}),_.J("div",{class:"ytdFeedCustomizationFormViewModelTitle",role:"heading","aria-level":2},function(){var B;return(B=H().title)==null?void 0:B.content})),_.J("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer"},_.J("div",{class:"ytdFeedCustomizationFormViewModelInputContainer"},_.J("input",
{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var B;return(B=H().textInputPlaceholder)==null?void 0:B.content},
"prop:value":Q,"on:input":G,"on:keyup":u,maxlength:250}),_.J(_.SP,{data:function(){return H().submitButton}},{buttonViewModel:function(B){return _.J("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.J(_.kg,{data:B.data}))}})),_.J(_.SP,{data:function(){return H().contents}},{aiResponseBoxViewModel:function(B){return _.J("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.J(fCR,{data:B.data}))}})))},"Rc"),"ytd-feed-customization-form-view-model",{props:{data:_.b3}});var KPR=_.KG.persistentPanelVisibleSelector,W6=function(){var G=_.C.apply(this,arguments)||this;G.isDarkTheme=!1;G.notSticky=!1;G.transparentBackground=!1;G.shouldHide=!1;G.disableSticky=!1;G.fluidWidth=!1;G.isClipList=!1;G.defaultChipIndex=0;G.isPlaylist=!1;G.playlistVotingAnimationEnabled=_.V("web_enable_voting_animation");G.toolbarHeight=0;G.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return G};
_.T(W6,_.C);_.g=W6.prototype;
_.g.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}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.g.attached=function(){var G=this;document.addEventListener("scroll",_.pH(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var H;this.toolbarHeight=((H=document.querySelector("ytd-masthead"))==null?void 0:H.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(Z){G.handleIntersect(Z)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.g.detached=function(){var G;(G=this.intersectionObserver)==null||G.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect();document.removeEventListener("scroll",_.pH(this,this.updateChipBarWidthAndTop))};
_.g.dataChanged=function(){var G=this,H,Z,Q;((Q=_.X((H=this.data)==null?void 0:(Z=H.contents)==null?void 0:Z[0],p5R))==null?void 0:Q.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var p=this.findSelectedChipIndex();this.selectedIndex!==p&&(this.selectedIndex=-1);_.q2(this,function(){G.selectedIndex=p;G.updateSelectedChipContent(G.selectedIndex);G.updating=!1;G.ytScrollableChipCloudBehavior.reset()})};
_.g.findSelectedChipIndex=function(){var G;if((G=this.data)==null||!G.contents)return 0;G=this.data.contents;for(var H=0;H<G.length;H++){var Z=void 0;if((Z=_.X(G[H],p5R))==null?0:Z.isSelected)return H}return 0};
_.g.computeStyle=function(G){return G};
_.g.handleChipCloudChipSelectAction=function(G){G=this.JSC$16214_chipsSelector.indexOf(G);G>-1&&this.JSC$16214_chipsSelector.selectIndex(G)};
_.g.updateSelectedChipContent=function(G){var H;if((H=this.data)==null||!H.contents||G<0||G>=this.data.contents.length)this.selectedChipContent=void 0;else{var Z;this.selectedChipContent=(Z=_.X(this.data.contents[G],p5R))==null?void 0:Z.content}};
_.g.handleChipCloudChipDeselectAction=function(){if(_.V("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var G,H,Z,Q=(Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],p5R))==null?void 0:Z.navigationEndpoint;Q&&_.AZ(this.hostElement,"yt-browse-section-list-reload-endpoint",[Q]);this.JSC$16214_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.g.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.g.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.g.onResize=function(){this.updateLayout()};
_.g.updateLayout=function(){var G=this.ytScrollableChipCloudBehavior;_.q2(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.q2(G,G.setButtonsState)};
_.g.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.g.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.g.handleIntersect=function(G){this.notSticky=this.isChannelPageGrid||this.disableSticky||G[0].intersectionRatio===1};
_.g.updateDimensions=function(){var G=this.ytRendererBehavior.parentComponent;if(G){var H,Z=(H=G.headerElement)!=null?H:G;_.ZI(this.hostElement,{"--ytd-rich-grid-chips-bar-width":Z.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.g.updateSelectedIndexFromBinding=function(G){this.selectedIndex=G.detail.value};
_.g.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var G;(G=this.sortFilterHeaderRendererElement)==null||G.setAttribute("is-playlist-page-with-filters","")}};
_.g.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(b8x(!this.notSticky))};
_.u4.Object.defineProperties(W6.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 G,H,Z=(G=this.data)==null?void 0:(H=G.contents)==null?void 0:H.find(function(Q){return _.X(Q,Sp4)});
return{sortFilterHeaderRenderer:_.X(Z,Sp4)}}}});
W6.prototype.dispatchChipBarIsSticky=W6.prototype.dispatchChipBarIsSticky;W6.prototype.isPlaylistPageChanged=W6.prototype.isPlaylistPageChanged;W6.prototype.updateChipBarWidthAndTop=W6.prototype.updateChipBarWidthAndTop;W6.prototype.onResize=W6.prototype.onResize;W6.prototype.onPersistentPanelVisibleChanged=W6.prototype.onPersistentPanelVisibleChanged;W6.prototype.onGuideIsExpandedChanged=W6.prototype.onGuideIsExpandedChanged;W6.prototype.dataChanged=W6.prototype.dataChanged;
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],W6.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.hS),_.A("design:type",Object)],W6.prototype,"ironResizableBehavior",void 0);_.N([_.v(),_.A("design:type",c6)],W6.prototype,"ytScrollableChipCloudBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],W6.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],W6.prototype,"data",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],W6.prototype,"selectedIndex",void 0);_.N([_.h({value:320}),_.A("design:type",Number)],W6.prototype,"scrollDistance",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W6.prototype,"isDarkTheme",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W6.prototype,"notSticky",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W6.prototype,"transparentBackground",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.A("design:type",String)],W6.prototype,"componentStyle",void 0);_.N([_.h({selector:_.M8j}),_.A("design:type",Boolean)],W6.prototype,"guideIsExpanded",void 0);
_.N([_.h({selector:KPR}),_.A("design:type",Boolean)],W6.prototype,"persistentPanelVisible",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W6.prototype,"shouldHide",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W6.prototype,"disableSticky",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W6.prototype,"fluidWidth",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W6.prototype,"isClipList",void 0);
_.N([_.h(),_.A("design:type",Object)],W6.prototype,"defaultChipIndex",void 0);_.N([_.h(),_.A("design:type",Object)],W6.prototype,"selectedChipContent",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W6.prototype,"isPlaylist",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],W6.prototype,"playlistVotingAnimationEnabled",void 0);_.N([_.q6("#chips"),_.A("design:type",Object)],W6.prototype,"JSC$16214_chipsSelector",void 0);
_.N([_.q6("ytd-sort-filter-header-renderer"),_.A("design:type",HTMLElement)],W6.prototype,"sortFilterHeaderRendererElement",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],W6.prototype,"updating",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W6.prototype,"dataChanged",null);
_.N([_.gx("guideIsExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W6.prototype,"onGuideIsExpandedChanged",null);_.N([_.gx("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W6.prototype,"onPersistentPanelVisibleChanged",null);_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W6.prototype,"onResize",null);
_.N([_.Jv("isChannelPageGrid","disableSticky","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W6.prototype,"updateChipBarWidthAndTop",null);_.N([_.z("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],W6.prototype,"isChannelPageGrid",null);_.N([_.z("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],W6.prototype,"isHashtagLandingPage",null);
_.N([_.gx("isPlaylistPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W6.prototype,"isPlaylistPageChanged",null);_.N([_.z("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],W6.prototype,"isPlaylistPage",null);_.N([_.z("componentStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],W6.prototype,"isDisableDeselectEvent",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],W6.prototype,"sortFilterHeaderRendererData",null);_.N([_.h({reflectToAttribute:!0,selector:_.iie}),_.A("design:type",String)],W6.prototype,"frostedGlassMode",void 0);_.N([_.gx("notSticky"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W6.prototype,"dispatchChipBarIsSticky",null);_.N([_.O({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],W6);
_.m(W6,"ytd-feed-filter-chip-bar-renderer",function(){if(eDx!==void 0)return eDx;var G=document.createElement("template");_.f(G,'\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 id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return eDx=G},{mode:1});var M3a;var jlw=_.y(function(G){var H=G.data;var Z=G.buttonIndex;var Q=G.selectedIndex;var p=G.onSelect;var l=function(){return Z()===Q()},q=function(){var u,B;
return(B=(u=H().text)==null?void 0:u.content)!=null?B:""};
G=_.mLR();return _.J("yt-toggleable-image-button-view-model",{class:function(){var u={};u=(u.toggleableImageButtonViewModelHost=!0,u[""]=!0,u.toggleableImageButtonViewModelSemiTransparent=Q()!==-1&&!l(),u);return _.Dq(u)},
tabindex:0,"aria-label":q,"aria-pressed":l,role:"button","on:keydown":G,"on:click":_.Hh(function(){p(H().onSubmitCommand);return!1})},_.J(_.k,{cond:function(){return H().logo},
then:function(u){return _.J(_.ib,{data:u,className:function(){var B={};B=(B.toggleableImageButtonViewModelImage=!0,B.toggleableImageButtonViewModelCircularRadius=!(!H().backgroundColor||!H().backgroundColorDarkMode),B.toggleableImageButtonViewModelGradientRing=!!(l()&&H().backgroundColor&&H().backgroundColorDarkMode),B);return _.Dq(B)},
alt:q,useWidth:!1,style:function(){if(l()&&H().backgroundColor&&H().backgroundColorDarkMode){var B=Tz(Number(H().backgroundColorDarkMode),"1");var t=Tz(Number(H().backgroundColor),"1");B="background: linear-gradient(180deg,"+B+","+t+") border-box;"}else B="";return B}})}}),_.J(_.u1,{model:{borderRadius:"16px"}}),_.J("p",{class:function(){var u={};
u=(u.toggleableImageButtonViewModelLabel=!0,u.toggleableImageButtonViewModelBoldText=l(),u);return _.Dq(u)}},_.J(_.Fe,{text:function(){return H().text}})))},"Sc");
jlw.idomCompat=!0;var ru7=_.y(function(G){var H=G.data;G=_.I(_.Ty({index:-1,command:{}},void 0,"GM3umb"));var Z=G.next().value,Q=G.next().value;return _.J("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.J("div",{class:"nudgeFormViewModelFormOptions"},_.J(_.SP,{data:function(){return H().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(p,l){return _.J(jlw,{data:p.data,buttonIndex:l,selectedIndex:function(){return Z().index},
onSelect:function(q){Q({index:l(),command:q})}})}})),_.J(_.Fe,{text:function(){return H().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.J("div",{class:"nudgeFormViewModelSubmit"},_.J(_.SP,{data:function(){return H().submitButton}},{buttonViewModel:function(p){return _.J(PD7,{data:p.data,
isDisabled:function(){return Z().index===-1},
onClick:function(){_.zt(Z().command)}})}})))},"Tc");
ru7.idomCompat=!0;var PD7=_.y(function(G){var H=_.Kb(function(){return Object.assign({},G.data(),{state:G.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.J(_.kg,{data:H,onClick:G.onClick})},"Uc");_.RX(ru7,"yt-nudge-form-view-model",{props:{data:_.b3}});var z7=function(){var G=_.C.apply(this,arguments)||this;G.roundedContainer=!0;G.buttonUpdate=_.V("web_modern_buttons");G.isDarkMode=!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.T(z7,_.C);_.g=z7.prototype;_.g.computeNudgeStyle=function(G){return G?"modernized-nudge":""};
_.g.handleDarkModeToggledAction=function(G){this.isDarkMode=G};
_.g.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.g.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"}}}};
_.g.computeIsHorizontalButtons=function(G){return G?!!G.applyModernizedStyle&&!!G.enableHorizontalButtons&&!!G.secondaryButton:!1};
_.u4.Object.defineProperties(z7.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=(G=this.data)==null?void 0:G.backgroundStyle)!=null?H:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=(G=this.data)==null?void 0:G.contentsLocation)!=null?H:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.lightIconImage)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],z7.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],z7.prototype,"actionHandlerBehavior",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("isHideEnclosingAction"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],z7.prototype,"isHidden",null);_.N([_.h(),_.A("design:type",Object)],z7.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],z7.prototype,"roundedContainer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],z7.prototype,"buttonUpdate",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.A("design:type",String)],z7.prototype,"nudgeStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.trimStyle"),_.A("design:type",String),_.A("design:paramtypes",[])],z7.prototype,"trimStyle",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.backgroundStyle"),_.A("design:type",String),_.A("design:paramtypes",[])],z7.prototype,"backgroundStyle",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data.contentsLocation"),_.A("design:type",String),_.A("design:paramtypes",[])],z7.prototype,"contentsLocation",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.disableDropShadow"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],z7.prototype,"noShadow",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.lightIconImage"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],z7.prototype,"noIcon",null);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.A("design:type",Boolean)],z7.prototype,"isHorizontalButtons",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],z7.prototype,"isDarkMode",void 0);_.N([_.O({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],z7);
_.m(z7,"ytd-feed-nudge-renderer",function(){if(M3a!==void 0)return M3a;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return M3a=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var wqa;var hDT;var K8=function(){var G=_.C.apply(this,arguments)||this;G.collapsed=!1;G.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return G};
_.T(K8,_.C);K8.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"}}}};
K8.prototype.handleRatingSelect=function(){var G;((G=this.data)==null?0:G.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
K8.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],K8.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],K8.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.NH),_.A("design:type",Object)],K8.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],K8.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],K8.prototype,"collapsed",void 0);_.N([_.O({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],K8);
_.m(K8,"ytd-slimline-survey-renderer",function(){if(hDT!==void 0)return hDT;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return hDT=G},{mode:1});var CDG;var MT=function(){return _.C.apply(this,arguments)||this};
_.T(MT,_.C);MT.prototype.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
MT.prototype.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G&&(G==null?0:G.secondaryTitleColor)&&this.maybeGetBackgroundColor(G)?(this.hostElement.style.backgroundColor=_.X9(this.maybeGetBackgroundColor(G)),this.hostElement.style.color=_.X9(G.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
MT.prototype.colorPaletteChanged=MT.prototype.colorPaletteChanged;_.N([_.v(_.Up),_.A("design:type",Object)],MT.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],MT.prototype,"data",void 0);_.N([_.h({selector:function(G){return G.ui.darkModeIsEnabled}}),
_.A("design:type",Boolean)],MT.prototype,"isDarkMode",void 0);_.N([_.h(),_.A("design:type",Object)],MT.prototype,"lightColorPalette",void 0);_.N([_.h(),_.A("design:type",Object)],MT.prototype,"darkColorPalette",void 0);_.N([_.gx("darkColorPalette","lightColorPalette","data","isDarkMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MT.prototype,"colorPaletteChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],MT);
_.m(MT,"ytd-endorsement-header-renderer",function(){if(CDG!==void 0)return CDG;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return CDG=G},{mode:1});_.RX(_.U5,"yt-decorated-avatar-view-model",{props:{data:_.b3,className:_.b3}});_.jB=new _.Gv("VIEW_TRANSITION_MANAGER_TOKEN");var P6=function(){var G=_.C.apply(this,arguments)||this;G.fullHeight=_.V("web_rich_grid_media_full_height");G.showChannelAvatar=!0;G.hasPlaylistThumbnail=!1;G.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};G.registerThumbnailForPageTransition=function(){_.V("web_thumbnail_to_watch_transition")&&_.iy7(_.tp().resolve(_.jB),G.thumbnail)};
return G};
_.T(P6,_.C);_.g=P6.prototype;
_.g.configureRendererStamper=function(){return{lazyLoadMenu:zi,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"}}}};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.shouldLazyLoadMenu=function(){var G=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.V("kevlar_modern_downloads_page")||!G};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16239_inlinePreviewHoverListener=cV({mediaRenderer:this,lockupElement:this.JSC$16239_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.g.getVideoPreviewOpts=function(){var G={},H;if((H=this.data)==null?0:H.multipleInlinePlaybackEndpoint)G=eY7;this.isRadio&&(G=d9w);return G};
_.g.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16239_inlinePreviewHoverListener)==null||iL(G)};
_.g.getOwner=function(){var G,H,Z;return((G=this.data)==null?void 0:(H=G.channelThumbnailSupportedRenderers)==null?void 0:H.channelThumbnailWithLinkRenderer)||_.X((Z=this.data)==null?void 0:Z.showProviderChannelThumbnail,lyw)};
_.g.updateLockupSize=function(){var G;((G=this.getOwner())==null?0:G.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.g.getFeedbackEndpoint=function(G){if(_.X(G,_.Vb))return G;var H,Z;G=(Z=(H=_.X(G,_.Ft))==null?void 0:H.commands)!=null?Z:[];H=_.I(G);for(Z=H.next();!Z.done;Z=H.next())if(Z=this.getFeedbackEndpoint(Z.value))return Z;return null};
_.g.computeNavigationEndpoint=function(G){return CZb(G==null?void 0:G.navigationEndpoint)};
_.g.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var G=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(G)!==JSON.stringify(this.data)&&this.set("data",G)}};
_.g.onDataChanged=function(){var G=this,H=this.getOwner();if(H){this.set("data.owner",H);var Z,Q,p,l,q,u=((Z=this.data)==null?void 0:(Q=Z.shortBylineText)==null?void 0:(p=Q.runs)==null?void 0:(l=p[0])==null?void 0:l.text)||((q=H.name)==null?void 0:q.simpleText);this.set("data.owner.title",u)}var B,t,D,d,e,n;H=((B=this.data)==null?void 0:(t=B.thumbnailRenderer)==null?void 0:t.playlistVideoThumbnailRenderer)||((D=this.data)==null?void 0:(d=D.thumbnailRenderer)==null?void 0:d.playlistCustomThumbnailRenderer)||
((e=this.data)==null?void 0:(n=e.thumbnailRenderer)==null?void 0:n.showCustomThumbnailRenderer);var c;((c=this.data)==null?0:c.thumbnail)||!H||this.set("data.thumbnail",H.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){G.updateLockupSize()});
var W;if(B=((W=this.data)==null?void 0:W.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(B);var M;((M=this.dismissActionToReplayEntity)==null?0:M.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.g.onHiddenChanged=function(){this.updateLockupSize()};
_.g.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.AZ(this.hostElement,"yt-terminate-video-preview-action");else{var G;(G=this.videoTitleLink)==null||G.focus()}};
_.g.metadataColorChanged=function(){var G;if(this.metadataColor&&((G=this.videoTitle)==null?0:G.style))this.videoTitle.style.color=_.X9(this.metadataColor);else{var H,Z;!this.metadataColor&&((H=this.videoTitle)==null?0:(Z=H.style)==null?0:Z.color)&&(this.videoTitle.style.color="")}};
_.g.onDetailsClick=function(G){var H=this.computedNavigationEndpoint;H&&(_.OO(_.OD(G),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.N5(this.hostElement,"yt-navigate",{endpoint:H}))};
_.g.onRendererTap=function(){this.registerThumbnailForPageTransition();var G,H,Z=((G=this.data)==null?void 0:G.serviceEndpoint)||this.getFeedbackEndpoint((H=this.data)==null?void 0:H.navigationEndpoint);Z&&_.X(Z,_.Vb)&&this.ytComponentBehavior.resolveCommand(Z)};
_.g.onMouseDown=function(G){var H=G.target,Z=this.computedNavigationEndpoint,Q;G=H.href||((Q=_.X(Z==null?void 0:Z.commandMetadata,_.HA))==null?void 0:Q.url);Q=H.data||Z;G&&Q&&zCj(G,Q)};
_.g.computeVideoTitleText=function(){var G;if((G=this.data)==null?0:G.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.g.computeHasPlaylistThumbnail=function(G){var H,Z,Q,p,l;if((((H=G.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((Z=G.thumbnailRenderer)==null?0:Z.playlistCustomThumbnailRenderer)||((Q=G.thumbnailRenderer)==null?0:Q.showCustomThumbnailRenderer)||((p=G.thumbnailRenderer)==null?0:p.playlistVideoThumbnailRenderer)||((l=G.thumbnailRenderer)==null?0:l.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(H=0;H<G.thumbnailOverlays.length;H++)if(Z=void 0,(Z=G.thumbnailOverlays[H])==
null?0:Z.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.u4.Object.defineProperties(P6.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.V("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var G;return(G=this.data)==null?void 0:G.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var G;return(G=this.data)==null?void 0:G.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16239_inlinePreviewHoverListener)==null?0:x3(G))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.lFf(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:G.videoId)||((H=this.data)==null?void 0:H.playlistId)||""}}});
P6.prototype.onMouseDown=P6.prototype.onMouseDown;P6.prototype.metadataColorChanged=P6.prototype.metadataColorChanged;P6.prototype.onIsDismissedChanged=P6.prototype.onIsDismissedChanged;P6.prototype.onHiddenChanged=P6.prototype.onHiddenChanged;P6.prototype.onDataChanged=P6.prototype.onDataChanged;P6.prototype.handleReloadDownloadsInfo=P6.prototype.handleReloadDownloadsInfo;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],P6.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],P6.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],P6.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],P6.prototype,"ytdReduxBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],P6.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],P6.prototype,"entitySelectorType",void 0);_.N([_.h(),_.A("design:type",Boolean)],P6.prototype,"noEndpoints",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],P6.prototype,"isRadio",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],P6.prototype,"miniMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],P6.prototype,"fullHeight",void 0);
_.N([_.h(),_.A("design:type",Boolean)],P6.prototype,"showDarkVideoMetadata",void 0);_.N([_.h(),_.A("design:type",Boolean)],P6.prototype,"showLightVideoMetadata",void 0);_.N([_.h(),_.A("design:type",Number)],P6.prototype,"metadataColor",void 0);_.N([_.h(),_.A("design:type",Object)],P6.prototype,"showChannelAvatar",void 0);_.N([_.h(),_.A("design:type",Boolean)],P6.prototype,"hidden",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],P6.prototype,"showYtInteraction",void 0);
_.N([_.h(),_.A("design:type",String)],P6.prototype,"dismissedContentId",void 0);_.N([_.h({selectorArgs:["dismissedContentId"],selector:Smj}),_.A("design:type",Object)],P6.prototype,"dismissActionToReplayEntity",void 0);
_.N([_.h({selectorArgs:["entitySelectorType","mediaId"],selector:function(G,H,Z){if(_.V("kevlar_modern_downloads_page")&&Z&&H&&H!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var Q=ogR(G,Z);if(Q){H=_.Wv(G,Z);var p=KN(G,Z),l=GZe(G,Z);G=jS(G,Z);var q=Snf(Q,H,p,l);p=q.shortViewCountText;var u=q.publishedTimeText;q=q.badges;var B=G>0;l=IKR(Q,H,l,G);Q=_.uX(H)||H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!SS(Q.policyEntity)?
void 0:wNR(Z,G,Q.videoEntity.lengthSeconds);H==="TRANSFER_STATE_PAUSED_BY_USER"&&Z&&!_.V("dl_resume_click_killswitch")&&(Q={offlineVideoEndpoint:{videoId:Z,action:"ACTION_RESUME"}});Z={shortViewCountText:p,publishedTimeText:u,badges:q,isWatched:B,navigationEndpoint:Q,thumbnailOverlays:l}}else Z=void 0;return Z;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(H=mZo(G,Z))if(Q=_.z9(G,Z),l=_.UZu(G,Z),Q!=="TRANSFER_STATE_UNKNOWN"){Z=qnM(H,Q,l,Z,_.vv(G));break a}Z=void 0}return Z;default:_.Rp(new _.C$("Error: entitySelectorType defined but not matched in selector.",
G,H))}}}),
_.A("design:type",Object)],P6.prototype,"entityDrivenState",void 0);_.N([_.h({computed:"computeVideoTitleText(data)"}),_.A("design:type",Object)],P6.prototype,"videoTitleText",void 0);_.N([_.h({computed:"computeHasPlaylistThumbnail(data)"}),_.A("design:type",Object)],P6.prototype,"hasPlaylistThumbnail",void 0);_.N([_.h({computed:"computeNavigationEndpoint(data)"}),_.A("design:type",Object)],P6.prototype,"computedNavigationEndpoint",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],P6.prototype,"typographyBump",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("typographyBump"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],P6.prototype,"typographyBumpV2",null);_.N([_.q6("#video-title"),_.A("design:type",HTMLElement)],P6.prototype,"videoTitle",void 0);_.N([_.q6("#video-title-link"),_.A("design:type",HTMLElement)],P6.prototype,"videoTitleLink",void 0);
_.N([_.q6("#thumbnail"),_.A("design:type",HTMLElement)],P6.prototype,"thumbnail",void 0);_.N([_.q6("#dismissible"),_.A("design:type",HTMLElement)],P6.prototype,"JSC$16239_dismissibleMedia",void 0);_.N([_.z("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],P6.prototype,"lazyLoadMenu",null);_.N([_.z("data.menu"),_.A("design:type",Object),_.A("design:paramtypes",[])],P6.prototype,"immediateLoadMenu",null);
_.N([_.Jv("entityDrivenState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P6.prototype,"handleReloadDownloadsInfo",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P6.prototype,"onDataChanged",null);_.N([_.Jv("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P6.prototype,"onHiddenChanged",null);
_.N([_.gx("isDismissed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P6.prototype,"onIsDismissedChanged",null);_.N([_.gx("metadataColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P6.prototype,"metadataColorChanged",null);_.N([_.lq("mousedown"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],P6.prototype,"onMouseDown",null);
_.N([_.z("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],P6.prototype,"isHovered",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],P6.prototype,"useAvatar",null);_.N([_.z("data","entitySelectorType"),_.A("design:type",String),_.A("design:paramtypes",[])],P6.prototype,"mediaId",null);_.N([_.O({is:"ytd-rich-grid-media",disableElementRegistration:!0})],P6);
var Oyd=_.xQ()(P6,"ytd-rich-grid-media",function(){if(wqa!==void 0)return wqa;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wqa=G},{mode:_.LH("kevlar_poly_si_batch_j072")?1:2});var aC4;var rh=function(){var G=_.C.apply(this,arguments)||this;G.removeMaxWidth=!0;G.insetMetadata=!1;return G};
_.T(rh,_.C);_.g=rh.prototype;_.g.configureRendererStamper=function(){return{innerMenu:zi,outerMenu:Object.assign({},zi,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.onDataChanged=function(){var G,H=((G=this.data)==null?void 0:G.trackingParams)||"";H&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(H));var Z;((Z=this.dismissActionToReplayEntity)==null?0:Z.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16244_inlinePreviewHoverListener=cV({mediaRenderer:this,lockupElement:this.JSC$16244_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:nWw})};
_.g.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16244_inlinePreviewHoverListener)==null||iL(G)};
_.g.onRendererTap=function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.serviceEndpoints)==null?void 0:H[0];_.X(Z,_.Vb)&&this.componentBehavior.resolveCommand(Z)};
_.g.onDetailsClick=function(G){var H,Z=(H=this.data)==null?void 0:H.navigationEndpoint;Z&&(_.OO(_.OD(G),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(Z))};
_.g.onShow=function(){var G=this.data;G.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(G.onFirstVisibleCommand),delete G.onFirstVisibleCommand)};
_.u4.Object.defineProperties(rh.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var G;return this.insetMetadata?void 0:(G=this.data)==null?void 0:G.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var G;return this.insetMetadata?(G=this.data)==null?void 0:G.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var G=this.data;if(G!=null&&G.badge&&(G=_.X(G.badge,FHR))){var H,Z,Q;return[{metadataBadgeRenderer:{label:((H=G.label)==null?void 0:(Z=H.runs)==null?void 0:Z[0].text)||((Q=G.label)==null?void 0:Q.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var G=this.data;return Object.assign({},G.headline,{accessibility:G.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return this.isSlimShort?(G=this.computedTitle)==null?void 0:(H=G.accessibility)==null?void 0:(Z=H.accessibilityData)==null?void 0:Z.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.V("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16244_inlinePreviewHoverListener)==null?0:x3(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
rh.prototype.onDataChanged=rh.prototype.onDataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],rh.prototype,"componentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rh.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],rh.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],rh.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.NH),_.A("design:type",Object)],rh.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],rh.prototype,"ytdReduxBehavior",void 0);_.N([_.q6("ytd-thumbnail"),_.A("design:type",HTMLElement)],rh.prototype,"thumbnail",void 0);_.N([_.q6("#dismissible"),_.A("design:type",HTMLElement)],rh.prototype,"JSC$16244_dismissibleMedia",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],rh.prototype,"removeMaxWidth",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],rh.prototype,"insetMetadata",void 0);_.N([_.h(),_.A("design:type",String)],rh.prototype,"dismissedContentId",void 0);_.N([_.h({selectorArgs:["dismissedContentId"],selector:Smj}),_.A("design:type",Object)],rh.prototype,"dismissActionToReplayEntity",void 0);_.N([_.z("insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],rh.prototype,"thumbnailObjectFit",null);
_.N([_.z("data","insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],rh.prototype,"innerMenu",null);_.N([_.z("data","insetMetadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],rh.prototype,"outerMenu",null);_.N([_.h(),_.A("design:type",Object)],rh.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],rh.prototype,"miniMode",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rh.prototype,"onDataChanged",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],rh.prototype,"shortsBadges",null);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rh.prototype,"isShort",null);
_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rh.prototype,"isSlimShort",null);_.N([_.z("data","isShort"),_.A("design:type",Object),_.A("design:paramtypes",[])],rh.prototype,"computedTitle",null);_.N([_.z("isSlimShort","computedTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],rh.prototype,"computedAccessibilityLabel",null);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rh.prototype,"shouldForce2By3",null);_.N([_.z("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],rh.prototype,"isHovered",null);_.N([_.O({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],rh);
_.m(rh,"ytd-rich-grid-slim-media",function(){if(aC4!==void 0)return aC4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return aC4=G},{mode:_.LH("kevlar_poly_si_batch_j063")?1:2});var yu_;var o8a;var wh=function(){return _.C.apply(this,arguments)||this};
_.T(wh,_.C);wh.prototype.computeIcon=function(G){return G&&G.iconType?"yt-sys-icons:"+G.iconType.toLowerCase():""};
wh.prototype.onMouseEnter=function(){this.isHovered=!0};
wh.prototype.onMouseLeave=function(){this.isHovered=!1};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],wh.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wh.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],wh.prototype,"isHovered",void 0);
_.N([_.O({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],wh);
_.m(wh,"ytd-expand-on-hover-card-renderer",function(){if(o8a!==void 0)return o8a;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return o8a=G},{mode:1});var mbN,Ub2=function(){if(mbN!==void 0)return mbN;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return mbN=G};_.eQ("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var hJ=function(){var G=_.C.apply(this,arguments)||this;G.compactStyle=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(hJ,_.C);_.g=hJ.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.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"}}}};
_.g.computeHideDot=function(G){return!(G&&G.subscriberCountText&&G.videoCountText)||this.compactStyle};
_.g.hasDualButtons=function(G){return G&&G.purchaseButton&&G.subscribeButton};
_.g.backgroundColorChanged=function(){if(this.data!==void 0){var G=this.data.backgroundColor;this.isDarkTheme&&(G=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=G!=null?_.X9(G):"transparent"}};
_.g.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.g.onTap=function(G){var H,Z,Q=((H=this.data)==null?void 0:H.navigationEndpoint)||((Z=this.data)==null?void 0:Z.serviceEndpoint);_.X(Q,_.wu)&&(Q&&_.tp().resolve(_.Dk).resolveCommand(Q,{form:{element:this.hostElement}}),G.preventDefault())};
_.g.computeChannelEndpoint=function(G){return _.X(G,_.wu)?null:G};
_.g.computeHrefEndpoint=function(G){return _.X(G,_.wu)?null:this.componentBehavior.computeHref_(G)};
_.g.computeChannelRendererStyle=function(G){return G};
_.g.computeIconSize=function(G){return G?108:136};
_.u4.Object.defineProperties(hJ,{template:{configurable:!0,enumerable:!0,get:function(){return Ub2()}}});
hJ.prototype.backgroundColorChanged=hJ.prototype.backgroundColorChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],hJ.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],hJ.prototype,"componentBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],hJ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],hJ.prototype,"isDarkTheme",void 0);_.N([_.h({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.A("design:type",String)],hJ.prototype,"channelRendererStyle",void 0);_.N([_.h({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],hJ.prototype,"dualButtons",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],hJ.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],hJ.prototype,"biggerThumbStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],hJ.prototype,"compactStyle",void 0);_.N([_.gx("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hJ.prototype,"backgroundColorChanged",null);_.N([_.O({is:"ytd-channel-renderer",disableElementRegistration:!0})],hJ);_.m(hJ,"ytd-channel-renderer",function(){return Ub2()},{mode:1});var RD4;var N1x;_.eQ("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var C8=function(){var G=_.C.apply(this,arguments)||this;G.displayItemCount=2;G.hasPlaylistThumbnail=!1;G.stackThumbnailSize="large";return G};
_.T(C8,_.C);_.g=C8.prototype;_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.g.computeFirstVideos=function(G,H){return G&&H?G.slice(0,H):[]};
_.g.computeThumbnailWidth=function(G,H){return G?H==="BIG"?500:H==="MASSIVE"?600:H==="MEDIUM"?450:420:360};
_.g.computeThumbnailHeight=function(G,H){return G?H==="BIG"?280:H==="MASSIVE"?337:234:202};
_.g.clearInlinePreviewHoverListeners=function(){var G;(G=this.JSC$16257_inlinePreviewHoverListener)==null||iL(G)};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16257_inlinePreviewHoverListener=cV({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:eY7,thumbnailElement:this.thumbnail})};
_.g.computeHasPlaylistThumbnail=function(G){var H,Z;if((((H=G.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((Z=G.thumbnailRenderer)==null?0:Z.playlistCustomThumbnailRenderer))&&G.thumbnailOverlays)for(H=0;H<G.thumbnailOverlays.length;H++)if(Z=void 0,(Z=G.thumbnailOverlays[H])==null?0:Z.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.u4.Object.defineProperties(C8.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.JSC$16257_inlinePreviewHoverListener)==null?0:x3(G))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
C8.prototype.dataChanged=C8.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],C8.prototype,"ytdLockupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],C8.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],C8.prototype,"displayItemCount",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],C8.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],C8.prototype,"biggerThumbsStyle",void 0);_.N([_.h({computed:"computeHasPlaylistThumbnail(data)"}),_.A("design:type",Object)],C8.prototype,"hasPlaylistThumbnail",void 0);_.N([_.h(),_.A("design:type",String)],C8.prototype,"stackThumbnailSize",void 0);_.N([_.q6("ytd-thumbnail"),_.A("design:type",HTMLElement)],C8.prototype,"thumbnail",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C8.prototype,"dataChanged",null);
_.N([_.z("lockupIsHovered"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],C8.prototype,"isHovered",null);_.N([_.O({is:"ytd-radio-renderer",disableElementRegistration:!0})],C8);
_.m(C8,"ytd-radio-renderer",function(){if(N1x!==void 0)return N1x;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return N1x=G},{mode:_.LH("kevlar_poly_si_batch_j058")?1:2});var Au2;_.eQ("itemSectionRenderer","showRenderer","ytd-show-renderer");var ir=function(){return _.C.apply(this,arguments)||this};
_.T(ir,_.C);ir.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ir.prototype.computeThumbnailWidth=function(G){return G?360:246};
ir.prototype.computeUseProminentThumbs=function(G){return G};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ir.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],ir.prototype,"isSearch",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.A("design:type",Boolean)],ir.prototype,"useProminentThumbs",void 0);_.N([_.O({is:"ytd-show-renderer",disableElementRegistration:!0})],ir);
_.m(ir,"ytd-show-renderer",function(){if(Au2!==void 0)return Au2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Au2=G},{mode:1});_.eQ("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var OU=function(){var G=_.C.apply(this,arguments)||this;G.isRichGrid=!1;return G};
_.T(OU,_.C);OU.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"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],OU.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],OU.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],OU.prototype,"isRichGrid",void 0);_.N([_.O({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],OU);
_.m(OU,"ytd-feed-entry-renderer",function(){if(RD4!==void 0)return RD4;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return RD4=G},{mode:1});var xb4;var ab=function(){return _.C.apply(this,arguments)||this};
_.T(ab,_.C);ab.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.N([_.v(_.Up),_.A("design:type",Object)],ab.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],ab.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ab.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.cv,value:3}),_.A("design:type",Number)],ab.prototype,"itemsPerRow",void 0);
_.N([_.O({is:"ytd-link-card-renderer",disableElementRegistration:!0})],ab);
_.m(ab,"ytd-link-card-renderer",function(){if(xb4!==void 0)return xb4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xb4=G},{mode:1});var LPd;var yE=function(){return _.C.apply(this,arguments)||this};
_.T(yE,_.C);_.g=yE.prototype;_.g.configureRendererStamper=function(){return{"data.menu":zi,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.onRendererTap=function(G){if(!this.ytdDismissibleItemBehavior.isDismissed){var H,Z=(H=this.data)==null?void 0:H.navigationEndpoint;Z&&!_.OO(_.OD(G),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(Z)?_.OO(_.OD(G),this.hostElement,["A"])||_.N5(this.hostElement,"yt-navigate",{endpoint:Z}):this.ytComponentBehavior.resolveCommand(Z,{}))}};
_.g.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.g.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
_.g.isNavigationCommand=function(G){return G?_.X(G,_.gT)||_.X(G,_.hZ)||_.X(G,_.Hx)?!0:!1:!1};
yE.prototype.onRendererTap=yE.prototype.onRendererTap;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],yE.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],yE.prototype,"ytComponentBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],yE.prototype,"data",void 0);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],yE.prototype,"onRendererTap",null);_.N([_.O({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],yE);
_.m(yE,"ytd-lumiere-promo-item-image-renderer",function(){if(LPd!==void 0)return LPd;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LPd=G},{mode:1});var E8x;var ob=function(){return _.C.apply(this,arguments)||this};
_.T(ob,_.C);ob.prototype.computeLandscapeThumbnail=function(){var G;return((G=this.data)==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],ob.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ob.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],ob.prototype,"miniMode",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.cv}),_.A("design:type",Number)],ob.prototype,"itemsPerRow",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.A("design:type",Boolean)],ob.prototype,"landscapeThumbnail",void 0);_.N([_.O({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],ob);
_.m(ob,"ytd-lumiere-shelf-details-renderer",function(){if(E8x!==void 0)return E8x;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return E8x=G},{mode:_.LH("kevlar_poly_si_batch_j076")?1:2});var YXN;var m4=function(){return _.C.apply(this,arguments)||this};
_.T(m4,_.C);m4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],m4.prototype,"data",void 0);_.N([_.O({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],m4);
_.m(m4,"ytd-primetime-promo-details-renderer",function(){if(YXN!==void 0)return YXN;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return YXN=G},{mode:1});var FPd;var UU=function(){return _.C.apply(this,arguments)||this};
_.T(UU,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],UU.prototype,"data",void 0);_.N([_.O({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],UU);
_.m(UU,"ytd-panel-show-style-metadata-renderer",function(){if(FPd!==void 0)return FPd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return FPd=G},{mode:1});var byd;var Rb=function(){return _.C.apply(this,arguments)||this};
_.T(Rb,_.C);_.g=Rb.prototype;_.g.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.g.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.g.computeThumbnail=function(G){if(G)return G.smallFormFactorBackgroundThumbnail||G.largeFormFactorBackgroundThumbnail};
_.g.maybeComputeHref=function(G){return this.ytComponentBehavior.computeHref_(G,!0)};
_.g.isNavigationCommand=function(G){return G?_.X(G,_.gT)||_.X(G,_.hZ)||_.X(G,_.Hx)?!0:!1:!1};
_.g.getNavigationCommand=function(G){return this.isNavigationCommand(G)?G:null};
Rb.prototype.onPanelTap=Rb.prototype.onPanelTap;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Rb.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Rb.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],Rb.prototype,"roundedContainer",void 0);_.N([_.h({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.A("design:type",Boolean)],Rb.prototype,"modernButtons",void 0);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rb.prototype,"onPanelTap",null);_.N([_.O({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Rb);
_.m(Rb,"ytd-primetime-promo-panel-renderer",function(){if(byd!==void 0)return byd;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return byd=G},{mode:1});_.RX(_.y(function(G){G=_.oK(G,{data:{},useFullWidth:!1});var H=G.data,Z=G.useFullWidth;G={};return _.J("teaser-card-view-model",{class:_.bb("ytTeaserCardViewModelHost",(G.ytTeaserCardViewModelUseFullWidth=function(){return Z()},G))},_.J(_.k,{cond:function(){return H().onTap},
then:function(Q){return _.J(_.S8,{className:"ytTeaserCardViewModelLink",command:Q},_.J("div",{class:"ytTeaserCardViewModelImageContainer"},_.J(_.k,{cond:function(){return H().image},
then:function(p){return _.J(_.ib,{data:p,className:"ytTeaserCardViewModelImage",alt:""})}})),_.J("p",{class:"ytTeaserCardViewModelCaption"},function(){return H().caption}))}}))},"Vc"),"teaser-card-view-model",{props:{data:_.b3,
useFullWidth:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=function(){var Q;return _.zk((Q=H())==null?void 0:Q.iconThemedImage)};
return _.J("yt-edu-card-view-model",null,_.J(_.eo,{contentId:function(){return H().nudgeId}},function(){return _.J("div",{class:_.bb("ytEduCardViewModelHost",function(){return H().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.J("div",{class:"ytEduCardViewModelTopCornerButton"},_.J(_.SP,{data:function(){return H().dismissButton}},{buttonViewModel:_.kg})),_.J("div",{class:"ytEduCardViewModelContentWrapper"},_.J("div",{class:"ytEduCardViewModelHeaderImage"},_.J(_.k,
{cond:Z,
then:function(Q){return _.J(_.ib,{data:Q,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.J("div",{class:"ytEduCardViewModelTextContainer"},_.J("div",{class:"ytEduCardViewModelTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",{class:"ytEduCardViewModelSubtitle"},_.J(_.Fe,{text:function(){return H().subtitle}}))),_.J("div",{class:"ytEduCardViewModelContent"},_.J(_.SP,{data:function(){return H().form}},{nudgeFormViewModel:ru7}))),_.J("div",{class:_.bb("ytEduCardViewModelButtonWrapper",
function(){return H().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.J(_.SP,{data:function(){return H().primaryButton}},{buttonViewModel:function(Q){return _.J("div",{class:"ytEduCardViewModelPrimaryButton"},_.J(_.kg,{data:Q.data}))}}),_.J(_.SP,{data:function(){return H().secondaryButton}},{buttonViewModel:function(Q){return _.J("div",{class:"ytEduCardViewModelSecondaryButton"},_.J(_.kg,{data:Q.data}))}})))}))},"Wc"),"yt-edu-card-view-model",{props:{data:_.b3}});var Gdd=new _.Gv("RICH_GRID_VIDEO_RENDERER_TOKEN");_.RX(_.y(function(G){var H=G.data;var Z=G.showYtInteractionInContent;var Q=function(){return!!H().selectableFeedback};
G=_.I(_.Ty(!1,void 0,"qxtgaf"));var p=G.next().value,l=G.next().value;_.mR(function(){var e=_.X(H().primaryButton,_.ZD);(e==null?0:e.isToggled)&&l(e.isToggled)});
G=_.Hh(function(e){if(!Q())return!1;if(p()){var n;var c=(n=H().selectableFeedback)==null?void 0:n.onDeselect}else{var W;c=(W=H().selectableFeedback)==null?void 0:W.onSelect}c&&_.zt(c,{form:{element:e.target}});l(!p());if(e=_.X(H().primaryButton,_.ZD))e.isToggled=p();return!1});
var q=function(){if(!Q()){var e,n=(e=H().loggingDirectives)==null?void 0:e.trackingParams;n&&_.ze(_.tp().resolve(_.rv),n)}},u=_.ULR(),B=function(){var e;
return Q()?(e=H().selectableFeedback)==null?void 0:e.a11yLabel:void 0},t=function(){return Q()?{toggled:p()}:{}},D=_.tp().resolve(_.Jp(Gdd)),d={};
return _.J("yt-feedback-item-renderer",{class:_.bb("ytFeedbackItemRendererHost",(d.ytFeedbackItemRendererSelectableFeedback=Q,d)),"on:click":G,"on:keydown":u,title:B,"aria-label":B,"aria-pressed":function(){return Q()?p():void 0},
tabindex:function(){return Q()?0:void 0},
role:function(){return Q()?"button":void 0}},_.J("div",{class:"ytFeedbackItemRendererContentContainer"},_.J(_.SP,{data:function(){return H().content}},{videoRenderer:function(e){return _.J(D,{data:e.data,
showYtInteraction:Z})},
lockupViewModel:function(e){return _.J(_.Xf,{data:e.data,containerType:2})}})),_.J("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.J(_.SP,{data:function(){return H().primaryButton}},{toggleButtonViewModel:function(e){return _.J(_.hf,{data:e.data,
buttonShapeOverrides:t,disableExplicitClickLogging:!0,onToggle:q})}})))},"Xc"),"yt-feedback-item-renderer",{props:{data:_.b3,
showYtInteractionInContent:_.b3}});var NT=function(){var G=_.C.apply(this,arguments)||this;G.isShortsGrid=!1;G.isCompactGrid=!1;G.isShortsPanelGrid=!1;G.renderedFromRichGrid=!1;G.isInFirstColumn=!1;G.noGutterMargins=!1;G.noBottomMargin=!1;G.halfBottomMargin=!1;G.isInlineGroupItem=!1;G.insetMetadata=!1;G.noBottomMarginInAds=!0;G.force16By9ThumbnailAspectRatio=!1;G.useCompactList=!1;G.containerType=2;G.thumbnailTargetWidth=9999;G.isResponsiveGrid=!1;G.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};G.hoverListener=
G.hover.bind(G);G.leaveListener=G.leave.bind(G);G.highlighted=!1;G.JSC$16293_unsubscribeFromInlinePreviewIsActive=function(){};
return G};
_.T(NT,_.C);_.g=NT.prototype;_.g.computeContainerType=function(){return this.useCompactList?3:2};
_.g.itemWidthChanged=function(){var G;this.thumbnailTargetWidth=(G=this.itemWidth)!=null?G:9999};
_.g.updateIsInFirstColumn=function(){var G;this.isInFirstColumn=((G=this.data)==null?void 0:G.colIndex)===0};
_.g.observerContainerType=function(){if(this.lockup){var G=this.lockup;G.containerType=this.containerType;G.sizing=this.sizing;G.typographyBump=this.typographyBump;G.itemWidth=this.itemWidth}this.richGridMedia&&_.V("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.V("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.g.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]]"}}}}}};
_.g.leave=function(G){G=G.relatedTarget;var H=document.querySelector("ytd-video-preview");G&&H&&_.bS(H).contains(G)||this.removeAndCleanupHighlight()};
_.g.hover=function(){var G;!this.highlighted&&(G=this.data)!=null&&G.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(G=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:G,boxShadow:"0 0 0 10px "+G})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.g.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};
_.g.registerHoverHighlightListeners=function(){var G=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16293_unsubscribeFromInlinePreviewIsActive=_.wU(_.mm(),_.wY3,function(H){G.highlighted&&!H&&G.removeAndCleanupHighlight()})};
_.g.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16293_unsubscribeFromInlinePreviewIsActive()};
_.g.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.g.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.g.getBackgroundColor=function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.onFocusEffect)==null?void 0:H.onFocusColor;if(Z){if(document.documentElement.hasAttribute("dark")&&(Z==null?0:Z.darkTheme))return f3(Z==null?void 0:Z.darkTheme);if(Z==null?0:Z.lightTheme)return f3(Z==null?void 0:Z.lightTheme)}};
_.g.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var G=_.$k(),H,Z,Q;G&&((H=this.data)==null?0:H.trackingParams)&&((Z=this.data)==null?void 0:Z.colIndex)!=null&&((Q=this.data)==null?void 0:Q.rowIndex)!=null&&_.a5(G,_.BT(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.g.isSlimMediaRenderer=function(G){return!!_.X(G==null?void 0:G.content,_.W$4)||!!_.X(G==null?void 0:G.content,vyN)||!!_.X(G==null?void 0:G.content,_.Ls)||!!_.X(G==null?void 0:G.content,LHG)};
_.g.isPostRenderer=function(){var G,H;return!!_.X((G=this.data)==null?void 0:G.content,RA2)||!!_.X((H=this.data)==null?void 0:H.content,NKa)};
_.g.computeIsGameCardShelf=function(){var G;return!!_.X((G=this.data)==null?void 0:G.content,pep)};
_.g.computeIsMiniGameCardShelf=function(){var G,H;return!!_.X((G=this.data)==null?void 0:G.content,nlT)||!!_.X((H=this.data)==null?void 0:H.content,Vjw)};
_.g.computeIsTeaserCard=function(){var G;return!!_.X((G=this.data)==null?void 0:G.content,Vjw)};
_.g.computeIsSelectableFeedbackItem=function(){var G,H;return!((H=_.X((G=this.data)==null?void 0:G.content,Xe4))==null||!H.selectableFeedback)};
_.g.computeContainsLumierePosters=function(){var G,H;return((H=_.X((G=this.data)==null?void 0:G.content,Htp))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.g.computeIsExpandOnHoverCardShelf=function(){var G;return!!_.X((G=this.data)==null?void 0:G.content,GJ7)};
_.g.computeIsLinkCardShelf=function(){var G;return!!_.X((G=this.data)==null?void 0:G.content,S0R)};
_.g.computeIsReelItemStyleAvatarCircle=function(G){var H;return((H=_.X(G==null?void 0:G.content,_.Ls))==null?void 0:H.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.g.computeIsLinkCardFullWidth=function(G,H){var Z;return((Z=_.X(G==null?void 0:G.content,S0R))==null?void 0:Z.useFullWidth)||H<=2};
_.u4.Object.defineProperties(NT.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var G;return _.V("web_hover_effect_refactor")&&_.X((G=this.data)==null?void 0:G.content,_.By_)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.V("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var G;if(_.V("web_hover_effect_refactor")&&_.X((G=this.data)==null?void 0:G.content,_.By_))return!1;var H;return!((H=this.data)==null||!H.onFocusEffect)||_.V("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var G,H;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.V("web_hover_effect_refactor")?(G=this.data)==null?void 0:G.onFocusEffect:void 0,isFirstRow:((H=this.data)==null?void 0:H.rowIndex)===0}}}});
NT.prototype.richGridHoverHighlightChanged=NT.prototype.richGridHoverHighlightChanged;NT.prototype.observerContainerType=NT.prototype.observerContainerType;NT.prototype.updateIsInFirstColumn=NT.prototype.updateIsInFirstColumn;NT.prototype.itemWidthChanged=NT.prototype.itemWidthChanged;_.N([_.v(_.Up),_.A("design:type",Object)],NT.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],NT.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],NT.prototype,"ytdLockupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],NT.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.A("design:type",Boolean)],NT.prototype,"isPost",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.A("design:type",Boolean)],NT.prototype,"containsLumierePosters",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.A("design:type",Boolean)],NT.prototype,"isSlimMedia",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.A("design:type",Boolean)],NT.prototype,"isGameCardShelf",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.A("design:type",Boolean)],NT.prototype,"isMiniGameCardShelf",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.A("design:type",Boolean)],NT.prototype,"isTeaserCard",void 0);_.N([_.h({computed:"computeIsSelectableFeedbackItem(data)"}),_.A("design:type",Boolean)],NT.prototype,"isSelectableFeedbackItem",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"isShortsGrid",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],NT.prototype,"isSlimGrid",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"isCompactGrid",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"isShortsPanelGrid",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.A("design:type",Boolean)],NT.prototype,"isExpandOnHoverCardShelf",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.A("design:type",Boolean)],NT.prototype,"isLinkCardShelf",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.cv,value:3}),_.A("design:type",Number)],NT.prototype,"itemsPerRow",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"renderedFromRichGrid",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"isInFirstColumn",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"noGutterMargins",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"noBottomMargin",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"halfBottomMargin",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"isInlineGroupItem",void 0);_.N([_.h(),_.A("design:type",Object)],NT.prototype,"insetMetadata",void 0);_.N([_.h(),_.A("design:type",Object)],NT.prototype,"noBottomMarginInAds",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],NT.prototype,"isShelfItem",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.A("design:type",Boolean)],NT.prototype,"isReelItemStyleAvatarCircle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.A("design:type",Boolean)],NT.prototype,"isLinkCardFullWidth",void 0);_.N([_.h(),_.A("design:type",Object)],NT.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"useCompactList",void 0);_.N([_.h(),_.A("design:type",String)],NT.prototype,"sizing",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],NT.prototype,"typographyBump",void 0);_.N([_.h(),_.A("design:type",Number)],NT.prototype,"itemWidth",void 0);_.N([_.h(),_.A("design:type",Boolean)],NT.prototype,"isHomeShelf",void 0);_.N([_.h(),_.A("design:type",Boolean)],NT.prototype,"isHomeGrid",void 0);
_.N([_.q6("yt-lockup-view-model"),_.A("design:type",HTMLElement)],NT.prototype,"lockup",void 0);_.N([_.q6("ytd-rich-grid-media"),_.A("design:type",HTMLElement)],NT.prototype,"richGridMedia",void 0);_.N([_.q6("ytd-ad-slot-renderer"),_.A("design:type",HTMLElement)],NT.prototype,"adSlotRenderer",void 0);_.N([_.h({computed:"computeContainerType(useCompactList)"}),_.A("design:type",Object)],NT.prototype,"containerType",void 0);_.N([_.h(),_.A("design:type",Object)],NT.prototype,"thumbnailTargetWidth",void 0);
_.N([_.z("showYtInteractionOnRichItem"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],NT.prototype,"showYtInteractionOnRichGridMedia",null);_.N([_.z("isSelectableFeedbackItem","richGridHoverHighlight"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],NT.prototype,"showYtInteractionOnRichItem",null);_.N([_.z("typographyBump","isHomeGrid"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],NT.prototype,"richTypographyBump",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data","isShortsGrid","isCompactGrid"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],NT.prototype,"richGridHoverHighlight",null);_.N([_.z("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.A("design:type",Number),_.A("design:paramtypes",[])],NT.prototype,"shortsLockupViewModelAspectRatio",null);_.N([_.z("isInlineGroupItem"),_.A("design:type",Number),_.A("design:paramtypes",[])],NT.prototype,"shortsLockupViewModelScrimStyle",null);
_.N([_.gx("itemWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NT.prototype,"itemWidthChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NT.prototype,"updateIsInFirstColumn",null);_.N([_.gx("containerType","sizing","typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NT.prototype,"observerContainerType",null);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],NT.prototype,"isResponsiveGrid",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],NT.prototype,"lockupExperiments",null);_.N([_.gx("richGridHoverHighlight"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NT.prototype,"richGridHoverHighlightChanged",null);_.N([_.O({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],NT);
_.HxG=_.xQ()(NT,"ytd-rich-item-renderer",function(){if(yu_===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);yu_=G}G=yu_;return G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var p2f={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var eYX=_.aq(_.Zg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var gWW={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},qHU={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},SHX={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var sU2;var AJ=function(){var G=_.C.apply(this,arguments)||this;G.useResponsiveGrid=!1;G.hidden=!1;G.isShowMoreHidden=!1;G.isShowLessHidden=!0;G.hasExpansionButton=!1;G.isInnerShelf=!1;G.allVideosCount=0;G.allPlaylistCount=0;G.haveSmartDownloadsCompleted=!1;G.restrictContentsOverflow=!1;G.firstShownIndex=0;G.horizontalOffset=0;G.atEnd=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
G.nextClick=function(){var H;(H=G.data)!=null&&H.contents&&(G.firstShownIndex+=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
G.previousClick=function(){var H;(H=G.data)!=null&&H.contents&&(G.firstShownIndex-=G.currentElementsPerRow,G.updateHorizontalOffset(),G.updateHorizontalItemVisibility())};
return G};
_.T(AJ,_.C);_.g=AJ.prototype;
_.g.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:_.xI("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.g.attached=function(){this.requestElementsPerRow()};
_.g.refreshGridLayoutNew=function(){var G;if((G=this.data)!=null&&G.contents&&this.containerWidth){var H;((H=this.data.responsiveContainerConfiguration)==null?0:H.responsiveSize)?(G=_.$9f(this.data.responsiveContainerConfiguration,this.containerWidth),G=_.vV(Object.assign({},G,{standardUnitMinWidth:this.standardUnitMinWidth}))):G=_.vV({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=G.typographyBump;if(this.elementsPerRow!==
G.numItems||this.gutter!==G.gutter)this.elementsPerRow=G.numItems,this.gutter=G.gutter,this.itemWidth=G.itemWidth,_.ZI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":G.gutter+"px"})}};
_.g.computeSizing=function(){if(!this.isLumiere){var G=_.iUW(this.data);return G?G:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.g.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.g.computeButton=function(G){var H=_.X(G,_.Yl);G=Object.assign({},_.X(G,_.Yl));return H?(G.text||(G.text={simpleText:G.tooltip}),G.style="STYLE_MONO_OUTLINE",G.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",G):H};
_.g.onRowIndexChange=function(){var G=_.$k(),H,Z;((H=this.data)==null?0:H.trackingParams)&&((Z=this.data)==null?void 0:Z.rowIndex)!=null&&G&&_.a5(G,_.BT(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.g.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var G,H=((G=this.getRichItemRenderers()[0])==null?void 0:G.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*H;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.g.requestElementsPerRow=function(){_.N5(this.hostElement,"yt-request-elements-per-row")};
_.g.onUpdateElementsPerRowAction=function(G,H,Z,Q,p,l){if(this.containerWidth!==l&&(this.containerWidth=l,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&G&&H&&Z&&Q&&p&&(this.elementsPerRow!==G||this.postsPerRow!==H||this.slimItemsPerRow!==Z||this.gameCardsPerRow!==Q||this.miniGameCardsPerRow!==p)&&(this.elementsPerRow=G,this.postsPerRow=H,this.slimItemsPerRow=Z,this.gameCardsPerRow=Q,this.miniGameCardsPerRow=p,this.updateItemVisibility())};
_.g.isExpandedChanged=function(){var G=this.getRichItemRenderers(),H=this.isExpanded;G.forEach(function(Z){Z.halfBottomMargin=H})};
_.g.isCollapsedChanged=function(){var G=this.getRichItemRenderers(),H=this.isCollapsed;G.forEach(function(Z){Z.noBottomMargin=H})};
_.g.getRichItemRenderers=function(){return _.F9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.g.updateItemVisibility=function(){var G=this;if(this.data&&this.data.contents){var H=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(Q,p){var l;((l=G.data)==null?0:l.isExpanded)?(Q.hidden=p>H-1,Q.ytRendererBehavior.markDirty()):Q.hidden=p>G.currentElementsPerRow-1||p>H-1});
var Z=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||Z||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||Z||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.g.setHeightToSingleRow=function(){var G=this.getRichItemRenderers(),H=Number.parseInt(getComputedStyle(G[0]).marginBottom,10)||0;G=G.slice(0,this.currentElementsPerRow).reduce(function(Z,Q){return Math.max(Z,Q.getBoundingClientRect().height+H)},0);
this.contents.style.height=G+"px"};
_.g.focusNextExpandedItem=function(){var G;((G=this.data)==null?0:G.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.g.focusItem=function(G,H){var Z=this.getRichItemRenderers();if(Z[G]&&(G=Z[G].querySelector(".focus-on-expand"))){if(H){var Q;(Q=Z[this.currentElementsPerRow])==null||Q.scrollIntoView({behavior:"smooth",block:"center"})}G.focus({preventScroll:!0})}};
_.g.onDataChange=function(){var G=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var H;if((H=this.data)==null?0:H.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.q2(this,function(){G.updateItemVisibility()});
var Z;if((Z=this.data)==null?0:Z.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.ZI(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),H=0;H<this.data.contents.length;H++)Z=_.X(this.data.contents[H],_.wS)||{},Z.colIndex=H,Z.rowIndex=this.data.rowIndex};
_.g.handleRerenderDownloadsData=function(){_.V("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.g.blockInlinePreview=function(G){var H=this,Z;return _.S(function(Q){(Z=H.inlinePreviewIsEnabled)&&H.ytdReduxBehavior.dispatch(_.F4x(!1));return Q.return(new Promise(function(p){G(function(){Z&&H.ytdReduxBehavior.dispatch(_.F4x(!0));p()})}))})};
_.g.expandShelf=function(){var G=this;if(this.data){var H,Z=(H=_.X(this.data.showMoreButton,_.Yl))==null?void 0:H.trackingParams;Z&&_.ze(_.gr(),Z);this.set("data.isExpanded",!0);this.blockInlinePreview(function(Q){G.setHeightToSingleRow();G.updateItemVisibility();G.contents.style.height=G.contents.scrollHeight+"px";_.Ui.addJob(function(){G.contents.style.height="auto";G.focusNextExpandedItem();Q()},2,200)})}};
_.g.collapseShelf=function(){var G=this;return _.S(function(H){if(H.nextAddress==1){if(!G.data)return H.return();G.set("data.isExpanded",!1);return H.yield(G.blockInlinePreview(function(Z){G.contents.style.height=G.contents.scrollHeight+"px";G.setHeightToSingleRow();_.Ui.addJob(function(){G.updateItemVisibility();G.contents.style.height="auto";Z()},2,200)}),2)}_.N5(G.hostElement,"yt-rich-shelf-renderer-collapse",G.data.trackingParams);
G.focusItem(0,!1);_.K0(H)})};
_.g.updateArrowButtonStatus=function(){this.getRichItemRenderers();var G,H;var Z=((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=Z};
_.g.onChildElementFocus=function(G){this.hasChevronButtons&&(G=G.target.closest("#contents > *"),this.contents.contains(G)&&(G.offsetLeft<this.horizontalOffset?this.previousClick():G.offsetLeft+G.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.g.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.xI("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.g.updateHorizontalOffset=function(){var G=this.getRichItemRenderers(),H,Z;var Q=((H=this.data)==null?void 0:(Z=H.contents)==null?void 0:Z.length)||0;var p;G=((p=G[0])==null?void 0:p.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>Q?this.firstShownIndex=Q-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*G};
_.g.isSlimMediaShelfRenderer=function(){var G,H,Z,Q=(Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],_.wS))==null?void 0:Z.content;return!!(_.X(Q,_.W$4)||_.X(Q,vyN)||_.X(Q,_.Ls)||_.X(Q,LHG))};
_.g.isGameCardShelf=function(){var G,H,Z,Q=(Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],_.wS))==null?void 0:Z.content;return!!_.X(Q,pep)};
_.g.isMiniGameCardShelf=function(){var G,H,Z,Q=(Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],_.wS))==null?void 0:Z.content;return!!_.X(Q,nlT)||!!_.X(Q,Vjw)};
_.g.hasGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.g.hasRoundedGameBoxArtAvatarStyle=function(){var G;return((G=this.data)==null?void 0:G.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.g.isShortsShelf=function(){var G,H,Z,Q=(Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],_.wS))==null?void 0:Z.content;return!!_.X(Q,_.Ls)||!!_.X(Q,LHG)};
_.g.isPostShelfRenderer=function(){var G,H,Z,Q=(Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],_.wS))==null?void 0:Z.content;return!(!_.X(Q,RA2)&&!_.X(Q,NKa))};
_.g.isLumiereShelf=function(){var G,H,Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],_.wS);return!!_.X(Z==null?void 0:Z.content,Htp)};
_.g.isLumiereShelfWithPosters=function(){var G,H,Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],_.wS),Q;return((Q=_.X(Z==null?void 0:Z.content,Htp))==null?void 0:Q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.g.isExpandOnHoverCardShelf=function(){var G,H,Z,Q=(Z=_.X((G=this.data)==null?void 0:(H=G.contents)==null?void 0:H[0],_.wS))==null?void 0:Z.content;return!!_.X(Q,GJ7)};
_.g.computeHasFeaturedBadge=function(){var G,H,Z=_.X((G=this.data)==null?void 0:(H=G.badges)==null?void 0:H[0],_.VLN);return Z?Z.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.g.computeHasPaygatedFeaturedBadge=function(){var G,H,Z=_.X((G=this.data)==null?void 0:(H=G.badges)==null?void 0:H[0],_.VLN);return Z?(Z==null?void 0:Z.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.g.computeHeaderHidden=function(){var G,H,Z,Q,p,l;return!((G=this.data)==null?0:G.icon)&&!((H=this.data)==null?0:H.title)&&!((Z=this.data)==null?0:Z.subtitle)&&!((Q=this.data)==null?0:Q.thumbnail)&&!((p=this.data)==null?0:p.badges)&&!((l=this.data)==null?0:l.menu)};
_.g.showCtaButton=function(){var G;return!((G=this.data)==null||!G.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.g.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.g.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.g.computeForce16By9ThumbnailAspectRatio=function(){var G,H;return((G=this.data)==null?void 0:(H=G.responsiveContainerConfiguration)==null?void 0:H.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.g.onSectionReactiveDismissal=function(G,H,Z){var Q,p;var l=(Q=this.data)==null?void 0:(p=Q.targetingContext)==null?void 0:p.targetGroupId;this&&l&&H.targetGroupId&&l.includes(H.targetGroupId)?(Q=this.rowIndex,G=Q===void 0?!1:!(H.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Q<=G)):G=!1;G&&(this.hidden=Z)};
_.u4.Object.defineProperties(AJ.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var G=this.elementsPerRow;this.isPostShelfRenderer()?G=this.postsPerRow:this.isSlimMediaShelfRenderer()?G=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?G=this.slimItemsPerRow-1:this.isGameCardShelf()?G=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(G=this.miniGameCardsPerRow);return G}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null||!G.previousButton)&&!((H=this.data)==null||!H.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 G;return((G=_.tp().resolve(_.o0).getCurrentPage())==null?void 0:G.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q;return!((G=this.data)==null?0:(H=G.thumbnail)==null?0:(Z=H.accessibility)==null?0:(Q=Z.accessibilityData)==null?0:Q.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
AJ.prototype.onChildElementFocus=AJ.prototype.onChildElementFocus;AJ.prototype.handleRerenderDownloadsData=AJ.prototype.handleRerenderDownloadsData;AJ.prototype.onDataChange=AJ.prototype.onDataChange;AJ.prototype.isCollapsedChanged=AJ.prototype.isCollapsedChanged;AJ.prototype.isExpandedChanged=AJ.prototype.isExpandedChanged;AJ.prototype.onRowIndexChange=AJ.prototype.onRowIndexChange;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],AJ.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],AJ.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],AJ.prototype,"ytdReduxBehavior",void 0);
_.N([_.h({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.A("design:type",Object)],AJ.prototype,"useResponsiveGrid",void 0);_.N([_.h(),_.A("design:type",Object)],AJ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],AJ.prototype,"standardUnitMinWidth",void 0);_.N([_.h({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],AJ.prototype,"elementsPerRow",void 0);_.N([_.h({value:3}),_.A("design:type",Number)],AJ.prototype,"postsPerRow",void 0);
_.N([_.h({value:6}),_.A("design:type",Number)],AJ.prototype,"slimItemsPerRow",void 0);_.N([_.h({value:6}),_.A("design:type",Number)],AJ.prototype,"gameCardsPerRow",void 0);_.N([_.h({value:6}),_.A("design:type",Number)],AJ.prototype,"miniGameCardsPerRow",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"hidden",void 0);_.N([_.h(),_.A("design:type",Object)],AJ.prototype,"isShowMoreHidden",void 0);
_.N([_.h(),_.A("design:type",Object)],AJ.prototype,"isShowLessHidden",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"hasExpansionButton",void 0);_.N([_.z("data.isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AJ.prototype,"isExpanded",null);_.N([_.z("data.isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AJ.prototype,"isCollapsed",null);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"isInnerShelf",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.A("design:type",Boolean)],AJ.prototype,"isShorts",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.A("design:type",Boolean)],AJ.prototype,"isLumiere",void 0);_.N([_.h({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.A("design:type",Boolean)],AJ.prototype,"hasBoxArtThumbnailStyle",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.A("design:type",Boolean)],AJ.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.A("design:type",Boolean)],AJ.prototype,"hasFeaturedBadge",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.A("design:type",Boolean)],AJ.prototype,"hasPaygatedFeaturedBadge",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.A("design:type",Boolean)],AJ.prototype,"isHeaderHidden",void 0);_.N([_.h({selector:_.yfW}),_.A("design:type",Object)],AJ.prototype,"allVideosCount",void 0);_.N([_.h({selector:V12}),_.A("design:type",Object)],AJ.prototype,"allPlaylistCount",void 0);_.N([_.h({selector:YMe}),_.A("design:type",Object)],AJ.prototype,"haveSmartDownloadsCompleted",void 0);
_.N([_.h({selectorArgs:["entitySelectorType"],selector:function(G,H){if(_.V("kevlar_modern_downloads_page")&&H&&H!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var Z=G.entities;switch(H){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":H=_.nN(Z);G=Zx(H);var Q=_.Bv(H);Z=_.$a(Z);Z=_.Nm(BHb(Q,Z,H.length));return{contents:G,subtitle:Z};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return Z=_.nN(Z),{contents:Zx(Z)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return Z=
_.Vn(Z),{contents:Zx(Z)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return Z=_.dZU(Z),{contents:Zx(Z)};default:_.Rp(new _.C$("Error: entitySelectorType defined but not matched in selector.",G,H))}}}}),
_.A("design:type",Object)],AJ.prototype,"entityDrivenRichShelfData",void 0);_.N([_.h({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.A("design:type",Boolean)],AJ.prototype,"hasTopCtaButton",void 0);_.N([_.h({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.A("design:type",Boolean)],AJ.prototype,"hasBottomCtaButton",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.A("design:type",Boolean)],AJ.prototype,"force16By9ThumbnailAspectRatio",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],AJ.prototype,"restrictContentsOverflow",void 0);_.N([_.h({selector:_.h1e}),_.A("design:type",Boolean)],AJ.prototype,"inlinePreviewIsEnabled",void 0);_.N([_.h({computed:"computeSizing(data)"}),_.A("design:type",String)],AJ.prototype,"sizing",void 0);
_.N([_.h(),_.A("design:type",Boolean)],AJ.prototype,"typographyBump",void 0);_.N([_.h(),_.A("design:type",Number)],AJ.prototype,"itemWidth",void 0);_.N([_.h(),_.A("design:type",Object)],AJ.prototype,"firstShownIndex",void 0);_.N([_.h(),_.A("design:type",Object)],AJ.prototype,"horizontalOffset",void 0);_.N([_.h(),_.A("design:type",Object)],AJ.prototype,"atEnd",void 0);_.N([_.q6("#contents"),_.A("design:type",HTMLElement)],AJ.prototype,"contents",void 0);
_.N([_.gx("data.rowIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AJ.prototype,"onRowIndexChange",null);_.N([_.gx("isExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AJ.prototype,"isExpandedChanged",null);_.N([_.gx("isCollapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AJ.prototype,"isCollapsedChanged",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AJ.prototype,"onDataChange",null);_.N([_.gx("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AJ.prototype,"handleRerenderDownloadsData",null);_.N([_.lq("focusin"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],AJ.prototype,"onChildElementFocus",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data","isHomePage"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AJ.prototype,"isTruncated",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AJ.prototype,"showBottomDivider",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],AJ.prototype,"hasChevronButtons",null);
_.N([_.z("firstShownIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],AJ.prototype,"previousButtonOverride",null);_.N([_.z("atEnd"),_.A("design:type",Object),_.A("design:paramtypes",[])],AJ.prototype,"nextButtonOverride",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AJ.prototype,"isHomePage",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AJ.prototype,"thumbnailAriaHidden",null);
_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],AJ.prototype,"entitySelectorType",null);_.N([_.O({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],AJ);
_.Zx4=_.xQ()(AJ,"ytd-rich-shelf-renderer",function(){if(sU2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);sU2=G}G=sU2;return G},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var QUd;_.RX(_.tz,"yt-badge-view-model",{props:{data:_.b3,class:_.b3,workaroundShortsIsThumbnailBadge:_.b3,modern:_.b3,numBadgesInRow:_.b3}});_.RX(f4w,"yt-slimline-survey-view-model",{props:{data:_.b3}});var xc=function(){var G=_.C.apply(this,arguments)||this;G.tileLottieAnimationRef={};G.backgroundLottieAnimationRef={};G.isOnHoverBehaviorForLottieEnabled=!0;G.useBiggerShowcaseImage=_.V("enable_desktop_search_bigger_thumbs");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return G};
_.T(xc,_.C);_.g=xc.prototype;_.g.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.g.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"}}}};
_.g.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var G=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);G!==this.hasTile&&this.set("hasTile",G);G=this.hasLogo(this.data)||!!this.data.badgeText;G!==this.hasMetadata&&this.set("hasMetadata",G);G=this.data.overflowButton?!1:G;G!==this.showLogoImage&&this.set("showLogoImage",G);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.g.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.g.currentColorChanged=function(){this.updateButtonPalette()};
_.g.computeBackgroundStyle=function(G){if(G&&this.data){var H=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var Z=_.At((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);Z&&H.push('background-image: url("'+Z+'");')}var Q;((Q=G.basicColorData)==null?void 0:Q.backgroundColor)!==void 0&&H.push("background-color: "+_.c$(G.basicColorData.backgroundColor)+";");return H.join("")}};
_.g.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G)};
_.g.getCurrentLogo=function(G,H){if(G)return H?G.darkLogoImage:G.lightLogoImage};
_.g.getCurrentStaticTileImage=function(G,H){if(this.hasStaticTile(G))return G.darkTileImage?H?G.darkTileImage:G.tileImage:G.tileImage};
_.g.computeTitleStyle=function(G){if(this.data&&this.data.title&&G&&G.basicColorData&&G.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.X9(G.basicColorData.foregroundTitleColor)+";"};
_.g.computeSubtitleStyle=function(G){if(this.data&&this.data.subtitle&&G&&G.basicColorData&&G.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.X9(G.basicColorData.foregroundBodyColor)+";"};
_.g.computeSupplementalStyle=function(G){if(this.data&&this.data.supplementalText&&G&&G.supplementalTextColor!==void 0)return G=_.X9(G.supplementalTextColor),"color:"+G+";--yt-endpoint-color:"+G+";--yt-endpoint-hover-color:"+G+";--yt-endpoint-visited-color:"+G+";--yt-formatted-string-bold-font-weight:700;"};
_.g.computeDismissIconStyle=function(G){var H,Z;if((G==null?0:(H=G.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(G==null?0:(Z=G.dismissButtonColorData)==null?0:Z.backgroundColor))return"--yt-button-color:"+_.c$(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.c$(G.dismissButtonColorData.backgroundColor)+";"};
_.g.computeOverflowIconStyle=function(G){var H,Z;if((G==null?0:(H=G.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(G==null?0:(Z=G.dismissButtonColorData)==null?0:Z.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.c$(G.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.c$(G.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.c$(G.dismissButtonColorData.foregroundTitleColor)+";"};
_.g.computeBannerStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.g.computeLocation=function(G){switch(G==null?void 0:G.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.g.shouldShowTileSection=function(G,H,Z){return!this.shouldExpandLogo(G,H,Z)&&H};
_.g.shouldShowExpandedLogoSection=function(G,H,Z){return this.shouldExpandLogo(G,H,Z)&&G!==void 0&&this.hasLogo(G)};
_.g.shouldExpandLogo=function(G,H,Z){return G&&H?!1:Z>=2};
_.g.hasStaticTile=function(G){return!(G==null||!G.tileImage)};
_.g.hasTileLottie=function(G){var H;return!!(G==null?0:(H=G.tileLottie)==null?0:H.url)};
_.g.hasLogo=function(G){return this.getCurrentLogo(G,this.isDarkTheme)!==void 0};
_.g.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.g.getExpandedLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.g.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.g.getMaxTitleFontSize=function(G){return G.overrideTitleMaxFontSize?String(G.overrideTitleMaxFontSize):"36"};
_.g.hasBackgroundLottie=function(G){var H;return!!(G==null?0:(H=G.backgroundLottie)==null?0:H.url)};
_.g.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,H;(G=this.tileLottieAnimationRef)==null||(H=G.lottieEl)==null||H.play();var Z,Q;(Z=this.backgroundLottieAnimationRef)==null||(Q=Z.lottieEl)==null||Q.play()}};
_.g.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var G,H;(G=this.tileLottieAnimationRef)==null||(H=G.lottieEl)==null||H.pause();var Z,Q;(Z=this.backgroundLottieAnimationRef)==null||(Q=Z.lottieEl)==null||Q.pause()}};
_.g.pauseLottie=function(){var G,H;(G=this.tileLottieAnimationRef)==null||(H=G.lottieEl)==null||H.pause();var Z,Q;(Z=this.backgroundLottieAnimationRef)==null||(Q=Z.lottieEl)==null||Q.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.g.performPrimaryButtonAction=function(){var G,H,Z;((G=this.data)==null?0:(H=G.primaryButton)==null?0:(Z=H.buttonRenderer)==null?0:Z.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.g.requestElementsPerRow=function(){_.N5(this.hostElement,"yt-request-elements-per-row")};
_.g.updateButtonPalette=function(){if(this.data&&this.currentColorData){var G;((G=this.data.dismissButton)==null?0:G.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 H;if((H=this.data.primaryButton)==null?0:H.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 Z;if((Z=this.data.secondaryButton)==
null?0:Z.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 Q;((Q=this.data.primaryButton)==null?0:Q.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var p;((p=this.data.secondaryButton)==null?0:p.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var l;((l=this.data.primaryButton)==null?0:l.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.g.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var G=this.getTileLottieDataBasedOnTheme(),H,Z;if(G.url!==((H=this.tileLottiePlayerProps)==null?void 0:(Z=H.animationConfig)==null?void 0:Z.path)){var Q,p;(Q=this.tileLottieAnimationRef)==null||(p=Q.lottieEl)==null||p.destroy();var l;this.isOnHoverBehaviorForLottieEnabled=!((l=G.settings)==null?0:l.autoplay);var q,u;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(u=(q=G.settings)==null?void 0:q.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(G.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof G.url==="string"?this.tileLottiePlayerProps.animationConfig.path=G.url:this.tileLottiePlayerProps.animationConfig.animationData=G.url}}};
_.g.getOverflowButton=function(G){return _.X(G.overflowButton,GZa)};
_.g.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var G=this.getBackgroundLottieDataBasedOnTheme(),H,Z;if(G.url!==((H=this.backgroundLottiePlayerProps)==null?void 0:(Z=H.animationConfig)==null?void 0:Z.path)){var Q,p;(Q=this.backgroundLottieAnimationRef)==null||(p=Q.lottieEl)==null||p.destroy();var l;this.isOnHoverBehaviorForLottieEnabled=!((l=G.settings)==null?0:l.autoplay);var q,u;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(u=(q=G.settings)==null?void 0:q.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(G.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof G.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=G.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
G.url}}};
_.g.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var G;((G=this.tileLottieAnimationRef)==null?void 0:G.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var H;((H=this.backgroundLottieAnimationRef)==null?void 0:H.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.g.getTileLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeTileLottie))return this.data.darkThemeTileLottie;var H;return((H=this.data)==null?0:H.tileLottie)?this.data.tileLottie:{}};
_.g.getBackgroundLottieDataBasedOnTheme=function(){var G;if(this.isDarkTheme&&((G=this.data)==null?0:G.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var H;return((H=this.data)==null?0:H.backgroundLottie)?this.data.backgroundLottie:{}};
_.g.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.g.getLottieLoopValue=function(G){return G?G.loop!==void 0?G.loop:G.loopCount?G.loopCount-1:!0:!0};
_.g.logoWithPadding=function(G){var H,Z,Q;return(G=(H=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(Z=H.thumbnails)==null?void 0:(Q=Z[0])==null?void 0:Q.height)&&G%31===0?!0:!1};
xc.prototype.currentColorChanged=xc.prototype.currentColorChanged;xc.prototype.themeChanged=xc.prototype.themeChanged;xc.prototype.dataChanged=xc.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],xc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],xc.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],xc.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],xc.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xc.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],xc.prototype,"primaryButton",void 0);_.N([_.h(),_.A("design:type",Object)],xc.prototype,"secondaryButton",void 0);
_.N([_.h({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],xc.prototype,"elementsPerRow",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],xc.prototype,"isDarkTheme",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],xc.prototype,"hasTile",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],xc.prototype,"hasMetadata",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],xc.prototype,"showLogoImage",void 0);_.N([_.h(),_.A("design:type",Object)],xc.prototype,"currentColorData",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.A("design:type",String)],xc.prototype,"bannerStyle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.A("design:type",String)],xc.prototype,"location",void 0);
_.N([_.h(),_.A("design:type",Object)],xc.prototype,"tileLottiePlayerProps",void 0);_.N([_.h(),_.A("design:type",Object)],xc.prototype,"tileLottieAnimationRef",void 0);_.N([_.h(),_.A("design:type",Object)],xc.prototype,"backgroundLottiePlayerProps",void 0);_.N([_.h(),_.A("design:type",Object)],xc.prototype,"backgroundLottieAnimationRef",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],xc.prototype,"useBiggerShowcaseImage",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],xc.prototype,"isHideEnclosingAction",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xc.prototype,"dataChanged",null);_.N([_.Jv("isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xc.prototype,"themeChanged",null);
_.N([_.Jv("currentColorData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xc.prototype,"currentColorChanged",null);_.N([_.O({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],xc);
_.m(xc,"ytd-statement-banner-renderer",function(){if(QUd!==void 0)return QUd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return QUd=G},{mode:1});var po7;var L8=function(){var G=_.C.apply(this,arguments)||this;G.isSearch=!1;G.hideShelfHeader=!1;G.engagementPanel=!1;G.disableMouseScroll=!0;G.useFloorScrolling=!0;return G};
_.T(L8,_.C);L8.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Zg("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Zg("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
L8.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
L8.prototype.onDataChanged=L8.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],L8.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],L8.prototype,"hideShelfHeader",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],L8.prototype,"engagementPanel",void 0);_.N([_.h(),_.A("design:type",Object)],L8.prototype,"disableMouseScroll",void 0);_.N([_.h(),_.A("design:type",Object)],L8.prototype,"useFloorScrolling",void 0);_.N([_.h(),_.A("design:type",Object)],L8.prototype,"data",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],L8.prototype,"onDataChanged",null);
_.N([_.O({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],L8);
_.m(L8,"ytd-reel-shelf-renderer",function(){if(po7!==void 0)return po7;var G=document.createElement("template");_.f(G,'\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      <div id="title-text" 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      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return po7=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var l1w;var gmw;gmw=_.CM(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.I1_=_.VB(gmw);var qCG=_.y(function(G){var H=G.data;G=G.useSmallFont;var Z={},Q={};return _.J("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.J(_.k,{cond:function(){return H().favicon},
then:function(p){return _.J(_.ib,{data:p,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.J("div",{class:"ytChannelExternalLinkViewModelContainer"},_.J(_.Fe,{text:function(){return H().title},
className:_.bb("ytChannelExternalLinkViewModelTitle",(Z.ytChannelExternalLinkViewModelTitleSmallFont=G,Z)),ellipsisTruncate:!0,userInput:!0}),_.J(_.Fe,{text:function(){return H().link},
className:_.bb("ytChannelExternalLinkViewModelLink",(Q.ytChannelExternalLinkViewModelLinkSmallFont=G,Q)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Yc");
qCG.idomCompat=!0;_.RX(qCG,"yt-channel-external-link-view-model",{props:{data:_.b3,useSmallFont:_.b3}});_.eQ("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var EU=function(){var G=_.C.apply(this,arguments)||this;G.revealButtonClass="button";G.businessEmailDisplayState="HIDE_SECTION";return G};
_.T(EU,_.C);_.g=EU.prototype;_.g.refit=function(){var G=this;_.PG(function(){_.xk(G.hostElement,"yt-refit-popups-action")});
_.q2(this,function(){_.xk(G.hostElement,"yt-refit-popups-action")})};
_.g.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.zh(_.I1_),this.businessEmailDisplayState="CAPTCHA")};
_.g.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"};
_.g.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.g.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"}}}};
_.g.computeEmailHref=function(G){return"mailto:"+G};
_.g.computeSafeUrl=function(G){if(G)return _.m0(G)};
_.g.linkEndpoint=function(G){return _.X(G.onTap,_.cT)};
_.g.linkEndpointToHref=function(G){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(G))};
_.g.onYtServiceRequestCompleted=function(G){var H;if((H=G.detail.data)==null?0:H.businessEmail)this.businessEmail=G.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var Z;if((Z=G.detail.data)==null?0:Z.errorMessage)this.businessEmailErrorMessage=G.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.g.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var G=this.JSC$16407_captchaTextarea.value;if(G){G={recaptcha_response_token:G,channel_id:this.metadata.channelId};var H=_.X(this.metadata.onBusinessEmailRevealClickCommand,_.cT);H&&this.ytComponentBehavior.resolveCommand(H,{form:G})}}};
_.g.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.u4.Object.defineProperties(EU.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var G;return _.X((G=this.data)==null?void 0:G.metadata,pKG)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.X(this.metadata.businessEmailRevealButton,_.HN)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var G=new URL(this.metadata.canonicalChannelUrl);return G.host+G.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 _.X(this.metadata.learnMoreOnTap,_.cT)}}});
EU.prototype.onYtServiceRequestCompleted=EU.prototype.onYtServiceRequestCompleted;EU.prototype.businessEmailMetadataChanged=EU.prototype.businessEmailMetadataChanged;EU.prototype.refit=EU.prototype.refit;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],EU.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],EU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("#g-recaptcha-response"),_.A("design:type",HTMLTextAreaElement)],EU.prototype,"JSC$16407_captchaTextarea",void 0);_.N([_.h(),_.A("design:type",Object)],EU.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],EU.prototype,"revealButtonClass",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],EU.prototype,"metadata",null);
_.N([_.z("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],EU.prototype,"revealButton",null);_.N([_.z("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],EU.prototype,"channelDisplayUrl",null);_.N([_.Jv("metadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EU.prototype,"refit",null);_.N([_.z("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],EU.prototype,"formattedDescription",null);
_.N([_.z("metadata","learnMoreCommand"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],EU.prototype,"shouldRendereVerifiedPhoneStatus",null);_.N([_.z("metadata"),_.A("design:type",Object),_.A("design:paramtypes",[])],EU.prototype,"learnMoreCommand",null);_.N([_.h(),_.A("design:type",String)],EU.prototype,"businessEmailDisplayState",void 0);_.N([_.h(),_.A("design:type",String)],EU.prototype,"businessEmail",void 0);
_.N([_.h(),_.A("design:type",String)],EU.prototype,"businessEmailErrorMessage",void 0);_.N([_.Jv("metadata"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EU.prototype,"businessEmailMetadataChanged",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],EU.prototype,"onYtServiceRequestCompleted",null);_.N([_.O({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],EU);
_.m(EU,"ytd-about-channel-renderer",function(){if(l1w!==void 0)return l1w;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return l1w=G},{mode:1});var SCp;var Yc=function(){return _.C.apply(this,arguments)||this};
_.T(Yc,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Yc.prototype,"data",void 0);_.N([_.O({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Yc);
_.m(Yc,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(SCp!==void 0)return SCp;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return SCp=G},{mode:1});var u7w;var F$=function(){return _.C.apply(this,arguments)||this};
_.T(F$,_.C);F$.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],F$.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],F$.prototype,"aligment",void 0);_.N([_.O({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],F$);
_.m(F$,"ytd-channel-list-sub-menu-renderer",function(){if(u7w!==void 0)return u7w;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return u7w=
G},{mode:1});var Bwt;var br=function(){return _.C.apply(this,arguments)||this};
_.T(br,_.C);br.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}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],br.prototype,"data",void 0);_.N([_.O({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],br);
_.m(br,"ytd-channel-sub-menu-renderer",function(){if(Bwt!==void 0)return Bwt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Bwt=G},{mode:1});var J2R;var tHa;var GK=function(){var G=_.C.apply(this,arguments)||this;G.isCompact=!1;return G};
_.T(GK,_.C);_.u4.Object.defineProperties(GK.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var G,H;return((H=_.X((G=this.data)==null?void 0:G.endpoint,_.Hx))==null?void 0:H.target)==="TARGET_NEW_WINDOW"}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],GK.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],GK.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],GK.prototype,"isCompact",void 0);_.N([_.z("isCompact"),_.A("design:type",Number),_.A("design:paramtypes",[])],GK.prototype,"thumbnailWidth",null);
_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],GK.prototype,"openNewWindow",null);_.N([_.O({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],GK);
_.m(GK,"ytd-media-lockup-renderer",function(){if(tHa!==void 0)return tHa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return tHa=G},{mode:1});var kdp;var H_=function(){return _.C.apply(this,arguments)||this};
_.T(H_,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],H_.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],H_.prototype,"data",void 0);_.N([_.O({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],H_);
_.m(H_,"ytd-structured-description-channel-lockup-renderer",function(){if(kdp!==void 0)return kdp;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return kdp=G},{mode:1});var D0G;var sE=function(){var G=_.C.apply(this,arguments)||this;G.isCompact=!1;G.collectionsStackColor=_.V("modernize_structured_description_playlist_lockups_v2");return G};
_.T(sE,_.C);sE.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.V("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.u4.Object.defineProperties(sE.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q,p,l;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(G=this.data)==null?void 0:(H=G.thumbnail)==null?void 0:H.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(Z=this.data)==null?void 0:(Q=Z.thumbnail)==null?void 0:Q.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(p=this.data)==null?void 0:(l=p.thumbnail)==null?
void 0:l.vibrantColorPalette:void 0}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],sE.prototype,"componentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sE.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],sE.prototype,"showSidePanelThumbnailOverlay",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],sE.prototype,"isCompact",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],sE.prototype,"collectionsStackColor",void 0);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sE.prototype,"twoLineTitle",null);_.N([_.z("data","collectionsStackColor"),_.A("design:type",Object),_.A("design:paramtypes",[])],sE.prototype,"collectionStack",null);
_.N([_.O({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],sE);
_.m(sE,"ytd-structured-description-playlist-lockup-renderer",function(){if(D0G!==void 0)return D0G;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return D0G=G},{mode:1});var d0x;var Zu=function(){return _.C.apply(this,arguments)||this};
_.T(Zu,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Zu.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Zu.prototype,"data",void 0);_.N([_.O({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Zu);
_.m(Zu,"ytd-structured-description-video-lockup-renderer",function(){if(d0x!==void 0)return d0x;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return d0x=G},{mode:2});var QC=function(){return _.C.apply(this,arguments)||this};
_.T(QC,_.C);
QC.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}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],QC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],QC.prototype,"data",void 0);_.N([_.O({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],QC);
_.m(QC,"ytd-compact-infocard-renderer",function(){if(J2R!==void 0)return J2R;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return J2R=G},{mode:1});var eUp;var p5=function(){return _.C.apply(this,arguments)||this};
_.T(p5,_.C);p5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u4.Object.defineProperties(p5.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],p5.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],p5.prototype,"ytdReduxBehavior",void 0);_.N([_.h({selector:_.T3}),_.A("design:type",Object)],p5.prototype,"isGridViewEnabled",void 0);
_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],p5.prototype,"watchFeedBigThumbs",null);_.N([_.z("isGridViewEnabled","data"),_.h({reflectToAttribute:!0,value:"168"}),_.A("design:type",String),_.A("design:paramtypes",[])],p5.prototype,"thumbnailWidth",null);_.N([_.z("isGridViewEnabled","data"),_.h({reflectToAttribute:!0,value:"94"}),_.A("design:type",String),_.A("design:paramtypes",[])],p5.prototype,"customThumbnailSize",null);
_.N([_.h(),_.A("design:type",Object)],p5.prototype,"data",void 0);_.N([_.O({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],p5);
_.m(p5,"ytd-compact-playlist-renderer",function(){if(eUp!==void 0)return eUp;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return eUp=G},{mode:1});var nma;var lR=function(){var G=_.C.apply(this,arguments)||this;G.roundedContainer=!0;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.T(lR,_.C);_.g=lR.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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"}}}};
_.g.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.g.computeViewStyle=function(G){return G.style?G.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.g.onUpdateElementsPerRowAction=function(G){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&G===1};
_.g.requestElementsPerRow=function(){_.N5(this.hostElement,"yt-request-elements-per-row")};
lR.prototype.dataChanged=lR.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],lR.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],lR.prototype,"actionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],lR.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],lR.prototype,"hideThumbnail",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.A("design:type",String)],lR.prototype,"viewStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lR.prototype,"roundedContainer",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lR.prototype,"dataChanged",null);_.N([_.O({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],lR);
_.m(lR,"ytd-compact-promoted-item-renderer",function(){if(nma!==void 0)return nma;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return nma=G},{mode:1});var VHa;var g$=function(){return _.C.apply(this,arguments)||this};
_.T(g$,_.C);g$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
g$.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
g$.prototype.onYtNavigate=function(G,H){var Z=this;if(H.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",H)){var Q=this.get("watchEndpoint.videoId",H.endpoint),p=_.xk(this.hostElement,"yt-get-current-video-id-action")[0];_.V("kevlar_mix_handle_first_endpoint_different")&&Q&&p&&Q!==p||(G.stopPropagation(),_.R0().getPlayerPromise().then(function(l){if(l.getPlayerState()===0&&Z.data.secondaryNavigationEndpoint)var q=Z.data.secondaryNavigationEndpoint;else{q=
Object.assign({},H.endpoint);var u=_.X(q.commandMetadata,_.HA);u&&(l=Math.floor(l.getCurrentTime()),u.url=_.g7(u.url,{t:l}),!_.V("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(u=_.X(q,_.hZ)))&&(u.startTimeSeconds=l)}_.N5(Z.hostElement,"yt-navigate",{endpoint:q})}))}};
_.u4.Object.defineProperties(g$.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q,p,l;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(G=this.data)==null?void 0:(H=G.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(Z=this.data)==null?void 0:(Q=Z.thumbnail)==null?void 0:Q.vibrantColorPalette,darkColorPalette:(p=this.data)==null?void 0:(l=p.thumbnail)==null?void 0:l.darkColorPalette,experimentEnabled:!0}}}});
g$.prototype.onYtNavigate=g$.prototype.onYtNavigate;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.ni.YtEndpointBehavior),_.A("design:type",Object)],g$.prototype,"ytEndpointBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],g$.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.v(_.bz),_.A("design:type",Object)],g$.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],g$.prototype,"ytdReduxBehavior",void 0);_.N([_.h({selector:_.T3}),_.A("design:type",Object)],g$.prototype,"isGridViewEnabled",void 0);_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],g$.prototype,"watchFeedBigThumbs",null);
_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],g$.prototype,"thumbnailWidth",null);_.N([_.h(),_.A("design:type",Object)],g$.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],g$.prototype,"collectionStack",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],g$.prototype,"onYtNavigate",null);
_.N([_.O({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],g$);
_.m(g$,"ytd-compact-radio-renderer",function(){if(VHa!==void 0)return VHa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return VHa=G},{mode:1});var $0x;var Iw=function(){return _.C.apply(this,arguments)||this};
_.T(Iw,_.C);Iw.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Iw.prototype.computeRendererStyle=function(G){return G.style?G.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.N([_.h(),_.A("design:type",Object)],Iw.prototype,"data",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Iw.prototype,"rendererBehavior",void 0);_.N([_.h({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.A("design:type",String)],Iw.prototype,"rendererStyle",void 0);_.N([_.O({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Iw);
_.m(Iw,"ytd-compact-text-promo-renderer",function(){if($0x!==void 0)return $0x;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $0x=G},{mode:1});var Xox;var qR=function(){var G=_.C.apply(this,arguments)||this;G.isShortsStyle=!1;return G};
_.T(qR,_.C);_.g=qR.prototype;_.g.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"}}}};
_.g.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.N5(this.hostElement,"yt-disable-lockup-interaction"):_.N5(this.hostElement,"yt-enable-lockup-interaction"))};
_.g.isMetaBlockEmpty=function(G){return!G||!G.longBylineText&&!G.shortBylineText&&!G.shortViewCountText&&!G.viewCountText};
_.g.computeHasOneLineTitle=function(G){return this.forceOneLineTitle||!(G==null||!G.buttons)};
_.g.computeDisableInteraction=function(){var G;return!((G=this.data)==null?0:G.navigationEndpoint)};
_.g.hasSingularTopStandaloneBadge=function(){var G;return!((G=this.data)==null||!G.topStandaloneBadge)};
_.u4.Object.defineProperties(qR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var G;return this.hasSingularTopStandaloneBadge()?[(G=this.data)==null?void 0:G.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var G;return this.shouldShowTopBadges?((G=this.data)==null?void 0:G.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
qR.prototype.disableInteractionChanged=qR.prototype.disableInteractionChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],qR.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],qR.prototype,"ytdLockupBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],qR.prototype,"ytdReduxBehavior",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.A("design:type",Boolean)],qR.prototype,"metaBlockEmpty",void 0);_.N([_.h({selector:_.T3}),_.A("design:type",Object)],qR.prototype,"isGridViewEnabled",void 0);_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qR.prototype,"watchFeedBigThumbs",null);
_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],qR.prototype,"thumbnailWidth",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],qR.prototype,"isShortsStyle",void 0);_.N([_.h(),_.A("design:type",Object)],qR.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.A("design:type",Boolean)],qR.prototype,"hasOneLineTitle",void 0);
_.N([_.h(),_.A("design:type",Boolean)],qR.prototype,"hideThumbnail",void 0);_.N([_.h(),_.A("design:type",Boolean)],qR.prototype,"forceOneLineTitle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.A("design:type",Boolean)],qR.prototype,"disableInteraction",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],qR.prototype,"musicMetadataVideoLockup",void 0);
_.N([_.gx("disableInteraction"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qR.prototype,"disableInteractionChanged",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qR.prototype,"shouldShowTopBadges",null);_.N([_.z("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],qR.prototype,"topBadges",null);
_.N([_.z("shouldShowTopBadges","data"),_.A("design:type",Array),_.A("design:paramtypes",[])],qR.prototype,"inlineMetadataBadges",null);_.N([_.z("shouldShowTopBadges"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],qR.prototype,"shouldShowBadgesBelowMetadata",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],qR.prototype,"compactTitleClass",null);_.N([_.O({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],qR);
_.m(qR,"ytd-compact-video-renderer",function(){if(Xox!==void 0)return Xox;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Xox=G},{mode:_.LH("kevlar_poly_si_batch_j067")?1:2});var c2p;_.eQ("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Sf=function(){return _.C.apply(this,arguments)||this};
_.T(Sf,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Sf.prototype,"data",void 0);_.N([_.O({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Sf);
_.m(Sf,"ytd-counterfactual-renderer",function(){if(c2p!==void 0)return c2p;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return c2p=G},{mode:1});var Tw7;var uR=function(){var G=_.C.apply(this,arguments)||this;G.hidden=!1;return G};
_.T(uR,_.C);uR.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.tp().resolve(_.Dk).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
uR.prototype.computeHidden=function(G){return!!G};
_.u4.Object.defineProperties(uR.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}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uR.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.A("design:type",Object)],uR.prototype,"hidden",void 0);_.N([_.z("data.label"),_.A("design:type",String),_.A("design:paramtypes",[])],uR.prototype,"label",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],uR.prototype,"value",null);
_.N([_.O({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],uR);
_.m(uR,"ytd-dropdown-item-renderer",function(){if(Tw7!==void 0)return Tw7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Tw7=G},{mode:1});var f12;var vm_;var B_=function(){return _.C.apply(this,arguments)||this};
_.T(B_,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],B_.prototype,"data",void 0);_.N([_.h({computed:"getSimpleString(data.label)"}),_.A("design:type",String)],B_.prototype,"label",void 0);_.N([_.O({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],B_);
_.m(B_,"ytd-navigation-dropdown-item-renderer",function(){if(vm_!==void 0)return vm_;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return vm_=G},{mode:1});var J7=function(){var G=_.C.apply(this,arguments)||this;G.disabled=!1;G.value="";G.noLabelFloat=!1;G.noUnderline=!1;G.usePrimaryColor=!1;G.hasBackground=!1;G.verticalAlign="top";G.autosize=!1;G.minAutosizeWidth=100;G.autosizeFont="14px Roboto";return G};
_.T(J7,_.C);_.g=J7.prototype;_.g.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"}}}};
_.g.open=function(){this.inputEl.open()};
_.g.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.g.dataChanged=function(){this.reset()};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("value-changed",this.value))};
_.g.stopPropagation=function(G){G.stopPropagation()};
_.g.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var G=this.canvas.getContext("2d");G&&(G.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(G.measureText(this.inputEl.value).width)+24)+"px")}};
_.g.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var G=0,H=this.data.entries.length;G<H;G++){var Z=this.data.entries[G],Q;for(Q in Z)if(Z.hasOwnProperty(Q)){var p=Z[Q];if("isSelected"in p&&p.isSelected)return"stringValue"in p?p.stringValue||"":"int32Value"in p?p.int32Value||0:0}}return null};
_.g.updateValueFromBinding=function(G){this.value=G.detail.value};
_.u4.Object.defineProperties(J7.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 G=0,H=this.data.entries.length;G<H;G++){var Z=this.data.entries[G],Q;for(Q in Z)if(Z.hasOwnProperty(Q)){var p=Z[Q];if("isSelected"in p&&p.isSelected&&"label"in p)return this.ytRendererBehavior.getSimpleString(p.label)}}return null}}});
J7.prototype.autoSizeLabel=J7.prototype.autoSizeLabel;J7.prototype.stopPropagation=J7.prototype.stopPropagation;J7.prototype.valueChangedForBinding=J7.prototype.valueChangedForBinding;J7.prototype.dataChanged=J7.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],J7.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],J7.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],J7.prototype,"disabled",void 0);_.N([_.h(),_.A("design:type",Object)],J7.prototype,"value",void 0);_.N([_.h(),_.A("design:type",Object)],J7.prototype,"noLabelFloat",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],J7.prototype,"noUnderline",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],J7.prototype,"theme",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],J7.prototype,"usePrimaryColor",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],J7.prototype,"hasBackground",void 0);_.N([_.h(),_.A("design:type",Object)],J7.prototype,"verticalAlign",void 0);_.N([_.h(),_.A("design:type",Object)],J7.prototype,"autosize",void 0);_.N([_.h(),_.A("design:type",Object)],J7.prototype,"minAutosizeWidth",void 0);_.N([_.h(),_.A("design:type",Object)],J7.prototype,"autosizeFont",void 0);
_.N([_.q6("#entries"),_.A("design:type",Object)],J7.prototype,"entries",void 0);_.N([_.q6("#input"),_.A("design:type",Object)],J7.prototype,"inputEl",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J7.prototype,"dataChanged",null);_.N([_.Jv("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J7.prototype,"valueChangedForBinding",null);
_.N([_.lq("iron-overlay-opened"),_.lq("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],J7.prototype,"stopPropagation",null);_.N([_.lq("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J7.prototype,"autoSizeLabel",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],J7.prototype,"label",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],J7);
_.m(J7,"ytd-dropdown-renderer",function(){if(f12!==void 0)return f12;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return f12=G},{mode:1});var WMd;var t7=function(){var G=_.C.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.T(t7,_.C);t7.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"}}}};
t7.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
t7.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
t7.prototype.computeViewAllHidden=function(G,H){return G||!H.viewAllEndpoint};
t7.prototype.fillRestIfNoShowMore=t7.prototype.fillRestIfNoShowMore;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],t7.prototype,"ytLazyListBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],t7.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],t7.prototype,"isConstrainedList",void 0);_.N([_.Jv("data","canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t7.prototype,"fillRestIfNoShowMore",null);_.N([_.O({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],t7);
_.m(t7,"ytd-expanded-shelf-contents-renderer",function(){if(WMd!==void 0)return WMd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WMd=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var zUa;var kZ=function(){return _.C.apply(this,arguments)||this};
_.T(kZ,_.C);kZ.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}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],kZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],kZ.prototype,"data",void 0);_.N([_.O({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],kZ);
_.m(kZ,"ytd-feed-channel-filter-header-renderer",function(){if(zUa!==void 0)return zUa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return zUa=G},{mode:1});var KMR;var MHd;var jUp;var Du=function(){return _.C.apply(this,arguments)||this};
_.T(Du,_.C);_.g=Du.prototype;_.g.onClick=function(G){var H,Z=(H=this.data)==null?void 0:H.sectionEndpoint;!_.OO(_.OD(G),this.hostElement,["A".toString()])&&Z&&_.N5(this.hostElement,"yt-navigate",{endpoint:Z})};
_.g.computeHasSectionEndpoint=function(G){return(G==null?void 0:G.sectionEndpoint)!==void 0};
_.g.computeShowHeaderAsLink=function(G){return(G==null?void 0:G.header)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0};
_.g.computeShowSubheaderAsLink=function(G){return(G==null?void 0:G.subheader)!==void 0&&(G==null?void 0:G.sectionEndpoint)!==void 0&&(G==null?void 0:G.header)===void 0};
_.g.getHeaderAsLinkClass=function(G){var H=[],Z;(G==null?0:(Z=G.headerIcon)==null?0:Z.iconType)&&H.push("header-link-active");return H.join(" ")};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Du.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Du.prototype,"data",void 0);
_.N([_.h({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Du.prototype,"hasSectionEndpoint",void 0);_.N([_.h({computed:"computeShowHeaderAsLink(data)"}),_.A("design:type",Boolean)],Du.prototype,"showHeaderAsLink",void 0);_.N([_.h({computed:"computeShowSubheaderAsLink(data)"}),_.A("design:type",Boolean)],Du.prototype,"showSubheaderAsLink",void 0);_.N([_.O({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Du);
_.m(Du,"ytd-medical-panel-section-renderer",function(){if(jUp!==void 0)return jUp;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return jUp=G},{mode:1});var d$=function(){var G=_.C.apply(this,arguments)||this;G.isExpanded=!1;G.roundedContainer=!0;G.skipRoundingTop=!1;G.toggleExpandableSection=function(){G.isExpanded=!G.isExpanded};
return G};
_.T(d$,_.C);
d$.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]]"}}}}}};
d$.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
d$.prototype.dataChanged=d$.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],d$.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],d$.prototype,"isExpanded",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],d$.prototype,"roundedContainer",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],d$.prototype,"skipRoundingTop",void 0);_.N([_.h(),_.A("design:type",Object)],d$.prototype,"toggleExpandableSection",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],d$.prototype,"dataChanged",null);_.N([_.O({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],d$);
_.m(d$,"ytd-medical-panel-content-renderer",function(){if(MHd!==void 0)return MHd;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return MHd=G},{mode:1});_.eQ("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ef=function(){var G=_.C.apply(this,arguments)||this;G.roundedContainer=!0;G.extractOverlay=!1;G.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");G.hasTitle=!1;G.linkIcon="OPEN_IN_NEW";G.isDismissed=!1;return G};
_.T(ef,_.C);ef.prototype.onOverlayConditionsChange=function(){var G=_.F9(this.hostElement).querySelector("ytd-info-panel-content-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.roundedContainer))};
ef.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"}}}};
ef.prototype.computeHasTitle=function(G){return!(G==null||!G.title)};
ef.prototype.onClick=function(G){var H,Z=(H=this.data)==null?void 0:H.headerEndpoint;!_.OO(_.OD(G),this.hostElement,["BUTTON".toString()])&&Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.u4.Object.defineProperties(ef.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 G;return((G=this.data)==null?void 0:G.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:G.disableBottomDivider)||!((H=this.data)==null?0:H.title)}}});
ef.prototype.onOverlayConditionsChange=ef.prototype.onOverlayConditionsChange;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],ef.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],ef.prototype,"ytdReduxBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],ef.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ef.prototype,"roundedContainer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ef.prototype,"extractOverlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],ef.prototype,"amsterdamEnabled",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.A("design:type",Object)],ef.prototype,"hasTitle",void 0);
_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.background"),_.A("design:type",Object),_.A("design:paramtypes",[])],ef.prototype,"background",null);_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.titleStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],ef.prototype,"titleStyle",null);
_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data.titleStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],ef.prototype,"showLinkIcon",null);_.N([_.h(),_.A("design:type",String)],ef.prototype,"linkIcon",void 0);_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ef.prototype,"hideDivider",null);
_.N([_.h({selectorArgs:["data.dismissStateEntityKey"],selector:function(G,H){G=_.Hv(G.entities,"dismissState",H);return(G==null?void 0:G.isDismissed)||(G==null?void 0:G.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(G==null?void 0:G.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.A("design:type",Object)],ef.prototype,"isDismissed",void 0);_.N([_.gx("roundedContainer","extractOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ef.prototype,"onOverlayConditionsChange",null);_.N([_.O({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ef);
_.m(ef,"ytd-info-panel-container-renderer",function(){if(KMR!==void 0)return KMR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return KMR=G},{mode:1});var P8R;_.eQ("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var n5=function(){return _.C.apply(this,arguments)||this};
_.T(n5,_.C);n5.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
n5.prototype.computeStyle=function(G){return G?G:""};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],n5.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.A("design:type",String)],n5.prototype,"titleStyle",void 0);
_.N([_.O({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],n5);
_.xQ()(n5,"ytd-item-section-header-renderer",function(){if(P8R===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);P8R=G}G=P8R;return G},{allowedProps:["data"],
mode:1});var r2a;var woG,hU7=function(){return woG!==void 0?woG:woG=document.createElement("template")};
document.head.appendChild(hU7().content);var C8x;_.VC=new _.Gv("VOTING_ANIMATION_CONTROLLER_TOKEN");var Oxx=_.y(function(G){var H=G.data;var Z=_.IA("div"),Q=_.IA("div");G=_.I(_.Ty("VOTE_STATUS_NONE",void 0,"YPH5mf"));var p=G.next().value,l=G.next().value,q=_.gu(X2f,function(){var e;return(e=H())==null?void 0:e.entityKey}),u=_.V("web_enable_voting_animation")||_.V("enable_music_web_cairo_voting_animation");
_.mR(function(){var e;((e=H().initialState)==null?0:e.status)&&l(H().initialState.status)});
var B=function(){var e,n,c=(n=(e=H().initialState)==null?void 0:e.votes)!=null?n:0,W;e=(W=H().initialState)==null?void 0:W.status;return e==="VOTE_STATUS_UPVOTED"?c-1:e==="VOTE_STATUS_DOWNVOTED"?c+1:c},t=function(){return p()==="VOTE_STATUS_UPVOTED"?B()+1:p()==="VOTE_STATUS_DOWNVOTED"?B()-1:B()},D=function(e){var n=e?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
l(n);var c=t(),W=_.tp().resolve(_.Jp(_.VC)),M=q();M&&(e&&(M==null?0:M.upvoteDefaultButtonOnTap)?_.zt(M.upvoteDefaultButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}):(M==null?0:M.upvoteToggledButtonOnTap)&&_.zt(M.upvoteToggledButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}));var r;e=(r=M==null?void 0:M.enableOptimisticReordering)!=null?r:H().enableOptimisticReordering;u&&W&&H().itemId&&e&&ixG(W,H().itemId,c,n)},d=function(e){var n=e?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
l(n);var c=t(),W=_.tp().resolve(_.Jp(_.VC)),M=q();M&&(e&&(M==null?0:M.downvoteDefaultButtonOnTap)?_.zt(M.downvoteDefaultButtonOnTap,{form:{element:Q.value},disableClickTracking:!0}):(M==null?0:M.downvoteToggledButtonOnTap)&&_.zt(M.downvoteToggledButtonOnTap,{form:{element:Q.value},disableClickTracking:!0}));var r;e=(r=M==null?void 0:M.enableOptimisticReordering)!=null?r:H().enableOptimisticReordering;u&&W&&H().itemId&&e&&ixG(W,H().itemId,c,n)};
G={};G=_.bb("ytVotingViewModelVoteCount",(G.ytVotingViewModelVoteCountDisabled=function(){return H().isDisabled},G));
return _.J("voting-view-model",{class:"ytVotingViewModelHost"},_.J("div",{el:Z},_.J(_.SP,{data:function(){var e=_.X(H().upvoteButton,_.ZD);return{toggleButtonViewModel:Object.assign({},e,{isToggled:p()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(e){return _.J(_.hf,{data:e.data,
onToggle:D})}})),_.J("div",{class:G},function(){var e,n,c;
return p()==="VOTE_STATUS_UPVOTED"?(e=H().initialState)==null?void 0:e.compactVotesUpvoted:p()==="VOTE_STATUS_DOWNVOTED"?(n=H().initialState)==null?void 0:n.compactVotesDownvoted:(c=H().initialState)==null?void 0:c.compactVotes}),_.J("div",{el:Q},_.J(_.SP,{data:function(){var e=_.X(H().downvoteButton,_.ZD);
return{toggleButtonViewModel:Object.assign({},e,{isToggled:p()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(e){return _.J(_.hf,{data:e.data,
onToggle:d})}})))},"Zc");_.RX(_.y(function(G){var H=G.data;return _.J("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.J("div",{class:_.bb("ytEngagementBarViewModelEngagementBarWrapper",G.className)},_.J(_.SP,{data:function(){return H().actions}},{votingViewModel:Oxx})))},"$c"),"engagement-bar-view-model",{props:{data:_.b3,
className:_.b3}});var $Z=function(){var G=_.C.apply(this,arguments)||this;G.playlistVotingAnimationEnabled=_.V("web_enable_voting_animation");G.downloadProgress=0;G.transferState="TRANSFER_STATE_UNKNOWN";G.downloadState="DOWNLOAD_STATE_UNKNOWN";G.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";G.offlineVideoPolicyExpirationTimestamp=0;return G};
_.T($Z,_.C);_.g=$Z.prototype;_.g.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"}}}};
_.g.canReorderChanged=function(){this.persistentDragHandle=_.V("kevlar_playlist_drag_handles")&&this.canReorder};
_.g.onDrag=function(){if(this.thumbnail){var G=_.F9(this.thumbnail).querySelector("yt-image");G&&(G.shouldRenderLazy=!1)}};
_.g.onMenuOverlayChanged=function(G,H){this.menuOpened=H};
_.g.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.g.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.g.onContentsTap=function(G){var H,Z=(H=this.data)==null?void 0:H.serviceEndpoints;if(Z&&Z.length===1&&_.X(Z[0],cIf)&&!_.OO(_.OD(G),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(Z[0]);else{var Q;(H=(Q=this.data)==null?void 0:Q.navigationEndpoint)&&_.V("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?a1p(_.tp().resolve(_.WM),H):(_.PN().playlistSuggestionsShelfActivation=
!0,_.y2x(_.tp().resolve(_.WM),H)):H&&!_.OO(_.OD(G),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.V("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.N5(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))}};
_.g.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.g.computeThumbnailWidth=function(G){return G==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.g.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=Snf(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))}};
_.g.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.g.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.g.dataChanged=function(){if(this.data){var G,H,Z,Q=((G=this.downloadRenderData)==null?void 0:G.badges)&&((H=this.downloadRenderData)==null?void 0:H.badges)!==((Z=this.data)==null?void 0:Z.badges),p,l,q;G=((p=this.downloadRenderData)==null?void 0:p.thumbnailOverlays)&&((l=this.downloadRenderData)==null?void 0:l.thumbnailOverlays)!==((q=this.data)==null?void 0:q.thumbnailOverlays);(!this.downloadRenderData||Q||G)&&this.downloadStateChanged()}};
_.g.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var G,H,Z=(G=this.data.menu)==null?void 0:(H=G.menuRenderer)==null?void 0:H.items;if(Z)for(G=_.I(Z),H=G.next();!H.done;H=G.next())if(H=H.value,Z=void 0,_.X((Z=H.menuServiceItemRenderer)==null?void 0:Z.serviceEndpoint,_.A$)){var Q=Z=void 0,p=void 0;H=(Z=H)==null?void 0:(Q=Z.menuServiceItemRenderer)==null?void 0:(p=Q.serviceEndpoint)==null?void 0:p.playlistEditEndpoint;p=Q=void 0;if(Z=(Q=H)==null?void 0:(p=Q.actions)==null?void 0:
p[0])Q=void 0,Z.setVideoId=(Q=this.data)==null?void 0:Q.setVideoId;p=Q=Z=void 0;if(H=(Z=H)==null?void 0:(Q=Z.clientActions)==null?void 0:(p=Q[0])==null?void 0:p.playlistRemoveVideosAction)Z=void 0,H.setVideoIds=[(Z=this.data)==null?void 0:Z.setVideoId]}}};
_.u4.Object.defineProperties($Z.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
$Z.prototype.setVideoIdChanged=$Z.prototype.setVideoIdChanged;$Z.prototype.dataChanged=$Z.prototype.dataChanged;$Z.prototype.downloadStateChanged=$Z.prototype.downloadStateChanged;$Z.prototype.onMenuOverlayChanged=$Z.prototype.onMenuOverlayChanged;$Z.prototype.canReorderChanged=$Z.prototype.canReorderChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$Z.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],$Z.prototype,"ytdReduxBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],$Z.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],$Z.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],$Z.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$Z.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],$Z.prototype,"canReorder",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],$Z.prototype,"menuOpened",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],$Z.prototype,"handleIsHovered",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],$Z.prototype,"persistentDragHandle",void 0);_.N([_.h(),_.A("design:type",Object)],$Z.prototype,"downloadRenderData",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],$Z.prototype,"styleType",void 0);_.N([_.h({computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],$Z.prototype,"thumbnailWidth",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],$Z.prototype,"isDownloads",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],$Z.prototype,"playlistVotingAnimationEnabled",void 0);
_.N([_.h({selector:KN,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],$Z.prototype,"downloadProgress",void 0);_.N([_.h(),_.A("design:type",Number)],$Z.prototype,"relativeDateReference",void 0);_.N([_.h({selector:_.Wv,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],$Z.prototype,"transferState",void 0);_.N([_.h({selector:GZe,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],$Z.prototype,"downloadState",void 0);
_.N([_.h({selector:Oie,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],$Z.prototype,"offlinePolicyAction",void 0);_.N([_.h({selector:a7W,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],$Z.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.N([_.h({selector:ogR,selectorArgs:["data.videoId"]}),_.A("design:type",Object)],$Z.prototype,"entityInfo",void 0);_.N([_.h({selector:_.T9}),_.A("design:type",Boolean)],$Z.prototype,"miniplayerIsActive",void 0);
_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],$Z.prototype,"playlistVideoId",null);_.N([_.q6("#thumbnail"),_.A("design:type",Object)],$Z.prototype,"thumbnail",void 0);_.N([_.Jv("canReorder"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$Z.prototype,"canReorderChanged",null);
_.N([_.lq("yt-menu-overlay-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Boolean]),_.A("design:returntype")],$Z.prototype,"onMenuOverlayChanged",null);_.N([_.Jv("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$Z.prototype,"downloadStateChanged",null);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$Z.prototype,"dataChanged",null);_.N([_.Jv("data.setVideoId"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$Z.prototype,"setVideoIdChanged",null);_.N([_.O({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],$Z);
_.m($Z,"ytd-playlist-video-renderer",function(){if(C8x!==void 0)return C8x;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);G.content.insertBefore(hU7().content.cloneNode(!0),G.content.firstChild);return C8x=G},{mode:1});var omN;var c_=function(){return _.C.apply(this,arguments)||this};
_.T(c_,_.C);_.N([_.h(),_.A("design:type",Object)],c_.prototype,"data",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],c_.prototype,"rendererBehavior",void 0);_.N([_.O({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],c_);
_.m(c_,"ytd-premium-browse-footer-renderer",function(){if(omN!==void 0)return omN;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return omN=G},{mode:1});var m0N;var TK=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return G};
_.T(TK,_.C);_.g=TK.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.handleDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.g.computeHeaderLogoThumbnail=function(G,H){if(G)return H?G.darkLogo:G.lightLogo};
_.g.computeHeaderLogoHeight=function(G,H){var Z,Q,p;return(G=(Z=this.computeHeaderLogoThumbnail(G,H))==null?void 0:(Q=Z.thumbnails)==null?void 0:(p=Q[0])==null?void 0:p.height)&&G%31===0?"31":"24"};
_.g.computeHeaderLogoMarginBottom=function(G,H){return this.computeHeaderLogoHeight(G,H)==="24"?"0":"-7"};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],TK.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],TK.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],TK.prototype,"isDarkTheme",void 0);_.N([_.h({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.A("design:type",Object)],TK.prototype,"themeLogo",void 0);
_.N([_.h({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.A("design:type",String)],TK.prototype,"logoHeight",void 0);_.N([_.h({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.A("design:type",String)],TK.prototype,"logoMarginBottom",void 0);_.N([_.O({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],TK);
_.m(TK,"ytd-primetime-promo-header-renderer",function(){if(m0N!==void 0)return m0N;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return m0N=G},{mode:1});var U0d;_.f5=_.y(function(G){var H=G.className;var Z=G.data;var Q=G.isOverlay;var p=G.maxLinesOverride;var l=G.useMediumText;var q=function(){return Z().alwaysShowTruncationText},u=function(){return Z().truncationText},B=function(){return l!==void 0&&l()?"medium":"small"},t=function(){return Q!==void 0&&Q()?"overlay":"default"},D=function(){var c,W;
return(W=(c=_.X(Z().rendererContext,_.qc))==null?void 0:c.label)!=null?W:""};
G=_.I(_.Ty(!1,void 0,"llBUm"));var d=G.next().value,e=G.next().value;G=_.Hh(function(){Z().expandOnTap&&e(!d());return!1});
var n={};return _.J("yt-description-preview-view-model",{el:_.aX(_.$X(function(){return Z().rendererContext})),
class:_.bb("ytDescriptionPreviewViewModelHost",H,(n.ytDescriptionPreviewViewModelClickable=function(){var c;return!((c=_.X(Z().rendererContext,G2U))==null||!c.onTap)},n.ytDescriptionPreviewViewModelIsOverlay=Q,n)),
"on:click":G},_.J(_.k,{cond:function(){return Z().description},
then:function(c){return _.J(_.k,{cond:d,then:function(){var W={};return _.J("div",{class:_.bb("ytDescriptionPreviewViewModelDescription",(W.ytDescriptionPreviewViewModelDescriptionMediumText=l,W))},_.J(_.Fe,{text:c}))},
else:function(){return _.J(RV2,{text:c,alwaysShowTruncationText:q,truncationText:u,maxLines:function(){var W;return(W=p==null?void 0:p())!=null?W:Z().maxLines},
textStyle:t,accessibilityLabel:D,textSize:B})}})}}))},"ad");
_.f5.idomCompat=!0;var Nw4=_.y(function(G){var H=_.Hh(function(p){var l;(l=G.onClick)==null||l.call(G,p)}),Z={},Q={};
return _.J("yt-shelf-header-layout",{class:_.bb("yt-shelf-header-layout",(Z["yt-shelf-header-layout--disable-horizontal-padding"]=G.disableHorizontalPadding,Z["yt-shelf-header-layout--disable-vertical-padding"]=G.disableVerticalPadding,Z["yt-shelf-header-layout--responsive"]=G.useResponsiveLayout,Z["yt-shelf-header-layout--narrow"]=function(){var p,l;return((p=G.useResponsiveLayout)==null?void 0:p.call(G))&&((l=G.forceSmallLayout)==null?void 0:l.call(G))},Z["yt-shelf-header-layout--is-overlay"]=G.isOverlay,
Z["yt-shelf-header-layout--tappable"]=G.isInteractive,Z["yt-shelf-header-layout--optional-medium-layout-padding"]=G.useUpdatedPadding,Z)),
"on:click":H,tabindex:function(){var p;return((p=G.isInteractive)==null?0:p.call(G))?0:void 0}},_.J("div",{class:"yt-shelf-header-layout__header-row"},_.J(_.k,{cond:G.leadingIcon,
then:function(p){return _.J("div",{class:"yt-shelf-header-layout__leading-icon"},_.J(_.ll,{icon:p}))},
else:function(){return _.J(_.k,{cond:G.hasLeadingImage,then:function(){var p,l={};return _.J("div",{class:_.bb("yt-shelf-header-layout__leading-image",(l["yt-shelf-header-layout__leading-image--circular-image"]=G.circularImage,l))},(p=G.leadingImage)==null?void 0:p.call(G))}})}}),_.J("div",{class:"yt-shelf-header-layout__label-container"},_.J(_.k,{cond:G.hasSuperlabel,
then:function(){var p;return _.J("div",{class:"yt-shelf-header-layout__superlabel"},(p=G.superlabel)==null?void 0:p.call(G))}}),_.J("div",{class:"yt-shelf-header-layout__title-row"},_.J(RU_,{text:G.title,
className:_.bb("yt-shelf-header-layout__title",(Q["yt-shelf-header-layout__title--small-title"]=G.forceSmallLayout,Q)),tagLevel:G.tagLevel}),_.J(_.k,{cond:G.hasDetail,then:function(){var p;return _.J("div",{class:"yt-shelf-header-layout__detail"},(p=G.detail)==null?void 0:p.call(G))}})),_.J(_.k,{cond:G.hasSublabel,
then:function(){var p;return _.J("div",{class:"yt-shelf-header-layout__sublabel"},(p=G.sublabel)==null?void 0:p.call(G))}})),_.J(_.k,{cond:G.hasTrailingActions,
then:function(){var p;return _.J("div",{class:"yt-shelf-header-layout__trailing-actions"},(p=G.trailingActions)==null?void 0:p.call(G))}})),_.J(_.k,{cond:G.hasBottomAccessory,
then:function(){var p;return _.J("div",{class:"yt-shelf-header-layout__bottom-accessory"},(p=G.bottomAccessory)==null?void 0:p.call(G))}}))},"bd");
Nw4.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var RU_=_.y(function(G){var H=G.text;var Z=G.className;var Q=G.tagLevel;return _.J(_.iW,null,_.J(_.wO,{when:function(){return(Q==null?void 0:Q())===0}},function(){return _.J("h2",{class:Z},H())}),_.J(_.wO,{when:function(){return(Q==null?void 0:Q())===1}},function(){return _.J("h3",{class:Z},H())}),_.J(_.wO,{when:function(){return(Q==null?void 0:Q())===2}},function(){return _.J("h4",{class:Z},H())}),_.J(_.he,null,function(){return _.J("h2",{class:Z},H())}))},"cd");var LMR,A2G,x0t;_.v_=_.y(function(G){var H=G.className;var Z=G.data;var Q=G.disableHorizontalPadding;var p=G.disableVerticalPadding;var l=G.forceSmallLayout;var q=G.useResponsiveLayout;var u=G.isOverlay;G=G.useUpdatedPadding;return _.J("yt-section-header-view-model",{class:_.bb("ytSectionHeaderViewModelHost",H),style:_.pI({"background-color":function(){return Qj(Z().backgroundColor)?_.c$(Qj(Z().backgroundColor)):void 0}})},_.J(Nw4,{hasDetail:!1,
title:function(){return _.J(_.Fe,{text:function(){return Z().headline}})},
hasTitle:!0,sublabel:function(){return _.J(A2G,{data:Z})},
hasSublabel:function(){return!!Z().sublabel||!!Z().bottomBadge},
superlabel:function(){return _.J(x0t,{data:Z})},
hasSuperlabel:function(){return!!Z().superlabel||!!Z().topBadge},
leadingImage:function(){return _.J(LMR,{leadingAccessory:function(){return Z().leadingAccessory}})},
hasLeadingImage:function(){return!!Z().leadingAccessory},
trailingActions:function(){return _.J(_.SP,{data:function(){return Z().trailingActions}},{flexibleActionsViewModel:_.RP})},
hasTrailingActions:function(){return!!Z().trailingActions},
disableHorizontalPadding:Q,disableVerticalPadding:p,forceSmallLayout:l,useResponsiveLayout:q,isOverlay:u,isInteractive:function(){return!!_.nG(Z().rendererContext)},
onClick:function(B){if(_.Vt(Z().rendererContext)){var t=_.nG(Z().rendererContext);t&&_.fX(t,{form:{element:B.target,event:B}})}},
bottomAccessory:function(){return _.J(_.SP,{data:function(){return Z().bottomAccessory}},{descriptionPreviewViewModel:function(B){return _.J(_.f5,{data:B.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!Z().bottomAccessory},
useUpdatedPadding:G}))},"dd");
LMR=_.y(function(G){var H=G.leadingAccessory;return _.J(_.kI,null,_.J(_.k,{cond:function(){var Z;return(Z=H().image)!=null?Z:_.zk(H().themedImage)},
then:function(Z){return _.J(_.ib,{data:Z,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.J(_.k,{cond:function(){return _.X(H().avatar,_.Xu)},
then:function(Z){return _.J(_.m9,{data:Z})}}))},"ed");
A2G=_.y(function(G){var H=G.data;return _.J(_.kI,null,_.J(_.k,{cond:function(){return _.X(H().bottomBadge,l97)},
then:function(Z){var Q={};return _.J(_.tz,{data:Z,class:_.bb((Q.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!Z()&&!!H().sublabel},Q))})}}),_.J(_.k,{cond:function(){return H().sublabel},
then:function(Z){return _.J(_.Fe,{text:Z})}}))},"fd");
x0t=_.y(function(G){var H=G.data;return _.J(_.kI,null,_.J(_.k,{cond:function(){return _.X(H().topBadge,l97)},
then:function(Z){var Q={};return _.J(_.tz,{data:Z,class:_.bb((Q.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!Z()&&!!H().superlabel},Q))})}}),_.J(_.k,{cond:function(){return H().superlabel},
then:function(Z){return _.J(_.Fe,{text:Z})}}))},"gd");_.RX(_.v_,"yt-section-header-view-model",{props:{data:_.b3,className:_.b3,disableHorizontalPadding:_.b3,disableVerticalPadding:_.b3,forceSmallLayout:_.b3,useResponsiveLayout:_.b3,isOverlay:_.b3,useUpdatedPadding:_.b3}});_.eQ("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var W_=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return G};
_.T(W_,_.C);_.g=W_.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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"}}}};
_.g.onDataChange=function(){var G=this;_.q2(this,function(){G.updateItemVisibility()})};
_.g.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G,this.updateItemVisibility())};
_.g.updateItemVisibility=function(){var G=this;this.data&&this.data.panels&&_.F9(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(H,Z){H.hidden=Z>G.elementsPerRow-1})};
_.g.requestElementsPerRow=function(){_.N5(this.hostElement,"yt-request-elements-per-row")};
W_.prototype.onDataChange=W_.prototype.onDataChange;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],W_.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],W_.prototype,"actionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],W_.prototype,"data",void 0);_.N([_.h({value:3}),_.A("design:type",Number)],W_.prototype,"elementsPerRow",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],W_.prototype,"onDataChange",null);_.N([_.O({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],W_);
_.m(W_,"ytd-primetime-promo-renderer",function(){if(U0d!==void 0)return U0d;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return U0d=G},{mode:1});var Ema;var zK=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return G};
_.T(zK,_.C);zK.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
zK.prototype.handleButtonRefreshAction=function(G){if(G=_.X(G,TKR))this.set("data.button",G.membershipButton),this.notifyPath("data.button")};
_.u4.Object.defineProperties(zK.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:(H=G.avatars)==null?void 0:H.slice(0,8))||[]}}});
_.N([_.h(),_.A("design:type",Object)],zK.prototype,"data",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],zK.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zK.prototype,"rendererBehavior",void 0);_.N([_.z("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],zK.prototype,"avatars",null);
_.N([_.O({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],zK);
_.m(zK,"ytd-recognition-shelf-renderer",function(){if(Ema!==void 0)return Ema;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ema=G},{mode:1});var YCR;var FMR;var K5=function(){var G=_.C.apply(this,arguments)||this;G.modernButtons=_.V("web_modern_buttons");return G};
_.T(K5,_.C);_.g=K5.prototype;
_.g.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]]"}}}}}};
_.g.dataChanged=function(){this.collapsed=!0};
_.g.computeVisibleItems=function(G,H){return G!==void 0&&G.items?H?G.items.slice(0,this.data.collapsedItemCount):G.items:[]};
_.g.computeHideShowMore=function(G,H,Z){return G>=H||!Z};
_.g.computeHideShowAll=function(G,H,Z){return!(G&&H)||Z};
_.g.onMoreClick=function(){this.collapsed=!1};
_.u4.Object.defineProperties(K5.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.V("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.n$("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.V("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
K5.prototype.dataChanged=K5.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],K5.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],K5.prototype,"isSearch",void 0);
_.N([_.h({computed:"computeVisibleItems(data,collapsed)"}),_.A("design:type",Array)],K5.prototype,"visibleItems",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],K5.prototype,"collapsed",void 0);_.N([_.h({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.A("design:type",Boolean)],K5.prototype,"hideShowMore",void 0);
_.N([_.h({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.A("design:type",Boolean)],K5.prototype,"hideShowAll",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],K5.prototype,"modernButtons",void 0);_.N([_.z("isSearch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],K5.prototype,"typographyBump",null);
_.N([_.z("isSearch"),_.A("design:type",Object),_.A("design:paramtypes",[])],K5.prototype,"lockupExperiments",null);_.N([_.z("isSearch"),_.A("design:type",String),_.A("design:paramtypes",[])],K5.prototype,"thumbnailWidth",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],K5.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],K5);
_.m(K5,"ytd-vertical-list-renderer",function(){if(FMR!==void 0)return FMR;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return FMR=G},{mode:1});var bx2=_.CM(["#"]);_.eQ("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var MR=function(){var G=_.C.apply(this,arguments)||this;G.isConstrainedList=!1;return G};
_.T(MR,_.C);_.g=MR.prototype;
_.g.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"}}}};
_.g.computeThumbnailStyle=function(G){return G||""};
_.g.computePlaceAnnotationUnderTitle=function(){var G;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((G=this.data)==null?void 0:G.thumbnailStyle)||"")};
_.g.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G)||_.gb2(bx2)};
_.g.computeIsPromoShelf=function(G){var H;return(G=G==null?void 0:(H=G[0])==null?void 0:H.metadataBadgeRenderer)?G.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.g.computePlaceBadgeBesideTitle=function(G){var H;return(G==null?0:(H=G[0])==null?0:H.metadataBadgeRenderer)?!this.computeIsPromoShelf(G):!1};
_.g.computeMenuIcon=function(G){return this.computeIsPromoShelf(G)?"yt-icons:more_vert":"yt-icons:more"};
_.g.onDataChange=function(){var G,H;((G=this.data)==null?0:(H=G.content)==null?0:H.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.g.onLockupRequested=function(G){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&G.detail&&G.detail.videoIds){for(var H=this.data.content.gridRenderer.items,Z=new Set,Q=_.I(G.detail.videoIds),p=Q.next();!p.done;p=Q.next())Z.add(p.value);G.detail.returnValue=H.filter(function(l){return l.gridVideoRenderer&&l.gridVideoRenderer.videoId&&Z.has(l.gridVideoRenderer.videoId)}).map(function(l){return l.gridVideoRenderer})}};
_.g.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
MR.prototype.onLockupRequested=MR.prototype.onLockupRequested;MR.prototype.onDataChange=MR.prototype.onDataChange;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],MR.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],MR.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.hS),_.A("design:type",Object)],MR.prototype,"ironResizableBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],MR.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],MR.prototype,"isSearch",void 0);_.N([_.h(),_.A("design:type",Object)],MR.prototype,"isConstrainedList",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("kevlar_fluid_dismiss")}}),
_.A("design:type",Boolean)],MR.prototype,"enableFluidDismiss",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.A("design:type",String)],MR.prototype,"thumbnailStyle",void 0);_.N([_.h({computed:"computeMenuIcon(data.badges)"}),_.A("design:type",String)],MR.prototype,"menuIcon",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.A("design:type",Boolean)],MR.prototype,"featuredPromo",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MR.prototype,"onDataChange",null);_.N([_.lq("yt-lockup-requested"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],MR.prototype,"onLockupRequested",null);_.N([_.O({is:"ytd-shelf-renderer",disableElementRegistration:!0})],MR);
_.m(MR,"ytd-shelf-renderer",function(){if(YCR!==void 0)return YCR;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YCR=G},{mode:1});var GCw;var jf=function(){return _.C.apply(this,arguments)||this};
_.T(jf,_.C);jf.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.u4.Object.defineProperties(jf.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],jf.prototype,"data",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],jf.prototype,"isPlaylist",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],jf.prototype,"isClipList",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],jf.prototype,"isPlaylistPageWithFilters",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],jf.prototype,"hasTitle",null);_.N([_.h(),_.z("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.A("design:type",Object),_.A("design:paramtypes",[])],jf.prototype,"isRightAligned",null);
_.N([_.O({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],jf);
_.m(jf,"ytd-sort-filter-header-renderer",function(){if(GCw!==void 0)return GCw;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return GCw=G},{mode:1});var Hkt;var P_=function(){var G=_.C.apply(this,arguments)||this;G.enableRightArrowHidden=_.V("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return G};
_.T(P_,_.C);P_.prototype.attached=function(){var G=this;this.enableRightArrowHidden&&(this.JSC$16537_throttledOnResize=new _.Zo(function(){var H;(H=G.ytdHorizontalListBehavior)==null||H.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var H;
(H=G.JSC$16537_throttledOnResize)==null||H.fire()}),this.resizeObserver.observe(this.hostElement))};
P_.prototype.detached=function(){if(this.enableRightArrowHidden){var G;(G=this.resizeObserver)==null||G.disconnect();var H;(H=this.JSC$16537_throttledOnResize)==null||H.dispose()}};
P_.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]]"}}}}}};
P_.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.u4.Object.defineProperties(P_.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.V("enable_creator_details_shelf_m2")){var G=[],H;((H=this.data)==null?0:H.creatorVideosButton)&&G.push(this.data.creatorVideosButton);var Z;((Z=this.data)==null?0:Z.creatorAboutButton)&&G.push(this.data.creatorAboutButton);H=_.I(this.data.creatorCustomUrlButtons||[]);for(Z=H.next();!Z.done;Z=H.next())G.push(Z.value);return G}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.V("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],P_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.uU.YtdHorizontalListBehavior),_.A("design:type",Object)],P_.prototype,"ytdHorizontalListBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],P_.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],P_.prototype,"engagementPanel",void 0);
_.N([_.h(),_.A("design:type",Object)],P_.prototype,"enableRightArrowHidden",void 0);_.N([_.z("enableRightArrowHidden","atEnd"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],P_.prototype,"hideRightArrow",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],P_.prototype,"creatorCustomUrlButtons",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data","creatorCustomUrlButtons"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],P_.prototype,"showCreatorCustomUrlButtons",null);_.N([_.z("showCreatorCustomUrlButtons"),_.A("design:type",Number),_.A("design:paramtypes",[])],P_.prototype,"channelAvatarSize",null);_.N([_.O({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],P_);
_.m(P_,"ytd-video-description-infocards-section-renderer",function(){if(Hkt!==void 0)return Hkt;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Hkt=G},{mode:_.LH("kevlar_poly_si_batch_j067")?1:2});var sFN;var r$=function(){return _.C.apply(this,arguments)||this};
_.T(r$,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],r$.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.infoIcon)"}),_.A("design:type",Object)],r$.prototype,"infoIcon",void 0);_.N([_.O({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],r$);
_.m(r$,"ytd-eom-settings-disclaimer-renderer",function(){if(sFN!==void 0)return sFN;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return sFN=G},{mode:1});var Zkx;var w$=function(){return _.C.apply(this,arguments)||this};
_.T(w$,_.C);_.u4.Object.defineProperties(w$.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.suppressPaddingDisclaimer)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],w$.prototype,"componentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],w$.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],w$.prototype,"suppressPaddingDisclaimer",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],w$);
_.m(w$,"ytd-product-list-header-renderer",function(){if(Zkx!==void 0)return Zkx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Zkx=G},{mode:1});var QFR;var h7=function(){return _.C.apply(this,arguments)||this};
_.T(h7,_.C);h7.prototype.computeThumbnailStyle=function(G){if(G&&(G=_.X9(G)))return"background-color:"+G+";"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],h7.prototype,"rendererBehaviors",void 0);_.N([_.h(),_.A("design:type",Object)],h7.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],h7);
_.m(h7,"ytd-hashtag-tile-renderer",function(){if(QFR!==void 0)return QFR;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return QFR=G},{mode:1});var pza;var C5=function(){return _.C.apply(this,arguments)||this};
_.T(C5,_.C);C5.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}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],C5.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],C5);
_.m(C5,"ytd-sponsorships-alert-renderer",function(){if(pza!==void 0)return pza;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pza=G},{mode:1});var lWw;var iR=function(){return _.C.apply(this,arguments)||this};
_.T(iR,_.C);iR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.u4.Object.defineProperties(iR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.N([_.v(_.NH),_.A("design:type",Object)],iR.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],iR.prototype,"ytdLockupBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.N([_.h({selector:_.T3}),_.A("design:type",Object)],iR.prototype,"isGridViewEnabled",void 0);
_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],iR.prototype,"watchFeedBigThumbs",null);_.N([_.z("isGridViewEnabled"),_.h({reflectToAttribute:!0}),_.A("design:type",String),_.A("design:paramtypes",[])],iR.prototype,"thumbnailWidth",null);_.N([_.h(),_.A("design:type",Object)],iR.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],iR);
_.m(iR,"ytd-compact-movie-renderer",function(){if(lWw!==void 0)return lWw;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return lWw=G},{mode:1});var gSR;var IWT;var qow=_.xI("HTML_DIR")==="rtl",OE=function(){var G=_.C.apply(this,arguments)||this;G.engagementPanel=!1;G.maxLines=2;G.expandButtonOffset=0;G.showExpandButton=!1;G.isTruncated=!1;G.isExpanded=!1;G.currentSnippetType=2;G.alwaysShowExpandButton=!1;G.JSC$16554_lastWidth=NaN;G.observer=null;G.left=0;G.right=0;G.mid=0;G.longestSnippetLength=0;G.isFinalSnippet=!1;G.isFirstMutation=!1;G.isResetMutation=!1;G.OVERFLOW_THRESHOLD=5;return G};
_.T(OE,_.C);_.g=OE.prototype;_.g.onClick=function(G){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.OO(_.OD(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;if((H=window.getSelection())==null||!H.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.g.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.g.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.g.updateTextOnSnippetTypeChange=function(){_.V("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.g.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.g.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Rp(new _.C$("AttributedSnippet is empty when the description is not empty",this.text))};
_.g.mutationCallback=function(){if(this.observer!=null){var G=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var H=Math.floor(G*this.maxLines/8);this.setSnippetText(this.text,H);H!==0||this.attributedTextIsEmpty()||_.Rp(new _.C$("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;G=G*this.maxLines/8;this.left=0;var Z;this.right=Math.min(G*2,(Z=(H=this.simpleText)==null?void 0:H.length)!=null?Z: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)}}};
_.g.mutationObserve=function(G){var H=this;this.observer||(this.observer=new MutationObserver(function(){H.mutationCallback()}));
this.observer.observe(G,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.g.attached=function(){var G=this;_.q2(this,function(){G.resize()})};
_.g.isExpandedChanged=function(){_.N5(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.g.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)};
_.g.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var G="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((qow?"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",G);this.snippetContainer.style.setProperty("mask-image",
G)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(qow?"right":"left",this.expandButtonOffset+"px")};
_.g.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.g.setSnippetText=function(G,H){G||(G={});if(_.wr(G)){var Z=PT(G,H);Z.attachmentRuns||Z.commandRuns||Z.decorationRuns||Z.styleRuns||Z.alignment||Z.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:PT(G,H),headerRuns:Csu(H,this.headerRuns)},this.currentSnippetType=0):_.Rp(new _.C$("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=M$(G.content||"",H),this.currentSnippetType=2)}else{a:{Z=c1u(G,H);if(Z.runs){Z=_.I(Z.runs);for(var Q=
Z.next();!Q.done;Q=Z.next())if(Q=Q.value,Q.bold||Q.deemphasize||Q.italics||Q.strikethrough||Q.textColor||Q.navigationEndpoint||_.X(Q,$C)){Z=!0;break a}}Z=!1}Z?this.formattedSnippetText?(this.formattedSnippetText.text=c1u(G,H),this.currentSnippetType=1):_.Rp(new _.C$("Tried to set snippet text when HTML element was null",G)):(this.plainSnippetText.textContent=M$(_.yn(G),H),this.currentSnippetType=2)}};
_.g.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.g.attributedTextIsEmpty=function(){var G=this.text;if(!_.wr(G))return!0;var H;return((H=G.content)==null?void 0:H.length)===0?!0:!1};
_.g.resize=function(G){if(this.snippetText){if(G===void 0?0:G)this.JSC$16554_lastWidth=NaN;var H=this.hostElement.offsetWidth;if(H!==this.JSC$16554_lastWidth&&!this.isExpanded)if(this.JSC$16554_lastWidth=H,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;G=0;var Z,Q;H=Math.min(H*this.maxLines/8*2,(Q=(Z=this.simpleText)==null?void 0:Z.length)!=null?Q:0)-1;for(Z=0;G<=H;)Q=Math.floor(G+(H-G)/2),this.setSnippetText(this.text,Q),this.isOverflowing()?H=Q-1:(G=Q+1,Z=Q);this.setSnippetText(this.text,Z);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.g.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.g.onExpandClick=function(){var G=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.V("inline_expander_reset_focus_killswitch")||_.q2(this,function(){var H;((H=_.tp().resolve(_.Jp(_.qZ)))==null?0:H.isKeyBoardInUse())&&_.pT(G.hostElement)});
_.N5(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.g.onCollapseClick=function(){this.collapse();_.N5(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.g.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.g.computeExpandButtonOffset=function(){var G=this.expandSizer;return G?qow?G.offsetParent?G.offsetParent.offsetWidth-G.offsetWidth-G.offsetLeft:0:G.offsetLeft:0};
_.u4.Object.defineProperties(OE.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.wr(this.text)?this.text.content||"":_.yn(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 _.wr(this.text)?!0:this.text&&_.V("web_replace_formatted_with_attributed_string")&&Isf(this.text)?(this.text=_.Vw(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}}});
OE.prototype.onTextChanged=OE.prototype.onTextChanged;OE.prototype.updateMaskAndExpandButtonOffset=OE.prototype.updateMaskAndExpandButtonOffset;OE.prototype.updateSnippetContainerMaxHeight=OE.prototype.updateSnippetContainerMaxHeight;OE.prototype.isExpandedChanged=OE.prototype.isExpandedChanged;OE.prototype.updateTextOnSnippetTypeChange=OE.prototype.updateTextOnSnippetTypeChange;OE.prototype.updateIsFormattedExpanded=OE.prototype.updateIsFormattedExpanded;OE.prototype.updateIsAttributedExpanded=OE.prototype.updateIsAttributedExpanded;
OE.prototype.onClick=OE.prototype.onClick;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],OE.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],OE.prototype,"text",void 0);_.N([_.h(),_.A("design:type",Array)],OE.prototype,"headerRuns",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],OE.prototype,"engagementPanel",void 0);_.N([_.h(),_.A("design:type",Object)],OE.prototype,"maxLines",void 0);
_.N([_.h(),_.A("design:type",String)],OE.prototype,"expandLabel",void 0);_.N([_.h(),_.A("design:type",String)],OE.prototype,"collapseLabel",void 0);_.N([_.h(),_.A("design:type",Object)],OE.prototype,"expandCommand",void 0);_.N([_.h(),_.A("design:type",Object)],OE.prototype,"expandButtonOffset",void 0);_.N([_.z("text"),_.A("design:type",String),_.A("design:paramtypes",[])],OE.prototype,"simpleText",null);
_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],OE.prototype,"onClick",null);_.N([_.z("text","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],OE.prototype,"expandedText",null);_.N([_.z("headerRuns","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],OE.prototype,"expandedHeaderRuns",null);
_.N([_.z("text"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],OE.prototype,"hasAttributedStringText",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],OE.prototype,"showExpandButton",void 0);_.N([_.z("collapseLabel","isExpanded"),_.A("design:type",Object),_.A("design:paramtypes",[])],OE.prototype,"showCollapseButton",null);_.N([_.h(),_.A("design:type",Object)],OE.prototype,"isTruncated",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],OE.prototype,"isExpanded",void 0);_.N([_.h(),_.A("design:type",Boolean)],OE.prototype,"isAttributedExpanded",void 0);_.N([_.gx("isExpanded","hasAttributedStringText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OE.prototype,"updateIsAttributedExpanded",null);_.N([_.h(),_.A("design:type",Boolean)],OE.prototype,"isFormattedExpanded",void 0);
_.N([_.gx("isExpanded","hasAttributedStringText"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OE.prototype,"updateIsFormattedExpanded",null);_.N([_.h(),_.A("design:type",Number)],OE.prototype,"currentSnippetType",void 0);_.N([_.z("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],OE.prototype,"useAttributedSnippet",null);
_.N([_.z("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],OE.prototype,"useFormattedSnippet",null);_.N([_.z("currentSnippetType"),_.A("design:type",Object),_.A("design:paramtypes",[])],OE.prototype,"usePlainSnippet",null);_.N([_.h(),_.A("design:type",Object)],OE.prototype,"alwaysShowExpandButton",void 0);_.N([_.gx("currentSnippetType"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OE.prototype,"updateTextOnSnippetTypeChange",null);
_.N([_.h(),_.A("design:type",Object)],OE.prototype,"attributedSnippetText",void 0);_.N([_.q6("#snippet"),_.A("design:type",HTMLElement)],OE.prototype,"snippetContainer",void 0);_.N([_.q6("#snippet-text"),_.A("design:type",HTMLElement)],OE.prototype,"snippetText",void 0);_.N([_.q6("#plain-snippet-text"),_.A("design:type",HTMLElement)],OE.prototype,"plainSnippetText",void 0);_.N([_.q6("#formatted-snippet-text"),_.A("design:type",Object)],OE.prototype,"formattedSnippetText",void 0);
_.N([_.q6("#attributed-snippet-text"),_.A("design:type",Object)],OE.prototype,"attributedSnippetTextEl",void 0);_.N([_.q6("#expand"),_.A("design:type",HTMLElement)],OE.prototype,"expandButton",void 0);_.N([_.q6("#expand-sizer"),_.A("design:type",HTMLElement)],OE.prototype,"expandSizer",void 0);_.N([_.Jv("isExpanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OE.prototype,"isExpandedChanged",null);
_.N([_.gx("isExpanded","maxLines"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OE.prototype,"updateSnippetContainerMaxHeight",null);_.N([_.gx("isTruncated","showExpandButton","expandButtonOffset"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OE.prototype,"updateMaskAndExpandButtonOffset",null);
_.N([_.Jv("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OE.prototype,"onTextChanged",null);_.N([_.O({is:"ytd-text-inline-expander",disableElementRegistration:!0})],OE);
_.m(OE,"ytd-text-inline-expander",function(){if(IWT===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);IWT=G}G=IWT;return G},{mode:2});var aw=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return G};
_.T(aw,_.C);aw.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
aw.prototype.handleUpdateDescriptionAction=function(G){if(G=_.X(G,_.rix))if(G.attributedDescription)this.set("data.attributedDescriptionBodyText",G.attributedDescription);else if(G.description){var H;((H=this.data)==null?0:H.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Vw(G.description)):this.set("data.descriptionBodyText",G.description)}};
_.u4.Object.defineProperties(aw.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null||!G.attributedDescriptionBodyText)||!((H=this.data)==null||!H.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.collapsedLineCount){var H;return(H=this.data)==null?void 0:H.collapsedLineCount}G=_.eA("web_watch_description_collapsed_default_lines",12);if(_.V("ww_desc_line_page_size_ks"))return G;H=Math.round(_.SX().height*_.eA("web_watch_description_screen_height_percentage",.5)/20);return Math.max(H,G)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return(Z=(G=this.data)==null?void 0:G.descriptionBodyText)!=null?Z:(H=this.data)==null?void 0:H.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.sourceAttributions}}});
aw.prototype.panelContentVisibleChanged=aw.prototype.panelContentVisibleChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],aw.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],aw.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],aw.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Boolean)],aw.prototype,"panelContentVisible",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],aw.prototype,"engagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],aw.prototype,"shortsPanel",void 0);_.N([_.q6("#inline-expander"),_.A("design:type",Object)],aw.prototype,"inlineExpander",void 0);
_.N([_.gx("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aw.prototype,"panelContentVisibleChanged",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],aw.prototype,"hasDescriptionText",null);_.N([_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],aw.prototype,"collapsedLines",null);
_.N([_.z("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.A("design:type",Object),_.A("design:paramtypes",[])],aw.prototype,"descriptionText",null);_.N([_.z("data","data.headerRuns"),_.A("design:type",Object),_.A("design:paramtypes",[])],aw.prototype,"headerRuns",null);_.N([_.z("data","data.sourceAttributions"),_.A("design:type",Object),_.A("design:paramtypes",[])],aw.prototype,"sourceAttributions",null);
_.N([_.O({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],aw);
_.m(aw,"ytd-expandable-video-description-body-renderer",function(){if(gSR!==void 0)return gSR;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return gSR=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var So2;var upw=_.y(function(G){var H=G.data;return _.J("factoid-renderer",{class:"ytwFactoidRendererHost"},_.J("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return H().accessibilityText}},_.J("span",{class:"ytwFactoidRendererValue"},_.J(_.Fe,{text:function(){return H().value}})),_.J("span",{class:"ytwFactoidRendererLabel"},_.J(_.Fe,{text:function(){return H().label}}))))},"hd");_.RX(upw,"factoid-renderer",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;return _.J("upload-time-factoid-renderer",null,_.J(_.SP,{data:function(){return H().factoid}},{factoidRenderer:upw}))},"id"),"upload-time-factoid-renderer",{props:{data:_.oX}});_.RX(_.y(function(G){var H=G.data;return _.J("view-count-factoid-renderer",null,_.J(_.SP,{data:function(){return H().factoid}},{factoidRenderer:upw}))},"jd"),"view-count-factoid-renderer",{props:{data:_.oX}});var yC=function(){var G=_.C.apply(this,arguments)||this;G.shortsPanel=!1;G.engagementPanel=!1;G.watchWhileSdp=_.V("shorts_desktop_watch_while_sdp");return G};
_.T(yC,_.C);yC.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"}}}}};
_.u4.Object.defineProperties(yC.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var G;return(G=this.data)==null?void 0:G.channel}}});
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],yC.prototype,"componentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],yC.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yC.prototype,"shortsPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yC.prototype,"engagementPanel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],yC.prototype,"watchWhileSdp",void 0);_.N([_.z("shortsPanel","engagementPanel","data.channel"),_.A("design:type",Object),_.A("design:paramtypes",[])],yC.prototype,"showChannelInfo",null);_.N([_.O({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],yC);
_.m(yC,"ytd-video-description-header-renderer",function(){if(So2!==void 0)return So2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return So2=G},{mode:1});var Be2;var ow=function(){return _.C.apply(this,arguments)||this};
_.T(ow,_.C);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],ow.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],ow.prototype,"noPadding",void 0);_.N([_.h(),_.A("design:type",Object)],ow.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],ow);
_.m(ow,"ytd-list-item-view-model",function(){if(Be2!==void 0)return Be2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Be2=G},{mode:1});var Jma;var t6t;var kCa;var Dex;var mE=function(){var G=_.C.apply(this,arguments)||this;G.adaptiveFullWidth=!1;G.modernButtons=_.V("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return G};
_.T(mE,_.C);mE.prototype.handleSetTimestamp_=function(G){this.data&&this.data.shortUrl&&(_.F9(this.hostElement).querySelector("#share-url").value=G.isSet?_.yO(this.data.shortUrl,"t",G.timestamp):this.data.shortUrl)};
mE.prototype.handleSignalActionCopyShareUrl_=function(G,H){(_.V("killswitch_copy_link_target_check")||_.F9(this.hostElement).querySelector("#copy-button")===H)&&this.copyUrlToClipboard()};
mE.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.F9(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
mE.prototype.computeStyle_=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],mE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],mE.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.A("design:type",String)],mE.prototype,"rendererStyle",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],mE.prototype,"adaptiveFullWidth",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],mE.prototype,"modernButtons",void 0);_.N([_.h(),_.A("design:type",Object)],mE.prototype,"buttonOverrides",void 0);_.N([_.fH({is:"yt-copy-link-renderer",disableElementRegistration:!0})],mE);
_.m(mE,"yt-copy-link-renderer",function(){if(Dex===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;kCa===void 0&&(kCa=document.createElement("template"));var Q=kCa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Dex=G}G=Dex;return G},{mode:2});_.eQ("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var UE=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return G};
_.T(UE,_.C);_.g=UE.prototype;_.g.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.g.attached=function(){this.keyboardFocused=!1};
_.g.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var G=_.tp().resolve(_.Jp(_.qZ));G&&(this.keyboardFocused=G.isKeyBoardInUse())}};
_.g.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.g.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}};
_.g.onChange_=function(){if(this.data){var G=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;G&&this.ytComponentBehavior.resolveCommand(G);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.g.handleUpdateToggleAction_=function(G){(G=_.X(G,Y4t))&&this.data&&G.targetId==this.data.targetId&&this.set("data.toggled",G.toggled)};
_.g.toBoolean_=function(G){return!!G};
_.g.reset=function(){};
_.g.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("data-changed",this.data))};
_.g.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
UE.prototype.dataChangedForBinding=UE.prototype.dataChangedForBinding;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],UE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],UE.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],UE.prototype,"data",void 0);_.N([_.h({computed:"computeDescription_(data.*)"}),_.A("design:type",Object)],UE.prototype,"description_",void 0);_.N([_.h({value:function(){return!!_.tp().resolve(_.Jp(_.qZ))&&_.V("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.A("design:type",Boolean)],UE.prototype,"useKeyboardFocused",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],UE.prototype,"keyboardFocused",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UE.prototype,"dataChangedForBinding",null);_.N([_.fH({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],UE);
_.m(UE,"yt-toggle-form-field-renderer",function(){if(t6t===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Jma===void 0&&(Jma=document.createElement("template"));var Q=Jma;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);t6t=G}G=t6t;return G},{mode:2});var dea;var eTa;var Rw=function(){var G=_.C.apply(this,arguments)||this;G.isDarkTheme=!1;G.isSearch=!1;G.noTopMargin=_.V("kevlar_watch_no_top_margin");G.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 G};
_.T(Rw,_.C);_.g=Rw.prototype;_.g.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}}}}}};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.g.dataChanged=function(){var G=this.getSelectedIndex();if(G>0)this.selected=G;else{this.selected=0;var H,Z;(H=this.ytScrollableChipCloudBehavior)==null||(Z=H.reset)==null||Z.call(H)}};
_.g.getSelectedIndex=function(){var G;if((G=this.data)==null||!G.chips)return-1;G=-1;for(var H,Z=0;Z<((H=this.data)==null?void 0:H.chips.length);Z++){var Q=void 0,p=void 0;if((Q=this.data)==null?0:(p=Q.chips[Z].chipCloudChipRenderer)==null?0:p.isSelected){G=Z;break}}return G};
_.g.onResize=function(){var G=this.ytScrollableChipCloudBehavior;_.q2(G,G.setContainerWidthDiff);G=this.ytScrollableChipCloudBehavior;_.q2(G,G.setButtonsState)};
_.g.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.g.handleRelatedChipCommand=function(G,H){G=this.JSC$16581_chipsSelector.indexOf(H);G!==-1&&this.JSC$16581_chipsSelector.selectIndex(G)};
_.g.handleChipCloudChipSelectAction=function(G){G=this.JSC$16581_chipsSelector.indexOf(G);G>-1&&this.JSC$16581_chipsSelector.selectIndex(G)};
_.g.handleChipCloudChipDeselectAction=function(){var G=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16581_chipsSelector&&((G==null?0:G.continuationCommand)?_.L9(this.hostElement,[G]):(G==null?0:G.searchEndpoint)?this.ytComponentBehavior.resolveCommand(G):G&&_.El(this.hostElement,[G],this.hostElement),this.JSC$16581_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.g.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
Rw.prototype.onResize=Rw.prototype.onResize;Rw.prototype.dataChanged=Rw.prototype.dataChanged;Rw.prototype.isSearchChanged=Rw.prototype.isSearchChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Rw.prototype,"actionHandlerBehavior",void 0);
_.N([_.v(_.hS),_.A("design:type",Object)],Rw.prototype,"ironResizableBehavior",void 0);_.N([_.v(),_.A("design:type",c6)],Rw.prototype,"ytScrollableChipCloudBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Rw.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Rw.prototype,"data",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Rw.prototype,"selected",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Rw.prototype,"isDarkTheme",void 0);_.N([_.h({value:160}),_.A("design:type",Number)],Rw.prototype,"scrollDistance",void 0);_.N([_.h(),_.A("design:type",Object)],Rw.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Rw.prototype,"noTopMargin",void 0);_.N([_.q6("#chips"),_.A("design:type",Object)],Rw.prototype,"JSC$16581_chipsSelector",void 0);
_.N([_.gx("isSearch"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rw.prototype,"isSearchChanged",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rw.prototype,"dataChanged",null);_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rw.prototype,"onResize",null);_.N([_.fH({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Rw);
_.m(Rw,"yt-chip-cloud-renderer",function(){if(eTa===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;dea===void 0&&(dea=document.createElement("template"));var Q=dea;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);eTa=G}G=eTa;return G},{mode:2});var nSG,V6G=function(){return nSG!==void 0?nSG:nSG=document.createElement("template")};
document.head.appendChild(V6G().content);var $ep;var Xza=document.head,cmx=Xza.appendChild,Tex;if($ep===void 0){var fWN=document.createElement("template");_.f(fWN,"");fWN.content.insertBefore(V6G().content.cloneNode(!0),fWN.content.firstChild);$ep=fWN}Tex=$ep;cmx.call(Xza,Tex.content);var vSw=_.y(function(G){var H=G.data;return _.J("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.J("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.J("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.J(_.k,{cond:function(){return _.zk(H().image)},
then:function(Z){return _.J("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.J(_.ib,{data:Z,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.J("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.J(_.Fe,{text:function(){return H().subtitle}})))),_.J(_.k,{cond:function(){var Z;
return(Z=H())==null?void 0:Z.hasBottomDivider},
then:function(){return _.J("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"kd");var WZN=_.y(function(G){var H=G.data;return _.J("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.J("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.J(_.SP,{data:function(){var Z;return(Z=H().offerPlanDetailsItem)!=null?Z:[]}},{offerPlanDetailsItemViewModel:function(Z){return _.J("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.J(vSw,{data:Z.data}))}})),_.J("div",null,_.J(_.k,{cond:function(){return H().hasBottomDivider},
then:function(){return _.J("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.J("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.J("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.J("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.J("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"ld");var zT4=_.y(function(G){var H=G.data;G=_.I(_.Ty(!1,void 0,"MrXxy"));var Z=G.next().value,Q=G.next().value,p=_.Hh(function(){Q(!Z());return!1}),l=function(){var q;
return(q=H().offerPlanDetailsContainer)!=null?q:[]};
return _.J("lp-complex-offer-card-details-view-model",null,_.J("div",null,_.J(_.k,{cond:function(){return Z()},
then:function(){return _.J("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.J("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":p,"aria-expanded":Z},_.J(_.Fe,{text:function(){return H().expandedTitle}})),_.J("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.J(_.SP,{data:l},{offerPlanDetailsContainerViewModel:function(q){return _.J("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.J(WZN,{data:q.data}))}})),_.J("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.J(_.Fe,{text:function(){return H().legalText}})))},
else:function(){return _.J("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":p,"aria-expanded":Z},_.J(_.Fe,{text:function(){return H().collapsedTitle}}),_.J("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.J(_.ll,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"md");var KZR=_.y(function(G){var H=G.data;return _.J("lp-complex-offer-card-option-view-model",null,_.J("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.J(_.k,{cond:function(){return H().topDividerText},
then:function(){return _.J("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.J("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.J("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.J("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.J(_.Fe,{text:function(){return H().topDividerText}}))))}}),_.J(_.k,{cond:function(){return H().description},
then:function(){return _.J("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.J(_.Fe,{text:function(){return H().description}}))}}),_.J(_.k,{cond:function(){return H().planPricingPrimary},
then:function(){return _.J("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.J(_.Fe,{text:function(){return H().planPricingPrimary}}))}}),_.J(_.k,{cond:function(){return H().planPricingSecondary},
then:function(){return _.J("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.J(_.Fe,{text:function(){return H().planPricingSecondary}}))}}),_.J(_.k,{cond:function(){return H().primaryButton},
then:function(){return _.J("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.J(_.SP,{data:function(){return H().primaryButton}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"nd");var M6p=_.y(function(G){var H=G.data;var Z=function(){var l;return((l=H())==null?void 0:l.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var Q={},p={};return _.J("ytm-lp-complex-offer-card-view-model",null,_.J("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.J("div",{class:_.bb((G.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=Z,G),"ytmLpComplexOfferCardViewModelCardContainer")},_.J(_.k,{cond:function(){var l;return(l=H())==null?void 0:l.bannerText},
then:function(){return _.J("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.J("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.J(_.Fe,{text:function(){return H().bannerText}})))}}),_.J(_.k,{cond:function(){return _.zk(H().logo)},
then:function(l){var q={};return _.J("div",{class:_.bb((q.ytmLpComplexOfferCardViewModelLogoAlignLeft=Z,q),"ytmLpComplexOfferCardViewModelLogo")},_.J(_.ib,{data:l,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.J("div",{class:_.bb((Q.ytmLpComplexOfferCardViewModelTitleAlignLeft=Z,Q),"ytmLpComplexOfferCardViewModelTitle")},_.J(_.Fe,{text:function(){return H().title}})),_.J(_.k,{cond:function(){var l;
return(l=H())==null?void 0:l.subtitle},
then:function(){var l={};return _.J("div",{class:_.bb((l.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=Z,l),"ytmLpComplexOfferCardViewModelSubtitle")},_.J(_.Fe,{text:function(){return H().subtitle}}))}}),_.J(_.k,{cond:function(){return H().planPricingPrimary},
then:function(){return _.J("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.J(_.Fe,{text:function(){return H().planPricingPrimary}}))}}),_.J(_.k,{cond:function(){return H().planPricingSecondary},
then:function(){return _.J("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.J(_.Fe,{text:function(){return H().planPricingSecondary}}))}}),_.J(_.k,{cond:function(){return H().purchaseButton},
then:function(){return _.J("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.J(_.SP,{data:function(){return H().purchaseButton}},{buttonViewModel:function(l){return _.J(_.kg,{data:l.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.J(_.k,{cond:function(){var l;
return(l=H())==null?void 0:l.offerOptions},
then:function(){return _.J("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.J(_.SP,{data:function(){return H().offerOptions}},{lpComplexOfferCardOptionViewModel:KZR}))}}),_.J("div",{class:_.bb((p.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=Z,p),"ytmLpComplexOfferCardViewModelLegalText")},_.J(_.Fe,{text:function(){return H().legalText}})),_.J(_.k,{cond:function(){var l;
return(l=H())==null?void 0:l.offerCardDetails},
then:function(){return _.J("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.J(_.SP,{data:function(){return H().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:zT4}))}}))))},"od");var jFN=_.y(function(G){var H=G.data;var Z=function(){var q;return((q=H())==null?void 0:q.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
G={};var Q={},p={},l={};return _.J("ytm-lp-complex-offer-card-section-view-model",null,_.J("div",{class:_.bb("ytmLpComplexOfferCardSectionViewModelHost")},_.J("div",{class:_.bb((G.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=Z,G),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.J("div",{class:_.bb((Q.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=Z,Q),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.J("h2",{class:_.bb((p.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
Z,p),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.J(_.Fe,{text:function(){return H().title}}))),_.J(_.k,{cond:function(){var q;
return(q=H())==null?void 0:q.subtitle},
then:function(){var q={},u={};return _.J("div",{class:_.bb((q.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=Z,q),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.J("div",{class:_.bb((u.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=Z,u),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.J(_.Fe,{text:function(){return H().subtitle}})))}}),_.J("div",{class:_.bb((l.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=Z,l),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.J(_.SP,{data:function(){var q;
return(q=H().offerPlans)!=null?q:[]}},{lpComplexOfferCardViewModel:function(q){return _.J("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.J(M6p,{data:q.data}))}})))))},"pd");var Pmp=_.y(function(G){return _.J("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.J("div",{class:"ytLpCouponBannerViewModelIcon"},_.J(_.ll,{icon:function(){return"price_tag"}})),_.J("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.J("div",{class:"ytLpCouponBannerViewModelContent"},_.J("div",{class:"ytLpCouponBannerViewModelHeading"},_.J(_.Fe,{text:function(){var H;
return(H=G.data())==null?void 0:H.title}})),_.J("div",{class:"ytLpCouponBannerViewModelBody"},_.J(_.Fe,{text:function(){var H;
return(H=G.data())==null?void 0:H.subtitle}})))))},"qd");
Pmp.idomCompat=!0;_.NR=XEx.getInstance();var rmN;rmN=_.y(function(G){return _.J("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":G.shouldAriaHideContent},_.J("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:G.questionId},_.J(_.Fe,{text:G.question})))},"rd");
_.wzG=_.y(function(G){var H=G.data;var Z=G.themeOverride;G=_.I(_.Ty(!1,void 0,"pNli2b"));var Q=G.next().value,p=G.next().value;G=_.Hh(function(){p(!Q());return!1});
var l=function(){return Q()?"EXPAND_LESS":"EXPAND_MORE"},q=("faq-container"+_.jb(_.NR)).toString(),u="faq-question-and-answers-section-question"+_.jb(_.NR),B={},t={};
return _.J("faq-entry-view-model",null,_.J("div",{class:_.bb("ytLpFaqEntryViewModelHost",(B.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return Z==null?void 0:Z().useDarkTheme},B))},_.J("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":G,role:"button","aria-expanded":Q,"aria-labelledby":u.toString(),"tab-index":"0"},_.J(rmN,{question:function(){return H().question},
questionId:u,shouldAriaHideContent:!0}),_.J(_.k,{cond:function(){return Q()!==void 0},
then:function(){return _.J("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.J(_.ll,{icon:l,ariaHidden:!0}),_.J("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.J("div",{class:_.bb("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(t.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!Q()},t))},_.J("div",{id:q},_.J(_.Cl,{each:function(){return H().answers||[]}},function(D){return _.J("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.J(_.Fe,
{text:D}))})))))},"sd");
_.wzG.idomCompat=!0;var hT2=_.y(function(G){var H=G.data;var Z=G.themeOverride;G={};return _.J("lp-faq-section-view-model",null,_.J("div",{class:_.bb("yt-lp-faq-section-view-model",(G["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(Z==null||!Z().useDarkTheme)},G))},_.J("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.J(_.k,{cond:function(){return H().header},
then:function(Q){return _.J("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.J(_.Fe,{text:Q}))}}),_.J("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.J(_.SP,{data:function(){return H().faqs}},{faqEntryViewModel:function(Q){return _.J(_.wzG,{data:Q.data,
themeOverride:Z})}})),_.J("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.J(_.Cl,{each:function(){return H().footers||[]}},function(Q){return _.J(_.Fe,{text:Q})})),_.J(_.k,{cond:function(){return H().legal},
then:function(Q){return _.J("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.J(_.Fe,{text:Q}))}}))))},"td");
hT2.idomCompat=!0;var Cm7=_.y(function(G){var H=G.data;var Z=G.themeOverride;_.mR(function(){var q=H().gtmId;q&&_.P9(q,_.xI("GL",""))});
var Q={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var q,u,B;return(B=(q=H().logo)==null?void 0:(u=q.accessibilityData)==null?void 0:u.label)!=null?B:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},p=_.tp().resolve(_.Jp(_.rr)),l=function(){return p&&p()||(Z==null?void 0:Z().useDarkTheme)};
return _.J("lp-header-section-view-model",null,_.J("div",{class:function(){var q=H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",u=H().marginType==="LP_SECTION_MARGIN_TYPE_TOP",B=Z==null?void 0:Z().useDarkTheme,t=["lp-header-section-view-model"];q&&t.push("lp-header-section-view-model--ptc-layout-type");u&&t.push("lp-header-section-view-model__lp-header-section-margin");B&&t.push("lp-header-section-view-model--premium-force-dark-mode");return t.join(" ")}},_.J(_.k,{cond:function(){return H().logo},
then:function(){return _.J("div",null,_.J(_.k,{cond:l,then:function(){return _.J(_.k,{cond:function(){var q;return(q=H().logo)==null?void 0:q.imageDark},
then:function(q){return _.J(_.ib,Object.assign({},{data:q},Q))}})},
else:function(){return _.J(_.k,{cond:function(){var q;return(q=H().logo)==null?void 0:q.imageLight},
then:function(q){return _.J(_.ib,Object.assign({},{data:q},Q))}})}}))}}),_.J(_.k,{cond:function(){return H().title},
then:function(q){return _.J("div",{class:"lp-header-section-view-model__lp-header-title"},_.J(_.Fe,{text:q}))}}),_.J("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.J(_.k,{cond:function(){return H().subtitles},
then:function(q){return _.J(_.Cl,{each:q},function(u){return _.J("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.J(_.Fe,{text:u}))})}})),_.J(_.k,{cond:function(){return H().additionalInfo},
then:function(q){return _.J("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.J(_.Fe,{text:q}))}}),_.J("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.J(_.k,{cond:function(){return H().primaryButton},
then:function(q){return _.J("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.J(_.SP,{data:q},{buttonViewModel:_.kg}))}}),_.J(_.k,{cond:function(){return H().secondaryButton},
then:function(q){return _.J("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.J(_.SP,{data:q},{buttonViewModel:_.kg}))}})),_.J(_.k,{cond:function(){return H().otherOffersInfo},
then:function(q){return _.J("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.J(_.Fe,{text:q}))}}),_.J("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.J(_.k,{cond:function(){return H().billingInfo},
then:function(q){return _.J(_.Cl,{each:q},function(u){return _.J("div",null,_.J(_.Fe,{text:u}))})}}))))},"ud");
Cm7.idomCompat=!0;var ikd=_.y(function(G){return _.J("lp-header-upsell-banner-view-model",{class:_.bb("lpHeaderUpsellBannerViewModelHost",G.className,{})},_.J("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.J(_.ll,{icon:function(){return"CAMPAIGN"}})),_.J("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.J("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.J("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.J("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.J(_.Fe,{text:function(){var H;
return(H=G.data())==null?void 0:H.description}})))),_.J(_.SP,{data:function(){var H;
return(H=G.data())==null?void 0:H.purchaseButton}},{buttonViewModel:function(H){return _.J(_.kg,{data:H.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"vd");var Okp=_.y(function(G){var H=G.data;var Z=_.yy(G.themeOverride,{useDarkTheme:!1});G={};G=_.bb("ytmLpHeadlineSectionViewModelHost",(G.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return Z().useDarkTheme},G));
return _.J("lp-headline-section-view-model",null,_.J("div",{class:G},_.J(_.k,{cond:function(){return H().title},
then:function(Q){return _.J("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.J(_.Fe,{text:Q}))}}),_.J(_.k,{cond:function(){return H().subtitle},
then:function(Q){return _.J("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.J(_.Fe,{text:Q}))}})))},"wd");var aWG=_.y(function(G){var H=G.data;var Z=G.themeOverride;var Q=_.tp().resolve(_.Jp(_.rr)),p=function(){return Q&&Q()||(Z==null?void 0:Z().useDarkTheme)},l=function(){var t,D;
var d=p()?(t=H().textBackgroundImage)==null?void 0:t.imageDark:(D=H().textBackgroundImage)==null?void 0:D.imageLight;return pXf((d==null?void 0:d.sources)||[])},q=function(){var t,D;
return p()?(t=H().featureImage)==null?void 0:t.imageDark:(D=H().featureImage)==null?void 0:D.imageLight},u=function(){return H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},B=function(){var t,D;
return p()?(t=H().logo)==null?void 0:t.imageDark:(D=H().logo)==null?void 0:D.imageLight};
return _.J("ytm-lp-large-feature-section-view-model",null,_.J("div",{class:function(){var t=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",D=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",d=(H().index||0)%2===1,e=Z==null?void 0:Z().useDarkTheme,n=["yt-lp-large-feature-section-view-model"];t?n.push("yt-lp-large-feature-section-view-model--music-feature-type"):D?n.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):d||n.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
e&&n.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return n.join(" ")}},_.J("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.J(_.k,{cond:q,
then:function(){return _.J(_.ib,{data:function(){return q()},
alt:function(){var t,D,d;return(d=(t=H().featureImage)==null?void 0:(D=t.accessibilityData)==null?void 0:D.label)!=null?d:""},
contentMode:u})}})),_.J("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var t;return((t=l())==null?0:t.url)?"background-image: url("+_.m0(l().url)+");":""}},_.J("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.J(_.k,{cond:B,
then:function(){return _.J(_.ib,{data:function(){return B()},
alt:function(){var t,D,d;return(d=(t=H().logo)==null?void 0:(D=t.accessibilityData)==null?void 0:D.label)!=null?d:""},
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"})}}),_.J(_.k,{cond:function(){return H().eyebrowText},
then:function(){return _.J("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.J(_.Fe,{text:function(){return H().eyebrowText}}))}}),_.J(_.k,{cond:function(){return H().title},
then:function(){return _.J("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.J(_.Fe,{text:function(){return H().title}}))}}),_.J(_.k,{cond:function(){return H().subtitles},
then:function(){return _.J("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.J(_.Cl,{each:function(){return H().subtitles||[]}},function(t){return _.J(_.Fe,{text:t})}))}})))))},"xd");
aWG.idomCompat=!0;var ym7=_.y(function(G){return _.J("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.J("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.J(_.ll,{icon:function(){var H;return(H=G.data())==null?void 0:H.iconType},
className:function(){var H;switch((H=G.data())==null?void 0:H.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 H;return((H=G.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.J("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.J(_.Fe,{text:function(){var H;
return(H=G.data())==null?void 0:H.text},
className:function(){var H;return((H=G.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"yd");var oSa=_.y(function(G){G=_.oK(G,{config:void 0,themeOverride:void 0});var H=G.data,Z=G.config,Q=G.themeOverride;G={};G=_.bb("ytmLpOfferCardOptionViewModelHost",(G.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var u;return(u=Q())==null?void 0:u.useDarkTheme},G));
var p=_.Hh(function(){var u,B;(u=Z())==null||(B=u.handleRadioButtonClick)==null||B.call(u,H());return!1}),l=function(){var u;
return(u=Z())==null?void 0:u.shouldDisplayRadioButton},q=function(){var u;
return(u=H().featureListItems)!=null?u:[]};
return _.J("ytm-lp-offer-card-option-view-model",null,_.J("div",{class:G,"on:click":_.Hh(function(){if(l()){var u,B;(u=Z())==null||(B=u.handleRadioButtonClick)==null||B.call(u,H())}return!1})},_.J(_.k,{cond:l,
then:function(){return _.J("div",null,_.J("input",{type:"radio","on:click":p,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var u;return!((u=Z())==null||!u.isOptionSelected)}}))}}),_.J("div",null,_.J("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.J(_.Fe,{text:function(){return H().eyebrowText}})),_.J("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.J(_.Fe,
{text:function(){return H().subtitle}})),_.J(_.k,{cond:function(){return q().length>0},
then:function(){return _.J("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.J(_.SP,{data:q},{lpFeatureListItemViewModel:ym7}))}}),_.J("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.J(_.Fe,{text:function(){return H().description}})))))},"zd");
oSa.idomCompat=!0;var mep=_.y(function(G){var H=G.data;var Z=G.themeOverride;G=_.I(_.QF(function(){var l,q=(l=H().offerOptions)==null?void 0:l[0];return _.X(q,UZt)||{}}));
var Q=G.next().value,p=G.next().value;G={};return _.J("ytm-lp-offer-card-view-model",null,_.J("div",{class:_.bb("ytmLpOfferCardViewModelHost",(G.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(Z==null||!Z().useDarkTheme)},G))},_.J("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.J(_.k,{cond:function(){return H().titleIconType},
then:function(){return _.J("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.J(_.ll,{icon:function(){var l;return((l=H().titleIconType)==null?void 0:l.toString())||""}}))}}),_.J("div",{class:"ytmLpOfferCardViewModelTitleText"},_.J(_.Fe,{text:function(){return H().title}})),_.J(_.SP,{data:function(){return H().titleBadge}},{badgeViewModel:function(l){return _.J("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.J(_.tz,{data:l.data}))}})),_.J("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.J(_.SP,{data:function(){return H().offerOptions}},{lpOfferCardOptionViewModel:function(l){var q=l.data;
return _.J(_.kI,null,_.J("div",{class:"ytmLpOfferCardViewModelDivider"}),_.J(oSa,{data:q,config:function(){var u;return{shouldDisplayRadioButton:(H().offerOptions||[]).length>1,isOptionSelected:q().id===((u=Q())==null?void 0:u.id),handleRadioButtonClick:function(B){return void p(B)}}},
themeOverride:Z}))}})),_.J("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.J(_.SP,{data:function(){var l;
return(l=Q())==null?void 0:l.purchaseButtonOverride}},{buttonViewModel:_.kg}))))},"Ad");
mep.idomCompat=!0;var Ue4=_.y(function(G){var H=G.data;var Z=G.themeOverride;G={};G=_.bb("ytmLpOfferCardSectionViewModelHost",(G.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var Q;return Z==null?void 0:(Q=Z())==null?void 0:Q.useDarkTheme},G));
return _.J("ytm-lp-offer-card-section-view-model",null,_.J("div",{class:G},_.J(_.k,{cond:function(){return H().title!==void 0},
then:function(){return _.J("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.J("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.J(_.Fe,{text:function(){return H().title}})),_.J(_.k,{cond:function(){return H().subtitle},
then:function(){return _.J("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.J(_.Fe,{text:function(){return H().subtitle}}))}}))}}),_.J("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.J(_.SP,{data:function(){return H().offerCards}},{lpOfferCardViewModel:function(Q){return _.J("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.J(mep,{data:Q.data,
themeOverride:Z}))}})),_.J(_.k,{cond:function(){return H().footer},
then:function(){return _.J("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.J(_.Fe,{text:function(){return H().footer}}))}})))},"Bd");var RTa=_.y(function(G){var H=G.data;return _.J("lp-offer-table-cell-content-view-model",null,_.J("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.J(_.iW,null,_.J(_.wO,{when:function(){return H().title}},function(){return _.J(_.Fe,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return H().title}})}),_.J(_.wO,{when:function(){return H().subTitle}},function(){return _.J(_.Fe,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return H().subTitle}})}),_.J(_.wO,{when:function(){return H().featureDescription}},function(){return _.J(_.Fe,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.J(_.wO,{when:function(){return H().description}},function(){return _.J(_.Fe,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return H().description}})}),_.J(_.wO,{when:function(){return H().iconType}},function(){return _.J("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.J(_.ll,{icon:function(){return H().iconType.toString()}}))}),_.J(_.wO,{when:function(){return H().purchaseButton}},function(){return _.J(_.SP,{data:function(){return H().purchaseButton}},{buttonViewModel:function(Z){return _.J("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.J(_.kg,
{data:Z.data}))}})}),_.J(_.wO,{when:function(){return H().note}},function(){return _.J(_.Fe,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return H().note}})}),_.J(_.wO,{when:function(){return H().featureDetail}},function(){return _.J(_.Fe,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return H().featureDetail}})}),_.J(_.wO,{when:function(){return H().badge}},function(){return _.J(_.SP,{data:function(){return H().badge}},{badgeViewModel:_.tz})}))))},"Cd");
RTa.idomCompat=!0;var New=_.y(function(G){var H=G.data;return _.J("lp-offer-table-cell-view-model",null,_.J("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(H().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;"}}},_.J(_.SP,{data:function(){return H().contents}},{lpOfferTableCellContentViewModel:RTa})))},
"Dd");
New.idomCompat=!0;var Amw=_.y(function(G){var H=G.data;var Z=G.lpTableIsFirstRow;var Q=G.lpTableIsLastRow;var p=function(){return(Z==null?0:Z())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},l=function(){return(Z==null?0:Z())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(Q==null?0:Q())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.J("ytm-lp-offer-table-row-view-model",null,_.J("div",{class:"ytLpOfferTableRowViewModelHost"},_.J(_.SP,{data:function(){return H().rowHeaderCell}},{lpOfferTableCellViewModel:function(q){return _.J("div",{class:p},_.J(New,{data:q.data}))}}),_.J(_.SP,{data:function(){return H().contentCells}},{lpOfferTableCellViewModel:function(q){return _.J("div",{class:l},_.J(New,{data:q.data}))}})))},"Ed");
Amw.idomCompat=!0;var xeG=_.y(function(G){var H=G.data;var Z=G.themeOverride;var Q=_.tp().resolve(_.Jp(_.rr)),p=function(){return _.X(H().logo,BBw)||{}};
G={};return _.J("ytm-lp-offer-table-section-view-model",null,_.J("div",{class:"ytLpOfferTableViewModelHost"},_.J(_.k,{cond:function(){var l,q;return Q&&Q()||(Z==null?0:Z().useDarkTheme)?(l=p())==null?void 0:l.imageDark:(q=p())==null?void 0:q.imageLight},
then:function(l){return _.J(_.ib,{data:l,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var q,u,B;return(B=(q=p())==null?void 0:(u=q.accessibilityData)==null?void 0:u.label)!=null?B:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.J("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.J(_.Fe,{text:function(){return H().subtitle}})),_.J(_.k,{cond:function(){return H().disclaimers},
then:function(l){return _.J("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.J(_.Cl,{each:l},function(q){return _.J("div",null,_.J(_.Fe,{text:q}))}))}}),_.J("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.J(_.SP,{data:function(){return H().rows}},{lpOfferTableRowViewModel:function(l,q){return _.J(Amw,{data:l.data,
lpTableIsFirstRow:function(){return q()===0},
lpTableIsLastRow:function(){return q()===H().rows.length-1}})}})),_.J("div",{class:_.bb((G.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return H().hasFooterBackground},G))},_.J(_.k,{cond:function(){return H().footer},
then:function(){return _.J("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.J(_.Fe,{text:function(){return H().footer}}))}}),_.J(_.k,{cond:function(){return H().footerTitle},
then:function(){return _.J("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.J(_.Fe,{text:function(){return H().footerTitle}}))}}),_.J(_.k,{cond:function(){return H().footerDescription},
then:function(){return _.J("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.J(_.Fe,{text:function(){return H().footerDescription}}))}}),_.J(_.k,{cond:function(){return H().footerDescriptions},
then:function(l){return _.J("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.J(_.Cl,{each:l},function(q){return _.J("div",null,_.J(_.Fe,{text:q}))}))}}))))},"Fd");
xeG.idomCompat=!0;var LZx=_.y(function(G){var H=G.data;var Z=G.themeOverride;var Q=_.tp().resolve(_.Jp(_.rr)),p=function(){var u;return Z==null?void 0:(u=Z())==null?void 0:u.useDarkTheme},l=function(){var u,B;
return Q&&Q()||p()?(u=H().image)==null?void 0:u.imageDark:(B=H().image)==null?void 0:B.imageLight};
G={};G=_.bb("ytmLpSmallFeatureSectionViewModelHost",(G.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=p,G));var q=function(){var u,B,t;return(t=(u=H().image)==null?void 0:(B=u.accessibilityData)==null?void 0:B.label)!=null?t:""};
return _.J("ytm-lp-small-feature-section-view-model",{class:G},_.J(_.k,{cond:function(){return l()&&!q$R},
then:function(){return _.J("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.J(_.ib,{data:function(){return l()},
alt:q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.J("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.J("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.J(_.k,{cond:function(){return H().title},
then:function(u){return _.J(_.Fe,{text:u})}})),_.J("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.J(_.Fe,{text:function(){return H().description}}))))},"Gd");
LZx.idomCompat=!0;var ES4=_.y(function(G){var H=G.data;var Z=G.themeOverride;G={};return _.J("ytm-lp-small-feature-section-group-view-model",null,_.J("div",{class:_.bb("ytmLpSmallFeatureSectionGroupViewModelHost",(G.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(Z==null||!Z().useDarkTheme)},G))},_.J("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.J(_.SP,{data:function(){return H().smallFeatures}},{lpSmallFeatureSectionViewModel:function(Q){return _.J("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.J(LZx,{data:Q.data,
themeOverride:Z}))}}))))},"Hd");
ES4.idomCompat=!0;_.RX(_.y(function(G){var H=G.data;var Z=function(){return H().forcedTheme==="USER_INTERFACE_THEME_DARK"},Q=function(){return H().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},p=function(){var q="",u,B;
var t=_.tp().resolve(_.Jp(_.rr));t=Z()||(t==null?0:t())?(u=H().themedImageViewModel)==null?void 0:u.imageDark:(B=H().themedImageViewModel)==null?void 0:B.imageLight;(u=pXf((t==null?void 0:t.sources)||[]))&&u.url&&(q=Q()?"background-image: linear-gradient(to bottom, transparent, "+(H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.m0(u.url)+");":"background-image: url("+_.m0(u.url)+");");return q},l=function(){return{useDarkTheme:Z()}};
G={};return _.J("yt-section-group-view-model",null,_.J("div",{class:_.bb("yt-lp-section-group-view-model",(G["yt-lp-section-group-view-model--premium-force-dark-mode"]=Z,G["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},G))},_.J(_.k,{cond:function(){return p().length},
then:function(){var q={};return _.J("div",{class:_.bb("yt-lp-section-group-view-model__bg-image",(q["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=Q,q)),style:p})}}),_.J("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.J(_.SP,{data:function(){return H().sections}},{lpHeaderUpsellBannerViewModel:function(q){return _.J(ikd,{data:q.data})},
lpFaqSectionViewModel:function(q){return _.J(hT2,{data:q.data,themeOverride:l})},
lpHeaderSectionViewModel:function(q){return _.J(Cm7,{data:q.data,themeOverride:l})},
lpHeadlineSectionViewModel:function(q){return _.J(Okp,{data:q.data,themeOverride:l})},
lpLargeFeatureSectionViewModel:function(q){return _.J(aWG,{data:q.data,themeOverride:l})},
lpOfferCardSectionViewModel:function(q){return _.J(Ue4,{data:q.data,themeOverride:l})},
lpComplexOfferCardSectionViewModel:function(q){return _.J(jFN,{data:q.data})},
lpOfferTableSectionViewModel:function(q){return _.J(xeG,{data:q.data,themeOverride:l})},
lpSmallFeatureSectionGroupViewModel:function(q){return _.J(ES4,{data:q.data,themeOverride:l})},
lpCouponBannerViewModel:function(q){return _.J(Pmp,{data:q.data})}}))))},"Id"),"yt-section-group-view-model",{props:{data:_.b3}});_.Yot=_.y(function(G){var H=_.gu(THU,function(){var q;return(q=G.data())==null?void 0:q.chipBarStateEntityKey}),Z=function(){return G.data().disableDeselection},Q=_.I(_.QF(function(){var q;
if(((q=H())==null?void 0:q.selectedIndex)!=void 0)return H().selectedIndex;var u,B;q=_.I(((u=G.data())==null?void 0:(B=u.chips)==null?void 0:B.entries())||[]);for(u=q.next();!u.done;u=q.next()){u=_.I(u.value);B=u.next().value;u=u.next().value;var t=void 0;if((t=_.X(u,_.sg))==null?0:t.selected)return B}return-1})),p=Q.next().value,l=Q.next().value;
return _.J("chip-bar-view-model",{class:_.bb("ytChipBarViewModelHost",G.className),role:"tablist"},_.J(_.SP,{data:function(){return G.data().chips}},{chipViewModel:function(q,u){return _.J("div",{class:"ytChipBarViewModelChipWrapper"},_.J(_.T1d,{data:q.data,
selected:function(){return u()===p()},
callback:function(B,t){B=!!t;t=u();l(B?t:-1);var D,d=(D=G.data())==null?void 0:D.chipBarStateEntityKey;d&&B&&_.aK(_.uP("chipBarStateEntity",d,{key:d,selectedIndex:t}))},
disableDeselection:G.disableDeselection||Z}))}}))},"Jd");_.RX(_.Yot,"chip-bar-view-model",{props:{data:_.oX,className:_.oX,disableDeselection:_.oX}});_.FZT=_.y(function(G){var H=G.data;G={};return _.J("divider-view-model",{class:_.bb("dividerViewModelHost",(G.dividerViewModelInsetThinPadding=function(){return H().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},G))},_.J("div",{class:_.bb("dividerViewModelBaseDivider",function(){return f5e(H().dividerStyle)}),
style:_.pI({"background-color":function(){return H().backgroundColor?_.X9(H().backgroundColor):void 0}})}))},"Kd");
_.FZT.idomCompat=!0;_.RX(_.FZT,"divider-view-model",{props:{data:_.b3}});var lL=new Map,pA=new Map,zYM=0,gp;var hY3=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],OzM={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var bk_,GrT;bk_=function(G){return function(H){return function(){return(H==null?void 0:H())!==void 0?String(H())+G:void 0}}};
_.A7=bk_("px");GrT=bk_("s");var Hj_=$CM(function(G){return G.targetGroupId}).useUpdatableData;_.Zja=_.y(function(G){function H(qX){return function(){var B3=M().numItemsPerGridRow,fW=qX()*B3;B3=fW+B3;var e2,$R;return($R=(e2=Q().contents)==null?void 0:e2.slice(fW,B3))!=null?$R:[]}}
var Z=_.oK(G,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),Q=Z.data,p=Z.layoutContainerWidth,l=Z.shouldUseOwnContainerSize,q=Z.marginSettings,u=Z.useUpdatedMargin,B=Z72(),t=_.I(Hj_(function(){var qX,B3;return{targetGroupId:(qX=Q().targetingContext)==null?void 0:(B3=qX.targetGroupId)==null?void 0:B3[0]}})).next().value;
Z=_.I(_.Ty(!0,void 0,"CC9Rdb"));var D=Z.next().value,d=Z.next().value,e=function(){var qX,B3=(qX=_.X(Q().showMoreButton,_.HN))==null?void 0:qX.trackingParams;B3&&_.ze(_.gr(),B3);d(!1)},n=function(){var qX,B3=(qX=_.X(Q().showLessButton,_.HN))==null?void 0:qX.trackingParams;
B3&&_.ze(_.gr(),B3);d(!0)};
Z=_.IA("grid-shelf-view-model");var c=_.I9(Z,{canHaveZeroSize:!1}),W=function(){var qX;return(qX=Q().contentAspectRatio)!=null?qX:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},M=_.Kb(function(){var qX=l()&&c.width()>0?c.width()||p():p(),B3,fW=(B3=G.data())==null?void 0:B3.responsiveContainerConfiguration;
qX=_.vV({containerWidth:qX,sizing:fW?WV(fW==null?void 0:fW.responsiveSize):"EXTRA_COMPACT",marginSettings:q(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:qX.maxContainerWidth,numItemsPerGridRow:qX.numItems,contentPadding:l()?qX.margin:qX.contentMargin,itemWidth:qX.itemWidth,itemMargin:qX.gutter/2}},void 0,"mTmCKc"),r=function(){if(Q().enableVerticalExpansion){if(D())return w();
var qX,B3,fW=(B3=(qX=Q().contents)==null?void 0:qX.length)!=null?B3:0;return Math.ceil(fW/M().numItemsPerGridRow)}return M().numItemsPerGridRow<=2?2:1},w=function(){var qX;
return Math.ceil(((qX=Q().minCollapsedItemCount)!=null?qX:1)/M().numItemsPerGridRow)},x=function(){return Q().enableVerticalExpansion&&Q().showLessButton&&!D()&&r()>w()},U=function(){var qX,B3;
return Q().enableVerticalExpansion&&Q().showMoreButton&&D()&&((B3=(qX=Q().contents)==null?void 0:qX.length)!=null?B3:0)>M().numItemsPerGridRow*w()},R=function(){return!x()},L=function(){return!U()},H3={};
return _.J("grid-shelf-view-model",{class:_.bb("ytGridShelfViewModelHost",G.className,(H3.ytGridShelfViewModelHostHasBottomButton=function(){return x()||U()},H3.ytGridShelfViewModelHostIsDismissed=function(){var qX,B3=(qX=t())!=null?qX:{};
qX=B3.behavior;var fW=B3.isDismissed,e2=B3.stamperContextTargetId;B3=B3.stamperIndex;if(!(_.V("mweb_see_fewer_shorts_group_dismissal")&&fW&&qX&&e2))return!1;var $R;fW=B;for(var ie,W3,DT=((ie=fW)==null?0:ie.targetId)?_.Uv((W3=fW)==null?void 0:W3.targetId):void 0;(($R=fW)==null?0:$R.parent)&&DT!==e2;)fW=fW.parent,W3=ie=void 0,DT=((ie=fW)==null?0:ie.targetId)?_.Uv((W3=fW)==null?void 0:W3.targetId):void 0;$R=DT===e2?fW:void 0;if(!$R)return!1;var UR;e2=$R==null?void 0:(UR=$R.stamperIndex)==null?void 0:
UR.call($R);return qX==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||qX==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&e2!=null&&B3!=null&&e2>B3},H3.ytGridShelfViewModelHostOptionalMediumLayoutMargin=u,H3)),
el:Z,style:_.pI({"margin-left":(0,_.A7)(function(){return M().contentPadding}),
"margin-right":(0,_.A7)(function(){return M().contentPadding})})},_.J(_.k,{cond:function(){return _.X(Q().header,Vr2)},
then:function(qX){return _.J(_.v_,{data:qX,useUpdatedPadding:u,disableHorizontalPadding:!0})}}),_.J("div",null,_.J(_.Cl,{each:function(){return Array(r())}},function(qX,B3){return _.J(sCa,{className:G.className,
items:H(B3),responsiveGridShelfLayout:M,contentAspectRatio:W})})),_.J("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.J(_.SP,{data:function(){return Q().showMoreButton}},{buttonViewModel:function(qX){return _.J("div",{hidden:L},_.J(_.kg,{data:qX.data,
onClick:e}))}}),_.J(_.SP,{data:function(){return Q().showLessButton}},{buttonViewModel:function(qX){return _.J("div",{hidden:R},_.J(_.kg,{data:qX.data,
onClick:n}))}})))},"Md");
_.Zja.idomCompat=!0;var sCa=_.y(function(G){var H=G.items;var Z=G.responsiveGridShelfLayout;var Q=G.contentAspectRatio;G=G.className;var p=_.IA("div");WJv(p,function(){a:{var q=p.value;for(var u=H(),B=[],t=0;t<u.length;t++){var D=_.X(u[t],LHG);if(!D||D==null||!D.inlinePlayerData){q=null;break a}var d=q.children.item(t);if(!d){q=null;break a}B.push({thumbnailElement:d,videoData:D})}q={gridVideoPreviewData:{gridItems:B}}}return q});
var l=(0,_.A7)(function(){return-Z().itemMargin});
return _.J("div",{el:p,class:_.bb("ytGridShelfViewModelGridShelfRow",G),style:_.pI({"margin-left":l,"margin-right":l})},_.J(_.SP,{data:H,replacementWrapper:function(q){return _.J(QC7,{responsiveGridShelfLayout:Z},q)}},{shortsLockupViewModel:function(q){return _.J(QC7,{responsiveGridShelfLayout:Z},_.J(WJ2,{data:q.data,
aspectRatio:function(){return Q()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.V("mweb_enable_one_line_title_on_shorts")?1:_.V("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(q){return _.J(QC7,{responsiveGridShelfLayout:Z},_.J(_.Xf,{data:q.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Nd"),QC7=_.y(function(G){return _.J("div",{style:_.pI({width:(0,_.A7)(function(){return G.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+G.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},G.children)},"Od");
_.Zja.idomCompat=!0;_.RX(_.Zja,"grid-shelf-view-model",{props:{data:_.b3,layoutContainerWidth:_.b3,shouldUseOwnContainerSize:_.b3,marginSettings:_.b3,useUpdatedMargin:_.b3,className:_.b3}});_.pHG=_.y(function(G){var H=_.I(_.Ty(!1,void 0,"FVl30c")),Z=H.next().value,Q=H.next().value;H={};return _.J("yt-alert-banner-view-model",{class:_.bb("ytAlertBannerViewModelHost",G.className,function(){var p;a:switch((p=G.data())==null?void 0:p.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":p="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":p="ytAlertBannerViewModelWarning";break a;default:p="ytAlertBannerViewModelInformational"}return p},(H.ytAlertBannerViewModelDismissed=
Z,H.ytAlertBannerViewModelFullbleed=G.fullbleed,H.ytAlertBannerViewModelNarrow=G.narrow,H.ytAlertBannerViewModelIsInRichGrid=G.isInRichGrid,H))},_.J(_.k,{cond:function(){var p;
return!((p=G.data())==null?0:p.hideIcon)},
then:function(){return _.J("div",{class:"ytAlertBannerViewModelIcon"},_.J(_.ll,{icon:function(){return"info_circle"}}))}}),_.J("div",{class:"ytAlertBannerViewModelOuterContainer"},_.J("div",{class:"ytAlertBannerViewModelContainer"},_.J("div",{class:"ytAlertBannerViewModelContent"},_.J("div",{class:"ytAlertBannerViewModelHeading"},_.J(_.Fe,{text:function(){var p;
return(p=G.data())==null?void 0:p.heading}})),_.J("div",{class:"ytAlertBannerViewModelBody"},_.J(_.Fe,{text:function(){var p;
return(p=G.data())==null?void 0:p.body}})))),_.J(_.SP,{data:function(){var p;
return(p=G.data())==null?void 0:p.actionButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.J(_.SP,{data:function(){var p;
return(p=G.data())==null?void 0:p.dismissButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var l;((l=G.data())==null?0:l.disableLocalDismissBehavior)||Q(!0)}})}}))},"Pd");_.RX(_.pHG,"yt-alert-banner-view-model",{props:{data:_.b3,fullbleed:_.b3,narrow:_.b3,isInRichGrid:_.b3,className:_.b3}});var llG;_.gDa=_.y(function(G){return _.J("basic-content-view-model",{class:_.bb("ytBasicContentViewModelHost",_.yy(G.className))},_.J(_.k,{cond:function(){return G.data().headline},
then:function(H){return _.J("div",{class:"ytBasicContentViewModelHeadline"},_.J(_.Fe,{text:H}))}}),_.J(_.Cl,{each:function(){return G.data().paragraphs||[]},
keyBy:"INDEX"},function(H){return _.J("div",{class:"ytBasicContentViewModelParagraph"},_.J(_.k,{cond:function(){var Z=H();return!!(Z.header||Z.customHeader||Z.headline)},
then:function(){return _.J(llG,{paragraph:H})}}),_.J(_.k,{cond:function(){return H().asset||H().text},
then:function(){return _.J("div",{class:"ytBasicContentViewModelParagraphContent"},_.J(_.k,{cond:function(){return H().asset},
then:function(Z){return _.J("div",{class:"ytBasicContentViewModelParagraphAsset"},_.J(_.SP,{data:Z},{contentPreviewImageViewModel:_.kz}))}}),_.J(_.k,{cond:function(){return H().text},
then:function(Z){return _.J("div",{class:"ytBasicContentViewModelParagraphText"},_.J(_.Fe,{text:Z}))}}))}}))}))},"Qd");
llG=_.y(function(G){var H=G.paragraph;return _.J(_.kI,null,_.J(_.k,{cond:function(){return H().headline},
then:function(Z){return _.J(_.Fe,{text:Z,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.J(_.SP,{data:function(){return H().header||H().customHeader}},{sectionHeaderViewModel:function(Z){return _.J(_.v_,{data:Z.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Rd");var Il4=_.y(function(G){function H(){var n,c;B((c=(n=p)==null?void 0:n.isKeyBoardInUse())!=null?c:!1)}
function Z(){B(!1)}
function Q(){var n;return u()?(n=G.focusedClassName)==null?void 0:n.call(G):""}
var p=_.tp().resolve(_.Jp(_.qZ)),l=_.I(_.Ty(!1,void 0,"SgkTXc")),q=l.next().value;l=l.next().value;var u=q,B=l,t=function(){var n,c;return((n=G.toggleable)==null?0:n.call(G))?(c=G.toggled)==null?void 0:c.call(G):void 0},D=_.Hh(function(n){var c,W=(c=G.command)==null?void 0:c.call(G);
W&&_.tp().resolve(_.Dk).resolveCommand(W);var M;(M=G.onClick)==null||M.call(G,n)}),d=_.Hh(H),e=_.Hh(Z);
return _.J(_.k,{cond:function(){var n;if(n=G.command){n=G.command();n=DIU(n);var c=n.href;n=!(!n.navigatingCommand||!c)}return n},
then:function(){return _.J(_.S8,Object.assign({},{command:G.command,style:G.style,ariaDescribedby:G.ariaDescribedby,ariaHidden:G.ariaHidden,ariaLabel:G.ariaLabel,ariaLabelledby:G.ariaLabelledby,ariaSelected:G.ariaSelected,disabled:G.disabled,dir:G.dir,tabIndex:G.tabIndex,target:G.target,title:G.title,onClick:G.onClick},{className:_.bb("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",G.className,function(){return Q()}),
onFocusin:H,onFocusout:Z,ariaCurrent:function(){var n,c;return(c=(n=G.ariaCurrent)==null?void 0:n.call(G))!=null?c:t()}}),G.children)},
else:function(){return _.J("button",{"on:click":D,"on:focusin":d,"on:focusout":e,class:_.bb("ytButtonOrAnchorHost","ytButtonOrAnchorButton",G.className,function(){return Q()}),
style:G.style,"aria-describedby":G.ariaDescribedby,"aria-hidden":G.ariaHidden,"aria-label":G.ariaLabel,"aria-labelledby":G.ariaLabelledby,"aria-pressed":t,dir:G.dir,disabled:G.disabled,tabindex:G.tabIndex,title:G.title},G.children)}})},"Sd");var qbt=_.y(function(G){G=_.oK(G,{disabled:!1});var H=G.active,Z=G.disabled;G={};G=_.bb("ytSwitchShapeTrack",(G.ytSwitchShapeTrackActive=function(){return H()},G.ytSwitchShapeTrackDisabled=function(){return Z()},G));
var Q={};Q=_.bb("ytSwitchShapeKnob",(Q.ytSwitchShapeKnobActive=function(){return H()},Q));
return _.J("switch-shape",{class:"ytSwitchShapeHost"},_.J("div",{class:G}),_.J("div",{class:Q}))},"Td");var SbT=_.y(function(G){var H=_.oK(G,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),Z=H.data;G=H.className;var Q=H.handleOnTapEventInParent,p=H.parentActive,l=H.onTap;H=_.I(_.QF(function(){var e;return(e=p())!=null?e:Z().switchedOnByDefault||!1}));
var q=H.next().value,u=H.next().value,B=function(){return Z().isDisabled},t=_.IA("button");
H=_.Hh(function(e){return e.key==="Enter"?(e.preventDefault(),t.value.click(),!1):!0});
var D=_.Hh(function(e){if(Z().handleOnTapEventInParent||Q())return!0;if(B())return!1;if(l)return l(e),!0;oWR(Z(),q(),e);u(!q());return!1}),d={};
d=_.bb("ytSwitchButtonViewModelButton",(d.ytSwitchButtonViewModelTappable=function(){return!B()},d));
return _.J("switch-button-view-model",{class:_.bb("ytSwitchButtonViewModelHost",G)},_.J("button",{el:t,class:d,"on:click":D,"on:keydown":H,"aria-label":function(){return q()?Z().a11yLabelSwitchedOn:Z().a11yLabelSwitchedOff},
"aria-checked":q,"aria-disabled":B,role:"switch"},_.J(qbt,{active:q,disabled:B})))},"Ud");var uJG=_.y(function(G){var H=G.data;var Z=G.isLeading;var Q=G.hideSelectionTextChevron;var p=G.isToggled;var l=function(){if(Z())var D=H().leadingImage;else{var d;D=(d=H().trailingImage)!=null?d:_.zk(H().themedTrailingImage)}return D},q=function(){a:switch(H().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var D="expand_more";
break a;default:D="chevron_right"}return D};
G={};var u=_.bb("yt-list-item-view-model__image-container",(G["yt-list-item-view-model__leading"]=Z,G["yt-list-item-view-model__trailing"]=function(){return!Z()},G)),B=_.bb("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
G={};var t=_.bb("yt-list-item-view-model__accessory",(G["yt-list-item-view-model__leading"]=Z,G["yt-list-item-view-model__trailing"]=function(){return!Z()},G));
return _.J(_.k,{cond:function(){var D=H(),d=Z();return!!(d&&(D.leadingImage||D.leadingAccessory)||!d&&(D.trailingImage||D.trailingButton||D.trailingButtons||D.selectionText||D.themedTrailingImage))},
then:function(){return _.J(_.kI,null,_.J(_.k,{cond:l,then:function(D){return _.J("div",{class:u,"aria-hidden":"true"},_.J(_.ib,{data:D,alt:"",preserveWidth:!0,preserveHeight:!0,className:B,isToggled:p}))}}),_.J(_.k,{cond:function(){return Z()&&H().leadingAccessory},
then:function(){return _.J("div",{class:u},_.J(_.SP,{data:function(){return H().leadingAccessory}},{avatarViewModel:function(D){return _.J(_.m9,{data:D.data,
avatarButtonCustomClassName:B})},
collectionThumbnailViewModel:function(D){return _.J($kx,{data:D.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.J(_.k,{cond:function(){return!Z()&&H().trailingButton},
then:function(){return _.J("div",{class:"yt-list-item-view-model__button-container"},_.J(_.SP,{data:function(){return H().trailingButton}},{buttonViewModel:function(D){return _.J(_.kg,{data:D.data,
className:t})}}))}}),_.J(_.k,{cond:function(){var D;
return!Z()&&((D=H().trailingButtons)==null?void 0:D.buttons)},
then:function(){return _.J("div",{class:"yt-list-item-view-model__button-container"},_.J(_.SP,{data:function(){var D;return(D=H().trailingButtons)==null?void 0:D.buttons}},{buttonViewModel:function(D){return _.J(_.kg,{data:D.data,
className:t})},
accountLinkButtonViewModel:function(D){return _.J(Sua,{data:D.data,className:t})},
switchButtonViewModel:function(D){return _.J(SbT,{data:D.data,className:t})},
subscribeButtonViewModel:function(D){return _.J(_.mO,{data:D.data,isOverlay:!1,animateWidth:!1,className:t})},
toggleButtonViewModel:function(D){return _.J(_.hf,{data:D.data,className:t})}}))}}),_.J(_.k,{cond:function(){return!Z()&&!!H().selectionText},
then:function(){return _.J(_.kI,null,_.J(_.Fe,{text:function(){return H().selectionText},
className:_.bb("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.J(_.k,{cond:function(){return!(Q==null?0:Q())},
then:function(){return _.J(_.ll,{icon:q,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Vd");var BCT=_.y(function(G){var H=G.data;return _.J(_.k,{cond:function(){return H().title||H().subtitle},
then:function(){return _.J("div",{class:"yt-list-item-view-model__text-wrapper"},_.J(_.k,{cond:function(){return H().title},
then:function(Z){return _.J("div",{class:"yt-list-item-view-model__title-wrapper"},_.J(_.Fe,{text:Z,className:"yt-list-item-view-model__title"}))}}),_.J(_.k,{cond:function(){return H().subtitle},
then:function(Z){return _.J(_.Fe,{text:Z,className:"yt-list-item-view-model__subtitle"})}}))}})},"Wd");var JK4=_.y(function(G){var H=G.data;var Z=G.hideSelectionTextChevron;var Q=G.TrailingAccessory;var p=G.isToggled;var l=G.disabled;var q=G.isSelectItem;var u=G.isCompact;var B=G.inPopup;var t=G.disableHorizontalPadding;var D=G.isTappableWithoutSelect;var d=G.useButtonOrAnchor;var e=G.onTap;var n=function(){return _.J(BCT,{data:H,onTap:e,useButtonOrAnchor:d,isTappableWithoutSelect:D,isToggled:p})};
G={};return _.J("div",{class:_.bb("yt-list-item-view-model__label",(G["yt-list-item-view-model__container"]=function(){return!(q==null?0:q())},G["yt-list-item-view-model__container--disabled"]=function(){return!!H().isDisabled||!(l==null||!l())},G["yt-list-item-view-model__container--has-subtitle"]=function(){return!!H().subtitle},G["yt-list-item-view-model__container--compact"]=u,G["yt-list-item-view-model__container--tappable"]=D,G["yt-list-item-view-model__container--in-popup"]=B,G["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(t==null?void 0:t())&&!(q==null?0:q())},G))},_.J(uJG,{data:H,
isLeading:!0,hideSelectionTextChevron:Z,isToggled:p}),_.J(_.k,{cond:function(){return(d==null?void 0:d())&&(D==null?void 0:D())},
then:function(){return _.J(Il4,{command:function(){return _.nG(H().rendererContext)},
onClick:e,className:"yt-list-item-view-model__button-or-anchor",toggleable:p!==void 0,toggled:p},_.J(n,null))},
else:function(){return _.J(n,null)}}),_.J(_.k,{cond:function(){return!!Q},
then:function(){return _.J("div",{class:"yt-list-item-view-model__trailing"},Q&&_.J(Q,null))},
else:function(){return _.J(uJG,{data:H,isLeading:!1,hideSelectionTextChevron:Z,isToggled:p})}}))},"Xd");var krd=_.y(function(G){var H=_.oK(G,{checked:!1});G=H.name;var Z=H.onChange,Q=H.onClick,p=H.checked,l=H.labelRenderable,q=H.hasLeadingLabel,u=H.labelClass,B=H.isCompact,t=H.selectElementClass;H=H.disableHorizontalPadding;var D="checkbox"+_.jb(_.NR),d=_.Hh(function(c){Q==null||Q(c);return!1}),e=_.Hh(function(c){Z==null||Z(c);
return!1}),n={};
return _.J("checkbox-shape",null,_.J("label",{class:_.bb("ytCheckboxShapeHost",u,(n.ytCheckboxShapeHostCompact=B,n.ytCheckboxShapeDisableHorizontalPadding=H,n))},_.J("input",{class:"ytCheckboxShapeInput",id:D,checked:p,name:G,type:"checkbox","prop:checked":p,"on:change":e,"on:click":d}),_.J(_.k,{cond:function(){return!(q==null?0:q())},
then:function(){return _.J(tx4,{isLeading:!0,selectElementClass:t})}}),_.J(_.k,{cond:function(){return!!l},
then:function(){return _.J("div",{class:"ytCheckboxShapeLabel"},l==null?void 0:l())}}),_.J(_.k,{cond:q,
then:function(){return _.J(tx4,{isLeading:!1,selectElementClass:t})}})))},"Yd");
krd.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var tx4=_.y(function(G){var H=G.selectElementClass;G={};return _.J("div",{class:_.bb("ytCheckboxShapeCheckbox",H,(G.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(H==null?0:H())},G)),
"aria-hidden":"true"},_.J(_.ll,{icon:_.V("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.J(_.ll,{icon:_.V("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Zd");_.xZ=_.y(function(G){var H=G.name;var Z=G.onChange;var Q=G.onClick;var p=G.checked;var l=G.labelRenderable;var q=G.useCheckIcon;var u=G.hasLeadingLabel;var B=G.labelClass;var t=G.isCompact;var D=G.selectElementClass;var d=G.ariaLabel;G=G.className;var e="radio"+_.jb(_.NR),n=_.IA("input"),c=_.Hh(function(L){n.value.checked=!(p==null||!p());Z==null||Z(L);return!1}),W=_.Hh(function(L){Q==null||Q(L);
return!1}),M=_.Hh(function(L){_.V("enable_ios_webview_radio_button_responsiveness")&&(L.preventDefault(),n.value.click())}),r=_.I(_.Ty(!1,void 0,"TcCZlf")),w=r.next().value,x=r.next().value;
r=_.Hh(function(){var L;((L=_.tp().resolve(_.Jp(_.qZ)))==null?0:L.isKeyBoardInUse())&&x(!0)});
var U=_.Hh(function(){x(!1)}),R={};
return _.J("radio-shape",{class:_.bb("yt-radio-shape",G)},_.J("input",{el:n,class:"yt-radio-shape__input",id:e,"prop:checked":p,name:H,type:"radio","on:change":c,"on:click":W,"aria-label":d,"on:focusin":r,"on:focusout":U}),_.J("label",{class:_.bb("yt-radio-shape__label-container",B,(R["yt-radio-shape--compact"]=t,R["yt-radio-shape__label-container--keyboard-focused"]=w,R)),for:e,"on:click":M},_.J(_.k,{cond:function(){return!(u==null?0:u())},
then:function(){return _.J(Drd,{checked:p,useCheckIcon:q,isLeading:!0,selectElementClass:D})}}),_.J(_.k,{cond:function(){return!!l},
then:function(){return _.J("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(d==null?0:d())?"true":"false"}},l==null?void 0:l())}}),_.J(_.k,{cond:u,
then:function(){return _.J(Drd,{checked:p,useCheckIcon:q,isLeading:!1,selectElementClass:D})}})))},"$d");
_.xZ.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Drd=_.y(function(G){var H=G.useCheckIcon;var Z=G.selectElementClass;G=function(){return(H==null?0:H())?"CHECK":_.V("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var Q={};return _.J("div",{class:_.bb("yt-radio-shape__radio",Z,(Q["yt-radio-shape__radio--check-icon"]=H,Q["yt-radio-shape__radio--radio-default-style"]=function(){return!(Z==null?0:Z())},Q)),
"aria-hidden":"true"},_.J(_.ll,{icon:G}),_.J(_.ll,{icon:G,active:function(){return!(H==null?0:H())}}))},"ae");_.L5=_.y(function(G){var H=G.data;var Z=G.isMenuItem;var Q=G.isCompact;var p=G.onTap;var l=G.trailingAccessory;var q=G.hideSelectionTextChevron;var u=G.disabled;var B=G.inPopup;var t=G.disableHorizontalPadding;var D=G.isOverlay;var d=G.isToggled;var e=G.ariaLabel;G=G.ariaPressed;var n=!_.V("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),c=_.SQ(function(W3){return RYj(H(),W3)}),W=function(){return _.V("enable_web_shorts_captions_language_command")||_.V("web_shorts_audio_track_picker")||
H().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},M=function(){return W()?Object.assign({},H(),c().data):H()},r=_.A1U(function(){return M().rendererContext}),w=function(){return!(M().isSelected===void 0||!M().selectionStyle||M().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},x=function(){return(_.Vt(M().rendererContext)||p)&&!w()},U={},R=_.bb("yt-list-item-view-model__container",(U["yt-list-item-view-model__container--tappable"]=function(){return _.Vt(M().rendererContext)||
w()},U["yt-list-item-view-model__container--compact"]=Q,U["yt-list-item-view-model__container--in-popup"]=B,U["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(t==null?void 0:t())&&w()},U)),L=function(){return M().leadingImage||M().leadingAccessory},H3=_.bb("yt-list-item-view-model__image-container",function(){return L()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
U=_.Hh(function(W3){var DT;if(DT=n)DT=M().selectionStyle,DT=DT==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||DT==="LIST_ITEM_SELECTION_STYLE_RADIO"||DT==="LIST_ITEM_SELECTION_STYLE_DEFAULT";DT||ie||p==null||p(W3)});
var qX=_.mLR(),B3=_.I(_.Ty(!1,void 0,"q9Dj4b")),fW=B3.next().value,e2=B3.next().value,$R=function(){return _.J(JK4,{data:M,hideSelectionTextChevron:q,TrailingAccessory:l,isToggled:d,disabled:u,isSelectItem:w,isCompact:Q,inPopup:B,disableHorizontalPadding:t,isTappableWithoutSelect:x,useButtonOrAnchor:ie,onTap:p})},ie=_.V("web_button_or_anchor_list_item");
B3={};return _.J("yt-list-item-view-model",{el:_.aX(_.$X(function(){return M().rendererContext},void 0,void 0,ie?["A".toString(),
"BUTTON".toString()]:[]),ie&&p?NHu(p):void 0,ZUf(function(){return x==null?void 0:x()},{focusin:function(){var W3;
((W3=_.tp().resolve(_.Jp(_.qZ)))==null?0:W3.isKeyBoardInUse())&&e2(!0)},
focusout:function(){e2(!1)}})),
class:_.bb("yt-list-item-view-model",(B3["yt-list-item-view-model--is-overlay"]=D,B3["yt-list-item-view-model--keyboard-focused"]=fW,B3["yt-list-item-view-model--hidden"]=function(){return W()?c().isHidden:!1},B3)),
role:function(){return(Z==null?0:Z())?"menuitem":"listitem"},
tabindex:function(){var W3=x();W3=ie?void 0:p||W3?0:void 0;return W3},
"on:keydown":qX,"on:click":U,"aria-label":function(){var W3;return(e==null?void 0:e())||((W3=r())==null?void 0:W3.label)},
"aria-pressed":G},_.J(_.k,{cond:w,then:function(){return _.J(_.iW,null,_.J(_.wO,{when:function(){return M().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.J(krd,{labelRenderable:$R,
isCompact:Q,checked:function(){return M().isSelected},
hasLeadingLabel:function(){return!!L()},
labelClass:R,selectElementClass:H3,disableHorizontalPadding:t,onClick:n?p:void 0})}),_.J(_.wO,{when:function(){return M().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.J(_.xZ,{labelRenderable:$R,
isCompact:Q,checked:function(){return M().isSelected},
hasLeadingLabel:function(){return!!L()},
labelClass:R,selectElementClass:H3,onClick:n?p:void 0})}),_.J(_.wO,{when:function(){return M().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.J(_.xZ,{labelRenderable:$R,
isCompact:Q,checked:function(){return M().isSelected},
hasLeadingLabel:function(){return!!L()},
labelClass:R,selectElementClass:H3,useCheckIcon:!0,onClick:n?p:void 0})}),_.J(_.he,null,$R))},
else:$R}))},"be");
_.L5.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var EE;_.YZ=_.y(function(G){var H=function(){var Q,p;return((Q=G.data().linearLayoutContainerConfiguration)==null?void 0:Q.flexDirection)==="FLEX_DIRECTION_ROW"||((p=G.data().linearLayoutContainerConfiguration)==null?void 0:p.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"},Z=function(){return G.data().linearLayoutContainerConfiguration};
return _.J("yt-linear-layout-view-model",{class:_.bb("ytLinearLayoutViewModelHost",function(){a:switch(G.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var Q="ytLinearLayoutViewModelHorizontal";break a;default:Q="ytLinearLayoutViewModelVertical"}return Q},function(){var Q=G.data().linearLayoutContainerConfiguration;
return Q?[LJj(Q==null?void 0:Q.flexDirection),EW3(Q==null?void 0:Q.justifyContent),YHX(Q==null?void 0:Q.alignItems)].join(" "):""})},_.J(_.SP,{data:function(){return G.data().items}},{lockupViewModel:function(Q){return _.J(EE,{linearLayoutContainerConfiguration:Z,
className:"ytLinearLayoutViewModelLockupItem"},_.J(_.Xf,{data:Q.data,containerType:function(){return H()?2:3},
sizing:"STANDARD",thumbnailFixedWidth:function(){return H()?void 0:"33%"}}))},
basicContentViewModel:function(Q){return _.J(EE,{linearLayoutContainerConfiguration:Z,className:"ytLinearLayoutViewModelBasicContentItem"},_.J(_.gDa,{data:Q.data}))},
linearLayoutViewModel:function(Q){return _.J(EE,{linearLayoutContainerConfiguration:Z},_.J(_.YZ,{data:Q.data}))},
thumbnailViewModel:function(Q){return _.J(EE,{linearLayoutContainerConfiguration:Z,className:"ytLinearLayoutViewModelThumbnailItem"},_.J(_.So,{data:Q.data}))},
descriptionPreviewViewModel:function(Q){return _.J(EE,{linearLayoutContainerConfiguration:Z},_.J(_.f5,{data:Q.data}))},
listItemViewModel:function(Q){return _.J(EE,{linearLayoutContainerConfiguration:Z},_.J(_.L5,{data:Q.data}))}}))},"ce");
EE=_.y(function(G){var H=function(){var Z,Q=(Z=G.linearLayoutContainerConfiguration)==null?void 0:Z.call(G);Z={};(Q==null?void 0:Q.flexDirection)==="FLEX_DIRECTION_ROW"||(Q==null?void 0:Q.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?Z["margin-right"]=x9f(Q==null?void 0:Q.gap)+"px":Z["margin-bottom"]=x9f(Q==null?void 0:Q.gap)+"px";return Z};
return _.J("div",{style:_.pI({"margin-right":function(){return H()["margin-right"]},
"margin-bottom":function(){return H()["margin-bottom"]}}),
class:G.className},G.children)},"de");_.RX(_.YZ,"yt-linear-layout-view-model",{props:{data:_.b3}});_.RX(_.f8,"chips-shelf-view-model",{props:{data:_.b3,callback:_.oX,selectionBehavior:_.b3,disableChipsScrollAnimation:_.b3}});_.RX(_.y(function(G){return _.J("yt-comment-filter-context-view-model",{class:_.bb("ytCommentFilterContextHost",G.className)},_.J(_.Fe,{text:function(){return G.data().text}}))},"ee"),"yt-comment-filter-context-view-model",{props:{data:_.b3,
className:_.oX}});_.drN=_.y(function(G){var H=G.data;var Z=G.onTap;var Q=G.onSwitch;var p=G.overrideDisabled;G=G.disableHorizontalPadding;var l=_.I(_.QF(function(){var n;return((n=U9v(d()))==null?void 0:n.switchedOnByDefault)||!1})),q=l.next().value,u=l.next().value;
l=_.I(_.Ty(!1,void 0,"ZHBkbb"));var B=l.next().value,t=l.next().value,D=_.V("web_button_or_anchor_list_item"),d=function(){var n;if(!(n=H().switchButton)){var c=H();n=p==null?void 0:p();c={switchOnCommand:c.switchOnCommand,switchOffCommand:c.switchOffCommand,switchedOnByDefault:c.switchedOnByDefault,isDisabled:c.isDisabled,handleOnTapEventInParent:!D,a11yLabelSwitchedOn:c.a11yLabelSwitchedOn,a11yLabelSwitchedOff:c.a11yLabelSwitchedOff};n!==void 0&&(c.isDisabled=n);n={switchButtonViewModel:c}}return n},
e=function(n){var c=U9v(d());
!c||c.isDisabled||H().ignoreTapUntilCommandCompletes&&B()||(Z==null||Z(n),oWR(c,q(),n,H().ignoreTapUntilCommandCompletes,t),u(!q()),Q==null||Q(q()))};
return _.J("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.J(_.L5,{data:function(){return{title:H().title,subtitle:H().attributedSubtitle,leadingImage:H().leadingImage,leadingAccessory:H().leadingAccessory,isDisabled:H().isDisabled}},
onTap:e,isToggled:D?q:void 0,trailingAccessory:function(){return _.J(_.SP,{data:d},{switchButtonViewModel:function(n){return _.J(SbT,{data:n.data,parentActive:q,handleOnTapEventInParent:!!Z&&!D,onTap:D?e:void 0})}})},
disableHorizontalPadding:G}))},"fe");var etw=_.y(function(G){var H=_.I(_.QF(function(){var p,l;return!!((p=G.data())==null?0:(l=p.initialState)==null?0:l.isToggled)})),Z=H.next().value,Q=H.next().value;
H=_.Hh(function(){Q(!Z())});
return _.J("toggleable-list-item-view-model",{el:_.aX(_.$X(function(){return G.data().rendererContext})),
class:_.bb("toggleableListItemViewModelHost",G.className),"on:click":H},_.J(_.k,{cond:function(){if(Z()){var p=G.data().toggledListItem;p=_.X(p,_.BV)}else p=G.data().defaultListItem,p=_.X(p,_.BV);return p},
then:function(p){return _.J(_.L5,{data:p,isToggled:Z,ariaLabel:function(){var l=Z()?G.data().toggledListItem:G.data().defaultListItem,q;l=(q=_.X(l,_.BV))==null?void 0:q.rendererContext;var u;return(u=_.X(l,_.qc))==null?void 0:u.label},
ariaPressed:function(){return Z()}})}}))},"ge");var nD4=_.Zg("DOWNLOAD",{},"Download"),Vxx=_.Zg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),$rN=_.Zg("RETRY",{},"Retry"),XHR=_.Zg("PAUSE_DOWNLOADING",{},"Pause downloading"),cKN=_.Zg("RESUME_DOWNLOAD",{},"Resume download"),FJj={text:nD4,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},SO={text:Vxx,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},HvU={text:$rN,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
bzW={text:XHR,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},GAv={text:cKN,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var TCG=_.y(function(G){var H=function(){var u=G.data();u=_.nG(u.rendererContext);var B;return(B=_.X(u,_.Qt))==null?void 0:B.videoId},Z=_.SQ(function(u){var B=H(),t=Q2M(G.data());
return B?_.Wv(u,B):t?_.z9(u,t):"TRANSFER_STATE_UNKNOWN"}),Q=_.gu(_.bi2,H),p=_.SQ(function(u){return _.NvU(u,H(),Q2M(G.data()))}),l=function(){return Zvb(Z(),Q(),_.nG(G.data().rendererContext),!!Q2M(G.data()))},q=function(){return p()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.J("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:q},_.J(_.k,{cond:function(){return!q()},
then:function(){return _.J(_.k,{cond:l,then:function(u){return _.J(_.Cl,{each:u},function(B){return _.J(_.L5,{data:B,isCompact:G.isCompact,isMenuItem:G.isMenuItem,inPopup:G.inPopup,disableHorizontalPadding:G.disableHorizontalPadding})})}})}}))},"he");
TCG.idomCompat=!0;_.fl4=_.y(function(G){var H=G.data;var Z=G.isCompact;var Q=G.hideSelectionTextChevron;var p=G.inPopup;var l=G.isOverlay;var q=G.disableHorizontalPadding;var u=function(){return p1X(H())&&(p==null?void 0:p())};
G=_.Hh(function(t){if(p!=null&&p()&&_.V("web_enable_arrow_key_navigation_in_dropdown")){var D=_.gRo(t.currentTarget),d=D.length;if(d!==0){var e=Array.prototype.indexOf.call(D,document.activeElement);switch(t.key){case "ArrowDown":t.preventDefault();var n;(n=D[(e+1)%d])==null||n.focus();break;case "ArrowUp":t.preventDefault();var c;(c=D[e===-1?d-1:(e-1+d)%d])==null||c.focus()}}}});
var B={};return _.J("yt-list-view-model",{class:_.bb("ytListViewModelHost",(B.ytListViewModelHostKaiosSpatNav=q$R&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",B.ytListViewModelCollectionThumbnailClass=function(){return I3f(H())},B)),
role:function(){return u()?"menu":"list"},
style:_.pI({"max-height":function(){var t,D=(t=H())==null?void 0:t.visibleElementCount;if(D)return I3f(H())?(D+.5)*48+"px":(D+.5)*40+"px"}}),
"on:keydown":G},_.J(_.SP,{data:function(){return H().listItems}},{listItemViewModel:function(t){return _.J(_.L5,{data:t.data,
isMenuItem:u,isCompact:Z,hideSelectionTextChevron:Q,inPopup:p,isOverlay:l,disableHorizontalPadding:q})},
toggleableListItemViewModel:function(t){return _.J(etw,{data:t.data})},
downloadListItemViewModel:function(t){return _.J(TCG,{data:t.data,isMenuItem:u,isCompact:Z,inPopup:p,disableHorizontalPadding:q})},
switchListItemViewModel:function(t){return _.J(_.drN,{data:t.data,disableHorizontalPadding:q})}}))},"ie");
_.fl4.idomCompat=!0;var vDT=_.y(function(G){var H=G.data;var Z=G.isOverlay;G={};return _.J("yt-course-perks-view-model",{class:_.bb("ytwCoursePerksViewModelHost",(G.ytwCoursePerksViewModelHostOverlay=Z,G))},_.J("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",null,_.J(_.k,{cond:function(){return H().perks},
then:function(Q){return _.J(_.fl4,{data:function(){return{listItems:Q()}},
isCompact:!0,isOverlay:Z})}})))},"je");_.RX(vDT,"yt-course-perks-view-model",{props:{data:_.oX,isOverlay:_.oX}});_.RX(_.y(function(G){var H=G.data;return _.J("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.J("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.J(_.Fe,{text:function(){return H().progressSummary}})),_.J("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.J("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.pI({width:function(){return H().progressPercentage*100+"%"}})})))},"ke"),"yt-course-progress-view-model",{props:{data:_.b3}});var WYa=_.y(function(G){var H={};return _.J("yt-progress-view-model",{class:_.bb("ytwProgressViewModelHost",(H.ytwProgressViewModelHostOverlay=_.yy(G.isOverlay,!1),H))},_.J(_.k,{cond:function(){return G.data().progressSummary},
then:function(Z){return _.J("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.J(_.Fe,{text:Z}))}}),_.J("div",{class:"ytwProgressViewModelHostProgressContainer"},_.J(_.k,{cond:function(){return G.data().leadingLabel},
then:function(Z){return _.J("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.J(_.Fe,{text:Z}))}}),_.J("div",{class:"ytwProgressViewModelHostProgressBar"},_.J("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(G.data().progressPercentage||0)*100+"%"}}))))},"le");var FR=_.y(function(G){var H=G.starNumber;var Z=G.data;var Q=function(){var p;return((p=Z())==null?void 0:p.rating)||0};
return _.J(_.k,{cond:function(){return H()},
then:function(p){return _.J(_.iW,null,_.J(_.wO,{when:function(){return Q()>=p()-.25}},function(){return _.J("div",{class:"ytStarRatingViewModelHostStar"},_.J(_.ll,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.J(_.wO,{when:function(){return Q()>=p()-.75}},function(){return _.J("div",{class:"ytStarRatingViewModelHostStar"},_.J(_.ll,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.J(_.he,null,function(){return _.J("div",{class:"ytStarRatingViewModelHostStar"},_.J(_.ll,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"me"),zta=_.y(function(G){G=G.data;
return _.J("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.J(FR,{starNumber:1,data:G}),_.J(FR,{starNumber:2,data:G}),_.J(FR,{starNumber:3,data:G}),_.J(FR,{starNumber:4,data:G}),_.J(FR,{starNumber:5,data:G}))},"ne");_.RX(_.y(function(G){var H=_.oK(G,{}).data;return _.J("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.J("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.J(_.Fe,{text:function(){var Z;return(Z=H())==null?void 0:Z.title}})),_.J("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.J(_.k,{cond:function(){return H().starProgressViewModels},
then:function(Z){return _.J("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.J(_.SP,{data:Z},{progressViewModel:WYa}))}}),_.J("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.J("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.J(_.Fe,{text:function(){var Z;
return(Z=H())==null?void 0:Z.averageRatingLabel}})),_.J(_.k,{cond:function(){return H().zeroStateText},
then:function(Z){return _.J("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.J(_.Fe,{text:Z}))}}),_.J(_.k,{cond:function(){return H().starRatingViewModel},
then:function(Z){return _.J("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.J(_.SP,{data:Z},{starRatingViewModel:zta}))}}),_.J("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.J(_.Fe,{text:function(){var Z;
return(Z=H())==null?void 0:Z.totalRatingsCountLabel}})))))},"oe"),"yt-course-ratings-view-model",{props:{data:_.oX}});var KYa;KYa={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"}};_.Mx2=_.y(function(G){var H=_.IA("yt-learning-journey-loader-view-model"),Z=_.sw();_.yP(function(){requestAnimationFrame(function(){var p;(p=Z.lottieEl)==null||p.addEventListener("DOMLoaded",function(){var l;(l=G.onLottieLoaded)==null||l.call(G)})});
var Q=G.data().browseEndpoint;Q&&_.zt(Q)});
return _.J("yt-learning-journey-loader-view-model",{class:_.bb("learningJourneyLoaderViewModelHost",G.className),"data-target-id":function(){return G.data().targetId||""},
el:H},_.J(_.cY,{className:_.bb("learningJourneyLoaderViewModelLoader",G.className),animationName:function(){return KYa.animationConfig.name},
data:KYa,animationRef:Z}))},"qe");_.RX(_.Mx2,"yt-learning-journey-loader-view-model",{props:{data:_.b3,className:_.oX,onLottieLoaded:_.oX}});var Sff=new Set,qfv=null;var jCa=_.y(function(G){var H=void 0,Z=function(){return G.data()},Q=function(){return!!Jl(uL(Z())).optionColor},p=_.I(_.Ty(-1,void 0,"eTdwcb")),l=p.next().value,q=p.next().value,u=function(e){return l()===e},B=function(e){return Z().correctAnswerIndex===e},t=function(){return l()!==-1};
p=_.I(_.Ty("",void 0,"QwJs6"));var D=p.next().value,d=p.next().value;return _.J("learning-journey-quiz-view-model",{class:_.bb("learningQuizComponentHost","learningJourneyQuizYoututorHost",G.className),style:_.pI({background:function(){return Jl(uL(Z())).backgroundColor}})},_.J("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},D),_.J("div",{class:"learningQuizComponentQuizContainer"},_.J("div",{class:"learningQuizComponentQuiz"},_.J("div",{class:"learningQuizComponentQuizContent"},_.J(_.k,{cond:function(){return!!Z().aiGeneratedQuizLabel},
then:function(){return _.J("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.J(_.Fe,{text:function(){return Z().aiGeneratedQuizLabel}}))}}),_.J("div",{class:"learningQuizComponentQuizHeader",
style:_.pI({"align-items":function(){return Z().overflowMenu?"start":"center"}})},_.J("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.pI({"min-height":function(){return Z().overflowMenu?"48px":"26px"}})},_.J("div",{class:"learningJourneyQuizYoututorText",
style:_.pI({color:function(){return Jl(uL(Z())).primaryTextColor}})},_.J(_.Fe,{text:function(){return Z().questionHeaderText}})))),_.J("div",{class:"learningQuizComponentQuizSubheader",
style:_.pI({color:function(){return Jl(uL(Z())).secondaryTextColor}})},_.J(_.Fe,{text:function(){var e=Z();
return t()?e.explanationText:e.questionSubheaderText}}))),_.J("div",{role:"group",
class:_.bb("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.J(_.Cl,{each:function(){return Z().optionsData||[]}},function(e,n){var c={};
return _.J("button",{class:_.bb("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(c.learningQuizComponentQuizHover=function(){return!t()},c.learningQuizComponentQuizOptionWithCustomColor=Q,c.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return t()&&B(n())},c.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return l()!==Z().correctAnswerIndex&&u(n())},c.learningQuizComponentQuizIncorrectShake=
function(){return l()!==Z().correctAnswerIndex&&u(n())},c)),
"on:click":_.Hh(function(){if(t())return!1;q(n());var W,M;d(B(n())?((W=Z().successTitle)==null?void 0:W.content)||"":((M=Z().failureTitle)==null?void 0:M.content)||"");return!1}),
style:_.pI({background:"transparent"}),"aria-description":function(){var W,M;return t()?B(n())?(W=Z().successTitle)==null?void 0:W.content:(M=Z().failureTitle)==null?void 0:M.content:""},
"aria-disabled":t,el:_.aX(function(W){_.tl(271905,W,H,function(M){H=M})}),
"client-ve-type":271905},_.J("div",{class:"learningQuizComponentQuizOptionContainer"},_.J(_.Fe,{text:e.optionText}),_.J(_.k,{cond:function(){var W=n();return t()&&(u(W)||B(W))},
then:function(){var W={};return _.J(_.ll,{className:_.bb("learningJourneyQuizYoututorOptionIcon",(W.learningQuizComponentQuizPulse=function(){return l()===Z().correctAnswerIndex&&B(n())},W)),
size:24,icon:function(){return B(n())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.J(_.k,{cond:t,
then:function(){return _.J("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.J("div",{class:"learningJourneyQuizYoututorExplanationText"},_.J(_.Fe,{text:function(){return Z().explanationHeaderText}})),_.J(_.Fe,{text:function(){return Z().optionsData[l()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"re");
jCa.idomCompat=!0;var PvN;_.rKG=_.y(function(G){var H=null,Z=null,Q=null,p=function(){return G.data()},l=function(){return Jl(uL(p()))},q=function(){return!!l().optionColor},u=_.I(_.Ty(-1,void 0,"gXauJb")),B=u.next().value,t=u.next().value,D=function(U){return B()===U},d=function(U){return p().correctAnswerIndex===U},e=function(){return B()!==-1},n=function(){return B()===p().correctAnswerIndex},c=function(){var U=p(),R=e(),L=n();
return R?L?U.successTitle:U.failureTitle:U.questionHeaderText},W=function(){var U=e(),R=n();
return U?R?264685:264684:264683},M=function(){var U=p();
return e()?U.explanationText:U.questionSubheaderText},r=function(){return!!p().video},w=function(U){return n()&&d(U)},x=_.Hh(function(){t(-1);
return!1});
return _.J(_.k,{cond:function(){return p().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.J(jCa,{data:function(){return p()}})},
else:function(){return _.J("learning-journey-quiz-view-model",{class:_.bb("learningQuizComponentHost",G.className),style:_.pI({background:function(){return l().backgroundColor}})},_.J(_.k,{cond:r,
then:function(){return _.J("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.pI({background:function(){return l().videoBackgroundColor}})},_.J(_.SP,{data:function(){return p().video}},{lockupViewModel:function(U){return _.J(_.Xf,{data:U.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.J("div",{class:"learningQuizComponentQuizContainer"},_.J("div",{class:"learningQuizComponentQuiz"},_.J("div",{class:"learningQuizComponentQuizContent"},_.J(_.k,{cond:function(){return!!p().aiGeneratedQuizLabel},
then:function(){return _.J("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.J(_.Fe,{text:function(){return p().aiGeneratedQuizLabel}}))}}),_.J("div",{class:"learningQuizComponentQuizHeader",
style:_.pI({"align-items":function(){return p().overflowMenu?"start":"center"}})},_.J("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.pI({"min-height":function(){return p().overflowMenu?"48px":"26px"}})},_.J("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.aX(function(U){_.tl(W(),U,H,function(R){H=R})}),
style:_.pI({color:function(){return l().primaryTextColor}}),
"client-ve-type":W},_.J(_.Fe,{text:c}))),_.J("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.J(_.k,{cond:e,then:function(){return _.J("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.aX(function(U){_.tl(264687,U,Z,function(R){Z=R})}),
"on:click":x,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.J("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.pI({fill:function(){return l().primaryTextColor}})},_.J("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"})))}}),
_.J(_.SP,{data:function(){return p().overflowMenu}},{buttonViewModel:function(U){return _.J(_.kg,{data:U.data})}}))),_.J("div",{class:"learningQuizComponentQuizSubheader",
el:_.aX(function(U){_.tl(264688,U,Q,function(R){Q=R})}),
style:_.pI({color:function(){return l().secondaryTextColor}}),
"client-ve-type":264688},_.J(_.Fe,{text:M}))),_.J("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.J(_.Cl,{each:function(){return p().optionsData||[]}},function(U,R){var L={};
return _.J("button",{class:_.bb("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(L.learningQuizComponentQuizHover=function(){return!e()},L.learningQuizComponentQuizOptionWithCustomColor=q,L.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return w(R())},L.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!n()&&D(R())},L.learningQuizComponentQuizIncorrectShake=function(){return!n()&&
D(R())},L.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return e()&&!D(R())},L)),
"on:click":_.Hh(function(){if(e())return!1;t(R());return!1}),
style:_.pI({background:function(){var H3=R();return e()&&D(H3)?"":q()?l().optionColor:"transparent"}}),
"aria-disabled":e,"client-ve-type":264686},_.J("div",{class:"learningQuizComponentQuizOptionContainer"},_.J(_.k,{cond:e,then:function(){return _.J(PvN,{isOptionCorrect:d,optionIndex:R,isOptionSelectedAndCorrect:w,colors:l})}}),_.J(_.Fe,{text:U.optionText})))})))))}})},"se");
PvN=_.y(function(G){var H={};return _.J("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var Z=G.optionIndex();return G.isOptionCorrect(Z)?"0 0 24 24":"0 -960 960 960"},
class:_.bb("learningJourneyQuizViewModelQuizOptionIconLeading",(H.learningQuizComponentQuizPulse=function(){return G.isOptionSelectedAndCorrect(G.optionIndex())},H)),
style:_.pI({fill:function(){return G.colors().primaryTextColor}})},_.J("path",{d:function(){var Z=G.optionIndex();
return G.isOptionCorrect(Z)?"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"}}))},"te");
_.rKG.idomCompat=!0;_.RX(_.rKG,"learning-journey-quiz-view-model",{props:{data:_.b3,className:_.b3}});var wHt=_.y(function(G){var H=_.I((0,_.NHt)(function(){var q;return{targetId:(q=G.data().config)==null?void 0:q.suspenseKey,contents:[G.data()]}})).next().value,Z=_.tp().resolve(_.Dk),Q=function(){var q=H().contents.length>0?H().contents[0]:void 0;
return q==null?void 0:q.config},p=function(){var q;
return(q=Q())==null?void 0:q.entityTriggerConfig},l=_.gu(Ihv,function(){var q,u;
return(u=(q=p())==null?void 0:q.entityKey)!=null?u:""});
_.yN(function(){var q,u,B,t=(B=Number((q=p())==null?void 0:(u=q.invalidationTimestamp)==null?void 0:u.seconds))!=null?B:0,D,d,e;if(((e=Number((D=l())==null?void 0:(d=D.lastUpdated)==null?void 0:d.seconds))!=null?e:0)>t){var n;(q=(n=Q())==null?void 0:n.continuationCommand)&&Z.resolveCommand(q)}},"tC8nKe");
return _.J("yt-suspense-view-model",{class:_.bb("ytSuspenseViewModelHost")},_.J(_.SP,{data:function(){var q;return(q=Q())==null?void 0:q.contents}},{lockupViewModel:_.Xf}))},"ve");var ht_=_.y(function(G){var H=_.oK(G,{palette:void 0,isLastItem:!1}),Z=H.palette,Q=H.isLastItem,p=function(){return G.data().isHighlighted},l=function(){var B;
return B_u((B=Z())==null?void 0:B.iconDisabledColor)},q=function(){var B;
return B_u((B=Z())==null?void 0:B.primaryTitleColor)},u=function(){var B;
return B_u((B=Z())==null?void 0:B.secondaryTitleColor)};
H={};return _.J("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.aX(_.$X(function(){return G.data().rendererContext}))},_.J(_.SP,{data:function(){return G.data().thumbnail}},{thumbnailViewModel:_.So}),_.J("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.J("div",{class:_.bb("ytMacroMarkerListItemViewModelTimeDescription",(H.ytMacroMarkerListItemViewModelHighlighted=p,H)),
style:_.pI({"background-color":function(){return p()?q():l()},
color:function(){return p()?"":u()}})},_.J(_.Fe,{text:function(){return G.data().timestamp}})),_.J("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.pI({"background-color":function(){return Q()?"transparent":l()}})}),_.J("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(p()?q():u())}},_.J(_.Fe,{text:function(){return G.data().title}}))))},"we");_.bR=_.y(function(G){function H(gf){w("transform:translateX("+(_.xI("HTML_DIR")==="rtl"?"":"-")+gf+"px)")}
function Z(gf){return Math.min(Math.max(gf,0),r()-H3())}
function Q(){var gf=R()+e2();return p()?(Math.round(H3()/gf)||1)*gf:0}
var p=function(){return G.data().items||[]},l=function(){return G.data().previousButton},q=function(){return G.data().nextButton},u=function(){var gf,sR;
return(sR=(gf=G.disableArrows)==null?void 0:gf.call(G))!=null?sR:!1},B=function(){var gf;
return!((gf=G.forceNarrowLayout)==null||!gf.call(G))},t=_.Kb(function(){var gf;
return!((gf=G.centerAlignItems)==null||!gf.call(G))&&r()<=H3()},void 0,"Uto0kc"),D=_.IA("horizontal-shelf-view-model"),d=_.IA("div"),e=_.I(_.Ty(0,void 0,"G0xZB")),n=e.next().value,c=e.next().value;
e=_.I(_.Ty(0,void 0,"kqCYFf"));var W=e.next().value,M=e.next().value,r=W;W=_.I(_.Ty("",void 0,"Hh6Uye"));e=W.next().value;var w=W.next().value;W=_.I(_.Ty(0,void 0,"yMGBKb"));var x=W.next().value,U=W.next().value,R=x;W=_.I(_.Ty(0,void 0,"VChthd"));x=W.next().value;var L=W.next().value,H3=x;W=_.I(_.Ty(!1,void 0,"qJlhhe"));var qX=W.next().value,B3=W.next().value;W=_.I(_.Ty(0,void 0,"x7H94"));x=W.next().value;var fW=W.next().value,e2=x;W=_.I(_.Ty(0,void 0,"ksuUee"));var $R=W.next().value,ie=W.next().value;
W=_.I(_.Ty("50%",void 0,"uxCxde"));var W3=W.next().value,DT=W.next().value,UR=function(){var gf,sR=(gf=G.data())==null?void 0:gf.responsiveContainerConfiguration,ep,Qh;return sR?WV(sR==null?void 0:sR.responsiveSize):(Qh=(ep=G.sizing)==null?void 0:ep.call(G))!=null?Qh:"STANDARD"};
W=_.Kb(function(){return!u()&&n()>0},void 0,"XK60w");
x=_.Kb(function(){return!u()&&n()<r()-H3()},void 0,"D22LVd");
var zx=function(){c(Z(n()-Q()));H(n())},be=function(){c(Z(n()+Q()));
H(n())},J_=function(){D.value!==null&&Kw()},rG;
_.mR(function(){Kw();window.ResizeObserver?(rG=new ResizeObserver(_.nO(J_,0)),rG.observe(D.value)):window.addEventListener("resize",J_)});
_.oM(function(){if(window.ResizeObserver){var gf;(gf=rG)==null||gf.disconnect()}else window.removeEventListener("resize",J_)});
var Kw=function(){var gf=D.value.clientWidth,sR=G.includeMargin!==void 0?G.includeMargin():!1,ep;var Qh=G.hasPeek!==void 0?G.hasPeek():!((ep=G.data())==null||!ep.hasPeek);gf=_.vV({containerWidth:gf,hasPeek:Qh,sizing:UR(),marginSettings:sR?B()?4:1:0});fW(gf.gutter);ie(gf.margin);U(gf.itemWidth);B3(gf.maxContainerWidth<528||B());L(gf.maxContainerWidth);p()&&M((gf.itemWidth+gf.gutter)*p().length-gf.gutter);if(p()){var $w;if((($w=G.thumbnailAspectRatio)==null?void 0:$w.call(G))!==void 0){var Zt;DT(R()/
OPR((Zt=G.thumbnailAspectRatio)==null?void 0:Zt.call(G))/2+"px")}else DT("50%")}},cD={},ec={};
return _.J("horizontal-shelf-view-model",{class:_.bb("ytwHorizontalShelfViewModelHost",G.className),el:D},_.J(_.k,{cond:function(){var gf;return G.data().header&&!((gf=G.horizontalShelfExperiments)==null?0:gf.call(G).hideHeader)},
then:function(){return _.J("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.pI({width:function(){return H3()+"px"},
padding:function(){return"0 "+$R()+"px"}})},_.J(_.SP,{data:function(){return G.data().header}},{sectionHeaderViewModel:function(gf){return _.J(_.v_,{data:gf.data,
disableHorizontalPadding:!0,forceSmallLayout:qX,useResponsiveLayout:!0})}}))}}),_.J("div",{class:_.bb("ytwHorizontalShelfViewModelOuterContainer",(cD.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return t()},cD)),
style:_.pI({"margin-top":function(){var gf,sR=G.data().header&&!((gf=G.horizontalShelfExperiments)==null?0:gf.call(G).hideHeader),ep;return(((ep=G.ensureMarginTop)==null?0:ep.call(G))&&!sR?12:0)+"px"}})},_.J("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.pI({width:function(){return H3()+"px"},
padding:function(){return"0 "+$R()+"px"},
overflow:function(){return u()?"auto":"hidden"}})},_.J("div",{class:_.bb("ytwHorizontalShelfViewModelItems",(ec.ytwHorizontalShelfViewModelCenterAlignItems=function(){return t()},ec)),
el:d,style:e},_.J(_.SP,{data:p},{macroMarkerListItemViewModel:function(gf,sR){return _.J("div",{style:_.pI({width:function(){return R()+"px"},
"margin-right":function(){return(sR()===p().length-1?0:e2())+"px"}})},_.J(ht_,{data:gf.data,
palette:_.yy(G.palette),isLastItem:function(){return sR()===p().length-1}}))},
lockupViewModel:function(gf,sR){var ep=gf.data;return _.J("div",{style:_.pI({width:function(){return R()+"px"},
"margin-right":function(){return(sR()===p().length-1?0:e2())+"px"}})},_.J(_.Xf,{data:ep,
containerType:4,sizing:UR,protectBackground:G.protectBackground,thumbnailFixedWidth:function(){return JYo(ep())+"px"},
thumbnailTargetWidth:function(){return JYo(ep())}}))},
suspenseViewModel:function(gf,sR){return _.J("div",{style:_.pI({width:function(){return R()+"px"},
"margin-right":function(){return(sR()===p().length-1?0:e2())+"px"}})},_.J(wHt,{data:gf.data}))}}))),_.J(_.k,{cond:W,
then:function(){return _.J("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.pI({top:function(){return W3()}})},_.J(_.SP,{data:l},{buttonViewModel:function(gf){return _.J(_.kg,{data:gf.data,
onClick:zx})}}))}}),_.J(_.k,{cond:x,
then:function(){return _.J("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.pI({top:function(){return W3()}})},_.J(_.SP,{data:q},{buttonViewModel:function(gf){return _.J(_.kg,{data:gf.data,
onClick:be})}}))}})))},"xe");
_.bR.idomCompat=!0;var Cva=_.y(function(G){var H=function(){return G.data().targetId||""},Z=function(){var W;
return((W=G.data())==null?void 0:W.expansionEntityKey)||""},Q=_.gu(_.g2f,Z),p=!0,l=function(){var W;
return((W=Q())==null?void 0:W.value)===H()},q=function(W){_.aK(_.uP("stringEntity",Z(),{key:Z(),
value:W?H():""}))};
_.yP(function(){p=!1;G.data().isExpanded&&q(!0)});
var u=function(){if(l()){var W=!0;G.onCollapse!==void 0&&(W=G.onCollapse());W&&q(!1)}else q(!0)},B=_.Hh(u),t=function(){var W;
return(((W=G.accordionStyle)==null?void 0:W.call(G))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},D=_.IA("div"),d=function(){var W,M;
return(M=(W=_.X(G.data().rendererContext,_.qc))==null?void 0:W.label)!=null?M:""},e=function(){var W,M;
return{disabled:(W=G.hideIfNotExpanded)==null?void 0:W.call(G),ariaHidden:(M=G.hideIfNotExpanded)==null?void 0:M.call(G)}},n={},c={};
return _.J("yt-accordion-item-view-model",{class:_.bb("ytAccordionItemViewModelHost",G.className,(n.ytAccordionItemViewModelExpanded=function(){return l()},n.ytAccordionItemViewModelHidden=function(){var W;
return(W=G.hideIfNotExpanded)==null?void 0:W.call(G)},n.ytAccordionItemViewModelMini=t,n)),
"data-target-id":H},_.J("div",{class:"ytAccordionItemViewModelContainer"},_.J("div",{class:"ytAccordionItemViewModelLeftSection","on:click":B,title:d,"aria-hidden":function(){var W;return(W=G.hideIfNotExpanded)==null?void 0:W.call(G)}},_.J(_.Fe,{text:function(){return G.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:d})),_.J("div",{class:"ytAccordionItemViewModelRightSection"},_.J(_.SP,{data:function(){return l()?G.data().expandButton:G.data().collapseButton}},{buttonViewModel:function(W){return _.J(_.kg,{data:W.data,
className:"ytAccordionItemViewModelToggleButton",onClick:u,buttonOverrides:e})}}))),_.J("div",{class:"ytAccordionItemViewModelContainer"},_.J("div",{class:_.bb("ytAccordionItemViewModelContent",(c.ytAccordionItemViewModelExpandedSubtitle=function(){return l()},c)),
el:D,style:_.pI({"max-height":function(){return p?"auto":l()?D.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!l()}},_.J(_.k,{cond:function(){return!t()},
then:function(){return _.J(_.Fe,{text:function(){return G.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.J(_.SP,{data:function(){return G.data().content}},{horizontalShelfViewModel:function(W){return _.J(_.bR,{data:W.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ze");_.ijt=_.y(function(G){var H=_.I((0,_.NHt)(G.data)).next().value,Z=function(){return G.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},Q=function(){return Z()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},p=_.I(_.Ty(!0,void 0,"VFpYAb")),l=p.next().value,q=p.next().value,u=function(){return Q()&&l()},B=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){q(!l())}}},t=_.Hh(function(){H().onTitleTap&&_.zt(H().onTitleTap||{})});
p={};return _.J("yt-accordion-view-model",{class:_.bb("ytAccordionViewModelHost",(p.ytAccordionViewModelMinimized=function(){return u()},p)),
"data-target-id":function(){return G.data().targetId||""}},_.J(_.k,{cond:function(){return Q()||!!H().title},
then:function(){return _.J("div",{class:"ytAccordionViewModelHeader"},_.J("div",{class:"ytAccordionViewModelTitleSection"},_.J("div",{class:"ytAccordionViewModelTitleWrapper"},_.J(_.k,{cond:function(){return!!G.data().headerIcon},
then:function(){return _.J(_.ll,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var D;return(D=G.data().headerIcon)==null?void 0:D.iconType}})}}),_.J("div",{class:"ytAccordionViewModelTitle",
"on:click":t},_.J(_.Fe,{className:"ytAccordionViewModelTitleText",text:function(){return H().title}})))),_.J("div",{class:"ytAccordionViewModelButtonSection"},_.J(_.k,{cond:Q,
then:function(){return _.J(_.tf,{data:B,iconName:function(){return u()?"chevron_down":"chevron_collapse"}})}})))}}),_.J("div",{class:"ytAccordionViewModelContent"},_.J(_.SP,{data:function(){return H().contents}},{accordionItemViewModel:function(D){return _.J(Cva,{data:D.data,
className:"ytAccordionViewModelRow",accordionStyle:Z,hideIfNotExpanded:u,onCollapse:function(){return Q()?(q(!0),!1):!0}})}})),_.J("div",null,_.J(_.k,{cond:function(){return!Q()&&(!!H().disclaimerFooter||!!H().footer)},
then:function(){return _.J("div",{class:"ytAccordionViewModelFooter"},_.J(_.Fe,{text:function(){return H().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.J(_.SP,{data:function(){return G.data().footer}},{flexibleActionsViewModel:function(D){return _.J(_.RP,{data:D.data,
layout:0})}}))}})))},"Ae");_.RX(_.ijt,"yt-accordion-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=null,Z=null,Q,p=(Q=_.tp().resolve(_.Jp(_.rr)))==null?void 0:Q(),l=_.I(_.Ty(!1,void 0,"CmEVtc"));Q=l.next().value;var q=l.next().value;l=_.I(_.Ty(!0,void 0,"yo9dR"));var u=l.next().value,B=l.next().value,t=_.IA("textarea",function(M){_.tl(264503,M,H,function(r){H=r})}),D=function(M){q(!0);
M={learningJourneyFormData:{query:M}};_.zt(G.data().searchEndpoint||{},{form:{formData:M}});return!1},d=_.Hh(function(M){M.target.closest("button-view-model")&&q(!0)});
l=_.Hh(function(){B(t.value.value.length===0)});
var e=_.Hh(function(M){if(M.key==="Enter"&&!M.shiftKey&&!u()){var r=M.target;M.preventDefault();D(r.value)}}),n={},c={},W={};
return _.J("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.J("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.J(_.ib,{data:function(){return G.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.J("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.J("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.J("div",{class:_.bb("ytLearningJourneyZeroStateSearchBar",(n.ytLearningJourneyZeroStateSearchBarDark=p,n))},_.J("textarea",{class:_.bb("ytLearningJourneyZeroStateTextInput",(c.ytLearningJourneyZeroStateTextInputDark=p,c)),el:t,"on:keyup":l,"on:keydown":e,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.J("div",{class:_.bb("ytLearningJourneyZeroStateSearchButtonContainer",(W.ytLearningJourneyZeroStateSearchButtonContainerDark=p,W))},_.J(_.kg,{data:function(){return _.X(G.data().searchButton,_.HN)},
className:"search-button",onClick:function(){return D(t.value.value)},
buttonOverrides:function(){return{disabled:u(),style:p?"mono-inverse":"mono",size:"XL"}}}))),_.J(_.k,{cond:function(){return!!G.data().errorBanner},
then:function(){return _.J("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.aX(function(M){_.tl(264617,M,Z,function(r){Z=r})})},_.J(_.SP,{data:function(){return G.data().errorBanner}},{alertBannerViewModel:function(M){return _.J(_.pHG,{data:M.data,
"client-ve-type":264617})}}))}})),_.J(_.k,{cond:Q,
then:function(){return _.J("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.J(_.SP,{data:function(){return G.data().loader}},{learningJourneyLoaderViewModel:function(M){return _.J(_.Mx2,{data:M.data})}}))},
else:function(){return _.J("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.J(_.k,{cond:function(){return!!G.data().learningJourneyShelf},
then:function(){return _.J("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.J("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().learningJourneySectionTitle}),_.J(_.SP,{data:function(){return G.data().learningJourneyShelf}},{horizontalShelfViewModel:function(M){return _.J(_.bR,{data:M.data,
centerAlignItems:!0})}}))}}),_.J("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.J("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return G.data().suggestedJourneySectionTitle}),_.J("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":d},_.J(_.SP,{data:function(){return G.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(M){return _.J(_.RP,{data:M.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Be"),"yt-learning-journey-zero-state",{props:{data:_.b3}});var Oj_=_.y(function(G){var H=G.data;return _.J("ytvl-live-leaderboard-item-action-content-view-model",{class:_.bb("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.J(_.Fe,{text:function(){var Z;return(Z=H())==null?void 0:Z.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.J(_.SP,{data:function(){return H().actionButton}},{buttonViewModel:function(Z){return _.J(_.kg,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:Z.data})}}))},"Ce");var ala=_.y(function(G){var H=G.data;return _.J("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.bb("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.J(_.Fe,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var Z;return(Z=H())==null?void 0:Z.displayName},
ellipsisTruncate:!0}),_.J(_.SP,{data:function(){return H().badge}},{buttonViewModel:function(Z){return _.J(_.kg,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:Z.data})}}))},"De");_.RX(_.y(function(G){var H=G.data;return _.J("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.J("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.J(_.Fe,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var Z;return(Z=H())==null?void 0:Z.rank}})),_.J("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.J(_.SP,{data:function(){return H().avatar}},{avatarViewModel:_.m9})),_.J("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.J(_.SP,{data:function(){return H().content}},{liveLeaderboardItemChannelContentViewModel:ala,
liveLeaderboardItemActionContentViewModel:Oj_})),_.J(_.Fe,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var Z;return(Z=H())==null?void 0:Z.points}}))},"Ee"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;return _.J("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.J(_.Fe,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var Z,Q;return(Z=H())==null?void 0:(Q=Z.ranking)==null?void 0:Q.rank}}),_.J("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.J(_.SP,{data:function(){return H().avatar}},{avatarViewModel:_.m9})),_.J(_.Fe,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var Z,Q;return(Z=H())==null?void 0:(Q=Z.channelContent)==null?void 0:Q.channelName}}),_.J(_.Fe,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var Z;return(Z=H())==null?void 0:Z.points}}))},"Fe"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.b3}});var yKt=_.y(function(G){G=_.oK(G,{wrapper:!1}).wrapper;return _.J(_.k,{cond:G,then:function(){return _.J("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.J("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.J("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ge");
yKt.idomCompat=!0;var oDx=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],mr4=_.y(function(G){var H=G.data;var Z=_.aX(),Q=_.Kb(function(){return H().command},void 0,"fyYsT");
_.yN(function(){Q()&&_.fX(Q(),{form:{element:Z.value}})},"B0nxdb");
return _.J("div",{el:Z,class:"YtQrCodeRendererHostContainer"},_.J(_.k,{cond:function(){return H().qrCodeImage},
then:function(p){return _.J(_.ib,{data:p,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.J(_.k,{cond:function(){return H().spinner},
then:function(){return _.J(yKt,null)}})}}),_.J(_.k,{cond:function(){return H().label},
then:function(p){return _.J(_.Fe,{text:p,className:"YtQrCodeRendererHostLabel"})}}),_.J(_.k,{cond:function(){return H().labels},
then:function(p){return _.J("div",{class:"YtQrCodeRendererHostLabels"},_.J(_.Cl,{each:p},function(l){return _.J(_.Fe,{text:l})}))}}))},"Je");_.RX(_.y(function(G){var H=G.data;var Z=_.Kb(function(){return H().qrEntityKey},void 0,"LmZ2xf"),Q=_.Kb(function(){return H().deleteEntityOnDismiss},void 0,"my0Tzb"),p=_.Kb(function(){return H().command},void 0,"hzECIb"),l=_.gu($DU,Z);
G=_.Kb(function(){return H().qrCodeImage},void 0,"AnD9rc");
var q=_.Kb(function(){return H().style&&oDx.includes(H().style)},void 0,"f5fZv"),u=_.tk({visibilityCallback:function(B){B&&p()&&_.fX(p())},
showOption:{calledOnce:!0,state:"visible"}});_.mR(function(){_.oM(function(){Q()&&Z()&&_.OI().dispatch(_.uP("qrCodeEntity",Z()))})});
return _.J("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.aX(u)},_.J(_.k,{cond:q,then:function(){return _.J(_.k,{cond:l,then:function(B){return _.J(mr4,{data:B})}})}}),_.J(_.k,{cond:G,
then:function(B){return _.J(_.ib,{data:B,alt:""})}}))},"He"),"yt-qr-code-renderer",{props:{data:_.b3}});var Rta=_.y(function(G){var H=function(){return _.c$(1728053247&(G.barColor!==void 0?Qj(G.barColor()):4278190080))};
return _.J("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.J(UrR,{animationDelay:0,percentWidth:100,barColor:function(){return H()}}),_.J("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.J("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+H()}})),_.J(UrR,{animationDelay:0,
percentWidth:100,barColor:function(){return H()}}),_.J(UrR,{animationDelay:600,
percentWidth:60,barColor:function(){return H()}}))},"Ke"),UrR=_.y(function(G){return _.J("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+G.percentWidth()+"%"}},_.J("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var H=G.animationDelay(),Z=G.barColor();return"animation-delay:"+H+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+Z+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Le");var NCw;_.AKG=_.y(function(G){function H(M){q(M)}
var Z=G.data;var Q=_.IA("yt-video-overview-view-model"),p=_.qK("div");G=_.I(_.Ty(-1,void 0,"qaDSu"));var l=G.next().value,q=G.next().value;G=_.I(_.Ty(0,void 0,"Vz681c"));var u=G.next().value,B=G.next().value,t={},D=_.gu(tTj,function(){return Z().asyncDataEntityKey}),d=function(){var M;
if((M=D())==null?0:M.videoOverviewViewModel){var r;return _.X((r=D())==null?void 0:r.videoOverviewViewModel,kZ4)}return Z()};
_.mR(function(){B(Math.min((Q.value.clientWidth-24)/4-8,72))});
var e=function(M){q(M);(p==null?0:p.value)&&p.value.children[M]&&p.value.children[M].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
WJv(Q,function(){var M;if((M=d())==null||!M.inlinePlaybackEndpoint)return null;var r;M=t==null?void 0:(r=t.thumbnailElRef)==null?void 0:r.value;if(!M)return null;var w;r=(w=d())==null?void 0:w.inlinePlaybackEndpoint;w=_.X(r,PM4);return{multipleVideoPreviewData:{data:(w==null?0:w.playerDescriptors)&&(w==null?0:w.playerDescriptors.length)?w.playerDescriptors:[],thumbnailElement:M,trackingParams:"test",callbacks:{onPlaybackStarted:e},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var n=function(){var M;return((M=d())==null?void 0:M.headerSubtext)!==void 0?!0:!1},c=function(){var M,r=Qj((M=d())==null?void 0:M.titleColor);
return r?"color: "+_.c$(r)+";":void 0},W=function(){var M,r=Qj((M=d())==null?void 0:M.subtextColor);
return r?"color: "+_.c$(r)+";":void 0};
return _.J("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:Q,style:function(){var M,r=Qj((M=d())==null?void 0:M.backgroundColor);return r?"background-color: "+_.c$(r)+";":void 0}},_.J(_.k,{cond:function(){var M;
return(M=d())==null?void 0:M.isLoading},
then:function(){return _.J(Rta,{barColor:function(){var M;return(M=d())==null?void 0:M.titleColor}})},
else:function(){return _.J(_.kI,null,_.J("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.J("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return c()}},_.J(_.Fe,{text:function(){var M;
return(M=d())==null?void 0:M.headerText}})),_.J(_.k,{cond:n,
then:function(){return _.J("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.J("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return W()}},_.J(_.ll,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.J("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return W()}},_.J(_.Fe,{text:function(){var M;
return(M=d())==null?void 0:M.headerSubtext}})))}})),_.J("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.J(_.SP,{data:function(){var M;
return(M=d())==null?void 0:M.thumbnail}},{thumbnailViewModel:function(M){return _.J(_.So,{data:M.data,
aspectRatio:0,playbackRef:XBj(t)})}})),_.J(_.k,{cond:function(){var M,r,w,x;
return((M=d())==null?void 0:(r=M.listItems)==null?void 0:r.length)!==void 0&&((w=d())==null?void 0:(x=w.listItems)==null?void 0:x.length)>0?!0:!1},
then:function(){return _.J("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:p},_.J(_.Cl,{each:function(){var M;return(M=d())==null?void 0:M.listItems}},function(M,r){return _.J(NCw,{image:M.image,
index:r,isSelected:function(){return r()===l()},
onClick:H,itemWidth:u})}))}}),_.J("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.J("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return c()}},_.J(_.Fe,{text:function(){var M,r,w,x,U,R,L;
return(L=(M=d())==null?void 0:(r=M.listItems)==null?void 0:(w=r[l()])==null?void 0:w.headline)!=null?L:(x=d())==null?void 0:(U=x.listItems)==null?void 0:(R=U[0])==null?void 0:R.headline}})),_.J("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return W()}},_.J(_.Fe,{text:function(){var M,r,w,x,U,R,L;
return(L=(M=d())==null?void 0:(r=M.listItems)==null?void 0:(w=r[l()])==null?void 0:w.subtext)!=null?L:(x=d())==null?void 0:(U=x.listItems)==null?void 0:(R=U[0])==null?void 0:R.subtext}}))))}}))},"Me");
NCw=_.y(function(G){var H=G.image;var Z=G.itemWidth;var Q=G.index;var p=G.isSelected;var l=G.onClick;G=_.Hh(function(){Q!==void 0&&l!==void 0&&l(Q());return!1});
var q={};return _.J("div",{class:_.bb("ytGenAiVideoOverviewViewModelCarouselItem",(q.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return p==null?void 0:p()},q)),
style:function(){return"width: "+Z()+"px;"},
"on:click":G},_.J(_.ib,{data:H,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.J(_.k,{cond:function(){return p==null?void 0:p()},
then:function(){return _.J("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.J("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ne");
_.AKG.idomCompat=!0;_.RX(_.AKG,"yt-video-overview-view-model",{props:{data:_.b3}});_.xrw=_.y(function(G){var H=G.data;var Z=G.topbarOffset;var Q,p=((Q=_.tp().resolve(_.Jp(_.rr)))==null?void 0:Q())||!1;return _.J("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var l=H();var q,u,B=p?(q=l.config)==null?void 0:q.darkThemeBackgroundColor:(u=l.config)==null?void 0:u.lightThemeBackgroundColor;l=B?_.X9(B):void 0;l="background-color: "+l+";";Z!==void 0&&(l+="top: -"+Z()+"px;");return l},
"aria-hidden":!0},_.J(_.k,{cond:function(){var l,q,u;return!!((l=H().backgroundImageConfig)==null?0:(q=l.image)==null?0:(u=q.sources)==null?0:u.length)},
then:function(){return _.J(_.ib,{data:function(){var l;return(l=H().backgroundImageConfig)==null?void 0:l.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.J("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+kAf(p,H().gradientColorConfig)+";"}}))},"Oe");
_.xrw.idomCompat=!0;var LYw=_.y(function(G){var H=G.data;var Z=G.isOverlay;return _.J("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.J("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.J(_.SP,{data:function(){return H().header}},{sectionHeaderViewModel:function(Q){return _.J(_.v_,{data:Q.data,
isOverlay:Z})}})),_.J("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.J(_.SP,{data:function(){return H().channelInfoButtons}},{flexibleActionsViewModel:_.RP})),_.J("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.J(_.SP,{data:function(){return H().description}},{descriptionPreviewViewModel:function(Q){return _.J(_.f5,{data:Q.data,
isOverlay:Z})}})))},"Pe");
LYw.idomCompat=!0;var ED4=_.y(function(G){var H=G.data;var Z={};return _.J("factoid-view-model",{class:_.bb("ytwFactoidViewModelHost",(Z.ytwFactoidViewModelHostOverlay=G.isOverlay,Z))},_.J(_.Fe,{text:function(){return H().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.J(_.Fe,{text:function(){return H().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Qe");
ED4.idomCompat=!0;var Ybw=_.y(function(G){var H=G.data;var Z=G.isOverlay;return _.J("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.J(_.SP,{data:function(){return H().factoids}},{factoidViewModel:function(Q){return _.J(ED4,{data:Q.data,
isOverlay:Z})}}))},"Re");
Ybw.idomCompat=!0;_.FYt=_.y(function(G){var H=G.data;var Z=G.isOverlay;return _.J("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.J(_.SP,{data:function(){return H().items}},{channelInfoViewModel:function(Q){return _.J("div",{class:"ytwCourseMetadataViewModelHostItem"},_.J(LYw,{data:Q.data,
isOverlay:Z}))},
coursePerksViewModel:function(Q){return _.J("div",{class:"ytwCourseMetadataViewModelHostItem"},_.J(vDT,{data:Q.data,isOverlay:Z}))},
descriptionPreviewViewModel:function(Q){return _.J("div",{class:"ytwCourseMetadataViewModelHostItem"},_.J(_.f5,{data:Q.data,isOverlay:Z}))},
factoidsRowViewModel:function(Q){return _.J("div",{class:"ytwCourseMetadataViewModelHostItem"},_.J(Ybw,{data:Q.data,isOverlay:Z}))},
progressViewModel:function(Q){return _.J("div",{class:"ytwCourseMetadataViewModelHostItem"},_.J(WYa,{data:Q.data,isOverlay:Z}))}}))},"Se");var bjG=_.y(function(G){return _.J("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.J(_.SP,{data:function(){return G.data().content}},{courseMetadataViewModel:function(H){return _.J(_.FYt,{data:H.data,
isOverlay:G.isOverlay})},
progressViewModel:function(H){return _.J(WYa,{data:H.data})}}))},"Te");var Goi=_.y(function(G){var H=G.data;G=G.className;var Z=function(){var p;return _.Vt((p=H())==null?void 0:p.rendererContext)},Q={};
Q=(Q.dynamicTextViewModelHost=!0,Q.dynamicTextViewModelHostTappable=function(){return Z()},Q);
return _.J("yt-dynamic-text-view-model",{el:_.aX(_.$X(function(){var p;return(p=H())==null?void 0:p.rendererContext})),
role:function(){return Z()?"link":void 0},
tabindex:function(){return Z()?0:void 0},
class:_.bb(G,Q)},_.J("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var p,l,q;return(q=(l=_.X((p=H())==null?void 0:p.rendererContext,_.qc))==null?void 0:l.label)!=null?q:""}},_.J(_.Fe,{text:function(){return H().text},
userInput:!0})))},"Ue");
Goi.idomCompat=!0;_.GS=_.y(function(G){var H=G.data;var Z=G.isPositionRelative;var Q=_.dqW("(max-width: 527.9px)"),p=function(){var l,q;return(q=(l=H())==null?void 0:l.style)!=null?q:"IMAGE_BANNER_STYLE_FULL_BLEED"};
G={};return _.J("yt-image-banner-view-model",{el:_.aX(_.$X(function(){var l;return(l=H())==null?void 0:l.rendererContext})),
class:_.bb((G.ytImageBannerViewModelHost=!0,G.ytImageBannerViewModelInset=function(){return eZW(p())},G.ytImageBannerViewModelPositionAbsolute=function(){return _.Uv(!0)&&!(Z==null?0:Z())},G.ytImageBannerViewModelSmallInset=function(){return eZW(p())&&Q()},G.ytImageBannerViewModelTappable=function(){var l;
return _.Vt((l=H())==null?void 0:l.rendererContext)},G))},_.J(_.k,{cond:function(){var l;
return(l=H())==null?void 0:l.image},
then:function(){return _.J(_.ib,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.J(_.SP,{data:function(){var l;
return(l=H())==null?void 0:l.overlays}},{thumbnailHoverOverlayViewModel:or}))},"Ve");
_.GS.idomCompat=!0;var HWm;HWm=_.y(function(G){var H=G.condition;var Z=G.content;return _.J(_.k,{cond:H,then:function(){return _.J("div",{class:"yt-page-header-view-model__scroll-container"},Z())},
else:function(){return Z()}})},"We");
_.suj=_.y(function(G){var H=G.data;var Z=G.noPadding;var Q=G.enableBanner;var p=G.cinematicContainerTopbarOffset;var l=G.allowCinematicContainerOverflow;var q=G.displayAsSidebar;var u=G.displayAsPanel;var B=G.alwaysUseMediumTextDescription;var t=npR(),D=function(){return!!H().image||!!H().animatedImage},d=function(){return!!H().background},e=function(){return(q==null?0:q())||(u==null?0:u())?1:t()},n=function(){return e()===1},c=function(){return n()||e()===2},W=function(){return e()===4},M=function(){var $R=
H();
var ie=!!H().heroImage;var W3=e(),DT=VTu(H()),UR=q==null?void 0:q(),zx=!$R.metadata,be;if(be=ie?_.X($R.heroImage,g3p):_.X($R.animatedImage||$R.image,g3p)){$R=be.style;var J_=be.layoutMode;if(J_!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(be=FCX(Yub(be)),ie)ie=Dqu(W3,$R,J_,be,UR);else b:if(zx)ie=W3===1?{size:48}:{size:72};else switch(W3){case 1:ie={size:72};break b;case 2:ie={size:120};break b;default:ie=DT<4?{size:120}:{size:160}}else ie=void 0}else ie={size:0};return ie};
G={};G=_.bb((G["yt-page-header-view-model"]=!0,G["yt-page-header-view-model--no-padding"]=function(){return!(Z==null||!Z())},G["yt-page-header-view-model--small-top-padding"]=function(){return n()&&!H().actions&&!(u==null?0:u())||e()===2&&!(D()||H().heroImage)},G["yt-page-header-view-model--small-bottom-padding"]=function(){return c()&&!H().actions&&!(u==null?0:u())},G["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(l==null?0:l())},G["yt-page-header-view-model--display-as-sidebar"]=
q,G));
var r={},w=_.bb((r["yt-page-header-view-model__page-header-headline"]=!0,r["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var $R;return($R=M())==null?void 0:$R.allowFullWidth},r)),x=function(){var $R;
return c()&&!(($R=M())==null?0:$R.allowFullWidth)},U=function(){return n()&&(!!H().heroImage||D())&&VTu(H())>0},R=function(){return U()&&(u==null?void 0:u())};
r={};var L=_.bb((r["yt-page-header-view-model__page-header-title"]=!0,r["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!U()},r["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return U()&&!R()},r["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=R,r["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=d,r));
r={};var H3=_.bb((r["yt-page-header-view-model__page-header-headline-image"]=!0,r["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!H().heroImage&&c()},r));
r={};var qX=_.bb((r["yt-page-header-view-model__page-header-banner-container"]=Q,r["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var $R;return(Q==null?void 0:Q())&&(($R=_.X(H().banner,_.q5T))==null?void 0:$R.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},r));
r={};var B3=_.bb((r["yt-page-header-view-model__page-header-content-metadata"]=!0,r["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=d,r));r={};var fW=_.bb((r["yt-page-header-view-model__page-header-flexible-actions"]=!0,r["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!H().metadata||c()},r["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!c()},r));
r={};var e2=_.bb((r["yt-page-header-view-model__page-header-attribution"]=!0,r["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=d,r));return _.J("yt-page-header-view-model",{class:G},_.J(_.k,{cond:d,then:function(){return _.J("div",{class:"yt-page-header-view-model__page-header-background"},_.J(_.SP,{data:function(){return H().background}},{cinematicContainerViewModel:function($R){return _.J(_.xrw,{data:$R.data,
topbarOffset:p})}}))}}),_.J(HWm,{condition:function(){return!(q==null||!q())},
content:function(){return _.J("div",{class:"yt-page-header-view-model__page-header-content"},_.J(_.k,{cond:function(){return(Q==null?void 0:Q())&&H().banner},
then:function(){return _.J("div",{class:qX},_.J(_.SP,{data:function(){return H().banner}},{imageBannerViewModel:_.GS}))}}),_.J("div",{class:w},_.J(_.k,{cond:D,
then:function(){return _.J(_.SP,{data:function(){var $R;if(!($R=H().animatedImage)){$R=H();if(D()){var ie=$R=Object.assign({},$R),W3=e(),DT=VTu(H()),UR=ie.image,zx=_.X(UR,I9w),be=zx==null?void 0:zx.avatar,J_=_.X(be,_.Xu);if(UR&&be&&J_){switch(W3){case 1:J_.avatarImageSize="AVATAR_SIZE_XL";break;case 2:J_.avatarImageSize="AVATAR_SIZE_XXL";break;default:DT<4?J_.avatarImageSize="AVATAR_SIZE_XXL":J_.avatarImageSize="AVATAR_SIZE_XXXL"}_.nX(be,_.Xu,Object.assign({},J_));zx.avatar=Object.assign({},be);_.nX(UR,
I9w,Object.assign({},zx));ie.image=Object.assign({},UR)}}$R=$R.image}return $R}},{contentPreviewImageViewModel:function($R){return _.J(_.kz,{data:$R.data,
className:H3,imageSizeConfig:M})},
decoratedAvatarViewModel:function($R){return _.J(_.U5,{data:$R.data,className:H3})}})}}),_.J(_.k,{cond:function(){return!!H().heroImage&&!x()},
then:function(){return _.J(_.SP,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function($R){return _.J(_.kz,{data:$R.data,
className:H3,imageSizeConfig:M})}})}}),_.J("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.J(_.k,{cond:function(){return!!H().heroImage&&x()},
then:function(){return _.J("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.J(_.SP,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function($R){return _.J(_.kz,{data:$R.data,
className:H3,imageSizeConfig:M})}}))}}),_.J(_.SP,{data:function(){return H().title}},{dynamicTextViewModel:function($R){return _.J(Goi,{data:$R.data,
className:L})}}),_.J(_.SP,{data:function(){return H().metadata}},{contentMetadataViewModel:function($R){return _.J(_.dB,{data:$R.data,
layout:function(){return n()?1:0},
className:B3,isOverlay:d,useMediumText:W})}}),_.J(_.k,{cond:function(){return H().description&&!n()},
then:function(){return _.J(_.SP,{data:function(){return H().description}},{descriptionPreviewViewModel:function($R){return _.J(_.f5,{data:$R.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:d,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:function(){return(B==null?void 0:B())||W()}})}})}}),_.J(_.k,{cond:function(){return H().attribution&&!c()},
then:function(){return _.J(_.SP,{data:function(){return H().attribution}},{attributionViewModel:function($R){return _.J(DF,{data:$R.data,
className:e2,useMediumText:W})}})}}),_.J(_.k,{cond:function(){return H().actions&&!c()},
then:function(){return _.J(_.SP,{data:function(){return H().actions}},{flexibleActionsViewModel:function($R){return _.J(_.RP,{data:$R.data,
layout:function(){return $q2(e())},
className:fW})}})}}))),_.J("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.J(_.k,{cond:function(){return H().description&&n()},
then:function(){return _.J(_.SP,{data:function(){return H().description}},{descriptionPreviewViewModel:function($R){return _.J(_.f5,{data:$R.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:d,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:function(){return(B==null?void 0:B())||W()}})}})}}),_.J(_.k,{cond:function(){return H().attribution&&c()},
then:function(){return _.J(_.SP,{data:function(){return H().attribution}},{attributionViewModel:function($R){return _.J(DF,{data:$R.data,
className:e2,useMediumText:W})}})}}),_.J(_.k,{cond:function(){return H().actions&&c()},
then:function(){return _.J(_.SP,{data:function(){return H().actions}},{flexibleActionsViewModel:function($R){return _.J(_.RP,{data:$R.data,
layout:function(){return $q2(e())},
className:fW})}})}})),_.J("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.J(_.SP,{data:function(){return H().bottomMetadataFlexibleContainer}},{flexibleContainer:function($R){return _.J(bjG,{data:$R.data,
isOverlay:d})}})))}}))},"Xe");
_.suj.idomCompat=!0;_.RX(_.y(function(G){var H=_.I(_.Ty(!1,void 0,"qvRy4d")),Z=H.next().value,Q=H.next().value;return _.J("yt-official-card-view-model",{class:_.bb("ytOfficialCardViewModelHost",G.className),style:_.pI({"background-color":function(){var p,l=Qj((p=G.data())==null?void 0:p.backgroundColor);return l?_.c$(l):void 0}})},_.J(_.SP,{data:function(){return G.data().header}},{pageHeaderViewModel:function(p){return _.J(_.suj,{data:p.data,
noPadding:!0})}}),_.J(_.SP,{data:function(){return G.data().contents}},{horizontalShelfViewModel:function(p){return _.J(_.bR,{data:p.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.J(_.k,{cond:Z,
then:function(){return _.J("div",{class:"ytOfficialCardViewModelExpandedContent"},_.J(_.SP,{data:function(){return G.data().expandedContents}},{horizontalShelfViewModel:function(p){return _.J(_.bR,{data:p.data,
sizing:"MINI"})}}),_.J("div",{class:"ytOfficialCardViewModelCollapseButton"},_.J(_.SP,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
onClick:function(){Q(!Z())}})}})))},
else:function(){return _.J("div",{class:"ytOfficialCardViewModelExpandButton"},_.J(_.SP,{data:function(){return G.data().expandButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
onClick:function(){Q(!Z())}})}}))}}))},"Ye"),"yt-official-card-view-model",{props:{data:_.b3,
className:_.b3}});var ZWs=_.y(function(G){var H,Z=(H=_.tp().resolve(_.Jp(_.rr)))==null?void 0:H();return _.J("ytw-search-friction-view-model",{class:_.bb("ytwSearchFrictionViewModelHost",G.className)},_.J("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.J("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.J(_.k,{cond:function(){return Z&&G.data().darkThemeImage?G.data().darkThemeImage:G.data().image},
then:function(Q){return _.J(_.ib,{data:Q,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.J(_.SP,{data:function(){return G.data().overflowMenuButton}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.J(_.Fe,{text:function(){return G.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.J(_.Cl,{each:function(){return G.data().bodyText||[]}},function(Q){return _.J(_.Fe,{text:Q,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.J(_.SP,{data:function(){return G.data().actions}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.J(_.Fe,{text:function(){return G.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.J(_.Fe,{text:function(){return G.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ze");
ZWs.idomCompat=!0;_.RX(ZWs,"ytw-search-friction-view-model",{props:{data:_.b3,className:_.b3}});_.Hi=_.y(function(G){var H=_.IA("markdown-div"),Z,Q=(Z=_.tp().resolve(_.Jp(_.rr)))==null?void 0:Z();_.yN(function(){var p=H.value;var l=new b0a,q=new Map(l.JSC$9307_sanitizerTable.globalAttributePolicies);q.set("style",{policyAction:4});l.JSC$9307_sanitizerTable=new VO(l.JSC$9307_sanitizerTable.allowedElements,l.JSC$9307_sanitizerTable.elementPolicies,l.JSC$9307_sanitizerTable.allowedGlobalAttributes,q,l.JSC$9307_sanitizerTable.globallyAllowedAttributePrefixes);var u=["data-time"];if(u===void 0)q=
new Set(l.JSC$9307_sanitizerTable.globallyAllowedAttributePrefixes),q.add("data-"),l.JSC$9307_sanitizerTable=new VO(l.JSC$9307_sanitizerTable.allowedElements,l.JSC$9307_sanitizerTable.elementPolicies,l.JSC$9307_sanitizerTable.allowedGlobalAttributes,l.JSC$9307_sanitizerTable.globalAttributePolicies,q);else{q=new Set(l.JSC$9307_sanitizerTable.allowedGlobalAttributes);u=_.I(u);for(var B=u.next();!B.done;B=u.next()){B=B.value;if(B.indexOf("data-")!==0)throw Error("ka`"+B);q.add(B)}l.JSC$9307_sanitizerTable=
new VO(l.JSC$9307_sanitizerTable.allowedElements,l.JSC$9307_sanitizerTable.elementPolicies,q,l.JSC$9307_sanitizerTable.globalAttributePolicies,l.JSC$9307_sanitizerTable.globallyAllowedAttributePrefixes)}q=new Set(l.JSC$9307_sanitizerTable.allowedGlobalAttributes);q.add("class");l.JSC$9307_sanitizerTable=new VO(l.JSC$9307_sanitizerTable.allowedElements,l.JSC$9307_sanitizerTable.elementPolicies,q,l.JSC$9307_sanitizerTable.globalAttributePolicies,l.JSC$9307_sanitizerTable.globallyAllowedAttributePrefixes);
_.Is(p,_.x_t(l.build(),cYX(G.text())));T_u(H.value)},"OZ439c");
Z={};return _.J("div",null,_.J("markdown-div",{class:_.bb("ytwMarkdownDivHost",(Z.ytwMarkdownDivDark=Q,Z.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var p;return((p=G.isSmallText)==null?void 0:p.call(G))||!1},Z.ytwMarkdownDivHostWrapCodeBlocks=function(){var p;
return((p=G.wrapCodeBlocks)==null?void 0:p.call(G))||!1},Z.ytwMarkdownDivHostEnableDefaultStyling=function(){var p;
return!((p=G.disableDefaultStyling)==null?0:p.call(G))},Z)),
el:H}))},"af");
_.Hi.idomCompat=!0;var Quh=_.y(function(G){var H=G.imageData;var Z=_.yy(G.isInList,!1),Q=function(){return Z()?{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 _.J("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.J(_.k,{cond:function(){return H().image},
then:function(p){return _.J(_.ib,{data:p,alt:function(){return Q().alt},
contentMode:function(){return Q().contentMode},
targetWidth:function(){return Q().targetWidth},
targetHeight:function(){return Q().targetHeight},
className:function(){return Q().className}})}}),_.J("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.J("div",{class:_.bb("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.J(_.Fe,{text:function(){return H().title}})),_.J(_.Cl,{each:function(){var p;
return(p=H().description)!=null?p:[]}},function(p){return _.J("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.J(sY,{content:p}))})))},"bf"),p3i=_.y(function(G){var H=G.list;
var Z=function(){var Q;return(Q=H().items)!=null?Q:[]};
return _.J("div",{class:"ytwGenAiRichTextViewModelListContent"},_.J(_.k,{cond:function(){return H().title},
then:function(Q){return _.J("div",{class:_.bb("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.J(_.Fe,{text:Q}))}}),_.J(_.k,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.J("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.J(_.Cl,{each:Z},function(Q){return _.J("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.J(sY,{content:Q,isInList:!0}))}))}}),_.J(_.k,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.J("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.J(_.Cl,{each:Z},function(Q){return _.J("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.J(sY,{content:Q,isInList:!0}))}))}}),_.J(_.k,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.J("div",{class:"ytwGenAiRichTextViewModelImageList"},_.J(_.Cl,{each:Z},function(Q){return _.J("div",{class:"ytwGenAiRichTextViewModelListItem"},_.J(sY,{content:Q,isInList:!0}))}))}}))},"cf"),lUk=_.y(function(G){var H=G.table;
return _.J("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.J("thead",null,_.J("tr",null,_.J(_.Cl,{each:function(){var Z,Q;return(Q=(Z=H().header)==null?void 0:Z.cells)!=null?Q:[]}},function(Z){return _.J("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.J(_.Cl,{each:function(){return Z.contents}},function(Q){return _.J(sY,{content:Q})}))}))),_.J("tbody",null,_.J(_.Cl,{each:function(){var Z;
return(Z=H().rows)!=null?Z:[]}},function(Z){return _.J("tr",null,_.J(_.Cl,{each:function(){return Z.cells}},function(Q){return _.J("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.J(_.Cl,{each:function(){return Q.contents}},function(p){return _.J(sY,{content:p})}))}))})))},"df"),sY=_.y(function(G){var H=G.content;
var Z=_.yy(G.isInList,!1),Q=function(){var p,l;return(l=(p=H().contentBlock)==null?void 0:p.contents)!=null?l:[]};
return _.J("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.J(_.k,{cond:function(){return H().text},
then:function(p){return _.J(_.Fe,{className:"ytwGenAiRichTextViewModelText",text:p})}}),_.J(_.k,{cond:function(){return H().image},
then:function(p){return _.J(Quh,{imageData:p,isInList:Z})}}),_.J(_.k,{cond:function(){return H().list},
then:function(p){return _.J(p3i,{list:p})}}),_.J(_.k,{cond:function(){return H().contentBlock},
then:function(){return _.J("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.J(_.Cl,{each:Q},function(p){return _.J(sY,{content:p,isInList:!1})}))}}),_.J(_.k,{cond:function(){return H().table},
then:function(p){return _.J(lUk,{table:p})}}))},"ef"),gR8=_.y(function(G){var H={};
H=_.Dq("ytwGenAiRichTextViewModelHost",(H.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.n$("search_overview_link_style")),H));return _.J("gen-ai-rich-text-view-model",{class:H},_.J(sY,{content:function(){return G.data().content}}))},"ff");_.IUq=_.y(function(G){var H=G.data;var Z=function(){var W;return((W=H().loadingUi)!=null?W:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},Q=function(){return H().isLoading&&(Z()==="UNSPECIFIED"||Z()==="GHOST_CARD")},p=function(){return!H().isLoading},l=function(){return!!H().content&&!H().contents},q=function(){return!!H().contents},u=function(){return!!H().nextQueryButtons},B=function(){return H().isLoading&&Z()==="INVISIBLE"},t=function(){var W,M;
return(M=(W=H().headerIcon)==null?void 0:W.iconType)!=null?M:""},D=function(){var W;
return(W=H().content)!=null?W:""},d=function(){return!!H().sourcesSection},e,n=!((e=_.tp().resolve(_.Jp(_.rr)))==null||!e()),c=_.Kb(function(){var W=[],M=H().contents;
if(M)for(var r=0;r<M.length;r++){var w=_.X(M&&M[r],tEa);w&&W.push(w)}return W},void 0,"gcCsZb");
_.mR(function(){H().isLoading||_.$K("so_re",void 0,"search_overview_answer")});
return _.J("ytd-overview-answer-view-model",{class:function(){var W={};W=(W.ytdOverviewAnswerViewModelHost=!0,W.ytdOverviewAnswerViewModelDarkBackground=n&&!B(),W.ytdOverviewAnswerViewModelLightBackground=!n&&!B(),W);return _.Dq(W)}},_.J(_.k,{cond:function(){return!B()},
then:function(){return _.J(_.kI,null,_.J("h2",null,_.J("div",{class:"ytdOverviewAnswerViewModelHeader"},_.J(_.k,{cond:t,then:function(W){return _.J("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.J(_.ll,{icon:W}))}}),_.J("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.J("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return H().headerText}),_.J("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.J(_.Fe,{text:function(){return H().headerSubtext}}))))),_.J(_.k,{cond:Q,
then:function(){return _.J(f3j,null)}}),_.J(_.k,{cond:p,
then:function(){return _.J(_.kI,null,_.J(_.k,{cond:l,then:function(){return _.J("div",{class:"ytdOverviewAnswerViewModelText"},_.J(_.Hi,{text:D,isSmallText:!0}))}}),_.J(_.k,{cond:q,
then:function(){return _.J("div",{class:"ytdOverviewAnswerViewModelRichText"},_.J(_.Cl,{each:c},function(W){return _.J(gR8,{data:W})}))}}),_.J(_.k,{cond:u,
then:function(){return _.J("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.J(_.SP,{data:function(){return H().nextQueryButtons}},{buttonViewModel:function(W){return _.J(_.kg,{data:W.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.bR}))}}),_.J("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.J("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.J(_.k,{cond:function(){return!!_.X(H().likeButtonViewModel,_.RH)&&!!_.X(H().dislikeButtonViewModel,_.UL)},
then:function(){return _.J("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.J(_.AD,{data:function(){return _.X(H().likeButtonViewModel,_.RH)},
disableIconAnimation:!0}),_.J(_.Nt,{data:function(){return _.X(H().dislikeButtonViewModel,_.UL)}}))}})),_.J(_.k,{cond:function(){var W;
return(W=H().sourcesSection)==null?void 0:W.headerText},
then:function(W){return _.J("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.J(_.Fe,{text:W}))}})),_.J(_.k,{cond:d,
then:function(){return _.J("div",{class:"ytdOverviewAnswerViewModelSources"},_.J(_.SP,{data:function(){var W;return(W=H().sourcesSection)==null?void 0:W.sourcesShelf}},{buttonViewModel:_.kg,
horizontalShelfViewModel:function(W){return _.J(_.bR,{data:W.data,includeMargin:!0,hasPeek:!0})}}))}}),_.J(_.k,{cond:function(){return H().disclaimerText},
then:function(){return _.J("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.J(_.Fe,{text:function(){return H().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"gf");var qjL=_.y(function(G){var H=_.oK(G,{}).data;return _.J("yt-shopping-content-line-item-view-model",{class:_.bb("ytShoppingContentLineItemViewModelHost")},_.J(_.Fe,{text:function(){var Z;return(Z=H().text)==null?void 0:Z.attributedString}}))},"hf");_.Zc=_.y(function(G){G=_.oK(G,{});var H=G.data,Z={};return _.J("yt-shopping-content-line-view-model",{class:_.bb("ytShoppingContentLineViewModelHost",G.className,(Z.ytShoppingContentLineViewModelTruncateText=function(){return!H().wrapContent},Z)),
style:_.pI({"--shopping-content-line-gap":function(){return H().itemGap?H().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return H().lineHeight?H().lineHeight+"px":void 0}})},_.J(_.Cl,{each:function(){return(H().items||[]).map(function(Q){return _.X(Q,fOw)}).filter(function(Q){return!!Q})}},function(Q){return _.J(qjL,{data:Q})}))},"jf");var Sjc=_.y(function(G){var H=G.data;var Z=function(){var l;return((l=H().image)==null?void 0:l.height)||48},Q=function(){var l;
return((l=H().image)==null?void 0:l.width)||48},p=function(){return"width: "+Q()+"px; height: "+Z()+"px;"};
return _.J("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var l,q,u,B=((l=_.tp().resolve(_.Jp(_.rr)))==null?0:l())?(q=H())==null?void 0:q.darkThemeBackgroundColor:(u=H())==null?void 0:u.lightThemeBackgroundColor;return"background-color: "+(B?_.c$(B):"")+";"},
el:_.aX(_.$X(function(){var l;return(l=H())==null?void 0:l.rendererContext}))},_.J(_.k,{cond:function(){var l,q;
return(q=(l=H().image)==null?void 0:l.image)!=null?q:H().thumbnail},
then:function(l){return _.J("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var q;return"background-color: "+(((q=H().image)==null?0:q.backgroundColor)?_.c$(H().image.backgroundColor):"")+";"+p()}},_.J(_.ib,{data:l,
height:Z,width:Q,style:p,alt:""}))}}),_.J("div",{class:"ytShoppingDescriptionItemViewModelText"},_.J(_.SP,{data:function(){return H().line1}},{shoppingContentLineViewModel:function(l){return _.J(_.Zc,{data:l.data})}}),_.J(_.SP,{data:function(){return H().line2}},{shoppingContentLineViewModel:function(l){return _.J(_.Zc,{data:l.data})}}),_.J(_.SP,{data:function(){return H().line3}},{shoppingContentLineViewModel:function(l){return _.J(_.Zc,{data:l.data})}})))},"kf");var ub6=_.y(function(G){var H=G.data;var Z=G.active;var Q=_.IA("transcript-segment-view-model");_.yN(function(){var p,l,q,u=((p=_.tp().resolve(_.Jp(_.rr)))==null?0:p())?(l=H())==null?void 0:l.darkThemeColorPalette:(q=H())==null?void 0:q.lightThemeColorPalette;u&&(u.additiveBackground&&Q.value.style.setProperty("--timestamp-active-background-color",_.c$(u.additiveBackground)),u.textSecondary&&Q.value.style.setProperty("--timestamp-active-color",_.X9(u.textSecondary)))},"TnVCnb");
G={};return _.J("transcript-segment-view-model",{class:_.bb("ytwTranscriptSegmentViewModelHost",(G.ytwTranscriptSegmentViewModelHostActive=Z,G.ytwTranscriptSegmentViewModelHostModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),G)),el:Q},_.J(_.k,{cond:function(){var p;return(p=H())==null?void 0:p.timestamp},
then:function(p){var l={};return _.J(_.kI,null,_.J("div",{class:_.bb("ytwTranscriptSegmentViewModelTimestamp",(l.ytwTranscriptSegmentViewModelTimestampActive=Z,l)),"aria-hidden":!0},p),_.J("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var q=p().split(":").map(Number),u=_.I(q.reverse());q=u.next().value;var B=u.next().value;u=u.next().value;return _.li3({hours:u,minutes:B,seconds:q})}))}}),_.J(_.Fe,{text:function(){var p,l,q;
return(q=(p=H())==null?void 0:p.attributedText)!=null?q:{content:(l=H())==null?void 0:l.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"mf");var BfA=_.y(function(G){var H=G.data;return _.J("div",{class:"videoAttributesSectionViewModelHeader"},_.J("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.J("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return H().headerTitle}),_.J(_.k,{cond:function(){return H().headerInfoButton},
then:function(){return _.J(_.SP,{data:function(){return H().headerInfoButton}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.J(_.k,{cond:function(){return H().headerSubtitle},
then:function(){return _.J("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return H().headerSubtitle})}}))},"nf"),JMA=_.y(function(G){function H(W){return Math.max(Math.min(W,0),t()-u())}
var Z=G.data;var Q;G=_.IA("div",function(W){var M=function(){D(W.clientWidth)};
M();window.ResizeObserver&&(Q=new ResizeObserver(M),Q.observe(W))});
var p=_.IA("div",function(W){B(W.scrollWidth)}),l=_.I(_.Ty(0,void 0,"C3XQAe")),q=l.next().value;
l=l.next().value;var u=q,B=l;l=_.I(_.Ty(0,void 0,"db7y3"));q=l.next().value;l=l.next().value;var t=q,D=l;q=_.I(_.Ty(0,void 0,"RchC7"));var d=q.next().value,e=q.next().value;_.oM(function(){var W;(W=Q)==null||W.disconnect()});
var n=function(){e(H(d()+t()))},c=function(){e(H(d()-t()))};
return _.J("yt-video-attributes-section-view-model",null,_.J("div",{class:"videoAttributesSectionViewModelHost"},_.J(_.k,{cond:function(){return Z().headerTitle},
then:function(){return _.J(BfA,{data:Z})}}),_.J("div",{class:_.bb("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:G},_.J("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.pI({transform:function(){var W=d();_.xI("HTML_DIR")==="rtl"&&(W*=-1);return"translateX("+W+"px)"}}),
el:p},_.J(_.SP,{data:function(){return Z().videoAttributeViewModels}},{videoAttributeViewModel:xkw}))),_.J(_.SP,{data:function(){return Z().footerButton}},{buttonViewModel:function(W){return _.J(_.kg,{data:W.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.J(_.k,{cond:function(){return d()<0&&Z().previousButton},
then:function(){return _.J("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.J(_.SP,{data:function(){return Z().previousButton}},{buttonViewModel:function(W){return _.J(_.kg,{data:W.data,
onClick:n})}}))}}),_.J(_.k,{cond:function(){return d()>t()-u()&&Z().nextButton},
then:function(){return _.J("div",{class:"videoAttributesSectionViewModelRightArrow"},_.J(_.SP,{data:function(){return Z().nextButton}},{buttonViewModel:function(W){return _.J(_.kg,{data:W.data,
onClick:c})}}))}})))},"of");
JMA.idomCompat=!0;var t2L=_.y(function(G){var H=G.data;var Z=G.active;var Q={},p={};return _.J("timeline-item-view-model",{class:_.bb("ytwTimelineItemViewModelHost",(Q.ytwTimelineItemViewModelHostChapterChild=G.chapterChild,Q.ytwTimelineItemViewModelModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),Q))},_.J("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.J("div",{class:_.bb("ytwTimelineItemViewModelTimestamp",(p.ytwTimelineItemViewModelTimestampActive=
Z,p))},function(){return H().timestamp})),_.J("div",{class:"ytwTimelineItemViewModelContentItems"},_.J(_.SP,{data:function(){return H().contentItems}},{transcriptSegmentViewModel:function(l){return _.J(ub6,{data:l.data,
active:Z})},
videoAttributesSectionViewModel:JMA})))},"pf");var kok=_.y(function(G){var H=G.data;G={};return _.J("timeline-chapter-view-model",{class:_.bb("ytwTimelineChapterViewModelHost")},_.J("div",{class:_.bb("ytwTimelineChapterViewModelTitle",(G.ytwTimelineChapterViewModelModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),G))},function(){return H().title}),_.J(_.SP,{data:function(){return H().contents}},{timelineItemViewModel:function(Z){return _.J(t2L,{data:Z.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(Z){return _.J(JMA,{data:Z.data})}}))},"qf");var DXA=_.y(function(G){var H=G.data;var Z=_.IA("macro-markers-panel-item-view-model"),Q=_.gu(_.DD3,function(){var l;return(l=H().markersEngagementPanelSyncEntityKey)!=null?l:""}),p=function(){var l;
return((l=Q())==null?void 0:l.activeItemIndex)===H().index};
G=_.Hh(function(l){var q,u,B,t,D;return _.S(function(d){if(d.nextAddress==1)return l.stopPropagation(),_.eP(_.du(l),Z.value,["A".toString(),"BUTTON".toString()])?d.return():(q=_.Tt(H().onTap))?d.yield(_.Gk(),2):d.return();u=d.yieldResult;t=(B=_.X(q,_.hZ))==null?void 0:B.startTimeSeconds;t===void 0||(D=u)!=null&&D.seekTo(t,!0);_.K0(d)})});
return _.J("macro-markers-panel-item-view-model",{class:_.bb("ytwMacroMarkersPanelItemViewModelHost",{"is-active":p}),el:Z,"on:click":G,tabindex:0,role:"button"},_.J(_.SP,{data:function(){var l;return(l=H())==null?void 0:l.item}},{timelineChapterViewModel:function(l){return _.J(kok,{data:l.data,
active:p})},
timelineItemViewModel:function(l){return _.J(t2L,{data:l.data,active:p})},
videoAttributeViewModel:xkw,shoppingDescriptionItemViewModel:Sjc}))},"rf");
DXA.idomCompat=!0;_.RX(DXA,"macro-markers-panel-item-view-model",{props:{data:_.b3}});_.RX(JMA,"yt-video-attributes-section-view-model",{props:{data:_.b3}});var dXi=_.y(function(G){var H=function(){var Z,Q,p;return(p=(Z=G.data().leadingLogoAccessibility)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label)!=null?p:""};
return _.J("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.J(_.k,{cond:function(){return G.data().leadingLogo},
then:function(Z){return _.J(_.ib,{className:"ytwFantasySectionHeaderViewModelLogo",data:Z,alt:H})}}),_.J("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.J(_.Fe,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return G.data().title}}),_.J(_.Fe,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return G.data().subtitle}})),_.J(_.SP,{data:function(){return G.data().trailingButton}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"sf");var ejq=_.y(function(G){var H={};H=_.bb("ytwFantasyTeamViewModelHost",(H.ytwFantasyTeamViewModelCompact=function(){var p;return!((p=G.compact)==null||!p.call(G))},H.ytwFantasyTeamViewModelUser=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},H.ytwFantasyTeamViewModelOpponent=function(){return G.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},H));
var Z=function(){var p,l,q;return(q=(p=G.data().teamLogoAccessibility)==null?void 0:(l=p.accessibilityData)==null?void 0:l.label)!=null?q:""},Q=_.gu(e6X,function(){return G.data().teamEntityKey});
return _.J("ytw-fantasy-team-view-model",{class:H},_.J(_.k,{cond:function(){return G.data().teamLogo},
then:function(p){return _.J(_.ib,{className:"ytwFantasyTeamViewModelLogo",data:p,alt:Z})}}),_.J("div",{class:"ytwFantasyTeamViewModelMetadata"},_.J("div",{class:"ytwFantasyTeamViewModelHeader"},_.J(_.Fe,{className:"ytwFantasyTeamViewModelScore",
text:function(){var p;return(p=Q())==null?void 0:p.score}}),_.J(_.ll,{icon:function(){var p;
return(p=Q())==null?void 0:p.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.J(_.Fe,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var p;return(p=Q())==null?void 0:p.projectedScore}})),_.J(_.Fe,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return G.data().primaryText}}),_.J(_.Fe,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return G.data().secondaryText}}),_.J(_.Fe,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return G.data().tertiaryText}})),_.J(_.Fe,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var p;return(p=Q())==null?void 0:p.score}}))},"tf");_.RX(_.y(function(G){return _.J("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.J("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.J(_.SP,{data:function(){return G.data().summaryHeader}},{fantasySectionHeaderViewModel:dXi})),_.J(_.SP,{data:function(){return G.data().userTeam}},{fantasyTeamViewModel:ejq}),_.J(_.SP,{data:function(){return G.data().opponentTeam}},{fantasyTeamViewModel:ejq}))},"uf"),"fantasy-league-summary-view-model",{props:{data:_.b3}});var nRm=_.y(function(G){var H=_.oK(G,{shape:{},useCustomTabRenderable:!1}),Z=H.shape;H=H.useCustomTabRenderable;var Q=G.customTabRenderable,p=function(){return Z().disabled},l=function(){return Z().selected},q=function(){return Z().title},u=function(){return Z().icon},B=_.IA("yt-tab-shape");
G=_.Hh(function(d){var e;if(!p()&&((e=Z().aTagConfig)==null?0:e.onclick))Z().aTagConfig.onclick(d);return!1});
var t=_.Hh(function(d){if(d.key==="Enter"||d.key==="ArrowUp"||d.key==="ArrowDown")d.preventDefault(),B.value.click();return!1}),D={};
return _.J("yt-tab-shape",{class:_.bb("yt-tab-shape",function(){return Z().className},(D["yt-tab-shape__tab--last-tab"]=function(){return Z().isLastTab},D["yt-tab-shape--host-disabled"]=p,D["yt-tab-shape--host-clickable"]=!Q,D)),
role:Q?void 0:"tab","aria-selected":l!=null?l:!1,"aria-disabled":p,tabindex:Q?void 0:0,"on:click":G,"on:keydown":t,el:B,"tab-identifier":function(){return Z().identifier},
"tab-title":q},_.J(_.k,{cond:H,then:function(){return Q()},
else:function(){var d={},e={};return _.J(_.kI,null,_.J("div",{class:_.bb("yt-tab-shape__tab",(d["yt-tab-shape__tab--tab-selected"]=l,d))},_.J(_.k,{cond:u,then:function(n){return _.J(_.ll,{className:"yt-tab-shape__tab-icon",icon:function(){return n().iconType}})}}),q),_.J("div",{class:_.bb("yt-tab-shape__tab-bar",(e["yt-tab-shape__tab-bar--tab-bar-selected"]=l,e))}))}}))},"vf");
nRm.idomCompat={callbacks:{customTabRenderable:!0}};_.$Xt=_.y(function(G){var H=G.shape;G=_.I(_.Ty(48,void 0,"nDAx4"));var Z=G.next().value,Q=G.next().value;G=_.I(_.Ty(0,void 0,"GCgjqb"));var p=G.next().value,l=G.next().value,q=function(){return H().tabs},u=_.IA("yt-tab-group-shape"),B=function(){var e,n;
return(n=(e=q())==null?void 0:e.findIndex(function(c){return c.selected}))!=null?n:-1};
G=_.I(_.Ty(!1,void 0,"SU01tf"));var t=G.next().value,D=G.next().value,d=function(){t()||_.Ui.addJob(function(){D(!0)},0)};
_.yN(function(){var e=B(),n=_.Ui.addJob(function(){var c,W=((c=u.value)==null?void 0:c.querySelectorAll("yt-tab-shape"))||[],M;Q(((M=e>-1?W[e]:void 0)==null?void 0:M.getBoundingClientRect().width)||0);for(M=c=0;M<e;M++)c+=W[M].offsetWidth+24;_.xI("HTML_DIR")==="rtl"&&(c=-c);l(c);d()},8,0);
_.oM(function(){_.Ui.cancelJob(n)})},"PMwgb");
G={};return _.J("yt-tab-group-shape",{class:_.bb("tabGroupShapeHost",(G.tabGroupShapeOverflowHidden=function(){return H().isOverflowHidden},G)),
el:u},_.J(_.k,{cond:q,then:function(e){return _.J(_.kI,null,_.J("div",{class:"tabGroupShapeTabs",role:"tablist"},_.J(_.Cl,{each:e},function(n,c){return _.J(nRm,{shape:function(){return Object.assign({},n,{isLastTab:c()===e().length-1})},
customTabRenderable:n.customTabRenderable,useCustomTabRenderable:!!n.customTabRenderable})})),_.J(V2o,{width:Z,
sliderOffset:p,enableTransition:t}))}}))},"xf");
_.$Xt.idomCompat=!0;var V2o=_.y(function(G){var H=_.yy(G.sliderOffset,0),Z=G.width,Q=G.enableTransition;G={};return _.J("div",{class:_.bb("tabGroupShapeSlider",(G.tabGroupShapeSliderTransition=function(){return Q()},G)),
style:_.pI({width:function(){return Z()+"px"},
transform:function(){return"translateX("+H()+"px)"}})})},"yf");var X3s=_.y(function(G){var H=function(){var l,q,u;return(u=(l=G.data().playerLogoAccessibility)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label)!=null?u:""},Z=_.gu(n7v,function(){return G.data().playerEntityKey}),Q={};
Q=_.bb("ytwFantasyPlayerViewModelHost",(Q.ytwFantasyPlayerViewModelPlaying=function(){var l;return!((l=Z())==null||!l.isPlayerPlaying)},Q.ytwFantasyPlayerViewModelOnField=function(){var l;
return((l=Z())==null?void 0:l.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},Q.ytwFantasyPlayerViewModelRedZone=function(){var l;
return((l=Z())==null?void 0:l.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},Q));
var p=function(){var l,q,u,B=((l=_.tp().resolve(_.Jp(_.rr)))==null?0:l())?(q=G.data().playerLogoBackgroundColor)==null?void 0:q.darkTheme:(u=G.data().playerLogoBackgroundColor)==null?void 0:u.lightTheme;return B===void 0?"":_.c$(B)};
return _.J("ytw-fantasy-player-view-model",{class:Q},_.J(_.k,{cond:function(){return G.data().playerLogo},
then:function(l){return _.J("div",{class:"ytwFantasyPlayerViewModelLogo"},_.J("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.J(_.ib,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.pI({"background-color":p}),data:l,alt:H})),_.J("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.J(_.ll,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.J("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.J("div",{class:"ytwFantasyPlayerViewModelHeader"},_.J(_.Fe,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var l;return(l=G.data())==null?void 0:l.playerNameText}}),_.J(_.Fe,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var l;return(l=G.data())==null?void 0:l.playerDescriptionText}})),_.J("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.J(_.Fe,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var l;return(l=Z())==null?void 0:l.gamePeriodText}}),_.J(_.Fe,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var l;return(l=G.data())==null?void 0:l.opponentTeamText}}),_.J(_.Fe,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var l;return(l=Z())==null?void 0:l.gameStatusText}}),_.J(_.Fe,{className:_.bb("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var l;return(l=Z())==null?void 0:l.playerStatusText}})),_.J("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.J(_.Fe,{text:function(){var l;
return(l=Z())==null?void 0:l.playerStatsText}}))),_.J(_.Fe,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var l;return(l=Z())==null?void 0:l.fantasyScore}}))},"zf");var cMt=_.y(function(G){return _.J("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.J(_.k,{cond:function(){return G.data().players},
then:function(H){return _.J(_.SP,{data:H},{fantasyPlayerViewModel:X3s})}}))},"Af");var Tfj=_.y(function(G){var H=_.I(_.QF(function(){var p;return(p=G.data().selectedTabIdentifierKey)!=null?p:""})),Z=H.next().value,Q=H.next().value;
_.yP(function(){var p;(p=G.setSelectedTabSignal)==null||p.call(G,Z)});
return _.J("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.J("div",{class:"ytTabbedViewModelTabGroup"},_.J(_.$Xt,{shape:function(){var p=G.data(),l=[],q={tabs:l};if(!p.tabs)return q;p=_.I(p.tabs);for(var u=p.next(),B={};!u.done;B={tabViewModel:void 0},u=p.next())if(B.tabViewModel=_.X(u.value,Mr7),B.tabViewModel){var t=u=void 0;l.push({aTagConfig:{onclick:function(D){return function(){var d;Q((d=D.tabViewModel.tabIdentifier)!=null?d:"")}}(B)},
identifier:B.tabViewModel.tabIdentifier,selected:Z()===B.tabViewModel.tabIdentifier,title:(t=(u=B.tabViewModel.title)==null?void 0:u.content)!=null?t:""})}return q}})),_.J(_.SP,{data:function(){var p,l=_.I((p=G.data().tabs)!=null?p:[]);
for(p=l.next();!p.done;p=l.next())if((p=_.X(p.value,Mr7))&&p.tabIdentifier===Z())return p.content}},{fantasyRosterViewModel:cMt}))},"Cf");_.RX(_.y(function(G){var H=_.I(vpf()),Z=H.next().value,Q=H.next().value;return _.J("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.J(_.Fe,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return G.data().title}}),_.J(_.k,{cond:function(){return G.data().tabbedViewModel},
then:function(p){return _.J(_.SP,{data:p},{tabbedViewModel:function(l){return _.J(Tfj,{data:l.data,setSelectedTabSignal:Q})}})}}),_.J(_.k,{cond:function(){var p,l=(p=_.X(G.data().tabbedViewModel,jrw))==null?void 0:p.tabs;
p=_.X(l==null?void 0:l[0],Mr7);l=_.X(l==null?void 0:l[1],Mr7);var q=p==null?void 0:p.tabIdentifier;if(Z()===q){var u,B;if(!((u=_.X(p==null?void 0:p.content,Uo7))==null?0:(B=u.players)==null?0:B.length))return G.data().noUserTeamPlayersText}else{var t,D;if(!((t=_.X(l==null?void 0:l.content,Uo7))==null?0:(D=t.players)==null?0:D.length))return G.data().noOpponentTeamPlayersText}},
then:function(p){return _.J(_.Fe,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:p})}}))},"Df"),"ytw-fantasy-matchup-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){return _.J("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.J(_.Fe,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return G.data().title}}),_.J(_.k,{cond:function(){return G.data().matchupTeamPairs},
then:function(H){return _.J(_.Cl,{each:H,keyBy:"INDEX"},function(Z){return _.J("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.J(_.SP,{data:function(){return[Z().firstTeam,Z().secondTeam]}},{fantasyTeamViewModel:function(Q){return _.J(ejq,{data:Q.data,
compact:!0})}}))})}}))},"Ef"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=function(){var p,l,q;return(q=(p=G.data().userLogoAccessibility)==null?void 0:(l=p.accessibilityData)==null?void 0:l.label)!=null?q:""},Z=function(){var p,l,q;
return(q=(p=G.data().opponentLogoAccessibility)==null?void 0:(l=p.accessibilityData)==null?void 0:l.label)!=null?q:""},Q=_.gu(dDo,function(){return G.data().entityKey});
return _.J("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.J("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.J(_.k,{cond:function(){return G.data().userLogo},
then:function(p){return _.J(_.ib,{className:"ytwFantasyWinProbabilityViewModelLogo",data:p,alt:H})}}),_.J("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.J(_.Fe,{text:function(){return G.data().title}})),_.J(_.k,{cond:function(){return G.data().opponentLogo},
then:function(p){return _.J(_.ib,{className:"ytwFantasyWinProbabilityViewModelLogo",data:p,alt:Z})}})),_.J("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.J("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.J(_.Fe,{text:function(){var p;
return(p=Q())==null?void 0:p.userWinNumberLabel}})),_.J("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.J("div",{class:_.bb("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.pI({flex:function(){var p,l;return(l=(p=Q())==null?void 0:p.userWinNumber)!=null?l:50}})}),_.J("div",{class:_.bb("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.pI({flex:function(){var p,l;return(l=(p=Q())==null?void 0:p.opponentWinNumber)!=null?l:50}})})),_.J("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.J(_.Fe,{text:function(){var p;
return(p=Q())==null?void 0:p.opponentWinNumberLabel}}))))},"Ff"),"fantasy-win-probability-view-model",{props:{data:_.b3}});var fU8={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},vRq=_.y(function(G){return _.J(_.SP,{data:G.button},{buttonViewModel:function(H){return _.J(_.kg,{data:H.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Gf"),Wvk=_.y(function(G){return _.J("ytd-backstage-locked-post-view-model",{class:_.bb("ytdBackstageLockedPostViewModelHost",G.className)},_.J("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.J("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.J(_.SP,
{data:function(){return G.data().authorAvatar}},{decoratedAvatarViewModel:_.U5})),_.J("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.J("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.J(_.Fe,{text:function(){return G.data().authorText}})),_.J("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.J(_.Fe,{text:function(){return G.data().publishedTimeText}}),_.J(_.SP,{data:function(){return G.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(H){return _.J(WCT,
{data:H.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.J("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.J(_.Fe,{text:function(){return G.data().contentText}})),_.J(_.iW,null,_.J(_.wO,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.J("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.J(_.ib,{data:fU8,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.J(_.Fe,{text:function(){return G.data().lockedText}}))}),_.J(_.wO,{when:function(){return G.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.J("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.J("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.J(_.ib,{data:fU8,
alt:""})),_.J(_.Fe,{text:function(){return G.data().lockedText}}))})),_.J("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.J(vRq,{button:function(){return G.data().likeButton}}),_.J("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().voteCountA11y}},_.J(_.Fe,{text:function(){return G.data().voteCount}})),_.J(vRq,{button:function(){return G.data().dislikeButton}}),_.J(vRq,{button:function(){return G.data().commentButton}}),_.J("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return G.data().commentCountA11y}},_.J(_.Fe,{text:function(){return G.data().commentCount}}))))},"Hf");
Wvk.idomCompat=!0;_.RX(Wvk,"ytd-backstage-locked-post-view-model",{props:{data:_.b3,className:_.b3}});_.eQ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var QU=function(){var G=_.C.apply(this,arguments)||this;G.darkerPanels=_.V("web_watch_darker_panels");G.commentsHidePanelButton=!1;G.isWatchGrid=!1;G.continuationShowButton=!1;G.isSearch=!1;G.isConstrainedList=!1;G.isWatch=!1;G.eligibleToSwitchToGrid=!1;G.useBigThumbs=!1;G.notSticky=!1;G.epRestyle=!1;G.isCarouselInFeed=!0;G.topSpacingZero=!1;G.continuationIsInitialLoad=!0;G.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");
G.mastheadHeight=0;G.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};G.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return G};
_.T(QU,_.C);_.g=QU.prototype;_.g.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||H.forEach(function(Z){Z.containerType=G})}};
_.g.getItemsPath=function(){return"data.contents"};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.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:_.V("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.V("kevlar_low_priority_continuation")}}};
_.g.created=function(){};
_.g.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.g.handleIntersect=function(G){this.notSticky=G[0].intersectionRatio===1};
_.g.attached=function(){var G=this,H=_.V("web_item_section_sticky_header_use_scroll_as_fallback");H||document.addEventListener("scroll",_.pH(this,this.updateHeaderState));var Z;this.mastheadHeight=((Z=document.querySelector("ytd-masthead"))==null?void 0:Z.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(Q){G.handleIntersect(Q)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):H&&document.addEventListener("scroll",_.pH(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){G.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.g.detached=function(){document.removeEventListener("scroll",_.pH(this,this.updateHeaderState));var G;(G=this.intersectionObserver)==null||G.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect()};
_.g.updated=function(G){G.has("data")&&this.updateHeaderState()};
_.g.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(b8x(!this.notSticky))};
_.g.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var G=_.F9(this.hostElement).querySelector("ytd-comments-header-renderer");G&&(G.hidePanelButton=this.commentsHidePanelButton)}};
_.g.onRetrieveLocation=function(G,H){this.containsComments()&&(this.firstCommentsLoaded=H.hasComments=!0)};
_.g.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.g.onLoadReloadContinuation=function(G,H){var Z=this;G.stopPropagation();this.isReloading=!0;_.N5(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(Q){var p=_.tp().resolve(_.J0);Q=H(Q);p.postData(Q).then(function(l){Z.onReloadContinuationData(l)})}})};
_.g.onReloadContinuationData=function(G){if(G=this.get("response.continuationContents.itemSectionContinuation",G)||this.get("response.contents.itemSectionRenderer",G)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",G)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",G))this.set("data.contents",G.contents||G.results),G.header&&this.set("data.header",G.header),this.set("data.continuations",
G.continuations||[]);this.isReloading=!1};
_.g.computeContentsClass=function(G){return G?"reloading":""};
_.g.computeSectionIdentifier=function(G){return G==null?void 0:G.sectionIdentifier};
_.g.computeFitContainer=function(G){return(G==null?void 0:G.sectionIdentifier)==="youchat-item-section"};
_.g.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.V("kevlar_disable_comments_auto_load")};
_.g.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.g.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.g.computeHasDestinationShelfRenderer=function(G){var H,Z;return!!(G==null?0:(H=G.contents)==null?0:(Z=H[0])==null?0:Z.destinationShelfRenderer)};
_.g.computeHasSectionGroupViewModel=function(G){var H,Z;return!!(G==null?0:(H=G.contents)==null?0:(Z=H[0])==null?0:Z.sectionGroupViewModel)};
_.g.computeHasQrCodeRenderer=function(G){var H,Z;return!!(G==null?0:(H=G.contents)==null?0:(Z=H[0])==null?0:Z.qrCodeRenderer)};
_.g.computeStaticCommentsHeader=function(G){return G&&this.containsComments()};
_.g.computeEpRestyle=function(G){return _.V("web_ep_restyling")&&G&&this.containsComments()};
_.g.computeIsContinuationCommentSection=function(G){return(G==null?void 0:G.targetId)==="shorts-engagement-panel-comments-section"||(G==null?void 0:G.targetId)==="comments-section"||(G==null?void 0:G.targetId)==="engagement-panel-comments-section"};
_.g.computeSuppressPaddingDisclaimer=function(){var G,H,Z,Q;return!!((G=this.data)==null?0:(H=G.contents)==null?0:(Z=H[0])==null?0:(Q=Z.productListHeaderRenderer)==null?0:Q.suppressPaddingDisclaimer)};
_.g.computeHeaderStyle=function(G){switch(G==null?void 0:G.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.g.dataChanged=function(){this.firstCommentsLoaded=!1};
_.g.observeDataContentsLength=function(){var G,H;((G=this.data)==null?0:(H=G.contents)==null?0:H.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.g.onYtDismissibleItemDismissedChange=function(G){this._setItemDismissed(G.type==="yt-dismissible-item-dismissed")};
_.g.triggerContinuations=function(){for(var G=_.F9(this.hostElement).querySelector("#continuations").children,H=0;H<G.length;H++)G[H].trigger()};
_.g.triggerInitialContinuations=function(){for(var G=_.F9(this.hostElement).querySelector("#continuations").children,H=0;H<G.length;H++)G[H].triggerIfNotPreviouslyTriggered()};
_.g.handleYtItemSectionContinuation=function(G,H){var Z;H&&((Z=this.data)==null?void 0:Z.sectionIdentifier)!==H||(this.set("data.continuations",[G]),this.triggerContinuations())};
_.g.handleYtItemSectionReplace=function(G,H){var Z;H&&((Z=this.data)==null?void 0:Z.sectionIdentifier)!==H||(this.set("data.contents",G),this.set("data.continuations",[]))};
_.g.computeUseHeightHack=function(G){return G&&!_.V("kevlar_disable_height_hack")};
_.g.computeTopSpacingZero=function(G){return G};
_.g.continuationShowButtonChanged=function(){var G=_.F9(this.hostElement).querySelector("ytd-continuation-item-renderer");G&&(G.showButton=this.continuationShowButton)};
_.g.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("data-changed",this.data))};
_.u4.Object.defineProperties(QU.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.V("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":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 G;return!((G=this.data)==null||!G.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.V("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!!((G=this.data)==null?0:(H=G.contents)==null?0:(Z=H[0])==null?0:Z.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q,p,l,q;return!!((G=this.data)==null?0:(H=G.contents)==null?0:(Z=H[0])==null?0:(Q=Z.shelfRenderer)==null?0:(p=Q.content)==null?0:(l=p.gridRenderer)==null?0:(q=l.targetId)==null?0:q.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!!((G=this.data)==null?0:(H=G.contents)==null?0:(Z=H[0])==null?0:Z.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!!((G=this.data)==null?0:(H=G.contents)==null?0:(Z=H[0])==null?0:Z.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.n$("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.V("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.V("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
QU.prototype.dataChangedForBinding=QU.prototype.dataChangedForBinding;QU.prototype.continuationShowButtonChanged=QU.prototype.continuationShowButtonChanged;QU.prototype.onYtDismissibleItemDismissedChange=QU.prototype.onYtDismissibleItemDismissedChange;QU.prototype.observeDataContentsLength=QU.prototype.observeDataContentsLength;QU.prototype.dataChanged=QU.prototype.dataChanged;QU.prototype.onServiceRequestCompleted=QU.prototype.onServiceRequestCompleted;QU.prototype.onLoadReloadContinuation=QU.prototype.onLoadReloadContinuation;
QU.prototype.onRetrieveLocation=QU.prototype.onRetrieveLocation;QU.prototype.commentsHidePanelButtonChanged=QU.prototype.commentsHidePanelButtonChanged;QU.prototype.dispatchChipBarIsSticky=QU.prototype.dispatchChipBarIsSticky;QU.prototype.updateLockupContainerTypes=QU.prototype.updateLockupContainerTypes;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],QU.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],QU.prototype,"ytLazyListBehavior",void 0);_.N([_.v(_.ZE.YtNextContinuationBehavior),_.A("design:type",Object)],QU.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.v(_.sF),_.A("design:type",Object)],QU.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],QU.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],QU.prototype,"ytdReduxBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],QU.prototype,"darkerPanels",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Boolean)],QU.prototype,"engagementPanel",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"commentsHidePanelButton",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"isWatchGrid",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"continuationShowButton",void 0);_.N([_.h({computed:"computeIsContinuationCommentSection(data)"}),_.A("design:type",Boolean)],QU.prototype,"continuationIsCommentsSection",void 0);
_.N([_.h({value:!0}),_.A("design:type",Boolean)],QU.prototype,"autoFill",void 0);_.N([_.h(),_.A("design:type",Boolean)],QU.prototype,"continuationDisablePrescanVisibility",void 0);_.N([_.h(),_.A("design:type",Boolean)],QU.prototype,"isReloading",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"isSearch",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"isConstrainedList",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"isWatch",void 0);
_.N([_.h(),_.A("design:type",Object)],QU.prototype,"eligibleToSwitchToGrid",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"useBigThumbs",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],QU.prototype,"notSticky",void 0);_.N([_.h({selector:_.T3,reflectToAttribute:!0}),_.A("design:type",Object)],QU.prototype,"isGridViewEnabled",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.A("design:type",Object)],QU.prototype,"epRestyle",void 0);_.N([_.z("isWatch"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],QU.prototype,"hideShortsShelfHeader",null);_.N([_.z("isSearch","isWatch"),_.A("design:type",String),_.A("design:paramtypes",[])],QU.prototype,"thumbnailWidth",null);
_.N([_.z("isSearch","containerWidth"),_.A("design:type",Object),_.A("design:paramtypes",[])],QU.prototype,"thumbnailTargetWidth",null);_.N([_.z("isSearch","isWatch","useBigThumbs"),_.A("design:type",String),_.A("design:paramtypes",[])],QU.prototype,"sizing",null);_.N([_.z("isWatch","isGridViewEnabled","useBigThumbs","data"),_.h({reflectToAttribute:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],QU.prototype,"lockupContainerType",null);
_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],QU.prototype,"hasHeader",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],QU.prototype,"expFixPlaylistHeader",null);_.N([_.gx("lockupContainerType","data"),_.A("design:type",Function),_.A("design:paramtypes",[Number]),_.A("design:returntype")],QU.prototype,"updateLockupContainerTypes",null);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],QU.prototype,"pageSubtype",void 0);_.N([_.h(),_.A("design:type",Number)],QU.prototype,"containerWidth",void 0);_.N([_.h(),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],QU.prototype,"isPlaylist",null);_.N([_.h(),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],QU.prototype,"isClipList",null);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"isCarouselInFeed",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],QU.prototype,"isPlaylistVideoContainer",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],QU.prototype,"isSearchFrictionPage",null);_.N([_.h({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.A("design:type",Boolean)],QU.prototype,"useHeightHack",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.A("design:type",Object)],QU.prototype,"topSpacingZero",void 0);_.N([_.h({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.A("design:type",Boolean)],QU.prototype,"showButton",void 0);_.N([_.h(),_.A("design:type",Boolean)],QU.prototype,"firstCommentsLoaded",void 0);_.N([_.h(),_.A("design:type",Object)],QU.prototype,"continuationIsInitialLoad",void 0);
_.N([_.h({reflectToAttribute:!0,readOnly:!0}),_.A("design:type",Boolean)],QU.prototype,"itemDismissed",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.A("design:type",String)],QU.prototype,"sectionIdentifier",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.A("design:type",String)],QU.prototype,"fitContainer",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.A("design:type",Boolean)],QU.prototype,"hasDestinationShelfRenderer",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.A("design:type",Boolean)],QU.prototype,"staticCommentsHeader",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],QU.prototype,"enableSqueezebackPanels",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],QU.prototype,"enableAnchoredPanel",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.A("design:type",Boolean)],QU.prototype,"hasSectionGroupViewModel",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.A("design:type",Boolean)],QU.prototype,"hasQrCodeRenderer",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.A("design:type",Boolean)],QU.prototype,"suppressDisclaimerSeparator",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.A("design:type",String)],QU.prototype,"headerStyle",void 0);_.N([_.z("isSearch","isWatch","useBigThumbs"),_.A("design:type",Object),_.A("design:paramtypes",[])],QU.prototype,"lockupExperiments",null);
_.N([_.z("isSearch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],QU.prototype,"typographyBump",null);_.N([_.q6("#header"),_.A("design:type",HTMLElement)],QU.prototype,"header",void 0);_.N([_.gx("notSticky"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QU.prototype,"dispatchChipBarIsSticky",null);
_.N([_.gx("commentsHidePanelButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QU.prototype,"commentsHidePanelButtonChanged",null);_.N([_.lq("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],QU.prototype,"onRetrieveLocation",null);
_.N([_.lq("yt-load-reload-continuation"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Function]),_.A("design:returntype")],QU.prototype,"onLoadReloadContinuation",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QU.prototype,"onServiceRequestCompleted",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QU.prototype,"dataChanged",null);
_.N([_.Jv("data.contents.length"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QU.prototype,"observeDataContentsLength",null);_.N([_.lq("yt-dismissible-item-dismissed"),_.lq("yt-dismissible-item-undismissed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],QU.prototype,"onYtDismissibleItemDismissedChange",null);
_.N([_.gx("continuationShowButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QU.prototype,"continuationShowButtonChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],QU.prototype,"dataChangedForBinding",null);_.N([_.O({is:"ytd-item-section-renderer",disableElementRegistration:!0})],QU);
_.m(QU,"ytd-item-section-renderer",function(){if(r2a!==void 0)return r2a;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return r2a=G},{mode:1});var zjt;var KVf=_.aq(_.Zg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Kvo={},zZf=(Kvo[0]={title:_.Nm(_.Zg("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Nm(_.Zg("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.U3("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Kvo[1]={title:_.Nm(_.Zg("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.U3("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Kvo);_.eQ("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var pS=function(){var G=_.C.apply(this,arguments)||this;G.allVideosCount=0;G.allPlaylistCount=0;G.isOnline=!1;G.shouldRenderDownloadsBanner=!1;G.shouldRenderDownloadsBannerUpsell=!1;G.hasOptedIntoSmartDownloads=!1;G.areAllSmartDownloadsDeleted=!1;G.smartDownloadsCompleted=!1;return G};
_.T(pS,_.C);pS.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
pS.prototype.attached=function(){this.downloadsToRenderChanged()};
pS.prototype.detached=function(){this.set("renderableData",{})};
pS.prototype.downloadsToRenderChanged=function(){var G=_.mm().getState().entities,H=_.nN(G),Z=_.V("kevlar_playlist_dl_page_killswitch")?WHv(G):_.Vn(G),Q=_.V8v(G),p=_.Tve(G),l=_.Bv(H);G=_.$a(G);this.set("renderableData",j23(Z,H,Q,p,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,l,G))};
pS.prototype.downloadsToRenderChanged=pS.prototype.downloadsToRenderChanged;_.N([_.v(_.Up),_.A("design:type",Object)],pS.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],pS.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],pS.prototype,"renderableData",void 0);_.N([_.h({selector:_.yfW}),_.A("design:type",Object)],pS.prototype,"allVideosCount",void 0);_.N([_.h({selector:V12}),_.A("design:type",Object)],pS.prototype,"allPlaylistCount",void 0);_.N([_.h({selector:_.vv}),_.A("design:type",Object)],pS.prototype,"isOnline",void 0);_.N([_.h({selector:_.xZf}),_.A("design:type",Object)],pS.prototype,"shouldRenderDownloadsBanner",void 0);
_.N([_.h({selector:_.FHj}),_.A("design:type",Object)],pS.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.N([_.h({selector:_.LHf}),_.A("design:type",Object)],pS.prototype,"hasOptedIntoSmartDownloads",void 0);_.N([_.h({selector:_.Ego}),_.A("design:type",Object)],pS.prototype,"areAllSmartDownloadsDeleted",void 0);_.N([_.h({selector:YMe}),_.A("design:type",Object)],pS.prototype,"smartDownloadsCompleted",void 0);
_.N([_.Jv("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pS.prototype,"downloadsToRenderChanged",null);_.N([_.O({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],pS);
_.m(pS,"ytd-offline-item-section-renderer",function(){if(zjt!==void 0)return zjt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return zjt=G},
{mode:1});var M2s;var jus;var lB=function(){return _.C.apply(this,arguments)||this};
_.T(lB,_.C);
lB.prototype.onDataChanged=function(){if(this.JSC$16844_lastData){var G=this.getFilterClass(this.JSC$16844_lastData.status);G&&this.hostElement.classList.remove(G)}var H;(G=this.getFilterClass((H=this.data)==null?void 0:H.status))&&this.hostElement.classList.add(G);G==="selected"?_.F9(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.F9(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");G==="disabled"?_.F9(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.F9(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16844_lastData=this.data};
lB.prototype.getFilterClass=function(G){switch(G){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
lB.prototype.onDataChanged=lB.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lB.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lB.prototype,"onDataChanged",null);_.N([_.O({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],lB);
_.m(lB,"ytd-search-filter-renderer",function(){if(jus!==void 0)return jus;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return jus=G},{mode:_.LH("kevlar_poly_si_batch_j075")?1:2});var gz=function(){return _.C.apply(this,arguments)||this};
_.T(gz,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gz.prototype,"data",void 0);_.N([_.O({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],gz);
_.m(gz,"ytd-search-filter-group-renderer",function(){if(M2s!==void 0)return M2s;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return M2s=G},{mode:_.LH("kevlar_poly_si_batch_j075")?1:2});var Pei;var In=function(){return _.C.apply(this,arguments)||this};
_.T(In,_.C);In.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Dy());this.isCollapsed=!this.isCollapsed};
In.prototype.navigateToAboutTheseResultsPage=function(){var G=_.y2("https://www.youtube.com/howyoutubeworks/product-features/search/");G?_.Hg(window,G,"_blank"):_.FU(Error("Uh"))};
In.prototype.dataChanged=function(){this.isCollapsed=!0};
In.prototype.computeShowBottomBorder=function(){var G,H,Z;return!!((G=this.data)==null?0:(H=G.button)==null?0:H.toggleButtonRenderer)||!((Z=this.data)==null||!Z.aboutTheseResultsButton)};
In.prototype.dataChanged=In.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],In.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.A("design:type",Boolean)],In.prototype,"showBottomBorder",void 0);_.N([_.h(),_.A("design:type",Boolean)],In.prototype,"renderCollapsibleMenu",void 0);
_.N([_.h(),_.A("design:type",Boolean)],In.prototype,"isCollapsed",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],In.prototype,"dataChanged",null);_.N([_.O({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],In);
_.m(In,"ytd-search-sub-menu-renderer",function(){if(Pei!==void 0)return Pei;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Pei=G},{mode:1});var rMt;var w3a=new _.Gv("SECTION_LIST_RENDERER_TOKEN");var hjm;var q3=function(){return _.C.apply(this,arguments)||this};
_.T(q3,_.C);q3.prototype.computeStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],q3.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],q3.prototype,"headerStyle",void 0);_.N([_.O({is:"ytd-text-header-renderer",disableElementRegistration:!0})],q3);
_.m(q3,"ytd-text-header-renderer",function(){if(hjm!==void 0)return hjm;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return hjm=G},{mode:1});var Cec;var Sv=function(){return _.C.apply(this,arguments)||this};
_.T(Sv,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Sv.prototype,"data",void 0);_.N([_.O({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Sv);
_.m(Sv,"ytd-minor-moment-header-renderer",function(){if(Cec!==void 0)return Cec;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Cec=G},{mode:1});var iWs;var uB=function(){return _.C.apply(this,arguments)||this};
_.T(uB,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uB.prototype,"data",void 0);_.N([_.O({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],uB);
_.m(uB,"ytd-minor-moment-setting-alert-renderer",function(){if(iWs!==void 0)return iWs;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iWs=G},{mode:1});var OWm;var aUi;var Bi=function(){var G=_.C.apply(this,arguments)||this;G.booleanSettingById=!1;G.smartDownloadsEnabledVE=_.bl(128287);G.smartDownloadsDisabledVE=_.bl(128286);G.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return G};
_.T(Bi,_.C);_.g=Bi.prototype;_.g.attachSmartDownloadsSettingVes=function(){var G;this.activeVeForLogging||((G=this.data)==null?void 0:G.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.fQ(_.gr(),this.smartDownloadsEnabledVE),_.fQ(_.gr(),this.smartDownloadsDisabledVE))};
_.g.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.N5(this.hostElement,"yt-settings-switch-ready")};
_.g.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.g.onSwitchChange=function(G){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(G=_.a_(G).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.V("kevlar_settings_switch_resolve_command_killswitch")?_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(G)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.g.handleUpdateSettingsSwitch=function(G){(G=_.X(G,qsp))&&this.data&&this.data.id===G.id&&this.set("data.enabled",!!G.enabled)};
_.g.onToggleSettingsSwitch=function(G,H){this.data&&this.data.id===G&&this.set("data.enabled",H!=null?H:!this.data.enabled)};
_.g.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.tP.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.g.maybeLogSmartDownloadsSettingVisibility=function(){var G=_.$k(),H;G&&((H=this.data)==null?void 0:H.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.w8(G,[this.smartDownloadsEnabledVE]),_.hU(G,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.w8(G,[this.smartDownloadsDisabledVE]),_.hU(G,[this.smartDownloadsEnabledVE])))};
_.g.maybeLogSmartDownloadsSettingClick=function(){var G;((G=this.data)==null?void 0:G.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.WN(_.gr(),this.activeVeForLogging)};
_.g.updateDataEnabledFromBinding=function(G){this.set("data.enabled",G.detail.value)};
_.u4.Object.defineProperties(Bi.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var G=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!G&&(G=this.ytRendererBehavior.getSimpleString(this.data.title));return G}}});
Bi.prototype.dataChanged=Bi.prototype.dataChanged;_.N([_.v(_.Up),_.A("design:type",Object)],Bi.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Bi.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Bi.prototype,"ytComponentBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Bi.prototype,"data",void 0);_.N([_.h({selector:function(G,H){if(Object.keys(G==null?void 0:G.entities).length)switch(H){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return z1W(G.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.A("design:type",Object)],Bi.prototype,"booleanSettingById",void 0);_.N([_.h(),_.A("design:type",n9)],Bi.prototype,"activeVeForLogging",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Bi.prototype,"toggleAriaLabel",null);_.N([_.Jv("data"),_.Jv("booleanSettingById"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bi.prototype,"dataChanged",null);
_.N([_.O({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Bi);
_.m(Bi,"ytd-settings-switch-renderer",function(){if(aUi!==void 0)return aUi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return aUi=G},{mode:1});var JG=function(){return _.C.apply(this,arguments)||this};
_.T(JG,_.C);JG.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}}}}};
_.u4.Object.defineProperties(JG.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var G=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(G+=" remove-left-margin");this.data.extraBottomSpace&&(G+=" extra-bottom-space");return G}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],JG.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],JG.prototype,"contentsClassName",null);_.N([_.O({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],JG);
_.m(JG,"ytd-minor-moment-setting-section-renderer",function(){if(OWm!==void 0)return OWm;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return OWm=G},{mode:1});var yMs;var tG=function(){return _.C.apply(this,arguments)||this};
_.T(tG,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],tG.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],tG.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],tG);
_.m(tG,"ytd-empty-product-details-renderer",function(){if(yMs!==void 0)return yMs;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return yMs=G},{mode:1});var oRm;var mX8;var kL=function(){var G=_.C.apply(this,arguments)||this;G.expanded=!0;return G};
_.T(kL,_.C);kL.prototype.getBadgeRowClass=function(G,H,Z){for(var Q=_.I(this.hostElement.querySelectorAll("yt-img-shadow")),p=Q.next();!p.done;p=Q.next())p.value.onShow();G=G.selected;return Z?G!==-1?G===H?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(G!==void 0?G:0)===H?"badge-line":"badge-hidden"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],kL.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],kL.prototype,"expanded",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],kL);
_.m(kL,"ytd-sponsorships-loyalty-badges-renderer",function(){if(mX8!==void 0)return mX8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mX8=G},{mode:1});var UXD;var Dc=function(){var G=_.C.apply(this,arguments)||this;G.expanded=!0;return G};
_.T(Dc,_.C);Dc.prototype.getContainerClasses=function(G,H){G=G?"expanded":"collapsed";H&&(G+=" item");return G};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Dc.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Dc.prototype,"expanded",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Dc);
_.m(Dc,"ytd-sponsorships-perk-renderer",function(){if(UXD!==void 0)return UXD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return UXD=G},{mode:1});var Rjc;var dz=function(){var G=_.C.apply(this,arguments)||this;G.expanded=!0;return G};
_.T(dz,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],dz.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],dz.prototype,"expanded",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],dz);
_.m(dz,"ytd-sponsorships-perks-renderer",function(){if(Rjc!==void 0)return Rjc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Rjc=G},{mode:1});var ev=function(){var G=_.C.apply(this,arguments)||this;G.isCollapsed=!1;return G};
_.T(ev,_.C);ev.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
ev.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
ev.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var G;this.expandCollapseButton=_.X((G=this.data)==null?void 0:G.expandButton,_.Yl)}else{var H;this.expandCollapseButton=_.X((H=this.data)==null?void 0:H.collapseButton,_.Yl)}};
ev.prototype.updateExpandCollapseButton=ev.prototype.updateExpandCollapseButton;ev.prototype.onDataChanged=ev.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ev.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ev.prototype,"isCollapsed",void 0);_.N([_.h(),_.A("design:type",Object)],ev.prototype,"expandCollapseButton",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ev.prototype,"onDataChanged",null);_.N([_.Jv("data","isCollapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ev.prototype,"updateExpandCollapseButton",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],ev);
_.m(ev,"ytd-sponsorships-expandable-perks-renderer",function(){if(oRm!==void 0)return oRm;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return oRm=G},{mode:1});var Nf6;var nS=function(){return _.C.apply(this,arguments)||this};
_.T(nS,_.C);nS.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],nS.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nS.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],nS);
_.m(nS,"ytd-sponsorships-actionable-message-renderer",function(){if(Nf6!==void 0)return Nf6;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Nf6=G},{mode:1});var AMo;var VU=function(){return _.C.apply(this,arguments)||this};
_.T(VU,_.C);_.g=VU.prototype;_.g.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.g.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.g.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.g.computeMessageContainerStyle=function(G){var H=G.expandableItems?" style-clickable":"";return G.messageContainerStyle?G.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+H:"style-unspecified"+H};
_.g.isSinglePerk=function(G){return!!G.messageContainerStyle&&(G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||G.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.g.onExpandedChanged=function(){var G=this;if(this.expanded)for(var H=_.I(this.hostElement.querySelectorAll("yt-img-shadow")),Z=H.next();!Z.done;Z=H.next())Z.value.onShow();_.q2(this,function(){_.N5(G.hostElement,"yt-refit")})};
_.g.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
VU.prototype.onDataChanged=VU.prototype.onDataChanged;VU.prototype.onExpandedChanged=VU.prototype.onExpandedChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],VU.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],VU.prototype,"expanded",void 0);
_.N([_.gx("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VU.prototype,"onExpandedChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VU.prototype,"onDataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],VU);
_.m(VU,"ytd-sponsorships-expandable-message-renderer",function(){if(AMo!==void 0)return AMo;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return AMo=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var xXj;var $L=function(){return _.C.apply(this,arguments)||this};
_.T($L,_.C);$L.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"}}}}};
$L.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.X(this.data.endButton,_.Yl).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
$L.prototype.onDataChanged=$L.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$L.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$L.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$L.prototype,"onDataChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],$L);
_.m($L,"ytd-sponsorships-heading-renderer",function(){if(xXj!==void 0)return xXj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xXj=G},{mode:1});var Lvi;var Xh=function(){return _.C.apply(this,arguments)||this};
_.T(Xh,_.C);_.N([_.h(),_.A("design:type",Object)],Xh.prototype,"data",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Xh);
_.m(Xh,"ytd-sponsorships-links-renderer",function(){if(Lvi!==void 0)return Lvi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Lvi=G},{mode:1});var ERs;var ci=function(){return _.C.apply(this,arguments)||this};
_.T(ci,_.C);_.g=ci.prototype;_.g.onDataChanged=function(){if(this.data&&this.data.expandableItems){var G;(G=_.F9(this.hostElement).querySelector("tp-yt-paper-button"))==null||G.setAttribute("role","button")}else{var H;(H=_.F9(this.hostElement).querySelector("tp-yt-paper-button"))==null||H.removeAttribute("role")}};
_.g.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.g.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.g.getTileClasses=function(G){return G?"tile expandable-tile":"tile"};
_.g.getButtonDisabled=function(G){return G?void 0:""};
ci.prototype.onDataChanged=ci.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ci.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ci.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],ci.prototype,"expanded",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ci.prototype,"onDataChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ci);
_.m(ci,"ytd-sponsorships-list-tile-renderer",function(){if(ERs!==void 0)return ERs;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ERs=G},{mode:1});var YjD;var Fvo;var TS=function(){return _.C.apply(this,arguments)||this};
_.T(TS,_.C);TS.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],TS.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],TS);
_.m(TS,"ytd-sponsorships-promotion-renderer",function(){if(Fvo!==void 0)return Fvo;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Fvo=G},{mode:1});var bWD;var fS=function(){return _.C.apply(this,arguments)||this};
_.T(fS,_.C);fS.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fS.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],fS);
_.m(fS,"ytd-sponsorships-purchase-option-renderer",function(){if(bWD!==void 0)return bWD;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bWD=G},{mode:1});var Gxm;var Hw8;var sto=function(){return _.C.apply(this,arguments)||this};
_.T(sto,_.C);_.N([_.h(),_.A("design:type",Object)],sto.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],sto);
_.m(sto,"ytd-ypc-offer-promo-renderer",function(){if(Hw8!==void 0)return Hw8;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Hw8=G},{mode:1});var vi=function(){return _.C.apply(this,arguments)||this};
_.T(vi,_.C);_.g=vi.prototype;
_.g.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"}}}}};
_.g.expansionCTA=function(G,H){return G&&(H?G.collapseCallToAction:G.expansionCallToAction)};
_.g.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
_.g.expansionCallToActionTap=function(){var G=this;this.expanded=!this.expanded;_.q2(this,function(){_.N5(G.hostElement,"yt-refit")})};
_.g.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var G,H=(G=this.data)==null?void 0:G.onVisible;H&&this.ytComponentBehavior.resolveCommand(H)};
_.g.computeDisplayTitle=function(G){return!(!G||this.titledisplaystatus!=="show")};
_.g.computeDisplaySeparator=function(){return!1};
_.g.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
vi.prototype.onDataChanged=vi.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],vi.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vi.prototype,"data",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],vi.prototype,"expanded",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],vi.prototype,"purchaseButtonClicked",void 0);_.N([_.h({reflectToAttribute:!0,value:"show"}),_.A("design:type",String)],vi.prototype,"titledisplaystatus",void 0);_.N([_.h({computed:"computeDisplayTitle(data.title)"}),_.A("design:type",Boolean)],vi.prototype,"displayTitle",void 0);
_.N([_.h({computed:"computeDisplaySeparator(data)"}),_.A("design:type",Boolean)],vi.prototype,"displaySeparator",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vi.prototype,"onDataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],vi);
_.m(vi,"ytd-sponsorships-tier-renderer",function(){if(Gxm!==void 0)return Gxm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Gxm=G},{mode:2});var Wi=function(){return _.C.apply(this,arguments)||this};
_.T(Wi,_.C);
Wi.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"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Wi.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Wi);
_.m(Wi,"ytd-sponsorships-management-renderer",function(){if(YjD!==void 0)return YjD;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return YjD=G},{mode:1});var Zw8;var zS=function(){return _.C.apply(this,arguments)||this};
_.T(zS,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zS.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],zS);
_.m(zS,"ytd-open-in-native-app-view-model",function(){if(Zw8!==void 0)return Zw8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Zw8=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var Qt8;var pdq;var lTh=_.CM(["top-"]),gwc=_.CM(["bottom-"]),ITm=_.CM(["left-"]),qRk=_.CM(["right-"]),SRm={},uac=function(G,H,Z){G.removeAttribute("top-"+Z);G.removeAttribute("bottom-"+Z);G.removeAttribute("left-"+Z);G.removeAttribute("right-"+Z);H&&(H.top&&_.q_([_.et(lTh)],G,"top-"+Z,H.top),H.bottom&&_.q_([_.et(gwc)],G,"bottom-"+Z,H.bottom),H.left&&_.q_([_.et(ITm)],G,"left-"+Z,H.left),H.right&&_.q_([_.et(qRk)],G,"right-"+Z,H.right))};
SRm.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(G){var H,Z=_.F9((H=this.hostElement)!=null?H:this),Q;H=this.cardItemBoxBehaviorMarginTargetId&&Z?Z.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(Q=this.hostElement)!=null?Q:this;uac(H,G,"margin")},
cardItemContainerPaddingChanged_:function(G){var H,Z=_.F9((H=this.hostElement)!=null?H:this),Q;H=this.cardItemBoxBehaviorPaddingTargetId&&Z?Z.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(Q=this.hostElement)!=null?Q:this;uac(H,G,"padding")}}];var KS={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 BGi;var J_A;var M3=function(){return _.C.apply(this,arguments)||this};
_.T(M3,_.C);M3.prototype.textColorChanged_=function(){this.hostElement.style.color=KS[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
M3.prototype.textColorChanged_=M3.prototype.textColorChanged_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.N([_.v(SRm.YtCardItemBoxBehavior),_.A("design:type",Object)],M3.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],M3.prototype,"data",void 0);_.N([_.gx("data.textColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M3.prototype,"textColorChanged_",null);
_.N([_.fH({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],M3);
_.m(M3,"yt-card-item-text-renderer",function(){if(J_A===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;BGi===void 0&&(BGi=document.createElement("template"));var Q=BGi;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);J_A=G}G=J_A;return G},{mode:2});var tp8;var kxL;var jv=function(){return _.C.apply(this,arguments)||this};
_.T(jv,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],jv.prototype,"data",void 0);_.N([_.fH({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],jv);
_.m(jv,"yt-card-item-badge-renderer",function(){if(kxL===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;tp8===void 0&&(tp8=document.createElement("template"));var Q=tp8;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);kxL=G}G=kxL;return G},{mode:2});var D7a;var d7o;var Pi=function(){return _.C.apply(this,arguments)||this};
_.T(Pi,_.C);Pi.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Pi.prototype,"data",void 0);_.N([_.fH({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Pi);
_.m(Pi,"yt-card-item-text-collection-renderer",function(){if(d7o===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;D7a===void 0&&(D7a=document.createElement("template"));var Q=D7a;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);d7o=G}G=d7o;return G},{mode:2});var eNm;var nwk;var rz=function(){return _.C.apply(this,arguments)||this};
_.T(rz,_.C);rz.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]]"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rz.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Number)],rz.prototype,"iconSize",void 0);_.N([_.fH({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],rz);
_.m(rz,"yt-card-item-text-with-button-renderer",function(){if(nwk===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;eNm===void 0&&(eNm=document.createElement("template"));var Q=eNm;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);nwk=G}G=nwk;return G},{mode:2});var wz=function(){return _.C.apply(this,arguments)||this};
_.T(wz,_.C);wz.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],wz.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wz.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],wz);
_.m(wz,"ytd-commerce-cart-summary-line-item-renderer",function(){if(pdq!==void 0)return pdq;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return pdq=G},{mode:1});_.eQ("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var hG=function(){var G=_.C.apply(this,arguments)||this;G.hidden=!1;return G};
_.T(hG,_.C);_.g=hG.prototype;_.g.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"}}}}};
_.g.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.g.updateSummary=function(){var G=this.commerceCartCheckoutButtonEntity,H;if(((H=this.data)==null?0:H.cartButton)&&G.checkoutSummaryText){var Z,Q=Dx((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",dp(G.checkoutSummaryText));if(G.checkoutDetailText){var p;Z=Dx((p=this.data)==null?void 0:p.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",dp(G.checkoutDetailText))}if(G.checkoutAdditionalMetadataText){var l;
p=Dx((l=this.data)==null?void 0:l.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+p+".cardItemTextRenderer.text",dp(G.checkoutAdditionalMetadataText))}}else G.estimatedTotalPrice&&(l=Dx((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+l+".cardItemTextRenderer.text",dp(G.estimatedTotalPrice)))};
_.g.updateIsHidden=function(){var G,H=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;H!==void 0&&(this.hidden=H)};
_.g.updateCheckoutButton=function(){var G,H=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isDisabled;H!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",H);var Z;G=(Z=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:Z.innertubeCommand;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",G);var Q;Z=(Q=this.commerceCartCheckoutButtonEntity)==null?void 0:Q.checkoutButtonText;Z!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:Z})};
hG.prototype.entityChanged=hG.prototype.entityChanged;_.N([_.v(_.Up),_.A("design:type",Object)],hG.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],hG.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],hG.prototype,"fullWidth",void 0);_.N([_.h(),_.A("design:type",Object)],hG.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],hG.prototype,"compact",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],hG.prototype,"hidden",void 0);
_.N([_.h({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:qmf}),_.A("design:type",Object)],hG.prototype,"commerceCartCheckoutButtonEntity",void 0);_.N([_.gx("commerceCartCheckoutButtonEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hG.prototype,"entityChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],hG);
_.m(hG,"ytd-commerce-cart-checkout-button-renderer",function(){if(Qt8!==void 0)return Qt8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Qt8=G},{mode:2});var Vpj;_.$7a={};
_.$7a.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",_.pH(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.pH(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(G){!this.tappableItemBehaviorTapEnabled||G.keyCode!==13&&G.keyCode!==32||G.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var G=this.data.onTap;G.ypcGetCartEndpoint?(_.L9(this.hostElement,[G]),this.tappableItemBehaviorTapEnabled=!1):G.ypcOffersEndpoint?_.L9(this.hostElement,[G]):_.El(this.hostElement,[G],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(G){this.tappableItemBehaviorTapEnabled=!!G},
tappableItemBehaviorOnTapEnabledChanged_:function(){var G=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(G.setAttribute("tabIndex",0),G.setAttribute("role","button")):(G.removeAttribute("tabIndex"),G.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(G){G.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var XdA;var c_D;var CS=function(){return _.C.apply(this,arguments)||this};
_.T(CS,_.C);CS.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.nI("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.nI("sharingToggleButtonAndDefaultButton")}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],CS.prototype,"data",void 0);_.N([_.fH({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],CS);
_.m(CS,"yt-card-item-actions-renderer",function(){if(c_D===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;XdA===void 0&&(XdA=document.createElement("template"));var Q=XdA;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);c_D=G}G=c_D;return G},{mode:2});var TGL;var fTm;var vwi;var W2q;var zN8;var K2c;var iB=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return G};
_.T(iB,_.C);iB.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
iB.prototype.handleDarkModeToggledAction_=function(G){this.isDarkTheme_=G};
iB.prototype.computeThemeImage_=function(G,H){if(!G||!G.imageLight)return!1;this.isCircular_=G.isCircular;G.imageWidth&&(this.hostElement.style.width=G.imageWidth+"px");G.imageHeight&&(this.hostElement.style.height=G.imageHeight+"px");G.borderWidth&&(this.image.style.borderWidth=G.borderWidth+"px",this.image.style.borderStyle="solid");G.borderColor&&(this.image.style.borderColor=_.c$(G.borderColor));return H&&G.imageDark?G.imageDark:G.imageLight};
iB.prototype.computeThemeIcon_=function(G){var H,Z;if(!(G==null?0:(H=G.themedIcon)==null?0:(Z=H.icon)==null?0:Z.iconType))return!1;this.icon.style.color=KS[G.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(G.imageWidth||18)+"px";this.icon.style.height=(G.imageHeight||18)+"px";return _.bq(G.themedIcon.icon.iconType)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],iB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(SRm.YtCardItemBoxBehavior),_.A("design:type",Object)],iB.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],iB.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],iB.prototype,"data",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],iB.prototype,"fit",void 0);_.N([_.h(),_.A("design:type",Boolean)],iB.prototype,"isDarkTheme_",void 0);_.N([_.h({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.A("design:type",Object)],iB.prototype,"themeImage_",void 0);_.N([_.h({computed:"computeThemeIcon_(data)"}),_.A("design:type",Object)],iB.prototype,"themeIcon_",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Object)],iB.prototype,"isCircular_",void 0);
_.N([_.q6("#image"),_.A("design:type",Object)],iB.prototype,"image",void 0);_.N([_.q6("#icon"),_.A("design:type",Object)],iB.prototype,"icon",void 0);_.N([_.fH({is:"yt-themed-image-renderer",disableElementRegistration:!0})],iB);
_.m(iB,"yt-themed-image-renderer",function(){if(K2c===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;zN8===void 0&&(zN8=document.createElement("template"));var Q=zN8;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);K2c=G}G=K2c;return G},{mode:2});var OY=function(){return _.C.apply(this,arguments)||this};
_.T(OY,_.C);OY.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"}}}}};
OY.prototype.computeImagePlacement_=function(G){return G||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],OY.prototype,"data",void 0);_.N([_.h({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.A("design:type",String)],OY.prototype,"imagePlacement",void 0);
_.N([_.fH({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],OY);
_.m(OY,"yt-card-item-text-with-image-renderer",function(){if(W2q===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;vwi===void 0&&(vwi=document.createElement("template"));var Q=vwi;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);W2q=G}G=W2q;return G},{mode:2});var an=function(){return _.C.apply(this,arguments)||this};
_.T(an,_.C);an.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"}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],an.prototype,"data",void 0);_.N([_.fH({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],an);
_.m(an,"yt-card-item-error-renderer",function(){if(fTm===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;TGL===void 0&&(TGL=document.createElement("template"));var Q=TGL;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);fTm=G}G=fTm;return G},{mode:2});var Mpj;var jta;_.eQ("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var yU=function(){return _.C.apply(this,arguments)||this};
_.T(yU,_.C);_.g=yU.prototype;
_.g.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"}}}}};
_.g.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.g.backgroundColorChanged_=function(){var G,H=(G=this.data)==null?void 0:G.backgroundColor;G=KS[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.F9(this.hostElement).querySelector("#main-content").style.backgroundColor=G};
_.g.headerPromoBackgroundColorChanged_=function(){var G,H=(G=this.data)==null?void 0:G.headerPromoBackgroundColor;G=KS[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.F9(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=G};
_.g.errorRendererVisibilityChanged_=function(){var G=this.isExpanded_,H;this.isErrorRendererVisible_=!((H=this.data)==null||!H.errorRenderer)&&!G};
_.g.onYtToggleButton_=function(G,H){this.isExpanded_=H.toggled};
yU.prototype.onYtToggleButton_=yU.prototype.onYtToggleButton_;yU.prototype.errorRendererVisibilityChanged_=yU.prototype.errorRendererVisibilityChanged_;yU.prototype.headerPromoBackgroundColorChanged_=yU.prototype.headerPromoBackgroundColorChanged_;yU.prototype.backgroundColorChanged_=yU.prototype.backgroundColorChanged_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(SRm.YtCardItemBoxBehavior),_.A("design:type",Object)],yU.prototype,"ytCardItemBoxBehavior",void 0);_.N([_.v(_.$7a.YtTappableItemBehavior),_.A("design:type",Object)],yU.prototype,"ytTappableItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],yU.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],yU.prototype,"isExpanded_",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],yU.prototype,"isErrorRendererVisible_",void 0);_.N([_.gx("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yU.prototype,"backgroundColorChanged_",null);_.N([_.gx("data.headerPromoBackgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yU.prototype,"headerPromoBackgroundColorChanged_",null);
_.N([_.gx("data.errorRenderer","isExpanded_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yU.prototype,"errorRendererVisibilityChanged_",null);_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],yU.prototype,"onYtToggleButton_",null);_.N([_.fH({is:"yt-card-item-renderer",disableElementRegistration:!0})],yU);
_.m(yU,"yt-card-item-renderer",function(){if(jta===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Mpj===void 0&&(Mpj=document.createElement("template"));var Q=Mpj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);jta=G}G=jta;return G},{mode:2});_.eQ("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var on=function(){var G=_.C.apply(this,arguments)||this;G.hidden=!1;return G};
_.T(on,_.C);_.g=on.prototype;_.g.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.g.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.g.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,H=(G=this.commerceCartHeaderEntity)==null?void 0:G.isHidden;H!==void 0&&(this.hidden=H)}};
_.g.updateTitle=function(){var G=this.commerceCartHeaderEntity.isDisabled,H,Z,Q=(Z=_.X((H=this.data)==null?void 0:H.item,gzN))==null?void 0:Z.headingRenderer;Q&&(H=Dx(Q,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".0.cardItemTextRenderer.textColor",G?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.g.updateSummaryText=function(){var G=this.commerceCartHeaderEntity;if(this.compact){var H,Z,Q=(Z=_.X((H=this.data)==null?void 0:H.item,gzN))==null?void 0:Z.headingRenderer;Q&&(H=Dx(Q,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".1.cardItemTextRenderer.text",G.shortHeaderSummaryText?dp(G.shortHeaderSummaryText):G.headerSummaryText?dp(G.headerSummaryText):""))}else{var p;if(H=(p=_.X((Q=this.data)==null?void 0:Q.item,gzN))==null?void 0:p.additionalInfoRenderer)H=Dx(H,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".text",G.headerSummaryText?dp(G.headerSummaryText):"")}};
_.g.updateCheckoutButton=function(){var G=this.commerceCartHeaderEntity,H,Z,Q=(Z=_.X((H=this.data)==null?void 0:H.item,gzN))==null?void 0:Z.additionalInfoRenderer;H=Dx(Q,"buttonRenderer");var p;Z=(p=this.commerceCartHeaderEntity)==null?void 0:p.isButtonDisabled;var l;p=(l=this.commerceCartHeaderEntity)==null?void 0:l.isButtonHidden;Z!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.isDisabled",Z);p!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
p);var q;G=(q=G.checkoutButtonCommand)==null?void 0:q.innertubeCommand;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.command",G)};
on.prototype.entityChanged=on.prototype.entityChanged;_.N([_.v(_.Up),_.A("design:type",Object)],on.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],on.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],on.prototype,"compact",void 0);_.N([_.h({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(G,H){return _.Hv(G.entities,"commerceCartHeaderEntity",H)}}),
_.A("design:type",Object)],on.prototype,"commerceCartHeaderEntity",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],on.prototype,"hidden",void 0);_.N([_.gx("commerceCartHeaderEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],on.prototype,"entityChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],on);
_.m(on,"ytd-commerce-cart-header-renderer",function(){if(Vpj!==void 0)return Vpj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Vpj=G},{mode:1});var Pao;var r_h=_.nO(function(G,H){var Z;return(Z=G.onChangeCallback)==null?void 0:Z.call(G,H)},1E3),wdt=_.y(function(G){var H=G.data;
var Z=G.iconMinus;G=G.iconPlus;var Q=function(){return!!H().disabled},p=_.I(_.Ty(0,void 0,"mKh0af")),l=p.next().value,q=p.next().value;
p=_.Hh(function(){if(l()===1){var d,e;(e=(d=H()).onRemoveCommand)==null||e.call(d)}d=l()>H().maxValue?H().maxValue:l()-1;q(d);r_h(H(),d);return!1});
var u=_.Hh(function(){if(l()===H().maxValue)return!1;var d=l()+1;q(d);r_h(H(),d);return!1});
_.yP(function(){q(H().value)});
var B={},t={},D={};return _.J("quantity-incrementer-shape",null,_.J("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.J("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return l()===(H().onRemoveCommand?0:1)||Q()},
"aria-label":function(){return l()!==1?H().minusLabel:H().minimumReachedLabel},
"on:click":p},_.J(_.u1,{model:{circular:!0}}),_.J("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.J("div",{class:_.bb("ytSpecQuantityIncrementerShapeIcon",(B.ytSpecQuantityIncrementerShapeIconDisabled=function(){return Q()||l()===(H().onRemoveCommand?0:1)},B))},Z()))),_.J("div",{class:_.bb("ytSpecQuantityIncrementerShapeText",(t.ytSpecQuantityIncrementerShapeTextInvalid=function(){return l()>H().maxValue},t.ytSpecQuantityIncrementerShapeTextDisabled=Q,t))},l),_.J("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return l()>=H().maxValue||Q()},
"aria-label":function(){return l()!==H().maxValue?H().plusLabel:H().maximumReachedLabel},
"on:click":u},_.J(_.u1,{model:{circular:!0}}),_.J("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.J("div",{class:_.bb("ytSpecQuantityIncrementerShapeIcon",(D.ytSpecQuantityIncrementerShapeIconDisabled=function(){return l()>=H().maxValue||Q()},D))},G())))))},"Jf");_.RX(_.y(function(G){function H(){Z().onRemoveCommand&&_.zt(Z().onRemoveCommand)}
var Z=G.data;var Q=_.gu(T2f,function(){return Z().quantityIncrementerEntityKey});
return _.J("yt-quantity-incrementer-view-model",null,_.J(wdt,{data:function(){var p=Z(),l;var q=Q()?!((l=Q())==null||!l.disabled):!1;var u;l=Q()?(u=Q())==null?void 0:u.quantity:Z().quantity;return w1v(p,q,H,l)},
iconMinus:function(){return _.J(_.ll,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.J(_.ll,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Kf"),"yt-quantity-incrementer-view-model",{props:{data:_.b3}});var mk=function(){var G=_.C.apply(this,arguments)||this;G.compact=!1;G.hasQuantityIncrementer=!1;return G};
_.T(mk,_.C);mk.prototype.configureRendererStamper=function(){return{"data.picker":{id:"picker",mapping:{quantityIncrementerViewModel:"yt-quantity-incrementer-view-model",dropdownRenderer:{component:"ytd-dropdown-renderer",params:{autosize:!0,minAutosizeWidth:0,noUnderline:!0,noLabelFloat:!0,usePrimaryColor:!0}}}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
mk.prototype.computeHasQuantityIncrementer=function(){var G;return!!_.X((G=this.data)==null?void 0:G.picker,ufN)};
mk.prototype.onLabelClick=function(){var G;(G=this.dropdownEl)==null||G.open()};
_.N([_.q6("ytd-dropdown-renderer"),_.A("design:type",Object)],mk.prototype,"dropdownEl",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],mk.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],mk.prototype,"quantityColor",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],mk.prototype,"compact",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.A("design:type",Object)],mk.prototype,"hasQuantityIncrementer",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],mk);
_.m(mk,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(Pao!==void 0)return Pao;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Pao=G},{mode:1});var hNm;var Cac;var UY=function(){return _.C.apply(this,arguments)||this};
_.T(UY,_.C);UY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UY.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
UY.prototype.updateTitle=function(){var G=this.disabledCartItemEntity;G.disableActionName&&this.set("data.title",dp(G.disableActionName))};
UY.prototype.updateButton=function(){var G,H=(G=this.disabledCartItemEntity.undoCommand)==null?void 0:G.innertubeCommand;H!==void 0&&(this.set("data.actionButton.buttonRenderer.command",H),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
UY.prototype.entityChanged=UY.prototype.entityChanged;_.N([_.v(_.Up),_.A("design:type",Object)],UY.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(G,H){return _.Hv(G.entities,"disabledCartItemEntity",H)}}),
_.A("design:type",Object)],UY.prototype,"disabledCartItemEntity",void 0);_.N([_.h(),_.A("design:type",Object)],UY.prototype,"data",void 0);_.N([_.gx("disabledCartItemEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UY.prototype,"entityChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],UY);
_.m(UY,"ytd-disabled-cart-item-renderer",function(){if(Cac!==void 0)return Cac;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Cac=G},{mode:1});_.eQ("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Rn=function(){var G=_.C.apply(this,arguments)||this;G.compact=!1;G.hidden=!1;G.errorHidden=!1;G.noOnTap=!1;return G};
_.T(Rn,_.C);_.g=Rn.prototype;
_.g.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"}}}};
_.g.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.g.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var G=this.firstButtonElement;G.alignByText=!0;G.iconAlignByText=!0}};
_.g.computeNoOnTap=function(G){return!G};
_.g.updateQuantityColor=function(){if(this.pickerElement){var G,H=(G=this.commerceCartItemEntity)==null?void 0:G.quantityColor;this.pickerElement.quantityColor=H}};
_.g.updateTotalPriceColor=function(){var G,H=(G=this.commerceCartItemEntity)==null?void 0:G.totalPriceColor;if(H){var Z;G=_.X((Z=this.data)==null?void 0:Z.quantityPicker,q0x);if(Z=_.X(G==null?void 0:G.price,IFR))Z.textColor=H}};
_.g.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var G,H=(G=this.commerceCartItemEntity)==null?void 0:G.isHidden;H!==void 0&&(this.hidden=H)}};
_.g.updateHideErrorMessage=function(){var G,H=(G=this.commerceCartItemEntity)==null?void 0:G.hideErrorMessage;H!==void 0&&(this.errorHidden=H)};
_.g.updateQuantity=function(){var G=this,H,Z=(H=this.commerceCartItemEntity)==null?void 0:H.quantity,Q;H=(Q=this.commerceCartItemEntity)==null?void 0:Q.totalPrice;if(Z){this.updateTotalPriceColor();this.updateQuantityColor();var p;Q=_.X((p=this.data)==null?void 0:p.quantityPicker,q0x);if(p=_.X(Q==null?void 0:Q.price,IFR))p.text=H?{simpleText:H.content}:void 0;if(H=_.X(Q==null?void 0:Q.picker,ufN))H.quantity=Z;var l;if(p=(l=_.X(Q==null?void 0:Q.picker,lid))==null?void 0:l.entries){l=!1;H=void 0;p=
_.I(p);for(Q=p.next();!Q.done;Q=p.next())Q=Q.value,Q.dropdownItemRenderer&&(H||(H=Q.dropdownItemRenderer),Q.dropdownItemRenderer.isSelected=!1,Z===Q.dropdownItemRenderer.int32Value&&(l=!0,Q.dropdownItemRenderer.isSelected=!0));!l&&H&&(H.isSelected=!0)}_.q2(this,function(){var q;G.set("data.quantityPicker",_.oN.unsafeClone((q=G.data)==null?void 0:q.quantityPicker))})}};
Rn.prototype.onYtRendererstamperFinished=Rn.prototype.onYtRendererstamperFinished;Rn.prototype.entityChanged=Rn.prototype.entityChanged;_.N([_.h(),_.A("design:type",Object)],Rn.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Rn.prototype,"compact",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Rn.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Rn.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(G,H){return _.Hv(G.entities,"commerceCartItemEntity",H)}}),
_.A("design:type",Object)],Rn.prototype,"commerceCartItemEntity",void 0);_.N([_.h(),_.A("design:type",Object)],Rn.prototype,"quantityPicker",void 0);_.N([_.h(),_.A("design:type",Object)],Rn.prototype,"compactQuantityPicker",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Rn.prototype,"hidden",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Rn.prototype,"errorHidden",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.A("design:type",Object)],Rn.prototype,"noOnTap",void 0);_.N([_.q6("ytd-commerce-cart-item-quantity-picker-renderer"),_.A("design:type",Object)],Rn.prototype,"pickerElement",void 0);_.N([_.q6("yt-button-renderer"),_.A("design:type",Element)],Rn.prototype,"firstButtonElement",void 0);
_.N([_.gx("commerceCartItemEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rn.prototype,"entityChanged",null);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rn.prototype,"onYtRendererstamperFinished",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Rn);
_.m(Rn,"ytd-commerce-cart-item-renderer",function(){if(hNm!==void 0)return hNm;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return hNm=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var iws;var Owk;var N3=function(){return _.C.apply(this,arguments)||this};
_.T(N3,_.C);N3.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}}}}}};
N3.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
N3.prototype.updateCheckoutLineItems=function(){var G,H=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.checkoutLineItems;H&&(G=H.map(function(Z){a:{var Q=Z.price,p=Z.description;switch(Z.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":Z={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:dp(p),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:dp(Q),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:Z={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:dp(p),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:dp(Q),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 Z}),this.set("data.summaryLineItems",G))};
N3.prototype.updateIsHidden=function(){var G,H=(G=this.commerceCartCheckoutButtonEntity)==null?void 0:G.isHidden;H!==void 0&&(this.hostElement.hidden=H)};
N3.prototype.entityChanged=N3.prototype.entityChanged;_.N([_.v(_.Up),_.A("design:type",Object)],N3.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],N3.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],N3.prototype,"data",void 0);_.N([_.h({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:qmf}),_.A("design:type",Object)],N3.prototype,"commerceCartCheckoutButtonEntity",void 0);_.N([_.gx("commerceCartCheckoutButtonEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N3.prototype,"entityChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],N3);
_.m(N3,"ytd-commerce-cart-summary-renderer",function(){if(Owk!==void 0)return Owk;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Owk=G},{mode:1});var aTA={};aTA.InjectBehavior=[G72.InjectBehavior];var y_k;var owh;var AG=function(){return _.C.apply(this,arguments)||this};
_.T(AG,_.C);
AG.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:_.nI("menuRenderer")}}};
AG.prototype.onMenuTap=function(G){G.stopPropagation()};
_.u4.Object.defineProperties(AG.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 G,H;return!(((G=this.data)==null||!G.sectionHeading)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var G,H;return!(((G=this.data)==null||!G.image)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var G,H;return!(((G=this.data)==null||!G.menu)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.$7a.YtTappableItemBehavior),_.A("design:type",Object)],AG.prototype,"ytTappableItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],AG.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data.accessibilityData"),_.A("design:type",String),_.A("design:paramtypes",[])],AG.prototype,"ariaLabel",null);_.N([_.z("data.sectionHeading","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AG.prototype,"sectionHeadingVisible",null);_.N([_.z("data.image","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AG.prototype,"imageVisible",null);
_.N([_.z("data.menu","data.layout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],AG.prototype,"menuVisible",null);_.N([_.fH({is:"yt-activity-item-renderer",disableElementRegistration:!0})],AG);
_.m(AG,"yt-activity-item-renderer",function(){if(owh===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;y_k===void 0&&(y_k=document.createElement("template"));var Q=y_k;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);owh=G}G=owh;return G},{mode:2});var m7j;var U7s;var RN8;var NGq;var xL=function(){return _.C.apply(this,arguments)||this};
_.T(xL,_.C);
xL.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"}}}}};
xL.prototype.backgroundColorChanged_=function(){var G,H=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=KS[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
xL.prototype.backgroundColorChanged_=xL.prototype.backgroundColorChanged_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xL.prototype,"data",void 0);
_.N([_.gx("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xL.prototype,"backgroundColorChanged_",null);_.N([_.fH({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],xL);
_.m(xL,"yt-offer-item-upsell-renderer",function(){if(NGq===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;RN8===void 0&&(RN8=document.createElement("template"));var Q=RN8;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);NGq=G}G=NGq;return G},{mode:2});_.eQ("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var LS=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};G.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return G};
_.T(LS,_.C);_.g=LS.prototype;
_.g.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:_.nI("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.g.computeContainerStyle_=function(G){return G};
_.g.computeContainerIsHidden_=function(G){return G&&!!G.isHidden};
_.g.computeShowSpinner_=function(G,H){return G&&H==="in-progress"};
_.g.computeShowMoreContentsButton_=function(G,H,Z,Q,p){return!(!(Q&&Q.length||p&&p.length&&Z)||!G||H)};
_.g.onToggleButton_=function(G){var H=this;G.stopPropagation();this.isExpanded_=G.detail&&G.detail.toggled;var Z,Q;this.isExpanded_&&!this.data.continuationSection.length&&((Z=this.data)==null?0:(Q=Z.continuation)==null?0:Q.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.N5(this.hostElement,"yt-load-next-continuation",function(p){return H.getContinuationUrl_(H.data.continuation.onClickContinuationData,p)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.L9(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.g.onShowMoreContentsButtonClicked_=function(G){var H=this;G.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.N5(this.hostElement,"yt-load-next-continuation",function(Z){return H.getContinuationUrl_(H.data.continuations[0].nextContinuationData,Z)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.L9(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.g.getContinuationUrl_=function(G,H){var Z=G.continuation;G=G.clickTrackingParams;var Q=_.$k();G&&Q&&_.Co(Q,_.BT(G));return _.g7(H,{continuation:Z})};
_.g.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var G=_.F9(this.hostElement).querySelector("#continuation-section");G&&(G=G.querySelectorAll("ytmusic-item-section-renderer"))&&G.forEach(function(H){return H.classList.add("memberships-and-purchases")})};
_.g.dataChanged_=function(){var G;this.isExpanded_=!((G=this.data)==null||!G.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.g.updateCardOnClickCommand_=function(G){G=_.X(G,bd4);var H,Z;this.data&&((H=this.data)==null?0:H.targetId)&&G&&G.targetId===((Z=this.data)==null?void 0:Z.targetId)&&G.onClickCommand&&(this.data.onClickCommand=G.onClickCommand,this.isOnClickCommand_=!0)};
_.g.backgroundColorChanged_=function(){var G,H=(G=this.data)==null?void 0:G.backgroundColor;this.hostElement.style.backgroundColor=KS[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
LS.prototype.backgroundColorChanged_=LS.prototype.backgroundColorChanged_;LS.prototype.dataChanged_=LS.prototype.dataChanged_;LS.prototype.nextContinuationDataUpdated_=LS.prototype.nextContinuationDataUpdated_;LS.prototype.onToggleButton_=LS.prototype.onToggleButton_;_.N([_.v(_.sF),_.A("design:type",Object)],LS.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],LS.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.ZE.YtNextContinuationBehavior),_.A("design:type",Object)],LS.prototype,"ytNextContinuationBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.N([_.v(aTA.InjectBehavior),_.A("design:type",Object)],LS.prototype,"injectBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],LS.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],LS.prototype,"compact",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],LS.prototype,"isExpanded_",void 0);_.N([_.h({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.A("design:type",String)],LS.prototype,"containerStyle_",void 0);_.N([_.h({value:"not-started"}),_.A("design:type",String)],LS.prototype,"continuationStatus_",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.A("design:type",Boolean)],LS.prototype,"showSpinner_",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],LS.prototype,"isOnClickCommand_",void 0);_.N([_.h({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.A("design:type",Boolean)],LS.prototype,"showMoreContentsButton_",void 0);
_.N([_.h({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(G,H){return!H||G.entities?null:_.Hv(G.entities,"cardItemContainerEntity",H)}}),
_.A("design:type",Object)],LS.prototype,"cardItemContainerEntity_",void 0);_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],LS.prototype,"onToggleButton_",null);_.N([_.lq("yt-next-continuation-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LS.prototype,"nextContinuationDataUpdated_",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LS.prototype,"dataChanged_",null);_.N([_.gx("data.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LS.prototype,"backgroundColorChanged_",null);_.N([_.fH({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],LS);
_.m(LS,"yt-card-item-container-renderer",function(){if(U7s===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;m7j===void 0&&(m7j=document.createElement("template"));var Q=m7j;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);U7s=G}G=U7s;return G},{mode:2});var EY=function(){return _.C.apply(this,arguments)||this};
_.T(EY,_.C);EY.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"}}}};
EY.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
EY.prototype.computeLoadingHidden=function(){var G;return!((G=this.commerceCartPageStateEntity)==null?0:G.cartActionInProgress)};
EY.prototype.updateNotification=function(){var G,H=(G=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:G.summaryText;H&&this.set("data.cartNotification",dp(H))};
EY.prototype.notificationEntityChanged=EY.prototype.notificationEntityChanged;_.N([_.v(_.Up),_.A("design:type",Object)],EY.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],EY.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],EY.prototype,"data",void 0);_.N([_.h({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(G,H){return _.Hv(G.entities,"commerceCartExpandableNotificationEntity",H)}}),
_.A("design:type",Object)],EY.prototype,"commerceCartExpandableNotificationEntity",void 0);_.N([_.h({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(G,H){return _.Hv(G.entities,"commerceCartPageStateEntity",H)}}),
_.A("design:type",Object)],EY.prototype,"commerceCartPageStateEntity",void 0);_.N([_.q6("#spinner"),_.A("design:type",HTMLElement)],EY.prototype,"spinner",void 0);_.N([_.gx("commerceCartExpandableNotificationEntity","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EY.prototype,"notificationEntityChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],EY);
_.m(EY,"ytd-commerce-cart-renderer",function(){if(iws!==void 0)return iws;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return iws=G},{mode:1});var A_k;var YL=function(){var G=_.C.apply(this,arguments)||this;G.bigImage=!1;return G};
_.T(YL,_.C);_.u4.Object.defineProperties(YL.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.placeholderImageUrl}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],YL.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YL.prototype,"bigImage",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],YL.prototype,"placeholderImageUrl",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],YL);
_.m(YL,"ytd-empty-product-shelf-renderer",function(){if(A_k!==void 0)return A_k;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return A_k=G},{mode:1});var x7m;var Fh=function(){var G=_.C.apply(this,arguments)||this;G.itemStyle="link-item";G.watchMetadataRefresh=!1;G.skinnyMode=!1;G.metaPanel=!1;G.inStructuredDescription=!1;G.detailedDescriptionOverride=!1;G.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};G.updateOnResizeDebouncer=null;return G};
_.T(Fh,_.C);_.g=Fh.prototype;_.g.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.g.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"}}}}};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.g.attachVEs=function(G){G.trackingParams&&_.gr().graftServerVe(G.trackingParams)};
_.g.handleUpdateMerchShelfAction=function(G){var H=this,Z=_.X(G.updateMerchandiseShelfAction.merchandiseShelf,_.TWw);Z&&(Z.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){H.attachVEs(Z);H.data=Z},Number(Z.renderDelayMs))):(this.attachVEs(Z),this.data=Z))};
_.g.updateOnResize=function(){if(this.JSC$17012_scrollContainer!==void 0&&this.JSC$17012_scrollContainer.clientWidth!==0&&this.items!==void 0){var G=this.JSC$17012_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_();var H;switch((H=this.data)==null?void 0:H.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var Z,
Q;((Z=this.data)==null?void 0:(Q=Z.items)==null?void 0:Q.length)===1?this.itemStyle="cta-item":this.itemStyle=G>=740?"large-item":"small-item"}}};
_.g.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.u2(this.updateOnResizeDebouncer,_.FA.after(100),this.updateOnResize)};
Fh.prototype.debouncedUpdateOnResize=Fh.prototype.debouncedUpdateOnResize;Fh.prototype.dataChanged=Fh.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.uU.YtdHorizontalListBehavior),_.A("design:type",Object)],Fh.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Fh.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Fh.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Fh.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Fh.prototype,"itemStyle",void 0);_.N([_.h({value:6}),_.A("design:type",Number)],Fh.prototype,"initialCount",void 0);
_.N([_.h({value:"data.items"}),_.A("design:type",String)],Fh.prototype,"itemsPath",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Fh.prototype,"watchMetadataRefresh",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Fh.prototype,"skinnyMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Fh.prototype,"metaPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Fh.prototype,"inStructuredDescription",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Fh.prototype,"detailedDescriptionOverride",void 0);_.N([_.q6("#items"),_.A("design:type",HTMLDivElement)],Fh.prototype,"items",void 0);_.N([_.q6("#scroll-container"),_.A("design:type",HTMLDivElement)],Fh.prototype,"JSC$17012_scrollContainer",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fh.prototype,"dataChanged",null);
_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fh.prototype,"debouncedUpdateOnResize",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Fh);
_.m(Fh,"ytd-merch-shelf-renderer",function(){if(x7m!==void 0)return x7m;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return x7m=G},{mode:2});var L2i;var bB=function(){var G=_.C.apply(this,arguments)||this;G.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 G};
_.T(bB,_.C);_.g=bB.prototype;
_.g.addBackstagePostAction=function(G){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(G=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",G))&&(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:G}):this.set("data.contents",[{backstagePostThreadRenderer:G}]))};
_.g.addBackstageCommentAction=function(G){var H=this.get("addBackstageCommentAction.parentId",G);G=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",G);if(H&&G){H=this.postIdToIndices(H);for(var Z=0;Z<H.length;Z++){var Q=H[Z];if(Q<0)break;Q="data.contents."+Q+".backstagePostThreadRenderer.comments";this.get(Q)&&(this.get(Q+".backstageCommentsRenderer.contents")&&this.push(Q+".backstageCommentsRenderer.contents",{commentThreadRenderer:G}),this.get(Q+".backstageCommentsRenderer.teaserContents")?
this.push(Q+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:G}):this.set(Q+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:G}]))}}};
_.g.addBackstageReplyAction=function(G){var H=this.get("addBackstageReplyAction.parentId",G);G=this.get("addBackstageReplyAction.renderer.commentRenderer",G);H&&G&&this.setCreatorReply(H,G)};
_.g.banAuthorAction=function(G){var H=this.get("banAuthorAction.commentId",G);H&&(G=this.get("banAuthorAction.parentCommentId",G)||this.getParentPostId(H),this.removeFromStream(H,G))};
_.g.hideReportedCommentAction=function(G){var H=this.get("hideReportedCommentAction.commentId",G);H&&((G=this.get("hideReportedCommentAction.parentCommentId",G))||(G=this.getParentPostId(H)),this.removeFromStream(H,G))};
_.g.replaceBackstageCommentAction=function(G){var H=this.get("replaceBackstageCommentAction.commentId",G),Z=this.get("replaceBackstageCommentAction.parentId",G);G=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",G);if(H&&Z&&G){Z=this.postIdToIndices(Z);for(var Q=0;Q<Z.length;Q++){var p=Z[Q];if(p<0)break;var l=this.commentIdToIndex(H,p,!1);if(l>=0){var q=this.get("data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+l+".commentThreadRenderer.replies.commentRepliesRenderer");
q&&(G.replies={commentRepliesRenderer:q});this.splice("data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",l,1,{commentThreadRenderer:G})}l=this.commentIdToIndex(H,p,!0);if(l>=0){if(q=this.get("data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(l+".commentThreadRenderer.replies.commentRepliesRenderer")))G.replies={commentRepliesRenderer:q};this.splice("data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
l,1,{commentThreadRenderer:G})}}}};
_.g.replaceBackstagePostAction=function(G){var H=this.get("replaceBackstagePostAction.itemId",G);if(H){H=this.postIdToIndices(H);for(var Z=0;Z<H.length;Z++){var Q=H[Z];if(Q<0)break;var p=this.getPostRendererType(Q),l=this.get("replaceBackstagePostAction.renderer."+p,G);if(!l&&p!=="sharedPostRenderer")break;var q=!1;l||(q=!0,l=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",G));if(!l)break;var u={};q?(_.nX(u,mOw,l),this.set("data.contents."+Q+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
u)):(_.nX(u,new _.bn(p),l),this.set("data.contents."+Q+".backstagePostThreadRenderer.post",u))}}};
_.g.replaceBackstageReplyAction=function(G){var H=this.get("replaceBackstageReplyAction.replyId",G),Z=this.get("replaceBackstageReplyAction.parentId",G);G=this.get("replaceBackstageReplyAction.renderer.commentRenderer",G);H&&G&&Z&&this.setCreatorReply(Z,G)};
_.g.removeCommentAction=function(G){var H=this.get("removeCommentAction.commentId",G);if(H){var Z=this.get("removeCommentAction.parentCommentId",G);Z&&this.get("removeCommentAction.isCreatorReply",G)?this.setCreatorReply(Z,void 0):(Z||(Z=this.getParentPostId(H)),this.removeFromStream(H,Z))}};
_.g.setCreatorReply=function(G,H){var Z=this.getParentPostId(G);if(Z){Z=this.postIdToIndices(Z);for(var Q=0;Q<Z.length;Q++){var p=Z[Q];if(p<0)break;var l=this.commentIdToIndex(G,p,!1);if(l>=0){var q="data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+l;l=q+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";q+=".commentThreadRenderer.replies";H==void 0?(this.set(q,{}),this.set(l,!1)):(this.set(q,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),
this.set(q+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(l,!0))}l=this.commentIdToIndex(G,p,!0);l>=0&&(l="data.contents."+p+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+l,p=l+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",l+=".commentThreadRenderer.replies",H==void 0?(this.set(l,{}),this.set(p,!1)):(this.set(l,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),this.set(p,!0)))}}};
_.g.removeFromStream=function(G,H){if(H){H=this.postIdToIndices(H);for(var Z=0;Z<H.length;Z++){var Q=H[Z];if(Q<0)break;var p=this.commentIdToIndex(G,Q,!1);p>=0&&this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",p,1);p=this.commentIdToIndex(G,Q,!0);p>=0&&this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",p,1);Q="data.contents."+Q+".backstagePostThreadRenderer.post.backstagePostRenderer";
p=Q+".backstageAttachment.pollRenderer.votedCommentId";this.get(p)===G&&(this.set(p,null),this.set(Q+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(H=this.postIdToIndices(G).reverse(),Z=0;Z<H.length;Z++){Q=H[Z];if(Q<0)break;p=this.getPostRendererType(Q);var l=this.get("backstagePostThreadRenderer.post."+p,this.data.contents[Q]);l.postId===G?this.splice("data.contents",Q,1):p==="sharedPostRenderer"&&this.set("data.contents."+Q+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);l.scheduledPublishTimeSec&&_.AZ(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.g.postIdToIndices=function(G){for(var H=[],Z=0;Z<this.data.contents.length;Z++){var Q=this.getPostRendererType(Z);this.get("backstagePostThreadRenderer.post."+Q+".postId",this.data.contents[Z])===G&&H.push(Z);if(Q==="sharedPostRenderer"){var p=this.get("backstagePostThreadRenderer.post."+Q+".originalPost.backstagePostRenderer.postId",this.data.contents[Z]);Q=this.get("backstagePostThreadRenderer.post."+Q+".originalPost.postRenderer.postId",this.data.contents[Z]);p!==G&&Q!==G||H.push(Z)}}return H};
_.g.commentIdToIndex=function(G,H,Z){if(H<0)return-1;var Q,p,l,q,u=_.X((Q=this.data)==null?void 0:(p=Q.contents)==null?void 0:(l=p[H])==null?void 0:(q=l.backstagePostThreadRenderer)==null?void 0:q.comments,yAT);return(H=Z?u==null?void 0:u.teaserContents:u==null?void 0:u.contents)&&H.length?H.findIndex(function(B){return _.X(B,$dw).comment.commentRenderer.commentId===G}):-1};
_.g.getParentPostId=function(G){G=G.split(".");if(G[1])return G[0]};
_.g.getPostRendererType=function(G){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[G])?"sharedPostRenderer":"backstagePostRenderer"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],bB.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bB.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:_.V("enable_community_page_on_desktop")}),_.A("design:type",Boolean)],bB.prototype,"useSmallerPostContainer",void 0);
_.N([_.O({disableElementRegistration:!0,is:"ytd-backstage-items"})],bB);
_.m(bB,"ytd-backstage-items",function(){if(L2i!==void 0)return L2i;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return L2i=
G},{mode:1});var Ew8;var YRq={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},GY=function(){var G=_.C.apply(this,arguments)||this;G.disablePrescanVisibility=!0;G.canScheduleJobs=!0;G.engagementPanel=!1;G.hidePanelButton=!1;G.isWatchGrid=
!1;G.hasShownSubscribersOnlyDisclaimer=!1;G.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_"};G.TEST_ONLY=void 0;return G};
_.T(GY,_.C);_.g=GY.prototype;_.g.created=function(){this.initCommentsCsi_();_.V("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.V("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.g.contentsChanged_=function(){var G;(G=this.data)!=null&&G.contents&&this.tickForCommentsTimer_("cml")};
_.g.headerChanged_=function(){var G;(G=this.data)!=null&&G.header&&this.tickForCommentsTimer_("cmhl")};
_.g.initCommentsCsi_=function(){_.VY("wn_comments");var G=_.$k();G&&_.ee({clientScreenNonce:G},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.g.createCommentAction_=function(G){G=_.oN.unsafeClone(G);var H,Z;if(G=(H=_.X(G,Ba7))==null?void 0:(Z=H.contents)==null?void 0:Z.commentThreadRenderer){var Q,p,l,q,u,B;!this.isBackstage&&((Q=this.data)==null?0:(p=Q.header)==null?0:(l=p.commentsHeaderRenderer)==null?0:(q=l.createRenderer)==null?0:(u=q.commentSimpleboxRenderer)==null?0:(B=u.zeroStep)==null?0:B.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var t,
D,d;this.isBackstage&&_.X((t=this.data)==null?void 0:(D=t.header)==null?void 0:(d=D.commentsHeaderRenderer)==null?void 0:d.zeroStateMessage,UO_)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(G)}};
_.g.doReplyInsert_=function(G,H,Z,Q){Q?this.splice(G,Q,0,H):this.push(G,H)};
_.g.getRepliesPath_=function(G){return"data.contents."+G+".commentThreadRenderer.replies"};
_.g.getRepliesContentsPath_=function(G,H){G=this.getRepliesPath_(G);return H?G+".commentRepliesRenderer.teaserContents":G+".commentRepliesRenderer.contents"};
_.g.showSubscribersOnlyDisclaimer_=function(G){(G=G.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&(_.AZ(this.hostElement,"yt-open-popup-action",[G,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.g.createCommentReplyAction_=function(G){G=_.oN.unsafeClone(G);var H=_.X(G,JOR);if(G=H==null?void 0:H.contents){var Z=this.commentIdToIndex_(H==null?void 0:H.parentCommentId);if(!(Z<0)){var Q=this.getRepliesPath_(Z);if(this.get(Q)){H=H.replyToCommentId;Q=this.getRepliesContentsPath_(Z,!1);if(this.get(Q)){var p=this.get(Q).length,l=Q+"."+(p-1)+".continuationItemRenderer";this.get(l+".button")?(l=this.replyIdToIndex_(H,Z,!1),this.doReplyInsert_(Q,G,l,p-1)):this.get(l)||(p=this.replyIdToIndex_(H,Z,
!1),this.doReplyInsert_(Q,G,p,null))}Q=this.getRepliesContentsPath_(Z,!0);this.get(Q)?(Z=this.replyIdToIndex_(H,Z,!0),(!H||Z>=0)&&this.doReplyInsert_(Q,G,Z,null)):this.set(Q,[G])}else this.set(Q,{commentRepliesRenderer:{teaserContents:[G]}})}}};
_.g.hideReportedCommentAction_=function(G){var H=_.X(G,rOa);if(G=H==null?void 0:H.commentId)(H=this.get("parentCommentId",H))||(H=this.getParentCommentId_(G)),this.remove_(G,H)};
_.g.getParentCommentId_=function(G){G=G.split(".");if(G[1])return G[0]};
_.g.removeCommentAction_=function(G){var H=_.X(G,eet);if(G=H==null?void 0:H.commentId)H=(H==null?void 0:H.parentCommentId)||this.getParentCommentId_(G),this.remove_(G,H)};
_.g.pinCommentAction_=function(G){G=_.oN.unsafeClone(G);var H=_.X(G,dd2);H!=null&&H.commentId&&(G=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",G))&&(this.remove_(H.commentId),this.insert_(G,!0))};
_.g.unpinCommentAction_=function(G){G=_.oN.unsafeClone(G);G=_.X(G,nhp);if(G!=null&&G.commentId){var H,Z,Q=(H=G.actionResult)==null?void 0:(Z=H.update)==null?void 0:Z.commentThreadRenderer;Q&&(this.remove_(G.commentId),this.insert_(Q))}};
_.g.banAuthorAction_=function(G){var H=_.X(G,uER);H!=null&&H.commentId&&(G=H.commentId,H=H.parentCommentId||this.getParentCommentId_(G),this.remove_(G,H))};
_.g.handleScrollToCommentElement_=function(G){this.hostElement.contains(G)&&(this.nearestScrollParent||(this.nearestScrollParent=hZf(G)),this.isCommentVisibleInScrollParent(G)||G.scrollIntoView({behavior:"smooth",block:"start"}))};
_.g.isCommentVisibleInScrollParent=function(G){if(!this.nearestScrollParent)return!1;G=G.getBoundingClientRect();var H=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return G.top>=H.top&&G.bottom<=H.bottom};
_.g.commentIdToIndex_=function(G){var H;return G&&(H=this.data)!=null&&H.contents?this.data.contents.findIndex(function(Z){Z=Z.commentThreadRenderer;var Q;return G===((Z==null?void 0:Z.commentViewModel)&&((Q=_.X(Z.commentViewModel,Wra))==null?void 0:Q.commentId))}):-1};
_.g.insert_=function(G,H){H=H===void 0?!1:H;var Z,Q;if((Z=this.data)==null?0:(Q=Z.contents)==null?0:Q.some(function(l){return!!l.commentThreadRenderer}))for(Z=0,Q=this.data.contents.length;Z<Q;Z++){var p=this.data.contents[Z].commentThreadRenderer;
if(YRq[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=YRq[p.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){H&&YRq[G.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===YRq[p.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",Z,1,{commentThreadRenderer:G}):this.splice("data.contents",Z,0,{commentThreadRenderer:G});break}}else this.set("data.contents",[{commentThreadRenderer:G}])};
_.g.doReplyRemove_=function(G,H,Z){G=this.replyIdToIndex_(G,H,Z);G<0||(H=this.getRepliesContentsPath_(H,Z),this.splice(H,G,1))};
_.g.remove_=function(G,H){H=this.commentIdToIndex_(H);H<0?(H=this.commentIdToIndex_(G),H<0||this.splice("data.contents",H,1)):_.V("web_delhi_comment_threads")||(this.doReplyRemove_(G,H,!1),this.doReplyRemove_(G,H,!0))};
_.g.replyIdToIndex_=function(G,H,Z){if(H<0)return-1;H=this.getRepliesContentsPath_(H,Z);H=this.get(H);if(!H||!H.length)return-1;Z=0;for(var Q=H.length;Z<Q;Z++){var p=void 0,l=void 0;if(((p=H[Z])==null?void 0:(l=p.commentViewModel)==null?void 0:l.commentId)===G)return Z}return-1};
_.g.tickForCommentsTimer_=function(G){_.TD(G,void 0,"wn_comments")};
_.g.reloadComments_=function(G){G=_.X(G,fyp);_.X(G==null?void 0:G.command,_.vh)&&_.L9(this.hostElement,[G==null?void 0:G.command])};
_.u4.Object.defineProperties(GY.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!!((G=this.data)==null?0:(H=G.header)==null?0:(Z=H.commentsHeaderRenderer)==null?0:Z.isBackstageContent)}}});
_.u4.Object.defineProperties(GY,{template:{configurable:!0,enumerable:!0,get:function(){if(Ew8===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);Ew8=G}G=Ew8;return G}}});
GY.prototype.showSubscribersOnlyDisclaimer_=GY.prototype.showSubscribersOnlyDisclaimer_;GY.prototype.headerChanged_=GY.prototype.headerChanged_;GY.prototype.contentsChanged_=GY.prototype.contentsChanged_;_.N([_.v(_.Ia),_.A("design:type",Object)],GY.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",Function)],GY.prototype,"ytPlayerListenerBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],GY.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],GY.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.header.commentsHeaderRenderer.isBackstageContent"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],GY.prototype,"isBackstage",null);
_.N([_.h(),_.A("design:type",Object)],GY.prototype,"disablePrescanVisibility",void 0);_.N([_.h(),_.A("design:type",Object)],GY.prototype,"canScheduleJobs",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],GY.prototype,"engagementPanel",void 0);_.N([_.h(),_.A("design:type",Object)],GY.prototype,"hidePanelButton",void 0);_.N([_.h(),_.A("design:type",Object)],GY.prototype,"isWatchGrid",void 0);_.N([_.h(),_.A("design:type",Object)],GY.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.N([_.gx("data.contents"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GY.prototype,"contentsChanged_",null);_.N([_.gx("data.header"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GY.prototype,"headerChanged_",null);_.N([_.lq("yt-show-subscribers-only-disclaimer"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],GY.prototype,"showSubscribersOnlyDisclaimer_",null);
_.N([_.O({is:"ytd-comments"})],GY);var Hc=function(){return _.uq.apply(this,arguments)||this};
_.T(Hc,_.uq);_.g=Hc.prototype;_.g.bindIf=function(G,H,Z){return G?H:Z};
_.g.bindIfDefined=function(G,H){return G!==void 0?G:H};
_.g.booleanString=function(G){return(!!G).toString()};
_.g.equals=function(){for(var G=_.Ry.apply(0,arguments),H=G[0],Z=1;Z<G.length;Z++)if(H!=G[Z])return!1;return!0};
_.g.isGreaterThan=function(G,H){return G>H};
_.g.isLessThan=function(G,H){return G<H};
_.g.logicalAND=function(){for(var G=_.Ry.apply(0,arguments),H=!!G[0],Z=1;Z<G.length;Z++)H=H&&!!G[Z];return H};
_.g.logicalOR=function(){for(var G=_.Ry.apply(0,arguments),H=!!G[0],Z=1;Z<G.length;Z++)H=H||!!G[Z];return H};
_.g.toBool=function(G){return!!G};
Hc.prototype.toBool=Hc.prototype.toBool;Hc.prototype.logicalOR=Hc.prototype.logicalOR;Hc.prototype.logicalAND=Hc.prototype.logicalAND;Hc.prototype.isLessThan=Hc.prototype.isLessThan;Hc.prototype.isGreaterThan=Hc.prototype.isGreaterThan;Hc.prototype.equals=Hc.prototype.equals;Hc.prototype.booleanString=Hc.prototype.booleanString;Hc.prototype.bindIfDefined=Hc.prototype.bindIfDefined;Hc.prototype.bindIf=Hc.prototype.bindIf;_.N([_.BG()],Hc);_.F2D=[Hc.prototype];var bwj;var G8L;var sc=function(){return _.C.apply(this,arguments)||this};
_.T(sc,_.C);sc.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
sc.prototype.onBackIconTap_=function(){window.history.back()};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sc.prototype,"data",void 0);_.N([_.fH({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],sc);
_.m(sc,"yt-header-with-back-renderer",function(){if(G8L===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;bwj===void 0&&(bwj=document.createElement("template"));var Q=bwj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);G8L=G}G=G8L;return G},{mode:2});var Hms;var sjs;var Zr=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(Zr,_.C);_.g=Zr.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.g.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G,this.setUrl())};
_.g.dataChanged=function(){var G=this;if(this.data){var H=this.setUrl();H&&_.b6({destination:window,iframe:this.iframe,origin:_.sfw(H.toString()),channelName:"yt-iframe",onMessage:function(Z){(Z=G.getCommunicationCommand(Z.data))&&G.ytComponentBehavior.resolveCommand(Z)},
onEstablished:function(){}})}};
_.g.setUrl=function(){if(this.data&&this.data.iframeUrl){var G=_.R1(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(G)return _.bI(this.iframe,G),G}};
_.g.getCommunicationCommand=function(G){var H;if((H=this.data)!=null&&H.onCommunicationCommandsMap){H=this.data.onCommunicationCommandsMap.find(function(p){return p.key===G});
if(H==null?0:H.value)return H==null?void 0:H.value;try{var Z=UJ7(_.YR(G)),Q=this.data.onCommunicationCommandsMap.find(function(p){return p.key===(Z==null?void 0:Z.getMethodName())});
if(Q==null?0:Q.value)return Q==null?void 0:Q.value}catch(p){}}};
Zr.prototype.dataChanged=Zr.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Zr.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Zr.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Zr.prototype,"data",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],Zr.prototype,"isDarkTheme",void 0);_.N([_.q6("#iframe"),_.A("design:type",HTMLIFrameElement)],Zr.prototype,"iframe",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Zr.prototype,"dataChanged",null);_.N([_.fH({is:"yt-iframe-renderer",disableElementRegistration:!0})],Zr);
_.m(Zr,"yt-iframe-renderer",function(){if(sjs===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Hms===void 0&&(Hms=document.createElement("template"));var Q=Hms;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);sjs=G}G=sjs;return G},{mode:2});_.Qc=function(G){_.wI.call(this);this.callback=G;this.bezier=new Fwp(0,0,.4,0,.2,1,1,1);this.delay=new _.tc(this.next,window,this);this.JSC$17053_animating=!1;_.T$(this,this.delay)};
_.T(_.Qc,_.wI);_.Qc.prototype.isAnimating=function(){return this.JSC$17053_animating};
_.Qc.prototype.start=function(G,H,Z){this.config={from:G,to:H,duration:Z,startTime:(0,_.t3)()};this.JSC$17053_animating=!0;this.next()};
_.Qc.prototype.stop=function(){this.delay.stop();this.JSC$17053_animating=!1;this.config=void 0};
_.Qc.prototype.next=function(){if(this.config){var G=this.config,H=G.from,Z=G.to,Q=G.duration;G=G.startTime;var p=(0,_.t3)()-G;G=this.bezier;Q=GGa(G,p/Q);if(Q==0)G=G.y0;else if(Q==1)G=G.y3;else{p=$u(G.y0,G.y1,Q);var l=$u(G.y1,G.y2,Q);G=$u(G.y2,G.y3,Q);p=$u(p,l,Q);l=$u(l,G,Q);G=$u(p,l,Q)}G=_.cM(G,0,1);this.callback(H+(Z-H)*G);G<1?this.delay.start():this.JSC$17053_animating=!1}};_.p_=new _.Gv("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var ZmL={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},pDh=function(G,H,Z,Q){_.wI.call(this);this.JSC$17064_miniAppId=G;this.localReleaseId=H;this.derivedDeviceInterface=Z;this.isForeground=Q;this.JSC$17064_playNonceResolver=new _.sD;this.playPingTimerId=NaN;this.playPingIntervalMs=_.eA("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.eA("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.V("enable_displaying_ppn");this.JSC$17064_miniAppClientDataProvider=_.tp().resolve(_.p_);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;QjD(this);var p=setTimeout(function(){_.Rp(new _.C$("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17064_playNonceResolver.promise.then(function(){clearTimeout(p)})};
_.T(pDh,_.wI);var gAa=function(G,H){G.JSC$17064_playNonceResolver.resolve(H!=null?H:eu(8));G.enableDisplayingPpn&&lt8(G).then(function(Z){G.JSC$17064_miniAppClientDataProvider.clientData.set("post_play_nonce",Z)})},lt8=function(G){return _.S(function(H){return H.nextAddress==1?H.yield(G.JSC$17064_playNonceResolver.promise,2):H.return(H.yieldResult)})},QjD=function(G){var H,Z;
_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$17064_playNonceResolver.promise,2);H=Q.yieldResult;Z={miniAppInfo:{externalPostId:G.JSC$17064_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:H,derivedDeviceInterface:G.derivedDeviceInterface}};_.ee(Z);_.K0(Q)})},qqD=function(G){G.state!==0?_.Rp(new _.C$("[MiniAppPlayLogger] recordPlayStart failed with state "+ZmL[G.state])):(G.state=1,lF(G,"ma_cl"),gi(G,"PLAY_EVENT_TYPE_PLAY_START"),Ita(G))},Sqi=function(G){G.isForeground=!1;
gi(G,"PLAY_EVENT_TYPE_PLAY_PAUSE")},uLA=function(G){G.state!==1&&G.state!==2?_.Rp(new _.C$("[MiniAppPlayLogger] recordPlayEnd failed with state "+ZmL[G.state])):(G.state=3,window.clearInterval(G.playPingTimerId),G.playPingTimerId=NaN,A$X(),gi(G,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Bkq=function(G,H){G.state===2&&G.gameReady&&(G.firstClickRecorded?Date.now()-G.clickRecordedMs<G.playClickIntervalMs||(G.clickRecordedMs=Date.now(),gi(G,"PLAY_EVENT_TYPE_PLAY_CLICK")):H&&(lF(G,"ma_fua"),gi(G,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),G.firstClickRecorded=!0,G.clickRecordedMs=Date.now()))};
pDh.prototype.logError=function(G){var H=this,Z;_.S(function(Q){if(Q.nextAddress==1)return G.metadata.externalPostId=H.JSC$17064_miniAppId,Z=G.metadata,Q.yield(Promise.race([H.JSC$17064_playNonceResolver.promise,new Promise(function(p){setTimeout(function(){p("")},3E4)})]),2);
Z.postPlayNonce=Q.yieldResult;G.metadata.localReleaseId=H.localReleaseId;G.loggingError.level="WARNING";_.me(G.loggingError,G.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:G.metadata});_.K0(Q)})};
var J6k=function(G,H,Z,Q){var p,l,q,u,B,t;_.S(function(D){if(D.nextAddress==1)return D.yield(G.JSC$17064_playNonceResolver.promise,2);p=D.yieldResult;l={externalPostId:G.JSC$17064_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:p,sdkVersion:Z,api:H};Q!==void 0&&(l.networkRequestsMeasurement={networkRequests:_.k5(Q,1),cachedRequests:_.k5(Q,2),transferredBytes:_.k5(Q,3)},(q=Q)==null?0:_.IE(q,Qr,6))&&(l.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((u=_.dt(Q,
Qr,6))==null?void 0:$H(u,1))||"0",cacheHits:((B=_.dt(Q,Qr,6))==null?void 0:$H(B,2))||"0",cachedBytes:((t=_.dt(Q,Qr,6))==null?void 0:$H(t,3))||"0"});_.yR("miniAppSdkUsage",l);_.K0(D)})},k8a=function(G,H,Z){var Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w;
_.S(function(x){if(x.nextAddress==1)return x.yield(G.JSC$17064_playNonceResolver.promise,2);Q=x.yieldResult;p={externalPostId:G.JSC$17064_miniAppId,localReleaseId:G.localReleaseId,postPlayNonce:Q,sdkVersion:Z,measurementWindow:{startTimestampMs:String(dm(H,1)),endTimestampMs:String(dm(H,2))},frameRate:{averageFrameTimeDeltaMs:eD(H,3),averageFrameIdleTimeMs:eD(H,4)}};_.IE(H,ps,5)&&(p.networkRequests={networkRequests:(l=Be(H))==null?void 0:_.k5(l,1),cachedRequests:(q=Be(H))==null?void 0:_.k5(q,2),transferredBytes:(u=
Be(H))==null?void 0:_.k5(u,3),sameOriginStatusCodeToCounts:tc6((B=Be(H))==null?void 0:r6j(B,4)),crossOriginStatusCodeToCounts:tc6((t=Be(H))==null?void 0:r6j(t,5))},(D=Be(H))==null?0:_.IE(D,Qr,6))&&(p.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((d=Be(H))==null?void 0:(e=_.dt(d,Qr,6))==null?void 0:$H(e,1))||"0",cacheHits:((n=Be(H))==null?void 0:(c=_.dt(n,Qr,6))==null?void 0:$H(c,2))||"0",cachedBytes:((W=Be(H))==null?void 0:(M=_.dt(W,Qr,6))==null?void 0:$H(M,3))||"0"});_.IE(H,
rqd,7)&&(p.gameCapture={averageFrameTimeDeltaMs:(r=_.dt(H,rqd,7))==null?void 0:eD(r,1),averageFrameIdleTimeMs:(w=_.dt(H,rqd,7))==null?void 0:eD(w,2)});_.yR("miniAppPerformanceMetrics",p);_.K0(x)})},Dak=function(G,H){var Z,Q;
return _.S(function(p){if(p.nextAddress==1)return p.yield(G.JSC$17064_playNonceResolver.promise,2);Z=p.yieldResult;Q={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:G.JSC$17064_miniAppId,postPlayNonce:Z,miniAppReleaseId:G.localReleaseId},derivedDeviceInterface:G.derivedDeviceInterface,adTriggerType:H,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.yR("miniAppAdEvent",Q);_.K0(p)})};
pDh.prototype.disposeInternal=function(){_.wI.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var gi=function(G,H,Z,Q){Z=Z===void 0?{}:Z;Q=Q===void 0?!1:Q;var p,l,q,u;_.S(function(B){if(B.nextAddress==1)return p=G.isForeground,l=G.beforeReady,B.yield(G.JSC$17064_playNonceResolver.promise,2);q=B.yieldResult;u={externalPostId:G.JSC$17064_miniAppId,localReleaseId:G.localReleaseId,derivedDeviceInterface:G.derivedDeviceInterface,postPlayNonce:q,type:H};Z.sequenceGroup=q;u.playState=l?"PLAY_STATE_NOT_READY":p?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.yR("miniAppPlayEvent",u,
Z);Q&&_.op();_.K0(B)})},lF=function(G,H){var Z;
_.S(function(Q){if(Q.nextAddress==1)return Z=(0,_.t3)(),Q.yield(G.JSC$17064_playNonceResolver.promise,2);_.$K(H,Z);_.K0(Q)})},Ita=function(G){isNaN(G.playPingTimerId)&&(G.playPingTimerId=_.TF(function(){G.state!==1&&G.state!==2?_.Rp(new _.C$("[MiniAppPlayLogger] reportPlayPing failed with state "+ZmL[G.state])):gi(G,"PLAY_EVENT_TYPE_PLAY_PING")},G.playPingIntervalMs))},tc6=function(G){return Array.from(G.entries()).map(function(H){var Z=_.I(H);
H=Z.next().value;Z=Z.next().value;return{key:H,value:Z}})};var dam=function(){},eim=function(G,H){G.showMiniAppAdCommand=H.showMiniAppAdCommand;
G.isEmbeddedInWebview=H.isEmbeddedInWebview;G.playLogger=H.playLogger},Vct=function(G,H){var Z;
return _.S(function(Q){if(Q.nextAddress==1){if(!G.showMiniAppAdCommand||!G.isEmbeddedInWebview)return Q.return(nAo(G,H));G.adResolver=new _.sD;var p=new iN;Z=_.ed(p,3,H);$G(G.showMiniAppAdCommand,dua(Z));return Q.yield(G.adResolver.promise,2)}return Q.return(Q.yieldResult)})};
dam.prototype.onAdFinished=function(G){G=uOw(G);var H;(H=this.adResolver)==null||H.resolve(G)};
var nAo=function(G,H){var Z;return _.S(function(Q){if(Q.nextAddress==1)Q=Q.yield((Z=G.playLogger)==null?void 0:Dak(Z,mqR(H)),2);else{var p=Q.return;var l=new SaN;l=_.ed(l,1,2);Q=p.call(Q,l)}return Q})};var $ak=new _.Gv("INNERTUBE_MANAGER_TOKEN");var XDa=function(){this.callbacks={}};
XDa.prototype.initialize=function(G){var H=this;this.callbacks=G;window.youtubewebview?window.youtubewebview.onmessage=function(Z){c6D(H,Z)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(Z){c6D(H,Z)})};
var c6D=function(G,H){if(H.data)try{var Z=UJ7(H.data);if(_.T8(_.gm(Z,1))!=null){var Q=uwN(_.nY(Z,2));switch(Z.getMethodName()){case "yt-mini-app-load-audio-state":var p,l;(l=(p=G.callbacks).onAudioStateLoaded)==null||l.call(p,_.DH(Q,M1(Q,Cs,1)));break;case "yt-mute-mini-app":var q,u;(u=(q=G.callbacks).onMuteMiniApp)==null||u.call(q);break;case "yt-unmute-mini-app":var B,t;(t=(B=G.callbacks).onUnmuteMiniApp)==null||t.call(B);break;case "yt-playable-exit":var D,d;(d=(D=G.callbacks).onExit)==null||d.call(D);
break;case "yt-post-play-nonce":var e,n;(n=(e=G.callbacks).onPostPlayNonceReceived)==null||n.call(e,Xz(Q,2,Cs));break;case "yt-confirm-exit-mini-app":var c,W;(W=(c=G.callbacks).confirmExitMiniApp)==null||W.call(c);break;case "yt-confirm-exit-mini-app-edu":var M,r;(r=(M=G.callbacks).confirmExitMiniAppEdu)==null||r.call(M);break;case "yt-benchmarking-response":var w,x;(x=(w=G.callbacks).onNativeBenchmarkingMessageReceived)==null||x.call(w,Xz(Q,2,Cs));break;case "yt-mini-app-load-3p-consent-state":var U,
R;(R=(U=G.callbacks).multiplayer3pAckStateLoaded)==null||R.call(U,_.DH(Q,M1(Q,Cs,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var L,H3;(H3=(L=G.callbacks).exitMiniAppSeenStateLoaded)==null||H3.call(L,_.DH(Q,M1(Q,Cs,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var qX,B3;(B3=(qX=G.callbacks).onNavigateToNewMiniApp)==null||B3.call(qX);break;case "yt-game-data-available":var fW,e2;(e2=(fW=G.callbacks).onGameDataAvailable)==null||e2.call(fW,Xz(Q,2,Cs));break;case "yt-pause-mini-app":var $R,
ie;(ie=($R=G.callbacks).onPauseMiniApp)==null||ie.call($R);break;case "yt-resume-mini-app":var W3,DT;(DT=(W3=G.callbacks).onResumeMiniApp)==null||DT.call(W3);break;case "yt-playable-ad-finished":var UR,zx;(zx=(UR=G.callbacks).onAdFinished)==null||zx.call(UR,Xz(Q,2,Cs))}}else _.Rp(Error("Vh"))}catch(be){_.me(Error("Wh"))}else _.Rp(Error("Xh"))};var RZb=function(G){this.rpcErrorCode=G};var Ih=function(G,H,Z){this.intervalMs=G;this.apiFunc=H;this.type=Z;this.schedulerReady=!0};
Ih.prototype.call=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1){if(H.type!==1&&G===H.cachedValue)return Q.return();H.pendingApiRequestResolver||(H.pendingApiRequestResolver=new _.sD);Z=H.pendingApiRequestResolver.promise;H.cachedValue=G;return Q.yield(Tkq(H),2)}return Q.return(Z)})};
Ih.prototype.flush=function(G){G=G===void 0?!1:G;var H=this;return _.S(function(Z){return H.cachedValue===void 0?Z.return():Z.yield(H.apiFunc(H.cachedValue,G),0)})};
var Tkq=function(G){var H,Z,Q;return _.S(function(p){switch(p.nextAddress){case 1:if(!G.schedulerReady||!G.pendingApiRequestResolver)return p.return();G.schedulerReady=!1;H=G.pendingApiRequestResolver;G.pendingApiRequestResolver=void 0;_.XV(p,2);if(G.cachedValue===void 0){p.jumpTo(4);break}return p.yield(G.apiFunc(G.cachedValue),5);case 5:Z=p.yieldResult,H.resolve(Z);case 4:_.Za(p,3);break;case 2:Q=_.Wg(p),H.reject(Q);case 3:setTimeout(function(){return _.S(function(l){G.schedulerReady=!0;return l.yield(Tkq(G),
0)})},G.intervalMs),_.K0(p)}})};var xqM=window.location.origin+"/miniapp_cloudsaves",N_b=[400,401],ftD=_.eA("cloud_save_game_data_rate_limit_ms",3E3),zij=function(G){var H=this;this.JSC$17108_miniAppId=G;this.loadAttempts=0;this.cloudSaveIntervalMs=ftD;this.initialDownloadDataSucceeded=!1;this.JSC$17108_playNonceResolver=new _.sD;this.scottyUploadRateLimiter=new Ih(this.cloudSaveIntervalMs,function(Z,Q){return vAh(H,Z,Q)},2);
this.downloadDataPromise=Wss(this);this.downloadDataPromise.then(function(){H.initialDownloadDataSucceeded=!0}).catch(function(){})},Ks8=function(G,H){H.then(function(Z){return G.JSC$17108_playNonceResolver.resolve(Z)})},Mcj=function(G){return _.S(function(H){return G.cachedData===void 0?H.return(G.downloadDataPromise):H.return(G.cachedData)})},jjo=function(G,H){return _.S(function(Z){G.cachedData=H;
if(!G.initialDownloadDataSucceeded)throw Error("Yh");return Z.yield(G.scottyUploadRateLimiter.call(H),0)})},PoL=function(){return new Promise(function(G){setTimeout(G,1E3,"")})},r6q=function(G,H){var Z,Q;
return _.S(function(p){if(p.nextAddress==1)return Z=G.JSC$17108_miniAppId,p.yield(Promise.race([G.JSC$17108_playNonceResolver.promise,PoL()]),2);Q={"X-YouTube-MiniAppId":Z,"X-YouTube-PostPlayNonce":p.yieldResult};"DELEGATED_SESSION_ID"in _.NV&&q33(H,Q);return p.return(Q)})},vAh=function(G,H,Z){Z=Z===void 0?!1:Z;
return _.S(function(Q){return UqM()?_.V("enable_cloud_save_error_popup_after_retry")?Q.return(new Promise(function(p,l){var q,u,B,t,D;return _.S(function(d){switch(d.nextAddress){case 1:q=0,u=!0,t=B=null;case 2:if(!(u&&q++<2)){d.jumpTo(4);break}_.XV(d,5);return d.yield(wDa(G,H,Z),7);case 7:B=d.yieldResult;u=B.ok?!1:!N_b.includes(B.status);_.Za(d,2);break;case 5:t=D=_.Wg(d);u=AYe(t);d.jumpTo(2);break;case 4:B?B.ok?(qx(G,ftD),p()):(qx(G,G.cloudSaveIntervalMs*2),l(Error("Zh`"+String(B.status),{cause:{rpcErrorCode:B.status}}))):
(qx(G,G.cloudSaveIntervalMs*2),l(t||Error("$h"))),_.K0(d)}})})):Q.return(new Promise(function(p,l){var q,u;
return _.S(function(B){if(B.nextAddress==1){if(G.JSC$17108_miniAppId==="")return l(Error("ai")),B.return();_.XV(B,2);return B.yield(wDa(G,H,Z),4)}if(B.nextAddress!=2)return q=B.yieldResult,q.ok?(qx(G,ftD),p()):(qx(G,G.cloudSaveIntervalMs*2),l(Error("Zh`"+String(q.status),{cause:{rpcErrorCode:q.status}}))),_.Za(B,0);u=_.Wg(B);qx(G,G.cloudSaveIntervalMs*2);l(u);_.K0(B)})})):Q.return()})},wDa=function(G,H,Z){Z=Z===void 0?!1:Z;
var Q,p,l;return _.S(function(q){if(q.nextAddress==1)return Q=_.Cm((new TextEncoder).encode(H)),p=LVb(),q.yield(r6q(G,p),2);l=q.yieldResult;return q.return(fetch(p,{method:"POST",body:new Blob([Q]),headers:l,keepalive:Z}))})},Wss=function(G){var H,Z;
return _.S(function(Q){if(Q.nextAddress==1){if(!UqM())return Q.return("");if(G.JSC$17108_miniAppId==="")throw Error("ai");if(G.loadAttempts>2)return Q.return(G.downloadDataPromise);_.XV(Q,2);return Q.yield(hik(G),4)}if(Q.nextAddress!=2)return H=Q.yieldResult,Q.return(H);Z=_.Wg(Q);if(AYe(Z)&&++G.loadAttempts<2)return Q.return(Wss(G));throw Z;})},hik=function(G){var H,Z,Q,p,l;
return _.S(function(q){switch(q.nextAddress){case 1:return _.XV(q,2),H=LVb(),q.yield(r6q(G,H),4);case 4:return Z=q.yieldResult,q.yield(fetch(H,{method:"GET",headers:Z}),5);case 5:return Q=q.yieldResult,Q.ok?q.yield(Q.text(),6):q.return(Promise.reject(Error("bi`"+String(Q.status),{cause:new RZb(Q.status)})));case 6:return p=q.yieldResult,q.return((new TextDecoder).decode(_.YR(p)));case 2:return l=_.Wg(q),q.return(Promise.reject(l))}})},qx=function(G,H){G.cloudSaveIntervalMs=H;
G.scottyUploadRateLimiter.intervalMs=G.cloudSaveIntervalMs};
zij.prototype.flush=function(){var G=this;return _.S(function(H){return G.initialDownloadDataSucceeded?H.yield(G.scottyUploadRateLimiter.flush(!0),0):H.return()})};var Co6=Sj(qu(1),gS(1)),imk=Sj(qu(1),gS(3)),SW=function(G){this.callbacks=G};
_.g=SW.prototype;_.g.onAudioToggled=function(G,H){(H===void 0||H)&&_.Dp("yt-mini-app-is-audio-enabled",G,2592E3)};
_.g.onPause=function(){this.onAudioToggled(!1,!1)};
_.g.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.g.returnNativeBenchmarkingMessage=function(){};
_.g.sendGameData=function(){};
_.g.sendStartGameFrameCapture=function(){};
var Epj=function(G,H,Z){this.callbacks=G;var Q=this;this.sdkVersion=new _.sD;this.channel=new IMw(_.b6({destination:window,iframe:H,origin:(new URL(Z.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var p=uF;var l=qu(5);var q=new Vba;q=_.TW(q,1,1E4);l=_.vO(l,4,zSw,q);p(Q,l);Q.onAudioToggled(Q.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){Q.sdkVersion.resolve("")},1E4)};
_.T(Epj,SW);_.g=Epj.prototype;_.g.onAudioToggled=function(G,H){SW.prototype.onAudioToggled.call(this,G,H===void 0?!0:H);H=uF;var Z=qu(2),Q=new eS4;G=_.nu(Q,1,G);G=_.vO(Z,3,zSw,G);H(this,G)};
_.g.onPause=function(){SW.prototype.onPause.call(this);uF(this,qu(3))};
_.g.onResume=function(){SW.prototype.onResume.call(this);uF(this,qu(4))};
_.g.returnNativeBenchmarkingMessage=function(G){var H=uF,Z=qu(6);var Q=gS(_.IE(G,Rx,1)?1:2);G=_.IE(G,Rx,1)?G:null;Q=_.vO(Q,5,IH,G);H(this,Sj(Z,Q))};
_.g.sendGameData=function(G){var H=uF,Z=qu(7);G=_.vO(Z,5,zSw,G);H(this,G)};
_.g.sendStartGameFrameCapture=function(){uF(this,qu(9))};
var Bc=function(G,H,Z){var Q,p,l;return _.S(function(q){if(q.nextAddress==1)return Q=G.callbacks,p=Q.onSdkCalled,l=H,q.yield(G.sdkVersion.promise,2);p.call(Q,l,q.yieldResult,Z);_.K0(q)})};
Epj.prototype.onMessage=function(){var G=this;return uxt(J$,function(H){var Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L,H3,qX,B3,fW,e2,$R,ie,W3,DT,UR,zx,be,J_,rG,Kw,cD,ec,gf,sR,ep,Qh,$w,Zt,rJ,N7;return _.S(function(t_){switch(t_.nextAddress){case 1:if(!ipG(H.data))return _.Rp(Error("ci")),t_.return();Z=_.V8(H.data,1);_.V("enable_iframe_message_get_type_via_fields")&&(Q=H.data,Z=p=_.V8(Q,1));switch(Z){case 8:if(H.data.hasMetadata()){var Bd=G.sdkVersion,HD=Bd.resolve;var xR=H.data.getMetadata();xR=_.nY(xR,
1);HD.call(Bd,xR);clearTimeout(G.sdkVersionTimeoutId)}break;case 6:return t_.jumpTo(2);case 16:if(!_.q8(H.data,jQx,14,t$))return t_.return();l=_.c4(H.data,jQx,14,t$);(u=(q=G.callbacks).onGameFrameReceived)==null||u.call(q,l);return t_.return();case 17:if(!_.q8(H.data,Mbp,15,t$))return t_.return();(t=(B=G.callbacks).onGameAudioReceived)==null||t.call(B,_.c4(H.data,Mbp,15,t$));return t_.return();case 1:if(Bd=_.c4(H.data,cqa,2,t$))switch(_.V8(Bd,1)){case 1:G.callbacks.onFirstFrameReady();if(_.V("enable_network_request_logging_on_game_events")&&
_.IE(Bd,ps,4)){Bc(G,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.dt(Bd,ps,4));break}Bc(G,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(xR=(HD=G.callbacks).onGameReady)==null||xR.call(HD);if(_.V("enable_network_request_logging_on_game_events")&&_.IE(Bd,ps,4)){Bc(G,"MINI_APP_SDK_API_GAME_READY",_.dt(Bd,ps,4));break}Bc(G,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.q8(Bd,lN,3,Tsw))G.callbacks.onResourceLoaded(_.c4(Bd,lN,3,Tsw))}return t_.return();case 3:return t_.jumpTo(3);case 4:return t_.jumpTo(4);
case 2:return t_.jumpTo(5);case 9:return t_.jumpTo(6);case 10:return G.callbacks.onClick(),t_.return();case 5:return t_.jumpTo(7);case 11:if(!_.q8(H.data,sL,9,t$))return t_.return();D=_.c4(H.data,sL,9,t$);(e=(d=G.callbacks).onBenchmarkingMessageReceived)==null||e.call(d,D);Bd=H.reply;HD=qu(1);xR=gS(1);var V4=new sL;var nm=new Uint8Array(W2R(D,M1(D,Jqd,6))|0);V4=fT(V4,5,Jqd,_.Pd(nm,!1));xR=_.vO(xR,5,IH,V4);Bd.call(H,Sj(HD,xR));return t_.return();case 12:return t_.jumpTo(8);case 13:return t_.jumpTo(9);
case 15:if(!_.V("enable_open_yt_content"))return H.reply(imk),t_.return();if(!_.q8(H.data,KNw,12,t$))return H.reply(Sj(qu(1),gS(2))),t_.return();Bd=_.c4(H.data,KNw,12,t$);n=_.nY(Bd,1);G.callbacks.onOpenYTContent(n);H.reply(Co6);return t_.return();case 14:return t_.jumpTo(10);default:return t_.return()}t_.jumpTo(0);break;case 2:if(!_.q8(H.data,uN,5,t$))return t_.return();HD=H.data;Bd=M1(HD,t$,5);HD=HD.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=imf(HD,HD[_.pw]|0,uN,Bd)||uN[aTR]||(uN[aTR]=
y_f(uN));Bd=_.JR(c,Z8,1,_.tR());W=_.I(Bd);M=W.next();case 12:if(M.done){t_.jumpTo(14);break}r=M.value;w=new _.C$;w.level=_.V8(r,2)===1?"WARNING":"ERROR";x=FV2(r.getSource());return t_.yield(G.sdkVersion.promise,15);case 15:U={source:x,sdkVersion:t_.yieldResult};_.lo(_.gm(r,6))!=null?(w.message=r.getMessage(),w.stack=_.nY(r,5),U.sdkErrorType=bvf(_.V8(r,6)),_.lo(_.gm(r,7))!=null&&(U.sdkApi=GbM(_.V8(r,7)))):w.stack=void 0;L=R=void 0;(L=(R=G.callbacks).onError)==null||L.call(R,{loggingError:w,metadata:U});
M=W.next();t_.jumpTo(12);break;case 14:return t_.return();case 3:return _.XV(t_,16),Bd=t_.yield,HD=G.callbacks,xR=HD.onSave,V4=_.c4(H.data,n_4,4,t$),V4=_.nY(V4,1),Bd.call(t_,xR.call(HD,V4),18);case 18:H.reply(Co6);_.Za(t_,17);break;case 16:return H3=_.Wg(t_),qX=Xy,B3=H3,fW=G.callbacks,e2="MINI_APP_SDK_API_SAVE_DATA",t_.yield(G.sdkVersion.promise,19);case 19:qX(B3,fW,e2,t_.yieldResult),H.reply(imk);case 17:return t_.yield(Bc(G,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return t_.return();case 4:return _.XV(t_,
21),t_.yield(G.callbacks.onLoad(),23);case 23:$R=t_.yieldResult;Bd=H.reply;HD=qu(1);xR=gS(1);V4=new n_4;V4=_.ha(V4,1,$R);xR=_.vO(xR,3,IH,V4);Bd.call(H,Sj(HD,xR));_.Za(t_,22);break;case 21:return ie=_.Wg(t_),W3=Xy,DT=ie,UR=G.callbacks,zx="MINI_APP_SDK_API_LOAD_DATA",t_.yield(G.sdkVersion.promise,24);case 24:W3(DT,UR,zx,t_.yieldResult),H.reply(imk);case 22:return t_.yield(Bc(G,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return t_.return();case 5:_.XV(t_,26);G.callbacks.onSendHighScore(Rf(_.c4(H.data,
hST,3,t$).getValue()));H.reply(Sj(qu(1),gS(1)));_.Za(t_,27);break;case 26:return be=_.Wg(t_),J_=Xy,rG=be,Kw=G.callbacks,cD="MINI_APP_SDK_API_SEND_SCORE",t_.yield(G.sdkVersion.promise,28);case 28:J_(rG,Kw,cD,t_.yieldResult),H.reply(imk);case 27:return t_.yield(Bc(G,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return t_.return();case 6:if(!_.q8(H.data,Cn7,8,t$)){t_.jumpTo(30);break}Bd=t_.yield;HD=_.c4(H.data,Cn7,8,t$);HD=_.V8(HD,1);return Bd.call(t_,Bc(G,GbM(HD)),30);case 30:return t_.return();case 7:return Bd=
H.reply,HD=qu(1),xR=gS(1),V4=G.callbacks.getLanguage(),xR=fT(xR,4,IH,XL(V4)),Bd.call(H,Sj(HD,xR)),t_.yield(Bc(G,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return t_.return();case 8:if(!_.q8(H.data,wya,10,t$))return t_.return();ec=_.c4(H.data,wya,10,t$);gf=G.callbacks;sR=gf.onSdkPerformanceUpdate;return t_.yield(G.sdkVersion.promise,33);case 33:return sR.call(gf,ec,t_.yieldResult),t_.return();case 9:Bd=H.data;HD=M1(Bd,t$,11);if(_.T8(_.gm(Bd,HD))==null)return H.reply(Sj(qu(1),gS(2))),t_.return();
ep=Xz(H.data,11,t$);G.callbacks.onShareInviteCode(ep);H.reply(Co6);return t_.yield(Bc(G,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return t_.return();case 10:if(_.q8(H.data,dQd,13,t$)){t_.jumpTo(35);break}return t_.yield(G.callbacks.onShowMiniAppAd(2),36);case 36:return Qh=t_.yieldResult,H.reply(Sj(qu(1),v_T(Qh))),t_.yield(Bc(G,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return t_.return();case 35:Bd=_.c4(H.data,dQd,13,t$);a:switch(_.V8(Bd,1)){case 1:Bd={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Bd={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Bd={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}$w=Bd;Zt=$w.adType;rJ=$w.sdkApi;Bd=t_.yield;HD=G.callbacks;xR=HD.onShowMiniAppAd;V4=_.c4(H.data,dQd,13,t$);V4=_.nY(V4,2);return Bd.call(t_,xR.call(HD,Zt,V4||void 0),38);case 38:return N7=t_.yieldResult,H.reply(Sj(qu(1),v_T(N7))),t_.yield(Bc(G,rJ),39);case 39:return t_.return()}})})};
var uF=function(G,H){_.S(function(Z){G.channel.send(H);_.K0(Z)})},c8=function(G,H,Z){this.callbacks=G;
var Q=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;G=F0j(H,(new URL(Z.toString())).origin);this.gameSnacks=new T0p(G);this.gameSnacks.page.onReady(function(){Q.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){Q.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var p,l;(l=(p=Q.callbacks).onGameReady)==null||l.call(p)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(p,l){try{Q.callbacks.onSendHighScore(l)}catch(q){Xy(q,Q.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(p,l){var q;return _.S(function(u){if(u.nextAddress==1)return _.XV(u,2),u.yield(Q.callbacks.onSave(Q.decoder.decode(l)),4);if(u.nextAddress!=2)return _.Za(u,0);q=_.Wg(u);Xy(q,Q.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return u.return()})});
this.gameSnacks.storage.onLoad(function(){var p,l;return _.S(function(q){if(q.nextAddress==1)return _.XV(q,2),q.yield(Q.callbacks.onLoad(),4);if(q.nextAddress!=2)return p=q.yieldResult,q.return(Q.encoder.encode(p));l=_.Wg(q);Xy(l,Q.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return q.return(Q.encoder.encode(""))})});
this.gameSnacks.init()};
_.T(c8,SW);c8.prototype.onAudioToggled=function(G,H){SW.prototype.onAudioToggled.call(this,G,H===void 0?!0:H);var Z;(Z=this.gameSnacks)==null||Z.audio.update(G)};
c8.prototype.onPause=function(){SW.prototype.onPause.call(this);var G;(G=this.gameSnacks)==null||G.game.pause()};
c8.prototype.onResume=function(){SW.prototype.onResume.call(this);var G;(G=this.gameSnacks)==null||G.game.resume()};var OmA=H4W,atm=_.y(function(G){var H=G.data;var Z=G.loadingProgress;var Q=G.forPaused;G=_.I(_.Ty("",void 0,"LYYTdd"));var p=G.next().value,l=G.next().value;G=_.I(_.Ty(!1,void 0,"K0waae"));var q=G.next().value,u=G.next().value,B=[],t=function(){return"transform: scaleX("+(_.Uv(Z)||0)+")"},D=null,d=function(){return H()&&D!==null&&D!==void 0?D:D=H().showAnniversaryAnimation?6:OmA()};
_.yN(function(){var W;if(H().timeOutMessages&&((W=H().timeOutMessages)==null?0:W.length)){D=null;W=_.I(B);for(var M=W.next();!M.done;M=W.next())clearTimeout(M.value);B.length=0;sme(H().timeOutMessages,B,l,u)}},"BNu9j");
var e=function(){return!!H().persistentErrorMessageTitle},n=function(){return Z!==void 0},c=function(){return H().title};
return _.J("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.J("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.J("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.J("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var W,M=(W=H().backgroundImage)==null?void 0:W.sources,r;return(M==null?0:M.length)?"background-image: url("+((r=M[0])==null?void 0:r.url)+")":""}}),_.J("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.J(_.k,{cond:function(){return!e()&&!(Q==null?0:Q())},
then:function(){var W={};return _.J("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.J("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.J(_.cY,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+d()},
data:function(){var M="loading_animation_"+d();return{animationConfig:{name:M,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+M+".json",loop:!0,autoplay:!0}}}})),_.J("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.J(_.k,{cond:c,
then:function(){return _.J("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},c)}}),_.J("p",{class:_.bb("miniAppSplashScreenViewModelTimeoutMessage",(W.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return q()},W)),
"aria-live":"polite"},p),_.J(_.k,{cond:n,then:function(){return _.J("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.J("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:t}))}})))}}),_.J(_.k,{cond:e,
then:function(){return _.J("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.J("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return H().persistentErrorMessageTitle}),_.J(_.k,{cond:function(){return!!H().persistentErrorMessageDescription},
then:function(){return _.J("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return H().persistentErrorMessageDescription})}}))}}),_.J(_.k,{cond:Q,
then:function(){return _.J("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.J("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.J("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},c))}})))},"Mf");var y6D=new _.Gv("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var oAm=qV;qV=function(G){function H(Z){if(Z){var Q,p;(Q=Z.__spec)==null||(p=Q.didUnmount)==null||p.call(Q);for(Q=0;Q<Z.childNodes.length;Q++)H(Z.childNodes[Q])}}
oAm==null||oAm(G);dr(function(){for(var Z=0;Z<G.length;Z++)H(G[Z])})};var mac=_.y(function(G){var H=G.data;var Z=G.score;var Q=G.formattedScore;var p=G.onScoreChanged;var l=G.isEmbeddedInWebview;var q=_.qK("yt-mini-app-score-button-view-model"),u=function(){var n;return _.X(H==null?void 0:(n=H())==null?void 0:n.buttonViewModel,_.HN)},B=function(){var n;
return(Z==null?void 0:Z())||Number(H==null?void 0:(n=H())==null?void 0:n.lastScore)||0},t=function(){var n;
return(Q==null?void 0:Q())||((n=u())==null?void 0:n.title)||""},D,d=1;
if(G=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))G=Number(G),d=isNaN(G)?1:G/100;_.yN(function(){p==null||p(B());var n;var c=_.Tt((n=u())==null?void 0:n.onTap);if(c){n=_.X(c,srw);var W,M,r;n=_.X(n==null?void 0:(W=n.panelLoadingStrategy)==null?void 0:(M=W.inlineContent)==null?void 0:(r=M.dialogViewModel)==null?void 0:r.customContent,eHa)}else n=void 0;if(W=n)W.score=t()},"Aekez");
G=_.Hh(function(){var n,c,W=H==null?void 0:(n=H())==null?void 0:(c=n.loggingDirectives)==null?void 0:c.trackingParams;W&&_.ze(_.tp().resolve(_.rv),W);return!1});
_.mR(function(){if(q.value){var n=q.value.querySelector("button"),c=u();n&&c&&Z4e(n,c);_.Bx("yt-share-playable-with-high-score",function(){var W=B().toString(),M=H==null?void 0:H().onShareHighScoreCommand,r=H==null?void 0:H().highScoreShareClientParamIdentifier,w=l==null?void 0:l();M&&(w?(r=new Ora,W=_.ha(r,2,W),$G(M,W.JSC$12532_serializeBinary())):r&&(_.tp().resolve(y6D).clientParams.set(r,{miniAppClientParams:{highScore:W}}),Ovf(M,!1)))})}});
var e=function(){var n=u();n&&(Z==null?0:Z())&&n.accessibilityText&&(n.accessibilityText=n.accessibilityText.replace(D,t()));D=t();return{numberValue:B(),numberText:t(),heightPx:36,fontSizeMultiplier:d,shouldAnimate:!(Z==null||!Z())&&!0}};
return _.J("yt-mini-app-score-button-view-model",{class:function(){var n={};return _.Dq("miniAppScoreButtonViewModelHost",(n.miniAppScoreButtonViewModelIsVisible=B()!==0,n))},
el:q,"on:click":G},tdf(!1,function(){return _.J("span",{style:"display:none;"},B)}),_.J(_.SP,{data:function(){var n;
return H==null?void 0:(n=H())==null?void 0:n.buttonViewModel}},{buttonViewModel:function(n){return _.J(_.kg,{data:n.data,
animatedTextProps:e})}}))},"Of");var xa6=_.y(function(G){var H,Z=(H=_.dT("yt-mini-app-is-theater-mode-enabled"))!=null?H:!1,Q=_.V("enable_playable_container_save_button"),p=_.V("enable_play_next_destination_page_in_toolbar");H={};return _.J("ytm-mini-app-top-bar-view-model",null,_.J("div",{class:_.bb("yt-mini-app-top-bar-view-model",(H["yt-mini-app-top-bar-view-model--mobile"]=!1,H["yt-mini-app-top-bar-view-model--desktop"]=!0,H))},_.J("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.J(_.k,{cond:function(){var l;return!!G.data().backButtonEdu&&
!((l=G.isExitMiniAppSeen)==null?0:l.call(G))},
then:function(){return _.J(_.SP,{data:function(){return G.data().backButtonEdu}},{buttonViewModel:_.kg})},
else:function(){return _.J(_.SP,{data:function(){return G.data().backButton}},{buttonViewModel:_.kg})}}),_.J(_.k,{cond:function(){return G.data().viewAllButton&&!0},
then:function(){return _.J(_.SP,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.kg})}}),_.J(_.k,{cond:function(){return G.data().title&&!0},
then:function(){return _.J("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return G.data().title})}})),_.J("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.J(_.k,{cond:function(){var l;
return(l=G.isDesktopPlayPage)==null?void 0:l.call(G)},
then:function(){return _.J(_.kI,null,_.J(UaL,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview}),_.J(Ric,{enableSaveButton:function(){return _.Uv(Q)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.J(Nks,{menuButton:function(){return G.data().menuButton}}))},
else:function(){return _.J(_.k,{cond:function(){return!1},
then:function(){return _.J(_.SP,{data:function(){return G.data().playPageButton}},{buttonViewModel:function(l){return _.J(_.kg,{data:l.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.J(UaL,{highScoreButton:function(){return G.data().highScoreButton},
score:G.score,formattedScore:G.formattedScore,onScoreChanged:G.onScoreChanged,isEmbeddedInWebview:G.isEmbeddedInWebview})}})}})),_.J("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.J(_.SP,{data:function(){return G.data().muteButton}},{toggleButtonViewModel:function(l){var q=l.data;
return _.J(_.hf,{data:function(){var u,B;return Object.assign({},q(),{isToggled:(B=(u=G.isAudioEnabled)==null?void 0:u.call(G))!=null?B:!0})},
onToggle:G.onAudioToggled,useOutlinedIcon:!0})}}),_.J(_.SP,{data:function(){return G.data().theatreModeButton}},{toggleButtonViewModel:function(l){var q=l.data;
return _.J("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.J(_.hf,{data:function(){return Object.assign({},q(),{isToggled:Z})},
useOutlinedIcon:!0}))}}),_.J(A6h,{fullscreenButton:function(){return G.data().fullscreenButton}}),_.J(_.k,{cond:function(){return _.Uv(p)&&G.data().viewAllButton&&!1},
then:function(){return _.J(_.SP,{data:function(){return G.data().viewAllButton}},{buttonViewModel:_.kg})}}),_.J(_.k,{cond:function(){var l;
return!((l=G.isDesktopPlayPage)==null?0:l.call(G))},
then:function(){return _.J(_.kI,null,_.J(Ric,{enableSaveButton:function(){return _.Uv(Q)},
saveButton:function(){return G.data().saveButton},
isSaved:G.isSaved,onSaveToggled:function(){return G.onSaveToggled}}),_.J(Nks,{menuButton:function(){return G.data().menuButton}}))}}))))},"Pf");
xa6.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Nks=_.y(function(G){return _.J(_.SP,{data:G.menuButton},{buttonViewModel:_.kg})},"Qf"),Ric=_.y(function(G){var H=G.enableSaveButton;
var Z=G.saveButton;var Q=G.isSaved;var p=G.onSaveToggled;return _.J(_.k,{cond:function(){return H()&&!(Z==null||!Z())},
then:function(){return _.J(_.SP,{data:function(){var l=_.X(Z==null?void 0:Z(),_.ZD),q;return{toggleButtonViewModel:Object.assign({},l,{isToggled:(q=Q==null?void 0:Q())!=null?q:!(l==null||!l.isToggled)})}}},{toggleButtonViewModel:function(l){return _.J(_.hf,{data:l.data,
onToggle:p})}})}})},"Rf"),UaL=_.y(function(G){var H=G.highScoreButton;
var Z=G.score;var Q=G.formattedScore;var p=G.onScoreChanged;var l=G.isEmbeddedInWebview;return _.J(_.SP,{data:H},{miniAppScoreButtonViewModel:function(q){return _.J(mac,{data:q.data,score:Z,formattedScore:Q,onScoreChanged:p,isEmbeddedInWebview:l})}})},"Sf"),A6h=_.y(function(G){G=G.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.J(_.kI,null):_.J(_.SP,{data:G},{buttonViewModel:_.kg})},"Tf");_.LsL=new _.Gv("DESKTOP_CURRENT_PAGE");var HqL=_.y(function(G){var H=G.data;var Z=_.V("force_active_time_logging_webview"),Q=!1,p=new XDa,l=void 0,q=void 0,u=_.tp().resolve($ak),B=new dam,t=void 0,D=void 0,d=[],e=void 0,n=void 0,c=!1,W=!1,M=!1,r=!1,w=new _.sD,x=_.tp().resolve(y6D),U=_.tp().resolve(_.p_),R=_.tp().resolve(_.Jp(KB)),L,H3=(L=_.tp().resolve(_.Jp(_.LsL)))==null?void 0:L.getCurrentPage(),qX=!1,B3=0,fW=function(Fb){Fb.preventDefault();return Fb.returnValue=""},e2;
G=_.I(_.Ty(!((e2=_.dT("yt-mini-app-is-audio-enabled"))!=null&&!e2),void 0,"WhYQTd"));var $R=G.next().value,ie=G.next().value,W3;e2=_.I(_.Ty(!((W3=_.dT("exit-mini-app-seen-state"))==null||!W3),void 0,"jxhCJb"));var DT=e2.next().value,UR=e2.next().value;W3=_.I(_.Ty(!1,void 0,"MuvDfe"));var zx=W3.next().value,be=W3.next().value;W3=_.I(_.Ty(void 0,void 0,"u9DLoc"));var J_=W3.next().value,rG=W3.next().value;W3=_.I(_.Ty(void 0,void 0,"rykyJb"));var Kw=W3.next().value,cD=W3.next().value;W3=_.I(_.Ty(!0,void 0,
"d8FUvf"));var ec=W3.next().value,gf=W3.next().value;W3=_.I(_.Ty(!1,void 0,"x9XwUb"));var sR=W3.next().value,ep=W3.next().value;W3=_.I(_.Ty(!1,void 0,"bcquyc"));var Qh=W3.next().value,$w=W3.next().value;W3=_.I(_.Ty(void 0,void 0,"FMAC5b"));var Zt=W3.next().value,rJ=W3.next().value;W3=_.I(_.Ty(0,void 0,"HUGJEb"));var N7=W3.next().value,t_=W3.next().value,Bd=_.IA("mini-app-container-view-model"),HD=function(){return H().isEmbeddedInWebview},xR=function(){return H().hasPlayNextShelf};
_.Bx("yt-page-type-changed",function(Fb){if(_.V("enable_is_mini_app_page_active_bugfix"))Fb.detail.newPageSubtype==="mini_app"&&Fb.detail.newPageType==="ytd-browse"||!ec()||E_();else if(Fb=_.TRW()==="mini_app",Fb!==ec())if(gf(Fb),Fb){var WD;Fb=(WD=H().playableId)==null?void 0:WD.toString();Fb!==void 0&&window.location.href.includes(Fb)&&!W&&(r=!0,V4(),nq.value&&KE(nq.value))}else Fb||E_()});
_.Bx("yt-action",function(Fb){Fb.detail.actionName==="yt-engagement-panel-visible-changed"&&Fb.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Fb.detail.args[2]==="PAmini_app_panel"&&E_();_.V("enable_is_mini_app_page_active_bugfix")?Fb.detail.actionName==="yt-history-load"&&!ec()&&(H3==null?0:H3.active)?(gf(!0),V4(),nq.value&&KE(nq.value)):Fb.detail.actionName==="yt-history-load"&&ec()&&!H().isEmbeddedInWebview&&IN():ec()&&Fb.detail.actionName==="yt-history-load"&&(r?r=!1:H().isEmbeddedInWebview||
IN())});
_.oM(function(){nm()});
_.yN(function(){V4()},"bLMzme");
var V4=function(){var Fb=H().playableId,WD=H().localReleaseId,oj=H().derivedDeviceInterface;if(W)_.Rp(new _.C$("[MiniAppContainerViewModel] onEnter was called more than once"));else{W=!0;l=new pDh(Fb,WD,oj,document.visibilityState==="visible");qqD(l);q=new zij(Fb);EAj(u,Fb);eim(B,{showMiniAppAdCommand:H().showMiniAppAdCommand,isEmbeddedInWebview:H().isEmbeddedInWebview,playLogger:l});LhW()&&(n=document.body.style.backgroundColor,_.wP(document.body,"background-color","black"));FN();Oq();w=new _.sD;
if(H().isEmbeddedInWebview){if(Fb=(new URLSearchParams(window.location.search)).get("postPlayNonce"))gAa(l,Fb),qX=!0;p.initialize({onAudioStateLoaded:function(BD){YJ(BD)},
onMuteMiniApp:function(){YJ(!1)},
onUnmuteMiniApp:function(){YJ(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(BD){qX||(gAa(l,BD),qX=!0)},
confirmExitMiniApp:function(){var BD,kr,Yr;return _.S(function(AR){if(AR.nextAddress==1)return H().confirmExitMiniAppCommand?AR.yield(Promise.race([w.promise,Promise.resolve(!1)]),2):AR.return();(BD=AR.yieldResult)?!H().confirmExitMiniAppCommandEdu||(Yr=(kr=DT)==null?void 0:kr())!=null&&Yr?St(H().confirmExitMiniAppCommand):(St(H().confirmExitMiniAppCommandEdu),_.Dp("exit-mini-app-seen-state","true",2592E6)):St(H().closeMiniAppCommand);_.K0(AR)})},
onNativeBenchmarkingMessageReceived:function(BD){BD=kjN(_.CK2(BD));if(_.q8(BD,_.nA,3,Bsw)){var kr=_.c4(BD,_.nA,3,Bsw),Yr=a3j();var AR=Rf(Yr.getSeconds())-Rf(kr.getSeconds());kr=_.k5(Yr,2)-_.k5(kr,2);AR<0&&kr>0?(AR+=1,kr-=1E9):AR>0&&kr<0&&(--AR,kr+=1E9);AR=(new Rx).setSeconds(AR);AR=_.HO(AR,2,_.Ij(kr),0);_.fq(BD,1,AR)}var lb;(lb=D)==null||lb.returnNativeBenchmarkingMessage(BD)},
multiplayer3pAckStateLoaded:function(BD){IN(BD)},
exitMiniAppSeenStateLoaded:function(BD){H().confirmExitMiniAppCommandEdu&&UR(BD)},
onNavigateToNewMiniApp:function(){St(H().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(BD){BD=new URLSearchParams(BD);var kr=void 0;BD.has("invite_code")&&(kr=new Xyp,BD=BD.get("invite_code"),kr=_.ha(kr,1,BD));if(BD=kr){var Yr;(Yr=D)==null||Yr.sendGameData(BD)}},
onPauseMiniApp:function(){Q=!0;Ma()},
onResumeMiniApp:function(){Q=!0;yk()},
onAdFinished:function(BD){B.onAdFinished(BD)}});
H().showMultiplayer3pConsentDialogCommand||w.resolve(!0);St(H().onContainerReadyCommand)}else gAa(l),w.resolve(!0);Ks8(q,lt8(l));lt8(l).then(function(BD){BD={miniAppPlayData:{postPlayNonce:BD}};var kr,Yr=(kr=H().loggingDirectives)==null?void 0:kr.trackingParams;Yr&&_.gr().stateChanged(Yr,BD)});
Fb=H().showSignInDialogCommand;!UqM()&&Fb&&(_.Dp("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),St(Fb));H().confirmExitMiniAppCommand&&R&&(Fb=CjR(H().confirmExitMiniAppCommand))&&(R.customConfirmationCommand=Fb)}},nm=function(){n&&_.wP(document.body,"background-color",n);
c=!1;e&&e.release();q.flush().catch(function(Fb){_.Rp(Fb)});
u.flush().catch(function(Fb){_.Rp(Fb)});
uLA(l);gj();D=void 0;Yqh(x)},E_=function(){gf(!1);
nm();be(!1);rJ(void 0);rG(void 0);cD(void 0);B3=0;t_(0);W=!1},Ma=function(){var Fb;
(Fb=D)==null||Fb.onPause();e&&e.release();q.flush().catch(function(WD){_.Rp(WD)});
u.flush().catch(function(WD){_.Rp(WD)});
Sqi(l);ep(!0)},yk=function(){var Fb;
(Fb=D)==null||Fb.onResume();Oq();Fb=l;Fb.isForeground=!0;gi(Fb,"PLAY_EVENT_TYPE_PLAY_RESUME");ep(!1)},YJ=function(Fb){var WD;
(WD=D)==null||WD.onAudioToggled(Fb);ie(Fb)},IN=function(Fb){H().showMultiplayer3pConsentDialogCommand&&(H().isEmbeddedInWebview&&Fb!==void 0&&w.resolve(Fb),!Fb&&_.TRW()==="mini_app"&&St(H().showMultiplayer3pConsentDialogCommand))},Yw=function(){var Fb,WD,oj,BD;
return _.S(function(kr){if(kr.nextAddress==1){!H().isLivestream||H().disableVideoCapture||(Fb=D)!=null&&Fb.sendStartGameFrameCapture();WD=(new URL(window.location.href)).searchParams;if(WD.has("invite_code")){var Yr=new Xyp,AR=WD.get("invite_code");oj=_.ha(Yr,1,AR);(BD=D)==null||BD.sendGameData(oj)}zx()||(be(!0),Yr=l,Yr.state!==1?_.Rp(new _.C$("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+ZmL[Yr.state])):(_.$M("mini_app_ids_without_game_ready").includes(Yr.JSC$17064_miniAppId)&&(Yr.gameReady=
!0),Yr.state=2,Yr.beforeReady=!1,lF(Yr,"ma_ffr"),gi(Yr,"PLAY_EVENT_TYPE_PLAY_READY")));return kr.yield(w.promise,2)}St(H().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();H().isEmbeddedInWebview||IN();_.K0(kr)})},vD=function(){var Fb=l;
Fb.gameReady=!0;lF(Fb,"ma_gr")},gk=function(Fb){var WD;
return _.S(function(oj){if(oj.nextAddress==1)return _.XV(oj,2),oj.yield(jjo(q,Fb),4);if(oj.nextAddress!=2)return _.Za(oj,0);WD=_.Wg(oj);St(H().showSavingErrorPopupCommand);throw WD;})},w3=function(){var Fb,WD;
return _.S(function(oj){if(oj.nextAddress==1)return _.XV(oj,2),oj.yield(Mcj(q),4);if(oj.nextAddress!=2)return Fb=oj.yieldResult,oj.return(Fb);WD=_.Wg(oj);St(H().showLoadingErrorDialogCommand);throw WD;})},hR=function(Fb){l.logError(Fb)},EA=function(Fb,WD,oj){J6k(l,Fb,WD,oj)},Nj=function(Fb,WD){k8a(l,Fb,WD)},q4=function(){!Z&&H().isEmbeddedInWebview||_.BW();
Bkq(l,!0);c||(window.addEventListener("beforeunload",fW,{capture:!0}),c=!0)},ty=function(Fb){var WD,oj,BD,kr,Yr,AR,lb;
return _.S(function(a0){if(a0.nextAddress==1)return u&&(!t||t<Fb)&&Fb>0?a0.yield(FsL(u,Fb),3):a0.jumpTo(0);WD=a0.yieldResult;oj=_.I(WD);BD=oj.next().value;kr=oj.next().value;Yr=BD;AR=kr;((lb=Yr)==null?0:lb.displayString)&&AR&&(rG(AR),cD(Yr.displayString));_.K0(a0)})},KW=function(Fb){var WD=H().onBenchmarkingMessageReceivedCommand;
if(WD){var oj=a3j();_.vO(Fb,3,Bsw,oj);$G(WD,DQN(Fb))}},au=function(Fb){var WD=H().onGameFrameReceivedCommand;
if(WD){var oj=new iN;var BD=new J$p;var kr=dm(Fb,1);BD=_.PW(BD,1,kr);Fb=_.nY(Fb,2);Fb=_.ha(BD,2,Fb);oj=_.fq(oj,2,Fb);$G(WD,dua(oj))}},NX=function(Fb){var WD=H().onGameAudioDataReceivedCommand;
if(WD){var oj=new iN;var BD=new km4;Fb=_.nY(Fb,1);BD=_.ha(BD,1,Fb);oj=_.fq(oj,4,BD);$G(WD,dua(oj))}},Xa=function(){var Fb=new URLSearchParams(window.location.search);
if(H().isEmbeddedInWebview&&Fb&&Fb.get("override_hl")==="true"&&Fb.get("hl"))return Fb.get("hl");Fb=document.documentElement.lang;return Fb!==""?Fb:Pv},Vh=function(Fb){var WD=H().onShareInviteCodeCommand;
if(WD)if(H().isEmbeddedInWebview){var oj=new Ora;Fb=_.ha(oj,1,Fb);$G(WD,Rn_(Fb))}else oj=H().inviteCodeShareClientParamIdentifier,x.clientParams.set(oj,{miniAppClientParams:{inviteCode:Fb}}),St(WD)},MU=function(Fb){var WD,oj,BD;
return _.S(function(kr){if(kr.nextAddress==1)return WD=H().onMiniAppOpenYtContentRequested,u&&_.V("enable_open_yt_content")&&WD?kr.yield(bmL(u,Fb),3):kr.jumpTo(0);oj=kr.yieldResult;if(oj==="OK")if(H().isEmbeddedInWebview){var Yr=new qLR;BD=fT(Yr,2,Cs,XL(Fb));$G(WD,BST(BD))}else U.clientData.set("video_id",Fb),St(WD);_.K0(kr)})},jc=function(Fb){B3+=_.k5(Fb,3);
Fb=Math.min(Math.log(1+B3/15E6*9)/Math.log(10),.99);t_(Fb);fw(Fb)},fw=_.nO(function(Fb){var WD=H().updateLoadingProgressCommand;
if(WD){var oj=new qLR;Fb=fT(oj,3,Cs,_.ER(Fb));$G(WD,BST(Fb))}},100),Tx=function(Fb){return Vct(B,Fb)},Oq=function(){var Fb,WD;
((Fb=_.$b3())==null?void 0:(WD=Fb.wakeLock)==null?void 0:WD.request)!=null&&_.$b3().wakeLock.request("screen").then(function(oj){e=oj}).catch(function(){})},nq=_.qK("iframe");
_.yN(function(){H().isSupportedCountry&&(UqM()||_.V("enable_sign_in_promo")||!H().showSignInDialogCommand?nq.value&&KE(nq.value):St(H().onMiniAppReadyCommand))},"ASuFde");
var nw=function(){return _.J("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return zx()?0:-1},
el:nq})},KE=function(Fb,WD){WD=WD===void 0?!1:WD;
var oj=oz();oj&&(WD||oj.toString()!==Fb.getAttribute("src"))&&(D=YfM(H().source,{isAudioEnabled:$R,onFirstFrameReady:Yw,onGameReady:vD,onSave:gk,onLoad:w3,onError:hR,onSdkCalled:EA,onSdkPerformanceUpdate:Nj,onClick:q4,onSendHighScore:ty,onBenchmarkingMessageReceived:KW,getLanguage:Xa,onShareInviteCode:Vh,onResourceLoaded:jc,onOpenYTContent:MU,onShowMiniAppAd:Tx,onGameFrameReceived:au,onGameAudioReceived:NX},Fb,oj),Sk(Fb,"load",function(){lF(l,"ma_il");Sk(Fb,"load",function(){KE(Fb,!0)})}),_.bI(Fb,
oj))},oz=function(){var Fb=H().url;
if(Fb&&(Fb=_.R1(Fb),Fb!==null)){if(H().source&&H().source==="MINI_APP_SOURCE_GAMESNACKS")Fb=_.$r(Fb,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.V("enable_origin_query_parameter_bugfix")){var WD=_.kj(_.DMf(Fb.toString()));WD=new URLSearchParams(WD||"");WD.set("origin",window.location.origin);WD=WD.toString();Fb=_.PO(Fb).toString();Fb=_.j7(G5a.exec(Fb)[0]+(WD.trim()?"#"+WD:""))}return Fb}},ay=function(){var Fb={};
Fb=_.bb("yt-mini-app-container-view-model__loading-screen",(Fb["yt-mini-app-container-view-model__loading-screen--fade-out"]=zx,Fb));var WD=function(){return zx()?1:N7()};
return _.J("div",{class:Fb},_.J(_.SP,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(oj){return _.J(atm,{data:oj.data,
loadingProgress:WD})}}))},xF=function(){var Fb={};
return _.J("div",{class:_.bb("yt-mini-app-container-view-model__pause-interstitial",(Fb["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!sR()},Fb["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=sR,Fb))},_.J(_.SP,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(WD){return _.J(atm,{data:WD.data,
forPaused:!0})}}))},FN=function(){d=[];
d.push(_.tt(window,"visibilitychange",function(){M||Q&&HD()||(document.visibilityState==="visible"?yk():Ma())}));
d.push(_.tt(window,"pagehide",function(){nm()}));
d.push(_.tt(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Bd.value.dispatchEvent(new Event("tap"))},0)}));
d.push(_.tt(Bd.value,"pointerdown",function(){Bkq(l,!1)},!0));
d.push(_.tt(Bd.value,"pause",function(){M=!0;Ma()}));
d.push(_.tt(Bd.value,"play",function(){M=!1;yk()}));
d.push(_.tt(Bd.value,"exit",function(){nm()}));
var Fb=navigator.keyboard,WD=Fb&&Fb.lock;d.push(_.tt(window,uDa,function(){$w(JQT());JQT()?(H().hasPlayNextShelf&&ls("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),BA("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),WD&&Fb.lock(["Escape"])):(H().hasPlayNextShelf&&BA("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),ls("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),WD&&Fb.unlock())}));
H().showMultiplayer3pConsentDialogCommand&&d.push(_.tt(window,"yt-playables-ack-3p-data-usage",function(){G4s(u)}));
H().confirmExitMiniAppCommandEdu&&d.push(_.tt(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Dp("exit-mini-app-seen-state","true",2592E6)}));
H().onGameAudioDataReceivedCommand&&d.push(_.tt(window,"message",function(oj){oj=oj.event_;var BD,kr=(BD=nq.value)==null?void 0:BD.src;if(kr&&oj.origin===(new URL(kr)).origin&&oj.data&&oj.data.type==="GAME_AUDIO"&&oj.data.audio&&oj.data.audio.length>0)if(_.V("enable_sending_unwrapped_game_audio_as_serialized_metadata"))op2(H().onGameAudioDataReceivedCommand,oj.data.audio);else{var Yr=new FileReader;Yr.onload=function(){var AR=new iN;var lb=new km4;lb=_.ha(lb,1,Yr.result);AR=_.fq(AR,4,lb);$G(H().onGameAudioDataReceivedCommand,
dua(AR))};
Yr.readAsDataURL(new Blob([oj.data.audio]))}}))},gj=function(){d.forEach(function(Fb){ub(Fb)});
window.removeEventListener("beforeunload",fW,{capture:!0})},St=function(Fb){Fb&&Ovf(Fb,H().isEmbeddedInWebview||!1)},BA=function(Fb,WD){Fb=_.I(Bd.value.getElementsByClassName(Fb));
for(var oj=Fb.next();!oj.done;oj=Fb.next())oj.value.classList.add(WD)},ls=function(Fb,WD){Fb=_.I(Bd.value.getElementsByClassName(Fb));
for(var oj=Fb.next();!oj.done;oj=Fb.next())oj.value.classList.remove(WD)};
return function(){var Fb={};Fb=_.bb("yt-mini-app-container-view-model",(Fb["yt-mini-app-container-view-model--desktop"]=!0,Fb["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Fb["yt-mini-app-container-view-model--ios-web-view"]=LhW(),Fb["yt-mini-app-container-view-model--no-top-bar"]=function(){return!H().topBar},Fb["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return H().hasPlayNextShelf},Fb["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return H().hasPlayNextShelf},Fb["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Qh()&&H().hasPlayNextShelf},Fb));
var WD={};WD=_.bb("yt-mini-app-container-view-model__content",(WD["yt-mini-app-container-view-model__content--desktop-content"]=!0,WD["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},WD["yt-mini-app-container-view-model--desktop-play-page"]=function(){return H().hasPlayNextShelf},WD));
return _.J("mini-app-container-view-model",{el:Bd},_.J("div",{class:Fb},_.J(_.k,{cond:function(){return H().topBar&&!Qh()},
then:function(){return _.J(_.SP,{data:function(){return H().topBar}},{miniAppTopBarViewModel:function(oj){return _.J(xa6,{data:oj.data,
isAudioEnabled:$R,onAudioToggled:function(BD){YJ(BD)},
score:J_,formattedScore:Kw,onScoreChanged:function(BD){t=BD},
isEmbeddedInWebview:HD,isSaved:Zt,onSaveToggled:function(BD){rJ(BD)},
isExitMiniAppSeen:DT,isDesktopPlayPage:xR})}})}}),_.J("div",{class:WD},_.J(_.k,{cond:ec,
then:function(){return nw()}}),_.J(_.k,{cond:function(){return H().isLivestream},
then:function(){return xF()}}),_.J(_.k,{cond:function(){return!H().isEmbeddedInWebview},
then:function(){return ay()}}))))}()},"Wf");
HqL.idomCompat=!0;_.RX(HqL,"mini-app-container-view-model",{props:{data:_.b3}});var syk=_.y(function(G){var H=G.data;return _.J("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.J("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Hh(function(){var Z=H().onTap;Z&&_.zt(Z)})},_.J(_.k,{cond:function(){return H().icon},
then:function(Z){return _.J(_.ll,{icon:function(){return Z().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.J("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return H().title})))},"Xf");
syk.idomCompat=!0;var Zqs=_.y(function(G){var H=_.IA("div"),Z=_.I(_.Ty(void 0,void 0,"dg3xff")),Q=Z.next().value,p=Z.next().value;Z=_.I(_.Ty(void 0,void 0,"AgHNfc"));var l=Z.next().value,q=Z.next().value;Z=_.I(_.Ty(void 0,void 0,"fuTKCc"));var u=Z.next().value,B=Z.next().value,t=function(){var r=Q();return r!==void 0?Math.abs(r):void 0},D=function(){var r=t();
return r===void 0||r<=3},d=function(){var r=t();
var w=l(),x=u();r=r!==void 0&&w!==void 0&&x!==void 0?w-x-r:void 0;return r===void 0||r<=3},e=function(r){H.value&&H.value.scrollBy({top:0,
left:(_.xI("HTML_DIR")==="rtl"?-1:1)*r*H.value.clientWidth,behavior:"smooth"})},n=function(){var r;
p((r=H.value)==null?void 0:r.scrollLeft);var w;q((w=H.value)==null?void 0:w.scrollWidth);var x;B((x=H.value)==null?void 0:x.clientWidth)},c=function(){e(-.5)},W=function(){e(.5)};
Z=_.Hh(function(){n()});
_.yP(function(){n();if(H.value&&window.ResizeObserver){var r=new ResizeObserver(n);r.observe(H.value);_.oM(function(){r.disconnect()})}});
var M={};return _.J("yt-sponsorships-scrollable-shelf",{class:_.bb("ytdSponsorshipsScrollableShelfHost",G.className)},_.J("div",{class:_.bb("ytdSponsorshipsScrollableShelfContent",(M.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return G.data().previousButton&&G.data().nextButton&&!D()&&!d()},M.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return G.data().previousButton&&!D()&&d()},M.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return G.data().nextButton&&
D()&&!d()},M)),
el:H,"on:scroll":Z},G.children),_.J(_.k,{cond:function(){return!D()},
then:function(){return _.J(_.SP,{data:function(){return G.data().previousButton}},{buttonViewModel:function(r){return _.J(_.kg,{data:r.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:c})}})}}),_.J(_.k,{cond:function(){return!d()},
then:function(){return _.J(_.SP,{data:function(){return G.data().nextButton}},{buttonViewModel:function(r){return _.J(_.kg,{data:r.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:W})}})}}))},"Zf");
Zqs.idomCompat=!0;var pOa=_.y(function(G){var H=G.data;G={};return _.J("yt-sponsorships-hub",{class:_.bb("ytdSponsorshipsHubHost",(G.ytdSponsorshipsHubHostIndented=function(){return H().indented},G))},_.J("div",{class:"ytdSponsorshipsHubHeader"},_.J("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.J("div",{class:"ytdSponsorshipsHubAvatar"},_.J(_.SP,{data:function(){return H().avatar}},{avatarViewModel:_.m9})),_.J(_.k,{cond:function(){return H().badgeImage},
then:function(Z){return _.J("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.J("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.J("div",{class:"ytdSponsorshipsHubBadge"},_.J(_.ib,{data:Z,targetWidth:24,targetHeight:24,alt:""}))))}})),_.J("div",{class:"ytdSponsorshipsHubDetails"},_.J("div",{class:"ytdSponsorshipsHubTierName"},function(){return H().tierName}),_.J("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return H().membershipType}),_.J("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return H().membershipDurationOrExpiry})),_.J("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.J(_.SP,{data:function(){return H().manageButton}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.J(_.SP,{data:function(){return H().actionMenuButton}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.J("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return H().perksTitle}),_.J(Zqs,{data:function(){return{previousButton:H().previousPerkButton,
nextButton:H().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.J("div",{class:"ytdSponsorshipsHubPerkCards"},_.J(_.SP,{data:function(){return H().perkCards}},{sponsorshipsHubPerkCardViewModel:syk}),_.J(_.k,{cond:function(){return H().viewAllPerksButton},
then:function(Z){return _.J(Qyc,{data:Z})}}))))},"$f");
pOa.idomCompat=!0;var Qyc=_.y(function(G){var H=G.data;return _.J("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.J(_.SP,{data:function(){return H().button}},{buttonViewModel:_.kg}),_.J("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.J("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return H().title}),_.J("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return H().subtitle})))},"ag");
Qyc.idomCompat=!0;_.RX(pOa,"yt-sponsorships-hub",{props:{data:_.b3}});_.lMc=_.y(function(G){var H=G.data;return _.J("yt-dual-avatar-view-model",{class:_.bb("ytDualAvatarViewModelHost",G.className),style:_.pI({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var Z;return((Z=H().badgeCutoutRadius)!=null?Z:14)+"px"}})},_.J("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.J(_.SP,{data:function(){return H().startAvatar}},{avatarViewModel:_.m9}),_.J(_.SP,{data:function(){return H().endAvatar}},{avatarViewModel:_.m9})),_.J(_.SP,{data:function(){return H().badge}},
{contentPreviewImageViewModel:function(Z){return _.J("div",{class:"ytDualAvatarViewModelBadge"},_.J(_.kz,{data:Z.data}))}}))},"bg");
_.lMc.idomCompat=!0;var IMA=_.y(function(G){var H=G.data;var Z,Q=!((Z=_.tp().resolve(_.Jp(_.rr)))==null||!Z());G=_.Kb(function(){var D,d,e=Q?(D=H().header)==null?void 0:D.backgroundColorDarkMode:(d=H().header)==null?void 0:d.backgroundColorLightMode;if(e!==void 0)return _.c$(e)},void 0,"TDdh7d");
Z=_.Kb(function(){var D,d;return Q?(D=H().header)==null?void 0:D.backgroundImagePart1Dark:(d=H().header)==null?void 0:d.backgroundImagePart1Light},void 0,"X0peMe");
var p=_.Kb(function(){var D,d;return Q?(D=H().header)==null?void 0:D.backgroundImagePart2Dark:(d=H().header)==null?void 0:d.backgroundImagePart2Light},void 0,"an0Hzd"),l=_.Kb(function(){return _.xI("HTML_DIR")==="rtl"},void 0,"BltEgb"),q=_.IA("yt-sponsorships-perks-list"),u=!1,B=function(){var D=q.value;
if(D&&!u){var d,e=(d=D.parentElement)==null?void 0:d.parentElement;if(e)for(D=D.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),d=0;d<D.length;++d){var n=D[d];if(n instanceof HTMLElement){e.scrollTo({top:n.offsetTop+n.clientHeight/2-e.clientHeight/2,behavior:"smooth"});u=!0;break}}}};
_.mR(function(){var D=q.value;if(D&&window.ResizeObserver){var d=new ResizeObserver(B);d.observe(D);_.oM(function(){d.disconnect()})}});
var t={};return _.J("yt-sponsorships-perks-list",{el:q,class:_.bb("ytdSponsorshipsPerksListHost",(t.ytdSponsorshipsPerksListHorizontalPadding=function(){return H().horizontalPaddingEnabled},t))},_.J("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.J("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.pI({"background-color":G})},_.J("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.J(_.k,{cond:Z,then:function(D){var d={};return _.J("div",{class:_.bb((d.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Q,d.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Q,d.ytdSponsorshipsPerksListFlipped=l,d))},_.J(_.ib,{data:D,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.J("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.J(_.k,{cond:p,
then:function(D){var d={};return _.J("div",{class:_.bb((d.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Q,d.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Q,d.ytdSponsorshipsPerksListFlipped=l,d))},_.J(_.ib,{data:D,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.J("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.J(_.SP,{data:function(){var D;
return(D=H().header)==null?void 0:D.dualAvatar}},{dualAvatarViewModel:_.lMc})))),_.J("div",{class:"ytdSponsorshipsPerksListBody"},_.J("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return H().title}),_.J(_.k,{cond:function(){return H().perks},
then:function(D){return _.J(_.Cl,{each:D},function(d,e){var n={};return _.J("div",{class:_.bb("ytdSponsorshipsPerksListPerkContainer",(n.ytdSponsorshipsPerksListSelectedPerk=function(){var c=e(),W=H().selectedPerkIndex;return c===W},n))},_.J(_.k,{cond:function(){return e()>0},
then:function(){return _.J("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.J("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.J(_.k,{cond:function(){return d.icon},
then:function(c){return _.J(_.ll,{icon:function(){return c().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.J("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.J("div",{class:"ytdSponsorshipsPerksListPerkTitle"},d.title),_.J("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.J(_.Fe,{text:d.description})),_.J(_.k,{cond:function(){return d.instructions},
then:function(){var c,W;return _.J("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.J("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(c=d.instructions)==null?void 0:c.title),_.J("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.J(_.Fe,{text:(W=d.instructions)==null?void 0:W.text})))}}))),_.J(_.k,{cond:function(){return d.emoji},
then:function(c){return _.J("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.J(_.Cl,{each:function(){return c()}},function(W){return _.J(_.ib,{data:W,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.J(gYD,{data:d}))})}})))},"cg");
IMA.idomCompat=!0;var gYD=_.y(function(G){var H=G.data;var Z=function(q,u){return q===u},Q=function(){var q=H();
q=_.X(q==null?void 0:q.badgesShelf,LOp);return q!==void 0&&q!==null?q:{previousButton:{},nextButton:{}}},p=_.qK("div"),l=function(){var q=p.value;
if(q){var u=q.parentElement;if(u){q=q.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var B=0;B<q.length;++B){var t=q[B];if(t instanceof HTMLElement){u.scrollTo({left:t.offsetLeft+t.clientWidth/2-u.clientWidth/2,behavior:"instant"});break}}}}};
_.mR(function(){var q=p.value;if(q){var u=new ResizeObserver(l);u.observe(q);_.oM(function(){u.disconnect()})}});
return _.J("div",null,_.J(_.k,{cond:function(){return H().badges},
then:function(q){return _.J(Zqs,{data:Q},_.J("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:p},_.J(_.Cl,{each:function(){return q()}},function(u,B){var t={},D={},d={};
return _.J("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.J(_.k,{cond:function(){return B()>0},
then:function(){return _.J("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.J("div",{class:_.bb("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return Z(B(),H().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!Z(B(),H().currentBadgeIndex)},t))},_.J("div",{class:_.bb("ytdSponsorshipsPerksListLoyaltyBadge",(D.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return Z(B(),
H().currentBadgeIndex)},D.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!Z(B(),H().currentBadgeIndex)},D))},_.J(_.k,{cond:function(){return u.image},
then:function(e){var n={};return _.J("div",{class:_.bb((n.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return Z(B(),H().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!Z(B(),H().currentBadgeIndex)},n))},_.J(_.ib,{data:e,
alt:""}))}})),_.J("div",{class:_.bb("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(d.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return Z(B(),H().currentBadgeIndex)},d))},u.title)))})))}}))},"dg");
gYD.idomCompat=!0;_.RX(IMA,"yt-sponsorships-perks-list",{props:{data:_.b3}});_.RX(_.y(function(G){return _.J("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.J(_.k,{cond:function(){return G.data().image},
then:function(H){return _.J(_.ib,{className:"ytwFantasyEmptyStateViewModelImage",data:H,ariaHidden:!0,alt:""})}}),_.J(_.Fe,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return G.data().title}}),_.J(_.Fe,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return G.data().subtitle}}),_.J(_.SP,{data:function(){return G.data().primaryButton}},{buttonViewModel:function(H){return _.J(_.kg,{data:H.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"eg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.b3}});var q_A;var S_D=_.y(function(G){var H=G.data;var Z=G.uniqueId;var Q=G.overrides;G=_.Kb(function(){var p,l=((p=H().timedAnimationData)==null?void 0:p.animationTiming)||[];return{uniqueId:Z(),timings:l,experimentEnabled:l.length>0,enabled:l.length>0}},void 0,"hiuXI");
return _.J("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.J(Rpp,{settings:G},_.J(_.SP,{data:function(){return H().buttonRenderer}},{buttonRenderer:function(p){return _.J(_.pJ,{data:p.data,
buttonOverrides:Q})}})))},"fg");
S_D.idomCompat=!0;_.RX(S_D,"timed-animation-button-renderer",{props:{data:_.b3,uniqueId:_.b3,overrides:_.b3}});var J5=function(){var G=_.C.apply(this,arguments)||this;G.hideJoinButtonBeforeSubscribed=_.V("hide_join_button_before_subscribed");G.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return G};
_.T(J5,_.C);_.g=J5.prototype;_.g.hasShowDialogCommand=function(G){return!!_.X(G,srw)};
_.g.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"}}}};
_.g.updateJoinButtonOverrides=function(){var G,H;(G=_.F9(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(H=G.polymerController)==null||H.set("overrides",this.joinButtonOverrides);if(G=_.F9(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))G.overrides=this.joinButtonOverrides};
_.g.handleButtonRefreshAction=function(G){if(G=_.X(G,TKR))this.set("data.membershipButton",G.membershipButton),this.notifyPath("data.membershipButton")};
_.g.onYtServiceRequestError=function(G){_.jP(this.hostElement,G.detail.error.message)};
_.g.onKeydown=function(G){if(G.key==="Enter"){var H;(H=this.data)!=null&&H.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.g.handleUnsubscribeAction=function(){var G,H,Z;((G=this.data)==null?void 0:(H=G.membershipButton)==null?void 0:(Z=H.buttonRenderer)==null?void 0:Z.style)==="STYLE_PRIMARY"&&_.F9(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.u4.Object.defineProperties(J5.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.subscriptionStateEntity)==null||!G.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var G,H=(G=this.data)==null?void 0:G.membershipButton,Z;G=(H==null?void 0:H.buttonRenderer)||_.X(H==null?void 0:(Z=H.timedAnimationButtonRenderer)==null?void 0:Z.buttonRenderer,_.Yl);return(G==null?void 0:G.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(G==null?void 0:G.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(G==null?void 0:G.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var G;if(this.hasShowDialogCommand((G=this.data)==null?void 0:G.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var G;if(this.hasShowDialogCommand((G=this.data)==null?void 0:G.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.attributedTitle)}}});
J5.prototype.onYtServiceRequestError=J5.prototype.onYtServiceRequestError;J5.prototype.updateJoinButtonOverrides=J5.prototype.updateJoinButtonOverrides;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],J5.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],J5.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],J5.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],J5.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.iM),_.A("design:type",Object)],J5.prototype,"ironButtonState",void 0);_.N([_.h(),_.A("design:type",Object)],J5.prototype,"data",void 0);_.N([_.z("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.A("design:type",Object),_.A("design:paramtypes",[])],J5.prototype,"hideJoin",null);
_.N([_.h(),_.A("design:type",String)],J5.prototype,"subscribeKey",void 0);_.N([_.h({selectorArgs:["subscribeKey"],selector:ZLf}),_.A("design:type",Object)],J5.prototype,"subscriptionStateEntity",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],J5.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.N([_.z("subscriptionStateEntity"),_.h({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],J5.prototype,"subscribed",null);
_.N([_.z("subscribed","data.membershipButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],J5.prototype,"joinButtonOverrides",null);_.N([_.z("data.navigationEndpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],J5.prototype,"channelNameTabIndex",null);_.N([_.z("data.navigationEndpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],J5.prototype,"channelNameRole",null);
_.N([_.z("data.attributedTitle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],J5.prototype,"hasAttributedTitle",null);_.N([_.gx("joinButtonOverrides"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J5.prototype,"updateJoinButtonOverrides",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],J5.prototype,"onYtServiceRequestError",null);
_.N([_.O({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],J5);
var uxj=_.xQ()(J5,"ytd-video-owner-renderer",function(){if(q_A===void 0){var G=document.createElement("template");_.f(G,'\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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><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></template><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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);q_A=G}G=q_A;return G},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.RX(_.y(function(G){var H=G.data;var Z;G=_.I(_.Ty(!((Z=_.dT("yt-mini-app-is-theater-mode-enabled"))==null||!Z),void 0,"i2pjVd"));var Q=G.next().value,p=G.next().value;Z=_.I(_.Ty(!1,void 0,"ga7V5c"));var l=Z.next().value,q=Z.next().value;_.mR(function(){var t=_.tt(window,uDa,function(){q(JQT())});
_.oM(function(){ub(t)})});
var u;Z=(u=_.tp().resolve(_.Jp(w3a)))!=null?u:function(){return _.J("div",null)};
_.gN("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){p(!0);_.Dp("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.gN("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){p(!1);_.Dp("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
u={};G={};var B={};return _.J("mini-app-play-page-renderer",{class:_.bb("miniAppPlayPageRendererHost",(u.miniAppPlayPageRendererHostDetailsView=function(){return!Q()},u))},_.J("div",{class:_.bb("miniAppPlayPageRendererGameContainer",(G.miniAppPlayPageRendererGameContainerDetailsView=function(){return!Q()},G))},_.J(_.SP,{data:function(){return H().containerViewModel}},{miniAppContainerViewModel:HqL}),_.J(_.k,{cond:function(){return H().channel&&H().subscribeButton},
then:function(){var t={};return _.J("div",{class:_.bb("miniAppPlayPageRendererChannelContainer",(t.miniAppPlayPageRendererHideVisibility=function(){return l()},t))},_.J(_.SP,{data:function(){return H().channel}},{videoOwnerRenderer:function(D){return _.J(uxj,{data:D.data})}}),_.J(_.SP,{data:function(){return H().subscribeButton}},{subscribeButtonViewModel:function(D){return _.J(_.mO,{data:D.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.J(_.k,{cond:function(){return!Q()&&H().description},
then:function(){var t={};return _.J("div",{class:_.bb("miniAppPlayPageRendererMiniAppDescriptionWrapper",(t.miniAppPlayPageRendererHideVisibility=function(){return l()},t))},_.J("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return H().description}))}})),_.J("div",{class:_.bb("miniAppPlayPageRendererPlayNextContainer",(B.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!Q()},B.miniAppPlayPageRendererHideVisibility=function(){return l()},B))},_.J(_.SP,{data:function(){return H().sectionList}},
{sectionListRenderer:Z})))},"gg"),"mini-app-play-page-renderer",{props:{data:_.b3}});var t5=function(){var G=_.C.apply(this,arguments)||this;G.isSearch=!1;G.isConstrainedList=!1;G.hasChipsBar=!1;G.inReplyPanel=!1;G.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"}};G.monitorScroll=!0;G.SCROLL_ANIMATION_DURATION_MS=300;G.nextContinuation={continuationType:"sectionListContinuation"};return G};
_.T(t5,_.C);_.g=t5.prototype;
_.g.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(G){switch(G.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.V("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.V("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.g.created=function(){var G=this;this.JSC$17203_scrollAnimation=new _.Qc(function(H){G.hostElement.scrollTop=H})};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.g.getItemsPath=function(){return"data.contents"};
_.g.replacePrimaryContent=function(G){this.set("data.contents",G)};
_.g.computeHasSortFilter=function(G){return!!G&&!!G.sortFilterSubMenuRenderer};
_.g.computeShouldScrollInPanel=function(G){var H;return!!(G==null?0:(H=G.scrollPaneStyle)==null?0:H.scrollable)};
_.g.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.Gq(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.g.scrollToTop=function(){this.hostElement.scrollTop=0};
_.g.scrollToItemSection=function(G){if(G=this.getItemByIdentifier(G))G=this.getScrollPositionForItem(G),this.hostElement.scrollTop!==G&&this.JSC$17203_scrollAnimation.start(this.hostElement.scrollTop,G,this.SCROLL_ANIMATION_DURATION_MS)};
_.g.getItemByIdentifier=function(G){var H=this.contents.querySelectorAll("ytd-item-section-renderer");if(H&&H.length!==0){var Z=Array.from(H).findIndex(function(Q){return Q.sectionIdentifier===G});
return H[Z===-1?0:Z]}};
_.g.getScrollPositionForItem=function(G){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===G)return 0;G=_.Aa(G).y+this.hostElement.scrollTop-_.Aa(this.hostElement).y;return Math.min(G,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.u4.Object.defineProperties(t5.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.targetId)==="browse-feedFEclips"}}});
t5.prototype.onScroll=t5.prototype.onScroll;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],t5.prototype,"ytLazyListBehavior",void 0);_.N([_.v(_.ZE.YtNextContinuationBehavior),_.A("design:type",Object)],t5.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.v(_.F2D),_.A("design:type",Object)],t5.prototype,"ytBooleanLogicBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],t5.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],t5.prototype,"data",void 0);_.N([_.h({value:2}),_.A("design:type",Number)],t5.prototype,"initialCount",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],t5.prototype,"autoFill",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.A("design:type",Boolean)],t5.prototype,"hasSortFilter",void 0);_.N([_.h({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.A("design:type",Boolean)],t5.prototype,"hideBottomSeparator",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.A("design:type",Boolean)],t5.prototype,"shouldScrollInPanel",void 0);
_.N([_.h(),_.A("design:type",Object)],t5.prototype,"isSearch",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],t5.prototype,"isConstrainedList",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],t5.prototype,"responsiveSizing",void 0);_.N([_.h(),_.A("design:type",Object)],t5.prototype,"hasChipsBar",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],t5.prototype,"pageSubtype",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],t5.prototype,"engagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],t5.prototype,"liveChatEngagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],t5.prototype,"inReplyPanel",void 0);_.N([_.q6("#action-button"),_.A("design:type",HTMLElement)],t5.prototype,"actionButton",void 0);_.N([_.h(),_.A("design:type",Object)],t5.prototype,"scrollUpButtonData",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],t5.prototype,"engagementPanelDropdown",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],t5.prototype,"engagementPanelDialog",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],t5.prototype,"isClipList",null);_.N([_.q6("#contents"),_.A("design:type",HTMLElement)],t5.prototype,"monitorScrollElement",void 0);_.N([_.q6("#contents"),_.A("design:type",HTMLElement)],t5.prototype,"contents",void 0);
_.N([_.lq("scroll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t5.prototype,"onScroll",null);_.N([_.O({is:"ytd-section-list-renderer",disableElementRegistration:!0})],t5);
var B0h=_.xQ()(t5,"ytd-section-list-renderer",function(){if(rMt===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);rMt=G}G=rMt;return G},{mode:1});var JNo;var t7s;var k4A;var DU6;var k1=function(){return _.C.apply(this,arguments)||this};
_.T(k1,_.C);k1.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
k1.prototype.onLikeButtonClick=function(G){G.stopPropagation();G.preventDefault()};
_.u4.Object.defineProperties(k1.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)!=null&&G.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)})}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],k1.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],k1.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],k1.prototype,"ytRendererStamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],k1.prototype,"data",void 0);
_.N([_.h({selectorArgs:["data.likeStatusEntityKey"],selector:fI}),_.A("design:type",Object)],k1.prototype,"likeStatusEntity",void 0);_.N([_.z("data","likeStatusEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],k1.prototype,"likeButtonRenderer",null);_.N([_.O({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],k1);
_.m(k1,"ytd-slim-metadata-toggle-button-renderer",function(){if(DU6!==void 0)return DU6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return DU6=G},{mode:1});var Dr=function(){var G=_.C.apply(this,arguments)||this;G.minimizePipBreakages=_.V("web_pip_minimize_breakages");G.showEqualizer=_.V("web_enable_playlist_video_lockup_equalizer");G.watchColorUpdate=_.V("kevlar_watch_color_update");G.actionMap={};return G};
_.T(Dr,_.C);_.g=Dr.prototype;_.g.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"}}}};
_.g.computeEditableClass=function(G){return G&&G.menu?"editable":""};
_.g.computeSelected=function(G){return!(G==null||!G.selected)};
_.g.computeUseColorPalette=function(G){return!!((G==null?0:G.lightColorPalette)&&(G==null?0:G.darkColorPalette))};
_.g.computeLargerPlaylistThumbs=function(G,H){return _.V("web_enable_playlist_bigger_thumbnails")&&!H};
_.g.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.g.onYtServiceRequestSent=function(G,H){H.endpoint&&this.isHideEnclosingAction(H.endpoint)&&!this.selected&&KEa(_.l3(),this.data.videoId)};
_.g.isHideEnclosingAction=function(G){var H=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",G);G=this.get("likeEndpoint.status",G)==="INDIFFERENT";return H||G};
_.g.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.g.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.u4.Object.defineProperties(Dr.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.withinMiniplayer&&((G=this.data)==null?0:G.actionButtons))}}});
Dr.prototype.onYtServiceRequestSent=Dr.prototype.onYtServiceRequestSent;Dr.prototype.canReorderChanged=Dr.prototype.canReorderChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Dr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Dr.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.bz),_.A("design:type",Object)],Dr.prototype,"ytdLockupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Dr.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dr.prototype,"withinMiniplayer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dr.prototype,"minimizePipBreakages",void 0);_.N([_.h({computed:"computeSelected(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Dr.prototype,"selected",void 0);
_.N([_.h({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Dr.prototype,"useColorPalette",void 0);_.N([_.h({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Dr.prototype,"largerPlaylistThumbs",void 0);_.N([_.h(),_.A("design:type",Object)],Dr.prototype,"showEqualizer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dr.prototype,"canReorder",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dr.prototype,"touchPersistentDragHandle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dr.prototype,"handleIsHovered",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dr.prototype,"watchColorUpdate",void 0);_.N([_.h(),_.A("design:type",String),_.A("design:paramtypes",[])],Dr.prototype,"reorderIcon",null);
_.N([_.h(),_.A("design:type",String),_.A("design:paramtypes",[])],Dr.prototype,"playIcon",null);_.N([_.z("largerPlaylistThumbs"),_.A("design:type",Number),_.A("design:paramtypes",[])],Dr.prototype,"thumbnailWidth",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Dr.prototype,"showActionButtons",null);_.N([_.Jv("canReorder"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dr.prototype,"canReorderChanged",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],Dr.prototype,"onYtServiceRequestSent",null);_.N([_.O({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Dr);
_.m(Dr,"ytd-playlist-panel-video-renderer",function(){if(k4A!==void 0)return k4A;var G=document.createElement("template");_.f(G,'\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="[[selected]]" 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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return k4A=G},{mode:2});var di=function(){return _.C.apply(this,arguments)||this};
_.T(di,_.C);di.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],di.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],di.prototype,"data",void 0);_.N([_.O({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],di);
_.m(di,"ytd-playlist-panel-supported-items",function(){if(t7s!==void 0)return t7s;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return t7s=
G},{mode:1});kkR=!0;GLw("\\P{N}");var pLf;var dUk=_.Zg("END_OF_PLAYLIST",void 0,"End of playlist"),eds=_.Zg("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),eW=function(){var G=_.C.apply(this,arguments)||this;G.minimizePipBreakages=_.V("web_pip_minimize_breakages");G.hideHeaderText=!1;G.useColorPalette=!1;G.collapsed=!1;G.collapsedPreServerOverride="not_tracked";G.isHovered=!1;G.expandLabel=_.Zg("MINIPLAYER_EXPAND_LABEL");G.collapseLabel=_.Zg("MINIPLAYER_COLLAPSE_LABEL");G.isFloating=!1;G.metaPanel=
!1;G.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};G.currentIndex=void 0;return G};
_.T(eW,_.C);_.g=eW.prototype;
_.g.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"}}}};
_.g.created=function(){var G=this;this.scrollThrottle=new _.Zo(this.onThrottledScroll,1E3,this);this.JSC$17225_ytReorderableController=new _.ZLG(56,function(H){G.handleDrop(H)})};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
_.g.computeOverflowMenuData=function(G){return G&&G.menu?G.menu:null};
_.g.computeCollapsible=function(G){return!G};
_.g.computeHasPlaylistButtons=function(G){return!(!G||!G.playlistButtons)};
_.g.computeHasSeparateSaveButton=function(G){return!(!G||!G.saveButton)};
_.g.computeHasToolbarButton=function(G,H){return!(!G||!(H||G.saveButton||G.menu))};
_.g.computePlaylistType=function(G){if(G&&G.playlistId)return G.playlistId.substring(0,4)};
_.g.computeCanReorder=function(G){return G?G.playlistId&&G.playlistId.startsWith("TLPQ")?!0:!!G.isEditable&&!G.isInfinite:!1};
_.g.attached=function(){var G=this;try{_.tp().resolve(_.H9).setPlaylistComponent(this.hostElement)}catch(H){if(_.V("kevlar_park_on_playlist_token_killswitch"))throw H;_.ZO().parkOrScheduleJob(function(){_.tp().resolve(_.H9).setPlaylistComponent(G.hostElement)},2,"ci")}_.Ul(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.g.detached=function(){_.RO(this.hostElement);_.Wk(this.JSC$17225_ytReorderableController)};
_.g.computeTrailingIcon=function(G,H,Z){return Z?H?"yt-icons:collapse":"yt-icons:close":H?"yt-icons:expand":_.V("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.g.computeIndexMessage=function(G,H){return IBX(G+1)+" / "+IBX(H)};
_.g.onRenderStamperFinished=function(){if(this.scrollForStampDom){var G=!0;this.isHovered&&(G=!1);if(this.collapsed||this.hidden)G=!1;G&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.g.collapseChanged=function(){var G=this;this.collapsed||(_.ZG(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.g.hiddenChanged=function(){var G=this;this.hidden||_.ZG(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.scrollToCurrentVideo()})};
_.g.setupReordering=function(){var G=_.F9(this.hostElement).querySelector("#items");PB2?_.Qg7(this.JSC$17225_ytReorderableController,G,G,"playlist-drag-handle"):_.Qg7(this.JSC$17225_ytReorderableController,G,G)};
_.g.scrollToCurrentVideo=function(){var G=this;_.Ui.addJob(function(){var H=_.F9(G.hostElement).querySelector("#items");if(H){H.style.setProperty("padding-bottom","");var Z=_.F9(G.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(Z){H=Z.parentElement||_.TL(document);var Q=H||_.TL(document);var p=_.Aa(Z),l=_.Aa(Q),q=_.m4d(Q);if(Q==_.TL(document)){var u=p.x-Q.scrollLeft;p=p.y-Q.scrollTop}else u=p.x-l.x-q.left,p=p.y-l.y-q.top;Z=OEG(Z);l=Q.clientHeight-
Z.height;q=Q.scrollLeft;var B=Q.scrollTop;q+=u-(Q.clientWidth-Z.width)/2;Q=new _.UA(q,B+(p-l/2));H.scrollLeft=Q.x;H.scrollTop=Q.y}}},8)};
_.g.dataChanged=function(){var G=this;_.Wk(this.JSC$17225_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.q2(this,function(){_.wM(G.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty();G.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.g.onFullBleedPlayerChanged=function(){_.V("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.g.onFullscreenChanged=function(){_.V("web_watch_imax_theater_mode")||_.V("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.g.updateNowPlayingOverlay=function(){_.V("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.g.onPlaylistLockupNowPlaying=function(G,H){H&&(this.activeNowPlayingRenderer=H);this.updateNowPlayingOverlay()};
_.g.onScroll=function(){this.scrollThrottle.fire()};
_.g.onThrottledScroll=function(){var G=this;_.wM(this.ytTaskEmitterBehavior.getTaskManager(),function(){G.ytRendererBehavior.markDirty()})};
_.g.onToggleExpanded=function(G){!this.collapsible||G&&(_.a_(G).tagName==="A"||_.OO(_.OD(G),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.g.setCollapsed=function(G){this.collapsible&&(this.collapsed=G,_.xk(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.g.handleCollapsedFromData=function(G){if(G){var H=G.playlistPanelCollapseState;H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||H==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),H=H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==H&&this.setCollapsed(H)):this.currentPlaylistId!==G.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(H=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==H&&this.setCollapsed(H),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=G.playlistId}};
_.g.handleDrop=function(G){var H=G.currDragItem;G=H.data.playlistSetVideoId;var Z=_.Oj(H.parentNode.childNodes,H),Q=void 0;Z>0&&(Q=H.parentNode.childNodes[Z-1].data.playlistSetVideoId);H=_.l3();if(H.responsePlaylistData&&H.responsePlaylistData.contents){var p=bBe(G,H.responsePlaylistData);H.responsePlaylistData=(0,_.oN.unsafeClone)(H.responsePlaylistData);OWW(H.responsePlaylistData.contents,p,Z);H.queueProxy?p_G(H.queueProxy,p,Z,G,Q):H.playlistProxy&&p_G(H.playlistProxy,p,Z,G,Q);_.gW(H,_.IT(H,H.response?
H.response.autoplayRenderer:void 0))}};
_.g.handleDarkModeChange=function(G){G!==this.isDarkTheme&&(this.isDarkTheme=G)};
_.g.colorPaletteChanged=function(){var G,H=((G=this.data)==null?void 0:G.contents)||[],Z;G=_.I(H);for(H=G.next();!H.done;H=G.next()){H=H.value;var Q=void 0;if((Q=H.playlistPanelVideoRenderer)==null?0:Q.selected){G=H.playlistPanelVideoRenderer;Q=H=void 0;(Z=this.isDarkTheme?(H=G)==null?void 0:H.darkColorPalette:(Q=G)==null?void 0:Q.lightColorPalette)&&_.Do(this.hostElement,Z);break}}this.useColorPalette=!!Z};
_.u4.Object.defineProperties(eW.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.moveThreeDotsMenuToMainHeader)&&_.V("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var G=_.tp().resolve(_.Jp(_.H9)),H;if(((H=this.data)==null?0:H.contents)&&(G==null?0:G.hasAutoplayData())){var Z;if(((Z=this.playlistLoopStateEntity)==null?void 0:Z.state)==="PLAYLIST_LOOP_STATE_ONE"){if(G=this.data.currentIndex,G!==void 0){var Q,p;var l=(Q=this.data.contents[G])==null?void 0:(p=Q.playlistPanelVideoRenderer)==null?void 0:p.title}}else{var q,u=(q=_.X(G.getAutoplayEndpoint(),_.hZ))==null?void 0:q.videoId,B,t;l=(B=this.data.contents.find(function(D){var d;
return((d=D.playlistPanelVideoRenderer)==null?void 0:d.videoId)===u}))==null?void 0:(t=B.playlistPanelVideoRenderer)==null?void 0:t.title}return l}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.nextVideoLabel?this.nextVideoTitle?_.yn(this.data.nextVideoLabel)+":":dUk:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?0:G.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.V("web_mix_long_byline_from_data"))return _.aq(eds);var H;return(H=this.data)==null?void 0:H.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q=(G=this.data)==null?void 0:(H=G.playlistButtons)==null?void 0:(Z=H.menuRenderer)==null?void 0:Z.topLevelButtons;if(Q)for(G=_.I(Q),H=G.next();!H.done;H=G.next())if(H=H.value,H.playlistLoopButtonRenderer)return H.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.collapsed&&((G=this.data)==null?0:G.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.V("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
eW.prototype.colorPaletteChanged=eW.prototype.colorPaletteChanged;eW.prototype.onPlaylistLockupNowPlaying=eW.prototype.onPlaylistLockupNowPlaying;eW.prototype.updateNowPlayingOverlay=eW.prototype.updateNowPlayingOverlay;eW.prototype.onFullscreenChanged=eW.prototype.onFullscreenChanged;eW.prototype.onFullBleedPlayerChanged=eW.prototype.onFullBleedPlayerChanged;eW.prototype.dataChanged=eW.prototype.dataChanged;eW.prototype.hiddenChanged=eW.prototype.hiddenChanged;eW.prototype.collapseChanged=eW.prototype.collapseChanged;
eW.prototype.onRenderStamperFinished=eW.prototype.onRenderStamperFinished;eW.prototype.onMouseLeave=eW.prototype.onMouseLeave;eW.prototype.onMouseEnter=eW.prototype.onMouseEnter;_.N([_.v(_.hS),_.A("design:type",Object)],eW.prototype,"ironResizableBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(KFG.YtPlaylistPanelBehavior),_.A("design:type",Object)],eW.prototype,"ytPlaylistPanelBehavior",void 0);_.N([_.v(_.Q6.YtTaskEmitterBehavior),_.A("design:type",Object)],eW.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],eW.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],eW.prototype,"ytdReduxBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],eW.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],eW.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],eW.prototype,"autoplayData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],eW.prototype,"withinMiniplayer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],eW.prototype,"minimizePipBreakages",void 0);
_.N([_.h({computed:"setMenuData_(data)"}),_.A("design:type",Object)],eW.prototype,"menuRendererData",void 0);_.N([_.h({computed:"computeOverflowMenuData(data)"}),_.A("design:type",Object)],eW.prototype,"overflowMenuDataTopRow",void 0);_.N([_.h({computed:"computeOverflowMenuData(data)"}),_.A("design:type",Object)],eW.prototype,"overflowMenuData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],eW.prototype,"hideHeaderText",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],eW.prototype,"useColorPalette",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.A("design:type",Boolean)],eW.prototype,"collapsible",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],eW.prototype,"collapsed",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],eW.prototype,"hidden",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.A("design:type",Boolean)],eW.prototype,"hasPlaylistButtons",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.A("design:type",Boolean)],eW.prototype,"hasSeparateSaveButton",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.A("design:type",Boolean)],eW.prototype,"hasToolbar",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.A("design:type",String)],eW.prototype,"playlistType",void 0);_.N([_.h(),_.A("design:type",Object)],eW.prototype,"isHovered",void 0);_.N([_.h({selectorArgs:["playlistLoopStateEntityKey"],selector:_.wv.playlistLoopStateEntitySelector}),_.A("design:type",Object)],eW.prototype,"playlistLoopStateEntity",void 0);_.N([_.h({computed:"computeCanReorder(data)"}),_.A("design:type",Boolean)],eW.prototype,"canReorder",void 0);
_.N([_.h(),_.A("design:type",Object)],eW.prototype,"expandLabel",void 0);_.N([_.h(),_.A("design:type",Object)],eW.prototype,"collapseLabel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],eW.prototype,"isFloating",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],eW.prototype,"metaPanel",void 0);_.N([_.h({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.A("design:type",String)],eW.prototype,"trailingIcon",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],eW.prototype,"isDarkTheme",void 0);_.N([_.h({selector:_.T9}),_.A("design:type",Boolean)],eW.prototype,"miniplayerIsActive",void 0);_.N([_.h({selector:function(G){return G.watch.playerState}}),
_.A("design:type",Number)],eW.prototype,"playerState",void 0);_.N([_.h({selector:_.ch}),_.A("design:type",Boolean)],eW.prototype,"isFullscreen",void 0);_.N([_.h({selector:_.XD}),_.A("design:type",Boolean)],eW.prototype,"isTheaterMode",void 0);_.N([_.h(),_.A("design:type",Object)],eW.prototype,"activeNowPlayingRenderer",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],eW.prototype,"moveThreeDotMenuToTopRow",null);
_.N([_.z("data","autoplayData","playlistLoopStateEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],eW.prototype,"nextVideoTitle",null);_.N([_.z("data","nextVideoTitle"),_.A("design:type",String),_.A("design:paramtypes",[])],eW.prototype,"nextVideoLabel",null);_.N([_.z("collapsed"),_.A("design:type",String),_.A("design:paramtypes",[])],eW.prototype,"buttonAriaLabel",null);
_.N([_.z("data","playlistId","longBylineText"),_.A("design:type",Object),_.A("design:paramtypes",[])],eW.prototype,"mixLongByLine",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],eW.prototype,"playlistLoopStateEntityKey",null);_.N([_.lq("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"onMouseEnter",null);
_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"onMouseLeave",null);_.N([_.h({reflectToAttribute:!0}),_.z("data","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],eW.prototype,"showNextVideoHeader",null);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"onRenderStamperFinished",null);
_.N([_.gx("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"collapseChanged",null);_.N([_.gx("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"hiddenChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"dataChanged",null);
_.N([_.z("isTheaterMode","isFullscreen"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],eW.prototype,"isFullBleedPlayer",null);_.N([_.gx("isTheaterMode","isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"onFullBleedPlayerChanged",null);_.N([_.gx("isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"onFullscreenChanged",null);
_.N([_.gx("playerState","miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"updateNowPlayingOverlay",null);_.N([_.lq("yt-playlist-lockup-now-playing-active"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],eW.prototype,"onPlaylistLockupNowPlaying",null);
_.N([_.gx("data","isDarkTheme"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eW.prototype,"colorPaletteChanged",null);_.N([_.O({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],eW);
_.nYj=_.xQ()(eW,"ytd-playlist-panel-renderer",function(){if(JNo===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);JNo=G}G=JNo;return G},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var V7s;var n_=function(){return _.C.apply(this,arguments)||this};
_.T(n_,_.C);n_.prototype.computeShouldButtonBeVertical=function(G,H){return G||H};
n_.prototype.onYtServiceRequestSent=function(G,H){(G=_.X(H.endpoint,_.TG))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.uP("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:G.status})):this.handleLikeEndpoint(G))};
n_.prototype.computelikeStatusEntityKey=function(G){return G==null?void 0:G.likeStatusEntityKey};
n_.prototype.handleLikeEndpoint=function(G){G.status==="LIKE"?this.JSC$17231_ytdDislikeToggleButtonRenderer.toggle(!1):G.status==="DISLIKE"?this.JSC$17231_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17231_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17231_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.u4.Object.defineProperties(n_.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var G;return ucu(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(G=this.likeStatusEntity)==null?void 0:G.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var G;if(this.data&&((G=this.data)==null||!G.hideDislikeButton)){var H;return ucu(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(H=this.likeStatusEntity)==null?void 0:H.likeStatus)}}}});
n_.prototype.onYtServiceRequestSent=n_.prototype.onYtServiceRequestSent;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],n_.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],n_.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],n_.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],n_.prototype,"vertical",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],n_.prototype,"textTransform",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],n_.prototype,"useShortsIcon",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],n_.prototype,"underIconLabel",void 0);_.N([_.h({value:"left"}),_.A("design:type",String)],n_.prototype,"buttonTooltipPosition",void 0);_.N([_.h(),_.A("design:type",Object)],n_.prototype,"overrides",void 0);
_.N([_.q6("#like-button"),_.A("design:type",Object)],n_.prototype,"JSC$17231_ytdLikeToggleButtonRenderer",void 0);_.N([_.q6("#dislike-button"),_.A("design:type",Object)],n_.prototype,"JSC$17231_ytdDislikeToggleButtonRenderer",void 0);_.N([_.z("data","likeStatusEntity.likeStatus","useShortsIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],n_.prototype,"likeButton",null);
_.N([_.z("data","likeStatusEntity.likeStatus","useShortsIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],n_.prototype,"dislikeButton",null);_.N([_.h({computed:"computelikeStatusEntityKey(data)"}),_.A("design:type",String)],n_.prototype,"likeStatusEntityKey",void 0);_.N([_.h({selectorArgs:["likeStatusEntityKey"],selector:fI}),_.A("design:type",Object)],n_.prototype,"likeStatusEntity",void 0);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],n_.prototype,"onYtServiceRequestSent",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],n_);
var $Ui=_.xQ()(n_,"ytd-like-button-renderer",function(){if(V7s===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);V7s=G}G=V7s;return G},{mode:1});_.XO8={};
_.XO8.YtConditionalRendererBehavior=[_.Y.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(G,H){var Z=this,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:if(!H)return Z.hidden=!0,Z.showSpinner=!1,l.return();if((Q=G)==null?0:(p=Q.visibilityCondition)==null?0:p.mode)switch(G.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return l.jumpTo(5);default:return l.jumpTo(6)}Z.showSpinner=
!1;Z.hidden=!0;return l.yield(Z.shouldShow_(G),4);case 4:Z.hidden=!l.yieldResult;l.jumpTo(0);break;case 5:return l.yield(Z.shouldShow_(G),8);case 8:Z.showSpinner=l.yieldResult;Z.hidden=!1;l.jumpTo(0);break;case 6:return Z.showSpinner=!1,l.yield(Z.shouldShow_(G),9);case 9:Z.hidden=!l.yieldResult,_.K0(l)}})},
shouldShow_:function(G){return G&&G.supportedDatas&&G.supportedDatas.rendererVisibilityConditionData&&G.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(G.supportedDatas.rendererVisibilityConditionData.showIf):G&&G.visibilityCondition&&G.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(G.visibilityCondition.showIf):G&&G.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(G.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(G){switch(G){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(G){switch(G){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var G=_.AZ(this.hostElement,"yt-get-mdx-status");return G.length==1&&G[0].connected},
isLocationPermissionGranted_:function(){var G;return _.S(function(H){return H.nextAddress==1?navigator.permissions?H.yield(navigator.permissions.query({name:"geolocation"}),3):H.jumpTo(2):H.nextAddress!=2?(G=H.yieldResult,H.return(Promise.resolve(G.state==="granted"))):H.return(Promise.resolve(!1))})}}];var cN8=RXf("yt-icon",{callbackProps:["onKeydown"]}),T0c=_.V("kevlar_use_wil_icons")?_.y(function(G){var H=G.icon;var Z=G.active;var Q=G.className;var p=G.style;var l=G.title;var q=G.size;var u=G.dataSelected;var B=G.dataDisabled;var t=G.role;var D=G.themeOverride;var d=G.animateIcon;var e=G.ariaHidden;var n=G.ariaExpanded;var c=G.ariaLabel;var W=G.tabindex;var M=G.id;var r=G.iconFilter;var w=G.gradientColor;var x=G.onKeydown;var U=function(){var H3=H==null?void 0:H(),qX=null,B3=void 0;H3&&(H3=pJx(H3),
H3=VWe(H3),H3.length&&(qX=H3[1],B3=H3[0]));return{iconName:qX,iconSetName:B3}},R=function(){return lmp(U().iconName,Z==null?void 0:Z(),void 0,q==null?void 0:q(),U().iconSetName,_.tp().resolve(_.Gt))},L=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:r==null?void 0:r(),iconColor:w==null?void 0:w()}};
return _.J(_.k,{cond:d,then:function(){return _.J(cN8,{icon:H,active:Z,className:Q,style:p,title:l,dataSelected:u,dataDisabled:B,role:t,themeOverride:D,ariaHidden:e,ariaExpanded:n,ariaLabel:c,tabindex:W,id:M,iconFilter:r,gradientColor:w,onKeydown:x})},
else:function(){return _.J(_.k,{cond:R,then:function(H3){return _.J("span",{class:_.bb("ytIconWrapperHost",Q),role:t,"aria-label":c,"aria-hidden":e,tabindex:function(){return isNaN(Number(W==null?void 0:W()))?void 0:Number(W==null?void 0:W())},
id:M,style:p,title:l,"on:keydown":_.Hh(function(qX){return void(x==null?void 0:x(qX))})},_.J(oeW,{data:H3,
options:L}))}})}})},"hg"):cN8;var fMt=function(G){var H=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];d$v();_.u7("ytglobal.ytUtilActivityCallback_",function(){_.xk(G,"yt-user-activity")});
new uc(function(){return H.JSC$17248_onMouseMove});
document.addEventListener("scroll",function(){return H.onScroll});
window.addEventListener("resize",function(){return H.onResize})},vYh=function(G,H,Z){H in G.eventJobIds||(Z=_.DG().addLowPriorityJob(function(){_.BW();
delete G.eventJobIds[H]},Z),G.eventJobIds[H]=Z)};
fMt.prototype.onScroll=function(G){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):G.target===document&&vYh(this,"scroll",200)};
fMt.prototype.onResize=function(){vYh(this,"resize",200)};
fMt.prototype.JSC$17248_onMouseMove=function(){vYh(this,"mousemove",100)};
_.IP=function(G){G.scrollEventsToIgnore+=1;G.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){G.scrollEventsToIgnore--},500))};var W0t=function(G){this.element=G;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
W0t.prototype.showFeedbackDialog=function(G,H,Z,Q){var p=zdc();if(!p)return!1;var l=XLv();l.productId=p;H&&(l.flow="submit",l.report={description:H});Z&&(zdc()==="59"?l.callback=_.bW(function(){_.yR("userFeedbackEvent",{});Z()}):l.callback=_.bW(Z));
l.bucket=Q||_.xI("GOOGLE_FEEDBACK_BUCKET","Other");K0k(l);G=M7m(this,"GFEEDBACK",G);try{_.BKt(l,G)}catch(q){return _.FU(q),!1}return!0};
W0t.prototype.showHelpDialog=function(G,H,Z){var Q=this,p=zdc();if(!p)return!1;var l={helpCenterPath:"/youtube",productData:M7m(this,"GUIDED_HELP",Z)};K0k(l);var q=XLv();q.context=G||l.productData.context||"default";q.defaultHelpArticleId=H;q.enableSendFeedback=!0;(_.GF("gapi.load")||function(u,B){return B()})("client",function(){try{var u=dhd(p,l);
if(_.V("web_always_load_chat_support")&&!Q.chatSupportLoaded)try{u.JSC$9984_loadChatSupport(q),Q.chatSupportLoaded=!0}catch(B){}u.startHelp(q)}catch(B){_.FU(B)}})};
var zdc=function(){var G=_.xI("GOOGLE_FEEDBACK_PRODUCT_ID");G||_.FU(Error("gi"));return G},K0k=function(G){G&&(G.locale=_.V("kevlar_help_use_locale")?_.xI("INNERTUBE_CONTEXT_HL","en"):_.xI("HTML_LANG","en"))},M7m=function(G,H,Z){var Q=G.productData;
delete Q.origin;Q.device=_.nW();var p;a:{if(p=document.createElement("canvas")){var l=p.getContext("experimental-webgl",{stencil:!0});if(l){var q=l.getExtension("WEBGL_debug_renderer_info");if(q){p=l.getParameter(q.UNMASKED_RENDERER_WEBGL);break a}}if(l=p.getContext("webgl")){p=l.getParameter(l.RENDERER);break a}}p=null}Q.gpu=p;Q.isSDC=!!_.xI("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(p=_.xI("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.oN.extend(Q,p);_.VUv(H,Q);_.$FR(Q);(G=_.xk(G.element,"yt-get-autonav-pause-debug-state"))&&
G.length&&(Q.autonav_pause_state=G[0]);G=_.jt();Q.browser_resolution=G.width+"\u00d7"+G.height+"@"+(window.devicePixelRatio||1)+"x";Z&&_.oN.extend(Q,Z);return Q};
W0t.prototype.resetProductData=function(){this.productData={}};var jy8=function(G){this.feedbackManager=new W0t(G)};
jy8.prototype.showFeedbackDialog=function(G,H,Z,Q){return this.feedbackManager.showFeedbackDialog(G,H,Z,Q)};
jy8.prototype.showHelpDialog=function(G,H,Z){return this.feedbackManager.showHelpDialog(G,H,Z)};var PIj=function(){this.baseUrl="";this.aTag=document.createElement("a")},i7t=function(G,H,Z){Z=Z===void 0?{}:Z;
Z.pbj||(Z.pbj=1);Z=_.GkX(H,Z);G.baseUrl&&Z&&!_.IJ(Z)[1]&&!_.qY(Z)&&(H=G.baseUrl,Iu(H,"/")&&(H=H.slice(0,-1)),_.le(Z,"/")&&(Z=Z.slice(1)),Z=H+"/"+Z);AN(G.aTag,_.y2(Z||""));return G.aTag.href};
PIj.prototype.fetchData=function(G){return _.tUb(G)};
PIj.prototype.postData=function(G,H){var Z={method:"POST"};if(H){for(var Q=_.I(Object.keys(H)),p=Q.next();!p.done;p=Q.next()){p=p.value;var l=H[p];_.AM(l)&&(H[p]=JSON.stringify(l))}Z.postParams=H}return _.tUb(G,Z)};
_.O7T=function(G,H,Z,Q,p){G=i7t(G,H,Z);if(!G)throw Q=Error("hi"),Object.assign(Q,{params:H}),Q;return _.tUb(G,p,Q)};
PIj.prototype.requestDataForServiceEndpoint=function(G,H){if(_.X(G,_.TDU))return this.fetchData("/getAccountSwitcherEndpoint");H=H||{};var Z=_.X(G,nON);Z?H.se=Z.base64EncodedServiceEndpoint:H.sej=JSON.stringify(G);(Z=_.$k())&&_.V("enable_service_ajax_csn")&&(H.csn=Z);H.theme=_.Ml();_.X(G,X0W)&&_.xI("DELEGATION_CONTEXT")&&(H.delegation_context=JSON.stringify(_.xI("DELEGATION_CONTEXT")));Z=null;for(var Q in G)if(Iu(Q,"Endpoint")||Iu(Q,"Command")){Z=Q;break}if(!Z){var p=Error("ii");Object.assign(p,{params:G});
_.YOe(p,"WARNING");return new _.T_(function(q,u){u(p)})}Q={name:Z};
var l;(Z=(l=_.X(G,_.GD))==null?void 0:l.signal)&&(Q.signal=Z);(l=_.p$(window.location.href))&&l.internalcountrycode&&(Q.internalcountrycode=l.internalcountrycode);l="/service_ajax";_.V("debug_forward_web_query_parameters")&&(l=_.JUj(l,window.location.search));l=_.g7(l,Q);G.clickTrackingParams&&_.aO(l,{itct:G.clickTrackingParams});return this.postData(l,H)};_.rNo=new _.Gv("GFEEDBACK_TOKEN");var wOD;var hdt;var CID;var iqm;var Vc=function(){var G=_.C.apply(this,arguments)||this;G.compact=!1;G.dismissButtonDisabled=!1;G.shouldRenderReasonAsFormattedString=!_.V("web_player_error_message_reason_as_formatted_string_killswitch");return G};
_.T(Vc,_.C);Vc.prototype.computeHasIcon_=function(G){return!!G};
Vc.prototype.isSignInIcon_=function(G){return G=="yt-icons:prompted_sign_in"};
Vc.prototype.onDismissButtonClick=function(){var G=this,H=this.data.disableOnClick,Z,Q=(Z=this.data.dismissButton)==null?void 0:Z.buttonRenderer;H&&!this.dismissButtonDisabled&&Q&&setTimeout(function(){G.dismissButtonDisabled=!0},0)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.XO8.YtConditionalRendererBehavior),_.A("design:type",Object)],Vc.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Vc.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],Vc.prototype,"icon_",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.A("design:type",Boolean)],Vc.prototype,"hasIcon_",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.A("design:type",Boolean)],Vc.prototype,"signInIcon_",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Vc.prototype,"compact",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Vc.prototype,"dismissButtonDisabled",void 0);
_.N([_.h({type:Boolean}),_.A("design:type",Object)],Vc.prototype,"shouldRenderReasonAsFormattedString",void 0);_.N([_.fH({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Vc);
_.m(Vc,"yt-player-error-message-renderer",function(){if(iqm===void 0){var G=document.createElement("template");_.f(G,'\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    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;CID===void 0&&(CID=document.createElement("template"));var Q=CID;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);iqm=G}G=iqm;return G},{mode:2});var Oqo;var aMc;var $1=function(){return _.C.apply(this,arguments)||this};
_.T($1,_.C);$1.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
$1.prototype.computeIcon_=function(G){return G?"yt-icons:"+G.iconType.toLowerCase():"error_outline"};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$1.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],$1.prototype,"icon_",void 0);_.N([_.fH({is:"yt-player-kav-renderer",disableElementRegistration:!0})],$1);
_.m($1,"yt-player-kav-renderer",function(){if(aMc===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Oqo===void 0&&(Oqo=document.createElement("template"));var Q=Oqo;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);aMc=G}G=aMc;return G},{mode:2});var fB2=_.CM(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.RX(_.y(function(G){var H=_.IA("div"),Z=_.I(_.Ty(0,void 0,"jxh75d")),Q=Z.next().value,p=Z.next().value;Z=_.I(_.Ty(null,void 0,"F5Zm8"));var l=Z.next().value,q=Z.next().value;_.mR(function(){vBR(H.value,p,q);H.value.scrollIntoView()});
Z=Wpe.bind(null,G.data,Q);_.Bx("resize",function(){var u=l();if(Q()===1&&u!==null){var B;(B=window.grecaptcha)==null||B.reset(u)}});
return _.J("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.J("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.J("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var u,B;return(u=G.data().accessibility)==null?void 0:(B=u.accessibilityData)==null?void 0:B.label}),_.J(_.Fe,{text:Z,
className:_.bb("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.J("div",{el:H,class:"ytwPlayerCaptchaViewModelGridItem"})))},"ig"),"yt-player-captcha-view-model",{props:{data:_.oX}});var zzM=!1;_.yNc=_.y(function(G){var H=G.data;return _.J("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.J(_.k,{cond:function(){return H().icon},
then:function(Z){return _.J("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.J(_.ib,{data:Z,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.J(_.k,{cond:function(){return H().title},
then:function(Z){return _.J("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.J(_.Fe,{text:Z}))}}),_.J(_.k,{cond:function(){return H().description},
then:function(Z){return _.J("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.J(_.Fe,{text:Z}))}}),_.J(_.SP,{data:function(){return H().primaryButton}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
className:"interstitialViewModelFlexItem"})}}),_.J(_.SP,{data:function(){return H().secondaryButton}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
className:"interstitialViewModelFlexItem"})}}))},"jg");
_.yNc.idomCompat=!0;var oYi=_.y(function(G){var H=G.data;_.KA();return _.J("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.J("div",{class:"playerInterstitialRendererScrim"},_.J(_.SP,{data:function(){return H().content}},{interstitialViewModel:_.yNc})))},"kg");
oYi.idomCompat=!0;_.RX(oYi,"yt-player-interstitial-renderer",{props:{data:_.b3}});var Xm=function(){var G=_.C.apply(this,arguments)||this;G.noBackground=!1;G.compact=!1;G.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return G};
_.T(Xm,_.C);Xm.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"}}}};
Xm.prototype.onUpdatePlayerErrorMessageCommand_=function(G){if(_.X(G,rfa)){var H;if(G=(H=_.X(G,rfa))==null?void 0:H.newPlayerErrorMessageRenderer)this.data=G}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Xm.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Xm.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Xm.prototype,"status",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Xm.prototype,"noBackground",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Xm.prototype,"compact",void 0);_.N([_.fH({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Xm);
var mUq=_.xQ()(Xm,"yt-playability-error-supported-renderers",function(){if(hdt===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;wOD===void 0&&(wOD=document.createElement("template"));var Q=wOD;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);hdt=G}G=hdt;return G},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var UU8=RXf("ytd-button-renderer");var KpM=void 0,jmb=void 0;var wL2=new s1G;var R9=new _.Gv("ENTITY_STATE_TOKEN"),cc=new _.Gv("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Rd8=function(G){this.store=G;this.xRZ=new _.pP4},vDU=function(G,H,Z){var Q,p;
if(!(p=((Q=H.playabilityStatus)==null?void 0:Q.status)!=="OK")){G=G.store;var l;p=H.offlineState&&((l=H.videoDetails)==null?0:l.videoId)?_.V("enable_pl_r_c_cd")?RBo(G.getState().entities,H.videoDetails.videoId):!!e1u(G.getState().entities,H.videoDetails.videoId):!1}if(p)return!0;p=aBv(H);if(p===1){if(_.V("ab_v_vid_sig")){var q,u=(q=H.videoDetails)==null?void 0:q.videoId;if(!u||!Z||u!==Z){var B;H=new _.C$("282054944_vid",{wyH:Z,wNO:(B=H.videoDetails)==null?void 0:B.videoId});_.me(H)}}return!0}hgv=
0;var t,D;B=(u=H.auxiliaryUi)==null?void 0:(t=u.messageRenderers)==null?void 0:(D=t.bkaEnforcementMessageViewModel)==null?void 0:D.displayType;if(p!==3&&(B==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||B==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;B={reason:_.Nm(_.Zg("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.V("ks_something_wrong_learn_more")?HzM("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Nm(_.Zg("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:_.Nm("282054944")};N0s(H,{playerErrorMessageRenderer:B});return!1},WYb=function(G,H){if(bdf(H)){_.p3(1,!0);
var Z=(Z=bdf(H))&&_.MUX()?Z:void 0;Z?(N0s(H,{enforcementMessageViewModel:Z}),G.xRZ.increment("IN_PLAYER"),_.p3(5)):(G.xRZ.increment("SKIP_DISPLAY"),_.p3(2))}},N0s=function(G,H){G.playabilityStatus=Object.assign({},G.playabilityStatus,{status:"ERROR",
errorScreen:H});G.videoDetails=void 0};
Rd8.prototype.handleResponse=function(G,H){if(G.playabilityStatus){var Z,Q,p,l=(H==null?void 0:(Z=H.innerTubeRequest)==null?void 0:Z.videoId)||(H==null?void 0:(Q=H.innerTubeRequest)==null?void 0:(p=Q.playerRequest)==null?void 0:p.videoId);vDU(this,G,l)&&WYb(this,G)}};
Rd8[kM]=[R9];var TCf=new _.Gv("ADBLOCK_DETECTION_SERVICE_TOKEN");var rp=function(G){this.eAp=G};
rp.prototype.bindInnertubeChallengeFetcher=function(G){this.eAp.bicf(G)};
rp.prototype.registerChallengeFetchedCallback=function(G){this.eAp.bcr(G)};
rp.prototype.getLatestChallengeResponse=function(){return this.eAp.blc()};var ANj;ANj=_.CM(["https://static.doubleclick.net/instream/ad_status.js"]);_.xUh=_.VB(ANj);var F0i;_.TY=function(G,H,Z){var Q=this;this.network=G;this.options=H;this.networkStatusManager=Z;this.lr=null;if(H.useBotguardEverywhere){var p=new _.sD;this.lr=p.promise;_.Qf.ytAtRC&&_.JW(_.Ui,function(){var l,q;return _.S(function(u){if(u.nextAddress==1){if(!_.Qf.ytAtRC)return u.return();l=L06(null);return u.yield(Q.fj(l),2)}q=u.yieldResult;_.Qf.ytAtRC&&_.Qf.ytAtRC(JSON.stringify(q));_.K0(u)})});
Rzj().then(function(l){var q,u,B,t;return _.S(function(D){if(D.nextAddress==1)return l.bindInnertubeChallengeFetcher(function(d){return Q.fj(L06(d))}),D.yield(mVv(),2);
q=D.yieldResult;u=l.getLatestChallengeResponse();B=u.challenge;if(!B)throw Error("ji");t={challenge:B,bG:P8(B),vm:q,bgChallenge:new Mc};p.resolve(t);l.registerChallengeFetchedCallback(function(d){d=d.challenge;if(!d)throw Error("ki");d={challenge:d,bG:P8(d),vm:q,bgChallenge:new Mc};Q.lr=Promise.resolve(d)});
_.K0(D)})})}else H.preload&&EYt(this,new Promise(function(l){_.wM(_.Ui,function(){l(Y_k(Q))},0)}))};
F0i=function(G){var H={preload:!0,useBotguardEverywhere:!0},Z=!1;if(typeof H==="boolean")var Q={preload:H};else typeof H==="undefined"?Q={preload:!0}:(Q=H,Z=!!H.a8O);H=Z?void 0:new _.sN;_.TY.instance=new _.TY(G,Q,H);return _.TY.instance};
_.TY.prototype.kMI=function(){var G=this;return _.S(function(H){return H.nextAddress==1?H.yield(Promise.race([G.lr,null]),2):H.return(!!H.yieldResult)})};
_.TY.prototype.jvY=function(G,H,Z){var Q=this,p,l,q;return _.S(function(u){Q.lr===null&&EYt(Q,Y_k(Q));p=!1;l={};q=function(){var B,t,D;return _.S(function(d){switch(d.nextAddress){case 1:return d.yield(Q.lr,2);case 2:B=d.yieldResult;l.challenge=B.challenge;if(!B.vm){"c1a"in B.bG&&(l.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");d.jumpTo(3);break}t=Object.assign({},{c:B.challenge,e:G},H);_.XV(d,4);p=!0;return d.yield(B.vm.snapshot({ko:t}),6);case 6:(D=d.yieldResult)?l.webResponse=D:l.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Za(d,3);break;case 4:_.Wg(d),l.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(G==="ENGAGEMENT_TYPE_PLAYBACK"){var e=B.bG,n={};if(e.c6a){var c=Number(_.xI("DCLKSTAT",0));n.reportingStatus=String(Number(e.c)^(isNaN(c)?0:c))}e.c6b&&(n.broadSpectrumDetectionResult=String(Number(e.c)^Number(_.xI("CATSTAT",0))));l.adblockReporting=n}return d.return(l)}})};
return u.return(Promise.race([q(),bqc(Z,function(){var B=Object.assign({},l);p&&(B.error="ATTESTATION_ERROR_VM_TIMEOUT");return B})]))})};
var L06=function(G){var H={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};G&&(H.interpreterHash=G);return H},Y_k=function(G,H){H=H===void 0?0:H;
var Z,Q,p,l,q,u,B,t,D,d,e,n;return _.S(function(c){switch(c.nextAddress){case 1:Z=L06(lkw().pt1);if(_.V("att_fet_ks"))return _.XV(c,7),c.yield(G.fj(Z),9);_.XV(c,4);return c.yield(GO8(G,Z),6);case 6:q=c.yieldResult;p=q.kGH;l=q.jbO;Q=q;_.Za(c,3);break;case 4:return _.Wg(c),_.Rp(Error("li`"+H)),H06(G,864E5),c.return({challenge:"",bG:{},vm:void 0,bgChallenge:void 0});case 9:Q=c.yieldResult;if(!Q)throw Error("mi");if(!Q.challenge)throw Error("ni");p=Q.challenge;l=P8(p);if("c1a"in l&&(!Q.bgChallenge||!Q.bgChallenge.program))throw Error("oi");
_.Za(c,3);break;case 7:u=_.Wg(c);_.Rp(u);H++;if(H>=5)return _.Rp(Error("li`"+H)),H06(G,864E5),c.return({challenge:"",bG:{},vm:void 0,bgChallenge:void 0});B=1E3*Math.pow(2,H-1)+Math.random()*1E3;return c.return(new Promise(function(W){_.wM(_.Ui,function(){W(Y_k(G,H))},B)}));
case 3:t=UFb(l);H06(G,t*1E3);D=void 0;if(!("c1a"in l&&Q.bgChallenge)){c.jumpTo(10);break}d=mFf(Q.bgChallenge);_.XV(c,11);return c.yield(Ikw(lkw(),d),13);case 13:_.Za(c,12);break;case 11:return e=_.Wg(c),_.Rp(e),c.return({challenge:p,bG:l,vm:D,bgChallenge:d});case 12:return _.XV(c,14),D=new _.rl({challenge:d,bc3:{dY:"aGIf"}}),c.yield(D.hXW,16);case 16:_.Za(c,10);break;case 14:n=_.Wg(c),_.Rp(n),D=void 0;case 10:return c.return({challenge:p,bG:l,vm:D,bgChallenge:d})}})};
_.TY.prototype.fj=function(G){var H=this,Z;return _.S(function(Q){Z=H.networkStatusManager;if(!Z||Z.isNetworkAvailable())return Q.return(H.network.fj(G));_.fo("att_pna",void 0,"attestation_challenge_fetch");return Q.return(new Promise(function(p){Z.listenOnce("publicytnetworkstatus-online",function(){H.network.fj(G).then(p)})}))})};
var ssj=function(G){if(!G)throw Error("mi");if(!G.challenge)throw Error("ni");var H=G.challenge,Z=P8(H);if("c1a"in Z&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("oi");return Object.assign({},G,{kGH:H,jbO:Z})},GO8=function(G,H){var Z,Q,p,l,q;
return _.S(function(u){switch(u.nextAddress){case 1:Z=void 0,Q=0,p={};case 2:if(!(Q<5)){u.jumpTo(4);break}if(!(Q>0)){u.jumpTo(5);break}p.bgr=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return u.yield(new Promise(function(B){return function(t){_.wM(_.Ui,function(){t(void 0)},B.bgr)}}(p)),5);
case 5:return _.XV(u,7),u.yield(G.fj(H),9);case 9:return l=u.yieldResult,u.return(ssj(l));case 7:Z=q=_.Wg(u),q instanceof Error&&_.Rp(q);case 8:Q++;p={bgr:void 0};u.jumpTo(2);break;case 4:throw Z;}})},EYt=function(G,H){G.lr=H},Z0q=function(G){var H,Z,Q;
return _.S(function(p){if(p.nextAddress==1)return p.yield(Promise.race([G.lr,null]),2);H=p.yieldResult;var l=Y_k(G);G.lr=l;(Z=H)==null||(Q=Z.vm)==null||Q.dispose();_.K0(p)})},H06=function(G,H){var Z=Date.now()+H,Q=function(){var p;
return _.S(function(l){p=Z-Date.now();return p<1E3?l.yield(Z0q(G),0):(_.wM(_.Ui,Q,Math.min(p,6E4)),l.jumpTo(0))})};
Q()},bqc=function(G,H){return new Promise(function(Z){_.wM(_.Ui,function(){Z(H())},G)})};var Qss=function(){};
Qss.prototype.processContext=function(G){var H=_.TY.instance;if(!H)return _.II();var Z=YGR(G);return Z?new gU(H.jvY(Z,xFe(G),500).then(function(Q){var p;(G==null?0:(p=G.innerTubeRequest)==null?0:p.context)||(G.innerTubeRequest.context={});p=G.innerTubeRequest.context;p.request||(p.request={});p.request.attestationResponseData=Q})):_.II()};var pgj=function(G){this.innertubeTransportService=G};
pgj.prototype.fj=function(G){_.fo("att_fsr",void 0,"attestation_challenge_fetch");return _.GP(this.innertubeTransportService,G,_.U7(_.aFx)).then(function(H){_.fo("att_frr",void 0,"attestation_challenge_fetch");return H})};_.l6j=function(G){this.innertubeTransportService=G};var gbc=new _.Gv("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var I6D=function(){},SPi=function(G,H,Z,Q,p){var l=_.xI("YPC_MB_URL");
_.hJW(l).then(function(){qPa(l,G,H,Z,Q,p)})},qPa=function(G,H,Z,Q,p,l){try{var q=_.a9.payments.business.integration,u=_.a9.payments.business.integration.Style.create().withMaterialDesignStyle(),B=q.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.V("enable_window_constrained_buy_flow_dialog")&&(B=B.usingPopupStyle("windowConstrained"));l&&(B=B.usingCloseCallback(l));var t=Z?Z:_.xI("YPC_GB_LANGUAGE"),D=_.xI("SESSION_INDEX");q.bootstrap.fromPaymentsUrl(G);q.bootstrap.asMashupMode(B).usingGaiaIndex(D).usingLocale(t).usingStyle(u).usingDefaultActivityStatusChangeHandler().inStandaloneContext(q.standaloneContextAuthId.forGaia()).purchaseManager(H,function(d){Q&&Q(d)}).load(void 0,p)}catch(d){throw p&&p(d),_.me(d),d;
}};var uVk=new _.Gv("PURCHASE_MANAGER_TOKEN");var BJm=function(){var G=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return G.videos},
getContinuationsPresent:function(){return G.continuationsPresent},
setVideos:function(H){G.videos=H},
getRecommendedVideos:function(){return G.recommendedVideos},
setRecommendedVideos:function(H){G.recommendedVideos=H}}};
BJm.prototype.addVideos=function(G){G&&(this.videos=G.filter(function(H){return!!_.b4W(H)}).map(function(H){var Z=_.b4W(H);
a:{var Q;if(H.playlistVideoRenderer&&((Q=H.playlistVideoRenderer)==null?0:Q.voteSortTiebreaker))var p=H.playlistVideoRenderer.voteSortTiebreaker;else{if(_.X(H,hl)){var l;if(Q=(p=_.X(H,hl))==null?void 0:(l=p.playlistItemData)==null?void 0:l.voteSortTiebreaker){p=Q;break a}}p=""}}return{itemId:Z,videoId:_.sGM(H),voteCount:_.ZhW(H),voteSortTiebreaker:p}}),this.continuationsPresent=!!_.X(G[G.length-1],_.Oz))};
var Jwa=function(G,H){return G.videos.findIndex(function(Z){return Z.itemId===H})},tlt=function(G,H){return G.recommendedVideos.findIndex(function(Z){return Z.itemId===H})},kOa=function(G){G={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:G}}}}};_.tp().resolve(_.Dk).resolveCommand(G)};var D_q=function(){BJm.apply(this,arguments)};
_.T(D_q,BJm);
var ixG=function(G,H,Z,Q){if(!G.parentElem)throw Error("ti");var p=Jwa(G,H);p===-1&&(p=tlt(G,H),p=p!==-1?p+G.videos.length:-1);if(p===-1)throw Error("ui");var l=p>=G.videos.length?G.recommendedVideos[p-G.videos.length]:G.videos[p];l.voteCount=Z;l.voteSortTiebreaker=Date.now().toString();p>=G.videos.length?G.recommendedVideos.splice(p-G.videos.length,1):G.videos.splice(p,1);var q=G.videos;for(var u=0,B=q.length-1;u<=B;){var t=Math.floor((u+B)/2);if(q[t].voteCount<l.voteCount)B=t-1;else if(q[t].voteCount>l.voteCount)u=
t+1;else{a:{var D=l.voteSortTiebreaker;var d=q[t].voteSortTiebreaker;if(D.length!==d.length)D=D.length>d.length;else{for(var e=0;e<D.length;e++){var n=D.charCodeAt(e),c=d.charCodeAt(e);if(n>c){D=!0;break a}if(n<c)break}D=!1}}D?B=t-1:u=t+1}}q=u;if(q===-1)throw Error("vi");G.videos.splice(q,0,l);p!==q&&d_i(G,p,q,H,Z,Q)},d_i=function(G,H,Z,Q,p,l){var q,u=(q=G.parentElem)==null?void 0:q.children,B=Math.min(H,Z),t=Math.max(H,Z);
if(u)for(q=B;q<=t;q++)u[q].style.viewTransitionName="item-"+String(q);document.startViewTransition(function(){if(G.parentElem){var D=G.parentElem.children;if(!(!D||H<0||H>=D.length||Z<0||Z>=D.length)){var d=D[H];if(d){d.remove();G.showRefreshPill=Z>=G.videos.length-1&&G.continuationsPresent;if(!G.showRefreshPill){D=D[Z]||null;var e;(e=G.parentElem)==null||e.insertBefore(d,D)}_.N5(G.parentElem,"yt-update-video-data-voting-animation",{toIdx:Z,itemId:Q,newVoteCount:p,voteStatus:l,hideItem:G.showRefreshPill})}}}}).finished.then(function(){if(u)for(var D=
B;D<=t;D++)u[D].style.viewTransitionName="";
if(G.showRefreshPill)kOa(_.Zg("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var d;if(d=D=(d=G.parentElem)==null?void 0:d.children[Z])d=D.getBoundingClientRect(),D=d.bottom,d=!(d.top>=0&&D<=G.clientHeight);d&&(d=_.QY(H>Z?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(H-Z)),kOa(d))}})};var Vlc=function(G,H){var Z=this;G?this.innertubeTransportServicePromise=Promise.resolve(G):H&&(this.innertubeTransportServicePromise=H(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Ih(3E3,function(Q){return eLL(Z,Q)},0);
this.validateMiniAppVideoIdRateLimiter=new Ih(3E3,function(Q){return nbo(Z,Q)},1)},EAj=function(G,H){G.JSC$17360_miniAppId=H;
G.reportMiniAppValueRateLimiter=new Ih(3E3,function(Z){return eLL(G,Z)},0);
G.validateMiniAppVideoIdRateLimiter=new Ih(3E3,function(Z){return nbo(G,Z)},1)},FsL=function(G,H){var Z;
return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.reportMiniAppValueRateLimiter.call(H),2);Z=Q.yieldResult;return Q.return([Z,H])})},eLL=function(G,H){var Z,Q,p,l,q,u,B;
return _.S(function(t){switch(t.nextAddress){case 1:return t.yield(G.innertubeTransportServicePromise,2);case 2:return Z=t.yieldResult,Q=_.U7(NYw),p=Date.now(),l={externalPostId:G.JSC$17360_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(p/1E3),nanos:Math.round(p%1E3*1E6)},intValue:""+H}},_.XV(t,3),t.yield(_.GP(Z,l,Q),5);case 5:q=t.yieldResult;_.Za(t,4);break;case 3:throw u=_.Wg(t),u;case 4:if(q){if("error"in q&&q.error)throw q.error;if(q.errorMetadata)throw Error("wi`"+
q.errorMetadata.status);if(B=q.userStatResult)return t.return(B);throw Error("xi");}throw Error("yi");}})},G4s=function(G){var H,Z,Q,p,l;
_.S(function(q){switch(q.nextAddress){case 1:return q.yield(G.innertubeTransportServicePromise,2);case 2:return H=q.yieldResult,Z=_.U7(NYw),Q={externalPostId:G.JSC$17360_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.XV(q,3),q.yield(_.GP(H,Q,Z),5);case 5:p=q.yieldResult;_.Za(q,4);break;case 3:throw l=_.Wg(q),l;case 4:if(p==null)throw Error("yi");if("error"in p&&p.error)throw p.error;if(p.errorMetadata)throw Error("wi`"+p.errorMetadata.status);_.K0(q)}})};
Vlc.prototype.flush=function(){var G=this;return _.S(function(H){return H.nextAddress==1?H.yield(G.reportMiniAppValueRateLimiter.flush(),2):H.yield(G.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var bmL=function(G,H){return _.S(function(Z){return Z.nextAddress==1?Z.yield(G.validateMiniAppVideoIdRateLimiter.call(H),2):Z.return(Z.yieldResult)})},nbo=function(G,H){var Z,Q,p,l,q,u;
return _.S(function(B){switch(B.nextAddress){case 1:return B.yield(G.innertubeTransportServicePromise,2);case 2:return Z=B.yieldResult,Q=_.U7(ie7),p={videoId:H},_.XV(B,3),B.yield(_.GP(Z,p,Q),5);case 5:l=B.yieldResult;_.Za(B,4);break;case 3:throw q=_.Wg(B),q;case 4:if(l){if("error"in l&&l.error)throw l.error;if(l.errorMetadata)throw Error("wi`"+l.errorMetadata.status);if(u=l.playabilityStatus)return B.return(u.status);throw Error("zi");}throw Error("yi");}})};
Vlc[kM]=[_.Jp(_.t0),_.Jp(Vf_)];var $_i=function(){this.clientData=new Map};
$_i.prototype.getData=function(G){return this.clientData.get(G)};var XgL=function(G){this.store=G};
XgL.prototype.handleResponse=function(G){(G=_.X(G.frameworkUpdates,CI))&&_.lX(G,this.store)};
XgL[kM]=[_.oT];var cwD=new _.Gv("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var TJ8,f6L;_.f_=new _.Gv("FLOW_STATE_MANAGER_TOKEN");TJ8=function(){this.flowStates=new Map};
f6L=function(G,H){G=_.I(G.flowStates.values());for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.flowRenderer.targetId===H)return Z};var vb6=function(G,H){this.JSC$17385_reduxStore=G;this.JSC$17385_flowStateManager=H};
_.T(vb6,Ff);
vb6.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e,n,c;return _.S(function(W){Z=_.X(G,_.FLp);Q=Z.stepId;p=Z.targetId;l=f6L(H.JSC$17385_flowStateManager,p);u=(q=l)==null?void 0:q.flowRenderer;B=u.flowStateEntityKey;t=_.CA(H.JSC$17385_reduxStore.getState(),B);if(!t)return W.return();D=t.currentStepId;n=(e=(d=t)==null?void 0:d.stepIdStack)!=null?e:[];c=D===n[n.length-1]?Q:D;H.JSC$17385_reduxStore.dispatch(_.eO("flowStateEntity",B,{currentStepId:Q,stepIdStack:[c]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.K0(W)})};
var WiD=function(){vb6.apply(this,arguments)};
_.T(WiD,vb6);WiD[kM]=[_.oT,_.f_];var zLD=function(G,H,Z){this.JSC$17392_reduxStore=G;this.JSC$17392_flowStateManager=H;this.JSC$17392_commandHandler=Z};
_.T(zLD,Ff);
zLD.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e,n,c,W;return _.S(function(M){Q=_.X(G,_.bF4);p=Q.targetId;l=f6L(Z.JSC$17392_flowStateManager,p);u=(q=l)==null?void 0:q.flowRenderer;B=u.flowStateEntityKey;t=_.CA(Z.JSC$17392_reduxStore.getState(),B);e=[].concat(_.OP((d=(D=t)==null?void 0:D.stepIdStack)!=null?d:[]));n=e.pop();((c=t)==null?void 0:c.currentStepId)===n&&(n=e[e.length-1]);if(!n)return(W=Q.onFirstStepCommand)&&Z.JSC$17392_commandHandler.resolveCommand(W,H),M.return();
Z.JSC$17392_reduxStore.dispatch(_.eO("flowStateEntity",B,{currentStepId:n,stepIdStack:e}));_.K0(M)})};
var Kih=function(){zLD.apply(this,arguments)};
_.T(Kih,zLD);Kih[kM]=[_.oT,_.f_,_.Dk];var MlL=function(G,H){this.innertubeTransportService=G;this.JSC$17397_commandHandler=H};
_.T(MlL,Ff);MlL.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u;return _.S(function(B){if(B.nextAddress==1){Q=_.X(G,Gm4);if(!Q)return B.return();_.XV(B,2);return B.yield(_.wb(Z.innertubeTransportService,G),4)}if(B.nextAddress!=2){p=B.yieldResult;if(!p)return B.return();(l=p.updateFlowCommand)&&Z.JSC$17397_commandHandler.resolveCommand(l,H);return _.Za(B,0)}_.Wg(B);(u=(q=Q)==null?void 0:q.onFailureCommand)&&Z.JSC$17397_commandHandler.resolveCommand(u,H);_.K0(B)})};
var jsD=function(){MlL.apply(this,arguments)};
_.T(jsD,MlL);jsD[kM]=[_.t0,_.Dk];var PEm=function(G,H){this.JSC$17403_flowStateManager=G;this.JSC$17403_commandHandler=H};
_.T(PEm,Ff);
PEm.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q;return _.S(function(u){Q=_.X(G,_.sHa);p=Q.targetId;l=f6L(Z.JSC$17403_flowStateManager,p);if(!l)return u.return(Promise.resolve());var B=l,t=(q=Q.steps)!=null?q:[],D,d=(D=B.flowRenderer.steps)!=null?D:[];t=[].concat(_.OP(d),_.OP(t));B.flowRenderer.steps=t;Q.flowContinuationCommand&&(l.flowRenderer.flowContinuationCommand=Q.flowContinuationCommand);Q.entityUpdateCommand&&Z.JSC$17403_commandHandler.resolveCommand(Q.entityUpdateCommand,H);
return u.return(Promise.resolve())})};
var vc=function(){PEm.apply(this,arguments)};
_.T(vc,PEm);vc[kM]=[_.f_,_.Dk];var rwj={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 wgi=new _.Gv("ICON_SET_TOKEN"),hLD=new _.Gv("ICON_URL_PROVIDER_TOKEN"),CEi=new _.Gv("PREFETCH_ICONS_TOKEN"),i08=new _.Gv("ICON_MAP_FN_TOKEN");var Wc={},O06=(Wc.ACCESS_TIME="clock",Wc.ACCOUNT_BOX=_.xI("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",Wc.ACCOUNT_BOX_CAIRO="person_account_cairo",Wc.ACCOUNT_CIRCLE="person_circle",Wc.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Wc.ACCOUNT_LINKED="account_link_success",Wc.ACCOUNT_UNLINKED="account_link",Wc.ADD_FRIEND="people",Wc.ADD_MODERATOR="shield_add",Wc.ADD_TO_LIBRARY="bookmark",Wc.ADD_TO_PLAYLIST="add",Wc.ADD_TO_QUEUE_TAIL="list_queue",Wc.ADD_TO_REMOTE_QUEUE="list_music",
Wc.ADD_TO_WATCH_LATER="clock",Wc.ADD_VIDEO_LINK="film_strip_add",Wc.ALERT_WARN_RED="alert_triangle",Wc.ARROW_BACK="arrow_left",Wc.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Wc.ARROW_DROP_DOWN="chevron_down",Wc.ARROW_DROP_UP="chevron_up",Wc.ARROW_FORWARD="arrow_right",Wc.ARTIST="person_music",Wc.AUDIOTRACK="audio",Wc.AUTO_AWESOME="sparkle",Wc.AVATAR_ANONYMOUS="person_circle",Wc.AVATAR_LOGGED_OUT="person_circle",Wc.BACK="arrow_left",Wc.BAR_CHART="bar_graph",Wc.BLOCK="slash_circle_left",
Wc.BLOCK_USER="slash_circle_left",Wc.BOOKMARK_BORDER="bookmark",Wc.BREAKING_NEWS_ALT_1="article_alert",Wc.BROADCAST_CAIRO="podcast_cairo",Wc.BUG_REPORT="bug",Wc.CAMERA_ALT="camera",Wc.CAMPAIGN="megaphone",Wc.CANCEL="x_circle",Wc.CAPTIONS="closed_caption",Wc.CAST_OUTLINE="chromecast",Wc.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Wc.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Wc.CHAT="message_bubble_left",Wc.CHAT_BUBBLE="message_bubble_empty",Wc.CHAT_SPARK="spark_message_bubble_left",Wc.CHECK_BOX_OUTLINE_BLANK=
"box_empty",Wc.CHECK_CIRCLE_OUTLINE="check_circle",Wc.CHECK_CIRCLE_THICK="check_circle",Wc.CLARIFY="article_clarify",Wc.CLOSED_CAPTION_SELECTED="closed_caption",Wc.CLOSE="x_mark",Wc.CLOUD_UPLOAD="cloud_arrow_up",Wc.COLLAPSE="chevron_up",Wc.COLLAPSE_CAIRO="chevron_up_cairo",Wc.COLLECTION="layers",Wc.COLOR_LENS="palette",Wc.COMMENT="message_bubble_right",Wc.CONSENT_SHIELD="person_shield",Wc.CONTENT_CUT="scissors",Wc.CONTENT_CUT_CAIRO="scissors_cairo",Wc.COURSE=_.V("web_enable_course_icon_update")?"creator_academy":
"lightbulb",Wc.COURSE_CAIRO=_.V("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",Wc.CREATION_LIVE="radar_live",Wc.CREATION_POST="box_pencil",Wc.CREATION_UPLOAD="my_videos",Wc.CREATION_UPLOAD_RED="upload",Wc.CREATOR_METADATA_MONETIZATION="dollar_sign",Wc.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Wc.CREATOR_STUDIO="youtube_studio",Wc.DASHBOARD="grid_asymmetrical",Wc.DELETE="trash_can",Wc.DELETE_SWEEP="trash_can",Wc.DESKTOP="laptop",Wc.DISLIKE="thumb_down",Wc.DISLIKE_SELECTED=
"thumb_down",Wc.DISMISSAL="x_mark",Wc.DISMISS_QUEUE="list_remove",Wc.DONE_ALL="check_double",Wc.DOWN_ARROW="arrow_down",Wc.DO_NOT_DISTURB="slash_circle_left",Wc.DRAFT="paper_corner_folded",Wc.DRAG_HANDLE="bars_2",Wc.EDIT="pencil",Wc.EMOJI="face_very_happy",Wc.EMOJI_FLAGS="flag",Wc.EMOJI_OBJECTS="lightbulb",Wc.EMOJI_PEOPLE="face_very_happy",Wc.EMOJI_RECENT="clock",Wc.EMPTY_HEART="heart",Wc.EMPTY_LIKE="thumb_up",Wc.ERROR_BLACK="alert_circle",Wc.ERROR_OUTLINE="alert_circle",Wc.EXIT_APP="arrow_in",Wc.EXIT_TO_APP=
"arrow_in",Wc.EXPAND="chevron_down",Wc.EXPAND_ALL="chevron_expand",Wc.EXPAND_CAIRO="chevron_down_cairo",Wc.EXPAND_LESS="chevron_up",Wc.EXPAND_MORE="chevron_down",Wc.EXPLORE="compass",Wc.EXPLORE_DESTINATION="compass",Wc.EXTERNAL_LINK="open_new",Wc.FAB_UPLOAD="upload",Wc.FACE_HAPPY_OUTLINE="face_happy",Wc.FACT_CHECK="article_check",Wc.FASHION_LOGO="fashion",Wc.FASHION_LOGO_CAIRO="fashion_cairo",Wc.FAVORITE="heart",Wc.FEEDBACK="message_bubble_alert",Wc.FEEDBACK_CAIRO="message_bubble_alert_cairo",Wc.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Wc.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Wc.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Wc.FILTER="menu_filter",Wc.FIRST_PAGE="chevron_first",Wc.FLAG="flag",Wc.FULL_HEART="heart",Wc.GAME_CONSOLE_DPAD="game_console_dpad",Wc.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Wc.GAMING_LOGO="gaming",Wc.GAMING_LOGO_CAIRO="gaming_cairo",Wc.GO_TO_PAGE="arrow_right",Wc.GROUPS="people_group",Wc.HAPPY="face_happy",Wc.HEALTH_AND_SAFETY="shield_plus",Wc.HELP="question_circle",Wc.HELP_CAIRO=
"question_circle_cairo",Wc.HELP_OUTLINE="question_circle",Wc.HIDE="slash_circle_left",Wc.IMAGE="image",Wc.INFINITY_ICON="infinity",Wc.INFO="info_circle",Wc.INFO_OUTLINE="info_circle",Wc.INSERT_CHART="bar_graph_box_vertical",Wc.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Wc.INSERT_PHOTO="image",Wc.KEEP="pin",Wc.KEEP_OFF="pin_off",Wc.KEYBOARD="keyboard",Wc.KEYBOARD_ARROW_DOWN="chevron_down",Wc.KEYBOARD_ARROW_UP="chevron_up",Wc.KIDS_BLOCK="slash_circle_left",Wc.LANGUAGE="globe",Wc.LAST_PAGE="chevron_last",
Wc.LAUNCH="open_new",Wc.LEARNING="lightbulb",Wc.LEARNING_CAIRO="lightbulb_cairo",Wc.LIBRARY_ADD=g4f("library_add"),Wc.LIBRARY_OUTLINE="library",Wc.LIBRARY_REMOVE=g4f(),Wc.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Wc.LIKES_PLAYLIST="thumb_up",Wc.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Wc.LIKE="thumb_up",Wc.LIKE_SELECTED="thumb_up",Wc.LIVE="radar_live",Wc.LIVE_CAIRO="radar_live_cairo",Wc.LIVE_UNLISTED="link",Wc.LOCATION_ON="location_point",Wc.LOCATION_PIN="location_point",Wc.LOOP="arrow_repeat",Wc.LOOP_ACTIVE=
"arrow_repeat",Wc.LOOP_ONE="arrow_repeat_1",Wc.LOOP_ONE_ACTIVE="arrow_repeat_1",Wc.MEH="face_meh",Wc.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Wc.MESSAGE="message_bubble_left",Wc.MICROPHONE_ON="mic",Wc.MIX="youtube_mix",Wc.MONETIZATION_ON="dollar_sign_circle",Wc.MONEY_FILL="dollar_sign_container",Wc.MONEY_FILL_JPY="yen_sign_container",Wc.MONEY_HEART="dollar_sign_heart",Wc.MORE_HORIZ="overflow_horizontal",Wc.MORE_VERT="overflow_vertical",Wc.MUSIC="audio",Wc.MUSIC_CAIRO="audio_cairo",Wc.MUSIC_NOTE_SYMBOL=
"music",Wc.MUSIC_SHUFFLE="arrow_shuffle",Wc.MY_CHANNEL="person_circle",Wc.MY_LOCATION="location_point",Wc.NEWS_STORY="news",Wc.NEXT="chevron_right",Wc.NOTIFICATIONS="bell",Wc.NOTIFICATIONS_ACTIVE="bell_on",Wc.NOTIFICATIONS_CAIRO="bell_cairo",Wc.NOTIFICATIONS_DONE_CHECKMARK="check",Wc.NOTIFICATIONS_INBOX="bell",Wc.NOTIFICATIONS_NONE="bell",Wc.NOTIFICATIONS_OFF="bell_off",Wc.NOT_INTERESTED="slash_circle_left",Wc.OFFICIAL_ARTIST_BADGE="audio",Wc.OFFLINE_CLOUD="cloud_off",Wc.OFFLINE_DOWNLOAD="download",
Wc.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Wc.OFFLINE_PAUSE="pause",Wc.OPEN_IN_NEW="open_new",Wc.OUTLINE_ADJUST="adjust",Wc.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Wc.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Wc.OUTLINE_BAG="bag",Wc.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Wc.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Wc.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Wc.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Wc.PAID="dollar_sign",Wc.PAUSE_OUTLINED="pause",Wc.PAYMENT=
"credit_card",Wc.PERSON_RADAR_FILLED="person_radar",Wc.PHONE_DOWNLOAD="mobile_download",Wc.PLAYABLES_LOGO="tic_tac_toe",Wc.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Wc.PLAYLISTS="list_play_arrow",Wc.PLAYLISTS_CAIRO="list_play_arrow_cairo",Wc.PLAYLIST_ADD=g4f("list_add"),Wc.PLAYLIST_ADD_CHECK=g4f("list_check"),Wc.PLAYLIST_PLAY="list_play_arrow",Wc.PLAY_ALL="play_arrow",Wc.PLAY_CIRCLE="play_arrow_circle",Wc.PLAY_OUTLINED="play_arrow_circle",Wc.PRIVACY_INFO="shield",Wc.PRIVACY_PRIVATE="lock",Wc.PRIVACY_PUBLIC=
"earth",Wc.PRIVACY_UNLISTED="link",Wc.PROMOTE="megaphone",Wc.PURCHASES="price_tag",Wc.PURCHASE_SUPER_CHAT="super_chat",Wc.PURCHASE_SUPER_STICKER="super_sticker",Wc.QUESTION_ANSWER="message_bubble_question",Wc.QUEUE_PLAY_LAST="list_queue_last",Wc.QUEUE_PLAY_NEXT="list_play_arrow",Wc.REMIX_FILLED="youtube_shorts_remix",Wc.REMOVE="bar_circle",Wc.REMOVE_CIRCLE="bar_circle",Wc.REMOVE_CIRCLE_OUTLINE="bar_circle",Wc.REMOVE_DONE="check_double_off",Wc.REMOVE_FROM_HISTORY="bar_circle",Wc.REMOVE_FROM_PLAYLIST=
"bar_circle",Wc.REMOVE_MODERATOR="shield_off",Wc.REPLAY="arrow_circle",Wc.REPLAY_10="skip_back_10",Wc.REPORT_PROBLEM="alert_triangle",Wc.SAD="face_sad",Wc.SAVE_PLAYLIST="bookmark",Wc.SCHEDULE="clock",Wc.SCHOOL="creator_academy",Wc.SCREEN_FULLSCREEN="screen_full",Wc.SEARCH_HISTORY="arrow_time",Wc.SELL="price_tag",Wc.SETTINGS="gear",Wc.SETTINGS_CAIRO="gear_cairo",Wc.SETTINGS_LIGHT="gear",Wc.SETTINGS_MATERIAL="gear",Wc.SHARE_ARROW="share",Wc.SHIELD_WITH_AVATAR="person_shield",Wc.SHOPPING_BAG="bag",Wc.SHOPPING_BAG_CAIRO=
"bag_cairo",Wc.SHOPPING_CART="cart",Wc.SHORTS_COMMENT="youtube_shorts_message_bubble_right",Wc.SHORTS_DISLIKE="youtube_shorts_thumb_down",Wc.SHORTS_LIKE="youtube_shorts_thumb_up",Wc.SHORTS_SHARE="youtube_shorts_share",Wc.SHUFFLE="arrow_shuffle",Wc.SLOW_MODE_OFF="message_bubble_left",Wc.SOCIAL="people",Wc.SORT="menu_sort",Wc.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Wc.SPEED_1X="1x",Wc.SPEED_1_POINT_2X="1_point_2x",Wc.SPEED_1_POINT_5X="1_point_5x",Wc.SPEED_1_POINT_8X="1_point_8x",Wc.SPEED_2X="2x",
Wc.SPEED_POINT_2X="point_2x",Wc.SPEED_POINT_8X="point_8x",Wc.SPONSORSHIP_STAR="star_circle",Wc.STAFF_PICK="spotlight",Wc.START_DVR="add",Wc.STAR_BORDER="star",Wc.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Wc.STICKER_EMOTICON="face_happy",Wc.STOP_DVR="stop",Wc.SUBSCRIBE="youtube_logo_icon",Wc.SUBSCRIBE_PLUS="add_cairo",Wc.SUBSCRIPTION_MANAGER="gear",Wc.SUPERVISOR_ACCOUNT="people",Wc.SUPER_CHAT_FOR_GOOD="hands_heart",Wc.SWAP_HORIZ="arrow_swap_horizontal",Wc.SWITCH_ACCOUNTS="person_account",Wc.TAB_ACCOUNT=
"person",Wc.TAB_ACTIVITY="bell",Wc.TAB_BOOKMARK="bookmark",Wc.TAB_EXPLORE="compass",Wc.TAB_HOME="home",Wc.TAB_HOME_CAIRO="home_cairo",Wc.TAB_INBOX="mail",Wc.TAB_LIKED="thumb_up",Wc.TAB_MUSIC_PREMIUM="youtube_music",Wc.TAB_SHORTS="youtube_shorts",Wc.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Wc.TAB_SUBSCRIPTIONS="subscriptions",Wc.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Wc.TAB_TRENDING="fire",Wc.TIMER="stopwatch",Wc.TRAILER="youtube_originals",Wc.TRENDING="fire",Wc.TRENDING_CAIRO="fire_cairo",Wc.TRENDING_DOWN=
"rating_down",Wc.TRENDING_UP="rating_up",Wc.TROPHY="trophy",Wc.TROPHY_CELEBRATIONS="fireworks",Wc.TUNE="adjust",Wc.UNBLOCK_USER="bar_circle",Wc.UNLIMITED="youtube_logo_icon",Wc.UNPLUGGED_LIVE_GUIDE="radar_live",Wc.UNPLUGGED_SPORTS="eye_off",Wc.UPLOADS="library",Wc.UP_ARROW="arrow_up",Wc.VERTICAL_ALIGN_BOTTOM="download",Wc.VERY_HAPPY="face_very_happy",Wc.VERY_SAD="face_very_sad",Wc.VIDEOGAME_ASSET="gaming",Wc.VIDEOS="play_arrow_circle",Wc.VIDEO_CALL="video_camera_add",Wc.VIDEO_LIBRARY_WHITE="library",
Wc.VIDEO_YOUTUBE="youtube_logo_icon",Wc.VIEW_LIST="list_view",Wc.VIEW_LIST_CAIRO="list_view_cairo",Wc.VISIBILITY="eye",Wc.VISIBILITY_OFF="eye_off",Wc.VOLUME_MUTE="volume_off",Wc.VOLUME_UP="volume_on",Wc.WALLPAPER="image",Wc.WARNING="alert_triangle",Wc.WATCH_HISTORY="arrow_time",Wc.WATCH_HISTORY_CAIRO="arrow_time_cairo",Wc.WATCH_LATER="clock",Wc.WATCH_LATER_CAIRO="clock_cairo",Wc.WATCH_RELATED_MIX="youtube_mix",Wc.WHAT_TO_WATCH="home",Wc.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Wc.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",Wc.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Wc.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Wc.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Wc.YT_OUTLINE_MUSIC_24="music",Wc);var zY={},a6q=(zY.ACCESS_TIME="clock",zY.ACCOUNT_BOX="person_square",zY.ACCOUNT_BOX_CAIRO="person_square",zY.ACCOUNT_CIRCLE="person_circle",zY.ACCOUNT_CIRCLE_CAIRO="person_circle",zY.ACCOUNT_LINKED="account_link",zY.ACCOUNT_UNLINKED="account_link",zY.ADD_CIRCLE="add_circle",zY.ADD_CIRCLE_OUTLINE="add_circle",zY.ADD_FRIEND="person_child",zY.ADD_MODERATOR="shield_add",zY.ADD_TO_LIBRARY="bookmark",zY.ADD_TO_PLAYLIST="add",zY.ADD_TO_QUEUE_TAIL="queue",zY.ADD_TO_REMOTE_QUEUE="playlist_audio",zY.ADD_TO_WATCH_LATER=
"clock",zY.ADD_VIDEO_LINK="film_strip_add",zY.ADMIN_PANEL_SETTINGS="person_gear",zY.ALERT_WARN_RED="alert_triangle",zY.ALIGN_LEFT="text_align_left",zY.ARROWS_ALERT="arrow_split_alert",zY.ARROW_BACK="arrow_left",zY.ARROW_CIRCLE="arrow_counterclockwise",zY.ARROW_CIRCLE_PLAY="replay",zY.ARROW_CIRCLE_RIGHT="arrow_clockwise",zY.ARROW_DIAGONAL="arrow_up_left",zY.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",zY.ARROW_DROP_DOWN="triangle_down",zY.ARROW_DROP_UP="triangle_up",zY.ARROW_FORWARD="arrow_right",zY.ARROW_PAUSE=
"pause_history",zY.ARROW_UNDO="undo",zY.ARTICLE="text_page",zY.ARTICLE_ALERT="text_page_alert",zY.ARTICLE_CHECK="text_page_check",zY.ARTICLE_CLARIFY="text_page_info",zY.ARTIST="person_audio",zY.AUDIOTRACK="audio",zY.AUDIO_BADGE="audio_badge",zY.AUDIO_SURROUND="surround_sound",zY.AUTO_AWESOME="sparkles",zY.AVATAR_ANONYMOUS="person_circle",zY.AVATAR_LOGGED_OUT="person_circle",zY.BACK="arrow_left",zY.BAR_CHART="chart_bar",zY.BAR_CIRCLE="minus_circle",zY.BAR_HORIZONTAL="minus",zY.BLOCK="circle_slash",
zY.BLOCK_USER="circle_slash",zY.BOOKMARK_BORDER="bookmark",zY.BOX_OPEN_CHECK="quiz",zY.BOX_PENCIL="square_pencil",zY.BOX_STACK_3="square3_stack",zY.BREAKING_NEWS_ALT_1="text_page_alert",zY.BROADCAST="podcast",zY.BROADCAST_CAIRO="podcast",zY.BUG_REPORT="bug",zY.CAMERA_ALT="camera",zY.CAMPAIGN="megaphone",zY.CANCEL="x_circle",zY.CAPTIONS="closed_captions",zY.CAST_ICON="chromecast",zY.CAST_OUTLINE="chromecast",zY.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",zY.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
zY.CHAT="text_bubble",zY.CHAT_BUBBLE="bubble",zY.CHECK_BOX="check_square",zY.CHECK_BOX_OUTLINE_BLANK="square",zY.CHECK_CIRCLE_FILLED="check_circle",zY.CHECK_CIRCLE_OUTLINE="check_circle",zY.CHECK_CIRCLE_THICK="check_circle",zY.CHECK_DOUBLE="check_done",zY.CHECK_DOUBLE_OFF="check_done_slash",zY.CHEVRON_LEFT="chevron_left",zY.CHEVRON_RIGHT="chevron_right",zY.CHEVRON_RIGHT_CAIRO="chevron_right",zY.CIRCLES_OVERLAP="account_link",zY.CLAPPERBOARD_CAIRO="clapperboard",zY.CLARIFY="text_page_info",zY.CLOCK_ARROWS=
"clock_split",zY.CLOCK_ARROWS_ALERT="clock_split_alert",zY.CLOSED_CAPTION="closed_captions",zY.CLOSED_CAPTION_SELECTED="closed_captions",zY.CLOSE="x",zY.CLOUD_UPLOAD="cloud_arrow_up",zY.COLLAPSE="chevron_up",zY.COLLAPSE_CAIRO="chevron_up",zY.COLLECTION="square3d_stack",zY.COLOR_LENS="paint_palette",zY.COMMENT="text_bubble",zY.CONSENT_SHIELD="person_shield",zY.CONTENT_CUT="scissors",zY.CONTENT_CUT_CAIRO="scissors",zY.COURSE="graduation_cap",zY.COURSE_CAIRO="graduation_cap",zY.CREATION_LIVE="live",
zY.CREATION_POST="square_pencil",zY.CREATION_UPLOAD="video",zY.CREATION_UPLOAD_RED="upload",zY.CREATOR_ACADEMY="graduation_cap",zY.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",zY.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",zY.CREATOR_STUDIO="youtube_studio",zY.DARK_THEME="theme",zY.DELETE="trash_can",zY.DELETE_SWEEP="trash_can",zY.DESKTOP="laptop",zY.DISLIKE="thumb_down",zY.DISLIKE_SELECTED="thumb_down",zY.DISMISSAL="x",zY.DISMISS_QUEUE="playlist_x",zY.DOGFOOD="pawprint",zY.DOLLAR_SIGN=
"dollar_sign_circle",zY.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",zY.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",zY.DOWN_ARROW="arrow_down",zY.DO_NOT_DISTURB="circle_slash",zY.DRAFT="document",zY.DRAG_HANDLE="equal",zY.EARTH="globe",zY.EDIT="pencil",zY.EMOJI="face_very_happy",zY.EMOJI_FLAGS="flag",zY.EMOJI_OBJECTS="lightbulb",zY.EMOJI_PEOPLE="face_very_happy",zY.EMOJI_RECENT="clock",zY.EMPTY_HEART="heart",zY.EMPTY_LIKE="thumb_up",zY.ERROR_BLACK="alert_circle",zY.ERROR_OUTLINE="alert_circle",zY.ERROR_WHITE=
"alert_circle",zY.EXIT_APP="arrow_in",zY.EXIT_TO_APP="arrow_in",zY.EXPAND="chevron_down",zY.EXPAND_ALL="chevron_expand",zY.EXPAND_CAIRO="chevron_down",zY.EXPAND_LESS="chevron_up",zY.EXPAND_MORE="chevron_down",zY.EXPLORE="compass",zY.EXPLORE_DESTINATION="compass",zY.EXTERNAL_LINK="arrow_up_right",zY.EYE_OFF="eye_slash",zY.FAB_UPLOAD="upload",zY.FACE_HAPPY_OUTLINE="face_happy",zY.FACE_MEH="face_neutral",zY.FACT_CHECK="text_page_check",zY.FASHION_LOGO="fashion",zY.FASHION_LOGO_CAIRO="fashion",zY.FAVORITE=
"thumb_up",zY.FEEDBACK="alert_bubble",zY.FEEDBACK_CAIRO="alert_bubble",zY.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",zY.FILL_ARROW_SOLID_UP_16="arrow_solid_up",zY.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",zY.FIRST_PAGE="chevron_left_end",zY.FLAG_CAIRO="flag",zY.FLASH_OFF="flash_slash",zY.FLASH_ON="flash",zY.FULL_HEART="heart",zY.GAMING_LOGO="gaming",zY.GAMING_LOGO_CAIRO="gaming",zY.GO_TO_PAGE="arrow_right",zY.GRID_ASYMMETRICAL="dashboard",zY.GROUPS="person3",zY.HAND_SWIPE_LEFT="gesture_swipe_left",
zY.HAND_SWIPE_RIGHT="gesture_swipe_right",zY.HAPPY="face_happy",zY.HEALTH_AND_SAFETY="shield_health",zY.HEART_BOX="heart_cube",zY.HELP="help_circle",zY.HELP_CAIRO="help_circle",zY.HELP_OUTLINE="help_circle",zY.HIDE="circle_slash",zY.INCOGNITO_CAIRO="incognito",zY.INFINITY_ICON="infinity",zY.INFO="info_circle",zY.INFO_OUTLINE="info_circle",zY.INSERT_CHART="chart_bar_square",zY.INSERT_CHART_OUTLINED="chart_bar_square",zY.INSERT_PHOTO="image",zY.KEEP="pin",zY.KEEP_OFF="pin_slash",zY.KEYBOARD="keyboard",
zY.KEYBOARD_ARROW_DOWN="chevron_down",zY.KEYBOARD_ARROW_UP="chevron_up",zY.KIDS_BLOCK="circle_slash",zY.LANGUAGE="globe",zY.LAST_PAGE="chevron_right_end",zY.LAUNCH="arrow_up_right",zY.LEARNING="lightbulb",zY.LEARNING_CAIRO="lightbulb",zY.LIBRARY_ADD="bookmark",zY.LIBRARY_IMAGE="image_stack",zY.LIBRARY_MUSIC="audio_square_stack",zY.LIBRARY_OUTLINE="play_square_stack",zY.LIBRARY_REMOVE="bookmark",zY.LIBRARY_SAVED="check_square_stack",zY.LIKES_PLAYLIST="thumb_up",zY.LIKES_PLAYLIST_CAIRO="thumb_up",zY.LIKE=
"thumb_up",zY.LIKE_SELECTED="thumb_up",zY.LIST_QUEUE="queue",zY.LIVE_CAIRO="live",zY.LIVE_UNLISTED="link",zY.LOCATION_ON="location_pin",zY.LOCATION_PIN="location_pin",zY.LOCATION_POINT="location_pin",zY.LOOP="repeat",zY.LOOP_ACTIVE="repeat",zY.LOOP_ONE="repeat1",zY.LOOP_ONE_ACTIVE="repeat1",zY.MEET="google_meet",zY.MEH="face_neutral",zY.MEMBERSHIPS="memberships",zY.MEMBERS_ONLY_MODE_OFF="text_bubble",zY.MENU_FILTER="filter",zY.MESSAGE="text_bubble",zY.MESSAGE_BUBBLE_GEAR="bubble_gear",zY.MESSAGE_BUBBLE_LEFT=
"text_bubble",zY.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",zY.MESSAGE_BUBBLE_OVERLAP="bubble_stack",zY.MESSAGE_BUBBLE_QUESTION="help_bubble",zY.MICROPHONE_ON="mic",zY.MONETIZATION_ON="dollar_sign_circle",zY.MONEY_FILL="dollar_sign_rectangle",zY.MONEY_FILL_JPY="yen_sign_rectangle",zY.MONEY_HAND="dollar_sign_circle_hand",zY.MONEY_HEART="dollar_sign_heart",zY.MOON_Z="sleep_timer",zY.MORE_HORIZ="overflow_horizontal",zY.MORE_VERT="overflow_vertical",zY.MUSIC="audio",zY.MUSIC_CAIRO="audio",zY.MUSIC_EXPLICIT_BADGE=
"explicit",zY.MUSIC_NEW_RELEASE="audio_badge",zY.MUSIC_NOTE_SYMBOL="audio",zY.MUSIC_SCISSORS="audio_scissors",zY.MUSIC_SHUFFLE="shuffle",zY.MY_CHANNEL="person_circle",zY.MY_LOCATION="location_pin",zY.MY_VIDEOS="video",zY.MY_VIDEOS_CAIRO="video",zY.NEWS_CAIRO="news",zY.NEWS_STORY="news",zY.NEXT="chevron_right",zY.NOTE_ADD="bubble_pencil",zY.NOTIFICATIONS="bell",zY.NOTIFICATIONS_ACTIVE="bell_waves",zY.NOTIFICATIONS_CAIRO="bell",zY.NOTIFICATIONS_DONE_CHECKMARK="check",zY.NOTIFICATIONS_INBOX="bell",zY.NOTIFICATIONS_NONE=
"bell",zY.NOTIFICATIONS_OFF="bell_slash",zY.NOT_INTERESTED="circle_slash",zY.OFFICIAL_ARTIST_BADGE="audio",zY.OFFLINE_CLOUD="cloud_slash",zY.OFFLINE_DOWNLOAD="download",zY.OFFLINE_DOWNLOAD_CAIRO="download",zY.OFFLINE_PAUSE="pause",zY.OPEN_IN_NEW="arrow_up_right",zY.OUTLINE_ADJUST="adjust",zY.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",zY.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",zY.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",zY.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",zY.OUTLINE_BAG="bag",zY.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",zY.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",zY.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",zY.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",zY.PAID="dollar_sign_circle",zY.PAUSE_OUTLINED="pause",zY.PAYMENT="credit_card",zY.PEOPLE="person_child",zY.PEOPLE_2="person2_rectangle",zY.PEOPLE_GROUP="person3",zY.PEOPLE_NOTE="bubble_asterisk",zY.PERSON_2="person2",zY.PERSON_ACCOUNT="person_square_stack",zY.PERSON_MINUS="person_x",zY.PERSON_MUSIC="person_audio",zY.PERSON_RADAR="person_waves",
zY.PERSON_RADAR_FILLED="person_waves",zY.PERSON_SETTING="person_gear",zY.PHONE="phone",zY.PHONE_DOWNLOAD="mobile_arrow_down",zY.PICTURE_IN_PICTURE="picture_in_picture",zY.PLAYABLES_LOGO="playables",zY.PLAYABLES_LOGO_CAIRO="playables",zY.PLAYLISTS="playlist",zY.PLAYLISTS_CAIRO="playlist",zY.PLAYLIST_ADD_CHECK="bookmark",zY.PLAY_ALL="play",zY.PLAY_ARROW="play",zY.PLAY_ARROW_CIRCLE="play_circle",zY.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",zY.PLAY_CIRCLE="play_circle",zY.PLAY_OUTLINED="play_circle",
zY.PODCAST_ADD="podcast_add",zY.PODCAST_CHECK="podcast_check",zY.PRIVACY_INFO="shield_x",zY.PRIVACY_PRIVATE="lock",zY.PRIVACY_PUBLIC="globe",zY.PRIVACY_UNLISTED="link",zY.PROMOTE="megaphone",zY.PURCHASES="price_tag",zY.PURCHASE_SUPER_CHAT="super_chat",zY.PURCHASE_SUPER_STICKER="super_sticker",zY.QUESTION_ANSWER="help_bubble",zY.QUESTION_CIRCLE="help_circle",zY.QUEUE_PLAY_LAST="queue_last",zY.QUEUE_PLAY_NEXT="queue_next",zY.QUOTATION_MARK="quote",zY.RADAR_LIVE="live",zY.REMOVE="minus_circle",zY.REMOVE_CIRCLE=
"minus_circle",zY.REMOVE_CIRCLE_OUTLINE="minus_circle",zY.REMOVE_FROM_HISTORY="minus_circle",zY.REMOVE_FROM_PLAYLIST="minus_circle",zY.REMOVE_MODERATOR="shield_slash",zY.REPLAY="arrow_counterclockwise",zY.REPLAY_10="skip10_back",zY.REPLAY_ARROW="replay",zY.REPORT_PROBLEM="alert_triangle",zY.RSS_OFF="rss_slash",zY.SAD="face_sad",zY.SAVE_PLAYLIST="bookmark",zY.SCHEDULE="clock",zY.SCHOOL="graduation_cap",zY.SCREEN_DEFAULT="player_default",zY.SCREEN_FULLSCREEN="player_full_enter",zY.SCREEN_LIGHT="ambient_mode",
zY.SCREEN_ROTATION="rotate_portrait",zY.SCREEN_SWITCH="player_switch",zY.SCREEN_THEATRE="player_theater",zY.SEARCH_CAIRO="search",zY.SEARCH_HISTORY="history",zY.SELL="price_tag",zY.SETTINGS="gear",zY.SETTINGS_CAIRO="gear",zY.SETTINGS_LIGHT="gear",zY.SETTINGS_MATERIAL="gear",zY.SETTINGS_REMOTE="remote_waves",zY.SHARE="share",zY.SHARE_ARROW="share",zY.SHARE_CAIRO="share",zY.SHIELD="shield_x",zY.SHIELD_EMPTY="shield",zY.SHIELD_OFF="shield_slash",zY.SHIELD_WITH_AVATAR="person_shield",zY.SHOPPING_BAG=
"bag",zY.SHOPPING_BAG_CAIRO="bag",zY.SHOPPING_CART="cart",zY.SHORTS_COMMENT="text_bubble",zY.SHORTS_DISLIKE="thumb_down",zY.SHORTS_LIKE="thumb_up",zY.SHORTS_SHARE="share",zY.SKIP_FORWARD_30="skip30_forward",zY.SLASH_CIRCLE_LEFT="circle_slash",zY.SLASH_CIRCLE_RIGHT="circle_slash",zY.SLOW_MODE="bubble_slow",zY.SLOW_MODE_OFF="text_bubble",zY.SOCIAL="person_child",zY.SPARKLE="sparkles",zY.SPARK_IMAGE="image_spark",zY.SPARK_RADAR="spark_waves",zY.SPARK_VIDEO="video_spark",zY.SPEAKER_GROUP="speaker_stack",
zY.SPEAKER_OFF="speaker_slash",zY.SPEED_1X="n1x",zY.SPEED_1_POINT_2X="n1point2x",zY.SPEED_1_POINT_5X="n1point5x",zY.SPEED_1_POINT_8X="n1point8x",zY.SPEED_2X="n2x",zY.SPONSORSHIP_STAR="star_circle",zY.SPORTS="basketball",zY.SPOTLIGHT="spotlight",zY.STAFF_PICK="spotlight",zY.START_DVR="add",zY.STAR_BORDER="star",zY.STAR_CIRCLE_RIBBON="memberships_gift",zY.STAR_HALF="star_full_half",zY.STAR_SHOOTING="hype",zY.STICKER="sticker",zY.STICKER_EMOTICON="face_happy",zY.STOP_DVR="stop",zY.SUBSCRIBE="youtube",
zY.SUBSCRIBE_PLUS="add",zY.SUBSCRIPTION_MANAGER="gear",zY.SUPERSTAR="super_star",zY.SUPERVISOR_ACCOUNT="person_child",zY.SUPER_CHAT_FOR_GOOD="hands_heart",zY.SWAP_HORIZ="arrow_swap_horizontal",zY.SWITCH_ACCOUNTS="person_square_stack",zY.TAB_ACCOUNT="person",zY.TAB_ACTIVITY="bell",zY.TAB_BOOKMARK="bookmark",zY.TAB_EXPLORE="compass",zY.TAB_HOME="home",zY.TAB_HOME_CAIRO="home",zY.TAB_INBOX="mail",zY.TAB_LIKED="thumb_up",zY.TAB_MUSIC_PREMIUM="youtube_music",zY.TAB_SHORTS="shorts",zY.TAB_SHORTS_CAIRO=
"shorts",zY.TAB_SUBSCRIPTIONS="subscriptions",zY.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",zY.TAB_TRENDING="trending",zY.TARGET="target",zY.TARGET_ADD="target_add",zY.TEMPLATE_ADD="template_add",zY.TEXT="font",zY.TICKET_STAR="star_ticket",zY.TIMER="stopwatch",zY.TRENDING_CAIRO="trending",zY.TRENDING_DOWN="arrow_trend_down",zY.TRENDING_UP="arrow_trend_up",zY.TROPHY_CAIRO="trophy",zY.TROPHY_CELEBRATIONS="fireworks",zY.TROPHY_STAR="star_trophy",zY.TUNE="adjust",zY.TV_OFF="tv_slash",zY.UNBLOCK_USER="minus_circle",
zY.UNFAVORITE="thumb_down",zY.UNLIMITED="youtube",zY.UNPLUGGED_LIVE_GUIDE="live",zY.UNPLUGGED_SPORTS="eye_slash",zY.UPLOADS="play_square_stack",zY.UP_ARROW="arrow_up",zY.VERTICAL_ALIGN_BOTTOM="chevron_down_end",zY.VERTICAL_ALIGN_TOP="chevron_up_end",zY.VERY_HAPPY="face_very_happy",zY.VERY_SAD="face_very_sad",zY.VIDEOS="play_circle",zY.VIDEO_CALL="video_camera_add",zY.VIDEO_LIBRARY_WHITE="play_square_stack",zY.VIDEO_QUALITY_4K="n4k",zY.VIDEO_QUALITY_8K="n8k",zY.VIDEO_YOUTUBE="youtube",zY.VIEW_LIST_CAIRO=
"view_list",zY.VIEW_MODULE="view_column3_row2",zY.VISIBILITY="eye",zY.VISIBILITY_OFF="eye_slash",zY.VOLUME_DOWN="volume_min",zY.VOLUME_MUTE="volume_mute",zY.VOLUME_OFF="volume_mute",zY.VOLUME_STABLE="stable_volume",zY.VOLUME_UP="volume_max",zY.WALLPAPER="image",zY.WARNING="alert_triangle",zY.WATCH_HISTORY="history",zY.WATCH_HISTORY_CAIRO="history",zY.WATCH_LATER="clock",zY.WATCH_LATER_CAIRO="clock",zY.WATCH_RELATED_MIX="mix",zY.WHAT_TO_WATCH="home",zY.YOUTUBE_LINKED_TV="tv_mobile",zY.YOUTUBE_MUSIC_MONOCHROME=
"youtube_music",zY.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",zY.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",zY.YOUTUBE_SHORTS_ARROW_UP="arrow_up",zY.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",zY.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",zY.YOUTUBE_SHORTS_OUTLINE_24="shorts",zY);var yws={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,9,16],[1,9,18],[1,9,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]],dot:[[0,2,12],[0,2,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]],font_square_spark:[[1,1,16],[1,1,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,14,24],[1,14,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,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,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 obo={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,9,12],[1,9,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,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,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,2,12],[0,2,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_square_spark:[[1,1,18],[1,1,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,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,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,7,24],[1,7,12],[1,7,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:[[0,
3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,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,10,12],[0,10,24],[1,10,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:[[0,2,24],[1,2,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,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,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]],wifi_tethering:[[1,1,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 m_6={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"},K_=function(G){this.iconUrlProvider=G};
K_.prototype.resolveIcon=function(G,H){var Z=m_6[G.iconName.toUpperCase()];Z&&(G.iconName=Z);var Q=G.iconName;Q=Q.replace(/-/g,"_");G=Object.assign({},G,{iconName:this.mapIconTypeToStandardName(Q,!!Z)||Q.toLowerCase()});if(_.V("enable_web_delhi_icons")||Z){var p;return pmb(obo,G,((p=this.iconUrlProvider)==null?void 0:p.getYtStandardUrl)||qZW,H)}var l;return pmb(yws,G,((l=this.iconUrlProvider)==null?void 0:l.getYtStandardUrl)||IdR,H)};
K_.prototype.mapIconTypeToStandardName=function(G,H){return _.V("enable_web_delhi_icons")||H?a6q[G.toUpperCase()]:O06[G.toUpperCase()]};
K_[kM]=[_.Jp(hLD)];var U_o=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),RLm=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),NJ6=function(G){this.urlProvider=this.iconUrlProvider=G};
_.T(NJ6,K_);
NJ6.prototype.resolveIcon=function(G,H){G.iconName==="youtube_logo"&&(G.iconName="yt-logo-updated");if(G.iconName==="youtube_premium_logo"||G.iconName==="youtube_red_logo")G.iconName="yt-logo-red-updated";var Z=Object.assign({},G);G.iconName==="menu"&&(_.V("enable_web_delhi_icons")||(Z.iconName="bars_3"),Z.iconStyle="youtube_outline");G.iconSetName==="socialNetworksRound"&&(G.iconName==="mail"&&(Z.iconName="email"),G.iconName==="embed"&&(Z.iconSize=60));G.iconName==="more"&&(Z.iconName="overflow_horizontal");
G.iconName==="fullscreen"&&(Z.iconName="screen_full");G.iconName==="premium_standalone"&&(Z.iconName="premium_standalone_cairo");_.V("enable_connect_icon_update_web")&&G.iconName==="account_linked"&&(Z.iconName="circles_overlap_check",Z.iconStyle="youtube_fill");_.V("enable_connect_icon_update_web")&&G.iconName==="account_unlinked"&&(Z.iconName="circles_overlap",Z.iconStyle="youtube_outline");U_o.has(G.iconName)&&(Z.iconStyle="youtube_fill");_.V("enable_web_delhi_icons")&&(G.iconName==="playlist_add"&&
(Z.iconName="bookmark"),G.iconName==="offline_pin"&&(Z.iconName="arrow_down_circle",Z.iconStyle="youtube_fill"),RLm.has(G.iconName)&&(Z.iconName+="_updated"));G=Object.assign({},Z,{iconName:(K_.prototype.mapIconTypeToStandardName.call(this,Z.iconName)||Z.iconName).toLowerCase()});var Q;return(G=pmb(rwj,G,((Q=this.urlProvider)==null?void 0:Q.getUrl)||SZj,H))?G:K_.prototype.resolveIcon.call(this,Z,H)};
NJ6[kM]=[_.Jp(hLD)];_.Awc=1;var Mx=function(G,H){this.JSC$17424_commandHandler=G;this.innertubeTransportService=H};
_.T(Mx,Ff);Mx.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l;return _.S(function(q){return(Q=_.X(G,DO7))?q.return(x_j(Z,Q,(p=H)==null?void 0:(l=p.form)==null?void 0:l.element)):q.return()})};
var x_j=function(G,H,Z){H={profileCardContext:H.profileCardContext,profileOwnerExternalChannelId:H.profileOwnerExternalChannelId};var Q=_.U7($y2);return _.GP(G.innertubeTransportService,H,Q).then(function(p){if(!p)throw new _.C$("GetProfileCard failed");if(p=p.popupCommand){G.JSC$17424_commandHandler.resolveCommand(p,{form:{element:Z}});_.Te(_.gr(),66557);p=p==null?void 0:p.clickTrackingParams;var l=_.Va();p&&l&&_.gr().graftServerVe(p,l)}})};
Mx[kM]=[_.Dk,_.t0];var jW=function(){};
_.T(jW,Ff);jW.prototype.resolveCommand=function(G){var H,Z;return _.S(function(Q){H=_.X(G,fNw);if(!H)return Q.return();Z=Number(H.enableDelayedPacfLoggingTvMs);if(isNaN(Z)){var p=Tf();j2d(p,H,0)}else j2d(Tf(),H,Z);_.K0(Q)})};_.Pc=function(){};
_.T(_.Pc,Ff);
_.Pc.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t;return _.S(function(D){Q=_.X(G,vqw);l=(p=H.form)==null?void 0:p.element;u=(q=l)==null?void 0:q.closest("ytd-enforcement-message-view-model");if(!Q||!u)return D.return();Z.allowAdsAction||(B=Q.fundingChoiceInstructionPageUrl,Z.allowAdsAction=new $1t(window,_.R1(B)));var d=Z.allowAdsAction;d.wallElement=u;d.allowAdsPopup.style.setProperty("display","flex","important");var e=d.scrollManager;e.isScrollingEnabled&&(e.originalBodyOverflow=e.JSC$10009_domHelper.JSC$9335_document_.body.style.overflow,
e.JSC$10009_domHelper.JSC$9335_document_.body.style.overflow="hidden",e.isScrollingEnabled=!1);d.wallElement.style.setProperty("display","none","important");P7R(d.accessibilityManager,d.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((t=Z.allowAdsAction.allowAdsPopup)&&t instanceof HTMLElement)for(d=_.I(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),e=d.next();!e.done;e=d.next()){var n=_.I(e.value);e=n.next().value;n=n.next().value;
t.style.setProperty(e,n)}_.K0(D)})};
_.Pc.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var ri=function(){};
_.T(ri,Ff);ri.prototype.resolveCommand=function(G){var H;return _.S(function(Z){H=_.X(G,z4R);if(!H)return Z.return();fsj(G);_.K0(Z)})};_.wi=new _.Gv("AI_CHAT_CONTROLLER_TOKEN");var h5=function(G,H,Z,Q){this.JSC$17439_commandHandler=G;this.store=H;this.getPlayerCb=Z;this.aiChatController=Q};
_.T(h5,Ff);h5.prototype.pageContext=function(){var G=_.KG.currentPageSubTypeSelector(this.store.getState()),H;return(H=this.aiChatController)==null?void 0:_.Lic(H,G)};
h5.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q;return _.S(function(u){Z=_.X(G,iVw);p=(Q=Z)==null?void 0:Q.command;if(!p)return u.return();switch((q=Z)==null?void 0:q.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var B="youchat-"+Date.now(),t;var D=String(Math.floor(((t=H.getPlayerCb())==null?void 0:t.getCurrentTime())||0)*1E3);l={inputComposerFormData:{clientMessageId:B,playerOffsetMs:D,pageContext:H.pageContext()}}}if(!l)return u.return();H.JSC$17439_commandHandler.resolveCommand(p,
{form:{formData:l}});_.K0(u)})};
h5[kM]=[_.Dk,_.oT,iR3,_.Jp(_.wi)];var EbA=new _.Gv("SESSION_STORAGE");var C_=function(G){this.sessionStorage=G("conversations")};
_.T(C_,Ff);C_.prototype.resolveCommand=function(G){var H=this,Z;return _.S(function(Q){Z=_.X(G,OVa);if(!Z)return Q.return();Z.conversationId?H.sessionStorage.set("conversation_id",Z.conversationId):H.sessionStorage.remove("conversation_id");_.K0(Q)})};
C_[kM]=[EbA];var iF=function(G){this.JSC$17451_commandHandler=G};
_.T(iF,Ff);
iF.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t;return _.S(function(D){if(D.nextAddress==1){Z=_.X(G,Qiw);if((Q=Z)==null||!Q.text||!navigator.clipboard)return D.return();_.XV(D,2);return D.yield(navigator.clipboard.writeText(Z.text),4)}if(D.nextAddress!=2){if(!Z.successActions||Z.successActions.length===0)return D.return();p=_.I(Z.successActions);for(l=p.next();!l.done;l=p.next())q=l.value,H.JSC$17451_commandHandler.resolveCommand(q);return _.Za(D,0)}_.Wg(D);if(!Z.failureActions||Z.failureActions.length===
0)return D.return();u=_.I(Z.failureActions);for(B=u.next();!B.done;B=u.next())t=B.value,H.JSC$17451_commandHandler.resolveCommand(t);_.K0(D)})};
iF[kM]=[_.Dk];var Oc=function(G){this.JSC$17455_commandHandler=G};
_.T(Oc,Ff);
Oc.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e;return _.S(function(n){switch(n.nextAddress){case 1:Q=_.X(G,h44);if(!Q)return n.return();_.XV(n,2);if(!Q.imageBytes&&!Q.imageUrl)throw Error("Ai");if(!Q.imageUrl){if(Q.imageBytes){l=Q.imageBytes;q=l.replace(/-/g,"+").replace(/_/g,"/");var c=JoU(q);p=_.U_(c)}n.jumpTo(4);break}return n.yield(fetch(Q.imageUrl),5);case 5:return u=n.yieldResult,n.yield(u.blob(),6);case 6:B=n.yieldResult,p=_.U_(B);case 4:d=(t=H)==null?void 0:(D=t.form)==
null?void 0:D.element;e=document.createElement("a");AN(e,p);d.appendChild(e);e.download="";e.click();d.removeChild(e);URL.revokeObjectURL(_.iI(p));Q.successCommand&&Z.JSC$17455_commandHandler.resolveCommand(Q.successCommand);_.Za(n,0);break;case 2:_.Wg(n),Q.errorCommand&&Z.JSC$17455_commandHandler.resolveCommand(Q.errorCommand),_.K0(n)}})};
Oc[kM]=[_.Dk];var ah=function(G){this.store=G};
_.T(ah,Ff);ah.prototype.resolveCommand=function(G){var H=this,Z,Q,p;return _.S(function(l){Q=(Z=_.X(G,_.CMa))==null?void 0:Z.entityBatchUpdate;if(!Q)return l.jumpTo(0);p=Object.assign({},Q,{mutations:[].concat(_.OP(Q.mutations||[]))});return l.yield(_.lX(p,H.store),0)})};var YPi=function(G){this.JSC$17462_commandHandler=G;this.feedbackDialogMap=new Map};
YPi.prototype.openDialog=function(G,H){(G=this.feedbackDialogMap.get(G))&&this.JSC$17462_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:G}},H)};
YPi[kM]=[_.Dk];var yc=new _.Gv("FEEDBACK_CONTROLLER_TOKEN");var oh=new _.Gv("APP_STORE_TOKEN");var mx=function(G,H){this.store=G;this.controller=H};
_.T(mx,Ff);mx.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U;return _.S(function(R){if(R.nextAddress==1){Q=_.X(G,_.Vb);if(l=(p=Q)==null?void 0:p.contentId)for(u=_.I(((q=Q)==null?void 0:q.actions)||[]),B=u.next();!B.done;B=u.next())t=B.value,Fih(Z,t,l);e=(D=H)==null?void 0:(d=D.form)==null?void 0:d.element;return R.yield(_.L9(e,[G,{impression:(n=H)==null?void 0:n.disableClickTracking}]).catch(function(){}),2)}c=R.yieldResult;
((W=c)==null?0:(M=W.data)==null?0:(r=M.feedbackResponses)==null?0:r.length)&&(x=(w=c.data.feedbackResponses[0])==null?void 0:w.followUpDialog)&&l&&(U=Z.controller)!=null&&U.feedbackDialogMap.set(l,x);_.K0(R)})};
var Fih=function(G,H,Z){var Q=_.X(H,_.Ft);if(Q){Q=_.I(Q.commands||[]);for(var p=Q.next();!p.done;p=Q.next())Fih(G,p.value,Z)}_.X(H,_.zm)&&G.store.dispatch(_.uP("commandEntity",s7f(Z),{key:Z,command:H}));_.X(H,cAp)&&G.store.dispatch(_.uP("commandEntity",s7f(Z),{key:Z,command:H}))};
mx[kM]=[oh,yc];var Uc=function(G){this.controller=G};
_.T(Uc,Ff);Uc.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q;return _.S(function(u){Q=_.X(G,_.bc);l=(p=Q)==null?void 0:p.targetId;if(((q=Q)==null?void 0:q.signal)!=="TELL_US_WHY"||!l)return u.return();Z.controller.openDialog(l,H);_.K0(u)})};
Uc[kM]=[yc];var Rh=function(G){this.store=G};
_.T(Rh,Ff);Rh.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t;return _.S(function(D){Q=_.X(G,Jme);l=(p=Q)==null?void 0:p.contentId;B=(q=H)==null?void 0:(u=q.form)==null?void 0:u.element;t=_.L9(B,[G]);l&&Z.undo(l);return D.yield(t,0)})};
Rh.prototype.undo=function(G){this.store.dispatch(_.uP("commandEntity",s7f(G),{key:G,command:void 0}))};
Rh[kM]=[oh];var Nx=function(G){this.JSC$17477_commandHandler=G};
_.T(Nx,Ff);Nx.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t;return _.S(function(D){Z=_.X(G,Hsa);Q=Z.flowStateKey;p=Z.validationFailureCommand;l=Z.submitValidFormCommand;q=ZSo(_.CA,[Q||""]);u=_.X(q,QHa);((B=u)==null?0:B.isValid)&&l&&H.JSC$17477_commandHandler.resolveCommand(l);((t=u)==null?0:t.isValid)||!p||H.JSC$17477_commandHandler.resolveCommand(p);_.K0(D)})};
Nx[kM]=[_.Dk];var A5=function(G){this.innertubeTransportService=G};
_.T(A5,Ff);A5.prototype.resolveCommand=function(G,H){var Z=this,Q;return _.S(function(p){return p.yield(_.wb(Z.innertubeTransportService,G,(Q=H)==null?void 0:Q.form).then(function(l){var q,u;H==null||(q=H.commandController)==null||(u=q.onSuccess)==null||u.call(q,G,l)},function(l){var q,u;
H==null||(q=H.commandController)==null||(u=q.onServerError)==null||u.call(q,G,l)}),0)})};
A5[kM]=[_.t0];var x1=function(){};
_.T(x1,Ff);x1.prototype.resolveCommand=function(G){var H,Z,Q,p;return _.S(function(l){if(H=_.X(G,_.F9p)){if(Z=H.gtmId)Q=_.xI("GL",""),_.P9(Z,Q);(p=H.gtmData)&&_.rW(p)}_.K0(l)})};var L_=function(G,H,Z){this.innertubeTransportService=G;this.JSC$17488_actionRouter=H;this.JSC$17488_screenManager=Z};
_.T(L_,Ff);L_.prototype.resolveCommand=function(G){var H=this,Z,Q;return _.S(function(p){Z=_.X(G,Ye_);if(!Z)return p.return();Q=Z.command;if(!Q)return p.return();H.JSC$17488_actionRouter.triggerAction("yt-insert-rich-section-action",Z);return p.yield(_.wb(H.innertubeTransportService,Q,{disableCache:!0}).then(function(l){G.clickTrackingParams&&(l==null?0:l.trackingParams)&&H.JSC$17488_screenManager.graftServerVe(l.trackingParams,_.BT(G.clickTrackingParams))}),0)})};
L_[kM]=[_.t0,JP,_.rv];kX3.bind(null,bx);var b0o=kX3.bind(null,x94);dsf.bind(null,bx);var G5L=dsf.bind(null,x94);n4W.bind(null,bx);var HEh=n4W.bind(null,x94);var Ec=function(){};
_.T(Ec,Ff);
Ec.prototype.resolveCommand=function(G){var H,Z,Q,p,l,q,u,B,t,D;return _.S(function(d){H=_.X(G,wK4);if(!H)return d.return();Q=((Z=H.operations)==null?void 0:Z.operations)||[];p=_.I(Q);for(l=p.next();!l.done;l=p.next())if(q=l.value,q.insertItemSectionContent){var e=q.insertItemSectionContent,n=e.contents||[];e.insertByPositionInSection?b0o(e.insertByPositionInSection.sectionTargetId,n,e.insertByPositionInSection.position):e.insertByRelativePositionInSection&&e.insertByRelativePositionInSection.sectionTargetId&&e.insertByRelativePositionInSection.itemTargetId&&
G5L(e.insertByRelativePositionInSection.sectionTargetId,e.insertByRelativePositionInSection.itemTargetId,n,e.insertByRelativePositionInSection.relativePosition)}else q.replaceSection?(e=q.replaceSection,n={},e.replaceByTargetId?n=e.replaceByTargetId:e.replaceByGroupId&&(n={targetId:e.replaceByGroupId.groupId,newContent:e.replaceByGroupId.newContent,undoKey:""}),n.newContent&&YH7(n.targetId,{continuationItems:[n.newContent]})):q.removeItem?(e=q.removeItem,e.removeByTargetId&&e.sectionTargetId&&HEh(e.sectionTargetId,
e.removeByTargetId.targetIds||[])):q.removeSection&&(q.removeSection.removeByTargetId?(u=void 0,sND(((u=q.removeSection)==null?void 0:u.removeByTargetId.targetIds)||[])):q.removeSection.removeByGroupId&&(B=void 0,sND(((B=q.removeSection)==null?void 0:B.removeByGroupId.groupIds)||[])));D=((t=H.operations)==null?void 0:t.scrollConfig)||{};ZEt(D);_.K0(d)})};
var sND=function(G){G=_.I(G);for(var H=G.next();!H.done;H=G.next())YH7(H.value,{continuationItems:[]})},ZEt=function(G){if(G.scrollToItem){var H=G.scrollToItem.item||{},Z=H.itemTargetId;
H=H.sectionTargetId;if(Z&&H){var Q=document.querySelector("[data-target-id="+H+"]"),p=Q==null?void 0:Q.querySelector("[data-target-id="+Z+"]");Q&&p&&setTimeout(function(){var l=p.offsetTop-Q.offsetTop,q;if(((q=G.scrollToItem)==null?void 0:q.scrollPosition)==="SCROLL_POSITION_CENTER")l-=Q.offsetHeight/2,l+=p.offsetHeight/2;else{var u;((u=G.scrollToItem)==null?void 0:u.scrollPosition)==="SCROLL_POSITION_END"&&(l-=Q.offsetHeight,l+=p.offsetHeight)}Q.scroll({top:l,behavior:"smooth"})},100)}}};var Y1=new _.Gv("CLIENT_NAME_TOKEN");var QNj=new _.Gv("DEFAULT_STORE_EXPIRATION_TOKEN");var flf=new _.Gv("CLIENT_LOCATION_SERVICE_TOKEN");var Fm=function(G,H,Z){this.clientName=G||_.xI("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=H||_.rT.getInstance();this.JSC$17516_commandHandler=Z||_.HT.instance};
_.T(Fm,Ff);Fm.prototype.resolveCommand=function(G){var H=this,Z,Q;return _.S(function(p){Q=(Z=_.X(G,DzT))==null?void 0:Z.onComplete;H.clientLocationService.clearLocationPlayabilityToken(H.clientName);Q&&H.JSC$17516_commandHandler.resolveCommand(Q);_.K0(p)})};
Fm[kM]=[Y1,flf,_.Dk];var bF=function(G){this.innertubeTransportService=G};
_.T(bF,Ff);bF.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q;return _.S(function(u){l=(Q=H)==null?void 0:(p=Q.form)==null?void 0:p.element;return u.yield(_.wb(Z.innertubeTransportService,G,(q=H)==null?void 0:q.form).then(function(B){nev(l,new CustomEvent("yt-service-request-completed"),{data:B},_.xI("openPopupConfig"))}),0)})};
bF[kM]=[_.t0];var G6=function(){};
_.T(G6,Ff);G6.prototype.resolveCommand=function(G){var H,Z;return _.S(function(Q){H=_.X(G,I84);Z=document.querySelector("mini-app-container-view-model");if(!H||!Z)return Q.return();H.isPlaying?Z.dispatchEvent(new Event("play")):Z.dispatchEvent(new Event("pause"));_.K0(Q)})};var Hw=function(){};
_.T(Hw,Ff);Hw.prototype.resolveCommand=function(G){var H,Z,Q,p,l,q,u;return _.S(function(B){H=_.X(G,NyT);if((Z=H)==null||!Z.paramKeys)return B.return();Q=H.paramKeys;p=_.HS(window.location.href);l=_.I(Q);for(q=l.next();!q.done;q=l.next())u=q.value,p.JSC$10041_queryData_.remove(u);window.history.replaceState(window.history.state,document.title,p.toString());_.K0(B)})};var pla=function(){this.dropdownMap=new Map};_.lwD=new _.Gv("DROPDOWN_CONTROLLER_TOKEN");var sT=function(G){this.controller=G};
_.T(sT,Ff);sT.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l;return _.S(function(q){Z=_.X(G,$J_);if(!Z)return q.return();Q=Z;p=Q.dropdownId;l=Q.selectedOptionIndex;if(p===void 0||l===void 0)return q.return();var u=H.controller.dropdownMap.get(p);u&&u(l);_.K0(q)})};
sT[kM]=[_.lwD];var Zs=function(G){this.controller=G};
_.T(Zs,Ff);Zs.prototype.resolveCommand=function(G){var H=this,Z;return _.S(function(Q){return(Z=_.X(G,Mwa))?Q.yield(H.controller.closeDialog(),0):Q.return()})};
Zs[kM]=[_.aP];var QT=function(G){this.controller=G};
_.T(QT,Ff);QT.prototype.resolveCommand=function(G){var H=this,Z,Q;return _.S(function(p){Z=_.X(G,J9x);if(!Z)return p.return();var l,q=Z.panelIdentifier||((l=Z.identifier)==null?void 0:l.tag);if(!q)throw Error("Bi");return(Q=q)?p.yield(H.controller.hidePanel({identifier:Q}),0):p.jumpTo(0)})};
QT[kM]=[_.iU];var pc=function(G){this.controller=G};
_.T(pc,Ff);pc.prototype.resolveCommand=function(G){var H=this,Z;return _.S(function(Q){return(Z=_.X(G,GiN))?Q.yield(H.controller.closeSheet(),0):Q.return()})};
pc[kM]=[_.On];var gd=function(G,H){this.innertubeTransportService=G;this.controller=H};
_.T(gd,Ff);gd.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return Z=_.X(G,t57),(Q=Z)!=null&&Q.panelId?q.yield(H.controller.getReloadContinuation(Z.panelId),2):q.return();if(q.nextAddress!=3)return(p=q.yieldResult)?q.yield(_.wb(H.innertubeTransportService,G,{continuation:p}),3):q.return();l=q.yieldResult;return q.yield(H.controller.updatePanel({identifier:Z.panelId,panelContents:l.content,shouldFocus:!1}),0)})};
gd[kM]=[_.t0,_.iU];var I4=function(G,H,Z){this.innertubeTransportService=G;this.JSC$17558_screenManager=H;this.JSC$17558_commandHandler=Z};
_.T(I4,Ff);
I4.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u;return _.S(function(B){if(B.nextAddress==1){Z=_.X(G,_.ggT);if(!Z)return B.return();if(Z.commands)for(Q=_.I(Z.commands),p=Q.next();!p.done;p=Q.next())l=p.value,H.JSC$17558_commandHandler.resolveCommand(l,{disableClickTracking:!0});q=_.BT(G.clickTrackingParams);_.Te(H.JSC$17558_screenManager,21760,q,{layer:7,parentLayer:0});return B.yield(_.wb(H.innertubeTransportService,G),2)}u=B.yieldResult;if(!u)return B.return();H.JSC$17558_screenManager.graftServerVe(u.trackingParams,q,
7);_.K0(B)})};
I4[kM]=[_.t0,_.rv,_.Dk];var qI=new _.Gv("PANEL_LOADING_STRATEGY_TOKEN");var Sz=function(G,H){this.controller=G;this.panelLoadingStrategy=H};
_.T(Sz,Ff);
Sz.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l;return _.S(function(q){Q=_.X(G,srw);if((p=Q)==null||!p.panelLoadingStrategy)return q.return();l=function(u){var B,t,D,d,e,n,c,W,M,r;return _.S(function(w){t=_.X((B=u.dialogViewModel)==null?void 0:B.header,Xrt);D={viewModel:u.dialogViewModel};d={};if(c=_.V("web_enable_dialog_header_label")?(e=t)==null?void 0:(n=e.headline)==null?void 0:n.content:void 0)d.ariaLabel=c;Q.dismissOnBackgroundTap===!1&&(d.isModal=!0);return u.dialogViewModel?w.yield(Z.controller.openDialog(D,
(r=(W=H)==null?void 0:(M=W.form)==null?void 0:M.element)!=null?r:document.body,d),0):w.return()})};
return q.yield(Z.panelLoadingStrategy.execute({command:G,data:Q.panelLoadingStrategy,renderFn:l,createScreenConfig:{layer:4}}),0)})};
Sz[kM]=[_.aP,qI];var us=function(G,H,Z){this.innertubeTransportService=G;this.controller=H;this.JSC$17578_screenManager=Z};
_.T(us,Ff);
us.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r;return _.S(function(w){switch(w.nextAddress){case 1:Q=_.X(G,_.nM);if(!Q)return w.return();var x,U=Q.panelIdentifier||((x=Q.identifier)==null?void 0:x.tag);if(!U)throw Error("Bi");p=U;return w.yield(Z.controller.isVisible(p,!0),2);case 2:if((l=w.yieldResult)&&Q.blockIfPanelOpen)return w.return();B=(u=(q=Z.controller).getPanelContent)==null?void 0:u.call(q,p);if(!(x=B))if(Q){var R;x=((R=Q.globalConfiguration)==null?void 0:
R.initialState)||Q.engagementPanel;if(R=!x)R=!!(Q==null?0:(U=Q.engagementPanelPresentationConfigs)==null?0:U.engagementPanelPopupPresentationConfig);R&&(x=_.VJX(Q.panelIdentifier,Q.identifier))}else x=void 0;t=x;D=Q.engagementPanelPresentationConfigs;d=Q.engagementPanelExtras;return w.yield(Z.controller.showPanel({identifier:p,panelContents:t,config:D,extras:d,target:(e=H)==null?void 0:(n=e.form)==null?void 0:n.element}),3);case 3:if(!Q.globalConfiguration){w.jumpTo(0);break}if(Q.globalConfiguration.reuseModelAndState&&
_.V("enable_ai_companion")&&(M=(W=(c=Z.controller).getPanelContent)==null?void 0:W.call(c,p)))return w.return();_.Te(Z.JSC$17578_screenManager,32633);return w.yield(_.wb(Z.innertubeTransportService,G),5);case 5:return r=w.yieldResult,Z.JSC$17578_screenManager.graftServerVe(r.trackingParams),w.yield(Z.controller.updatePanel({identifier:p,panelContents:r.content,shouldFocus:!0,extras:d,updatePanelContinuationData:r.updatePanelContinuationData}),0)}})};
us[kM]=[_.t0,_.iU,_.rv];var Bw=function(G,H){this.controller=G;this.panelLoadingStrategy=H};
_.T(Bw,Ff);Bw.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D;return _.S(function(d){Q=_.X(G,_.Jxo);if((p=Q)==null||!p.panelLoadingStrategy)return d.return();u=grj(Z.controller,(l=H)==null?void 0:(q=l.form)==null?void 0:q.element);t=(B=Q.contextualSheetPresentationConfig)==null?void 0:B.position;D=function(e){return _.S(function(n){return e.sheetViewModel?n.yield(Z.controller.openSheet({viewModel:e.sheetViewModel,sheetPosition:t},u),0):n.return()})};
return d.yield(Z.panelLoadingStrategy.execute({command:G,data:Q.panelLoadingStrategy,renderFn:D,createScreenConfig:{layer:0}}),0)})};
Bw[kM]=[_.On,qI];var Jh=function(G,H){this.controller=G;this.JSC$17589_commandHandler=H};
_.T(Jh,Ff);Jh.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l;return _.S(function(q){if(q.nextAddress==1){Q=_.X(G,eBw);var u=_.X(Q.showCommand,_.nM),B,t,D=(t=u==null?void 0:u.panelIdentifier)!=null?t:u==null?void 0:(B=u.identifier)==null?void 0:B.tag;if(!D)throw Error("Ci");p=D;return q.yield(Z.controller.isVisible(p),2)}return(l=q.yieldResult)?q.yield(Z.controller.hidePanel({identifier:p}),0):q.yield(Z.JSC$17589_commandHandler.resolveCommand(Q.showCommand,H),0)})};
Jh[kM]=[_.iU,_.Dk];var th=function(G,H,Z){this.innertubeTransportService=G;this.controller=H;this.JSC$17592_screenManager=Z};
_.T(th,Ff);
th.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L,H3;return _.S(function(qX){switch(qX.nextAddress){case 1:return Q=Z=_.X(G,XYa),p=Q.targetPanelIdentifier,l=Q.contentSourcePanelIdentifier,q=Q.globalConfiguration,((u=p)==null?0:u.tag)&&((B=l)==null?0:B.tag)?q?qX.yield(H.controller.showPanel({identifier:p.tag,panelContents:_.VJX(p.tag,p)}),5):qX.yield((e=(d=H.controller).getPanel)==null?void 0:e.call(d,l.tag),4):qX.return();case 4:n=qX.yieldResult;t=(c=n)==
null?void 0:(M=(W=c).getPanelContent)==null?void 0:M.call(W);qX.jumpTo(3);break;case 5:return qX.yield(_.wb(H.innertubeTransportService,G),6);case 6:r=qX.yieldResult,((w=r)==null?0:w.trackingParams)&&H.JSC$17592_screenManager.graftServerVe(r.trackingParams),t=(x=r)==null?void 0:x.content,D=(U=r)==null?void 0:U.updatePanelContinuationData;case 3:if(L=(R=t)==null?void 0:R.engagementPanelSectionListRenderer)return qX.yield(H.controller.showPanel({identifier:p.tag,panelUpdatableFields:{content:L.content,
secondaryHeaderContent:(H3=L.header)!=null?H3:{},targetId:L.targetId,loggingDirectives:L.loggingDirectives},updatePanelContinuationData:D}),0);qX.jumpTo(0)}})};
th[kM]=[_.t0,_.iU,_.rv];var kd=function(){};
_.T(kd,Ff);kd.prototype.resolveCommand=function(G){var H,Z,Q;return _.S(function(p){if(p.nextAddress==1)return(H=_.X(G,v9w))?p.yield(_.Gk(),2):p.return();Z=p.yieldResult;if(!Z)return p.return();var l=Z,q=(Q=H)==null?void 0:Q.languageCode,u;(l==null?0:(u=l.isReady)==null?0:u.call(l))&&(q=$su(l,q))&&l.setAudioTrack(q);_.K0(p)})};var Ds=function(){};
_.T(Ds,Ff);var Iwo=function(G){var H;return _.S(function(Z){H=_.xI("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;G.JSC$17603_mainAppPlayer=new ZK(H);document.addEventListener("yt-page-data-updated",G.JSC$17603_pauseOnNavigation.bind(G));_.K0(Z)})};
Ds.prototype.JSC$17603_pauseOnNavigation=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return H=G.JSC$17603_mainAppPlayer,Q.yield(H.api,2);Z=Q.yieldResult;Z.pauseVideo();_.K0(Q)})};
var qAm=function(G,H,Z){var Q;return _.S(function(p){Q=G.JSC$17603_mainAppPlayer;return p.yield(Q.loadVideoWithPlayerVars({videoId:H,audio_only:"1",player_params:Z}),0)})};
Ds.prototype.pauseVideo=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return H=G.JSC$17603_mainAppPlayer,Q.yield(H.api,2);Z=Q.yieldResult;Z.pauseVideo();_.K0(Q)})};
Ds.prototype.playVideo=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return H=G.JSC$17603_mainAppPlayer,Q.yield(H.api,2);Z=Q.yieldResult;Z.playVideo();_.K0(Q)})};
var SAt=function(G){var H,Z;return _.S(function(Q){if(Q.nextAddress==1)return H=G.JSC$17603_mainAppPlayer,Q.yield(H.api,2);Z=Q.yieldResult;Z.mute();_.K0(Q)})},ukL=function(G){var H,Z;
return _.S(function(Q){if(Q.nextAddress==1)return H=G.JSC$17603_mainAppPlayer,Q.yield(H.api,2);Z=Q.yieldResult;Z.unMute();_.K0(Q)})};
Ds.prototype.stopVideo=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return H=G.JSC$17603_mainAppPlayer,Q.yield(H.api,2);Z=Q.yieldResult;Z.stopVideo();_.K0(Q)})};
var B3o=function(G,H){return _.S(function(Z){switch(Z.nextAddress){case 1:switch(H){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return Z.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return Z.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return Z.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return Z.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return Z.jumpTo(6)}Z.jumpTo(0);break;case 2:return Z.yield(G.playVideo(),8);case 8:Z.jumpTo(0);break;case 3:return Z.yield(G.pauseVideo(),
9);case 9:Z.jumpTo(0);break;case 4:return Z.yield(G.stopVideo(),10);case 10:Z.jumpTo(0);break;case 5:return Z.yield(SAt(G),11);case 11:Z.jumpTo(0);break;case 6:return Z.yield(ukL(G),12);case 12:Z.jumpTo(0)}})};
Ds.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e;return _.S(function(n){return n.nextAddress==1?(Z=_.X(G,bt2),((Q=Z)==null?0:Q.newPlaybackParams)||((p=Z)==null?0:p.controlAction)?H.JSC$17603_mainAppPlayer?n.jumpTo(2):n.yield(Iwo(H),2):n.return()):((l=Z)==null?0:l.newPlaybackParams)?(B=(q=Z)==null?void 0:(u=q.newPlaybackParams)==null?void 0:u.externalVideoId,e=(d=(t=Z)==null?void 0:(D=t.newPlaybackParams)==null?void 0:D.playerParams)!=null?d:"",B?n.yield(qAm(H,B,e),0):n.return()):
n.yield(B3o(H,Z.controlAction),0)})};var dd=function(G){this.JSC$17610_commandHandler=G};
_.T(dd,Ff);
dd.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u;return _.S(function(B){if(B.nextAddress==1)return(Z=_.X(G,Wd_))?B.yield(_.Gk(),2):B.return();Q=B.yieldResult;if(!Q)return B.return();var t=Q,D=(p=Z)==null?void 0:p.languageCode,d=(l=Z)==null?void 0:l.isAutoTranslated;t.getVideoData&&_.co3(t).length&&((D=fdo(t,D,d))?t.setOption("captions","track",D):(t.setOption("captions","stickyLoading",{}),t.setOption("captions","track",{})));q=Q.isSubtitlesOn()?_.Zg("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Zg("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");u=_.Nv(q,5E3);H.JSC$17610_commandHandler.resolveCommand(u);_.K0(B)})};
dd[kM]=[_.Dk];var ez=function(G,H){this.shortsPlayerPromise=G;this.JSC$17614_commandHandler=H};
_.T(ez,Ff);
ez.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t;return _.S(function(D){if(D.nextAddress==1)return(Z=_.X(G,L$w))?D.yield(H.shortsPlayerPromise,2):D.return();Q=D.yieldResult;var d=v4e(Q);d!=null&&d.length||(Q.loadModule("captions"),d=v4e(Q));p=d;if((l=p)==null||!l.length)return q=_.Zg("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.Nv(q),H.JSC$17614_commandHandler.resolveCommand(u),D.return();Q.toggleSubtitles();B=Q.isSubtitlesOn()?_.Zg("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Zg("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");t=_.Nv(B);H.JSC$17614_commandHandler.resolveCommand(t);_.K0(D)})};
ez[kM]=[_.UTR,_.Dk];var nc=function(G){this.JSC$17617_actionRouter=G;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(H,Z){H.triggerAction("yt-dismiss-shopping-timely-shelf-action",Z)}]])};
_.T(nc,Ff);nc.prototype.resolveCommand=function(G){var H=this,Z,Q,p;return _.S(function(l){Z=_.X(G,jI4);if((Q=Z)==null||!Q.overlayId)return l.return();p=H.dismissPlayerOverlayActions.get(Z.overlayId);if(!p)throw Error("Di`"+Z.overlayId);p(H.JSC$17617_actionRouter,Z);_.K0(l)})};
nc[kM]=[JP];var VT=function(G){this.JSC$17621_playerPromise=G};
_.T(VT,Ff);VT.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return(Z=_.X(G,DPT))?q.yield(H.JSC$17621_playerPromise,2):q.return();Q=q.yieldResult;p=Q.getVideoData().video_id;Z.videoId===p&&(l=Number(Z.offsetFromVideoStartMilliseconds),l>=0&&Q.seekTo(l/1E3));_.K0(q)})};
VT[kM]=[_.LI];var Ja6=_.G9("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),$d=function(G){this.store=G};
_.T($d,Ff);
var ttq=function(G){var H,Z,Q,p;return _.S(function(l){if(l.nextAddress==1)return H=_.xI("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,Z=_.xI("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,Q=H||Z,G.JSC$17625_mainAppPlayer=new ZK(Q),l.yield(G.JSC$17625_mainAppPlayer.api,2);p=l.yieldResult;p.addEventListener("onStateChange",G.JSC$17625_playerStateChangeListener.bind(G));document.addEventListener("yt-page-data-updated",G.JSC$17625_pauseOnNavigation.bind(G));window.addEventListener("state-navigatestart",
G.JSC$17625_pauseOnNavigation.bind(G));_.K0(l)})};
$d.prototype.JSC$17625_playerStateChangeListener=function(G){switch(G){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"}k5D(this)};
var k5D=function(G){G.store.dispatch(_.uP("sfvAudioItemCurrentlyPlayingEntity",Ja6,{key:Ja6,externalVideoId:G.externalVideoId,sfvAudioItemPlaybackState:G.playbackState,nowPlayingEntityValue:G.nowPlayingEntityValue}))};
$d.prototype.JSC$17625_pauseOnNavigation=function(){var G=this,H,Z,Q,p;return _.S(function(l){if(l.nextAddress==1){if(!G.JSC$17625_mainAppPlayer){var q=new _.C$("Error: mainAppPlayer is unavailable",G.JSC$17625_mainAppPlayer);_.me(q);return l.return()}return l.yield(G.JSC$17625_mainAppPlayer.api,2)}H=l.yieldResult;Q=(Z=H)==null?void 0:Z.getPlayerState();Q!==1||(p=H)!=null&&p.pauseVideo();_.K0(l)})};
$d.prototype.playVideo=function(G,H,Z){var Q=this,p,l;return _.S(function(q){if(q.nextAddress==1)return q.yield((p=Q.JSC$17625_mainAppPlayer)==null?void 0:p.api,2);l=q.yieldResult;if(!Q.JSC$17625_mainAppPlayer||!l){var u=new _.C$("Error: mainAppPlayer is unavailable",Q.JSC$17625_mainAppPlayer);_.me(u);return q.return()}return q.yield(Q.JSC$17625_mainAppPlayer.loadVideoWithPlayerVars({videoId:Q.externalVideoId,audio_only:"1",start:G/1E3,end:G/1E3+H,player_params:Z}),0)})};
$d.prototype.pauseVideo=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1){if(!G.JSC$17625_mainAppPlayer){var p=new _.C$("Error: mainAppPlayer is unavailable",G.JSC$17625_mainAppPlayer);_.me(p);return Q.return()}return Q.yield(G.JSC$17625_mainAppPlayer.api,2)}H=Q.yieldResult;(Z=H)==null||Z.pauseVideo();_.K0(Q)})};
$d.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U;return _.S(function(R){if(R.nextAddress==1)return Z=_.X(G,R1d),p=(Q=Z)==null?void 0:Q.nowPlayingEntityValue,q=(l=Z)==null?void 0:l.externalVideoId,d=Number((D=(u=Z)==null?void 0:(B=u.defaultStartPoints)==null?void 0:(t=B[0])==null?void 0:t.offsetMs)!=null?D:"0"),r=Number((M=(e=Z)==null?void 0:(n=e.defaultStartPoints)==null?void 0:(c=n[0])==null?void 0:(W=c.duration)==null?void 0:W.seconds)!=null?M:"15"),U=(x=
(w=Z)==null?void 0:w.playerParams)!=null?x:"",p&&q?H.JSC$17625_mainAppPlayer?R.jumpTo(2):R.yield(ttq(H),2):R.return();if(R.nextAddress!=6){if(H.nowPlayingEntityValue&&p===H.nowPlayingEntityValue)return H.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?R.yield(H.pauseVideo(),0):R.yield(H.playVideo(d,r,U),0);H.externalVideoId=q;H.nowPlayingEntityValue=p;H.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return R.yield(H.playVideo(d,r,U),6)}k5D(H);return R.jumpTo(0)})};
$d[kM]=[R9];var XB=function(G){this.JSC$17643_commandHandler=G};
_.T(XB,Ff);XB.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return(Q=_.X(G,zsT))?q.yield(_.Gk(),2):q.return();p=q.yieldResult;if(!p)return q.return();(l=Wcf(p))&&Z.JSC$17643_commandHandler.resolveCommand(l,H);_.K0(q)})};
XB[kM]=[_.Dk];var cw=function(G){this.JSC$17649_commandHandler=G};
_.T(cw,Ff);cw.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u;return _.S(function(B){if(B.nextAddress==1)return(Q=_.X(G,Kdw))?B.yield(_.Gk(),2):B.return();p=B.yieldResult;if(!p)return B.return();(l=PQf(p))?Z.JSC$17649_commandHandler.resolveCommand(l,H):(q=_.Zg("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.Nv(q),Z.JSC$17649_commandHandler.resolveCommand(u));_.K0(B)})};
cw[kM]=[_.Dk];var T6=function(G){this.JSC$17652_playerPromise=G};
_.T(T6,Ff);T6.prototype.resolveCommand=function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1)return(Z=_.X(G,hg2))?p.yield(H.JSC$17652_playerPromise,2):p.return();Q=p.yieldResult;Q.isFullscreen()&&Q.wakeUpControls();_.K0(p)})};
T6[kM]=[_.LI];var fc=function(G){this.JSC$17655_playerPromise=G};
_.T(fc,Ff);fc.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q;return _.S(function(u){if(u.nextAddress==1){Z=_.X(G,dPa);if(!Z)return u.return();Q=Z.overlayRenderer;return Q?(p=_.X(Q,yiw))?u.yield(H.JSC$17655_playerPromise,3):u.jumpTo(0):u.return()}l=u.yieldResult;l.renderChapterSeekingAnimation(1,_.yn(p.text),(q=p.icon)==null?void 0:q.iconType);_.K0(u)})};
fc[kM]=[_.LI];var vw=function(G){this.store=G};
_.T(vw,Ff);
vw.prototype.resolveCommand=function(G){var H=this,Z,Q,p;return _.S(function(l){if(l.nextAddress==1){Z=_.X(G,Gsp);if(!Z)return l.return();Q="";(p=H.store.getState().collabInviteLink)&&Z.id===p.playlistId?Q=p.inviteLinkURL:Z.shortUrl&&(Q=Z.shortUrl);return Q?l.yield(navigator.clipboard.writeText(Q),3):l.jumpTo(0)}var q={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Zg("COPY_LINK_SUCCESS_TOAST")}}}}};_.tp().resolve(_.Dk).resolveCommand(q);_.K0(l)})};
vw[kM]=[oh];var Ww=function(G,H){this.innertubeTransportService=G;this.JSC$17665_commandHandler=H};
_.T(Ww,Ff);Ww.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e;return _.S(function(n){if(n.nextAddress==1)return(Q=_.X(G,_.Ge))?n.yield(_.wb(Z.innertubeTransportService,G,(p=H)==null?void 0:p.form),2):n.return();(l=n.yieldResult)&&l.errorMetadata&&(q=l,u=_.Nv(q.error.message),Z.JSC$17665_commandHandler.resolveCommand(u));B=l;if((t=B)==null?0:t.actions)for(D=_.I(B.actions),d=D.next();!d.done;d=D.next())e=d.value,Z.JSC$17665_commandHandler.resolveCommand(e);_.K0(n)})};
Ww[kM]=[_.t0,_.Dk];var z6=function(){};
_.T(z6,Ff);z6.prototype.resolveCommand=function(G){var H;return _.S(function(Z){H=_.X(G,Udt);if(!H)return Z.return();(new D3T(H)).show();_.K0(Z)})};_.Kc=new _.Gv("PLAYLIST_EDIT_CONTROLLER_TOKEN");var MI=function(G,H,Z,Q){this.store=G;this.innertubeTransportService=H;this.controller=Z;this.JSC$17673_commandHandler=Q};
_.T(MI,Ff);
MI.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L,H3,qX,B3,fW,e2,$R;return _.S(function(ie){if(ie.nextAddress==1){Q=_.X(G,_.A$);if(!Q)return ie.return();if(Q.clientActions){p=_.I(Q.clientActions);for(l=p.next();!l.done;l=p.next())q=l.value,Z.JSC$17673_commandHandler.resolveCommand(q,H);var W3,DT=H==null?void 0:(W3=H.form)==null?void 0:W3.element;DT&&_.N5(DT,"yt-dismissible-item-action",Q.clientActions)}return ie.yield(_.wb(Z.innertubeTransportService,G,(u=
H)==null?void 0:u.form),2)}if(B=ie.yieldResult)B.errorMetadata?(t=B,D=_.Nv(t.error.message),Z.JSC$17673_commandHandler.resolveCommand(D),"error"in B&&((d=H)==null?0:(e=d.commandController)==null?0:e.onServerError)&&((n=H)==null||(c=n.commandController)==null||c.onServerError(G,B))):(W=H)==null||(M=W.commandController)==null||(w=(r=M).onSuccess)==null||w.call(r,G,B);x=B;((U=x)==null?0:U.collaborationInviteLink)&&Q.playlistId&&(_.V("web_enable_invite_collaborators_link")||_.V("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
Z.store.dispatch(_.Lo({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:Q.playlistId,inviteLinkUrl:x.collaborationInviteLink}}));((R=x)==null?0:R.redirectEndpoint)&&Z.JSC$17673_commandHandler.resolveCommand(x.redirectEndpoint);((L=x)==null?0:(H3=L.newHeader)==null?0:H3.playlistHeaderRenderer)?D46(Z.controller,x.newHeader.playlistHeaderRenderer):((qX=x)==null?0:(B3=qX.newHeader)==null?0:B3.musicEditablePlaylistDetailHeaderRenderer)&&D46(Z.controller,x.newHeader.musicEditablePlaylistDetailHeaderRenderer);
Z.controller.playlistVideoListElement&&((fW=x)==null?0:(e2=fW.playlistEditResults)==null?0:($R=e2[0])==null?0:$R.playlistEditVideoAddedResultData)&&((DT=Z.controller.playlistVideoListElement)==null||DT.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:x.playlistEditResults[0].playlistEditVideoAddedResultData})));_.K0(ie)})};
MI[kM]=[_.oT,_.t0,_.Kc,_.Dk];var jz=function(G,H){this.controller=G;this.JSC$17683_commandHandler=H};
_.T(jz,Ff);jz.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l;return _.S(function(q){Q=_.X(G,HFd);Z.controller.showRefreshPill&&((p=Q)==null?0:p.command)&&(Z.JSC$17683_commandHandler.resolveCommand((l=Q)==null?void 0:l.command,H),Z.controller.showRefreshPill=!1);_.K0(q)})};
jz[kM]=[_.VC,_.Dk];var Pw=function(G,H){this.store=G;this.JSC$17687_commandHandler=H||_.HT.instance};
_.T(Pw,Ff);Pw.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e;return _.S(function(n){Q=_.X(G,ks7);p=Z.store.getState().radioButtonGroup;if((l=Q)==null?0:l.command)Z.JSC$17687_commandHandler.resolveCommand((q=Q)==null?void 0:q.command,H);else if(p&&((u=Q)==null?void 0:u.formId)===p.currentFormId)for(B=Object.values(p.commandsMap),t=_.I(B),D=t.next();!D.done;D=t.next())d=D.value,(e=_.Tt(d))&&Z.JSC$17687_commandHandler.resolveCommand(e,H);_.K0(n)})};
Pw[kM]=[_.oT];var rd=new _.Gv("USER_PREFS");var wd=function(G){this.JSC$17692_prefCookie=G};
_.T(wd,Ff);wd.prototype.resolveCommand=function(G){var H=this,Z;return _.S(function(Q){(Z=_.X(G,het))&&typeof Z.useListView==="boolean"&&(_.g8(0,155,Z.useListView),H.JSC$17692_prefCookie.save());_.K0(Q)})};
wd[kM]=[rd];var hh=function(G){this.JSC$17696_prefCookie=G};
_.T(hh,Ff);hh.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q;return _.S(function(u){Z=_.X(G,Nax);if((Q=Z)==null||!Q.gl)return u.return();p=Z.gl;l={persist_gl:"1",gl:p};H.JSC$17696_prefCookie.set("gl",p);H.JSC$17696_prefCookie.save();q=q1p(l);_.zz(q);_.K0(u)})};
hh[kM]=[rd];var Cc=function(G){this.JSC$17700_prefCookie=G};
_.T(Cc,Ff);Cc.prototype.resolveCommand=function(G){var H=this,Z,Q;return _.S(function(p){Z=_.X(G,ZFw);if(!Z)return p.return();Q=!1;Z.flagNum&&typeof Z.value==="boolean"?(_.g8(0,Z.flagNum,Z.value),Q=!0):Z.key&&typeof Z.stringValue==="string"&&(H.JSC$17700_prefCookie.set(Z.key,Z.stringValue),Q=!0);Q&&H.JSC$17700_prefCookie.save();_.K0(p)})};
Cc[kM]=[rd];var is=new _.Gv("PREF_STORAGE_PROMISE_TOKEN");var OT=function(G){this.JSC$17704_prefStoragePromise=G};
_.T(OT,Ff);OT.prototype.resolveCommand=function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1)return(Z=_.X(G,pZR))?p.yield(H.JSC$17704_prefStoragePromise,2):p.return();Q=p.yieldResult;return Q===void 0||Z.key===void 0||Z.value===void 0?p.return():p.yield(Q.set(Z.key,Z.value),0)})};
OT[kM]=[is];var a4=function(G){this.innertubeTransportService=G};
_.T(a4,Ff);a4.prototype.resolveCommand=function(G,H){var Z=this,Q,p;return _.S(function(l){(Q=_.X(G,_.J4G))&&Q&&Q.isFirstRequest&&(_.VY("search_overview_answer"),_.$K("so_rq",void 0,"search_overview_answer"));return l.yield(_.wb(Z.innertubeTransportService,G,(p=H)==null?void 0:p.form),0)})};
a4[kM]=[_.t0];var d4L=function(){};
_.T(d4L,Ff);
d4L.prototype.resolveCommand=function(G){var H,Z,Q,p,l,q,u,B,t;return _.S(function(D){H=_.X(G,kPG);if((Z=H)==null?0:Z.sectionIdentifier){if(H.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(p=(Q=document.getElementsByTagName(H.sectionIdentifier))==null?void 0:Q.item(0))p.scrollIntoView({behavior:"smooth"}),(l=IJ2(p))&&l.focus({preventScroll:!0});return D.return()}q=document.querySelector("[section-identifier="+H.sectionIdentifier+"]");u=document.querySelector("[section-identifier="+H.referenceSectionIdentifier+
"]");if(!q)return D.return();B=H.verticalScrollOffsetDp?H.verticalScrollOffsetDp:0;u&&(B-=u.offsetTop);window.scrollTo({top:q.offsetTop+B,behavior:"smooth"});(t=IJ2(q))&&t.focus({preventScroll:!0})}_.K0(D)})};var yT=function(G){this.JSC$17716_commandHandler=G};
_.T(yT,Ff);
yT.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B;return _.S(function(t){if(t.nextAddress==1){Z=_.X(G,Czd);if(!Z||!Z.imageBytes||!navigator.clipboard)return t.return();if(Z.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.me(Error("Fi")),t.return();_.XV(t,2);p=(Q=Z)==null?void 0:Q.imageBytes;l=p.replace(/-/g,"+").replace(/_/g,"/");q=JoU(l);u={};B=[new ClipboardItem((u[q.type]=q,u))];return t.yield(navigator.clipboard.write(B),4)}if(t.nextAddress!=2)return Z.successCommand&&
H.JSC$17716_commandHandler.resolveCommand(Z.successCommand),_.Za(t,0);_.Wg(t);Z.errorCommand&&H.JSC$17716_commandHandler.resolveCommand(Z.errorCommand);_.K0(t)})};
yT[kM]=[_.Dk];var o4=function(G,H){this.innertubeTransportService=G;this.JSC$17720_commandHandler=H};
_.T(o4,Ff);o4.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u;return _.S(function(B){if(B.nextAddress==1)return(Q=_.X(G,irp))?B.yield(_.wb(Z.innertubeTransportService,G,(p=H)==null?void 0:p.form),2):B.return();(l=B.yieldResult)&&l.errorMetadata&&Q.onFailureCommand&&Z.JSC$17720_commandHandler.resolveCommand(Q.onFailureCommand);q=l;((u=q)==null?0:u.shareCommand)&&Z.JSC$17720_commandHandler.resolveCommand(q.shareCommand,H);_.K0(B)})};
o4[kM]=[_.t0,_.Dk];var m8=function(){};
_.T(m8,Ff);m8.prototype.resolveCommand=function(G){var H,Z;return _.S(function(Q){H=_.X(G,FrN);if(!H||!navigator.share)return Q.return();Z={url:H.url};try{return Q.return(navigator.share(Z))}catch(p){}_.K0(Q)})};var UT=function(){};
_.T(UT,Ff);UT.prototype.resolveCommand=function(){return _.S(function(G){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.K0(G)})};var R4=function(G){this.JSC$17730_navigationConfirmationService=G};
_.T(R4,Ff);R4.prototype.resolveCommand=function(){var G=this;return _.S(function(H){G.JSC$17730_navigationConfirmationService.cancelPendingNavigation();_.K0(H)})};
R4[kM]=[KB];var NI=function(G){this.JSC$17733_screenManager=G};
_.T(NI,Ff);NI.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t;return _.S(function(D){p=(Q=H.form)==null?void 0:Q.event;q=(l=H.form)==null?void 0:l.element;if(!p)throw new _.C$("Event not passed in when resolving command");u=_.I(p.composedPath());for(B=u.next();!B.done;B=u.next())if(t=B.value,t.tagName==="YT-COPY-LINK-RENDERER")return t.copyUrlToClipboard(),q&&_.jQ(Z.JSC$17733_screenManager,q),D.return();_.K0(D)})};
NI[kM]=[_.rv];var Ah=function(){this.JSC$17737_miniAppClientDataProvider=_.tp().resolve(_.p_)};
_.T(Ah,Ff);Ah.prototype.resolveCommand=function(){var G=this,H,Z;return _.S(function(Q){if(G.JSC$17737_miniAppClientDataProvider.clientData.has("video_id")){var p=G.JSC$17737_miniAppClientDataProvider,l=p.clientData.get("video_id");l&&p.clientData.delete("video_id");H="https://youtube.com/watch?v="+l;Z=_.y2(H);if(Z===void 0)throw Error("Gi`"+H);_.Hg(window,Z)}_.K0(Q)})};var xd=function(){};
_.T(xd,Ff);xd.prototype.resolveCommand=function(){return _.S(function(G){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.K0(G)})};var Lc=function(){};
_.T(Lc,Ff);Lc.prototype.resolveCommand=function(){var G;return _.S(function(H){if(H.nextAddress==1)return H.yield(_.FL2(window.document.documentElement),2);(G=document.querySelector("mini-app-container-view-model iframe"))&&G.focus();_.K0(H)})};var ET=function(G){this.JSC$17744_navigationConfirmationService=G};
_.T(ET,Ff);
ET.prototype.resolveCommand=function(){var G=this;return _.S(function(H){var Z=G.JSC$17744_navigationConfirmationService,Q=_.tp().resolve(_.f2),p;if(((p=Z.navigateParams)==null?void 0:p.data)!==void 0){var l;_.vtt(Q,Z.navigateParams.endpoint,Z.navigateParams.data,(l=Z.navigateParams.navigationType)!=null?l:1,Z.navigateParams.tempData,Z.navigateParams.isMiniplayer,void 0,!0);Z.navigateParams=void 0;Z.customConfirmationCommand=void 0}else Z.navigateParams&&(Q.navigate(Z.navigateParams.endpoint,Z.navigateParams.reload,
Z.navigateParams.params,Z.navigateParams.tempData,Z.navigateParams.requestType,Z.navigateParams.createScreenConfig,!0),Z.navigateParams=void 0,Z.customConfirmationCommand=void 0);_.K0(H)})};
ET[kM]=[KB];var Yd=function(){};
_.T(Yd,Ff);Yd.prototype.resolveCommand=function(){return _.S(function(G){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.K0(G)})};var FB=function(G){this.JSC$17749_prefStorage=G};
_.T(FB,Ff);FB.prototype.resolveCommand=function(){var G=this,H,Z;return _.S(function(Q){switch(Q.nextAddress){case 1:return Q.yield(G.JSC$17749_prefStorage,2);case 2:return(H=Q.yieldResult)?Q.yield(H.set("sfvle",!1),3):Q.return();case 3:return Q.yield(H.set("sfvles",!0),4);case 4:Z=_.lf(),_.g8(0,203,!1),_.g8(0,204,!0),Z.save(),_.K0(Q)}})};
FB[kM]=[is];var bs=function(G){this.JSC$17752_prefStorage=G};
_.T(bs,Ff);bs.prototype.resolveCommand=function(){var G=this,H,Z;return _.S(function(Q){switch(Q.nextAddress){case 1:return Q.yield(G.JSC$17752_prefStorage,2);case 2:return(H=Q.yieldResult)?Q.yield(H.set("sfvle",!0),3):Q.return();case 3:return Q.yield(H.set("sfvles",!0),4);case 4:Z=_.lf(),_.g8(0,203,!0),_.g8(0,204,!0),Z.save(),_.K0(Q)}})};
bs[kM]=[is];_.eOk=new _.Gv("SNACKBAR_CONTROLLER_TOKEN");_.nrj=new _.Gv("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Gn=function(G){this.controller=G};
_.T(Gn,Ff);Gn.prototype.resolveCommand=function(G){var H=this,Z;return _.S(function(Q){Z=_.X(G,Hda);if(!Z)return Q.return();var p=H.controller;p.closeSnackbarFn&&p.closeSnackbarFn();_.K0(Q)})};
Gn[kM]=[_.eOk];var HX=function(G,H){this.controller=G;this.sheetController=H};
_.T(HX,Ff);HX.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B;return _.S(function(t){Q=_.X(G,ZdG);if(!Q)return t.return();q=grj(Z.sheetController,(p=H)==null?void 0:(l=p.form)==null?void 0:l.element);u=_.X(Q.content,dJp);if(!u)return t.return();var D=Z.controller,d=u,e=(B=Q.animationStyle)!=null?B:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(D.showSnackbarFn)D.showSnackbarFn({snackbarViewModel:d,animationStyle:e,durationMs:Q.durationSeconds*1E3,target:q});else throw Error("zj");_.K0(t)})};
HX[kM]=[_.eOk,_.On];var s2=function(){};
_.T(s2,Ff);s2.prototype.resolveCommand=function(G){var H;return _.S(function(Z){H=_.X(G,Q$w);if(!H||typeof H.key!=="string"||typeof H.value!=="string")return Z.return();window.localStorage.setItem(H.key,H.value);_.K0(Z)})};var ZV=function(G){this.store=G};
_.T(ZV,Ff);ZV.prototype.resolveCommand=function(G){var H=this,Z;return _.S(function(Q){Z=_.X(G,Bev);if(!Z||!Z.stepId||!Z.token)return Q.return();H.store.dispatch(AJ_({stepId:Z.stepId,token:Z.token,isSelected:!1}));_.K0(Q)})};
ZV[kM]=[oh];var Qu=function(G,H,Z){this.innertubeTransportService=G;this.store=H;this.JSC$17771_screenManager=Z};
_.T(Qu,Ff);
Qu.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L,H3,qX,B3;return _.S(function(fW){Z=_.X(G,F1R);if(!Z||(Q=Z.stepIds)==null||!Q.length)return fW.return();p=H.store.getState().talkToRecs;l=[];q=[];u=_.I(Z.stepIds);for(B=u.next();!B.done;B=u.next())for(t=B.value,D=void 0,(d=(D=p.stepStates[t])==null?void 0:D.userQuery)&&q.push({userQuery:d.userQuery,userQueryToken:d.token}),n=e=void 0,c=(n=(e=p.stepStates[t])==null?void 0:e.selectionStates)!=null?n:{},W=_.I(Object.entries(c)),
M=W.next();!M.done;M=W.next())r=M.value,w=_.I(r),x=w.next().value,U=w.next().value,R=x,L=U,L.isSelected&&l.push(R);H3={selectedChipTokens:l,userQueries:q,submittedStepIds:Z.stepIds};qX={browseTalk2recsFormData:H3};Z.browseEndpoint?(B3=G,_.nX(B3,_.gT,Z.browseEndpoint)):Z.command&&(B3=Z.command);return B3?fW.yield(_.wb(H.innertubeTransportService,B3,{formData:qX,disableCache:!0}).then(function(e2){(e2==null?0:e2.trackingParams)&&H.JSC$17771_screenManager.graftServerVe(e2==null?void 0:e2.trackingParams)}),
0):fW.return()})};
Qu[kM]=[_.t0,oh,_.rv];var pC=function(G){this.store=G};
_.T(pC,Ff);
pC.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B;return _.S(function(t){Z=_.X(G,upR);if(!Z||!Z.stepId||!Z.token)return t.return();Z.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY"?(q=(l=(Q=H.store.getState().talkToRecs.stepStates[Z.stepId])==null?void 0:(p=Q.userQuery)==null?void 0:p.userQuery)!=null?l:"",u=q.length>0?". ":"",B=q+u+Z.selectedText,H.store.dispatch(xTG({stepId:Z.stepId,userQueryToken:Z.token,userQuery:B}))):H.store.dispatch(AJ_({stepId:Z.stepId,token:Z.token,
isSelected:!0}));_.K0(t)})};
pC[kM]=[oh];var lg=function(G){this.store=G};
_.T(lg,Ff);lg.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u;return _.S(function(B){Q=_.X(G,E0b);if(!Q||!Q.stepId||!Q.userQueryToken)return B.return();u=(q=(p=H)==null?void 0:(l=p.form)==null?void 0:l.userQuery)!=null?q:"";Z.store.dispatch(xTG({stepId:Q.stepId,userQueryToken:Q.userQueryToken,userQuery:u}));_.K0(B)})};
lg[kM]=[oh];_.Vta=new _.Gv("TIMELY_ACTIONS_CONTROLLER_TOKEN");var g6=function(G){this.controller=G};
_.T(g6,Ff);g6.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l;return _.S(function(q){Z=_.X(G,BW4);if(!Z)return q.return();Q=Z;p=Q.id;l=Q.isVisible;if(p===void 0||l===void 0)return q.return();var u;(u=H.controller.timelyActionsMap.get(p))==null||u(p,l);_.K0(q)})};
g6[kM]=[_.Vta];var $4a=function(){this.timelyActionsMap=new Map};var Ic=function(G){this.JSC$17797_commandHandler=G};
_.T(Ic,Ff);Ic.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q;return _.S(function(u){Z=_.X(G,_.Xs7);if(!Z)return u.return();l=(Q=Z.item)==null?void 0:(p=Q.notificationTextRenderer)==null?void 0:p.successResponseText;if(!l)return u.return();q=_.Rq(l);H.JSC$17797_commandHandler.resolveCommand(q);_.K0(u)})};
Ic[kM]=[_.Dk];var qp=function(G,H){this.innertubeTransportService=G;this.JSC$17802_playerApiPromise=H};
_.T(qp,Ff);
qp.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D;return _.S(function(d){if(d.nextAddress==1)return d.yield(H.JSC$17802_playerApiPromise,2);Z=d.yieldResult;Q=Z.getOption("captions","track");p=Object.assign({},_.X(G,_.vxa));(q=(l=Z.getVideoData())==null?void 0:l.video_id)?p.externalVideoId=q:_.HU(Error("Hi"));if((u=Q)==null?0:u.languageCode)p.languageCode=Q.languageCode;if((B=Q)==null?0:B.kind)p.kind=Q.kind;if((t=Q)==null?0:t.name)p.name=Q.name;D=Object.assign({},G,{getTranscriptEndpoint:p});return d.yield(_.wb(H.innertubeTransportService,
D),0)})};
qp[kM]=[_.t0,_.LI];var S0=function(){};
_.T(S0,Ff);S0.prototype.resolveCommand=function(G){var H,Z,Q,p,l,q,u,B;return _.S(function(t){H=_.X(G,tLa);if((Z=H)==null||!Z.paramKeyValuePairs)return t.return();Q=window.location.href;p=_.I(H.paramKeyValuePairs);for(l=p.next();!l.done;l=p.next())q=l.value,q.key&&q.value&&(u={},Q=_.l0(Q,(u[q.key]=q.value,u)));B=_.tp().resolve(_.fB);_.TV(B,Q);_.K0(t)})};_.ug=new _.Gv("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var BX=function(){};
_.T(BX,NZ);_.g=BX.prototype;_.g.getApiPaths=function(){return kQR};
_.g.getExtension=function(G){return _.X(G,_.hZ)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$14177_getStoreKey=function(G){if((G=this.getExtension(G))&&G.videoId){var H={videoId:G.videoId};G.playlistId&&(H.playlistId=G.playlistId);G.index&&(H.index=G.index);G.params&&(H.params=G.params);return _.wj("next",H)}};
_.g.JSC$14170_getClientScreen=function(G){var H;return((H=G.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.g.JSC$14170_buildRequest=function(G,H,Z){H.videoId&&(G.videoId=H.videoId);H.playlistId&&(G.playlistId=H.playlistId);H.params&&(G.params=H.params);H.index!==void 0&&(G.playlistIndex=H.index);G.racyCheckOk=!(!Z.racyCheckOk&&!H.racyCheckOk);G.contentCheckOk=!!H.contentCheckOk;Z.contentPlaybackContext&&(G.autonavState=Z.contentPlaybackContext.autonavState,G.playbackContext={vis:Z.contentPlaybackContext.vis,lactMilliseconds:Z.contentPlaybackContext.lactMilliseconds});Z.prefetchPlaybackContext&&(G.context.request||
(G.context.request={}),G.context.request.isPrefetch=!0);_.V("captions_hats_killswitch")||(H=_.lf().getFlag(65),H=H!=null?!H:!1,Z=!!_.dT("yt-player-sticky-caption"),G.captionsRequested=H&&Z)};
_.g.getRequestConfig=function(G){G=this.JSC$14177_getStoreKey(G);var H;G&&(H={storeStrategy:{storeKey:G}});_.V("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="wn_s",H.responseTick="wn_r");return H};
var Jn=function(){};
_.T(Jn,NZ);Jn.prototype.getApiPaths=function(){return kQR};
Jn.prototype.getExtension=function(G){return _.X(G,_.vh)};
Jn.prototype.JSC$14170_buildRequest=function(G,H){H.token&&(G.continuation=H.token)};var tn=function(G,H,Z,Q){this.controller=G;this.JSC$17822_playerApiPromise=H;this.innertubeTransportService=Z;this.JSC$17822_commandHandler=Q};
_.T(tn,Ff);
tn.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x;return _.S(function(U){if(U.nextAddress==1){Z=_.X(G,CAx);if((Q=Z)==null||!Q.watchEndpoint)return U.return();p=new BX;l=p.JSC$14170_getRequest(Z.watchEndpoint);if(!l)return U.return();q=Z.watchEndpoint.clickTrackingParams;return U.yield(_.GP(H.innertubeTransportService,l.innerTubeRequest,l.input,q,l.config),2)}if(U.nextAddress!=3)return u=U.yieldResult,U.yield(H.JSC$17822_playerApiPromise,3);B=U.yieldResult;B.updateVideoData({raw_watch_next_response:u});
if(c=(t=u)==null?void 0:(D=t.contents)==null?void 0:(d=D.twoColumnWatchNextResults)==null?void 0:(e=d.results)==null?void 0:(n=e.results)==null?void 0:n.contents)M=(W=c.find(function(R){return R.videoPrimaryInfoRenderer}))==null?void 0:W.videoPrimaryInfoRenderer,((r=M)==null?0:r.subtitle)&&Xlq(H.controller,M.subtitle);
(x=(w=u)==null?void 0:w.onUiReady)&&H.JSC$17822_commandHandler.resolveCommand(x);_.K0(U)})};
tn[kM]=[_.ug,_.LI,_.t0,_.Dk];var cam=function(){this.subtitleChangeCallbackMap=new Map},Xlq=function(G,H){G=_.I(G.subtitleChangeCallbackMap.values());
for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z(H)};var kv=function(G,H){this.JSC$17832_commandHandler=G;this.innertubeTransportService=H};
_.T(kv,Ff);
kv.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x;return _.S(function(U){switch(U.nextAddress){case 1:return(l=(Q=H)==null?void 0:(p=Q.form)==null?void 0:p.element)&&_.W8(l),q=_.lf().get("hl"),u="",_.XV(U,2),U.yield(CQu(q),4);case 4:u=U.yieldResult;_.Za(U,3);break;case 2:return _.Wg(U),l&&_.zG(l),_.me(Error("Ji"),"ERROR"),U.return();case 3:B=_.X(G,L9a);if(!B)return l&&_.zG(l),U.return();(d=(t=B.commerceActionConfig)==null?void 0:(D=t.commandLifeCycleConfig)==null?
void 0:D.onStartCommand)&&Z.JSC$17832_commandHandler.resolveCommand(d);return U.yield(_.wb(Z.innertubeTransportService,G,{client_data:{paymentsClientToken:{token:u}}}),5);case 5:(e=U.yieldResult)?(l&&_.zG(l),((M=e)==null?0:M.command)&&Z.JSC$17832_commandHandler.resolveCommand(e.command),(x=(r=B.commerceActionConfig)==null?void 0:(w=r.commandLifeCycleConfig)==null?void 0:w.onSuccessCommand)&&Z.JSC$17832_commandHandler.resolveCommand(x)):(l&&_.zG(l),_.me(Error("Ki")),(W=(n=B.commerceActionConfig)==
null?void 0:(c=n.commandLifeCycleConfig)==null?void 0:c.onFailureCommand)&&Z.JSC$17832_commandHandler.resolveCommand(W)),_.K0(U)}})};
kv[kM]=[_.Dk,_.t0];var DV=function(G,H,Z){this.store=G;this.JSC$17848_commandHandler=H;this.innertubeTransportService=Z};
_.T(DV,Ff);
DV.prototype.resolveCommand=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d;return _.S(function(e){Q=_.X(G,E3w);p=Q.googlePaymentPayload;Q.onStartCommand&&Z.JSC$17848_commandHandler.resolveCommand(Q.onStartCommand);l=p.encryptedPurchaseParams;q=p.ypcLogWalletAnalyticDataEndpoint;u=Q.serializedTransactionFlowLoggingParams;B=p.serializedPaymentsClientParams;t=Q.ypcCujContext;d=adU(Z.innertubeTransportService,(D=H)==null?void 0:D.form,l,q,u,B,t);return e.return(d.then(function(n){ihu(H==null?void 0:H.form,
!1);var c=Z.store,W=Z.JSC$17848_commandHandler,M=n.integratorData;M==null||M===""||n.error!=null?(String(n.error)==="-1"&&Q.onDismissCommand?W.resolveCommand(Q.onDismissCommand):String(n.error)!=="-1"&&Q.onFailureCommand&&W.resolveCommand(Q.onFailureCommand),String(n.error)!=="-1"&&String(n.error)!=="132"&&_.me(Error("Li"),"ERROR")):(Q.googlePaymentEntityKey&&c.dispatch(_.uP("commerceAcquisitionClientPayloadEntity",Q.googlePaymentEntityKey,{key:Q.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:M,
fundsGuaranteeCallbackClientData:n.integratorClientCallbackData}}})),Q.onSuccessCommand&&W.resolveCommand(Q.onSuccessCommand));_.Yk()},function(n){ihu(H==null?void 0:H.form,!1);
_.me(n,"ERROR");Q.onFailureCommand&&Z.JSC$17848_commandHandler.resolveCommand(Q.onFailureCommand)}))})};
DV[kM]=[R9,_.Dk,_.t0];var d6=function(G,H){this.JSC$17852_commandHandler=G;this.purchaseManager=H};
_.T(d6,Ff);
d6.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D;return _.S(function(d){Z=_.X(G,Y5d);((Q=Z)==null?0:(p=Q.commandLifeCycleConfig)==null?0:p.onStartCommand)&&H.JSC$17852_commandHandler.resolveCommand(Z.commandLifeCycleConfig.onStartCommand);if(!((l=Z)==null?0:(q=l.googlePaymentPurchaseManagerPayload)==null?0:q.securePayloadBytes))return _.me(Error("Mi"),"ERROR"),d.return();u=iX2(_.YR(Z.googlePaymentPurchaseManagerPayload.securePayloadBytes));B=_.lf().get("hl");t=_.hQ();SPi(u.serialize(),
B,function(e){t.resolve(e)},function(e){t.reject(e)},t.resolve);
D=t.promise;return d.return(D.then(function(e){if(e)if(e==null?0:e.errorCode){_.me(Error("Ni`"+e.errorCode),"ERROR");var n,c;((n=Z)==null?0:(c=n.commandLifeCycleConfig)==null?0:c.onFailureCommand)&&H.JSC$17852_commandHandler.resolveCommand(Z.commandLifeCycleConfig.onFailureCommand)}else if(e==null?0:e.isCancelled){var W,M;((W=Z)==null?0:(M=W.commandLifeCycleConfig)==null?0:M.onCancelCommand)&&H.JSC$17852_commandHandler.resolveCommand(Z.commandLifeCycleConfig.onCancelCommand)}else{var r,w;((r=Z)==
null?0:(w=r.commandLifeCycleConfig)==null?0:w.onSuccessCommand)&&H.JSC$17852_commandHandler.resolveCommand(Z.commandLifeCycleConfig.onSuccessCommand)}},function(e){_.me(e,"ERROR");
var n,c;((n=Z)==null?0:(c=n.commandLifeCycleConfig)==null?0:c.onFailureCommand)&&H.JSC$17852_commandHandler.resolveCommand(Z.commandLifeCycleConfig.onFailureCommand)}))})};
d6[kM]=[_.Dk,uVk];var T3L=function(G,H){this.JSC$17860_commandHandler=G;this.commandAllowlistOverride=H;var Z;this.commandAllowlist=(Z=this.commandAllowlistOverride)!=null?Z:Kte};
T3L.prototype.handleResponse=function(G,H,Z){var Q,p=H==null?void 0:(Q=H.config)==null?void 0:Q.command;if(!p||this.commandAllowlist.some(function(l){return!!_.X(p,l)})){H=void 0;
Z!==void 0&&(H={form:{element:Z}});G.onResponseReceivedCommand&&this.JSC$17860_commandHandler.resolveCommand(G.onResponseReceivedCommand,H);G.onResponseReceivedAction&&this.JSC$17860_commandHandler.resolveCommand(G.onResponseReceivedAction,H);G.onResponseReceivedEndpoint&&this.JSC$17860_commandHandler.resolveCommand(G.onResponseReceivedEndpoint,H);G.command&&this.JSC$17860_commandHandler.resolveCommand(G.command,H);if(G.onResponseReceivedCommands)for(Z=_.I(G.onResponseReceivedCommands),Q=Z.next();!Q.done;Q=
Z.next())this.JSC$17860_commandHandler.resolveCommand(Q.value,H);if(G.onResponseReceivedActions)for(Z=_.I(G.onResponseReceivedActions),Q=Z.next();!Q.done;Q=Z.next())this.JSC$17860_commandHandler.resolveCommand(Q.value,H);if(G.onResponseReceivedEndpoints)for(Z=_.I(G.onResponseReceivedEndpoints),Q=Z.next();!Q.done;Q=Z.next())this.JSC$17860_commandHandler.resolveCommand(Q.value,H);if(G.actions)for(G=_.I(G.actions),Z=G.next();!Z.done;Z=G.next())this.JSC$17860_commandHandler.resolveCommand(Z.value,H)}};
T3L[kM]=[_.Dk,_.Jp(zQv)];var fwh=new _.Gv("INNERTUBE_TOKEN_SERVICE");var vrs=new _.Gv("SCHEDULER_TOKEN");var WTL=function(G){this.scheduler=G;G={};this.tokenMap=(G.app={},G.user={},G)};
WTL.prototype.handleResponse=function(G,H){if(!H)throw Error("Oi");var Z;if(G=(Z=G.responseContext)==null?void 0:Z.innertubeTokenJar){if(G.appTokens){var Q,p,l;Z=(Q=H.innerTubeRequest.context)==null?void 0:(p=Q.request)==null?void 0:(l=p.innertubeTokenJar)==null?void 0:l.appTokens;zOq(this,G.appTokens,this.tokenMap.app,Z)}if(G.userTokens){var q,u,B;H=(q=H.innerTubeRequest.context)==null?void 0:(u=q.request)==null?void 0:(B=u.innertubeTokenJar)==null?void 0:B.userTokens;zOq(this,G.userTokens,this.tokenMap.user,
H)}}};
WTL.prototype.processContext=function(G){G.request||(G.request={});var H=Object.keys(this.tokenMap.app).length,Z=Object.keys(this.tokenMap.user).length;if(H||Z)G.request.innertubeTokenJar={},H&&(G.request.innertubeTokenJar.appTokens=[].concat(_.OP(Object.values(this.tokenMap.app).flat()))),Z&&(G.request.innertubeTokenJar.userTokens=[].concat(_.OP(Object.values(this.tokenMap.user).flat())))};
var zOq=function(G,H,Z,Q){H=_.I(H);for(var p=H.next(),l={};!p.done;l={token$jscomp$139:void 0},p=H.next()){l.token$jscomp$139=p.value;if(l.token$jscomp$139.type===void 0)throw new _.C$("InnerTube token has no type",l.token$jscomp$139);if(l.token$jscomp$139.clearTokens)Z[l.token$jscomp$139.type]=[];else if(l.token$jscomp$139.value!==void 0){Z[l.token$jscomp$139.type]||(Z[l.token$jscomp$139.type]=[]);if(Q!==void 0&&Q.length){p=_.I(Q);for(var q=p.next(),u={};!q.done;u={requestToken:void 0},q=p.next())u.requestToken=
q.value,q=Z[l.token$jscomp$139.type].findIndex(function(B){return function(t){return t===B.requestToken||(0,_.oN.equals)(t,B.requestToken)}}(u)),q>-1&&Z[l.token$jscomp$139.type].splice(q,1)}Z[l.token$jscomp$139.type].push(l.token$jscomp$139);
l.token$jscomp$139.maxAgeSeconds&&Number(l.token$jscomp$139.maxAgeSeconds)>0&&G.scheduler.addLowPriorityJob(function(B){return function(){var t=Z[B.token$jscomp$139.type].indexOf(B.token$jscomp$139);t>-1&&Z[B.token$jscomp$139.type].splice(t,1)}}(l),Number(l.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.C$("InnerTube token has no value",l.token$jscomp$139);
}};
WTL[kM]=[vrs];var KTa=new _.Gv("LOCAL_INNERTUBE_ROUTER_TOKEN"),Mtt=new _.Gv("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var e0=function(G){this.serviceMap=G};
e0.prototype.shouldPreferLocalResponse=function(G,H){return(G=jNh(this,G))?G.shouldPreferLocalResponse(H):!1};
e0.prototype.localInnertubeResponse=function(G,H){var Z=this,Q;return _.S(function(p){return(Q=jNh(Z,G))?p.return(Q.localInnertubeResponse(H)):p.return(Promise.reject(Error("Pi")))})};
e0.prototype.canProvideFallbackResponse=function(G,H){return(G=jNh(this,G))?G.canProvideFallbackResponse(H):!1};
e0.prototype.localFallbackInnertubeResponse=function(G,H){var Z=this,Q;return _.S(function(p){return(Q=jNh(Z,G))?p.return(Q.localFallbackInnertubeResponse(H)):p.return(Promise.reject(Error("Pi")))})};
var jNh=function(G,H){H=_.vU(H);return H?(G=G.serviceMap[H])?G:null:null};
e0[kM]=[Mtt];var u$=function(){};
u$.prototype.shouldPreferLocalResponse=function(){return!1};
u$.prototype.localInnertubeResponse=function(){return _.S(function(G){return G.return(Promise.reject(Error("Qi")))})};
u$.prototype.canProvideFallbackResponse=function(){return!0};
u$.prototype.localFallbackInnertubeResponse=function(){var G,H,Z;return _.S(function(Q){G=sz("CLOSE_POPUP");H={openPopupAction:o4v()};Z={actions:[G,H]};return Q.return(Z)})};var sFj=function(G,H){this.JSC$17909_upliftPromise=G;this.store=H};
_.g=sFj.prototype;_.g.shouldPreferLocalResponse=function(G){var H=G.videoId,Z;if(Z=H)Z=RBo(this.store.getState().entities,G.videoId);return Z&&NWb(this.store.getState().entities,H)?Usv(this.store.getState().entities,G.playlistId):!1};
_.g.localInnertubeResponse=function(G){var H=this,Z;return _.S(function(Q){return(Z=H.getPlayerResponse(G))?Q.return(Promise.resolve(Z)):Q.return(Promise.reject(Error("Ri")))})};
_.g.canProvideFallbackResponse=function(G){return!!G.videoId};
_.g.localFallbackInnertubeResponse=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(H.JSC$17909_upliftPromise,2);Z=H.getPlayerResponse(G);var p;Z?p=Q.return(Promise.resolve(Z)):p=ka(H.store.getState().entities,G.videoId)?Q.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Nm(_.Zg("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:seU()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
Q.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Nm(_.Zg("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:HzM()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return p})};
_.g.getPlayerResponse=function(G){return e1u(this.store.getState().entities,G.videoId)};var SV=function(G,H){this.localPlayerService=G;this.localWatchNextService=H};
SV.prototype.shouldPreferLocalResponse=function(G){var H=G.playerRequest;G=G.watchNextRequest;return!!(H&&this.localPlayerService.shouldPreferLocalResponse(H)&&G&&this.localWatchNextService.shouldPreferLocalResponse(G))};
SV.prototype.localInnertubeResponse=function(G){var H=this,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1){Z=G.playerRequest;Q=G.watchNextRequest;if(!Z||!Q)throw new _.C$("Missing streaming request",G);return q.yield(H.localPlayerService.localInnertubeResponse(Z),2)}if(q.nextAddress!=3)return p=q.yieldResult,q.yield(H.localWatchNextService.localInnertubeResponse(Q),3);l=q.yieldResult;return q.return({playerResponse:p,watchNextResponse:l})})};
SV.prototype.canProvideFallbackResponse=function(G){var H=G.playerRequest;G=G.watchNextRequest;return!!(H&&this.localPlayerService.canProvideFallbackResponse(H)&&G&&this.localWatchNextService.canProvideFallbackResponse(G))};
SV.prototype.localFallbackInnertubeResponse=function(G){var H=this,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return Z=G.playerRequest,Q=G.watchNextRequest,Z&&Q?q.yield(H.localPlayerService.localFallbackInnertubeResponse(Z),2):q.return(Promise.reject(new _.C$("Missing streaming request",G)));if(q.nextAddress!=3)return p=q.yieldResult,q.yield(H.localWatchNextService.localFallbackInnertubeResponse(Q),3);l=q.yieldResult;return q.return({playerResponse:p,watchNextResponse:l})})};var gq=function(G){this.JSC$17919_persistentStorePromiseAccessor=G};
gq.prototype.shouldPreferLocalResponse=function(){return!1};
gq.prototype.localInnertubeResponse=function(){return _.S(function(G){return G.return(Promise.reject(Error("Si")))})};
gq.prototype.canProvideFallbackResponse=function(){return!0};
gq.prototype.localFallbackInnertubeResponse=function(){var G=this,H,Z;return _.S(function(Q){return Q.nextAddress==1?Q.yield(G.JSC$17919_persistentStorePromiseAccessor(),2):Q.nextAddress!=3?(H=Q.yieldResult)?Q.yield(H.get("service:guide:fallback"),3):Q.return(Promise.reject(Error("Ti"))):(Z=Q.yieldResult)&&_.mU(Z)?Q.return(RJu(_.mU(Z))):Q.return(Promise.reject(Error("Ui")))})};var BM=function(){};
BM.prototype.shouldPreferLocalResponse=function(){return!1};
BM.prototype.localInnertubeResponse=function(){return _.S(function(G){return G.return(Promise.reject(Error("Vi")))})};
BM.prototype.canProvideFallbackResponse=function(){return!0};
BM.prototype.localFallbackInnertubeResponse=function(){var G,H,Z;return _.S(function(Q){G=sz("CLOSE_POPUP");H={openPopupAction:o4v()};Z={actions:[G,H]};return Q.return(Z)})};var l$=function(){this.urlMap=PGo;this.fallbackCommand=_.rU};
l$.prototype.shouldPreferLocalResponse=function(G){return(G=G.url)?!!rac(this,G):!1};
l$.prototype.localInnertubeResponse=function(G){var H=this,Z;return _.S(function(Q){return(Z=G.url)?Q.return(wli(G,rac(H,Z))):Q.return(Promise.reject(Error("Wi")))})};
l$.prototype.canProvideFallbackResponse=function(){return!0};
l$.prototype.localFallbackInnertubeResponse=function(G){var H=this,Z,Q,p,l,q,u,B;return _.S(function(t){Z=G.url;if(!Z)return t.return(wli(G,H.fallbackCommand));if(Q=rac(H,Z))return t.return(wli(G,Q));p=void 0;l=_.vU(Z);l==="/watch"&&(q=_.bY(Z,"v"))&&(B=(u=_.bY(Z,"list"))!=null?u:void 0,p=_.R5(q,B));p||(p=H.fallbackCommand);return t.return(wli(G,p))})};
var rac=function(G,H){if(H)return G.urlMap[_.M5(H)]},wli=function(G,H){H&&G.parentTrackingParams&&(H.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:G.parentTrackingParams}},H.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:H})};var I6=function(G,H,Z){this.JSC$17930_upliftPromise=G;this.store=H;this.JSC$17930_persistentStorePromiseAccessor=Z};
I6.prototype.shouldPreferLocalResponse=function(){return!1};
I6.prototype.localInnertubeResponse=function(){return _.S(function(G){return G.return(Promise.reject(Error("Xi")))})};
I6.prototype.canProvideFallbackResponse=function(){return!0};
I6.prototype.localFallbackInnertubeResponse=function(){var G=this;return _.S(function(H){return H.return(hOm(G))})};
var hOm=function(G){var H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(o9(G.JSC$17930_upliftPromise,G.store),2);H=Q.yieldResult;Z={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[ms3(H)]}}}};return Q.return(CG8(G,Z))})},CG8=function(G,H){var Z,Q;
return _.S(function(p){if(p.nextAddress==1)return p.yield(G.JSC$17930_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3)return Z=p.yieldResult,p.yield(Uz(Z),3);Q=p.yieldResult;return p.return({responseContext:{},contents:H,topbar:Q})})};var Qb=function(G,H,Z){this.JSC$17937_upliftPromise=G;this.store=H;this.JSC$17937_persistentStorePromiseAccessor=Z};
Qb.prototype.shouldPreferLocalResponse=function(G){var H=G.videoId;return H&&RBo(this.store.getState().entities,H)&&NWb(this.store.getState().entities,H)?Usv(this.store.getState().entities,G.playlistId):!1};
Qb.prototype.localInnertubeResponse=function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1)return(Z=G.videoId)?p.yield(H.JSC$17937_upliftPromise,2):p.return(Promise.reject(Error("Yi")));if(p.nextAddress!=3)return p.yield(iEj(H,G,Z),3);Q=p.yieldResult;return p.return(OEk(H,Q,Z))})};
Qb.prototype.canProvideFallbackResponse=function(G){return G.videoId?!0:!1};
Qb.prototype.localFallbackInnertubeResponse=function(G){var H=this,Z,Q,p,l;return _.S(function(q){switch(q.nextAddress){case 1:return(Z=G.videoId)?q.yield(H.JSC$17937_upliftPromise,2):q.return(Promise.reject(Error("Yi")));case 2:return q.yield(iEj(H,G,Z),3);case 3:Q=q.yieldResult;if(ka(H.store.getState().entities,Z)){q.jumpTo(4);break}return q.yield(o9(H.JSC$17937_upliftPromise,H.store),5);case 5:return p=q.yieldResult,q.return(aws(Q,p));case 4:return RBo(H.store.getState().entities,Z)&&NWb(H.store.getState().entities,
Z)?q.return(OEk(H,Q,Z)):(l={title:_.Nm(_.Zg("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:seU()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},q.return(aws(Q,l)))}})};
var iEj=function(G,H,Z){var Q,p,l,q,u;return _.S(function(B){if(B.nextAddress==1)return Q=H.playlistId,p=_.R5(Z,Q),B.yield(G.JSC$17937_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3)return l=B.yieldResult,B.yield(Uz(l),3);q=B.yieldResult;u={responseContext:{},currentVideoEndpoint:p,topbar:q};return B.return(u)})},OEk=function(G,H,Z){if(G=ka(G.store.getState().entities,Z)){var Q;
Z=G.videoEntity;var p,l={title:AU(Z.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.xK((Q=Z.localizedStrings)==null?void 0:Q.viewCount),viewCount:_.xK((p=Z.localizedStrings)==null?void 0:p.viewCount)}}};Z.publishedTimestampMillis&&(l.dateText=_.xK(BQj(new Date(Number(Z.publishedTimestampMillis)))));Q={videoPrimaryInfoRenderer:l};p=G.videoEntity;G=G.channelEntity;G={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:AU(_.Zg("SHOW_MORE",void 0,"Show more")),
showLessText:AU(_.Zg("SHOW_LESS",void 0,"Show less")),description:p.formattedDescription,owner:{videoOwnerRenderer:{title:AU(G.title),thumbnail:G.avatar}}}};H.contents={twoColumnWatchNextResults:{results:{results:{contents:[Q,G]}}}}}return H},aws=function(G,H){G.contents={singleColumnWatchNextResults:{results:{results:{contents:[ms3(H)]}}}};
return G};var qW=function(G,H,Z){this.JSC$17942_upliftPromise=G;this.store=H;this.JSC$17942_persistentStorePromiseAccessor=Z};
qW.prototype.shouldPreferLocalResponse=function(){return!1};
qW.prototype.localInnertubeResponse=function(){return _.S(function(G){return G.return(Promise.reject(Error("Zi")))})};
qW.prototype.canProvideFallbackResponse=function(){return!0};
qW.prototype.localFallbackInnertubeResponse=function(){var G=this,H,Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:return l.yield(G.JSC$17942_persistentStorePromiseAccessor(),2);case 2:return H=l.yieldResult,l.yield(Uz(H),3);case 3:return Z=l.yieldResult,Q={responseContext:{},topbar:Z},l.yield(G.JSC$17942_upliftPromise,4);case 4:return l.yield(o9(G.JSC$17942_upliftPromise,G.store),5);case 5:return p=l.yieldResult,Q.watchStatus={backgroundPromoRenderer:p},l.return(Q)}})};var yah,ork;_.nC=new _.Gv("ENDPOINT_MAP");yah=new _.Gv("WATCH_ENDPOINT_MAP");ork=new _.Gv("REEL_ENDPOINT_MAP");var YZU=/^[a-zA-Z0-9_\-]{11}$/;var Fco=_.e4(function(){var G,H;return(H=(G=window).matchMedia)==null?void 0:H.call(G,"(prefers-reduced-motion: reduce)").matches});var m4D=_.e4(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 G=_.GF("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");G||(G=_.z$("VIDEO"),_.u7("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
G));return!!(G&&G.canPlayType&&G.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var U4o=XMLHttpRequest.prototype.fetch,ROt=U4o&&U4o.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!qh?!0:!1;var Vu=function(G){this.JSC$17953_storeWithEntities=G};
_.T(Vu,NZ);_.g=Vu.prototype;_.g.getApiPaths=function(){return ie7};
_.g.getExtension=function(G){return _.X(G,_.hZ)||_.X(G,_.uS)||_.X(G,P1a)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$14177_getStoreKey=function(G){if((_.V("kevlar_cache_on_ttl_player")||_.V("mweb_enable_shorts_innertube_player_prefetch")||_.V("mweb_use_new_history_manager")||_.V("web_shorts_prefetch_service_enabled"))&&(G=this.getExtension(G))&&G.videoId){var H={videoId:G.videoId};G.playlistId&&(H.playlistId=G.playlistId);G.playerParams&&(H.params=G.playerParams);return _.wj("player",H)}};
_.g.JSC$14170_getClientScreen=function(G){var H;return((H=G.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.g.JSC$14170_buildRequest=function(G,H,Z){if(_.V("enable_interstitial_entity_check")){var Q=this.JSC$17953_storeWithEntities;if(H.videoId)for(var p=_.I(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),l=p.next();!l.done;l=p.next()){l=l.value;var q;var u=void 0,B=void 0,t=H.videoId,D=l;(q=Q)?(t=_.G9(t+D,"interstitialInteractionStateEntity"),q=(u=(B=_.Hv(q.getState().entities,"interstitialInteractionStateEntity",t))==null?void 0:B.primaryButtonClicked)!=null?u:!1):q=!1;if(q)switch(l){case "CONTENT_CHECK_REQUIRED":H.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":H.racyCheckOk=!0}}}H.videoId&&(G.videoId=H.videoId);H.playlistId&&(G.playlistId=H.playlistId);H.index!==void 0&&(G.playlistIndex=H.index+1);H.playerParams&&(G.params=H.playerParams);"startTimeSeconds"in H&&H.startTimeSeconds&&(_.V("enable_player_request_builder_start_time_floor")?G.startTimeSecs=Math.floor(H.startTimeSeconds):G.startTimeSecs=H.startTimeSeconds);Z.contentPlaybackContext&&(G.playbackContext={contentPlaybackContext:Z.contentPlaybackContext});Z.prefetchPlaybackContext&&
(G.playbackContext=Object.assign({},G.playbackContext,{prefetchPlaybackContext:Z.prefetchPlaybackContext}),G.context.request||(G.context.request={}),G.context.request.isPrefetch=!0);G.playbackContext||(G.playbackContext={});Q=m4D();G.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!Q,supportXhr:ROt};Z.overrideMutedAtStart&&(G.overrideMutedAtStart=Z.overrideMutedAtStart);G.racyCheckOk=!!H.racyCheckOk;G.contentCheckOk=!!H.contentCheckOk;!_.V("captions_prefs_killswitch")&&(Z=(Z=_.dT("yt-player-caption-language-preferences"))?
Z:[],Z==null?0:Z.length)&&(G.captionParams={viewerSelectedCaptionLangs:Z})};
_.g.getRequestConfig=function(G){G=this.JSC$14177_getStoreKey(G);var H;G&&(H={storeStrategy:{storeKey:G}});_.V("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="ps_s",H.responseTick="ps_r");return H};
Vu[kM]=[R9];var $v=function(G,H){this.playerRequestBuilder=G;this.watchNextRequestBuilder=H};
_.T($v,NZ);$v.prototype.getApiPaths=function(){return vnN};
$v.prototype.getExtension=function(G){return _.X(G,_.hZ)};
$v.prototype.isNavigationCommand=function(){return!0};
$v.prototype.JSC$14170_buildRequest=function(G,H,Z){G.playerRequest={};this.playerRequestBuilder.JSC$14170_buildRequest(G.playerRequest,H,Z);_.V("web_streaming_watch")&&(G.watchNextRequest={},this.watchNextRequestBuilder.JSC$14170_buildRequest(G.watchNextRequest,H,Z))};
$v[kM]=[Vu,BX];var N3j;_.XI=new _.Gv("SHORTS_CONTROLLER_TOKEN");N3j=new _.Gv("SHORTS_STATE_STORE_TOKEN");var cX=function(G,H){var Z=_.Ry.apply(2,arguments);G=G===void 0?0:G;_.C$.call(this,H,Z);this.errorType=G;Object.setPrototypeOf(this,this.constructor.prototype)};
_.T(cX,_.C$);var AaA,x4h,LT8,QFj,MW,XHj,FTm,YAt,Zum,Hu8,G$h;AaA=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(G){return G+"="}).join("|"));
x4h=RegExp(".*\\?.*playnext=1.*");LT8=function(G,H,Z,Q,p){this.watchEndpointMap=G;this.reelWatchEndpointMap=H;this.innerTubeTransportService=Z;this.fetchPbj=Q;this.reloadOnPlayerFailure=p===void 0?!0:p};
_.Er6=function(G,H){var Z=_.eA("web_pbj_log_warning_rate",0);Z=Z>0&&Math.random()<Z;var Q;if((Q=_.X(H.commandMetadata,_.HA))==null||!Q.rootVe)return Z&&_.Rp(Error("dj")),!1;var p;Q=(p=_.X(H.commandMetadata,_.HA))==null?void 0:p.url;if(!Q)return Z&&_.Rp(Error("ej")),!1;if(x4h.test(Q))return!0;if(AaA.test(Q))return Z&&_.Rp(Error("fj`"+Q)),!1;if(_.X(H,_.hZ)){if(!(G.watchEndpointMap.watchNext&&G.watchEndpointMap.player||_.V("kevlar_fetch_initial_data_op_watch_client")))return Z&&_.Rp(Error("$i")),!1;
G=_.eA("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;_.X(H,_.hZ)?LcW(H)?H=!0:(G&&_.Rp(Error("aj")),H=!1):(G&&_.Rp(Error("$i")),H=!1);return H}if(_.X(H,_.uS))return E4o(H);if(_.X(H,_.xl))return!0;G=_.rb(G.innerTubeTransportService,H);!G&&Z&&_.me(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(H)});return G};
QFj=function(G,H,Z,Q,p,l){H={url:H};if(Z==null?0:Z.itct)H.parentTrackingParams=Z.itct;var q=_.U7(AVx);return _.GP(G.innerTubeTransportService,H,q).then(function(u){(u=u.endpoint)||(u=_.rU);(Z==null?0:Z.itct)&&u&&!u.trackingParams&&(u.trackingParams=Z.itct);var B=ql(u);return MW(G,u,Z,Q,B,p,l)})};
MW=function(G,H,Z,Q,p,l,q,u){u=u===void 0?{}:u;if(G.fetchPbj&&!_.Er6(G,H)&&!_.V("force_one_platform")){u=G.fetchPbj(H);var B=_.Yk(u.then(function(U){if(!U)throw Error("hj");q(B)||l(H,U);return U}));
return B}var t,D,d={rootVe:(t=_.X(H.commandMetadata,_.HA))==null?void 0:t.rootVe,url:(D=_.X(H.commandMetadata,_.HA))==null?void 0:D.url,endpoint:H,page:p};if(_.X(H,_.hZ)){var e,n={contentPlaybackContext:_.Nc(Z,(e=_.X(H.commandMetadata,_.HA))==null?void 0:e.url,Q)},c=_.hQ();_.V("web_streaming_watch")&&window.TextDecoderStream?(u=Xja(G.innerTubeTransportService,H,n,function(U){!d.response&&U.content&&(d.response=U.content);!d.playerResponse&&U.player&&(d.playerResponse=U.player);l(H,d)}),t=oxb(H),t.length&&
(d.preconnect=t,l(H,d)),YAt(u,c,d).catch(function(U){U instanceof cX&&U.errorType===2&&_.V("web_streaming_watch_fallback")&&FTm(G,H,n,d,l,q,c)})):FTm(G,H,n,d,l,q,c);
return c.promise}if(_.X(H,_.uS)){var W;if(((W=_.X(H,_.uS))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var M=_.hQ();_.bEt(_.tp().resolve(_.XI),H).then(function(U){G$h(G,Z,Q,p,l,M,U)});
return M.promise}u=_.Yk();var r;t={contentPlaybackContext:_.Nc(Z,(r=_.X(H.commandMetadata,_.HA))==null?void 0:r.url,Q)};(r=G.reelWatchEndpointMap.player)&&(r=r().JSC$14170_getRequest(H,t))&&(u=_.GP(G.innerTubeTransportService,r.innerTubeRequest,r.input,H.clickTrackingParams,r.config));r=_.Yk();(D=G.reelWatchEndpointMap.reelItemWatch)&&(D=D().JSC$14170_getRequest(H))&&(r=_.GP(G.innerTubeTransportService,D.innerTubeRequest,D.input,H.clickTrackingParams,D.config));D=_.Yk();_.V("web_enable_delay_shorts_sequence_call_extra")&&
(D=new _.T_(function(U){setTimeout(function(){U(void 0)},200)}));
(!_.V("web_enable_delay_shorts_sequence_call_new")||_.V("web_enable_delay_shorts_sequence_call_forget"))&&(e=G.reelWatchEndpointMap.reelWatchSequence)&&_.X(H,_.uS).sequenceParams&&(t=e().JSC$14170_getRequest(H,t))&&(_.V("web_enable_delay_shorts_sequence_call_forget")?_.GP(G.innerTubeTransportService,t.innerTubeRequest,t.input,H.clickTrackingParams,t.config):D=_.GP(G.innerTubeTransportService,t.innerTubeRequest,t.input,H.clickTrackingParams,t.config));t=_.Yk(d);e=_.hQ();Hu8(H,t,u,r,D,l,q,e);return e.promise}var w;
if(_.X(H,IFj)&&((w=_.X(H.commandMetadata,_.HA))==null?0:w.url))return u=tYM(_.HS(RN().location.href),_.HS(_.X(H.commandMetadata,_.HA).url)).toString(),QFj(G,u,Z,Q,l,function(){return!1});
if(_.X(H,_.xl))return l(H,d),_.Yk(d);if(_.rb(G.innerTubeTransportService,H)){u=Object.assign({},{tempData:Z,disableCache:Z.disableCache},u);var x=_.wb(G.innerTubeTransportService,H,u).then(function(U){d.response=U;q(x)||l(H,d);return d});
return x}return _.Yk(d)};
_.sfA=function(G,H,Z,Q){if(_.X(H,_.hZ)||_.X(H,_.uS)&&(_.V("mweb_enable_shorts_innertube_player_prefetch")||_.V("kevlar_enable_shorts_prefetch_in_sequence"))||_.X(H,P1a)&&_.V("web_enable_prefetching_videos_on_home")){var p,l={contentPlaybackContext:_.Nc(Z,(p=_.X(H.commandMetadata,_.HA))==null?void 0:p.url,Q),prefetchPlaybackContext:Gu3(Z)},q,u,B;if(((q=_.X(H,_.hZ))==null?void 0:(u=q.watchEndpointSupportedPrefetchConfig)==null?void 0:(B=u.prefetchHintConfig)==null?void 0:B.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(Z=
G.watchEndpointMap.watchNext)if(l=Z().JSC$14170_getRequest(H,l))return Promise.resolve(_.GP(G.innerTubeTransportService,l.innerTubeRequest,l.input,void 0,l.config).then(function(d){return d}))}else if(Z=G.watchEndpointMap.player)if(l=Z().JSC$14170_getRequest(H,l))return Promise.resolve(_.GP(G.innerTubeTransportService,l.innerTubeRequest,l.input,void 0,l.config).then(function(d){return d}))}else if(_.rb(G.innerTubeTransportService,H)){var t={tempData:Z},D=dww(G.innerTubeTransportService,H);
return D?new Promise(function(d,e){var n,c;return _.S(function(W){if(W.nextAddress==1)return W.yield(D,2);if(W.nextAddress!=4)return n=W.yieldResult,n.JSC$14177_getStoreKey(H,t)?W.yield(_.wb(G.innerTubeTransportService,H,t),4):(e(new _.C$("Prefetching request builder with no store key.",H)),W.jumpTo(0));c=W.yieldResult;d(c);_.K0(W)})}):Promise.reject(new _.C$("Prefetching unregistered request builder.",H))}return Promise.reject(new _.C$("No request builder available to prefetch endpoint.",H))};
XHj=function(G,H){var Z,Q,p;if(_.X(H,_.hZ)){var l=G.watchEndpointMap.watchNext;l&&(Z=l());(G=G.watchEndpointMap.player)&&(Q=G())}else if(_.X(H,_.uS))(l=G.reelWatchEndpointMap.reelItemWatch)&&(Z=l()),(l=G.reelWatchEndpointMap.player)&&(Q=l()),(G=G.reelWatchEndpointMap.reelWatchSequence)&&(p=G());else{a:{G=u0W(H,G.innerTubeTransportService.endpointMap);if(G!==void 0)if(typeof G.then==="function")_.me(new _.C$("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",H));else break a;
G=void 0}G&&(Z=G)}var q,u,B;return{content:(q=Z)==null?void 0:q.JSC$14177_getStoreKey(H),player:(u=Q)==null?void 0:u.JSC$14177_getStoreKey(H),reelSequence:(B=p)==null?void 0:B.JSC$14177_getStoreKey(H)}};
FTm=function(G,H,Z,Q,p,l,q){var u=_.Yk(),B=G.watchEndpointMap.player;_.V("web_streaming_player")&&(B=z3($v));B&&(B=B().JSC$14170_getRequest(H,Z))&&(u=_.GP(G.innerTubeTransportService,B.innerTubeRequest,B.input,H.clickTrackingParams,B.config));B=_.Yk();var t=G.watchEndpointMap.watchNext;t&&(Z=t().JSC$14170_getRequest(H,Z))&&(B=_.GP(G.innerTubeTransportService,Z.innerTubeRequest,Z.input,H.clickTrackingParams,Z.config));Q=_.Yk(Q);Zum(G,H,Q,u,B,p,l,q)};
YAt=function(G,H,Z){var Q;return _.S(function(p){if(p.nextAddress==1)return p.yield(G,2);_.V("web_streaming_watch_delay_200")||_.V("web_streaming_watch_delay_400")?(Q=_.V("web_streaming_watch_delay_200")?200:400,setTimeout(function(){H.resolve(Z)},Q)):H.resolve(Z);
_.K0(p)})};
Zum=function(G,H,Z,Q,p,l,q,u){var B,t,D,d,e;_.S(function(n){switch(n.nextAddress){case 1:return n.yield(Z,2);case 2:B=n.yieldResult;if(q(u.promise))return u.resolve(B),n.return();l(H,B);t=oxb(H);if(!t.length){n.jumpTo(3);break}return n.yield(Z,4);case 4:B.preconnect=t,l(H,B);case 3:return _.XV(n,5),n.yield(Q,7);case 7:D=n.yieldResult;_.Za(n,6);break;case 5:return d=_.Wg(n),u.reject(d),n.return();case 6:if(D===void 0&&G.reloadOnPlayerFailure)return B.reload=!0,l(H,B),u.resolve(B),n.return();if(q(u.promise))return u.resolve(B),
n.return();B.playerResponse=D;l(H,B);_.XV(n,8);return n.yield(p,10);case 10:e=n.yieldResult;_.Za(n,9);break;case 8:_.Wg(n);case 9:if(e===void 0)return B.response={responseContext:{}},u.resolve(B),n.return();if(q(u.promise))return u.resolve(B),n.return();B.response=e;l(H,B);u.resolve(B);_.K0(n)}})};
Hu8=function(G,H,Z,Q,p,l,q,u){var B,t,D,d,e,n;_.S(function(c){switch(c.nextAddress){case 1:return c.yield(H,2);case 2:B=c.yieldResult;if(q(u.promise))return u.resolve(B),c.return();l(G,B);t=oxb(G);if(!t.length){c.jumpTo(3);break}return c.yield(H,4);case 4:B.preconnect=t,l(G,B);case 3:return _.XV(c,5),c.yield(Z,7);case 7:D=c.yieldResult;_.Za(c,6);break;case 5:return d=_.Wg(c),u.reject(d),c.return();case 6:if(D===void 0)return B.reload=!0,l(G,B),u.resolve(B),c.return();if(q(u.promise))return u.resolve(B),
c.return();B.playerResponse=D;l(G,B);_.XV(c,8);return c.yield(Q,10);case 10:e=c.yieldResult;_.Za(c,9);break;case 8:_.Wg(c);case 9:if(e===void 0)return B.response={responseContext:{}},u.resolve(B),c.return();if(q(u.promise))return u.resolve(B),c.return();B.response=e;l(G,B);_.XV(c,11);return c.yield(p,13);case 13:n=c.yieldResult;_.Za(c,12);break;case 11:_.Wg(c);case 12:if(q(u.promise))return u.resolve(B),c.return();n&&(B.reelWatchSequenceResponse=n);l(G,B);u.resolve(B);_.K0(c)}})};
G$h=function(G,H,Z,Q,p,l,q){var u,B,t,D,d,e;_.S(function(n){if((u=q)==null||!u.replacementEndpoint)return l.reject(),n.return();B=q.replacementEndpoint;(t=_.X(B,_.uS))?(q.sequenceContinuation&&(t.sequenceParams=q.sequenceContinuation),D=_.tp().resolve(_.XI),d=t.sequenceParams,Qft(D,B)&&delete t.sequenceParams,e=MW(G,B,H,Z,Q,p,function(){return!1}),e.then(function(c){return _.S(function(W){if(W.nextAddress==1)return p7A(D,{reelWatchEndpoint:{sequenceParams:d}},c),W.yield(0,2);
l.resolve(c);_.K0(W)})})):l.reject();
_.K0(n)})};
LT8[kM]=[yah,ork,_.t0,_.Jp(JGa)];var lS6=function(){var G=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return G.sequenceMap}}},cXt=function(G,H,Z){var Q,p=(Q=H.config)==null?void 0:Q.sequenceStrategy;
if(!p)return Z();G.sequenceMap.has(p.sequenceKey)||G.sequenceMap.set(p.sequenceKey,[]);G=G.sequenceMap.get(p.sequenceKey);switch(p.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return g5L(G,H,Z);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ISA(G,H,Z);default:throw new _.C$("Request could not be sequenced",H);}},g5L=function(G,H,Z){var Q,p,l;
return _.S(function(q){G.length>0?(p=G[G.length-1],Q=p.responsePromise.then(function(){return Z()})):Q=Z();
l={request:H,responsePromise:Q};G.push(l);q1c(G,l);return q.return(l.responsePromise)})},ISA=function(G,H,Z){Z=Z();
if(G.length>0)for(var Q=_.I(G),p=Q.next();!p.done;p=Q.next())p.value.responsePromise=Z;var l={request:H,responsePromise:Z};G.push(l);q1c(G,l);return Promise.resolve().then(function(){return G.indexOf(l)>0?l.responsePromise.then(function(q){return Object.assign({},q,{sequenceMetaData:{skipProcessing:!0}})}):l.responsePromise})},q1c=function(G,H){H.responsePromise.then(function(){var Z=G.indexOf(H);
Z>-1&&G.splice(Z,1)})};var S1i=new _.Gv("REQUEST_SEQUENCING");var Tn=function(){};
_.T(Tn,NZ);Tn.prototype.getApiPaths=function(){return[]};
Tn.prototype.getExtension=function(G){return _.X(G,tGw)};
Tn.prototype.JSC$14170_buildRequest=function(G,H){G.recaptchaToken=H.recaptchaToken};
Tn.prototype.getApiUrl=function(){return"/das_captcha"};var fC=function(){};
_.T(fC,NZ);fC.prototype.getApiPaths=function(){return Az2};
fC.prototype.getExtension=function(G){return _.X(G,AA2)};
fC.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.createBackstagePostParams&&(G.createBackstagePostParams=H.createBackstagePostParams);Z.comment_text&&(G.commentText=Z.comment_text);if(Z.attached_video_id)G.videoAttachment={videoId:Z.attached_video_id};else if(Z.image_poll_options)G.pollAttachmentData={options:Z.image_poll_options};else if(Z.poll_options)G.pollAttachment={choices:Z.poll_options};else if(Z.quiz_options)G.quizAttachmentData={options:Z.quiz_options};else if(Z.image_blob_id)G.imageAttachment=
{encryptedBlobId:Z.image_blob_id},Z.source_video_id&&(G.imageAttachment.sourceExternalVideoId=Z.source_video_id),Z.image_preview_coordinates&&(G.imageAttachment.previewCoordinates=JSON.parse(Z.image_preview_coordinates));else if(Z.images_data)G.imagesAttachment={imagesData:Z.images_data};else if(Z.clip_external_video_id!==void 0||Z.clip_offset_ms!==void 0||Z.clip_duration_ms!==void 0){var Q,p,l,q,u;G.clipAttachment={externalVideoId:(l=Z.clip_external_video_id)!=null?l:"",offsetMs:(q=(Q=Z.clip_offset_ms)==
null?void 0:Q.toString())!=null?q:"",durationMs:(u=(p=Z.clip_duration_ms)==null?void 0:p.toString())!=null?u:""}}else Z.shared_post_id&&(G.sharedPostAttachment={postId:Z.shared_post_id});Z.tagged_video_id&&(G.postCreationData={taggedVideoId:Z.tagged_video_id});Z.access_restrictions&&(typeof Z.access_restrictions==="number"&&(H=Z.access_restrictions,G.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof Z.access_restrictions==="string"&&
(G.accessRestrictionsParams=Z.access_restrictions));Z.scheduled_publish_time_sec&&(G.scheduledPublishTimeSec=Z.scheduled_publish_time_sec.toString())};var vX=function(){};
_.T(vX,NZ);vX.prototype.getApiPaths=function(){return Gfp};
vX.prototype.getExtension=function(G){return _.X(G,mZx)};
vX.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.decorateMessageParams&&(G.params=H.decorateMessageParams);Z.text&&(G.text=Z.text)};var WX=function(){};
_.T(WX,NZ);WX.prototype.getApiPaths=function(){return VYa};
WX.prototype.getExtension=function(G){return _.X(G,xO_)};
WX.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;Z.video_id&&(G.videoId=Z.video_id)};var zn=function(){};
_.T(zn,NZ);zn.prototype.getApiPaths=function(){return fE2};
zn.prototype.getExtension=function(G){return _.X(G,_.GD)};
zn.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.suggestions_query&&(G.input=Z.suggestions_query)};var KC=function(){};
_.T(KC,NZ);KC.prototype.getApiPaths=function(){return pF_};
KC.prototype.getExtension=function(G){return _.X(G,L1x)};
KC.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.comment_text!==void 0&&(G.commentText=Z.comment_text);Z.scheduled_publish_time_sec&&(G.scheduledPublishTimeSec=Z.scheduled_publish_time_sec.toString());G.updateBackstagePostParams=H.updateBackstagePostParams};var Mp=function(){};
_.T(Mp,NZ);Mp.prototype.getApiPaths=function(){return wp};
Mp.prototype.getExtension=function(G){return _.X(G,_.vh)};
Mp.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.formData&&(G.formData=Z.formData);H.token?G.continuation=H.token:H.continuationTokenKey&&(Z=_.mm().getState(),H=_.Hv(Z.entities,"continuationTokenEntity",H.continuationTokenKey))&&(G.continuation=String(H.continuationToken))};
var uG8=function(){};
_.T(uG8,NZ);_.g=uG8.prototype;_.g.getApiPaths=function(){return wp};
_.g.getExtension=function(G){return _.X(G,_.gT)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$14177_getStoreKey=function(G){if((G=this.getExtension(G))&&G.browseId){var H={browseId:G.browseId};G.browseEndpointContextSupportedConfigs&&(H.browseEndpointContextSupportedConfigs=JSON.stringify(G.browseEndpointContextSupportedConfigs));G.params&&(H.params=G.params);G.query&&(H.query=G.query);return _.wj("browse",H)}};
_.g.JSC$14170_buildRequest=function(G,H,Z){H.browseId&&(G.browseId=H.browseId);H.params&&(G.params=H.params);H.query&&(G.query=H.query);Z.formData?G.formData=Z.formData:H.formData&&(G.formData=H.formData);H.browseId==="FEsubscriptions"&&_.lf().getFlag(155)&&(G.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");H.browseId==="SPaccount_playback"&&(Z=_.lf(),G.formData||(G.formData={}),G.formData.accountSettingsFormData={flagCaptionsDefaultOff:Z.getFlag(65),flagAutoCaptionsDefaultOn:Z.getFlag(66),
flagDisableInlinePreview:Z.getFlag(186),flagAudioDescriptionDefaultOn:Z.getFlag(198)});if(H.browseId==="FEwhat_to_watch"){Z=_.lf();var Q=Z.getFlag(196);Z.getFlag(197)&&(G.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:Q}}})}H.browseId==="FEwhat_to_watch"&&(H=_.lf().getFlag(186),G.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.g.getRequestConfig=function(G,H){H=H===void 0?{}:H;var Z={};if(G=this.JSC$14177_getStoreKey(G,H))Z.storeStrategy={storeKey:G,disableCache:H.disableCache};_.V("web_log_browse_ticks_ks")||(Z.requestTick="br_s",Z.responseTick="br_r");return Z};var j0=function(){};
_.T(j0,NZ);j0.prototype.getApiPaths=function(){return yzx};
j0.prototype.getExtension=function(G){return _.X(G,cSw)};
j0.prototype.JSC$14170_buildRequest=function(G,H,Z){G.legacyYoutubeChannelUsername=Z.legacyYouTubeChannelUsername||"";G.legacyYoutubeChannelPassword=Z.legacyYouTubeChannelPassword||""};var PX=function(){};
_.T(PX,NZ);PX.prototype.getApiPaths=function(){return xyt};
PX.prototype.getExtension=function(G){return _.X(G,sBa)};
PX.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.recaptcha_response_token&&(G.recaptchaResponseToken=Z.recaptcha_response_token);Z.channel_id&&(G.channelId=Z.channel_id)};var r6=function(){};
_.T(r6,NZ);r6.prototype.getApiPaths=function(){return lzx};
r6.prototype.getExtension=function(G){return _.X(G,IyR)};
r6.prototype.JSC$14170_buildRequest=function(G,H,Z){H.externalChannelId&&(G.externalChannelId=H.externalChannelId);Z.handle&&(G.handleUpdate={handle:Z.handle},H.handleEditSource&&(G.handleUpdate.handleEditSource=H.handleEditSource))};var w6=function(){};
_.T(w6,NZ);w6.prototype.getApiPaths=function(){return Shp};
w6.prototype.getExtension=function(G){return _.X(G,MMG)};
w6.prototype.JSC$14170_buildRequest=function(G,H,Z){H.request&&(G.channelId=H.request.channelId);var Q;if(Z==null?0:(Q=Z.uploadDefaults)==null?0:Q.emojiReactionSet)G.uploadDefaultsRequest||(G.uploadDefaultsRequest={}),G.uploadDefaultsRequest.emojiReactionSet=Z.uploadDefaults.emojiReactionSet};var hn=function(){};
_.T(hn,NZ);hn.prototype.getApiPaths=function(){return Jjw};
hn.prototype.getExtension=function(G){return _.X(G,Ztd)};
hn.prototype.JSC$14170_buildRequest=function(G,H,Z){H.externalChannelId&&(G.externalChannelId=H.externalChannelId);H.channelHandleEntityKey&&(G.channelHandleEntityKey=H.channelHandleEntityKey);H.handleEditSource&&(G.handleEditSource=H.handleEditSource);Z.handle?G.handle=Z.handle:Z.name&&(G.name=Z.name)};var CC=function(){};
_.T(CC,NZ);CC.prototype.getApiPaths=function(){return UAa};
CC.prototype.getExtension=function(G){return _.X(G,X5a)};
CC.prototype.JSC$14170_buildRequest=function(G,H){H.actions?G.actions=H.actions:H.action&&(G.actions=[H.action])};var ig=function(){};
_.T(ig,NZ);ig.prototype.getApiPaths=function(){return R9w};
ig.prototype.getExtension=function(G){return _.X(G,_.vh)};
ig.prototype.JSC$14170_buildRequest=function(G,H){H.token&&(G.continuation=H.token)};var O2=function(){};
_.T(O2,NZ);O2.prototype.getApiPaths=function(){return eWR};
O2.prototype.getExtension=function(G){return _.X(G,_.vh)};
O2.prototype.JSC$14170_buildRequest=function(G,H){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";H.token&&(G.fetchCommentsParams={continuation:H.token})};var ac=function(){};
_.T(ac,NZ);ac.prototype.getApiPaths=function(){return Ez_};
ac.prototype.getExtension=function(G){return _.X(G,$Hw)};
ac.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.createReplyParams&&(G.createReplyParams=H.createReplyParams);H.commentText&&(G.commentText=_.yn(H.commentText));Z.comment_text&&(G.commentText=Z.comment_text);Z.image_blob_id&&(G.imageAttachment={encryptedBlobId:Z.image_blob_id});Z.botguard_response&&(G.botguardResponse=Z.botguard_response)};
_.u4.Object.defineProperties(ac.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yu=function(){};
_.T(yu,NZ);yu.prototype.getApiPaths=function(){return Y0p};
yu.prototype.getExtension=function(G){return _.X(G,_.VEw)};
yu.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.createCommentParams&&(G.createCommentParams=H.createCommentParams);H.commentText&&(G.commentText=_.yn(H.commentText));H.videoPositionMention&&(G.videoPositionMention=H.videoPositionMention);H.sources&&(G.sources=H.sources);Z.comment_text&&(G.commentText=Z.comment_text);Z.attached_video_id?G.videoAttachment={videoId:Z.attached_video_id}:Z.poll_options?G.pollAttachment={choices:Z.poll_options}:Z.image_blob_id?G.imageAttachment=
{encryptedBlobId:Z.image_blob_id}:Z.shared_post_id&&(G.sharedPostAttachment={postId:Z.shared_post_id});Z.access_restrictions&&typeof Z.access_restrictions==="number"&&(H=Z.access_restrictions,G.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});Z.botguard_response&&(G.botguardResponse=Z.botguard_response)};
_.u4.Object.defineProperties(yu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oc=function(){};
_.T(oc,NZ);oc.prototype.getApiPaths=function(){return gUG};
oc.prototype.getExtension=function(G){return _.X(G,TQN)};
oc.prototype.JSC$14170_buildRequest=function(G,H,Z){H.commentText&&(G.replyText=_.yn(H.commentText));Z.comment_text&&(G.replyText=Z.comment_text);G.updateReplyParams=H.updateReplyParams};
_.u4.Object.defineProperties(oc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mB=function(){};
_.T(mB,NZ);mB.prototype.getApiPaths=function(){return Izx};
mB.prototype.getExtension=function(G){return _.X(G,c4p)};
mB.prototype.JSC$14170_buildRequest=function(G,H,Z){H.commentText&&(G.commentText=_.yn(H.commentText));Z.comment_text&&(G.commentText=Z.comment_text);G.updateCommentParams=H.updateCommentParams};
_.u4.Object.defineProperties(mB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var U2=function(){};
_.T(U2,NZ);U2.prototype.getApiPaths=function(){return qh2};
U2.prototype.getExtension=function(G){return _.X(G,vhx)};
U2.prototype.JSC$14170_buildRequest=function(G,H){H.settings&&(G.settings=H.settings)};var Rc=function(){};
_.T(Rc,NZ);Rc.prototype.getApiPaths=function(){return u1G};
Rc.prototype.getExtension=function(G){return _.X(G,QBG)};
Rc.prototype.JSC$14170_buildRequest=function(G,H){H.channelCreationToken&&(G.channelCreationToken=H.channelCreationToken);H.source&&(G.source=H.source)};var Np=function(){};
_.T(Np,NZ);Np.prototype.getApiPaths=function(){return Laa};
Np.prototype.getExtension=function(G){return _.X(G,ghd)};
Np.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;if(Z.name&&(Z.given_name||Z.family_name))G=new _.C$("channel creation cannot set both GAIA and YouTube names",H),_.me(G);else{if(H.zeroStepChannelCreationParams){if(!Z.comment_text){G=new _.C$("zero_step_create_comment_params but no zero_step_texts",H);_.me(G);return}G.zeroStepChannelCreationParams=H.zeroStepChannelCreationParams;G.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
Z.comment_text,Z.botguard_response&&(G.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=Z.botguard_response))}G.channelCreationToken=H.channelCreationToken;Z.given_name&&(G.givenName=Z.given_name);Z.family_name&&(G.familyName=Z.family_name);H.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(G.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(Z.name||Z.handle||Z.avatar_url||Z.encryptedBlobId||Z.isNameChanged!==void 0||Z.isHandleChanged!==void 0||Z.isDefaultProfilePhoto!==
void 0||Z.obakeImageSource)G.overrideChannelCreationParams={},Z.name&&(G.overrideChannelCreationParams.name=Z.name),Z.handle&&(G.overrideChannelCreationParams.handle=Z.handle),Z.avatar_url&&(G.overrideChannelCreationParams.avatarUrl=Z.avatar_url),Z.encryptedBlobId&&(G.overrideChannelCreationParams.blobEncryptionId=Z.encryptedBlobId),Z.enableIdentityForAllChannelCreationDialog&&(Z.encryptedBlobId?G.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
Z.isDefaultProfilePhoto!==void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=Z.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),Z.isNameChanged!==void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationNameTag=Z.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),Z.isHandleChanged!==
void 0&&(G.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=Z.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),Z.obakeImageSource&&(G.overrideChannelCreationParams.obakeImageSourceType=Z.obakeImageSource))}};var An=function(){};
_.T(An,NZ);An.prototype.getApiPaths=function(G){return(G=this.getExtension(G))&&G.status==="DISLIKE"?QoN:G&&G.status==="INDIFFERENT"?myN:MYN};
An.prototype.getExtension=function(G){return _.X(G,_.TG)};
An.prototype.JSC$14170_buildRequest=function(G,H){H.target&&(G.target=H.target);if(H=this.getParams(H))G.params=H};
An.prototype.getParams=function(G){switch(G==null?void 0:G.status){case "DISLIKE":return G.dislikeParams;case "INDIFFERENT":return G.removeLikeParams;default:return G==null?void 0:G.likeParams}};var xv=function(){};
_.T(xv,NZ);xv.prototype.getApiPaths=function(){return beG};
xv.prototype.getExtension=function(G){return _.X(G,MER)};
xv.prototype.JSC$14170_buildRequest=function(G,H){H.settingItemId&&(G.settingItemId=H.settingItemId);H.stringValue!=null&&H.stringValue!==void 0?G.newValue={stringValue:H.stringValue}:H.intValue?G.newValue={intValue:H.intValue}:H.boolValue!==null&&H.boolValue!==void 0?G.newValue={boolValue:H.boolValue}:(G=new _.C$("Unknown value type for SetSettingEndpoint.",H),_.me(G))};var LC=function(){};
_.T(LC,NZ);LC.prototype.getApiPaths=function(){return sVd};
LC.prototype.getExtension=function(G){return _.X(G,FOw)||void 0};
LC.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.channelIds&&(G.channelIds=H.channelIds);H.siloName&&(G.siloName=H.siloName);H.params&&(G.params=H.params);Z.botguardResponse&&(G.botguardResponse=Z.botguardResponse);Z.feature&&(G.clientFeature=Z.feature)};
_.u4.Object.defineProperties(LC.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var E2=function(){};
_.T(E2,NZ);E2.prototype.getApiPaths=function(){return QVa};
E2.prototype.getExtension=function(G){return _.X(G,jaT)||void 0};
E2.prototype.JSC$14170_buildRequest=function(G,H){H.channelIds&&(G.channelIds=H.channelIds);H.siloName&&(G.siloName=H.siloName);H.params&&(G.params=H.params)};
_.u4.Object.defineProperties(E2.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Yv=function(G){this.shareClientParamsProvider=G};
_.T(Yv,NZ);Yv.prototype.getApiPaths=function(){return Lpf};
Yv.prototype.getExtension=function(G){return _.X(G,l7G)||_.X(G,_.ggT)||_.X(G,pYd)};
Yv.prototype.JSC$14170_buildRequest=function(G,H){H.serializedShareEntity&&(G.serializedSharedEntity=H.serializedShareEntity);if(H.clientParamIdentifier){var Z;if((Z=this.shareClientParamsProvider)==null?0:Z.clientParams.has(H.clientParamIdentifier)){Z=this.shareClientParamsProvider;H=H.clientParamIdentifier;var Q=Z.clientParams.get(H);Q&&Z.clientParams.delete(H);G.clientParams=Q}}};
Yv[kM]=[y6D];var FI=function(){};
_.T(FI,NZ);FI.prototype.getApiPaths=function(){return iJt};
FI.prototype.getExtension=function(G){return _.X(G,rSa)};
FI.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var bg=function(){};
_.T(bg,NZ);bg.prototype.getApiPaths=function(){return pRw};
bg.prototype.getExtension=function(G){return _.X(G,MLx)};
bg.prototype.JSC$14170_buildRequest=function(G,H){H.dismissal&&(G.items=[H.dismissal])};
_.u4.Object.defineProperties(bg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var G0=function(){};
_.T(G0,NZ);G0.prototype.getApiPaths=function(){return zWT};
G0.prototype.getExtension=function(G){return _.X(G,_.Vb)||void 0};
G0.prototype.JSC$14170_buildRequest=function(G,H,Z){G.feedbackTokens=[];H.feedbackToken&&G.feedbackTokens.push(H.feedbackToken);if(H=H.cpn||Z.cpn)G.feedbackContext={cpn:H};G.isFeedbackTokenUnencrypted=!!Z.is_feedback_token_unencrypted;G.shouldMerge=!1;Z.extra_feedback_tokens&&(G.shouldMerge=!0,G.feedbackTokens=G.feedbackTokens.concat(Z.extra_feedback_tokens))};
_.u4.Object.defineProperties(G0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HJ=function(){};
_.T(HJ,NZ);HJ.prototype.getApiPaths=function(){return zWT};
HJ.prototype.getExtension=function(G){return _.X(G,_.GD)};
HJ.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.feedback_tokens&&(G.feedbackTokens=Z.feedback_tokens,G.shouldMerge=!0)};
_.u4.Object.defineProperties(HJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var s8=function(){};
_.T(s8,NZ);s8.prototype.getApiPaths=function(){return zWT};
s8.prototype.getExtension=function(G){return _.X(G,Jme)};
s8.prototype.JSC$14170_buildRequest=function(G,H){H.undoToken&&(G.feedbackTokens=[H.undoToken]);H.isUndoTokenUnencrypted&&(G.isFeedbackTokenUnencrypted=H.isUndoTokenUnencrypted)};
_.u4.Object.defineProperties(s8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SZ=function(){};
_.T(SZ,NZ);SZ.prototype.getApiPaths=function(){return t$x};
SZ.prototype.getExtension=function(G){return _.X(G,WLG)};
SZ.prototype.JSC$14170_buildRequest=function(G,H){H.nextEndpoint&&_.X(H.nextEndpoint,_.Hx)?G.nextEndpoint={urlEndpoint:_.X(H.nextEndpoint,_.Hx)}:H.nextEndpoint&&_.X(H.nextEndpoint,_.hZ)&&(G.nextEndpoint={watchEndpoint:_.X(H.nextEndpoint,_.hZ)});H.setRacy&&(G.setRacy=H.setRacy);H.setControvercy&&(G.setControvercy=H.setControvercy)};var uh=function(G){this.JSC$18154_storeWithEntities=G};
_.T(uh,NZ);uh.prototype.getApiPaths=function(){return gnd};
uh.prototype.getExtension=function(G){return _.X(G,Gm4)};
uh.prototype.JSC$14170_buildRequest=function(G,H){H.flowId&&(G.flowId=H.flowId);H.targetId&&(G.targetId=H.targetId);H.continuation&&(G.continuation=H.continuation);var Z=H.flowStateEntityKey;if(H.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&Z&&this.JSC$18154_storeWithEntities){var Q;if(H=(Q=this.JSC$18154_storeWithEntities.getState())==null?void 0:Q.entities)if(Q=_.YK(Z).entityType,Q=_.Hv(H,Q,Z))G.flowState=Q,G.flowStateEntityKey=Z}};
_.u4.Object.defineProperties(uh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
uh[kM]=[R9];var BIh=function(){};
_.T(BIh,NZ);_.g=BIh.prototype;_.g.getApiPaths=function(){return Woa};
_.g.JSC$14177_getStoreKey=function(){return _.wj("guide")};
_.g.getRequestConfig=function(){var G=this.JSC$14177_getStoreKey(),H;G&&(H={storeStrategy:{storeKey:G}});return H};
_.g.isNavigationCommand=function(){return!0};
_.g.getExtension=function(G){return _.X(G,_.GD)};
_.g.JSC$14170_buildRequest=function(G){G.fetchLiveState=!0};var BJ=function(){};
_.T(BJ,NZ);BJ.prototype.getApiPaths=function(){return ozN};
BJ.prototype.getExtension=function(G){return _.X(G,dH4)};
BJ.prototype.JSC$14170_buildRequest=function(){};var JT=function(){};
_.T(JT,NZ);JT.prototype.getApiPaths=function(){return mA2};
JT.prototype.getExtension=function(G){return _.X(G,e4R)};
JT.prototype.JSC$14170_buildRequest=function(){};var tT=function(){};
_.T(tT,NZ);tT.prototype.getApiPaths=function(){return CxN};
tT.prototype.getExtension=function(G){return _.X(G,_.vh)};
tT.prototype.JSC$14170_buildRequest=function(G,H){H.token&&(G.continuation=H.token);var Z,Q;G==null||(Z=G.context)==null||(Q=Z.user)==null||delete Q.onBehalfOfUser};
tT.prototype.getRequestConfig=function(G){var H={},Z;if(((Z=this.getExtension(G))==null?void 0:Z.sessionIndex)!==void 0){var Q;H={authStrategy:{sessionIndex:(Q=this.getExtension(G))==null?void 0:Q.sessionIndex}}}return H};var k7=function(){};
_.T(k7,NZ);k7.prototype.JSC$14170_getRequest=function(G){var H=this.getExtension(G),Z=G="";if(H==null?0:H.popup)G="true";if(H==null?0:H.disableSignout)Z="true";H={};return{input:"/getAccountSwitcherEndpoint",requestShell:rj("/getAccountSwitcherEndpoint","GET",(H["X-YouTube-Delegation-Context"]=_.xI("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),H["X-YouTube-Account-Switcher-Popup"]=G,H["X-YouTube-Account-Switcher-Disable-Signout"]=Z,H)),innerTubeRequest:{}}};
k7.prototype.getApiPaths=function(){return[]};
k7.prototype.getExtension=function(G){return _.X(G,_.TDU)};
k7.prototype.JSC$14170_buildRequest=function(){};var Dm=function(){};
_.T(Dm,NZ);Dm.prototype.JSC$14170_getRequest=function(G){var H="/cross_account_channel_transfer";(G=this.getExtension(G))&&(H=m5f(H,{target_session:G.targetSessionIndex,source_rapt:G.sourceRapt,rapt:G.targetRapt}));return{input:H,requestShell:rj(H,"GET"),innerTubeRequest:{}}};
Dm.prototype.getApiPaths=function(){return[]};
Dm.prototype.getExtension=function(G){return _.X(G,VGa)};
Dm.prototype.JSC$14170_buildRequest=function(){};var d4=function(){};
_.T(d4,NZ);d4.prototype.getApiPaths=function(){return IEN};
d4.prototype.isNavigationCommand=function(){return!0};
d4.prototype.getExtension=function(G){return _.X(G,_.GD)};
d4.prototype.JSC$14170_buildRequest=function(G){var H=_.lf().get("gsml","");H&&(G.safetyModeLockerObfuscatedGaiaId=H);G.userInterfaceTheme=_.Ml(!0);_.jX()?G.deviceTheme="DEVICE_THEME_SELECTED":_.u1f()?G.deviceTheme="DEVICE_THEME_SUPPORTED":G.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var eZ=function(){};
_.T(eZ,NZ);eZ.prototype.getApiPaths=function(){return CxN};
eZ.prototype.getExtension=function(G){return _.X(G,$Od)};
eZ.prototype.JSC$14170_buildRequest=function(G,H){if(H&&H.requestType&&(G.requestType=H.requestType,H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var Z=H.nextUrl;Z&&(_.Rv3(Z)||u0(Z))&&(G.nextNavendpoint={urlEndpoint:{url:Z}})}H&&H.channelSwitcherQuery&&(G.channelSwitcherQuery=H.channelSwitcherQuery);H&&H.triggerChannelCreation&&(G.triggerChannelCreation=H.triggerChannelCreation);var Q;if(H==null?0:(Q=H.contentOwnerConfig)==
null?0:Q.externalContentOwnerId)G.contentOwnerConfig=H.contentOwnerConfig;G.callCircumstance=H&&H.requestType&&H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var p,l;H=G==null?void 0:(p=G.context)==null?void 0:(l=p.user)==null?void 0:l.onBehalfOfUser;if(H!==void 0){G.obfuscatedSelectedGaiaId=H;var q,u;G==null||(q=G.context)==null||(u=q.user)==null||delete u.onBehalfOfUser}var B,t;if(p=G==null?void 0:(B=G.context)==null?void 0:(t=B.user)==null?
void 0:t.serializedDelegationContext)G.selectedSerializedDelegationContext=p};var nP=function(){};
_.T(nP,NZ);nP.prototype.getApiPaths=function(){return OJw};
nP.prototype.getExtension=function(G){return _.X(G,I7w)};
nP.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var VW=function(){};
_.T(VW,NZ);VW.prototype.getApiPaths=function(){return xA_};
VW.prototype.getExtension=function(G){return _.X(G,_.nyR)};
VW.prototype.JSC$14170_buildRequest=function(G,H){if(H=H.createBroadcastRequest)G.useMasks=H.useMasks,G.broadcastType=H.broadcastType,G.broadcastSource=H.broadcastSource,G.broadcastMetadata=H.broadcastMetadata,G.broadcastMetadataMask=H.broadcastMetadataMask,G.videoMetadata=H.videoMetadata,G.videoMetadataMask=H.videoMetadataMask,G.liveChatSettingsUpdate=H.liveChatSettingsUpdate,G.liveChatSettingsUpdateMask=H.liveChatSettingsUpdateMask,G.cloneVideoId=H.cloneVideoId,G.cloneWithOverrides=H.cloneWithOverrides,
G.targetEntity=H.targetEntity,G.scheduledRedirectMetadata=H.scheduledRedirectMetadata};var $7=function(){};
_.T($7,NZ);$7.prototype.getApiPaths=function(){return FaN};
$7.prototype.getExtension=function(G){return _.X(G,uod)};
$7.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.params&&(G.params=H.params);Z.questionText&&(G.questionText=Z.questionText);Z.optionText&&Z.optionText.length>0&&(G.optionText=Z.optionText)};var XH=function(){};
_.T(XH,NZ);XH.prototype.getApiPaths=function(){return Hep};
XH.prototype.getExtension=function(G){return _.X(G,qgR)};
XH.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var cJ=function(){};
_.T(cJ,NZ);cJ.prototype.getApiPaths=function(){return JVR};
cJ.prototype.getExtension=function(G){return _.X(G,pNw)};
cJ.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var T0=function(){};
_.T(T0,NZ);T0.prototype.getApiPaths=function(){return kfR};
T0.prototype.getExtension=function(G){return _.X(G,lDa)};
T0.prototype.JSC$14170_buildRequest=function(G,H,Z){H.params&&(G.params=H.params);H.continuation&&(G.continuation=H.continuation);Z.currentPlayerState&&Z.currentPlayerState.playerOffsetMs&&(G.currentPlayerState={playerOffsetMs:Z.currentPlayerState.playerOffsetMs.toString()})};var fP=function(){};
_.T(fP,NZ);fP.prototype.getApiPaths=function(){return Dy_};
fP.prototype.getExtension=function(G){return _.X(G,QI2)};
fP.prototype.JSC$14170_buildRequest=function(G,H,Z){H.params&&(G.params=H.params);Z.continuation&&(G.continuation=Z.continuation);"hidden"in Z&&(G.webClientInfo={isDocumentHidden:Z.hidden});Z.isInvalidationTimeoutRequest&&(G.isInvalidationTimeoutRequest=Z.isInvalidationTimeoutRequest);Z.invalidationPayload&&(H=ZQw(_.YR(BU(Z.invalidationPayload))),G.invalidationPayloadLastPublishAtUsec=$H(H,2));Z.reloadActionPanel&&(G.reloadActionPanel=Z.reloadActionPanel);Z.fullReload&&(G.fullReload=Z.fullReload);
Z.currentPlayerState&&(G.currentPlayerState=Z.currentPlayerState)};var vJ=function(){};
_.T(vJ,NZ);vJ.prototype.getApiPaths=function(){return jo_};
vJ.prototype.getExtension=function(G){return _.X(G,Sgw)};
vJ.prototype.JSC$14170_buildRequest=function(G,H){G.params=H.params};var WJ=function(){};
_.T(WJ,NZ);WJ.prototype.getApiPaths=function(){return tY_};
WJ.prototype.getExtension=function(G){return _.X(G,Tva)};
WJ.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var z0=function(){};
_.T(z0,NZ);z0.prototype.getApiPaths=function(){return dy7};
z0.prototype.getExtension=function(G){return _.X(G,f7a)};
z0.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var KP=function(){};
_.T(KP,NZ);KP.prototype.getApiPaths=function(){return PTa};
KP.prototype.getExtension=function(G){return _.X(G,BUG)};
KP.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var MD=function(){};
_.T(MD,NZ);MD.prototype.getApiPaths=function(){return wRN};
MD.prototype.getExtension=function(G){return _.X(G,JPN)};
MD.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var jZ=function(){};
_.T(jZ,NZ);jZ.prototype.getApiPaths=function(){return Uyx};
jZ.prototype.getExtension=function(G){return _.X(G,uYa)};
jZ.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var PJ=function(){};
_.T(PJ,NZ);PJ.prototype.getApiPaths=function(){return YFp};
PJ.prototype.getExtension=function(G){return _.X(G,_.twN)};
PJ.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.params&&(G.params=H.params);Z.client_message_id&&(G.clientMessageId=Z.client_message_id);Z.recaptcha_token&&(G.recaptchaToken=Z.recaptcha_token);Z.rich_message&&Z.rich_message.text_segments?(H=Z.rich_message.text_segments.map(function(Q){var p={};Q.text&&(p.text=Q.text);Q.emoji_id&&(p.emojiId=Q.emoji_id);return p}),G.richMessage={textSegments:H}):Z.message&&(G.message=Z.message);
Z.currentPlayerState&&(G.currentPlayerState=Z.currentPlayerState)};var r4=function(){};
_.T(r4,NZ);r4.prototype.getApiPaths=function(){return Foa};
r4.prototype.getExtension=function(G){return _.X(G,kea)};
r4.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var w4=function(){};
_.T(w4,NZ);w4.prototype.getApiPaths=function(){return Zn7};
w4.prototype.getExtension=function(G){return _.X(G,dz_)};
w4.prototype.JSC$14170_buildRequest=function(G,H,Z){H.isUserInitiated&&(G.isUserInitiated=H.isUserInitiated);H.initiationSource&&(G.initiationSource=H.initiationSource);Z.locationInfo&&(G.context.client.locationInfo=Z.locationInfo)};var hT=function(){};
_.T(hT,NZ);hT.prototype.getApiPaths=function(){return rVR};
hT.prototype.getExtension=function(G){return _.X(G,V5a)};
hT.prototype.JSC$14170_buildRequest=function(G,H,Z){H.metadataUpdateRequest&&(H=H.metadataUpdateRequest,G.encryptedVideoId=H.encryptedVideoId,H.liveChat&&(H=H.liveChat,G.liveChat||(G.liveChat={}),H.performAsExternalChannelId&&(G.liveChat.performAsExternalChannelId=H.performAsExternalChannelId),H.source&&(G.liveChat.source=H.source)));var Q;if(Z==null?0:(Q=Z.liveChat)==null?0:Q.liveChatSettings)G.liveChat||(G.liveChat={}),Z=Z.liveChat.liveChatSettings,G.liveChat.newLiveChatSettings=Z,G.liveChat.newLiveChatSettingsMask||
(G.liveChat.newLiveChatSettingsMask={}),Z.emojiReactionSet&&(G.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var CP=function(){};
_.T(CP,NZ);CP.prototype.getApiPaths=function(){return BXw};
CP.prototype.getExtension=function(G){return _.X(G,_.Pz2)};
CP.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.continuation?G.continuation=Z.continuation:H.videoId&&(G.videoId=H.videoId);Z.clientParams&&(G.clientParams=Z.clientParams)};var ih=function(){};
_.T(ih,NZ);ih.prototype.getApiPaths=function(){return eWR};
ih.prototype.getExtension=function(G){return _.X(G,_.Nu)};
ih.prototype.JSC$14170_buildRequest=function(G,H){G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";G.fetchCommentsParams={};H.videoId&&(G.fetchCommentsParams.encryptedVideoId=H.videoId);H.postId&&(G.fetchCommentsParams.postId=H.postId);H.externalChannelId&&(G.fetchCommentsParams.externalChannelId=H.externalChannelId);H.linkedCommentId&&(G.fetchCommentsParams.linkedCommentId=H.linkedCommentId);(0,_.oN.isEmpty)(G.fetchCommentsParams)&&delete G.fetchCommentsParams};var O8=function(){};
_.T(O8,NZ);O8.prototype.getApiPaths=function(){return wp};
O8.prototype.JSC$14170_buildRequest=function(G){G.browseId="FEnotifications_inbox"};
O8.prototype.getExtension=function(G){return _.X(G,_.GD)};var ad=function(){};
_.T(ad,NZ);ad.prototype.getApiPaths=function(){return eWR};
ad.prototype.JSC$14170_buildRequest=function(G,H){H.signal==="GET_NOTIFICATIONS_MENU"&&(G.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");H.ctoken&&(G.ctoken=H.ctoken)};
var JRt=function(){};
_.T(JRt,ad);JRt.prototype.getExtension=function(G){return _.X(G,_.GD)};
var t_L=function(){};
_.T(t_L,ad);t_L.prototype.getExtension=function(G){return _.X(G,T54)};var yW=function(){};
_.T(yW,NZ);yW.prototype.getApiPaths=function(){return TY_};
yW.prototype.getExtension=function(G){return _.X(G,_.GD)};
yW.prototype.JSC$14170_buildRequest=function(){};var od=function(){};
_.T(od,NZ);od.prototype.getApiPaths=function(){return hWx};
od.prototype.getExtension=function(G){return _.X(G,WSt)||void 0};
od.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params);H.secondaryParams&&(G.secondaryParams=H.secondaryParams)};var mb=function(){};
_.T(mb,NZ);mb.prototype.getApiPaths=function(){return CTR};
mb.prototype.getExtension=function(G){return _.X(G,qMN)};
mb.prototype.JSC$14170_buildRequest=function(G,H){H.undo&&(G.undo=H.undo);H.serializedOptOut&&(G.serializedOptOut=H.serializedOptOut);H.serializedRecordInteractionsRequest&&(G.serializedRecordInteractionsRequest=H.serializedRecordInteractionsRequest)};var U8=function(){};
_.T(U8,NZ);U8.prototype.getApiPaths=function(){return aER};
U8.prototype.getExtension=function(G){return _.X(G,SM2)};
U8.prototype.JSC$14170_buildRequest=function(G,H){H.serializedInteractionsRequest&&(G.serializedRecordNotificationInteractionsRequest=H.serializedInteractionsRequest)};var Rd=function(){};
_.T(Rd,NZ);Rd.prototype.getApiPaths=function(){return EBu};
Rd.prototype.getExtension=function(G){return _.X(G,rCv)};
Rd.prototype.JSC$14170_buildRequest=function(G,H,Z){H=H===void 0?{}:H;Z=Z===void 0?{}:Z;H.videoId?G.videoId=H.videoId:H.playlistId&&(G.playlistId=H.playlistId);var Q;G.isCrossDeviceDownload=(Q=H.isCrossDeviceDownload)!=null?Q:!1;var p;if(Q=(p=H.offlineWebClientEligibility)!=null?p:Z.offlineWebClientEligibility)G.offlineWebClientEligibility=Q;var l;if(p=(l=H.preferredFormatType)!=null?l:Z.preferredFormatType)G.preferredFormatType=p;var q;if(l=(q=H.lastOfflineQualitySettingsSavedMs)!=null?q:Z.lastOfflineQualitySettingsSavedMs)G.lastOfflineQualitySettingsSavedMs=
l;H.params&&(G.params=H.params)};var ND=function(){};
_.T(ND,NZ);ND.prototype.getApiPaths=function(){return BN};
ND.prototype.getExtension=function(G){return _.X(G,_.vh)};
ND.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.token&&(G.continuation=H.token);Z.formData&&(G.formData=Z.formData)};var AT=function(){};
_.T(AT,NZ);AT.prototype.getApiPaths=function(){return BN};
AT.prototype.getExtension=function(G){return _.X(G,t57)};
AT.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;G.continuation=Z.continuation};var x7=function(){};
_.T(x7,NZ);x7.prototype.getApiPaths=function(){return BN};
x7.prototype.getExtension=function(G){return _.X(G,_.nM)};
x7.prototype.JSC$14170_buildRequest=function(G,H){var Z,Q=H.panelIdentifier||((Z=H.identifier)==null?void 0:Z.tag);Q&&(G.panelId=Q);var p;if((p=H.globalConfiguration)==null?0:p.params){var l;G.params=(l=H.globalConfiguration)==null?void 0:l.params}if(_.V("enable_ai_companion")){var q;H=H.engagementPanelExtras;if(H==null?0:(q=H.aiCompanionPanelExtras)==null?0:q.includeClientConversationId){var u,B;q=(B=(u=_.tp().resolve(_.Jp(EbA)))==null?void 0:u("conversations"))==null?void 0:B.get("conversation_id")}else q=
void 0;if(u=q)G.formData=Object.assign({},G.formData,{inputComposerFormData:{conversationId:u}})}};
_.u4.Object.defineProperties(x7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var LP=function(){};
_.T(LP,NZ);LP.prototype.getApiPaths=function(){return BN};
LP.prototype.getExtension=function(G){return _.X(G,srw)};
LP.prototype.JSC$14170_buildRequest=function(G,H){H.panelLoadingStrategy&&Hy2(G,H.panelLoadingStrategy)};var E8=function(){};
_.T(E8,NZ);E8.prototype.getApiPaths=function(){return BN};
E8.prototype.getExtension=function(G){return _.X(G,$ZN)};
E8.prototype.JSC$14170_buildRequest=function(G,H){H.loadingStrategy&&Hy2(G,H.loadingStrategy)};var Y7=function(){};
_.T(Y7,NZ);Y7.prototype.getApiPaths=function(){return BN};
Y7.prototype.getExtension=function(G){return _.X(G,_.Jxo)};
Y7.prototype.JSC$14170_buildRequest=function(G,H){H.panelLoadingStrategy&&Hy2(G,H.panelLoadingStrategy)};var FH=function(){};
_.T(FH,NZ);FH.prototype.getApiPaths=function(){return BN};
FH.prototype.getExtension=function(G){return _.X(G,XYa)};
FH.prototype.JSC$14170_buildRequest=function(G,H){var Z,Q=(Z=H.contentSourcePanelIdentifier)==null?void 0:Z.tag;Q&&(G.panelId=Q);var p;if((p=H.globalConfiguration)==null?0:p.params){var l;G.params=(l=H.globalConfiguration)==null?void 0:l.params}};var bh=function(){};
_.T(bh,NZ);bh.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
bh.prototype.getExtension=function(G){return _.X(G,cft)};
bh.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var GN=function(){};
_.T(GN,NZ);GN.prototype.getApiPaths=function(){return u4x};
GN.prototype.getExtension=function(G){return _.X(G,vgR)};
GN.prototype.JSC$14170_buildRequest=function(G,H){H.externalChannelId&&(G.externalChannelId=H.externalChannelId);H.superChatAction&&(G.superChatAction=H.superChatAction);H.superStickersAction&&(G.superStickersAction=H.superStickersAction)};var Hj=function(){};
_.T(Hj,NZ);Hj.prototype.getApiPaths=function(){return qF7};
Hj.prototype.getExtension=function(G){return _.X(G,DHw)||_.X(G,hQe)};
Hj.prototype.JSC$14170_buildRequest=function(G,H){H.videoIds?G.videoIds=H.videoIds:H.videoId&&(G.videoIds=[H.videoId]);H.playlistId&&(G.playlistId=H.playlistId);H.params&&(G.params=H.params);G.excludeWatchLater=!1};var sQ=function(){};
_.T(sQ,NZ);sQ.prototype.getApiPaths=function(){return bJ4};
sQ.prototype.getExtension=function(G){return _.X(G,_.Ge)};
sQ.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.create_playlist_title?G.title=Z.create_playlist_title:H.title&&(G.title=H.title);if(Z.create_playlist_privacy_status&&typeof Z.create_playlist_privacy_status==="number"){a:{var Q=Z.create_playlist_privacy_status;if(Q!==0){if(Q===1){Q="PUBLIC";break a}if(Q===2){Q="UNLISTED";break a}}Q="PRIVATE"}G.privacyStatus=Q}else H.privacyStatus&&(G.privacyStatus=H.privacyStatus);Z.create_playlist_description&&(G.description=Z.create_playlist_description);H.videoIds&&
(G.videoIds=H.videoIds);H.params&&(G.params=H.params);H.sourcePlaylistId&&(G.sourcePlaylistId=H.sourcePlaylistId)};var Ze=function(){};
_.T(Ze,NZ);Ze.prototype.getApiPaths=function(){return sox};
Ze.prototype.getExtension=function(G){return _.X(G,fia)};
Ze.prototype.JSC$14170_buildRequest=function(G,H){G.playlistId=H.playlistId};var Q9=function(){};
_.T(Q9,NZ);Q9.prototype.getApiPaths=function(){return nnT};
Q9.prototype.getExtension=function(G){return _.X(G,Zia)};
Q9.prototype.JSC$14170_buildRequest=function(G,H){H.playlistId&&(G.playlistId=H.playlistId);H.params&&(G.params=H.params)};var p7=function(){};
_.T(p7,NZ);p7.prototype.getApiPaths=function(){return Oe7};
p7.prototype.getExtension=function(G){return _.X(G,_.A$)||void 0};
p7.prototype.JSC$14170_buildRequest=function(G,H){H.actions&&(G.actions=H.actions);H.params&&(G.params=H.params);H.playlistId&&(G.playlistId=H.playlistId)};var lp=function(){};
_.T(lp,NZ);_.g=lp.prototype;_.g.getApiPaths=function(){return yVw};
_.g.getExtension=function(G){return _.X(G,_.uS)};
_.g.JSC$14170_buildRequest=function(G,H){H.videoId&&(G.playerRequest={videoId:H.videoId},H.playerParams&&(G.playerRequest.params=H.playerParams),H.racyCheckOk&&(G.playerRequest.racyCheckOk=!!H.racyCheckOk),H.contentCheckOk&&(G.playerRequest.contentCheckOk=!!H.contentCheckOk));H.params&&(G.params=H.params);H.inputType&&(G.inputType=H.inputType);G.disablePlayerResponse=!0};
_.g.getRequestConfig=function(G){var H;(G=this.JSC$14177_getStoreKey(G))&&(H={storeStrategy:{storeKey:G}});_.V("web_log_reels_ticks")&&(H=H||{},H.requestTick="r_wrs",H.responseTick="r_wrr");return H};
_.g.JSC$14177_getStoreKey=function(G){G=this.getExtension(G);if(G!=null&&G.videoId){var H={videoId:G.videoId};G.params&&(H.params=G.params);return _.wj("reel_item_watch",H)}};var gF=function(){};
_.T(gF,NZ);_.g=gF.prototype;_.g.getApiPaths=function(){return onG};
_.g.getExtension=function(G){return _.X(G,_.uS)};
_.g.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;G.sequenceParams=H.sequenceParams;var Q;((Q=Z)==null?0:Q.contentPlaybackContext)&&_.V("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:Z.contentPlaybackContext})};
_.g.JSC$14177_getStoreKey=function(G){if(_.V("web_enable_delay_shorts_sequence_call")||_.V("shorts_controller_retrieve_seedless_sequence_v2"))if(G=this.getExtension(G),G==null?0:G.sequenceParams)return _.wj("reel_watch_sequence",{sequenceParams:G.sequenceParams})};
_.g.getRequestConfig=function(G){G=this.JSC$14177_getStoreKey(G);var H;G&&(H={storeStrategy:{storeKey:G}});H=H||{};H.requestTick="r_wsrs";H.responseTick="r_wsrr";H.processorTick="r_wsrp";return H};
var I8=function(){};
_.T(I8,NZ);I8.prototype.getApiPaths=function(){return onG};
I8.prototype.getExtension=function(G){return _.X(G,_.vh)};
I8.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.token&&(G.continuation=H.token);var Q;((Q=Z)==null?0:Q.contentPlaybackContext)&&_.V("web_shorts_prefetch_service_enabled")&&(G.playbackContext={contentPlaybackContext:Z.contentPlaybackContext})};
I8.prototype.getRequestConfig=function(G){G=this.JSC$14177_getStoreKey(G);var H;G&&(H={storeStrategy:{storeKey:G}});H=H||{};H.requestTick="r_wsrs";H.responseTick="r_wsrr";H.processorTick="r_wsrp";return H};var qw=function(){};
_.T(qw,NZ);qw.prototype.getApiPaths=function(){return lEx};
qw.prototype.getExtension=function(G){return _.X(G,_.YsN)};
qw.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.flagAction&&(G.action=H.flagAction);H.flagRequestType&&(G.flagRequestType=H.flagRequestType);H.additionalDetailCheckboxChecked&&(G.additionalDetailCheckboxChecked=H.additionalDetailCheckboxChecked);H.legalCheckboxChecked&&(G.legalCheckboxChecked=H.legalCheckboxChecked);H={};Z.flag_issue_type!==void 0&&(H.issue=Z.flag_issue_type);Z.flag_affiliation!==void 0&&(H.affiliation=Z.flag_affiliation);Z.flag_full_name&&(H.fullName=Z.flag_full_name);
Object.keys(H).length&&(G.legalReportDetails=H);if(Z.flag_description||Z.text)G.userComments=Z.flag_description||Z.text;H={};Z.minutes!==void 0&&Z.seconds!==void 0&&(H.minutes=Z.minutes,H.seconds=Z.seconds);Z.vss_id&&(H.vssId=Z.vss_id);Object.keys(H).length&&(G.videoReportDetails=H);H={};Z.video_ids&&(H.videoIds=Z.video_ids);Z.impersonated_channel_url&&(H.impersonatedChannelUrl=Z.impersonated_channel_url);Object.keys(H).length&&(G.channelAbuseReportDetails=H)};
_.u4.Object.defineProperties(qw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SR=function(){};
_.T(SR,NZ);SR.prototype.getApiPaths=function(){return BY7};
SR.prototype.getExtension=function(G){return _.X(G,f8t)};
SR.prototype.JSC$14170_buildRequest=function(G,H){H.blockedForKidsContent&&(G.blockedForKidsContent=H.blockedForKidsContent)};var up=function(){};
_.T(up,NZ);up.prototype.getApiPaths=function(){return RWG};
up.prototype.getExtension=function(G){return _.X(G,w0o)};
up.prototype.JSC$14170_buildRequest=function(G,H,Z){G.params=H.params;Z.impersonated_channel_url&&(G.impersonatedChannelUrl=Z.impersonated_channel_url)};var Bj=function(){};
_.T(Bj,NZ);Bj.prototype.getApiPaths=function(){return Kop};
Bj.prototype.getExtension=function(G){return _.X(G,_.vlG)};
Bj.prototype.JSC$14170_buildRequest=function(G,H){H.items&&(G.items=H.items);H.kidGaiaId&&(G.kidGaiaId=H.kidGaiaId)};var JX=function(){};
_.T(JX,NZ);JX.prototype.getApiPaths=function(){return SFT};
JX.prototype.getExtension=function(G){return _.X(G,_.J4G)};
JX.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params);H.targetId&&(G.targetId=H.targetId)};var tX=function(){};
_.T(tX,NZ);tX.prototype.getApiPaths=function(){return Lo2};
tX.prototype.getExtension=function(G){return _.X(G,fRw)};
tX.prototype.JSC$14170_buildRequest=function(G,H){H.externalVideoId&&(G.externalVideoId=H.externalVideoId);H.query&&(G.query=H.query);H.sourceTimelines&&(G.sourceTimelines=H.sourceTimelines)};var ke=function(){};
_.T(ke,NZ);ke.prototype.getApiPaths=function(){return Enw};
ke.prototype.getExtension=function(G){return _.X(G,_.vh)||void 0};
ke.prototype.JSC$14170_buildRequest=function(G,H){H.token&&(G.continuation=H.token)};
_.k$8=function(){};
_.T(_.k$8,NZ);_.g=_.k$8.prototype;_.g.getApiPaths=function(){return Enw};
_.g.getExtension=function(G){return _.X(G,_.I_)||void 0};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$14177_getStoreKey=function(G,H){H=H===void 0?{}:H;if(!H.disableCache&&(G=this.getExtension(G))&&G.query)return H={query:G.query},G.params&&(H.params=G.params),_.wj("search",H)};
_.g.JSC$14170_buildRequest=function(G,H,Z){H.query&&(G.query=H.query);H.params&&(G.params=H.params);if(!_.V("web_forward_suggest_stats_killswitch")){var Q=_.X(H,Eyw);Q&&(G.suggestStats=Q)}var p;!_.V("kevlar_searchbox_stats_killswitch")&&((p=Z.tempData)==null?0:p.gs_l)&&!_.X(H,Eyw)&&(G.webSearchboxStatsUrl="/search?oq="+(Z.tempData.oq||"")+"&gs_l="+Z.tempData.gs_l);var l;if((l=Z.tempData)==null?0:l.entityMid)H=G.suggestionSearchParams||{},H.entityMid=Z.tempData.entityMid,G.suggestionSearchParams=H;
if(_.V("enable_desktop_vdcbg_components")||_.V("enable_inline_muted_playback_on_web_search"))H=_.lf().getFlag(186),G.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";var q;((q=Z.tempData)==null?0:q.isFromShorts)&&_.V("web_pass_shorts_context_to_search")&&(G.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.g.getRequestConfig=function(G,H){H=H===void 0?{}:H;G=this.JSC$14177_getStoreKey(G,H);var Z;G&&(Z={storeStrategy:{storeKey:G}});_.V("web_log_search_ticks_ks")||(Z=Z||{},Z.requestTick="sr_s",Z.responseTick="sr_r");return Z};var De=function(){};
_.T(De,NZ);De.prototype.getApiPaths=function(){return XR2};
De.prototype.getExtension=function(G){return _.X(G,irp)};
De.prototype.JSC$14170_buildRequest=function(G,H){H.serializedGetSharingProviderDataParams&&(G.serializedGetSharingProviderDataParams=H.serializedGetSharingProviderDataParams)};var dF=function(){};
_.T(dF,NZ);dF.prototype.getApiPaths=function(){return cVG};
dF.prototype.getExtension=function(G){return _.X(G,N5t)};
dF.prototype.JSC$14170_buildRequest=function(G,H){H.endpoint&&(G.endpoint=H.endpoint);H.action&&(G.action=H.action)};var eR=function(){};
_.T(eR,NZ);eR.prototype.getApiPaths=function(){return ZeR};
eR.prototype.getExtension=function(G){return _.X(G,vOw)};
eR.prototype.JSC$14170_buildRequest=function(G,H){G.videoId=H.videoId;H.scheduledRedirectMetadataSourceVideoId&&(G.scheduledRedirectMetadata={sourceVideoId:H.scheduledRedirectMetadataSourceVideoId})};var n7=function(){};
_.T(n7,NZ);n7.prototype.getApiPaths=function(){return GQx};
n7.prototype.getExtension=function(G){return _.X(G,_.zgw)};
n7.prototype.JSC$14170_buildRequest=function(G,H){G.params=H.params;G.correctionText=H.correctionText};var V9=function(){};
_.T(V9,NZ);V9.prototype.getApiPaths=function(){return A82};
V9.prototype.getExtension=function(G){return _.X(G,_.vxa)};
V9.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params);G.searchQuery=H.searchQuery;G.languageCode=H.languageCode;G.kind=H.kind;G.name=H.name;G.externalVideoId=H.externalVideoId};var $e=function(){};
_.T($e,NZ);$e.prototype.getApiPaths=function(){return Dgt};
$e.prototype.getExtension=function(G){return _.X(G,Rgp)};
$e.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.params=H.params)};var X2=function(G){this.JSC$18429_storeWithEntities=G};
_.T(X2,NZ);X2.prototype.getApiPaths=function(){return NBa};
X2.prototype.getExtension=function(G){return _.X(G,AiG)||_.X(G,L9a)};
X2.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.client_data&&(G.clientData=Z.client_data);if(H.commerceActionConfig){var Q=H.commerceActionConfig;H=Q.actionId;Q=Q.commerceActionParams;H&&(G.actionId=H);Q&&(G.commerceActionParams=Q)}else{var p=H.actionId,l=H.commerceActionParams;Z=H.entityKeys;p&&(G.actionId=p);l&&(G.commerceActionParams=l);var q;H=(Q=this.JSC$18429_storeWithEntities)==null?void 0:(q=Q.getState())==null?void 0:q.entities;if(Z&&H){Q=[];q=_.I(Z);for(Z=q.next();!Z.done;Z=q.next())if(p=
Z.value,Z=_.YK(p).entityType,p=_.Hv(H,Z,p))l={},Q.push((l[Z]=p,l));G.entityMutationPayloads=Q}}};
X2.prototype.getRequestConfig=function(G){var H,Z=(H=_.X(G,AiG))==null?void 0:H.requestSequenceType;if(Z&&G.clickTrackingParams&&Z!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:G.clickTrackingParams,sequenceType:Z}}};
X2[kM]=[R9];var cj=function(){};
_.T(cj,NZ);cj.prototype.getApiPaths=function(){return dgR};
cj.prototype.getExtension=function(G){return _.X(G,_.Jzt)};
cj.prototype.JSC$14170_buildRequest=function(G,H){H.feedbackData&&(G.feedbackData=H.feedbackData);H.params&&(G.itemParams=H.params)};
_.u4.Object.defineProperties(cj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TN=function(){};
_.T(TN,NZ);TN.prototype.getApiPaths=function(){return erT};
TN.prototype.getExtension=function(G){return _.X(G,tod)};
TN.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.payments_payload&&(G.paymentsPayload=Z.payments_payload);Z.offer_params&&(G.offerParams=Z.offer_params);H.transactionParams&&(G.transactionParams=H.transactionParams)};var f7=function(){};
_.T(f7,NZ);f7.prototype.getApiPaths=function(){return nUR};
f7.prototype.getExtension=function(G){return _.X(G,_.ka_)};
f7.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.buybucketParams&&(G.buybucketData={params:H.buybucketParams},H.stickerParams?G.buybucketData.stickerParams=H.stickerParams:(Z.rich_chat_message?G.buybucketData.richChatMessage=Z.rich_chat_message:Z.chat_message_text&&(G.buybucketData.chatMessageText=Z.chat_message_text),Z.purchase_price_micros&&(G.buybucketData.purchasePriceMicros=Z.purchase_price_micros.toString())));H.donationAmountMicros&&(G.tipAmountMicros=H.donationAmountMicros,
H.tipParams&&(G.tipParams=H.tipParams));H.offerParams&&(G.offerParams=H.offerParams);H.productData&&(G.productData=H.productData);H.transactionParams&&(G.transactionParams=H.transactionParams)};var vj=function(){};
_.T(vj,NZ);vj.prototype.getApiPaths=function(){return V$4};
vj.prototype.getExtension=function(G){return _.X(G,e9w)};
vj.prototype.JSC$14170_buildRequest=function(G,H){H.updateFopParams&&(G.updateFopParams=H.updateFopParams)};var Wj=function(){};
_.T(Wj,NZ);Wj.prototype.getApiPaths=function(){return $gt};
Wj.prototype.getExtension=function(G){return _.X(G,_.wu)};
Wj.prototype.JSC$14170_buildRequest=function(G,H){H.couponCode&&(G.couponCode=H.couponCode);H.params&&(G.itemParams=H.params)};var zN=function(){};
_.T(zN,NZ);zN.prototype.getApiPaths=function(){return XFw};
zN.prototype.getExtension=function(G){return _.X(G,_.xJx)};
zN.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;H.params&&(G.params=H.params);Z.ctk&&(G.clientToken=Z.ctk)};var K7=function(G){this.JSC$18464_storeWithEntities=G};
_.T(K7,NZ);K7.prototype.getApiPaths=function(){return cja};
K7.prototype.getExtension=function(G){return _.X(G,_.Qi)};
K7.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.purchase_price_micros&&(G.productData={pdgData:{purchasePriceMicros:Z.purchase_price_micros.toString()}},Z.rich_chat_message&&(G.productData.pdgData.richChatMessage=Z.rich_chat_message),Z.currency_code&&(G.productData.pdgData.currencyCode=Z.currency_code));H.transactionParams&&(G.transactionParams=H.transactionParams);H.clientLocationContext&&(G.clientLocationContext=H.clientLocationContext);Z.payments_payload&&(G.paymentsPayload=Z.payments_payload);
Z.funds_guarantee_callback_client_data&&(G.fundsGuaranteeCallbackClientData=Z.funds_guarantee_callback_client_data);var Q,p;Z=(Q=this.JSC$18464_storeWithEntities)==null?void 0:(p=Q.getState())==null?void 0:p.entities;if(H.entityKeys&&Z){Q=[];H=_.I(H.entityKeys);for(p=H.next();!p.done;p=H.next()){var l=p.value;p=_.YK(l).entityType;if(l=_.Hv(Z,p,l)){var q={};Q.push((q[p]=l,q))}}G.entityMutationPayloads=Q}};
K7[kM]=[R9];var Mw=function(){};
_.T(Mw,NZ);Mw.prototype.getApiPaths=function(){return TXN};
Mw.prototype.getExtension=function(G){return _.X(G,DAT)};
Mw.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;Z.backend_analytics&&(G.serializedBackendAnalyticsEvent=Z.backend_analytics);H.offerParams&&(G.offerParams=H.offerParams)};var jR=function(){};
_.T(jR,NZ);jR.prototype.getApiPaths=function(){return $gt};
jR.prototype.getExtension=function(G){return _.X(G,cIf)};
jR.prototype.JSC$14170_buildRequest=function(G,H){H.params&&(G.itemParams=H.params)};var Pj=function(){};
_.T(Pj,NZ);Pj.prototype.getApiPaths=function(){return fzt};
Pj.prototype.getExtension=function(G){return _.X(G,_.Gap)};
Pj.prototype.JSC$14170_buildRequest=function(G,H,Z){Z.resume_time_ms&&(G.resumeTimeMs=Z.resume_time_ms);H.pauseParams&&(G.pauseParams=H.pauseParams)};var rF=function(){};
_.T(rF,NZ);rF.prototype.getApiPaths=function(){return vUT};
rF.prototype.getExtension=function(G){return _.X(G,_.dAa)};
rF.prototype.JSC$14170_buildRequest=function(G,H,Z){Z=Z===void 0?{}:Z;Z.c&&(G.redeemCode=Z.c);Z.rd&&(G.riskData=Z.rd);Z.ctk&&(G.clientToken=Z.ctk)};var wF=function(){};
_.T(wF,NZ);wF.prototype.getApiPaths=function(){return W5T};
wF.prototype.getExtension=function(G){return _.X(G,_.HJd)};
wF.prototype.JSC$14170_buildRequest=function(G,H){H.resumeParams&&(G.resumeParams=H.resumeParams)};var hX=function(G,H){this.clientName=G;this.defaultExpirationDelayMs=H};
hX.prototype.put=function(G,H){var Z=this,Q;return _.S(function(p){Q=Object.assign({},H.data);Q.key=G;Q.clientName=Z.clientName;Q.expireTimestampMs===void 0&&(Q.expireTimestampMs=(Math.round((0,_.t3)())+Z.defaultExpirationDelayMs).toString());return p.return(Z.putInternal(G,Q))})};
hX[kM]=[Y1,QNj];var DjA=function(){hX.apply(this,arguments);this.JSC$18494_responseStore=new Map};
_.T(DjA,hX);_.g=DjA.prototype;_.g.get=function(G){var H=this;return _.S(function(Z){return Z.return(X_(H,G))})};
_.g.putInternal=function(G,H){var Z=this,Q,p,l;return _.S(function(q){Q=Z.defaultExpirationDelayMs;H.expireTimestampMs&&(Q=Number(H.expireTimestampMs)-Math.round((0,_.t3)()),p=_.eA("mweb_override_response_store_expiration_ms"),p>0&&p<Q&&(Q=p));l=setTimeout(function(){Z.remove(G)},Q);
Z.JSC$18494_responseStore.set(G,{entryData:H,timer:l});_.K0(q)})};
_.g.remove=function(G){var H=this;return _.S(function(Z){djk(H,G);_.K0(Z)})};
_.g.removeAll=function(){var G=this;return _.S(function(H){G.JSC$18494_responseStore.forEach(function(Z){clearTimeout(Z.timer)});
G.JSC$18494_responseStore.clear();_.K0(H)})};
_.g.has=function(G){return!!this.JSC$18494_responseStore.get(G)};
_.g.getKeys=function(){return this.JSC$18494_responseStore.keys()};
var X_=function(G,H){if(G=G.JSC$18494_responseStore.get(H))return new _.$E(G.entryData)},djk=function(G,H){var Z=G.JSC$18494_responseStore.get(H);
Z&&(clearTimeout(Z.timer),G.JSC$18494_responseStore.delete(H))};var slR;var pqW=function(G,H,Z){hX.call(this,G,H);this.token=Z};
_.T(pqW,hX);_.g=pqW.prototype;_.g.get=function(G){var H=this,Z,Q;return _.S(function(p){return p.nextAddress==1?p.yield(Qlj(H.token),2):p.nextAddress!=3?(Z=p.yieldResult,p.yield(Z.get("ResponseStore",[G,H.clientName]),3)):(Q=p.yieldResult)?p.return(new _.$E(Q)):p.return(void 0)})};
_.g.putInternal=function(G,H){var Z=this,Q;return _.S(function(p){if(p.nextAddress==1)return p.yield(Qlj(Z.token),2);Q=p.yieldResult;return p.yield(Q.put("ResponseStore",H),0)})};
_.g.remove=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(Qlj(H.token),2);Z=Q.yieldResult;return Q.return(Z.delete("ResponseStore",[G,H.clientName]))})};
_.g.removeAll=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(Qlj(G.token),2);H=Z.yieldResult;return Z.yield(hE2(H,IDBKeyRange.only(G.clientName)),0)})};
_.g.has=function(){throw Error("ij");};_.C7=new _.Gv("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var eKi=function(G){var H;this.stateTagsData=(H=G.responseContext)==null?void 0:H.stateTags},n5h=function(G){var H;
return((H=G.stateTagsData)==null?void 0:H.stateTagsModified)||[]};var V_A;V_A=function(G){this.JSC$18507_responseStore=G};
_.jV=function(G,H,Z){if(!_.V("state_tags_killswitch")){var Q=new eKi(H);if(n5h(Q).length>0){var p=G.JSC$18507_responseStore.getKeys();p=_.I(p);for(var l=p.next();!l.done;l=p.next()){l=l.value;var q=X_(G.JSC$18507_responseStore,l);if(q){var u=_.mU(q);a:{var B=void 0;q=n5h(Q);u=((B=(new eKi(u)).stateTagsData)==null?void 0:B.relevantStateTags)||[];B=_.I(u);for(u=B.next();!u.done;u=B.next())if(u=u.value,u.stateTag!=null&&q.includes(u.stateTag)&&u.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){q=
!0;break a}q=!1}q&&djk(G.JSC$18507_responseStore,l)}}}}var t;Q=(t=H.responseContext)==null?void 0:t.maxAgeSeconds;Z&&Q&&Number(Q)>0&&(H=YV(H,Q),G.JSC$18507_responseStore.put(Z,new _.$E(H)))};
V_A.prototype.handleResponse=function(G,H){if(!H)throw Error("jj");var Z,Q;H=(Z=H.config)==null?void 0:(Q=Z.storeStrategy)==null?void 0:Q.storeKey;_.jV(this,G,H)};
V_A[kM]=[_.Vp];_.$rj=new _.Gv("STORE_RESPONSE_PROCESSOR_TOKEN");var $jD=function(G){this.JSC$18510_responseStore=G};
$jD.prototype.handleResponse=function(G,H){if(H.input.match(_.U7(onG))){var Z;if(G==null?0:(Z=G.entries)==null?0:Z.length)for(G=_.I(G.entries),H=G.next();!H.done;H=G.next()){Z=H.value.command;var Q=void 0;H=(Q=_.X(Z,_.uS))==null?void 0:Q.unserializedPrefetchData;if(!Z||!H)break;Q=(new lp).JSC$14177_getStoreKey(Z);var p=_.X(H,YMa),l=void 0,q=void 0,u=void 0,B=void 0,t=void 0,D=void 0,d=((l=p)==null?0:(q=l.responseContext)==null?0:q.maxAgeSeconds)&&Number((u=p)==null?void 0:(B=u.responseContext)==null?
void 0:B.maxAgeSeconds)>0?Number((t=p)==null?void 0:(D=t.responseContext)==null?void 0:D.maxAgeSeconds):600;Q&&d>0&&(p=YV(p,d),this.JSC$18510_responseStore.put(Q,new _.$E(p)));Z=(new Vu).JSC$14177_getStoreKey(Z);H=_.X(H,h1a);B=u=q=l=p=Q=void 0;t=((Q=H)==null?0:(p=Q.responseContext)==null?0:p.maxAgeSeconds)&&Number((l=H)==null?void 0:(q=l.responseContext)==null?void 0:q.maxAgeSeconds)>0?Number((u=H)==null?void 0:(B=u.responseContext)==null?void 0:B.maxAgeSeconds):600;Z&&t>0&&(H=YV(H,t),this.JSC$18510_responseStore.put(Z,
new _.$E(H)))}}};
$jD[kM]=[_.Vp];var X7s=function(G,H){this.innertubeTransportService=G;this.JSC$18513_commandHandler=H};
X7s.prototype.submitForm=function(G,H,Z,Q,p){var l=this,q,u,B,t,D,d;return _.S(function(e){if(e.nextAddress==1)return q={submitId:G,formData:H,submitBehavior:Z,params:Q},u=_.U7(HnG),e.yield(_.GP(l.innertubeTransportService,q,u,p),2);B=e.yieldResult;if(!B)return e.return(Promise.reject(new _.C$("Submit API returned an undefined response. Submit ID: "+G)));t=B;(d=(D=t)==null?void 0:D.onResponseReceived)&&l.JSC$18513_commandHandler.resolveCommand(d);return e.return(t)})};
X7s[kM]=[_.t0,_.Dk];var ip=function(){this.scheduler=_.DG()},cR8;
ip.prototype.pause=function(){throw Error("kj");};
ip.prototype.resume=function(){throw Error("kj");};
ip.prototype.queue=function(G){var H=this,Z=_.hQ(),Q=_.wM(this.scheduler,function(){try{var p;if(_.HT.instance)var l=_.HT.instance;else{var q=new _.C$("Error: Unexpected uninitialized CommandHandler.");_.me(q);l=void 0}(p=l)==null||p.resolveCommand(G.command);Z.resolve()}catch(u){Z.reject(u)}});
Z.promise.thenCatch(function(p){p instanceof _.fA&&H.scheduler.cancelJob(Q)});
return Z.promise};
ip.prototype.queueAll=function(G){var H=new Map;G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,H.set(Z.id,this.queue(Z));return H};var fSt=function(G,H){var Z=this;this.taskModel=G;this.onTaskCancelledCallback=H;this.resolver=_.hQ();G=G.proto.prefetchConfig;if(!G)throw Error("lj");if(!G.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(Q){Q instanceof _.fA&&(TIL(Z,Z.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),Z.onTaskCancelledCallback(Z.taskModel.id,Z.jobId),Z.tick("pcc"));
throw Q;});
this.timerName=this.taskModel.id;_.VY(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
fSt.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 TIL=function(G,H){_.ee({prefetchInfo:{cancellationReason:H}},G.timerName)};
fSt.prototype.tick=function(G){_.$K(G,void 0,this.timerName)};var a8=function(){var G=this;this.scheduler=_.DG();this.maxInflightTasks=_.eA("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.eA("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new tOd;this.onTaskCancelled=function(H,Z){Z&&G.scheduler.cancelJob(Z);v5a(G,H);OQ(G,3)}},WuD=function(){a8.instance||(a8.instance=new a8);
return a8.instance};
a8.prototype.pause=function(){this.prefetchCoordinatorState=0};
a8.prototype.resume=function(){OQ(this,0)};
a8.prototype.queue=function(G){G=zK8(this,G);OQ(this,1);return G};
a8.prototype.queueAll=function(G){var H=new Map;G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,H.set(Z.id,zK8(this,Z));OQ(this,1);return H};
var zK8=function(G,H){var Z=G.allPrefetchTasks.get(H.id);if(Z)return Z.cancellablePromise;try{var Q=new fSt(H,G.onTaskCancelled)}catch(l){return _.DJ(l)}Z=Q;Z.tick("pcq");var p={prefetchInfo:{taskId:Z.taskModel.id,isPrefetch:!0,fetchAction:Z.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:Z.taskModel.command.clickTrackingParams}};Z.taskModel.csn&&(p.clientScreenNonce=Z.taskModel.csn);_.ee(p,Z.timerName);G.allPrefetchTasks.set(H.id,Q);G.drainingHeap.insert(-Q.getPriority(),Q);return Q.cancellablePromise},
OQ=function(G,H){G.prefetchCoordinatorState===H&&(G.prefetchCoordinatorState=2,Kuh(G))},Kuh=function(G){for(var H={};G.prefetchCoordinatorState!==0;H={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(G.inflightPrefetchTasks.size>=G.maxInflightTasks){G.prefetchCoordinatorState=3;break}H.prefetchTask$jscomp$1=G.drainingHeap.remove();if(!H.prefetchTask$jscomp$1){G.prefetchCoordinatorState=1;break}H.taskId$jscomp$3=H.prefetchTask$jscomp$1.taskModel.id;if(G.allPrefetchTasks.has(H.taskId$jscomp$3)){var Z=-1;G.coordinatorTimeoutMs>0&&(Z=_.wM(G.scheduler,function(Q){return function(){y9(G,Q.taskId$jscomp$3,Error("nj"))}}(H),G.coordinatorTimeoutMs));
G.inflightPrefetchTasks.set(H.taskId$jscomp$3,Z);if(!G.JSC$18530_commandHandler){if(!_.HT.instance){y9(G,H.taskId$jscomp$3,Error("oj"));continue}G.JSC$18530_commandHandler=_.HT.instance}a:switch(H.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":Z=1;break a;default:Z=0}H.prefetchTask$jscomp$1.jobId=G.scheduler.addJob(function(Q){return function(){Q.prefetchTask$jscomp$1.tick("pcr");try{G.JSC$18530_commandHandler.resolveCommand(Q.prefetchTask$jscomp$1.taskModel.command)||
y9(G,Q.taskId$jscomp$3,Error("pj"))}catch(p){y9(G,Q.taskId$jscomp$3,p)}}}(H),Z,0)}}},M_q=function(G,H){(H=v5a(G,H))!=null&&(H.resolver.resolve(),H.tick("pce"));
OQ(G,3)},y9=function(G,H,Z){(H=v5a(G,H,Z))!=null&&(H.resolver.reject(Z),H.tick("pcc"),TIL(H,"CANCELLATION_REASON_ERROR"),Math.random()<=_.eA("prefetch_coordinator_error_logging_sampling_rate")&&(Z=new _.C$("Prefetch Command failed.",H.taskModel.id,Z.message),_.me(Z)));
OQ(G,3)},v5a=function(G,H,Z){var Q=G.allPrefetchTasks.get(H);
Q?((Z=G.inflightPrefetchTasks.get(H))&&Z!==-1&&G.scheduler.cancelJob(Z),G.inflightPrefetchTasks.delete(H),G.allPrefetchTasks.delete(H)):_.Rp(new _.C$("Unexpected missing prefetch task when deleting task.",H,Z==null?void 0:Z.message));return Q};var jfq=function(G,H,Z,Q,p){this.id=G;this.triggerOn=H;this.cancelOn=Z;this.command=Q;this.proto=p};
_.u4.Object.defineProperties(jfq.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var PYc=function(){this.JSC$18535_prefetchCoordinator=WuD();cR8||(cR8=new ip);this.defaultCoordinator=cR8},rR6;
PYc.getInstance=function(){rR6||(rR6=new PYc);return rR6};
PYc.prototype.get=function(G){switch(G){case 0:return this.JSC$18535_prefetchCoordinator;default:return this.defaultCoordinator}};var o8=function(){this.coordinatorSupplier=PYc.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},CY6=function(G){var H=_.$k()||void 0,Z=Object.keys(w7k)[0];
if(Z){var Q=G.taskIdByTriggerId.get(Z);if(Q!=null){G.taskIdByTriggerId.delete(Z);Z=[];Q=_.I(Q);for(var p=Q.next();!p.done;p=Q.next())if(p=G.tasks.get(p.value))H!=="UNDEFINED_CSN"&&(p.csn=H),Z.push(p);Z=ICb(Z);H=[];Z=_.I(Z);for(Q=Z.next();!Q.done;Q=Z.next()){p=_.I(Q.value);Q=p.next().value;p=p.next().value;Q=G.coordinatorSupplier.get(Q).queueAll(p);Q=_.I(Q);var l=Q.next();for(p={};!l.done;p={taskId$jscomp$9:void 0},l=Q.next()){var q=_.I(l.value);l=q.next().value;q=q.next().value;p.taskId$jscomp$9=
l;l=q;H.push(p.taskId$jscomp$9);G.queuedPromisesByTask.set(p.taskId$jscomp$9,_.fK(l,function(u){return function(){hKk(G,u.taskId$jscomp$9)}}(p)))}}}}else _.Rp(new _.C$("Unexpected malformed TriggerEvent."))};
o8.prototype.trigger=function(G,H){var Z=this,Q=this.tasks.get(G);if(!Q||this.queuedPromisesByTask.has(G))return!1;iu8(this,G,Q.triggerOn);H!=="UNDEFINED_CSN"&&(Q.csn=H);H=this.coordinatorSupplier.get(Q.taskType).queue(Q);this.queuedPromisesByTask.set(G,_.fK(H,function(){hKk(Z,G)}));
return!0};
o8.prototype.cancel=function(G){var H=this.queuedPromisesByTask.get(G);if(H)H.cancel();else return hKk(this,G)};
var hKk=function(G,H){G.queuedPromisesByTask.delete(H);var Z=G.tasks.get(H);if(!Z)return!1;G.tasks.delete(H);iu8(G,H,Z.triggerOn);(Z=g82(Z.cancelOn))&&(G=G.taskIdByCancelId.get(Z))&&G.delete(H);return!0},iu8=function(G,H,Z){(Z=Object.keys(Z)[0])&&(G=G.taskIdByTriggerId.get(Z))&&G.delete(H)};var w7k={taskRegistered:{}},m6=function(){o8.instance||(o8.instance=new o8);this.JSC$18544_taskManager=o8.instance};
_.T(m6,Ff);
m6.prototype.resolveCommand=function(G){var H=this,Z,Q;return _.S(function(p){Z=_.X(G,bBa);if((Q=Z)==null||!Q.tasks){var l=new _.C$("RegisterTasksCommand is missing tasks.");_.me(l);return p.return()}l=H.JSC$18544_taskManager;for(var q=_.I(Z.tasks),u=q.next();!u.done;u=q.next())if(u=u.value,u=u.id&&u.triggerOn&&u.cancelOn&&u.command?new jfq(u.id,u.triggerOn,u.cancelOn,u.command,u):void 0,u){var B=Object.keys(u.triggerOn)[0];if(B){var t=g82(u.cancelOn);t?(l.tasks.set(u.id,u),l.taskIdByTriggerId.has(B)||l.taskIdByTriggerId.set(B,
new Set),l.taskIdByTriggerId.get(B).add(u.id),l.taskIdByCancelId.has(t)||l.taskIdByCancelId.set(t,new Set),l.taskIdByCancelId.get(t).add(u.id)):_.Rp(new _.C$("Unexpected malformed cancelOn field."))}else _.Rp(new _.C$("Unexpected malformed triggerOn field."))}else _.Rp(new _.C$("Unexpected malformed Task proto."));CY6(H.JSC$18544_taskManager);_.K0(p)})};var Ouk={},aSi=(Ouk.rendered={priority:_.V("web_adaptive_early_init")?8:0,callback:function(){var G={};G.numCpu=navigator.hardwareConcurrency;var H={};H.ramGb=_.Qf.navigator.deviceMemory;var Z={staticContext:{}};H.ramGb&&n$j(H.ramGb)&&(Z.staticContext.memoryTotalKbytes=(H.ramGb*1048576).toString());G.numCpu&&n$j(G.numCpu)&&(Z.staticContext.cpuCores=G.numCpu);if(_.V("web_enable_adaptive_appl_signal")){G={};H=eHb();H=H.length>0?H[0]:void 0;var Q,p=(Q=_.vA("rses_dpj"))!=null?Q:H==null?void 0:H.tick.rses_dpj,
l;Q=(l=_.vA("rsef_dpj"))!=null?l:H==null?void 0:H.tick.rsef_dpj;p&&Number(p)>0&&Q&&Number(Q)>0&&(l=Math.ceil(Number(Q)-Number(p)),l>0&&(G.loadLatency=l));G.loadLatency&&n$j(G.loadLatency)&&(Z.appL=G.loadLatency.toString())}_.yR("applicationStarted",Z);VIf=Z;_.V("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",$Mo)}},Ouk);var yRt=new _.Gv("WINDOW_ON_ERROR"),o5q=new _.Gv("ERROR_WEIGHT_MAPS"),mjm=new _.Gv("INIT_ERROR");var Ujq={},RKq=(Ujq.initialized={priority:10,callback:function(G){G.injector.resolve(mjm)()}},Ujq);var NIh=function(){},ARi=function(){var G=_.GF("meta_logger_impl");
G||(G=new NIh,_.u7("meta_logger_impl",G));return G},xjh=function(){ARi().csiSubscriptionKey=O3j("meta_logging_csi_event",function(G){var H=G.timerName;
if(G=G.timelineData){_.VY(H,{startTime:G.startTime},H);G.infos&&_.ee(G.infos,H);for(var Z=_.I(Object.keys(G.ticks)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,_.$K(Q,G.ticks[Q],H)}})};
NIh.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&oTf(this.csiSubscriptionKey)};var Lut={},E5c=(Lut.initialized={priority:10,callback:function(){xjh()}},Lut);var Y1c=function(G,H){this.innertubeClientName=G;this.JSC$18555_prefCookie=H};
Y1c.prototype.record=function(){if(_.V("web_li_record_binary_eval_tick")){var G=_.vA("rsef_dpj");var H=_.vA("rses_dpj");G=G!==void 0&&H!==void 0?Math.round(G-H):void 0;if(G!==void 0&&G>0){H=_.dT(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var Z=this.poolSize;if(!(H.valuesSeen>=1E9)){if(H.valuesSample.length<Z)H.valuesSample.push(G);else{var Q=Math.floor(Math.random()*(H.valuesSeen+1));Q<Z&&(H.valuesSample[Q]=G)}H.valuesSeen+=1}_.Dp(this.storagePrefix+"-"+this.innertubeClientName,
H,2592E3);G=H.valuesSample;H=qXv(G);G=G.length<this.poolSize?void 0:H<400?1:H<1700?2:3;G!==void 0&&(this.JSC$18555_prefCookie.set(this.cookiePrefix+this.innertubeClientName,G),this.JSC$18555_prefCookie.save())}}else _.eX(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18555_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18555_prefCookie.save()};
Y1c[kM]=[Y1,rd];var Fui=function(){Y1c.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.T(Fui,Y1c);var buh=new _.Gv("PAGE_LOAD_TIME_TOKEN");var Gym=function(G){this.signal=G;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;G.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.wM(_.Ui,this.disableLoggingAndSendPayload,1E4)};
Gym.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Ui.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),Hbs(this))};
var Hbs=function(G){var H=_.Va();if(H){var Z={webClientComponentsData:{components:Array.from(G.ids,function(Q){return{id:Q}})}};
G.ids.clear();_.gr().visualElementStateChanged(H,Z)}};var sMA=VF({a11y:rJx});_.ZbL=$V(sMA)(sMA.a11y,{ephemeralActionSelector:function(G){return G.ephemeralAction||null}});var QMc=VF({continuation:O8N});var pSs=$V(QMc)(QMc.continuation,{continuationCommandSelector:function(G){return G.continuationCommand}});var l0L=new _.Gv("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var UQ=function(G,H){this.JSC$18584_storeWithEntities=G;this.JSC$18584_commandHandler=H;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
UQ.prototype.start=function(){this.JSC$18584_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
UQ.prototype.observeDownloadingEntities=function(){var G=_.aOU(this.JSC$18584_storeWithEntities.getState().entities).map(function(Q){return y9W(Q)});
if(G.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var H={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:ZzX()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Nm(_.Zg("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18584_commandHandler.resolveCommand(H)}this.downloadingEntities=G}else if(this.downloadingEntities.length){var Z=O2W(this.JSC$18584_storeWithEntities.getState().entities).map(function(Q){return y9W(Q)});
this.downloadingEntities.filter(function(Q){return Z.includes(Q)}).length&&(G={openPopupAction:yoW()},this.JSC$18584_commandHandler.resolveCommand(G));
this.downloadingEntities=[]}};
UQ[kM]=[R9,_.Dk];var gFt;_.R8=function(G,H,Z,Q,p,l,q,u){this.JSC$18587_playerApiPromise=G;this.JSC$18587_commandHandler=H;this.JSC$18587_screenManager=Z;this.offlineWebClientEligibility=Q;this.JSC$18587_prefStorage=p;this.JSC$18587_actionRouter=l;this.entityTypeMap=q;this.JSC$18587_persistentStorePromiseAccessor=u;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
gFt=function(){var G=_.tp().resolve(_.R8),H;_.S(function(Z){if(Z.nextAddress==1)return G.downloadFailureListenerBound?Z.return():Z.yield(G.JSC$18587_playerApiPromise,2);H=Z.yieldResult;H.addEventListener("onOfflineOperationFailure",function(Q){if(Q.failureReason&&Q.entityKey&&Q.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(Q.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var p=_.YK(Q.entityKey).entityId;p&&G.JSC$18587_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
p)}else if(_.V("kevlar_woffle")){p=G.JSC$18587_commandHandler;var l=p.resolveCommand;Q=Q.failureReason;var q=_.Zg("TRANSFER_FAILED",void 0,"Download failed");Q==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(q=_.Zg("STORAGE_FULL",void 0,"Storage full"));l.call(p,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Nm(q),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
G.downloadFailureListenerBound=!0;_.K0(Z)})};
_.R8.prototype.deleteVideo=function(G,H){var Z=this,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return q.yield(Z.JSC$18587_playerApiPromise,2);Q=q.yieldResult;l={offlineLoggingData:{offlineDeleteReason:(p=H)!=null?p:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return q.yield(Q.queueOfflineAction(G,Z.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",l),0)})};
_.R8.prototype.pauseVideoDownload=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(H.JSC$18587_playerApiPromise,2);Z=Q.yieldResult;Z.pauseVideoDownload(G);_.K0(Q)})};
_.R8.prototype.resumeVideoDownload=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(H.JSC$18587_playerApiPromise,2);Z=Q.yieldResult;return Q.yield(Z.resumeVideoDownload(G),0)})};
_.R8[kM]=[_.LI,_.Dk,_.rv,l0L,is,JP,MBR,cc];var I0c=new _.Gv("DOWNLOAD_STATE_STORE_TOKEN");var qvj=function(G,H){this.JSC$18607_persistentStorePromiseAccessor=G;this.store=H;this.upliftCompletionResolver=new _.sD},BnA=function(){var G=_.tp().resolve(SvD),H;
_.S(function(Z){switch(Z.nextAddress){case 1:if(G.upliftImplPromise)return Z.return(G.upliftImplPromise);_.XV(Z,2);G.upliftImplPromise=uMD(G);return Z.yield(G.upliftImplPromise,4);case 4:G.upliftCompletionResolver.resolve();_.Za(Z,3);break;case 2:throw H=_.Wg(Z),G.upliftCompletionResolver.reject(H),H;case 3:return Z.return(G.upliftImplPromise)}})},uMD=function(G){var H,Z,Q;
return _.S(function(p){switch(p.nextAddress){case 1:return _.YI("LOGGED_IN")?p.yield(G.JSC$18607_persistentStorePromiseAccessor(),2):p.return();case 2:H=p.yieldResult;if(!H)return _.$K("vdeur"),p.return();_.$K("vdeus");_.XV(p,3);return p.yield(Jsh(H),5);case 5:Z=p.yieldResult;G.store.dispatch(TWR(Z));H.observe(function(l){fOR(G.store,l)});
_.Za(p,4);break;case 3:throw Q=_.Wg(p),_.$K("vdeur"),Q;case 4:_.$K("vdeuc"),_.K0(p)}})},Jsh=function(G){var H;
return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(kue(G),2);H=Z.yieldResult;return Z.return(H.reduce(function(Q,p){if(!p.data||!p.key||!p.entityType)return Q;Q[p.entityType]||(Q[p.entityType]={});Q[p.entityType][p.key]=p.data;return Q},{}))})};
qvj[kM]=[cc,_.oT];var SvD;SvD=new _.Gv("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Nw=new _.Gv("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var AX=function(G,H){this.JSC$18610_persistentStorePromiseAccessor=G;this.transportService=H};
AX.prototype.refresh=function(){var G=this,H,Z,Q,p;return _.S(function(l){if(l.nextAddress==1)return _.YI("LOGGED_IN")?l.yield(G.JSC$18610_persistentStorePromiseAccessor(),2):l.return();if(l.nextAddress!=3)return(H=l.yieldResult)?l.yield(AoW(H),3):l.return();if((Z=l.yieldResult)&&!(Number(Z.data.refreshTimestampMs||0)<(0,_.t3)()))return l.return();Q={browseId:"SPaccount_downloads"};p=_.U7(wp);_.GP(G.transportService,Q,p).then(function(q){var u;if(H&&(q==null?void 0:(u=q.responseContext)==null?void 0:
u.maxAgeSeconds)!==0){var B;u=(q==null?void 0:(B=q.responseContext)==null?void 0:B.maxAgeSeconds)||604800;B=String(Math.floor((0,_.t3)())+u*1E3);H.put("service:downloads_settings:fallback",new _.$E({innertubeResponse:q,refreshTimestampMs:B}))}});
_.K0(l)})};
AX[kM]=[_.C7,_.t0];var xe=function(G,H){this.JSC$18614_playerPromise=G;this.store=H;this.started=!1};
xe.prototype.start=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return G.started?Z.return():Z.yield(G.JSC$18614_playerPromise,2);H=Z.yieldResult;H.addEventListener("onOrchestrationBecameLeader",G.updateIsLeader.bind(G,!0));H.addEventListener("onOrchestrationLostLeader",G.updateIsLeader.bind(G,!1));if(H.isOrchestrationLeader)G.updateIsLeader(H.isOrchestrationLeader());else{var Q=new _.C$("Function isOrchestrationLeader is undefined",{"player.isReady":H.isReady(),"player.playVideo":H.playVideo?
"defined":"undefined"});_.me(Q);G.updateIsLeader(!1)}G.started=!0;_.K0(Z)})};
xe.prototype.updateIsLeader=function(G){this.store.dispatch(_.Lo({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:G}}))};
xe[kM]=[_.LI,_.oT];var tgL=function(G,H){this.networkStatusManager=G;this.JSC$18617_prefStoragePromise=H;this.redirectsToPreload=["https://youtube.com"]},kyc=function(){var G=_.tp().resolve(tgL),H,Z,Q,p,l,q;
_.S(function(u){switch(u.nextAddress){case 1:return u.yield(G.JSC$18617_prefStoragePromise,2);case 2:H=u.yieldResult;if(!(Z=H)){u.jumpTo(3);break}return u.yield(H.get("yt-redirect-prefetch-id"),4);case 4:Z=u.yieldResult;case 3:if(Z||!G.networkStatusManager.isNetworkAvailable())return u.return();Q={cache:"reload",redirect:"manual"};p=_.I(G.redirectsToPreload);l=p.next();case 5:if(l.done){if(!H){u.jumpTo(0);break}return u.yield(H.set("yt-redirect-prefetch-id",!0,86400),0)}q=l.value;_.XV(u,8);return u.yield(_.Qf.fetch(q,
Q),10);case 10:_.Za(u,6);break;case 8:_.Wg(u);case 6:l=p.next(),u.jumpTo(5)}})};var Dfs=function(G){this.JSC$18623_pageManager=G},dfA=function(G){var H=[];
n8R(["videoId","contentId"],G.JSC$18623_pageManager.data,new Set,H);return H},eyh=function(G){return dfA(G).filter(function(H){return H.contentType==="video"}).map(function(H){return H.contentId}).filter(function(H){return H!==void 0})};
Dfs[kM]=[_.o0];var nFs=new _.Gv("PAGE_CONTENT_EXTRACTOR_TOKEN");var L7=function(G){G?(this.container=G,this.containerWasInjected=!0):this.containerWasInjected=!1};
L7.prototype.openDialog=function(G,H,Z){var Q=this,p;return _.S(function(l){(p=Q.container)==null||p.openDialog(G,H,Z);_.K0(l)})};
L7.prototype.closeDialog=function(){var G=this,H;return _.S(function(Z){(H=G.container)==null||H.closeDialog();_.K0(Z)})};
L7.prototype.isDialogOpen=function(){var G=this,H,Z;return _.S(function(Q){return Q.return((Z=(H=G.container)==null?void 0:H.isDialogOpen())!=null?Z:!1)})};
L7[kM]=[_.Jp(Et4)];_.Vga=new _.Gv("POPUP_CONTROLLER_TOKEN");var $f6=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
$f6.prototype.registerPanel=function(G,H){if(G){this.panelMap.set(G,H);var Z=this.pendingPanelResolvers.get(G);Z&&(Z.resolve(H),this.pendingPanelResolvers.delete(G))}};
$f6.prototype.getPanel=function(G){var H=this,Z;return _.S(function(Q){return(Z=H.panelMap.get(G))?Q.return(Z):Q.return(XSL(H,G))})};
var XSL=function(G,H){var Z,Q;return _.S(function(p){if(Z=G.pendingPanelResolvers.get(H))return p.return(Z.promise);Q=new _.sD;G.pendingPanelResolvers.set(H,Q);return p.return(Q.promise)})},csk=function(G,H){$f6.call(this);
var Z=this;this.popupController=G;this.persistentPanelController=H;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return Z.panelMap.size}}};
_.T(csk,$f6);_.g=csk.prototype;_.g.getReloadContinuation=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(H.getPanel(G),2);Z=Q.yieldResult;return Q.return(Z.getReloadContinuation())})};
_.g.showPanel=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e,n;return _.S(function(c){if(c.nextAddress==1){Z=G;Q=Z.identifier;p=Z.panelContents;l=Z.config;q=Z.extras;u=Z.panelUpdatableFields;B=Z.updatePanelContinuationData;t=G.target;B&&H.updatePanelContinuationDatas.set(Q,B);if((D=l)==null?0:(d=D.engagementPanelPopupPresentationConfig)==null?0:d.popupType)if(e=l.engagementPanelPopupPresentationConfig.popupType,t===void 0&&(t=document.body),e==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!H.persistentPanelController)return _.Rp(new _.C$("Persistent panel controller is not available.")),
c.return();var W=H.persistentPanelController;W.persistentPanelIdentifiers.has(Q)||(W.persistentPanelWrapper.appendChild(W.engagementPanelElement({panelIdentifier:Q},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),W.persistentPanelIdentifiers.add(Q));a:switch(_.KG.currentPageSubTypeSelector(W.store.getState())){case "watch":var M="WATCH";break a;default:M="APP"}_.Tna(W,M);W.store.dispatch(hF4(!0))}else{if(e==="PANEL_POPUP_TYPE_DIALOG"||e==="PANEL_POPUP_TYPE_DROPDOWN"){W=c.return;M=H.popupController;
var r=M.openPopup;a:switch(e){case "PANEL_POPUP_TYPE_DIALOG":var w="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":w="DROPDOWN";break a;default:throw Error("rj`"+e);}return W.call(c,r.call(M,Q,p,w,t))}_.Rp(new _.C$("Popup type "+e+" not supported in PanelController."))}return c.yield(H.getPanel(Q),2)}n=c.yieldResult;(p||u)&&n.updatePanel(p,!1,q,u);n.showPanel(q);_.K0(c)})};
_.g.hidePanel=function(G){var H=this,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return Z=G,Q=Z.identifier,q.yield(H.getPanel(Q),2);p=q.yieldResult;p.hidePanel();H.popupController.closePopup(Q);(l=H.persistentPanelController)!=null&&l.persistentPanelIdentifiers.has(Q)&&l.store.dispatch(hF4(!1));_.K0(q)})};
_.g.isVisible=function(G,H){var Z=this,Q;return _.S(function(p){if(p.nextAddress==1)return H&&!Z.panelMap.has(G)?p.return(!1):p.yield(Z.getPanel(G),2);Q=p.yieldResult;return p.return(Q.isVisible())})};
_.g.updatePanel=function(G){var H=this,Z,Q,p,l,q,u,B,t;return _.S(function(D){if(D.nextAddress==1){Z=G;Q=Z.identifier;p=Z.panelContents;l=Z.shouldFocus===void 0?!1:Z.shouldFocus;q=Z.extras;u=Z.panelUpdatableFields;B=Z.updatePanelContinuationData;if(!p&&!u)return D.return();B&&H.updatePanelContinuationDatas.set(Q,B);_.V("enable_ai_companion")&&Q==="PAai_companion"&&_.qB.remove("youchat_messages_section");return D.yield(H.getPanel(Q),2)}t=D.yieldResult;t.updatePanel(p,l,q,u);p&&_.V("enable_ai_companion")&&
H.registerPanelContent(Q,p);_.K0(D)})};
_.g.registerPanelContent=function(G,H){G&&this.panelContentMap.set(G,H)};
_.g.unregisterPanelContent=function(G){this.panelContentMap.delete(G)};
_.g.getPanelContent=function(G){return this.panelContentMap.get(G)};
_.g.getUpdatePanelContinuationData=function(G){return this.updatePanelContinuationDatas.get(G)};
csk[kM]=[_.Vga,_.Jp(_.yp)];var EQ=function(G,H){this.innertubeTransportService=G;this.JSC$18642_screenManager=H},f0i=function(G){var H;
return!((H=G.panelLoadingStrategy)==null||!H.requestTemplate)};
EQ.prototype.makeRequest=function(G){var H=this,Z,Q;return _.S(function(p){switch(p.nextAddress){case 1:if(!f0i(H)){p.jumpTo(2);break}_.XV(p,3);return p.yield(_.wb(H.innertubeTransportService,G),5);case 5:return Z=p.yieldResult,Z?p.return(Z.content):(_.me(Error("sj")),p.return(void 0));case 3:Q=_.Wg(p),_.me(Q);case 2:return p.return(void 0)}})};
EQ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
EQ.prototype.execute=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d;return _.S(function(e){if(e.nextAddress==1){Z=G;Q=Z.data;p=Z.fallbackVe;l=Z.parentVe;q=Z.createScreenConfig;u=Z.renderFn;B=Z.command;H.panelLoadingStrategy=Q;var n,c,W=((n=H.panelLoadingStrategy)==null?0:n.screenVe)?(c=H.panelLoadingStrategy)==null?void 0:c.screenVe:p;W&&_.Te(H.JSC$18642_screenManager,W,l,q);return(t=H.getContent())?e.yield(u(t),2):e.jumpTo(2)}return e.nextAddress!=4?f0i(H)?e.yield(H.makeRequest(B),4):e.return():(d=D=
e.yieldResult)?e.yield(u(d),0):e.return()})};
EQ[kM]=[_.t0,_.rv];var vFi;vFi=function(G,H){this.engagementPanelElement=G;this.store=H;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%"};
_.Tna=function(G,H){var Z=G.persistentPanelContainerMap.get(H);Z?Z.contains(G.persistentPanelWrapper)||(G=G.persistentPanelWrapper,_.m3=!0,_.U6.set(G,!0),Z.insertBefore(G,null),_.U6.delete(G),_.m3=!1):_.Rp(new _.C$("Persistent panel container not found for surface "+H+"."))};
vFi[kM]=[Ymt,_.oT];var Ye=function(){};
Ye.prototype.getContainer=function(){return _.oO()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Ye.prototype.openSheet=function(G,H){var Z=this,Q,p,l,q,u,B;return _.S(function(t){switch(t.nextAddress){case 1:return Q={stack:[],error:void 0,hasError:!1},_.XV(t,2,3),p=IM,t.yield(Z.isSheetOpen(),5);case 5:l=t.yieldResult;Bfw(Q,VdW(p));if(l&&!_.V("delay_sheet_open_killswitch")){if(_.V("web_close_sheet_if_same_target_killswitch")&&H&&Z.currentTarget===H)return(q=Z.getContainer())==null||q.closeSheet(),t.return();Z.pendingData={data:G,target:grj(Z,H)};return t.return()}G.viewModel&&(G={viewModel:G.viewModel,
sheetPosition:G.sheetPosition});(u=Z.getContainer())==null||u.openSheet(G,H);Z.currentTarget=H;case 3:_.TO(t);JMw(Q);_.vg(t,0);break;case 2:B=_.Wg(t),Q.error=B,Q.hasError=!0,t.jumpTo(3)}})};
Ye.prototype.closeSheet=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield((H=G.getContainer())==null?void 0:H.closeSheet(),2);if(Z.nextAddress!=4)return G.currentTarget=void 0,!G.pendingData||_.V("delay_sheet_open_killswitch")?Z.jumpTo(0):Z.yield(G.openSheet(G.pendingData.data,G.pendingData.target),4);G.pendingData=void 0;_.K0(Z)})};
Ye.prototype.isSheetOpen=function(){var G=this,H,Z;return _.S(function(Q){return Q.return((Z=(H=G.getContainer())==null?void 0:H.isSheetOpen())!=null?Z:!1)})};
var grj=function(G,H){if(!_.V("web_parent_target_for_sheets"))return H;var Z,Q;return(Q=(Z=G.getContainer())==null?void 0:Z.getParentTarget(H))!=null?Q:H};var Ez=window.documentPictureInPicture;var zD3=_.CM(["dark"]),KPj=_.CM(["system-icons"]),M3e=_.CM(["typography"]),jlW=_.CM(["lang"]),PDX=_.CM(["style"]),T13=_.CM(["dir"]),fCj=_.CM(["rounded-container"]),v83=_.CM(["style"]),wqe=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],F2=function(G){this.JSC$18659_clientRoot=G;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
F2.prototype.openWindow=function(G){var H=this,Z,Q;return _.S(function(p){switch(p.nextAddress){case 1:if(!window.documentPictureInPicture||!_.MX()||H.currentPipWindow)return p.return(!1);_.XV(p,2);return p.yield((Q=Ez?Ez:null)==null?void 0:Q.requestWindow(G),4);case 4:Z=p.yieldResult;_.Za(p,3);break;case 2:return _.Wg(p),p.return(!1);case 3:if(!Z)return p.return(!1);Z.addEventListener("pagehide",function(){Wfs(H)});
Z.addEventListener("resize",H.handlePipWindowResize);ruX(Z);CDf(Z);kt2(Z);return p.yield(cue(Z),5);case 5:if(!V3f())return p.return(!1);H.currentPipWindow=Z;H.JSC$18659_eventForwarder=hDU(Z,H.JSC$18659_clientRoot);H.pipWindowResizeDelay=new _.tc(function(){H.currentPipWindow&&_.AZ(H.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.M4(H.currentPipWindow.innerWidth,H.currentPipWindow.innerHeight)])},Z);
H.pipWindowResizeDelay.start();return p.return(!0)}})};
F2.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Wfs=function(G){if(G.currentPipWindow){var H,Z;(H=Ez?Ez:null)==null||(Z=H.window)==null||Z.close();G.currentPipWindow.removeEventListener("resize",G.handlePipWindowResize);var Q;(Q=G.pipWindowResizeDelay)==null||Q.dispose();G.pipWindowResizeDelay=void 0;var p;(p=G.JSC$18659_eventForwarder)==null||p.stop();G.JSC$18659_eventForwarder=void 0;H=_.I(G.onCloseCallbacks);for(Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z();G.onCloseCallbacks=[];G.currentPipWindow=null}};
F2.prototype.getWindow=function(){return this.currentPipWindow};
var zyt=function(G,H){var Z;(Z=G.onCloseCallbacks)==null||Z.push(H)};
F2.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.MX()};
_.u4.Object.defineProperties(F2.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
F2[kM]=[Jxx];var Kfi=new _.Gv("PICTURE_IN_PICTURE_CONTROLLER");var iyX=function(G,H){this.lengthY=this.lengthX=0;this.lengthX=H.x-G.x;this.lengthY=H.y-G.y};var Mgi=function(){},D46=function(G,H){var Z;
(Z=G.headerElement)==null||Z.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:H}))};var jML=function(){};
jML.prototype.openPopup=function(G,H,Z,Q){var p=this,l;return _.S(function(q){if(!p.container)return q.return();l={openPopupAction:{popup:H,popupType:Z,uniqueId:G}};return q.return(p.container.handleOpenPopupAction(l,Q))})};
jML.prototype.closePopup=function(G){this.container&&this.container.closePopup(G)};var PVq=function(){this.openTunnels=new Map},fbj=function(G,H,Z){if(Ubv(Z)){var Q=_.bY(Z,"gclid");
Z={handleEvent:function(u){H&&!H.closed&&typeof H.postMessage==="function"&&u&&u.origin&&u.source===H&&u.data&&u.data.action==="gcl_setup"&&H.postMessage(Object.assign({},{action:"gcl_transfer"},Q&&{gclid:Q},{gadSource:2}),u.origin)}};
for(var p=_.I(G.openTunnels),l=p.next();!l.done;l=p.next()){var q=_.I(l.value);l=q.next().value;q=q.next().value;if(l.closed)try{window.removeEventListener("message",q),G.openTunnels.delete(l)}catch(u){_.me(u)}}H&&G.openTunnels.size<15&&(G.openTunnels.set(H,Z),window.addEventListener("message",Z))}};var rsq=function(){this.clientParams=new Map},Yqh=function(G){for(var H=_.I(G.clientParams.keys()),Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.startsWith("yt-mini-app-share")&&G.clientParams.delete(Z)};var wSc=function(G,H){_.wI.call(this);var Z=this;this.shortsController=G;this.storeWithShorts=H;G=_.wU(this.storeWithShorts,_.Es3,function(Q){if(Q){var p,l=(p=Z.shortsController.getRoot())==null?void 0:p.getPlayer(),q;(p=(q=Z.shortsController.alternativePlayerContainerElement)==null?void 0:q.getPlayerContainer())&&(l==null||l.appendTo(p))}else{var u;q=(u=Z.shortsController.alternativePlayerContainerElement)==null?void 0:u.getPlayerContainer().querySelector("#player");p=Z.shortsController.activeIndex;
(u=(l=Z.shortsController.getRoot())==null?void 0:l.querySelector('ytd-reel-video-renderer[id="'+p+'"] #player-container'))&&(q==null||q.appendTo(u,void 0,!0))}});
this.addOnDisposeCallback(G)};
_.T(wSc,_.wI);var bp=function(G,H,Z,Q){var p=this;this.storeWithShorts=G;this.ephemeralResponseStore=H;this.innertubeTransportService=Z;this.innertubeTransportLoader=Q;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.SQ(_.RS);this.isShortsPipActive=_.SQ(_.NB);this.nextReelVe=_.bl(56921);this.prevReelVe=_.bl(56922);this.backButtonVe=_.bl(22156);this.TEST_ONLY={getActiveModules:function(){return p.activeModules}}},hy6=function(G){G.unsubscribeFromStore=
_.wU(G.storeWithShorts,_.L7M,function(H){G.initOrDisposeActiveModules(H);
!H&&G.storeWithShorts.getState().shorts.isFullscreen&&(_.mj(document.documentElement),G.storeWithShorts.dispatch(_.an7(!1)))});
G.initOrDisposeActiveModules(_.L7M(G.storeWithShorts.getState()))},Qft,p7A,CVD;
bp.prototype.initOrDisposeActiveModules=function(G){G?this.activeModules.push(new wSc(this,this.storeWithShorts)):(_.uY(this.activeModules),this.activeModules.length=0)};
bp.prototype.registerRootElement=function(G){this.rootElement=G;hy6(this)};
bp.prototype.getRoot=function(){return this.rootElement};
bp.prototype.setActiveIndex=function(G){this.activeIndex=G};
_.bEt=function(G,H){var Z,Q,p,l,q,u,B;return _.S(function(t){switch(t.nextAddress){case 1:return Z=new lp,(Q=Z.JSC$14177_getStoreKey(H))&&G.ephemeralResponseStore.has(Q)?t.yield(G.ephemeralResponseStore.get(Q),7):t.yield(CVD(G,H),4);case 4:p=t.yieldResult;if(!Q){t.jumpTo(3);break}l=YV(p,3600);return t.yield(G.ephemeralResponseStore.put(Q,new _.$E(l)),3);case 7:p=(q=t.yieldResult)==null?void 0:_.mU(q);case 3:return((u=p)==null?0:u.replacementEndpoint)&&(B=_.X(p.replacementEndpoint,_.uS))&&p.sequenceContinuation&&
(B.sequenceParams=p.sequenceContinuation),t.return(p)}})};
Qft=function(G,H){H=(new gF).JSC$14177_getStoreKey(H);return!!H&&G.ephemeralResponseStore.has(H)};
p7A=function(G,H,Z){var Q,p,l,q,u;_.S(function(B){if(B.nextAddress==1){Q=new gF;p=Q.JSC$14177_getStoreKey(H);if(!p)return B.return();if(Z.reelWatchSequenceResponse)return l=YV(Z.reelWatchSequenceResponse,3600),G.ephemeralResponseStore.put(p,new _.$E(l)),B.jumpTo(0);if(!G.ephemeralResponseStore.has(p))return B.jumpTo(0);u=Z;return B.yield(G.ephemeralResponseStore.get(p),4)}u.reelWatchSequenceResponse=(q=B.yieldResult)==null?void 0:_.mU(q);_.K0(B)})};
CVD=function(G,H){var Z=Z===void 0?{}:Z;var Q,p,l;return _.S(function(q){switch(q.nextAddress){case 1:if(G.innertubeTransportService){Q=G.innertubeTransportService;q.jumpTo(2);break}if(!G.innertubeTransportLoader){_.FU(Error("uj"));q.jumpTo(2);break}return q.yield(G.innertubeTransportLoader(),4);case 4:Q=q.yieldResult;case 2:return q.yield((p=Q)==null?void 0:_.wb(p,H,Z),5);case 5:return l=q.yieldResult,q.return(l)}})};
_.u4.Object.defineProperties(bp.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
bp[kM]=[N3j,_.Vp,_.Jp(_.t0),_.Jp(Vf_)];_.ibc=new _.Gv("STORAGE_MANAGER_TOKEN");var qCf=["touchmove","scroll"];var Obt=!1;var E8o=!1;var I1M={onSpanEnd:function(G){G.parentId==null&&(Obt||(xbf(),setInterval(xbf,6E5),Obt=!0),YXj(G,"web_tracing_action"))}};var sUv=URL.createObjectURL;var l1R,a0q={traceAllComponents:_.V("web_tracing_all_components"),exportToCsi:_.V("web_tracing_export_to_csi"),enabledSpansArray:_.$M("web_tracing_enabled_spans"),exportToDevTools:_.V("web_tracing_export_to_devtools"),maxBreadcrumbs:_.eA("tel_max_breadcrumbs",0)};l1R=new Hxf(a0q);var gmR=_.V("web_shorts_enable_tracing");var yso=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},oFD;
yso.prototype.enqueue=function(G,H){H===1?this.currentPersistentToast=G:this.queue.push(G);this.openToast()};
yso.prototype.openToast=function(){var G;(G=this.currentToast)!=null&&G.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Gg=new _.Gv("TOAST_MANAGER_TOKEN");var mfs=new _.Gv("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var UfD=new _.Gv("VIEW_TRANSITION_COORDINATOR_TOKEN");var Ry6=function(G){this.config=G;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;G=_.I(G.transitionConfigs);for(var H=G.next();!H.done;H=G.next())H=_.I(H.value).next().value,this.transitionTasksMap.set(H,[])};
Ry6.prototype.registerElement=function(G,H,Z){Z=Z===void 0?!1:Z;for(var Q=_.I(Object.keys(H)),p=Q.next(),l={};!p.done;l={viewTransitionName:void 0},p=Q.next()){p=p.value;l.viewTransitionName=H[p];var q=this.elementTasksMap.get(G),u=void 0;if((u=q)==null?0:u.has(p)){_.UN(new _.C$("Element already registered for transition",G.tagName,p));break}q=q||new Map;q.set(p,{beforeTransition:function(B){return function(){G.style.viewTransitionName=B.viewTransitionName}}(l),
afterTransition:function(){G.style.viewTransitionName&&(G.style.viewTransitionName="")},
runOnce:Z});this.elementTasksMap.set(G,q)}};
_.Tk=function(G,H){var Z=G.elementTasksMap.get(H);Z&&(Z.clear(),Z.size===0&&G.elementTasksMap.delete(H))};
Ry6[kM]=[mfs];var Asc=_.y(function(G){var H=_.IA("yt-expandable-metadata-header-view-model"),Z=_.Hh(function(Q){if(!_.eP(_.du(Q),H.value,["A".toString(),"BUTTON".toString()])){var p;(p=G.expandedCallback)==null||p.call(G,!1)}});
return _.J("yt-expandable-metadata-header-view-model",{el:H,class:"ytExpandableMetadataHeaderViewModelHost"},_.J(_.k,{cond:function(){return G.expanded()},
then:function(){return _.J("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":Z},_.J("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.J(_.k,{cond:function(){return G.data().expandedTitleImage},
then:function(Q){return _.J("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.J(_.ib,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Q}))}}),_.J("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.J("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.J(_.Fe,{text:function(){return G.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.J(_.Fe,{text:function(){return G.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.J(_.Fe,{text:function(){return G.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.J("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.J(_.SP,{data:function(){return G.data().infoButton}},{buttonViewModel:_.kg}),_.J(_.SP,{data:function(){return G.data().collapseButton}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
onClick:function(){var p;(p=G.expandedCallback)==null||p.call(G,!1)}})}})))},
else:function(){return _.J(Nn6,Object.assign({},G))}}))},"mg"),xfs=_.y(function(G){return _.J("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.J(_.k,{cond:function(){return G.data().collapsedLabelImage},
then:function(H){return _.J("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.J(_.ib,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:H,alt:""}))}}),_.J(_.Fe,{text:function(){return G.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ng"),Nn6=_.y(function(G){return _.J("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Hh(function(){var H;return void((H=G.expandedCallback)==null?void 0:H.call(G,!0))})},_.J("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.J(_.k,{cond:function(){return G.data().collapsedImage},
then:function(H){return _.J("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.J(_.ib,{height:20,preserveHeight:!0,preserveWidth:!0,data:H,alt:""}))}}),_.J(_.k,{cond:function(){return G.data().showLeadingCollapsedLabel},
then:function(){return _.J(xfs,Object.assign({},G))}}),_.J("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.J(_.Fe,{text:function(){return G.data().collapsedTitle}}))),_.J("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.J(_.k,{cond:function(){return!G.data().showLeadingCollapsedLabel},
then:function(){return _.J(xfs,Object.assign({},G))}}),_.J(_.SP,{data:function(){return G.data().infoButton}},{buttonViewModel:_.kg}),_.J(_.SP,{data:function(){return G.data().expandButton}},{buttonViewModel:function(H){return _.J(_.kg,{data:H.data,
onClick:function(){var Z;(Z=G.expandedCallback)==null||Z.call(G,!0)}})}})))},"og");_.Lfo=_.y(function(G){var H=_.I(_.QF(function(){return G.data().initiallyExpanded})),Z=H.next().value,Q=H.next().value,p,l=(p=_.tp().resolve(_.Jp(_.rr)))==null?void 0:p(),q=function(){var u=G.data().colorData;
if(u)return l?u==null?void 0:u.darkColorPalette:u==null?void 0:u.lightColorPalette};
return _.J("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.pI({"background-color":function(){var u=q();return(u==null?0:u.section2Color)?_.c$(u.section2Color):""}})},_.J(_.SP,{data:function(){return G.data().header}},{expandableMetadataHeaderViewModel:function(u){return _.J(Asc,{data:u.data,
expanded:function(){return!!Z()},
expandedCallback:function(B){Q(B)}})}}),_.J(_.k,{cond:function(){return Z()},
then:function(){return _.J("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.J(_.SP,{data:function(){return G.data().expandedContent}},{horizontalShelfViewModel:function(u){return _.J(_.bR,{data:u.data,
includeMargin:!0,forceNarrowLayout:!0,palette:q})},
videoSummaryContentViewModel:function(u){return _.J(LQw,{data:u.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(u){return _.J(_.Xf,{data:u.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(u){return _.J(_.gDa,{data:u.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.J(_.SP,{data:function(){return G.data().expandedBottomButtons}},{buttonViewModel:function(u){return _.J("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.J(_.kg,{data:u.data}))}}))}}))},"pg");var EF8=_.y(function(G){var H=G.text;var Z=G.marqueeSpacing;var Q=G.scrollDelay;var p=G.scrollDuration;var l=G.enableMarqueeScroll;G=G.large;var q=_.I(_.Ty(!1,void 0,"WyNYFf")),u=q.next().value,B=q.next().value,t=_.I(_.Ty(0,void 0,"OoTdhe"));q=t.next().value;var D=t.next().value,d=_.IA("marquee-scroll");t=_.IA("div");var e=_.IA("span"),n=_.tp().resolve(_.ht);_.yN(function(){if(l()){var M=e.value.getBoundingClientRect().width,r=d.value.getBoundingClientRect().width;if(M>r){var w=(n==="ltr"?-1:1)*(M+
(Z?Z():16));Promise.resolve().then(function(){B(!0);D(w)})}}},"dv0Anf");
var c={},W={};return _.J("marquee-scroll",{class:_.bb("ytMarqueeScrollHost",(c.ytMarqueeScrollHostLarge=G,c)),el:d},_.J("div",{id:"marquee-scroll-inner-container",class:_.bb("ytMarqueeScrollInnerContainer",(W.ytMarqueeScrollAnimationEnabled=function(){return u()},W)),
el:t,style:_.pI({gap:Z?(0,_.A7)(Z):"16px","animation-duration":p?GrT(p):"16s","animation-delay":Q?GrT(Q):"3s","--marquee-translate":(0,_.A7)(q)})},_.J("span",{el:e,dir:"auto"},_.J(_.Fe,{text:H,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.J(_.k,{cond:u,then:function(){return _.J("span",{"aria-hidden":"true",dir:"auto"},_.J(_.Fe,{text:H,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"rg");_.Yvm=_.y(function(G){var H=G.data;var Z=G.overlayDensity;G=_.Hh(function(){H().onTapCommand&&_.zt(H().onTapCommand);return!1});
var Q=_.mLR(),p=function(){return(Z==null?void 0:Z())===1?22:16},l={};
return _.J("reel-sound-metadata-view-model",{class:_.bb("ytReelSoundMetadataViewModelHost",(l.ytReelSoundMetadataViewModelHostLarge=function(){return(Z==null?void 0:Z())===1},l)),
"on:click":G,tabindex:0,role:"button","on:keydown":Q},_.J("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.J(_.k,{cond:function(){return H().musicIcon},
then:function(q){return _.J(_.ib,{data:q,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:p})}}),_.J("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.J(EF8,{text:function(){return H().soundMetadata},
enableMarqueeScroll:function(){return!!H().enableMarqueeScroll},
large:function(){return(Z==null?void 0:Z())===1}}))))},"sg");var Ffj,bbD,H0,Zl6,ptA,szs,I2D,gIA;Ffj=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];bbD=_.eA("wil_icon_max_concurrent_fetches",Infinity);
H0=function(G,H,Z){var Q=this;this.iconSet=G;this.appDirection=H;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Qf.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.V("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.V("wil_icon_network_first");this.renderWhenIdle=_.V("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.V("wil_icon_load_immediately");this.isPurging=!1;G=function(){Q.cacheStorageAvailable&&(Q.cacheStorageAsync=_.Qf.caches.open("yt-icons").then(function(l){return Q.cacheStorageSync=l}).catch(function(){Q.cacheStorageAvailable=!1}))};
Z=(Z==null?void 0:Z())||{};Z=_.I(Object.entries(Z));for(H=Z.next();!H.done;H=Z.next()){var p=_.I(H.value);H=p.next().value;p=p.next().value;p=zI(p);GIj(p);this.iconCache[H]=p.cloneNode(!0)}this.isPurging=Hlj(this);this.isPurging instanceof Promise?this.isPurging.then(G):G()};
_.aeb=function(G,H){var Z=G.resolveIcon(H);return Z?G.renderingMode===1?szs(G,Z,G.renderingMode):(H=G.iconCache[Z.url])?(H=H.cloneNode(!0),Zl6(G,H),szs(G,Z,G.renderingMode,H)):_.Qzt(G,Z).then(function(Q){var p=Q?0:1;Zl6(G,Q);return szs(G,Z,p,Q)}):(_.UN(new _.C$("Icon not found",{iconShape:H})),function(){})};
Zl6=function(G,H){if(H){G.counter+=1;G="_yt"+G.counter;H=[H].concat(_.OP(H.getElementsByTagName("*")));H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())if(Z=Z.value,Z.tagName==="style"&&Z.textContent)Z.textContent=ptA(Z.textContent,G,!0);else for(var Q=_.I(Z.attributes),p=Q.next();!p.done;p=Q.next()){p=p.value;p.name==="id"&&(p.value+=G);["mask","fill","clip-path"].includes(p.name)&&(p.value=ptA(p.value,G));if(p.name==="style"){var l=Z.style;try{l.cssText=ptA(l.cssText,G,!0)}catch(D){var q=void 0,u=
void 0,B=void 0,t=void 0;sB({error:((q=D)==null?void 0:(B=(u=q).toString)==null?void 0:B.call(u))||"",el:Z.outerHTML,style:!!l,cssText:(t=l)==null?void 0:t.cssText})}}p.name==="xlink:href"&&(p.value=p.value.replace(/#(.*)/,"#$1"+G))}}};
ptA=function(G,H,Z){var Q=/url\(["']?#(.*?)["']?\)/;(Z===void 0?0:Z)&&(Q=/url\(["']?#(.*?)["']?\)/g);return G.replace(Q,"url(#$1"+H+")")};
szs=function(G,H,Z,Q){return function(p,l){var q;var u=Object.assign({},{iconWidth:H.size+"px",iconHeight:H.size+"px",iconDisplay:"block"},l,{iconColor:(q=l==null?void 0:l.iconColor)!=null?q:"currentcolor"});q=_.z$("DIV");l=u.iconColor;var B=u.iconFilter;u="width: "+u.iconWidth+"; height: "+u.iconHeight+"; display: "+u.iconDisplay+";";B&&(u+=" filter: "+B+";");Z===0&&(u+=" fill: "+l+";");Z===1&&(B=H.url,u+=" -webkit-mask: url("+B+") no-repeat center / cover; mask: url("+(B+") no-repeat center / cover; background-color: ")+
l);H.allowMirroring&&G.appDirection==="rtl"&&(u+=" transform: scale(-1, 1); transform-origin: center center;");q.setAttribute("style",u);Z===0&&Q&&q.appendChild(Q);p.appendChild(q)}};
_.Qzt=function(G,H){var Z,Q,p;return _.S(function(l){Z=function(q){return Lq(q)};
Q=H.url;if(!l2h(Q))throw Error("xj");p=gIA(G,Q);return l.return(p.then(function(q){return q.clone().text()}).then(function(q){var u=Z(q);
q=H.size;var B=_.z$("DIV");_.Is(B,u);u=_.Ku(B.firstElementChild!==void 0?B.firstElementChild:_.eOG(B.firstChild,!0));q=GIj(u,q);G.iconCache[Q]=q.cloneNode(!0);delete G.responsePromises[Q];return q}).catch(function(){}))})};
I2D=function(G){var H,Z=(H=G.requestAninmationFrameResolver)==null?void 0:H.promise;Z||(G.requestAninmationFrameResolver=new _.sD,Z=G.requestAninmationFrameResolver.promise,_.Qf.requestAnimationFrame(function(){var Q;(Q=G.requestAninmationFrameResolver)==null||Q.resolve();G.requestAninmationFrameResolver=null}));
return Z};
gIA=function(G,H){var Z,Q;return _.S(function(p){if(p.nextAddress==1)return G.waitForAnimationFrame?p.yield(I2D(G),2):p.jumpTo(2);Z=G.responsePromises[H];Z||(Q=function(){var l,q,u;return _.S(function(B){switch(B.nextAddress){case 1:if(!G.cacheStorageAvailable){l=void 0;B.jumpTo(2);break}if(q=G.cacheStorageSync){B.jumpTo(3);break}return B.yield(G.cacheStorageAsync,4);case 4:q=B.yieldResult;case 3:l=q;case 2:return u=l,G.isNetworkFirstStrategy?B.return(G.fetchAndUpdateCache(H,u).catch(G.getCacheStorageResponse.bind(G,
H,u))):B.return(G.getCacheStorageResponse(H,u).catch(G.fetchAndUpdateCache.bind(G,H,u)))}})},Z=G.renderWhenIdle?new Promise(function(l,q){_.wM(_.Ui,function(){Q().then(l).catch(q)},10)}):Q(),G.responsePromises[H]=Z);
return p.return(Z.catch(function(l){delete G.responsePromises[H];sB({error:(l==null?0:l.toString)?l.toString():"",url:H});throw l;}))})};
H0.prototype.fetchAndUpdateCache=function(G,H){var Z=this;return _.S(function(Q){return Q.return(qJA(Z,G).then(function(p){SJD(Z,G,p,H);return p}))})};
var qJA=function(G,H){var Z;return _.S(function(Q){if(G.numFetches<bbD)return G.numFetches+=1,Q.return(uUa(G,H).finally(function(){--G.numFetches;if(Object.keys(G.queuedResponseResolvers).length){var p=Object.keys(G.queuedResponseResolvers)[0],l=G.queuedResponseResolvers[p];delete G.queuedResponseResolvers[p];l.resolve(qJA(G,p))}}));
Z=new _.sD;G.queuedResponseResolvers[H]=Z;return Q.return(Z.promise)})},uUa=function(G,H,Z){Z=Z===void 0?2:Z;
var Q;return _.S(function(p){Q={credentials:"same-origin",priority:"low"};return p.return(_.Qf.fetch(H,Q).then(function(l){return l.ok?l:Promise.reject(Error("yj`"+l.status+"`"+l.statusText))}).catch(function(l){if(Z>0)return uUa(G,H,Z-1);
throw l;}))})},SJD=function(G,H,Z,Q){_.S(function(p){return Q?p.return(new Promise(function(l){_.wM(_.Ui,function(){var q,u;
return _.S(function(B){switch(B.nextAddress){case 1:if(!G.isNetworkFirstStrategy){q=void 0;B.jumpTo(2);break}return B.yield(Q.match(H).catch(function(){}),3);
case 3:q=B.yieldResult;case 2:if(u=q){B.jumpTo(4);break}return B.yield(Q.put(H,Z.clone()).catch(function(t){sB({error:(t==null?0:t.toString)?t.toString():"",url:H})}),4);
case 4:l(),_.K0(B)}})},50)})):p.return()})};
H0.prototype.getCacheStorageResponse=function(G,H){return _.S(function(Z){return H?Z.return(H.match(G).then(function(Q){return Q&&Q.ok?Q:Promise.reject()})):Z.return(Promise.reject())})};
var GIj=function(G,H){H===void 0||G.getAttribute("viewBox")||G.setAttribute("viewBox","0 0 "+H+" "+H);G.setAttribute("focusable","false");G.setAttribute("aria-hidden","true");try{G.style.pointerEvents="none",G.style.display="inherit",G.style.width="100%",G.style.height="100%"}catch(p){var Z;sB({error:((Z=p)==null?0:Z.toString)?p.toString():""});try{G.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(l){var Q;sB({error:((Q=l)==null?0:Q.toString)?l.toString():
""})}}return G},l2h=function(G){for(var H=_.I(Ffj),Z=H.next();!Z.done;Z=H.next())if(G.startsWith(Z.value)&&G.endsWith(".svg"))return!0;
return!1};
H0.prototype.resolveIcon=function(G){return this.iconSet.resolveIcon(G)};
var sB=function(G){_.Rp(new _.C$("Error in IconManager",G))},Hlj=function(G){if(_.V("wil_icons_cache_purge_killswitch"))return!1;
try{var H=_.Qf.localStorage}catch(l){return!1}if(!H||!G.cacheStorageAvailable)return!1;var Z=function(l){try{var q;(q=H)==null||q.setItem("yt-icons-last-purged",l.toString())}catch(B){var u;sB({error:((u=B)==null?0:u.toString)?B.toString():""})}},Q=Number(H.getItem("yt-icons-last-purged"));
if(!Q)return Q=new Date,Q=Q.setDate(Q.getDate()-Math.floor(Math.random()*90+1)),Z(Q),!1;if(function(l,q){l=new Date(l);q=new Date(q);return q.getMonth()-l.getMonth()+12*(q.getFullYear()-l.getFullYear())}(Q,Date.now())<3)return!1;
try{return _.Qf.caches.delete("yt-icons").then(function(l){l&&Z(Date.now());return l}).catch(function(){return!1}).finally(function(){G.isPurging=!1})}catch(l){var p;
sB({error:((p=l)==null?0:p.toString)?l.toString():""});return!1}};
H0[kM]=[wgi,_.ht,_.Jp(i08)];_.Zh=function(G,H){this.iconManager=G;this.iconsToFetch=H};
_.Zh[kM]=[_.Gt,_.Jp(CEi)];var BOk=function(){};var Jet=function(G,H,Z){this.requestKey=G;this.n53=H;this.jq5=Z;this.xAO=function(){return new XMLHttpRequest};
this.k3I=void 0;this.w5y=[]};
Jet.prototype.getLatestChallengeResponse=function(){return this.jq5};
var $Y4=function(G,H,Z){var Q,p,l,q;return _.S(function(u){if(u.nextAddress==1){_.VY("attestation_challenge_fetch");_.$K("att_fs",void 0,"attestation_challenge_fetch");if(!G.k3I)throw new _.WQ(9,"Missing fetcher");return u.yield(G.k3I(H,Z),2)}Q=u.yieldResult;l=(p=Q)==null?void 0:p.bgChallenge;if(!l)throw new _.WQ(15,"Missing field");G.jq5=Q;G.w5y.forEach(function(B){B(Q)});
q=mFf(l);_.$K("att_fc",void 0,"attestation_challenge_fetch");no("attestation_challenge_fetch");return u.return(q)})},UYa=function(G,H){var Z,Q,p,l,q;
return _.S(function(u){switch(u.nextAddress){case 1:Z=new Vx(100,3E5,.25,2),Q=void 0;case 2:if(!(Z.currBackoffCount_<10)){u.jumpTo(4);break}_.XV(u,5);if(!(Z.currBackoffCount_>0)){u.jumpTo(7);break}return u.yield(u7W(Z.getValue()),7);case 7:return u.yield(tKi(G,H),9);case 9:return p=u.yieldResult,u.return(p);case 5:l=_.Wg(u);l instanceof _.WQ?Q=l:(q=l instanceof Error?l.message:"Unknown",Q=new _.WQ(9,q));jMa(Z);u.jumpTo(2);break;case 4:if(Q)throw Q;throw new _.WQ(9,"Unknown error");}})},tKi=function(G,
H){H=SdG(uPG(new qdt,H),G.requestKey);
var Z=new _.sD,Q=G.xAO();Q.open("POST",G.n53);Q.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");Q.setRequestHeader("Content-Type","application/json+protobuf");Q.onload=function(){if(_.pAW(Q)){var p=nNw(Q.responseText);Z.resolve(p)}else Z.reject(new _.WQ(_.qdu(_.XP(Q)),Q.statusText))};
Q.onerror=function(){Z.reject(new _.WQ(_.qdu(_.XP(Q)),Q.statusText))};
Q.send(H.serialize());return Z.promise};var DVa=function(G){this.networkStatusManager=G;this.isDownloaded=xsb===void 0?function(){return!1}:xsb;
this.isReady=!1;this.lRD=kIm(this)},kIm=function(G){var H;
return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(mVv(),2);if(Z.nextAddress!=3)return H=Z.yieldResult,Z.yield(w7G(H),3);G.wX=Z.yieldResult;J2j(G.wX).then(function(){G.isReady=!0});
return Z.return(G.wX)})},dVs=function(G,H,Z){G.wX?(G=G.wX.fpu({ko:Z,
nAX:!0,rtB:!0}),H.serviceIntegrityDimensions={poToken:G}):_.me(Error("Aj"))};
DVa.prototype.processContext=function(G){var H=this;if(!G.input.match(_.U7(ie7)))return _.II();var Z=G.innerTubeRequest,Q=Z.videoId;return!Q||this.isDownloaded(Z)||this.networkStatusManager&&!this.wX&&!this.networkStatusManager.isNetworkAvailable()?_.II():this.wX?this.isReady?(dVs(this,Z,Q),_.II()):new gU(J2j(this.wX).then(function(){dVs(H,Z,Q)})):new gU(this.lRD.then(function(p){return _.S(function(l){if(l.nextAddress==1)return l.yield(J2j(p),2);
dVs(H,Z,Q);_.K0(l)})}))};var e_q=new _.Gv("WEB_PO_CONTEXT_PROCESSOR");var nIc=function(G,H){var Z=this;this.hTZ=0;var Q;this.kjY=(Q=H==null?void 0:H.kjY)!=null?Q:window;this.networkStatusManagerPromise=H==null?void 0:H.networkStatusManagerPromise;var p;this.requestKey=(p=H==null?void 0:H.requestKey)!=null?p:_.n$("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var l;this.sc3=(l=H==null?void 0:H.sc3)!=null?l:function(B){return new wl(B)};
var q;Q=(q=H==null?void 0:H.lHH)!=null?q:function(B,t,D){return new Jet(B,t,D)};
this.bgChallenge=mFf(G.bgChallenge);this.ttlSeconds=UFb(P8(G.challenge||""));this.jX=Q(this.requestKey,_.V("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Qf.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",G);this.pbI=H==null?void 0:H.pbI;Bwu(this.jX);var u;this.pji=(u=H==null?void 0:H.pji)!=null?u:function(B){_.tt(Z.kjY.document,"visibilitychange",
function(){Z.kjY.document.visibilityState==="visible"&&B()})}},$Vi=function(G){if(!G.vm){var H={maxAttempts:5,
ggk:G.ttlSeconds*1E3};tHb(G.kjY);G.vm=G.sc3({jX:G.jX,bc3:{disable:_.V("html5_web_po_disable_remote_logging"),dY:"aGIf",omI:GDo("html5_web_po_experiment_ids"),xra:_.V("wpo_dis_lfdms")?0:1E3,bS3:function(Q){var p=y7_.get(Q);p||(p=new aup(Q),p=new fu(p),y7_.set(Q,p));return p}},
jsp:H,mzc:G.bgChallenge,zXH:kd2});G.hTZ=Date.now();DYG(G.vm,function(){G.hTZ=Date.now()});
AeW(G.vm,function(){return _.S(function(Q){return Q.return(VKk(G))})});
var Z=G.kgh.bind(G);G.networkStatusManagerPromise&&G.ttlSeconds>0&&G.networkStatusManagerPromise.then(function(Q){Q.listen("publicytnetworkstatus-online",Z)});
G.pji(Z)}};
nIc.prototype.kgh=function(){if(Date.now()>this.hTZ+this.ttlSeconds*1E3){var G;(G=this.vm)==null||kFR(G)}};
var VKk=function(G){if(G.wF5)return G.wF5;if(!G.vm)throw Error("Bj");G.wF5=new i5({vm:G.vm,jX:G.jX,d11:!0,onError:kd2,jsp:G.pbI});return G.wF5},d0o=function(G,H){G=new nIc(G,H);
$Vi(G);(H==null?0:H.f8D)||VKk(G)};var Xtc=_.ZbL.ephemeralActionSelector,QV=function(G,H){this.store=G;this.queue=[];H==null||H.addEventListener("yt-navigate-start",this.reset.bind(this))};
QV.prototype.enqueue=function(G){var H=G.command,Z=G.durationMs,Q=G.elementToFocus;var p=G.label;var l=G.elementToFocus;G.command?p=_.Zg("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:p,shortcut:_.Zg("SHIFT_PLUS_ENTER")}):l&&(G=p+". "+_.Zg("SHIFT_PLUS_ENTER")+" for more information.",p=_.Zg("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:p,shortcut:_.Zg("SHIFT_PLUS_ENTER")},G));Z={announcement:p,durationMs:Z!=null?Z:8E3};H?Z.command=H:Q&&(Q.classList.add("ephemeral-action-focusable-element"),Z.selector=Q.tagName+
".ephemeral-action-focusable-element");this.queue.push(Z);ce8(this)};
QV.prototype.activate=function(G){var H=Xtc(this.store.getState());if(H){if(H==null?0:H.command)_.fX(H.command),this.store.dispatch(Pr_(null));if(H==null?0:H.selector)H=document.querySelector(H.selector),_.RRf(H);G.preventDefault()}};
var ce8=function(G){if(!Xtc(G.store.getState())&&G.queue.length){var H=G.queue.shift();H&&(G.previousAnnouncement===H.announcement&&(H.announcement+="\u00a0"),G.store.dispatch(Pr_(H)),G.previousAnnouncement=H.announcement,G.timeoutId=setTimeout(function(){if(H.selector){var Z;(Z=document.querySelector(H.selector))==null||Z.classList.remove("ephemeral-action-focusable-element")}G.store.dispatch(Pr_(null));ce8(G)},H.durationMs))}};
QV.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Pr_(null));this.queue.length=0;this.timeoutId=void 0};
QV[kM]=[_.oT,_.Jp(_.f2)];_.pD=new _.Gv("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var TOq=new _.Gv("AUTH_SERVICE_TOKEN");var VHe=_.CM(["about:blank"]),nmb;var f2h=new _.Gv("API_IFRAME_TOKEN"),vI8=new _.Gv("FETCH_FN_TOKEN"),WRo=new _.Gv("WINDOW_REQUEST_TOKEN"),z_m=new _.Gv("TEXT_DECODER_TOKEN");var XP_;XP_=new _.Gv("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.KRj=new _.Gv("MISC_UI_SHARED_FLAGS_TOKEN");var MKh=function(){};
MKh.prototype.getFlag=function(G){if(G.configType!==2)throw Error("Cj");return jzD(G)};
var jzD=function(G){switch(G.flagType){case "bool":return _.V(G.flagName);case "int":return _.ia(_.eA(G.flagName));case "double":return _.eA(G.flagName);case "string":return _.n$(G.flagName);case "int32_list":return GDo(G.flagName);case "int64_list":return GDo(G.flagName).map(function(H){return _.ia(H)});
case "string_list":return _.$M(G.flagName);default:throw Error("Dj");}};var ly=function(G,H,Z){H=H===void 0?{}:H;rK.call(this,Z===void 0?"uninitialized":Z);this.env=G;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}];H.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=H.shouldWaitOnAsyncImmediate)};
_.T(ly,rK);ly.prototype.init=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?Q.yield(G(H.env),2):(G(H.env),Q.jumpTo(2));if(Q.nextAddress!=4)return H.jobSet?Q.yield(H.jobSet.completedResolver.promise,4):Q.jumpTo(4);Z=_.ZO();Z.parkOrScheduleJob(function(){H.transition("rendering")},10,"ci");
_.K0(Q)})};
ly.prototype.initialRender=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?Q.yield(G(H.env),2):(G(H.env),Q.jumpTo(2));if(Q.nextAddress!=4)return H.jobSet?Q.yield(H.jobSet.completedResolver.promise,4):Q.jumpTo(4);Z=_.ZO();Z.parkOrScheduleJob(function(){H.transition("rendered")},10,"cr");
_.K0(Q)})};
ly.prototype.afterRenderImmediate=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?Q.yield(G(H.env),2):(G(H.env),Q.jumpTo(2));if(Q.nextAddress!=4)return H.jobSet?Q.yield(H.jobSet.completedResolver.promise,4):Q.jumpTo(4);Z=_.ZO();Z.parkOrScheduleJob(function(){H.transition("after-render-deferred")},10,"carml");
_.K0(Q)})};
ly.prototype.afterRenderDeferred=function(G){var H=this;return _.S(function(Z){G(H.env);_.K0(Z)})};_.Ae("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var PWt={},res=(PWt.rendered={priority:0,callback:function(G){sqp(G.injector.resolve(hL))}},PWt);var drj=new _.Gv("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),wt8=new _.Gv("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var h_o=function(G){this.callbackFnMap=G;this.configMap={}};
h_o.prototype.handleResponse=function(G){var H;if(G=(H=G.responseContext)==null?void 0:H.serviceTrackingParams)for(H=_.I(G),G=H.next();!G.done;G=H.next()){G=G.value;var Z=G.params,Q=G.service;if(Z&&Q){this.configMap[Q]||(this.configMap[Q]=new qQ4);G=this.configMap[Q];var p=void 0,l=(p=this.callbackFnMap)==null?void 0:p[Q];Z=_.I(Z);for(Q=Z.next();!Q.done;Q=Z.next())p=Q.value,Q=p.key,p=p.value,Q&&p&&(G.set(Q,p),l&&l(Q,p))}}};
h_o.prototype.getConfig=function(G){return this.configMap[G]||void 0};
h_o[kM]=[_.Jp(wt8)];var CW6=!1,jU2=0,WM3=null,MH3=null;var il6=new _.Gv("NETWORK_SLI_TOKEN");var Oli=function(G){this.networkSli=G};
Oli.prototype.fetch=function(G,H,Z){var Q=this,p;return _.S(function(l){p=a2A(Q,G,H);return l.return(fetch(p).then(function(q){return Q.handleResponse(q,Z)}).catch(function(q){_.Rp(q);
if((Z==null?0:Z.expectJsonStrict)&&q instanceof cX&&q.errorType===1)return Promise.reject(q)}))})};
var $w4=function(G,H,Z,Q){var p,l,q,u,B,t,D;return _.S(function(d){switch(d.nextAddress){case 1:return p=a2A(G,H,Z),_.XV(d,2),d.yield(fetch(p),4);case 4:l=d.yieldResult;_.Za(d,3);break;case 2:throw _.Wg(d),new cX(2,"Failed to parse streaming response",p.url);case 3:if(!l.redirected&&!l.ok)throw(q=G.networkSli)==null||q.failure(),new _.C$("Streaming fetch request not ok",p.url);if(!l.body)throw new _.C$("No response body in streaming response",p.url);u={};if(_.V("web_streaming_fast"))return B=l.body.getReader(),
d.return(ye6(G,B,u,Q));t=l.body.pipeThrough(new TextDecoderStream).getReader();D=new _.SL;return d.return(oIo(G,t,D,JCb,u,Q))}})},a2A=function(G,H,Z){if(G.networkSli){var Q=_.vU(_.ya(H,"key"))||"/UNKNOWN_PATH";
G.networkSli.start(Q)}G=Z;_.V("wug_networking_gzip_request")&&(G=Bx2(Z));return new window.Request(H,G)},ye6=function(G,H,Z,Q){var p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R,L,H3,qX,B3,fW,e2,$R,ie,W3,DT,UR,zx,be;
return _.S(function(J_){switch(J_.nextAddress){case 1:p=new TextDecoder("utf-8"),l=[],u=q=0,_.XV(J_,2,3);case 5:return J_.yield(H.read(),8);case 8:B=J_.yieldResult;t=B.value;if(D=B.done){d=0;if(l.length>q)for(d=l[q].length-u,e=q+1;e<l.length;e++)d+=l[e].length;d>0&&(n=P8j(l,d,q,u),c=n.indexOf(123),W=n.lastIndexOf(125),c!==-1&&W!==-1&&W>c&&(M=n.subarray(c,W+1),r=JSON.parse(p.decode(M)),JCb(Z,r),w=void 0,(w=Q)==null||w(Z,r)));x=void 0;(x=G.networkSli)==null||x.success();return J_.return(Z)}l.push(t);
U=q;for(R=u;U<l.length;)if(L=l[U],H3=L.indexOf(10,R),H3===-1){if(U===l.length-1)break;U++;R=0}else{qX=U;B3=H3+1;fW=0;if(q===qX)fW=B3-u;else{fW=l[q].length-u;for(e2=q+1;e2<qX;e2++)fW+=l[e2].length;fW+=B3}$R=P8j(l,fW,q,u,qX,B3);ie=$R.indexOf(123);W3=$R.lastIndexOf(125);if(ie!==-1&&W3!==-1&&W3>ie){DT=$R.subarray(ie,W3+1);try{UR=JSON.parse(p.decode(DT)),JCb(Z,UR),zx=void 0,(zx=Q)==null||zx(Z,UR)}catch(rG){throw new cX(1,"Failed to parse streaming response object",p.decode(DT));}}q=U;R=u=H3+1;u===L.length&&
(q++,u=0,U=q,R=0)}J_.jumpTo(5);break;case 3:_.TO(J_);H.releaseLock();_.vg(J_,0);break;case 2:be=_.Wg(J_);if(be instanceof cX)throw be;throw new cX(1,"Failed to process streaming response");}})},oIo=function(G,H,Z,Q,p,l){var q,u,B,t,D,d,e,n,c;
return _.S(function(W){if(W.nextAddress==1)return W.yield(H.read(),2);q=W.yieldResult;u=q.value;if(B=q.done)return(t=G.networkSli)==null||t.success(),W.return(p);try{D=Z.parse(u)}catch(M){throw new cX(1,"Failed to parse streaming response",u);}if(D!=null)for(d=_.I(D),e=d.next();!e.done;e=d.next())n=e.value,Q(p,n),c=void 0,(c=l)==null||c(p,n);return W.return(oIo(G,H,Z,Q,p,l))})};
Oli.prototype.handleResponse=function(G,H){var Z=G.text().then(function(Q){if((H==null?0:H.jspbResponseCtor)&&G.ok)return xUf(H.jspbResponseCtor,Q);Q=Q.replace(")]}'","");if((H==null?0:H.expectJsonStrict)&&Q)try{var p=JSON.parse(Q)}catch(q){throw new cX(1,"JSON parsing failed after fetch");}var l;return(l=p)!=null?l:JSON.parse(Q)});
G.redirected||G.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),Z=Z.then(function(Q){_.Rp(new _.C$("Error: API fetch failed",G.status,G.url,Q));return Object.assign({},Q,{errorMetadata:{status:G.status}})}));
return Z};
Oli[kM]=[_.Jp(il6)];var mVs=new _.Gv("NETWORK_MANAGER_TOKEN");var UVj=[1,2,4,8,16,30],NOA=function(G){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=G.maxTimeMs;this.maxFrameCount=G.maxFrameCount===void 0?Math.ceil(60*G.maxTimeMs/1E3):G.maxFrameCount;G=_.I(UVj);for(var H=G.next();!H.done;H=G.next())this.brokenFrameSummarizers.push(new R_i(H.value/60*1E3))},Aem=function(G){var H=G.frameCountInternal>=G.maxFrameCount;
return G.elapsedTimeMs>=G.maxTimeMs||H};
NOA.prototype.summarize=function(){for(var G=[],H=_.I(this.brokenFrameSummarizers),Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z=Z.brokenFrameCount!==0?{severityMs:Math.round(Z.targetFrameTimeMs),eventCount:Z.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(Z.averageDurationBetweenEventsMs)}:void 0,Z&&G.push(Z);return{summaries:G,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.u4.Object.defineProperties(NOA.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 R_i=function(G){this.targetFrameTimeMs=G;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.u4.Object.defineProperties(R_i.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var xV6=function(){};
xV6.prototype.start=function(G,H){var Z=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var Q=new NOA({maxTimeMs:G});this.monitor=Q;this.lastSummaryInternal=void 0;this.metadataToLog=H;return new Promise(function(p){var l=function(q){if(q===void 0)Z.stop(),p(void 0);else if(Z.monitor!==Q)q=Object.assign({},Q.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),p(q);else{var u=Z.monitor;if(!Aem(u)){u.frameCountInternal++;if(u.prevTime===
void 0)u.startTime=q;else for(var B=q-u.prevTime,t=_.I(u.brokenFrameSummarizers),D=t.next();!D.done;D=t.next()){D=D.value;var d=D.currTimeMs;D.currTimeMs+=B;B>D.targetFrameTimeMs+2&&(D.brokenFrameCount++,D.timeOfFirstBrokenFrameMs===void 0&&(D.timeOfFirstBrokenFrameMs=d),D.timeOfLastBrokenFrameMs=d)}u.prevTime=q}Aem(Z.monitor)?p(Z.stop()):_.Ui.addJob(l,5,0)}};
_.Ui.addJob(l,5,0)})};
xV6.prototype.stop=function(G){if(!this.monitor)return this.lastSummaryInternal;var H=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(H.monitoringDurationMs){G=G!=null?G:this.metadataToLog;var Z={droppedFramesSummary:H,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};G&&(Z[G.type]=G.data);_.yR("manualSmoothnessMeasurement",Z)}this.monitor=void 0;this.lastSummaryInternal=H;this.metadataToLog=void 0;return H};_.LRA=new _.Gv("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var EIq;EIq=function(G){this.JSC$18814_expiringStorage=new Od(G)};
_.YJ8=function(G){if(_.r2e()&&(G=_.mm2(_.w7()+"::"+G)))return new EIq(G)};
EIq.prototype.set=function(G,H,Z){Z=Z!==void 0?Date.now()+Z:void 0;this.JSC$18814_expiringStorage.set(G,H,Z)};
EIq.prototype.get=function(G){return this.JSC$18814_expiringStorage.get(G)};
EIq.prototype.remove=function(G){this.JSC$18814_expiringStorage.remove(G)};_.gD=function(){};
_.gD.getInstance=function(){var G=_.GF("ytglobal.storage_");G||(G=new _.gD,_.u7("ytglobal.storage_",G));return G};
_.gD.prototype.estimate=function(){var G,H,Z;return _.S(function(Q){G=navigator;return((H=G.storage)==null?0:H.estimate)?Q.return(G.storage.estimate()):((Z=G.webkitTemporaryStorage)==null?0:Z.queryUsageAndQuota)?Q.return(wof()):Q.return()})};
_.u7("ytglobal.storageClass_",_.gD);var omj=0;var LMj=!1;var FRa=_.CM(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),blD=_.CM(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var PGo={"/":_.rU,"/?feature=ytca":_.rU,"/feed/downloads":_.bav};var GFj=pSs.continuationCommandSelector,pM=function(G,H,Z){this.JSC$18830_upliftPromise=G;this.store=H;this.JSC$18830_persistentStorePromiseAccessor=Z};
pM.prototype.shouldPreferLocalResponse=function(G){return G.browseId==="FEdownloads"||G.browseId==="FEsmart_downloads"&&_.V("kevlar_modern_downloads_page")?!0:!1};
pM.prototype.localInnertubeResponse=function(G){var H=this;return _.S(function(Z){return G.browseId==="FEdownloads"?_.V("kevlar_modern_downloads_page")?Z.return(H$L(H)):Z.return(sJL(H)):G.browseId==="FEsmart_downloads"&&_.V("kevlar_modern_downloads_page")?Z.return(Z$6(H)):Z.return(Promise.reject(Error("Fj")))})};
pM.prototype.canProvideFallbackResponse=function(){return!0};
pM.prototype.localFallbackInnertubeResponse=function(G){var H=this,Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:return l.yield(H.JSC$18830_persistentStorePromiseAccessor(),2);case 2:Z=l.yieldResult;if(G.browseId!=="SPaccount_downloads"||!Z){l.jumpTo(3);break}return l.yield(AoW(Z),4);case 4:if(Q=l.yieldResult)return l.return(_.mU(Q));case 3:return G.browseId==="FEwhat_to_watch"?l.return(QJq(H)):(p=_.V("web_offline_continuation_automatic_retry")||_.V("web_offline_continuation_retry_button"))&&
G.continuation?l.return(pUh(H)):l.return(lkA(H))}})};
var QJq=function(G){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$18830_upliftPromise,2);H=_.dZU(G.store.getState().entities);return H.length?Z.return(gMo(G,H)):Z.return(lkA(G))})},sJL=function(G){var H,Z;
return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$18830_upliftPromise,2);if(Q.nextAddress!=3)return H=IkA([{offlineItemSectionRenderer:{}}]),Q.yield(qdj(G,H),3);Z=Q.yieldResult;Z.onResponseReceivedActions=[sz("REFRESH_DOWNLOADS")];return Q.return(Z)})},H$L=function(G){var H,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M;
return _.S(function(r){if(r.nextAddress==1)return r.yield(G.JSC$18830_upliftPromise,2);if(r.nextAddress!=3)return H=G.store.getState(),Z=H.entities,Q=_.nN(Z),p=_.Vn(Z),l=_.LHf(H),q=_.xZf(H),u=_.Ego(H),B=_.V8v(Z),t=_.Bv(Q),D=_.$a(Z),d=_.Tve(Z),e=_.FHj(H),n=_.vv(H),c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.t12(Q,p,B,d,l,q,t,D,u,e,n),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},W="",_.V("kevlar_modern_downloads_skip_downloads_title")||
(W=_.Zg("DOWNLOADS",void 0,"Downloads")),r.yield(Sdk(G,c,W),3);M=r.yieldResult;M.onResponseReceivedActions=[sz("REFRESH_DOWNLOADS")];return r.return(M)})},Z$6=function(G){var H,Z,Q,p,l,q,u,B,t;
return _.S(function(D){if(D.nextAddress==1)return D.yield(G.JSC$18830_upliftPromise,2);if(D.nextAddress!=3)return H=G.store.getState(),Z=H.entities,Q=_.nN(Z),p=_.Bv(Q),l=_.$a(Z),q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.D9j(Q),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},u=_.Zg("SMART_DOWNLOADS",void 0,"Smart downloads"),B=BHb(p,l),D.yield(Sdk(G,q,u,B),3);t=D.yieldResult;t.onResponseReceivedActions=
[sz("REFRESH_DOWNLOADS")];return D.return(t)})},lkA=function(G){var H,Z;
return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(o9(G.JSC$18830_upliftPromise,G.store),2);H=Q.yieldResult;Z=IkA([ms3(H)]);return Q.return(qdj(G,Z))})},pUh=function(G){var H,Z,Q,p;
return _.S(function(l){if(l.nextAddress==1)return H={},Z=GFj(G.store.getState()),_.nX(H,_.vh,Z),l.yield(o9(G.JSC$18830_upliftPromise,G.store,H,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);Q=l.yieldResult;p={};_.nX(p,_.jB_,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:Q}}}],targetId:"browse-feedFEwhat_to_watch"});return l.return({responseContext:{},onResponseReceivedActions:[p]})})},IkA=function(G){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:G}}}}]}}},gMo=function(G,H){var Z,Q;
return _.S(function(p){var l={contents:Zx(H)};Z=l&&l.contents?l:{};_.V("kevlar_modern_downloads_page")&&(Z=Object.assign({},_.d9W(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));Q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Z}}}]}};return p.return(qdj(G,Q))})},qdj=function(G,H){var Z,Q;
return _.S(function(p){if(p.nextAddress==1)return p.yield(G.JSC$18830_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3)return Z=p.yieldResult,p.yield(Uz(Z),3);Q=p.yieldResult;return p.return({responseContext:{},contents:H,topbar:Q})})},Sdk=function(G,H,Z,Q){var p,l;
return _.S(function(q){if(q.nextAddress==1)return q.yield(G.JSC$18830_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return p=q.yieldResult,q.yield(Uz(p),3);l=q.yieldResult;var u=q.return;var B=Z;var t=Q;B=B===void 0?"":B;t=t===void 0?"":t;B={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:B}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Zg("SETTINGS",void 0,"Settings"),accessibilityText:_.Zg("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:_.U3("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:t}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:B};
return u.call(q,{responseContext:{},contents:H,topbar:l,header:{pageHeaderRenderer:B}})})};var uPk=function(){this.moduleRegistry={};this.fetchCount=0};
uPk.prototype.isFetching=function(){return this.fetchCount>0};
var z1=function(G,H){G.moduleRegistry[H.toString()]={asyncId:H,isFetching:!1};return G};
uPk.prototype.JSC$18841_loadModules=function(){for(var G=this,H=new Map,Z=[],Q=_.I(_.Ry.apply(0,arguments)),p=Q.next();!p.done;p=Q.next()){p=p.value;var l=this.moduleRegistry[p];l?l.resolver?H.set(p,l.resolver):(l.resolver=new _.sD,H.set(p,l.resolver),Z.push(l.asyncId),l.isFetching=!0):(l=new _.sD,H.set(p,l),l.resolve(void 0))}Z.length&&(this.fetchCount+=1,_.fK(_.Ri.getMultipleAsync.apply(_.Ri,_.OP(Z)).then(function(q){for(var u=0;u<Z.length;u++){var B=q[u],t=G.moduleRegistry[Z[u].toString()];t.isFetching=
!1;t.resolver.resolve(B)}}).catch(function(q){for(var u=_.I(Z),B=u.next();!B.done;B=u.next()){B=B.value;
var t=G.moduleRegistry[B.toString()];t.resolver=void 0;t.isFetching=!1;H.get(B.toString()).reject(q)}}),function(){--G.fetchCount}));
return Promise.all([].concat(_.OP(H.values())).map(function(q){return q.promise}))};_.KM=new _.Gv("MODULE_REGISTRY_TOKEN");var B78={},Jpc=(B78.rendered={priority:0,callback:function(G){a:{var H=void 0;try{var Z;b:{if(_.Azv()){var Q=_.oKX(_.w7()+"::pom");if(Q){var p=new zP(Q);break b}}p=void 0}var l=(Z=p)==null?void 0:Z.get("role_text");if(!l)break a;H={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:l}]}}}}}}catch(B){}H&&G.injector.resolve(_.Dk).resolveCommand(H)}try{var q=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(q){var u=JSON.parse(q);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
u&&G.injector.resolve(_.Dk).resolveCommand(u)}}catch(B){}}},B78);var tAj,kFq={},DYk=(kFq.initialized={priority:10,callback:function(){tAj=tB()}},kFq.rendering={callback:function(G){var H;
return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(tAj,2);H=Z.yieldResult;if(!H.endpoint)throw Error("Hj`"+_.Qf.location.href);eV(G,H);_.K0(Z)})}},kFq);var dYi={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(_.OP(_.V("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(G){var H=G.stack;if(H.includes("chrome://")||H.includes("chrome-extension://")||G.message.includes("chrome-extension://")||H.includes("moz-extension://")||H.includes("local.adguard.org")||H.includes("auctioneer3.50million.club")||H.includes("youtubedownloader")||
H.includes("youtube_home_page")||H.includes("is_youtube_video_no_longer_available")||H.includes("switchScreenSizeHack")||H.includes("yt_main_big_banner.js")||H.includes("YouTubeCenter.js")||H.includes("/mytube.js")||H.includes("JSON.parseWrapper")||H.includes("/inj_js/common.js")||H.includes("firebug-lite")||H.includes(".repl.co/")||H.includes("linkfix")||H.includes("playAfterAd")||G.message.includes("Access is denied for this document")&&H.includes("<anonymous>")||G.fileName==="user-script"||G.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
H.includes("<anonymous>"))return!0;if(H.includes("https://www.youtube.com"))return!1;G=H.split("\n");if(!G.length)return!1;if(G.length<=3&&H.includes("s.onloadeddata"))return!0;H=0;for(var Z=_.I(G),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,(Q.includes("https://")||Q.includes("http://"))&&H++;return H/G.length>.95},
weight:0},{callback:function(G){return G.message==="Unknown Error"&&G.name.indexOf("NS_")===0},
weight:100},{callback:function(G){if(!_.Yj)return!1;var H=G.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||G.message.includes("available to complete this operation"),Z=G.stack.includes("webcomponents")&&G.message==="Object doesn't support this action";G=G.message.includes("object that does not implement interface Element");return H||Z||G},
weight:0},{callback:function(G){return G.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(G){return G.message==="Operation is not supported"&&(G.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(G){return G.stack.includes("eval code (eval (code:1:1)")||G.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(G){return G.message.includes("Permission denied")&&G.stack.includes("this.domHandler")?!0:G.name.includes("TypeError")&&G.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(G){if(!G.stack)return!1;var H=G.stack.trim().split("\n");H.length&&H[0].endsWith("Error: "+G.message)&&H.shift();H.length&&H[H.length-1].includes("at window.onerror (")&&H.pop();if(!H.length)return!0;if(G.message==="Script error.")return H[0].includes("www.youtube.com")||H.length>=2&&H[0].startsWith("at new")&&H[1].startsWith("at window.onerror");if(G.message==="Unexpected token")return!0;G=_.I(H);for(H=G.next();!H.done;H=G.next())if(H=H.value,!(H.includes("<anonymous>")||
H.startsWith("load@")||H.startsWith("global code@")||H.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(G){return G.message==="Cannot read property 'experiments'"&&G.stack.includes("/s/player/")},
weight:500},{callback:function(G){return G.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(G){return G.stack.includes("/embed.js")?(G.params&&G.params&&(G.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.V("use_error_suppression"))var G=_.xI("SUPPRESS_CLIENT_ERRORS",!1);else{if(G=_.sy)G=/Chrome\/(\d+)/.exec(_.nW()),G=(G?parseFloat(G[1]):NaN)>=66;G=!(G||_.H4&&_.GW(65)||_.Ed&&_.GW(12.1)||qh&&_.GW(79))}return G},
weight:500}]};var eRD={},nMq=(eRD.initialized={priority:10,callback:function(G){G.injector.addProvider({provide:Jxx,useValue:G.root});G.injector.addProvider({provide:yRt,useValue:iIW});G.injector.addProvider({provide:o5q,useValue:dYi});var H={};G.injector.addProvider((H.provide=mjm,H.useFactory=function(Z,Q){return function(){B1R(Z,Q)}},H[kM]=[yRt,
o5q],H));G.injector.addProvider({provide:vk,useClass:vk})}},eRD);var VAs={},$Yh=(VAs.initialized={priority:3,callback:function(){var G;if(G=wAX()){G=G.replace("/",".");var H=_.lf();H.set("tz",G);H.save();G=!0}else G=!1;G||(G=_.lf(),G.set("utco",-Math.floor((new Date).getTimezoneOffset())),G.save())}},VAs);var XUs={},cpm=(XUs.initialized={priority:10,callback:function(G){G.injector.resolve(vk).start();G=_.wT();var H=_.YI("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.YI("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.YI("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.YI("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.G1(_.T5f(),{mainAppWeb:Object.assign({},G,{pageType:H})});_.G1(vxe(),{mainAppWeb:Object.assign({},G,{pageType:H})});
_.G1(WLf(),{mainAppWeb:G});_.G1(zbf(),{mainAppWeb:G});ted(function(){_.HM(WLf(),"FAILURE");_.HM(zbf(),"FAILURE")});
qoR();Sov();Cxj()}},XUs);var T78={},fkq=(T78.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.$K("dl"),_.ZO().processSignal("pcl");else{var G=function(){_.$K("dl");_.ZO().processSignal("pcl");window.removeEventListener("load",G)};
window.addEventListener("load",G)}}},T78);var vMs={},WKq=(vMs.rendering={priority:0,callback:function(){var G=_.ZO();G.parkOrScheduleJob(function(){G.processSignal("eocs")},10,"eor",5E3)}},vMs);var zRA=function(){};
_.T(zRA,Ff);
zRA.prototype.resolveCommand=function(G,H){var Z,Q,p,l,q,u,B,t;return _.S(function(D){p=(Z=_.X(G,_.b2_))==null?void 0:(Q=Z.dialog)==null?void 0:Q.commentReplyDialogRenderer;if(!p)throw new _.C$("No dialog in createCommentReplyDialogEndpoint");q=(l=H.form)==null?void 0:l.event;if(!q)throw new _.C$("Event not passed in when resolving command");u=_.I(q.composedPath());for(B=u.next();!B.done;B=u.next())if(t=B.value,t.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||t.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return t.showReplyDialog(p),D.return();
_.K0(D)})};var ID=function(){};
_.T(ID,Ff);ID.prototype.resolveCommand=function(G){var H,Z,Q;return _.S(function(p){if(p.nextAddress==1)return H=_.X(G,uvN),(Z=H)!=null&&Z.externalChannelId?p.yield((0,_.s9u)("NSzT5"),2):p.return();Q=_.KKm;return p.yield(Q(H.externalChannelId),0)})};var qG=function(G){this.JSC$18859_pageRequestService=G;this.JSC$18859_prefetchCoordinator=WuD()};
_.T(qG,Ff);qG.prototype.resolveCommand=function(G){var H=this,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1){Z=_.X(G,P1a);if((Q=Z)==null||!Q.taskId)throw Error("Ij");p=Z.taskId;_.XV(q,2);return q.yield(_.sfA(H.JSC$18859_pageRequestService,G,{},"").then(function(u){if(!u)throw Error("Jj");},function(u){throw Error("Kj`"+u);
}),4)}if(q.nextAddress!=2)return M_q(H.JSC$18859_prefetchCoordinator,p),_.Za(q,0);
l=_.Wg(q);y9(H.JSC$18859_prefetchCoordinator,p,l);_.K0(q)})};
qG[kM]=[_.JB];var Sh=function(G,H){this.innertubeTransportService=G;this.JSC$18863_commandHandler=H};
_.T(Sh,Ff);Sh.prototype.resolveCommand=function(G){var H=this,Z,Q,p;return _.S(function(l){if(l.nextAddress==1){Z=_.X(G,MER);if(Z.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||Z.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")Q=Z.boolValue?2:1,_.tP.getInstance().setState(Q,!0,!0);return l.yield(_.wb(H.innertubeTransportService,G),2)}p=l.yieldResult;MAi(H,p);_.K0(l)})};
var MAi=function(G,H){H.actions&&H.actions.forEach(function(Z){G.JSC$18863_commandHandler.resolveCommand(Z)})};
Sh[kM]=[_.t0,_.Dk];var uy={},B0=(uy.addToPlaylistEndpoint=mh(bF),uy.addToToastAction=mh(Ic),uy.adsControlFlowOpportunityReceivedCommand=mh(jW),uy.audioTrackSelectActionCommand=mh(kd),uy.backgroundAudioPlaybackCommand=mh(Ds),uy.captionLanguageSelectActionCommand=mh(dd),uy.captionPickerEndpoint=mh(ez),uy.changeMiniAppPlayStateCommand=mh(G6),uy.changeTimelyActionVisibilityCommand=mh(g6),uy.channelCreationFormEndpoint=mh(A5),uy.clearLocationCommand=mh(Fm),uy.clearUrlParamCommand=mh(Hw),uy.copyLinkCommand=mh(vw),uy.copyTextEndpoint=
mh(iF),uy.createCommentReplyDialogEndpoint=PZb(zRA),uy.createPlaylistServiceEndpoint=mh(Ww),uy.dismissDialogEndpoint=mh(Zs),uy.dismissPlayerOverlayCommand=mh(nc),uy.entityUpdateCommand=mh(ah),uy.feedbackEndpoint=mh(mx),uy.getAnswerCommand=mh(a4),uy.getPaymentsClientTokenCommand=mh(kv),uy.getTranscriptEndpoint=mh(qp),uy.googlePaymentBillingCommand=mh(DV),uy.googlePaymentPurchaseManagerCommand=mh(d6),uy.hideEngagementPanelEndpoint=mh(QT),uy.hideSheetCommand=mh(pc),uy.hideSnackbarCommand=mh(Gn),uy.insertRichSectionCommand=
mh(L_),uy.listMutationCommand=mh(Ec),uy.logGtmCommand=mh(x1),uy.notifyDropdownOptionSelectedCommand=mh(sT),uy.openAdAllowlistInstructionCommand=mh(_.Pc),uy.openOnePickAddVideoModalCommand=mh(z6),uy.persistSubscriptionsDisplayPreferencesCommand=mh(wd),uy.pingingEndpoint=mh(ri),uy.playlistEditEndpoint=mh(MI),uy.playlistVotingRefreshPopupCommand=mh(jz),uy.profileCardCommand=mh(Mx),uy.refreshPanelEndpoint=mh(gd),uy.saveImageToDeviceEndpoint=mh(Oc),uy.scrollToSectionEndpoint=PZb(d4L),uy.seekToVideoTimestampCommand=
mh(VT),uy.selectCountryCommand=mh(hh),uy.setCookieCommand=mh(Cc),uy.setLocalStorageCommand=mh(s2),uy.setPrefStorageEntryCommand=mh(OT),uy.setSettingEndpoint=mh(Sh),uy.sfvAudioItemPlaybackCommand=mh($d),uy.shareImageCommand=mh(yT),uy.sharingProviderDataCommand=mh(o4),uy.showAudioTrackPickerActionCommand=mh(XB),uy.showCaptionLanguageSelectActionCommand=mh(cw),uy.showCreatorChatbotEngagementPanelCommand=mh(ID),uy.showDialogCommand=mh(Sz),uy.showEngagementPanelEndpoint=mh(us),uy.showFullscreenPlayerControlsCommand=
mh(T6),uy.showSheetCommand=mh(Bw),uy.showSnackbarCommand=mh(HX),uy.showTransientPlayerScrimOverlayCommand=mh(fc),uy.submitFormWithValidationFlowCommand=mh(Nx),uy.talkToRecsDeselectCommand=mh(ZV),uy.talkToRecsNextCommand=mh(Qu),uy.talkToRecsSelectCommand=mh(pC),uy.talkToRecsUpdateTextCommand=mh(lg),uy.toggleEngagementPanelCommand=mh(Jh),uy.undoFeedbackEndpoint=mh(Rh),uy.updateEngagementPanelContentCommand=mh(th),uy.updateUrlParamCommand=mh(S0),uy.updateVideoMetadataCommand=mh(tn),uy.verifyCommand=
mh(A5),uy.webNativeShareCommand=mh(m8),uy.webSubmitFormCommand=mh(Pw),uy.ACK_PLAYABLES_3P_DATA_CONSENT=mh(UT),uy.CANCEL_NAVIGATION=mh(R4),uy.COPY_SHARE_URL=mh(NI),uy.MINI_APP_EXIT_DIALOG_SEEN=mh(xd),uy.MINI_APP_OPEN_URL=mh(Ah),uy.REQUEST_MINI_APP_FULLSCREEN=mh(Lc),uy.RESUME_NAVIGATION=mh(ET),uy.SHARE_PLAYABLE_WITH_HIGH_SCORE=mh(Yd),uy.TELL_US_WHY=mh(Uc),uy);_.V("web_enable_prefetching_videos_on_home")&&(B0.prefetchWatchCommand=mh(qG),B0.registerTasksCommand=mh(m6));
_.V("enable_share_panel_navigation_logging_fix_on_web")&&(B0.shareEntityServiceEndpoint=mh(I4));_.V("web_use_flow_state_manager")&&(B0.flowNextStepCommand=mh(WiD),B0.flowPrevStepCommand=mh(Kih),B0.getFlowCommand=mh(jsD),B0.updateFlowCommand=mh(vc));_.V("enable_ai_companion")&&(B0.updateConversationIdCommand=mh(C_),B0.formDataDecoratorCommand=mh(h5));var mga=Object.assign({},B0);var jJD={},P0m=(jJD.initialized={priority:10,callback:kCe},jJD);var rpm={},wUi=(rpm.initialized={callback:function(G){var H={},Z={};ppv().install((H.document_disposed={callback:function(){_.V("finalize_all_timelines")?A$X():d8();zUb("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Xpb();var Q=G.injector.resolve(vk);Q.intervalId!==void 0&&(Q.intervalId&&_.Ui.cancelJob(Q.intervalId),Q.intervalId=void 0,--Q.currentPartitionIndex,Q=bZR(Q),Q>0&&z9a({mainAppWeb:_.wT(),survivalSli:{partitionMinute:Q,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Vo2(pQ);lZ!=null&&
lZ.flush();Ya&&Ya.snapshotAndFlush();Q=_.I(y7_.values());for(var p=Q.next();!p.done;p=Q.next())p.value.snapshotAndFlush()}},H),(Z.flush_logs={callback:function(){_.op()}},Z))}},rpm);var hRh={},C0o=(hRh.rendered={priority:0,callback:function(){var G=new GBx;G.increment("STARTED");if(_.xI("LOGGED_IN")&&!_.xI("IS_DBSC",!1)&&_.xI("SERVER_VERSION")!=="test"&&_.xI("SERVER_VERSION")!=="dev"&&!i0x()&&!CEN()){G.increment("EXECUTING");var H=document.createElement("iframe");H.style.display="none";_.GO(H,2,_.m0("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.xI("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(H);G.increment("DONE")}}},
hRh);var i$s={},O$a=(i$s.rendered={callback:function(){WuD().resume()}},i$s);var akk={acknowledgeChannelTouStrikeCommand:Wh(FI),addToPlaylistServiceEndpoint:Wh(Hj),addToPlaylistEndpoint:Wh(Hj),addUpcomingEventReminderEndpoint:Wh(nP),browseEndpoint:Wh(uG8),channelCreationFormEndpoint:Wh(Rc),channelCreationServiceEndpoint:Wh(Np),claimLegacyYoutubeChannelEndpoint:Wh(j0),clearSearchHistoryEndpoint:Wh(BJ),clearWatchHistoryEndpoint:Wh(JT),commerceActionCommand:z3(X2),createBackstagePostEndpoint:Wh(fC),createBroadcastCommand:Wh(VW),createCommentEndpoint:Wh(yu),createCommentReplyEndpoint:Wh(ac),
createLiveChatPollEndpoint:Wh($7),createPlaylistServiceEndpoint:Wh(sQ),crossAccountChannelTransferEndpoint:Wh(Dm),deleteLiveChatMessageCommand:Wh(XH),deletePlaylistEndpoint:Wh(Ze),deleteVideoEndpoint:Wh(eR),dismissalEndpoint:Wh(bg),feedbackEndpoint:Wh(G0),flagEndpoint:Wh(qw),getAccountSwitcherEndpoint:Wh(k7),verifyCommand:Wh(Tn),getAccountsListInnertubeEndpoint:Wh(eZ),getCommentsFromInboxCommand:Wh(ih),getDownloadActionCommand:Wh(Rd),getFlowCommand:z3(uh),getKidsBlocklistPickerCommand:Wh(SR),getNotificationMenuEndpoint:Wh(t_L),
getPaymentInstrumentsParamsCommand:Wh(zN),getPaymentsClientTokenCommand:z3(X2),getPdgBuyFlowCommand:Wh(bh),getReportFormEndpoint:Wh(up),getSearchInVideoCommand:Wh(tX),getAnswerCommand:Wh(JX),getSurveyCommand:Wh(dF),getTranscriptEndpoint:Wh(V9),getPostVideoPreviewEndpoint:Wh(WX),decorateMessageEndpoint:Wh(vX),likeEndpoint:Wh(An),liveChatActionEndpoint:Wh(vJ),liveChatEndpoint:Wh(fP),liveChatItemContextMenuEndpoint:Wh(cJ),liveChatPurchaseMessageEndpoint:Wh(WJ),liveChatReplayEndpoint:Wh(T0),manageLiveChatUserEndpoint:Wh(KP),
metadataUpdateCommand:Wh(hT),moderateLiveChatEndpoint:Wh(MD),modifyChannelNotificationPreferenceEndpoint:Wh(od),notificationOptOutEndpoint:Wh(mb),openSuperStickerBuyFlowCommand:Wh(z0),performCommentActionEndpoint:Wh(CC),playlistEditEndpoint:Wh(p7),playlistEditorEndpoint:Wh(Q9),recordNotificationInteractionsEndpoint:Wh(U8),reelWatchEndpoint:Wh(lp),refreshPanelEndpoint:Wh(AT),removeUpcomingEventReminderEndpoint:Wh(jZ),resolveLocationCommand:Wh(w4),revealBusinessEmailCommand:Wh(PX),searchEndpoint:Wh(_.k$8),
sendLiveChatMessageEndpoint:Wh(PJ),sendLiveChatVoteEndpoint:Wh(r4),setSettingEndpoint:Wh(xv),shareEntityServiceEndpoint:z3(Yv),sharingProviderDataCommand:Wh(De),showEngagementPanelEndpoint:Wh(x7),showMoreDrawerCommand:Wh(E8),showSheetCommand:Wh(Y7),showDialogCommand:Wh(LP),subscribeEndpoint:Wh(LC),transcriptSubmitCaptionCorrectionCommand:Wh(n7),undoFeedbackEndpoint:Wh(s8),unsubscribeEndpoint:Wh(E2),updateBackstagePostEndpoint:Wh(KC),updateCommentEndpoint:Wh(mB),updateCommentReplyEndpoint:Wh(oc),updateCommentsSettingsEndpoint:Wh(U2),
updateCreatorChannelInnertubeCommand:Wh(w6),updateKidsBlacklistEndpoint:Wh(Bj),updateEngagementPanelContentCommand:Wh(FH),updatePdgFeatureEnablementCommand:Wh(GN),updatedMetadataEndpoint:Wh(CP),validateChannelHandleCommand:Wh(hn),updateChannelPageSettingsEndpoint:Wh(r6),verifyAgeEndpoint:Wh(SZ),watchEndpoint:z3(Vu),whitelistEditEndpoint:Wh($e),ypcCancelRecurrenceEndpoint:Wh(cj),ypcCompleteTransactionEndpoint:Wh(TN),ypcFixInstrumentEndpoint:Wh(vj),ypcGetCartEndpoint:Wh(f7),ypcGetOffersEndpoint:Wh(Wj),
ypcHandleTransactionEndpoint:z3(K7),ypcLogWalletAnalyticDataEndpoint:Wh(Mw),ypcOffersEndpoint:Wh(jR),ypcPauseSubscriptionCommand:Wh(Pj),ypcRedeemCodeEndpoint:Wh(rF),ypcResumeSubscriptionCommand:Wh(wF),ypcUpdateFopEndpoint:Wh(vj)},JC={},yp8=(JC.GET_ACCOUNT_MENU=Wh(d4),JC.GET_NOTIFICATIONS_MENU=Wh(JRt),JC.GET_NOTIFICATIONS_INBOX=Wh(O8),JC.GET_UNSEEN_NOTIFICATION_COUNT=Wh(yW),JC.GET_USER_MENTION_SUGGESTIONS=Wh(zn),JC.LOAD_GUIDE=Wh(BIh),JC.SUBMIT_FEEDBACK=Wh(HJ),JC),tC={},oML=(tC.CONTINUATION_REQUEST_TYPE_BROWSE=
Wh(Mp),tC.CONTINUATION_REQUEST_TYPE_SEARCH=Wh(ke),tC.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Wh(Jn),tC.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Wh(tT),tC.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Wh(O2),tC.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Wh(ig),tC.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Wh(I8),tC.CONTINUATION_REQUEST_TYPE_GET_PANEL=Wh(ND),tC),mYq={player:z3(Vu),watchNext:Wh(BX)},UYL={player:z3(Vu),reelItemWatch:Wh(lp),reelWatchSequence:Wh(gF)},RRk={watchEndpoint:z3($v)},N7s=
{commandEndpointMap:akk,signalEndpointMap:yp8,continuationEndpointMap:oML,watchEndpointMap:mYq,reelWatchEndpointMap:UYL,streamingEndpointMap:RRk};var Aph,xY8,LKc;_.EMi=((xY8=(Aph=window).matchMedia)==null?void 0:(LKc=xY8.call(Aph,"(prefers-reduced-motion: reduce)"))==null?void 0:LKc.matches)||!document.startViewTransition;var Ydq={},FKj={disableAllTransitions:_.EMi,ignoredErrors:(Ydq.DOCUMENT_HIDDEN=!0,Ydq.WINDOW_SIZE_CHANGED=!0,Ydq.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,Ydq),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 b$j=_.CM("\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(",")),HgD=function(G){var H=this;this.viewTransitionCoordinator=
G;this.disableTransitionsForUltraHigh=_.V("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=GB8();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.n$("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.V("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.V("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.V("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.n$("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.V("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.Ui.addJob(function(){H.registerRootElement();if(H.isAnyTransitionEnabled){var Z=
_.eA("web_page_transition_exit_ms"),Q=_.eA("web_page_transition_wait_ms"),p=_.eA("web_page_transition_enter_fast_ms"),l=_.eA("web_page_transition_watch_exit_ms"),q=_.eA("web_page_transition_watch_wait_ms"),u=_.eA("web_page_transition_watch_enter_ms"),B=_.eA("web_page_transition_watch_next_exit_ms"),t=_.eA("web_page_transition_watch_next_wait_ms"),D=_.eA("web_page_transition_watch_next_enter_fast_ms"),d=_.eA("web_page_transition_enter_ms"),e=_.eA("web_page_transition_watch_next_enter_ms");H.enableFasterTransitions&&
H.isUltraHighBucketDevice&&(d=p,e=D);isNaN(Z)&&isNaN(Q)&&isNaN(d)&&isNaN(l)&&isNaN(q)&&isNaN(u)&&isNaN(B)&&isNaN(t)&&isNaN(e)||!(Z=CGo(b$j,Z,Q,d,l,q,u,B,t,e))||(Q=document.createElement("style"),Q.textContent=D_j(Z),document.head.appendChild(Q))}},8)},GB8=function(){var G=_.Qf.navigator.deviceMemory;
return G>=8||G===void 0?!0:!1};
HgD.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var G={};this.viewTransitionCoordinator.registerElement(document.documentElement,(G.slide="root-slide",G["lockup-to-watch"]="root-lockup-to-watch",G["learning-journey"]="root-learning-journey",G))}};
_.iy7=function(G,H){G.isLockupToWatchTransitionEnabled&&G.isLockupThumbnailRegistrationEnabled&&(G.registeredLockupThumbnail?G.lockupThumbnailRegisteredFromWatchEndpoint?_.Rp(new _.C$("Lockup thumbnail registration order is incorrect.")):_.Rp(new _.C$("Lockup thumbnail already registered.")):(G.registeredLockupThumbnail=H,_.s1k(G,H)))};
_.s1k=function(G,H){var Z={};G.viewTransitionCoordinator.registerElement(H,(Z["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",Z),!0)};
HgD[kM]=[UfD];var Deo={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 eTb=["videoPrimaryInfoRenderer","title"],nSf=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Zgi;Zgi=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Q1q=_.y(function(G){G=_.oK(G,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var H=G.data,Z=G.playlistData,Q=G.expanded,p=G.onExpandClick,l=G.isReadyToResume,q=function(){var D;return!((D=Z())==null||!D.contents)},u=function(){var D=Z();
return D&&D.totalVideos&&D.currentIndex!==void 0?D.currentIndex+1+" / "+D.totalVideos:""};
G=_.Hh(function(){_.k2(_.tp().resolve(_.WM));return!1});
var B=_.Hh(function(){q()&&p&&p()}),t={};
return _.J("ytd-miniplayer-info-bar",{class:_.bb("ytdMiniplayerInfoBarHost",(t.ytdMiniplayerInfoBarHasPlaylistData=q,t)),"on:click":B},_.J("div",{class:"ytdMiniplayerInfoBarContent"},_.J("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":G},_.J(_.Fe,{text:function(){var D=H();var d=Z();if(d==null?0:d.contents){var e;D=(e=_.srR(d))==null?void 0:e.title}else D=D==null?void 0:D.miniplayerTitle;return V6f(D)},
noEndpoints:!0,ellipsisTruncate:!0})),_.J("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.J(_.k,{cond:l,then:function(){return _.J(k2R,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Zgi})}}),_.J("h1",null,_.J(_.Fe,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var D=H();var d=Z();D=l()?{simpleText:_.Zg("CONTINUE_WATCHING",void 0,"Continue watching")}:(d==null?0:d.contents)?d.titleText:D==null?void 0:D.miniplayerSubtitle;return V6f(D)},
noEndpoints:!0,ellipsisTruncate:!0})),_.J(_.k,{cond:function(){return!!u()&&!l()},
then:function(){return _.J("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.J("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.J("span",null,u))}}))),_.J(_.k,{cond:q,
then:function(){return _.J("div",{class:"ytdMiniplayerInfoBarExpand"},_.J(_.tf,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(D){p&&(p(),D.stopPropagation())}}},
iconName:function(){return Q()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ug");var pPh;pPh=_.y(function(G){return _.J("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.J(_.tf,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:G.onTap}},
iconName:"yt-icons:close"}))},"vg");
_.las=_.y(function(G){G=_.oK(G,{playabilityStatus:void 0,isDisabled:!1});var H=G.size,Z=G.playabilityStatus,Q=G.isDisabled,p=_.IA("div");G=_.I(_.Ty(void 0,void 0,"y6THVb"));var l=G.next().value,q=G.next().value;G=_.SQ(_.NB);var u=!1,B=function(){return H().height<=0};
_.yN(function(){var e=H(),n=B(),c=l();c&&!n&&c.setInternalSize(e.width,e.height)},"qu2eI");
_.yP(function(){var e,n,c;return _.S(function(W){if(W.nextAddress==1){e=_.tp().resolve(_.WM);n=e.getPlayerElement();if(!e.isMiniplayerActive()||!n||!p.value)return W.return();n.appendTo(p.value);return W.yield(n.getPlayerPromise(),2)}c=W.yieldResult;c.setSizeStyle(!1,!0);q(c);_.K0(W)})});
_.oM(function(){t()});
_.yN(function(){var e=l();if(e)if(Q()){var n=e.getPlayerState();(u=n===-1||n===1||n===3)&&e.pauseVideo()}else t()},"mCtQKc");
var t=function(){if(u){u=!1;var e;(e=l())==null||e.playVideo()}},D=_.Hh(function(){_.k2(_.tp().resolve(_.WM))}),d={};
return _.J("ytd-miniplayer-player-container",{class:_.bb("ytdMiniplayerPlayerContainerHost",(d.ytdMiniplayerPlayerContainerHidden=B,d.ytdMiniplayerPlayerContainerHostShortsPip=G,d)),style:_.pI({width:function(){return H().width+"px"},
height:function(){return H().height+"px"}})},_.J("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:p}),_.J(_.k,{cond:function(){return!!Z()&&!_.yuM(Z())},
then:function(){return _.J(mUq,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var e;return((e=Z())==null?void 0:e.errorScreen)||null},
status:function(){var e;return((e=Z())==null?void 0:e.status)||null}})}}),_.J(_.k,{cond:Q,
then:function(){return _.J("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":D},_.J(pPh,{onTap:function(){_.tp().resolve(_.WM).close()}}))}}))},"zg");_.gNk=_.y(function(G){var H=G.toastData;var Z=_.IA("ytd-miniplayer-toast");G=_.I(_.QF(function(){return!!H()}));
var Q=G.next().value,p=G.next().value;G=_.I(_.Ty(!1,void 0,"BvfNQe"));var l=G.next().value,q=G.next().value,u=function(){var D;return _.yn((D=H())==null?void 0:D.data.title)};
_.mR(function(){_.AS.requestAvailability();H()&&p(!1)});
var B,t;_.yN(function(){Q()&&(_.N5(Z.value,"iron-announce",{text:H().label+" "+u()}),B&&_.Ui.cancelJob(B),B=_.Ui.addLowPriorityJob(function(){q(!0)},2500))},"no1dZb");
_.yN(function(){l()&&(t&&_.Ui.cancelJob(t),t=_.Ui.addLowPriorityJob(function(){p(!1);q(!1)},300))},"G3yPNe");
G={};return _.J("ytd-miniplayer-toast",{el:Z,class:_.bb("ytdMiniplayerToastHost",(G.ytdMiniplayerToastOpening=function(){return Q()},G.ytdMiniplayerToastClosing=function(){return l()},G))},_.J(_.k,{cond:function(){var D;
return(D=H())==null?void 0:D.data},
then:function(D){return _.J(TRw,{className:"ytdMiniplayerToastThumbnail",data:D,width:78})}}),_.J("div",{class:"ytdMiniplayerToastInfo"},_.J("div",{class:"ytdMiniplayerToastLabel"},function(){var D;
return(D=H())==null?void 0:D.label}),_.J("div",{class:"ytdMiniplayerToastTitle"},u)))},"Cg");var M62;var rmj=null;var qio=_.y(function(G){var H=G.progressState;var Z=G.multiMarkersPlayerBarRenderer;var Q=G.progressBarWidth;var p=function(){return ik3(Z())},l=function(){return ymX(H())},q=function(){return Q()*(H().playedTime/H().videoDuration)};
return _.J("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.J(_.Cl,{each:p},function(u,B){return _.J(IaA,{modifiedProps:l,chapters:p,index:B,playedProgressWidth:q,backgroundGradientPosition:function(){var t=l(),D=p(),d=B(),e=q();return(t.playedTime-fM(_.X(D[d],T1)))/t.playedTime*e}})}))},"Dg"),IaA=_.y(function(G){var H=G.modifiedProps;
var Z=G.chapters;var Q=G.index;var p=G.playedProgressWidth;var l=G.backgroundGradientPosition;G={};G=_.bb("ytChapteredProgressBarChapteredPlayerBarChapter",(G.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return q().isScrubbing},G.ytChapteredProgressBarHoveredMacroMarker=function(){return q().scrubberHovering},G.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return q().videoPosition==="seen"},G));
var q=function(){return oSb(H(),Z(),Q())},u=function(){var B=H();
var t=Z(),D=Q();if(oSb(B,t,D).videoPosition!=="active")B=0;else{var d=fM(_.X(t[D],T1));B=(B.playedTime-d)/((fM(_.X(t[D+1],T1))||B.videoDuration)-d)}return B};
return _.J("div",{class:G,style:_.pI({width:function(){var B=H(),t=Z(),D=Q(),d=_.X(t[D],T1);t=_.X(t[D+1],T1);return(t?fM(t)-fM(d):B.videoDuration-fM(d))/B.videoDuration*100+"%"},
"background-color":function(){a:{var B=q();switch(B.videoPosition){case "pending":B=B.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":B=B.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:B=""}}return B},
"background-size":function(){return(me2(q())?p():"")+"px"},
"background-position-x":function(){return(me2(q())?l():"")+"px"}})},_.J("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var B=H(),t=Z(),D=Q();if(oSb(B,t,D).videoPosition==="seen")var d=0;else d=fM(_.X(t[D],T1)),t=fM(_.X(t[D+1],T1))||B.videoDuration,B=B.videoDuration*B.percentLoaded,d=t<=B?1:d>=B?0:(B-d)/(t-d);return"width: "+d*100+"%"}}),_.J("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.pI({width:function(){return u()*100+"%"},
"background-size":function(){return(me2(q(),u())?p():"")+"px"},
"background-position-x":function(){return(me2(q(),u())?l():"")+"px"}})}))},"Eg");var SiL=function(G,H){H=H===void 0?P$t:H;var Z,Q=[],p,l=!1;return function(){var q=_.Ry.apply(0,arguments);if(l&&Z===this&&H(q,Q))return p;p=G.apply(this,q);l=!0;Z=this;Q=q;return p}}(function(G){var H=G.heatMarkers,Z=G.minHeightDp===void 0?0:G.minHeightDp,Q=G.maxHeightDp===void 0?60:G.maxHeightDp;
var p=p===void 0?!1:p;var l=1E3/H.length;G=[];G.push({x:0,y:100});for(var q=0;q<H.length;q++){var u=void 0,B=((u=_.X(H[q],a9G))==null?void 0:u.heatMarkerIntensityScoreNormalized)||0;u=(q+.5)*l;B=100-_.cM(B*100,Z/321*100,Q/321*100);q!==0||p||G.push({x:0,y:B});G.push({x:u,y:B});q===H.length-1&&G.push({x:1E3,y:B})}G.push({x:1E3,y:100});H="";for(Z=0;Z<G.length;Z++)p=G[Z],Z===0?p="M "+p.x.toFixed(1)+","+p.y.toFixed(1):(Q=Oy3(G[Z-1],G[Z-2],p),l=Oy3(p,G[Z-1],G[Z+1],!0),p=" C "+(Q.x.toFixed(1)+","+Q.y.toFixed(1)+
" "+l.x.toFixed(1)+","+l.y.toFixed(1)+" "+p.x.toFixed(1)+","+p.y.toFixed(1))),H+=p;return H});var uqm=_.y(function(G){var H=G.progressBarProps;var Z=G.config;var Q={};G=_.bb("ytHeatSeekerHost",(Q.ytHeatSeekerHighContrast=G.highContrast,Q));var p=function(){return fWj(Z().chapterData)};
return _.J("yt-progress-bar-heatseeker",{class:G,style:function(){var l;return"height: 320px; display: "+(H().isDragging&&((l=p())==null?0:l.heatMarkers)?"block":"none")}},_.J(_.k,{cond:p,
then:function(l){return _.J(_.k,{cond:function(){return l().heatMarkers},
then:function(){return _.J("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.J("path",{d:function(){return SiL(l())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Fg");var Bta=_.y(function(G){var H=G.progressBarProps;var Z=G.config;G={};G=_.bb("ytProgressBarLineProgressBarLine",(G.ytProgressBarLineProgressBarLineRounded=function(){return Z().rounded},G.ytProgressBarLineProgressBarLineBottomInset=function(){return Z().position===2},G));
return _.J("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.J("div",{class:G},_.J("div",{class:"ytProgressBarLineProgressBarBackground"}),_.J("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+H().percentLoaded*100+"%"}}),_.J("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var Q=H();return"width: "+(Q.videoDuration?_.cM(Q.hoveredTime/Q.videoDuration,0,1):0)*100+"%"}}),_.J("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Xzb(H())*100+"%"}})))},"Gg");
Bta.idomCompat=!0;var J36=_.y(function(G){var H=G.progressBarProps;var Z=G.playheadData;var Q=G.interpolateDotPosition;var p=G.hidePlayhead;G={};var l=_.bb("ytProgressBarPlayheadProgressBarPlayheadDot",(G.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return H().isDragging},G.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!H().isDragging&&p()},G));
return _.J("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.pI({"margin-left":function(){return cmo(H())*100+"%"},
transform:function(){return"translateX(-"+(Q()?cmo(H())*12:6)+"px)"}})},_.J(_.k,{cond:function(){var q;
return(q=_.yy(Z)())==null?void 0:q.playheadImage},
then:function(q){var u={};return _.J("div",{class:_.bb("ytProgressBarPlayheadProgressBarPlayheadCustom",(u.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return H().isDragging},u.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!H().isDragging&&p()},u)),
style:_.pI({"transform-origin":function(){return(Q()?cmo(H())*20:10)+"px center"}})},_.J(_.ib,{data:q,
alt:"","aria-hidden":"true"}))},
else:function(){return _.J("div",{class:l,style:_.pI({"transform-origin":function(){return(Q()?cmo(H())*12:6)+"px center"}})})}}))},"Hg");
J36.idomCompat=!0;var Dh=function(G,H,Z,Q,p,l){this.getProgressBarRect=G;this.updateProgressBarRect=H;this.getFilmstripYPosition=Z;this.setFineScrubbingDraggedTime=Q;this.updateFilmStripDraggedYDistance=p;this.resetFilmStripYOffset=l;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Zo(this.onThrottledSeek,100,this)},tdh=function(G,H,Z){return function(Q){G.handleClick(Q,H(),Z())}},dhD=function(G,H){return function(Z){kBL(G,
Z,Dho(Z),H())}},eIm=function(G,H){return function(Z){kBL(G,Z,{x:Z.clientX,
y:Z.clientY},H())}},Vdm=function(G,H,Z){return function(Q){var p=H(),l=Z();
nNA(G,Q,Dho(Q),p,l,!0);if(l.onTouchMove)l.onTouchMove(p)}},XP6=function(G,H,Z){return function(Q){$hL(G,Q,H(),Z())}},c3L=function(G,H){return function(){G.handleMouseLeave(H())}},Tt6=function(G,H,Z){return function(){var Q=H(),p=Z();
dD(G,Q,p);if(p.onTouchEnd)p.onTouchEnd(Q)}},fa6=function(G,H,Z){return function(){var Q=H(),p=Z();
dD(G,Q,p);if(p.onTouchEnd)p.onTouchEnd(Q)}},vNm=function(G,H,Z){return function(){dD(G,H(),Z())}},WIi=function(G){return function(H){if(H.keyCode===39||H.keyCode===38){var Z,Q;
(Z=G())==null||(Q=Z.playerApi)==null||Q.seekBy(5,void 0,void 0,72)}else if(H.keyCode===37||H.keyCode===40){var p,l;(p=G())==null||(l=p.playerApi)==null||l.seekBy(-5,void 0,void 0,71)}}},zIa=function(G,H,Z){return function(Q){!Z().disableScrubbing&&G.startPosition&&$hL(G,Q,H(),Z())}},KIt=function(G,H,Z){return function(){if(!Z().disableScrubbing)if(G.startPosition){var Q=H(),p=Z();
dD(G,H(),Z());if(p.onTouchEnd)p.onTouchEnd(Q)}else H().setState({isDragging:!1})}},Dho=function(G){G=G.touches[0];
return{x:G.clientX,y:G.clientY}},$hL=function(G,H,Z,Q){if(H.buttons!==1){if(H.movementX||H.movementY)H.preventDefault(),H.stopPropagation(),G=Mdh(G,Z,H.clientX),Z.setState({isHovering:!0,
hoveredTime:G*Z.videoDuration})}else j16(Z),nNA(G,H,{x:H.clientX,y:H.clientY},Z,Q,!1)};
Dh.prototype.handleMouseLeave=function(G){j16(G)};
var j16=function(G){G.isHovering&&G.setState({isHovering:!1,hoveredTime:0})},kBL=function(G,H,Z,Q){G.startPosition||(G.startPosition=Z,G.updateProgressBarRect(),G.controlsWereVisibleBeforeDragging=Q.controlsVisible,H.stopPropagation(),_.V("medium_progress_bar_modification")||H.preventDefault())},nNA=function(G,H,Z,Q,p,l){if(G.startPosition)if(l&&p.isInlinePlayback&&G.startPosition&&!G.hasDraggedTheMinimumDistance&&Math.abs(Z.y-G.startPosition.y)>Math.abs(Z.x-G.startPosition.x))dD(G,Q,p);
else if(H.preventDefault(),H.stopPropagation(),Q.videoDuration&&(G.startPosition&&!G.hasDraggedTheMinimumDistance&&(G.hasDraggedTheMinimumDistance=Math.abs(Z.x-G.startPosition.x)>=1),p.enableFineScrubbing&&(G.startPosition&&(G.isDraggedForFineScrubbing=-(Z.y-G.startPosition.y)>=60),!G.startPosition||Z.y>=G.startPosition.y||(Q.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Uef(Q.draggedTime,Q,p.chapterData)}),G.setFineScrubbingDraggedTime(Q.draggedTime),G.updateFilmStripDraggedYDistance(G.startPosition.y,
Z.y,Q))),G.hasDraggedTheMinimumDistance)){H=Mdh(G,Q,Z.x);if(G.isDraggedForFineScrubbing){var q;(q=Q.playerApi)==null||q.pauseVideo();Q.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:Q.draggedTime,filmStripXDistance:Uef(H*Q.videoDuration,Q,p.chapterData)})}p.enableFineScrubbing&&(!p.enableFineScrubbing||G.getFilmstripYPosition(Q)<68)||Q.setState({draggedTime:H*Q.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:G.controlsWereVisibleBeforeDragging});var u;(u=
p.cancelAutohideControlsFn)==null||u.call(p)}},dD=function(G,H,Z){var Q=Z.enableFineScrubbing&&H.fineScrubbingActiveState!=="off";
if(H.isDragging||Q){Q={isDragging:!1,playedTime:H.draggedTime,controlsVisible:G.controlsWereVisibleBeforeDragging};Z.enableFineScrubbing&&H.fineScrubbingActiveState!=="on"&&(G.resetFilmStripYOffset(),Q.fineScrubbingActiveState="off");var p=p===void 0?rmj:p;var l=_.$k(0);if(l&&p){var q=Math.round(H.playedTime*1E3),u=Math.round(H.draggedTime*1E3);q>2147483647||u>2147483647||_.O3(l,p,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(q),endMediaTimeMs:String(u),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}H.setState(Q);
G.seekThrottle.fire(H.draggedTime,H,7);_.V("mweb_new_progress_bar_play_on_seek")&&G.resumeVideo(H);Z.unmuteOnSeek&&(Z=H.playerApi,H.volumeMuted&&(Z==null||Z.unMute()))}else H.setState({controlsVisible:!H.controlsVisible}),(l=Z.triggerAutohideControlsAfterDelayFn)==null||l.call(Z);G.startPosition=null;G.hasDraggedTheMinimumDistance=!1;G.isDraggedForFineScrubbing=!1;G.controlsWereVisibleBeforeDragging=!1};
Dh.prototype.handleClick=function(G,H,Z){this.updateProgressBarRect();G.stopPropagation();G=Mdh(this,H,G.clientX)*H.videoDuration;H.setState({playedTime:G});if(H.playerState!==2){var Q;(Q=Z.triggerAutohideControlsAfterDelayFn)==null||Q.call(Z)}this.seekThrottle.fire(G,H,7)};
var Mdh=function(G,H,Z){G=G.getProgressBarRect(H);return _.cM(0,(Z-G.left)/G.width,1)};
Dh.prototype.resumeVideo=function(G){if(G.draggedTime<G.videoDuration){var H;(H=G.playerApi)==null||H.playVideo()}};
Dh.prototype.onThrottledSeek=function(G,H,Z){if(H=H.playerApi){var Q;if((Q=H.getVideoData())==null?0:Q.isLive)Q=this.getProgressState(H),G+=(Q==null?void 0:Q.seekableStart)||0;H.seekTo(G,void 0,void 0,void 0,Z)}};
Dh.prototype.getProgressState=function(G){var H=G==null?void 0:G.getPresentingPlayerType();return G==null?void 0:G.getProgressState(H)};var wPt,r3D,hIo,igm,P7q,OgA,aao,y3k,oNa;wPt=_.y(function(G){var H=G.progressBarProps;var Z=G.config;var Q=G.progressBarWidthPx;var p=G.chapterData;var l=LZo(H,function(){return Z().isShortsPage}),q=function(){return!H().isHovering&&!Z().isShortsPage};
G={};var u=_.bb("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(G.ytPlayerStoryboardHostMwebShorts=function(){return Z().isShortsPage&&!1},G));
return _.J("yt-player-storyboard",null,_.J(_.k,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.J(_.k,{cond:l,then:function(B){return _.J(_.k,{cond:q,then:function(){return _.J("div",{class:u,"aria-hidden":"true"},_.J(P7q,{props:H,config:Z,isBigboard:!0,chapterData:p}))},
else:function(){return _.J(r3D,{props:H,frame:B,config:Z,progressBarWidthPx:Q,chapterData:p})}})}})}}))},"Ig");
_.C7i=_.y(function(G){var H=G.progressBarProps;var Z=LZo(H,G.isShortsPage);return _.J("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.J(_.k,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.J(_.k,{cond:Z,then:function(Q){return _.J(hIo,{frame:Q,props:H,isBigboard:!0})}})}}))},"Jg");
r3D=_.y(function(G){var H=G.props;var Z=G.frame;var Q=G.config;var p=G.progressBarWidthPx;G=G.chapterData;var l={};l=_.bb("ytPlayerStoryboardHost",(l.ytPlayerStoryboardHostMwebShorts=function(){return Q().isShortsPage&&!1},l.ytPlayerStoryboardHostInlinePlayer=function(){return Q().isInlinePlayer},l.ytPlayerStoryboardHostFadeIn=function(){return Q().useFadeInAnimation},l));
return _.J("div",{class:l,"aria-hidden":"true",style:function(){var q=H(),u=RTb(Z()),B=p();q=NeR(q)/q.videoDuration;var t=B*q,D=u/2+6;u=B-(u/2+6);return"left: "+(t<=D?D/B*100:t>=u?u/B*100:q*100)+"%"}},_.J(_.k,{cond:function(){var q=H();
return!(Q().isShortsPage&&q.videoDuration<15)},
then:function(){return _.J(hIo,{frame:Z,props:H,isBigboard:!1})}}),_.J(P7q,{props:H,
config:Q,isBigboard:!1,chapterData:G}))},"Kg");
hIo=_.y(function(G){var H=G.frame;var Z=G.props;var Q=G.isBigboard;var p=function(){var u,B;return(B=(u=Z().playerApi)==null?void 0:u.getVideoContentRect())!=null?B:{width:0,height:0}},l=function(){return RTb(H())},q=function(){var u=H();
return u?u.height/u.rows:0};
G={};G=_.bb((G.ytPlayerStoryboardBigboardImageWrapper=Q,G.ytPlayerStoryboardStoryboardImageWrapper=function(){return!Q()},G));
return _.J("div",{class:G,style:function(){return"width: "+(Q()?p().width:l())+"px; height: "+(Q()?p().height:q())+"px;"}},_.J(igm,{frame:H,
storyboardWidth:l,storyboardHeight:q,storyboardScale:function(){return(Q()?p().width:l())/l()}}))},"Lg");
igm=_.y(function(G){var H=G.frame;var Z=G.storyboardWidth;var Q=G.storyboardHeight;var p=G.storyboardScale;var l=function(){var q=H().row,u=H().column,B=Z(),t=Q(),D=p();return{left:-u*B*D,top:-q*t*D}};
return _.J("img",{src:function(){return H().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+l().left+"px; top: "+l().top+"px; width: "+H().width*p()+"px; height: "+H().height*p()+"px;"}})},"Mg");
P7q=_.y(function(G){var H=G.props;var Z=G.config;var Q=G.isBigboard;var p=G.chapterData;G={};G=_.bb("ytPlayerStoryboardMetadata",(G.ytPlayerStoryboardMetadataBigboard=Q,G));return _.J("div",{class:G},_.J(_.k,{cond:Q,then:function(){return _.J(_.kI,null,_.J(OgA,{props:H,config:Z}),_.J(_.k,{cond:function(){a:{var l=H();var q=Z(),u=p(),B;if((q==null?0:q.activeChapter)&&((B=_.X(q==null?void 0:q.activeChapter,T1))==null?0:B.title))l=!0;else{q=_.I(vSW(u));for(q=q.next();!q.done;q=q.next()){l=(q=_.X(q.value,
o3x))&&AmW(l,q);break a}l=!1}}return l},
then:function(){return _.J(aao,{props:H,config:Z,isBigboard:!0,chapterData:p})}}))},
else:function(){return _.J(_.kI,null,_.J(aao,{props:H,config:Z,isBigboard:!0,chapterData:p}),_.J(OgA,{props:H,config:Z}))}}))},"Ng");
OgA=_.y(function(G){var H=G.props;var Z=G.config;G={};G=_.bb("ytPlayerStoryboardTimestamp",(G.ytPlayerStoryboardTimestampShorts=function(){return Z().isShortsPage},G.ytPlayerStoryboardTimestampIsHovering=function(){return H().isHovering||Z().isShortsPage&&!0},G));
return _.J("div",{class:G},_.J(_.kI,null,function(){return _.xef(NeR(H()))}))},"Og");
aao=_.y(function(G){var H=G.props;var Z=G.config;var Q=G.isBigboard;var p=G.chapterData;G={};Q=_.bb("ytPlayerStoryboardTitle",(G.ytPlayerStoryboardTitleBigboard=Q,G));return _.J("div",{class:Q},_.J(_.k,{cond:function(){return!Z().isShortsPage},
then:function(){return _.J(y3k,{props:H,activeChapter:function(){return Z().activeChapter},
chapterData:p})}}))},"Pg");
y3k=_.y(function(G){var H=G.props;var Z=G.activeChapter;var Q=G.chapterData;return _.J(_.kI,null,_.J(_.Cl,{each:function(){return vSW(Q())},
keyBy:"INDEX"},function(p){return _.J(_.kI,null,_.J(_.k,{cond:function(){return _.X(p(),o3x)&&AmW(H(),_.X(p(),o3x))},
then:function(){return _.J(oNa,{timedMarker:function(){return _.X(p(),o3x)}})}}))}),_.J(_.k,{cond:function(){var p;
return Z()&&((p=_.X(Z(),T1))==null?void 0:p.title)},
then:function(p){return _.J(_.Fe,{text:p,noPreWrap:!0})}}))},"Qg");
oNa=_.y(function(G){var H=G.timedMarker;return _.J(_.kI,null,_.J("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.J(_.ll,{icon:function(){return H().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.J(_.Fe,{text:function(){return H().label},
noPreWrap:!0}))},"Rg");_.mhq=_.y(function(G){var H=G.progressBarProps;var Z=G.playheadData;var Q=G.config;G=_.IA("yt-progress-bar");var p=_.IA("div"),l=_.IA("div"),q=_.I(_.Ty({width:0,left:0},void 0,"WloVn")),u=q.next().value,B=q.next().value,t=function(){l.value&&B(l.value.getBoundingClientRect())},D=function(){u().width<=0&&t();
return u()};
_.Bx("resize",t);var d=new Dh(D,function(){},function(){return 0},function(){},function(){},function(){}),e=function(){return H()};
q=_.I(_.Ty(!1,void 0,"u8BZZb"));var n=q.next().value,c=q.next().value;q=_.Hh(function(){c(!0);Q().position===2?setTimeout(function(){t()},100):t()});
var W=_.Hh(function(){c(!1);c3L(d,e)()}),M=_.Hh(function(W3){Q().doSeekOnClick&&tdh(d,e,Q)(W3);
return!1}),r=_.Hh(function(W3){dhD(d,e)(W3);
return!1}),w=_.Hh(function(W3){eIm(d,e)(W3);
return!1}),x=_.Hh(function(W3){Vdm(d,e,Q)(W3);
return!1}),U=_.Hh(function(W3){XP6(d,e,Q)(W3);
return!1}),R=_.Hh(function(){Tt6(d,e,Q)();
return!1}),L=_.Hh(function(){fa6(d,e,Q)();
return!1}),H3=_.Hh(function(){vNm(d,e,Q)();
return!1}),qX=_.Hh(function(W3){WIi(e)(W3);
return!1});
_.Bx("mousemove",zIa(d,e,Q));_.Bx("mouseup",KIt(d,e,Q));_.mR(function(){wzf(p.value);c(!1);t();KIt(d,e,Q)()});
var B3={};B3=_.bb("ytPlayerProgressBarHost",function(){return Q().className},(B3.ytPlayerProgressBarHostReadOnly=function(){return Q().disableScrubbing},B3.ytPlayerProgressBarHostHidden=function(){return Q().hideProgressBar&&!n()},B3.ytPlayerProgressBarHostLowerPlayer=function(){return Q().position===0},B3.ytPlayerProgressBarHostBottomEdge=function(){return Q().position===1},B3.ytPlayerProgressBarHostBottomInset=function(){return Q().position===2},B3.ytPlayerProgressBarHostCustom=function(){return Q().position===
3},B3));
var fW={},e2=_.bb("ytPlayerProgressBarBackground",(fW.ytPlayerProgressBarBackgroundHide=function(){return Q().position===2&&!n()&&!H().isDragging},fW));
fW={};fW=_.bb("ytPlayerProgressBarDragContainer",(fW.ytPlayerProgressBarDragContainerBottomEdge=function(){return Q().position===1},fW));
var $R={};$R=_.bb("ytPlayerProgressBarProgressBar",($R.ytPlayerProgressBarProgressBarInset=function(){return Q().position===2},$R.ytPlayerProgressBarProgressBarInsetMinimized=function(){return Q().position===2&&!n()&&!H().isDragging},$R));
var ie=function(){return Math.floor(Xzb(H())*100)};
return _.J("yt-progress-bar",{el:G,class:B3},_.J(_.k,{cond:function(){return Q().position===2},
then:function(){return _.J("div",{class:e2})}}),_.J("div",{el:p,
"on:click":M,"on:touchstart":r,"on:touchmove":x,"on:mouseenter":q,"on:mousedown":w,"on:mouseleave":W,"on:mousemove":U,"on:mouseup":L,"on:touchend":R,"on:touchcancel":H3,"on:keydown":qX,class:fW,role:"slider","aria-valuenow":ie,"aria-valuetext":function(){return ie()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return H().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Zg("SEEK_SLIDER")},_.J("div",{el:l,class:$R},_.J(uqm,{progressBarProps:H,config:Q,highContrast:function(){return!!Q().isInlinePlayback}}),_.J(_.k,{cond:function(){return Q().chapterData&&WZj(Q().chapterData)},
then:function(){return _.J(qio,{progressState:H,multiMarkersPlayerBarRenderer:function(){return Q().chapterData},
progressBarWidth:function(){return u().width}})},
else:function(){return _.J(Bta,{progressBarProps:H,config:Q})}}),_.J(J36,{progressBarProps:H,
playheadData:Z,interpolateDotPosition:function(){return Q().position!==2},
hidePlayhead:function(){return Q().playheadDotBehavior===1&&!n()}}))),_.J(wPt,{progressBarProps:H,
config:function(){return{activeChapter:aWf(H(),Q().chapterData),getProgressBarWidthPx:function(){return D().width},
isShortsPage:!!Q().isShortsPage,isInlinePlayer:!!Q().isInlinePlayback,useFadeInAnimation:!!Q().isInlinePlayback}},
progressBarWidthPx:function(){return u().width},
chapterData:function(){return Q().chapterData}}))},"Sg");
_.mhq.idomCompat=!0;Object.assign({},_.zTf(),{setState:function(){},
domMeasurements:{},appApi:_.$e2(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Uhh;
_.RIi=_.y(function(){var G,H=(G=_.vM(ESf().playerApi))!=null?G:void 0;G=_.I(_.Ty(!1,void 0,"Z9NQ1b"));var Z=G.next().value,Q=G.next().value;G=_.I(_.Ty(!1,void 0,"HoVJXe"));var p=G.next().value,l=G.next().value;G=_.I(_.Ty(!1,void 0,"DWCY3"));var q=G.next().value,u=G.next().value;G=_.I(_.Ty(!1,void 0,"g4C2Zd"));var B=G.next().value,t=G.next().value;G=_.I(_.Ty(0,void 0,"lmVfFb"));var D=G.next().value,d=G.next().value;G=_.I(_.Ty(0,void 0,"mFLbzb"));var e=G.next().value,n=G.next().value;G=_.I(_.Ty(!1,void 0,
"hQN4Wb"));var c=G.next().value,W=G.next().value;G=_.I(_.Ty(0,void 0,"WWU0fb"));var M=G.next().value,r=G.next().value;G=_.I(_.Ty(0,void 0,"MJ7LMd"));var w=G.next().value,x=G.next().value;G=_.I(_.Ty("",void 0,"hnomOe"));var U=G.next().value,R=G.next().value;G=_.I(_.Ty(-1,void 0,"ARe3pf"));var L=G.next().value,H3=G.next().value,qX=_.Kb(function(){var B3={controlsVisible:Z(),isOverlayHidden:p(),shouldWaitToHideControls:q(),isDragging:B(),isHovering:c(),videoDuration:M(),playedTime:w(),videoId:U(),draggedTime:e(),
hoveredTime:D(),playerState:L()};return Object.assign({},_.zTf(),B3,{domMeasurements:{},setState:function(fW){fW.controlsVisible!==void 0&&Q(fW.controlsVisible);fW.isOverlayHidden!==void 0&&l(fW.isOverlayHidden);fW.shouldWaitToHideControls!==void 0&&u(fW.shouldWaitToHideControls);fW.isDragging!==void 0&&t(fW.isDragging);fW.isHovering!==void 0&&W(fW.isHovering);fW.draggedTime!==void 0&&n(fW.draggedTime);fW.hoveredTime!==void 0&&d(fW.hoveredTime);fW.videoDuration!==void 0&&r(fW.videoDuration);fW.playedTime!==
void 0&&x(fW.playedTime);fW.videoId!==void 0&&R(fW.videoId);fW.playerState!==void 0&&H3(fW.playerState)},
appApi:_.$e2(),playerApi:H})},void 0,"Au4PIf");
_.yP(function(){H==null||H.addEventListener("onVideoProgress",Pm2(qX));H==null||H.addEventListener("onVideoDataChange",jFj(qX));H==null||H.addEventListener("onStateChange",KZj(qX))});
_.oM(function(){if(H==null?0:H.isReady())H==null||H.removeEventListener("onVideoProgress",Pm2(qX)),H==null||H.removeEventListener("onVideoDataChange",jFj(qX)),H==null||H.removeEventListener("onStateChange",KZj(qX))});
return _.J("desktop-shorts-player-controls",null,_.J(Uhh,{playerControlsProps:qX}))},"Ug");
Uhh=_.y(function(G){var H=G.playerControlsProps;return _.J("div",{class:"desktopShortsPlayerControlsHost"},_.J(_.mhq,{progressBarProps:H,config:function(){return{isShortsPage:!0,hideProgressBar:H().videoDuration<30&&H().playerState!==2&&!H().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Vg");_.Nti=_.y(function(G){function H(B3){B3!==0||d()?B3>50&&(d()||!n())?(e(!1),c(!0)):B3<=50&&(d()||n())&&(e(!1),c(!1)):e(!0)}
function Z(B3,fW){var e2;return _.S(function($R){if($R.nextAddress==1)return $R.yield(_.Gk(),2);e2=$R.yieldResult;fW&&e2?(e2.unMute(!0),B3&&(FZU(B3,e2.getVolume()),M(e2.getVolume()))):e2&&(e2.mute(!0),B3&&FZU(B3,0));_.K0($R)})}
function Q(B3){var fW,e2;return _.S(function($R){if($R.nextAddress==1)return $R.yield(_.Gk(),2);fW=$R.yieldResult;e2=50;fW&&(e2=fW.getVolume(),fW.isMuted()?FZU(B3,0):FZU(B3,e2));M(e2);_.K0($R)})}
var p=G.orientation;G=_.IA("desktop-shorts-volume-controls");var l=_.IA("button"),q=_.qK("input"),u=_.I(_.Ty(!1,void 0,"MvN0Tc")),B=u.next().value,t=u.next().value,D=_.I(_.Ty(!1,void 0,"aSjsEb"));u=D.next().value;D=D.next().value;var d=u,e=D;D=_.I(_.Ty(!0,void 0,"FUh46d"));u=D.next().value;D=D.next().value;var n=u,c=D;u=_.I(_.Ty(50,void 0,"yPke4d"));var W=u.next().value,M=u.next().value;u=_.Kb(function(){var B3=d();return _.V("web_shorts_keyboard_enable_mute_shortcut")?B3?_.Zg("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Zg("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):B3?_.Zg("UNMUTE_VOLUME",void 0,"Unmute"):_.Zg("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
D=_.Kb(function(){var B3=d(),fW=n();return{sources:[{clientResource:{imageName:B3?_.V("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":fW?_.V("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.V("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var r=_.Kb(function(){var B3=W();return d()?B3+"% volume muted":B3+"% volume"},void 0,"xZsRmc"),w=_.Kb(function(){return p()==="vertical_down"},void 0,"FVqYmb");
_.mR(function(){function B3(){t(!0)}
function fW(){t(!1)}
q&&q.value&&(q.value.addEventListener("focus",B3),q.value.addEventListener("focusout",fW),Q(q.value).then(function(){H(Number(bkM(q.value)))}));
l&&l.value&&(l.value.addEventListener("focus",B3),l.value.addEventListener("focusout",fW));_.oM(function(){var e2;q==null||(e2=q.value)==null||e2.removeEventListener("focus",B3);var $R;q==null||($R=q.value)==null||$R.removeEventListener("focusout",fW);var ie;l==null||(ie=l.value)==null||ie.removeEventListener("focus",B3);var W3;l==null||(W3=l.value)==null||W3.removeEventListener("focusout",fW)})});
var x=_.Hh(function(){if(q&&q.value){var B3=Number(bkM(q.value));You(B3);M(B3);q.value.style.setProperty("--gradient-percent",B3+"%");H(B3)}return!1}),U=_.Hh(function(){q&&q.value&&(Z(q.value,d()),e(!d()));
return!1}),R={},L={},H3={},qX={};
return _.J("desktop-shorts-volume-controls",{"on:pointerleave":_.Hh(function(){t(!1)}),
"on:pointerenter":_.Hh(function(){t(!0)}),
class:_.bb("ytdDesktopShortsVolumeControlsHost",(R.ytdDesktopShortsVolumeControlsHostVertical=w,R.ytdDesktopShortsVolumeControlsHostModern=_.V("web_shorts_modern_controls"),R.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.V("web_shorts_modern_controls")&&B()},R)),
el:G},_.J(_.k,{cond:function(){return!w()},
then:function(){var B3={};return _.J("div",{class:_.bb("ytdDesktopShortsVolumeControlsBackgroundScrim",(B3.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=B,B3.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.V("web_shorts_modern_controls")&&B()},B3))})}}),_.J("div",{class:_.bb((L.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=w,L))},_.J("button",{"aria-label":u,
title:u,el:l,"on:click":U,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},D?_.J(_.ib,{data:D,alt:u,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.J("div",{class:_.bb("ytdDesktopShortsVolumeControlsSliderContainer",(H3.ytdDesktopShortsVolumeControlsSliderContainerExpanded=B,H3.ytdDesktopShortsVolumeControlsSliderContainerVertical=w,H3.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=w,H3.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return B()&&
w()},H3))},_.J("input",{"aria-label":_.Zg("VOLUME"),
title:_.Zg("VOLUME"),el:q,"on:input":x,type:"range",class:_.bb("ytdDesktopShortsVolumeControlsNativeSlider",(qX.ytdDesktopShortsVolumeControlsNativeSliderModern=_.V("web_shorts_modern_controls"),qX)),id:"volume-input",role:"slider","aria-valuenow":W,"aria-valuetext":r,"aria-valuemin":0,"aria-valuemax":100})))},"Wg");_.A3h=_.y(function(G){var H=G.data;var Z=G.extractOverlay;G={};return _.J("player-disclosure-view-model",{class:_.bb("ytwPlayerDisclosureViewModelHost",(G.ytwPlayerDisclosureViewModelExtractOverlay=function(){return Z==null?void 0:Z()},G))},_.J(_.S8,{command:function(){return H().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.J(_.k,{cond:function(){return H().iconName},
then:function(Q){return _.J(_.ll,{icon:Q})}}),_.J("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return H().text}),_.J(_.k,{cond:function(){return H().showEndChevron},
then:function(){return _.J(_.ll,{icon:"CHEVRON_RIGHT"})}})))},"Xg");var xh8=_.y(function(G){var H=G.data;var Z=G.overlayDensity;G={};return _.J("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.J(_.SP,{data:function(){return H().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(Q){var p=Q.data;
return _.J(_.U5,{data:function(){return(Z==null?void 0:Z())===1?Object.assign({},p(),{avatar:{avatarViewModel:Object.assign({},_.X(p().avatar,_.Xu),{avatarImageSize:"AVATAR_SIZE_M"})}}):p()}})}}),_.J(_.SP,{data:function(){return H().avatarStackViewModel}},{avatarStackViewModel:function(Q){return _.J(_.Rr,{data:Q.data})}}),_.J(_.Fe,{className:_.bb("ytReelChannelBarViewModelChannelName",(G.ytReelChannelBarViewModelChannelNameLarge=function(){return(Z==null?void 0:Z())===1},G)),
text:function(){return H().channelName},
linkInheritColor:!0,userInput:!0}),_.J("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.J(_.SP,{data:function(){return H().subscribeButtonViewModel}},{subscribeButtonViewModel:function(Q){var p=Q.data;
return _.J(_.mO,{data:function(){return(Z==null?void 0:Z())===1?Object.assign({},p(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},p().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):p()},
isOverlay:!1})},
buttonViewModel:_.kg})),_.J("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.J(_.SP,{data:function(){var Q,p;return(p=_.X((Q=H())==null?void 0:Q.sponsorButtonViewModel,Egx))==null?void 0:p.sponsorButton}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Yg");var LIj=_.y(function(G){var H=function(){var p;return((p=G.overlayDensity)==null?void 0:p.call(G))===1},Z=function(){return H()?22:16},Q={};
return _.J("yt-reel-multi-format-link-view-model",{class:_.bb("ytReelMultiFormatLinkViewModelHost",(Q.ytReelMultiFormatLinkViewModelHostTall=!0,Q.ytReelMultiFormatLinkViewModelHostLarge=function(){return H()},Q))},_.J(_.S8,{ariaLabel:function(){return G.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return G.data().command}},_.J("h3",{class:function(){return H()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.J(_.k,{cond:function(){return G.data().icon},
then:function(p){return _.J(_.ib,{data:p,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:Z})}}),_.J(_.Fe,{text:function(){return G.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Zg");
LIj.idomCompat=!0;var ENo=_.y(function(G){var H=G.data;var Z=G.overlayDensity;var Q=G.extractOverlay;var p=_.IA("yt-shorts-suggested-action-view-model");G=_.I(_.Ty(!1,void 0,"S60Hzc"));var l=G.next().value,q=G.next().value;G=_.I(_.Ty(!1,void 0,"O76chf"));var u=G.next().value,B=G.next().value,t=function(){return H().isMultiLineSa},D=_.gu(VZM,function(){var R,L;
return(L=(R=H().toggleableContent)==null?void 0:R.entityKey)!=null?L:""}),d=function(){var R,L,H3;
return(H3=H().toggleableContent)!=null&&H3.entityKey?(L=(R=D())==null?void 0:R.value)!=null?L:!1:!1},e=function(){var R,L,H3,qX,B3,fW,e2,$R,ie,W3,DT;
return H().toggleableContent?d()?(R=H().toggleableContent)==null?void 0:R.toggledData:(L=H().toggleableContent)==null?void 0:L.untoggledData:{primaryText:($R=(H3=H().defaultContent)==null?void 0:H3.primaryText)!=null?$R:H().text,secondaryText:(qX=H().defaultContent)==null?void 0:qX.secondaryText,onTapCommand:(ie=(B3=H().defaultContent)==null?void 0:B3.onTapCommand)!=null?ie:H().onTapCommand,icon:(W3=(fW=H().defaultContent)==null?void 0:fW.icon)!=null?W3:H().icon,image:(DT=(e2=H().defaultContent)==
null?void 0:e2.image)!=null?DT:H().image}},n=function(){return t()?H().trailingTapTarget:void 0},c=function(R,L){return function(){return l()?L:R}},W=function(){return{leadingSection:c("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(Z==null?void 0:Z())===1?c("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):c("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:c("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:c("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:c("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
G={};G=_.bb((G.ytShortsSuggestedActionViewModelStaticHost=function(){return!t()},G.ytShortsSuggestedActionViewModelDynamicHost=t,G.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return t()&&u()},G.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return t()&&!u()},G.ytShortsSuggestedActionViewModelExtractOverlay=function(){return Q==null?void 0:Q()},G));
_.mR(function(){if(t()){var R=0,L;if((L=H().animationParams)==null?0:L.shouldExpand){var H3,qX;R=((qX=(H3=H().animationParams)==null?void 0:H3.expansionDelaySecs)!=null?qX:0)*1E3}var B3,fW=((B3=H().animationParams)==null?0:B3.shouldExpand)?setTimeout(function(){q(!0)},R):void 0,e2,$R;
R=((e2=H().animationParams)==null?0:e2.visibilityDelaySecs)?(($R=H().animationParams)==null?NaN:$R.visibilityDelaySecs)*1E3:0;var ie=setTimeout(function(){B(!0)},R);
_.oM(function(){fW&&clearTimeout(fW);clearTimeout(ie)})}});
var M=function(R){_.zt(R,Object.assign({},{form:{element:p.value}}))},r=_.Hh(function(){var R,L=(R=e())==null?void 0:R.onTapCommand;
L&&M(L)}),w=_.Hh(function(){var R,L;
if(R=(L=n())==null?void 0:L.onTapCommand)return M(R),!1}),x=_.pI({"vertical-align":"bottom",
"border-radius":function(){var R;return t()?((R=H().defaultContent)==null?0:R.isCircleImage)?"50%":"4px":"0px"},
width:function(){var R,L,H3;return t()&&((R=H().defaultContent)==null?0:R.imageSize)?((H3=(L=H().defaultContent)==null?void 0:L.imageSize)!=null?H3:24)+"px":null},
height:function(){var R,L,H3;return t()&&((R=H().defaultContent)==null?0:R.imageSize)?((H3=(L=H().defaultContent)==null?void 0:L.imageSize)!=null?H3:24)+"px":null}}),U={};
return _.J("yt-shorts-suggested-action-view-model",{class:G,el:p},_.J("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.J("button",{class:_.bb(function(){return t()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var R;
return(R=H().useFullRoundedBorder)!=null&&R?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!n()&&t()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":t()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var R;
return(R=H().disableFixedHeight)!=null&&R?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(U.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(Z==null?void 0:Z())===1},U.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return Q==null?void 0:Q()},U)),
"on:click":r},_.J(_.u1,{model:{color:4}}),_.J("div",{class:_.bb(function(){return t()?W().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.J(_.k,{cond:function(){var R;
return(R=e())==null?void 0:R.image},
then:function(R){return _.J(_.ib,{data:R,alt:"",className:function(){return t()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:x})}}),_.J(_.k,{cond:function(){var R,L;
return(R=e())==null?void 0:(L=R.icon)==null?void 0:L.iconType},
then:function(R){return _.J(_.ll,{icon:R,active:d,className:function(){return t()?l()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.J("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.J(_.k,{cond:function(){var R;
return(R=e())==null?void 0:R.primaryText},
then:function(R){var L={};return _.J("div",{class:_.bb("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(L.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(Z==null?void 0:Z())===1},L))},_.J(_.Fe,{text:R}))}}),_.J(_.k,{cond:function(){var R;
return(R=e())==null?void 0:R.secondaryText},
then:function(R){return _.J("div",{class:function(){return W().secondaryText()}},_.J(_.Fe,{text:R}))}}))),_.J(_.k,{cond:n,
then:function(R){return _.J("div",{class:_.bb(function(){return W().trailingSection()},function(){var L,H3;
return(Q==null?void 0:Q())&&((H3=(L=W()).trailingSectionExtractOverlay)==null?void 0:H3.call(L))||""}),
"aria-label":function(){var L;return(L=R().a11yLabel)!=null?L:""},
"on:click":w,role:"button",tabindex:0},_.J(_.u1,{model:{color:4}}),_.J(_.ll,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"$g");var Yih=_.y(function(G){var H=G.data;var Z=G.overlayDensity;var Q=_.IA("yt-shorts-video-title-view-model");G=_.Hh(function(q){if(_.eP(_.du(q),Q.value,["A".toString()]))return!1;(q=H().truncatedTextOnTapCommand)&&_.zt(q);return!1});
var p={},l={};return _.J("yt-shorts-video-title-view-model",{el:Q,class:_.bb("ytShortsVideoTitleViewModelHost",(p.ytShortsVideoTitleViewModelHostClickable=function(){return!!H().truncatedTextOnTapCommand},p)),
"on:click":G},_.J("h2",{class:_.bb("ytShortsVideoTitleViewModelShortsVideoTitle",(l.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(Z==null?void 0:Z())===1},l))},_.J(_.Fe,{text:function(){return H().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(Z==null?void 0:Z())===1}})))},"ah");_.FIt=_.y(function(G){var H=G.data;var Z=G.overlayDensity;var Q=G.extractOverlay;var p=function(){return(Z==null?void 0:Z())===1};
return _.J("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.J(_.SP,{data:function(){return H().metadataItems}},{badgeViewModel:function(l){l=l.data;
return _.J("div",{class:_.bb(function(){return p()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.J(_.tz,{data:l}))},
playerDisclosureViewModel:function(l){l=l.data;return _.J("div",{class:_.bb(function(){return p()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.J(_.A3h,{data:l,
extractOverlay:Q}))},
shortsSuggestedActionViewModel:function(l){l=l.data;return _.J("div",{class:_.bb(function(){return p()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.J(ENo,{data:l,
overlayDensity:Z,extractOverlay:Q}))},
reelChannelBarViewModel:function(l){l=l.data;var q={};return _.J("div",{class:_.bb("ytReelMetapanelViewModelMetapanelItem",(q.ytReelMetapanelViewModelExpansive=function(){return p()},q))},_.J(xh8,{data:l,
overlayDensity:Z}))},
reelMultiFormatLinkViewModel:function(l){l=l.data;var q={};return _.J("div",{class:_.bb("ytReelMetapanelViewModelMetapanelItem",(q.ytReelMetapanelViewModelExpansive=function(){return p()},q))},_.J(LIj,{data:l,
overlayDensity:Z}))},
shortsVideoTitleViewModel:function(l){l=l.data;var q={};return _.J("div",{class:_.bb("ytReelMetapanelViewModelMetapanelItem",(q.ytReelMetapanelViewModelExpansive=function(){return p()},q))},_.J(Yih,{data:l,
overlayDensity:Z}))},
reelSoundMetadataViewModel:function(l){l=l.data;var q={};return _.J("div",{class:_.bb("ytReelMetapanelViewModelMetapanelItem",(q.ytReelMetapanelViewModelExpansive=function(){return p()},q))},_.J(_.Yvm,{data:l,
overlayDensity:Z}))},
toggleButtonViewModel:function(l){l=l.data;var q={};return _.J("div",{class:_.bb("ytReelMetapanelViewModelMetapanelItem",(q.ytReelMetapanelViewModelExpansive=function(){return p()},q))},_.J(_.hf,{data:l}))}}))},"bh");var bga=_.y(function(G){var H=_.oK(G,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),Z=H.size,Q=H.onTap,p=H.disabled,l=H.tooltipText;return _.J("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.J(_.tf,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:Z(),disabled:p(),tooltipText:l(),onTap:Q}},
iconName:G.iconType}))},"ch"),G_k=_.y(function(G){function H(D){D.stopPropagation();
D.code==="ArrowUp"?(D.preventDefault(),sCb(u.value)):D.code==="ArrowDown"?(D.preventDefault(),Zjb(u.value)):D.code==="KeyM"?GrU():(D.code==="KeyK"||D.code==="Space")&&HjM(B())}
var Z=_.oK(G,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});G=Z.previousButtonDisabled;var Q=Z.nextButtonDisabled,p=Z.data,l=Z.playabilityStatus,q=Z.previewThumbnail,u=_.IA("ytd-shorts-miniplayer-overlay"),B=_.SQ(_.C13),t;_.yP(function(){(t=_.N4(u.value))&&t.addEventListener("keydown",H)});
_.oM(function(){var D;(D=t)==null||D.removeEventListener("keydown",H)});
Z=function(){var D,d,e;return(D=p())==null?void 0:(d=D.reelPlayerOverlayRenderer)==null?void 0:(e=d.likeButton)==null?void 0:e.likeButtonRenderer};
return _.J("ytd-shorts-miniplayer-overlay",{el:u,class:"ytdShortsMiniplayerOverlayHost"},_.J("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.pI({"background-image":function(){var D=q();return D?'url("'+_.At(D.thumbnails)+'")':""}})}),_.J("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.J("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.J(bga,{iconType:function(){var D=B();
return D===2||D===-1||D===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){HjM(B())},
tooltipText:function(){var D=B();return D===1||D===3?_.Zg("PLAYER_LABEL_PAUSE"):_.Zg("PLAYER_LABEL_PLAY")}}),_.J(_.Nti,{orientation:"horizontal_right"})),_.J("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.J(bga,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:G,onTap:function(){sCb(u.value)},
tooltipText:_.Zg("PREVIOUS_VIDEO_LABEL")}),_.J(bga,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:Q,onTap:function(){Zjb(u.value)},
tooltipText:_.Zg("NEXT_VIDEO_LABEL")}),_.V("web_shorts_pip_like_button")?_.J("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.J($Ui,{buttonTooltipPosition:"left",data:Z,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.J("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.J(_.k,{cond:function(){var D,d;return _.X((D=p())==null?void 0:(d=D.reelPlayerOverlayRenderer)==null?void 0:d.metapanel,
Af2)},
then:function(D){return _.J("div",{class:_.bb("ytdShortsMiniplayerOverlayInteractive")},_.J(_.FIt,{data:D}))}})),_.J("div",{class:_.bb("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var D;return!((D=p())==null||!D.adsOverlay)||l()&&!aCf(l())}},_.J("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.J(_.RIi,null)))),_.J(_.k,{cond:function(){var D=p(),d,e;
D=_.X(D==null?void 0:(d=D.adsOverlay)==null?void 0:(e=d.fulfillmentContent)==null?void 0:e.fulfilledLayout,MG2);return _.X(D==null?void 0:D.renderingContent,CO4)},
then:function(D){return _.J("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.J(Yf_,{data:D}))}}))},"eh");var QCX=_.y(function(){var G=_.I(_.Ty(new _.M4(NaN,NaN),void 0,"hq9Bjf")),H=G.next().value,Z=G.next().value;G=_.I(_.Ty(!1,void 0,"Mu3aZc"));var Q=G.next().value,p=G.next().value,l=_.I(_.Ty(!1,void 0,"LGtoFb"));G=l.next().value;var q=l.next().value,u=_.tp().resolve(_.WM).miniplayerPropSignalMap[0],B=u.data,t=u.shortsData,D=u.nextButtonDisabled,d=u.shortsPreviewThumbnail,e=u.previousButtonDisabled,n=u.externalPlaylistData;l=u.toastData;var c=u.playabilityStatus,W=u.isDisabled,M=u.playerVe,r=u.closeVe;
u=_.SQ(_.NB);_.gN("yt-pip-window-resized",function(R){Z(R)});
_.gN("yt-activate-pip-miniplayer",function(){return _.S(function(R){q(!0);_.K0(R)})});
var w=function(){var R;return!((R=n())==null||!R.contents)&&Q()},x=function(){var R=H(),L=!!B(),H3=w();
R=R.clone();L&&(R.height-=76);H3&&(R.height-=285);return R},U=function(){p(!Q())};
_.yN(function(){var R=M(),L=_.$k(11),H3=_.Va(11);L&&H3&&R&&(_.je(L,H3,R),H3=r())&&(_.PA(L,R,[H3]),_.w8(L,[H3]))},"fHkmfb");
return _.J("ytd-pip-container",{class:"ytdPipContainerHost"},_.J(_.k,{cond:G,then:function(){return _.J(_.las,{isDisabled:W,playabilityStatus:c,size:x})}}),_.J(_.k,{cond:B,
then:function(){return _.J(_.Q1q,{data:B,expanded:Q,onExpandClick:U,playlistData:n})}}),_.J(_.k,{cond:w,
then:function(){return _.J("div",{class:"ytdPipContainerPlaylistPanel"},_.J(_.nYj,{data:n,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.J(_.k,{cond:u,
then:function(){return _.J(G_k,{data:t,nextButtonDisabled:D,previousButtonDisabled:e,playabilityStatus:c,previewThumbnail:d})}}),_.J("div",{class:"ytdPipContainerToast"},_.J(_.gNk,{toastData:l})))},"gh");var eh=function(G,H,Z){var Q=this;this.pipController=G;this.JSC$18997_clientRoot=H;this.JSC$18997_pageRequestService=Z;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=dee();this.watchPipEnabled=_.V("web_watch_pip");this.shortsPipEnabled=_.V("web_shorts_pip");this.JSC$18997_watchWhileEnabled=_.V("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};
this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.wU(_.mm(),ji2,function(p){Q.isSingleOptionSurveyActive=p});
this.JSC$18997_onPlayerPlayVideo=this.JSC$18997_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);_.p1(_.sS.getInstance(),this.miniplayerServiceActionMap,this.JSC$18997_clientRoot);G.pictureInPictureSupported()&&_.yR("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},epd,SNo,lvq,uN8,BMD,a1p;
eh.prototype.handleMediaSessionPipActivation=function(){var G=this,H;return _.S(function(Z){_.PN().mediaSessionPipActivation=!0;H=_.tp().resolve(_.o0);return H.isOnWatch()&&G.watchPipEnabled?(_.PN().watchPipActivation=!0,_.HTD(G,H.data),Z.jumpTo(0)):H.isOnShorts()&&G.shortsPipEnabled?(_.PN().shortsPipActivation=!0,_.spc(G),Z.jumpTo(0)):G.isMiniplayerActive()&&G.watchPipEnabled&&!G.watchWhileMode?Z.yield(ZTc(G),0):Z.jumpTo(0)})};
var ZTc=function(G){var H,Z,Q,p;return _.S(function(l){if(l.nextAddress==1)return H=!G.miniplayerToPipMode,Z=G.playerElement,Q=G.miniplayerData,p=G.watchResponse,l.yield(G.deactivate(),2);if(l.nextAddress!=3)return H?(_.PN().mediaSessionPipActivation=!0,_.PN().watchPipActivation=!0):_.PN().miniplayerButtonActivation=!0,l.yield(G.activate(Z,Q,p),3);G.miniplayerToPipMode=H;_.K0(l)})};
eh.prototype.onDownloadedVideoDeleted=function(G){var H,Z=_.X((H=this.miniplayerData)==null?void 0:H.watchEndpoint,_.hZ),Q,p;Z&&((Q=this.watchResponse)==null?void 0:(p=Q.playerResponse)==null?void 0:p.offlineState)!==void 0&&(H=Z.videoId)&&G&&H===G&&this.close()};
eh.prototype.onShowMiniplayerCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e;return _.S(function(n){switch(n.nextAddress){case 1:return Z=_.X(G,rPa),p=(Q=Z)==null?void 0:Q.miniplayerCommand,l=_.X(p,_.hZ),p&&l&&!H.active?n.yield(_.oI.getInstance(),2):n.return();case 2:return q=n.yieldResult,n.yield((u=q)==null?void 0:u.get("yt-miniplayer-shown-video-id"),3);case 3:B=n.yieldResult;t=l.videoId;if(!t||B===t)return n.return();D=_.tp().resolve(_.o0);if(D.isOnWatch())return _.Rp(Error("Tj")),n.return();
d={channelItem:{externalId:btoa(t)}};H.readyToResumeVe=_.bl(121253,void 0,void 0,d);_.PN().showMiniplayerCommandActivation=!0;return n.yield(_.y2x(H,p,!0),4);case 4:return H.active&&(_.nD(H,{readyToResumeVe:H.readyToResumeVe,isReadyToResume:!0}),H.isReadyToResume=!0),n.yield((e=q)==null?void 0:e.set("yt-miniplayer-shown-video-id",l.videoId),5);case 5:H.readyToResumeVe=void 0,_.K0(n)}})};
eh.prototype.init=function(G){this.miniplayerEl?_.Rp(new _.C$("MiniplayerService already initialized.")):this.miniplayerEl=G};
eh.prototype.isInitialized=function(){var G=!!this.miniplayerEl;G||_.Rp(new _.C$("MiniplayerService used before initialized."));return G};
_.HTD=function(G,H){if(G.isInitialized()){var Z=_.XW(H.response,!1,H.playerResponse),Q=_.tp().resolve(_.o0).getPlayerFromWatch();_.PN().currentEndpoint=Z.watchEndpoint||null;G.activate(Q,Z,H)}};
_.spc=function(G){if(G.isInitialized()){var H=_.tp().resolve(_.o0).getPlayerFromShorts();G.activate(H)}};
epd=function(G,H){var Z;(Z=!G.isInitialized())||(Z=_.tp().resolve(_.o0).isOnWatch()&&G.watchPipMode,Z=!(G.isMiniplayerActive()&&(_.PN().userActivation||_.PN().lockupActivation||Z)));if(Z)return!1;Qpc(G,H)?_.k2(G):a1p(G,H);return G.watchPipMode?!_.tp().resolve(_.o0).isOnWatch():!0};
eh.prototype.isMiniplayerActive=function(){return this.active};
var Qpc=function(G,H){var Z;H=(Z=_.X(H,_.hZ))==null?void 0:Z.videoId;var Q,p;G=(p=_.X((Q=G.miniplayerData)==null?void 0:Q.watchEndpoint,_.hZ))==null?void 0:p.videoId;return H!=null&&H===G};
eh.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.N5(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.AZ(this.miniplayerEl,"yt-navigate-home-action"))};
_.y2x=function(G,H,Z,Q){Z=Z===void 0?!1:Z;var p,l,q;return _.S(function(u){switch(u.nextAddress){case 1:if(G.active){u.jumpTo(2);break}p=_.tp().resolve(_.o0);if(q=(l=G.playerElement)!=null?l:p.getPlayerFromWatch()){u.jumpTo(3);break}return u.yield(_.tp().resolve(_.LI),4);case 4:q=p.getPlayerFromWatch();case 3:if(!q){_.Rp(Error("Vj"));u.jumpTo(2);break}return u.yield(G.activate(q,Q),2);case 2:return G.active?u.yield(a1p(G,H,Z),0):u.return()}})};
eh.prototype.activate=function(G,H,Z){var Q=this,p,l,q,u,B,t,D,d,e;return _.S(function(n){switch(n.nextAddress){case 1:if(!Q.isInitialized())return n.return();if(!G)return _.Rp(Error("Vj")),n.return();if(_.bnw()||Q.isMiniplayerActive())var c=!0;else c=_.PN().watchPipActivation||_.PN().watchWhileActivation,_.tp().resolve(_.o0).isOnWatch()&&!c?(_.Rp(new _.C$("miniplayer activated on watch page")),c=!0):c=_.PN().watchWhileActivation?Q.userDeactivatedWatchWhile||!!document.pictureInPictureElement||V3f():
!1;if(c)return F5_(),n.return();p=_.PN().mediaSessionPipActivation;l=_.PN().shortsPipActivation;q=_.PN().watchPipActivation;B=(u=_.PN().watchWhileActivation)||q;t=q||l;if(!Q.pictureInPictureEnabled()||!t){n.jumpTo(2);break}return n.yield(pWi(Q,p),3);case 3:if(!n.yieldResult)return _.Rp(Error("Uj")),F5_(),n.return();case 2:return Q.setActive(!0),Q.watchResponse=Z,Q.playerElement=G,Q.updateMiniplayerData(H),n.yield(lvq(Q,G),4);case 4:if(!Q.active)return _.Rp(new _.C$("miniplayer deactivated during activation")),
Q.removePlayerListeners(),n.return();c=_.tp().resolve(_.H9);c.addEventListener("yt-navigate",_.pH(Q,Q.onPlaylistNavigate));c.addEventListener("yt-playlist-data-updated",_.pH(Q,Q.JSC$18997_onPlaylistDataUpdated));Q.JSC$18997_onPlaylistDataUpdated();F5_();Q.JSC$18997_watchWhileEnabled&&_.gJt(Q,u);Q.pictureInPictureEnabled()&&Q.shortsPipEnabled&&(Q.shortsPipMode=l,_.mm().dispatch(yJ2(Q.shortsPipMode)));Q.pictureInPictureEnabled()&&Q.watchPipEnabled&&(Q.watchPipMode=q,_.XqR(Q.handleMediaSessionPipActivation));
Q.player&&(D=Q.player.getPlayerState(),d=D===1,_.mm().dispatch(YU4(D)),_.xk(Q.miniplayerEl,"yt-miniplayer-play-state-changed",[d]),_.PN().isVideoPlaying=d);_.xk(Q.miniplayerEl,"yt-miniplayer-endpoint-changed");IvL(Q);_.qND(Q);if(Q.shortsPipMode||Q.watchPipMode)n=n.yield(_.AZ(Q.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{c=n.yield;var W=_.AZ(Q.miniplayerEl,"yt-activate-miniplayer",[B])[0];n=c.call(n,W,6)}return n;case 6:if(Q.watchResponse){c=Q.getScreenLayer();W=_.$k(0);var M=Ss3(0);W&&M&&
(_.cf(W,M,c),c===0&&IRU(void 0,0))}SNo(Q);uN8(Q,!0);(e=Q.getPlayerElement())==null||e.focusOnPlayer();_.K0(n)}})};
eh.prototype.updateMiniplayerData=function(G){this.miniplayerData=G;_.nD(this,{data:G})};
_.qND=function(G){var H,Z,Q=((H=G.miniplayerData)==null?void 0:(Z=H.miniplayerRenderer)==null?void 0:Z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";H=G.watchWhileMode||G.watchPipMode?Q&&!_.tp().resolve(_.o0).isOnWatch():Q;_.nD(G,{isDisabled:H});var p,l;Z=_.X((p=G.miniplayerData)==null?void 0:(l=p.miniplayerRenderer)==null?void 0:l.minimizedEndpoint,_.Pe);H&&Z&&_.tp().resolve(_.On).openSheet({openPopupActionCommand:{openPopupAction:Z}},G.miniplayerEl)};
SNo=function(G){if(G.watchResponse&&!BMD(G)){var H,Z=(H=G.watchResponse.playerResponse)==null?void 0:H.trackingParams;Z&&(_.nD(G,{expandVe:_.bl(35989),closeVe:_.bl(34699),readyToResumeCloseVe:_.bl(131070),repositionVe:_.bl(226204),resizeVe:_.bl(226205)}),_.nD(G,{playerVe:_.BT(Z)}))}};
lvq=function(G,H){return _.S(function(Z){if(Z.nextAddress==1)return H.preparePlayer(),Z.yield(H.getPlayerPromise(),2);G.player=Z.yieldResult;G.player&&(G.player.addEventListener("onPlayVideo",G.JSC$18997_onPlayerPlayVideo),G.player.addEventListener("onCloseMiniplayer",G.onPlayerCloseMiniplayer),G.player.addEventListener("onExpandMiniplayer",G.onPlayerExpandMiniplayer),G.player.addEventListener("onStateChange",G.onPlayerStateChange));_.K0(Z)})};
_.g=eh.prototype;_.g.JSC$18997_onPlayerPlayVideo=function(G){var H=G.sessionData&&"autonav"in G.sessionData,Z;G.sessionData&&G.sessionData.itct&&(Z=G.sessionData.itct);var Q=G.watchEndpoint;H=Q&&H?_.mG3(Q,Z):_.R5(G.videoId,G.listId||void 0,Z);G.sessionData&&_.aO(_.X(H.commandMetadata,_.HA).url,G.sessionData);a1p(this,H)};
_.g.onPlayerExpandMiniplayer=function(){_.k2(this)};
_.g.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.g.onPlayerStateChange=function(){if(this.player){var G=this.player.getPlayerState(),H=G===1;_.mm().dispatch(YU4(G));_.mm().dispatch(_.GKw(G));_.xk(this.miniplayerEl,"yt-miniplayer-play-state-changed",[H]);_.PN().isVideoPlaying=H;if(G===0){H=!_.tP.getInstance().isAutoplaySetExplicitly();var Z,Q,p,l,q,u,B=(Z=this.watchResponse.response)==null?void 0:(Q=Z.contents)==null?void 0:(p=Q.twoColumnWatchNextResults)==null?void 0:(l=p.autoplay)==null?void 0:(q=l.autoplay)==null?void 0:(u=q.autoplayExplicitChoiceDialogRenderer)==
null?void 0:u.confirmDialogRenderer;H&&B&&this.player.setAutonavState(1)}G===0&&this.watchWhileMode&&this.deactivate()}};
_.g.onPlaylistNavigate=function(G,H){var Z=this,Q,p,l,q,u,B,t;return _.S(function(D){if(D.nextAddress==1){if(!_.X(H.endpoint,_.hZ))return D.return();_.PN().currentEndpoint=H.endpoint;_.xk(Z.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.tp().resolve(_.o0).isOnWatch()&&(Z.watchWhileMode||Z.watchPipMode))return D.return();G.stopPropagation();(l=(p=_.X((Q=H.endpoint)==null?void 0:Q.commandMetadata,_.HA))==null?void 0:p.url)&&H.tempData&&!_.oN.isEmpty(H.tempData)&&_.aO(l,H.tempData);q={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};u=new GSR(function(){return Z.getPlayerElement()},q,{layer:Z.getScreenLayer()});
B=function(d){u.processChunk({endpoint:H.endpoint,data:d})};
JLq(Z);Z.miniplayerFetchRequest=tyA(Z,H.endpoint,B);_.XV(D,2);return D.yield(Z.miniplayerFetchRequest,4)}if(D.nextAddress!=2)return t=D.yieldResult,k_6(Z,t),_.Za(D,0);_.Wg(D);_.K0(D)})};
_.g.JSC$18997_onPlaylistDataUpdated=function(){var G=_.tp().resolve(_.H9).getPlaylistData();this.hasPlaylistData=!!G;_.nD(this,{externalPlaylistData:G||{}})};
_.g.close=function(G){if(this.isInitialized())if(G){if(!((this.watchWhileMode||this.watchPipMode)&&_.tp().resolve(_.o0).isOnWatch()||this.shortsPipMode)){var H;(H=this.getPlayerElement())==null||H.stop()}this.deactivate()}else _.l3().closeMiniplayer(this.miniplayerEl)};
_.g.deactivate=function(G){var H=this,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1){if(!H.isInitialized()||!H.active)return q.return();H.setActive(!1);JLq(H);(Z=!!G&&Qpc(H,G))&&H.isSingleOptionSurveyActive&&_.AZ(H.miniplayerEl,"yt-show-watch-page-survey",[H.isSingleOptionSurveyActive]);return q.yield(D1m(H),2)}if(q.nextAddress!=3){uN8(H,!1);H.isReadyToResume=!1;H.watchResponse=void 0;H.updateMiniplayerData(void 0);H.shortsPipMode&&(H.shortsPipMode=!1,_.mm().dispatch(yJ2(H.shortsPipMode)),Wfs(H.pipController),
(Q=H.player)==null||Q.setInternalSize(NaN,NaN));H.watchPipMode&&(H.watchPipMode=!1,Wfs(H.pipController));(p=H.watchWhileMode)&&_.gJt(H,!1);H.removePlayerListeners();var u=_.tp().resolve(_.H9);u.removeEventListener("yt-navigate",_.pH(H,H.onPlaylistNavigate));u.removeEventListener("yt-playlist-data-updated",_.pH(H,H.JSC$18997_onPlaylistDataUpdated));_.PN().currentEndpoint=null;_.xk(H.miniplayerEl,"yt-miniplayer-endpoint-changed");H.playerElement=null;F5_();if(H.shortsPipMode||H.watchPipMode)q=q.jumpTo(3);
else{u=q.yield;var B=_.AZ(H.miniplayerEl,"yt-deactivate-miniplayer",[Z,p])[0];q=u.call(q,B,3)}return q}(l=H.player)==null||l.setInternalSize(NaN,NaN);H.player=null;_.K0(q)})};
var D1m=function(G){var H;return _.S(function(Z){H=_.tp().resolve(_.o0);return G.shortsPipMode?Z.yield(H.movePlayerToShorts(G.playerElement),0):Z.yield(H.movePlayerToWatch(G.playerElement),0)})};
eh.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18997_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
eh.prototype.setActive=function(G){this.active=G;this.isSingleOptionSurveyActive?_.AZ(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.AZ(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.mm().dispatch(_.Lo({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.gJt=function(G,H){G.watchWhileMode=H;_.nD(G,{watchWhile:H})};
uN8=function(G,H){if(!BMD(G))if(G.shortsPipMode||G.watchPipMode){var Z;(Z=G.player)==null||Z.setDocumentPictureInPicture(H)}else{var Q;(Q=G.player)==null||Q.setMinimized(H)}};
BMD=function(G){return G.watchWhileMode&&_.V("kevlar_watch_while_counterfactual")};
_.k2=function(G){var H;return _.S(function(Z){switch(Z.nextAddress){case 1:if(!G.isInitialized())return Z.return();_.XV(Z,2);return Z.yield(G.miniplayerFetchRequest,4);case 4:_.Za(Z,3);break;case 2:_.Wg(Z);case 3:G.watchResponse&&G.miniplayerData&&G.miniplayerData.watchEndpoint?(H={url:G.watchResponse.url,endpoint:G.miniplayerData.watchEndpoint,data:G.watchResponse,miniplayer:!0},_.N5(G.miniplayerEl,"yt-navigate-cache",H)):G.miniplayerData&&G.miniplayerData.watchEndpoint&&_.N5(G.miniplayerEl,"yt-navigate",
{endpoint:G.miniplayerData.watchEndpoint}),_.K0(Z)}})};
a1p=function(G,H,Z){var Q,p,l,q;return _.S(function(u){if(u.nextAddress==1){if(Qpc(G,H))return u.return();_.PN().currentEndpoint=H;_.xk(G.miniplayerEl,"yt-miniplayer-endpoint-changed");_.xk(G.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.PN().isVideoPlaying=!1;Q={clientParams:{miniplayer:!0,autoSaveToQueue:!Z}};p=new GSR(function(){return G.getPlayerElement()},Q,{layer:G.getScreenLayer(),
parentLayer:0},void 0,G.readyToResumeVe);l=function(B){var t,D,d=Object.assign({},(t=B.playerResponse)==null?void 0:(D=t.playerConfig)==null?void 0:D.playbackStartConfig,{startPaused:!0}),e;Z&&((e=B.playerResponse)==null?0:e.playerConfig)&&(B.playerResponse.playerConfig.playbackStartConfig=d);p.processChunk({endpoint:H,data:B})};
JLq(G);G.miniplayerFetchRequest=tyA(G,H,l);_.XV(u,2);return u.yield(G.miniplayerFetchRequest,4)}if(u.nextAddress!=2)return q=u.yieldResult,k_6(G,q),_.Za(u,0);_.Wg(u);_.K0(u)})};
eh.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var JLq=function(G){G.miniplayerFetchRequest&&(G.miniplayerFetchRequest.cancel&&G.miniplayerFetchRequest.cancel("Active request obsolete"),G.miniplayerFetchRequest=null)},tyA=function(G,H,Z){var Q,p=(Q=_.X(H.commandMetadata,_.HA))==null?void 0:Q.url,l;
Q=!p||_.V("disable_miniplayer_tempdata")?{}:(l=ExM(p))!=null?l:{};return MW(G.JSC$18997_pageRequestService,H,Q,window.location.href,"watch",function(q,u){Z(u)},function(q){return q!==G.miniplayerFetchRequest})},k_6=function(G,H){var Z;
_.S(function(Q){if(!H)return Q.return();G.watchResponse=H;SNo(G);IvL(G);Z=_.XW(H.response,!1,H.playerResponse);if(G.isMiniplayerActive()){H.response&&(G.playerElement.watchNextData=H.response);var p=_.oN.getValueByKeys.apply(_.oN,[H].concat(_.OP(SER)));_.oN.getValueByKeys.apply(_.oN,[H].concat(_.OP(kKa)))&&p&&_.tp().resolve(_.H9).setAutoplayRenderer(p);if(p)if(_.V("kevlar_is_pupi_enabled")){var l,q,u,B,t,D=((l=H.response)==null?0:(q=l.playerOverlays)==null?0:(u=q.playerOverlayRenderer)==null?0:(B=
u.autonavToggle)==null?0:(t=B.autoplaySwitchButtonRenderer)==null?0:t.enabled)?2:1;_.tP.getInstance().setState(D,!1,!1)}else l=qLj()?2:1,(D=G.player)==null||D.setAutonavState(l);G.updateMiniplayerData(Z);_.qND(G)}_.K0(Q)})},IvL=function(G){var H,Z,Q=(H=G.watchResponse)==null?void 0:(Z=H.playerResponse)==null?void 0:Z.playabilityStatus,p;
H=Q==null?void 0:(p=Q.miniplayer)==null?void 0:p.miniplayerRenderer;(H==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&H.minimizedEndpoint&&_.L9(G.miniplayerEl,[H.minimizedEndpoint]);_.nD(G,{playabilityStatus:Q})};
eh.prototype.openToast=function(G,H){_.nD(this,{toastData:{data:G,label:H}})};
_.nD=function(G,H){(0,G.miniplayerPropSignalMap[1])(H)};
eh.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var G;return this.playerElement?this.playerElement:(G=_.F9(this.miniplayerEl).querySelector("#player-container"))==null?void 0:G.firstElementChild};
eh.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var pWi=function(G,H){H=H===void 0?!1:H;var Z,Q,p,l,q,u,B;return _.S(function(t){if(t.nextAddress==1){Z=navigator.userActivation.isActive||H;if(!Z||!G.pictureInPictureSupported())return t.return(!1);Q=d1A(G);p=Q.width;l=Q.height;return t.yield(G.pipController.openWindow({width:p,height:l}),2)}q=t.yieldResult;u=G.pipController.getWindow();if(!u||!q)return t.return(!1);u.document.body.style.overflow="hidden";B=pHf(u);zyt(G.pipController,function(){elh(G);B()});
return t.return(!0)})},d1A=function(G){var H=_.PN().shortsPipActivation,Z,Q;
G=H?.5625:(Q=(Z=G.player)==null?void 0:Z.getVideoAspectRatio())!=null?Q:16/9;Z=Math.min(window.innerWidth,window.innerHeight)/2;H=H?0:76;return G>1?new _.M4(Z,H+Z/G):new _.M4(Z*G,H+Z)},elh=function(G){var H;
_.S(function(Z){H=_.tp().resolve(_.o0);return H.isOnWatch()&&G.watchPipMode||H.isOnShorts()&&G.shortsPipMode?Z.yield(G.deactivate(),0):G.miniplayerToPipMode?Z.yield(ZTc(G),0):G.watchPipMode?Z.yield(_.k2(G),0):Z.jumpTo(0)})};
eh.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.u4.Object.defineProperties(eh.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
eh[kM]=[Kfi,Jxx,_.JB];var nJ6="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(" "),
Vyc="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(" "),$1j="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
XWh="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var cLa=function(G,H,Z){_.wI.call(this);this.store=G;this.panelController=H;this.pageContentExtractor=Z;this.isInitialized=!1};
_.T(cLa,_.wI);
cLa.prototype.init=function(G){var H=this;this.isInitialized||(this.isInitialized=!0,this.environment=G!=null?G:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.KG.currentPageSubTypeSelector(this.store.getState()),G=_.wU(this.store,_.KG.currentPageSubTypeSelector,function(Z){a:if(_.TMj(H))switch(Z){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var Q=!0;break a;default:Q=!1}else Q=!1;Q&&H.panelController.hidePanel({identifier:"PAai_companion"});
H.pageSubtype!==Z&&(H.pageSubtype=Z)}),this.addOnDisposeCallback(G))};
_.Lic=function(G,H){if(_.TMj(G))switch(H){case "watch":var Z,Q;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(Z=_.HV())==null?void 0:(Q=Z.getVideoData())==null?void 0:Q.video_id};case "search":var p,l,q;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(l=(p=G.pageContentExtractor)==null?void 0:eyh(p))!=null?l:[],entityId:(q=(new URLSearchParams(window.location.search)).get("search_query"))!=null?q:void 0};case "companion-canvas":var u,B;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(B=(u=
G.pageContentExtractor)==null?void 0:eyh(u))!=null?B:[]};default:var t,D;G={videoIds:(D=(t=G.pageContentExtractor)==null?void 0:eyh(t))!=null?D:[]};return _.V("enable_ai_companion_default_page_context")?G:void 0}};
_.TMj=function(G){return G.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
cLa[kM]=[_.oT,_.iU,_.Jp(nFs)];var fv6=_.y(function(G){return _.J("yt-ai-companion-attachment-view-model",{el:_.aX(_.$X(function(){return G.data().rendererContext})),
class:_.bb("ytAiCompanionAttachmentViewModelHost",G.className)},_.J("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.J(_.k,{cond:function(){return G.data().title},
then:function(H){return _.J("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return H().content}},_.J(_.Fe,{text:H}))}}),_.J(_.k,{cond:function(){return _.zk(G.data().trailingTitleIcon)},
then:function(H){return _.J("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.J(_.ib,{data:H,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.J(_.k,{cond:function(){return G.data().description},
then:function(H){return _.J("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.J(_.Fe,{text:H}))}}),_.J(_.k,{cond:function(){return G.data().bottomItem},
then:function(H){return _.J("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.J(_.SP,{data:H},{tableViewModel:v0T}))}}))},"ih");_.vJj=_.y(function(G){return _.J("yt-channel-attribution-view-model",{class:_.bb("ytChannelAttributionViewModelHost",G.className)},_.J("div",{class:"ytChannelAttributionViewModelUpper"},_.J(_.SP,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:_.U5}),_.J("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.J(_.Fe,{text:function(){return G.data().title}}))),_.J("div",{class:"ytChannelAttributionViewModelBottom"},_.J(_.Fe,{text:function(){return G.data().subtitle}})))},"jh");var Wet=_.y(function(G){var H=_.I(_.Ty(!1,void 0,"MFRKRb")),Z=H.next().value,Q=H.next().value,p=function(){return G.data().activeRenderer},l=function(){return G.data().inactiveRenderer};
return _.J("yt-channel-disclosure-view-model",{"on:mouseleave":_.Hh(function(){Q(!1)}),
"on:mouseover":_.Hh(function(){Q(!0)}),
class:_.bb("ytChannelDisclosureViewModelHost",G.className)},_.J(_.k,{cond:function(){return Z()},
then:function(){return _.J(_.SP,{data:p},{channelAttributionViewModel:_.vJj})},
else:function(){return _.J(_.SP,{data:l},{decoratedAvatarViewModel:_.U5})}}))},"kh");var zlk=null;var Kej={},Myo=(Kej.initialized={priority:10,callback:function(G){var H=_.tp();H.addProvider({provide:XP_,useClass:MKh});H.addProvider({provide:_.KRj,useFactory:function(){return new c3a}});
H.addProvider({provide:Y1,useValue:_.xI("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});H.addProvider({provide:QNj,useValue:5184E6});H.addProvider({provide:vrs,useValue:_.DG()});H.addProvider({provide:buh,useClass:Jn2});H.addProvider({provide:Gf,useClass:Gf});H.addProvider({provide:_.LI,useFactory:function(){return ocp.promise}});
H.addProvider({provide:_.UTR,useFactory:function(){return _.mTt.promise}});
H.addProvider({provide:iR3,useValue:function(){var B;return((B=_.UO())==null?void 0:B.getPlayer())||null}});
var Z={};H.addProvider((Z.provide=_.C7,Z.useFactory=function(B,t){return function(){return lC2(B,t)}},Z[kM]=[Y1,
QNj],Z));Z={};H.addProvider((Z.provide=_.Vp,Z.useClass=DjA,Z[kM]=[Y1,QNj],Z));Z={};H.addProvider((Z.provide=_.$rj,Z.useClass=V_A,Z[kM]=[_.Vp],Z));H.addProvider({provide:oh,useFactory:_.mm});H.addProvider({provide:R9,useFactory:_.mm});H.addProvider({provide:I0c,useFactory:_.mm});H.addProvider({provide:N3j,useFactory:_.mm});H.addProvider({provide:_.oT,useFactory:_.mm});H.addProvider({provide:cc,useValue:_.Qn});H.addProvider({provide:TOq,useClass:Ncj});H.addProvider({provide:cwD,useClass:XgL});H.addProvider({provide:X2,
useClass:X2});H.addProvider({provide:Vu,useClass:Vu});H.addProvider({provide:BX,useClass:BX});H.addProvider({provide:$v,useClass:$v});H.addProvider({provide:K7,useClass:K7});H.addProvider({provide:uh,useClass:uh});H.addProvider({provide:Yv,useClass:Yv});H.addProvider({provide:_.nC,useValue:N7s});Z={};H.addProvider((Z.provide=yah,Z.useFactory=function(B){return B.watchEndpointMap||{}},Z[kM]=[_.nC],Z));
Z={};H.addProvider((Z.provide=ork,Z.useFactory=function(B){return B.reelWatchEndpointMap||{}},Z[kM]=[_.nC],Z));
H.addProvider({provide:_.rv,useFactory:_.gr});H.addProvider({provide:rd,useFactory:_.lf});Z={};H.addProvider((Z.provide=lWW,Z.useFactory=function(B){return function(t){var D=D===void 0?{}:D;var d,e,n=(e=_.X((d=t.endpoint)==null?void 0:d.commandMetadata,_.HA))==null?void 0:e.rootVe;if(n){var c,W;if(d=t.previousCsn||((W=_.X((c=t.endpoint)==null?void 0:c.commandMetadata,ui4))==null?void 0:W.parentCsn)){var M=M===void 0?{}:M;if(d!==_.$k(M.layer)||n!==Ss3(M.layer))ksX(d,M.cttAuthInfo,M.layer||0),IRU(d,
M.layer||0),c=M.layer||0,_.Ae(qs2(c===void 0?0:c),n);D.parentCsn=d}t.endpoint&&d?hrw(B,t.endpoint,D):_.Te(B,n,void 0,D);var r;((r=t.response)==null?0:r.trackingParams)&&B.graftServerVe(t.response.trackingParams);var w;((w=t.playerResponse)==null?0:w.trackingParams)&&B.graftServerVe(t.playerResponse.trackingParams);var x;((x=t.reelWatchSequenceResponse)==null?0:x.trackingParams)&&B.graftServerVe(t.reelWatchSequenceResponse.trackingParams)}}},Z[kM]=[_.rv],Z));
Z={};H.addProvider((Z.provide=SvD,Z.useClass=qvj,Z[kM]=[cc,_.oT],Z));Z={};H.addProvider((Z.provide=xe,Z.useClass=xe,Z[kM]=[_.LI,_.oT],Z));Z={};H.addProvider((Z.provide=UQ,Z.useClass=UQ,Z[kM]=[R9,_.Dk],Z));H.addProvider({provide:_.Vga,useClass:jML});Z={};H.addProvider((Z.provide=_.iU,Z.useClass=csk,Z[kM]=[_.Vga,_.Jp(_.yp)],Z));H.addProvider({provide:_.ug,useClass:cam});Z={};H.addProvider((Z.provide=tn,Z.useClass=tn,Z[kM]=[_.ug,_.LI,_.t0,_.Dk],Z));H.addProvider({provide:_.On,useClass:Ye});H.addProvider({provide:_.eOk,
useClass:BOk});H.addProvider({provide:_.aP,useClass:L7});_.V("enable_ai_companion")&&(H.addProvider({provide:_.yp,useClass:vFi}),H.addProvider({provide:_.u5w,useClass:KJa}),H.addProvider({provide:nFs,useClass:Dfs}),H.addProvider({provide:C_,useClass:C_}),H.addProvider({provide:h5,useClass:h5}),H.addProvider({provide:uK_,useValue:Wet}),H.addProvider({provide:BEx,useValue:fv6}));_.V("enable_ai_chat_controller")&&H.addProvider({provide:_.wi,useClass:cLa});Z={};H.addProvider((Z.provide=_.Kc,Z.useClass=
Mgi,Z[kM]=[_.Kc],Z));H.addProvider({provide:_.VC,useClass:D_q});H.addProvider({provide:A5,useClass:A5});H.addProvider({provide:Ds,useClass:Ds});H.addProvider({provide:bF,useClass:bF});Z={};H.addProvider((Z.provide=Mx,Z.useClass=Mx,Z[kM]=[_.Dk,_.t0],Z));H.addProvider({provide:qI,useClass:EQ});Z={};H.addProvider((Z.provide=Bw,Z.useClass=Bw,Z[kM]=[_.On,qI],Z));Z={};H.addProvider((Z.provide=pc,Z.useClass=pc,Z[kM]=[_.On],Z));Z={};H.addProvider((Z.provide=mx,Z.useClass=mx,Z[kM]=[oh,yc],Z));H.addProvider({provide:yc,
useClass:YPi});_.V("web_enable_feedback_endpoint_resolver_batch_2")&&(Z={},H.addProvider((Z.provide=Rh,Z.useClass=Rh,Z[kM]=[oh],Z)),Z={},H.addProvider((Z.provide=Uc,Z.useClass=Uc,Z[kM]=[yc],Z)));Z={};H.addProvider((Z.provide=Sz,Z.useClass=Sz,Z[kM]=[_.aP,qI],Z));Z={};H.addProvider((Z.provide=Zs,Z.useClass=Zs,Z[kM]=[_.aP],Z));Z={};H.addProvider((Z.provide=us,Z.useClass=us,Z[kM]=[_.t0,_.iU],Z));Z={};H.addProvider((Z.provide=I4,Z.useClass=I4,Z[kM]=[_.t0,_.rv],Z));H.addProvider({provide:yT,useClass:yT});
Z={};H.addProvider((Z.provide=Pw,Z.useClass=Pw,Z[kM]=[oh],Z));H.addProvider({provide:HX,useClass:HX});H.addProvider({provide:Gn,useClass:Gn});Z={};H.addProvider((Z.provide=ZV,Z.useClass=ZV,Z[kM]=[oh],Z));Z={};H.addProvider((Z.provide=Qu,Z.useClass=Qu,Z[kM]=[_.t0,oh],Z));Z={};H.addProvider((Z.provide=pC,Z.useClass=pC,Z[kM]=[oh],Z));Z={};H.addProvider((Z.provide=lg,Z.useClass=lg,Z[kM]=[oh],Z));Z={};H.addProvider((Z.provide=QT,Z.useClass=QT,Z[kM]=[_.iU],Z));Z={};H.addProvider((Z.provide=NI,Z.useClass=
NI,Z[kM]=[_.rv],Z));Z={};H.addProvider((Z.provide=FB,Z.useClass=FB,Z[kM]=[is],Z));Z={};H.addProvider((Z.provide=bs,Z.useClass=bs,Z[kM]=[is],Z));H.addProvider({provide:Lc,useClass:Lc});H.addProvider({provide:ET,useClass:ET});H.addProvider({provide:R4,useClass:R4});Z={};H.addProvider((Z.provide=Jh,Z.useClass=Jh,Z[kM]=[_.iU,_.Dk],Z));H.addProvider({provide:Ec,useClass:Ec});Z={};H.addProvider((Z.provide=gd,Z.useClass=gd,Z[kM]=[_.t0,_.iU],Z));H.addProvider({provide:G6,useClass:G6});Z={};H.addProvider((Z.provide=
MI,Z.useClass=MI,Z[kM]=[oh,_.t0,_.Kc],Z));Z={};H.addProvider((Z.provide=Ww,Z.useClass=Ww,Z[kM]=[_.t0,_.Dk],Z));H.addProvider({provide:pu4,useValue:BZb});H.addProvider({provide:JEx,useValue:FB2});H.addProvider({provide:z6,useClass:z6});Z={};H.addProvider((Z.provide=vw,Z.useClass=vw,Z[kM]=[oh],Z));Z={};H.addProvider((Z.provide=jz,Z.useClass=jz,Z[kM]=[_.VC,_.Dk],Z));Z={};H.addProvider((Z.provide=Nx,Z.useClass=Nx,Z[kM]=[_.Dk],Z));H.addProvider({provide:ah,useFactory:function(){return new ah(_.mm())}});
H.addProvider({provide:flf,useFactory:_.rT.getInstance});Z={};H.addProvider((Z.provide=Fm,Z.useClass=Fm,Z[kM]=[Y1,flf,_.Dk],Z));H.addProvider({provide:x1,useClass:x1});H.addProvider({provide:jW,useClass:jW});H.addProvider({provide:ri,useClass:ri});H.addProvider({provide:_.Pc,useClass:_.Pc});H.addProvider({provide:qp,useClass:qp});Z={};H.addProvider((Z.provide=$d,Z.useClass=$d,Z[kM]=[R9],Z));Z={};H.addProvider((Z.provide=kd,Z.useClass=kd,Z[kM]=[_.Dk],Z));Z={};H.addProvider((Z.provide=XB,Z.useClass=
XB,Z[kM]=[_.Dk],Z));Z={};H.addProvider((Z.provide=cw,Z.useClass=cw,Z[kM]=[_.Dk],Z));_.V("web_enable_prefetching_videos_on_home")&&(H.addProvider({provide:m6,useClass:m6}),H.addProvider({provide:qG,useClass:qG}));Z={};H.addProvider((Z.provide=Ic,Z.useClass=Ic,Z[kM]=[_.Dk],Z));H.addProvider({provide:iF,useClass:iF});Z={};H.addProvider((Z.provide=o4,Z.useClass=o4,Z[kM]=[_.t0,_.Dk],Z));Z={};H.addProvider((Z.provide=Oc,Z.useClass=Oc,Z[kM]=[_.Dk],Z));Z={};H.addProvider((Z.provide=Sh,Z.useClass=Sh,Z[kM]=
[_.t0,_.Dk],Z));H.addProvider({provide:ID,useClass:ID});H.addProvider({provide:ez,useClass:ez});Z={};H.addProvider((Z.provide=dd,Z.useClass=dd,Z[kM]=[R9,_.Dk],Z));H.addProvider({provide:nc,useClass:nc});Z={};H.addProvider((Z.provide=DV,Z.useClass=DV,Z[kM]=[R9,_.Dk,_.t0],Z));Z={};H.addProvider((Z.provide=d6,Z.useClass=d6,Z[kM]=[_.Dk],Z));Z={};H.addProvider((Z.provide=kv,Z.useClass=kv,Z[kM]=[_.Dk,_.t0],Z));Z={};H.addProvider((Z.provide=a4,Z.useClass=a4,Z[kM]=[_.Dk,_.t0],Z));Z={};H.addProvider((Z.provide=
fc,Z.useClass=fc,Z[kM]=[_.LI],Z));Z={};H.addProvider((Z.provide=T6,Z.useClass=T6,Z[kM]=[_.LI],Z));Z={};H.addProvider((Z.provide=VT,Z.useClass=VT,Z[kM]=[_.LI],Z));H.addProvider({provide:Cc,useClass:Cc});H.addProvider({provide:OT,useClass:OT});H.addProvider({provide:s2,useClass:s2});H.addProvider({provide:m8,useClass:m8});H.addProvider({provide:hh,useClass:hh});H.addProvider({provide:Hw,useClass:Hw});H.addProvider({provide:wd,useClass:wd});_.V("kevlar_enable_mss_lazy_load")&&H.addProvider({provide:_.KM,
useClass:uPk});H.addProvider({provide:_.XI,useClass:bp});H.addProvider({provide:JP,useFactory:function(){return _.sS.getInstance()}});
H.addProvider({provide:l0L,useFactory:eDo});H.addProvider({provide:is,useFactory:function(){return _.oI.getInstance()}});
H.addProvider({provide:MBR,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});Z={};H.addProvider((Z.provide=_.R8,Z.useClass=_.R8,Z[kM]=[_.LI,_.Dk,_.rv,l0L,is,JP,MBR,cc],Z));H.addProvider({provide:_.fB,useClass:LF7});H.addProvider({provide:_.lwD,useClass:pla});Z={};H.addProvider((Z.provide=sT,Z.useClass=sT,Z[kM]=[_.lwD],Z));Z={};H.addProvider((Z.provide=_.Nw,Z.useFactory=function(B){return B.upliftCompletionResolver.promise},Z[kM]=[SvD],Z));
Z=_.YI("IS_SHELL_LOAD")?"aa":"eocs";var Q=_.YI("IS_SHELL_LOAD")?3:2;_.ZO().parkOrScheduleJob(function(){BnA()},Q,Z);
_.ZO().parkOrScheduleJob(function(){_.tp().resolve(xe).start()},2,"eocs");
_.ZO().parkOrScheduleJob(function(){gFt()},2,"eocs");
_.ZO().parkOrScheduleJob(function(){_.tp().resolve(UQ).start()},2,"eocs");
_.V("kevlar_debug_data_app_registration_ks")||uXo();H.addProvider({provide:_.Bh,useValue:new fMt(G.root)});H.addProvider({provide:GU,useValue:new qwW});H.addProvider({provide:_.rNo,useValue:new jy8(G.root)});H.addProvider({provide:_.J0,useValue:new PIj});H.addProvider({provide:_.f2,useClass:Mt});H.addProvider({provide:Kfi,useClass:F2});_.V("kevlar_network_sli_killswitch")||H.addProvider({provide:il6,useValue:bS2});H.addProvider({provide:f2h,useFactory:$0o});_.V("web_bind_fetch")&&(Z={},H.addProvider((Z.provide=
vI8,Z.useFactory=Xoo,Z[kM]=[_.Jp(f2h)],Z)));_.V("web_bind_window_request")&&(Z={},H.addProvider((Z.provide=WRo,Z.useFactory=c22,Z[kM]=[_.Jp(f2h)],Z)));_.V("web_bind_text_decoder")&&(Z={},H.addProvider((Z.provide=z_m,Z.useFactory=TwX,Z[kM]=[_.Jp(f2h)],Z)));Z={};H.addProvider((Z.provide=Mtt,Z.useFactory=Zko,Z[kM]=[_.Nw,oh,_.C7],Z));Z={};H.addProvider((Z.provide=KTa,Z.useClass=e0,Z[kM]=[Mtt],Z));H.addProvider({provide:S1i,useClass:lS6});H.addProvider({provide:fwh,useClass:WTL});Z=[].concat(_.OP(Kte));
_.V("web_continuation_response_processing")&&Z.push(_.vh);Z.push(AiG);_.V("enable_share_panel_navigation_logging_fix_on_web")&&Z.push(_.ggT);H.addProvider({provide:zQv,useValue:Z});H.addProvider({provide:zte,useClass:T3L});H.addProvider({provide:mVs,useClass:Oli});Z={};H.addProvider((Z.provide=TCf,Z.useClass=Rd8,Z[kM]=[R9],Z));_.Ui.addLowPriorityJob(function(){r8W()});
Z={};H.addProvider((Z.provide=JGa,Z.useFactory=function(B){return function(t){var D,d=(D=_.X(t.commandMetadata,_.HA))==null?void 0:D.url;if(!d)throw new _.C$("No URL for PBJ Command",t);d=m5f(d,{pbj:"1"});D=q33(d,{})||{};D=Object.assign({},D,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.xI("STS").toString()});t=_.zF({command:JSON.stringify(t),session_token:_.xI("XSRF_TOKEN")});return B.fetch(d,{method:"POST",headers:D,body:t})}},Z[kM]=[mVs],Z));
H.addProvider({provide:wt8,useFactory:function(){var B={};return B.CSI=vmM(),B.ECATCHER=f1v(),B}});
H.addProvider({provide:drj,useClass:h_o});Z=[];Z.push(H.resolve(fwh));Q={};Q=(Q.client_location=_.rT.getInstance(),Q.consistency=_.kfj(),Q.entities=H.resolve(cwD),Q.response_received_commands=H.resolve(zte),Q.store=H.resolve(_.$rj),Q.tokens=H.resolve(fwh),Q.service_params=H.resolve(drj),Q);if(_.V("web_shorts_prefetch_service_enabled")){var p=new $jD(H.resolve(_.Vp));Q.shorts_prefetch=p}Q.adblock_detection=H.resolve(TCf);H.addProvider({provide:_.sN,useClass:_.sN});p=H.resolve(_.nC);var l=[];_.V("PremiumClientSharedConfig__enable_att_context_processor")&&
(H.addProvider({provide:gbc,useClass:Qss}),l.push(H.resolve(gbc)));if(_.V("owl_pl_await")){var q={};H.addProvider((q.provide=e_q,q.useFactory=function(B){return new DVa(B)},q[kM]=[_.sN],q));
l.push(H.resolve(e_q))}Dwp(p,H.resolve(mVs),H.resolve(TOq),Q,H.resolve(_.Vp),Z,l,H.resolve(KTa),H.resolve(S1i));H.addProvider({provide:_.t0,useValue:_.Ph.instance});_.V("start_client_gcf")&&H.addProvider({provide:hL,useValue:boa()});H.addProvider({provide:tgL,useFactory:function(){return new tgL(_.tp().resolve(_.sN),_.oI.getInstance())}});
_.ZO().parkOrScheduleJob(function(){kyc()},1,"eocs");
Z={};H.addProvider((Z.provide=AX,Z.useClass=AX,Z[kM]=[_.C7,_.t0],Z));H.addProvider({provide:_.ibc,useFactory:_.gD.getInstance});_.ZO().parkOrScheduleJob(function(){_.tp().resolve(AX).refresh()},0,"eocs");
H.addProvider({provide:_.JB,useClass:LT8});_.V("kevlar_signal_collection_killswitch")||(Z={},H.addProvider((Z.provide=Fui,Z.useClass=Fui,Z[kM]=[Y1,rd],Z)),_.ZO().parkOrScheduleJob(function(){_.tp().resolve(Fui).record()},1,"eocs"));
_.V("web_debug_handler_registration_killswitch")||_.ZO().parkOrScheduleJob(function(){qto("DOWNLOAD_PES",dbv);_.V("offline_client_state_export_ks")||qto("OFFLINE_CLIENT_STATE",t3u)},0,"eocs");
_.V("kevlar_prevent_polymer_dynamic_font_load")&&_.ZO().parkOrScheduleJob(function(){var B=[_.VB(FRa),_.VB(blD)];B=_.I(B);for(var t=B.next();!t.done;t=B.next()){t=t.value;var D=document.createElement("link");_.Sl(D,t,"stylesheet");document.head.appendChild(D)}},1,"eocs");
Z=G.injector.resolve(_.t0);_.l6j.instance=new _.l6j(Z);Nou(F0i(new pgj(Z)));Z={};G.injector.addProvider((Z.provide=Jk,Z.useFactory=function(B){(B=B==null?void 0:B.getCurrentPage())?B=B.visibilityObserver:(zlk||(zlk=DAU()),B=zlk);return B},Z[kM]=[_.Jp(_.o0)],Z.skipCache=!0,Z));
H.addProvider({provide:_.WM,useClass:eh});H.addProvider({provide:KB,useClass:paN});G.injector.addProvider({provide:bc2,useValue:T0c});H.addProvider({provide:UNa,useValue:UU8});H.addProvider({provide:Ymt,useValue:Qmj});H.addProvider({provide:_.rr,useValue:nBu});G=H.addProvider;oFD||(oFD=new yso);G.call(H,{provide:_.Gg,useValue:oFD});H.addProvider({provide:_.ht,useValue:_.xI("HTML_DIR")==="rtl"?"rtl":"ltr"});H.addProvider({provide:wgi,useClass:NJ6});H.addProvider({provide:_.Gt,useClass:H0});_.tp().addProvider({provide:CEi,
useValue:_.V("enable_web_delhi_icons")?Vyc.concat(XWh):nJ6.concat($1j)});H.addProvider({provide:_.Zh,useClass:_.Zh});H.addProvider({provide:_.LRA,useValue:new xV6});H.addProvider({provide:$ak,useClass:Vlc});H.addProvider({provide:UT,useClass:UT});H.addProvider({provide:Ah,useClass:Ah});G={};H.addProvider((G.provide=th,G.useClass=th,G[kM]=[_.t0,_.iU],G));H.addProvider({provide:S0,useClass:S0});H.addProvider({provide:y6D,useClass:rsq});H.addProvider({provide:Yd,useClass:Yd});H.addProvider({provide:Gdd,
useValue:Oyd});H.addProvider({provide:_.p_,useClass:$_i});_.V("enable_payments_purchase_manager")&&H.addProvider({provide:uVk,useClass:I6D});H.addProvider({provide:EbA,useFactory:function(){return function(B){return _.YJ8(B)}}});
H.addProvider({provide:_.Vta,useClass:$4a});G={};H.addProvider((G.provide=g6,G.useClass=g6,G[kM]=[_.Vta],G));H.addProvider({provide:xd,useClass:xd});H.addProvider({provide:w3a,useValue:B0h});H.addProvider({provide:Xu4,useValue:_.Lfo});H.addProvider({provide:v$b,useClass:PVq});H.addProvider({provide:mfs,useValue:FKj});G={};H.addProvider((G.provide=UfD,G.useClass=Ry6,G[kM]=[mfs],G));G={};H.addProvider((G.provide=_.jB,G.useClass=HgD,G[kM]=[UfD],G));G={};H.addProvider((G.provide=_.pD,G.useClass=QV,G[kM]=
[_.oT,_.f2],G));if(_.V("web_explore_hub_on_hover")||_.V("web_client_explore_hub_on_hover"))G={},H.addProvider((G.provide=L_,G.useClass=L_,G[kM]=[_.t0,JP],G));if(_.V("web_enable_renderer_logger")){var u=new mBo;Hsb(function(){u.abort()});
H.addProvider({provide:h03,useValue:new Gym(u.signal)})}H.addProvider({provide:HPx,useValue:j8R});H.addProvider({provide:dCu,useClass:X7s});_.V("web_use_flow_state_manager")&&(H.addProvider({provide:_.f_,useClass:TJ8}),G={},H.addProvider((G.provide=vc,G.useClass=vc,G[kM]=[_.f_,_.Dk],G)))}},Kej);var jp6={},Pck=(jp6.initialized={priority:10,callback:function(){if(!CW6){d$v();zUb("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.TF(_.po(zUb,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.V("log_heartbeat_with_lifecycles")){var G={};lU.instance||(lU.instance=new lU);lU.instance.install((G.document_visible={callback:KMj,priority:10},G.document_hidden={callback:KMj,priority:10},G))}else _.Sy(document,"visibilitychange",KMj);CW6=!0}(G=_.$k())&&G!=="UNDEFINED_CSN"&&lRu(G)}},jp6);var rLq={},wWh=(rLq.initialized={callback:function(G){var H=_.bl(232091),Z=G.injector.resolve(_.rv);_.fQ(Z,H);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?llf()&&_.WN(Z,H):(G=G.injector.resolve(EbA)("refresh_detector"))&&(G.get("first_tab_load")?_.WN(Z,H):G.set("first_tab_load","1"))}},rLq);var hl6={},CcL=(hl6.initialized={priority:10,callback:txf},hl6);var iTo={},OT8=(iTo.initialized={priority:0,callback:function(){var G=new b$t,H="other";_.sy?H="chrome":_.H4?H="firefox":_.Ed?H="safari":qh&&(H="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(Z){G.increment(_.r7(),Z,H)}).catch(function(){G.increment(_.r7(),!1,H)}):G.increment(_.r7(),!1,H)}},iTo);var avD={},yLt=(avD.rendering={priority:8,callback:kr3},avD);var oJc={},m1c=(oJc.rendering={priority:10,callback:Mxv},oJc.rendered={callback:KYe},oJc),U1a={},Rl6=(U1a.rendering={callback:Mxv},U1a.rendered={callback:KYe},U1a);var NMc=!1,ALj={},x1c=(ALj.initialized={priority:10,callback:function(){NMc||(oie({didPatch:function(G){G.el&&y2o(G.el,G.props)},
didUnmount:function(G){Oxo(G.el)}}),NMc=!0)}},ALj);var Lec=/^\/shorts\/?$/;_.Ae("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});_.V("kevlar_use_common_module_manager_ks")?(_.xYo(new jCb),ZAb()):Pvj();
(function(){var G=document.querySelector("ytd-app");if(!G)throw Error("Xj");G=new ly({root:G,injector:_.tp()});G.install(Pck);var H={};G.install((H.initialized={priority:10,callback:gn3},H));_.V("wp_lat_b")&&(H={},G.install((H.initialized={priority:10,callback:function(){eU2()}},H)));
H={};G.install((H.rendered={priority:0,callback:Qoj},H));H={};G.install((H.rendered={priority:0,callback:function(){_.Ui.addLowPriorityJob(function(){_.Awc>1&&(Y02(),soo())},4E4)}},H));
G.install(fkq);G.install(wWh);G.install(x1c);FMj();G.install(wUi);G.install(nMq);G.install(cpm);G.install(RKq);G.install(E5c);G.install(P0m);G.install(Myo);_.V("kevlar_enable_mss_lazy_load")&&G.install(CcL);G.install($Yh);G.install(OT8);if(!_.YI("IS_SHELL_LOAD")||_.V("kevlar_fetch_initial_data_promise_client")||_.V("sw_nav_preload_pbj")){var Z=_.vU(window.location.href);H=Z&&Z==="/watch";Z=Z&&Z.match(Lec);H?G.install(Rl6):Z?G.install(yLt):G.install(m1c)}else G.install(DYk);G.install(WKq);_.V("web_enable_prefetching_videos_on_home")&&
G.install(O$a);_.V("start_client_gcf")&&G.install(res);G.install(aSi);(new GBx).increment("INSTALLED");G.install(C0o);G.install(Jpc);G.transition("initialized");SC2();Zxf()})();
_.H$=[[["a2luZCM5bThxZXVxZWJkaW0=","YWx1ZSNtcDUxcDlkMzU2eDR2"],"T05EUyNmOHBta2NuazB5Nm1BRF9QTEFDRU1FTlRfS0lORF9NSUxMSVNFQw=="]];_.Gz=["YWNrcyNlejFuc2wzY21qaHVnbG9iYWxDYWxsYg==","Y3RlZCNodThtMG1pbDRidmVvbkFibm9ybWFsaXR5RGV0ZQ==","U2tpcCNyZ3Fvbjl5NnNod3pvbkFk","b25zZSNuajlzMHZnbHgzY2RyYXdfcGxheWVyX3Jlc3A=","ckFkcyN0ZTcyZnkxMXIxdDVwbGF5ZQ=="];_.qP="YWNrcyNlejFuc2wzY21qaHVnbG9iYWxDYWxsYg== Y3RlZCNodThtMG1pbDRidmVvbkFibm9ybWFsaXR5RGV0ZQ== U2tpcCNyZ3Fvbjl5NnNod3pvbkFk b25zZSNuajlzMHZnbHgzY2RyYXdfcGxheWVyX3Jlc3A= c19rcyN2OHMzcDZxMDhzdmV3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcA== YV9lZiM2YnQ1djYydnRsemJhYl9z ckFkcyN0ZTcyZnkxMXIxdDVwbGF5ZQ==".split(" ");
_._ModuleManager_initialize=function(G,H){if(!_.af){if(!_.yx)return;_.xYo(_.yx())}_.af.setAllModuleInfoString(G,H)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/sye:1/syd:3,b,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:a/iuT5Oc',['sy3','sy4','sy8','sye','syb','sy1','syk','syj','syg','syd','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','sya','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.VV=function(G,H,Z,Q,p){var l={};H&&(l[H]=Z);Q?l.errorType=Q:p&&(l.errorReason=p);_.yR(G,l);_.op()};
_.$2=function(G){var H=_.ZO();return _.X_2(H,G,1)};
_.Vy({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 G=this.query;G&&(this.full||G[0]==="("||(G="("+G+")"),this._mq=window.matchMedia(G),this._add(),this.queryHandler(this._mq))},
queryHandler:function(G){this._setQueryMatches(G.matches)}});var sAt;var Z1h;var QAc=function(){};
_.g=QAc.prototype;_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._focusedChanged=function(){};
_.g._createRipple=function(){};
_.g.registered=function(){};
_.g._invalidChanged=function(){};
_.g.hasValidator=function(){};
_.g.validate=function(){};
_.g._getValidity=function(){};
_.g._requiredChanged=function(){};
_.g._valueChanged=function(){};
_.g._checkedChanged=function(){};
_.g._buttonStateChanged=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
QAc=_.Vy({is:"tp-yt-paper-radio-button",_template:function(){if(Z1h!==void 0)return Z1h;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;sAt===void 0&&(sAt=document.createElement("template"));var Q=sAt;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Z1h=G},
behaviors:[_.Gwp],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(){_.q2(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var G=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),H=Math.floor(3*G);H%2!==G%2&&H++;this.updateStyles({"--paper-radio-button-ink-size":H+"px"})}})}});var pxa;var lYL;_.Vy({_template:function(){if(lYL!==void 0)return lYL;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;pxa===void 0&&(pxa=document.createElement("template"));var Q=pxa;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return lYL=G},
is:"tp-yt-paper-radio-group",behaviors:[_.ABx],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(G){var H=this._valueToItem(G);if(!H||!H.hasAttribute("disabled")){if(this.selected){H=this._valueToItem(this.selected);if(this.selected==G)if(this.allowEmptySelection)G="";else{H&&(H.checked=!0);return}H&&
(H.checked=!1)}_.hv.select.apply(this,[G]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(G){this._focusPrevious();G.preventDefault();this._activateFocusedItem()},
_onDownKey:function(G){this._focusNext();G.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(G){_.Nqt._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(G){_.Nqt._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.hv._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.w5._resetTabindices.apply(this,arguments);this.items.forEach(function(G){G.removeAttribute("aria-selected")},this)}});var gPo;_.eQ("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var X0=function(){return _.C.apply(this,arguments)||this};
_.T(X0,_.C);_.g=X0.prototype;_.g.computeHasPrimaryIcon=function(G){return!(!G.icon&&!G.thumbnail)};
_.g.computeHasSecondary=function(G){return!(!G.secondaryIcon&&!G.secondaryNotificationText)};
_.g.computeHideSecondaryString=function(G){return!_.V("disable_hide_empty_secondary_string")&&!G.secondaryNotificationText};
_.g.computeCompactLinkStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.g.computeHasFitHeight=function(G){return G==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.g.isActiveEndpoint=function(G){return(G=this.get("commandMetadata.webCommandMetadata.url",G))?_.vU(window.location.href)!=="/account_transfer_channel"&&_.vU(window.location.href)!=="/gaia_link"&&_.vU(window.location.href)!=="/channel_switcher"||G!=="/account"?_.vU(window.location.href)===G:!0:!1};
_.g.onTap=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.L9(this.hostElement,[this.data.serviceEndpoint])};
X0.prototype.onTap=X0.prototype.onTap;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],X0.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.A("design:type",Boolean)],X0.prototype,"active",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.A("design:type",String)],X0.prototype,"compactLinkStyle",void 0);
_.N([_.h({computed:"computeIcon_(data.icon)"}),_.A("design:type",Object)],X0.prototype,"icon",void 0);_.N([_.h({computed:"computeIcon_(data.secondaryIcon)"}),_.A("design:type",Object)],X0.prototype,"secondaryIcon",void 0);_.N([_.h({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],X0.prototype,"hasSecondary",void 0);_.N([_.h({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],X0.prototype,"hideSecondaryString",void 0);
_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],X0.prototype,"onTap",null);_.N([_.O({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],X0);
_.m(X0,"ytd-compact-link-renderer",function(){if(gPo!==void 0)return gPo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return gPo=G},{mode:1});var IY6;_.eQ("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var c0=function(){var G=_.C.apply(this,arguments)||this;G.role="link";G.tabindex="0";G.actionMap=_.V("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return G};
_.T(c0,_.C);_.g=c0.prototype;_.g.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Ml()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.g.getCurrentTheme=function(){return _.jX()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Ml()};
_.g.onThemeSelected=function(G,H){var Z=G||H?G:_.K3(),Q=(Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.BYX(_.vU(window.location.href));_.g8(0,165,G);_.g8(0,174,H);this.prefs.save();Q&&_.AZ(this.hostElement,"yt-dark-mode-toggled-action",[Z]);_.AZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.g.onTap=function(){this.data.serviceEndpoint&&_.L9(this.hostElement,[this.data.serviceEndpoint])};
_.g.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.g.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.g.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
c0.prototype.onTap=c0.prototype.onTap;c0.prototype.dataChanged=c0.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],c0.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.He),_.A("design:type",Object)],c0.prototype,"paperItemBehaviors",void 0);_.N([_.h(),_.A("design:type",Object)],c0.prototype,"data",void 0);_.N([_.h({value:function(){return _.lf()}}),
_.A("design:type",_.se)],c0.prototype,"prefs",void 0);_.N([_.h(),_.A("design:type",Object)],c0.prototype,"label",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],c0.prototype,"role",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],c0.prototype,"tabindex",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c0.prototype,"dataChanged",null);
_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],c0.prototype,"onTap",null);_.N([_.O({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],c0);
_.xQ()(c0,"ytd-toggle-theme-compact-link-renderer",function(){if(IY6===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);IY6=G}G=IY6;return G},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var SSL,uZ8;_.Tg=function(G){return!!G.getOptions("captions")};
_.qSq=function(G){return(G=G.getOption("captions","track"))?!!G.displayName:!1};
_.fD=function(G,H){_.tl(H,G,function(){return SSL[H]},function(Z){SSL[H]=Z;
if(!_.V("mweb_player_ve_show_ks")){var Q=_.$k(0);Q&&Z&&_.r8(Q,Z)}})};
_.v0=function(G){(G=SSL[G])&&_.WN(_.gr(),G)};
SSL={};var BN8;/*

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
*/
_.Vy({_template:function(){if(BN8!==void 0)return BN8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;uZ8===void 0&&(uZ8=document.createElement("template"));var Q=uZ8;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return BN8=G},
is:"tp-yt-paper-checkbox",behaviors:[_.Gwp],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.q2(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var G=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),H="px",Z=G.match(/[A-Za-z]+$/);Z!==null&&(H=Z[0]);G=parseFloat(G);Z=8/3*G;H==="px"&&(Z=Math.floor(Z),Z%2!==G%2&&Z++);this.updateStyles({"--paper-checkbox-ink-size":Z+
H})}})},
_computeCheckboxClass:function(G,H){var Z="";G&&(Z+="checked ");H&&(Z+="invalid");return Z},
_computeCheckmarkClass:function(G){return G?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.FWd._createRipple.call(this)}});var Jkj=new _.bn("radioButtonSurveyOptionRenderer"),tsi=new _.bn("checkboxSurveyOptionRenderer");var kU6;var DKh;var dK8=0,W0=function(){var G=_.C.call(this)||this;G.selected=!1;G.isOverlay=!1;G.inputId="toggle-option-"+dK8;dK8++;return G};
_.T(W0,_.C);W0.prototype.onTap=function(){_.N5(this.hostElement,"ytd-toggle-option-clicked")};
_.N([_.h(),_.A("design:type",String)],W0.prototype,"label",void 0);_.N([_.h(),_.A("design:type",String)],W0.prototype,"inputId",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W0.prototype,"selected",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W0.prototype,"isOverlay",void 0);_.N([_.O({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.A("design:paramtypes",[])],W0);
_.m(W0,"ytd-toggle-option-renderer",function(){if(DKh!==void 0)return DKh;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return DKh=G},{mode:1});var zg=function(){var G=_.C.apply(this,arguments)||this;G.isToggleOption=!1;G.isOverlay=!1;return G};
_.T(zg,_.C);zg.prototype.onTap=function(G){G.preventDefault();this.data&&(G=!this.data.checked,this.set("data.checked",G),_.N5(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:G,value:this.data.value}))};
_.u4.Object.defineProperties(zg.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
zg.prototype.onTap=zg.prototype.onTap;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zg.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],zg.prototype,"isToggleOption",void 0);_.N([_.h(),_.A("design:type",Object)],zg.prototype,"isOverlay",void 0);_.N([_.z("data.responseText"),_.A("design:type",String),_.A("design:paramtypes",[])],zg.prototype,"label",null);
_.N([_.lq("ytd-toggle-option-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],zg.prototype,"onTap",null);_.N([_.O({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],zg);
_.m(zg,"ytd-checkbox-survey-option-renderer",function(){if(kU6!==void 0)return kU6;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return kU6=G},{mode:1});var ekm;var nPc;var KD=function(){var G=_.C.apply(this,arguments)||this;G.checked=!1;G.isToggleOption=!1;return G};
_.T(KD,_.C);KD.prototype.onTap=function(){this.data&&(this.checked?_.AZ(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.AZ(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
KD.prototype.onTap=KD.prototype.onTap;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],KD.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],KD.prototype,"checked",void 0);_.N([_.h(),_.A("design:type",Object)],KD.prototype,"isToggleOption",void 0);_.N([_.lq("ytd-toggle-option-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],KD.prototype,"onTap",null);
_.N([_.O({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],KD);
_.m(KD,"ytd-radio-button-survey-option-renderer",function(){if(nPc!==void 0)return nPc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return nPc=G},{mode:1});var MG=function(){var G=_.C.apply(this,arguments)||this;G.disableAnimation=!1;G.isToggleOption=!0;G.followUpSurveyCommand=null;G.selectedRatingEndpoint=null;G.isSlimlineSurveyFollowUp=!1;G.isShortsStyle=!1;G.styleOverrideAttribute=!0;G.isDarkMode=!1;G.isSubmitted=!1;G.roundedContainer=!0;G.improveShortsResponseRate=_.V("web_improve_shorts_response_rate");G.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 G};
_.T(MG,_.C);_.g=MG.prototype;
_.g.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"}}}}};
_.g.attached=function(){var G=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(Z){var Q;if((Q=Z[0])!=null&&Q.isIntersecting){_.Qw().reportShown(G.hostElement);var p;(p=G.intersectionObserver)==null||p.unobserve(G.hostElement)}},{rootMargin:"0px",
threshold:.6});var H;(H=this.intersectionObserver)==null||H.observe(this.hostElement)};
_.g.onDarkModeToggledAction=function(G){this.isDarkMode=G};
_.g.dataChanged=function(){var G;if(((G=this.data)==null?void 0:G.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var H;((H=this.data)==null?void 0:H.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var Z,Q,p,l;this.darkColorPalette=(Z=this.data)==null?void 0:(Q=Z.inlineContent)==null?void 0:(p=Q.compactVideoRenderer)==null?void 0:(l=p.thumbnail)==null?
void 0:l.darkColorPalette;var q,u,B,t;this.lightColorPalette=(q=this.data)==null?void 0:(u=q.inlineContent)==null?void 0:(B=u.compactVideoRenderer)==null?void 0:(t=B.thumbnail)==null?void 0:t.lightColorPalette;var D,d;if(((D=this.data)==null?0:(d=D.inlineContent)==null?0:d.compactVideoRenderer)&&this.isShortsStyle){var e,n,c,W;G=_.At((e=this.data)==null?void 0:(n=e.inlineContent)==null?void 0:(c=n.compactVideoRenderer)==null?void 0:(W=c.thumbnail)==null?void 0:W.thumbnails);_.ZI(this.hostElement,
{"--yt-background-url":"url("+G+")"})}};
_.g.handleRequestCompletion=function(){this.hostElement.hidden&&_.N5(this.hostElement,"yt-dismissible-item-dismissed")};
_.g.onPopupClosed=function(G){var H;((H=G.detail)==null?void 0:H.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.AZ(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.g.handleInlineSurveyRatingSelect=function(G,H){var Z=this;this.selectedRatingEndpoint=G;this.followUpSurveyCommand=H;this.expanded=!!G;this.getOptionRenderers().forEach(function(Q,p){Z.notifyPath("followUpSurveyCommand.followUpOptions."+p+".checkboxSurveyOptionRenderer.checked");Z.set("followUpSurveyCommand.followUpOptions."+p+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),G=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.AZ(this.hostElement,"yt-reel-non-video-content-dismissal-command",[G]))};
_.g.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.AZ(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var G,H=(G=this.data)==null?void 0:G.dismissalEndpoint;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.g.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.AZ(this.hostElement,"yt-close-popup-action"))};
_.g.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var G=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{G=this.getOptionRenderers().filter(function(Q){return Q.checked});
if(G.length===0)return;G=G.map(function(Q){return Q.responseEndpoint})}var H=[];
G.forEach(function(Q,p){p!==0&&(Q=_.X(Q,_.Vb))&&Q.feedbackToken&&H.push(Q.feedbackToken)});
if(G=G[0]){var Z={};H.length>0&&(Z.extra_feedback_tokens=H);this.ytComponentBehavior.resolveCommand(G,{form:Z})}}};
_.g.getOptionRenderers=function(){var G=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(H){G.isSingleSelect=!!_.X(H,Jkj);return G.isSingleSelect?_.X(H,Jkj):_.X(H,tsi)}):[]};
_.g.handleInlineSurveyOptionSelect=function(G){G=this.optionSelector.indexOf(G);G!==-1&&this.optionSelector.selectIndex(G)};
_.g.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.g.maybeGetBackgroundColor=function(G){return this.isDarkMode?G.section2Color:G.section3Color};
_.g.colorPaletteChanged=function(){var G=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;G=G&&this.maybeGetBackgroundColor(G);this.dismissibleEl.style.backgroundColor=!G||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.X9(G)};
_.u4.Object.defineProperties(MG.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
MG.prototype.colorPaletteChanged=MG.prototype.colorPaletteChanged;MG.prototype.onPopupClosed=MG.prototype.onPopupClosed;MG.prototype.handleRequestCompletion=MG.prototype.handleRequestCompletion;MG.prototype.dataChanged=MG.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],MG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],MG.prototype,"actionHandlerBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],MG.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],MG.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.q6("#follow-up-survey-options"),_.A("design:type",Object)],MG.prototype,"optionSelector",void 0);_.N([_.h(),_.A("design:type",Object)],MG.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],MG.prototype,"disableAnimation",void 0);_.N([_.h(),_.A("design:type",Object)],MG.prototype,"isToggleOption",void 0);_.N([_.h(),_.A("design:type",Object)],MG.prototype,"followUpSurveyCommand",void 0);_.N([_.h(),_.A("design:type",Object)],MG.prototype,"selectedRatingEndpoint",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],MG.prototype,"expanded",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],MG.prototype,"isSlimlineSurveyFollowUp",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],MG.prototype,"isShortsStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],MG.prototype,"styleOverrideAttribute",void 0);_.N([_.h(),_.A("design:type",Boolean)],MG.prototype,"isSingleSelect",void 0);_.N([_.h(),_.A("design:type",Object)],MG.prototype,"isDarkMode",void 0);
_.N([_.h(),_.A("design:type",Object)],MG.prototype,"lightColorPalette",void 0);_.N([_.h(),_.A("design:type",Object)],MG.prototype,"darkColorPalette",void 0);_.N([_.z("selectedRatingEndpoint","isShortsStyle"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],MG.prototype,"isOptionSelected",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],MG.prototype,"roundedContainer",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],MG.prototype,"improveShortsResponseRate",void 0);_.N([_.q6("#dismissible"),_.A("design:type",HTMLElement)],MG.prototype,"dismissibleEl",void 0);_.N([_.q6("#dismiss-button yt-icon-button"),_.A("design:type",HTMLElement)],MG.prototype,"dismissButtonEl",void 0);_.N([_.q6("#inline-survey-header yt-icon-button"),_.A("design:type",HTMLElement)],MG.prototype,"inlineHeaderDismissButtonEl",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MG.prototype,"dataChanged",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MG.prototype,"handleRequestCompletion",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],MG.prototype,"onPopupClosed",null);
_.N([_.gx("darkColorPalette","lightColorPalette","isDarkMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MG.prototype,"colorPaletteChanged",null);_.N([_.O({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],MG);
_.m(MG,"ytd-inline-survey-renderer",function(){if(ekm!==void 0)return ekm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ekm=G},{mode:1});var Vsj=["en-CA","en","es-MX","fr-CA"];_.$KA=_.y(function(G){var H=_.oK(G,{isOverlay:!1,isModern:!1}),Z=H.captionIconType,Q=H.onClick;G=H.ariaLabel;var p=H.ariaPressed,l=H.isOverlay,q=H.isModern;H=_.IA("button",function(t){_.fD(t,127299)});
var u=_.Hh(function(t){_.v0(127299);Q==null||Q(t);return!1}),B={};
return _.J("ytm-closed-captioning-button",{class:_.bb("ytmClosedCaptioningButtonHost",(B.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return Z()===-1&&l()},B.ytmClosedCaptioningButtonIconDisabled=function(){return Z()===-1&&!l()},B))},_.J("button",{el:H,
class:"ytmClosedCaptioningButtonButton",title:G,"aria-label":G,"aria-pressed":p,"on:click":u},_.J(_.ll,{icon:function(){var t="",D=q();var d=D?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";D=D?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var e=_.lf().get("hl");d=!e||Vsj.includes(e)?d:D;D=Z();switch(D){case -1:case 0:t=d;break;case 1:t=d+"_FILLED";break;default:_.Lw(D)}return t}})))},"lh");
_.$KA.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.RW=function(G){return function(H,Z){var Q=G||Z.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(H,Z,{get:function(){var p;return this.$?this.$[Q]:(p=_.IK(this))==null?void 0:p.querySelector("#"+Q)},
enumerable:!0,configurable:!0})}};_.NM=function(G){G=G===void 0?!1:G;_.wI.call(this);this.pubSub_=new _.K$(G);_.T$(this,this.pubSub_)};
_.AB(_.NM,_.wI);_.NM.prototype.subscribe=function(G,H,Z){return this.isDisposed()?0:this.pubSub_.subscribe(G,H,Z)};
_.NM.prototype.unsubscribe=function(G,H,Z){return this.isDisposed()?!1:this.pubSub_.unsubscribe(G,H,Z)};
_.NM.prototype.unsubscribeByKey=function(G){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(G)};
_.NM.prototype.publish=function(G,H){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var QCa=function(){_.VV("ypcRedeemFlowStarted")},pHk=function(G){_.VV("ypcRedeemFlowFailed",void 0,void 0,void 0,G)},llk=function(G,H,Z){H&&Z&&(G.videos.forEach(function(Q){Q.videoId===H&&(Q.itemId=Z)}),G.recommendedVideos.forEach(function(Q){Q.videoId===H&&(Q.itemId=Z)}))};var gDo;var Ilh;/*

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
*/
_.Vy({_template:function(){if(Ilh!==void 0)return Ilh;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;gDo===void 0&&(gDo=document.createElement("template"));var Q=gDo;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Ilh=G},
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(G,H){var Z=this._resolveSrc(G);Z!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",G===""||H?this._setLoading(!1):(this._resolvedSrc=Z,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 G=this.$.sizedImgDiv.style,H=this.$.placeholder.style;G.backgroundSize=H.backgroundSize=this.sizing;G.backgroundPosition=H.backgroundPosition=this.sizing?this.position:"";G.backgroundRepeat=H.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(G){G=_.n1(G,this.$.baseURIAnchor.href);G.length>=2&&G[0]==="/"&&G[1]!=="/"&&(G=(location.origin||location.protocol+"//"+location.host)+G);return G}});var qbj;var Sbt;_.Vy({_template:function(){if(Sbt!==void 0)return Sbt;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;qbj===void 0&&(qbj=document.createElement("template"));var Q=qbj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Sbt=G},
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(G){return G?"false":"true"},
_headingChanged:function(G){var H=this.getAttribute("heading"),Z=this.getAttribute("aria-label");typeof Z==="string"&&Z!==H||this.setAttribute("aria-label",G)},
_computeHeadingClass:function(G){return G?" over-image":""},
_computeAnimated:function(G){return G}});var uJk=new _.bn("addRendererToItemSectionAction");var BCt;var h8=function(){return _.C.apply(this,arguments)||this};
_.T(h8,_.C);h8.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],h8.prototype,"rendererBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],h8.prototype,"dismissibleItemBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],h8.prototype,"rendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],h8.prototype,"data",void 0);_.N([_.O({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],h8);
_.m(h8,"ytd-comment-history-entry-renderer",function(){if(BCt!==void 0)return BCt;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return BCt=G},{mode:1});var JKh;_.eQ("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.eQ("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var C4=function(){return _.C.apply(this,arguments)||this};
_.T(C4,_.C);_.g=C4.prototype;_.g.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.g.onTap=function(){this.data.recordClickEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var G=this.data.navigationEndpoint;G&&_.X(G,_.Nu)&&_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}})};
_.g.readChanged=function(){var G;_.Gq(this.hostElement,"unread",!((G=this.data)==null?0:G.read))};
_.g.dataChanged=function(){this.data&&_.Gq(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.g.computeThumbnailSize=function(){var G;return((G=this.data)==null?0:G.highPriorityNotification)?32:48};
_.g.getEndpointURL=function(G){return G&&!_.X(G,_.Nu)?this.componentBehavior.computeHref_(G):null};
_.g.getEndpointData=function(G){return G&&!_.X(G,_.Nu)?G:null};
C4.prototype.computeThumbnailSize=C4.prototype.computeThumbnailSize;C4.prototype.dataChanged=C4.prototype.dataChanged;C4.prototype.readChanged=C4.prototype.readChanged;C4.prototype.onKeyUp=C4.prototype.onKeyUp;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],C4.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],C4.prototype,"data",void 0);_.N([_.h({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.A("design:type",Number)],C4.prototype,"thumbnailSize",void 0);_.N([_.lq("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],C4.prototype,"onKeyUp",null);
_.N([_.gx("data.read"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C4.prototype,"readChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C4.prototype,"dataChanged",null);_.N([_.gx("data.highPriorityNotification"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],C4.prototype,"computeThumbnailSize",null);
_.N([_.O({is:"ytd-notification-renderer",disableElementRegistration:!0})],C4);
_.m(C4,"ytd-notification-renderer",function(){if(JKh!==void 0)return JKh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JKh=G},{mode:1});var txh;var iK=function(){return _.C.apply(this,arguments)||this};
_.T(iK,_.C);iK.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"}}}};
iK.prototype.computeActionButtonClass=function(G){return!G.actionButtons||G.actionButtons.length<=1?"single-button":G.description?"vertical-buttons":"horizontal-buttons"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],iK.prototype,"data",void 0);_.N([_.O({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],iK);
_.m(iK,"ytd-playlist-show-metadata-renderer",function(){if(txh!==void 0)return txh;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return txh=G},{mode:1});var krD;_.eQ("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var OG=function(){return _.C.apply(this,arguments)||this};
_.T(OG,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],OG.prototype,"data",void 0);_.N([_.O({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],OG);
_.m(OG,"ytd-purchase-item-renderer",function(){if(krD!==void 0)return krD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return krD=G},{mode:1});var DrD;var dri={};dri.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(G){if(G)return G.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(G){if(G==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.eQ("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var am=function(){return _.C.apply(this,arguments)||this};
_.T(am,_.C);am.prototype.onYtNavigate=function(G){var H=this.openPopupBehavior.getNavigationEndpointPopupAction(G.detail.endpoint);H&&(G.stopPropagation(),this.openPopupBehavior.openPopup(H))};
am.prototype.onYtNavigate=am.prototype.onYtNavigate;_.N([_.v(dri.YtSimpleTextSectionBehavior),_.A("design:type",Object)],am.prototype,"ytSimpleTextSectionBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],am.prototype,"openPopupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],am.prototype,"data",void 0);
_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],am.prototype,"onYtNavigate",null);_.N([_.O({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],am);
_.m(am,"ytd-simple-text-section-renderer",function(){if(DrD!==void 0)return DrD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return DrD=G},{mode:1});var etA;_.eQ("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var nDh=function(){return _.C.apply(this,arguments)||this};
_.T(nDh,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nDh.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nDh.prototype,"data",void 0);_.N([_.O({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],nDh);
_.m(nDh,"ytd-unlimited-page-feature-info-renderer",function(){if(etA!==void 0)return etA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return etA=G},{mode:1});var Vx8;var $ri;var y_=function(){return _.C.apply(this,arguments)||this};
_.T(y_,_.C);y_.prototype.dataChanged=function(){if(this.data){var G=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);G&&(G=_.N$(G,screen.width),this.hostElement.style.backgroundImage="url("+G+")")}};
y_.prototype.dataChanged=y_.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],y_.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y_.prototype,"dataChanged",null);_.N([_.O({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],y_);
_.m(y_,"ytd-post-redemption-section-renderer",function(){if($ri!==void 0)return $ri;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $ri=G},{mode:1});var XHq;var om=function(){return _.C.apply(this,arguments)||this};
_.T(om,_.C);om.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],om.prototype,"data",void 0);_.N([_.O({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],om);
_.m(om,"ytd-ypc-post-redemption-renderer",function(){if(XHq!==void 0)return XHq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return XHq=G},{mode:1});_.eQ("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var mp=function(){var G=_.C.apply(this,arguments)||this;G.MIN_CODE_LENGTH=12;G.MAX_CODE_LENGTH=24;return G};
_.T(mp,_.C);_.g=mp.prototype;_.g.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.g.created=function(){this.riskService=new _.rof;this.loadPaymentThenable=_.hJW(_.xI("YPC_MB_URL"))};
_.g.ready=function(){var G=this;this.code.addEventListener("keypress",function(H){G.onCodeInputKeypress(H)})};
_.g.dataChanged=function(){var G=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(H){H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.type==="attributes"&&Z.attributeName==="dark"&&G.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.g.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var G=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+G+")")}};
_.g.computeRedeemButton=function(G){(G=this.get("redeemButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.g.onRedeemButtonTap=function(G){G.stopPropagation();QCa();this.redeemCode()};
_.g.redeemCode=function(){var G=this;this.isLoading=!0;var H=this.riskService.init();_.Tw([H,this.loadPaymentThenable]).then(function(){var Z=G.data.redeemButton.buttonRenderer.serviceEndpoint,Q=_.wmf(),p=_.a9.payments.business.integration.ClientTokenFactory.createClientToken(_.X(Z,_.dAa).countryCode,Q);Q={c:G.code.value.trim(),rd:window.btoa(Q),ctk:p};Z&&_.tp().resolve(_.Dk).resolveCommand(Z,{form:Object.assign({},Q,{element:G.hostElement})})},function(){G.showGenericError();
pHk("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.FU(Error("Ho"))})};
_.g.onYtServiceRequestCompleted=function(G){G.stopPropagation();this.isLoading=!1;var H,Z;this.errorMessage=(H=G.detail)==null?void 0:(Z=H.data)==null?void 0:Z.errorMessage;var Q,p;this.postRedemptionRenderer=(Q=G.detail)==null?void 0:(p=Q.data)==null?void 0:p.renderer;var l,q;if(G=(l=G.detail)==null?void 0:(q=l.data)==null?void 0:q.redirectEndpoint)this.isLoading=!0,_.N5(this.hostElement,"yt-navigate",{endpoint:G});this.errorMessage?pHk("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
G)&&_.VV("ypcRedeemFlowSucceeded")};
_.g.onYtServiceRequestError=function(G){G.stopPropagation();this.isLoading=!1;if(G=this.get("detail.error.message",G))this.errorMessage=_.aq(G);pHk("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.g.onInvokeInstrumentManagerActionCompleted=function(G){G.stopPropagation();this.redeemCode()};
_.g.onInvokeInstrumentManagerActionError=function(G){G.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",G)){case "instrumentManagerLoadError":this.showGenericError();pHk("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();pHk("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.VV("ypcRedeemFlowCancelled")}};
_.g.onInput=function(){var G=this;_.rx(this,"onInput",function(){var H=G.code.value.trim();G.redeemButtonDisabled=H.length<G.MIN_CODE_LENGTH||H.length>G.MAX_CODE_LENGTH},200)};
_.g.onCodeInputKeypress=function(G){G.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(QCa(),this.redeemCode())};
_.g.computeImageUrl=function(G){return G?_.N$(G.thumbnails,600):null};
_.g.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
mp.prototype.onInvokeInstrumentManagerActionError=mp.prototype.onInvokeInstrumentManagerActionError;mp.prototype.onInvokeInstrumentManagerActionCompleted=mp.prototype.onInvokeInstrumentManagerActionCompleted;mp.prototype.onYtServiceRequestError=mp.prototype.onYtServiceRequestError;mp.prototype.onYtServiceRequestCompleted=mp.prototype.onYtServiceRequestCompleted;mp.prototype.dataChanged=mp.prototype.dataChanged;
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],mp.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],mp.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Boolean)],mp.prototype,"redeemButtonDisabled",void 0);
_.N([_.h(),_.A("design:type",Object)],mp.prototype,"errorMessage",void 0);_.N([_.h(),_.A("design:type",Object)],mp.prototype,"postRedemptionRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],mp.prototype,"observer",void 0);_.N([_.q6("#code"),_.A("design:type",HTMLInputElement)],mp.prototype,"code",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mp.prototype,"dataChanged",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],mp.prototype,"onYtServiceRequestCompleted",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],mp.prototype,"onYtServiceRequestError",null);
_.N([_.lq("yt-invoke-instrument-manager-action-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],mp.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.N([_.lq("yt-invoke-instrument-manager-action-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],mp.prototype,"onInvokeInstrumentManagerActionError",null);_.N([_.O({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],mp);
_.m(mp,"ytd-redeem-code-renderer",function(){if(Vx8!==void 0)return Vx8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Vx8=G},{mode:1});var cKi;_.eQ("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var UG=function(){var G=_.C.apply(this,arguments)||this;G.businessEmailDisplayState="HIDE_SECTION";return G};
_.T(UG,_.C);_.g=UG.prototype;_.g.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}}}}}};
_.g.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"};
_.g.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.g.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.zh(_.I1_),this.businessEmailDisplayState="CAPTCHA"))};
_.g.onYtServiceRequestCompleted=function(G){var H;if((H=G.detail.data)==null?0:H.businessEmail)this.businessEmail=G.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var Z;if((Z=G.detail.data)==null?0:Z.errorMessage)this.businessEmailErrorMessage=G.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.g.computeEmailHref=function(G){return"mailto:"+G};
_.g.computeSafeUrl=function(G){if(G)return _.m0(G)};
_.g.onBusinessEmailCaptchaSubmit=function(){var G;(G=this.data)!=null&&G.onBusinessEmailRevealClickCommand&&(G=this.JSC$22037_captchaTextarea.value)&&(G={recaptcha_response_token:G,channel_id:this.data.channelId},_.tp().resolve(_.Dk).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},G,{element:this.hostElement})}))};
_.g.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.u4.Object.defineProperties(UG.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 G,H;return!((G=this.data)==null||!G.primaryLinks)&&!((H=this.data)==null?0:H.links)&&this.data.primaryLinks.every(function(Z){return Z.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null||!G.primaryLinks)&&!((H=this.data)==null?0:H.links)&&!this.shouldShowNewLinks}}});
UG.prototype.onYtServiceRequestCompleted=UG.prototype.onYtServiceRequestCompleted;UG.prototype.dataChanged=UG.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],UG.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.q6("#g-recaptcha-response"),_.A("design:type",HTMLTextAreaElement)],UG.prototype,"JSC$22037_captchaTextarea",void 0);_.N([_.h(),_.A("design:type",Object)],UG.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],UG.prototype,"businessEmailDisplayState",void 0);_.N([_.h(),_.A("design:type",String)],UG.prototype,"businessEmail",void 0);_.N([_.h(),_.A("design:type",String)],UG.prototype,"businessEmailErrorMessage",void 0);
_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"hideDetailsSection",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UG.prototype,"dataChanged",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"shouldShowNewLinks",null);_.N([_.z("data","shouldShowLinks"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],UG.prototype,"shouldShowLegacyLinks",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],UG.prototype,"onYtServiceRequestCompleted",null);_.N([_.O({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],UG);
_.m(UG,"ytd-channel-about-metadata-renderer",function(){if(cKi!==void 0)return cKi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cKi=G},{mode:1});var TCk;_.eQ("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Rm=function(){return _.C.apply(this,arguments)||this};
_.T(Rm,_.C);Rm.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]]"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Rm.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],Rm.prototype,"lockupContainerType",void 0);_.N([_.h(),_.A("design:type",String)],Rm.prototype,"thumbnailFixedWidth",void 0);
_.N([_.O({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Rm);
_.m(Rm,"ytd-channel-featured-content-renderer",function(){if(TCk!==void 0)return TCk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TCk=G},{mode:1});var flh;_.eQ("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var ph=function(){var G=_.C.apply(this,arguments)||this;G.roundContainer=!0;G.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return G};
_.T(ph,_.C);_.g=ph.prototype;_.g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.g.dataChanged=function(){this.imageWidth=this.imageHeight=24;var G=this.data;G.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!G.style&&G.image&&G.image.thumbnails.length&&(G=G.image.thumbnails[0],this.imageWidth=G.width||0,this.imageHeight=G.height||0)};
_.g.computeSource=function(G){return G.secondarySource?_.yn(G.secondarySource):_.yn(G.source)};
_.g.computeClarifyStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.g.isLargeStyle=function(G){return G==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.g.computeBackgroundStyle=function(G){return G?G.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.g.computeHasActionButton=function(G){return!!G.actionButton};
_.g.computeHasBottomSection=function(G){return!!G.ctaHasBottomSection};
_.g.computeIsSourceMissing=function(G){return G.ctaHasBottomSection===!1?!0:G&&this.computeSource(G)?!1:!0};
_.g.computeSecondaryEndpoint=function(G){return G.secondaryEndpoint||G.endpoint};
ph.prototype.dataChanged=ph.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ph.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],ph.prototype,"imageWidth",void 0);_.N([_.h(),_.A("design:type",Number)],ph.prototype,"imageHeight",void 0);
_.N([_.h({computed:"computeSecondaryEndpoint(data)"}),_.A("design:type",Object)],ph.prototype,"secondaryEndpoint",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.A("design:type",Boolean)],ph.prototype,"hasActionButton",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.A("design:type",Boolean)],ph.prototype,"hasBottomSection",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.A("design:type",Boolean)],ph.prototype,"missingSource",void 0);_.N([_.h({computed:"computeIcon_(data.icon)"}),_.A("design:type",String)],ph.prototype,"icon",void 0);_.N([_.h({computed:"computeIcon_(data.secondaryIcon)"}),_.A("design:type",String)],ph.prototype,"secondaryIcon",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.A("design:type",String)],ph.prototype,"clarifyStyle",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.A("design:type",String)],ph.prototype,"backgroundStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ph.prototype,"roundContainer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],ph.prototype,"amsterdamEnabled",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ph.prototype,"dataChanged",null);
_.N([_.O({is:"ytd-clarification-renderer",disableElementRegistration:!0})],ph);
_.m(ph,"ytd-clarification-renderer",function(){if(flh!==void 0)return flh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return flh=G},{mode:1});var vDt;var WYL;var lQ=function(){var G=_.C.apply(this,arguments)||this;G.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return G};
_.T(lQ,_.C);_.g=lQ.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.g.computeIcon=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.g.computeUseContacts=function(G){return!!G.contacts&&G.contacts.length>0};
_.g.computePhoneContact=function(G){var H,Z;return(H=G.contacts)==null?void 0:(Z=H.find(function(Q){var p;return(Q==null?void 0:(p=Q.icon)==null?void 0:p.iconType)==="PHONE"}))==null?void 0:Z.actionText};
_.g.computeSmsContact=function(G){var H,Z;return(H=G.contacts)==null?void 0:(Z=H.find(function(Q){var p;return(Q==null?void 0:(p=Q.icon)==null?void 0:p.iconType)==="SMS"}))==null?void 0:Z.actionText};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lQ.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],lQ.prototype,"amsterdamEnabled",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.A("design:type",Boolean)],lQ.prototype,"useContacts",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.A("design:type",String)],lQ.prototype,"phoneContact",void 0);_.N([_.O({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],lQ);
_.m(lQ,"ytd-single-action-emergency-support-renderer",function(){if(WYL!==void 0)return WYL;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return WYL=G},{mode:1});_.eQ("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var gZ=function(){var G=_.C.apply(this,arguments)||this;G.roundedContainer=!0;G.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return G};
_.T(gZ,_.C);gZ.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"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gZ.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],gZ.prototype,"roundedContainer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],gZ.prototype,"amsterdamEnabled",void 0);
_.N([_.O({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],gZ);
_.m(gZ,"ytd-emergency-onebox-renderer",function(){if(vDt!==void 0)return vDt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vDt=G},{mode:1});var zto;_.eQ("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var IG=function(){return _.C.apply(this,arguments)||this};
_.T(IG,_.C);IG.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],IG.prototype,"data",void 0);_.N([_.O({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],IG);
_.m(IG,"ytd-exploratory-results-renderer",function(){if(zto!==void 0)return zto;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zto=G},{mode:1});var KYo;_.eQ("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var qs=function(){var G=_.C.apply(this,arguments)||this;G.messageData=null;return G};
_.T(qs,_.C);_.g=qs.prototype;_.g.onServiceRequestCompleted=function(G,H){G=H.actions||[];H=0;for(var Z=G.length;H<Z;H++){var Q=G[H],p=void 0,l=void 0;if((p=_.X(Q,_.zm))==null?0:(l=p.item)==null?0:l.messageRenderer)this.messageData=_.X(Q,_.zm).item.messageRenderer}};
_.g.dataChanged=function(){var G=this.data;this.hostElement.hidden=!1;_.Gq(this.hostElement,"is-channel",G&&!G.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.g.computeThumbnailWidth=function(G){return G?126:56};
_.g.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.g.onSubmitTap=function(){var G=this.data,H=this.selectedResponseIndex;G!==void 0&&H!==void 0&&(G=G.responses[H],G.responseData&&_.tp().resolve(_.Dk).resolveCommand(G.responseData,{form:{element:this.hostElement}}))};
_.g.onDismissTap=function(){this.hostElement.hidden=!0;var G=this.data;G!==void 0&&G.dismissalEndpoint&&_.tp().resolve(_.Dk).resolveCommand(G.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
qs.prototype.onSelectedResponseIndexChange=qs.prototype.onSelectedResponseIndexChange;qs.prototype.dataChanged=qs.prototype.dataChanged;qs.prototype.onServiceRequestCompleted=qs.prototype.onServiceRequestCompleted;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qs.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],qs.prototype,"messageData",void 0);
_.N([_.h(),_.A("design:type",Number)],qs.prototype,"selectedResponseIndex",void 0);_.N([_.q6("#submit-button"),_.A("design:type",HTMLButtonElement)],qs.prototype,"submitButton",void 0);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],qs.prototype,"onServiceRequestCompleted",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qs.prototype,"dataChanged",null);
_.N([_.gx("selectedResponseIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qs.prototype,"onSelectedResponseIndexChange",null);_.N([_.O({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],qs);
_.m(qs,"ytd-feedback-elicitation-single-question-renderer",function(){if(KYo!==void 0)return KYo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return KYo=G},{mode:1});var Mxs;var SJ=function(){return _.C.apply(this,arguments)||this};
_.T(SJ,_.C);SJ.prototype.computeThumbnailWidth=function(G){return G?602:428};
SJ.prototype.updateWideFromBinding=function(G){this.wide=G.detail.value};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],SJ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],SJ.prototype,"wide",void 0);_.N([_.O({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],SJ);
_.m(SJ,"ytd-newspaper-hero-video-renderer",function(){if(Mxs!==void 0)return Mxs;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Mxs=G},{mode:1});var jCL;var Pvi=function(){return _.C.apply(this,arguments)||this};
_.T(Pvi,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pvi.prototype,"rendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Pvi.prototype,"data",void 0);_.N([_.O({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Pvi);
_.m(Pvi,"ytd-newspaper-mini-video-renderer",function(){if(jCL!==void 0)return jCL;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jCL=G},{mode:1});var rKk;_.eQ("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var uQ=function(){return _.C.apply(this,arguments)||this};
_.T(uQ,_.C);uQ.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"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uQ.prototype,"data",void 0);_.N([_.O({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],uQ);
_.m(uQ,"ytd-newspaper-renderer",function(){if(rKk!==void 0)return rKk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rKk=G},{mode:1});var wHj;_.eQ("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Bm=function(){var G=_.C.apply(this,arguments)||this;G.isSegment=!1;G.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};G.nextContinuation={continuationType:"playlistVideoListContinuation"};return G};
_.T(Bm,_.C);_.g=Bm.prototype;_.g.created=function(){var G=this;this.JSC$22070_ytReorderableController=new _.ZLG(101,function(H){G.handleDrop(H)})};
_.g.attached=function(){_.tp();var G;(G=_.tp().resolve(_.Jp(_.Kc)))!=null&&(G.playlistVideoListElement=this.hostElement)};
_.g.detached=function(){var G;(G=_.tp().resolve(_.Jp(_.Kc)))!=null&&(G.playlistVideoListElement=void 0);G=_.tp().resolve(_.Jp(_.VC));_.V("web_enable_voting_animation")&&G&&(G.parentElem=void 0,G.videos=[],G.continuationsPresent=!1,G.showRefreshPill=!1);_.Wk(this.JSC$22070_ytReorderableController)};
_.g.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"}}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.g.dataChanged=function(){var G=_.tp().resolve(_.Jp(_.VC));if(_.V("web_enable_voting_animation")&&this.data&&G){var H=_.F9(this.hostElement).querySelector("#contents");H&&(G.parentElem=H);G.addVideos(this.data.contents)}_.Wk(this.JSC$22070_ytReorderableController)};
_.g.onRendererstamperFinished=function(){this.canReorder&&_.Qg7(this.JSC$22070_ytReorderableController,_.F9(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.g.onPlaylistReloading=function(){this.isReloading=!0};
_.g.onUpdateSetVideoId=function(G){if(G.detail&&this.data&&this.data.contents){var H=G.detail;G=this.data.contents.findIndex(function(p){var l;return((l=p.playlistVideoRenderer)==null?void 0:l.videoId)===H.videoId});
if(!(G<0)&&H.setVideoId&&(this.set("data.contents."+G+".playlistVideoRenderer.setVideoId",H.setVideoId),_.V("web_enable_voting_animation"))){var Z;if(G=_.X((Z=this.data.contents[G].playlistVideoRenderer)==null?void 0:Z.engagementBar,_.GX2)){var Q;(Q=G.actions)==null||Q.forEach(function(p){if(p=_.X(p,_.Hhj))p.itemId=H.setVideoId})}(Z=_.tp().resolve(_.Jp(_.VC)))&&llk(Z,H.videoId,H.setVideoId)}}};
_.g.computeContentsClass=function(G){return G?"reloading":""};
_.g.computeIsSortable=function(G,H){return G&&H>0&&!this.isSegment&&!_.V("shorts_in_playlists_web")};
_.g.computeIsEditable=function(G){return G};
_.g.computeCanReorder=function(G){return G};
_.g.handlePlaylistRemoveVideosAction=function(G){if(this.get("playlistRemoveVideosAction.setVideoIds",G)&&this.data&&this.data.contents){G=_.X(G,_.C2T).setVideoIds;for(var H=this.data.contents.length-1;H>=0;){var Z=this.data.contents[H].playlistVideoRenderer;Z&&Z.setVideoId&&G.includes(Z.setVideoId)&&this.splice("data.contents",H,1);H--}_.AZ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.g.updateIndices=function(){if(this.data&&this.data.contents)for(var G=0;G<this.data.contents.length;G++)this.set("data.contents."+G+".playlistVideoRenderer.index",_.aq(String(G+1)))};
_.g.handleDrop=function(G){G=G.currDragItem;var H=_.Oj(G.parentNode.childNodes,G),Z=this.data.contents.splice(Number(_.yn(G.data.index))-1,1)[0];this.data.contents.splice(H,0,Z);H=H?this.get("contents."+(H-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();G=this.buildReorderServiceEndpoint(G.data.setVideoId,H);this.ytComponentBehavior.resolveCommand(G)};
_.g.buildReorderServiceEndpoint=function(G,H){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",G),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",H),this.data.onReorderEndpoint):null};
_.g.handleUpdatePlaylistAction=function(G){var H;(G=_.X((H=_.X(G,_.ita))==null?void 0:H.updatedRenderer,_.iia))&&this.canReorder!==G.canReorder&&this.set("data.canReorder",G.canReorder);G&&G.contents&&(this.set("data.contents",G.contents),this.isReloading=!1);G&&G.continuations&&this.set("data.continuations",G.continuations)};
_.g.handleAddRendererToItemSectionAction=function(G){var H,Z=(H=_.X(G,uJk))==null?void 0:H.renderer,Q;Z&&((Q=_.X(G,uJk))==null?void 0:Q.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,Z),G=_.tp().resolve(_.Jp(_.VC)),_.V("web_enable_voting_animation")&&G&&(Z&&(H=_.b4W(Z))&&G.recommendedVideos.push({itemId:H,videoId:_.sGM(Z),voteCount:_.ZhW(Z),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.g.isVotingEnabledOnPlaylist=function(G){if(!G)return!1;G=_.I(G);for(G=G.next();!G.done;G=G.next()){var H=void 0;return!!_.X((H=G.value.playlistVideoRenderer)==null?void 0:H.engagementBar,_.GX2)}return!1};
_.g.onAppendContinuationItemsActionFinished=function(){var G;this.isVotingEnabledOnPlaylist((G=this.data)==null?void 0:G.contents)&&(this.updateIndices(),G=_.tp().resolve(_.Jp(_.VC)),_.V("web_enable_voting_animation")&&G&&this.data&&G.addVideos(this.data.contents))};
_.g.updateVideoData=function(G){if(G.detail&&this.data&&this.data.contents){var H=G.detail;G=H.toIdx;var Z=H.itemId,Q=H.newVoteCount,p=H.voteStatus;H=H.hideItem;var l,q,u=(l=this.data)==null?void 0:(q=l.contents)==null?void 0:q.findIndex(function(d){return _.b4W(d)===Z});
if(!(u<0)){l=this.data.contents[u];var B;if((B=l.playlistVideoRenderer)==null?0:B.voteCount)l.playlistVideoRenderer.voteCount=Q;var t;if(B=_.X((t=l.playlistVideoRenderer)==null?void 0:t.engagementBar,_.GX2)){var D;(D=B.actions)==null||D.forEach(function(d){(d=_.X(d,_.Hhj))&&d.initialState&&(d.initialState.votes=Q,d.initialState.status=p)})}this.data.contents.splice(u,1);
H||this.data.contents.splice(G,0,l);this.updateIndices()}}};
Bm.prototype.updateVideoData=Bm.prototype.updateVideoData;Bm.prototype.onAppendContinuationItemsActionFinished=Bm.prototype.onAppendContinuationItemsActionFinished;Bm.prototype.onUpdateSetVideoId=Bm.prototype.onUpdateSetVideoId;Bm.prototype.onPlaylistReloading=Bm.prototype.onPlaylistReloading;Bm.prototype.onRendererstamperFinished=Bm.prototype.onRendererstamperFinished;Bm.prototype.dataChanged=Bm.prototype.dataChanged;
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Bm.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.ZE.YtNextContinuationBehavior),_.A("design:type",Object)],Bm.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.v(_.sF),_.A("design:type",Object)],Bm.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Bm.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Bm.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Bm.prototype,"isReloading",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Bm.prototype,"isSegment",void 0);
_.N([_.h({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.A("design:type",Boolean)],Bm.prototype,"isSortable",void 0);_.N([_.h({computed:"computeIsEditable(data.isEditable)"}),_.A("design:type",Boolean)],Bm.prototype,"isEditable",void 0);_.N([_.h({computed:"computeCanReorder(data.canReorder)"}),_.A("design:type",Boolean)],Bm.prototype,"canReorder",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bm.prototype,"dataChanged",null);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bm.prototype,"onRendererstamperFinished",null);_.N([_.lq("yt-playlist-reloading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bm.prototype,"onPlaylistReloading",null);
_.N([_.lq("yt-update-set-video-id"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bm.prototype,"onUpdateSetVideoId",null);_.N([_.lq("yt-append-continuation-items-action-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bm.prototype,"onAppendContinuationItemsActionFinished",null);
_.N([_.lq("yt-update-video-data-voting-animation"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bm.prototype,"updateVideoData",null);_.N([_.O({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Bm);
_.m(Bm,"ytd-playlist-video-list-renderer",function(){if(wHj!==void 0)return wHj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wHj=G},{mode:_.LH("kevlar_poly_si_batch_j047")?1:2});var ht6;var Jo=function(){return _.C.apply(this,arguments)||this};
_.T(Jo,_.C);Jo.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"}}}}};
Jo.prototype.onTextWrapperTap=function(G){var H=this.data&&this.data.navigationEndpoint;H&&!_.OO(_.OD(G),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.N5(this.hostElement,"yt-navigate",{endpoint:H})};
Jo.prototype.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");G&&G.commandMetadata&&_.X(G.commandMetadata,_.rS)&&_.X(G.commandMetadata,_.rS).fireAutomatically&&_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}})};
Jo.prototype.dataChanged=Jo.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.bz),_.A("design:type",Object)],Jo.prototype,"ytdLockupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Jo.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],Jo.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],Jo.prototype,"biggerThumbsStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Jo.prototype,"leftAligned",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jo.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Jo);
_.m(Jo,"ytd-movie-renderer",function(){if(ht6!==void 0)return ht6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ht6=G},{mode:1});var Cvo;var to=function(){var G=_.C.apply(this,arguments)||this;G.rounded=!0;G.pageAttachedTo=void 0;G.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return G};
_.T(to,_.C);to.prototype.attached=function(){this.pageAttachedTo=_.tp().resolve(_.o0).getCurrentPage();_.N5(this.hostElement,"yt-player-attached",this.player)};
to.prototype.detached=function(){var G;if((G=this.pageAttachedTo)==null?0:G.hostElement)_.N5(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
to.prototype.dataChanged=function(){var G;if((G=this.data)==null?0:G.videoId)G={video_id:this.data.videoId,autoplay:!0},!_.V("miniplayer_stop_channel_video_autoplay_killswitch")&&_.tp().resolve(_.WM).isMiniplayerActive()&&(G.pause_at_start=!0,G.autoplay=!1),this.player.loadVideoWithPlayerVars(G)};
to.prototype.handleSignalActionPausePlayer=function(){_.R0().pause()};
to.prototype.dataChanged=to.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],to.prototype,"data",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],to.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],to.prototype,"rounded",void 0);_.N([_.q6("#player"),_.A("design:type",Object)],to.prototype,"player",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],to.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],to);
_.m(to,"ytd-channel-video-player-renderer",function(){if(Cvo!==void 0)return Cvo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Cvo=G},{mode:1});var ijj;var Oj6;var alo;var k4=function(){var G=_.C.apply(this,arguments)||this;G.playing=!1;G.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.LW(G);G.active=!1;return G};
_.T(k4,_.C);_.g=k4.prototype;_.g.detached=function(){this.stop()};
_.g.play=function(){var G=this,H,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return G.active=!0,H=G.get("data.inlinePlaybackEndpoint.watchEndpoint"),Z=H.videoId||G.data.videoId,Q=H.startTimeSeconds||0,p=H.playerParams||null,_.V("kevlar_player_update_killswitch")?q.yield(G.playerEl.update({args:{video_id:Z,startSeconds:Q,player_params:p}}),2):(G.playerEl.loadVideoWithPlayerVars({video_id:Z,startSeconds:Q,player_params:p,autoplay:!0}),q.jumpTo(2));if(q.nextAddress!=4)return q.yield(G.playerEl.getPlayerPromise(),
4);l=q.yieldResult;l.unloadModule("annotations_module");l.addEventListener("onStateChange",function(u){G.onPlayerStateChange(u)});
_.K0(q)})};
_.g.onPlayerStateChange=function(G){if(this.active)switch(this.playing=G===1,G){case 1:_.N5(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.N5(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.g.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.g.resize=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.playerEl.getPlayerPromise(),2);H=Z.yieldResult;H.setSize(NaN,NaN);_.K0(Z)})};
_.N([_.h(),_.A("design:type",Object)],k4.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],k4.prototype,"playing",void 0);_.N([_.h(),_.A("design:type",Object)],k4.prototype,"playerId",void 0);_.N([_.q6("#player"),_.A("design:type",Object)],k4.prototype,"playerEl",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],k4);
_.m(k4,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(alo!==void 0)return alo;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return alo=G},{mode:1});var yKj;var oD8;var Dd=function(){var G=_.C.apply(this,arguments)||this;G.width=0;return G};
_.T(Dd,_.C);_.g=Dd.prototype;_.g.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.pH(this,this.onEnded));this.mp4El.addEventListener("error",_.pH(this,this.onError))};
_.g.detached=function(){this.videoEl.removeEventListener("ended",_.pH(this,this.onEnded));this.mp4El.removeEventListener("error",_.pH(this,this.onError))};
_.g.play=function(){var G=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var H=this.videoEl.play();H?H.then(function(){G.handleVideoStartPlaying()}).catch(function(){_.N5(G.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.N5(this.hostElement,"yt-video-thumbnail-not-playing")};
_.g.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.g.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.g.dataChanged=function(){var G;if((G=this.data)==null?0:G.thumbnailPlaceholder)G=_.N$(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+G+")";this.stop();this.autoplay&&this.play()};
_.g.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.g.onEnded=function(){this.stop();_.N5(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.g.onError=function(){_.N5(this.hostElement,"yt-video-thumbnail-error")};
_.g.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.g.getVideoThumbnail=function(G){if(G&&G.length)return G[0]};
Dd.prototype.dataChanged=Dd.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],Dd.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dd.prototype,"animatePlaceholderOnEntrance",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dd.prototype,"autoplay",void 0);_.N([_.h({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.A("design:type",Object)],Dd.prototype,"videoThumbnail",void 0);
_.N([_.h(),_.A("design:type",Boolean)],Dd.prototype,"loop",void 0);_.N([_.h(),_.A("design:type",Boolean)],Dd.prototype,"isVideoPlaying",void 0);_.N([_.h(),_.A("design:type",Object)],Dd.prototype,"width",void 0);_.N([_.q6("#mp4"),_.A("design:type",HTMLElement)],Dd.prototype,"mp4El",void 0);_.N([_.q6("#placeholder"),_.A("design:type",HTMLElement)],Dd.prototype,"placeholderEl",void 0);_.N([_.q6("#video"),_.A("design:type",HTMLVideoElement)],Dd.prototype,"videoEl",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dd.prototype,"dataChanged",null);_.N([_.fH({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Dd);
_.m(Dd,"yt-video-as-thumbnail-details",function(){if(oD8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;yKj===void 0&&(yKj=document.createElement("template"));var Q=yKj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);oD8=G}G=oD8;return G},{mode:2});var dZ=function(){var G=_.C.apply(this,arguments)||this;G.disableGridStateAware=!1;G.animationEnabled=_.V("enable_web_ketchup_hero_animation");G.transitioningOut=!1;G.narrow=!1;G.narrower=!1;G.isCarouselInFeed=!1;G.videoTimeoutJobId=0;G.panelTimeoutJobId=0;G.panelTimeoutJobStartMs=0;G.actionMap={"yt-window-resized":"onWindowResized"};return G};
_.T(dZ,_.C);_.g=dZ.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.g.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.g.attached=function(){this.onWindowResized()};
_.g.detached=function(){this.clearTimeouts()};
_.g.onWindowResized=function(){this.updateSize()};
_.g.computePanelLayout=function(G){return G&&G.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.g.playVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.play();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.play()};
_.g.stopVideo=function(){var G;this.video&&((G=this.data)==null?0:G.videoThumbnail)&&this.video.stop();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.stop()};
_.g.transitionOut=function(){var G=this;this.transitioningOut=!0;return new Promise(function(H){var Z=function(){_.F9(G.hostElement).querySelector("#action-button").removeEventListener("animationend",Z);_.Ui.cancelJob(Q);H();G.transitioningOut=!1};
var Q=_.wM(_.Ui,Z,1E3);_.F9(G.hostElement).querySelector("#action-button").addEventListener("animationend",Z);G.player&&(G.player.playing=!1)})};
_.g.computeMetadataOrder=function(G){return G&&G.metadataOrder&&G.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?G.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.g.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.g.computeAvatarSize=function(G){return G&&G.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.g.onContentClick=function(G){if(!_.OO(_.OD(G),this.hostElement,["A".toString(),"BUTTON".toString()])){var H;if((H=this.data)==null?0:H.navigationEndpoint){var Z;this.componentBehavior.resolveCommand((Z=this.data)==null?void 0:Z.navigationEndpoint)}}};
_.g.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.g.setBackgroundImage=function(G){if(G=this.getBackgroundImageUrl(G))_.F9(this.hostElement).querySelector("#hero").style.backgroundImage="url("+G+")"};
_.g.setScrimLayer=function(G){var H=this.getScrimLayerColorStops(G);G=((G==null?void 0:G.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(G=180);_.xI("HTML_DIR")==="rtl"&&(G=-G);H&&(_.F9(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+G+"deg, "+H+")")};
_.g.isNarrower=function(){return this.hostElement.clientWidth<dZ.NARROW_VERSION_SIZE};
_.g.getScrimLayerColorStops=function(){var G,H=(G=this.data)==null?void 0:G.scrimColorValues;if(!H)return null;if(H.length===1)return G=_.c$(H[0]),G+" 0%, "+G+" 100%";if(H.length===3){var Z=[0,72,98];return H.map(function(Q,p){return _.c$(Q)+" "+Z[p]+"%"}).join(",")}return null};
_.g.getBackgroundImageUrl=function(G){return G&&G.largeFormFactorBackgroundThumbnail?_.N$((G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||G.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.g.onPlaying=function(){this.startVideoTimeout()};
_.g.onEnded=function(){this.rotate()};
_.g.startPanelTimeout=function(){var G=this;if(!this.panelTimeoutJobId){var H=this.get("data.minPanelDisplayDurationMs");H&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.wM(_.Ui,function(){G.rotate()},H))}};
_.g.startVideoTimeout=function(){var G=this;if(!this.videoTimeoutJobId){_.Ui.cancelJob(this.panelTimeoutJobId);var H=Date.now()-this.panelTimeoutJobStartMs;H=Math.max(0,this.get("data.minPanelDisplayDurationMs")-H);H=Math.max(this.get("data.minVideoPlayDurationMs")||0,H);this.videoTimeoutJobId=_.wM(_.Ui,function(){G.rotate()},H)}};
_.g.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Ui.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Ui.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.g.rotate=function(){this.clearTimeouts();_.N5(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.u4.Object.defineProperties(dZ.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.F9(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.F9(this.hostElement).querySelector("#video")}}});
_.u4.Object.defineProperties(dZ,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
dZ.prototype.onEnded=dZ.prototype.onEnded;dZ.prototype.onPlaying=dZ.prototype.onPlaying;dZ.prototype.dataChanged=dZ.prototype.dataChanged;_.N([_.v(_.xO),_.A("design:type",Object)],dZ.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],dZ.prototype,"componentBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],dZ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.v(_.F2D),_.A("design:type",Object)],dZ.prototype,"ytBooleanLogicBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],dZ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],dZ.prototype,"disableGridStateAware",void 0);_.N([_.h(),_.A("design:type",Object)],dZ.prototype,"data",void 0);_.N([_.h({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.A("design:type",String)],dZ.prototype,"panelLayout",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],dZ.prototype,"animationEnabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],dZ.prototype,"transitioningOut",void 0);
_.N([_.h({computed:"computeMetadataOrder(data)"}),_.A("design:type",Boolean)],dZ.prototype,"metadataOrder",void 0);_.N([_.h({computed:"computeByline(data)"}),_.A("design:type",Object)],dZ.prototype,"byline",void 0);_.N([_.h({computed:"computeAvatarSize(data)"}),_.A("design:type",Number)],dZ.prototype,"avatarSize",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],dZ.prototype,"narrow",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],dZ.prototype,"narrower",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],dZ.prototype,"layoutStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],dZ.prototype,"isCarouselInFeed",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dZ.prototype,"dataChanged",null);_.N([_.lq("yt-default-promo-panel-renderer-playing"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dZ.prototype,"onPlaying",null);
_.N([_.lq("yt-default-promo-panel-renderer-ended"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dZ.prototype,"onEnded",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],dZ);
_.m(dZ,"ytd-default-promo-panel-renderer",function(){if(Oj6!==void 0)return Oj6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Oj6=G},{mode:1});_.eQ("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var eJ=function(){var G=_.C.apply(this,arguments)||this;G.narrower=!1;G.dotMenuVisible=!1;G.paginationThumbnailsVisible=!1;G.active=!0;G.disableGridStateAware=!1;G.actionMap={"yt-window-resized":"onWindowResized"};return G};
_.T(eJ,_.C);_.g=eJ.prototype;_.g.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]]"}}}}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.pH(this,this.onPageTypeChange));this.currentPageSubtype=_.lFf(location.pathname);this.onWindowResized()};
_.g.detached=function(){this.jobId&&_.Ui.cancelJob(this.jobId);this.updateSizeJobId&&_.Ui.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.pH(this,this.onPageTypeChange))};
_.g.onPageTypeChange=function(G){this.active=G.detail.newPageSubtype===this.currentPageSubtype};
_.g.onWindowResized=function(){this.updateSize()};
_.g.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.g.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.g.setCarouselItem=function(G){G>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Ui.cancelJob(this.jobId);var H=this.getCurrentPanelElement();H&&H.stopVideo();this.currentItemIndex=G%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(H||(H=this.getCurrentPanelElement()),H.playVideo()):this.startRotationJob()};
_.g.scrollThumbnails=function(G){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var H=this.getCurrentPaginationElement();if(H){var Z=_.F9(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?Z.style.transform="translateX(0)":(H=H.offsetWidth+8,Z.style.transform="translateX(-"+H*(G-Math.ceil(Math.floor(this.overlay.offsetWidth/H)/2)+1)+"px)")}}};
_.g.onDataChanged=function(){var G=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.ZG(_.Ui,function(){var H;(H=G.getCurrentPanelElement())==null||H.updateSize();G.updateSize()}))};
_.g.getCurrentPanelElement=function(){return _.F9(_.F9(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.g.getCurrentPaginationElement=function(){return _.F9(_.F9(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.g.getNavigationClass=function(G,H){return G===H?"selected":""};
_.g.getNavigationDurationStyle=function(G){return"animation-duration:"+(this.get("data.carouselItems."+G+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.g.onNavigationTap=function(G){var H=this,Z=G.model.index;Z!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){H.setCarouselItem(Z)}),this.autorotateActive=!1)};
_.g.onVideoThumbnailEnded=function(){var G=this;if(this.shouldRotate()){var H=this.getCurrentPaginationElement();H&&(H.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){H.classList.remove("finished");G.setNextCarouselItem()}))}};
_.g.onVideoThumbnailError=function(){this.startRotationJob()};
_.g.onVideoNotPlaying=function(){this.startRotationJob()};
_.g.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.g.startRotationJob=function(){var G=this;_.Ui.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Ui.addLowPriorityJob(function(){G.getCurrentPanelElement().transitionOut().then(function(){G.setNextCarouselItem()})},this.rotationTimeout))};
_.g.computeDotMenuVisible=function(G,H){return!!G&&!!G.carouselItems&&G.carouselItems.length>1&&!G.paginationThumbnails||!!H};
_.g.computePaginationThumbnailsVisible=function(G,H){var Z,Q;return((Q=G==null?void 0:(Z=G.paginationThumbnails)==null?void 0:Z.length)!=null?Q:0)>1&&!H};
_.g.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.g.computePaginatorAlignment=function(G){return(G==null?void 0:G.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.g.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.g.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.g.isNarrower=function(G){return(G!=null?G:0)<dZ.NARROW_VERSION_SIZE};
eJ.prototype.activeChanged=eJ.prototype.activeChanged;eJ.prototype.onVideoNotPlaying=eJ.prototype.onVideoNotPlaying;eJ.prototype.onVideoThumbnailError=eJ.prototype.onVideoThumbnailError;eJ.prototype.onVideoThumbnailEnded=eJ.prototype.onVideoThumbnailEnded;eJ.prototype.onDataChanged=eJ.prototype.onDataChanged;_.N([_.v(_.xO),_.A("design:type",Object)],eJ.prototype,"ytdGridStateAwareBehavior",void 0);
_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],eJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],eJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],eJ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],eJ.prototype,"currentItem",void 0);
_.N([_.h(),_.A("design:type",Number)],eJ.prototype,"currentItemIndex",void 0);_.N([_.h(),_.A("design:type",Number)],eJ.prototype,"rotationTimeout",void 0);_.N([_.h(),_.A("design:type",Number)],eJ.prototype,"loopCount",void 0);_.N([_.h({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.A("design:type",String)],eJ.prototype,"paginatorAlignment",void 0);_.N([_.h(),_.A("design:type",Number)],eJ.prototype,"jobId",void 0);
_.N([_.h(),_.A("design:type",Number)],eJ.prototype,"updateSizeJobId",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],eJ.prototype,"isCarouselInFeed",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],eJ.prototype,"narrower",void 0);_.N([_.h({computed:"computeDotMenuVisible(data, narrower)"}),_.A("design:type",Object)],eJ.prototype,"dotMenuVisible",void 0);
_.N([_.h({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.A("design:type",Object)],eJ.prototype,"paginationThumbnailsVisible",void 0);_.N([_.h({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.A("design:type",String)],eJ.prototype,"layoutType",void 0);_.N([_.h({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],eJ.prototype,"autorotateActive",void 0);_.N([_.h(),_.A("design:type",Object)],eJ.prototype,"active",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],eJ.prototype,"disableGridStateAware",void 0);_.N([_.q6("#overlay"),_.A("design:type",HTMLElement)],eJ.prototype,"overlay",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eJ.prototype,"onDataChanged",null);
_.N([_.lq("yt-video-thumbnail-ended"),_.lq("yt-default-promo-panel-renderer-rotate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eJ.prototype,"onVideoThumbnailEnded",null);_.N([_.lq("yt-video-thumbnail-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eJ.prototype,"onVideoThumbnailError",null);
_.N([_.lq("yt-video-thumbnail-not-playing"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eJ.prototype,"onVideoNotPlaying",null);_.N([_.Jv("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eJ.prototype,"activeChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],eJ);
_.m(eJ,"ytd-carousel-item-renderer",function(){if(ijj!==void 0)return ijj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ijj=G},{mode:2});var mrh;var Urq;var RtL;var NCm;var nh=function(){var G=_.C.apply(this,arguments)||this;G.originalQuery=null;G.originalEndpoint=null;return G};
_.T(nh,_.C);nh.prototype.computeShowOriginalQueryWithoutEndpoint_=function(G,H){return!(!G||H)};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],nh.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nh.prototype,"correctedText",void 0);_.N([_.h(),_.A("design:type",Object)],nh.prototype,"correctedQuery",void 0);_.N([_.h(),_.A("design:type",Object)],nh.prototype,"correctedEndpoint",void 0);_.N([_.h(),_.A("design:type",Object)],nh.prototype,"originalText",void 0);_.N([_.h(),_.A("design:type",Object)],nh.prototype,"originalQuery",void 0);
_.N([_.h(),_.A("design:type",Object)],nh.prototype,"originalEndpoint",void 0);_.N([_.h({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.A("design:type",Boolean)],nh.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.N([_.fH({is:"yt-search-query-correction",disableElementRegistration:!0})],nh);
_.m(nh,"yt-search-query-correction",function(){if(NCm===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;RtL===void 0&&(RtL=document.createElement("template"));var Q=RtL;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);NCm=G}G=NCm;return G},{mode:2});_.eQ("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var AKk=function(){return _.C.apply(this,arguments)||this};
_.T(AKk,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],AKk.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],AKk.prototype,"data",void 0);_.N([_.fH({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],AKk);
_.m(AKk,"yt-did-you-mean-renderer",function(){if(Urq===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;mrh===void 0&&(mrh=document.createElement("template"));var Q=mrh;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Urq=G}G=Urq;return G},{mode:2});var xrm;var LYA;_.eQ("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var EDh=function(){return _.C.apply(this,arguments)||this};
_.T(EDh,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],EDh.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],EDh.prototype,"data",void 0);_.N([_.fH({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],EDh);
_.m(EDh,"yt-including-results-for-renderer",function(){if(LYA===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;xrm===void 0&&(xrm=document.createElement("template"));var Q=xrm;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);LYA=G}G=LYA;return G},{mode:2});var YbA;var FYj;_.eQ("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var VJ=function(){return _.C.apply(this,arguments)||this};
_.T(VJ,_.C);VJ.prototype.computeExtraClasses_=function(G,H){var Z="";G&&(Z+=" "+G.toLowerCase().replace(/_/g,"-"));H&&(Z+=" "+H.toLowerCase().replace(/_/g,"-"));return Z};
VJ.prototype.computeUrlImg_=function(){var G=this.data;G.image&&(_.F9(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.N$(G.image.thumbnails,Number.MAX_VALUE)+")")};
VJ.prototype.computeUrlImg_=VJ.prototype.computeUrlImg_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],VJ.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VJ.prototype,"computeUrlImg_",null);_.N([_.fH({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],VJ);
_.m(VJ,"yt-music-pass-feature-info-renderer",function(){if(FYj===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;YbA===void 0&&(YbA=document.createElement("template"));var Q=YbA;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);FYj=G}G=FYj;return G},{mode:2});var bjk;var God;_.eQ("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var HWq=function(){return _.C.apply(this,arguments)||this};
_.T(HWq,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],HWq.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],HWq.prototype,"data",void 0);_.N([_.fH({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],HWq);
_.m(HWq,"yt-no-results-found-showing-results-for-renderer",function(){if(God===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;bjk===void 0&&(bjk=document.createElement("template"));var Q=bjk;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);God=G}G=God;return G},{mode:2});var suy;var ZW0;_.eQ("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var Qu2=function(){return _.C.apply(this,arguments)||this};
_.T(Qu2,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Qu2.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Qu2.prototype,"data",void 0);_.N([_.fH({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],Qu2);
_.m(Qu2,"yt-results-without-quotes-renderer",function(){if(ZW0===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;suy===void 0&&(suy=document.createElement("template"));var Q=suy;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ZW0=G}G=ZW0;return G},{mode:2});var p3d;var lU0;_.eQ("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var gR4=function(){return _.C.apply(this,arguments)||this};
_.T(gR4,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gR4.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gR4.prototype,"data",void 0);_.N([_.fH({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],gR4);
_.m(gR4,"yt-search-no-results-renderer",function(){if(lU0===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;p3d===void 0&&(p3d=document.createElement("template"));var Q=p3d;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);lU0=G}G=lU0;return G},{mode:2});var IU_;var qjx;_.eQ("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Sj7=function(){return _.C.apply(this,arguments)||this};
_.T(Sj7,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Sj7.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Sj7.prototype,"data",void 0);_.N([_.fH({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Sj7);
_.m(Sj7,"yt-showing-results-for-renderer",function(){if(qjx===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;IU_===void 0&&(IU_=document.createElement("template"));var Q=IU_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);qjx=G}G=qjx;return G},{mode:2});var ubN;var BfY;var JMY;var t2x;var $4=function(){var G=_.C.apply(this,arguments)||this;G.answerExpanded=!1;return G};
_.T($4,_.C);$4.prototype.toggleAnswer_=function(G){var H=_.a_(G);H&&H.classList.contains("yt-simple-endpoint")||(G.preventDefault(),G.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
$4.prototype.toggleAnswer_=$4.prototype.toggleAnswer_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$4.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],$4.prototype,"answerExpanded",void 0);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],$4.prototype,"toggleAnswer_",null);
_.N([_.fH({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],$4);
_.m($4,"yt-generic-faq-question-renderer",function(){if(t2x===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;JMY===void 0&&(JMY=document.createElement("template"));var Q=JMY;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);t2x=G}G=t2x;return G},{mode:2});_.eQ("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Xj=function(){return _.C.apply(this,arguments)||this};
_.T(Xj,_.C);Xj.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Xj.prototype,"data",void 0);_.N([_.fH({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Xj);
_.m(Xj,"yt-faq-section-renderer",function(){if(BfY===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;ubN===void 0&&(ubN=document.createElement("template"));var Q=ubN;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);BfY=G}G=BfY;return G},{mode:2});var ko0;var DXY;_.eQ("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var cm=function(){return _.C.apply(this,arguments)||this};
_.T(cm,_.C);
cm.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"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cm.prototype,"data",void 0);_.N([_.fH({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],cm);
_.m(cm,"yt-offer-item-expanded-renderer",function(){if(DXY===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;ko0===void 0&&(ko0=document.createElement("template"));var Q=ko0;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);DXY=G}G=DXY;return G},{mode:2});var dXd;var ej_;_.eQ("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var TX=function(){return _.C.apply(this,arguments)||this};
_.T(TX,_.C);
TX.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"}}}}};
TX.prototype.computeFullWidthMode=function(G){return!(!G||!G.fullWidthMode)};
TX.prototype.computeBorderlessMode=function(G){return!(!G||!G.borderlessMode)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],TX.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.A("design:type",Boolean)],TX.prototype,"fullWidthMode",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.A("design:type",Boolean)],TX.prototype,"borderlessMode",void 0);_.N([_.fH({is:"yt-offer-item-renderer",disableElementRegistration:!0})],TX);
_.m(TX,"yt-offer-item-renderer",function(){if(ej_===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;dXd===void 0&&(dXd=document.createElement("template"));var Q=dXd;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ej_=G}G=ej_;return G},{mode:2});var nRq;var V2I;_.eQ("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var fh=function(){return _.C.apply(this,arguments)||this};
_.T(fh,_.C);fh.prototype.computeAriaLevel_=function(G){return this.getLevelID_(G)};
fh.prototype.getLevelID_=function(G){return(G=G.match(/[0-9]+$/))&&G.length==1?G[0]:"1"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fh.prototype,"data",void 0);_.N([_.h({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.A("design:type",String)],fh.prototype,"ariaLevel",void 0);_.N([_.h({value:"heading",reflectToAttribute:!0}),_.A("design:type",String)],fh.prototype,"role",void 0);
_.N([_.h({value:-1,reflectToAttribute:!0}),_.A("design:type",Number)],fh.prototype,"tabindex",void 0);_.N([_.fH({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],fh);
_.m(fh,"yt-subscription-product-header-renderer",function(){if(V2I===void 0){var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;nRq===void 0&&(nRq=document.createElement("template"));var Q=nRq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);V2I=G}G=V2I;return G},{mode:2});var $XM;var X30;_.eQ("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Wm=function(){return _.C.apply(this,arguments)||this};
_.T(Wm,_.C);Wm.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:_.nI("menuRenderer"),events:!0}}};
Wm.prototype.onStampFinished_=function(){_.F9(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Wm.prototype.onStampFinished_=Wm.prototype.onStampFinished_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Wm.prototype,"data",void 0);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wm.prototype,"onStampFinished_",null);
_.N([_.fH({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Wm);
_.m(Wm,"yt-subscription-product-renderer",function(){if(X30===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;$XM===void 0&&($XM=document.createElement("template"));var Q=$XM;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);X30=G}G=X30;return G},{mode:2});var cMM;var Tfy;_.eQ("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var zX=function(){return _.C.apply(this,arguments)||this};
_.T(zX,_.C);zX.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zX.prototype.imageScrimColorValuesChanged_=function(){var G,H=(G=this.data)==null?void 0:G.imageScrimColorValues;_.F9(this.hostElement).querySelector("#scrim").style.backgroundColor=H?_.c$(H[0]):"transparent"};
zX.prototype.imageScrimColorValuesChanged_=zX.prototype.imageScrimColorValuesChanged_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zX.prototype,"data",void 0);
_.N([_.gx("data.imageScrimColorValues"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zX.prototype,"imageScrimColorValuesChanged_",null);_.N([_.fH({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],zX);
_.m(zX,"yt-subscription-product-upsell-offer-renderer",function(){if(Tfy===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;cMM===void 0&&(cMM=document.createElement("template"));var Q=cMM;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Tfy=G}G=Tfy;return G},{mode:2});var fU4;var vR_;var Wv0;var zjM;var KvI;var M20;var Kh=function(){return _.C.apply(this,arguments)||this};
_.T(Kh,_.C);Kh.prototype.onYtServiceRequestError_=function(G){_.jP(this.hostElement,G.detail.error.message)};
Kh.prototype.onYtServiceRequestError_=Kh.prototype.onYtServiceRequestError_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kh.prototype,"data",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Kh.prototype,"collapsible",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Kh.prototype,"isManageRed",void 0);
_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Kh.prototype,"onYtServiceRequestError_",null);_.N([_.fH({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Kh);
_.m(Kh,"yt-single-ypc-offer-renderer",function(){if(M20===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;KvI===void 0&&(KvI=document.createElement("template"));var Q=KvI;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);M20=G}G=M20;return G},{mode:2});var Ms=function(){return _.C.apply(this,arguments)||this};
_.T(Ms,_.C);Ms.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ms.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Ms.prototype,"isManageRed",void 0);_.N([_.fH({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Ms);
_.m(Ms,"yt-single-ypc-offer-list-renderer",function(){if(zjM===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Wv0===void 0&&(Wv0=document.createElement("template"));var Q=Wv0;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);zjM=G}G=zjM;return G},{mode:2});var ju0;var Ped;_.eQ("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var jJ=function(){return _.C.apply(this,arguments)||this};
_.T(jJ,_.C);jJ.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],jJ.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],jJ.prototype,"isManageRed",void 0);_.N([_.fH({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],jJ);
_.m(jJ,"yt-ypc-offers-list-renderer",function(){if(Ped===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;ju0===void 0&&(ju0=document.createElement("template"));var Q=ju0;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Ped=G}G=Ped;return G},{mode:2});_.eQ("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Pm=function(){return _.C.apply(this,arguments)||this};
_.T(Pm,_.C);
Pm.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}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Pm.prototype,"data",void 0);_.N([_.fH({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Pm);
_.m(Pm,"yt-unlimited-manage-subscription-page-renderer",function(){if(vR_===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;fU4===void 0&&(fU4=document.createElement("template"));var Q=fU4;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);vR_=G}G=vR_;return G},{mode:2});var rMM;var w3U;var rZ=function(){return _.C.apply(this,arguments)||this};
_.T(rZ,_.C);_.g=rZ.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.g.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.onKeypress_=function(G){G.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.g.handleHeaderTap_=function(G){G.preventDefault();G.stopPropagation();this.expandOffers_()};
_.g.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.g.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
rZ.prototype.dataChanged_=rZ.prototype.dataChanged_;_.N([_.v(_.vZ),_.A("design:type",Object)],rZ.prototype,"ironA11yKeysBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rZ.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],rZ.prototype,"offersVisible_",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rZ.prototype,"dataChanged_",null);_.N([_.fH({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],rZ);
_.m(rZ,"yt-collapsible-ypc-offer-renderer",function(){if(w3U===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;rMM===void 0&&(rMM=document.createElement("template"));var Q=rMM;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);w3U=G}G=w3U;return G},{mode:2});var hjq;var Ce7;_.eQ("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var wZ=function(){return _.C.apply(this,arguments)||this};
_.T(wZ,_.C);_.g=wZ.prototype;_.g.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.g.dataChanged_=function(){if(this.data.backgroundImage){var G=_.N$(this.data.backgroundImage.thumbnails,screen.width),H=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=H?"linear-gradient(180deg, "+H+"), url("+G+")":"url("+G+")";this.data.gtmId&&_.P9(this.data.gtmId,_.xI("GL",""))}};
_.g.onYtServiceRequestError_=function(G){_.jP(this.hostElement,G.detail.error.message)};
_.g.getScrimLayerColorStops_=function(){var G,H,Z=(G=this.data.unlimitedHeaderV2Data)==null?void 0:(H=G.unlimitedHeaderV2Data)==null?void 0:H.scrimLayerColors;if(!Z)return null;var Q=100/Z.length;return Z.map(function(p,l){l*=Q;return _.c$(p)+" "+l+"%"}).join(",")};
_.g.computeLogoWithPadding=function(G){var H,Z,Q;return(G=(H=G.unlimitedLogoImage)==null?void 0:(Z=H.thumbnails)==null?void 0:(Q=Z[0])==null?void 0:Q.height)&&G%31===0?!0:!1};
wZ.prototype.onYtServiceRequestError_=wZ.prototype.onYtServiceRequestError_;wZ.prototype.dataChanged_=wZ.prototype.dataChanged_;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.N([_.h({computed:"computeLogoWithPadding(data)"}),_.A("design:type",Boolean)],wZ.prototype,"logoWithPadding",void 0);
_.N([_.h(),_.A("design:type",Object)],wZ.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wZ.prototype,"dataChanged_",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wZ.prototype,"onYtServiceRequestError_",null);_.N([_.fH({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],wZ);
_.m(wZ,"yt-unlimited-page-header-renderer",function(){if(Ce7===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;hjq===void 0&&(hjq=document.createElement("template"));var Q=hjq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Ce7=G}G=Ce7;return G},{mode:2});var iW0;var OWq;_.eQ("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var ho=function(){return _.C.apply(this,arguments)||this};
_.T(ho,_.C);ho.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ho.prototype,"data",void 0);_.N([_.fH({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],ho);
_.m(ho,"yt-unlimited-user-notification-renderer",function(){if(OWq===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;iW0===void 0&&(iW0=document.createElement("template"));var Q=iW0;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);OWq=G}G=OWq;return G},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.$6L=function(G,H){if(_.V("web_enable_chat_autoscroll_to_user_turn")&&G&&H)return G-4+"px"};_.XGc=_.y(function(G){var H=_.oK(G,{numberOfChips:5}).numberOfChips;return _.J("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.J(_.Cl,{each:function(){return Array(H==null?void 0:H())}},function(){return _.J("div",{class:"ytGhostChipShelfChip"})}))},"Xi");_.cvL=_.y(function(G){var H=function(){var q;return((q=G.data)==null?void 0:q.call(G).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},Z=_.sw(),Q=_.tp().resolve(_.ht);
_.yP(function(){requestAnimationFrame(function(){var q;(q=Z.lottieEl)==null||q.addEventListener("DOMLoaded",function(){var u;(u=G.onLottieLoaded)==null||u.call(G)})})});
var p=function(){var q;return(q=G.data)==null?void 0:q.call(G).loadingAnimationA11yLabel},l={};
return _.J("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var q;return((q=G.data)==null?void 0:q.call(G).targetId)||""},
"aria-label":function(){return p()||""},
role:function(){return p()?"progressbar":void 0},
style:_.pI({"min-height":function(){var q,u;return _.$6L((q=G.containerHeight)==null?void 0:q.call(G),(u=G.isLastItem)==null?void 0:u.call(G))}})},_.J(_.cY,{"aria-hidden":"true",
className:_.bb((l.ytChatLoadingViewModelRtl=Q==="rtl",l)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:H()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||H()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:H()}}},
animationRef:Z}))},"Zi");
}catch(e){_._DumpException(e)}
try{
var Xxm,ckh,TNj,vPh,WgA,zkc,Kgo,Msj,jAs,Puj,aYo,rD,O16,wxD,i16,Cuq,hkA,rkh,ykk,oPh,mKi,UKo,wD,RkD,NNq,Lgq,CD,Aki,aD,hC,iy,xKt,OB,EPj,YS8,Fg8,b18,GEA,H6m,Z6h,QZL,pEj,lZ6,gim,IZ8,qWc,SWL,urh,Bgk,tnk,kE6,D2D,eMk,Vna,XE8,ccD,Tg6,fZ8,W_j,zMA,K_A,MnL,jZh,P4i,rcA,hMa,aZo,O6o,C4q,ycA,i6L,oio,Ngq,RM8,m2a,U2a,oD,AcD,L_a,EiD,YWj,Z9s,QOo,pfj,lQL,gki,IQt,qlL,Sli,utA,JZk,tut,khs,D5c,d5q,evm,nkk,Vu8,cZs,Gha;
_.jh=function(G){var H=new _.C$("Error accessing DB");return _.$AW().then(function(Z){return new Promise(function(Q,p){try{var l=Z.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(G);l.onsuccess=function(){var q=l.result;Q(q?q.value:null)};
l.onerror=function(){H.params={key:G,source:"onerror"};p(H)}}catch(q){H.params={key:G,
thrownError:String(q)},p(H)}})},function(){return null})};
Xxm=function(G,H){return _.Hv(G.entities,"inlineExpansionEntity",H)};
ckh=function(G,H){return _.Hv(G.entities,"flowStateEntity",H)};
TNj=function(G,H){if(G&&H){var Z=_.IS();Z().set(G,H);_.DCb(Z())}};
_.fYL=function(G,H){if(G&&H){var Z=_.IS();Z().set(G,H);_.DCb(Z())}};
vPh=function(G,H){return _.Hv(G.entities,"contextNoteUserRatingEntityPayload",H)};
WgA=function(G){return _.hM(G,function(H){return H.languageCode==="en"})};
zkc=function(G){var H=P0;if(_.qSq(G))G.setOption("captions","stickyLoading",{}),G.setOption("captions","track",{});else{var Z=_.hM(_.co3(G),function(Q){return Q.displayName===H});
G.setOption("captions","track",Z)}};
Kgo=function(G){if(!G)return 0;var H=G.getPresentingPlayerType(),Z=G.getVideoData();return Z&&Z.isLive?(G=G.getProgressState(H),G.seekableEnd-G.seekableStart):G.getDuration(H)};
Msj=function(G,H){for(var Z=_.I(Object.keys(G)),Q=Z.next();!Q.done;Q=Z.next())if(Q=Q.value,G[Q]!==H[Q])return!1;return!0};
jAs=function(){return document.getElementById("player-control-overlay")};
Puj=function(G){G!==-1&&!_.V("player_controls_log_creation_killswitch")&&jAs()&&(_.$K("pcu_cs",G),_.$K("pcu_ce"))};
aYo=function(G,H){var Z=_.yy(G,{}),Q=rkh("top",H),p=rkh("bottom",H),l=rkh("left",H),q=rkh("right",H);return _.pI({top:function(){return rD(Z().position,Q)},
bottom:function(){return rD(Z().position,p)},
left:function(){return rD(Z().position,l)},
right:function(){return rD(Z().position,q)},
position:function(){return rD(Z().positionType,wxD)},
height:function(){return rD(Z().height,wD)},
width:function(){return rD(Z().width,wD)},
"min-width":function(){return rD(Z().minWidth,wD)},
"min-height":function(){return rD(Z().minHeight,wD)},
"max-width":function(){return rD(Z().maxWidth,wD)},
"max-height":function(){return rD(Z().maxHeight,wD)},
"aspect-ratio":function(){return rD(Z().aspectRatio,String)},
"margin-top":function(){return rD(Z().margin,Q)},
"margin-bottom":function(){return rD(Z().margin,p)},
"margin-left":function(){return rD(Z().margin,l)},
"margin-right":function(){return rD(Z().margin,q)},
"padding-top":function(){return rD(Z().padding,Q)},
"padding-bottom":function(){return rD(Z().padding,p)},
"padding-left":function(){return rD(Z().padding,l)},
"padding-right":function(){return rD(Z().padding,q)},
"flex-direction":function(){return rD(Z().flexDirection,hkA)},
"justify-content":function(){return rD(Z().justifyContent,Cuq)},
"align-items":function(){return rD(Z().alignItems,i16)},
"flex-grow":function(){return rD(Z().flexGrow,String)},
"flex-shrink":function(){return rD(Z().flexShrink,String)},
"flex-basis":function(){return rD(Z().flexBasis,wD)},
"align-self":function(){return rD(Z().alignSelf,i16)},
"flex-wrap":function(){return rD(Z().flexWrap,O16)},
"align-content":function(){return rD(Z().alignContent,i16)}})};
rD=function(G,H){return G!==void 0?H(G):void 0};
O16=function(G){switch(G){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
wxD=function(G){switch(G){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
i16=function(G){switch(G){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"}};
Cuq=function(G){switch(G){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"}};
hkA=function(G){switch(G){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"}};
rkh=function(G,H){var Z=H==="rtl";switch(G){case "top":var Q=ykk;break;case "bottom":Q=oPh;break;case "left":Q=mKi;break;default:Q=UKo}return function(p){return rD(Q(p,Z),wD)}};
ykk=function(G){var H=G.top;var Z=G.vertical;G=G.all;var Q;return(Q=H!=null?H:Z)!=null?Q:G};
oPh=function(G){var H=G.bottom;var Z=G.vertical;G=G.all;var Q;return(Q=H!=null?H:Z)!=null?Q:G};
mKi=function(G,H){var Z=G.left;var Q=G.end;var p=G.start;var l=G.horizontal;G=G.all;var q,u;return(u=(q=Z!=null?Z:H?Q:p)!=null?q:l)!=null?u:G};
UKo=function(G,H){var Z=G.right;var Q=G.end;var p=G.start;var l=G.horizontal;G=G.all;var q,u;return(u=(q=Z!=null?Z:H?p:Q)!=null?q:l)!=null?u:G};
wD=function(G){var H=G.value;switch(G.unit){case "YPC_DIMENSION_UNIT_POINT":return H+"px";case "YPC_DIMENSION_UNIT_FRACTION":return H+"%";default:return""+H}};
RkD=function(G){switch(G){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"}};
NNq=function(G){var H=G!=null?G:{};G=H.fontRole;var Z=H.fontSize;H=H.fontWeight;if(G!==null&&Z!==null)switch(G){case "YPC_FONT_ROLE_DISPLAY":switch(Z){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(Z){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return H===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(Z){case "YPC_FONT_SIZE_XL":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Lgq=function(G,H,Z){function Q(d){return Object.values(d).map(function(e){var n=e.productId;e=e.pricingOptionIndex;return hC(p(n).pricingOptions,e).pricingOptionId})}
function p(d){return B().get(d)}
function l(d){d=Q(d);Z(d)}
function q(d,e){return Array.from(CD(d.pricingOptions)).filter(function(n){n=_.I(n);n.next();n=n.next().value;return iy(n.pricingGroupAttributes,e)}).map(function(n){return _.I(n).next().value})}
var u=OB([G,H],function(d,e){var n=d==null?void 0:d.selectedPricingOptions;d={};var c=!0;if(n&&e.length)for(var W=_.I(e),M=W.next();!M.done;M=W.next()){M=M.value;var r=Aki(M.pricingOptions,function(U){a:{U=U.pricingOptionId;for(var R=_.I(n),L=R.next();!L.done;L=R.next())if(L.value===U){U=!0;break a}U=!1}return U});
if(r>=0){c=!1;var w=hC(M.pricingOptions,r),x=void 0;d[M.groupId]={productId:M.productId,pricingOptionIndex:r,pricingGroupAttributes:(x=w)==null?void 0:x.pricingGroupAttributes}}}c&&e.length&&(c=hC(e[0].pricingOptions,0),d[e[0].groupId]={productId:e[0].productId,pricingOptionIndex:0,pricingGroupAttributes:c==null?void 0:c.pricingGroupAttributes});return d}),B=OB([H],function(d){return new Map(d.map(function(e){return[e.productId,
e]}))}),t=OB([H],function(d){var e=new Map;
d=_.I(d);for(var n=d.next();!n.done;n=d.next()){var c=n.value;n=c.groupId;var W=c.productId;c=_.I(CD(c.pricingOptions));for(var M=c.next();!M.done;M=c.next()){var r=_.I(M.value);M=r.next().value;r=r.next().value;e.set(r.pricingOptionId,{groupId:n,productId:W,index:M,pricingOption:r,pricingGroupAttributes:r.pricingGroupAttributes})}}return e}),D=OB([H],function(d){var e=new Map;
d=_.I(d);for(var n=d.next();!n.done;n=d.next()){var c=n.value;n=c.groupId;var W=c.productId,M=void 0;c=_.I(CD((M=c.pricingGroups)!=null?M:[]));for(M=c.next();!M.done;M=c.next()){var r=_.I(M.value);M=r.next().value;r=r.next().value;e.set(r.pricingGroupId,{groupId:n,productId:W,index:M,pricingGroup:r,pricingGroupAttributes:r.pricingGroupAttributes})}}return e});
return{getProductById:p,isProductSelected:function(d){var e=p(d);if(!e)return!1;var n;return((n=u()[e.groupId])==null?void 0:n.productId)===d},
getSelectedPricingOptions:function(){return Object.values(u()).map(function(d){var e=d.productId;d=d.pricingOptionIndex;return hC(p(e).pricingOptions,d)})},
getSelectedPricingGroupAttributesByGroupId:function(d){var e;return(d=(e=u()[d])==null?void 0:e.pricingGroupAttributes)?Array.from(d):void 0},
getSelectedProductByGroupId:function(d){var e;return(d=(e=u()[d])==null?void 0:e.productId)?p(d):void 0},
onProductSelected:function(d){var e=p(d);if(e){var n=u(),c;if(((c=n[e.groupId])==null?void 0:c.productId)!==d){var W=(c=(W=n[e.groupId])==null?void 0:W.productId)?p(c):void 0;var M;c=(M=n[e.groupId])==null?void 0:M.pricingGroupAttributes;var r;M=(r=n[e.groupId])==null?void 0:r.pricingOptionIndex;if(W&&M!==void 0)if(c){r=q(W,c).indexOf(M);if(r===-1)throw Error("Yj`"+M+"`"+W.productId);M=q(e,c);r=r<M.length?M[r]:M.length>0?M[0]:0}else r=M<aD(e.pricingOptions)?M:0;else r=0;aD(e.pricingOptions)<=r&&(r=
0);M=hC(e.pricingOptions,r);var w;W={};l(Object.assign({},n,(W[e.groupId]={productId:d,pricingOptionIndex:r,pricingGroupAttributes:(w=M==null?void 0:M.pricingGroupAttributes)!=null?w:[]},W)))}}},
onPricingOptionSelected:function(d){var e=t().get(d);if(e){d=e.groupId;var n=e.productId;e=e.index;var c=u(),W,M;if(((W=c[d])==null?void 0:W.productId)!==n||((M=c[d])==null?void 0:M.pricingOptionIndex)!==e){var r,w;W={};l(Object.assign({},c,(W[d]={productId:n,pricingOptionIndex:e,pricingGroupAttributes:(w=(r=c[d])==null?void 0:r.pricingGroupAttributes)!=null?w:[]},W)))}}},
onPricingGroupSelected:function(d){var e=D().get(d);if(e){d=e.groupId;var n=e.productId,c=e.pricingGroup.pricingGroupAttributes,W=p(n);if(W){e=u();var M=e[d].pricingGroupAttributes,r;if(((r=e[d])==null?void 0:r.productId)!==n||!iy(xKt(M,aD(c)),c)){r=Array.from(c);for(c=aD(c);c<aD(M);c++){var w="",x=!1,U=Array.from(r);U.push(hC(M,c));for(var R=_.I(W.pricingGroups),L=R.next();!L.done;L=R.next())if(L=L.value,iy(L.pricingGroupAttributes,U)){r.push(hC(M,c));x=!0;break}else w===""&&aD(L.pricingGroupAttributes)===
U.length&&iy(xKt(L.pricingGroupAttributes,r.length),r)&&(w=hC(L.pricingGroupAttributes,c));x||r.push(w)}w=e[d].pricingOptionIndex;c=[];x=new Map;U=0;W=_.I(CD(W.pricingOptions));for(R=W.next();!R.done;R=W.next())L=_.I(R.value),R=L.next().value,L=L.next().value,iy(L.pricingGroupAttributes,r)&&c.push(R),iy(L.pricingGroupAttributes,M)&&x.set(R,U++);c.length===0?M=0:(M=x.get(w),M=M!==void 0&&M<c.length?c[M]:c[0]);W={};l(Object.assign({},e,(W[d]={productId:n,pricingOptionIndex:M,pricingGroupAttributes:r},
W)))}}}},
onClearGroupSelected:function(d){var e=u();e[d]&&(e=Object.fromEntries(Object.entries(e).filter(function(n){return _.I(n).next().value!==d})),l(e))}}};
CD=function(G){return function Z(){var Q,p,l,q,u;return _.Fy(Z,function(B){switch(B.nextAddress){case 1:_.f0(B,2),Q=0,p=_.I(G),l=p.next();case 4:if(l.done){B.jumpTo(2);break}q=l.value;u=_.bL;return B.yield([Q++,q],7);case 7:u(B.yieldResult);l=p.next();B.jumpTo(4);break;case 2:_.TO(B),_.vg(B,0)}})}()};
Aki=function(G,H){G=_.I(CD(G));for(var Z=G.next();!Z.done;Z=G.next()){var Q=_.I(Z.value);Z=Q.next().value;Q=Q.next().value;if(H(Q))return Z}return-1};
aD=function(G){var H=0;for(G=G[Symbol.iterator]();!G.next().done;)++H;return H};
hC=function(G,H){G=_.I(CD(G));for(var Z=G.next();!Z.done;Z=G.next()){var Q=_.I(Z.value);Z=Q.next().value;Q=Q.next().value;if(Z===H)return Q}};
iy=function(G,H){if(!G&&!H)return!0;if(!G||!H)return!1;G=Array.from(G);H=Array.from(H);if(G.length!==H.length)return!1;for(var Z=0;Z<G.length;Z++)if(G[Z]!==H[Z])return!1;return!0};
xKt=function(G,H){H=H===void 0?Infinity:H;var Z=[];G=_.I(CD(G));for(var Q=G.next();!Q.done;Q=G.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;if(Q>=H)break;Q>=0&&Z.push(p)}return Z};
OB=function(G,H){var Z,Q;return function(){for(var p=G.map(function(q){return q()}),l=0;l<p.length;l++)if(!Z||p[l]!==Z[l]){Z=p;
Q=H.apply(null,_.OP(p));break}return Q}};
EPj=function(G,H,Z){var Q=[];G=_.I(G);for(var p=G.next();!p.done;p=G.next()){p=p.value;var l=void 0;((l=H)==null?0:l.length)&&!iy(p.pricingGroupAttributes,H)||Q.push({pricingOption:p,isSelected:Z.includes(p.pricingOptionId)})}return Q};
YS8=function(G,H){return _.Hv(G.entities,"pdpStateEntity",H)};
Fg8=function(G){var H,Z;return!!(G.productId&&G.groupId&&((H=G.pricingOptions)==null?0:H.length)&&G.pricingOptions.every(function(Q){return Q.pricingOptionId})&&((Z=G.pricingGroups)==null||!Z.length||Array.isArray(G.pricingGroups)&&G.pricingGroups.every(function(Q){return Q.pricingGroupId&&Q.pricingGroupAttributes&&Q.pricingGroupAttributes.length>0})))};
b18=function(G,H,Z){return Lgq(G,OB([H],function(Q){return Q.filter(Fg8)}),Z)};
GEA=function(G,H){return H.length===0?[G]:[G.slice(0,H[0]),G.slice(H[0])].filter(function(Z){return Z.length>0})};
H6m=function(G){switch(G){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""}};
Z6h=function(G,H,Z,Q){Q=Object.assign({},Q);_.nX(Q,sZo,{selectedOptionId:G,primaryButtonOverride:Z});_.OI().dispatch(_.uP("flowStateEntity",H,Q))};
QZL=function(G,H,Z){!_.X(Z,sZo)&&G.noPreselect&&H!==""&&G.defaultButtonOverride&&Z6h("default",H,G.defaultButtonOverride,Z)};
pEj=function(G){switch(G){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"}};
lZ6=function(G){switch(G){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"}};
gim=function(G,H){if(H)return"ytCardViewModelCardSelected";switch(G){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
IZ8=function(G,H){H.includes(G)?H=H.filter(function(Z){return Z!==G}):H.push(G);
return[].concat(_.OP(H))};
qWc=function(G,H){return _.Hv(G.entities,"contextNoteFeedEntityPayload",H)};
SWL=function(G,H){switch(G){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return H==null?void 0:H.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return H==null?void 0:H.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return H==null?void 0:H.ratingNotHelpfulText}};
urh=function(G,H){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:G.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:G.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:G.deleteDialogTitle}]},dialogMessages:[{runs:[{text:G.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.deleteActionText}]},command:{performCommentActionEndpoint:{action:H}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:G.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
Bgk=function(G,H,Z){var Q;if(G&&((Q=H())==null?0:Q.includes(G))){var p;Z((p=H())==null?void 0:p.filter(function(l){return l!==G}))}else Z([].concat(_.OP(H()||[]),[G]))};
tnk=function(G,H){if(G){var Z=[];H=_.I((H==null?void 0:H.checkboxes)||[]);for(var Q=H.next();!Q.done;Q=H.next()){Q=_.X(Q.value,Jc8);var p=void 0;((p=Q)==null?0:p.value)&&G.includes(Q.key||"")&&Z.push(Q.value)}return Z}};
kE6=function(G){G.style.height="auto";G.style.height=G.scrollHeight+"px"};
D2D=function(G){return[G.syncStep,G.asyncStep].filter(function(H){return H!==void 0})};
eMk=function(G){var H,Z,Q;if(G=(H=G.structuredContextNoteFormSchema)==null?void 0:(Z=H.fieldSchemas)==null?void 0:(Q=Z.noteBody)==null?void 0:Q.validationSchema)for(H=_.I(D2D(G)),Z=H.next();!Z.done;Z=H.next()){Z=Z.value.rules;if(!Z)break;Z=_.I(Z);for(Z=Z.next();!Z.done;Z=Z.next())return _.X(Z.value,_.d2L)}};
Vna=function(G){if(G){G=_.I(D2D(G));for(var H=G.next();!H.done;H=G.next()){H=H.value.rules;if(!H)break;H=_.I(H);for(H=H.next();!H.done;H=H.next())return _.X(H.value,nim)}}};
XE8=function(G){if(G){G=_.I(D2D(G));for(var H=G.next();!H.done;H=G.next()){H=H.value.rules;if(!H)break;H=_.I(H);for(H=H.next();!H.done;H=H.next())return _.X(H.value,$26)}}};
ccD=function(G){G=/^https?:\/\//.test(G)?G:"http://"+G;try{var H=_.HS(G)}catch(Z){return!1}if(H.toString()!==G)return!1;G=H.JSC$10041_domain_.split(".");return G.length>1&&G.every(function(Z){return!!Z})};
Tg6=function(G,H,Z,Q){var p;Q=(p=Q.structuredContextNoteData)==null?void 0:p.createCommentEndpoint;if(p=_.X(Q,_.VEw))return p.commentText=_.aq(G),p.videoPositionMention=H,p.sources=Z,Q};
fZ8=function(G){return G==null?void 0:G.stringValue};
W_j=function(G,H,Z){G=G.map(function(Q,p){return{listItemViewModel:{title:Q.title,subtitle:Q.subtitle,leadingImage:Q.leadingImage,trailingImage:p===H?vik:void 0,rendererContext:{commandContext:{onTap:Q.onTap}}}}});
return Object.assign({},Z&&{header:{panelHeaderViewModel:{title:Z}}},{content:{listViewModel:{listItems:G}}})};
zMA=function(G,H){if(G&&H)switch(H){case "SELECTION_TYPE_BOOL":return G.boolValue;case "SELECTION_TYPE_INT":return G.intValue;case "SELECTION_TYPE_STRING":return G.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return G.privacyStatusValue}};
K_A=function(G){var H;G=(H=G.options)==null?void 0:H.findIndex(function(Z){return Z.isSelected});
return G===void 0?-1:G};
MnL=function(G,H,Z){var Q=function(){return G().label},p={},l=_.bb("ytDropdownViewModelLabel",(p.ytDropdownViewModelLabelError=H,p));
return _.J(_.k,{cond:function(){return G().label&&!(Z()===-1&&G().label&&!G().placeholderText)},
then:function(){return _.J("div",{class:l},_.J(_.Fe,{text:Q}))}})};
jZh=function(G,H){var Z={};Z=_.bb("ytDropdownViewModelTitle",(Z.ytDropdownViewModelTitlePlaceholder=function(){return H()===-1},Z));
return _.J("div",{class:Z},_.J(_.Fe,{text:function(){var Q=G();var p=H();if(p===-1)Q=Q.placeholderText?Q.placeholderText:Q.label;else{var l,q;Q=(l=Q.options)==null?void 0:(q=l[p])==null?void 0:q.title}return Q}}))};
P4i=function(G,H){var Z=function(){return G().hint};
return _.J(_.kI,null,_.J(_.k,{cond:function(){return Z()&&!H()},
then:function(){return _.J("div",{class:_.bb("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.J(_.Fe,{text:Z,className:"ytDropdownViewModelSupportText"}))}}),_.J(_.k,{cond:H,
then:function(){return _.J("div",{id:"dropdown-view-model-error",role:"alert",class:_.bb("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.J(_.ll,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.J(_.Fe,{text:H,className:"ytDropdownViewModelSupportText"}))}}))};
rcA=function(G,H){var Z=_.tp().resolve(_.lwD);_.mR(function(){var Q=G().id;Q&&Z!=null&&Z.dropdownMap.set(Q,H)})};
hMa=function(G){G=_.X(G.scheduleButton,wEi);G=_.X(G==null?void 0:G.primaryButton,_.HN);G=_.X(G==null?void 0:G.onTap,_.cT);var H,Z,Q=((Z=_.X(G,_.Ft))==null?void 0:Z.commands)||[G];Z=_.I(Q);for(G=Z.next();!G.done&&!(H=_.X(G.value,_.nyR));G=Z.next());var p;H=(p=H)==null?void 0:p.createBroadcastRequest;if(!H)throw Error("ek");return H};
aZo=function(G,H,Z){Z=Z===void 0?{}:Z;var Q,p;return _.S(function(l){if(Q=C4q(H))return l.return(Q);(p=i6L(G,H,Z))&&O6o(H,p);return l.return(p)})};
O6o=function(G,H){var Z=ycA(G);Z&&H.then(function(Q){_.tp().resolve(_.Vp).put(Z,new _.$E({innertubeResponse:Q}))})};
C4q=function(G){if(G=ycA(G)){var H=_.tp().resolve(_.Vp);if(H.has(G))return H.get(G).then(function(Z){return Z==null?void 0:_.mU(Z)})}return null};
ycA=function(G){var H=_.X(G.endpoint,_.hZ);if(H!=null&&H.videoId)return H={videoId:H.videoId},_.V("web_imp_player_mute_params")&&(H.mutedAtStart=G.startPlaybackInMutedState),_.wj("inline_playback",H)};
i6L=function(G,H,Z){G=_.wb(G,H.endpoint,oio(H,Z)).then(function(Q){return Q});
return Promise.resolve(G)};
oio=function(G,H){H=_.V("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!G.startPlaybackInMutedState},H):Object.assign({},{vis:5,autonav:"1"},H);var Z;H={contentPlaybackContext:_.Nc(H,(Z=_.X(G.endpoint.commandMetadata,_.HA))==null?void 0:Z.url,window.location.href)};_.V("web_imp_player_mute_params")&&(H.overrideMutedAtStart=!G.startPlaybackInMutedState);return H};
Ngq=function(G,H){var Z=window.MutationObserver;Z&&(yV=new Z(function(Q,p){Q=_.I(Q);for(var l=Q.next();!l.done;l=Q.next()){l=l.value;var q;if(q=l.type==="childList"&&l.target)a:{q=G;l=m2a(l.target);q=m2a(q);for(var u=null,B=0;B<l.length;B++)if(q.includes(l[B])){if(B===0){q=!1;break a}u=l[B];break}u?(l=U2a(l,u),q=U2a(q,u),q=l<q):q=!1}if(q){H();p.disconnect();break}}}),(Z=RM8())&&yV.observe(Z,{childList:!0,
subtree:!0}))};
RM8=function(){var G=document.getElementsByTagName("ytd-rich-grid-renderer");if(G.length>0)return G[0];G=document.getElementsByTagName("ytd-section-list-renderer");return G.length>0?G[0]:null};
m2a=function(G){for(var H=[];G;)H.push(G),G=G.parentElement;return H};
U2a=function(G,H){var Z=Array.from(H.children);H=G.indexOf(H);return H>0?Z.indexOf(G[H-1]):-1};
oD=function(G,H,Z){Z=Z===void 0?{}:Z;return _.Zg(G,Z,H)};
AcD=function(G){switch(G){case "MUSIC":return!0;default:return!1}};
L_a=function(G){if(G=G==null?void 0:G.find(function(Q){var p,l;return((p=_.X(Q,x2q))==null?void 0:(l=p.inlinePlaybackBadgeData)==null?void 0:l.replicateAsTimestamp)===!0}))if(G=_.X(G,x2q),G==null?0:G.icon){var H,Z;
if((G=(H=_.gvj(G.icon))==null?void 0:(Z=H.clientResource)==null?void 0:Z.imageName)&&AcD(G))return G}};
EiD=function(G){return G==null?void 0:G.filter(function(H){return H.premiereTrailerBadgeRenderer})};
YWj=function(G){var H,Z=G==null?void 0:(H=G.find(function(B){return B.thumbnailOverlayTimeStatusRenderer}))==null?void 0:H.thumbnailOverlayTimeStatusRenderer,Q,p;
if((Z==null?0:(Q=Z.icon)==null?0:Q.iconType)&&AcD(Z==null?void 0:(p=Z.icon)==null?void 0:p.iconType)){var l;return{icon:Z==null?void 0:(l=Z.icon)==null?void 0:l.iconType}}var q;if(H=G==null?void 0:(q=G.find(function(B){return B.thumbnailOverlayBadgeViewModel}))==null?void 0:q.thumbnailOverlayBadgeViewModel)if(q=L_a(H.thumbnailBadges))return{icon:q};
var u;if(G=G==null?void 0:(u=G.find(function(B){return B.thumbnailBottomOverlayViewModel}))==null?void 0:u.thumbnailBottomOverlayViewModel)if(u=L_a(G.badges))return{icon:u};
return{}};
Z9s=function(G,H){var Z=F_c,Q=_.I(_.Ty(b6D(new Gha(function(){},Z,H)),void 0,"PAnyd")),p=Q.next().value,l=Q.next().value,q=new Gha(function(u){l(u)},Z,H);
_.yN(function(){Promise.resolve().then(function(){var u,B=(u=G())!=null?u:{};q.playerControlsData=B;_.V("player_controls_skip_double_signal_old")&&(q.lastSeenPlayerApi=_.vM(B.playerApi));_.V("player_controls_skip_double_signal_old")||(q.lastSeenPlayerApi=_.vM(B.playerApi));H9j(q)});
_.oM(function(){sOi(q)})},"HikUP");
_.oM(function(){sOi(q)});
return function(){return p()}};
QOo=function(G){return function(H){var Z=G(),Q={playerState:H};if(H===1){var p;(p=Z.playerApi)==null||p.loadModule("captions")}if(H===0){var l;(l=Z.playerApi)==null||l.unloadModule("captions")}H!==-1&&Z.setState(Q)}};
pfj=function(G){return function(H){G().setState({playbackRate:H})}};
lQL=function(G){return function(H){var Z=G(),Q=Z.playerApi,p=Q==null?void 0:Q.getVideoData(),l=(p==null?void 0:p.isLive)||!1;p=p==null?void 0:p.video_id;l={videoDuration:Kgo(Q||void 0),isLive:l,videoId:p};l.videoId!==Z.videoId&&(l=Object.assign({},_.zTf(Q),l));if(H==null?0:H.playertype)l.playerType=H.playertype;if(Q){l.captionsAvailable=_.Tg(Q);H=l;var q;p=(q=Q.getStoryboardLevel(Q.getNumberOfStoryboardLevels()-1))==null?void 0:q.intervalMs;H.storyboardInterval=p?p/1E3:void 0;l.captionsAvailable&&
(l.captionsEnabled=_.qSq(Q))}l.volumeMuted=!(Q==null||!Q.isMuted());Z.setState(l)}};
gki=function(G){return function(H){var Z=G(),Q=Z.playerApi;if(Q){var p=Q.getPresentingPlayerType();H={playedTime:H||0,percentLoaded:Q.getVideoLoadedFraction(),playerType:p};Z.playerState===0&&(H.playedTime=Z.videoDuration);Z.isLive&&(p=Q.getProgressState(p),H.playedTime-=p.seekableStart,H.videoDuration=Kgo(Q));if(Z.playerType===1)Q=!1;else{var l;if((l=Z.uxConfig)==null?0:l.showCuedOverlay){var q;Q=!((q=Z.playerApi)==null?0:q.getPlayerStateObject(Z.playerType).isDomPaused)}else Q=!0}Q&&delete H.playedTime;
Z.setState(H)}}};
IQt=function(G){return function(){var H=G(),Z,Q,p,l={volume:(p=(Z=H.playerApi)==null?void 0:Z.getVolume())!=null?p:0,volumeMuted:!((Q=H.playerApi)==null||!Q.isMuted())};H.setState(l)}};
qlL=function(G){return function(){var H=G(),Z=H.playerApi;if(Z){var Q={captionsAvailable:_.Tg(Z)};Q.captionsAvailable&&(Q.captionsEnabled=_.qSq(Z));H.setState(Q)}}};
Sli=function(G){return{appApi:Object.assign({},_.$e2(),{showCaptionsToggleToast:function(H){var Z,Q;(Q=(Z=G()).showCaptionsToggleToast)==null||Q.call(Z,H)},
openInMiniplayer:function(){var H,Z;(Z=(H=G()).openInMiniplayer)==null||Z.call(H)}})}};
utA=function(G,H){var Z,Q,p;return!!(G==null?0:(Z=G.playerResponse)==null?0:(Q=Z.playerConfig)==null?0:(p=Q.inlinePlaybackConfig)==null?0:p.showScrubbingControls)&&!(H==null?0:H.hideScrubbingControls)};
_.Bjc=function(G){var H=!G.miniplayerIsActive;return[5,2,0].includes(G.miniplayerPlaybackState)||H};
JZk={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};tut=function(G){this.onStepChangeCallback=function(){};
this.flowRenderer=G};
tut.prototype.getCurrentStep=function(){var G=this,H;return((H=this.flowRenderer.steps)!=null?H:[]).map(function(Z){return _.X(Z,_.h$)}).find(function(Z){return Z&&Z.stepId===G.currentStepId})};
khs=function(G,H){var Z=H.flowStateEntityKey,Q=G.flowStates.get(Z);if(Q)return Q;H=new tut(H);G.flowStates.set(Z,H);return H};
D5c=function(G,H){for(var Z=_.I(G.flowStates.entries()),Q=Z.next();!Q.done;Q=Z.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;if(p.flowRenderer.targetId===H){G.flowStates.delete(Q);break}}};
d5q=function(G,H){G.onStepChangeCallback=H;G.onStepChangeCallback(G.getCurrentStep())};
evm=function(G,H){var Z=G.getCurrentStep();if(!Z||Z.stepId!==H){var Q;((Q=G.flowRenderer.steps)!=null?Q:[]).map(function(p){return _.X(p,_.h$)}).find(function(p){return p&&p.stepId===H})&&(G.currentStepId=H,G.onStepChangeCallback(G.getCurrentStep()))}};
nkk=function(G,H){var Z,Q,p,l,q;_.S(function(u){if(!H.length)return u.return([]);Z=[];Q=_.I(H);for(p=Q.next();!p.done;p=Q.next())l=p.value,(q=G.resolveIcon(l))&&!G.iconCache[q.url]&&Z.push(_.Qzt(G,q).then(function(){}).catch(function(){}));
return u.return(Promise.all(Z))})};
Vu8=function(G,H){var Z=[];H=(new Set(H)).values();H=_.I(H);for(var Q=H.next();!Q.done;Q=H.next()){Q=Q.value;for(var p=_.I(Object.values(JZk)),l=p.next();!l.done;l=p.next())Z.push({iconName:Q,iconStyle:l.value})}nkk(G.iconManager,Z)};
_.$5k=function(G,H,Z){var Q=Z!=null?Z:G.iconsToFetch;Q!=null&&Q.length?H!==void 0&&H>=0?_.wM(_.Ui,function(){Vu8(G,Q)},H):Vu8(G,Q):Promise.resolve()};
_.Xfs=_.uI(function(G,H,Z){if(G.nextWireType_!==5)return!1;_.BO(H,Z,_.KY(G.decoder_));return!0},function(G,H,Z){H=_.$7X(H);
H!=null&&(_.JN(G,Z,5),_.tN(G.encoder_,H))},_.G8a);
cZs=[0,_.wm,_.Xfs,-1];_.Tjj=function(){return _.Lo({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
Gha=function(G,H,Z){var Q=this;this.renderFn=G;this.listeners=H;this.context=Z;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var p;this.lastSeenPlayerApi=_.vM((p=this.playerControlsData)==null?void 0:p.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.zTf(),void 0);_.V("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){b6D(Q).setState({playerState:-1});Q.resetRecentlyNavigatedJobId&&_.Ui.cancelJob(Q.resetRecentlyNavigatedJobId);
Q.recentlyNavigated=!0;Q.resetRecentlyNavigatedJobId=_.Ui.addJob(function(){Q.recentlyNavigated=!1},8,1E4)})};
Gha.prototype.setState=function(G){if(!_.V("mweb_player_skip_no_op_state_changes")||!Msj(G,this.state))if(this.state=Object.assign({},this.state,G),!_.V("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)G=-1,_.V("player_controls_log_creation_killswitch")||jAs()||(G=(0,_.t3)()),_.$K("pcu_s"),_.$K("pcu_se"),_.$K("pcu_rs"),this.renderFn(b6D(this)),_.$K("pcu_re"),Puj(G),_.Ui.addJob(function(){_.$K("pcu_ap")},8)};
var b6D=function(G){var H;var Z=_.vM((H=G.playerControlsData)==null?void 0:H.playerApi);return Object.assign({},G.state,{setState:G.boundSetState,domMeasurements:{progressBarLineRect:G.progressBarLineRect},playerApi:Z,appApi:G.context.appApi,playerContainer:G.context.playerContainer,playerControlContainer:G.context.playerControlContainer,uxConfig:G.context.uxConfig})},H9j=function(G){G.listeners.forEach(function(H){G.eventListenerCleanupFunctions.push(H.register(function(){return b6D(G)},function(){return G.getData()}))})},
sOi=function(G){G.eventListenerCleanupFunctions.forEach(function(H){H()});
G.eventListenerCleanupFunctions.length=0};
Gha.prototype.getData=function(){return this.playerControlsData};var fQL=[0,_.LY,_.i6,_.LY,-1,_.i6,[0,_.Oy,_.y8,-1],_.LY,-1];var vkq=[0,[1,2,3],_.my,-2];var WjD=[0,_.LY];var zvA=new _.bn("crowdsourcedContextUserRatingFormFlowState");var Kja=new _.bn("noteViewModel");var mt=new _.bn("abuseReportFlowState");var Muj=new _.bn("feedbackFormFlowState");var jO6=new _.bn("inputBoxViewModel");_.d2L=new _.bn("lengthValidationRule");var nim=new _.bn("regexValidationRule");var $26=new _.bn("selectedValidationRule");var PJi=[0,_.y8,_.LY,_.b_];var rZL=[0,_.i6,-2,cZs];var wfA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(wfA,_.Iy);wfA.prototype.getFeature=function(){return _.nY(this,6)};
wfA.prototype.hasFeature=function(){return _.T8(_.gm(this,6))!=null};var hvk=[0,_.y8];var CJ6=_.e7(wfA,[0,_.i6,-2,cZs,_.i6,_.y8,-1,_.CY,-1,_.y8,-3,_.nAa,_.Oy,rZL,_.y8,-1,fQL,_.CY,_.y8,PJi,[0,[0,_.y8,-2,2,_.y8,-1,[0,_.y8],[0,_.LY,_.y8],[0,_.LY],[0,_.y8],2,[0,_.LY,2,[0,_.LY,-1],[0,_.RE,vkq],1,[0,WjD],1,[0,_.y8]],[0,_.Oy],[0,[1,2],_.N8,[0,_.y8],_.N8,[0,_.y8,_.xH,-1]],[0,_.LY],[0,_.y8,[0,[1,2,3,4],_.N8,[0,[0,_.y8],hvk],_.N8,[0,[0,_.y8],hvk],_.N8,[0,hvk],_.N8,[0,[0,_.y8],hvk]]],[0,_.y8],1,[0,_.y8,_.LY],1,[0,_.y8],[0,_.Oy],[0,_.y8,_.LY,-1,[0,_.y8,-4]],[0,_.y8],[0,_.y8,-2],1,[0,_.y8],[0,
_.Oy],[0,_.Oy],1,[0,_.Oy],[0]],_.y8,_.LY,_.wm,1,_.Ag,_.y8,_.LY],_.i6,_.Ag,_.LY,-1,_.i6]);var i9o=new _.bn("talkToRecsViewModel");var O9h=new _.bn("creatorGoalSetUpFlowDropdownItemViewModel");var aQs=new _.bn("creatorGoalSetUpFlowDropdownViewModel");var x2q=new _.bn("thumbnailBadgeViewModel");var yZL=new _.bn("checkboxGroupViewModel");var Jc8=new _.bn("checkboxItemViewModel");_.UB=new _.bn("radioButtonGroupViewModel");var okA=new _.bn("radioButtonItemViewModel");var wEi=new _.bn("panelFooterViewModel");var m5h=new _.bn("ypcCancelRecurrenceCommand");var U5D=new _.bn("cancellationFlowState");var sZo=new _.bn("premiumPurchaseFlowState");var RvD=new _.bn("surveyAnswerCardRenderer");var Njm=new _.bn("showMoreButtonRenderer");var AZD;var x5k,Ljc=function(){if(x5k!==void 0)return x5k;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;AZD===void 0&&(AZD=document.createElement("template"));var Q=AZD;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return x5k=G};var RD=function(){var G=_.C.apply(this,arguments)||this;G.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";G.goalDescription="";G.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";G.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";G.startButtonId="start-button";G.exampleButtonId="example-button";return G};
_.T(RD,_.C);_.g=RD.prototype;_.g.getGoalDropdownItems=function(){var G,H;return(H=_.X((G=this.data)==null?void 0:G.purchaseTargetDropdown,aQs))==null?void 0:H.dropdownItems};
_.g.getTimerDropdownItems=function(){var G,H;return(H=_.X((G=this.data)==null?void 0:G.timerDropdown,aQs))==null?void 0:H.dropdownItems};
_.g.getColorDropdownItems=function(){var G,H;return(H=_.X((G=this.data)==null?void 0:G.colorDropdown,aQs))==null?void 0:H.dropdownItems};
_.g.getDropdownItemText=function(G){var H;return(H=_.X(G,O9h))==null?void 0:H.itemLabel};
_.g.getDropdownItemValue=function(G){G=_.X(G,O9h);return(G==null?void 0:G.timeLimit)||(G==null?void 0:G.purchaseTarget)||(G==null?void 0:G.eligiblePurchaseType)};
_.g.updateFlowState=function(G){_.AZ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:G}])};
_.g.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.g.updateGoalValue=function(G){this.goal=G.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.g.onTextValueChanged=function(G){this.goalDescription=G.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.g.updateTimerValue=function(G){this.timer=G.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.g.updateTierValue=function(G){this.tier=G.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.g.getButtonViewModel=function(G){G=(G==null?void 0:G.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var H,Z=_.X((H=this.data)==null?void 0:H.startGoalButton,_.HN);return Object.assign({},Z,{state:G})};
_.u4.Object.defineProperties(RD,{template:{configurable:!0,enumerable:!0,get:function(){return Ljc()}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],RD.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],RD.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],RD.prototype,"goal",void 0);_.N([_.h(),_.A("design:type",Object)],RD.prototype,"goalDescription",void 0);_.N([_.h(),_.A("design:type",Object)],RD.prototype,"timer",void 0);_.N([_.h(),_.A("design:type",Object)],RD.prototype,"tier",void 0);
_.N([_.h(),_.A("design:type",Object)],RD.prototype,"startButtonId",void 0);_.N([_.h(),_.A("design:type",Object)],RD.prototype,"exampleButtonId",void 0);_.N([_.fH({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],RD);_.m(RD,"yt-creator-goal-set-up-flow-view-model",function(){return Ljc()},{mode:0});var Ekm;var Ylq;var Fjh;var b9A=function(){return _.C.apply(this,arguments)||this};
_.T(b9A,_.C);_.N([_.h(),_.A("design:type",Object)],b9A.prototype,"data",void 0);_.N([_.fH({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],b9A);
_.m(b9A,"yt-survey-answer-card-renderer",function(){if(Fjh===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Ylq===void 0&&(Ylq=document.createElement("template"));var Q=Ylq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Fjh=G}G=Fjh;return G},{mode:2});var GD8;var Hos;var NG=function(){return _.C.apply(this,arguments)||this};
_.T(NG,_.C);_.g=NG.prototype;_.g.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.g.selectedItemChanged=function(G){_.AZ(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[G.feedbackToken||""]}])};
_.g.surveyAnswerCardRendererClicked=function(G){if(G.target&&_.X(G.model.item,RvD)){var H=G.target;G=_.X(G.model.item,RvD);G.onTapCommand?_.El(H,[G.onTapCommand],H):this.data.onTapCommand&&_.El(H,[this.data.onTapCommand],H);this.selectedItemChanged(G)}};
_.g.checkIsCancellationStyle=function(G){return G==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.g.updateSelectedItemFromBinding=function(G){this.selectedItem=G.detail.value};
NG.prototype.onSelectedItemChanged=NG.prototype.onSelectedItemChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],NG.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],NG.prototype,"selectedItem",void 0);_.N([_.h({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.A("design:type",Boolean)],NG.prototype,"isCancellationStyle",void 0);
_.N([_.gx("selectedItem"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],NG.prototype,"onSelectedItemChanged",null);_.N([_.fH({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],NG);
_.m(NG,"yt-survey-flow-step-renderer",function(){if(Hos===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;GD8===void 0&&(GD8=document.createElement("template"));var Q=GD8;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Hos=G}G=Hos;return G},{mode:2});var AC=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return G};
_.T(AC,_.C);AC.prototype.handleSurveyFlowStepOptionChanged=function(G){this.ytdReduxBehavior.dispatch(_.Lo({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:G}));_.AZ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],AC.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],AC.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],AC.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],AC);
_.m(AC,"ytd-survey-flow-step-renderer",function(){if(Ekm!==void 0)return Ekm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ekm=G},{mode:1});_.pAm=_.y(function(G){var H=G.data;var Z=G.hideDivider;var Q=G.isChannelInfoCard;G={};return _.J("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.J("div",{class:_.bb("yt-profile-identity-info-view-model__frame",(G["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!H().channelBanner},G))},_.J(s5c,{profileIdentityInfoData:H}),_.J("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.J("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.J(_.SP,{data:function(){return H().avatar}},{avatarViewModel:_.m9})),_.J(ZoL,{profileIdentityInfoData:H})),_.J(_.k,{cond:function(){return H().channelDescription},
then:function(p){var l={};return _.J("div",{class:_.bb((l["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(Q==null||!Q())},l["yt-profile-identity-info-view-model__channel-description"]=function(){return!(Q==null?0:Q())},l))},p)}}),_.J(Q5k,{profileIdentityInfoData:H}),_.J(_.k,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.J("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"mh");
_.pAm.idomCompat=!0;var Q5k=_.y(function(G){var H=G.profileIdentityInfoData;return _.J("div",{class:"yt-profile-identity-info-view-model__buttons"},_.J(_.Cl,{each:function(){return H().subscribeButton?[H().subscribeButton,H().channelAccess]:[H().channelAccess]}},function(Z){return _.J("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.J("div",{class:"yt-profile-identity-info-view-model--button"},_.J(_.SP,{data:function(){return Z}},{buttonViewModel:_.kg,
subscribeButtonViewModel:_.mO})))}))},"nh"),ZoL=_.y(function(G){var H=G.profileIdentityInfoData;
return _.J("div",{class:"yt-profile-identity-info-view-model__trio"},_.J("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.J(lg8,{profileIdentityInfoData:H}),_.J(_.SP,{data:function(){return H().threeDotMenu}},{buttonViewModel:_.kg})),_.J(gKm,{profileIdentityInfoData:H}))},"oh"),lg8=_.y(function(G){var H=G.profileIdentityInfoData;
return _.J("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.J("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return H().channelDisplayName}),_.J(_.k,{cond:function(){return H().verifiedOrOacBadge},
then:function(Z){return _.J("div",{class:"yt-profile-identity-info-view-model__badge"},_.J(_.ib,{data:function(){return{thumbnails:[{url:Z().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"ph"),s5c=_.y(function(G){var H=G.profileIdentityInfoData;
return _.J("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.J(_.SP,{data:function(){var Z=H().channelBanner;if(Z)return{imageBannerViewModel:{image:Z.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(Z){return _.J("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.J(_.GS,{data:Z.data,
isPositionRelative:!0}))}}))},"qh"),gKm=_.y(function(G){var H=G.profileIdentityInfoData;
return _.J("div",{class:"yt-profile-identity-info-view-model__metadata"},_.J("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.J("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return H().channelHandle}),_.J(_.k,{cond:function(){return H().channelPronouns&&H().channelHandle},
then:function(){return _.J("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.J("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return H().channelPronouns})),_.J("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.J("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return H().leftOfBulletInfo}),_.J(_.k,{cond:function(){return H().leftOfBulletInfo&&H().rightOfBulletInfo},
then:function(){return _.J("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.J("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return H().rightOfBulletInfo})))},"rh");var Igt;var x2=function(){return _.C.apply(this,arguments)||this};
_.T(x2,_.C);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],x2.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],x2.prototype,"data",void 0);_.N([_.O({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],x2);
_.m(x2,"ytd-channel-history-renderer",function(){if(Igt!==void 0)return Igt;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Igt=G},{mode:1});var q3D;var S3t=function(){return _.C.apply(this,arguments)||this};
_.T(S3t,_.C);_.N([_.h(),_.A("design:type",Object)],S3t.prototype,"data",void 0);_.N([_.O({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],S3t);
_.m(S3t,"ytd-feature-enablement-info-renderer",function(){if(q3D!==void 0)return q3D;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return q3D=G},{mode:1});var uss;var B8a;var LD=function(){var G=_.C.apply(this,arguments)||this;G.textBoxMaxLength=_.V("enable_tvod_campaign_code_integration")?15:12;return G};
_.T(LD,_.C);_.g=LD.prototype;_.g.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.g.onSubmit=function(){var G=this.data.serviceEndpoint,H=_.X(G,_.wu);H&&G&&(H.couponCode=this.userInput,_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}}))};
_.g.validate=function(){var G=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=G&&!this.data.errorMessage;this.showErrorMessage=G&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.V("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.g.computeStyle=function(G){return G};
_.g.computeShowValidationBelowInput=function(G){return G!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.g.updateUserInputFromBinding=function(G){this.userInput=G.currentTarget.value};
_.g.updateShowErrorMessageFromBinding=function(G){this.showErrorMessage=G.detail.value};
_.u4.Object.defineProperties(LD.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
LD.prototype.dataChanged=LD.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],LD.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],LD.prototype,"userInput",void 0);_.N([_.h(),_.A("design:type",Boolean)],LD.prototype,"disableApplyButton",void 0);_.N([_.h(),_.A("design:type",Boolean)],LD.prototype,"hideApplyButton",void 0);
_.N([_.h(),_.A("design:type",Boolean)],LD.prototype,"hideErrorMessage",void 0);_.N([_.h(),_.A("design:type",Boolean)],LD.prototype,"showTick",void 0);_.N([_.h(),_.A("design:type",Boolean)],LD.prototype,"showErrorMessage",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],LD.prototype,"couponStyle",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.A("design:type",Boolean)],LD.prototype,"showValidationBelowInput",void 0);_.N([_.h(),_.A("design:type",Object)],LD.prototype,"textBoxMaxLength",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LD.prototype,"dataChanged",null);
_.N([_.z("showTick","showErrorMessage","userInput"),_.A("design:type",String),_.A("design:paramtypes",[])],LD.prototype,"validationState",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],LD);
_.m(LD,"ytd-ypc-coupon-renderer",function(){if(B8a!==void 0)return B8a;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return B8a=G},{mode:1});var EB=function(){return _.C.apply(this,arguments)||this};
_.T(EB,_.C);EB.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"}}}};
EB.prototype.computeStyle=function(G){return G};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],EB.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],EB.prototype,"buttonStyle",void 0);_.N([_.O({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],EB);
_.m(EB,"ytd-flow-bottom-bar-renderer",function(){if(uss!==void 0)return uss;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return uss=G},{mode:1});var JUi;var teD;var kDa;var Y2=function(){return _.C.apply(this,arguments)||this};
_.T(Y2,_.C);Y2.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Y2.prototype.focus=function(G){this.title&&_.pT(this.title,G)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Y2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Y2.prototype,"data",void 0);_.N([_.q6("#title"),_.A("design:type",HTMLElement)],Y2.prototype,"title",void 0);_.N([_.O({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Y2);
_.m(Y2,"ytd-flow-top-bar-renderer",function(){if(kDa!==void 0)return kDa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return kDa=G},{mode:1});var Dmj;var dmL;var eEa;var F0=function(){return _.C.apply(this,arguments)||this};
_.T(F0,_.C);F0.prototype.freeTextValueChanged=function(){_.AZ(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
F0.prototype.updateFreeTextValueFromBinding=function(G){this.freeTextValue=G.detail.value};
_.u4.Object.defineProperties(F0.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(H=(G=this.data)==null?void 0:G.responseMaxLength)!=null?H:500,Q;return((Q=this.freeTextValue)!=null?Q:"").length>=Z?"maxed-out":""}}});
F0.prototype.freeTextValueChanged=F0.prototype.freeTextValueChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],F0.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],F0.prototype,"freeTextValue",void 0);_.N([_.q6("#user-input"),_.A("design:type",HTMLTextAreaElement)],F0.prototype,"input",void 0);
_.N([_.z("freeTextValue"),_.A("design:type",Object),_.A("design:paramtypes",[])],F0.prototype,"characterLimitClass",null);_.N([_.gx("freeTextValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],F0.prototype,"freeTextValueChanged",null);_.N([_.fH({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],F0);
_.m(F0,"yt-free-text-input-flow-step-renderer",function(){if(eEa===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;dmL===void 0&&(dmL=document.createElement("template"));var Q=dmL;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);eEa=G}G=eEa;return G},{mode:2});var by=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return G};
_.T(by,_.C);by.prototype.handleFreeTextFlowStepInputChanged=function(G){_.AZ(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:G}}])};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],by.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],by.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],by.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],by);
_.m(by,"ytd-free-text-input-flow-step-renderer",function(){if(Dmj!==void 0)return Dmj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Dmj=G},{mode:1});var nKa;var Veq;var $mt=function(){return _.C.apply(this,arguments)||this};
_.T($mt,_.C);_.N([_.h(),_.A("design:type",Object)],$mt.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],$mt);
_.m($mt,"ytd-metadata-line-renderer",function(){if(Veq!==void 0)return Veq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Veq=G},{mode:1});var GH=function(){return _.C.apply(this,arguments)||this};
_.T(GH,_.C);GH.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],GH.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],GH.prototype,"isMasthead",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],GH);
_.m(GH,"ytd-media-product-renderer",function(){if(nKa!==void 0)return nKa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return nKa=G},{mode:1});var XAi;var Hp=function(){return _.C.apply(this,arguments)||this};
_.T(Hp,_.C);Hp.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Hp.prototype.onBillboardImageLoaded=function(){_.N5(this.hostElement,"yt-refit")};
Hp.prototype.onBillboardImageLoaded=Hp.prototype.onBillboardImageLoaded;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Hp.prototype,"data",void 0);_.N([_.q6("#billboardImage"),_.A("design:type",Object)],Hp.prototype,"billboardImage",void 0);_.N([_.lq("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hp.prototype,"onBillboardImageLoaded",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Hp);
_.m(Hp,"ytd-billboard-masthead-renderer",function(){if(XAi!==void 0)return XAi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return XAi=G},{mode:1});var cU8;var st=function(){var G=_.C.apply(this,arguments)||this;G.smallSize=!1;return G};
_.T(st,_.C);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],st.prototype,"ytComponentBehaviorType",void 0);_.N([_.h(),_.A("design:type",Object)],st.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],st.prototype,"smallSize",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],st);
_.m(st,"ytd-bullet-formatted-string",function(){if(cU8!==void 0)return cU8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cU8=G},{mode:1});var T8L;var Zb=function(){return _.C.apply(this,arguments)||this};
_.T(Zb,_.C);Zb.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Zb.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Zb);
_.m(Zb,"ytd-offer-detail-renderer",function(){if(T8L!==void 0)return T8L;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return T8L=G},{mode:1});var fgD;var Q5=function(){return _.C.apply(this,arguments)||this};
_.T(Q5,_.C);Q5.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Q5.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Q5);
_.m(Q5,"ytd-offer-detail-step-renderer",function(){if(fgD!==void 0)return fgD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fgD=G},{mode:1});var vK8;var pR=function(){var G=_.C.apply(this,arguments)||this;G.isInOfferModule=!1;return G};
_.T(pR,_.C);_.g=pR.prototype;_.g.computeHasEndpoint=function(){var G;return!((G=this.data)==null||!G.onClickCommand)};
_.g.dataChanged=function(){var G;if((G=this.data)==null?0:G.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")};
_.g.detached=function(){var G;if((G=this.data)==null?0:G.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.g.handleClickEvent=function(){var G;if((G=this.data)==null?0:G.onClickCommand){var H;this.componentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.g.onContentKeyDown=function(G){G.key==="Enter"?this.handleClickEvent(G):G.key===" "&&G.preventDefault()};
_.g.onContentKeyUp=function(G){G.key===" "&&this.handleClickEvent(G)};
pR.prototype.dataChanged=pR.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],pR.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],pR.prototype,"data",void 0);_.N([_.h({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],pR.prototype,"hasEndpoint",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],pR.prototype,"isInOfferModule",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pR.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],pR);
_.m(pR,"ytd-channel-masthead-renderer",function(){if(vK8!==void 0)return vK8;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vK8=G},{mode:1});var WhD;var ld=function(){var G=_.C.apply(this,arguments)||this;G.thumbnailObjectFit="CONTAIN";G.thumbnailObjectPosition="LEFT";G.isExpanded=!1;return G};
_.T(ld,_.C);_.g=ld.prototype;_.g.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.g.dataChanged=function(){this.resetStates()};
_.g.computeisTapOnOfferInfoContainerEnabled=function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.g.onExpandBtnClick=function(){var G,H=_.X((G=this.data)==null?void 0:G.showMoreButtonRenderer,Njm);H&&_.ze(_.gr(),H.trackingParams);this.isExpanded=!this.isExpanded};
_.g.onOfferInfoClick=function(G){this.isTapOnOfferInfoContainerEnabled&&(_.OO(_.OD(G)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.yF(_.OD(G)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.g.onBottomBarClick=function(){this.executeTapCommand()};
_.g.executeTapCommand=function(){var G,H=(G=this.data)==null?void 0:G.tapCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.g.resetStates=function(){this.isExpanded=!1};
_.u4.Object.defineProperties(ld.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var G=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),H,Z,Q;return((H=this.data)==null?void 0:H.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&G&&!!((Z=this.data)==null?0:(Q=Z.benefits)==null?0:Q.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((H=_.X((G=this.data)==null?void 0:G.showMoreButtonRenderer,Njm))==null?void 0:H.showMoreButtonTitle)||((Z=this.data)==null?void 0:Z.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((H=_.X((G=this.data)==null?void 0:G.showMoreButtonRenderer,Njm))==null?void 0:H.showLessButtonTitle)||((Z=this.data)==null?void 0:Z.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var G;return(G=this.showLessButtonTitle)!=null?G:""}var H;return(H=this.showMoreButtonTitle)!=null?H:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.data)==null?void 0:G.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((H=this.data)==null?0:H.footerTitle)||((Z=this.data)==null?0:Z.footerSubtitle))}}});
ld.prototype.dataChanged=ld.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],ld.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",String)],ld.prototype,"thumbnailObjectFit",void 0);
_.N([_.h(),_.A("design:type",String)],ld.prototype,"thumbnailObjectPosition",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.A("design:type",Boolean)],ld.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.N([_.h(),_.A("design:type",Object)],ld.prototype,"isExpanded",void 0);_.N([_.h(),_.A("design:type",Object)],ld.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.footerIcon)"}),_.A("design:type",String)],ld.prototype,"icon",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ld.prototype,"dataChanged",null);_.N([_.z("data.thumbnail"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ld.prototype,"hasThumbnail",null);_.N([_.z("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ld.prototype,"enableExpandButton",null);
_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ld.prototype,"enableOfferContentIcon",null);_.N([_.z("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],ld.prototype,"showMoreButtonTitle",null);_.N([_.z("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.A("design:type",Object),_.A("design:paramtypes",[])],ld.prototype,"showLessButtonTitle",null);
_.N([_.z("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.A("design:type",String),_.A("design:paramtypes",[])],ld.prototype,"expandedBtnText",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ld.prototype,"enableBottomBar",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],ld);
_.m(ld,"ytd-offer-card-renderer",function(){if(WhD!==void 0)return WhD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WhD=G},{mode:1});var zE8;var gA=function(){return _.C.apply(this,arguments)||this};
_.T(gA,_.C);gA.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"}}}};
gA.prototype.onClick=function(G){if(!_.OO(G.composedPath()||[],this.hostElement,["A".toString()])){var H,Z;if((G=(Z=_.X((H=this.data)==null?void 0:H.actionButton,_.Yl))==null?void 0:Z.command)&&!this.ytComponentBehavior.resolveCommand(G)){var Q;(Q=_.gr())==null||Q.clickCommand(G);_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}})}}};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],gA.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gA.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],gA);
_.m(gA,"ytd-offer-content-renderer",function(){if(zE8!==void 0)return zE8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return zE8=G},{mode:1});var KhA;var IW=function(){return _.C.apply(this,arguments)||this};
_.T(IW,_.C);IW.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.u4.Object.defineProperties(IW.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null||!G.title)||!((H=this.data)==null||!H.description)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],IW.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],IW.prototype,"hasHeaderData",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],IW);
_.m(IW,"ytd-offer-section-renderer",function(){if(KhA!==void 0)return KhA;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return KhA=G},{mode:1});var Mec;var qM=function(){return _.C.apply(this,arguments)||this};
_.T(qM,_.C);
qM.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"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],qM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qM.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],qM);
_.m(qM,"ytd-offer-selection-step-renderer",function(){if(Mec!==void 0)return Mec;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Mec=G},{mode:1});var j5a;var SI=function(){return _.C.apply(this,arguments)||this};
_.T(SI,_.C);SI.prototype.computeStyle=function(G){return G};
SI.prototype.computeImageWidth=function(G){return G==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.N([_.h({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.A("design:type",String)],SI.prototype,"containerStyle",void 0);_.N([_.h({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.A("design:type",String)],SI.prototype,"imageWidth",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],SI.prototype,"data",void 0);
_.N([_.O({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],SI);
_.m(SI,"ytd-confirmation-masthead-renderer",function(){if(j5a!==void 0)return j5a;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return j5a=G},{mode:1});var PfA;var ud=function(){return _.C.apply(this,arguments)||this};
_.T(ud,_.C);ud.prototype.computeStyle=function(G){return G};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ud.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.A("design:type",String)],ud.prototype,"containerStyle",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],ud);
_.m(ud,"ytd-purchase-complete-detail-renderer",function(){if(PfA!==void 0)return PfA;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return PfA=G},{mode:1});var rUo;var Bp=function(){var G=_.C.apply(this,arguments)||this;G.scriptsAppended=!1;return G};
_.T(Bp,_.C);Bp.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"}}}};
Bp.prototype.onDataChanged=function(){var G=this.get("data.gtmId");G&&(_.P9(G,_.xI("GL","")),this.setupConversionTracking())};
Bp.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("noscript");G.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(G);this.scriptsAppended=!0}};
Bp.prototype.onDataChanged=Bp.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Bp.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Bp.prototype,"scriptsAppended",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bp.prototype,"onDataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Bp);
_.m(Bp,"ytd-purchase-complete-step-renderer",function(){if(rUo!==void 0)return rUo;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rUo=G},{mode:1});var wAa;var Jd=function(){return _.C.apply(this,arguments)||this};
_.T(Jd,_.C);Jd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Jd.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Jd);
_.m(Jd,"ytd-ypc-transaction-error-message-renderer",function(){if(wAa!==void 0)return wAa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wAa=G},{mode:1});var hEs;var Cft;var td=function(){var G=_.C.apply(this,arguments)||this;G.handlePhoneVerificationSuccess=function(H){if(G.isValidPhoneVerificationCompletionMessageEvent(H)){var Z;((Z=G.data)==null?0:Z.nextStepCommand)&&G.ytComponentBehavior.resolveCommand(G.data.nextStepCommand)}};
return G};
_.T(td,_.C);td.prototype.isValidPhoneVerificationCompletionMessageEvent=function(G){if(G.data!=="yt-phone-verification-complete")return!1;G=_.qY(G.origin);return G!==null&&G.includes("youtube.com")};
td.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
td.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],td.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],td.prototype,"data",void 0);_.N([_.fH({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],td);
_.m(td,"yt-feature-enablement-soft-entry-renderer",function(){if(Cft===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;hEs===void 0&&(hEs=document.createElement("template"));var Q=hEs;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Cft=G}G=Cft;return G},{mode:1});var ioi;var Ooj;var agA;var yU8;var oKa=function(){return _.C.apply(this,arguments)||this};
_.T(oKa,_.C);_.N([_.h(),_.A("design:type",Object)],oKa.prototype,"data",void 0);_.N([_.fH({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],oKa);
_.m(oKa,"yt-benefits-item-renderer",function(){if(yU8===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;agA===void 0&&(agA=document.createElement("template"));var Q=agA;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);yU8=G}G=yU8;return G},{mode:2});var mmc;var Umo;var k$=function(){return _.C.apply(this,arguments)||this};
_.T(k$,_.C);k$.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
k$.prototype.computeisWithoutPadding=function(){var G;return((G=this.data)==null?void 0:G.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],k$.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.A("design:type",Boolean)],k$.prototype,"isWithoutPadding",void 0);_.N([_.fH({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],k$);
_.m(k$,"yt-benefits-section-renderer",function(){if(Umo===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;mmc===void 0&&(mmc=document.createElement("template"));var Q=mmc;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Umo=G}G=Umo;return G},{mode:2});var Db=function(){return _.C.apply(this,arguments)||this};
_.T(Db,_.C);Db.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Db.prototype.computeisUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Db.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.A("design:type",Boolean)],Db.prototype,"isUsingLargeWidth",void 0);_.N([_.fH({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Db);
_.m(Db,"yt-benefits-flow-step-renderer",function(){if(Ooj===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;ioi===void 0&&(ioi=document.createElement("template"));var Q=ioi;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Ooj=G}G=Ooj;return G},{mode:2});var RE6;var N8D;var dA=function(){return _.C.apply(this,arguments)||this};
_.T(dA,_.C);dA.prototype.checkIsUsingLargeWidth=function(){var G;return((G=this.data)==null?void 0:G.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.N([_.h(),_.A("design:type",Object)],dA.prototype,"data",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.N([_.h({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.A("design:type",Boolean)],dA.prototype,"isUsingLargeWidth",void 0);_.N([_.fH({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],dA);
_.m(dA,"yt-confirmation-flow-step-renderer",function(){if(N8D===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;RE6===void 0&&(RE6=document.createElement("template"));var Q=RE6;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);N8D=G}G=N8D;return G},{mode:2});var AUA;var xmA;var Lhm=function(){return _.C.apply(this,arguments)||this};
_.T(Lhm,_.C);_.N([_.h(),_.A("design:type",Object)],Lhm.prototype,"data",void 0);_.N([_.fH({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Lhm);
_.m(Lhm,"yt-info-flow-step-renderer",function(){if(xmA===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;AUA===void 0&&(AUA=document.createElement("template"));var Q=AUA;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);xmA=G}G=xmA;return G},{mode:2});var EKj;var Y3j;var Fha=function(){return _.C.apply(this,arguments)||this};
_.T(Fha,_.C);_.N([_.h(),_.A("design:type",Object)],Fha.prototype,"data",void 0);_.N([_.fH({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Fha);
_.m(Fha,"yt-info-list-flow-step-renderer",function(){if(Y3j===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;EKj===void 0&&(EKj=document.createElement("template"));var Q=EKj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Y3j=G}G=Y3j;return G},{mode:2});var boL=_.y(function(G){var H=G.data;return _.J("styled-text-view-model",{class:_.bb("ytStyledTextViewModelHost",function(){return NNq(H().fontAttributes)},function(){return RkD(H().color)})},_.J(_.Fe,{text:function(){return H().text},
ariaLabel:function(){var Z,Q,p;return(p=(Z=H().accessibility)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label)!=null?p:""}}))},"sh");
boL.idomCompat=!0;var G9q=_.y(function(G){var H=function(){var p,l,q,u;return(u=(q=(p=G.alt)==null?void 0:p.call(G))!=null?q:(l=G.data().accessibilityData)==null?void 0:l.label)!=null?u:""},Z=function(){return G.data().imageWidth},Q=function(){return G.data().imageHeight};
return _.J("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.J(_.k,{cond:function(){var p=G.data();if(p){var l,q,u;var B=((l=_.tp().resolve(_.Jp(_.rr)))==null?0:l())?(q=p.imageDark)!=null?q:p.imageLight:(u=p.imageLight)!=null?u:p.imageDark}else B=void 0;return B},
then:function(p){return _.J(_.ib,Object.assign({},G,{data:p,alt:H,targetWidth:Z,targetHeight:Q,preserveHeight:!0,preserveWidth:!0}))}}))},"th");
G9q.idomCompat=!0;var eI=_.y(function(G){var H=G.data;G=_.yy(function(){return H().slots},[]);
var Z=_.yy(function(){return H().layoutProperties},{}),Q=_.tp().resolve(_.ht);
return _.J("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:aYo(Z,Q)},_.J(_.Cl,{each:G,keyBy:"INDEX"},function(p){return _.J("div",{class:"ytContainerLayoutViewModelSlot",style:aYo(function(){return p().layoutProperties},Q)},_.J(_.SP,{data:function(){return p().contents}},{containerLayoutViewModel:eI,
badgeViewModel:_.tz,buttonViewModel:_.kg,styledTextViewModel:boL,contentPreviewImageViewModel:function(l){return _.J(_.kz,{data:l.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(l){return _.J(G9q,{data:l.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"uh");
eI.idomCompat=!0;var HND=_.y(function(G){var H=G.data;var Z=G.stateFns;var Q=function(){var t=H(),D=t.productId;return!(!t.clearGroupId&&!D)},p=function(){var t=H(),D=t.clearGroupId;
return(t=t.productId)?Z().isProductSelected(t):D?Z().getSelectedProductByGroupId(D)==null:!1},l=function(t){var D=H(),d=D.clearGroupId;
if(D=D.productId)Z().onProductSelected(D),t==null||t.forEach(function(e){_.zt(e)});
else if(d)Z().onClearGroupSelected(d)},q=function(){var t=H(),D=t.clearGroupId;
if(t=t.productId){var d;return"group:"+(((d=Z().getProductById(t))==null?void 0:d.groupId)||"")}return D?"group:"+D:""},u=_.yy(function(){return H().header},[]),B=_.yy(function(){return H().body},[]);
return _.J("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.J(_.k,{cond:function(){return u().length>0||Q()},
then:function(){return _.J("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.J("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.J(_.SP,{data:u},{containerLayoutViewModel:function(t){return _.J("div",{class:"ytPdpCardSectionViewModelContentItem"},_.J(eI,{data:t.data}))},
styledTextViewModel:function(t){return _.J("div",{class:"ytPdpCardSectionViewModelContentItem"},_.J(boL,{data:t.data}))}})),_.J(_.k,{cond:Q,
then:function(){return _.J("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.J(_.xZ,{checked:p,name:q,onChange:function(){l(H().onSelect)}}))}}))}}),_.J(_.k,{cond:function(){return B().length>0},
then:function(){return _.J("div",null,_.J(_.SP,{data:B},{containerLayoutViewModel:function(t){return _.J("div",{class:"ytPdpCardSectionViewModelContentItem"},_.J(eI,{data:t.data}))}}))}}))},"vh");
HND.idomCompat=!0;var sqc=_.y(function(G){var H=G.data;var Z=G.stateFns;return _.J("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.J(_.k,{cond:function(){return H().banner},
then:function(Q){return _.J("div",{class:"ytPdpCardViewModelBanner"},_.J(_.Fe,{text:Q}))}}),_.J(_.SP,{data:function(){return H().sections}},{pdpCardSectionViewModel:function(Q){Q=Q.data;
var p={};return _.J("div",{class:_.bb("ytPdpCardViewModelSectionContainer",(p.ytPdpCardViewModelShowDividers=function(){return H().showDividers},p))},_.J(HND,{data:Q,
stateFns:Z}))}}))},"wh");
sqc.idomCompat=!0;var ZNc=_.y(function(G){var H=G.data;var Z=G.isOverlay;G={};return _.J("pdp-masthead-view-model",{class:_.bb("ytPdpMastheadViewModelHost",(G.ytPdpMastheadViewModelIsOverlay=Z,G))},_.J(_.SP,{data:function(){return H().image}},{contentPreviewImageViewModel:_.kz,
themedImageViewModel:function(Q){return _.J(G9q,{data:Q.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.J(_.k,{cond:function(){return H().title},
then:function(Q){return _.J("h1",{class:"ytPdpMastheadViewModelHeading"},_.J(_.Fe,{text:Q,isOverlay:Z}))}}),_.J(_.Cl,{each:function(){var Q;
return(Q=H().finePrint)!=null?Q:[]}},function(Q){return _.J("div",{class:"ytPdpMastheadViewModelFinePrint"},_.J(_.Fe,{text:Q,
isOverlay:Z}))}))},"xh");
ZNc.idomCompat=!0;var Qqi=_.y(function(G){var H=G.data;var Z=G.stateFns;var Q=function(){return"pdp-pricing-group-selector-"+H().pricingGroupAttributeIds},p=_.yy(function(){return H().pricingGroupSelectorSectionHeader});
return _.J("pdp-pricing-group-selector-view-model",null,_.J(_.k,{cond:function(){return!!p()},
then:function(){return _.J(_.SP,{data:p},{sectionHeaderViewModel:function(l){l=l.data;var q={};return _.J("div",{class:_.bb("ytPdpPricingGroupSelectorViewModelSectionHeader",(q.ytPdpPricingGroupSelectorViewModelFullBleed=!0,q.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,q))},_.J(_.v_,{data:l}))}})}}),_.J("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.J(_.Cl,{each:function(){var l=Z().getSelectedProductByGroupId(H().groupId);
if(!l)return _.UN(Error("Zj`"+H().groupId)),[];var q,u=(q=H().pricingGroupAttributeIds)!=null?q:[],B;if((B=l.pricingGroups)==null||!B.length||!u.length)return[];q=l.pricingGroups.filter(function(e){return u.length?e.pricingGroupAttributes.every(function(n){return u.includes(n)}):!1});
l=[];if(u.length>0){q=[].concat(_.OP(q));B=_.I(u);for(var t=B.next(),D={};!t.done;D={targetAttrId:void 0},t=B.next())D.targetAttrId=t.value,t=q.findIndex(function(e){return function(n){return n.pricingGroupAttributes.includes(e.targetAttrId)}}(D)),t!==-1&&(l.push(q[t]),q.splice(t,1))}var d=Z().getSelectedPricingGroupAttributesByGroupId(H().groupId);
return l.map(function(e){var n=!1;d&&e.pricingGroupAttributes&&(n=iy(e.pricingGroupAttributes,d));return{pricingGroup:e,isSelected:n}})},
keyBy:function(l){return l.pricingGroup.pricingGroupId}},function(l){return _.J("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.J("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.J(_.SP,{data:function(){return l().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:eI})),_.J("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.J(_.xZ,{checked:function(){return l().isSelected},
name:Q,onClick:function(){var q=l().pricingGroup;Z().onPricingGroupSelected(q.pricingGroupId);if(q=_.Tt(q.onSelectPricingGroup)){var u;(u=_.tp().resolve(_.Dk))==null||u.resolveCommand(q)}}})))})))},"yh");
Qqi.idomCompat=!0;var pva=_.y(function(G){var H=G.data;var Z=G.stateFns;var Q=function(){var q=Z().getSelectedPricingOptions().map(function(t){return t.pricingOptionId}),u=Z().getSelectedProductByGroupId(H().groupId);
if(!u)return _.UN(Error("$j`"+H().groupId)),[];var B=Z().getSelectedPricingGroupAttributesByGroupId(H().groupId);return EPj(u.pricingOptions,B,q)},p=_.yy(function(){return H().pricingOptionSelectorSectionHeader}),l=function(){return Q().length>1};
return _.J("pdp-pricing-option-selector-view-model",null,_.J(_.k,{cond:function(){return!!p()&&l()},
then:function(){return _.J(_.SP,{data:p},{sectionHeaderViewModel:function(q){q=q.data;var u={};return _.J("div",{class:_.bb("ytPdpPricingOptionSelectorViewModelSectionHeader",(u.ytPdpPricingOptionSelectorViewModelFullBleed=!0,u.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,u))},_.J(_.v_,{data:q}))}})}}),_.J(_.k,{cond:l,
then:function(){return _.J("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.J(_.Cl,{each:Q,keyBy:"INDEX"},function(q){return _.J("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.J("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.J(_.SP,{data:function(){return q().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:eI})),_.J("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.J(_.xZ,{checked:function(){return q().isSelected},
onClick:function(){Z().onPricingOptionSelected(q().pricingOption.pricingOptionId);var u=q().pricingOption.onSelectPricingOption;if(u=_.Tt(u)){var B;(B=_.tp().resolve(_.Dk))==null||B.resolveCommand(u)}}})))}))}}))},"zh");
pva.idomCompat=!0;var lfA=_.y(function(G){var H=G.data;var Z=G.stateFns;return _.J("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.J(_.SP,{data:function(){var Q,p;return(p=(Q=Z().getSelectedPricingOptions()[0])==null?void 0:Q.primaryButton)!=null?p:H().emptyStateButton}},{buttonViewModel:_.kg}))},"Ah");
lfA.idomCompat=!0;var gaA=_.y(function(G){var H=G.stateFns;return _.J("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.J(_.SP,{data:function(){return H().getSelectedPricingOptions().flatMap(function(Z){return Z.summaryLines}).filter(function(Z){return!!Z})}},{containerLayoutViewModel:function(Z){return _.J("div",{class:"ytPdpSummaryViewModelLineItem"},_.J(eI,{data:Z.data}))}}))},"Bh");
gaA.idomCompat=!0;var Ifc=_.y(function(G){function H(c){var W=q();_.aK(_.eO("pdpStateEntity",W,{key:W,selectedPricingOptions:c}))}
var Z=G.data;var Q=G.internalScrolling;var p=G.stateFnsForTesting;var l=_.yy(function(){return Z().allProducts},[]),q=_.yy(function(){return Z().pdpStateEntityKey},""),u=_.gu(YS8,q),B=_.Kb(function(){_.Uv(!0);
var c;return(c=p==null?void 0:p())!=null?c:b18(u,l,H)},void 0,"Pzdsic"),t=_.yy(function(){return Z().body},[]),D=_.yy(function(){return Z().columnBreakHints},[]),d=function(){return Z().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},e=function(){return d()||Z().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},n=_.Kb(function(){var c=_.zk(Z().background),W;
if(c==null?0:(W=c.sources)==null?0:W.length){var M=M===void 0?!0:M;c=_.S2o(void 0,c.sources,void 0,M,M?1E3:void 0,M?void 0:1E3)}else c=null;return c},void 0,"RDPOae");
_.mR(function(){var c=Z().onStartCommand;if(c&&(c=_.Tt(c))){var W;(W=_.tp().resolve(_.Dk))==null||W.resolveCommand(c)}});
G={};return _.J("pdp-view-model",{class:_.bb("ytPdpViewModelHost",(G.ytPdpViewModelHasBackground=function(){return e()||!!n()},G.ytPdpViewModelHasDarkBackground=e,G.ytPdpViewModelHasScrim=d,G.ytPdpViewModelInternalScrolling=Q,G)),
style:_.pI({"--pdp-view-model-background":function(){return n()?"url("+n()+")":void 0}})},_.J("div",{class:"ytPdpViewModelColumnContainer"},_.J(_.Cl,{each:function(){return GEA(t(),D())},
keyBy:"INDEX"},function(c){return _.J("div",{class:"ytPdpViewModelColumn"},_.J(_.SP,{data:c},{containerLayoutViewModel:function(W){return _.J(nR,null,_.J(eI,{data:W.data}))},
dividerViewModel:function(W){return _.J(nR,{fullBleed:!0},_.J(_.FZT,{data:W.data}))},
pdpCardViewModel:function(W){return _.J(nR,null,_.J(sqc,{data:W.data,stateFns:B}))},
pdpMastheadViewModel:function(W){return _.J(nR,null,_.J(ZNc,{data:W.data,isOverlay:e}))},
pdpPricingGroupSelectorViewModel:function(W){return _.J(nR,null,_.J(Qqi,{data:W.data,stateFns:B}))},
pdpPricingOptionSelectorViewModel:function(W){return _.J(nR,null,_.J(pva,{data:W.data,stateFns:B}))},
pdpPrimaryButtonViewModel:function(W){return _.J(nR,null,_.J(lfA,{data:W.data,stateFns:B}))},
pdpSummaryViewModel:function(W){return _.J(nR,null,_.J(gaA,{data:W.data,stateFns:B}))},
sectionHeaderViewModel:function(W){return _.J(nR,{fullBleed:!0,noVerticalPadding:!0},_.J(_.v_,{data:W.data}))}}))})))},"Ch");
Ifc.idomCompat=!0;var nR=_.y(function(G){var H={};return _.J("div",{class:_.bb("ytPdpViewModelItem",(H.ytPdpViewModelFullBleed=G.fullBleed,H.ytPdpViewModelNoVerticalPadding=G.noVerticalPadding,H))},G.children)},"Dh");_.RX(Ifc,"pdp-view-model",{props:{data:_.b3,stateFnsForTesting:_.oX,internalScrolling:_.oX}});var q78=_.y(function(G){var H=G.data;var Z=G.className;var Q=_.gu(_.CA,function(){return H().flowStateEntityKey});
return _.J("ytm-premium-purchase-button-renderer",{class:_.bb("ytPremiumPurchaseButtonRendererHost",Z)},_.J(_.SP,{data:function(){var p;return(p=_.X(Q(),sZo))==null?void 0:p.primaryButtonOverride}},{buttonRenderer:function(p){return _.J(_.pJ,{data:p.data,
className:Z})},
buttonViewModel:function(p){return _.J(_.kg,{data:p.data,className:Z})}}))},"Eh");
q78.idomCompat=!0;var S7h=_.y(function(G){var H=G.data;G=G.className;var Z=function(){return H6m(H().style)},Q=_.bb("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",Z),p=_.bb("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",Z);
return _.J("yt-flow-bottom-bar-renderer",{class:_.bb("yt-flow-bottom-bar-renderer",G,Z)},_.J(_.SP,{data:function(){return H().secondaryButton}},{buttonRenderer:function(l){return _.J(_.pJ,{data:l.data,
className:p})},
buttonViewModel:function(l){return _.J(_.kg,{data:l.data,className:p})},
premiumPurchaseButtonRenderer:function(l){return _.J(q78,{data:l.data,className:p})}}),_.J(_.SP,{data:function(){return H().primaryButton}},{buttonRenderer:function(l){return _.J(_.pJ,{data:l.data,
className:Q})},
buttonViewModel:function(l){return _.J(_.kg,{data:l.data,className:Q})},
premiumPurchaseButtonRenderer:function(l){return _.J(q78,{data:l.data,className:Q})}}))},"Fh");
S7h.idomCompat=!0;_.RX(S7h,"yt-flow-bottom-bar-renderer",{props:{data:_.b3,className:_.b3}});var u88=_.y(function(G){var H=_.bb(G.className,"ytOfferSummaryRendererHost");return _.J("yt-offer-summary-renderer",{class:H},_.J("div",{class:"ytOfferSummaryRendererTextContainer"},_.J("div",{class:"ytOfferSummaryRendererEyebrowText"},_.J(_.Fe,{text:function(){return G.data().eyebrowText}})),_.J("div",{class:"ytOfferSummaryRendererTitle"},_.J(_.Fe,{text:function(){return G.data().title}})),_.J("div",{class:"ytOfferSummaryRendererSubtitle"},_.J(_.Fe,{text:function(){return G.data().subtitle}})),_.J("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.J(_.Cl,{each:function(){var Z;
return(Z=G.data().featureListData)!=null?Z:[]}},function(Z){var Q;
return _.J("div",{class:"ytOfferSummaryRendererFeatureList"},_.J(_.ll,{icon:(Q=Z.icon)==null?void 0:Q.iconType,active:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(Z.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"}}}),_.J("div",{class:"ytOfferSummaryRendererFeatureListText"},_.J(_.Fe,{text:Z.text,
className:function(){return Z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.J("div",{class:"ytOfferSummaryRendererDescription"},_.J(_.Fe,{text:function(){return G.data().description}}))))},"Gh");_.RX(_.y(function(G){var H={};H=_.bb("ytOfferSummaryFlowStepRendererHost",(H.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=G.shouldDisableHeaderTopMargin,H));return _.J("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:H},_.J("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.J("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.J(_.Fe,{text:function(){return G.data().header}})),_.J("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.J(_.Fe,{text:function(){return G.data().subtitle}}))),_.J("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.J(_.SP,{data:function(){return G.data().offerSummary}},{offerSummaryRenderer:function(Z){return _.J(u88,{data:Z.data,
className:G.flowClassName})}})))},"Hh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.oX,
flowClassName:_.oX,flowStateEntityKey:_.oX,shouldDisableHeaderTopMargin:_.oX}});var Bct=_.y(function(G){var H=G.data;var Z=G.className;var Q=G.flowStateEntityKey;var p=G.selectionStepStyle;G=_.Hh(function(B){var t=H(),D=Q==null?void 0:Q();B.target&&(B.stopPropagation(),B=D||"",D=_.CA(_.OI().getState(),B),t=Object.assign({},D,{premiumPurchaseFlowState:{selectedOptionId:t.optionId,primaryButtonOverride:t.primaryButtonOverride}}),_.OI().dispatch(_.uP("flowStateEntity",B,t)));return!1});
var l=function(){return(Q==null?void 0:Q())||""},q=_.gu(_.CA,l);
_.mR(function(){var B=H(),t=l(),D=q();B.defaultSelected&&t!==""&&B.primaryButtonOverride&&Z6h(B.optionId||"",t,B.primaryButtonOverride,D)});
var u={};return _.J("ytm-option-item-renderer",{"on:click":G,class:_.bb(Z,"ytm-option-item-renderer",(u["ytm-option-item-renderer--lp2-style"]=function(){return(p==null?void 0:p())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},u))},_.J("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.J("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var B=H(),t=l(),D=q();D=_.X(D,sZo);return(D?(D==null?void 0:D.selectedOptionId)||"":B.defaultSelected&&t!==""?(B==null?void 0:B.optionId)||"":"")===H().optionId},
name:("input"+_.jb(_.NR)).toString()})),_.J("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.J(_.SP,{data:function(){return H().titleBadge}},{badgeViewModel:function(B){return _.J(_.tz,{data:B.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.J(_.k,{cond:function(){return H().eyebrowText},
then:function(){return _.J("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.J(_.Fe,{text:function(){return H().eyebrowText}}))}}),_.J("div",{class:"ytm-option-item-renderer__option-item-title"},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.J(_.Fe,{text:function(){return H().subtitle}})),_.J(_.k,{cond:function(){return H().featureListData},
then:function(){return _.J("div",{class:"ytm-option-item-renderer__feature-list-data"},_.J(_.Cl,{each:function(){return H().featureListData||[]}},function(B){var t,D=(t=B.icon)==null?void 0:t.iconType;
a:switch(B.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":t="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":t="ytm-option-item-renderer__feature-list-icon-small";break a;default:t="ytm-option-item-renderer__feature-list-icon-default"}return _.J("div",{class:"ytm-option-item-renderer__feature-list"},_.J(_.ll,{icon:D,className:t,active:function(){return B.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.J("div",{class:"ytm-option-item-renderer__feature-list-text"},_.J(_.Fe,{text:B.text,
className:function(){return B.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.J("div",{class:"ytm-option-item-renderer__option-item-description"},_.J(_.Fe,{text:function(){return H().description}}))))},"Ih");var Jya=_.y(function(G){var H=G.data;var Z=G.flowClassName;var Q=G.flowStateEntityKey;var p=G.selectionStepStyle;return _.J("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.J("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.J("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.J(_.Fe,{text:function(){return H().title}}),_.J(_.SP,{data:function(){return H().titleBadge}},{badgeViewModel:function(l){return _.J(_.tz,{data:l.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.J(_.k,{cond:function(){return H().subtitle},
then:function(){return _.J("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.J(_.Fe,{text:function(){return H().subtitle}}))}}),_.J(_.k,{cond:function(){return H().featureListData},
then:function(l){return _.J("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.J(_.Cl,{each:l},function(q){var u;return _.J("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.J(_.ll,{icon:(u=q.icon)==null?void 0:u.iconType,active:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(q.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"}}}),_.J("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.J(_.Fe,{text:q.text,
className:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.J(_.k,{cond:function(){return H().secondaryTitle},
then:function(){return _.J("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.J(_.Fe,{text:function(){return H().secondaryTitle}}))}}),_.J(_.Cl,{each:function(){return H().sectionDisclaimers||[]}},function(l){return _.J("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.J(_.Fe,{text:l}))})),_.J(_.SP,{data:function(){return H().optionItems}},{optionItemRenderer:function(l){return _.J("div",{class:"ytOptionSectionRendererOptionItem"},_.J(Bct,{data:l.data,
className:Z,flowStateEntityKey:Q,selectionStepStyle:p}))}}),_.J(_.k,{cond:function(){return H().offerText},
then:function(){return _.J("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.J(_.Fe,{text:function(){return H().offerText}}))}}))},"Jh");
Jya.idomCompat=!0;var tSA=_.y(function(G){var H=G.data;var Z=G.flowClassName;var Q=G.flowStateEntityKey;G=G.isDesktop;var p=_.IA("div"),l=function(){var D;return(D=H().flowStateEntityKey)!=null?D:Q==null?void 0:Q()},q=function(){return(l==null?void 0:l())||""},u=function(){return H().style},B=_.gu(_.CA,q);
_.mR(function(){QZL(H(),q(),B());setTimeout(function(){var D;(D=p.value)==null||D.focus()})});
var t={};return _.J("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.bb("ytm-option-selection-flow-step-renderer",(t["ytm-option-selection-flow-step-renderer--desktop"]=G,t["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return H().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},t))},_.J("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"},
_.J("div",{el:p,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.J(_.Fe,{text:function(){return H().header}})),_.J("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.J(_.Fe,{text:function(){return H().subtitle}}))),_.J(_.SP,{data:function(){return H().optionItems||[]}},{optionItemRenderer:function(D){return _.J("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.J(Bct,{data:D.data,
className:Z,flowStateEntityKey:l,selectionStepStyle:u}))},
optionSectionRenderer:function(D){return _.J("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.J(Jya,{data:D.data,flowClassName:Z,flowStateEntityKey:l,selectionStepStyle:u}))}}))},"Kh");
tSA.idomCompat=!0;_.RX(tSA,"yt-option-selection-flow-step-renderer",{props:{data:_.b3,flowClassName:_.b3,flowStateEntityKey:_.b3,isDesktop:_.b3}});_.V5=_.y(function(G){var H=_.oK(G,{type:1,disablePadding:!1,disablePrimaryButton:!1}),Z=H.data,Q=H.type;G=H.disablePadding;var p=H.disablePrimaryButton,l=H.onClickPrimaryButton,q=function(){return Z().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},u=function(){return{disabled:p(),
state:p()?"disabled":"active"}},B=function(){return Z().leadingLabel||Z().trailingLabel};
H={};return _.J("yt-panel-footer-view-model",{class:_.bb("yt-panel-footer-view-model",(H["yt-panel-footer-view-model--hide-divider"]=function(){return Z().shouldHideDivider},H["yt-panel-footer-view-model--disable-padding"]=G,H))},_.J(_.k,{cond:B,
then:function(){var t={},D={};return _.J("div",{class:_.bb("yt-panel-footer-view-model__text-row",(t["yt-panel-footer-view-model--row-bottom-padding"]=function(){var d=Z();return!(!d.leadingLabel&&!d.trailingLabel||!d.primaryButton&&!d.secondaryButton)},t))},_.J(_.Fe,{text:function(){return Z().leadingLabel},
className:_.bb((D["yt-panel-footer-view-model--text-padding"]=B,D))}),_.J(_.Fe,{text:function(){return Z().trailingLabel}}))}}),_.J(_.k,{cond:q,
then:function(){var t={};return _.J("div",{class:"yt-panel-footer-view-model__button-stack"},_.J("div",{class:_.bb("yt-panel-footer-view-model__primary-button",(t["yt-panel-footer-view-model__button-stack--top-button"]=function(){return Z().secondaryButton},t))},_.J(_.SP,{data:function(){return Z().primaryButton}},{buttonViewModel:function(D){return _.J(_.kg,{data:D.data,
buttonOverrides:u,onClick:l})}})),_.J(_.SP,{data:function(){return Z().secondaryButton}},{buttonViewModel:_.kg}))}}),_.J(_.k,{cond:function(){return!q()},
then:function(){var t={},D={},d={};return _.J("div",{class:_.bb("yt-panel-footer-view-model__button-row",(t["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===Q()},t))},_.J("div",{class:_.bb("yt-panel-footer-view-model__button-row--left-button",(D["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===Q()},D["yt-panel-footer-view-model__button-row--hidden"]=function(){return!Z().secondaryButton||0===Q()},D["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===Q()},D))},_.J(_.SP,{data:function(){return Z().secondaryButton}},{buttonViewModel:_.kg})),_.J("div",{class:_.bb("yt-panel-footer-view-model__primary-button",(d["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===Q()||1===Q()},d["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===Q()},d))},_.J(_.SP,{data:function(){return Z().primaryButton}},{buttonViewModel:function(e){return _.J(_.kg,{data:e.data,
buttonOverrides:u,onClick:l})}})))}}))},"Lh");
_.V5.idomCompat=!0;_.k96=_.y(function(G){G=_.oK(G,{disablePadding:!1});var H=G.data,Z=G.disablePadding;G=_.Jbe(function(){return H().formId});
var Q=G.submitForm,p=G.isValid,l=G.isSubmitting;return _.J("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.J(_.SP,{data:function(){return H().panelFooter}},{panelFooterViewModel:function(q){return _.J(_.V5,{data:q.data,
onClickPrimaryButton:function(){Q()},
disablePrimaryButton:function(){return!p()||l()},
disablePadding:Z})}}))},"Mh");_.RX(_.k96,"yt-form-footer-view-model",{props:{data:_.b3,disablePadding:_.b3}});var Dv6=_.y(function(G){var H=_.V("enable_user_rating_web");return _.J("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.J("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.J(_.k,{cond:function(){var Z;return(Z=G.data())==null?void 0:Z.image},
then:function(Z){return _.J(_.ib,{data:Z,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.J("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.J(_.Fe,{text:function(){var Z;
return(Z=G.data())==null?void 0:Z.title}})),_.J("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.J(_.Fe,{text:function(){var Z;
return(Z=G.data())==null?void 0:Z.subtitle}})),_.J(_.k,{cond:function(){return!H},
then:function(){return _.J(_.SP,{data:function(){var Z;return(Z=G.data())==null?void 0:Z.viewTipsButton}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Nh");_.RX(Dv6,"yt-contributor-zero-state-view-model",{props:{data:_.b3}});var dva=_.y(function(G){var H=function(){var Z;return(Z=G.data())==null?void 0:Z.image};
return _.J("yt-featured-content-item-view-model",{class:_.bb("ytFeaturedContentItemViewModelHost")},_.J("div",{class:_.bb(function(){return H()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.J("div",{class:function(){return H()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.J(_.k,{cond:H,
then:function(){return _.J("div",{class:"ytFeaturedContentItemViewModelImage"},_.J(_.SP,{data:function(){return G.data().image}},{themedImageViewModel:function(Z){return _.J(G9q,{data:Z.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.J(_.k,{cond:function(){var Z;
return!H()&&((Z=G.data())==null?void 0:Z.iconName)},
then:function(){return _.J("div",{class:"ytFeaturedContentItemViewModelIcon"},_.J(_.ll,{icon:function(){return G.data().iconName}}))}}),_.J("div",{class:"ytFeaturedContentItemViewModelContent"},_.J(_.k,{cond:function(){var Z;
return(Z=G.data())==null?void 0:Z.title},
then:function(){return _.J("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.J(_.Fe,{text:function(){return G.data().title}}))}}),_.J(_.k,{cond:function(){var Z;
return(Z=G.data())==null?void 0:Z.body},
then:function(){return _.J("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.J(_.Fe,{text:function(){return G.data().body}}))}})))))},"Oh");var e8q=_.y(function(G){var H=function(){var p;return pEj((p=G.data())==null?void 0:p.titleFontSize)},Z=function(){var p;
return lZ6((p=G.data())==null?void 0:p.descriptionFontSize)},Q=function(){var p;
return((p=G.data())==null?void 0:p.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.J("yt-landing-page-view-model",{class:_.bb("ytLandingPageViewModelHost",G.className)},_.J("div",{class:"ytLandingPageViewModelHeader"},_.J(_.k,{cond:function(){var p;return(p=G.data())==null?void 0:p.bannerImage},
then:function(p){return _.J("div",{class:"ytLandingPageViewModelHeaderImage"},_.J(_.SP,{data:function(){return p()}},{imageBannerViewModel:function(l){return _.J(_.GS,{data:l.data,
isPositionRelative:!0})}}))}}),_.J(_.k,{cond:function(){var p;
return(p=G.data())==null?void 0:p.bannerAnimation},
then:function(p){return _.J(_.cY,{data:function(){var l=p();if(l==null?0:l.url){var q;l={path:(q=l==null?void 0:l.url)!=null?q:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(l==null?0:l.payload){var u;l={animationData:JSON.parse((u=l==null?void 0:l.payload)!=null?u:""),autoplay:!0,loop:!0,renderer:"svg"}}else l=void 0;return{animationConfig:l}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.J("div",{class:"ytLandingPageViewModelHeaderTitle"},_.J(_.k,{cond:function(){var p;
return(p=G.data())==null?void 0:p.title},
then:function(p){return _.J("div",{class:_.bb("ytLandingPageViewModelHeaderTitleContent",H)},_.J(_.Fe,{text:function(){return p()}}))}}),_.J(_.k,{cond:function(){var p;
return(p=G.data())==null?void 0:p.description},
then:function(p){var l={};return _.J(_.Fe,{className:_.bb("ytLandingPageViewModelHeaderTitleDescription",Z,(l.ytLandingPageViewModelHeaderTitleDescriptionMargin=Q,l)),text:function(){return p()}})}}))),_.J(_.k,{cond:function(){var p,l;
return(p=G.data())==null?void 0:(l=p.featuredContentList)==null?void 0:l.length},
then:function(){return _.J("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.J(_.SP,{data:function(){return G.data().featuredContentList}},{featuredContentItemViewModel:function(p){return _.J(dva,{data:p.data})}}))}}),_.J(_.k,{cond:function(){var p,l;
return(p=G.data())==null?void 0:(l=p.expandableContentList)==null?void 0:l.length},
then:function(){return _.J("div",{class:"ytLandingPageViewModelFaqSection"},_.J(_.SP,{data:function(){return G.data().expandableContentList}},{faqEntryViewModel:function(p){return _.J("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.J(_.wzG,{data:p.data}))}}))}}),_.J("div",{class:"ytLandingPageViewModelFooter"},_.J(_.k,{cond:function(){var p;
return(p=G.data())==null?void 0:p.legalCopy},
then:function(p){return _.J("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.J(_.Fe,{text:function(){return p()}}))}}),_.J(_.k,{cond:function(){var p;
return(p=G.data())==null?void 0:p.actions},
then:function(p){return _.J("div",null,_.J(_.SP,{data:function(){return p()}},{flexibleActionsViewModel:function(l){return _.J(_.RP,{data:l.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Ph");_.RX(_.y(function(G){return _.J("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.J("div",{class:"ytLpSectionGroupViewModelContainer"},_.J(_.SP,{data:function(){return G.data().sections}},{landingPageViewModel:function(H){return _.J(e8q,{data:H.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Qh"),"yt-lp-section-group-view-model",{props:{data:_.b3}});var nah=_.y(function(G){var H=G.data;var Z=G.selectedKey;var Q=G.onSelected;var p=G.groupName;var l=function(){return H().text},q=function(){return H().attributedText},u=function(){return H().subtext},B=function(){return H().attributedSubtext},t=_.J("div",{class:"ytRadioButtonItemViewModelLabel"},_.J(_.k,{cond:l,
then:function(){return _.J("div",null,l)}}),_.J(_.k,{cond:q,
then:function(){return _.J(_.Fe,{text:q})}}),_.J(_.k,{cond:u,
then:function(){return _.J("div",{class:"ytRadioButtonItemViewModelSubText"},u)}}),_.J(_.k,{cond:B,
then:function(){return _.J("div",{class:"ytRadioButtonItemViewModelSubText"},_.J(_.Fe,{text:B}))}})),D=function(){if(q()){var e;
return(e=q())==null?void 0:e.content}return l()},d=function(){if(B()){var e;
return(e=B())==null?void 0:e.content}return u()};
G={};return _.J("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.J(_.xZ,{name:p,checked:function(){return!(Z==null||!Z()||H().key!==(Z==null?void 0:Z()))},
onChange:function(e){Q==null||Q(e.target,H(),p==null?void 0:p())},
labelRenderable:function(){return t},
ariaLabel:function(){return d()?D()+", "+d():D()},
className:_.bb((G.ytRadioButtonItemViewModelSubTitle=function(){return!!H().subtext},G))}))},"Rh");_.VSL=_.y(function(G){var H=G.data;var Z=function(){var Q;return _.Vt((Q=H())==null?void 0:Q.rendererContext)};
G={};return _.J("content-list-item-view-model",{el:_.aX(_.$X(function(){return H().rendererContext})),
class:_.bb("ytContentListItemViewModelHost",(G.ytContentListItemViewModelTappable=Z,G)),role:function(){return Z()?"listitem":void 0},
tabindex:function(){return Z()?0:void 0}},_.J("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.J("div",{class:"ytContentListItemViewModelImageContainer"},_.J(_.k,{cond:function(){return H().image},
then:function(Q){return _.J(_.ib,{data:Q,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.J(_.SP,{data:function(){var Q;
return(Q=H())==null?void 0:Q.avatar}},{avatarViewModel:_.m9})),_.J("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.J("div",{class:_.bb("ytContentListItemViewModelTitle",function(){a:{switch(H().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var Q="ytContentListItemViewModelProminentTitle";
break a}Q=void 0}return Q})},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",{class:"ytContentListItemViewModelMetadata"},_.J(_.SP,{data:function(){return H().metadata}},{contentMetadataViewModel:function(Q){return _.J(_.dB,{data:Q.data,
layout:1})}})))),_.J("div",{class:"ytContentListItemViewModelActionButton"},_.J(_.SP,{data:function(){var Q;
return(Q=H())==null?void 0:Q.actionButton}},{buttonViewModel:_.kg,
toggleButtonViewModel:_.hf})))},"Sh");var $vt=_.y(function(G){var H=G.data,Z=function(){var p;return(p=H())==null?void 0:p.description},Q=function(){var p;
return(p=H())==null?void 0:p.title};
return _.J("ytfc-youth-basic-section-header-view-model",{class:_.bb("ytfcYouthBasicSectionHeaderViewModelHost",G.className)},_.J("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.J(_.SP,{data:function(){var p;return(p=H())==null?void 0:p.avatar}},{avatarViewModel:_.m9}),_.J(_.k,{cond:function(){var p;
return _.zk((p=H())==null?void 0:p.themedImage)},
then:function(p){return _.J(_.ib,{data:p,alt:function(){var l,q;return(q=(l=Q())==null?void 0:l.content)!=null?q:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.J("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.J(_.k,{cond:Q,
then:function(){return _.J(_.Fe,{text:Q,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.J("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.J(_.SP,{data:function(){var p;
return(p=H())==null?void 0:p.bottomBadge}},{badgeViewModel:function(p){return _.J("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.J(_.tz,{data:p.data}))}}),_.J(_.k,{cond:Z,
then:function(){return _.J(_.Fe,{text:Z,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Th");var Xvi=_.y(function(G){var H=G.data;return _.J("ytfc-youth-section-body-view-model",{class:_.bb("ytfcYouthSectionBodyViewModelHost",G.className)},_.J(_.SP,{data:function(){var Z;return(Z=H())==null?void 0:Z.topContent}},{avatarStackViewModel:function(Z){return _.J(_.Rr,{data:Z.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.J(_.Fe,{text:function(){var Z;
return(Z=H())==null?void 0:Z.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Uh");var cyD=_.y(function(G){var H=_.I(_.Ty(!1,void 0,"SrK51e")),Z=H.next().value,Q=H.next().value,p=function(){return G.data().inlineExpansionEntityKey},l=_.gu(Xxm,p),q=function(){if(G.isSelected!==void 0)return G.isSelected();
if(p()){var B;return(B=l())==null?void 0:B.expanded}return Z()};
H={};var u={};return _.J("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Hh(function(){G.isSelected!==void 0||p()||Q(!Z())})},_.J("div",{class:"ytInlineExpanderViewModelHeader"},_.J(_.SP,{data:function(){return G.data().headerContent}},{youthBasicSectionHeaderViewModel:$vt}),_.J("div",{class:_.bb("ytInlineExpanderViewModelButton",(H.ytInlineExpanderViewModelButtonExpanded=q,H))},_.J(_.tf,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:q(),accessibilityLabel:q()?_.Zg("SHOW_LESS",void 0,"Show Less"):_.Zg("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.J("div",{class:_.bb("ytInlineExpanderViewModelBody",(u.ytInlineExpanderViewModelBodyExpanded=q,u)),"aria-hidden":function(){return!q()}},_.J("div",{class:"ytInlineExpanderViewModelBodyContent"},_.J(_.SP,{data:function(){return G.data().bodyContent}},{youthSectionBodyViewModel:Xvi}))))},"Vh");var Tc6=new _.Gv("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.ffc=_.y(function(G){var H=function(){return G.data().background},Z=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},Q=function(){return G.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},p=_.tp().resolve(_.Jp(Tc6)),l={};
return _.J("yt-card-view-model",{el:_.aX(_.$X(function(){return G.data().rendererContext})),
class:_.bb("ytCardViewModelHost",G.className,(l.ytCardViewModelClickable=function(){return _.nG(G.data().rendererContext)},l))},_.J(_.eo,{contentId:function(){return G.data().contentId}},function(){var q={};
return _.J("div",{class:_.bb("ytCardViewModelCardViewModelInner",function(){var u;return gim(G.data().cardStyle,(u=G.isSelected)==null?void 0:u.call(G))},function(){if(G.isSelected===void 0){var u;
a:{switch((u=G.data().cardState)==null?void 0:u.selectionState){case "CARD_SELECTION_STATE_SELECTED":u="ytCardViewModelSelected";break a}u=void 0}return u}})},_.J(_.SP,{data:H},{cinematicContainerViewModel:function(u){return _.J(_.xrw,{data:u.data})}}),_.J("div",{class:"ytCardViewModelContentWrapper"},_.J(_.k,{cond:function(){return!Z()},
then:function(){var u={},B={};return _.J("div",{class:"ytCardViewModelTopContentContainer"},_.J("div",{class:_.bb("ytCardViewModelTopContent",(u.ytCardViewModelInnerPadding=function(){return!G.data().disableTopContentPadding&&G.data().topContent},u))},_.J(_.SP,{data:function(){return G.data().topContent}},{contentListItemViewModel:function(t){return _.J(_.VSL,{data:t.data})},
linearLayoutViewModel:_.YZ})),_.J("div",{class:_.bb("ytCardViewModelInlineTrailingAction",(B.ytCardViewModelInlineCenterTrailingAction=Q,B.ytCardViewModelInlineTrailingActionMargin=function(){return G.data().trailingAction},B))},_.J(_.SP,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(t){return _.J(_.kg,{data:t.data})}})))}}),_.J("div",{class:_.bb((q.ytCardViewModelInnerPadding=function(){return!G.data().disableBodyContentPadding&&G.data().bodyContent},q))},_.J(_.SP,{data:function(){return G.data().bodyContent}},
Object.assign({},{channelAttributionViewModel:_.vJj,
contentListItemViewModel:_.VSL,descriptionPreviewViewModel:_.f5,inlineExpanderViewModel:function(u){return _.J(cyD,{data:u.data,isSelected:G.isSelected})},
linearLayoutViewModel:_.YZ,listItemViewModel:_.L5},p&&{contentSectionViewModel:p})))),_.J(_.k,{cond:function(){return Z()},
then:function(){return _.J("div",{class:"ytCardViewModelOverlayTrailingAction"},_.J(_.SP,{data:function(){return G.data().trailingAction}},{buttonViewModel:function(u){return _.J(_.kg,{data:u.data})}}))}}))}))},"Wh");var vaA=_.y(function(G){var H=G.data,Z=G.onSelected,Q=G.selectedKey,p=G.groupName;G=G.className;var l=_.I(_.Ty(!1,void 0,"mDtSad")),q=l.next().value,u=l.next().value,B=function(){if(Q!==void 0){var t=Q();return!(!t||H().key!==t)}return q()};
l=_.Hh(function(t){Z?Z(t.currentTarget,H(),p==null?void 0:p()):u(!q())});
return _.J("yt-selectable-item-view-model",{class:_.bb("ytSelectableItemViewModelHost",G,"ytSelectableItemViewModelContainer"),"on:click":l,"prop:checked":B},_.J(_.SP,{data:function(){return H().content}},{cardViewModel:function(t){return _.J(_.ffc,{data:t.data,
isSelected:B})}}))},"Xh");_.Wms=_.y(function(G){var H=G.data;var Z=G.onSelected;var Q=G.selectedKey;var p=G.groupName;var l=function(){return(p==null?void 0:p())||H().key};
return _.J("yt-radio-button-group-view-model",{class:_.bb("ytRadioButtonGroupViewModelHost",G.className)},_.J("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.J(_.SP,{data:function(){return H().radioButtons}},{radioButtonItemViewModel:function(q){return _.J(nah,{data:q.data,
onSelected:Z,selectedKey:Q,groupName:l})},
selectableItemViewModel:function(q){return _.J(vaA,{data:q.data,onSelected:Z,selectedKey:Q,groupName:l})}})))},"Yh");var z8A=_.y(function(G){_.mR(function(){if(G.controlledMode()&&G.data().defaultSelected)_.me(Error("ak"));else{var l;!G.controlledMode()&&((l=G.selected)==null?0:l.call(G))&&_.me(Error("bk"))}});
var H=_.I(_.QF(function(){if(!G.controlledMode())return G.data().defaultSelected})),Z=H.next().value,Q=H.next().value,p=function(){if(!G.controlledMode())return Z();
var l;return(l=G.selected)==null?void 0:l.call(G)};
return _.J("yt-checkbox-item-view-model",{class:_.bb("ytCheckboxItemViewModelHost",G.className)},_.J(_.L5,{data:function(){var l=G.data(),q=p();return{title:l.text,subtitle:l.subtext,superlabel:l.superlabel,isSelected:!!q,isDisabled:l.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!G.controlledMode()&&Q(!Z());var l,q;(q=G.onTap)==null||q.call(G,!!p(),G.data(),(l=G.groupName)==null?void 0:l.call(G))},
isCompact:G.isCompact}))},"Zh");var Kmt=_.y(function(G){var H=G.data;var Z=G.controlledMode;var Q=G.selectedKeys;var p=G.onItemTap;var l=G.groupName;var q=function(){return(l==null?void 0:l())||H().key};
_.mR(function(){Z()&&H().defaultSelectedKeys?_.me(Error("ck")):!Z()&&(Q==null?0:Q())&&_.me(Error("dk"))});
G=_.I(_.QF(function(){if(!Z())return H().defaultSelectedKeys}));
var u=G.next().value,B=G.next().value,t=function(D,d,e){D=[];!Z()&&d.key&&(D=IZ8(d.key,u()||[]),B(D));p==null||p(d,D,e)};
return _.J("yt-checkbox-group-view-model",{class:_.bb("ytCheckboxGroupViewModelHost")},_.J("fieldset",{class:_.bb("ytCheckboxGroupViewModelFieldset")},_.J(_.SP,{data:function(){return H().checkboxes}},{checkboxItemViewModel:function(D){var d=D.data;
return _.J(z8A,{data:d,controlledMode:!0,selected:function(){var e=Z()?(Q==null?void 0:Q())||[]:u()||[],n=d().key;return n?e.includes(n):!1},
onTap:t,groupName:q})}})))},"$h");var $$=_.y(function(G){var H=_.gu(qWc,_.yy(function(){var u;return(u=G.data())==null?void 0:u.noteFeedEntityKey},"")),Z=_.gu(vPh,_.yy(function(){var u;
return(u=G.data())==null?void 0:u.userRatingEntityKey},"")),Q=_.V("enable_user_rating_web"),p=function(){var u,B,t;
return((u=H())==null?0:u.contributorNote)?(B=H())==null?void 0:B.contributorNote:(t=G.data())==null?void 0:t.existingNote},l=function(){var u,B;
return!!Z()&&!!SWL((u=Z())==null?void 0:u.helpfulnessValue,(B=G.data())==null?void 0:B.noteData)};
if(Q){var q={};return _.J("yt-note-view-model",{class:_.bb("ytNoteViewModelHostUserRating",(q.ytNoteViewModelHostUserRatingPublishedNote=function(){var u,B,t,D;return((u=G.data())==null?void 0:(B=u.noteData)==null?void 0:B.isPublished)&&!((t=G.data())==null?0:(D=t.noteData)==null?0:D.isUserRatingForm)},q))},_.J("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.J("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.J(_.k,{cond:function(){var u,B;
return(u=G.data())==null?void 0:(B=u.noteData)==null?void 0:B.isPinned},
then:function(){return _.J(_.ll,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.J(_.k,{cond:function(){var u,B;return(u=G.data())==null?void 0:(B=u.noteData)==null?void 0:B.isPublished},
then:function(){return _.J(_.ll,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.J(_.SP,{data:function(){var u;
return(u=G.data())==null?void 0:u.metadata}},{contentMetadataViewModel:_.dB}),_.J("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var u,B;
return(B=_.X((u=G.data())==null?void 0:u.metadata,_.trt))==null?void 0:B.delimiter}),_.J(_.Fe,{text:function(){var u;
return(u=p())==null?void 0:u.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.J(_.k,{cond:function(){var u,B;return!((u=G.data())==null?0:(B=u.noteData)==null?0:B.isUserRatingForm)},
then:function(){return _.J(_.SP,{data:function(){var u,B,t,D,d,e,n,c=!!((u=G.data())==null?0:(B=u.noteData)==null?0:B.isPinned);u=l();B=(t=G.data())==null?void 0:t.noteData;t=(D=H())==null?void 0:(d=D.contributorNote)==null?void 0:d.deleteAction;D=(e=G.data())==null?void 0:e.overflowButtonNoteWithRatingOnTapOverride;e=(n=G.data())==null?void 0:n.overflowButton;return c?urh(B,t):u?{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:D}}:e}},{buttonViewModel:function(u){return _.J(_.kg,{data:u.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.J("div",{class:"ytNoteViewModelNoteContent"},_.J(_.Fe,{text:function(){var u;
return(u=p())==null?void 0:u.text}})),_.J(_.k,{cond:function(){var u,B,t,D;
return!((u=G.data())==null?0:(B=u.noteData)==null?0:B.isPinned)&&!((t=G.data())==null?0:(D=t.noteData)==null?0:D.isUserRatingForm)},
then:function(){return _.J(_.k,{cond:l,then:function(){return _.J("div",{class:"ytNoteViewModelUserRatingContainer"},_.J(_.Fe,{text:function(){var u,B;return SWL((u=Z())==null?void 0:u.helpfulnessValue,(B=G.data())==null?void 0:B.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.J(_.SP,{data:function(){var u;return(u=G.data())==null?void 0:u.userRatingButton}},{buttonViewModel:function(u){return _.J(_.kg,{data:u.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.J(_.k,{cond:function(){var u,B,t,D;
return!((u=G.data())==null?0:(B=u.noteData)==null?0:B.ignoreDivider)&&!((t=G.data())==null?0:(D=t.noteData)==null?0:D.isUserRatingForm)},
then:function(){return _.J("div",{class:"ytNoteViewModelDivider"},_.J(_.SP,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(u){return _.J(_.FZT,{data:u.data})}}))}}))}return _.J("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.J("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.J("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.J(_.k,{cond:function(){var u,B;return(u=G.data())==null?void 0:(B=u.noteData)==null?void 0:B.isPinned},
then:function(){return _.J(_.ll,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.J(_.k,{cond:function(){var u,B;return(u=G.data())==null?void 0:(B=u.noteData)==null?void 0:B.isPublished},
then:function(){return _.J(_.ll,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.J(_.k,{cond:function(){return Q},
then:function(){return _.J(_.SP,{data:function(){var u;return(u=G.data())==null?void 0:u.metadata}},{contentMetadataViewModel:function(u){return _.J(_.dB,{data:u.data})}})}}),_.J(_.Fe,{text:function(){var u,B;
return(u=G.data())==null?void 0:(B=u.noteData)==null?void 0:B.headerText}}),_.J("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.J(_.Fe,{text:function(){var u,B;
return(u=G.data())==null?void 0:(B=u.noteData)==null?void 0:B.delimiter}})),_.J(_.Fe,{text:function(){var u,B;
return(u=H())==null?void 0:(B=u.contributorNote)==null?void 0:B.publishedTimeText}})),_.J(_.SP,{data:function(){var u,B,t;
return urh((u=G.data())==null?void 0:u.noteData,(B=H())==null?void 0:(t=B.contributorNote)==null?void 0:t.deleteAction)}},{buttonViewModel:function(u){return _.J(_.kg,{data:u.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.J("div",{class:"ytNoteViewModelNoteContent"},_.J(_.Fe,{text:function(){var u,B;
return(u=H())==null?void 0:(B=u.contributorNote)==null?void 0:B.text}})))},"ai");
$$.idomCompat=!0;_.RX(_.y(function(G){var H=_.yy(function(){var w;return(w=G.data())==null?void 0:w.flowStateEntityKey},""),Z=_.gu(_.CA,H),Q=_.gu(qWc,_.yy(function(){var w;
return(w=G.data())==null?void 0:w.noteFeedEntityKey},"")),p=_.I(_.QF(function(){var w;
return(w=_.X(G.data().helpfulnessValue,_.UB))==null?void 0:w.defaultSelectedKey})),l=p.next().value,q=p.next().value;
p=_.I(_.QF(function(){var w,x,U;return(U=_.X((w=_.X(G.data().helpfulnessValue,_.UB))==null?void 0:(x=w.radioButtons)==null?void 0:x.find(function(R){var L;return((L=_.X(R,okA))==null?void 0:L.key)===l()}),okA))==null?void 0:U.value}));
var u=p.next().value,B=p.next().value;p=_.I(_.QF(function(){var w;return(w=_.X(G.data().helpfulReasons,yZL))==null?void 0:w.defaultSelectedKeys}));
var t=p.next().value,D=p.next().value;p=_.I(_.QF(function(){var w;return(w=_.X(G.data().notHelpfulReasons,yZL))==null?void 0:w.defaultSelectedKeys}));
var d=p.next().value,e=p.next().value,n=function(w,x){q(x.key);B(x.value);D([]);e([])},c=function(){var w,x;
return((w=u())==null?void 0:w.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((x=u())==null?void 0:x.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},W=function(){var w,x;
return((w=u())==null?void 0:w.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((x=u())==null?void 0:x.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},M=function(w){Bgk(w.key,t,D)},r=function(w){Bgk(w.key,d,e)};
_.mR(function(){var w,x,U;TNj((w=G.data())==null?void 0:(x=w.userRatingFormSchema)==null?void 0:x.id,{isValid:function(){return!!l()},
formData:function(){var R=u(),L=tnk(t(),_.X(G.data().helpfulReasons,yZL)),H3=tnk(d(),_.X(G.data().notHelpfulReasons,yZL));R={helpfulnessValue:R==null?void 0:R.noteHelpfulnessValue};if(L){R.helpfulReasons=[];L=_.I(L);for(var qX=L.next();!qX.done;qX=L.next()){qX=qX.value;var B3=void 0;if((B3=qX)==null?0:B3.noteHelpfulReason)B3=void 0,R.helpfulReasons.push((B3=qX)==null?void 0:B3.noteHelpfulReason)}}if(H3)for(R.notHelpfulReasons=[],H3=_.I(H3),L=H3.next();!L.done;L=H3.next())if(L=L.value,qX=void 0,(qX=
L)==null?0:qX.noteNotHelpfulReason)qX=void 0,R.notHelpfulReasons.push((qX=L)==null?void 0:qX.noteNotHelpfulReason);return{userRatingFormData:R}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(U=_.X(Z(),zvA))==null?void 0:U.submitFormParams},onSubmitResult:function(){var R,L=(R=_.X(Z(),zvA))==null?void 0:R.userRatingEntityKey,H3;R={key:L,helpfulnessValue:(H3=u())==null?void 0:H3.noteHelpfulnessValue};L&&_.aK(_.uP("contextNoteUserRatingEntityPayload",L,R));var qX;L=(qX=G.data())==null?void 0:qX.viewNoteFlowStepId;var B3;if((B3=Q())==null||!B3.contributorNote){var fW;L=(fW=G.data())==null?void 0:fW.zeroStateFlowStepId}(qX=
Object.assign({},Z()))&&L&&(qX.currentStepId=L,qX.stepIdStack=[L],_.aK(_.uP("flowStateEntity",H(),qX)));var e2;(qX=(e2=G.data())==null?void 0:e2.ratingSubmittedSnackbarCommand)&&_.zt(qX)},
disableDuringSubmission:!0})});
return _.J("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.J(_.SP,{data:function(){var w=_.X(Z(),zvA);if(w){var x;var U={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:w==null?void 0:(x=w.note)==null?void 0:x.headerText}]}],delimiter:"\u2022"}},existingNote:w.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else U=void 0;return U}},{noteViewModel:function(w){return _.J("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.J($$,{data:w.data}))}}),_.J(_.SP,{data:function(){var w;
return(w=G.data())==null?void 0:w.helpfulnessValue}},{radioButtonGroupViewModel:function(w){return _.J("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.J(_.Wms,{data:w.data,
onSelected:n,selectedKey:l}))}}),_.J(_.k,{cond:c,
then:function(){return _.J("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.J("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.J(_.Fe,{text:function(){var w;return(w=G.data())==null?void 0:w.helpfulReasonQuestion}})),_.J(_.SP,{data:function(){var w;
return(w=G.data())==null?void 0:w.helpfulReasons}},{checkboxGroupViewModel:function(w){return _.J(Kmt,{data:w.data,
onItemTap:M,selectedKeys:t,controlledMode:!0})}}))}}),_.J(_.k,{cond:W,
then:function(){return _.J("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.J("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.J(_.Fe,{text:function(){var w;return(w=G.data())==null?void 0:w.notHelpfulReasonQuestion}})),_.J(_.SP,{data:function(){var w;
return(w=G.data())==null?void 0:w.notHelpfulReasons}},{checkboxGroupViewModel:function(w){return _.J(Kmt,{data:w.data,
onItemTap:r,selectedKeys:d,controlledMode:!0})}}))}}),_.J(_.k,{cond:function(){return!c()&&!W()},
then:function(){return _.J(_.SP,{data:function(){var w;return(w=G.data())==null?void 0:w.helpfulNoteFeatures}},{alertBannerViewModel:function(w){return _.J("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.J(_.pHG,{data:w.data}))}})}}))},"bi"),"yt-note-user-rating-view-model",{props:{data:_.b3}});_.RX($$,"yt-note-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=_.gu(qWc,_.yy(function(){var Z;return(Z=G.data())==null?void 0:Z.noteFeedEntityKey},""));
return _.J("yt-notes-wrapper-view-model",{class:_.bb("ytNotesWrapperViewModelHost")},_.J(_.k,{cond:function(){var Z,Q,p;return!((Z=G.data())==null||!Z.existingNotes)||!((Q=G.data())==null||!Q.currentNote)&&!((p=H())==null||!p.contributorNote)},
then:function(){return _.J(_.kI,null,_.J(_.SP,{data:function(){var Z,Q,p,l;return((Q=_.X((Z=G.data())==null?void 0:Z.currentNote,Kja))==null?0:(p=Q.noteData)==null?0:p.isPublished)?(l=G.data())==null?void 0:l.currentNote:void 0}},{noteViewModel:function(Z){return _.J($$,{data:Z.data})}}),_.J(_.SP,{data:function(){var Z;
return(Z=G.data())==null?void 0:Z.existingNotes}},{noteViewModel:function(Z){var Q=Z.data;
return _.J(_.k,{cond:function(){var p,l;return(p=Q())==null?void 0:(l=p.noteData)==null?void 0:l.isPublished},
then:function(){return _.J($$,{data:Q})}})}}),_.J(_.SP,{data:function(){var Z,Q,p,l,q;
return((Q=_.X((Z=G.data())==null?void 0:Z.currentNote,Kja))==null?0:(p=Q.noteData)==null?0:p.isPublished)||(l=H())==null||!l.contributorNote?void 0:(q=G.data())==null?void 0:q.currentNote}},{noteViewModel:function(Z){return _.J($$,{data:Z.data})}}),_.J(_.SP,{data:function(){var Z;
return(Z=G.data())==null?void 0:Z.existingNotes}},{noteViewModel:function(Z){var Q=Z.data;
return _.J(_.k,{cond:function(){var p,l;return!((p=Q())==null?0:(l=p.noteData)==null?0:l.isPublished)},
then:function(){return _.J($$,{data:Q})}})}}))},
else:function(){return _.J(_.SP,{data:function(){var Z;return(Z=G.data())==null?void 0:Z.zeroStateData}},{contributorZeroStateViewModel:Dv6})}}))},"ci"),"yt-notes-wrapper-view-model",{props:{data:_.b3}});var XX=_.y(function(G){var H=_.oK(G,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),Z=H.label,Q=H.text,p=H.placeholder,l=H.hint;G=H.rows;var q=H.overflowStyle,u=H.outline,B=H.disabled,t=H.disableNewLines,D=H.characterLimit,d=H.validation,e=H.onInput,n=_.IA("textarea");H=_.I(_.QF(function(){return Q()}));
var c=H.next().value,W=H.next().value;H=_.I(_.Ty(!1,void 0,"u9PDq"));var M=H.next().value,r=H.next().value,w=function(){r(!0)},x=function(){r(!1)};
_.mR(function(){var ie=n.value,W3=q(),DT=c();W3==="expand-vertically"&&DT&&kE6(ie);n.value.addEventListener("focusin",w);n.value.addEventListener("focusout",x)});
_.oM(function(){n.value.removeEventListener("focusin",w);n.value.removeEventListener("focusout",x)});
var U=function(){var ie;return(ie=d())==null?void 0:ie.validate(c())},R=function(){return D()&&!U()&&c().length>D().maxChars},L=function(){return!!U()||R()};
H=_.Hh(function(ie){if(!ie.currentTarget)return!1;ie=ie.currentTarget;W(ie.value);q()==="expand-vertically"&&kE6(ie);e==null||e(ie.value);return!0});
var H3=_.Hh(function(ie){t()&&ie.key==="Enter"&&ie.preventDefault();return!1}),qX=_.Hh(function(){n.value.focus()}),B3=function(){return p()||Z()},fW={},e2={},$R={};
return _.J("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.J("div",{class:_.bb("ytStandardsTextareaShapeTextareaContainer",(fW.ytStandardsTextareaShapeTextareaContainerOutline=u,fW.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=B,fW.ytStandardsTextareaShapeTextareaContainerOutlineError=L,fW)),"on:click":qX},_.J("label",{class:_.bb("ytStandardsTextareaShapeLabel",(e2.ytStandardsTextareaShapeLabelFocused=M,e2.ytStandardsTextareaShapeLabelDisabled=B,e2.ytStandardsTextareaShapeLabelError=
function(){return L()&&!B()},e2.ytStandardsTextareaShapeLabelHidden=function(){return!M()&&!c()&&!!B3()},e2))},Z),_.J("div",{class:_.bb("ytStandardsTextareaShapePlaceholder",($R.ytStandardsTextareaShapePlaceholderVisible=function(){return!M()&&!c()},$R)),
"aria-hidden":"true"},B3),_.J("textarea",{el:n,class:"ytStandardsTextareaShapeTextarea",rows:G,disabled:B,placeholder:B3,"on:input":H,"on:keydown":H3},c)),_.J(_.k,{cond:function(){return l()&&!L()},
then:function(){var ie={};return _.J("div",{class:_.bb("ytStandardsTextareaShapeHint",(ie.ytStandardsTextareaShapeHintDisabled=B,ie))},_.J("div",{class:"ytStandardsTextareaShapeHintHintMessage"},l))}}),_.J(_.k,{cond:U,
then:function(){return _.J(MSi,{disabled:B},_.J("div",{class:"ytStandardsTextareaShapeErrorMessage"},U))}}),_.J(_.k,{cond:D,
then:function(ie){return _.J(_.k,{cond:R,then:function(){return _.J(MSi,{disabled:B},_.J("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return ie().errorMessage}),_.J("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return c().length+"/"+ie().maxChars}))}})}}))},"di");
XX.idomCompat={callbacks:{onInput:!0}};var MSi=_.y(function(G){var H={};return _.J("div",{class:_.bb("ytStandardsTextareaShapeError",(H.ytStandardsTextareaShapeErrorDisabled=G.disabled,H)),role:"alert"},_.J(_.ll,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),G.children)},"ei");_.jqD=_.y(function(G){var H=G.data;return _.J("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.J(XX,{text:G.text,label:function(){var Z;return(Z=H().contentProperties)==null?void 0:Z.labelText},
placeholder:function(){var Z;return(Z=H().contentProperties)==null?void 0:Z.placeholderText},
hint:function(){var Z;return(Z=H().contentProperties)==null?void 0:Z.hintText},
outline:function(){var Z;return!((Z=H().displayProperties)==null?0:Z.hideBorder)},
overflowStyle:function(){var Z;return((Z=H().displayProperties)==null?0:Z.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:G.disabled,disableNewLines:function(){var Z;return(Z=H().displayProperties)==null?void 0:Z.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var Z;return(Z=H().displayProperties)==null?void 0:Z.rows}}))},"fi");_.PXq=_.y(function(G){var H=G.data;return _.J("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.J(XX,{text:G.text,label:function(){var Z;return(Z=H().contentProperties)==null?void 0:Z.labelText},
placeholder:function(){var Z;return(Z=H().contentProperties)==null?void 0:Z.placeholderText},
hint:function(){var Z;return(Z=H().contentProperties)==null?void 0:Z.hintText},
outline:function(){var Z;return!((Z=H().displayProperties)==null?0:Z.hideBorder)},
overflowStyle:function(){var Z;return((Z=H().displayProperties)==null?0:Z.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var Z;return(Z=H().displayProperties)==null?void 0:Z.disableNewLines},
onInput:G.onInput,characterLimit:G.characterLimit,validation:G.validation,rows:function(){var Z;return(Z=H().displayProperties)==null?void 0:Z.rows}}))},"gi");var ryj=_.y(function(G){var H=_.I(_.QF(function(){var B3,fW;return((B3=G.data().structuredContextNoteFormSchema)==null?0:(fW=B3.initialValues)==null?0:fW.noteBody)?G.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),Z=H.next().value,Q=H.next().value;
H=_.I(_.QF(function(){G.data();return!1}));
var p=H.next().value,l=H.next().value;H=_.I(_.QF(function(){G.data();return!1}));
var q=H.next().value,u=H.next().value;H=_.I(_.QF(function(){var B3,fW;return((B3=G.data().structuredContextNoteFormSchema)==null?0:(fW=B3.initialValues)==null?0:fW.timestamp)?G.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var B=H.next().value,t=H.next().value;H=_.I(_.QF(function(){G.data();return!1}));
var D=H.next().value,d=H.next().value;H=_.I(_.QF(function(){var B3,fW;return((B3=G.data().structuredContextNoteFormSchema)==null?0:(fW=B3.initialValues)==null?0:fW.sources)?[G.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var e=H.next().value,n=H.next().value;H=_.I(_.QF(function(){G.data();return!1}));
var c=H.next().value,W=H.next().value;H=_.I(_.QF(function(){return!1}));
var M=H.next().value,r=H.next().value;_.mR(function(){var B3;_.fYL((B3=G.data().structuredContextNoteFormSchema)==null?void 0:B3.id,{isSubmitting:M,onSubmit:function(){r(!0);var fW=Tg6(Z(),B(),e(),G.data()),e2=_.tp().resolve(_.Dk);fW&&e2&&e2.resolveCommand(fW,{commandController:{onSuccess:function(){r(!1)}}})},
isValid:function(){return p()&&!q()&&!D()&&!c()}})});
var w=function(B3){if(B3!==void 0&&(Q(B3),!p()&&B3.length>0&&l(!0),p())){var fW=eMk(G.data());if(fW){var e2=fW.minLength;fW=fW.maxLength;e2&&B3.length<e2?u(!0):fW&&B3.length>fW?u(!0):u(!1)}}},x=function(B3){if(B3!==void 0){t(B3);
if(B3.length>0){var fW,e2,$R,ie,W3=Vna((fW=G.data())==null?void 0:(e2=fW.structuredContextNoteFormSchema)==null?void 0:($R=e2.fieldSchemas)==null?void 0:(ie=$R.timestamp)==null?void 0:ie.validationSchema);if(W3&&(fW=W3.regex)&&!(new RegExp(fW)).test(B3)){d(!0);return}}d(!1)}},U=function(B3){if(B3!==void 0){var fW=B3.split(/[ \n]/).map(function(e2){return e2.trim()});
n(fW);if(B3.length>0)for(B3=_.I(fW),fW=B3.next();!fW.done;fW=B3.next())if(!ccD(fW.value)){W(!0);return}W(!1)}},R=function(){return{validate:function(B3){if(p()){var fW=eMk(G.data());
if(fW){var e2=fW.minLength;fW=fW.translations;if(e2&&B3.length<e2)return fW==null?void 0:fW.minLengthErrorMessage}}}}},L=function(){var B3=eMk(G.data()),fW=B3==null?void 0:B3.maxLength,e2;
B3=B3==null?void 0:(e2=B3.translations)==null?void 0:e2.maxLengthErrorMessage;if(fW&&B3)return{maxChars:fW,errorMessage:B3}},H3=function(){return{validate:function(B3){if(B3){var fW,e2,$R,ie,W3=Vna((fW=G.data())==null?void 0:(e2=fW.structuredContextNoteFormSchema)==null?void 0:($R=e2.fieldSchemas)==null?void 0:(ie=$R.timestamp)==null?void 0:ie.validationSchema);
if(W3&&(fW=W3.regex,W3=W3.translations,fW&&!(new RegExp(fW)).test(B3)))return W3==null?void 0:W3.regexErrorMessage}}}},qX=function(){return{validate:function(B3){if(B3){var fW,e2,$R,ie,W3=XE8((fW=G.data())==null?void 0:(e2=fW.structuredContextNoteFormSchema)==null?void 0:($R=e2.fieldSchemas)==null?void 0:(ie=$R.sources)==null?void 0:ie.validationSchema);
if(W3&&(fW=W3.translations,fW==null?0:fW.selectedErrorMessage))for(B3=B3.split(/[ \n]/).map(function(DT){return DT.trim()}),B3=_.I(B3),e2=B3.next();!e2.done;e2=B3.next())if(!ccD(e2.value))return B3=void 0,(B3=fW)==null?void 0:B3.selectedErrorMessage}}}};
return _.J("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.J("div",{class:"ytStructuredContextNoteViewModelTextField"},_.J(_.SP,{data:function(){var B3;return(B3=G.data())==null?void 0:B3.noteContents}},{textFormFieldViewModel:function(B3){return _.J(_.PXq,{data:B3.data,
onInput:w,validation:R,characterLimit:L})},
textFieldViewModel:function(B3){return _.J(_.jqD,{data:B3.data,onInput:w,validation:R,characterLimit:L})}})),_.J("div",{class:"ytStructuredContextNoteViewModelTextField"},_.J(_.SP,{data:function(){var B3;
return(B3=G.data())==null?void 0:B3.noteTimestamp}},{textFormFieldViewModel:function(B3){return _.J(_.PXq,{data:B3.data,
onInput:x,validation:H3})},
textFieldViewModel:function(B3){return _.J(_.jqD,{data:B3.data,onInput:x,validation:H3})}})),_.J("div",{class:"ytStructuredContextNoteViewModelTextField"},_.J(_.SP,{data:function(){var B3;
return(B3=G.data())==null?void 0:B3.noteSources}},{textFormFieldViewModel:function(B3){return _.J(_.PXq,{data:B3.data,
onInput:U,validation:qX})},
textFieldViewModel:function(B3){return _.J(_.jqD,{data:B3.data,onInput:U,validation:qX})}})))},"hi");
ryj.idomCompat=!0;_.RX(ryj,"yt-structured-context-note-view-model",{props:{data:_.b3}});var wvL=_.y(function(G){var H=_.I(_.QF(function(){var l;if((l=G.controlled)==null?0:l.call(G))return[];var q;return(((q=G.data())==null?void 0:q.chips)||[]).map(function(u){u=_.X(u,_.sg);if(u==null?0:u.selected)return fZ8(u.chipValue)}).filter(function(u){return u!==void 0})})),Z=H.next().value,Q=H.next().value,p=function(l){var q=fZ8(l.chipValue);
if(q!==void 0){var u;if((u=G.controlled)==null?0:u.call(G))return void G.controlled().onTap(q);l=Z().includes(q)?[].concat(_.OP(Z().filter(function(t){return t!==q}))):[].concat(_.OP(Z()),[q]);
Q(l);var B;if((B=G.uncontrolled)==null?0:B.call(G))G.uncontrolled().onUpdate(l)}};
return _.J("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.J(_.Cl,{each:function(){return G.data().chips||[]}},function(l){return _.J("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.J(_.T1d,{data:function(){return _.X(l,_.sg)},
selected:function(){var q;if(q=_.X(l,_.sg)){var u=fZ8(q.chipValue);if(u!==void 0){var B;q=((B=G.controlled)==null?0:B.call(G))?G.controlled().selectedValues.includes(u):Z().includes(u)}else q=void 0}else q=!1;return q},
callback:p}))}))},"ii");var h8i=_.y(function(G){var H=G.data;var Z=function(){var u;return((u=H())==null?void 0:u.flowStateKey)||""},Q=_.gu(_.CA,Z),p=function(){var u;
return(u=_.X(Q(),Muj))==null?void 0:u.chips},l=function(u){if(u!==void 0){var B=p()||[];
B=B.find(function(t){return t===u})?B.filter(function(t){return t!==u}):[].concat(_.OP(B),[u]);
B=Object.assign({},Q(),{feedbackFormFlowState:Object.assign({},_.X(Q(),Muj),{chips:B})});_.aK(_.uP("flowStateEntity",Z(),B))}},q=function(){var u;
return _.X((u=H())==null?void 0:u.inputBox,jO6)};
G=_.nO(function(u){var B=q();B=!(B==null?0:B.maxChars)||u.length<=B.maxChars;u=Object.assign({},Q(),{feedbackFormFlowState:Object.assign({},_.X(Q(),Muj),{detail:u}),abuseReportFlowState:Object.assign({},_.X(Q(),mt),{navigationEnabled:B})});_.aK(_.uP("flowStateEntity",Z(),u))},150);
return _.J("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.J("div",{class:"ytFeedbackFormViewModelChips"},_.J(_.SP,{data:function(){var u;return(u=H())==null?void 0:u.chipSelection}},{chipSelectionFormFieldViewModel:function(u){return _.J(wvL,{data:u.data,
controlled:function(){return{selectedValues:p()||[],onTap:l}}})}})),_.J("div",{class:"ytFeedbackFormViewModelInputBox"},_.J(XX,{text:function(){var u;
return(u=_.X(Q(),Muj))==null?void 0:u.detail},
placeholder:function(){var u;return((u=q())==null?void 0:u.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var u=q();if(u&&u.maxChars)return{maxChars:u.maxChars,errorMessage:u.maxCharsExceededErrorMessage||""}},
onInput:G})),_.J("div",{class:"ytFeedbackFormViewModelFooterText"},_.J(_.Fe,{text:function(){return H().footerText}})))},"ji");
h8i.idomCompat=!0;_.RX(h8i,"yt-feedback-form-view-model",{props:{data:_.b3}});var CXL=_.y(function(G){var H=G.data;var Z=_.gu(ckh,function(){return H().flowStateKey||""}),Q=function(){var p;
_.zt((p=_.X(Z(),mt))==null?void 0:p.navigationCommand)};
return _.J("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.J("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.J(_.SP,{data:function(){return H().cancelButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:Q})}}),_.J(_.SP,{data:function(){var p;
if(H().navButton){var l=Object;var q=l.assign,u=_.X(H().navButton,_.HN),B=((p=_.X(Z(),mt))==null?0:p.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",t,D;p=_.X((t=_.X(Z(),mt))==null?void 0:t.navigationCommand,_.cT);t=(D=_.X(p,_.Hx))==null?void 0:D.url;l={buttonViewModel:q.call(l,{},u,{state:B,iconName:t?"OPEN_IN_NEW":""})}}else l=void 0;return l}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:Q})}})))},"ki");
CXL.idomCompat=!0;_.RX(CXL,"yt-report-form-bottom-bar-view-model",{props:{data:_.b3}});var iNo=_.y(function(G){var H=G.nextStep;return _.J("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.J("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.J(_.ll,{icon:function(){return H().iconName||""}})),_.J("div",null,_.J(_.Fe,{text:function(){return H().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"li"),ONc=_.y(function(G){var H=G.data;
var Z,Q=(Z=_.tp().resolve(_.Jp(_.rr)))==null?void 0:Z(),p=_.gu(_.CA,function(){return H().flowStateKey||""});
return _.J("yt-report-form-confirmation-page-view-model",{class:function(){var l;return((l=_.X(p(),mt))==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.J("div",{class:function(){var l;
return((l=_.X(p(),mt))==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.J(_.ib,{data:function(){return Q&&H().imageDark?H().imageDark:H().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.J("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.J("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return H().confirmationHeader}),_.J("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.J(_.Fe,{text:function(){return H().confirmationText}})),_.J("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.J(_.Fe,{text:function(){return H().lawEnforcementText}})),
_.J("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return H().whatToExpectHeader}),_.J(_.k,{cond:function(){return H().nextSteps},
then:function(l){return _.J("div",null,_.J(_.Cl,{each:l},function(q){return _.J(iNo,{nextStep:q})}))}}),_.J(_.k,{cond:function(){return H().legalReportText},
then:function(l){return _.J("div",null,_.J(_.Fe,{text:l,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"mi");
ONc.idomCompat=!0;_.RX(ONc,"yt-report-form-confirmation-page-view-model",{props:{data:_.b3}});var afm=_.y(function(G){var H=G.data;var Z=function(){var l;return((l=_.X(H().inputBox,jO6))==null?void 0:l.maxChars)||500},Q=function(){return H().flowStateKey||""},p=_.gu(_.CA,Q);
G=_.nO(function(l){l=Object.assign({},p(),{flowFormState:{isValid:l.length<=Z()},abuseReportFlowState:{userComments:l,navigationEnabled:!(l.length>Z()),isReportFormDirty:!0}});_.OI().dispatch(_.eO("flowStateEntity",Q(),l))},150);
_.mR(function(){var l=Object.assign({},p(),{flowFormState:{isValid:!0}});_.OI().dispatch(_.eO("flowStateEntity",Q(),l))});
return _.J("yt-report-form-details-page-view-model",{class:function(){var l;return((l=_.X(p(),mt))==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.J("h1",{class:function(){var l;
return((l=_.X(p(),mt))==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return H().detailsPageHeader}),_.J("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.J(_.Fe,{text:function(){return H().bodyText}})),_.J("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.J(XX,{label:function(){var l;
return((l=_.X(H().inputBox,jO6))==null?void 0:l.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var l;return{errorMessage:((l=_.X(H().inputBox,jO6))==null?void 0:l.maxCharsExceededErrorMessage)||"",maxChars:Z()}},
onInput:G})))},"ni");
afm.idomCompat=!0;_.RX(afm,"yt-report-form-details-page-view-model",{props:{data:_.b3}});var yyo=_.y(function(G){var H=G.data;var Z=function(){return H().flowStateKey||""},Q=_.gu(_.CA,Z),p=function(){return _.X(Q(),mt)};
return _.J("yt-report-form-reason-select-page-view-model",{class:function(){var l;return((l=p())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.J("h1",{class:function(){var l;
return((l=p())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return H().pageHeader}),_.J("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.J(_.Fe,{text:function(){return H().bodyText}})),_.J("div",{class:function(){var l;
return((l=p())==null?void 0:l.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.J(_.Wms,{data:function(){return _.X(H().radioButtonGroup,_.UB)},
onSelected:function(l,q){l=Object.assign({},Q(),{abuseReportFlowState:Object.assign({},p(),{reasonKey:q.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:q.command})});_.aK(_.uP("flowStateEntity",Z(),l))},
selectedKey:function(){var l;return(l=p())==null?void 0:l.reasonKey},
groupName:"report-form-reason-select-page"})))},"oi");
yyo.idomCompat=!0;_.RX(yyo,"yt-report-form-reason-select-page-view-model",{props:{data:_.b3}});var oam=_.y(function(G){var H=G.data;var Z,Q=(Z=_.tp().resolve(_.Jp(_.rr)))==null?void 0:Z();return _.J("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.J("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.J(_.ib,{data:function(){return Q&&H().imageDark?H().imageDark:H().image},
alt:""})),_.J("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.J("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return H().header}),_.J(_.Fe,{text:function(){return H().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"pi");
oam.idomCompat=!0;_.RX(oam,"yt-report-form-sign-in-page-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=_.SQ(_.zDd.talkToRecsStateSelector),Q=function(){return H().titleSuperscript},p=function(){return H().answersShelf},l=function(){return H().videoShelf},q=function(){var qX;
return(qX=H().textInputPlaceholder)==null?void 0:qX.content},u=function(){return H().showOpenTextInput},B=function(){var qX;
return(qX=H().textInputValue)==null?void 0:qX.content},t=function(){return H().isMultiTurnFlow?H().resetButtonViewModel:void 0},D="",d=function(){return H().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
G=_.I(_.Ty("",void 0,"aCjEZb"));var e=G.next().value,n=G.next().value;G=_.I(_.Ty(!1,void 0,"VNSW6c"));var c=G.next().value,W=G.next().value,M=function(){return{state:c()||e()?"active":"disabled",disabled:!(c()||e())}};
_.yP(function(){if(u()){B()&&n(B());var qX;if(!t()&&((qX=Z())==null?0:qX.stepStates)){var B3;qX=Object.keys((B3=Z())==null?void 0:B3.stepStates);B3=qX[qX.length-1];var fW,e2;B3=(fW=Z().stepStates[B3])==null?void 0:(e2=fW.userQuery)==null?void 0:e2.userQuery;_.aK(_.Tjj());B3&&r(B3)}}});
var r=function(qX){var B3=H().onUpdateText;B3&&_.zt(B3,{form:{userQuery:qX}});n(qX)},w=_.nO(function(qX){r(qX.target.value.trim())},150),x=_.Hh(function(qX){var B3;
D=(B3=qX.target.value)==null?void 0:B3.trim();w(qX);return!1}),U=_.Hh(function(qX){qX.key==="Enter"&&(c()||e())&&(r(qX.target.value.trim()),L());
return!1}),R=function(qX,B3){W(B3);
if(B3){if(H().isMultiTurnFlow&&!D){var fW;r((fW=qX==null?void 0:qX.text)!=null?fW:"")}H().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&L()}else n(D)},L=function(){var qX=void 0,B3=_.X(H().nextButtonViewModel,_.HN),fW,e2;
if(B3==null?0:(fW=B3.loggingDirectives)==null?0:(e2=fW.clientVeSpec)==null?0:e2.uiType){var $R,ie;qX=_.bl(($R=B3.loggingDirectives)==null?void 0:(ie=$R.clientVeSpec)==null?void 0:ie.uiType)}(B3=H().onNextStepCommand)&&_.zt(B3,{clickedVisualElement:qX})};
G=_.IA("yt-talk-to-recs-view-model");var H3={};return _.J("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:G},_.J("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.J(_.SP,{data:function(){return H().topCornerButton}},{buttonViewModel:_.kg})),_.J("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.J("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.J(_.Fe,{text:function(){return H().title}}),_.J(_.k,{cond:Q,
then:function(){return _.J("sup",{class:"ytwTalkToRecsSuperScript"},_.J(_.Fe,{text:Q}))}})),_.J("div",{class:"ytwTalkToRecsSubtitle"},_.J(_.Fe,{text:function(){return H().subtitle}})),_.J("div",{class:"ytwTalkToRecsResultsShelf"},_.J(_.k,{cond:p,
then:function(){return _.J(_.SP,{data:p},{chipsShelfViewModel:function(qX){return _.J("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.J(_.f8,{data:qX.data,callback:R,selectionBehavior:d}))}})}}),_.J(_.k,{cond:l,
then:function(){return _.J(_.SP,{data:l},{horizontalShelfViewModel:function(qX){return _.J("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.J(_.bR,{data:qX.data,thumbnailAspectRatio:0}))}})}})),_.J("div",{class:_.bb("ytwTalkToRecsRefinementContainer",(H3.ytwTalkToRecsBottomMargin=function(){return H().isMultiTurnFlow},H3))},_.J(_.k,{cond:u,
then:function(){return _.J("div",{class:"ytwTalkToRecsUserInputBox"},_.J("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:q,value:e,"on:input":x,"on:keyup":U,maxlength:200}))}}),_.J(_.SP,{data:function(){return H().isMultiTurnFlow?H().nextButtonViewModel:void 0}},{buttonViewModel:function(qX){return _.J("div",{class:"ytwTalkToRecsFlowControlButtons"},_.J(_.kg,{data:qX.data,
buttonOverrides:M}))}}),_.J(_.SP,{data:t},{buttonViewModel:function(qX){return _.J("div",{class:"ytwTalkToRecsFlowControlButtons"},_.J(_.kg,{data:qX.data,
onClick:function(){var B3=_.X(H().resetButtonViewModel,_.HN);r(e());(B3=B3==null?void 0:B3.onTap)&&_.zt(B3)}}))}}))))},"ri"),"yt-talk-to-recs-view-model",{props:{data:_.b3}});var vik={sources:[{clientResource:{imageName:"CHECK"}}]};_.mvh=_.y(function(G){var H=_.IA("div");G=_.oK(G,{error:void 0});var Z=G.data,Q=G.error,p=G.onSelected;G=_.I(_.QF(function(){return K_A(Z())}));
var l=G.next().value,q=G.next().value;rcA(Z,function(e){q(e);var n,c,W=zMA((n=Z().options)==null?void 0:(c=n[e])==null?void 0:c.value,Z().type);p==null||p(W);H.value.focus()});
G=_.Hh(function(){if(!Z().disabled){var e=Z(),n=l(),c=H.value;e.options&&(e=W_j(e.options,n,e.label),_.tp().resolve(_.On).openSheet({viewModel:e},c))}});
var u=_.ULR(),B=function(){return!!Q()},t=function(){return!!Z().disabled},D={},d={};
return _.J("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.J("div",{class:_.bb("ytDropdownViewModelDropdownContainer",(D.ytDropdownViewModelDropdownContainerErrorBorder=B,D.ytDropdownViewModelDropdownContainerDisabled=t,D)),"on:click":G,el:H,role:"combobox",tabindex:0,"on:keydown":u,"aria-invalid":B,"aria-disabled":t,"aria-describedby":function(){return B()?"dropdown-view-model-error":void 0}},_.J("div",{class:"ytDropdownViewModelText"},MnL(Z,B,l),jZh(Z,l)),_.J("div",{class:_.bb("ytDropdownViewModelChevronDown",
(d.ytDropdownViewModelChevronDownDisabled=t,d))},_.J(_.ll,{icon:"CHEVRON_DOWN"}))),P4i(Z,Q))},"si");_.RX(_.y(function(G){var H=G.data;var Z=function(p){var l=hMa(H());l.videoMetadata||(l.videoMetadata={});l.videoMetadata.sponsorshipsMetadata||(l.videoMetadata.sponsorshipsMetadata={});l.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(p)},Q=function(p){var l=hMa(H());
l.scheduledRedirectMetadata||(l.scheduledRedirectMetadata={});l.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(p)};
return _.J("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.J("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.J("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.J(_.Fe,{text:function(){return H().title}}),_.J(_.ll,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.J(_.Fe,{text:function(){return H().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.J(_.SP,{data:function(){return H().tierChoices}},{dropdownViewModel:function(p){return _.J("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.J(_.mvh,{data:p.data,
onSelected:Z}))}}),_.J(_.SP,{data:function(){return H().startTimeChoices}},{dropdownViewModel:function(p){return _.J("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.J(_.mvh,{data:p.data,
onSelected:Q}))}}),_.J(_.Fe,{text:function(){return H().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.J("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.J(_.SP,{data:function(){return H().scheduleButton}},{panelFooterViewModel:_.V5})))},"ti"),"ytfz-schedule-fanzone-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;G=G.className===void 0?"":G.className;var Z=_.gu(ckh,function(){return H().flowStateEntityKey||""}),Q={};
Q=_.bb("ytFlowBottomBarViewModelFlowBottomBarButtons",(Q.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},Q));
var p={},l=_.bb("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",Q,(p.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},p.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},p));
p={};var q=_.bb("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",Q,(p.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},p.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},p));
Q={};Q=_.bb("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(Q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},Q.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
Q));
G=_.bb("ytFlowBottomBarViewModelHost",G);return _.J("yt-flow-bottom-bar-view-model",{class:G},_.J(_.k,{cond:function(){var u;return(u=H())==null?void 0:u.textSection},
then:function(u){return _.J("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.J(_.Fe,{text:u}))}}),_.J("div",{class:Q},_.J(_.SP,{data:function(){return H().secondaryButton}},{buttonViewModel:function(u){return _.J(_.kg,{data:u.data,
className:q})}}),_.J(_.SP,{data:function(){return H().primaryButton}},{buttonViewModel:function(u){return _.J(_.kg,{data:u.data,
className:l,buttonOverrides:function(){var B;return{disabled:!((B=Z())==null||!B.primaryButtonDisabled)}}})}})))},"ui"),"yt-flow-bottom-bar-view-model",{props:{data:_.b3,
className:_.oX}});var UvA="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),cp=function(){var G=_.C.apply(this,arguments)||this;G.enableScrollingFix=!0;G.bottomBar=!1;G.fitContent=!1;return G};
_.T(cp,_.C);_.g=cp.prototype;_.g.ready=function(){_.V("enable_pdp_icon_prefetch")&&_.$5k(_.tp().resolve(_.Zh),0,UvA)};
_.g.focus=function(G){this.topBar?_.pT(this.topBar,G):this.paperDialog.focus(G)};
_.g.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19366_scroller&&(this.JSC$19366_scroller.dialogElement=this.paperDialog,this.JSC$19366_scroller.attached&&typeof this.JSC$19366_scroller.attached==="function"&&this.JSC$19366_scroller.attached())};
_.g.onDataChanged=function(){var G;this.fitContent=!((G=this.data)==null||!G.fitContent);var H;this.bottomBar=!((H=this.data)==null||!H.bottomBar)};
_.g.onProgressChanged=function(){var G,H,Z=((H=(G=this.data)==null?void 0:G.progress)!=null?H:0)*100;this.progressElement.style.width=Z+"%"};
_.g.isProgressHidden=function(){var G;return!((G=this.data)==null?0:G.progress)};
_.g.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(G){return G&&!G.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
cp.prototype.onProgressChanged=cp.prototype.onProgressChanged;cp.prototype.onDataChanged=cp.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cp.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],cp.prototype,"enableScrollingFix",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],cp.prototype,"bottomBar",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],cp.prototype,"fitContent",void 0);_.N([_.q6("#progress"),_.A("design:type",HTMLElement)],cp.prototype,"progressElement",void 0);_.N([_.q6("#scroller"),_.A("design:type",Object)],cp.prototype,"JSC$19366_scroller",void 0);_.N([_.q6("ytd-flow-top-bar-renderer"),_.A("design:type",HTMLElement)],cp.prototype,"topBar",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cp.prototype,"onDataChanged",null);_.N([_.gx("data.progress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cp.prototype,"onProgressChanged",null);_.N([_.O({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],cp);
_.m(cp,"ytd-flow-step-renderer",function(){if(teD!==void 0)return teD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return teD=G},{mode:1});var TH=function(G){this.resolveCommand=G;this.steps={}},R8j=function(G,H){H=_.I(H||[]);
for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=Object.values(Z)[0],p=void 0;if((p=Q)==null?0:p.stepId)G.steps[Q.stepId]=Z}},AyD=function(G,H){var Z,Q,p,l,q;
return _.S(function(u){if((Z=G.state)==null||!Z.currentStepId)return u.return(void 0);Q=G.getCurrentStep();if(!Q)return u.return(Nci(G));if(p=_.X(Q,_.h$))G.logVEScreen(p),((l=p)==null?0:l.onStepStartCommand)&&G.resolveCommand((q=p)==null?void 0:q.onStepStartCommand,{});p&&H&&(G.logFlowEvent(p,H),H.steps&&!H.steps.includes(Q)&&H.steps.push(Q));return u.return(Q)})};
TH.prototype.back=function(){var G;(G=this.state)!=null&&G.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
TH.prototype.handleUpdateFlowCommand=function(G){G.steps&&R8j(this,G.steps);G.entityUpdateCommand&&this.resolveCommand(G.entityUpdateCommand,{});G.flowContinuationCommand&&(G=G.flowContinuationCommand)&&(this.getFlowContinuationCommand=G);this.awaitFlowContinuation&&(G=this.getCurrentStep(),this.awaitFlowContinuation(G),this.awaitFlowContinuation=void 0)};
TH.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Nci=function(G){return _.S(function(H){return G.getFlowContinuationCommand?H.return(new Promise(function(Z){G.awaitFlowContinuation=Z;G.getFlowContinuationCommand&&G.resolveCommand(G.getFlowContinuationCommand,{flow_state:G.state})})):H.return(Promise.resolve(void 0))})};
TH.prototype.getCurrentStep=function(){var G;if((G=this.state)!=null&&G.currentStepId)return this.steps[this.state.currentStepId]};
TH.prototype.logVEScreen=function(G){var H;((H=G.screenLoggingData)==null?0:H.screenVeType)&&_.Te(_.gr(),G.screenLoggingData.screenVeType)};
TH.prototype.logFlowEvent=function(G,H){var Z,Q,p,l;((Z=H.flowLoggingData)==null?0:Z.eventNamespace)&&((Q=G.flowEventData)==null?0:Q.eventType)&&((p=G.flowEventData)==null?0:p.eventMetadata)&&((l=H.flowLoggingData)==null?0:l.flowType)&&(G=_.Zp(H.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.Q$().logFlowEvent(G,H.flowLoggingData.flowType))};
_.u4.Object.defineProperties(TH.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.state)==null?void 0:G.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.state)!=null&&G.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(H,Z){Z.key&&Z.value&&(H[Z.key]=Z.value);return H},{})}}});var fR=function(){var G=_.C.apply(this,arguments)||this;G.flowState=_.V("web_use_flow_state_manager")?void 0:new TH(function(H,Z){Z=Z===void 0?{}:Z;_.HT.instance.resolveCommand(H,{form:{form:Z,element:G.hostElement}})});
G.JSC$19377_flowStateManager=_.V("web_use_flow_state_manager")?_.tp().resolve(_.f_):void 0;G.currentTargetId="";G.initialState=!0;G.isLoading=!1;G.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"};G.containsTalkToRecs=!1;return G};
_.T(fR,_.C);_.g=fR.prototype;_.g.onPopupClosed=function(G){if(!G||this.hostElement===G.detail.popupRenderer){if(this.JSC$19377_flowStateManager){var H;((H=this.data)==null?0:H.flowStateEntityKey)&&this.JSC$19377_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.g.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"}}}};
_.g.focus=function(G){var H=this;_.PG(function(){var Z=_.F9(H.hostElement).querySelector("ytd-flow-step-renderer");(Z==null?0:Z.topBar)?Z.focus(G):H.topBar&&_.pT(H.topBar,G)},1)};
_.g.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.g.computeTopBarHidden=function(G){var H;return!((H=_.X(G,_.h$))==null||!H.topBarOverride)};
_.g.onCurrentFlowChange=function(){if(this.JSC$19377_flowStateManager&&this.data&&this.flow){var G=khs(this.JSC$19377_flowStateManager,this.data),H;G&&((H=this.flow)==null?0:H.currentStepId)&&(evm(G,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.g.observeData=function(){var G=this;if(this.JSC$19377_flowStateManager){var H=this.currentTargetId,Z,Q,p=(Q=(Z=this.data)==null?void 0:Z.targetId)!=null?Q:"";H!==p&&H&&D5c(this.JSC$19377_flowStateManager,H);this.currentTargetId=p;this.data&&d5q(khs(this.JSC$19377_flowStateManager,this.data),function(l){l&&(G.initialState=!1,G.currentFlowStep={flowStepRenderer:l},G.isLoading=!G.currentFlowStep,G.autofocusAndRefit(),G.updateContainsTalkToRecs(),G.logVEScreen(),G.logFlowEvent())})}};
_.g.dataChanged=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1){if(!G.flowState)return Q.return();((H=G.data)==null?0:H.steps)&&R8j(G.flowState,G.data.steps);if((Z=G.data)==null?0:Z.flowContinuationCommand){var p=G.flowState,l=G.data.flowContinuationCommand;l&&(p.getFlowContinuationCommand=l)}return Q.yield(AyD(G.flowState,G.data),2)}G.currentFlowStep=Q.yieldResult;_.K0(Q)})};
_.g.flowChanged=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1){if(!G.flowState||!G.flow)return Z.return();G.flowState.state=G.flow;G.isLoading=!0;return Z.yield(AyD(G.flowState,G.data),2)}H=Z.yieldResult;if(!H||G.flow.isLoading)return Z.return();G.currentFlowStep=H;G.initialState=!1;G.isLoading=!1;G.autofocusAndRefit();G.updateContainsTalkToRecs();_.K0(Z)})};
_.g.logVEScreen=function(){var G,H,Z=(G=_.X(this.currentFlowStep,_.h$))==null?void 0:(H=G.screenLoggingData)==null?void 0:H.screenVeType;Z&&_.Te(_.tp().resolve(_.rv),Z)};
_.g.logFlowEvent=function(){var G=_.X(this.currentFlowStep,_.h$),H,Z,Q,p,l,q;(this==null?0:(H=this.data)==null?0:(Z=H.flowLoggingData)==null?0:Z.eventNamespace)&&(this==null?0:(Q=this.data)==null?0:(p=Q.flowLoggingData)==null?0:p.flowType)&&(G==null?0:(l=G.flowEventData)==null?0:l.eventType)&&(G==null?0:(q=G.flowEventData)==null?0:q.eventMetadata)&&(G=_.Zp(this.data.flowLoggingData.eventNamespace,G.flowEventData.eventType,G.flowEventData.eventMetadata),_.Q$().logFlowEvent(G,this.data.flowLoggingData.flowType))};
_.g.updateContainsTalkToRecs=function(){var G,H=(G=_.X(this.currentFlowStep,_.h$))==null?void 0:G.content;this.containsTalkToRecs=!!H&&!!_.X(H,i9o)};
_.g.autofocusAndRefit=function(){var G=this,H=_.tp().resolve(_.Jp(_.qZ)),Z=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),Q=document.querySelector("yt-report-form-confirmation-page-view-model"),p=document.querySelector("yt-report-form-details-page-view-model"),l=document.querySelector("yt-report-form-reason-select-page-view-model"),q=document.querySelector("yt-contributor-zero-state-view-model"),
u=document.querySelector("yt-structured-context-note-view-model"),B=document.querySelector("yt-note-view-model");(!Z&&H&&H.isKeyBoardInUse()||Q||!Z&&p||!Z&&l||!Z&&(q||u||B))&&_.lc(this.hostElement);_.q2(this,function(){_.N5(G.hostElement,"yt-refit")})};
_.g.handleUpdateFlowCommand=function(G){this.flowState?this.data&&(G=_.X(G,_.sHa),G.targetId===this.data.targetId&&(G.flowContinuationCommand&&(this.data.flowContinuationCommand=G.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(G),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(G)};
_.g.handleFlowNextStepCommand=function(G){this.JSC$19377_flowStateManager?this.ytComponentBehavior.resolveCommand(G):this.data&&this.flow&&this.flow.key&&(G=_.X(G,_.FLp),G.targetId===this.data.targetId&&(G=G.stepId||"",this.ytdReduxBehavior.dispatch(_.eO("flowStateEntity",this.flow.key,{currentStepId:G,stepIdStack:(this.flow.stepIdStack||[]).concat(G)}))))};
_.g.handleFlowPrevStepCommand=function(G){if(this.JSC$19377_flowStateManager)this.ytComponentBehavior.resolveCommand(G);else if(this.data&&this.flow&&this.flow.key&&(G=_.X(G,_.bF4),G.targetId===this.data.targetId)){var H=[].concat(_.OP(this.flow.stepIdStack||[]));H.length>1?(H.pop(),this.ytdReduxBehavior.dispatch(_.eO("flowStateEntity",this.flow.key,{currentStepId:H[H.length-1],stepIdStack:H}))):G.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(G.onFirstStepCommand)}};
_.g.handleYpcCancelRecurrenceCommand=function(G){if(this.data&&this.flow&&this.flow.key&&(G=_.X(G,m5h),G.targetId===this.data.targetId&&G.endpointCommand)){var H=_.X(this.flow,U5D);H&&_.X(G.endpointCommand,_.Jzt)&&(_.X(G.endpointCommand,_.Jzt).feedbackData=H.surveyFeedback);this.ytComponentBehavior.resolveCommand(G.endpointCommand)}};
_.g.handlePartialUpdateFlowStateEntity=function(G){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.eO("flowStateEntity",this.flow.key,G,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
fR.prototype.flowChanged=fR.prototype.flowChanged;fR.prototype.dataChanged=fR.prototype.dataChanged;fR.prototype.observeData=fR.prototype.observeData;fR.prototype.onCurrentFlowChange=fR.prototype.onCurrentFlowChange;fR.prototype.onPopupClosed=fR.prototype.onPopupClosed;_.N([_.v(_.Up),_.A("design:type",Object)],fR.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],fR.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],fR.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fR.prototype,"initialState",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fR.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Object)],fR.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],fR.prototype,"currentFlowStep",void 0);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],fR.prototype,"onPopupClosed",null);
_.N([_.h({selectorArgs:["data.flowStateEntityKey"],selector:ckh}),_.A("design:type",Object)],fR.prototype,"flow",void 0);_.N([_.q6("ytd-flow-top-bar-renderer"),_.A("design:type",HTMLElement)],fR.prototype,"topBar",void 0);_.N([_.gx("data","flow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fR.prototype,"onCurrentFlowChange",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fR.prototype,"observeData",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],fR.prototype,"dataChanged",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fR.prototype,"containsTalkToRecs",void 0);_.N([_.Jv("flow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],fR.prototype,"flowChanged",null);_.N([_.O({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],fR);
_.xvc=_.xQ()(fR,"ytd-flow-root-renderer",function(){if(JUi!==void 0)return JUi;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return JUi=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var Lmi;var yV=null;_.RX(_.y(function(G){return _.J("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.J("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.J(_.Fe,{text:function(){return G.data().text}}),_.J("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"vi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.b3}});var Eam=_.y(function(G){var H=G.playerControlsProps;var Z=G.isShortsPage;return _.J("yt-bigboard",null,_.J(_.k,{cond:function(){return H().isDragging},
then:function(){return _.J("div",{class:"ytBigboardStoryboardHost"},_.J(_.C7i,{progressBarProps:H,isShortsPage:Z}))}}))},"wi");
Eam.idomCompat=!0;_.vp={ACCOUNT_LABEL:oD("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:oD("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:oD("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:oD("AD_BADGE_HINT"),AD_BADGE_TEXT:oD("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:oD("ALL_CHANNELS_LABEL"),AMBIENT_MODE:oD("AMBIENT_MODE"),AMBIENT_MODE_OFF:oD("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:oD("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:oD("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:oD("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:oD("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:oD("APP_UPSELL_TITLE"),AUDIO_TRACK:oD("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:oD("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:oD("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:oD("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:oD("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:oD("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:oD("AUTO_ZOOM","Auto zoom"),BACK:oD("BACK"),CANCEL:oD("CANCEL"),CHANNEL_SWITCHER_LABEL:oD("CHANNEL_SWITCHER_LABEL"),CLOSE:oD("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:oD("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:oD("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:oD("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:oD("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:oD("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:oD("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:oD("COMMENT_MODAL_CONTENT"),CONFIRM_OK:oD("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:oD("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:oD("COPIED_TO_CLIPBOARD"),COPY:oD("COPY"),COPY_DEBUG_INFO:oD("COPY_DEBUG_INFO"),COPY_EMBED_CODE:oD("COPY_EMBED_CODE"),
COPY_LINK_LABEL:oD("COPY_LINK_LABEL"),COPY_VIDEO_URL:oD("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:oD("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:oD("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:oD("DELETE_FROM_DOWNLOADS"),DIALOG:oD("DIALOG"),DONE:oD("DONE"),DOWNLOAD:oD("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:oD("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:oD("FLAG_CONFIRM"),FLAG_CONTENT:oD("FLAG_CONTENT"),FLAG_LABEL:oD("FLAG_LABEL"),FLAG_TITLE:oD("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:oD("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:oD("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:oD("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:oD("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:oD("HIDE_SEARCH_FILTERS_LABEL"),HOME:oD("HOME","Home"),INVALID_RESPONSE_RECEIVED:oD("INVALID_RESPONSE_RECEIVED"),LIBRARY:oD("LIBRARY","Library"),LISTENING:oD("LISTENING"),LOADING:oD("LOADING"),LONG_PRESS_MIC_TO_SPEAK:oD("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:oD("LOOP"),MENU_DESKTOP:oD("MENU_DESKTOP"),
MENU_EXIT:oD("MENU_EXIT"),MENU_FEEDBACK:oD("MENU_FEEDBACK"),MENU_HELP:oD("MENU_HELP"),MENU_IMPRESSUM:oD("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:oD("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:oD("MENU_SETTINGS"),MENU_SIGN_IN:oD("MENU_SIGN_IN"),MENU_TITLE:oD("MENU_TITLE"),MENU_YOUR_DATA:oD("MENU_YOUR_DATA"),MORE_INFO:oD("MORE_INFO"),MORE_OPTIONS:oD("MORE_OPTIONS"),MUTE_VOLUME:oD("MUTE_VOLUME"),NEW_PLAYLIST:oD("NEW_PLAYLIST"),NEXT_VIDEO:oD("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:oD("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:oD("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:oD("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:oD("NOT_FOUND_TITLE"),NO_DOWNLOADS:oD("NO_DOWNLOADS"),NO_MIC_INPUT:oD("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:oD("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:oD("OOPS_MESSAGE"),OPEN_APP:oD("OPEN_APP"),OPEN_YOUTUBE:oD("OPEN_YOUTUBE"),PAUSE:oD("PAUSE"),PLAY:oD("PLAY"),PLAYER_CAPTION:oD("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:oD("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:oD("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:oD("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:oD("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:oD("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:oD("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:oD("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:oD("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:oD("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:oD("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:oD("PLAYER_MINIMIZE"),PLAYER_NEXT:oD("PLAYER_NEXT"),PLAYER_PAUSE:oD("PLAYER_PAUSE"),PLAYER_PLAY:oD("PLAYER_PLAY"),
PLAYER_PREVIOUS:oD("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:oD("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:oD("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:oD("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:oD("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:oD("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:oD("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:oD("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:oD("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:oD("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:oD("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:oD("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:oD("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:oD("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:oD("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:oD("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:oD("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:oD("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:oD("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:oD("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:oD("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:oD("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:oD("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:oD("PLAY_ALL"),PLEASE_FIX_ERRORS:oD("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:oD("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:oD("PREVIOUS_VIDEO"),PRIVACY_POLICY:oD("PRIVACY_POLICY"),RELOAD:oD("RELOAD"),REQUIRED_LABEL:oD("REQUIRED_LABEL"),SAVE_PLAYLIST:oD("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:oD("SCRUB_SLIDE_USER_EDU"),SEARCH:oD("SEARCH","Search"),
SEARCH_APPEND_LABEL:oD("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:oD("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:oD("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:oD("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:oD("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:oD("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:oD("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:oD("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:oD("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:oD("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:oD("SEEK_SLIDER"),SETTINGS_LABEL:oD("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:oD("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:oD("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:oD("SHOW_LESS"),SHOW_MORE:oD("SHOW_MORE"),SHOW_PLAYER_CONTROLS:oD("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:oD("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:oD("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:oD("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:oD("SIGN_IN_ON_WEB"),STABLE_VOLUME:oD("STABLE_VOLUME"),STABLE_VOLUME_OFF:oD("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:oD("STABLE_VOLUME_ON"),STATS_FOR_NERDS:oD("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:oD("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:oD("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:oD("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:oD("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:oD("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:oD("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:oD("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:oD("TIMESTAMP_SECONDS"),TOGGLE_OFF:oD("TOGGLE_OFF"),TOGGLE_ON:oD("TOGGLE_ON"),TRENDING:oD("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:oD("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:oD("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:oD("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:oD("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:oD("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:oD("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:oD("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:oD("VIDEO_LINK_LABEL")};var Y7a=_.y(function(G){var H=G.playerApi;G=_.IA("button",function(Q){_.fD(Q,36843)});
var Z=oD("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.J("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.J("button",{el:G,class:"ytPlayerControlsJumpForwardButtonButton",title:Z,"aria-label":Z,"on:click":_.Hh(function(){_.v0(36843);H&&H().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.J("span",null,_.J(_.ll,{icon:"FAST_FORWARD"}))))},"xi");var Fms=_.y(function(G){var H=G.appApi;G=_.IA("button",function(Q){_.fD(Q,62946)});
var Z=oD("OPEN_IN_MINIPLAYER");return _.J("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.J("button",{el:G,class:"ytMiniplayerButtonButton",title:Z,"aria-label":Z,"on:click":_.Hh(function(){_.v0(62946);var Q,p;(p=(Q=H()).openInMiniplayer)==null||p.call(Q);return!1})},_.J(_.ll,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"yi");var bNc=_.y(function(G){var H=G.playerApi;G=_.IA("button",function(l){_.fD(l,142812)});
var Z=_.I(_.Ty(!1,void 0,"eOMRAb")),Q=Z.next().value,p=Z.next().value;Z=function(){return oD("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(Q()?1:2)})};
return _.J("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.J("button",{el:G,class:"ytPlaybackSpeedButtonButton",title:Z,"aria-label":Z,"on:click":_.Hh(function(){_.v0(142812);if(H){var l=H(),q=Q();l.setPlaybackRate(q?1:2);p(!Q())}return!1})},_.J("span",null,_.J(_.ll,{icon:function(){return Q()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"zi");var GzL=_.y(function(G){var H=G.title;var Z=G.ariaLabel;var Q=G.icon;var p=G.command;var l=G.visualElementId;G=_.IA("button",function(q){l&&_.fD(q,l())});
return _.J("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.J("button",{el:G,class:"ytdThumbnailOverlayButtonButton",title:H,"aria-label":Z,"on:click":_.Hh(function(){l&&_.v0(l());p&&_.tp().resolve(_.Dk).resolveCommand(p())})},_.J(_.ll,{icon:Q})))},"Ai");var P0="";var H3j=_.y(function(G){var H=G.playerControlsProps,Z=G.onClickFn;G=_.Kb(function(){var l=H(),q=-1;l.captionsAvailable&&(q=l.captionsEnabled?1:0);return q},void 0,"MZ0Wqe");
var Q=_.Kb(function(){var l=H();return l.captionsAvailable?_.Zg(l.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Zg("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),p=_.Kb(function(){var l=H();
l=l.captionsAvailable?l.captionsEnabled:void 0;return l},void 0,"fhuQRe");
return _.J("yt-closed-captions-toggle-button",null,_.J(_.$KA,{captionIconType:G,ariaLabel:Q,ariaPressed:p,onClick:function(l){var q=H();if(q.captionsAvailable){var u=q.playerApi;if(u){var B=q.playerApi;if(B){var t=P0;if(t){B=B.getOption("captions","track");var D;P0=(D=B?B.displayName:null)!=null?D:t}else _.Tg(B)?(t=_.co3(B),P0=t.length?(D=WgA(t))?D.displayName:t[0].displayName:""):P0=""}zkc(u);_.V("mweb_disable_set_state_captions_killswitch")&&q.setState({captionsEnabled:!q.captionsEnabled})}}var d,
e;(e=(d=q.appApi).showCaptionsToggleToast)==null||e.call(d,q);Z==null||Z(l)},
isOverlay:!0}))},"Bi");var s_A=_.y(function(G){var H=G.data;return _.J("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.J(_.LB,{data:function(){return{type:17,text:_.a4f(H().label)}}}))},"Ci");var Z36=_.y(function(G){var H=_.bb("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return G.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return G.size()==="small"?G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
G.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.J("animated-seek-arrows",{class:_.bb("ytPlayerControlsAnimatedSeekArrowsHost")},_.J("span",{class:H}),_.J("span",{class:H}),_.J("span",{class:H}))},"Di");
Z36.idomCompat=!0;var Q_t=_.y(function(){var G=_.Zg("PLAYER_SECONDS",{seconds_placeholder:"30"}),H=_.I(_.Ty(!1,void 0,"iRJu8c")),Z=H.next().value,Q=H.next().value,p=_.I(_.Ty(!1,void 0,"MPnizf"));H=p.next().value;var l=p.next().value;p={};var q=_.bb("jumpForwardOverlayOverlay",(p.jumpForwardOverlayOverlayHidden=H,p));_.mR(function(){var u=null,B=null,t=function(){u!==null&&_.DG().cancelJob(u);B!==null&&_.DG().cancelJob(B);l(!0);Q(!0);_.E6(_.DG(),function(){l(!1)});
u=_.E6(_.DG(),function(){l(!0);B=_.E6(_.DG(),function(){Q(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",t);_.oM(function(){window.removeEventListener("jump-forward-clicked",t)})});
return _.J("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.J(_.k,{cond:Z,then:function(){return _.J("div",{class:q},_.J(Z36,{direction:1,size:"large"}),_.J("div",null,G))}}))},"Ei");var p$c=_.vp.MUTE_VOLUME,lpA=_.vp.UNMUTE_VOLUME,gTj=_.y(function(G){var H=G.muteIconType;var Z=G.onClick;var Q=G.useOutlineIcon;var p=G.useDelhiIcons;G=_.IA("button",function(u){_.fD(u,28662)});
var l=function(){var u=H(),B=Q==null?void 0:Q(),t=p==null?void 0:p(),D="",d="";switch(u){case -1:case 0:D=B?"VOLUME_OFF":t?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";d=lpA;break;case 1:D=B?"VOLUME_UP_OUTLINE":t?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";d=p$c;break;case 2:D=B?"VOLUME_DOWN_OUTLINE":t?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";d=p$c;break;default:_.Lw(u)}return{iconName:D,ariaLabel:d}},q=function(){return l().ariaLabel};
return _.J("ytm-mute-button",{class:"ytmMuteButtonHost"},_.J("button",{el:G,class:"ytmMuteButtonButton",title:q,"aria-label":q,"on:click":_.Hh(function(u){_.v0(28662);Z==null||Z(u);return!1})},_.J("span",null,_.J(_.ll,{icon:function(){return l().iconName}}))))},"Fi");var Ipj=_.y(function(G){var H=G.volumeProps;var Z=G.onClickFn;var Q=G.useOutlineIcon;var p=G.useDelhiIcons;return _.J("yt-mute-toggle-button",null,_.J(gTj,{muteIconType:function(){var l=H();return l.volumeMuted||l.volume===0?0:l.volume>50?1:2},
onClick:function(l){var q=H().playerApi;q&&(q.isMuted()?q.unMute():q.mute(!1));Z==null||Z(l)},
useOutlineIcon:function(){return!(Q==null||!Q())},
useDelhiIcons:function(){return!(p==null||!p())}}))},"Gi");
Ipj.idomCompat=!0;var qDs=_.y(function(G){var H=G.data;var Z=_.IA("ytm-paid-content-overlay-renderer");return _.J("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:Z,"on:animationend":_.Hh(function(){Z.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.J(_.S8,{command:function(){return H().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.J(_.k,{cond:function(){var Q;return(Q=H().icon)==null?void 0:Q.iconType},
then:function(){return _.J("span",null,_.J(_.ll,{icon:function(){var Q;return(Q=H().icon)==null?void 0:Q.iconType}}))}}),_.J("div",{class:"ytmPaidContentOverlayText"},_.J(_.Fe,{text:function(){return H().text}})),_.J(_.k,{cond:function(){return H().navigationEndpoint},
then:function(){return _.J(_.ll,{icon:"CHEVRON_RIGHT"})}})))},"Hi");
qDs.idomCompat=!0;var F_c=[].concat(_.OP([{register:function(G){var H=IQt(G),Z;(Z=G().playerApi)==null||Z.addEventListener("onVolumeChange",H);return function(){}}},
{register:function(G){var H=qlL(G);G=G().playerApi;G==null||G.addEventListener("captionschanged",H);G==null||G.addEventListener("captionssettingschanged",H);G==null||G.addEventListener("onCaptionsTrackListChanged",H);return function(){}}}]),[{register:function(G){var H=QOo(G),Z;
(Z=G().playerApi)==null||Z.addEventListener("onStateChange",H);return function(){}}},
{register:function(G){var H=pfj(G),Z;(Z=G().playerApi)==null||Z.addEventListener("onPlaybackRateChange",H);return function(){}}},
{register:function(G){var H=lQL(G),Z;(Z=G().playerApi)==null||Z.addEventListener("onVideoDataChange",H);return function(){}}},
{register:function(G){var H=gki(G),Z,Q;(Z=G())==null||(Q=Z.playerApi)==null||Q.addEventListener("onVideoProgress",H);return function(){}}}]);var SDs=_.y(function(G){var H=G.data;var Z=function(){return _.Zg("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+H().playbackRate})};
return _.J(_.k,{cond:function(){return H().playbackRate&&H().playbackRate!==1},
then:function(){return _.J("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.J("div",{class:"ytPlaybackRateOverlayOverlay"},_.J(Z36,{direction:1,size:"small"}),_.J("div",{class:"ytPlaybackRateOverlayLabel"},Z)))}})},"Ji");var u9c=_.y(function(G){var H=G.data;return _.J("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.J(_.k,{cond:function(){var Z,Q=(Z=H())==null?void 0:Z.playerResponse,p;return Q==null?void 0:(p=Q.paidContentOverlay)==null?void 0:p.paidContentOverlayRenderer},
then:function(Z){return _.J(qDs,{data:Z})}}))},"Li"),BTm=_.y(function(G){var H=G.props;
var Z=G.data;var Q=G.options;var p=function(){var t,D,d,e;return(t=Z())==null?void 0:(D=t.playerResponse)==null?void 0:(d=D.playerConfig)==null?void 0:(e=d.inlinePlaybackConfig)==null?void 0:e.showAudioControls},l=function(){var t,D;
if(p()&&((t=Q())==null?void 0:(D=t.additionalButton)==null?void 0:D.button)!==void 0){var d,e,n;t=(d=Z())==null?void 0:(e=d.playerApi)==null?void 0:(n=e.getSize())==null?void 0:n.height;if(!(t===void 0||t<180)){var c,W;return(c=Q())==null?void 0:(W=c.additionalButton)==null?void 0:W.button}}},q=function(){var t,D;
return(t=Q())==null?void 0:(D=t.additionalButton)==null?void 0:D.thumbnailOverlayButtonRenderers},u=function(){var t,D;
return(t=Q())==null?void 0:(D=t.additionalButton)==null?void 0:D.thumbnailOverlayButtonViewModels},B=function(){var t=[_.J(Ipj,{volumeProps:H})],D;
((D=Q())==null?0:D.hideCaptionsToggleButton)||t.push(_.J(H3j,{playerControlsProps:H}));l()===1&&t.push(_.J(Y7a,{playerApi:function(){return H().playerApi}}));
l()===2&&t.push(_.J(Fms,{appApi:function(){return H().appApi}}));
l()===3&&t.push(_.J(bNc,{playerApi:function(){return H().playerApi}}));
D=q();if(l()===4&&D){D=_.I(D);for(var d=D.next(),e={};!d.done;e={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$602:void 0},d=D.next()){d=d.value;e.tooltip$jscomp$2=d.tooltip;var n=void 0,c=void 0;e.ariaLabel$jscomp$19=((n=d.accessibility)==null?void 0:(c=n.accessibilityData)==null?void 0:c.label)||e.tooltip$jscomp$2;n=void 0;e.icon$jscomp$50=(n=d.icon)==null?void 0:n.iconType;e.command$jscomp$602=d.command;e.tooltip$jscomp$2&&e.ariaLabel$jscomp$19&&e.icon$jscomp$50&&
t.push(_.J(GzL,{title:function(W){return function(){return W.tooltip$jscomp$2}}(e),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$19}}(e),
icon:function(W){return function(){return W.icon$jscomp$50}}(e),
command:function(W){return function(){return W.command$jscomp$602}}(e)}))}}D=u();
if(l()===4&&D)for(D=_.I(D),d=D.next(),e={};!d.done;e={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$603:void 0,trackingParamsVeType:void 0},d=D.next())d=d.value,e.tooltip$jscomp$3=d.title,e.ariaLabel$jscomp$20=d.accessibilityText||e.tooltip$jscomp$3,e.icon$jscomp$51=d.iconName,e.command$jscomp$603=_.Tt(d.onTap),c=n=void 0,e.trackingParamsVeType=((n=d.loggingDirectives)==null?0:n.trackingParams)?(c=CJ6(_.YR(d.loggingDirectives.trackingParams)))==null?void 0:
_.k5(c,2):void 0,e.tooltip$jscomp$3&&e.ariaLabel$jscomp$20&&e.icon$jscomp$51&&t.push(_.J(GzL,{title:function(W){return function(){return W.tooltip$jscomp$3}}(e),
ariaLabel:function(W){return function(){return W.ariaLabel$jscomp$20}}(e),
icon:function(W){return function(){return W.icon$jscomp$51}}(e),
command:function(W){return function(){return W.command$jscomp$603}}(e),
visualElementId:function(W){return function(){return W.trackingParamsVeType}}(e)}));
return t};
return _.J(_.k,{cond:p,then:function(){return _.J("div",{class:"ytInlinePlayerControlsTopRightControls"},_.J(_.Cl,{each:B},function(t){return _.J("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.J("div",{class:"ytInlinePlayerControlsButtonIcon"},t))}))}})},"Mi"),kz6=_.y(function(G){var H=G.props;
var Z=G.data;var Q=G.options;G={};G=_.bb("ytInlinePlayerControlsBottomRightControls",(G.ytInlinePlayerControlsBottomRightControlsHidden=function(){var p;return utA(Z(),Q())&&((p=Q())==null?void 0:p.insetProgressBar)&&(H().isHovering||H().isDragging)},G));
return _.J("div",{class:G},_.J(J0j,{data:Z}),_.J(_.k,{cond:function(){var p;return!((p=Q())==null?0:p.hideTimeDisplay)},
then:function(){return _.J(tXc,{props:H,data:Z})}}))},"Ni"),J0j=_.y(function(G){var H=G.data;
return _.J(_.SP,{data:function(){var Z;return EiD((Z=H())==null?void 0:Z.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:s_A})},"Oi"),tXc=_.y(function(G){var H=G.props;
var Z=G.data;return _.J(_.k,{cond:function(){return H().isLive},
then:function(){return _.J(Dlc,{props:H,data:Z})},
else:function(){return _.J(dlD,{props:H,data:Z})}})},"Pi"),dlD=_.y(function(G){var H=G.props;
var Z=G.data;var Q=_.Kb(function(){var p;return YWj((p=Z())==null?void 0:p.thumbnailOverlays)},void 0,"ynNL2");
return _.J("div",{class:_.bb("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.vp.PLAYER_TIME_ELAPSED+" "+_.xef(H().playedTime)}},_.J(_.LB,{data:function(){var p=_.xef(H().videoDuration-H().playedTime);
return Object.assign({},{type:17,text:p},Q())}}))},"Qi"),eGo=_.y(function(G){G=G.badgeShapeData;
return _.J("div",{class:_.bb("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.J(_.LB,{data:G}))},"Ri"),Dlc=_.y(function(G){var H=G.data;
G=_.Kb(function(){if(_.V("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var Z,Q;return(Z=H())==null?void 0:(Q=Z.thumbnailOverlays)==null?void 0:Q.find(function(p){return p.thumbnailOverlayTimeStatusRenderer||p.thumbnailOverlayBadgeViewModel})}},void 0,"G9uE9b");
return _.J(_.k,{cond:G,then:function(Z){return _.J(_.SP,{data:Z},{thumbnailOverlayTimeStatusRenderer:function(Q){var p=Q.data;Q=_.Kb(function(){return _.MFe(p(),0)},void 0,"b9bSLb");
return _.J(eGo,{badgeShapeData:Q})},
thumbnailOverlayBadgeViewModel:function(Q){return _.J(_.XC2,{data:Q.data})}})},
else:function(){var Z={type:18,text:_.vp.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.J(eGo,{badgeShapeData:function(){return Z}})}})},"Si"),nTq=_.y(function(G){var H=G.props;
var Z=G.data;var Q=G.options;return _.J(_.mhq,{progressBarProps:H,config:function(){var p,l=_.X((p=Z())==null?void 0:p.multiMarkersPlayerBar,_.OdT),q;p=((q=Q())==null?0:q.insetProgressBar)?2:1;var u;q=(u=Q())==null?void 0:u.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:p,chapterData:l,isInlinePlayback:!0,doSeekOnClick:q,playheadDotBehavior:q?1:0}}})},"Ti");_.RX(_.y(function(G){var H=G.data;var Z=G.appApi;var Q=G.options;var p=Z9s(H,Sli(Z));G={};Z={};return _.J("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.J("div",{class:_.bb("ytInlinePlayerControlsDarkenedOverlay",(G.ytInlinePlayerControlsDarkenedOverlayShow=function(){return p().isHovering},G))}),_.J(Q_t,null),_.J(SDs,{data:p}),_.J(u9c,{data:H}),_.J(Eam,{playerControlsProps:p,
isShortsPage:!1}),_.J("div",{class:_.bb((Z.ytInlinePlayerControlsControlsHidden=function(){return p().isDragging},Z))},_.J(BTm,{props:p,
data:H,options:Q}),_.J(kz6,{props:p,data:H,options:Q})),_.J(_.k,{cond:function(){return utA(H(),Q())},
then:function(){return _.J(nTq,{props:p,data:H,options:Q})}}))},"Ki"),"yt-inline-player-controls",{props:{data:_.b3,
appApi:_.oX,options:_.b3}});var Wp=function(){var G=_.C.apply(this,arguments)||this;G.opts=null;G.playerControlsData=null;G.playerControlsAppApi={openInMiniplayer:function(){G.openInMiniplayer()}};
G.playerControlsOptions={};G.noAnimation=!1;G.playbackIntentTriggered=!1;G.positionData=null;G.hidden=!0;G.active=!1;G.playing=!1;G.persistentPanelVisible=!1;G.videoPreviewDataIndex=0;G.JSC$19420_playerPromise=null;G.player=null;G.enableAudioControls=!1;G.hasBeenUnmuted=!1;G.captionsHaveBeenTurnedOff=!1;G.JSC$19420_playerEvents=new Map;G.videoPreviewFetchRequest=null;G.scheduledPreviewEndJobId=null;G.JSC$19420_preventProgressSaveTimer=null;G.watchEndpointStartTimeUpdaterInterval=null;G.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};G.windowOnBlurFn=function(){G.deactivate()};
return G};
_.T(Wp,_.C);_.g=Wp.prototype;
_.g.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"}}}};
_.g.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19420_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19420_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19420_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19420_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.pH(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.pH(this,this.onScroll))};
_.g.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.pH(this,this.onScroll))};
_.g.onPageTypeChange=function(){this.deactivate()};
_.g.onWindowResized=function(){this.deactivate()};
_.g.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.g.onCaptionsChanged=function(G){G=!!G.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!G);this.setCaptionSize()};
_.g.setCaptionSize=function(){var G;if(this.active&&!this.captionsHaveBeenTurnedOff&&((G=this.player)==null?0:G.getCaptionWindowContainerId())){var H;(H=this.player)==null||H.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.g.currentPageAllowed=function(){return!this.isWatchPage};
_.g.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.V("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var G=this.positionData,H=G.initialTopPosition,Z=G.initialHorizontalPosition;_.ZI(this.hostElement,{"--ytd-video-preview-translate-left":G.finalHorizontalPosition-Z+"px","--ytd-video-preview-translate-top":G.finalTopPosition-H+"px","--ytd-video-preview-original-top-position":H+
"px","--ytd-video-preview-original-horizontal-position":Z+"px","--ytd-video-preview-initial-scale":"scale("+G.initialScale+")","--ytd-video-preview-width":G.videoPreviewWidth+"px","--ytd-video-preview-height":G.videoPreviewHeight+"px"});return!0};
_.g.isOutOfBounds=function(G){var H=G.initialHorizontalPosition+12;G=H+G.videoPreviewWidth>window.innerWidth;return H<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&H<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&H<72||G};
_.g.handleOpenVideoPreviewAction=function(G){var H=this,Z;return _.S(function(Q){if(!H.currentPageAllowed())return Q.return(0);H.opts=G;return(Z=H.alignVideoPreviewForAnimation(G.thumbnail))?Q.return(H.activate()):Q.return(0)})};
_.g.onMouseLeave=function(G){var H,Z;(H=this.opts)==null||(Z=H.mouseleaveCallback)==null||Z.call(H);this.shouldDeactivateOnMouseLeave(G)&&this.deactivate()};
_.g.onScroll=function(){var G,H;((G=this.opts)==null?0:G.isAutoplay)&&((H=this.opts)==null?0:H.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.g.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Ui.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.g.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.g.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Wp.JSC$19419_DEFAULT_CLICK_LOCATION_BEHAVIOR,Wp.JSC$19419_CLICK_LOCATION_ID_MAP)};
_.g.shouldDeactivateOnMouseLeave=function(G){G=G.relatedTarget;if(!G)return!0;var H;return(H=this.opts)!=null&&H.mediaRenderer?!_.bS(this.opts.mediaRenderer).contains(G):!0};
_.g.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.g.onPlaybackStart=function(){var G=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$19420_preventProgressSaveTimer=
_.E6(_.Ui,function(){G.resetPreventProgressSaveTimer()},1E4);
var H;if((H=this.opts)==null?0:H.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.E6(_.Ui,function(){G.hasMultipleVideoPreviews()?G.startPlaybackForNextVideo():G.deactivate()},this.opts.videoPreviewDurationMs);
var Z;this.player.setGlobalCrop(((Z=this.opts)==null?0:Z.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.g.getRoundedCornersSize=function(){var G;if((G=this.opts)==null?0:G.roundedCornersSize){var H;return(H=this.opts)==null?void 0:H.roundedCornersSize}var Z;if((Z=this.opts)==null?0:Z.enableRounding){var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="small")return 1;var p;if(((p=this.opts)==null?void 0:p.thumbnailSize)==="medium")return 2;var l;if(((l=this.opts)==null?void 0:l.thumbnailSize)==="large")return 3}return _.V("web_imp_inset_progress_bar")?3:0};
_.g.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.g.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.g.onMediaContainerClick=function(G){this.isShortcutClick(G)||(this.navigateToWatch(G),G.preventDefault(),G.stopPropagation())};
_.g.activate=function(){var G=this,H,Z,Q,p,l,q,u,B,t;return _.S(function(D){switch(D.nextAddress){case 1:if(!G.currentPageAllowed())return D.return(0);Z=(H=G.videoPreviewData)==null?void 0:H.inlinePlaybackEndpoint;Q=_.Ph.instance;if(!Z||!Q)return D.return(0);G.playbackIntentTriggered=!0;((p=G.opts)==null?0:p.mediaRenderer)&&((l=G.opts)==null||!l.isAutoplay)&&Ngq(G.opts.mediaRenderer,function(){G.deactivate()});
_.q2(G,function(){G.revealPreviewUi()});
q={};_.V("enable_unknown_lact_fix_on_html5")&&(_.tp().resolve(_.Bh),q.lact=_.JL());G.videoPreviewFetchRequest=aZo(Q,G.getInlinePlaybackRequestData(G.videoPreviewData),q);_.XV(D,2);return D.yield(G.videoPreviewFetchRequest,4);case 4:u=D.yieldResult;if(((B=u)==null?void 0:(t=B.playabilityStatus)==null?void 0:t.status)==="OK")return D.return(G.handlePlayerResponse(u));throw Error("fk");case 2:_.Wg(D),G.deactivate();case 3:return D.return(1)}})};
_.g.getInlinePlaybackRequestData=function(G){var H,Z=_.V("web_imp_player_mute_params")?((H=this.opts)==null?void 0:H.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:G.inlinePlaybackEndpoint,startPlaybackInMutedState:Z}};
_.g.handlePlayerResponse=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W;return _.S(function(M){if(M.nextAddress==1){Z=H.getInlinePlaybackVideoId();if(!(((Q=G)==null?0:(p=Q.videoDetails)==null?0:p.videoId)&&H.currentPageAllowed()&&H.playbackIntentTriggered&&H.opts&&Z))return H.deactivate(),M.return(0);if(G.videoDetails.videoId!==Z)return M.return(0);H.enableAudioControls=!!((l=G.playerConfig)==null?0:(q=l.inlinePlaybackConfig)==null?0:q.showAudioControls);G.trackingParams=H.getInlinePlaybackTrackingParams();
if(!H.inlinePlayer)return M.return(0);u={};if(t=_.X((B=H.videoPreviewData)==null?void 0:B.inlinePlaybackEndpoint,_.hZ))u.watch_endpoint=t;if(H.videoPreviewData){var r,w=(r=_.X(H.videoPreviewData.inlinePlaybackEndpoint,_.hZ))==null?void 0:r.startTimeSeconds;w!==void 0&&(G.playerConfig||(G.playerConfig={}),G.playerConfig.playbackStartConfig||(G.playerConfig.playbackStartConfig={}),G.playerConfig.playbackStartConfig.startPosition||(G.playerConfig.playbackStartConfig.startPosition={}),G.playerConfig.playbackStartConfig.startSeconds=
w,G.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(w*1E3))}H.inlinePlayer.loadVideoWithPlayerResponse(G,u);if(H.JSC$19420_playerPromise)return M.jumpTo(2);H.JSC$19420_playerPromise=H.inlinePlayer.getPlayerPromise();return M.yield(H.JSC$19420_playerPromise,3)}M.nextAddress!=2&&(D=M.yieldResult,D.setInlinePreview(!0),d=!_.V("web_imp_theater_bugfix"),D.setSizeStyle(!1,d),H.ytPlayerListenerBehavior.listenToPlayerEvents(D,H.JSC$19420_playerEvents),H.player=D,_.N5(H.hostElement,
"player-api-ready"));((e=H.opts)==null?0:e.showPlayerControls)&&H.videoPreviewData&&H.player&&(H.playerControlsData={playerResponse:G,isInlinePlayback:!0,thumbnailOverlays:H.videoPreviewData.thumbnailOverlays,playerApi:H.player},H.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!H.unroundCornersForPlayback,additionalButton:H.getAdditionalButtonType(H.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(n=H.opts)==null?void 0:n.hideTimeDisplay,hideScrubbingControls:(c=H.opts)==
null?void 0:c.hideScrubber,hideCaptionsToggleButton:(W=H.opts)==null?void 0:W.hideCaptionsToggleButton});return M.return(2)})};
_.g.revealPreviewUi=function(){var G=this;this.playbackIntentTriggered&&_.kWU(this,function(){G.hasThumbnailPositionChangedSinceTriggered()||(G.updateActiveState(!0),G.noAnimation=!1)})};
_.g.hasThumbnailPositionChangedSinceTriggered=function(){var G=this.positionData,H=this.getThumbnailPositionData();return(G==null?void 0:G.initialTopPosition)!==(H==null?void 0:H.initialTopPosition)||(G==null?void 0:G.initialHorizontalPosition)!==(H==null?void 0:H.initialHorizontalPosition)};
_.g.getThumbnailPositionData=function(){var G,H;if((H=this.opts)==null||!H.thumbnail)return null;H=this.opts.thumbnail;var Z=((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?!1:!0;var Q=H.getBoundingClientRect();G=Q.width;H=Q.height;var p=Q.top+window.scrollY;Q=Q.left+window.scrollX;var l=Z?Math.ceil(G):G;Z=Z?Math.ceil(H):H;var q=G/l;G={initialScale:q,initialTopPosition:p-12*q,finalTopPosition:p-12-(Z-H)/2,initialHorizontalPosition:Q-(12+(l-G)/2),finalHorizontalPosition:Q-12-(l-G)/
2,videoPreviewWidth:l,videoPreviewHeight:Z};return G};
_.g.updateActiveState=function(G){this.active=G;this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:G}))};
_.g.stopPlayer=function(G){G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(G)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Ui.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.g.deactivate=function(G){G=G===void 0?{}:G;G=G.resetWatchEndpointStartTime===void 0?!1:G.resetWatchEndpointStartTime;yV&&(yV.disconnect(),yV=null);this.stopPlayer({resetWatchEndpointStartTime:G});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.g.isValidThumbnailOverlayButton=function(G,H){G=G.thumbnailOverlayButtonRenderer;var Z;return!!G&&!!G.tooltip&&!((Z=G.icon)==null||!Z.iconType)&&H.includes(G.icon.iconType)};
_.g.isValidThumbnailOverlayButtonViewModel=function(G,H){var Z;G=_.X((Z=G.thumbnailOverlayButtonViewModel)==null?void 0:Z.overlayButton,_.HN);return!!G&&!!G.title&&!!G.iconName&&H.includes(G.iconName)};
_.g.getAdditionalButtonType=function(G){var H=this;if(_.V("web_imp_fastforward_button"))return{button:1};if(_.V("web_imp_miniplayer_button"))return{button:2};if(_.V("web_imp_playback_speed_button"))return{button:3};var Z=["BOX_STACK_3"],Q=(G||[]).filter(function(l){return H.isValidThumbnailOverlayButton(l,Z)}).map(function(l){return l.thumbnailOverlayButtonRenderer});
if(Q.length)return{button:4,thumbnailOverlayButtonRenderers:Q};var p=["BOX_STACK_3"];G=(G||[]).filter(function(l){return H.isValidThumbnailOverlayButtonViewModel(l,p)}).map(function(l){return _.X(l.thumbnailOverlayButtonViewModel.overlayButton,_.HN)});
if(G.length)return{button:4,thumbnailOverlayButtonViewModels:G}};
_.g.allowCaptions=function(){var G;return!((G=this.opts)==null?0:G.forceCaptionsOff)};
_.g.allowUnmuting=function(){var G;return this.enableAudioControls&&!((G=this.opts)==null?0:G.forceMutedVolume)};
_.g.beginStartTimeUpdater=function(){var G=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.TF(function(){G.updateWatchEndpointStartTime()},1E3)};
_.g.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.g.resetPreventProgressSaveTimer=function(){this.JSC$19420_preventProgressSaveTimer!==null&&(_.Ui.cancelJob(this.JSC$19420_preventProgressSaveTimer),this.JSC$19420_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.g.updateWatchEndpointStartTime=function(G){var H=this.videoPreviewData;if(this.player&&H!=null&&H.inlinePlaybackEndpoint&&!this.JSC$19420_preventProgressSaveTimer){G=G?0:Math.floor(this.player.getCurrentTime());var Z=_.X(H.navigationEndpoint,_.hZ);Z&&(Z.startTimeSeconds=G);if(H=_.X(H.inlinePlaybackEndpoint,_.hZ))H.startTimeSeconds=G}};
_.g.isShortcutClick=function(G){return!!G&&(G.ctrlKey||G.shiftKey||G.metaKey)};
_.g.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.g.openInMiniplayer=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1){Z=(H=G.videoPreviewData)==null?void 0:H.navigationEndpoint;if(!Z)return Q.return();_.PN().lockupActivation=!0;return Q.yield(_.y2x(_.tp().resolve(_.WM),Z),2)}_.PN().userActivation=!0;_.K0(Q)})};
_.g.navigateToWatch=function(G){var H,Z=(H=this.videoPreviewData)==null?void 0:H.navigationEndpoint;if(Z){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(Z,G,!0);else{var Q;_.V("web_thumbnail_to_watch_transition")&&((Q=this.opts)==null?0:Q.thumbnail)&&_.iy7(_.tp().resolve(_.jB),this.opts.thumbnail);_.N5(this.hostElement,"yt-navigate",{endpoint:Z})}this.deactivate()}};
_.g.getInlinePlaybackVideoId=function(){var G,H;return(H=_.X((G=this.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint,_.hZ))==null?void 0:H.videoId};
_.g.getInlinePlaybackTrackingParams=function(){var G,H;return(G=this.videoPreviewData)==null?void 0:(H=G.inlinePlaybackEndpoint)==null?void 0:H.clickTrackingParams};
_.g.hasMultipleVideoPreviews=function(){var G;return!!(((G=this.opts)==null?0:G.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.g.startPlaybackForNextVideo=function(){var G;(G=this.opts)!=null&&G.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())};
_.u4.Object.defineProperties(Wp.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.opts)==null?0:G.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.opts)==null||!G.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 G;if(Array.isArray((G=this.opts)==null?void 0:G.videoPreviewData)){var H;return(H=this.opts)==null?void 0:H.videoPreviewData[this.videoPreviewDataIndex]}var Z;return(Z=this.opts)==null?void 0:Z.videoPreviewData}}});
Wp.prototype.onIsAdsVideoChange=Wp.prototype.onIsAdsVideoChange;Wp.prototype.onInlinePreviewIsEnabledChange=Wp.prototype.onInlinePreviewIsEnabledChange;Wp.prototype.optsChanged=Wp.prototype.optsChanged;Wp.prototype.onMouseLeave=Wp.prototype.onMouseLeave;Wp.prototype.onPersistentPanelVisibleChange=Wp.prototype.onPersistentPanelVisibleChange;Wp.JSC$19419_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
Wp.JSC$19419_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"}];_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Wp.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],Wp.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Wp.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Wp.prototype,"componentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],Wp.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.qt.YtSparklesClickLocationBehavior),_.A("design:type",Object)],Wp.prototype,"ytSparklesClickLocationBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Wp.prototype,"opts",void 0);_.N([_.h(),_.A("design:type",Object)],Wp.prototype,"playerControlsData",void 0);_.N([_.h(),_.A("design:type",Object)],Wp.prototype,"playerControlsAppApi",void 0);
_.N([_.h(),_.A("design:type",Object)],Wp.prototype,"playerControlsOptions",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wp.prototype,"noAnimation",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wp.prototype,"hidden",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wp.prototype,"active",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wp.prototype,"playing",void 0);
_.N([_.h({selector:_.h1e}),_.A("design:type",Boolean)],Wp.prototype,"inlinePreviewIsEnabled",void 0);_.N([_.h(),_.A("design:type",String)],Wp.prototype,"pagePath",void 0);_.N([_.h({selector:_.P1e}),_.A("design:type",Boolean)],Wp.prototype,"isWatchPage",void 0);_.N([_.h({selector:_.KG.persistentPanelVisibleSelector}),_.A("design:type",Object)],Wp.prototype,"persistentPanelVisible",void 0);
_.N([_.z("videoPreviewData"),_.A("design:type",Object),_.A("design:paramtypes",[])],Wp.prototype,"thumbnailData",null);_.N([_.z("opts","active"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Wp.prototype,"hidePlayerControls",null);_.N([_.z("opts"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Wp.prototype,"isAdsVideo",null);
_.N([_.z("opts"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Wp.prototype,"roundedCornersSmall",null);_.N([_.z("opts"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Wp.prototype,"roundedCornersMedium",null);_.N([_.z("opts"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Wp.prototype,"roundedCornersLarge",null);
_.N([_.z("opts"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Wp.prototype,"unroundCornersForPlayback",null);_.N([_.z("opts","videoPreviewDataIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],Wp.prototype,"videoPreviewData",null);_.N([_.h(),_.A("design:type",Object)],Wp.prototype,"videoPreviewDataIndex",void 0);_.N([_.q6("#inline-player"),_.A("design:type",Object)],Wp.prototype,"inlinePlayer",void 0);
_.N([_.gx("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wp.prototype,"onPersistentPanelVisibleChange",null);_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[MouseEvent]),_.A("design:returntype")],Wp.prototype,"onMouseLeave",null);_.N([_.Jv("opts"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wp.prototype,"optsChanged",null);
_.N([_.Jv("inlinePreviewIsEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wp.prototype,"onInlinePreviewIsEnabledChange",null);_.N([_.gx("isAdsVideo"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wp.prototype,"onIsAdsVideoChange",null);_.N([_.O({is:"ytd-video-preview",disableElementRegistration:!0})],Wp);
_.m(Wp,"ytd-video-preview",function(){if(Lmi!==void 0)return Lmi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Lmi=G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var PEq,rwy,wgd;PEq=function(G){return _.V("kevlar_watch_cinematics_invisible")||G.fullscreen&&_.V("kevlar_watch_cinematics_invisible_in_fullscreen")||G.theater&&!G.fullscreen&&_.V("kevlar_watch_cinematics_invisible_in_theater")};
rwy=function(){var G=document.createElement("canvas"),H=G.getContext("2d");if(!H)throw Error("Lo");_.wP(G,{position:"absolute",width:"100%",height:"100%"});return{element:G,context:H}};
wgd=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.V("kevlar_watch_cinematics_css_blur")};
_.hLO=function(G,H,Z){return Math.abs(G-H)<=(Z||1E-6)};
_.CEd=function(G,H){return G==H?!0:G&&H?G.width==H.width&&G.height==H.height:!1};_.i04=new _.bn("notificationActionRenderer");var O0N=function(G){var H=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.sD;this.element.addEventListener("load",function(){H.loaded=!0;H.resolver.resolve(H.element)});
this.element.addEventListener("error",function(){H.failed=!0});
this.element.src=G};var a6_=function(G,H){this.image=G;this.frame=H};
a6_.prototype.drawToCanvas=function(G,H){var Z=this.frame.width/this.frame.columns,Q=this.frame.height/this.frame.rows,p=H.offsetX,l=H.offsetY;PEq(H)?(G.fillStyle=H.fullscreen?"#000":"#0f0f0f",G.fillRect(p,l,(H==null?void 0:H.width)||Z,(H==null?void 0:H.height)||Q)):G.drawImage(this.image,this.frame.column*Z,this.frame.row*Q,Z,Q,p,l,(H==null?void 0:H.width)||Z,(H==null?void 0:H.height)||Q)};
var yw0=function(G){this.color=G};
yw0.prototype.drawToCanvas=function(G,H){var Z=H.offsetX,Q=H.offsetY,p=H.width,l=H.height;G.fillStyle=PEq(H)?H.fullscreen?"#000":"#0f0f0f":this.color;G.fillRect(Z,Q,p,l)};var dw=function(G,H){_.NM.call(this);this.playerApi=H;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.M4(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();obI(this,G);m_N(this);this.update()};
_.T(dw,_.NM);dw.prototype.addEventListeners=function(){var G=this,H=function(){G.update()},Z=function(p){G.paused||(p.type==="newdata"&&(G.mosaics.clear(),U_I(G),eH(G)),m_N(G),G.update())},Q=function(){G.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",H);this.playerApi.addEventListener("onVideoDataChange",Z);this.playerApi.addEventListener("onStateChange",Q);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoProgress",H);G.playerApi.removeEventListener("onVideoDataChange",Z);G.playerApi.removeEventListener("onStateChange",Q)})};
var obI=function(G,H){G.cinematicContainerRenderer!==H&&(G.cinematicContainerRenderer=H,U_I(G),eH(G),G.colorStoreUpdateJobId=_.Ui.addLowPriorityJob(function(){var Z;if((Z=G.cinematicContainerRenderer.colorStore)!=null&&Z.sampledColors){Z=Infinity;for(var Q=_.I(G.cinematicContainerRenderer.colorStore.sampledColors),p=Q.next();!p.done;p=Q.next()){p=p.value;var l=Number(p.key);l!==0&&l<Z&&(Z=l);l=_.c$(p.value);G.colorStore.set(p.key,l)}G.colorStoreTimeInterval=Z}}))},U_I=function(G){G.colorStoreUpdateJobId&&
(_.Ui.cancelJob(G.colorStoreUpdateJobId),G.colorStoreUpdateJobId=void 0);
G.colorStore.clear();G.currentStoryboardColor=void 0},RLq=function(G,H){var Z;
return(Z=G.getStoryboardFrame(H))==null?void 0:Z.url};
dw.prototype.onPlayerStateChange=function(){this.update()};
dw.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var m_N=function(G){var H=G.getStoryboardFrame(0);H&&(H=new _.M4(H.width/H.columns,H.height/H.rows),_.CEd(G.currentStoryboardSize,H)||(G.currentStoryboardSize=H,G.publish("STORYBOARD_SIZE_CHANGED",G.currentStoryboardSize)))},NJN=function(G,H){G.currentStoryboardIndex=H;
G.pendingStoryboardIndex=NaN;H=G.getStoryboardFrame(G.currentStoryboardIndex);G.currentStoryboard=new a6_(G.mosaics.get(H.url).element,H);G.publish("STORYBOARD_CHANGED",G.currentStoryboard);G.lastUpdateTime=(0,_.t3)()};
dw.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var eH=function(G){G.currentStoryboardIndex=NaN;G.pendingStoryboardIndex=NaN;G.currentStoryboard&&(G.currentStoryboard=void 0,G.publish("STORYBOARD_CHANGED",void 0));G.lastUpdateTime=NaN};
dw.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)eH(this);else{var G=this.playerApi.getPlayerState(1);if(G===-1||G===5||G===0)eH(this);else if(isNaN(this.lastUpdateTime)||!((0,_.t3)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(G=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){G=""+Math.round(G*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var H=this.colorStore.get(G);H?H!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=H,this.currentStoryboard=new yw0(H),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.t3)()):(_.Rp(new _.C$("Could not find color for timestamp: "+G,this.cinematicContainerRenderer)),eH(this))}else eH(this);else Aw7(this,G)}};
var Aw7=function(G,H){var Z=G.getStoryboardFrameIndex(H);if(Z!==G.currentStoryboardIndex&&Z!==G.pendingStoryboardIndex){H=RLq(G,Z);var Q=G.mosaics.get(H);Q?Q.loaded&&NJN(G,Z):(G.pendingStoryboardIndex=Z,Z=new O0N(H),G.mosaics.set(H,Z),Z.resolver.promise.then(function(){if(!G.isDisposed()&&!G.paused&&!isNaN(G.pendingStoryboardIndex)){var p=RLq(G,G.pendingStoryboardIndex);if(p){var l;(l=G.mosaics.get(p))!=null&&l.loaded&&NJN(G,G.pendingStoryboardIndex)}else eH(G)}}))}};
dw.prototype.getStoryboardFrameIndex=function(G){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(G,H)};
dw.prototype.getStoryboardFrame=function(G){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,Z,Q;return((Q=(Z=this.playerApi).getStoryboardFrame)==null?void 0:Q.call(Z,G,H))||null};
dw.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var V0=function(G,H,Z,Q){Q=Q===void 0?!1:Q;_.wI.call(this);this.cinematicContainerRenderer=H;this.playerApi=Z;this.theater=this.fullscreen=!1;var p;this.ambientLightThemeEnabled=!Q&&!!(H==null?0:(p=H.config)==null?0:p.enableInLightTheme);this.ambientFullscreenEnabled=Q&&_.V("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=Q&&_.V("web_cinematic_theater_mode");this.container=document.createElement("div");G.appendChild(this.container);var l;if(_.V("web_cinematic_theater_mode")||_.V("web_cinematic_fullscreen")||
(H==null?0:(l=H.config)==null?0:l.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);x_y(this);G=this.ambientV2Container||this.container;this.backCanvas=rwy();this.frontCanvas=rwy();G.appendChild(this.backCanvas.element);G.appendChild(this.frontCanvas.element);this.storyboardManager=new dw(H,this.playerApi);_.T$(this,this.storyboardManager);this.addEventListeners();Li7(this)?EbY(this,100+nx(this)*3*2,100+nx(this)*3*2):YPd(this);
Fi2(this,this.storyboardManager.currentStoryboard)};
_.T(V0,_.wI);var x_y=function(G){G.ambientV2Container?b0I(G):(_.wP(G.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+G5x(G)+", "+HE2(G)+")"}),wgd()&&_.wP(G.container,"filter","blur("+_.eA("cinematic_watch_css_filter_blur_strength",40)+"px)"))},b0I=function(G){if(G.ambientV2Container){var H=G.playerApi.getVideoAspectRatio();
_.wP(G.container,{"aspect-ratio":""+H,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.wP(G.ambientV2Container,{"aspect-ratio":""+H,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+G5x(G)+", "+HE2(G)+")"});wgd()&&_.wP(G.ambientV2Container,"filter","blur("+_.eA("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
V0.prototype.setFullscreen=function(G,H){this.fullscreen=G;this.theater=!!H;x_y(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),G=this.storyboardManager.currentStoryboard,sNO(this),G&&ZEM(this,G)};
V0.prototype.addEventListeners=function(){var G=this,H=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(p){Fi2(G,p)}),Z=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){YPd(G)});
this.addOnDisposeCallback(function(){G.storyboardManager.unsubscribeByKey(H);G.storyboardManager.unsubscribeByKey(Z)});
if(this.ambientV2Container){var Q=function(){b0I(G)};
this.playerApi.addEventListener("onVideoDataChange",Q);this.addOnDisposeCallback(function(){G.playerApi.removeEventListener("onVideoDataChange",Q)})}};
var YPd=function(G){if(!Li7(G)){var H=G.storyboardManager.currentStoryboardSize;isNaN(H.width)||isNaN(H.height)||EbY(G,Number(H.width)+nx(G)*3*2,Number(H.height)+nx(G)*3*2)}},EbY=function(G,H,Z){G.backCanvas.element.width=H;
G.backCanvas.element.height=Z;G.frontCanvas.element.width=H;G.frontCanvas.element.height=Z},Li7=function(G){return G.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},Fi2=function(G,H,Z){Z=Z===void 0?!1:Z;
var Q=G.frontCanvas.element.getAnimations()[0];Q?(Q.pause(),G.backCanvas.context.globalAlpha=Number(getComputedStyle(G.frontCanvas.element).opacity),G.frontCanvas.element.style.opacity="0",Q.finish()):G.backCanvas.context.globalAlpha=1;G.backCanvas.context.drawImage(G.frontCanvas.element,0,0,G.backCanvas.element.width,G.backCanvas.element.height);sNO(G);H&&ZEM(G,H);H=H?G.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.eA("cinematic_watch_fade_out_duration",500);Q=_.eA("cinematic_watch_transition_frame_rate")/
1E3;var p={};Q&&(p={easing:"steps("+Math.round(H*Q)+")"});(Z===void 0?0:Z)||G.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:H,iterations:1},p));G.frontCanvas.element.style.opacity="1"},sNO=function(G){var H=G.ambientLightThemeEnabled||G.ambientTheaterModeEnabled,Z=G.ambientLightThemeEnabled||G.ambientFullscreenEnabled;
G.frontCanvas.context.fillStyle=G.theater&&H||G.fullscreen&&Z?"#000":"#0f0f0f";wgd()||(G.frontCanvas.context.filter="blur(0)");G.frontCanvas.context.fillRect(0,0,G.frontCanvas.element.width,G.frontCanvas.element.height)},ZEM=function(G,H){wgd()||(G.frontCanvas.context.filter="blur("+nx(G)+"px)");
G.frontCanvas.context.globalAlpha=G.fullscreen&&G.ambientFullscreenEnabled||G.theater&&G.ambientTheaterModeEnabled?_.eA("cinematic_watch_effect_letterbox_opacity",.4):_.eA("cinematic_watch_effect_opacity",.4);var Z={offsetX:nx(G)*3,offsetY:nx(G)*3,theater:G.theater,fullscreen:G.fullscreen};Li7(G)&&(Z.width=100,Z.height=100);H.drawToCanvas(G.frontCanvas.context,Z);G.frontCanvas.context.globalAlpha=1},nx=function(G){var H;
return(H=G.cinematicContainerRenderer.config.blurStrength)!=null?H:5},G5x=function(G){var H,Z;
if((G.fullscreen||G.theater)&&((H=G.cinematicContainerRenderer.config)==null?0:(Z=H.watchFullscreenConfig)==null?0:Z.colorSourceWidthMultiplier))return G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var Q;return(Q=G.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Q:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier},HE2=function(G){var H,Z;
if((G.fullscreen||G.theater)&&((H=G.cinematicContainerRenderer.config)==null?0:(Z=H.watchFullscreenConfig)==null?0:Z.colorSourceHeightMultiplier))return G.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var Q;return(Q=G.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?Q:G.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
V0.prototype.disposeInternal=function(){_.wI.prototype.disposeInternal.call(this);this.container.remove()};
V0.prototype.clear=function(){Fi2(this,void 0,!0)};
V0.prototype.pause=function(){this.storyboardManager.pause()};var QNy;QNy=_.e4(function(){var G,H,Z=!((H=(G=document.createElement("canvas")).getContext)==null||!H.call(G,"2d")),Q;G=!((Q=CSS)==null||!Q.supports("filter: blur(0)"));Q=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var p;return Z&&G&&Q&&!((p=CSS)==null||!p.supports("aspect-ratio: 1 / 1"))});
_.$m=function(G,H){_.NM.call(this);this.container=G;this.playerApi=H;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=plU(this);this.update()};
_.T(_.$m,_.NM);_.lwO=function(G){var H=document.documentElement.hasAttribute("dark");G.isDarkModeEnabled=H;G.update()};
_.gry=function(G,H){G.settingEnabled=H;G.update()};
_.$m.prototype.setFullscreen=function(G,H){this.fullscreen=G;this.theater=!!H;this.update()};
_.IwI=function(G,H){G.cinematicContainerRenderer=H;G.cinematicContainerRenderer&&(G.cinematicsVe=_.bl(G.isShorts()?227858:159022),_.fQ(_.gr(),G.cinematicsVe),G.loggingClientData={watchCinematicContainerData:{presentationStyle:G.cinematicContainerRenderer.presentationStyle}});G.update()};
_.$m.prototype.isShorts=function(){var G,H;return((G=this.cinematicContainerRenderer)==null?void 0:(H=G.config)==null?void 0:H.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.$m.prototype.isAllowed=function(){var G;if(G=QNy()){var H,Z,Q;G=((Z=this.cinematicContainerRenderer)==null?void 0:Z.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((Q=this.cinematicContainerRenderer)==null||!Q.colorStore)||((H=this.cinematicContainerRenderer)==null?void 0:H.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(G)if(_.V("web_cinematics_pausing")){var p,l;G=this.isDarkModeEnabled||!!((p=this.cinematicContainerRenderer)==
null?0:(l=p.config)==null?0:l.enableInLightTheme)}else{var q,u;p=!!((q=this.cinematicContainerRenderer)==null?0:(u=q.config)==null?0:u.enableInLightTheme)&&(_.xI("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);G=this.isDarkModeEnabled||p}if(q=G){var B,t;q=!((t=(B=this.prefersReducedMotionQuery)==null?void 0:B.matches)!=null&&t)}return q};
_.qAq=function(G){(G=G.currentCinematicEffect)!=null&&(G=G.storyboardManager,G.paused=!1,m_N(G),G.update())};
_.$m.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var plU=function(G){if(!_.V("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var H=window.matchMedia("(prefers-reduced-motion: reduce)"),Z=function(){G.update()};
H.addListener(Z);G.addOnDisposeCallback(function(){H.removeListener(Z)});
return H}};
_.$m.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var G=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new V0(this.container,G,this.playerApi,this.isDarkModeEnabled),_.T$(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var H=this.currentCinematicEffect;H.cinematicContainerRenderer!==
G&&(H.cinematicContainerRenderer=G,obI(H.storyboardManager,G),x_y(H));G=_.lf();_.g8(0,194,!0);G.save();G=_.$k();this.cinematicsVe&&G&&_.w8(G,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(G=_.$k(),this.cinematicsVe&&G&&_.hU(G,[this.cinematicsVe],!1,this.loggingClientData),_.S_(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.u4.Object.defineProperties(_.$m.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var pgy;var l6y;_.Vy({_template:function(){if(l6y!==void 0)return l6y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=
G.content,Z=H.insertBefore;pgy===void 0&&(pgy=document.createElement("template"));var Q=pgy;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return l6y=G},
is:"tp-yt-iron-pages",behaviors:[_.hS,_.hv],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Zmx;_.QjO=function(){if(_.V("kevlar_home_skeleton")&&!Zmx){var G=document.querySelector("#home-page-skeleton");G&&(_.$K("hgcr"),_.Ku(G),Zmx=!0)}};
Zmx=!1;_.sX=new _.bn("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var yM0,mX4,UXO,Rj7,NfN,AMI,xXy,ER0,FvI,Hw4,Zw4,pd_,stI,bWO,Gxq,ITq;_.Ch=function(G){var H=G.clientMessageId;var Z=G.playerOffsetMs;var Q=G.pageContext;G=G.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:H},!!Z&&{playerOffsetMs:Z},!!Q&&{pageContext:Q},!!G&&{userInputText:G})}};
_.aUd=function(G,H,Z){H=H===void 0?5:H;if(H!==0){var Q=typeof G==="function"?G():document.querySelector(G);Q?(Z==null?0:Z.enableSmartFocus)?_.RRf(Q):Q.focus():setTimeout(function(){_.aUd(G,H-1,Z)},500)}};
yM0=function(G){return String.raw.apply(String,[{raw:G}].concat(_.OP(_.Ry.apply(1,arguments).map(function(H){return H instanceof Array?H.join(""):H}))))};
mX4=function(G){var H=_.Ry.apply(1,arguments),Z=H.length;if(!Array.isArray(G)||!Array.isArray(G.raw)||G.length!==G.raw.length||!_.Oqa&&G===G.raw||!(_.Oqa&&!_.aMp||_.r0(G))||Z+1!==G.length)throw new TypeError("$");return new oRq(Object.freeze({strings:Object.freeze(G),args:Object.freeze(H)}))};
UXO=function(G){return _.NBb(_.R9W(G&16777215))<.5};
Rj7=function(G,H,Z){var Q=Z.minimumRowsOfVideosBetweenSections===void 0?1:Z.minimumRowsOfVideosBetweenSections;return G<(Z.minimumRowsOfVideosAtStart===void 0?2:Z.minimumRowsOfVideosAtStart)||H!==null&&G-H<=Q?!1:!0};
NfN=function(G,H){var Z=0,Q=0;G=_.I(G);for(var p=G.next();!p.done;p=G.next()){var l=p.value;if(l.richItemRenderer)l.richItemRenderer.rowIndex=Q,l.richItemRenderer.colIndex=Z++,Z===H&&(Z=0,Q++);else if(l.richGroupRenderer&&l.richGroupRenderer.numColumns!==void 0)l.richGroupRenderer.rowIndex=Q,l.richGroupRenderer.colIndex=Z,Z+=l.richGroupRenderer.numColumns,Z===H&&(Z=0,Q++);else if(l.richSectionRenderer){var q=p=void 0;if(l=_.X((p=l)==null?void 0:(q=p.richSectionRenderer)==null?void 0:q.content,_.nx7))l.rowIndex=
Q++}}};
AMI=function(G,H){var Z=H.contentElement;H=H.rendererToTagNameMap;if(Z&&H&&H.size!==0){for(var Q=new Map,p=_.I(Z.children),l=p.next();!l.done;l=p.next()){l=l.value;var q=l.tagName.toLowerCase(),u=Q.get(q);u||(u=[],Q.set(q,u));u.push(l)}if(Q.size!==0)for(p=Math.min(G.length,Z.children.length),l=new Map,q=0;q<p;q++){u=Object.keys(G[q])[0];u=H.get(u);if(!u)break;var B=l.get(u);B===void 0&&(B=0,l.set(u,B));var t=Q.get(u);if(!t||B>=t.length)break;l.set(u,B+1);u=t[B];B=Z.children[q];B!==u&&(_.m3=!0,_.U6.set(u,
!0),Z.insertBefore(u,B),_.U6.delete(u),_.m3=!1)}}};
xXy=function(G,H,Z,Q,p,l,q){Q=Q===void 0?{}:Q;if(!G||!G.length)return{orderedContent:[]};G=G.slice();var u=[],B=[];p=null;for(var t=0,D=function(x){B.sort(function(L,H3){return H3.skippedOnRow-L.skippedOnRow});
for(var U,R=(U=B.shift())==null?void 0:U.content;R;)!R.richSectionRenderer&&x||u.push(R),U=void 0,R=(U=B.shift())==null?void 0:U.content},d=void 0,e=void 0,n=new Set;G.length>0||B.length>0;){for(var c=[],W=H;W>0;){var M=void 0,r=void 0,w=(r=B[0]&&B[0].skippedOnRow<t?(M=B.shift())==null?void 0:M.content:void 0)!=null?r:G.shift();
if(!w)break;if(w.richItemRenderer)M=w.richItemRenderer.targetId,r=void 0,M&&((r=q)==null?0:r.has(M))&&(r=q.get(M),!d||r&&r.timestamp>d.timestamp)&&(d=r,e&&n.add(e),e=M),c.push(w),W--;else if(w.richGroupRenderer&&w.richGroupRenderer.numColumns!==void 0)w.richGroupRenderer.numColumns<=W?(c.push(w),W-=w.richGroupRenderer.numColumns):W===H&&w.richGroupRenderer.numColumns>H?(c.push({richGroupRenderer:Object.assign({},w.richGroupRenderer,{numColumns:H})}),W=0):B.push({content:w,skippedOnRow:t});else if(w.richSectionRenderer)if(Rj7(t,
p,Q)&&W===H){u.push(w);p=t;t++;continue}else B.push({content:w,skippedOnRow:t});else if(w.continuationItemRenderer){D(!0);u.push(w);W=0;break}if(W===0)u.push.apply(u,_.OP(c));else if(!Z&&G.length===0){D(!1);u.push.apply(u,_.OP(c));W=0;break}}t++;d&&(u.push(d.content),t++);e=d=void 0}NfN(u,H);l&&AMI(u,l);return{orderedContent:u,pinnedContentNotShownTargetIds:n}};
_.Lvd=function(G){return{continuationCommand:{token:G,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
ER0=function(){return _.Ry.apply(0,arguments).flat().filter(function(G){return G}).join(";")};
FvI=function(){return mX4(YjO,ER0.apply(null,_.OP(_.Ry.apply(0,arguments))))};
Hw4=function(G,H){if(H){var Z=_.mm().getState().entities.flowStateEntity,Q=bWO(G),p=[H];Q&&Q!==H&&p.push(Q);var l=!0,q;if(Z&&G.flowStateEntityKey&&((q=Z[G.flowStateEntityKey])==null?void 0:q.primaryButtonDisabled)!==void 0){var u;l=!((u=Z[G.flowStateEntityKey])==null||!u.primaryButtonDisabled)}Gxq(G,Q!=null?Q:H,p,l)}};
Zw4=function(G){return _.wU(_.mm(),function(H){return H.entities.flowStateEntity},function(H,Z){if(G.flowStateEntityKey){var Q,p=H==null?void 0:(Q=H[G.flowStateEntityKey])==null?void 0:Q.currentStepId,l;
Z=Z==null?void 0:(l=Z[G.flowStateEntityKey])==null?void 0:l.currentStepId;l=_.mm().getState().talkToRecs;if(p&&p!==Z){var q;H=(H==null?void 0:(q=H[G.flowStateEntityKey])==null?void 0:q.stepIdStack)||Object.keys(l.stepStates);q=!stI(l==null?void 0:l.stepStates[p]);Gxq(G,p,H,q)}}})};
pd_=function(G){return _.wU(_.mm(),Qt4,function(H){var Z=bWO(G);if(Z){var Q=Object.keys(H.stepStates);H=!stI(H==null?void 0:H.stepStates[Z]);Gxq(G,Z,Q,H)}})};
stI=function(G){var H=Object.keys((G==null?void 0:G.selectionStates)||{}).reduce(function(l,q){return l||(G==null?void 0:G.selectionStates[q].isSelected)},!1),Z,Q,p=!!(G==null?0:(Z=G.userQuery)==null?0:(Q=Z.userQuery)==null?0:Q.trim());
return H||p};
bWO=function(G){if(G.flowStateEntityKey){var H,Z,Q=(H=_.mm().getState().entities.flowStateEntity)==null?void 0:(Z=H[G.flowStateEntityKey])==null?void 0:Z.currentStepId;if(Q)return Q}};
Gxq=function(G,H,Z,Q){_.mm().dispatch(_.uP("flowStateEntity",G.flowStateEntityKey,{currentStepId:H,stepIdStack:Z,key:G.flowStateEntityKey,primaryButtonDisabled:Q}))};
_.lT2=function(G,H){return _.Hv(G.entities,"youchatPendingResponseEntity",H)};
_.gw7=function(G){return function(H){_.aK(_.uP("youchatPendingResponseEntity",G,{entityKey:G,isPendingResponse:H}))}};
ITq=function(G){G==null||G.addEventListener("DOMLoaded",function(){G.goToAndPlay(G.totalFrames-48,!0)})};
_.Bt=function(G){this.__isSoyCss=!0;this.css=yM0.apply(null,[G.strings].concat(_.OP(G.args)))};
_.Bt.prototype.toString=function(){return this.css};
var oRq=function(){_.Bt.apply(this,arguments)};
_.T(oRq,_.Bt);var YjO=_.CM(["",""]);var qR0;var SRq;_.Vy({_template:function(){if(SRq!==void 0)return SRq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
var H=G.content,Z=H.insertBefore;qR0===void 0&&(qR0=document.createElement("template"));var Q=qR0;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return SRq=G},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var ua7=new _.bn("flowRootRenderer");var BGd=new _.bn("chipsShelfViewModel");var J_Y=new _.bn("responsiveContainerConfiguration");_.tp4=new _.bn("engagementPanelSectionListRenderer");var kxx=function(){this.horizontal=!1},D7U=function(G,H){G.horizontal=H};
kxx.prototype.position=function(G,H,Z,Q){Q=Q===void 0?1:Q;G=this.delta(G)*Q+H;Q=Math.max(H,Z);return G>=Math.min(H,Z)&&G<=Q?G:Z};
kxx.prototype.axis=function(G){G=this.direction(G);return G==="up"||G==="down"?"Y":"X"};var iQ=function(G,H,Z){H=H===void 0?_.W9():H;this.target=G;this.manager=H;this.touchAction=Z;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
iQ.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(_.OP(this.events)));for(var G=_.I(this.events),H=G.next();!H.done;H=G.next())this.listen(H.value)}};
iQ.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.OP(this.events)));for(var G=_.I(this.events),H=G.next();!H.done;H=G.next())this.unlisten(H.value)}};
iQ.prototype.listen=function(G){this.eventMap[G]&&this.target.addEventListener(G,this.eventMap[G])};
iQ.prototype.unlisten=function(G){this.eventMap[G]&&this.target.removeEventListener(G,this.eventMap[G])};var OZ=function(){kxx.apply(this,arguments)};
_.T(OZ,kxx);OZ.prototype.direction=function(G){var H=G.detail;G=H.deltaY;H=H.deltaX;return G&&!this.horizontal?G>0?"down":"up":H&&this.horizontal?H>0?"right":"left":"none"};
OZ.prototype.distance=function(G){return Math.abs(this.delta(G))};
OZ.prototype.delta=function(G){var H=this.direction(G),Z=G.detail;G=Z.deltaX;Z=Z.deltaY;return H==="up"||H==="down"?Z||0:G||0};
OZ.prototype.velocity=function(G){var H=this.direction(G),Z=G.detail;G=Z.velocityX;Z=Z.velocityY;return Math.abs(H==="up"||H==="down"?Z||0:G||0)};_.aG=function(G,H,Z,Q,p,l){p=p===void 0?new OZ:p;l=l===void 0?_.W9():l;iQ.call(this,H,l,Q);var q=this;this.element=G;this.target=H;this.config=Z;this.input=p;this.manager=l;this.events=["panstart","panmove","panend"];this.onPanStart=function(){q.config.draggingClass&&q.element.classList.add(q.config.draggingClass);q.config.startAction&&q.config.startAction()};
this.onPanMove=function(u){var B=d7I(q,u);if(B){q.move(u,B);B.fade&&q.fade(u,B);var t=q.input.direction(u);B.moveAction&&B.moveAction(eNq(q,u,B),t)}};
this.onPanEnd=function(u){var B,t,D,d,e,n;return _.S(function(c){if(c.nextAddress==1){q.animationRequestId&&cancelAnimationFrame(q.animationRequestId);q.animationRequestId=void 0;B=d7I(q,u);if(!B)return c.return();t=B;D=t.triggerAction;d=t.fade;e=t.disableFinish;n=t.translateBack;var W=q.input.velocity(u),M=q.input.distance(u),r=q.threshold(B);return W>.3&&M>10||M>r?e?c.jumpTo(6):d?c.yield(nw0(q,u),6):c.yield(Vpy(q,u,B),6):n?c.yield(q.translateBack(u),3):c.jumpTo(3)}c.nextAddress!=3&&D&&D();q.config.draggingClass&&
q.element.classList.remove(q.config.draggingClass);q.reset();_.K0(c)})};
G=Object.keys(Z.triggers);this.directions=new Set(G);D7U(this.input,this.directions.has("right")||this.directions.has("left"))};
_.T(_.aG,iQ);_.aG.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var d7I=function(G,H){H=G.input.direction(H);return G.config.triggers[H]};
_.aG.prototype.move=function(G,H){var Z=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var Q=Z.input.axis(G),p=Z.input.position(G,Z.config.startPosition,H.endPosition,H.moveRatio||1);Z.element.style.transform="translate"+Q+"("+p+"px)";Z.animationRequestId=void 0}))};
var eNq=function(G,H,Z){var Q=Z.moveRatio||1;Z=Math.abs(G.config.startPosition-Z.endPosition);return Math.min(G.input.distance(H)*Q,Z)/Z};
_.aG.prototype.fade=function(G,H){var Z=H.endOpacity;G=eNq(this,G,H);G>0&&(this.element.style.opacity=""+(((Z||0)-1)*G+1))};
_.aG.prototype.threshold=function(G){return G.threshold?G.threshold:Math.abs(G.endPosition-this.config.startPosition)/3};
var Vpy=function(G,H,Z){var Q,p,l,q,u,B,t;return _.S(function(D){if(D.nextAddress==1)return Q=G.input.delta(H)+G.config.startPosition,p=G.input.axis(H),l=Z,q=l.endPosition,u=l.transitionEndPosition,t=(B=u)!=null?B:q,D.yield(G.element.animate([{transform:"translate"+p+"("+Q+"px)"},{transform:"translate"+p+"("+t+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+p+"("+t+"px)";_.K0(D)})};
_.aG.prototype.translateBack=function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1){if(!H.element.style.transform)return p.return();Z=H.input.axis(G);Q=H.config.startPosition;return p.yield(H.element.animate([{transform:H.element.style.transform},{transform:"translate"+Z+"("+Q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}H.element.style.transform="translate"+Z+"("+Q+"px)";_.K0(p)})};
var nw0=function(G,H){var Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return Z=G.input.delta(H)+G.config.startPosition,Q=G.input.axis(H),p=Z+70,l=G.element.style.opacity===""?1:G.element.style.opacity,q.yield(G.element.animate([{transform:"translate"+Q+"("+Z+"px)",opacity:l},{transform:"translate"+Q+"("+p+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.element.style.transform="translate"+Q+"("+p+"px)";G.element.style.opacity="0";_.K0(q)})};var yJ=function(){var G=_.uq.apply(this,arguments)||this;G._noAccessors=!0;G.scrollRate=3;G.autoScrollAnimationStart=0;G.autoScrollPaused=!1;G.autoScrollRafId=0;return G};
_.T(yJ,_.uq);_.g=yJ.prototype;_.g.created=function(){var G=this;this.boundAutoScrollHandler=function(H){G.autoScroll(H)}};
_.g.detached=function(){this.hostElement.removeEventListener("mouseout",_.pH(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.pH(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.pH(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.g.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.pH(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.pH(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.pH(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.pH(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.pH(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.pH(this,this.endAutoScroll)),this.endAutoScroll())};
_.g.autoScroll=function(G){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=G);var H;if(H=!this.autoScrollPaused&&this.scrollTarget)H=this.scrollTarget,H=H.scrollHeight-H.scrollTop!==H.clientHeight;H&&(H=1E3/this.scrollRate,G-=this.autoScrollAnimationStart,G>H&&(this.scrollTarget.scrollTop+=Math.ceil(G/H),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.g.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.g.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
yJ.prototype.autoScrollEnabledChanged=yJ.prototype.autoScrollEnabledChanged;_.N([_.h(),_.A("design:type",Object)],yJ.prototype,"scrollRate",void 0);_.N([_.h(),_.A("design:type",Object)],yJ.prototype,"scrollTarget",void 0);_.N([_.h(),_.A("design:type",Boolean)],yJ.prototype,"autoScrollEnabled",void 0);_.N([_.gx("autoScrollEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],yJ.prototype,"autoScrollEnabledChanged",null);_.N([_.BG()],yJ);_.$7U=[yJ.prototype];var XdY;var oG=function(){var G=_.C.apply(this,arguments)||this;G.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};G.forceDarkTheme=!1;G.forceLightTheme=!1;G.dynamicTextHeight=94;G.hasOverflowButton=!1;G.isInfeedModernization=!1;return G};
_.T(oG,_.C);_.g=oG.prototype;_.g.computeUrlImg=function(G){if(G)return _.At(G.thumbnails)};
_.g.getLogoHeight=function(G){return this.logoWithPadding(G)?"31":"24"};
_.g.getLogoClassName=function(G){return this.logoWithPadding(G)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.g.logoWithPadding=function(G){var H,Z;return(G=(H=G.thumbnails)==null?void 0:(Z=H[0])==null?void 0:Z.height)&&G%31===0?!0:!1};
_.g.sendImpressionEndpoints=function(G){G.impressionEndpoints&&_.L9(this.hostElement,G.impressionEndpoints)};
_.g.observeBasicPalette=function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.colorData)==null?void 0:H.basicColorPaletteData;Z?_.Do(this.hostElement,Z):_.Do(this.hostElement,{})};
_.g.observeDataChanged=function(){var G;this.dynamicTextHeight=((G=this.data)==null?0:G.supplementalText)?74:94;var H;this.hasSupplementalText=!((H=this.data)==null||!H.supplementalText);var Z,Q,p,l;G=(Z=this.data)==null?void 0:(Q=Z.actionButton)==null?void 0:(p=Q.buttonRenderer)==null?void 0:(l=p.colorData)==null?void 0:l.basicColorPaletteData;var q,u,B;if(!((q=this.data)==null?0:(u=q.actionButton)==null?0:(B=u.buttonRenderer)==null?0:B.style)&&G){this.computeIsInfeedModernization(this.data)||(G.borderColor=
G.foregroundTitleColor);var t,D;this.set("data.actionButton.buttonRenderer",_.oN.unsafeClone((t=this.data)==null?void 0:(D=t.actionButton)==null?void 0:D.buttonRenderer))}};
_.g.observeDataForCounterfactual=function(){if(_.V("kevlar_banner_cf_extra_logging")){var G;((G=this.data)==null?0:G.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.g.computeSupplementalStyle=function(){var G;if((G=this.data)!=null&&G.supplementalText){var H,Z,Q;if((H=this.data)==null?0:(Z=H.colorData)==null?0:(Q=Z.basicColorPaletteData)==null?0:Q.foregroundActivatedColor)return G=_.X9(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+G+"; --yt-endpoint-hover-color:"+G+"; --yt-endpoint-visited-color:"+G+"; --yt-formatted-string-bold-font-weight:700;"}};
_.g.computeForcedDarkTheme=function(){var G,H,Z,Q=(G=this.data)==null?void 0:(H=G.actionButton)==null?void 0:(Z=H.buttonRenderer)==null?void 0:Z.style,p,l,q;G=UXO(((p=this.data)==null?void 0:(l=p.colorData)==null?void 0:(q=l.basicColorPaletteData)==null?void 0:q.backgroundColor)||0);return Q&&G};
_.g.computeForcedLightTheme=function(){var G,H,Z,Q=(G=this.data)==null?void 0:(H=G.actionButton)==null?void 0:(Z=H.buttonRenderer)==null?void 0:Z.style,p,l,q;G=!UXO(((p=this.data)==null?void 0:(l=p.colorData)==null?void 0:(q=l.basicColorPaletteData)==null?void 0:q.backgroundColor)||0);return Q&&G};
_.g.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.g.computeHasTitle=function(G){return!!G.title};
_.g.computeTitleMaxFontSize=function(G){return this.computeHasOverflowButton(G)?28:64};
_.g.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.g.computeIsInfeedModernization=function(){var G,H,Z,Q,p=(G=this.data)==null?void 0:(H=G.actionButton)==null?void 0:(Z=H.buttonRenderer)==null?void 0:(Q=Z.colorData)==null?void 0:Q.basicColorPaletteData;return(p==null?void 0:p.backgroundColor)===452984831||(p==null?void 0:p.backgroundColor)===218103808};
oG.prototype.observeDataForCounterfactual=oG.prototype.observeDataForCounterfactual;oG.prototype.observeDataChanged=oG.prototype.observeDataChanged;oG.prototype.observeBasicPalette=oG.prototype.observeBasicPalette;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],oG.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],oG.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],oG.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],oG.prototype,"hasSupplementalText",void 0);_.N([_.h(),_.A("design:type",Object)],oG.prototype,"dismissButtonOverrides",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.A("design:type",Boolean)],oG.prototype,"hasTitle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.A("design:type",Object)],oG.prototype,"forceDarkTheme",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.A("design:type",Object)],oG.prototype,"forceLightTheme",void 0);_.N([_.h(),_.A("design:type",Object)],oG.prototype,"dynamicTextHeight",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.A("design:type",Object)],oG.prototype,"hasOverflowButton",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.A("design:type",Object)],oG.prototype,"isInfeedModernization",void 0);_.N([_.gx("data.colorData.basicColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oG.prototype,"observeBasicPalette",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oG.prototype,"observeDataChanged",null);_.N([_.gx("data.isVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oG.prototype,"observeDataForCounterfactual",null);_.N([_.O({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],oG);
_.m(oG,"ytd-banner-promo-renderer",function(){if(XdY!==void 0)return XdY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return XdY=G},{mode:1});var c_O;var TGx;var fTq;var vwd=function(){return _.C.apply(this,arguments)||this};
_.T(vwd,_.C);_.N([_.h(),_.A("design:type",Object)],vwd.prototype,"data",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vwd.prototype,"ytRendererBehavior",void 0);_.N([_.O({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],vwd);
_.m(vwd,"ytd-hashtag-grid-tile-renderer",function(){if(fTq!==void 0)return fTq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fTq=G},{mode:1});var mc=function(){return _.C.apply(this,arguments)||this};
_.T(mc,_.C);mc.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
mc.prototype.updateRichGridTrendingHashtagsVisibility=function(){var G,H;if(((G=this.data)==null||!G.isExpanded)&&(H=this.data)!=null&&H.tiles){G=this.data.tiles.length;H=G>this.richGridItemsPerRow?this.richGridItemsPerRow+1:G;var Z=Math.ceil(G/H);this.fullyVisibleRows=G%H===1&&Z===2?1:Math.min(Z,2);this.isShowMoreVisible=this.fullyVisibleRows<Z}};
mc.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
mc.prototype.updateRichGridTrendingHashtagsVisibility=mc.prototype.updateRichGridTrendingHashtagsVisibility;_.N([_.h(),_.A("design:type",Object)],mc.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Number)],mc.prototype,"fullyVisibleRows",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],mc.prototype,"isShowMoreVisible",void 0);_.N([_.h({selector:_.cv,value:0}),_.A("design:type",Number)],mc.prototype,"richGridItemsPerRow",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],mc.prototype,"ytdReduxBehavior",void 0);_.N([_.gx("data","richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mc.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.N([_.O({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],mc);
_.m(mc,"ytd-hashtag-grid-shelf-renderer",function(){if(TGx!==void 0)return TGx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TGx=G},{mode:1});var W2_;var zN4;var UZ=function(){var G=_.C.apply(this,arguments)||this;G.visibleVideos=[];G.hiddenVideos=[];G.modern=_.V("web_modern_buttons");G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(UZ,_.C);_.g=UZ.prototype;_.g.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.g.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"}}}};
_.g.dataChanged=function(){var G=this;this.requestElementsPerRow();var H,Z;this.currentColorPalette=this.isDarkTheme?(H=this.data)==null?void 0:H.darkColorData:(Z=this.data)==null?void 0:Z.lightColorData;var Q;if((Q=this.currentColorPalette)==null?0:Q.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.q2(this,function(){G.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.g.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.g.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.g.computeIsFirstFeedItem=function(G){return G};
_.g.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.g.getCurrentLogo=function(G,H){if(G)return H?G.darkLogoImage:G.lightLogoImage};
_.g.computeTitleStyle=function(G){var H;if((H=this.data)!=null&&H.title&&G&&G.textPrimary!==void 0)return"color:"+_.X9(G.textPrimary)+";"};
_.g.computeSubtitleStyle=function(G){var H;if((H=this.data)!=null&&H.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.X9(G.textSecondary)+";"};
_.g.computeDismissIconStyle=function(G){if(this.data&&this.data.dismissButton&&G&&G.textPrimary!==void 0)return"--yt-button-color:"+_.X9(G.textPrimary)+";"};
_.g.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.X9(G.textPrimary)+";--yt-spec-icon-active-other:"+_.X9(G.textPrimary)+";"};
_.g.computeBackgroundStyle=function(G){if(G&&this.data){var H="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var Z=_.At((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);Z&&(H+='background-image:url("'+Z+'");')}G.backgroundColor!==void 0&&(H+="background-color:"+_.c$(G.backgroundColor)+";");return H}};
_.g.computeButton=function(){var G,H=Object.assign({},_.X((G=this.data)==null?void 0:G.showMoreButton,_.Yl));if(this.modern&&H){H.style="STYLE_MONO_OUTLINE";var Z;if(G=(Z=this.currentColorPalette)==null?void 0:Z.textPrimary)H.colorData={basicColorPaletteData:{foregroundTitleColor:G,borderColor:G}}}return H};
_.g.shouldShowBottomButton=function(G,H){return!(G==null?0:G.header)&&!(G==null||!G.primaryButton)&&H<3};
_.g.checkExpanded=function(G){this.isExpanded=G&&G.content?this.hiddenVideos.length===0:!0};
_.g.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.g.getLogoHeight=function(G){return this.logoWithPadding(G)?"26":"20"};
_.g.getLogoImageId=function(G){return this.logoWithPadding(G)?"logo-image-with-padding":"logo-image"};
_.g.computeHasSectionHeader=function(G){return!!G.header};
_.g.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var G;if((G=this.data.primaryButton)==null?0:G.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 H;((H=this.data.dismissButton)==null?0:H.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var Z,Q;((Z=this.data)==null?0:(Q=Z.primaryButton)==null?0:Q.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.g.setVisibleVideos=function(G){if(this.data&&this.data.content)if(this.data.content.length){var H=this.data.content.length;this.data.header?G?(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.slimItemsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow-1),H))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.g.setHasMovieRenderer=function(){var G;if((G=this.data)!=null&&G.content){var H;this.hasMovieRenderer=!!_.X((H=this.data)==null?void 0:H.content[0],_.W$4)}else this.hasMovieRenderer=!1};
_.g.requestElementsPerRow=function(){_.N5(this.hostElement,"yt-request-elements-per-row")};
_.g.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var G=_.I(this.hiddenMediaRenderers),H=G.next();!H.done;H=G.next())H.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(G=_.F9(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&G.focus()}};
_.g.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.g.logoWithPadding=function(G){var H,Z,Q;return(G=(H=this.getCurrentLogo(G,this.isDarkTheme))==null?void 0:(Z=H.thumbnails)==null?void 0:(Q=Z[0])==null?void 0:Q.height)&&G%31===0?!0:!1};
_.g.onUpdateElementsPerRowAction=function(G,H,Z){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G);Z&&this.slimItemsPerRow!==Z&&(this.slimItemsPerRow=Z)};
UZ.prototype.slimItemsPerRowChanged=UZ.prototype.slimItemsPerRowChanged;UZ.prototype.elementsPerRowChanged=UZ.prototype.elementsPerRowChanged;UZ.prototype.dataChanged=UZ.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],UZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],UZ.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],UZ.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],UZ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],UZ.prototype,"currentColorPalette",void 0);_.N([_.h(),_.A("design:type",Array)],UZ.prototype,"visibleVideos",void 0);_.N([_.h(),_.A("design:type",Array)],UZ.prototype,"hiddenVideos",void 0);
_.N([_.h(),_.A("design:type",Object)],UZ.prototype,"primaryButton",void 0);_.N([_.h({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],UZ.prototype,"elementsPerRow",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],UZ.prototype,"isDarkTheme",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],UZ.prototype,"isExpanded",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],UZ.prototype,"largeTitle",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],UZ.prototype,"hasMovieRenderer",void 0);_.N([_.h(),_.A("design:type",Number)],UZ.prototype,"slimItemsPerRow",void 0);_.N([_.h(),_.A("design:type",Boolean)],UZ.prototype,"showLightVideoMetadata",void 0);_.N([_.h(),_.A("design:type",Boolean)],UZ.prototype,"showDarkVideoMetadata",void 0);_.N([_.h(),_.A("design:type",Number)],UZ.prototype,"videoMetadataColor",void 0);
_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],UZ.prototype,"miniMode",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.A("design:type",Boolean)],UZ.prototype,"isFirstFeedItem",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.A("design:type",Boolean)],UZ.prototype,"hasSectionHeader",void 0);
_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],UZ.prototype,"roundedContainer",void 0);_.N([_.S9("#visible-video-container ytd-rich-grid-media"),_.A("design:type",Array)],UZ.prototype,"visibleMediaRenderers",void 0);_.N([_.S9("#hidden-video-container ytd-rich-grid-media"),_.A("design:type",Array)],UZ.prototype,"hiddenMediaRenderers",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],UZ.prototype,"modern",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UZ.prototype,"dataChanged",null);_.N([_.gx("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UZ.prototype,"elementsPerRowChanged",null);_.N([_.gx("slimItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UZ.prototype,"slimItemsPerRowChanged",null);
_.N([_.O({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],UZ);
_.m(UZ,"ytd-brand-video-shelf-renderer",function(){if(zN4!==void 0)return zN4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zN4=G},{mode:1});var K27;var RG=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(RG,_.C);_.g=RG.prototype;_.g.attached=function(){var G=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",G);this.onDarkModeToggledAction(G)};
_.g.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"}}}};
_.g.dataChanged=function(){this.requestElementsPerRow();var G,H;this.currentColorPalette=this.isDarkTheme?(G=this.data)==null?void 0:G.darkColorData:(H=this.data)==null?void 0:H.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.g.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.g.computeIsFirstFeedItem=function(G){return G};
_.g.onDarkModeToggledAction=function(G){G!==this.isDarkTheme&&this.set("isDarkTheme",G);this.data&&(this.currentColorPalette=G?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(G),this.updateButtonPalette())};
_.g.shouldShowThumbnailInMetadata=function(G){return G<=1};
_.g.computeVideoMetadataColor=function(){if(this.data){var G;if((G=this.currentColorPalette)==null?0:G.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.g.computeTitleStyle=function(G){var H;if((H=this.data)!=null&&H.title&&G&&G.textPrimary!==void 0)return"color:"+_.X9(G.textPrimary)+";"};
_.g.computeSubtitleStyle=function(G){var H;if((H=this.data)!=null&&H.subtitle&&G&&G.textSecondary!==void 0)return"color:"+_.X9(G.textSecondary)+";"};
_.g.computeOverflowButtonStyle=function(G){if(this.data&&this.data.overflowButton&&G.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.X9(G.textPrimary)+";--yt-spec-icon-active-other:"+_.X9(G.textPrimary)+";"};
_.g.computeBackgroundStyle=function(G){if(G&&this.data){var H="";G.backgroundColor!==void 0&&(H+="background-color:"+_.c$(G.backgroundColor)+";");return H}};
_.g.computeHasOverflowButton=function(G){return!!G.overflowButton};
_.g.updateButtonPalette=function(){if(this.data){var G;if((G=this.data.primaryButton)==null?0:G.buttonRenderer){var H;if((H=this.currentColorPalette)==null?0:H.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var Z;((Z=this.currentColorPalette)==null?0:Z.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)})}}};
_.g.requestElementsPerRow=function(){_.N5(this.hostElement,"yt-request-elements-per-row")};
_.g.updateTitleSpec=function(){var G;(G=this.data)!=null&&G.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")};
_.g.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
RG.prototype.elementsPerRowChanged=RG.prototype.elementsPerRowChanged;RG.prototype.dataChanged=RG.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],RG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],RG.prototype,"ytdDismissibleItemBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],RG.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],RG.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],RG.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],RG.prototype,"currentColorPalette",void 0);_.N([_.h(),_.A("design:type",Object)],RG.prototype,"primaryButton",void 0);
_.N([_.h({reflectToAttribute:!0,value:3}),_.A("design:type",Number)],RG.prototype,"elementsPerRow",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],RG.prototype,"isDarkTheme",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],RG.prototype,"titleSize",void 0);_.N([_.h(),_.A("design:type",Number)],RG.prototype,"videoMetadataColor",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],RG.prototype,"miniMode",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.A("design:type",Boolean)],RG.prototype,"isFirstFeedItem",void 0);_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],RG.prototype,"roundedContainer",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.A("design:type",Boolean)],RG.prototype,"hasOverflowButton",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RG.prototype,"dataChanged",null);_.N([_.gx("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RG.prototype,"elementsPerRowChanged",null);_.N([_.O({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],RG);
_.m(RG,"ytd-brand-video-singleton-renderer",function(){if(K27!==void 0)return K27;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return K27=G},{mode:_.LH("kevlar_poly_si_batch_j070")?1:2});var Mpy;var jtU=_.y(function(G){var H=G.data;return _.J(_.ib,{data:function(){return H().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(H().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var Z=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":Z=88;break a;default:Z=88}return Z},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return H().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Dm"),r_2=_.y(function(G){var H=G.metadataRow;
var Z=G.delimiter;return _.J(_.Cl,{each:function(){return H().textParts||[]},
keyBy:"INDEX"},function(Q,p){return _.J(_.kI,null,_.J(_.Fe,{text:Q,noWrap:!0,userInput:!0}),_.J(PaI,{delimiter:Z,max:function(){return H().textParts.length},
index:p}))})},"Em"),PaI=_.y(function(G){var H=G.delimiter;
var Z=G.max;var Q=G.index;return _.J(_.k,{cond:function(){return(H==null?void 0:H())&&Z()-1>Q()},
then:function(){return _.J("span",null,H)}})},"Fm"),wdM=_.y(function(G){var H=G.data;
G={};return _.J("yt-profile-page-header-information-view-model",{class:_.bb("profilePageHeaderInformationViewModelHost",(G.profilePageHeaderInformationViewModelMobile=!1,G))},_.J(_.k,{cond:function(){return H().onTap},
then:function(){return _.J(_.S8,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.Tt(H().onTap)}},_.J(_.SP,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:jtU}))},
else:function(){return _.J("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.J(_.SP,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:jtU}))}}),_.J("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.J(_.k,{cond:function(){return H().onTap},
then:function(){return _.J(_.SP,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(Z){var Q=Z.data;
return _.J(_.S8,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.Tt(Q().onTap)}},_.J(_.Fe,{text:function(){return Q().title}}))}})},
else:function(){return _.J(_.SP,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(Z){var Q=Z.data;
return _.J(_.Fe,{text:function(){return Q().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.J(_.SP,{data:function(){return H().metadata}},{profilePageHeaderMetadataViewModel:function(Z){var Q=Z.data;
return _.J(_.k,{cond:function(){return Q().metadataRows},
then:function(p){return _.J("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.J(_.Cl,{each:p,keyBy:"INDEX"},function(l,q){return _.J(_.kI,null,_.J(r_2,{metadataRow:l,delimiter:" \u2022 "}),_.J(PaI,{delimiter:" \u2022 ",max:function(){return p().length},
index:q}))}))}})}})))},"Gm");
wdM.idomCompat=!0;_.RX(wdM,"yt-profile-page-header-information-view-model",{props:{data:_.b3}});var Ns=function(){return _.C.apply(this,arguments)||this};
_.T(Ns,_.C);Ns.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ns.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ns.prototype,"data",void 0);_.N([_.O({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Ns);
_.m(Ns,"ytd-effect-pivot-header-view-model",function(){if(Mpy!==void 0)return Mpy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Mpy=
G},{mode:1});var hNq;var Ao=function(){return _.C.apply(this,arguments)||this};
_.T(Ao,_.C);Ao.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ao.prototype,"data",void 0);_.N([_.O({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Ao);
_.m(Ao,"ytd-source-pivot-header-renderer",function(){if(hNq!==void 0)return hNq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return hNq=G},{mode:1});_.RX(_.ffc,"yt-card-view-model",{props:{data:_.b3,className:_.b3,isSelected:_.b3}});var Qt4=_.zDd.talkToRecsStateSelector;_.RX(_.y(function(G){var H=function(){return _.X(G.data().flowRoot,ua7)};
_.mR(function(){var Z=H(),Q=function(){},p=function(){};
if(Z){var l,q,u,B=((u=_.X((l=H())==null?void 0:(q=l.steps)==null?void 0:q[0],_.h$))==null?void 0:u.stepId)||"";Hw4(Z,B);Q=Zw4(Z);p=pd_(Z)}_.oM(function(){var t=H();t&&_.mm().dispatch(_.uP("flowStateEntity",t.flowStateEntityKey));Q();Q=function(){};
p();p=function(){};
_.aK(_.Tjj())})});
return _.J("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.J(_.eo,{contentId:function(){return G.data().contentId}},function(){return _.J("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.J(_.k,{cond:H,
then:function(Z){return _.J(_.xvc,{data:Z})}}))}))},"Hm"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.b3}});_.RX(_.y(function(){return _.J("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.J("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.J("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.J(_.XGc,null)),_.J(_.oWw,{data:{rows:1},isExploreHub:!0}))},"Im"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.RX(_.y(function(G){var H=G.data;var Z=G.standardUnitMinWidth;G=_.I((0,_.NHt)(H));var Q=G.next().value,p=G.next().value,l=function(){var u,B=(u=Q())==null?void 0:u.contents;return B==null||B.length===0},q=function(){p(Object.assign({},Q(),{contents:[]}))};
return _.J("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.aX(_.tk({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var u=_.X(H().chipsShelf,BGd);if(u!=null&&u!=null&&u.autoselectChipOnVisible){var B,t,D=_.X(u==null?void 0:(B=u.contents)==null?void 0:B[(t=u.autoselectedChipIndex)!=null?t:0],_.sg);D&&D.tapCommand&&_.zt(D.tapCommand)}}}))},_.J(_.eo,{contentId:function(){return H().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.J("div",null,_.J("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.J(_.SP,{data:function(){return H().header}},{sectionHeaderViewModel:function(u){return _.J(_.v_,{data:u.data,
disableHorizontalPadding:!0})}})),_.J("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.J(_.SP,{data:function(){return H().chipsShelf}},{chipsShelfViewModel:function(u){return _.J(_.f8,{data:u.data,
callback:q,selectionBehavior:1})}})),_.J("div",null,_.J(_.k,{cond:l,
then:function(){return _.J("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.J(_.oWw,{data:{rows:1},isExploreHub:!0}))}}),_.J(_.SP,{data:function(){var u;
return(u=Q())==null?void 0:u.contents}},{richShelfRenderer:function(u){return _.J(_.Zx4,{data:u.data,
isInnerShelf:!0,standardUnitMinWidth:Z})}})))}))},"Jm"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.b3,
standardUnitMinWidth:_.b3}});var x4=function(){return _.C.apply(this,arguments)||this};
_.T(x4,_.C);
x4.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}}};
x4.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.N([_.v(_.Up),_.A("design:type",Object)],x4.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],x4.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],x4.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Number)],x4.prototype,"standardUnitMinWidth",void 0);_.N([_.O({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],x4);
_.m(x4,"ytd-rich-section-renderer",function(){if(W2_!==void 0)return W2_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return W2_=G},{mode:_.LH("kevlar_poly_si_batch_j029")?
1:2});_.RX(_.pAm,"yt-profile-identity-info-view-model",{props:{data:_.b3,hideDivider:_.b3,isChannelInfoCard:_.b3}});_.RX(_.suj,"yt-page-header-view-model",{props:{data:_.b3,noPadding:_.b3,enableBanner:_.b3,cinematicContainerTopbarOffset:_.b3,allowCinematicContainerOverflow:_.b3,displayAsSidebar:_.b3,displayAsPanel:_.b3,alwaysUseMediumTextDescription:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=function(){var p;return(p=H().numColumns)!=null?p:2},Q=function(){return Z()>1?3:2};
G={};return _.J("ytd-rich-grid-group",{class:_.bb("ytdRichGridGroupHost",(G.ytdRichGridGroupHostFirstColumn=function(){return H().colIndex===0},G)),
style:_.pI({"--ytd-rich-grid-group-num-columns":Z,"--ytd-rich-grid-items-per-group":Q})},_.J("div",{class:"ytdRichGridGroupContents"},_.J(_.SP,{data:function(){var p;return(p=H().contents)==null?void 0:p.slice(0,Q())}},{richItemRenderer:function(p){return _.J(_.HxG,{data:p.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Km"),"ytd-rich-grid-group",{props:{data:_.b3}});var Lh=function(){var G=_.C.apply(this,arguments)||this;G.resizeOnObserverInit=!1;G.isInlinePreviewDisabled=_.V("web_disable_inline_preview");G.disableStickyFilterBar=!1;G.transparentBackgroundChipsBar=!1;G.hideChipsBar=!1;G.isWatchDefaultLayout=!0;G.continuationShowButton=!1;G.rowReducedHorizontalMargin=!1;G.useCompactList=!1;G.manualDownloadsPresent=!1;G.smartDownloadsPresent=!1;G.isOnline=!1;G.shouldRenderDownloadsBanner=!1;G.shouldRenderDownloadsBannerUpsell=!1;G.hasOptedIntoSmartDownloads=!1;
G.elementsPerRow=4;G.typographyBump=!1;G.slimItemsPerRow=1;G.pageLoadingFromNavigation=!1;G.resizeObserver=null;G.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"};G.rendererToTagNameMap=new Map(Object.entries(G.contentMapping()).map(function(H){var Z=
_.I(H);H=Z.next().value;Z=Z.next().value;return[H,Z.component]}));
G.insertedContent=new Map;return G};
_.T(Lh,_.C);_.g=Lh.prototype;_.g.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var G=_.I(_.F9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=G.next();!H.done;H=G.next())H.value.useCompactList=this.useCompactList};
_.g.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var G=_.I(_.F9(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=G.next();!H.done;H=G.next())H=H.value,H.sizing=this.sizing,H.typographyBump=this.typographyBump};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.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]]"}}}};
_.g.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}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.pH(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22227_throttledOnResize=new _.Zo(this.resizeObserved,_.eA("rich_grid_resize_delay_ms",50),this)};
_.g.detached=function(){var G;(G=this.resizeObserver)==null||G.disconnect();document.removeEventListener("yt-page-type-changed",_.pH(this,this.onPageChange))};
_.g.insertRichSection=function(G){var H=G.richItemTargetId;G=G.richSectionRendererToInsert;H&&G&&(this.insertedContent.set(H,{content:G,timestamp:Date.now()}),this.reflowContent())};
_.g.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.g.computeIsInlinePreviewEnabled=function(G,H,Z){return _.V("web_disable_inline_preview")?!1:!Z&&_.Bjc({miniplayerIsActive:G,miniplayerPlaybackState:H})};
_.g.computeSizing=function(){var G=_.iUW(this.data);if(G||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return G?this.useCompactList?"COMPACT":G:this.miniMode?"COMPACT":"STANDARD"};
_.g.updateItemMinAndMaxWidth=function(){var G=_.eA("rich_grid_max_item_width",500);G>0&&_.ZI(this.hostElement,{"--ytd-rich-grid-item-max-width":G+"px"});var H;G=this.getRichItemMinWidth((H=this.hostElement)==null?void 0:H.clientWidth);G>0&&_.ZI(this.hostElement,{"--ytd-rich-grid-item-min-width":G+"px"})};
_.g.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.g.resizeObserved=function(){_.xk(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.g.onPageChange=function(){var G=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.xk(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Ui.addJob(function(){G.pageLoadingFromNavigation=!1;G.setMasthead();G.maybeSetBigYoodle();G.forceRefreshAndLog();G.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.g.dataChanged=function(){var G=this;_.xk(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.q2(this,function(){G.updateRichItemGridPositions();G.contentsElement&&_.ZI(G.hostElement,{"--ytd-rich-grid-content-offset-top":G.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.g.initResizeObserver=function(){var G=this;if(window.ResizeObserver){var H;(H=this.resizeObserver)==null||H.disconnect();var Z=!1;this.resizeObserver=new ResizeObserver(function(){if(Z){var Q;(Q=G.resizeObserver)==null||Q.disconnect();var p;(p=G.JSC$22227_throttledOnResize)==null||p.fire();requestAnimationFrame(function(){var q;(q=G.JSC$22227_throttledOnResize)==null||q.fire();G.initResizeObserver()})}else if(Z=!0,G.resizeOnObserverInit){var l;
(l=G.JSC$22227_throttledOnResize)==null||l.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.g.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.xk(this.hostElement,"ytd-rich-item-index-update-action")};
_.g.updateElementsPerRow=function(){_.xk(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.g.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.g.onRichShelfRendererCollapse=function(G){if(this.shownItems){var H=G.detail;G=this.shownItems.findIndex(function(Q){var p,l;return((l=_.X(Q==null?void 0:(p=Q.richSectionRenderer)==null?void 0:p.content,_.nx7))==null?void 0:l.trackingParams)===H});
var Z=G+1;G<0||Z>=this.contentsElement.children.length||!this.shownItems[Z].richItemRenderer||this.contentsElement.children[Z].scrollIntoView({behavior:"smooth",block:"start"})}};
_.g.onSoftReloadPage=function(){this.scrollUpToTop()};
_.g.handleRerenderDownloadsData=function(){_.V("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.g.handlePlaylistRemoveVideosAction=function(G){var H;if(((H=_.X(G,_.C2T))==null?0:H.setVideoIds)&&this.data&&this.data.contents){G=_.X(G,_.C2T).setVideoIds;for(H=this.data.contents.length-1;H>=0;){var Z=_.X(this.data.contents[H],_.wS);(Z=Z&&_.X(Z.content,_.Ls))&&Z.setVideoId&&G.includes(Z.setVideoId)&&this.splice("data.contents",H,1);H--}this.updateIndices()}};
_.g.updateIndices=function(){if(this.data&&this.data.contents)for(var G=0;G<this.data.contents.length;G++)this.set("data.contents."+G+".richItemRenderer.index",_.aq(String(G+1)))};
_.g.hasTopRowInlinePlayableVideoWithEndorsement=function(G){var H;return!((H=G.slice(0,this.getItemsPerRow()))==null||!H.some(function(Z){var Q;Z=_.X(Z==null?void 0:(Q=Z.richItemRenderer)==null?void 0:Q.content,_.bN);var p;return(Z==null?void 0:Z.inlinePlaybackEndpoint)&&(Z==null?void 0:(p=Z.thumbnailOverlays)==null?void 0:p.some(function(l){return l.thumbnailOverlayEndorsementRenderer}))}))};
_.g.refreshGridLayoutNew=function(G,H,Z,Q){var p=Q.postsPerRow;var l=Q.slimItemsPerRow;var q=Q.gameCardsPerRow;Q=Q.miniGameCardsPerRow;var u;if((u=this.data)==null||!u.contents||!this.containerWidth)return!1;var B;if((B=this.data.responsiveContainerConfiguration)==null?0:B.responsiveSize){var t=_.$9f(this.data.responsiveContainerConfiguration,this.containerWidth),D;u=_.vV(Object.assign({},t,{standardUnitMinWidth:(D=this.data)==null?void 0:D.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&t.isCompactList)}else u=_.vV({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(t=this.data)==null?void 0:t.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=u.typographyBump;D=!1;if(G||this.elementsPerRow!==u.numItems||this.postsPerRow!==p||this.slimItemsPerRow!==l||this.gameCardsPerRow!==
q||this.miniGameCardsPerRow!==Q||this.gutter!==u.gutter)D=this.elementsPerRow!==u.numItems,this.elementsPerRow=u.numItems,this.postsPerRow=p,this.slimItemsPerRow=l,this.gameCardsPerRow=q,this.miniGameCardsPerRow=Q,this.gutter=u.gutter,this.itemWidth=u.itemWidth,this.reflowContent(H),_.ZI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":u.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(Z);this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:u.maxContainerWidth}));return D};
_.g.refreshGridLayout=function(G,H){var Z,Q=(Z=this.hostElement)==null?void 0:Z.clientWidth;this.containerWidth=this.adjustRichGridWidth(Q,!0);var p;if((p=this.data)==null||!p.contents||!this.containerWidth)return G&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(G=!0,this.pendingForceReflow=!1);Z=this.getRichItemMinWidth(Q);var l=this.isShortsPanel?146:194,q=this.getMiniGameCardMinWidth(),u=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.eA("rich_grid_default_max_items_per_row",
6);Q=Z=this.calcElementsPerRow(Z,u);(p=Z<=3&&this.miniModeAllowed())&&(Z=this.calcElementsPerRow(240,4));var B=this.calcMaxSlimElementsPerRow(Z,u,this.isDefaultGrid);u=this.calcElementsPerRow(l,B);var t=this.calcElementsPerRow(this.isCompactGrid?l:154,B);l=this.calcElementsPerRow(this.isCompactGrid?l:q,B);q=!1;if(this.sizing)return this.refreshGridLayoutNew(G,H,p,{postsPerRow:Q,slimItemsPerRow:u,gameCardsPerRow:t,miniGameCardsPerRow:l});if(G||this.elementsPerRow!==Z||this.postsPerRow!==Q||this.slimItemsPerRow!==
u||this.gameCardsPerRow!==t||this.miniGameCardsPerRow!==l)q=this.elementsPerRow!==Z,this.elementsPerRow=Z,this.postsPerRow=Q,this.slimItemsPerRow=u,this.gameCardsPerRow=t,this.miniGameCardsPerRow=l,this.reflowContent(H),this.updateElementsPerRow(),_.ZI(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)&&_.ZI(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(p);_.xk(this.hostElement,"yt-rich-grid-layout-refreshed");return q};
_.g.getRichItemMinWidth=function(G){var H=_.eA("rich_grid_min_item_width",310);if(!_.V("kevlar_disable_min_width_override")){var Z,Q;H=(Q=(Z=this.data)==null?void 0:Z.minItemWidth)!=null?Q:H}return H+_.jYU(G)};
_.g.calcMaxSlimElementsPerRow=function(G,H,Z){return(Z===void 0?0:Z)?G===1?2:G%2===0?G/2*3:G+2:H*2};
_.g.adjustRichGridWidth=function(G,H){var Z=_.V("disable_rich_grid_guide_compensation");if(!this.isWatch&&!Z){Z=_.tp().resolve(_.Jp(_.Lr));var Q=Z==null?void 0:Z.guideElement;if(!(!Z||Z.getData()||Q!=null&&Q.opened||Z.getMiniGuideVisible()))if(Z.canFitPersistentGuide(G)&&Z.getGuideExpandsAutomatically()){var p,l,q=Number((p=window.getComputedStyle(this.hostElement))==null?void 0:(l=p.getPropertyValue("--app-drawer-width"))==null?void 0:l.replace("px",""));G-=q||0}else if(Z.canFitMiniGuide(G)){var u;
p=Number((q=window.getComputedStyle(this.hostElement))==null?void 0:(u=q.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:u.replace("px",""));G-=p||0}}G>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(G-=H?32:48));return G};
_.g.calcElementsPerRow=function(G,H){var Z=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),Q=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((Z+Q)/(G+Q))||1,H)};
_.g.reflowContent=function(G){var H=this;if(!this.isReflowing){this.isReflowing=!0;var Z,Q,p=!!((Z=this.data)==null?0:(Q=Z.contents)==null?0:Q.some(function(u){return _.X(u,_.Oz)}));
Z=this.getItemsPerRow();var l;Q=(l=this.data)==null?void 0:l.reflowOptions;G&&(_.$K("rgr_s"),_.q2(this,function(){_.$K("rgr_nrf")}));
G={};(l=_.F9(this.hostElement).querySelector("#contents"))&&(G={contentElement:l,rendererToTagNameMap:this.rendererToTagNameMap});l=(l=this.data.contents)?l.slice():[];p=xXy(l,Z,p,Q,this.getRichGridStyle(),G,this.insertedContent);var q=p.orderedContent;if(p=p.pinnedContentNotShownTargetIds)for(p=_.I(p),Z=p.next();!Z.done;Z=p.next())this.insertedContent.delete(Z.value);p=function(){H.shownItems=q;H.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(q),_.q2(this,p)):p()}};
_.g.getFirstRowItems=function(G){for(var H=[],Z=0;Z<G.length;Z++){var Q=void 0,p=void 0,l=void 0,q=void 0,u=void 0,B=void 0;if(((Q=G[Z])==null?void 0:(p=Q.richItemRenderer)==null?void 0:p.rowIndex)===0||((l=G[Z])==null?void 0:(q=l.richGroupRenderer)==null?void 0:q.rowIndex)===0||((u=G[Z])==null?void 0:(B=u.richSectionRenderer)==null?void 0:B.rowIndex)===0)H.push(G[Z]);else break}return H};
_.g.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.g.resetInsertedContentIfNeeded=function(){(_.V("web_explore_hub_on_hover")||_.V("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.g.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.g.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()};
_.g.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.g.terminateVideoPreview=function(){_.xk(this.hostElement,"yt-terminate-video-preview-action")};
_.g.updateRichItemGridPositions=function(){var G={gridData:{gridColumnCount:this.elementsPerRow}},H;((H=this.data)==null?0:H.trackingParams)&&(H=_.$k())&&_.a5(H,_.BT(this.data.trackingParams),G);_.xk(this.hostElement,"ytd-rich-item-index-update-action")};
_.g.miniModeAllowed=function(){return this.isChannelPage};
_.g.getMiniGameCardMinWidth=function(){return 154};
_.g.updateMiniMode=function(G){this.miniMode=this.miniModeAllowed()&&G;this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_RICH_GRID_MINI_MODE",payload:G}))};
_.g.isCurrentPage=function(){return location.pathname===this.pagePath};
_.g.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var G=_.tp().resolve(_.o0).getCurrentPage();G&&G.setScrollTop(0)}};
_.g.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.g.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.g.maybeSetBigYoodle=function(){var G,H=(G=this.data)==null?void 0:G.bigYoodle;this.bigYoodleData!==H&&(this.bigYoodleData=H)};
_.g.setMasthead=function(){var G;((G=this.data)==null?0:G.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.g.getRichGridStyle=function(){var G,H;return(H=(G=this.data)==null?void 0:G.style)!=null?H:"RICH_GRID_STYLE_UNKNOWN"};
_.g.onIsShortsGridChange=function(){var G=this.ytdReduxBehavior,H=G.dispatch,Z=this.getRichGridStyle();H.call(G,_.Lo({type:"SET_RICH_GRID_STYLE",payload:Z}))};
_.u4.Object.defineProperties(Lh.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var G=_.tp().resolve(_.o0).getCurrentPage(),H,Z,Q;return(((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_audio_pivot"||_.V("web_enable_channel_pivot_panel")&&((Z=this.data)==null?void 0:Z.targetId)==="browse-feedFEsfv_channel_pivot"||_.V("web_enable_effect_pivot_panel")&&((Q=this.data)==null?void 0:Q.targetId)==="browse-feedFEsfv_effect_pivot")&&(G==null?void 0:G.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.V("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null?0:G.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.tp().resolve(_.o0).getCurrentPage())==null?void 0:G.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var G;return((G=_.tp().resolve(_.o0).getCurrentPage())==null?void 0:G.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 G;return(((G=this.data)==null?void 0:G.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.data)==null?0:G.enableContentSpecificAspectRatio)||((H=this.data)==null?0:(Z=H.responsiveContainerConfiguration)==null?0:Z.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.eA("web_continuation_handler_margin",0):0}}});
Lh.prototype.onIsShortsGridChange=Lh.prototype.onIsShortsGridChange;Lh.prototype.onReloadContinuationFinish=Lh.prototype.onReloadContinuationFinish;Lh.prototype.reflowContent=Lh.prototype.reflowContent;Lh.prototype.handleRerenderDownloadsData=Lh.prototype.handleRerenderDownloadsData;Lh.prototype.onRichShelfRendererCollapse=Lh.prototype.onRichShelfRendererCollapse;Lh.prototype.onRequestElementsPerRow=Lh.prototype.onRequestElementsPerRow;Lh.prototype.contentLengthChanged=Lh.prototype.contentLengthChanged;
Lh.prototype.dataChanged=Lh.prototype.dataChanged;Lh.prototype.onSizingChange=Lh.prototype.onSizingChange;Lh.prototype.onUseCompactListChange=Lh.prototype.onUseCompactListChange;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.hS),_.A("design:type",Object)],Lh.prototype,"ironResizableBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Lh.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],Lh.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Lh.prototype,"componentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Lh.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Lh.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],Lh.prototype,"miniMode",void 0);_.N([_.h({value:[]}),_.A("design:type",Array)],Lh.prototype,"shownItems",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Lh.prototype,"isReflowing",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Lh.prototype,"isFilteredFeed",void 0);_.N([_.h({selector:_.M8j}),_.A("design:type",Boolean)],Lh.prototype,"guideIsExpanded",void 0);
_.N([_.h({selectorArgs:["entitySelectorType"],selector:function(G,H){if(_.V("kevlar_modern_downloads_page")&&H&&H!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":H=G.entities;var Z=_.nN(H),Q=_.Vn(H),p=_.LHf(G),l=_.xZf(G),q=_.Ego(G),u=_.V8v(H),B=_.Bv(Z),t=_.$a(H);return _.t12(Z,Q,u,_.Tve(H),p,l,B,t,q,_.FHj(G),_.vv(G));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return G=_.nN(G.entities),_.D9j(G);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return G=
_.dZU(G.entities),_.d9W(G);default:_.Rp(new _.C$("Error: entitySelectorType defined but not matched in selector.",G,H))}}}),
_.A("design:type",Object)],Lh.prototype,"entityDrivenRichGridData",void 0);_.N([_.h(),_.A("design:type",Object)],Lh.prototype,"resizeOnObserverInit",void 0);_.N([_.h(),_.A("design:type",Object)],Lh.prototype,"bigYoodleData",void 0);_.N([_.h(),_.A("design:type",Object)],Lh.prototype,"mastheadData",void 0);_.N([_.h(),_.A("design:type",Boolean)],Lh.prototype,"isInlinePreviewDisabled",void 0);_.N([_.h(),_.A("design:type",Object)],Lh.prototype,"disableStickyFilterBar",void 0);
_.N([_.h(),_.A("design:type",Object)],Lh.prototype,"transparentBackgroundChipsBar",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lh.prototype,"hideChipsBar",void 0);_.N([_.h(),_.A("design:type",Object)],Lh.prototype,"isWatchDefaultLayout",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lh.prototype,"continuationShowButton",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lh.prototype,"rowReducedHorizontalMargin",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lh.prototype,"useCompactList",void 0);_.N([_.h({selector:function(G){return _.Vn(G.entities).length>0}}),
_.A("design:type",Object)],Lh.prototype,"manualDownloadsPresent",void 0);_.N([_.h({selector:function(G){return _.nN(G.entities).length>0}}),
_.A("design:type",Object)],Lh.prototype,"smartDownloadsPresent",void 0);_.N([_.h({selector:_.vv}),_.A("design:type",Object)],Lh.prototype,"isOnline",void 0);_.N([_.h({selector:_.xZf}),_.A("design:type",Object)],Lh.prototype,"shouldRenderDownloadsBanner",void 0);_.N([_.h({selector:_.FHj}),_.A("design:type",Object)],Lh.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.N([_.h({selector:_.LHf}),_.A("design:type",Object)],Lh.prototype,"hasOptedIntoSmartDownloads",void 0);
_.N([_.gx("useCompactList"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lh.prototype,"onUseCompactListChange",null);_.N([_.gx("sizing","typographyBump"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lh.prototype,"onSizingChange",null);_.N([_.h({selector:_.C13}),_.A("design:type",Number)],Lh.prototype,"miniplayerPlaybackState",void 0);_.N([_.h({selector:_.T9}),_.A("design:type",Boolean)],Lh.prototype,"miniplayerIsActive",void 0);
_.N([_.h({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.A("design:type",Boolean)],Lh.prototype,"isInlinePreviewEnabled",void 0);_.N([_.h({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.A("design:type",String)],Lh.prototype,"sizing",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lh.prototype,"elementsPerRow",void 0);
_.N([_.h(),_.A("design:type",Object)],Lh.prototype,"typographyBump",void 0);_.N([_.h(),_.A("design:type",Number)],Lh.prototype,"itemWidth",void 0);_.N([_.q6("#header"),_.A("design:type",HTMLElement)],Lh.prototype,"headerElement",void 0);_.N([_.q6("#contents"),_.A("design:type",HTMLElement)],Lh.prototype,"contentsElement",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lh.prototype,"dataChanged",null);
_.N([_.Jv("data.contents.length"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lh.prototype,"contentLengthChanged",null);_.N([_.lq("yt-request-elements-per-row"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lh.prototype,"onRequestElementsPerRow",null);
_.N([_.lq("yt-rich-shelf-renderer-collapse"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Lh.prototype,"onRichShelfRendererCollapse",null);_.N([_.Jv("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lh.prototype,"handleRerenderDownloadsData",null);
_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],Lh.prototype,"entitySelectorType",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"isSub",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"isWatch",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data.targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"isShortsPanel",null);_.N([_.h({reflectToAttribute:!0}),_.z("isWatch"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"reducedTopMargin",null);_.N([_.h({reflectToAttribute:!0}),_.z("data","isWatch","isWatchDefaultLayout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"noTopMargin",null);
_.N([_.h({reflectToAttribute:!0}),_.z("isInlinePreviewEnabled","shownItems"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"topRowEndorsement",null);_.N([_.z("data.header"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"hideHeader",null);_.N([_.lq("yt-rich-grid-reflow"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],Lh.prototype,"reflowContent",null);
_.N([_.lq("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lh.prototype,"onReloadContinuationFinish",null);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"isSlimGrid",null);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"isShortsGrid",null);
_.N([_.z("data","isSlimGrid","isShortsGrid"),_.h(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"noRichItemGutterMargins",null);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"isShortsGridSlim",null);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"isCompactGrid",null);
_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"isDefaultGrid",null);_.N([_.z("data.targetId"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"hideChipsBarOnWatch",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lh.prototype,"onIsShortsGridChange",null);
_.N([_.z("data.enableContentSpecificAspectRatio"),_.h(),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lh.prototype,"force16By9ThumbnailAspectRatio",null);_.N([_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Lh.prototype,"continuationTriggerOffset",null);_.N([_.O({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Lh);
_.m(Lh,"ytd-rich-grid-renderer",function(){if(c_O!==void 0)return c_O;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return c_O=G},{mode:2});var Ca7=_.y(function(G){return _.J("yt-feedback-prompt-view-model",{class:_.bb("ytFeedbackPromptViewModelHost",G.className)},_.J(_.k,{cond:function(){return G.data().text},
then:function(H){return _.J(_.Fe,{text:H})}}),_.J("div",{class:"ytFeedbackPromptViewModelButtons"},_.J(_.SP,{data:function(){return G.data().likeButton}},{likeButtonViewModel:_.AD}),_.J(_.SP,{data:function(){return G.data().dislikeButton}},{dislikeButtonViewModel:_.Nt})))},"Lm");var iw0=_.y(function(G){var H=G.thumbsUp,Z=G.thumbsDown,Q=G.rightAlignThumbs;G=_.I(_.Ty(!1,void 0,"OxPsH"));var p=G.next().value,l=G.next().value;G=_.I(_.Ty(!1,void 0,"V5vWne"));var q=G.next().value,u=G.next().value;G={};return _.J("div",{class:_.bb("ytwThumbsUpDownThumbs",(G.ytwThumbsUpDownRightAlign=function(){return Q==null?void 0:Q()},G))},_.J(_.hf,{data:H,
onToggle:function(B){l(B);q()&&u(!1)},
buttonShapeOverrides:function(){return{toggled:p()}}}),_.J(_.hf,{data:Z,
onToggle:function(B){u(B);p()&&l(!1)},
buttonShapeOverrides:function(){return{toggled:q()}}}))},"Mm");
iw0.idomCompat=!0;var aTY=_.y(function(G){var H=function(){return G.data().pendingStateEntityKey||""},Z=_.gu(_.lT2,H),Q=function(){var u;
if(!(u=G.disabled())){var B;u=!((B=Z())==null||!B.isPendingResponse)}return u},p=_.I(_.Ty(FvI(""),void 0,"Q6q6y")),l=p.next().value,q=p.next().value;
_.yP(function(){requestAnimationFrame(function(){var u=G.data().onShowAnimationMs||0;u=u>0?FvI("--chip-animation-duration: "+u+"ms;"):FvI("");q(u)})});
return _.J("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:l},_.J(_.Cl,{each:function(){return G.data().chipData||[]},
keyBy:"REFERENCE"},function(u){return _.J(Ow0,{data:u,disabled:Q,pendingStateKey:H,onError:G.onError})}))},"Om"),Ow0=_.y(function(G){var H=_.qK("button"),Z=_.I(_.Ty(!0,void 0,"baSFEf")),Q=Z.next().value,p=Z.next().value,l=function(){return G.data().text.content},q=function(){return G.data().transparentWhenLoading},u=_.SQ(_.KG.currentPageSubTypeSelector),B=function(){var D;
return(D=_.tp().resolve(_.Jp(_.wi)))==null?void 0:_.Lic(D,u())},t=_.Hh(function(D){var d,e,n,c,W,M,r,w;
return _.S(function(x){switch(x.nextAddress){case 1:D.stopPropagation();if(G.disabled())return x.return();e=String(Math.floor(((d=_.HV())==null?void 0:d.getCurrentTime())||0)*1E3);n="youchat-"+Date.now();c=function(){_.fX(G.data().onClick||{});var U=_.Lvd(G.data().continuation),R=_.Ch({clientMessageId:n,playerOffsetMs:e,pageContext:B()});return new Promise(function(L,H3){_.fX(U,{form:{formData:R},commandController:{onSuccess:function(qX,B3){L(B3)},
onServerError:function(qX,B3){H3(B3.error)}}})})};
W=_.gw7(G.pendingStateKey());W(!0);_.aUd("#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");p(!1);_.XV(x,2);return x.yield(c(),4);case 4:_.Za(x,3);break;case 2:M=_.Wg(x),(w=(r=G).onError)==null||w.call(r,M);case 3:W(!1),_.K0(x)}})});
return _.J(_.k,{cond:Q,then:function(){return _.J("div",{class:"ytwYouChatChipsDataChipWrapper"},_.J("button",{el:H,class:"ytwYouChatChipsDataChip","data-disabled":G.disabled,"data-transparent-loading":q,"on:click":t,tabindex:0},l))}})},"Pm");var y_0=_.y(function(G){var H=G.data;var Z=G.initiallyExpanded;var Q=function(){var t;return(t=H().conversationResourceData)==null?void 0:t.learningGuideData};
G=_.I(_.QF(function(){var t;return(t=Z==null?void 0:Z())!=null?t:!1}));
var p=G.next().value,l=G.next().value,q=function(){l(!0)},u=_.Kb(function(){var t,D;
return(D=(t=Q())==null?void 0:t.sections)!=null?D:[]},void 0,"QxyRyf"),B=_.Kb(function(){return u().length>4},void 0,"MEbwoe");
G=_.Kb(function(){var t;return!p()&&B()&&(t=Q())!=null&&t.expandButton?u().slice(0,4):u()},void 0,"hIE70b");
return _.J("yt-conversation-resource-view-model",{class:_.bb("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.J(_.SP,{data:G},{expandableMetadataViewModel:_.Lfo}),_.J(_.k,{cond:function(){return B()&&!p()},
then:function(){return _.J("div",{id:"showMoreButton"},_.J(_.SP,{data:function(){var t;return(t=Q())==null?void 0:t.expandButton}},{buttonViewModel:function(t){return _.J(_.kg,{data:t.data,
onClick:q})}}))}}))},"Qm");var ow2=_.y(function(G){var H=function(){var w;return(w=G.data().text)==null?void 0:w.content},Z=function(){var w,x;
return(w=G.data().webData)==null?void 0:(x=w.textResult)==null?void 0:x.content},Q=_.tp().resolve(_.ht),p=_.sw(),l=function(){return G.data().chatResponseStyle},q=function(){return!G.data().transparentBackground},u=function(){return G.data().rightAlignThumbs},B=function(){return G.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||G.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},t=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:B()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:G.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},D=function(){var w;
return G.data().webData||((w=G.data().text)==null?void 0:w.content)||G.data().videoResultsData||G.data().conversationResourceViewModel||G.data().quiz||G.data().richContent},d=function(){return!!G.data().sectionHeader||D()},e=function(){var w;
return(w=G.data().videoResultsData)==null?void 0:w.videoShelf},n=function(){var w;
return(w=G.data().webData)==null?void 0:w.sourcesShelf},c=function(){return l()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||l()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:G.data().thumbsDownViewModel&&G.data().thumbsUpViewModel},W=function(){return _.X(G.data().thumbsUpViewModel,_.ZD)},M=function(){return _.X(G.data().thumbsDownViewModel,_.ZD)};
_.yP(function(){requestAnimationFrame(function(){var w;(w=G.shouldAnimateIcon)!=null&&w.call(G)&&ITq(p.lottieEl)})});
var r={};return _.J("you-chat-item-view-model",{class:_.bb("ytwYouChatItemViewModelYouChatItemViewModel",(r.ytwYouChatItemViewModelColumnLayout=function(){return B()},r)),
style:_.pI({"min-height":function(){var w,x;return _.$6L((w=G.containerHeight)==null?void 0:w.call(G),(x=G.isLastItem)==null?void 0:x.call(G))}}),
"data-target-id":function(){return G.data().id||""}},_.J(_.k,{cond:function(){return G.data().removeIcon?!1:d()},
then:function(){var w={};return _.J("div",{"aria-hidden":"true"},_.J(_.cY,{className:_.bb("ytwYouChatItemViewModelIcon",(w.ytwYouChatItemViewModelRtl=Q==="rtl",w.ytwYouChatItemViewModelHidden=function(){return!(G.data().hideIcon||l()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||l()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:d())},w)),
animationName:"YOUCHAT_ICON",data:t,animationRef:p}))}}),_.J(_.k,{cond:d,
then:function(){var w={};return _.J("div",{class:_.bb("ytwYouChatItemViewModelHost",(w.ytwYouChatItemViewModelHostNoPadding=function(){return!!G.data().sectionHeader&&!D()},w.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return l()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},w.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return l()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},w.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return l()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
w.ytwYouChatItemViewModelGradientBackground=q,w)),
role:"alert"},_.J(_.k,{cond:H,then:function(x){return _.J(_.Hi,{text:x,wrapCodeBlocks:!0})}}),_.J(_.SP,{data:function(){return G.data().sectionHeader}},{sectionHeaderViewModel:function(x){var U={};
return _.J(_.v_,{data:x.data,className:_.bb("ytwYouChatItemViewModelSectionHeader",(U.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!G.data().sectionHeader&&!D()},U)),
forceSmallLayout:!0})}}),_.J(_.k,{cond:Z,
then:function(x){return _.J(_.Hi,{text:x,wrapCodeBlocks:!0})}}),_.J(_.k,{cond:e,
then:function(){return _.J("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.J(_.SP,{data:function(){var x;return(x=G.data().videoResultsData)==null?void 0:x.videoShelf}},{horizontalShelfViewModel:function(x){return _.J(_.bR,{data:x.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.J(_.k,{cond:n,
then:function(){return _.J("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.J(_.SP,{data:function(){var x;return(x=G.data().webData)==null?void 0:x.sourcesShelf}},{horizontalShelfViewModel:function(x){return _.J(_.bR,{data:x.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.J(_.SP,{data:function(){return G.data().conversationResourceViewModel}},{conversationResourceViewModel:y_0}),_.J(_.SP,{data:function(){return G.data().quiz}},{learningJourneyQuizViewModel:_.rKG}),_.J(_.SP,{data:function(){return G.data().richContent}},{cardViewModel:_.ffc,
linearLayoutViewModel:_.YZ}),_.J(_.k,{cond:c,then:function(){return _.J(iw0,{thumbsUp:W,thumbsDown:M,rightAlignThumbs:u})}}))}}),_.J(_.k,{cond:function(){return G.data().chipsData},
then:function(w){return _.J(aTY,{data:w,disabled:G.pending,onError:G.onError})}}))},"Sm");
ow2.idomCompat={callbacks:{onError:!0,onSend:!0}};var m7y=_.y(function(G){var H=function(){return G.data().choiceSelectedText},Z=function(){return G.data().hasGradientBackground},Q={};
return _.J("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.pI({"min-height":function(){var p,l;return _.$6L((p=G.containerHeight)==null?void 0:p.call(G),(l=G.isLastItem)==null?void 0:l.call(G))}}),
"data-target-id":function(){var p;return(p=G.data().itemTargetId)!=null?p:""}},_.J(_.k,{cond:H,
then:function(){return _.J("div",{class:"ytYouChatUserTurnChoiceSelected"},_.J(_.Fe,{text:H}))}}),_.J("div",{class:_.bb("ytYouChatUserTurnUserMessage",(Q.ytYouChatUserTurnGradientContainer=Z,Q.ytYouChatUserTurnDefaultContainer=function(){return!Z()},Q))},function(){return G.data().text}))},"Tm");var U70=_.y(function(G){var H=_.I((0,_.LJN)(G.data)).next().value,Z=function(){var Q,p;return(p=(Q=H().contents)==null?void 0:Q.length)!=null?p:0};
return _.J("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return G.data().targetId||""},
"aria-busy":function(){var Q,p;return(p=(Q=H().contents)==null?void 0:Q.some(function(l){return!!l.chatLoadingViewModel}))!=null?p:!1}},_.J(_.SP,{data:function(){return G.data().header}},{chipBarViewModel:_.Yot,
sectionHeaderViewModel:_.v_}),_.J(_.SP,{data:function(){return H().contents}},{accordionViewModel:_.ijt,
alertBannerViewModel:_.pHG,chatLoadingViewModel:function(Q,p){return _.J(_.cvL,{data:Q.data,containerHeight:G.containerHeight,isLastItem:function(){return p()===Z()-1}})},
chatUserTurnViewModel:function(Q,p){return _.J(m7y,{data:Q.data,containerHeight:G.containerHeight,isLastItem:function(){return p()===Z()-1}})},
feedbackPromptViewModel:Ca7,gridShelfViewModel:function(Q){return _.J(_.Zja,{data:Q.data,shouldUseOwnContainerSize:!0,marginSettings:G.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.Mx2,linearLayoutViewModel:_.YZ,lockupViewModel:function(Q){return _.J(_.Xf,{data:Q.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:G.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.v_,videoOverviewViewModel:_.AKG,youChatItemViewModel:function(Q,p){return _.J(ow2,{data:Q.data,pending:!1,containerHeight:G.containerHeight,isLastItem:function(){return p()===Z()-1}})}}))},"Um");_.RX(_.y(function(G){var H=_.I((0,_.LJN)(G.data)).next().value,Z=_.IA("yt-section-list-renderer"),Q=_.I(_.Ty(void 0,void 0,"HC8fZb")),p=Q.next().value,l=Q.next().value,q=function(){var B;return _.X((B=G.data().sectionListLayoutConfiguration)==null?void 0:B.layoutConfiguration,J_Y)},u=_.I9(Z);
_.mR(function(){var B,t=(B=Z.value)==null?void 0:B.clientWidth;if(q()){B=q();var D=B.responsiveSize;t=t<528?"CONTAINER_SIZE_NARROW":t<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var d=_.I(B.responsiveMap||[]);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.containerSize===t){d=e.containerType;break b}d=void 0}if(d&&D){b:{if(d==="CONTAINER_TYPE_VERTICAL_LIST")if(D==="RESPONSIVE_SIZE_STANDARD"){if(t!=="CONTAINER_SIZE_NARROW"){e="50%";break b}}else{e=t==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}e=void 0}B={responsiveSize:D,containerSize:t,containerType:d,force16By9ThumbnailAspectRatio:!B.enableContentSpecificAspectRatio,contentPreviewWidth:e,fullbleed:(d==="CONTAINER_TYPE_VERTICAL_LIST"||d==="CONTAINER_TYPE_GRID")&&t==="CONTAINER_SIZE_NARROW"&&!1}}else B=void 0}else B=void 0;l(B)});
Q={};return _.J("yt-section-list-renderer",{class:_.bb("ytSectionListRendererHost",G.className,(Q.ytSectionListRendererHostOverscrollContain=function(){var B;return(B=G.overscrollContain)==null?void 0:B.call(G)},Q)),
el:Z,"data-target-id":function(){return G.data().targetId||""}},_.J(_.SP,{data:function(){return H().contents}},{itemSectionRenderer:function(B){return _.J(U70,{data:B.data,
containerLayoutConfig:p,marginSettings:G.marginSettings,containerHeight:function(){return u.height()}})}}))},"Vm"),"yt-section-list-renderer",{props:{data:_.b3,
className:_.oX,marginSettings:_.b3,overscrollContain:_.b3}});var RN4;var NG_;var A_0=function(){return _.C.apply(this,arguments)||this};
_.T(A_0,_.C);_.N([_.h(),_.A("design:type",Object)],A_0.prototype,"data",void 0);_.N([_.fH({is:"yt-alert-renderer",disableElementRegistration:!0})],A_0);
_.m(A_0,"yt-alert-renderer",function(){if(NG_===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;RN4===void 0&&(RN4=document.createElement("template"));var Q=RN4;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);NG_=G}G=NG_;return G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var VXA;VXA=function(G,H,Z,Q){Z||(G?Q&&(Q.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||Q.WINDOW_SIZE_CHANGED&&(H.width!==window.innerWidth||H.height!==window.innerHeight)||Q.SAFARI_ABORTED_BY_NEW_TRANSITION&&G instanceof DOMException&&G.name==="AbortError"&&G.message.includes("Old view transition aborted by new view transition"))||_.me(G):_.me(Error("wj")))};
_.$lh=function(G,H){H=H===void 0?{}:H;var Z,Q,p,l,q,u,B,t,D,d,e,n,c;return _.S(function(W){switch(W.nextAddress){case 1:Z=H;Q=Z.shouldWrap===void 0?!0:Z.shouldWrap;p=Z.skipTransitionTimeoutMs===void 0?300:Z.skipTransitionTimeoutMs;l=Z.beforeTransition;q=Z.afterTransition;if(!Q||!document.startViewTransition||document.visibilityState==="hidden")return W.return(G());u={width:window.innerWidth,height:window.innerHeight};B=!1;(t=l)==null||t();_.XV(W,2);D=document.startViewTransition(G);d=setTimeout(function(){D.skipTransition();
B=!0},p);
return W.yield(D.ready,4);case 4:return clearTimeout(d),W.yield(D.finished,5);case 5:clearTimeout(d);(e=q)==null||e();_.Za(W,0);break;case 2:n=_.Wg(W),(c=q)==null||c(),VXA(n,u,B,H.ignoredErrors),_.K0(W)}})};
_.X$A=function(G,H){var Z=_.qPX(H);Z!=="javascript:"&&Z!=="data:"&&G.setAttribute("href",H)};
_.zH=function(){for(var G=Array(36),H=0,Z,Q=0;Q<36;Q++)Q==8||Q==13||Q==18||Q==23?G[Q]="-":Q==14?G[Q]="4":(H<=2&&(H=33554432+Math.random()*16777216|0),Z=H&15,H>>=4,G[Q]=_.mEj[Q==19?Z&3|8:Z]);return G.join("")};
_.c08=function(G,H,Z){G.persistentPanelContainerMap.set(Z,H)};/*

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 TTk=_.CM(['<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>']),
fp6=_.h22(TTk);fp6.setAttribute("style","display: none;");document.head.appendChild(fp6.content);_.KR=_.J3M(function(G){var H=_.z$("DIV");G&&(H.className=G);H.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";G=_.z$("DIV");_.hOw(G,"200px","200px");H.appendChild(G);document.body.appendChild(H);G=H.offsetWidth-H.clientWidth;_.Ku(H);return G});var vTD;var WA8;var MM=function(){var G=_.C.apply(this,arguments)||this;G.icon=null;return G};
_.T(MM,_.C);MM.prototype.dismiss=function(){_.N5(this.hostElement,"yt-live-chat-error-message-dismiss")};
MM.prototype.computeIcon=function(G){return G&&G.iconType?"yt-icons:"+G.iconType.toLowerCase():"yt-icons:close"};
_.N([_.h(),_.A("design:type",Object)],MM.prototype,"data",void 0);_.N([_.h({computed:"computeIcon(data.icon)"}),_.A("design:type",Object)],MM.prototype,"icon",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],MM);
_.m(MM,"yt-live-chat-error-message-renderer",function(){if(WA8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;vTD===void 0&&(vTD=document.createElement("template"));var Q=vTD;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);WA8=G}G=WA8;return G},{mode:0});
}catch(e){_._DumpException(e)}
try{
var q17,S1d,uG4,BI2,DjY,n52,V_Y,$jO,X70,cR4,TIx,fSM,v5U,Po,WuO,zK4,Ku2,M__,jf_,PY7,rRN,w70,hK0,iu4,Ou0,aSd,yRM,o5_,mjq,Uj_,RK_,NI2,ARd,xj2,LuM,E57,Y17,Fud,Hb0,Zbx,pS0,l0x,gFM,I07,bu2,Gyq,uMO,BnY,Js2,tgx,ky7,Df0,dfY,ey2,qvy;q17=function(G,H){return _.Hv(G.entities,"timedMarkersListSyncEntity",H)};
S1d=function(G,H){return _.Hv(G.entities,"liveReactionsDataEntity",H)};
uG4=function(G,H){G=_.Hv(G.entities,"booleanEntity",H);return!(!G||!G.value)};
BI2=function(G,H){var Z=_.$k();Z&&G&&_.je(Z,_.BT(G),H)};
_.JRM=function(G){return G.watch.isWatchActive};
_.t_x=function(G){return _.XD(G)||_.ch(G)||_.QDv(G)};
_.k$4=function(G){return!_.t_x(G)};
_.jH=function(G){return G.watch.watchScrollTop};
DjY=function(G){return G.watch.isLiveChatCollapsed};
_.dj0=function(){_.V("web_watch_log_theater_mode")&&_.Kzu("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.eKd=function(G,H,Z){if(!G.includes("START_TIME_PLACEHOLDER")||!G.includes("END_TIME_PLACEHOLDER"))return G;var Q=new Date(0),p=new Date(0);Q.setUTCMilliseconds(H);p.setUTCMilliseconds(Z);return G.replace("START_TIME_PLACEHOLDER",_.CN(Q,7)).replace("END_TIME_PLACEHOLDER",_.CN(p,7))};
n52=function(G){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:G}}]}}}};
V_Y=function(G,H,Z){var Q=_.V("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;H=Object.assign({},{text:H,hasGradientBackground:Z},Q&&{itemTargetId:Q});Q=_.V("web_enable_chat_autoscroll_to_user_turn")&&Q?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:Q,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:H}],insertByPositionInSection:{sectionTargetId:G,
position:"INSERTION_POSITION_LAST"}}}]},Q?{scrollConfig:Q}:{})}}};
$jO=function(G,H){return _.Hv(G.entities,"booleanEntity",H)};
X70=function(){return function(G){_.aK(_.uP("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:G}))}};
cR4=function(G){switch(G){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}};
TIx=function(G,H,Z){var Q=_.Tt(Z);G&&H&&Q&&G.getPlayerPromise().then(function(p){_.rdf(Q)&&_.op();(new _.O0(p)).executeCommand(Q,H);_.V("continue_playback_on_desktop_companion_click")||p.pauseVideo()})};
fSM=function(G){var H=_.UO(),Z;if(Z=_.GF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;Z=(Q=Z())==null?void 0:Q.layoutId}else Z=null;TIx(H,Z,G)};
v5U=function(G){var H=_.UO(),Z;if(Z=_.GF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;Z=(Q=Z())==null?void 0:Q.layoutId}else Z=null;TIx(H,Z,G)};
Po=function(G,H){var Z=G<0?"-":"";G=Math.abs(G);var Q=Math.floor(G/3600),p=Math.floor(G)%3600,l=Math.floor(p/60);p=Math.floor(p)%60;var q="";(H===void 0?0:H)&&(q="."+Math.round((G-Math.floor(G))*10));return Q>0?Z+Q+":"+(l<10?"0"+l:""+l)+":"+(p<10?"0"+p:""+p)+q:Z+l+":"+(p<10?"0"+p:""+p)+q};
WuO=function(G){var H=G.match(/[^0-9:\.]/g);if(H&&H.length>0)return null;G=G.split(":");if(G.length===0||G.length>3)return null;H=1;for(var Z=0;G.length>0;){var Q=G.pop();if(Q===void 0)break;var p=Number(Q);if(Q===""||isNaN(p))return null;Z+=p*H;H*=60}return Z};
zK4=function(G,H,Z,Q){G=Math.max(Z,G);H=Math.min(H,Q-Z);G+H>Q?(Z=Q,G=Z-H):Z=G+H;return{start:G,end:Z}};
Ku2=function(G,H,Z,Q,p,l){G<Z?G=Z:G+p>Q&&(G=Q-p);H>Q&&(H=Q);H=Math.min(G+l,Math.max(G+p,H));return{start:G,end:H}};
M__=function(G,H,Z,Q,p,l){H>Q?H=Q:H-p<Z&&(H=Z+p);G<Z&&(G=Z);G=Math.min(H-p,Math.max(H-l,G));return{start:G,end:H}};
jf_=function(G){return _.V("web_transcript_cue_id_killswitch")?String(G):"ytd-transcript-renderer_"+G};
PY7=function(G){return _.V("web_transcript_cue_id_killswitch")?!0:G.startsWith("ytd-transcript-renderer")};
rRN=function(G){var H=_.UO(),Z;if(Z=_.GF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Q;Z=(Q=Z())==null?void 0:Q.layoutId}else Z=null;TIx(H,Z,G)};
w70=function(G){G.style.height="auto";G.style.height=Math.min(G.scrollHeight||20,80)+"px"};
hK0=function(){var G;return String(Math.floor(((G=_.HV())==null?void 0:G.getCurrentTime())||0)*1E3)};
iu4=function(G){if(G.onWelcomeCommand)return G.onWelcomeCommand;G=_.X(G.inputComposerViewModel,CYN);if(G==null?0:G.welcomeFeatureContinuation)return _.Lvd(G.welcomeFeatureContinuation)};
Ou0=function(G){var H=_.UO(),Z;Z=(Z=_.GF("yt.www.ads.eventcache.getLastCompanionData"))?(Z=Z())&&Z.layoutId:null;TIx(H,Z,G)};
aSd=function(G){var H=_.UO(),Z;Z=(Z=_.GF("yt.www.ads.eventcache.getLastCompanionData"))?(Z=Z())&&Z.layoutId:null;TIx(H,Z,G)};
yRM=function(G){if(G.simpleText)return[{text:G.simpleText}];var H;return(H=G.runs)!=null?H:[]};
o5_=function(G){var H=G.startEndTimeTemplate,Z=G.startTimeUtcMillis;G=G.endTimeUtcMillis;if(H&&Z&&G)return _.aq(_.eKd(_.yn(H),Number(Z),Number(G)))};
mjq=function(G,H){var Z,Q,p=G==null?void 0:(Z=G.viewCount)==null?void 0:(Q=Z.videoViewCountRenderer)==null?void 0:Q.shortViewCount;if(!H&&p)return p;var l,q;return G==null?void 0:(l=G.viewCount)==null?void 0:(q=l.videoViewCountRenderer)==null?void 0:q.viewCount};
Uj_=function(G,H){var Z=G==null?void 0:G.relativeDateText;return!H&&Z?[Z,!0]:[G==null?void 0:G.dateText,!1]};
RK_=function(G,H,Z,Q,p){Q=Q===void 0?"":Q;p=p===void 0?!1:p;var l=mjq(G,H),q=_.I(Uj_(G,H)),u=q.next().value;q=q.next().value;H=H?G==null?void 0:G.sponsorsOnlyFirstTimeLongText:G==null?void 0:G.sponsorsOnlyFirstTimeShortText;var B=[];Z&&l&&B.push(l);!Z&&q||!u||B.push(u);G=[p?G==null?void 0:G.subtitle:void 0].concat(_.OP(B),[H,G==null?void 0:G.stationName,G==null?void 0:G.rating,G?o5_(G):void 0,G==null?void 0:G.upNextProgramText,G==null?void 0:G.superTitleLink]).filter(function(t){return!!t});
Z={runs:[]};for(p=0;p<G.length;p++)Z.runs.push.apply(Z.runs,_.OP(yRM(G[p]))),p<G.length-1&&Z.runs.push({text:" "+Q+" "});return Z};
NI2=function(G){return G.filter(function(H){return!_.X(H,_.UL)})};
ARd=function(G){var H,Z,Q,p;if(G=G==null?void 0:(H=G.contents)==null?void 0:(Z=H.twoColumnWatchNextResults)==null?void 0:(Q=Z.results)==null?void 0:(p=Q.results)==null?void 0:p.contents){var l,q;return(q=(l=G.find(function(u){return!!u.videoPrimaryInfoRenderer}))==null?void 0:l.videoPrimaryInfoRenderer)==null?void 0:q.updatedMetadataEndpoint}};
xj2=function(G,H){var Z;return(Z=G.sourceConfigs)==null?void 0:Z.find(function(Q){return Q.videoId===H})};
LuM=function(G){return G==="End of video"||G==="End of playlist"};
E57=function(G){var H,Z,Q,p;return(H=G.getWatchNextResponse())==null?void 0:(Z=H.contents)==null?void 0:(Q=Z.twoColumnWatchNextResults)==null?void 0:(p=Q.playlist)==null?void 0:p.playlist};
Y17=function(G){var H,Z,Q,p,l,q;return(H=E57(G))==null?void 0:(Z=H.playlistButtons)==null?void 0:(Q=Z.menuRenderer)==null?void 0:(p=Q.topLevelButtons)==null?void 0:(l=p[0])==null?void 0:(q=l.playlistLoopButtonRenderer)==null?void 0:q.playlistLoopStateEntityKey};
Fud=function(G){var H=_.tp().resolve(_.H9),Z;return(H=(Z=_.X(H.getAutoplayEndpoint(),_.hZ))==null?void 0:Z.playlistId)&&H===G};
Hb0=function(G,H,Z,Q,p){function l(){_.Ui.cancelJob(rw);var q=bu2(H,Z/G.getPlaybackRate()),u=q.hours,B=q.minutes;q=(q.seconds*1E3||6E4)/G.getPlaybackRate();G.setVideoTimeLeft(Gyq(u,B));Q&&G.getPlayerState()!==0&&G.setSleepTimerTimeLeft(Gyq(u,B,!0));(u>0||B>0)&&!p&&(rw=_.JW(_.Ui,l,q))}
_.Ui.cancelJob(rw);rw=_.JW(_.Ui,l)};
Zbx=function(G,H,Z){function Q(){_.Ui.cancelJob(sMY);var p=bu2(H,Z),l=p.hours;p=p.minutes;var q=6E4/G.getPlaybackRate();if(l>0||p>0)G.setSleepTimerTimeLeft(Gyq(l,p,!0)),sMY=_.JW(_.Ui,Q,q)}
_.Ui.cancelJob(sMY);sMY=_.JW(_.Ui,Q)};
pS0=function(G,H){var Z=G.getVolume()/(H/500),Q=function(p){_.Ui.cancelJob(QM7);var l=Math.floor(p-Z);G.setVolume(l,!1);l>0&&(QM7=_.JW(_.Ui,function(){Q(l)},500))};
_.Ui.cancelJob(QM7);QM7=_.JW(_.Ui,function(){Q(G.getVolume())})};
l0x=function(G,H){_.Ui.cancelJob(QM7);H&&G.syncVolume()};
gFM=function(){var G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Zg("SLEEP_TIMER_DISRUPTED")}}}}};_.tp().resolve(_.Dk).resolveCommand(G)};
I07=function(G){return(G.getDuration()-G.getProgressState().current)*1E3};
bu2=function(G,H){G=G+H-(0,_.t3)();if(G<=0)return{hours:0,minutes:0,seconds:0};var Z=new qvy(0,0,0,0,0,0,G);G=Z.getHours();H=Z.getMinutes();Z=Z.getSeconds();Z!==0&&H++;H!==0&&H%60===0&&(G++,H=0);return{hours:G,minutes:H,seconds:Z}};
Gyq=function(G,H,Z){return G>0&&H>0?Z?_.Zg("TIME_LEFT_HOURS_MINUTES",{hours:G.toString(),minutes:H.toString()}):_.Zg("TIME_HOURS_MINUTES",{hours:G.toString(),minutes:H.toString()}):G>0?Z?_.QY("TIME_LEFT_HOURS",G):_.QY("TIME_HOURS",G):Z?_.Zg("TIME_LEFT_MINUTES",{minutes:H.toString()}):_.Zg("TIME_MINUTES",{minutes:H.toString()})};
uMO=function(G,H){if(G.timelyActions)return G.timelyActions.find(function(Z){var Q;return((Q=_.X(Z,SvO))==null?void 0:Q.cueRangeId)===H})};
BnY=function(G){var H=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.IQ(G);G.keyMap_.forEach(function(Z,Q){_.yf(H,Q)||this.remove(Q)},G)};
Js2=function(G,H){G.reloadContinuationItemsCommandMatcher=H};
tgx=function(G,H){var Z;return _.S(function(Q){return Q.nextAddress==1?H&&G.lastWelcomeContinuationSent!==H?_.TMj(G)?Q.yield(G.panelController.isVisible("PAai_companion"),3):Q.jumpTo(2):Q.return(!1):Q.nextAddress==2||(Z=Q.yieldResult,Z)?Q.return(!0):Q.return(!1)})};
ky7=function(G){var H,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1){if(!G.welcomeOptions)return q.return();H=G.welcomeOptions;Z=H.command;Q=H.setPending;if(Z){var u;var B=(u=_.X(Z,_.vh))==null?void 0:u.token}else B=void 0;p=B;return q.yield(tgx(G,p),2)}if(!q.yieldResult)return q.return();G.lastWelcomeContinuationSent=p;(l=Q)==null||l(!0);B="youchat-"+Date.now();u=(u=_.HV())?String(Math.floor(u.getCurrentTime())*1E3):void 0;_.fX(Z,{form:{formData:_.Ch({clientMessageId:B,playerOffsetMs:u,pageContext:_.Lic(G,
G.pageSubtype)})}});_.K0(q)})};
Df0=function(G,H){_.S(function(Z){G.welcomeOptions=H;return Z.yield(ky7(G),0)})};
_.ww=function(G,H){G.insertBefore(H,G.childNodes[0]||null)};
dfY=function(G){if(G>=48&&G<=57||G>=96&&G<=106||G>=65&&G<=90||_.b$&&G==0)return!0;switch(G){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 _.FW;default:return!1}};
ey2=function(G){if(G.altKey&&!G.ctrlKey||G.metaKey||G.keyCode>=112&&G.keyCode<=123)return!1;if(dfY(G.keyCode))return!0;switch(G.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!_.FW;default:return G.keyCode<166||G.keyCode>183}};
qvy=function(G,H,Z,Q,p,l,q){this.date=typeof G==="number"?new Date(G,H||0,Z||1,Q||0,p||0,l||0,q||0):new Date(G&&G.getTime?G.getTime():_.NW())};
_.AB(qvy,_.WK);_.g=qvy.prototype;_.g.getHours=function(){return this.date.getHours()};
_.g.getMinutes=function(){return this.date.getMinutes()};
_.g.getSeconds=function(){return this.date.getSeconds()};
_.g.getMilliseconds=function(){return this.date.getMilliseconds()};
_.g.getUTCDay=function(){return this.date.getUTCDay()};
_.g.getUTCHours=function(){return this.date.getUTCHours()};
_.g.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.g.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.g.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.g.setHours=function(G){this.date.setHours(G)};
_.g.setMinutes=function(G){this.date.setMinutes(G)};
_.g.setSeconds=function(G){this.date.setSeconds(G)};
_.g.setMilliseconds=function(G){this.date.setMilliseconds(G)};
_.g.setUTCHours=function(G){this.date.setUTCHours(G)};
_.g.setUTCMinutes=function(G){this.date.setUTCMinutes(G)};
_.g.setUTCSeconds=function(G){this.date.setUTCSeconds(G)};
_.g.setUTCMilliseconds=function(G){this.date.setUTCMilliseconds(G)};
_.g.add=function(G){_.WK.prototype.add.call(this,G);G.hours&&this.setUTCHours(this.date.getUTCHours()+G.hours);G.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+G.minutes);G.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+G.seconds)};
_.g.JSC$11335_toIsoString=function(G){var H=_.WK.prototype.JSC$11335_toIsoString.call(this,G);return G?H+"T"+_.sK(this.getHours(),2)+":"+_.sK(this.getMinutes(),2)+":"+_.sK(this.getSeconds(),2):H+"T"+_.sK(this.getHours(),2)+_.sK(this.getMinutes(),2)+_.sK(this.getSeconds(),2)};
_.g.equals=function(G){return this.getTime()==G.getTime()};
_.g.toString=function(){return this.JSC$11335_toIsoString()};
_.g.clone=function(){var G=new qvy(this.date);G.firstDayOfWeek_=this.firstDayOfWeek_;G.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return G};
_.nF0=function(G){return _.Lo({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:G}})};var VgU=new _.bn("imageTileRenderer");var $fN=new _.bn("promotedSparklesWebRenderer");var XSx=new _.bn("adGridCardCollectionViewModel");var cs0=new _.bn("carouselTitleViewModel");var TnU=new _.bn("ctaCarouselItemViewModel");var f0d=new _.bn("textFieldViewModel");_.vFd=new _.bn("engagementPanelHeaderShowNavigationButtonCommand");var Wf0=new _.bn("hideEngagementPanelScrimAction");var zyM=new _.bn("setActivePanelItemAction");var Kfd=new _.bn("showEngagementPanelScrimAction");var Mgd=new _.bn("updateEngagementPanelAction");var jMx=new _.bn("updateSearchInVideoResultsAction");var PV_=new _.bn("transcriptCueGroupRenderer");var rs_=new _.bn("transcriptCueRenderer");var wS7=new _.bn("transcriptFooterRenderer");var hyN=new _.bn("engagementPanelAdSubtitleRenderer");var CVO=new _.bn("videoDescriptionFantasySectionViewModel");var ib7=new _.bn("deleteClipEngagementPanelCommand");var ObM=new _.bn("loopCommand");var a0_=new _.bn("changeCreatorEndscreenVisibilityCommand");var ysI=new _.bn("liveChatCallForQuestionsRenderer");var oFO=new _.bn("updateTimedMarkersSyncObserverCommand");var SvO=new _.bn("timelyActionViewModel");var mf0=new _.bn("timelyActionsOverlayViewModel");var UfO=new _.bn("repeatChapterCommand");var RyN=new _.bn("watchPlayerOverflowMenuCommand");var NnN=new _.bn("compositeVideoOverlayRenderer");var As7=new _.bn("sortFilterSubMenuRenderer");var xf0=new _.bn("switchListItemViewModel");var CYN=new _.bn("inputComposerViewModel");var LfI=new _.bn("transcriptEditSegmentCommand");var EF4=new _.bn("transcriptUpdateSegmentTextCommand");var Yvq=new _.bn("transcriptSearchBoxRenderer");var Ffy=new _.bn("transcriptSegmentListRenderer");var bbO=new _.bn("transcriptSegmentRenderer");_.GIy=new _.bn("updateDateTextAction");var Hly=new _.bn("updateTitleAction");var sz0=new _.bn("updateViewershipAction");var ZlN=new _.bn("relatedChipCommand");var QzM=new _.bn("carouselLockupRenderer");var h2=new _.bn("expandableVideoDescriptionBodyRenderer");var ptY=new _.bn("videoDescriptionHeaderRenderer");var l22=new _.bn("videoDescriptionYouchatSectionViewModel");_.Cx=_.eA("kevlar_watch_page_horizontal_margin",24);_.gIY=_.eA("kevlar_watch_page_columns_top_padding",24);_.I2O=426+_.Cx*2;_.i8=_.eA("kevlar_watch_two_column_width_threshold",1E3);_.qJY=_.Cx*2;_.SJO=_.eA("kevlar_watch_secondary_width",402);_.uUU=_.eA("kevlar_watch_max_player_width",1280);_.BO0=_.eA("kevlar_watch_flexy_metadata_height",136);_.JeM=_.qJY+310+_.Cx;_.tKd=_.qJY+360+_.Cx;var kIq={PAUSE_CHAT:18};var DVU;var dV0;var OC=function(){return _.C.apply(this,arguments)||this};
_.T(OC,_.C);OC.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
OC.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var G=_.X(this.data.button,_.HN);G&&(G.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.u4.Object.defineProperties(OC,{template:{configurable:!0,enumerable:!0,get:function(){if(dV0===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;DVU===void 0&&(DVU=document.createElement("template"));var Q=DVU;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);dV0=G}G=dV0;return G}}});
_.N([_.v(_.m$),_.A("design:type",Object)],OC.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h({selectorArgs:["data.enabledEntityKey"],selector:uG4,observer:"onEnabledChange"}),_.A("design:type",Boolean)],OC.prototype,"enabled",void 0);_.N([_.h(),_.A("design:type",Object)],OC.prototype,"data",void 0);_.N([_.fH({is:"yt-disableable-button-view-model",noInjection:!0})],OC);var e__;var nI7;var VK0=["transVert01","transVert02","transVert03"],$Vd="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),aU=function(){var G=_.C.apply(this,arguments)||this;G.emojiManager=_.FY;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};G.reactionBuckets=[];G.noEmojiIdentifier="NO_EMOJI";return G};
_.T(aU,_.C);_.g=aU.prototype;_.g.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.g.desktopFountainEmojiSizePxChanged=function(){_.ZI(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.g.createUserReactionAnimation=function(G){this.createEmojiAnimation(G,!0)};
_.g.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var G;((G=this.data)==null?0:G.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.uP("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.OP(this.emojiContainer.children)).forEach(function(H){H.remove()})};
_.g.detached=function(){this.cleanupFountain()};
_.g.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var G;this.reactionBuckets=_.oN.unsafeClone((G=this.emojiFountainData)==null?void 0:G.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.g.processEmojiBucket=function(G){var H=this;if(this.reactionBuckets&&!(G>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var Z=this.reactionBuckets[G];this.generateEmojiAnimations(Z);if(G<this.reactionBuckets.length-1){var Q;if(Z==null?0:(Q=Z.duration)==null?0:Q.seconds)this.emojiBucketTimerId=setTimeout(function(){H.processEmojiBucket(G+1)},Number(Z.duration.seconds)*1E3)}}};
_.g.generateEmojiAnimations=function(G){var H=this,Z=this.getRandomEmojiIdFromBucketWithOverride(G);if(Z&&Z!==this.noEmojiIdentifier){var Q=0;G.targetEps?(Q=this.linearInterpolateBounded(1,20,100,12,G.emojiSizeIndex||0),this.createEmojiAnimation(Z,!1,G.emojiAnimationMs,Q),Q=this.getEmojiDelayMsFromTargetEps(G.targetEps)):(this.createEmojiAnimation(Z),Q=this.getEmojiDelayMsFromDistribution(G.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){H.generateEmojiAnimations(G)},Q)}};
_.g.getRandomEmojiIdFromBucketWithOverride=function(G){if(!(G&&G.reactionsData&&G.reactionsData.length&&G.totalReactions))return this.noEmojiIdentifier;for(var H=G.totalReactions,Z=1,Q=_.I(G.reactionsData),p=Q.next();!p.done;p=Q.next())p=p.value,(p.reactionWeightOverride||p.reactionWeightOverride===0)&&p.reactionCount&&(H-=p.reactionCount,Z-=p.reactionWeightOverride);Q=!0;Z<0&&(Q=!1,H=G.totalReactions,Z=1);if(Q&&Z>0&&H===0)if(Z===1){p=0;for(var l=_.I(G.reactionsData),q=l.next();!q.done;q=l.next())q=
q.value,q.reactionCount&&q.reactionCount>0&&p++;p=1/p;l=_.I(G.reactionsData);for(q=l.next();!q.done;q=l.next())q.value.reactionWeightOverride=p}else for(p=1/(1-Z),l=_.I(G.reactionsData),q=l.next();!q.done;q=l.next())q=q.value,q.reactionWeightOverride&&(q.reactionWeightOverride*=p);p=Math.random();l=0;q=_.I(G.reactionsData);for(var u=q.next();!u.done;u=q.next())if(u=u.value,u.reactionCount&&(l=(u.reactionWeightOverride||u.reactionWeightOverride===0)&&Q?l+u.reactionWeightOverride:l+Z*u.reactionCount/
H,l>p&&(u.reactionCount--,G.totalReactions--,u=this.reactionItemToEmojiString(u),u!==this.noEmojiIdentifier)))return u;return this.noEmojiIdentifier};
_.g.reactionItemToEmojiString=function(G){if(G.unicodeEmojiId)return G.unicodeEmojiId;if(G.emoteId)return G.emoteId;if(G.videoReactionType)switch(G.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.g.createEmojiAnimation=function(G,H,Z,Q){H=H===void 0?!1:H;this.lastEmojiRequestedForTesting=G;var p=G.startsWith("yt-icons:"),l=_.EM(this.emojiManager,G);if(l||p){var q=document.createElement("emoji");q.classList.add("yt-emoji-fountain-view-model");q.classList.add(VK0[Math.floor(Math.random()*VK0.length)]);var u=document.createElement("div");u.classList.add("yt-emoji-fountain-view-model");u.classList.add("horizontal-container");u.classList.add($Vd[Math.floor(Math.random()*$Vd.length)]);H?(Z=document.createElement("div"),
Z.classList.add("user-reaction-bubble"),Z.classList.add("yt-emoji-fountain-view-model"),u.appendChild(Z)):(Z&&(q.style.animationDuration=Z+"ms",u.style.animationDuration=Z+"ms"),Q&&(q.style.width=Q+"px",q.style.height=Q+"px"));p?(p=document.createElement("yt-icon"),p.polymerController.icon=G,Q&&(p.style.width=Q+"px",p.style.height=Q+"px"),G=p):G=this.emojiManager.createEmoji(l,!1);G.classList.add("yt-emoji-fountain-view-model");u.appendChild(G);q.appendChild(u);this.emojiContainer.appendChild(q);
q.addEventListener("animationend",function(){q.remove()});
var B,t;if((B=this.data)==null?0:(t=B.loggingDirectives)==null?0:t.trackingParams)H=H?_.bl(183501):_.bl(183500),BI2(this.data.loggingDirectives.trackingParams,H),_.kNf(H);setTimeout(function(){q&&q.remove()},2E3)}};
_.g.getEmojiDelayMsFromDistribution=function(G){return Math.random()*(G||1)*1E3};
_.g.getEmojiDelayMsFromTargetEps=function(G){return Math.random()*2*(1/G)*1E3};
_.g.linearInterpolateBounded=function(G,H,Z,Q,p){p=Math.min(Math.max(p,G),Z);return(H*(Z-p)+Q*(p-G))/(Z-G)};
aU.prototype.onEmojiFountainDataEntityUpdate=aU.prototype.onEmojiFountainDataEntityUpdate;aU.prototype.desktopFountainEmojiSizePxChanged=aU.prototype.desktopFountainEmojiSizePxChanged;aU.prototype.isActiveChanged=aU.prototype.isActiveChanged;_.N([_.h(),_.A("design:type",_.Li)],aU.prototype,"emojiManager",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],aU.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],aU.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],aU.prototype,"data",void 0);_.N([_.h({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(G,H){return _.Hv(G.entities,"emojiFountainDataEntity",H)}}),
_.A("design:type",Object)],aU.prototype,"emojiFountainData",void 0);_.N([_.h(),_.A("design:type",Boolean)],aU.prototype,"isActive",void 0);_.N([_.gx("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aU.prototype,"isActiveChanged",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],aU.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",String)],aU.prototype,"lastEmojiRequestedForTesting",void 0);
_.N([_.h({value:function(){return _.eA("desktop_fountain_emoji_size_px",20)}}),
_.A("design:type",Number)],aU.prototype,"desktopFountainEmojiSizePx",void 0);_.N([_.gx("desktopFountainEmojiSizePx"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aU.prototype,"desktopFountainEmojiSizePxChanged",null);_.N([_.q6("#emoji-container"),_.A("design:type",HTMLElement)],aU.prototype,"emojiContainer",void 0);
_.N([_.gx("emojiFountainData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],aU.prototype,"onEmojiFountainDataEntityUpdate",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],aU);
_.m(aU,"yt-emoji-fountain-view-model",function(){if(nI7===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;e__===void 0&&(e__=document.createElement("template"));var Q=e__;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);nI7=G}G=nI7;return G},{mode:0});var Xt7;var ce4;var y0=function(){return _.C.apply(this,arguments)||this};
_.T(y0,_.C);y0.prototype.onChoiceChanged=function(){this.data&&_.ZI(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
y0.prototype.onChoiceChanged=y0.prototype.onChoiceChanged;_.N([_.h(),_.A("design:type",Object)],y0.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y0.prototype,"onChoiceChanged",null);_.N([_.O({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],y0);
_.m(y0,"yt-live-chat-banner-poll-choice",function(){if(ce4===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Xt7===void 0&&(Xt7=document.createElement("template"));var Q=Xt7;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ce4=G}G=ce4;return G},{mode:0});var TO_;var f22;var oU=function(){var G=_.C.apply(this,arguments)||this;G.modern=_.V("web_button_rework_with_live");G.small=!1;return G};
_.T(oU,_.C);oU.prototype.computeIsSmall=function(){var G;return((G=this.buttonOverrides)==null?void 0:G.size)==="S"};
oU.prototype.computeId=function(){return this.data&&this.data.targetId};
_.N([_.v(_.Ur.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],oU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.h({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",String)],oU.prototype,"id",void 0);_.N([_.h(),_.A("design:type",Object)],oU.prototype,"buttonOverrides",void 0);_.N([_.h(),_.A("design:type",Object)],oU.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],oU.prototype,"modern",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.A("design:type",Object)],oU.prototype,"small",void 0);_.N([_.O({disableElementRegistration:!0,is:"yt-live-chat-button"})],oU);
_.m(oU,"yt-live-chat-button",function(){if(f22===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;TO_===void 0&&(TO_=document.createElement("template"));var Q=TO_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);f22=G}G=f22;return G},{mode:0});var vI4;var WRI;var mM=function(){var G=_.C.apply(this,arguments)||this;G.inCollapsedBanner=!1;G.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};G.questionButtonOverrides={style:"mono",type:"filled"};return G};
_.T(mM,_.C);_.g=mM.prototype;_.g.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]]"}}}}}};
_.g.onContextMenuButtonClick=function(G){this.ytLiveChatItemBehavior.showContextMenu(G)};
_.g.onYtRendererstamperFinished=function(){this.menuButton=_.F9(this.hostElement).querySelector("#menu-button")};
_.g.dataChanged=function(){var G,H;if((H=_.X((G=this.data)==null?void 0:G.overflowMenuButton,_.Yl))==null?0:H.command)this.data.contextMenuEndpoint=_.X(this.data.overflowMenuButton,_.Yl).command};
_.g.onButtonClick=function(){var G,H=_.X((G=this.data)==null?void 0:G.askQuestionButton,_.Yl);if(H){if(H.trackingParams&&(G=_.BT(H.trackingParams))){var Z=_.$k();Z&&_.Co(Z,G)}_.N5(this.hostElement,"innertube-command",H.command)}};
mM.prototype.onYtRendererstamperFinished=mM.prototype.onYtRendererstamperFinished;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],mM.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],mM.prototype,"ytLiveChatItemBehavior",void 0);_.N([_.h({observer:"dataChanged"}),_.A("design:type",Object)],mM.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],mM.prototype,"inCollapsedBanner",void 0);_.N([_.h(),_.A("design:type",Object)],mM.prototype,"buttonOverrides",void 0);_.N([_.h(),_.A("design:type",Object)],mM.prototype,"questionButtonOverrides",void 0);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mM.prototype,"onYtRendererstamperFinished",null);
_.N([_.O({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],mM);
_.m(mM,"yt-live-chat-call-for-questions-renderer",function(){if(WRI===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;vI4===void 0&&(vI4=document.createElement("template"));var Q=vI4;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);WRI=G}G=WRI;return G},{mode:0});var z_q={};z_q.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 G=this;window.requestAnimationFrame(function(){G.restoreFocusNode_||(G.restoreFocusNode_=document.activeElement);var H=_.P__(G.hostElement);H.length&&H[H.length-1].focus()})},
isAttachedChanged_:function(G,H){G?this.focusChild_():H&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(G){this.hidden||_.OD(G).indexOf(this.hostElement)!==-1||(G.stopPropagation(),this.focusChild_())}};var KRy;var MK2;var UC=function(){return _.C.apply(this,arguments)||this};
_.T(UC,_.C);UC.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UC.prototype.onClick=function(G){G.target!==this.confirmButton&&G.target!==this.cancelButton&&(this.hidden=!0)};
_.N([_.q6("#confirm_button"),_.A("design:type",Object)],UC.prototype,"confirmButton",void 0);_.N([_.q6("#cancel_button"),_.A("design:type",Object)],UC.prototype,"cancelButton",void 0);_.N([_.h(),_.A("design:type",jzO)],UC.prototype,"data",void 0);_.N([_.h({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],UC.prototype,"hidden",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(z_q.YtLiveChatDialogBehavior),_.A("design:type",Object)],UC.prototype,"ytLiveChatDialogBehavior",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],UC);
var jzO=_.m(UC,"yt-live-chat-dialog-renderer",function(){if(MK2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;KRy===void 0&&(KRy=document.createElement("template"));var Q=KRy;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);MK2=G}G=MK2;return G},{mode:0});var PWM;var re0,wt4=function(){if(re0!==void 0)return re0;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;PWM===void 0&&(PWM=document.createElement("template"));var Q=PWM;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return re0=G};var h_I;var CWN;var RU=function(){var G=_.C.apply(this,arguments)||this;G.tooltip=null;G.data=null;G.id="";G.active=!1;G.icon="";G.disabled=!1;G.showTooltip=!1;G.useToggledActiveState=!0;G.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return G};
_.T(RU,_.C);_.g=RU.prototype;
_.g.dataChanged=function(){var G;((G=this.data)==null?0:G.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,_.sI)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var H;if((H=this.data)==null?0:H.disabled)this.disabled=!0};
_.g.computeId=function(G){return G};
_.g.computeIcon=function(G,H){if(!G)return"";if(this.useToggledActiveState)return"yt-icons:"+G.toLowerCase();var Z,Q;return H&&((Z=this.data)==null?0:(Q=Z.toggledIcon)==null?0:Q.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+G.toLowerCase()};
_.g.logPDGEntryPoint=function(){_.skj(_.Zp("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")};
_.g.immediatelyShowTooltip=function(){var G=_.F9(this.hostElement).querySelector("#tooltip");G.animationDelay=0;G.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};G.show()};
_.g.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.g.onClick=function(G){var H;((H=this.data)==null?0:H.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(),G.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.N5(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.g.computeShowTooltip=function(G,H){return!!(G&&G.tooltip&&H)};
_.g.maybeUpdateTooltipText=function(){var G=this,H;if((H=this.data)==null?0:H.tooltip){var Z=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.sI)(G.tooltip).textContent=Z},250)}};
_.g.handleLiveChatActions=function(G){var H=this;G.length&&(this.id!=="creator"&&this.id!=="product-picker"||G.forEach(function(Z){(Z=H.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",Z))&&Z.durationSec===Z.fullDurationSec&&H.startBubble(H.colorFromDecimal(Z.startBackgroundColor))}))};
_.g.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.g.startBubble=function(G){_.ZI(this.hostElement,{"--yt-live-chat-monetization-button-glow":G});this.hostElement.setAttribute("bubble","")};
_.g.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.g.colorFromDecimal=function(G){typeof G==="string"&&(G=Number(G));return"rgba("+[G>>16&255,G>>8&255,G&255,(G>>24&255)/255].join()+")"};
RU.prototype.onAnimationEnd=RU.prototype.onAnimationEnd;RU.prototype.disabledChanged=RU.prototype.disabledChanged;RU.prototype.dataChanged=RU.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],RU.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ur.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],RU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],RU.prototype,"data",void 0);_.N([_.h({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",Object)],RU.prototype,"id",void 0);_.N([_.h({notify:!0,reflectToAttribute:!0}),_.A("design:type",Object)],RU.prototype,"active",void 0);
_.N([_.h({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.A("design:type",Object)],RU.prototype,"icon",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],RU.prototype,"disabled",void 0);_.N([_.h({computed:"computeShowTooltip(data, disabled)"}),_.A("design:type",Object)],RU.prototype,"showTooltip",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],RU.prototype,"useToggledActiveState",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RU.prototype,"dataChanged",null);_.N([_.gx("disabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RU.prototype,"disabledChanged",null);_.N([_.lq("animationend"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],RU.prototype,"onAnimationEnd",null);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],RU);
_.m(RU,"yt-live-chat-icon-toggle-button-renderer",function(){if(CWN===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;h_I===void 0&&(h_I=document.createElement("template"));var Q=h_I;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);CWN=G}G=CWN;return G},{mode:0});var ilN;var Old;var N0=function(){return _.C.apply(this,arguments)||this};
_.T(N0,_.C);N0.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N([_.h(),_.A("design:type",Object)],N0.prototype,"data",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.O({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],N0);
_.m(N0,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Old===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;ilN===void 0&&(ilN=document.createElement("template"));var Q=ilN;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Old=G}G=Old;return G},{mode:0});var a2Y;var yeN;var oII;var mV0;var UVy;var R_d;var NOY=function(){return _.C.apply(this,arguments)||this};
_.T(NOY,_.C);_.N([_.h(),_.A("design:type",Object)],NOY.prototype,"data",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],NOY);
_.m(NOY,"yt-live-chat-message-subtext-renderer",function(){if(R_d===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;UVy===void 0&&(UVy=document.createElement("template"));var Q=UVy;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);R_d=G}G=R_d;return G},{mode:0});var A2=function(){var G=_.C.apply(this,arguments)||this;G.subtextOnBottom=!1;G.buttonOverrides={style:"mono",type:"tonal"};return G};
_.T(A2,_.C);A2.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],A2.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],A2.prototype,"subtextOnBottom",void 0);_.N([_.h(),_.A("design:type",Object)],A2.prototype,"buttonOverrides",void 0);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],A2);
_.m(A2,"yt-live-chat-message-renderer",function(){if(mV0===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;oII===void 0&&(oII=document.createElement("template"));var Q=oII;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);mV0=G}G=mV0;return G},{mode:0});var Aeq;var xVN;var xm=function(){var G=_.C.apply(this,arguments)||this;G.isRemovable=!1;G.hasPrefilledText=!1;G.isInputDirty=!1;G.overCharacterLimit=!1;G.underCharacterLimit=!1;G.showErrorMessage=!1;return G};
_.T(xm,_.C);_.g=xm.prototype;_.g.computeId=function(){return this.data.id};
_.g.computeInputData=function(){return this.data.inputData};
_.g.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.g.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.g.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.g.getLiveChatRichMessageInput=function(){return _.F9(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.g.clearInput=function(){_.F9(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.g.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.g.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.g.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.g.handleTextInputCharCountChanged=function(G){G=G.detail&&G.detail.characterCount;G!==void 0&&(this.characterCount=G,G!==0&&(this.isInputDirty=!0))};
_.g.onInputFocusOut=function(){this.isInputDirty=!0};
_.g.onClickCloseButton=function(){_.N5(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
xm.prototype.handleTextInputCharCountChanged=xm.prototype.handleTextInputCharCountChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xm.prototype,"data",void 0);_.N([_.h({computed:"computeId(data.id)"}),_.A("design:type",String)],xm.prototype,"id",void 0);_.N([_.h({computed:"computeInputData(data.inputData)"}),_.A("design:type",Object)],xm.prototype,"inputData",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.A("design:type",Object)],xm.prototype,"isRemovable",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.A("design:type",Object)],xm.prototype,"hasPrefilledText",void 0);_.N([_.h({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.A("design:type",Number)],xm.prototype,"charactersRemaining",void 0);
_.N([_.h(),_.A("design:type",Number)],xm.prototype,"characterCount",void 0);_.N([_.h(),_.A("design:type",Object)],xm.prototype,"isInputDirty",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.A("design:type",Object)],xm.prototype,"overCharacterLimit",void 0);_.N([_.h({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.A("design:type",Object)],xm.prototype,"underCharacterLimit",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.A("design:type",Object)],xm.prototype,"showErrorMessage",void 0);_.N([_.lq("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],xm.prototype,"handleTextInputCharCountChanged",null);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],xm);
_.m(xm,"yt-live-chat-poll-editor-input",function(){if(xVN===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Aeq===void 0&&(Aeq=document.createElement("template"));var Q=Aeq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);xVN=G}G=xVN;return G},{mode:0});var LRY;var EI_;var YJ4={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Lx=function(){var G=_.C.apply(this,arguments)||this;G.modern=_.V("web_button_rework_with_live");G.closeButtonOverrides={iconPosition:"icon-only"};G.startButtonOverrides={style:"mono",type:"filled"};G.addOptionButtonOverrides={style:"mono",type:"text"};return G};
_.T(Lx,_.C);_.g=Lx.prototype;
_.g.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"}}}}};
_.g.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var G;_.X((G=this.data)==null?void 0:G.startButton,_.Yl)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.g.computeId=function(){return this.data&&this.data.id||""};
_.g.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.g.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.g.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.g.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.g.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var G=0;G<this.pollEditorInfoWithDefaults.minPollOptions;G++)this.addPollOptionData()};
_.g.getIsValidPoll=function(){var G=this;if(!this.pollEditorInfoWithDefaults)return!1;var H=this.pollEditorInfoWithDefaults,Z=H.minPollOptionChars,Q=H.maxPollOptionChars,p=H.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>H.maxPollQuestionChars)return!1;H=_.F9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(H).every(function(l,q){l=l.characterCount;!l&&p[q]&&(l=G.ytRendererBehavior.getSimpleString(p[q]).length);return l!==void 0&&l>=Z&&l<=Q})};
_.g.isValidPollChanged=function(){var G;_.X((G=this.data)==null?void 0:G.startButton,_.Yl)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.g.addPollOptionData=function(){var G=this.pollEditorInfoWithDefaults,H=G.maxPollOptionChars,Z=G.optionPlaceholderText,Q=G.customOptionPlaceholderText,p=G.pollOptionData;this.currentNumPollOptions>=G.maxPollOptions||(G={liveChatPollOptionInput:{inputData:{placeholder:Q[this.currentNumPollOptions]||Z,maxCharacterLimit:H},maxCharacterLimit:H,minCharacterLimit:G.minPollOptionChars,hasPrefilledText:!!Q[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=G.minPollOptions}},p.charCountErrorText&&
(G.liveChatPollOptionInput.charCountErrorText=p.charCountErrorText),p.charsRemainingAltLabel&&(G.liveChatPollOptionInput.charsRemainingAltLabel=p.charsRemainingAltLabel),p.removeOptionAltText&&(G.liveChatPollOptionInput.removeOptionAltText=p.removeOptionAltText),this.push("pollOptionsData",G),p=Array.from(_.F9(_.F9(this.hostElement).querySelector("#poll-options")).children),p.forEach(function(l,q){l.polymerController.set("data.id",q)}),_.F9(p[p.length-1]).querySelector("#input").focus())};
_.g.getPollOptionInputValues=function(){var G=this,H=[],Z=_.F9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),Q=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(Z).forEach(function(p,l){var q=null;p=p.getLiveChatRichMessageInput();var u;(p==null?0:(u=p.textSegments)==null?0:u.length)?q=_.KI(p):Q[l]&&(q=G.formattedStringToLiveChatRichMessageInput(Q[l]));H.push(q)});
return H};
_.g.requestCreateAndStartPoll=function(G){var H=this.getPollOptionInputValues();if(!H.some(function(Q){return!Q})){H={optionText:H};
var Z=_.F9(_.F9(this.hostElement).querySelector("#poll-question")).firstChild;Z&&Z.liveChatRichMessageInput&&(H.questionText=_.KI(Z.liveChatRichMessageInput));_.L9(this.hostElement,[G,H])}};
_.g.selectedChanged=function(){if(this.selected){var G=_.F9(_.F9(this.hostElement).querySelector("#start-button")).firstElementChild;if(G){var H;(H=_.F9(G).querySelector("#button")||_.bS(G).querySelector("button"))==null||H.focus()}}};
_.g.handleTextInputChanged=function(G){var H;((H=G.target)==null?void 0:H.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=G.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.g.handleStartButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),(G=G.detail.args[1])&&this.requestCreateAndStartPoll(G))};
_.g.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.g.handleServiceRequestCompleted=function(G){this.createPollRequestInFlight=!1;(G=G.detail&&G.detail.data)&&G.success&&(_.N5(this.hostElement,"picker-cancelled"),_.AZ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.g.onCloseClick=function(){_.N5(this.hostElement,"picker-cancelled");_.AZ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.g.handlePollEditorInputClosed=function(G){var H=this.pollOptionsData.findIndex(function(Z){return Z.liveChatPollOptionInput.id===G.detail.id});
this.splice("pollOptionsData",H,1);this.isValidPoll=this.getIsValidPoll()};
_.g.onPickerCancelled=function(){this.reset()};
_.g.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var G=_.F9(_.F9(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.setLiveChatRichMessageInput(null);if(G=_.F9(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){G=_.I(Array.from(G));for(var H=G.next();!H.done;H=G.next())H.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.g.formattedStringToLiveChatRichMessageInput=function(G){return G.simpleText?{text_segments:[G.simpleText]}:{text_segments:G.runs}};
_.u4.Object.defineProperties(Lx.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(YJ4,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Lx.prototype.onPickerCancelled=Lx.prototype.onPickerCancelled;Lx.prototype.handlePollEditorInputClosed=Lx.prototype.handlePollEditorInputClosed;Lx.prototype.handleServiceRequestCompleted=Lx.prototype.handleServiceRequestCompleted;Lx.prototype.handleServiceRequestSent=Lx.prototype.handleServiceRequestSent;Lx.prototype.handleTextInputChanged=Lx.prototype.handleTextInputChanged;Lx.prototype.selectedChanged=Lx.prototype.selectedChanged;Lx.prototype.isValidPollChanged=Lx.prototype.isValidPollChanged;
Lx.prototype.shouldInitializePollChanged=Lx.prototype.shouldInitializePollChanged;Lx.prototype.dataChanged=Lx.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Lx.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lx.prototype,"modern",void 0);
_.N([_.h(),_.A("design:type",Object)],Lx.prototype,"closeButtonOverrides",void 0);_.N([_.h(),_.A("design:type",Object)],Lx.prototype,"startButtonOverrides",void 0);_.N([_.h(),_.A("design:type",Object)],Lx.prototype,"addOptionButtonOverrides",void 0);_.N([_.h({computed:"computeId(data.id)",reflectToAttribute:!0}),_.A("design:type",String)],Lx.prototype,"id",void 0);_.N([_.h({value:function(){return[]}}),
_.A("design:type",Array)],Lx.prototype,"pollOptionsData",void 0);_.N([_.z("pollEditorInfoWithDefaults"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lx.prototype,"pollQuestionData",null);_.N([_.h({value:0}),_.A("design:type",Number)],Lx.prototype,"pollQuestionCharacterCount",void 0);_.N([_.z("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lx.prototype,"pollQuestionCharactersRemaining",null);
_.N([_.h({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.A("design:type",Boolean)],Lx.prototype,"overQuestionCharacterLimit",void 0);_.N([_.z("data.pollEditorInfo"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lx.prototype,"pollEditorInfoWithDefaults",null);_.N([_.h({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.A("design:type",Number)],Lx.prototype,"currentNumPollOptions",void 0);
_.N([_.h({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Lx.prototype,"hasMaxNumPollOptions",void 0);_.N([_.z("pollEditorInfoWithDefaults","pollOptionsData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lx.prototype,"shouldInitializePoll",null);_.N([_.h(),_.A("design:type",Object)],Lx.prototype,"isValidPoll",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Lx.prototype,"createPollRequestInFlight",void 0);_.N([_.h(),_.A("design:type",Object)],Lx.prototype,"selected",void 0);_.N([_.h({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.A("design:type",Boolean)],Lx.prototype,"showQuestionErrorMessage",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lx.prototype,"dataChanged",null);_.N([_.gx("shouldInitializePoll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lx.prototype,"shouldInitializePollChanged",null);_.N([_.gx("isValidPoll"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lx.prototype,"isValidPollChanged",null);
_.N([_.gx("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lx.prototype,"selectedChanged",null);_.N([_.lq("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Lx.prototype,"handleTextInputChanged",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lx.prototype,"handleServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Lx.prototype,"handleServiceRequestCompleted",null);
_.N([_.lq("yt-live-chat-poll-editor-input-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Lx.prototype,"handlePollEditorInputClosed",null);_.N([_.lq("picker-cancelled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lx.prototype,"onPickerCancelled",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Lx);
_.m(Lx,"yt-live-chat-poll-editor-panel-renderer",function(){if(EI_===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;LRY===void 0&&(LRY=document.createElement("template"));var Q=LRY;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);EI_=G}G=EI_;return G},{mode:0});var FRU;var blO;var EC=function(){return _.C.apply(this,arguments)||this};
_.T(EC,_.C);EC.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
EC.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.u4.Object.defineProperties(EC.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var G,H;return(G=this.data)==null?void 0:(H=G.title)==null?void 0:H.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var G;return _.Tt((G=this.data)==null?void 0:G.onTapCommand)}}});
_.N([_.v(_.ni.YtEndpointBehavior),_.A("design:type",Object)],EC.prototype,"ytEndpointBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],EC.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],EC.prototype,"itemId",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],EC.prototype,"hasPromotion",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],EC.prototype,"innertubeCommand",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],EC);
_.m(EC,"yt-live-chat-product-picker-panel-item-view-model",function(){if(blO===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;FRU===void 0&&(FRU=document.createElement("template"));var Q=FRU;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);blO=G}G=blO;return G},{mode:0});var GFy;var H$x;var Ym=function(){var G=_.C.apply(this,arguments)||this;G.id="product-picker";G.selected=!1;G.closeButtonId="close-button";G.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return G};
_.T(Ym,_.C);_.g=Ym.prototype;_.g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.g.observeSelected=function(){this.selected&&this.hostElement.focus();var G=_.F9(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");G.length&&G[0].focus()};
_.g.onCloseBuyFlow=function(){_.N5(this.hostElement,"picker-cancelled")};
_.g.onCloseClick=function(){_.N5(this.hostElement,"picker-cancelled");var G;((G=this.data)==null?0:G.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.X(this.data.closeButton,_.HN))};
_.g.onCloseEngageWithAudienceEditorPanels=function(){_.N5(this.hostElement,"picker-cancelled")};
Ym.prototype.observeSelected=Ym.prototype.observeSelected;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ym.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ym.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ym.prototype,"id",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ym.prototype,"selected",void 0);_.N([_.h(),_.A("design:type",Object)],Ym.prototype,"closeButtonId",void 0);_.N([_.gx("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ym.prototype,"observeSelected",null);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Ym);
_.m(Ym,"yt-live-chat-product-picker-panel-view-model",function(){if(H$x===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;GFy===void 0&&(GFy=document.createElement("template"));var Q=GFy;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);H$x=G}G=H$x;return G},{mode:0});var sJx;var Z$N;var F7=function(){var G=_.C.apply(this,arguments)||this;G.iconId="";G.icon="";G.disabled=!1;G.systemIcons=_.V("kevlar_system_icons");return G};
_.T(F7,_.C);_.g=F7.prototype;_.g.computeIconId=function(G){return G&&G.icon&&G.icon.iconType?G.icon.iconType.toLowerCase():""};
_.g.computeIcon=function(G){return G&&G.icon&&G.icon.iconType?(G=G.icon.iconType.toLowerCase(),(G.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+G):""};
_.g.computeDisabled=function(G){return!!G};
_.g.computeCommand=function(G,H){return H?void 0:G};
_.g.computeTooltip=function(G,H){return H&&G?G:""};
_.g.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.u4.Object.defineProperties(F7.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G="",H,Z,Q;if((H=this.data)==null?0:(Z=H.text)==null?0:(Q=Z.runs)==null?0:Q.length)G=this.data.text.runs[0].text||"";else{var p,l;if((p=this.data)==null?0:(l=p.text)==null?0:l.simpleText)G=this.data.text.simpleText}var q,u,B;if((q=this.data)==null?0:(u=q.subtext)==null?0:(B=u.runs)==null?0:B.length)G&&(G+=". "),G+=this.data.subtext.runs[0].text||"";else{var t,D;if((t=this.data)==null?0:(D=t.subtext)==
null?0:D.simpleText)G&&(G+=". "),G+=this.data.subtext.simpleText}return G}}});
_.N([_.v(_.ni.YtEndpointBehavior),_.A("design:type",Object)],F7.prototype,"ytEndpointBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],F7.prototype,"data",void 0);_.N([_.h({computed:"computeIconId(data)",reflectToAttribute:!0}),_.A("design:type",Object)],F7.prototype,"iconId",void 0);
_.N([_.h({computed:"computeIcon(data)",reflectToAttribute:!0}),_.A("design:type",Object)],F7.prototype,"icon",void 0);_.N([_.h({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.A("design:type",Object)],F7.prototype,"disabled",void 0);_.N([_.h({computed:"computeCommand(data.command, disabled)"}),_.A("design:type",Object)],F7.prototype,"command",void 0);_.N([_.h({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.A("design:type",String)],F7.prototype,"tooltip",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],F7.prototype,"systemIcons",void 0);_.N([_.z("data.text","data.subtext"),_.h(),_.A("design:type",String),_.A("design:paramtypes",[])],F7.prototype,"ariaLabel",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],F7);
_.m(F7,"yt-live-chat-product-button-renderer",function(){if(Z$N===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;sJx===void 0&&(sJx=document.createElement("template"));var Q=sJx;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Z$N=G}G=Z$N;return G},{mode:0});var QJ_;var pU2;var b8=function(){var G=_.C.apply(this,arguments)||this;G.selected=!1;G.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 G};
_.T(b8,_.C);_.g=b8.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.computeId=function(G){return G.id||""};
_.g.onCloseClick=function(){_.N5(this.hostElement,"picker-cancelled")};
_.g.observeSelected=function(){this.selected&&this.hostElement.focus();var G=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");G.length&&G[0].focus()};
_.g.onCloseBuyFlow=function(){_.N5(this.hostElement,"picker-cancelled")};
_.g.onCloseEngageWithAudienceEditorPanels=function(){_.N5(this.hostElement,"picker-cancelled")};
b8.prototype.observeSelected=b8.prototype.observeSelected;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],b8.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],b8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],b8.prototype,"data",void 0);
_.N([_.h({computed:"computeId(data)",reflectToAttribute:!0}),_.A("design:type",String)],b8.prototype,"id",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],b8.prototype,"selected",void 0);_.N([_.gx("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],b8.prototype,"observeSelected",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],b8);
_.m(b8,"yt-live-chat-product-picker-renderer",function(){if(pU2===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;QJ_===void 0&&(QJ_=document.createElement("template"));var Q=QJ_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);pU2=G}G=pU2;return G},{mode:0});var lkY;var gMI;var IkY;var qdy;var GC=function(){return _.C.apply(this,arguments)||this};
_.T(GC,_.C);GC.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()};
GC.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
GC.prototype.created=function(){this.ids={background:_.zH(),maskOne:_.zH(),maskTwo:_.zH(),gradient:_.zH(),largeBackground:_.zH(),largeGradientOne:_.zH(),largeGradientTwo:_.zH(),largeGradientPath:_.zH()}};
GC.prototype.maybeLoadAnimationBackground=GC.prototype.maybeLoadAnimationBackground;_.N([_.h({value:!1}),_.A("design:type",Boolean)],GC.prototype,"useLargeBackground",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],GC.prototype,"useAnimationBackground",void 0);_.N([_.h({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.A("design:type",Boolean)],GC.prototype,"useRegularBackground",void 0);
_.N([_.h(),_.A("design:type",Object)],GC.prototype,"ids",void 0);_.N([_.h(),_.A("design:type",Object)],GC.prototype,"lottieAnimation",void 0);_.N([_.q6("#animation-background"),_.A("design:type",HTMLDivElement)],GC.prototype,"animationBackground",void 0);_.N([_.gx("useAnimationBackground"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GC.prototype,"maybeLoadAnimationBackground",null);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],GC);
_.m(GC,"yt-live-interactivity-component-background",function(){if(qdy===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;IkY===void 0&&(IkY=document.createElement("template"));var Q=IkY;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);qdy=G}G=qdy;return G},{mode:0});var Hz=function(){var G=_.C.apply(this,arguments)||this;G.characterCount=0;G.showInputErrorMessage=!1;G.startQnaRequestInFlight=!1;G.modern=_.V("web_button_rework_with_live");G.buttonOverrides={style:"mono",type:"filled"};G.closeButtonOverrides={iconPosition:"icon-only"};G.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return G};
_.T(Hz,_.C);_.g=Hz.prototype;
_.g.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]]"}}}}}};
_.g.onCharacterCountChanged=function(G){var H,Z,Q,p,l=(Z=_.X(this==null?void 0:(H=this.data)==null?void 0:H.creatorCallForQuestions,ysI))==null?void 0:(Q=Z.inputField)==null?void 0:(p=Q.liveChatTextInputFieldRenderer)==null?void 0:p.maxCharacterLimit,q,u;l!=null&&(G==null?void 0:(q=G.detail)==null?void 0:q.characterCount)!=null&&_.X(this==null?void 0:(u=this.data)==null?void 0:u.startButton,_.Yl)&&(H=G.detail.characterCount>l,this.set("data.startButton.buttonRenderer.isDisabled",G.detail.characterCount===
0||H),this.showInputErrorMessage=H)};
_.g.onCloseClick=function(){_.N5(this.hostElement,"picker-cancelled");_.AZ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.onPickerCancelled=function(){var G=_.F9(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.setLiveChatRichMessageInput(null)};
_.g.handleOpenQnaStartPanel=function(){var G=_.F9(this.hostElement).querySelector("#qna-creator-text-input-field");G&&G.focus()};
_.g.handleStartButtonAction=function(G){var H=this;if(G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),G=G.detail.args[1])){var Z=_.F9(this.hostElement).querySelector("#qna-creator-text-input-field"),Q;(Z==null?0:(Q=Z.liveChatRichMessageInput)==null?0:Q.textSegments)&&Z.liveChatRichMessageInput.textSegments.length!==0&&(Q={rich_message:_.KI(Z.liveChatRichMessageInput)},_.L9(this.hostElement,[G,Q]).then(function(){_.N5(H.hostElement,"picker-cancelled")}))}};
_.g.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.g.handleServiceRequestCompleted=function(G){var H;G=G==null?void 0:(H=G.detail)==null?void 0:H.data;(G==null?0:G.actions)&&G.actions.length>0?this.startQnaRequestInFlight=!1:_.AZ(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
Hz.prototype.handleServiceRequestError=Hz.prototype.handleServiceRequestError;Hz.prototype.handleServiceRequestCompleted=Hz.prototype.handleServiceRequestCompleted;Hz.prototype.handleServiceRequestSent=Hz.prototype.handleServiceRequestSent;Hz.prototype.onPickerCancelled=Hz.prototype.onPickerCancelled;Hz.prototype.onCharacterCountChanged=Hz.prototype.onCharacterCountChanged;_.N([_.h(),_.A("design:type",Object)],Hz.prototype,"characterCount",void 0);
_.N([_.h(),_.A("design:type",Object)],Hz.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Hz.prototype,"showInputErrorMessage",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Hz.prototype,"startQnaRequestInFlight",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Hz.prototype,"modern",void 0);_.N([_.h(),_.A("design:type",Object)],Hz.prototype,"buttonOverrides",void 0);
_.N([_.h(),_.A("design:type",Object)],Hz.prototype,"closeButtonOverrides",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Hz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],Hz.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.v(_.b1.YtLiveChatItemBehavior),_.A("design:type",_.GZ)],Hz.prototype,"ytLiveChatItemBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Hz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.lq("yt-live-chat-text-input-field-renderer-character-count-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Hz.prototype,"onCharacterCountChanged",null);_.N([_.lq("picker-cancelled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hz.prototype,"onPickerCancelled",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hz.prototype,"handleServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Hz.prototype,"handleServiceRequestCompleted",null);
_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Hz.prototype,"handleServiceRequestError",null);_.N([_.O({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],Hz);
_.m(Hz,"yt-live-chat-qna-start-panel-renderer",function(){if(gMI===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;lkY===void 0&&(lkY=document.createElement("template"));var Q=lkY;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);gMI=G}G=gMI;return G},{mode:0});var Sd0;var uP0;var so=function(){return _.C.apply(this,arguments)||this};
_.T(so,_.C);so.prototype.dismiss=function(){_.N5(this.hostElement,"yt-live-chat-error-message-dismiss")};
so.prototype.edit=function(){_.N5(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.N([_.h(),_.A("design:type",Object)],so.prototype,"data",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],so);
_.m(so,"yt-live-chat-text-actions-error-message-renderer",function(){if(uP0===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Sd0===void 0&&(Sd0=document.createElement("template"));var Q=Sd0;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);uP0=G}G=uP0;return G},{mode:0});var B74;var Jp7;var tAy;var kF_;var ZW=function(){var G=_.C.apply(this,arguments)||this;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.T(ZW,_.C);ZW.prototype.sendReaction=function(){var G,H,Z=((G=this.data)==null?void 0:G.emojiId)||((H=this.data)==null?void 0:H.emoteId),Q;Z&&((Q=this.data)==null?0:Q.shouldTriggerAnimation)&&_.AZ(this.hostElement,"yt-create-user-reaction-animation",[Z]);var p;(G=_.Tt((p=this.data)==null?void 0:p.onTap))&&_.s6(G,this.hostElement);this.showNewnessDot&&_.AZ(this.hostElement,"yt-hide-newness-dot")};
ZW.prototype.onClick=function(G){(!G||G.clientX||G.clientY)&&this.sendReaction()};
ZW.prototype.onKeyDown=function(G){G.key!=="Enter"&&G.key!==" "||G.repeat||this.sendReaction()};
_.u4.Object.defineProperties(ZW.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var G,H;return!!(((G=this.data)==null?0:G.emojiId)||((H=this.data)==null?0:H.emoteId))}}});
_.N([_.h(),_.A("design:type",Object)],ZW.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ZW.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",Object)],ZW.prototype,"newnessDotEligible",void 0);_.N([_.z("data.maybeShowNewnessDot"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ZW.prototype,"showNewnessDot",null);_.N([_.z("data.emojiId","data.emoteId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ZW.prototype,"useYtImage",null);
_.N([_.fH({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],ZW);
_.m(ZW,"yt-reaction-control-panel-button-view-model",function(){if(kF_===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;tAy===void 0&&(tAy=document.createElement("template"));var Q=tAy;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);kF_=G}G=kF_;return G},{mode:0});var DY0;var dYd;var Q1=function(){var G=_.C.apply(this,arguments)||this;G.reactionControlPanelExpanded=!1;G.isDarkTheme=document.documentElement.hasAttribute("dark");G.newnessDotEligible=!1;return G};
_.T(Q1,_.C);_.g=Q1.prototype;_.g.expandedButtonsChanged=function(){var G,H;_.ZI(this.hostElement,{"--expanded-buttons-height":((H=(G=this.expandedButtonsData)==null?void 0:G.length)!=null?H:0)*36+"px"})};
_.g.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}}};
_.g.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.g.onMouseLeave=function(){var G=this;this.collapseTimer=setTimeout(function(){G.reactionControlPanelExpanded=!1},500)};
_.g.onFocusIn=function(){this.onMouseEnter()};
_.g.onFocusOut=function(){this.onMouseLeave()};
_.g.onCollapsedButtonFocusIn=function(){var G=this;setTimeout(function(){var H;(H=G.expandedButtons.querySelector("button"))==null||H.focus()},100)};
_.g.onCollapsedButtonFocusOut=function(G){G.stopPropagation()};
_.u4.Object.defineProperties(Q1.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var G,H;return _.oN.unsafeClone((G=this.liveReactionsData)==null?void 0:G.emojiButtonData)||((H=this.data)==null?void 0:H.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var G;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((G=this.data)==null||!G.maybeShowNewnessDot)}}});
Q1.prototype.expandedButtonsChanged=Q1.prototype.expandedButtonsChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],Q1.prototype,"ytLiveChatReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Q1.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Q1.prototype,"reactionControlPanelExpanded",void 0);_.N([_.h({selectorArgs:["data.liveReactionsDataEntityKey"],selector:S1d}),_.A("design:type",Object)],Q1.prototype,"liveReactionsData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Q1.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",Object)],Q1.prototype,"newnessDotEligible",void 0);
_.N([_.z("liveReactionsData","data.expandedButtons"),_.A("design:type",Object),_.A("design:paramtypes",[])],Q1.prototype,"expandedButtonsData",null);_.N([_.z("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.h({reflectToAttribute:!0}),_.A("design:type",Object),_.A("design:paramtypes",[])],Q1.prototype,"showNewnessDot",null);_.N([_.q6("#expanded-buttons"),_.A("design:type",HTMLElement)],Q1.prototype,"expandedButtons",void 0);
_.N([_.gx("expandedButtonsData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Q1.prototype,"expandedButtonsChanged",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Q1);
_.m(Q1,"yt-reaction-control-panel-view-model",function(){if(dYd===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;DY0===void 0&&(DY0=document.createElement("template"));var Q=DY0;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);dYd=G}G=dYd;return G},{mode:0});var pk=new _.Lg("yt-live-chat"),eRO=Date.parse("2024-7-24"),lm=function(){var G=_.C.apply(this,arguments)||this;G.emojiManager=_.FY;G.newnessDotEligible=!1;G.newnessDotImpressionCounted=!1;G.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return G};
_.T(lm,_.C);_.g=lm.prototype;_.g.emojiCustomizationEnabledChanged=function(){var G;((G=this.data)==null?0:G.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((G=pk.getCreationTime("emoji-customization-count"))&&G<eRO&&pk.set("emoji-customization-count","0"),G=Number(pk.get("emoji-customization-count"))||0,G<3&&(this.newnessDotEligible=!0,pk.set("emoji-customization-count",(G+1).toString())),this.newnessDotImpressionCounted=!0)};
_.g.hideNewnessDot=function(){this.newnessDotEligible=!1;pk.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.g.handleReactionsMute=function(G){var H=_.$k(),Z=_.bl(206221),Q={checkboxData:{state:G?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};H&&_.Co(H,Z,Q);this.reactionsMuted=G};
_.g.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.g.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}}};
_.u4.Object.defineProperties(lm.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return(!((G=this.liveReactionsData)==null||!G.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
lm.prototype.liveReactionsSettingChanged=lm.prototype.liveReactionsSettingChanged;lm.prototype.emojiCustomizationEnabledChanged=lm.prototype.emojiCustomizationEnabledChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.m$),_.A("design:type",Object)],lm.prototype,"ytLiveChatReduxBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],lm.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lm.prototype,"data",void 0);_.N([_.h(),_.A("design:type",_.Li)],lm.prototype,"emojiManager",void 0);_.N([_.h(),_.A("design:type",Object)],lm.prototype,"newnessDotEligible",void 0);_.N([_.h(),_.A("design:type",Object)],lm.prototype,"newnessDotImpressionCounted",void 0);
_.N([_.h({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:uG4}),_.A("design:type",Boolean)],lm.prototype,"liveReactionsSetting",void 0);_.N([_.h({selectorArgs:["data.liveReactionsDataEntityKey"],selector:S1d}),_.A("design:type",Object)],lm.prototype,"liveReactionsData",void 0);_.N([_.h({value:function(){var G=_.V("enable_lwe_web_mute"),H=pk.get("allow-reactions");return H===void 0?!1:!H&&G}}),
_.A("design:type",Boolean)],lm.prototype,"reactionsMuted",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],lm.prototype,"liveReactionsEnabled",null);_.N([_.gx("data.emojiCustomizationEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lm.prototype,"emojiCustomizationEnabledChanged",null);
_.N([_.gx("liveReactionsEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lm.prototype,"liveReactionsSettingChanged",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],lm);
_.m(lm,"yt-reaction-control-panel-overlay-view-model",function(){if(Jp7===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;B74===void 0&&(B74=document.createElement("template"));var Q=B74;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Jp7=G}G=Jp7;return G},{mode:0});var nM_={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(G){var H=this.$.pickers.selected;if(H){_.F9(this.hostElement).removeAttribute(H+"-open");var Z="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(Z="#picker-buttons",H==="emoji"&&_.F9(this.hostElement).querySelector("#emoji-picker-button")&&(Z="#emoji-picker-button"));if(Z=_.F9(this.hostElement).querySelector(Z).querySelector("#"+H))Z.active=!1}Z=G;H==G&&(Z=null);H!=
G&&_.F9(this.hostElement).setAttribute(G+"-open","");this.$.pickers.selected=Z;_.AZ(this.hostElement,"yt-live-chat-picker-changed",[Z])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var ge=function(){var G=_.C.apply(this,arguments)||this;G.numSentMessages=0;G.timeoutDurationMs=0;G.timeoutMs=0;G.lastTimeoutTimeMs=0;G.pendingMessageId="";G.hasFiredInitialFocusActions=!1;G.isBeforeFocusEnabled=!0;G.id="";G.characterCount=0;G.maxCharacterLimit=0;G.remainingCharacterCount=0;G.inputExpanded=!1;G.buttonOverrides={iconPosition:"icon-only"};G.inReplyPanel=!1;G.countdownRatio=0;G.isTooltipVisible=!1;G.tooltipTimeout=1E4;G.systemIcons=_.V("kevlar_system_icons");G.tallerEmojiPicker=_.V("live_chat_taller_emoji_picker");
G.sendReplyMessageInFlight=!1;G.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"};G.onResize=function(){G.maybeToggleCharacterCount()};
return G};
_.T(ge,_.C);_.g=ge.prototype;
_.g.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"}}}};
_.g.attached=function(){window.addEventListener("resize",this.onResize)};
_.g.detached=function(){window.removeEventListener("resize",this.onResize)};
_.g.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.g.sendMessage=function(){var G=this,H,Z,Q,p;return _.S(function(l){if(G.sendDisabled)return l.return();G.isTooltipVisible&&_.AZ(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(G.data.sendButton&&G.data.sendButton.buttonRenderer){G.input.completeEmojis();H=G.data.sendButton.buttonRenderer.serviceEndpoint;if(!H)return l.return();Q=((Z=_.X(H,_.twN))==null?void 0:Z.clientIdPrefix)||"";p={client_message_id:Q+String(G.numSentMessages++),rich_message:_.KI(G.input.liveChatRichMessageInput)};
G.pendingMessageId=p.client_message_id;G.inReplyPanel&&(G.sendReplyMessageInFlight=!0);_.L9(G.hostElement,[H,p]);G.input.setLiveChatRichMessageInput(null)}_.K0(l)})};
_.g.handleSendButtonAction=function(G){G.detail.actionName==="yt-service-request"&&(G.stopPropagation(),this.sendMessage())};
_.g.onSendCompleted=function(G,H){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(G=this.get("timeoutDurationUsec",H.data))&&this.handleTimeout(Number(G)/1E3);this.errorMessage=this.get("errorMessage",H.data);this.pendingMessageId=""};
_.g.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.AZ(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.g.handlePickerButtonToggle=function(G){G=G.detail.targetId;this.ytPickerBehavior.togglePicker_(G);if(G==="emoji")this.input.focus();else if(G==="qna-start-panel"){var H,Z;(H=_.F9(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(Z=H.querySelector("#qna-creator-text-input-field"))==null||Z.focus()}};
_.g.onComponentReplaced=function(G){var H,Z;G.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((H=G.replacement.liveChatMessageInputRenderer)==null?0:(Z=H.headerRenderer)==null?0:Z.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.g.onEmojiSelect=function(G){this.input.focus();this.input.insertEmoji(G.detail)};
_.g.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.g.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.AZ(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.AZ(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.g.onOpenPopupAction=function(G,H){var Z=this;H===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.AZ(Z.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.g.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.g.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.g.focusChanged=function(){this.maybeToggleCharacterCount()};
_.g.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var G=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",G>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.g.computeId=function(){return this.data&&this.data.targetId||""};
_.g.computeSendDisabled=function(G,H,Z,Q){G=!!(!G||H&&G>H||Q);(H=_.F9(this.hostElement).querySelector("#send-button"))&&H.children.length&&(H.children[0].disabled=G);return G};
_.g.handleTimeout=function(G){this.timeoutDurationMs=this.timeoutMs=G;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.g.updateTimeout=function(G){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(G-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=G,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.g.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.g.onErrorMessageEdit=function(G){this.input.setLiveChatRichMessageInput(G.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.g.errorMessageChanged=function(){var G=this;_.PG(function(){_.AZ(G.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.g.computeAuthorNameColor=function(G){var H;if(_.V("live_chat_author_name_color_usernames")&&(G==null?0:(H=G.authorName)==null?0:H.simpleText))return _.e$e(_.n13(G.authorName.simpleText));if(_.V("live_chat_seed_color_usernames")&&(G==null?0:G.authorSeedColorArgb))return _.e$e(_.YQ(G.authorSeedColorArgb));if(_.V("live_chat_colored_usernames"))return"#cc0000";var Z;return _.V("live_chat_simple_color_usernames")&&(G==null?0:(Z=G.authorName)==null?0:Z.simpleText)&&(G==null?0:G.authorUsernameColorLight)&&
(G==null?0:G.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.YQ(G.authorUsernameColorDark):_.YQ(G.authorUsernameColorLight):""};
_.g.onIsTooltipVisibleChanged=function(){var G=_.F9(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){G.hidden=!1;G.setAttribute("role","alert")},0):(G.hidden=!0,G.removeAttribute("role"))};
_.g.onFocusedChanged=function(G){this.inputFocused=G.detail.value};
_.u4.Object.defineProperties(ge.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 G;return!((G=this.data)==null||!G.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:(H=G.pickers)==null?void 0:H.find(function(Z){return Z.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return G?this.ytRendererBehavior.getSimpleString(G):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
ge.prototype.onIsTooltipVisibleChanged=ge.prototype.onIsTooltipVisibleChanged;ge.prototype.errorMessageChanged=ge.prototype.errorMessageChanged;ge.prototype.onErrorMessageEdit=ge.prototype.onErrorMessageEdit;ge.prototype.onErrorMessageDismiss=ge.prototype.onErrorMessageDismiss;ge.prototype.focusChanged=ge.prototype.focusChanged;ge.prototype.characterCountChanged=ge.prototype.characterCountChanged;ge.prototype.onEmojiSelect=ge.prototype.onEmojiSelect;ge.prototype.handlePickerButtonToggle=ge.prototype.handlePickerButtonToggle;
ge.prototype.onSendError=ge.prototype.onSendError;ge.prototype.onSendCompleted=ge.prototype.onSendCompleted;ge.prototype.sendMessage=ge.prototype.sendMessage;ge.prototype.dataChanged=ge.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],ge.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(nM_.YtPickerBehavior),_.A("design:type",Object)],ge.prototype,"ytPickerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Ur.YtLiveChatTooltipTargetingBehavior),_.A("design:type",Object)],ge.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"hasFiredInitialFocusActions",void 0);
_.N([_.h(),_.A("design:type",Object)],ge.prototype,"isBeforeFocusEnabled",void 0);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"data",void 0);_.N([_.h({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.A("design:type",Object)],ge.prototype,"id",void 0);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"characterCount",void 0);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"maxCharacterLimit",void 0);
_.N([_.h(),_.A("design:type",Object)],ge.prototype,"remainingCharacterCount",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ge.prototype,"inputExpanded",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],ge.prototype,"inputFocused",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],ge.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.N([_.h(),_.A("design:type",_.Zi)],ge.prototype,"participantsManager",void 0);
_.N([_.h(),_.A("design:type",Object)],ge.prototype,"buttonOverrides",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ge.prototype,"inReplyPanel",void 0);_.N([_.z("characterCount, maxCharacterLimit, countdownActive"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ge.prototype,"sendDisabled",null);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"countdownRatio",void 0);
_.N([_.z("countdownRatio"),_.A("design:type",Number),_.A("design:paramtypes",[])],ge.prototype,"countdownStrokeDashOffset",null);_.N([_.z("countdownRatio"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ge.prototype,"countdownActive",null);_.N([_.z("data.interactionMessage"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ge.prototype,"hasInteractionMessage",null);
_.N([_.z("data.emojiPickerButton"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ge.prototype,"hasEmojiPickerButton",null);_.N([_.z("data, characterCount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ge.prototype,"showAvatar",null);_.N([_.z("data.pickers"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],ge.prototype,"hasProductPickerPanelViewModel",null);
_.N([_.h(),_.A("design:type",Object)],ge.prototype,"errorMessage",void 0);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"genericErrorMessage",void 0);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"isTooltipVisible",void 0);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"tooltipTimeout",void 0);_.N([_.z("data.onInitialFocusCommand"),_.A("design:type",String),_.A("design:paramtypes",[])],ge.prototype,"tooltipMessage",null);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ge.prototype,"systemIcons",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ge.prototype,"tallerEmojiPicker",void 0);_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],ge.prototype,"authorNameColor",null);_.N([_.h(),_.A("design:type",Object)],ge.prototype,"sendReplyMessageInFlight",void 0);_.N([_.q6("#input"),_.A("design:type",_.xww)],ge.prototype,"input",void 0);
_.N([_.q6("#count"),_.A("design:type",HTMLElement)],ge.prototype,"count",void 0);_.N([_.q6("#input-container"),_.A("design:type",HTMLElement)],ge.prototype,"inputContainer",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ge.prototype,"dataChanged",null);_.N([_.lq("yt-live-chat-send-message"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],ge.prototype,"sendMessage",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[Event,_.il]),_.A("design:returntype")],ge.prototype,"onSendCompleted",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ge.prototype,"onSendError",null);
_.N([_.lq("yt-live-chat-icon-toggle-button-renderer-toggle"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ge.prototype,"handlePickerButtonToggle",null);_.N([_.lq("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ge.prototype,"onEmojiSelect",null);
_.N([_.gx("characterCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ge.prototype,"characterCountChanged",null);_.N([_.gx("inputFocused"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ge.prototype,"focusChanged",null);_.N([_.lq("yt-live-chat-error-message-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ge.prototype,"onErrorMessageDismiss",null);
_.N([_.lq("yt-live-chat-error-message-edit"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ge.prototype,"onErrorMessageEdit",null);_.N([_.gx("errorMessage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ge.prototype,"errorMessageChanged",null);_.N([_.gx("isTooltipVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ge.prototype,"onIsTooltipVisibleChanged",null);
_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],ge);
_.m(ge,"yt-live-chat-message-input-renderer",function(){if(yeN===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;a2Y===void 0&&(a2Y=document.createElement("template"));var Q=a2Y;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);yeN=G}G=yeN;return G},{mode:0});var VA0;var $Y2;var IF=function(){var G=_.C.apply(this,arguments)||this;G.systemIcons=_.V("kevlar_system_icons");G.firedOnClickCommand=!1;G.inReplyPanel=!1;return G};
_.T(IF,_.C);
IF.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"}}}};
IF.prototype.onButtonToggle=function(G){G.target.disabled||this.ytPickerBehavior.togglePicker_(G.detail.targetId)};
IF.prototype.onClick=function(){var G=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.AZ(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return G.firedOnClickCommand=!1},5E3))};
_.u4.Object.defineProperties(IF.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:(H=G.panels)==null?void 0:H.find(function(Z){return Z.liveChatProductPickerPanelViewModel}))!==void 0}}});
IF.prototype.onButtonToggle=IF.prototype.onButtonToggle;_.N([_.v(nM_.YtPickerBehavior),_.A("design:type",Object)],IF.prototype,"ytPickerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],IF.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],IF.prototype,"systemIcons",void 0);_.N([_.h({reflectToAttribute:!1}),_.A("design:type",Object)],IF.prototype,"firedOnClickCommand",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],IF.prototype,"inReplyPanel",void 0);_.N([_.z("data.pickers"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],IF.prototype,"hasProductPickerPanelViewModel",null);
_.N([_.lq("yt-live-chat-icon-toggle-button-renderer-toggle"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],IF.prototype,"onButtonToggle",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],IF);
_.m(IF,"yt-live-chat-restricted-participation-renderer",function(){if($Y2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;VA0===void 0&&(VA0=document.createElement("template"));var Q=VA0;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);$Y2=G}G=$Y2;return G},{mode:0});var qe=function(){var G=_.C.apply(this,arguments)||this;G.genericErrorMessage=_.aq("Error, try again.");G.inReplyPanel=!1;G.hideBorder=!1;return G};
_.T(qe,_.C);qe.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}}}}}};
_.u4.Object.defineProperties(qe,{template:{configurable:!0,enumerable:!0,get:function(){return wt4()}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qe.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],qe.prototype,"genericErrorMessage",void 0);_.N([_.h(),_.A("design:type",Object)],qe.prototype,"inReplyPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],qe.prototype,"hideBorder",void 0);
_.N([_.fH({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],qe);_.m(qe,"yt-live-chat-engagement-panel-input-renderer",function(){return wt4()},{mode:0});var XU0,cpq;XU0=_.bl(115994);cpq=_.bl(115993);_.S6=function(G,H,Z){var Q=this;var p=Z.dragDownAction;this.layer=0;this.JSC$22842_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Q.dragDownAction()}}}};
this.JSC$22842_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Q.dragDownAction()}}}};
this.fullscreen=!1;var l=_.gr();_.vN(l,XU0,this.layer);_.vN(l,cpq,this.layer);this.dragDownAction=function(){p();_.jQ(l,{visualElement:Q.fullscreen?XU0:cpq})};
this.gesture=new _.aG(G,H,this.getConfig(!1),"pandown");this.attach()};
_.S6.prototype.attach=function(){this.gesture.attach()};
_.S6.prototype.detach=function(){this.gesture.detach()};
_.S6.prototype.update=function(G){this.fullscreen=G;var H=this.gesture;G=this.getConfig(G);H.config=G};
_.S6.prototype.getConfig=function(G){return G?this.JSC$22842_watchFullScreenConfig:this.JSC$22842_watchConfig};var T74={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(G){if(G&&G.length==1&&Array.isArray(G[0].loggingUrls)){G=_.oN.unsafeClone(G[0]);var H=this.macros||{},Z=this.getAdModuleClient_();if(!Z)return _.Yk();G.loggingUrls.forEach(function(Q){if(Q.baseUrl){var p=Q.baseUrl;var l=H;l=l===void 0?{}:l;p=Z.getOptions().includes("replaceUrlMacros")?_.BHa(Z,"replaceUrlMacros",{url:p,additionalMapping:l}):p;Q.baseUrl=p}},this);
G=[G]}return _.L9(this.hostElement,G)},
getAdModuleClient_:function(){var G=_.UO(this);return G?(G=G.getPlayer())?new _.O0(G):null:null}}]};var fk_;var vM0;var um=function(){return _.C.apply(this,arguments)||this};
_.T(um,_.C);um.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],um.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],um);
_.m(um,"ytd-compact-tvfilm-entry-point-renderer",function(){if(vM0!==void 0)return vM0;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return vM0=G},{mode:1});var WK_;var zRY;var KKq;var Bz=function(){return _.C.apply(this,arguments)||this};
_.T(Bz,_.C);Bz.prototype.ready=function(){this.initializeDefs()};
Bz.prototype.initializeDefs=function(){var G=this.meta.byKey("yt-icons"),H=_.F9(G).querySelector("#star"),Z=_.F9(G).querySelector("#star_half");G=_.F9(G).querySelector("#star_border");H&&this.defs.appendChild(H.cloneNode(!0));Z&&this.defs.appendChild(Z.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0))};
Bz.prototype.percentChanged=function(){for(var G=this.rating;G.firstChild;)G.removeChild(G.firstChild);var H=Math.round(this.percent/10);G=Math.floor(H/2);H%=2;var Z=5-G-H;this.appendStars("star",G,0);this.appendStars("star_half",H,G);this.appendStars("star_border",Z,G+H)};
Bz.prototype.appendStars=function(G,H,Z){for(var Q=0;Q<H;Q++){var p=(18+this.spacing)*(Q+Z),l=document.createElementNS("http://www.w3.org/2000/svg","use");_.X$A(l,"#"+G);l.setAttribute("x",""+p);l.setAttribute("y","0");this.rating.appendChild(l)}};
Bz.prototype.percentChanged=Bz.prototype.percentChanged;_.N([_.q6("#defs"),_.A("design:type",HTMLElement)],Bz.prototype,"defs",void 0);_.N([_.q6("#rating"),_.A("design:type",HTMLElement)],Bz.prototype,"rating",void 0);_.N([_.h(),_.A("design:type",Number)],Bz.prototype,"percent",void 0);_.N([_.h({value:6}),_.A("design:type",Number)],Bz.prototype,"spacing",void 0);_.N([_.h({value:_.vK.create("iron-meta",{type:"iconset"})}),_.A("design:type",_.jL)],Bz.prototype,"meta",void 0);
_.N([_.gx("percent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bz.prototype,"percentChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-ratings"})],Bz);
_.m(Bz,"ytd-ratings",function(){if(KKq!==void 0)return KKq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return KKq=G},{mode:1});var MAd=function(){return _.C.apply(this,arguments)||this};
_.T(MAd,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],MAd.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],MAd.prototype,"data",void 0);_.N([_.O({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],MAd);
_.m(MAd,"ytd-offer-review-renderer",function(){if(zRY!==void 0)return zRY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zRY=G},{mode:1});var Jm=function(){var G=_.C.apply(this,arguments)||this;G.badges=[{textBadge:{label:_.aq("CC")}}];return G};
_.T(Jm,_.C);_.g=Jm.prototype;_.g.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.g.dataChanged=function(){var G=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(G&&G.commandMetadata&&_.X(G.commandMetadata,_.rS)&&_.X(G.commandMetadata,_.rS).fireAutomatically)_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}});else{var H;G&&((H=_.X(G,_.rS))==null?0:H.fireAutomatically)&&_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}})}};
_.g.isEmptyContent=function(G){return this.isStorefrontEntryPointEmpty(G)&&this.shouldHideOfferModule(G)};
_.g.isStorefrontEntryPointEmpty=function(G){return!G||!G.storefrontEntryPoint};
_.g.shouldHideOfferModule=function(G){return!!G.hideVideoDetails};
_.g.isOfferModuleNavigationInactive=function(G){return!G.navigationEndpoint&&!G.serviceEndpoint};
_.g.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Jm.prototype.dataChanged=Jm.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Jm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Jm.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.A("design:type",Boolean)],Jm.prototype,"hidden",void 0);
_.N([_.h(),_.A("design:type",Object)],Jm.prototype,"badges",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Jm.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Jm);
_.m(Jm,"ytd-movie-offer-module-renderer",function(){if(WK_!==void 0)return WK_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WK_=G},{mode:1});var jJO;var P0q=function(){return _.C.apply(this,arguments)||this};
_.T(P0q,_.C);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],P0q.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],P0q.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],P0q);
_.m(P0q,"ytd-media-masthead-renderer",function(){if(jJO!==void 0)return jJO;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jJO=G},{mode:1});var rpq;_.RX(_.FYt,"course-metadata-view-model",{props:{data:_.oX,isOverlay:_.oX}});var tm=function(){var G=_.C.apply(this,arguments)||this;G.isMetadataVisible=!1;G.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return G};
_.T(tm,_.C);_.g=tm.prototype;
_.g.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"}}}}};
_.g.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.g.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.g.expanderChanged=function(){var G;if((G=this.data)==null?0:G.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.g.isExpandButtonToggled=function(){var G,H;return(H=_.X((G=this.data)==null?void 0:G.expandMetadataButton,_.ZD))==null?void 0:H.isToggled};
_.g.onVisibilityButtonClick=function(){var G;if((G=this.data)==null?0:G.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.g.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
tm.prototype.expanderChanged=tm.prototype.expanderChanged;tm.prototype.dataChanged=tm.prototype.dataChanged;tm.prototype.descriptionChanged=tm.prototype.descriptionChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v([_.V6.YtActionHandlerBehavior]),_.A("design:type",Object)],tm.prototype,"actionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],tm.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],tm.prototype,"isMetadataVisible",void 0);_.N([_.q6("#expander"),_.A("design:type",Object)],tm.prototype,"expander",void 0);_.N([_.gx("data.description"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tm.prototype,"descriptionChanged",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tm.prototype,"dataChanged",null);_.N([_.gx("isMetadataVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tm.prototype,"expanderChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],tm);
_.m(tm,"ytd-tvfilm-offer-module-renderer",function(){if(rpq!==void 0)return rpq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rpq=G},{mode:2});var wUd;var kS=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return G};
_.T(kS,_.C);kS.prototype.dataChanged=function(){this.hostElement.hidden=!1};
kS.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
kS.prototype.onThumbnailTap=function(G){this.data&&this.data.serviceEndpoint&&(_.tp().resolve(_.Dk).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),G.stopPropagation())};
kS.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
kS.prototype.dataChanged=kS.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],kS.prototype,"rendererBehaviors",void 0);_.N([_.v([_.V6.YtActionHandlerBehavior]),_.A("design:type",Object)],kS.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],kS.prototype,"data",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kS.prototype,"dataChanged",null);_.N([_.O({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],kS);
_.m(kS,"ytd-unlimited-offer-module-renderer",function(){if(wUd!==void 0)return wUd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wUd=G},{mode:1});var hR2;var C0I;var DW=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return G};
_.T(DW,_.C);DW.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
DW.prototype.handleRelatedChipCommand=function(G){G=_.X(G,ZlN);var H=G.contents;H?_.xk(this.hostElement,"yt-item-section-replace-action",[H,G.targetSectionIdentifier]):_.xk(this.hostElement,"yt-item-section-continuation-action",[G.continuationData,G.targetSectionIdentifier])};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],DW.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],DW.prototype,"data",void 0);_.N([_.fH({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],DW);
_.m(DW,"yt-related-chip-cloud-renderer",function(){if(C0I===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;hR2===void 0&&(hR2=document.createElement("template"));var Q=hR2;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);C0I=G}G=C0I;return G},{mode:2});var de=function(){var G=_.C.apply(this,arguments)||this;G.isTwoColumns=!0;G.watchFeedBigThumbs=_.V("kevlar_watch_feed_big_thumbs");G.watchFeedBigThumbsOnLockup=_.V("web_watch_next_big_thumbs");G.watchNextGridHideChips=_.V("kevlar_watch_grid_hide_chips");G.eligibleToSwitchToGrid=!0;G.disableShortsShelfHeightOverride=_.V("web_shorts_wn_shelf_ratio_tuning");G.isWatchNextGrid=!1;G.reuseComponents=!_.V("kevlar_watch_grid");G.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return G};
_.T(de,_.C);_.g=de.prototype;
_.g.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.V("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.g.getItemsPath=function(){return"data.results"};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.g.created=function(){this.ytLazyListBehavior.initialCount=1};
_.g.ready=function(){_.ZI(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%"})};
_.g.resultsChanged=function(){if(this.data&&this.data.results){for(var G=this.data.results,H=null,Z=null,Q=0;Q<G.length;Q++)G[Q].relatedChipCloudRenderer?H=G[Q].relatedChipCloudRenderer:G[Q].itemSectionRenderer&&(Z=G[Q].itemSectionRenderer);if(H&&Z)for(this.set("data.continuations",[]),G=_.X(H.content,_.Qaa).chips,H=0;H<G.length;H++)if(Q=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",G[H]),Q.loadCached||!Q.contents){Q.contents=Z.contents;break}}};
_.g.dataChanged=function(){var G=this,H;if((H=this.data)!=null&&H.results&&this.hasAllowedInstreamAd(this.playerData)){if(H=this.data.results.filter(function(u){return!!u.promotedSparklesWebRenderer})){for(var Z=0;Z<H.length;Z++){var Q=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",H[Z]);
if(Q)for(var p=0;p<Q.length;p++)Q[p]&&Q[p].baseUrl&&_.G_(Q[p].baseUrl)}this.set("data.results",this.data.results.filter(function(u){return!u.promotedSparklesWebRenderer}))}if(H=this.data.results.filter(function(u){return!!G.getSparklesAd(u)})){H=_.I(H);
for(p=H.next();!p.done;p=H.next())if(Q=Z=void 0,p=(Z=this.getSparklesAd(p.value))==null?void 0:(Q=Z.errorCommand)==null?void 0:Q.loggingUrls)for(Z=_.I(p),Q=Z.next();!Q.done;Q=Z.next())(Q=Q.value)&&Q.baseUrl&&_.G_(Q.baseUrl);var l,q;this.set("data.results",(l=this.data)==null?void 0:(q=l.results)==null?void 0:q.filter(function(u){return!u.adSlotRenderer}))}}};
_.g.getSparklesAd=function(G){var H,Z;G=_.X((H=G.adSlotRenderer)==null?void 0:(Z=H.fulfillmentContent)==null?void 0:Z.fulfilledLayout,_.K1p);return _.X(G==null?void 0:G.renderingContent,$fN)};
_.g.hasAllowedInstreamAd=function(G){G=this.get("adPlacements",G)||[];for(var H=0;H<G.length;H++){var Z=this.get("adPlacementRenderer.config.adPlacementConfig",G[H]);if(Z&&Z.suppressDisplayAd)return!0}return!1};
_.g.computeHideUnlimitedOfferModule=function(G,H){return G&&G.offerModule&&H&&G.offerModule.unlimitedOfferModuleRenderer&&G.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(H)?!0:!1};
_.g.hideUnlimitedOfferModuleChanged=function(){var G=_.F9(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");G&&(G.hidden=this.hideUnlimitedOfferModule)};
_.g.updateLockupContainerTypes=function(G){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||H.forEach(function(Z){Z.containerType=G})}};
_.g.computeHideTvfilmOfferModule=function(G,H){var Z,Q;return!!((G==null?0:(Z=G.offerModule)==null?0:(Q=Z.tvfilmOfferModuleRenderer)==null?0:Q.clientShouldSuppressIfCompanionAdDisplayed)&&H&&this.hasCompanionAds(H))};
_.g.hideTvfilmOfferModuleChanged=function(){var G=_.F9(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");G&&(G.hidden=this.hideTvfilmOfferModule)};
_.g.hasCompanionAds=function(G){G=this.get("adPlacements",G)||[];for(var H=0;H<G.length;H++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",G[H]))return!0;var Z=void 0,Q=void 0,p=void 0;if(!_.V("web_watch_top_banner_companion_check_killswitch")&&((Z=G[H])==null?0:(Q=Z.adPlacementRenderer)==null?0:(p=Q.renderer)==null?0:p.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.g.hasSuppressedResults=function(G){return G==null?!0:G.filter(function(H){return!H.continuationItemRenderer&&!H.compactPromotedVideoRenderer&&!H.promotedSparklesWebRenderer}).length===0};
_.g.computeShowButton=function(G,H){return this.isWatchNextGrid?G:G||this.hasSuppressedResults(H)};
_.g.showButtonChanged=function(){if(this.isWatchNextGrid){var G=_.F9(this.hostElement).querySelector("ytd-rich-grid-renderer");G&&this.showButton!==null&&(G.continuationShowButton=this.showButton)}else{G=_.F9(this.hostElement).querySelector("yt-next-continuation");var H=_.F9(this.hostElement).querySelector("ytd-continuation-item-renderer"),Z=_.F9(this.hostElement).querySelector("ytd-item-section-renderer");G&&(G.showButton=this.showButton);H&&(H.showButton=this.showButton);Z&&(Z.continuationShowButton=
this.showButton)}};
_.g.continuationTap=function(G){var H;if(((H=this.data)==null?void 0:H.continuations)!=null&&G.target.tagName==="TP-YT-PAPER-BUTTON")for(G=this.data.continuations,H=0;H<G.length;H++)G[H].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(G[H].nextContinuationData||{})};
_.g.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("shown-items-changed",this.shownItems))};
_.u4.Object.defineProperties(de.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 G;return!((G=this.shownItems)==null||!G.some(function(H){return!!H.lockupViewModel||H.compactVideoRenderer}))}}});
de.prototype.shownItemsChangedForBinding=de.prototype.shownItemsChangedForBinding;de.prototype.showButtonChanged=de.prototype.showButtonChanged;de.prototype.hideTvfilmOfferModuleChanged=de.prototype.hideTvfilmOfferModuleChanged;de.prototype.updateLockupContainerTypes=de.prototype.updateLockupContainerTypes;de.prototype.hideUnlimitedOfferModuleChanged=de.prototype.hideUnlimitedOfferModuleChanged;de.prototype.dataChanged=de.prototype.dataChanged;de.prototype.resultsChanged=de.prototype.resultsChanged;
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],de.prototype,"ytLazyListBehavior",void 0);_.N([_.v(_.ZE.YtNextContinuationBehavior),_.A("design:type",Object)],de.prototype,"ytNextContinuationBehavior",void 0);
_.N([_.v(_.sF),_.A("design:type",Object)],de.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],de.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],de.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],de.prototype,"playerData",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],de.prototype,"autoFill",void 0);_.N([_.h({value:60}),_.A("design:type",Number)],de.prototype,"targetFramerate",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],de.prototype,"isTwoColumns",void 0);_.N([_.h(),_.A("design:type",Object)],de.prototype,"shownItems",void 0);_.N([_.h({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.A("design:type",Boolean)],de.prototype,"hideUnlimitedOfferModule",void 0);_.N([_.h({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.A("design:type",Boolean)],de.prototype,"hideTvfilmOfferModule",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],de.prototype,"watchFeedBigThumbs",void 0);_.N([_.h(),_.A("design:type",Object)],de.prototype,"watchFeedBigThumbsOnLockup",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],de.prototype,"watchNextGridHideChips",void 0);_.N([_.h(),_.A("design:type",Object)],de.prototype,"eligibleToSwitchToGrid",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],de.prototype,"disableShortsShelfHeightOverride",void 0);
_.N([_.h({selector:_.T3,reflectToAttribute:!0}),_.A("design:type",Object)],de.prototype,"isGridViewEnabled",void 0);_.N([_.h({selector:_.ZDj,reflectToAttribute:!0}),_.A("design:type",Object)],de.prototype,"isSwatcherooActive",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],de.prototype,"showMoreButton",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],de.prototype,"isWatchNextGrid",void 0);
_.N([_.h({computed:"computeShowButton(showMoreButton, data.results)"}),_.A("design:type",Boolean)],de.prototype,"showButton",void 0);_.N([_.Jv("data.results.*"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],de.prototype,"resultsChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],de.prototype,"dataChanged",null);
_.N([_.gx("hideUnlimitedOfferModule"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],de.prototype,"hideUnlimitedOfferModuleChanged",null);_.N([_.z("isGridViewEnabled","containsLockups","data"),_.h({reflectToAttribute:!0}),_.A("design:type",Number),_.A("design:paramtypes",[])],de.prototype,"lockupContainerType",null);
_.N([_.gx("lockupContainerType","data"),_.A("design:type",Function),_.A("design:paramtypes",[Number]),_.A("design:returntype")],de.prototype,"updateLockupContainerTypes",null);_.N([_.gx("hideTvfilmOfferModule"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],de.prototype,"hideTvfilmOfferModuleChanged",null);_.N([_.gx("showButton"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],de.prototype,"showButtonChanged",null);
_.N([_.gx("shownItems"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],de.prototype,"shownItemsChangedForBinding",null);_.N([_.z("shownItems"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],de.prototype,"containsLockups",null);
_.m(de,"ytd-watch-next-secondary-results-renderer",function(){if(fk_===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);fk_=G}G=fk_;return G},{mode:1});var i$0;var e6=function(){var G=_.C.apply(this,arguments)||this;G.isCollapsed=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return G};
_.T(e6,_.C);_.g=e6.prototype;_.g.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.onDonateTap=function(){var G=this.get("data.donateButton.buttonRenderer.command");if(G){var H=_.$k(),Z=this.get("data.donateButton.buttonRenderer.trackingParams");H&&Z&&_.Co(H,_.BT(Z));this.ytOpenPopupBehavior.openPopup(G)}};
_.g.onShowMore=function(){this.isCollapsed=!1;var G=_.$k(),H=this.get("data.expandButton.buttonRenderer.trackingParams");G&&H&&_.Co(G,_.BT(H))};
_.g.onShowLess=function(){this.isCollapsed=!0};
_.g.dataChanged=function(){_.ZI(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.g.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.g.handleUpdate=function(G){if(G=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",G))this.set("data.startLabel",G.startLabel),this.set("data.endLabel",G.endLabel),this.set("data.progress",G.progress),this.set("data.amountRaisedLabel",G.amountRaisedLabel),this.dataChanged()};
_.g.handleOpenPopupAction=function(G){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",G)&&_.AZ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.g.computeHeaderBackgroundUrl=function(G,H){if(G)return H?G.headerBackgroundDarkUrl:G.headerBackgroundUrl};
_.g.isProgressBarVisible=function(G){return!(!G||G.progress===void 0)};
_.g.headerBackgroundClass=function(){return _.xI("HTML_DIR")==="rtl"?"flip":""};
e6.prototype.dataChanged=e6.prototype.dataChanged;_.N([_.v(_.e8.YtOpenPopupBehavior),_.A("design:type",Object)],e6.prototype,"ytOpenPopupBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],e6.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],e6.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],e6.prototype,"isCollapsed",void 0);_.N([_.h({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.A("design:type",String)],e6.prototype,"headerBackgroundUrl",void 0);_.N([_.h(),_.A("design:type",Boolean)],e6.prototype,"isDarkTheme",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],e6.prototype,"dataChanged",null);
_.N([_.O({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],e6);
_.m(e6,"ytd-donation-shelf-renderer",function(){if(i$0!==void 0)return i$0;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return i$0=G},{mode:1});var O$U;var ak0=function(){return _.C.apply(this,arguments)||this};
_.T(ak0,_.C);_.N([_.h(),_.A("design:type",Object)],ak0.prototype,"data",void 0);_.N([_.O({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],ak0);
_.m(ak0,"ytd-donation-unavailable-renderer",function(){if(O$U!==void 0)return O$U;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return O$U=G},{mode:1});var yp4;var nk=function(){return _.C.apply(this,arguments)||this};
_.T(nk,_.C);nk.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nk.prototype,"data",void 0);_.N([_.O({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],nk);
_.m(nk,"ytd-limited-state-message-renderer",function(){if(yp4!==void 0)return yp4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return yp4=G},{mode:1});var oMx;var V1=function(){return _.C.apply(this,arguments)||this};
_.T(V1,_.C);V1.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
V1.prototype.onTap=function(G){var H=this.data&&this.data.endpoint;H&&!_.OO(_.OD(G),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.N5(this.hostElement,"yt-navigate",{endpoint:H})};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],V1.prototype,"data",void 0);_.N([_.O({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],V1);
_.m(V1,"ytd-autotagging-metadata-renderer",function(){if(oMx!==void 0)return oMx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return oMx=G},{mode:1});var mY_;var $S=function(){return _.C.apply(this,arguments)||this};
_.T($S,_.C);$S.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$S.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$S.prototype,"data",void 0);_.N([_.O({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],$S);
_.m($S,"ytd-autotagging-metadata-row-renderer",function(){if(mY_!==void 0)return mY_;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return mY_=G},{mode:1});var UYx;var RR0;var Xp=function(){var G=_.C.apply(this,arguments)||this;G.engagementPanelContent=!1;return G};
_.T(Xp,_.C);Xp.prototype.computeHasDividerLine=function(G,H){return G&&!H};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Xp.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.A("design:type",Boolean)],Xp.prototype,"hasDividerLine",void 0);_.N([_.h(),_.A("design:type",Object)],Xp.prototype,"engagementPanelContent",void 0);
_.N([_.O({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Xp);
_.m(Xp,"ytd-metadata-row-header-renderer",function(){if(RR0!==void 0)return RR0;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return RR0=G},{mode:1});var N70;var cz=function(){return _.C.apply(this,arguments)||this};
_.T(cz,_.C);cz.prototype.computeHasDividerLine=function(G){return G};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cz.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.A("design:type",Boolean)],cz.prototype,"hasDividerLine",void 0);_.N([_.O({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],cz);
_.m(cz,"ytd-metadata-row-renderer",function(){if(N70!==void 0)return N70;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return N70=G},{mode:1});var Ap2;var xY4=function(){return _.C.apply(this,arguments)||this};
_.T(xY4,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xY4.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xY4.prototype,"data",void 0);_.N([_.O({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],xY4);
_.m(xY4,"ytd-metadata-with-image-row-renderer",function(){if(Ap2!==void 0)return Ap2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ap2=G},{mode:1});var LK7;var TC=function(){var G=_.C.apply(this,arguments)||this;G.rounded=!0;G.fixie=!1;G.fullWidth=!1;return G};
_.T(TC,_.C);_.g=TC.prototype;_.g.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.onDataChanged=function(){var G=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(H){G.onEndpointLinkKeyPress(H)}))};
_.g.onEndpointLinkKeyPress=function(G){G.target===this.endpointLink&&G.keyCode===13&&_.N5(this.hostElement,"click")};
_.g.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var G;if((G=this.data)==null?0:G.endpoint)_.El(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.g.onYtNavigate=function(G){this.endpointHref||(G.stopPropagation(),G.preventDefault())};
_.g.onInformationButtonContainerClick=function(G){G.target.id!=="information-button-container"&&(G.stopPropagation(),G.preventDefault())};
_.g.computeStyle=function(G){return G};
_.g.computeIsThumbnailStyle=function(G){return G==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.g.computeThumbnailWidth=function(G){switch(G){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}};
_.g.computeThumbnailObjectFit=function(G){switch(G){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.u4.Object.defineProperties(TC.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?0:G.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
TC.prototype.onYtNavigate=TC.prototype.onYtNavigate;TC.prototype.onClick=TC.prototype.onClick;TC.prototype.onDataChanged=TC.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],TC.prototype,"componentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],TC.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],TC.prototype,"componentStyle",void 0);_.N([_.h({computed:"computeIsThumbnailStyle(data.style)"}),_.A("design:type",Boolean)],TC.prototype,"isThumbnailStyle",void 0);_.N([_.h({computed:"computeThumbnailObjectFit(data.style)"}),_.A("design:type",String)],TC.prototype,"thumbnailObjectFit",void 0);
_.N([_.h({computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],TC.prototype,"thumbnailWidth",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],TC.prototype,"rounded",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],TC.prototype,"fixie",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],TC.prototype,"fullWidth",void 0);_.N([_.q6("#endpoint-link"),_.A("design:type",HTMLAnchorElement)],TC.prototype,"endpointLink",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TC.prototype,"onDataChanged",null);_.N([_.z("data.endpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],TC.prototype,"endpointHref",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],TC.prototype,"onClick",null);
_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],TC.prototype,"onYtNavigate",null);_.N([_.O({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],TC);
_.m(TC,"ytd-rich-metadata-renderer",function(){if(LK7!==void 0)return LK7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return LK7=G},{mode:_.LH("kevlar_poly_si_batch_j075")?1:2});var EMd;var fk=function(){var G=_.C.apply(this,arguments)||this;G.fixie=!1;G.fullWidth=!1;return G};
_.T(fk,_.C);fk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
fk.prototype.computeHasDividerLine=function(G){return G};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fk.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.A("design:type",Boolean)],fk.prototype,"hasDividerLine",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fk.prototype,"fixie",void 0);_.N([_.h(),_.A("design:type",Object)],fk.prototype,"fullWidth",void 0);
_.N([_.O({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],fk);
_.m(fk,"ytd-rich-metadata-row-renderer",function(){if(EMd!==void 0)return EMd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return EMd=G},{mode:1});var vz=function(){var G=_.C.apply(this,arguments)||this;G.engagementPanelContent=!1;G.fixie=!1;G.fullWidth=!1;return G};
_.T(vz,_.C);
vz.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"}}}};
vz.prototype.computeCollapsibleItems=function(G,H,Z){return G===void 0||H===void 0||Z===void 0||Z?[]:G.slice(H)};
vz.prototype.computeAlwaysShownItems=function(G,H){return G&&G.length?G.slice(0,H):[]};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vz.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],vz.prototype,"collapsed",void 0);
_.N([_.h({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.A("design:type",Array)],vz.prototype,"alwaysShownItems",void 0);_.N([_.h({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.A("design:type",Array)],vz.prototype,"collapsibleItems",void 0);_.N([_.h(),_.A("design:type",Object)],vz.prototype,"engagementPanelContent",void 0);_.N([_.h(),_.A("design:type",Object)],vz.prototype,"fixie",void 0);
_.N([_.h(),_.A("design:type",Object)],vz.prototype,"fullWidth",void 0);_.N([_.O({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],vz);
_.m(vz,"ytd-metadata-row-container-renderer",function(){if(UYx!==void 0)return UYx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return UYx=G},{mode:1});var Yd_;var Wz=function(){var G=_.C.apply(this,arguments)||this;G.currentPageUrl="";G.baseUrl="";G.isHiddenByUser=null;G.hidden=!1;G.showAboveScrim=!1;G.watchNextGrid=_.V("kevlar_watch_grid");G.modernButtons=_.V("web_modern_buttons");G.roundedContainer=!0;G.noBorder=!1;G.roundBackground=!_.V("live_chat_round_background_killswitch");G.overflowHideChat=_.V("live_chat_overflow_hide_chat");G.forceDarkTheme=!1;G.theaterWatchWhile=!1;G.isListeningForPlayerProgress=!1;G.JSC$22913_playerEvents=new Map;G.isFrameReady=
!1;G.player=null;G.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 G};
_.T(Wz,_.C);_.g=Wz.prototype;_.g.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.xk(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.g.created=function(){var G=this;this.handleIframeEventListener=function(H){G.handleIframeEvent(H)};
this.handleKeyboardEventListener=function(H){G.handleKeyboardEvent(H)};
this.JSC$22913_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22913_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22913_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22913_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22913_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.g.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()};
_.g.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};
_.g.computeBaseUrl=function(G){var H="/live_chat";this.isChatReplay()&&(H="/live_chat_replay");return _.Z$(_.sa(_.Hy(_.HS(G),H),null),"").toString()};
_.g.dataChanged=function(){_.V("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.g.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var G=this.url;if(this.isChatReplay()&&this.player){var H=Math.floor(this.player.getProgressState().current*1E3);G=_.Z0(_.HS(G),"playerOffsetMs",H.toString()).toString()}H=this.chatframe;try{var Z=G==="about:blank"?_.yNp:_.m0(G),Q=H.contentDocument.location,p=_.NU(Z);p!==void 0&&Q.replace(p)}catch(l){H.src=G}}};
_.g.collapsedChanged=function(){_.N5(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.g.handleIframeEvent=function(G){if(G&&this.baseUrl.startsWith(G.origin)&&G.source===this.chatframe.contentWindow&&_.AM(G.data))if(G.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(G);else if(G.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(G.data["yt-show-feedback-dialog"]){var H=_.tp().resolve(_.Jp(_.rNo));if(H){var Z=G.ports,Q;Z&&Z.length&&(Q=function(){Z[0].postMessage({})});
G=G.data["yt-show-feedback-dialog"];H.showFeedbackDialog(G.customProductData,G.feedbackContent,Q,G.bucket)}}else if(G.data["yt-show-survey"])_.N5(this.hostElement,"yt-show-survey",G.data["yt-show-survey"]);else if(G.data["yt-purchase-membership"])_.tp().resolve(_.Dk).resolveCommand(G.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(G.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(G.data["yt-tunnel-out-live-service-request"]);else if(G.data["yt-user-activity"])_.BW();
else if(G.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(G.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(G.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(G.data["yt-open-popup"]);else if(G.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(G.data["yt-log-flow-logging-event-command"]);else if(G.data["yt-hide-live-chat"])this.onShowHideChat();else G.data["yt-report-moderation-state-log"]&&
this.player&&(H={cpn:this.player.getVideoData().cpn},_.yR("liveChatBeingModerated",H))};
_.g.attachLiveChatResponseVeTrackingParams=function(G){G=_.BT(G);var H=_.$k(),Z=_.GF("liveChatRenderer.trackingParams",this.data);H&&Z&&_.je(H,_.BT(Z),G)};
_.g.handleBuyflowMessages=function(G){var H=G.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,Z=G.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,Q=G.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Ohf(_.yj(_.iS),H.replace(/-/g,"+").replace(/_/g,"/"),function(p){G.ports[0].postMessage({success:!0,buyFlowResponse:p})},void 0,function(p){G.ports[0].postMessage({success:!1,
error:p&&p.message||"Buyflow rejected without error."})},_.lf().get("hl"),void 0,function(){G.ports[0].postMessage({closed:!0})},Z,Q)};
_.g.setupPlayerProgressRelay=function(){var G=this;if(!this.isListeningForPlayerProgress){var H=_.R0();H!=null&&H.getPlayerPromise&&(H.getPlayerPromise().then(function(Z){G.playerApiReady(Z)}),this.isListeningForPlayerProgress=!0)}};
_.g.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.g.playerApiReady=function(G){this.setPlayer(G)};
_.g.playerProgressHandler=function(){if(this.player){var G=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":G.current})}};
_.g.playerAdStartHandler=function(G){this.postToContentWindow({"yt-player-ad-start":G})};
_.g.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.g.playerStateChangeHandler=function(G){this.postToContentWindow({"yt-player-state-change":G})};
_.g.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22913_playerEvents);G&&(this.player=G,this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22913_playerEvents),_.N5(this.hostElement,"player-api-ready"))};
_.g.liveChatPageUrl=function(G,H,Z,Q){return!Z||H?"about:blank":Z.liveChatRenderer?(H=_.HS(this.currentPageUrl).JSC$10041_queryData_,BnY(H),G=_.HS(G),H.add("continuation",Z.liveChatRenderer.continuations[0].reloadContinuationData.continuation),Z=_.Ml()==="USER_INTERFACE_THEME_DARK",(Q||Z)&&H.add("dark_theme","true"),_.sa(G,H),Q=_.HS(G.toString()),Z=Q.JSC$10041_queryData_,"SESSION_INDEX"in _.NV&&(Z.add("authuser",_.xI("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.NV&&Z.add("pageId",_.xI("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.NV&&Z.add("sdc",_.xI("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),Q.toString()):""};
_.g.isCollapsed=function(G,H){return H!==null?H:this.isChatReplay()||G&&G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!0:G?G.liveChatRenderer?G.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.V("live_chat_hide_premiere_replay_message")||G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.g.isHidden=function(G,H,Z){var Q=H&&H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage,p=H&&H.liveChatRenderer&&H.liveChatRenderer.showHideButton,l=H&&H.liveChatRenderer&&H.liveChatRenderer.showButton;return Z&&G&&!Q&&!l||!Z&&G&&!Q&&!p?!0:H&&H.liveChatRenderer&&H.liveChatRenderer.initialDisplayState?H.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.g.computeButtonOverride=function(G,H){if(G&&H)return{type:"outline"}};
_.g.setCollapsedState=function(G){_.X(G,_.Mjd)&&((this.isHiddenByUser=!!_.X(G,_.Mjd).collapsed)||_.AZ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.g.forwardReduxActionToIframe=function(G){this.postToContentWindow({"yt-live-chat-forward-redux-action":G})};
_.g.onLoopRangeChange=function(G){this.showAboveScrim=!(G==null||!G.postId)};
_.g.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.g.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.g.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.g.sendDarkThemePostMessage=function(G){this.postToContentWindow({"yt-live-chat-set-dark-theme":G})};
_.g.onLiveChatBuyFlowCallback=function(G){this.postToContentWindow({"yt-live-chat-buy-flow-callback":G})};
_.g.handleKeyboardEvent=function(G){(0,_.oN.containsValue)(kIq,G.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:G.type,keyCode:G.keyCode}})};
_.g.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.g.postToContentWindow=function(G){if(this.isFrameReady)try{var H=window.location.protocol+"//"+window.location.host,Z;(Z=this.chatframe)!=null&&Z.contentWindow?this.chatframe.contentWindow.postMessage(G,H):_.Rp(new _.C$("Tried posting a message to an iframe with no content window",G))}catch(Q){_.me(Q)}};
_.g.shouldHideChatFrame=function(G){return G&&_.V("hide_live_chat_button_when_collapsed")};
_.u4.Object.defineProperties(Wz.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.V("live_chat_overflow_hide_chat")||_.V("web_watch_chat_hide_button_killswitch"))return _.V("live_chat_overflow_hide_chat");var G,H,Z,Q;return!!((G=this.data)==null?0:(H=G.liveChatRenderer)==null?0:(Z=H.header)==null?0:(Q=Z.liveChatHeaderRenderer)==null?0:Q.collapseButton)}}});
Wz.prototype.collapsedChanged=Wz.prototype.collapsedChanged;Wz.prototype.urlChanged=Wz.prototype.urlChanged;Wz.prototype.dataChanged=Wz.prototype.dataChanged;Wz.prototype.onShowHideChat=Wz.prototype.onShowHideChat;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Wz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Wz.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],Wz.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.v(_.e8.YtOpenPopupBehavior),_.A("design:type",Object)],Wz.prototype,"ytOpenPopupBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Wz.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Wz.prototype,"currentPageUrl",void 0);
_.N([_.h({computed:"computeBaseUrl(currentPageUrl,data)"}),_.A("design:type",Object)],Wz.prototype,"baseUrl",void 0);_.N([_.h({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.A("design:type",String)],Wz.prototype,"url",void 0);_.N([_.h(),_.A("design:type",Object)],Wz.prototype,"isHiddenByUser",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.A("design:type",Object)],Wz.prototype,"hidden",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.A("design:type",Boolean)],Wz.prototype,"collapsed",void 0);_.N([_.h({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.A("design:type",Boolean)],Wz.prototype,"hideChatFrame",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wz.prototype,"showAboveScrim",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wz.prototype,"watchNextGrid",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wz.prototype,"modernButtons",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wz.prototype,"roundedContainer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wz.prototype,"noBorder",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wz.prototype,"roundBackground",void 0);
_.N([_.h({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.A("design:type",Object)],Wz.prototype,"toggleButtonOverride",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Wz.prototype,"overflowHideChat",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wz.prototype,"forceDarkTheme",void 0);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Wz.prototype,"enableShowWithoutHideChatButton",null);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wz.prototype,"theaterWatchWhile",void 0);_.N([_.q6("#chatframe"),_.A("design:type",HTMLIFrameElement)],Wz.prototype,"chatframe",void 0);_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wz.prototype,"onShowHideChat",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wz.prototype,"dataChanged",null);
_.N([_.gx("url"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wz.prototype,"urlChanged",null);_.N([_.gx("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wz.prototype,"collapsedChanged",null);_.N([_.O({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Wz);
_.m(Wz,"ytd-live-chat-frame",function(){if(Yd_!==void 0)return Yd_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Yd_=G},{mode:1});var FKy;var zC=function(){var G=_.C.apply(this,arguments)||this;G.modern=_.V("web_modern_buttons");G.buttonOverrides={style:"call-to-action",type:"filled"};return G};
_.T(zC,_.C);zC.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=_.X9(this.data.backgroundColor)))};
zC.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var G=this.getFormattedStringLoggingDirectives(this.data.headline);G&&this.rendererBehavior.logExplicitClick(G)}};
zC.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var G=this.getFormattedStringLoggingDirectives(this.data.description);G&&this.rendererBehavior.logExplicitClick(G)}};
zC.prototype.getFormattedStringLoggingDirectives=function(G){return G&&G.runs&&G.runs.length>0&&G.runs[0]&&G.runs[0].loggingDirectives?G.runs[0].loggingDirectives:null};
zC.prototype.dataChanged=zC.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zC.prototype,"rendererBehavior",void 0);_.N([_.v(T74.YtMacroReplacementBehavior),_.A("design:type",Object)],zC.prototype,"macroReplacementBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zC.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],zC.prototype,"navigationEndpoint",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],zC.prototype,"enableColors",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zC.prototype,"modern",void 0);_.N([_.h(),_.A("design:type",Object)],zC.prototype,"buttonOverrides",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zC.prototype,"dataChanged",null);_.N([_.O({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],zC);
_.m(zC,"ytd-action-basic-immersive-content-renderer",function(){if(FKy!==void 0)return FKy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return FKy=G},{mode:1});var b$y;var GB4;var Kk=function(){return _.C.apply(this,arguments)||this};
_.T(Kk,_.C);Kk.prototype.dataChanged=function(){var G;((G=this.data)==null?void 0:G.backgroundColor)!==void 0&&_.ZI(this.hostElement,{"--bgu-color":_.X9(this.data.backgroundColor)})};
Kk.prototype.onImageTileClick=function(){var G;((G=this.data)==null?0:G.navigationEndpoint)&&_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var H;((H=this.data)==null?0:H.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.u4.Object.defineProperties(Kk.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?void 0:G.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 G;return((G=this.data)==null?void 0:G.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;if(((G=this.data)==null?void 0:(H=G.detailsLine)==null?void 0:H.texts)!=null&&((Z=this.data)==null?void 0:Z.detailsLine.texts.length)>0){var Q;return(Q=this.data)==null?void 0:Q.detailsLine.texts.map(function(p){return p.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;if(((G=this.data)==null?void 0:(H=G.optionalDetailsLine)==null?void 0:H.texts)!=null&&((Z=this.data)==null?void 0:Z.optionalDetailsLine.texts.length)>0){var Q;return(Q=this.data)==null?void 0:Q.optionalDetailsLine.texts.map(function(p){return p.text}).join("")}return null}}});
Kk.prototype.dataChanged=Kk.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Kk.prototype,"rendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Kk.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kk.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.backgroundColor"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Kk.prototype,"hasBackgroundColor",null);
_.N([_.z("data.objectFit"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kk.prototype,"getObjectFit",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.tileRenderingStyle"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Kk.prototype,"hasTileMetadata",null);_.N([_.z("data.detailsLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kk.prototype,"getSecondaryDetails",null);
_.N([_.z("data.optionalDetailsLine"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kk.prototype,"getOptionalDetails",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kk.prototype,"dataChanged",null);_.N([_.O({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Kk);
_.m(Kk,"ytd-image-tile-renderer",function(){if(GB4!==void 0)return GB4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return GB4=G},{mode:1});var HgO;var Me=function(){return _.C.apply(this,arguments)||this};
_.T(Me,_.C);Me.prototype.getOpenLinkIcon=function(){return _.V("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Me.prototype.onSitelinkTap=function(){_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.V("kevlar_command_handler_migration_killswitch"))_.El(this.hostElement,this.data.clickCommands,this.hostElement);else for(var G=_.I(this.data.clickCommands),H=G.next();!H.done;H=G.next())this.ytComponentBehavior.resolveCommand(H.value)};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Me.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Me.prototype,"rendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Me.prototype,"data",void 0);_.N([_.O({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Me);
_.m(Me,"ytd-sitelink-renderer",function(){if(HgO!==void 0)return HgO;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return HgO=G},{mode:1});var j6=function(){var G=_.C.apply(this,arguments)||this;G.paddingFix=_.V("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.T(j6,_.C);j6.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"}}}};
j6.prototype.dataChanged=function(){var G=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;G.ytMacroReplacementBehavior.sendServiceRequestAction([H])})};
j6.prototype.shouldHideFooter=function(G){return!(G&&_.V("use_ads_engagement_panel_desktop_footer_cta"))};
_.u4.Object.defineProperties(j6.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(Z){var Q;return(Q=_.X(Z,VgU))==null?void 0:Q.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:G.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(Z){var Q;return((Q=_.X(Z,VgU))==null?void 0:Q.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
j6.prototype.dataChanged=j6.prototype.dataChanged;_.N([_.v(T74.YtMacroReplacementBehavior),_.A("design:type",Object)],j6.prototype,"ytMacroReplacementBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],j6.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],j6.prototype,"paddingFix",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j6.prototype,"removeBorderFromImageTiles",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.imageTileRenderers"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],j6.prototype,"useFooteredMetadataRenderingStyle",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],j6.prototype,"dataChanged",null);_.N([_.O({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],j6);
_.m(j6,"ytd-action-engagement-panel-content-renderer",function(){if(b$y!==void 0)return b$y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return b$y=G},{mode:1});var s10;var Zgd=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;return _.J("ad-grid-card-image-full-metadata-view-model",{class:function(){var Q;return((Q=H().interaction)==null?0:Q.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.aX(_.tk({visibilityCallback:function(Q){var p,l=(p=H().interaction)==null?void 0:p.onFirstVisible;Q&&l&&_.zt(l)},
showOption:_.ux}),_.fG(function(){return H().interaction},Z)),
"aria-label":function(){var Q,p;return(Q=H().interaction)==null?void 0:(p=Q.accessibility)==null?void 0:p.label}},_.J("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.J(_.SP,{data:function(){return H().adImage}},{adImageViewModel:function(Q){return _.J(_.PR,{data:Q.data,
customCommandResolver:Z})}})),_.J("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.J(_.k,{cond:function(){return H().headline},
then:function(Q){return _.J(_.Fe,{text:Q,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.J(_.k,{cond:function(){return H().detailsLine},
then:function(Q){return _.J("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.J(_.SP,{data:Q},{adDetailsLineViewModel:function(p){return _.J(_.VH,{data:p.data,customCommandResolver:Z,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.J(_.k,{cond:function(){return H().secondaryDetailsLine},
then:function(Q){return _.J("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.J(_.SP,{data:Q},{adDetailsLineViewModel:function(p){return _.J(_.VH,{data:p.data,customCommandResolver:Z,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"nn");var Q1_=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;return _.J("ad-grid-card-image-view-model",{class:function(){var Q;return((Q=H().interaction)==null?0:Q.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.aX(_.tk({visibilityCallback:function(Q){var p,l=(p=H().interaction)==null?void 0:p.onFirstVisible;Q&&l&&_.zt(l)},
showOption:_.ux}),_.fG(function(){return H().interaction},Z)),
"aria-label":function(){var Q,p;return(Q=H().interaction)==null?void 0:(p=Q.accessibility)==null?void 0:p.label}},_.J(_.SP,{data:function(){return H().adImage}},{adImageViewModel:function(Q){return _.J(_.PR,{data:Q.data,
customCommandResolver:Z})}}),_.J("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.J(_.SP,{data:function(){return H().adCardBadge}},{adCardBadgeViewModel:_.a3R})))},"on");var pP2=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;return _.J("ad-grid-card-text-view-model",{class:function(){var Q;return((Q=H().interaction)==null?0:Q.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.aX(_.tk({visibilityCallback:function(Q){var p,l=(p=H().interaction)==null?void 0:p.onFirstVisible;Q&&l&&_.zt(l)},
showOption:_.ux}),_.fG(function(){return H().interaction},Z)),
"aria-label":function(){var Q,p;return(Q=H().interaction)==null?void 0:(p=Q.accessibility)==null?void 0:p.label}},_.J("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.J(_.k,{cond:function(){return H().title},
then:function(Q){return _.J(_.Fe,{text:Q,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.J("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.J(_.Cl,{each:function(){var Q;
return((Q=H())==null?void 0:Q.descriptions)||[]},
keyBy:"INDEX"},function(Q){return _.J(_.Fe,{text:Q,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.J("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.J(_.SP,{data:function(){return H().moreInfoButton}},{adButtonViewModel:function(Q){return _.J(_.Jz,{data:Q.data,
customCommandResolver:Z})}})))},"pn");var la0=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;var Q=G.adGridCardCollectionStyle;return _.J("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.aX(_.tk({visibilityCallback:function(p){var l,q=(l=H().interaction)==null?void 0:l.onFirstVisible;p&&q&&_.zt(q)},
showOption:_.ux})),style:function(){return"grid-template-columns: repeat("+cR4(Q?Q():H().style)+", minmax(0, 1fr));"}},_.J(_.SP,{data:function(){var p;
return(p=H())==null?void 0:p.gridCards}},{adGridCardImageViewModel:function(p){return _.J(Q1_,{data:p.data,
customCommandResolver:Z})},
adGridCardImageFullMetadataViewModel:function(p){return _.J(Zgd,{data:p.data,customCommandResolver:Z})},
adGridCardTextViewModel:function(p){return _.J(pP2,{data:p.data,customCommandResolver:Z})}}))},"qn");_.RX(_.y(function(G){var H=G.data;return _.J("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.aX(_.tk({visibilityCallback:function(Z){var Q,p=(Q=H().interaction)==null?void 0:Q.onFirstVisible;Z&&p&&_.zt(p)},
showOption:_.ux}),_.fG(function(){return H().interaction},fSM))},_.J("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.J(_.k,{cond:_.dqW("(min-width: "+((0,_.KR)()+_.i8)+"px)"),
then:function(){return _.J(_.SP,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(Z){return _.J(la0,{data:Z.data,
customCommandResolver:fSM})}})},
else:function(){return _.J(_.SP,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(Z){return _.J(la0,{data:Z.data,
customCommandResolver:fSM,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.J("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.J(_.SP,{data:function(){return H().adButton}},{adButtonViewModel:function(Z){return _.J(_.Jz,{data:Z.data,
customCommandResolver:fSM})}})))},"rn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;return _.J("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.aX(_.tk({visibilityCallback:function(Z){var Q,p=(Q=H().interaction)==null?void 0:Q.onFirstVisible;Z&&p&&_.zt(p)},
showOption:_.ux}),_.fG(function(){return H().interaction},v5U))},_.J("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.J(_.SP,{data:function(){if(_.dqW("(min-width: "+((0,_.KR)()+_.i8)+"px)")())var Z=H().adGridCardCollection;
else{Z=Object.assign({},_.X(H().adGridCardCollection,XSx));var Q;Z.gridCards!==void 0&&((Q=Z.gridCards)==null?void 0:Q.length)>1?Z.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":Z.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";Z={adGridCardCollectionViewModel:Z}}return Z}},{adGridCardCollectionViewModel:function(Z){return _.J(la0,{data:Z.data,
customCommandResolver:v5U})}})),_.J("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.J(_.SP,{data:function(){return H().adButton}},{adButtonViewModel:function(Z){return _.J(_.Jz,{data:Z.data,
customCommandResolver:v5U})}})))},"sn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.b3}});var Pz=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return G};
_.T(Pz,_.C);_.g=Pz.prototype;_.g.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"}}}};
_.g.attached=function(){this.getDataFromPlayerAndRender()};
_.g.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.g.getDataFromPlayerAndRender=function(){var G=this,H=_.UO(this.hostElement);H&&H.getPlayerPromise().then(function(Z){G.getCachedDataAndListen(Z)})};
_.g.getCachedDataAndListen=function(G){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=G)};
_.g.resolveCachedActions=function(){var G=_.GF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(G=G&&G())&&!_.oN.isEmpty(G)&&this.sendUpdateEngagementPanelAction(G);(G=(G=_.GF("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&G())&&!_.oN.isEmpty(G)&&this.sendChangeEngagementPanelVisibilityAction(G);(G=(G=_.GF("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&G())&&!_.oN.isEmpty(G)&&this.sendScrollToEngagementPanelCommand(G)};
_.g.sendUpdateEngagementPanelAction=function(G){var H;_.AZ(this.hostElement,"yt-update-engagement-panel-action",[(H=_.oN.get(G,"action"))!=null?H:G])};
_.g.sendChangeEngagementPanelVisibilityAction=function(G){_.AZ(this.hostElement,"yt-change-engagement-panel-visibility-action",[G])};
_.g.sendScrollToEngagementPanelCommand=function(G){_.AZ(this.hostElement,"yt-scroll-to-engagement-panel-command",[G])};
_.g.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.V("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Rp(Error("Vo"))};
Pz.prototype.dataChanged=Pz.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Pz.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Pz.prototype,"componentBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],Pz.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Pz.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Pz.prototype,"player",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pz.prototype,"dataChanged",null);_.N([_.O({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Pz);
_.m(Pz,"ytd-ads-engagement-panel-content-renderer",function(){if(s10!==void 0)return s10;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return s10=G},{mode:1});var gN0;var re=function(){var G=_.C.apply(this,arguments)||this;G.player=null;G.JSC$22950_playerEvents=new Map;G.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return G};
_.T(re,_.C);_.g=re.prototype;_.g.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]]"}}}}}};
_.g.created=function(){this.player=null;this.JSC$22950_playerEvents=new Map;this.JSC$22950_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22950_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22950_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22950_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.g.attached=function(){var G=this,H=_.UO();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));H&&H.getPlayerPromise().then(function(Z){G.setPlayer(Z);G.set("isPageLoad",!1)})};
_.g.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22950_playerEvents);this.set("player",G);G&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22950_playerEvents),G.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.g.onLoopRangeChange=function(G){var H=_.tp().resolve(_.Jp(_.o0));if((!H||H.isOnWatch())&&this.hostElement.clientHeight){var Z;!G&&((Z=this.data)==null?0:Z.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.g.onVideoProgress=function(G){var H,Z,Q=((H=this.player)==null?void 0:(Z=H.getPresentingPlayerType)==null?void 0:Z.call(H))===2;this.isAdPlaying!==Q&&this.set("isAdPlaying",Q);var p;if(!Q&&(p=this.player)!=null&&p.getLoopRange()){Z=this.player.getLoopRange();H=Z.startTimeMs;Z=Z.endTimeMs;Q=this.player.getProgressState(1).seekableStart;var l;H<Q*1E3&&((l=this.data)==null?0:l.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
G=Z<G*1E3;var q;((q=this.player)==null?0:q.getLoopRange())&&G&&this.player.seekTo(H/1E3)}};
_.g.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.g.onYtDeleteClipEngagementPanelCommand=function(G){_.X(G,ib7).command&&this.ytComponentBehavior.resolveCommand(_.X(G,ib7).command)};
_.u4.Object.defineProperties(re.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.voteCount)||_.aq("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],re.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],re.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],re.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],re.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],re.prototype,"isAdPlaying",void 0);_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],re.prototype,"isPageLoad",void 0);_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],re.prototype,"isDarkTheme",void 0);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],re.prototype,"voteCount",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],re.prototype,"channelEndpoint",null);_.N([_.z("channelEndpoint"),_.A("design:type",Object),_.A("design:paramtypes",[])],re.prototype,"channelHref",null);_.N([_.O({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],re);
_.m(re,"ytd-clip-attribution-renderer",function(){if(gN0!==void 0)return gN0;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return gN0=G},{mode:1});var IaY;var we=function(){var G=_.C.apply(this,arguments)||this;G.player=null;G.JSC$22955_playerEvents=new Map;return G};
_.T(we,_.C);_.g=we.prototype;_.g.created=function(){this.player=null;this.JSC$22955_playerEvents=new Map;this.JSC$22955_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22955_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22955_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.g.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.g.attached=function(){var G=this,H=_.UO();H&&H.getPlayerPromise().then(function(Z){G.setPlayer(Z);G.set("isPageLoad",!1)})};
_.g.setPlayer=function(G){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22955_playerEvents);this.set("player",G);if(G){this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22955_playerEvents);var H;(G==null?void 0:(H=G.getPresentingPlayerType)==null?void 0:H.call(G))===2&&this.playerAdStartHandler()}};
_.g.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.g.onVideoProgress=function(){var G,H,Z=((G=this.player)==null?void 0:(H=G.getPresentingPlayerType)==null?void 0:H.call(G))===2;this.isAdPlaying!==Z&&this.set("isAdPlaying",Z)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],we.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],we.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],we.prototype,"isAdPlaying",void 0);
_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],we.prototype,"isPageLoad",void 0);_.N([_.O({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],we);
_.m(we,"ytd-clip-section-footer-renderer",function(){if(IaY!==void 0)return IaY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return IaY=G},{mode:1});var qiI;var Six;var uqq=function(){return _.C.apply(this,arguments)||this};
_.T(uqq,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uqq.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uqq.prototype,"data",void 0);_.N([_.O({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],uqq);
_.m(uqq,"ytd-clip-ad-state-renderer",function(){if(Six!==void 0)return Six;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Six=G},{mode:1});var BtU;var hm=function(){var G=_.C.apply(this,arguments)||this;G.value="";G.valid=!1;G.userChangedValue=!1;G.disabled=!1;G.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return G};
_.T(hm,_.C);_.g=hm.prototype;_.g.detached=function(){this.userChangedValue=!1};
_.g.handleKeyDown=function(G){if(_.FW)var H=13;else _.oRw&&_.b$?H=13:H=13;G.keyCode===H&&G.preventDefault()};
_.g.handleInput=function(){var G=_.F9(this.hostElement).querySelector("#title");if(G){var H=(G.value||"").replace(/\r|\n/g," ");this.set("value",H);G.value=H;this.valid=G.validate();this.userChangedValue=!0}};
_.g.handleBlur=function(){this.valid=_.F9(this.hostElement).querySelector("#title").validate()};
_.g.onValueChanged=function(){_.N5(this.hostElement,"title-changed",{title:this.value})};
_.g.onValidChanged=function(){_.N5(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.g.setInput=function(G,H){var Z=_.F9(this.hostElement).querySelector("#title");Z&&(Z.value=G,this.handleInput(),H&&(Z.invalid=!1,this.valid=!0))};
_.g.onClipCreationDisable=function(){this.set("disabled",!0)};
_.g.onClipCreationEnable=function(){this.set("disabled",!1)};
_.g.onClipCreationVisibilityChange=function(G){var H=this;G.visible?requestAnimationFrame(function(){var Z;((Z=_.F9(H.hostElement).querySelector("#title"))==null?void 0:Z.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
hm.prototype.onValidChanged=hm.prototype.onValidChanged;hm.prototype.onValueChanged=hm.prototype.onValueChanged;hm.prototype.handleBlur=hm.prototype.handleBlur;hm.prototype.handleInput=hm.prototype.handleInput;hm.prototype.handleKeyDown=hm.prototype.handleKeyDown;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],hm.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],hm.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],hm.prototype,"value",void 0);_.N([_.h(),_.A("design:type",Object)],hm.prototype,"valid",void 0);_.N([_.h(),_.A("design:type",Object)],hm.prototype,"userChangedValue",void 0);_.N([_.h(),_.A("design:type",Object)],hm.prototype,"disabled",void 0);_.N([_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],hm.prototype,"handleKeyDown",null);
_.N([_.lq("input"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hm.prototype,"handleInput",null);_.N([_.lq("blur"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hm.prototype,"handleBlur",null);_.N([_.gx("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hm.prototype,"onValueChanged",null);
_.N([_.gx("valid"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hm.prototype,"onValidChanged",null);_.N([_.O({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],hm);
_.m(hm,"ytd-clip-creation-text-input-renderer",function(){if(BtU!==void 0)return BtU;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return BtU=G},{mode:1});var J3N;var td2;var kBx;var DhI;var dhO;var Ck=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};G.pendingStoryboardImages_={};G.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];G.tickLabelInterval=30;G.mediumTickInterval=5;G.largeTickInterval=15;G.aboveRulerHeight=32;G.rulerHeight=50;G.smallTickHeight=4;G.mediumTickHeight=8;G.largeTickHeight=16;G.mediaListeners_=
{};return G};
_.T(Ck,_.C);_.g=Ck.prototype;_.g.attached=function(){var G=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(H){H=_.I(["screen and (min-resolution: "+H+")","screen and (max-resolution: "+H+")"]);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=window.matchMedia(Z);Q&&(G.mediaListeners_[Z]=G.updatePixelRatio_.bind(G),Q.addEventListener?Q.addEventListener("change",G.mediaListeners_[Z]):Q.addListener?Q.addListener(G.mediaListeners_[Z]):delete G.mediaListeners_[Z])}})};
_.g.detached=function(){this.setPlayer(null);for(var G=_.I(Object.keys(this.mediaListeners_)),H=G.next();!H.done;H=G.next()){var Z=H.value;H=this.mediaListeners_[Z];(Z=window.matchMedia(Z))&&(Z.removeEventListener?Z.removeEventListener("change",H):Z.removeListener&&Z.removeListener(H))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.g.onVisibilityChangedAction_=function(G){var H=this;G.visible&&!this.player_&&(G=_.UO())&&G.getPlayerPromise().then(function(Z){H.setPlayer(Z)})};
_.g.setPlayer=function(G){G&&this.set("player_",G)};
_.g.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.g.setUpCanvas_=function(){var G=this.rulerWidth,H=this.devicePixelRatio_,Z=this.visible;this.set("canvasReady_",!1);if(Z&&H!==0){Z=this.aboveRulerHeight+this.rulerHeight;var Q=_.F9(this.hostElement).querySelector("#ticks");Q.width=G*H;Q.height=Z*H;Q.style.width=G+"px";Q.style.height=Z+"px";Q.getContext("2d").scale(H,H);this.set("canvasReady_",!0)}};
_.g.drawRuler_=function(G,H,Z,Q,p,l,q,u,B,t,D,d){G&&Z&&H&&(G=_.F9(this.hostElement).querySelector("#ticks"),H=G.getContext("2d"),H.clearRect(0,0,G.width,G.height),H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),H.lineWidth=2,H.beginPath(),H.moveTo(0,this.aboveRulerHeight),H.lineTo(G.width,this.aboveRulerHeight),H.moveTo(0,G.height),H.lineTo(G.width,G.height),H.stroke(),this.drawRulerTicks_(G,l,p,Q),this.drawStoryboardImages_(G,Z,l,p,Q),H.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
H.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(q-l,Q,!1),this.rulerHeight),Z=this.timeToPixels_(u-l,Q,!1),H.fillRect(Z,this.aboveRulerHeight,G.width-Z,this.rulerHeight),this.drawSpeedLines_(G,l,d))};
_.g.drawRulerTicks_=function(G,H,Z,Q){var p=G.getContext("2d");p.save();p.lineWidth=1;for(var l=Math.floor(Math.max(0,H-this.tickLabelInterval));l<H+Z;l++){p.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var q=(l-H)*Q;p.beginPath();p.moveTo(q,G.height);var u=this.smallTickHeight;l%this.largeTickInterval===0?u=this.largeTickHeight:l%this.mediumTickInterval===0&&(u=this.mediumTickHeight);p.lineTo(q,G.height-u);p.stroke();l%this.tickLabelInterval===0&&(p.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),p.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),p.fillText(Po(l),q+4,12),p.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),p.moveTo(q,0),p.lineTo(q,this.aboveRulerHeight),p.stroke())}p.restore()};
_.g.percentToHex_=function(G){G=Math.round(G*255).toString(16);G.length<2&&(G="0"+G);return G};
_.g.drawSpeedLines_=function(G,H,Z){var Q=G.getContext("2d");Q.save();var p=Math.min(25,Math.abs(Z)-15)/25,l=G.width*.3*p,q=G.width*-.3,u=G.width*1.3,B=this.aboveRulerHeight;G=G.height;var t=Math.round(4*p),D=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");D.length<7&&(D="#"+D.substring(1,4).repeat(2));var d=this.percentToHex_(.5+p/2);d=D+d;D+="00";if(p>0)for(p=0;p<t;p++){var e=q+Math.random()*(u-q),n=B+Math.random()*(G-B),c=l+H%l,W=Q.createLinearGradient(e,n,e+c,n);
Z<0?(W.addColorStop(0,d),W.addColorStop(.4,d),W.addColorStop(.9,D)):(W.addColorStop(.1,D),W.addColorStop(.6,d),W.addColorStop(1,d));Q.strokeStyle=W;Q.lineWidth=1;Q.beginPath();Q.moveTo(e,n);Q.lineTo(e+c,n);Q.stroke()}Q.restore()};
_.g.getStoryboardForTime_=function(G,H,Z){Z===void 0&&(Z=H.getNumberOfStoryboardLevels()-1);G=H.getStoryboardFrameIndex(G,Z);return H.getStoryboardFrame(G,Z)};
_.g.drawStoryboardImages_=function(G,H,Z,Q,p){if(!this.disabled){G=G.getContext("2d");var l=this.getStoryboardForTime_(0,H);if(l){var q=l.width/l.columns;l=l.height/l.rows;var u=q/l,B=this.rulerHeight*u;B=this.tickLabelInterval*(u<this.tickLabelInterval*p/this.rulerHeight?1/Math.floor(this.tickLabelInterval*p/B):Math.round(B/(this.tickLabelInterval*p)));var t=B*p,D=this.rulerHeight,d=t/this.rulerHeight,e=Math.floor(Math.max(0,Z-B));for(e-=e%B;e<Z+Q;e+=B){var n=this.getStoryboardForTime_(e,H),c=this.getPreloadedStoryboard_(n.url);
if(c){var W=(e-Z)*p,M=this.aboveRulerHeight,r=n.column*q,w=n.row*l;if(u<d){var x=D/(t/u);n=q;x*=l;w+=(l-x)/2}else n=t/(D*u)*q,x=l,r+=(q-n)/2;G.drawImage(c,r,w,n,x,W,M,t,D)}else this.fetchStoryboardImage_(n)}}}};
_.g.getPreloadedStoryboard_=function(G){return this.storyboardImages_.find(function(H){if(H.src==G)return!0;var Z=H.src.indexOf(G);return Z!=-1&&Z==H.src.length-G.length})};
_.g.fetchStoryboardImage_=function(G){var H=this,Z=this.getPreloadedStoryboard_(G.url),Q=this.pendingStoryboardImages_[G.url];Z||Q!==void 0||(Z=new Promise(function(p){var l=new Image(G.width,G.height);l.src=G.url;l.onload=function(){p(l)};
l.onerror=function(){p(null)}}),this.pendingStoryboardImages_[G.url]=Z,Z.then(function(p){p&&H.push("storyboardImages_",p);
return p}).finally(function(){delete H.pendingStoryboardImages_[G.url]}))};
_.g.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.g.timeToPixels_=function(G,H,Z){G*=H;return Z===void 0||Z?G+"px":G};
_.g.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Ck.prototype.drawRuler_=Ck.prototype.drawRuler_;Ck.prototype.setUpCanvas_=Ck.prototype.setUpCanvas_;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ck.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Ck.prototype,"start",void 0);_.N([_.h({value:30}),_.A("design:type",Number)],Ck.prototype,"end",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],Ck.prototype,"visible",void 0);_.N([_.h(),_.A("design:type",Object)],Ck.prototype,"player_",void 0);_.N([_.h(),_.A("design:type",Number)],Ck.prototype,"tickSpacing",void 0);_.N([_.h(),_.A("design:type",Number)],Ck.prototype,"windowSizeSec",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Ck.prototype,"rulerWidth",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Ck.prototype,"rulerShift",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],Ck.prototype,"canvasReady_",void 0);_.N([_.h({value:function(){return[]}}),
_.A("design:type",Array)],Ck.prototype,"storyboardImages_",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ck.prototype,"disabled",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Ck.prototype,"forceRender_",void 0);_.N([_.h({value:1}),_.A("design:type",Number)],Ck.prototype,"devicePixelRatio_",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Ck.prototype,"windowSpeed",void 0);
_.N([_.gx("visible","devicePixelRatio_","rulerWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ck.prototype,"setUpCanvas_",null);
_.N([_.gx("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.A("design:returntype")],Ck.prototype,"drawRuler_",null);_.N([_.fH({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Ck);
_.m(Ck,"yt-clip-creation-scrubber-canvas",function(){if(dhO===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);dhO=G}G=dhO;return G},
{mode:2});var eIq;var nNY;var im=function(){var G=_.C.apply(this,arguments)||this;G.start=0;G.end=30;G.visible=!1;G.draggingLeft_=!1;G.draggingRight_=!1;G.draggingRuler_=!1;G.draggingWindow_=!1;G.seekableStart=0;G.seekableEnd=0;G.rulerWidth_=0;G.rulerShift_=0;G.windowSlideSpeed=0;G.disabled=!1;G.initialized=!1;G.durationAccessibilityLabel="";G.activeLoopRange_=!1;G.rulerDragMouseStart_=0;G.rulerDragRulerStart_=0;G.rulerDragStartTime_=0;G.rulerDragEndTime_=0;G.dragMouseLastX_=0;G.scrollInterval_=null;G.scrubberVe_=null;G.boundHandlers_=
{};G.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.T(im,_.C);_.g=im.prototype;
_.g.created=function(){var G=this;this.JSC$22968_playerEvents=new Map;this.JSC$22968_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22968_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22968_playerEvents.set("onStateChange",this.onStateChange_);var H={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(H).forEach(function(Z){G.boundHandlers_[Z]=H[Z].bind(G)})};
_.g.attached=function(){this.activeLoopRange_=!1;_.F9(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.F9(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.bl(156731)};
_.g.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.F9(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.F9(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.g.onVisibilityChangedAction_=function(G){var H=this;G.visible&&!this.player_&&(G=_.UO())&&G.getPlayerPromise().then(function(Z){H.setPlayer(Z)})};
_.g.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22968_playerEvents);G&&(this.set("player_",G),this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22968_playerEvents))};
_.g.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.g.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.g.beginHandleDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=G.clientX,G.target===_.F9(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():G.target===_.F9(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.g.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.g.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.g.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.g.beginRulerDrag_=function(G){this.disabled||(G.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=G.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.g.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.g.beginWindowScroll_=function(){var G=this;this.scrollInterval_=setInterval(function(){var H=G.windowSlideSpeed;if(H=_.hLO(G.start,G.boundedRulerStartLimit_())?H-.1:_.hLO(G.end,G.boundedRulerEndLimit_())?H+.1:0){var Z=G.capRulerOffset_(G.rulerShift_+H);Z==G.rulerShift_?H=0:(G.set("rulerShift_",Z),_.N5(G.hostElement,"set-fixed-length-range",{start:G.start+H,duration:G.end-G.start}))}G.set("windowSlideSpeed",H)},33)};
_.g.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.g.endDrag_=function(){this.logClick();var G=void 0;this.draggingRight_?G=this.end-1:this.draggingLeft_&&(G=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,G);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))};
_.g.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.g.updateRulerSize_=function(){this.set("rulerWidth_",_.F9(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.g.handleMouseDrag_=function(G){G.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(G):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(G):this.draggingWindow_&&this.handleWindowDrag_(G))};
_.g.handleRulerDrag_=function(G){G=this.pixelsToTime_(G.clientX-this.rulerDragMouseStart_);G=this.capRulerOffset_(this.rulerDragRulerStart_-G);this.set("rulerShift_",G);var H=this.rulerDragStartTime_-(this.rulerDragRulerStart_-G);_.N5(this.hostElement,"set-fixed-length-range",{start:H,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-G)-H})};
_.g.handleWindowDrag_=function(G){var H=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(H);_.N5(this.hostElement,"set-fixed-length-range",{start:this.start+G,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.g.capRulerOffset_=function(G){var H=this.seekableStart-this.pixelsToTime_(16),Z=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(H,G),Z)};
_.g.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.g.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.g.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.g.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.g.handleWindowHandleDrag_=function(G){var H=G.clientX-this.dragMouseLastX_;this.dragMouseLastX_=G.clientX;G=this.pixelsToTime_(H);if(this.draggingLeft_){var Z=this.start+G;var Q=this.end}else this.draggingRight_&&(Z=this.start,Q=this.end+G);_.N5(this.hostElement,"set-range",{start:Z,end:Q,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.g.onVideoProgress_=function(G){this.disabled||(G=this.timeToPixels_(G-this.rulerShift_,this.tickSpacing_),_.F9(this.hostElement).querySelector("#playhead").style.transform="translateX("+G+")")};
_.g.onClipCreationDisable_=function(){this.endDrag_()};
_.g.timeToPixels_=function(G,H,Z){G*=H;return Z===void 0||Z?G+"px":G};
_.g.pixelsToTime_=function(G){return G/this.tickSpacing_};
_.g.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.g.centerRuler_=function(G,H,Z){this.set("rulerShift_",this.capRulerOffset_(G+(H-G)/2-Z/2))};
_.g.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.g.updateLoopRange_=function(G,H,Z,Q,p,l,q){G&&(H&&Q&&!Z?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(G.pauseVideo(),G.seekTo(p,!1,void 0,void 0,50)):this.draggingRight_?(G.pauseVideo(),G.seekTo(l-.1,!1,void 0,void 0,50)):(q!==void 0?G.seekTo(q,!0,void 0,void 0,50):(H=G.getCurrentTime(),H<p||H>l?G.seekTo(p,!0,void 0,void 0,50):G.seekTo(H,!0,void 0,void 0,50)),G.playVideo()),G.setLoopRange({startTimeMs:p*1E3,endTimeMs:l*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(G.getCurrentTime())):
this.activeLoopRange_&&(G.setLoopRange(null),this.activeLoopRange_=!1))};
_.g.updateHandles_=function(){_.F9(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.F9(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.g.updateRuler_=function(){var G=this.end,H=this.start,Z=this.draggableStartLimit_(),Q=this.draggableEndLimit_();(H<Z-.001||G>Q+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.g.computeDurationLabel_=function(G,H){return G?G.replace("$clip_length",parseFloat(H).toFixed(1)):""};
_.g.computeDuration_=function(G,H){return this.isValidTime_(G)&&this.isValidTime_(H)&&G<H?H-G:0};
_.g.isValidTime_=function(G){return isNaN(parseFloat(G))||G<0?!1:this.player_?G>=this.seekableStart&&G<=this.seekableEnd:!0};
_.g.computeWindowSizeSec_=function(G,H,Z){return Math.min((G||12E4)/1E3,Z-H)};
_.g.computeTickSpacing_=function(G,H){return H?H/G:1};
_.g.onDragStateChanged_=function(){_.N5(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.g.centerRangeOnTime_=function(G){var H=this.duration;G=zK4(G-H/2,H,this.seekableStart,this.seekableEnd);_.N5(this.hostElement,"set-fixed-length-range",{start:G.start,duration:G.end-G.start})};
_.g.nearlyLessThan_=function(G,H,Z){return G+(Z===void 0?1E-6:Z)<H};
_.g.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var G=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(G,this.start)||this.nearlyLessThan_(this.end,G))&&this.centerRangeOnTime_(G)}};
_.g.onStateChange_=function(G){this.visible&&!this.disabled&&G==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.g.computeDragState_=function(G,H,Z,Q){return G?"left":H?"right":Z?"ruler":Q?"window":"none"};
_.g.logClick=function(){var G=_.$k(),H=_.Va();G&&H&&this.scrubberVe_&&(_.V("combine_ve_grafts")?_.fQ(_.gr(),this.scrubberVe_,H):_.je(G,H,this.scrubberVe_),_.Co(G,this.scrubberVe_))};
im.prototype.onDragStateChanged_=im.prototype.onDragStateChanged_;im.prototype.updateRuler_=im.prototype.updateRuler_;im.prototype.updateHandles_=im.prototype.updateHandles_;im.prototype.onUpdateLoopRange=im.prototype.onUpdateLoopRange;im.prototype.onInitializedChanged_=im.prototype.onInitializedChanged_;im.prototype.onVisibleChanged_=im.prototype.onVisibleChanged_;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],im.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",Object)],im.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"start",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"end",void 0);_.N([_.h({computed:"computeDuration_(start, end)"}),_.A("design:type",Number)],im.prototype,"duration",void 0);
_.N([_.h(),_.A("design:type",String)],im.prototype,"lengthTemplate",void 0);_.N([_.h({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.A("design:type",String)],im.prototype,"durationLabel",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"visible",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"player_",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"draggingLeft_",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"draggingRight_",void 0);
_.N([_.h(),_.A("design:type",Object)],im.prototype,"draggingRuler_",void 0);_.N([_.h({value:!1}),_.A("design:type",Object)],im.prototype,"draggingWindow_",void 0);_.N([_.h({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.A("design:type",Number)],im.prototype,"tickSpacing_",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"seekableStart",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"seekableEnd",void 0);
_.N([_.h(),_.A("design:type",Number)],im.prototype,"windowSizeMs",void 0);_.N([_.h({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.A("design:type",Number)],im.prototype,"windowSizeSec_",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"rulerWidth_",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"rulerShift_",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"windowSlideSpeed",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],im.prototype,"disabled",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"initialized",void 0);_.N([_.h(),_.A("design:type",Object)],im.prototype,"durationAccessibilityLabel",void 0);_.N([_.h({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.A("design:type",String)],im.prototype,"dragState",void 0);
_.N([_.gx("visible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],im.prototype,"onVisibleChanged_",null);_.N([_.gx("initialized"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],im.prototype,"onInitializedChanged_",null);_.N([_.gx("player_","visible","disabled","initialized","start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],im.prototype,"onUpdateLoopRange",null);
_.N([_.gx("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],im.prototype,"updateHandles_",null);_.N([_.gx("start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],im.prototype,"updateRuler_",null);
_.N([_.gx("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],im.prototype,"onDragStateChanged_",null);_.N([_.fH({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],im);
_.m(im,"yt-clip-creation-scrubber-view",function(){if(nNY===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;eIq===void 0&&(eIq=document.createElement("template"));var Q=eIq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);nNY=G}G=nNY;return G},{mode:2});var Oo=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};G.startHighlightTimeout=0;G.endHighlightTimeout=0;return G};
_.T(Oo,_.C);_.g=Oo.prototype;_.g.attached=function(){var G=this;this.startInput.addEventListener("input",function(H){return G.handleStartInput_(H)});
this.endInput.addEventListener("input",function(H){return G.handleEndInput_(H)});
this.startInput.addEventListener("focusout",function(H){return G.handleStartBlur_(H)});
this.endInput.addEventListener("focusout",function(H){return G.handleEndBlur_(H)})};
_.g.setPlayer=function(G){this.set("player_",G)};
_.g.onSetFixedLengthRange_=function(G){var H=G.detail;G=H.start;var Z=H.duration,Q=H.startLimit;H=H.endLimit;Q||(Q=this.seekableStart_);H||(H=this.seekableEnd_);G=zK4(G,Z,Q,H);this.start=G.start;this.end=G.end};
_.g.onSetRange_=function(G){var H=G.detail;G=H.start;var Z=H.end,Q=H.startLimit;H=H.endLimit;Q||(Q=this.seekableStart_);H||(H=this.seekableEnd_);if(G=Ku2(G,Z,Q,H,this.minLengthSec,this.maxLengthSec))this.start=G.start,this.end=G.end};
_.g.updateInputs_=function(){var G=this.end,H=this.start;this.startInput.focused||(this.startInput.value=Po(H,!0));this.endInput.focused||(this.endInput.value=Po(G,!0))};
_.g.handleStartInput_=function(G){G=WuO(G.target.value);if(G===null)this.set("startValid",!1);else{var H=this.end,Z=Ku2(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);Z?(this.set("endWillUpdate",Z.end!==H),this.set("startValid",Z.start===G)):this.set("startValid",!1)}};
_.g.handleEndInput_=function(G){G=WuO(G.target.value);if(G===null)this.set("endValid",!1);else{var H=this.start,Z=M__(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);Z?(this.set("startWillUpdate",Z.start!==H),this.set("endValid",Z.end===G)):this.set("endValid",!1)}};
_.g.handleStartBlur_=function(G){G=WuO(G.target.value);G===null?this.startInput.value=Po(this.start,!0):this.forceUpdateInputs_(Ku2(G,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.g.handleEndBlur_=function(G){G=WuO(G.target.value);G===null?this.endInput.value=Po(this.end,!0):this.forceUpdateInputs_(M__(this.start,G,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.g.forceUpdateInputs_=function(G){G&&(this.start=G.start,this.end=G.end);this.startInput.value=Po(this.start,!0);this.endInput.value=Po(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.g.initializeClipRange_=function(){var G=this.seekableEnd_,H=this.seekableStart_,Z=this.visible_,Q=this.player_;if(!Q||!Z||H===null||!G)this.set("initialized",!1);else if(!this.initialized){var p=Q.getCurrentTime(),l=this.getDefaultLengthSec_();Z=Q.getVideoData();var q=Q.getPlayerState()==1,u=Z.isLive;l=Math.min(l,G-H);p=Math.max(0,p);G=u?M__(p-l,p,H,G,this.minLengthSec,this.maxLengthSec):q?zK4(p-l/2,l,H,G):zK4(p,l,H,G);this.start=G.start;this.end=G.end;this.set("initialized",!0);Z.isLive&&Q.seekTo(G.start);
this.startInput.value=Po(this.start,!0);this.endInput.value=Po(this.end,!0)}};
_.g.onStartChanged_=function(){var G=this;_.N5(this.hostElement,"start-changed",{start:this.start});var H;isNaN((H=this.oldStart)!=null?H:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){G.set("highlightStart",!1);G.startHighlightTimeout=0;G.oldStart=G.start},3E3))};
_.g.onEndChanged_=function(){var G=this;_.N5(this.hostElement,"end-changed",{end:this.end});var H;isNaN((H=this.oldEnd)!=null?H:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){G.set("highlightEnd",!1);G.endHighlightTimeout=0;G.oldEnd=G.end},3E3))};
_.g.onVisibilityChangedAction_=function(G){var H=this;this.set("visible_",G.visible);this.visible_&&!this.player_&&(G=_.UO())&&G.getPlayerPromise().then(function(Z){H.setPlayer(Z)})};
_.g.computeMinLengthSec_=function(G){return G/1E3||5};
_.g.computeMaxLengthSec_=function(G){return G/1E3||60};
_.g.computeDefaultLengthSec_=function(G){return G/1E3};
_.g.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.g.computeSeekableStart_=function(G,H){return G&&H?G.getProgressState(1).seekableStart:0};
_.g.computeSeekableEnd_=function(G,H){return G&&H?G.getProgressState(1).seekableEnd:0};
_.g.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.g.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.g.onDragState_=function(G){this.set("highlightStart",G.detail.startChanging);this.set("highlightEnd",G.detail.endChanging)};
Oo.prototype.onDragState_=Oo.prototype.onDragState_;Oo.prototype.onEndChanged_=Oo.prototype.onEndChanged_;Oo.prototype.onStartChanged_=Oo.prototype.onStartChanged_;Oo.prototype.initializeClipRange_=Oo.prototype.initializeClipRange_;Oo.prototype.updateInputs_=Oo.prototype.updateInputs_;Oo.prototype.onSetRange_=Oo.prototype.onSetRange_;Oo.prototype.onSetFixedLengthRange_=Oo.prototype.onSetFixedLengthRange_;
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Oo.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Oo.prototype,"data",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Oo.prototype,"start",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],Oo.prototype,"startValid",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Oo.prototype,"startWillUpdate",void 0);_.N([_.h({value:30}),_.A("design:type",Number)],Oo.prototype,"end",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],Oo.prototype,"endValid",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Oo.prototype,"endWillUpdate",void 0);_.N([_.h({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.A("design:type",Number)],Oo.prototype,"minLengthSec",void 0);
_.N([_.h({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.A("design:type",Number)],Oo.prototype,"maxLengthSec",void 0);_.N([_.h({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.A("design:type",Number)],Oo.prototype,"defaultLengthSec",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Oo.prototype,"visible_",void 0);_.N([_.h(),_.A("design:type",Object)],Oo.prototype,"player_",void 0);
_.N([_.h({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.A("design:type",Number)],Oo.prototype,"seekableStart_",void 0);_.N([_.h({computed:"computeSeekableEnd_(player_, visible_)"}),_.A("design:type",Number)],Oo.prototype,"seekableEnd_",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],Oo.prototype,"initialized",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Oo.prototype,"disabled",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Oo.prototype,"highlightStart",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Oo.prototype,"highlightEnd",void 0);_.N([_.q6("#start"),_.A("design:type",HTMLInputElement)],Oo.prototype,"startInput",void 0);_.N([_.q6("#end"),_.A("design:type",HTMLInputElement)],Oo.prototype,"endInput",void 0);
_.N([_.lq("set-fixed-length-range"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Oo.prototype,"onSetFixedLengthRange_",null);_.N([_.lq("set-range"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Oo.prototype,"onSetRange_",null);_.N([_.gx("start","end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oo.prototype,"updateInputs_",null);
_.N([_.gx("player_","visible_","seekableStart_","seekableEnd_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oo.prototype,"initializeClipRange_",null);_.N([_.gx("start"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oo.prototype,"onStartChanged_",null);_.N([_.gx("end"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Oo.prototype,"onEndChanged_",null);
_.N([_.lq("clips-drag-state"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Oo.prototype,"onDragState_",null);_.N([_.fH({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Oo);
_.m(Oo,"yt-clip-creation-scrubber-renderer",function(){if(DhI===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;kBx===void 0&&(kBx=document.createElement("template"));var Q=kBx;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);DhI=G}G=DhI;return G},{mode:2});var aF=function(){var G=_.C.apply(this,arguments)||this;G.player_=null;G.JSC$22982_playerEvents=new Map;G.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return G};
_.T(aF,_.C);_.g=aF.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$22982_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22982_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22982_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22982_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.g.detached=function(){this.setPlayer(null)};
_.g.onVisibilityChangedAction_=function(G){var H=this,Z;if((Z=this.data)==null?0:Z.externalVideoId){var Q;this.videoId=(Q=this.data)==null?void 0:Q.externalVideoId}this.getPlayer().then(function(p){if(G.visible)H.returnTime=p.getCurrentTime(),H.isAtLiveHead=p.getProgressState().isAtLiveHead;else{var l=H.returnTime;H.isAtLiveHead&&(l=Number.POSITIVE_INFINITY);p.seekTo(l,void 0,void 0,void 0,51)}})};
_.g.getPlayer=function(){var G=this;if(!this.player_){var H=_.UO();if(H)return H.getPlayerPromise().then(function(Z){G.setPlayer(Z);return Z})}return Promise.resolve(this.player_)};
_.g.setPlayer=function(G){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22982_playerEvents);if(G){this.player_=G;var H;((H=this.data)==null?0:H.externalVideoId)||this.set("videoId",G.getVideoData().video_id||"");var Z;(G==null?void 0:(Z=G.getPresentingPlayerType)==null?void 0:Z.call(G))===2&&(this.set("isAdPlaying",!0),_.AZ(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(G,this.JSC$22982_playerEvents)}};
_.g.ready=function(){_.F9(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.g.onTitleChanged_=function(G){this.set("titleValue",G.detail.title)};
_.g.onStartChanged_=function(G){this.set("start",G.detail.start)};
_.g.onEndChanged_=function(G){this.set("end",G.detail.end)};
_.g.onTitleValidChanged_=function(G){this.set("titleValid",G.detail.valid)};
_.g.onStartValidChanged_=function(G){this.set("startValid",G.detail.valid)};
_.g.onEndValidChanged_=function(G){this.set("endValid",G.detail.valid)};
_.g.onVideoDataChange_=function(){var G;if((G=this.data)==null||!G.externalVideoId){var H;this.set("videoId",((H=this.player_)==null?void 0:H.getVideoData().video_id)||"")}};
_.g.computeFormValid_=function(G,H,Z,Q){return!!(G&&H&&Z&&Q)};
_.g.computeCancelButton_=function(G,H,Z){return G&&_.X(G,_.Yl)?{buttonRenderer:Object.assign({},_.X(G,_.Yl),{isDisabled:H||Z})}:null};
_.g.computeSubmitButton_=function(G,H,Z){return G&&_.X(G,_.Yl)?{buttonRenderer:Object.assign({},_.X(G,_.Yl),{command:void 0,isDisabled:!this.formValid||H||Z})}:null};
_.g.computeSubmitCommand_=function(G){return G||null};
_.g.onSubmit_=function(G){var H=this;G.stopPropagation();G.preventDefault();this.submitCommand_&&(G={},G.comment_text=this.titleValue,G.clip_external_video_id=this.videoId,G.clip_offset_ms=parseInt(this.start*1E3,10),G.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.L9(this.hostElement,[this.submitCommand_,G]).then(function(){H.set("isLoading_",!1)},function(){H.set("isLoading_",!1)}))};
_.g.playerAdStartHandler_=function(){_.AZ(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler_=function(){_.AZ(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.g.onVideoProgress_=function(){var G=this;this.getPlayer().then(function(H){var Z,Q=(H==null?void 0:(Z=H.getPresentingPlayerType)==null?void 0:Z.call(H))===2;G.isAdPlaying!==Q&&(Q?G.playerAdStartHandler_():G.playerAdEndHandler_())})};
aF.prototype.onEndValidChanged_=aF.prototype.onEndValidChanged_;aF.prototype.onStartValidChanged_=aF.prototype.onStartValidChanged_;aF.prototype.onTitleValidChanged_=aF.prototype.onTitleValidChanged_;aF.prototype.onEndChanged_=aF.prototype.onEndChanged_;aF.prototype.onStartChanged_=aF.prototype.onStartChanged_;aF.prototype.onTitleChanged_=aF.prototype.onTitleChanged_;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],aF.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",Object)],aF.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],aF.prototype,"data",void 0);_.N([_.h({value:""}),_.A("design:type",String)],aF.prototype,"titleValue",void 0);
_.N([_.h({value:!1}),_.A("design:type",Boolean)],aF.prototype,"titleValid",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],aF.prototype,"start",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],aF.prototype,"startValid",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],aF.prototype,"end",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],aF.prototype,"endValid",void 0);_.N([_.h({value:""}),_.A("design:type",String)],aF.prototype,"videoId",void 0);
_.N([_.h({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.A("design:type",Boolean)],aF.prototype,"formValid",void 0);_.N([_.h({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.A("design:type",Object)],aF.prototype,"submitButton_",void 0);_.N([_.h({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.A("design:type",Object)],aF.prototype,"submitCommand_",void 0);
_.N([_.h({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.A("design:type",Object)],aF.prototype,"cancelButton_",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],aF.prototype,"isLoading_",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],aF.prototype,"isAdPlaying",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],aF.prototype,"returnTime",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],aF.prototype,"isAtLiveHead",void 0);
_.N([_.lq("title-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aF.prototype,"onTitleChanged_",null);_.N([_.lq("start-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aF.prototype,"onStartChanged_",null);_.N([_.lq("end-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aF.prototype,"onEndChanged_",null);
_.N([_.lq("title-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aF.prototype,"onTitleValidChanged_",null);_.N([_.lq("start-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aF.prototype,"onStartValidChanged_",null);_.N([_.lq("end-valid-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],aF.prototype,"onEndValidChanged_",null);
_.N([_.fH({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],aF);
_.m(aF,"yt-clip-creation-renderer",function(){if(td2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;J3N===void 0&&(J3N=document.createElement("template"));var Q=J3N;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);td2=G}G=td2;return G},{mode:2});var y1=function(){return _.C.apply(this,arguments)||this};
_.T(y1,_.C);y1.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"}}}};
y1.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(G){return G.hasOwnProperty("clipCreationRenderer")})&&_.AZ(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
y1.prototype.onPanelContentVisibleChanged=y1.prototype.onPanelContentVisibleChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.xy.YtVisibilityBehavior),_.A("design:type",Object)],y1.prototype,"ytVisibilityBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],y1.prototype,"ytdReduxBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],y1.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],y1.prototype,"panelContentVisible",void 0);_.N([_.gx("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],y1.prototype,"onPanelContentVisibleChanged",null);_.N([_.O({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],y1);
_.m(y1,"ytd-clip-section-renderer",function(){if(qiI!==void 0)return qiI;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qiI=G},{mode:1});var Vdq;var oF=function(){return _.C.apply(this,arguments)||this};
_.T(oF,_.C);_.g=oF.prototype;
_.g.onKeyDown=function(G){if(this.snippetElements.length!==0&&(G=G.keyCode,G===38||G===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);G===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.cM(this.highlightedIndex,-1,this.snippetElements.length);G=this.snippetElements.length;var H=this.highlightedIndex%G;this.highlightedIndex=H*G<0?H+G:H;G=this.snippetElements[this.highlightedIndex];this.highlightSnippet(G);this.ensureVisible(G)}};
_.g.onKeyUp=function(G){var H=this;ey2(G)&&(G.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Ui.cancelJob(this.inputTimerId),this.inputTimerId=_.Ui.addLowPriorityJob(function(){H.typedValue&&(H.fetchSnippets(H.typedValue),H.logInputGesture(H.data))},1E3))};
_.g.onClick=function(G){(G=_.jN4(G.target,null,"snippet-item"))&&this.selectSnippet(G)};
_.g.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.g.ready=function(){var G=this;this.inputElement.addEventListener("focus",function(){G.snippetsWrapper.style.removeProperty("display")})};
_.g.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.g.getSourceTimelines=function(){if(!this.data)return[];var G=[];if(this.data.searchInVideoSources)for(var H=_.I(this.data.searchInVideoSources),Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z==="SEARCH_IN_VIDEO_SOURCE_ASR"?G.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):Z==="SEARCH_IN_VIDEO_SOURCE_OCR"&&G.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return G};
_.g.fetchSnippets=function(G){var H=_.AZ(this.hostElement,"yt-get-current-video-id-action")[0],Z=this.getSourceTimelines();G={getSearchInVideoCommand:{externalVideoId:H,query:G!=null?G:"",sourceTimelines:Z},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}})};
_.g.filterSnippets=function(G,H){var Z=this;if(H){this.filteredSnippets=(0,_.oN.unsafeClone)(G);var Q=RegExp(_.W1M(H),"i");this.filteredSnippets=this.filteredSnippets.filter(function(q){return Q.test(Z.ytRendererBehavior.getSimpleString(q.snippet))});
G=_.I(this.filteredSnippets);for(var p=G.next();!p.done;p=G.next()){p=p.value;var l=this.ytRendererBehavior.getSimpleString(p.snippet);p.snippet={runs:[{text:l.substring(0,l.toLowerCase().indexOf(H))},{text:l.substring(l.toLowerCase().indexOf(H),l.toLowerCase().indexOf(H)+H.length),bold:!0},{text:l.substring(l.toLowerCase().indexOf(H)+H.length,l.length)}]}}}else this.filteredSnippets=G};
_.g.onUpdateSearchInVideoResults=function(G){if(!(this.snippets.length>0)){var H,Z,Q;if((Q=(H=_.X(G,jMx))==null?void 0:(Z=H.results)==null?void 0:Z.length)!=null&&Q){var p;this.filteredSnippets=this.snippets=((p=_.X(G,jMx))==null?void 0:p.results).map(function(l){var q,u,B;return{startMs:l==null?void 0:(q=l.searchInVideoResultRenderer)==null?void 0:q.startMs,startTimeText:l==null?void 0:(u=l.searchInVideoResultRenderer)==null?void 0:u.startTimeText,snippet:l==null?void 0:(B=l.searchInVideoResultRenderer)==
null?void 0:B.snippet}})}}};
_.g.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};
_.g.highlightSnippet=function(G){G.classList.add("highlighted")};
_.g.removeSnippetHighlight=function(G){G.classList.remove("highlighted")};
_.g.selectSnippet=function(G){this.typedValue=String(G.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(G);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.g.ensureVisible=function(G){var H=this.snippetsWrapper.scrollTop,Z=H+this.snippetsWrapper.clientHeight,Q=G.offsetTop-this.snippetsWrapper.offsetTop;G=Q+G.clientHeight;Q<H?this.snippetsWrapper.scrollTop-=H-Q:G>Z&&(this.snippetsWrapper.scrollTop+=G-Z)};
_.g.seekPlayer=function(G){var H,Z;return _.S(function(Q){if(Q.nextAddress==1){if(!G)return Q.jumpTo(0);H=Number(G.dataset.startOffset);return Q.yield(_.R0().getPlayerPromise(),3)}Z=Q.yieldResult;Z.seekTo(H/1E3,!0);Z.wakeUpControls();_.K0(Q)})};
_.g.logInputGesture=function(G){var H=_.$k();H&&(G==null?0:G.trackingParams)&&_.O3(H,_.BT(G.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.g.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("typed-value-changed",this.typedValue))};
_.g.updateTypedValueFromBinding=function(G){this.typedValue=G.currentTarget.value};
oF.prototype.typedValueChangedForBinding=oF.prototype.typedValueChangedForBinding;oF.prototype.dataChanged=oF.prototype.dataChanged;oF.prototype.panelContentVisibleChanged=oF.prototype.panelContentVisibleChanged;oF.prototype.onClick=oF.prototype.onClick;oF.prototype.onKeyUp=oF.prototype.onKeyUp;oF.prototype.onKeyDown=oF.prototype.onKeyDown;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],oF.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],oF.prototype,"data",void 0);_.N([_.h({value:[]}),_.A("design:type",Array)],oF.prototype,"snippets",void 0);_.N([_.h({value:[]}),_.A("design:type",Array)],oF.prototype,"filteredSnippets",void 0);_.N([_.h({value:[]}),_.A("design:type",Array)],oF.prototype,"snippetElements",void 0);
_.N([_.q6("#siv-input"),_.A("design:type",HTMLElement)],oF.prototype,"inputElement",void 0);_.N([_.q6("#siv-snippets-wrapper"),_.A("design:type",HTMLElement)],oF.prototype,"snippetsWrapper",void 0);_.N([_.h(),_.A("design:type",String)],oF.prototype,"typedValue",void 0);_.N([_.h({value:-1}),_.A("design:type",Number)],oF.prototype,"highlightedIndex",void 0);_.N([_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[_.dl]),_.A("design:returntype")],oF.prototype,"onKeyDown",null);
_.N([_.lq("keyup"),_.A("design:type",Function),_.A("design:paramtypes",[_.dl]),_.A("design:returntype")],oF.prototype,"onKeyUp",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],oF.prototype,"onClick",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],oF.prototype,"panelContentVisible",void 0);
_.N([_.gx("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oF.prototype,"panelContentVisibleChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oF.prototype,"dataChanged",null);_.N([_.gx("typedValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oF.prototype,"typedValueChangedForBinding",null);
_.N([_.O({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],oF);
_.m(oF,"ytd-search-in-video-renderer",function(){if(Vdq!==void 0)return Vdq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Vdq=G},{mode:1});var $hx;var mZ=function(){return _.C.apply(this,arguments)||this};
_.T(mZ,_.C);mZ.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
mZ.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]]"}}}}}};
mZ.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var G,H,Z,Q,p=(H=_.X((G=this.data)==null?void 0:G.onClickCommand,_.Xs7))==null?void 0:(Z=H.item)==null?void 0:(Q=Z.notificationTextRenderer)==null?void 0:Q.successResponseText;p&&_.dNb(this.hostElement,p)}};
_.u4.Object.defineProperties(mZ.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q;return this.isProductPlaceholder&&((G=this.data)==null?void 0:(H=G.hiddenProductOptions)==null?void 0:H.showDropCountdown)&&!!((Z=this.data)==null?0:(Q=Z.hiddenProductOptions)==null?0:Q.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var G;return!this.isProductPlaceholder&&!((G=this.data)==null?0:G.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null?0:G.priceReplacementText)&&!((H=this.data)==null||!H.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],mZ.prototype,"componentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],mZ.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],mZ.prototype,"useCenterLayoutContainer",null);_.N([_.h({computed:"computeButtonOverride(data)"}),_.A("design:type",Object)],mZ.prototype,"buttonOverride",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],mZ.prototype,"isProductPlaceholder",null);
_.N([_.z("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],mZ.prototype,"showDropCountdown",null);_.N([_.z("isProductPlaceholder","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],mZ.prototype,"showBrandName",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],mZ.prototype,"showPriceReplacementText",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],mZ.prototype,"showPrice",null);
_.N([_.z("isProductPlaceholder"),_.A("design:type",Object),_.A("design:paramtypes",[])],mZ.prototype,"showMetadata",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],mZ);
_.m(mZ,"ytd-product-list-item-renderer",function(){if($hx!==void 0)return $hx;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $hx=G},{mode:1});var XPN;var Uo=function(){return _.C.apply(this,arguments)||this};
_.T(Uo,_.C);Uo.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Uo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Uo.prototype.panelContentVisibleChanged=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return G.playerApi?Z.jumpTo(2):Z.yield(_.R0().getPlayerPromise(),3);Z.nextAddress!=2&&(G.playerApi=Z.yieldResult);(H=G.playerApi)==null||H.productsInVideoVisibilityUpdated(!!G.panelContentVisible);_.K0(Z)})};
Uo.prototype.panelContentVisibleChanged=Uo.prototype.panelContentVisibleChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Uo.prototype,"panelContentVisible",void 0);_.N([_.h(),_.A("design:type",Object)],Uo.prototype,"data",void 0);
_.N([_.gx("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],Uo.prototype,"panelContentVisibleChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Uo);
_.m(Uo,"ytd-product-list-renderer",function(){if(XPN!==void 0)return XPN;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return XPN=G},{mode:1});var c3x;var RF=function(){var G=_.C.apply(this,arguments)||this;G.hideTimestamps=!!_.dT("hide-transcript-timestamps");G.currentCueIndex=-1;G.flatCues=[];G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};G.TEST_ONLY={getFlatCues:function(){return G.flatCues}};
return G};
_.T(RF,_.C);_.g=RF.prototype;_.g.hideTimestampsChanged=function(){_.Dp("hide-transcript-timestamps",this.hideTimestamps)};
_.g.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.g.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.g.dataChanged=function(){var G;if((G=this.data)!=null&&G.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;G=_.I(this.data.cueGroups);for(var H=G.next();!H.done;H=G.next()){H=_.I(_.X(H.value,PV_).cues);for(var Z=H.next();!Z.done;Z=H.next())this.flatCues.push(Number(_.X(Z.value,rs_).startOffsetMs))}}};
_.g.onYtPlayerTimeChanged=function(G){if(!(G<0)){for(var H=this.currentCueIndex,Z=H;;){var Q=Z>=0?this.flatCues[Z]/1E3:-1;if(G+.5<Q)--Z;else if(Q=Z+1<this.flatCues.length?this.flatCues[Z+1]/1E3:Infinity,G+.5>Q)Z+=1;else break}Z!==H&&(H>=0&&((G=this.getCueElement(H))&&G.classList.remove("active"),(H=this.getCueGroupElement(H))&&H.classList.remove("active")),(H=this.getCueElement(Z))&&H.classList.add("active"),(H=this.getCueGroupElement(Z))&&H.classList.add("active"),this.currentCueIndex=Z,this.isHovered||
this.scrollElementToTop(Z))}};
_.g.scrollElementToTop=function(G){G=this.getCueElement(G>=3?G-3:0);this.hostElement.scrollTop=Math.min(G.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.g.getCueElement=function(G){return _.F9(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[G]+'"]')};
_.g.getCueGroupElement=function(G){return(G=this.getCueElement(G))&&G.parentElement?G.parentElement.parentElement:null};
_.g.onTap=function(G){var H=_.a_(G);G.target.classList.contains("cue")&&this.seekCueElement(H)};
_.g.onKeyPress=function(G){G.keyCode==13&&(G=_.jN4(G.target,null,"cue"))&&this.seekCueElement(G)};
_.g.seekCueElement=function(G){G=Number(G.getAttribute("start-offset"));_.AZ(this.hostElement,"yt-transcript-player-seek",[G/1E3])};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
RF.prototype.onMouseLeave=RF.prototype.onMouseLeave;RF.prototype.onMouseEnter=RF.prototype.onMouseEnter;RF.prototype.onKeyPress=RF.prototype.onKeyPress;RF.prototype.onTap=RF.prototype.onTap;RF.prototype.dataChanged=RF.prototype.dataChanged;RF.prototype.hideTimestampsChanged=RF.prototype.hideTimestampsChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],RF.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],RF.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],RF.prototype,"hideTimestamps",void 0);_.N([_.h(),_.A("design:type",Boolean)],RF.prototype,"isHovered",void 0);_.N([_.gx("hideTimestamps"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RF.prototype,"hideTimestampsChanged",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RF.prototype,"dataChanged",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],RF.prototype,"onTap",null);_.N([_.lq("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],RF.prototype,"onKeyPress",null);
_.N([_.lq("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RF.prototype,"onMouseEnter",null);_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RF.prototype,"onMouseLeave",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],RF);
_.m(RF,"ytd-transcript-body-renderer",function(){if(c3x!==void 0)return c3x;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return c3x=G},{mode:1});var TtN;var Ne=function(){var G=_.C.apply(this,arguments)||this;G.darkerPanels=_.V("web_watch_darker_panels");return G};
_.T(Ne,_.C);Ne.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ne.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ne.prototype,"darkerPanels",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Ne);
_.m(Ne,"ytd-transcript-footer-renderer",function(){if(TtN!==void 0)return TtN;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return TtN=G},{mode:1});var faN;var vNq;var Am=function(){var G=_.C.apply(this,arguments)||this;G.systemIcons=_.V("kevlar_system_icons");G.showClearButton=!1;return G};
_.T(Am,_.C);_.g=Am.prototype;_.g.handleInput=function(G){var H=this;G.target.value.length?_.rx(this,"ytdTranscriptSearchBoxSearch",function(){H.emitSearchEvent(G)},500):(_.T$o(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=G.target.value.length>0};
_.g.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.g.handleClick=function(){var G,H=(G=this.data)==null?void 0:G.trackingParams;H&&_.ze(_.gr(),H)};
_.g.handleClear=function(){_.T$o(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var G,H,Z=(H=_.X((G=this.data)==null?void 0:G.clearButton,_.Yl))==null?void 0:H.trackingParams;Z&&_.ze(_.gr(),Z);this.clear()};
_.g.emitSearchEvent=function(G){_.N5(this.hostElement,"yt-transcript-search-box-search",{query:G.target.value});var H,Z;(G=(Z=_.X((H=this.data)==null?void 0:H.searchButton,_.Yl))==null?void 0:Z.trackingParams)&&_.ze(_.gr(),G)};
_.g.emitClearEvent=function(){_.N5(this.hostElement,"yt-transcript-search-box-clear")};
_.u4.Object.defineProperties(Am.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.F9(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Am.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Am.prototype,"systemIcons",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Am);
_.m(Am,"ytd-transcript-search-box-renderer",function(){if(vNq!==void 0)return vNq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vNq=G},{mode:1});var WId;var zIU;var xS=function(){return _.C.apply(this,arguments)||this};
_.T(xS,_.C);xS.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var G,H;this.sectionHeaderAriaLabel=(G=this.data)==null?void 0:(H=G.accessibility)==null?void 0:H.accessibilityData.label}};
xS.prototype.fireSelectedEvent=function(G){_.N5(this.hostElement,"ytd-transcript-section-header",{startMs:G})};
xS.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
xS.prototype.handleKeyPress=function(G){this.data&&G.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.u4.Object.defineProperties(xS.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=(G=this.data)==null?void 0:G.enableTappableTranscriptHeader)!=null?H:!1}}});
xS.prototype.dataChanged=xS.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],xS.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],xS.prototype,"sectionHeaderAriaLabel",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],xS.prototype,"enableTappableTranscriptHeader",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xS.prototype,"dataChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],xS);
_.m(xS,"ytd-transcript-section-header-renderer",function(){if(zIU!==void 0)return zIU;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zIU=G},{mode:1});var KIM;var Md2;var Lk=function(){var G=_.C.apply(this,arguments)||this;G.isEditMode=!1;G.touchCaptionsEnabled=!1;G.deleteCaptionCorrectionPopupCommand=null;G.voteCaptionCorrectionPopupCommand=null;G.roundedContainer=!0;G.mouseOver=!1;G.textChanged=!1;G.messages={suggest_correction:_.Zg("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Zg("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Zg("submit_correction",void 0,"Submit for review"),cancel_correction:_.Zg("cancel_correction",
void 0,"Cancel"),replay_segment:_.Zg("replay_segment",void 0,"Re-play segment"),delete_correction:_.Zg("delete_correction",void 0,"Delete correction")};G.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return G};
_.T(Lk,_.C);_.g=Lk.prototype;_.g.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)};
_.g.handleDelete=function(G){if(this.deleteCaptionCorrectionPopupCommand){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);H&&this.ytdOpenPopupBehavior.openPopup(H);G.stopPropagation()}};
_.g.handleSubmit=function(G){if(this.data&&this.data.submitCaptionCorrectionCommand&&(G.stopPropagation(),this.textChanged)){var H;G=(H=_.X(this.data.submitCaptionCorrectionCommand,_.zgw))==null?void 0:H.params;H=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:G,correctionText:String(this.ironTextAreaElement.value),originalText:_.yn(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(H);this.isEditMode=!1}};
_.g.handleUpdateSegmentText=function(G){(G=_.X(G,EF4))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&(G.userCorrection&&(this.editedText=G.userCorrection),G.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.yn(this.data.snippet)),G.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=G.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=G.voteCaptionCorrectionPopupCommand?
G.voteCaptionCorrectionPopupCommand:null,G.accessibility&&(this.segmentAriaLabel=G.accessibility.accessibilityData.label))};
_.g.handleCancel=function(G){this.isEditMode=!1;G.stopPropagation();this.logClientVe(159409)};
_.g.handleEditSegmentCommand=function(G){(G=_.X(G,LfI))&&G.targetId&&this.data&&G.targetId===this.data.targetId&&this.handleEdit()};
_.g.handleEditButtonClick=function(G){this.data&&(this.handleEdit(),G.stopPropagation())};
_.g.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var G;(G=this.ironTextAreaElement.textarea)==null||G.focus();this.logClientVe(159407)}};
_.g.handleMouseEnter=function(){this.mouseOver=!0};
_.g.handleMouseLeave=function(){this.mouseOver=!1};
_.g.handleReplay=function(G){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),G.stopPropagation(),this.logClientVe(159408))};
_.g.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()))};
_.g.handleKeypress=function(G){this.data&&(this.isEditMode?G.stopPropagation():this.isEnterPress(G)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(G)&&this.logClientVe(138758))};
_.g.handleTextboxClick=function(G){G.stopPropagation()};
_.g.handleTextboxKeydown=function(G){this.isControlEnterPress(G)?this.handleSubmit(G):G.key==="Escape"&&this.handleCancel(G)};
_.g.handleTextboxKeyup=function(){this.textChanged=_.yn(this.latestText)!==String(this.ironTextAreaElement.value)};
_.g.fireSelectedEvent=function(G){_.N5(this.hostElement,"yt-transcript-segment-selected",{startMs:G})};
_.g.fireReplayEvent=function(G,H){_.N5(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(G-100,0),endMs:H})};
_.g.fireEditEvent=function(G,H){_.N5(this.hostElement,"yt-transcript-segment-edit",{startMs:G,endMs:H})};
_.g.isEnterPress=function(G){return G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13?!0:!1};
_.g.isControlEnterPress=function(G){var H=G.key==="Enter"||G.code==="Enter"||G.code==="NumpadEnter"||G.keyCode===13;return(G.ctrlKey||G.metaKey)&&H};
_.g.isCopyPress=function(G){var H=G.ctrlKey;return G.key==="c"&&H};
_.g.logClick=function(){var G,H=(G=this.data)==null?void 0:G.trackingParams;H&&_.ze(_.gr(),H)};
_.g.logClientVe=function(G){_.WN(_.gr(),_.bl(G))};
_.u4.Object.defineProperties(Lk.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}}});
Lk.prototype.handleMouseLeave=Lk.prototype.handleMouseLeave;Lk.prototype.handleMouseEnter=Lk.prototype.handleMouseEnter;Lk.prototype.dataChanged=Lk.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Lk.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],Lk.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Lk.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lk.prototype,"isEditMode",void 0);_.N([_.h(),_.A("design:type",Object)],Lk.prototype,"touchCaptionsEnabled",void 0);_.N([_.h(),_.A("design:type",Object)],Lk.prototype,"editedText",void 0);_.N([_.h(),_.A("design:type",Object)],Lk.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.N([_.h(),_.A("design:type",Object)],Lk.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.N([_.h(),_.A("design:type",String)],Lk.prototype,"segmentAriaLabel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lk.prototype,"roundedContainer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lk.prototype,"mouseOver",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Lk.prototype,"textChanged",void 0);_.N([_.h(),_.A("design:type",Object)],Lk.prototype,"messages",void 0);
_.N([_.q6("#suggestion"),_.A("design:type",Object)],Lk.prototype,"ironTextAreaElement",void 0);_.N([_.z("data","editedText"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lk.prototype,"latestText",null);_.N([_.z("touchCaptionsEnabled","isEditMode"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lk.prototype,"enableEditButton",null);
_.N([_.z("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lk.prototype,"enableUndoButton",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lk.prototype,"dataChanged",null);_.N([_.lq("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lk.prototype,"handleMouseEnter",null);
_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lk.prototype,"handleMouseLeave",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Lk);
_.m(Lk,"ytd-transcript-segment-renderer",function(){if(Md2!==void 0)return Md2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Md2=G},{mode:1});var Eo=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};G.isError=!1;G.darkerPanels=_.V("web_watch_darker_panels");G.useParentMaxHeight=_.V("web_watch_transscript_use_parent_max_height");G.segmentOffsets=[];G.segmentIndex=-1;return G};
_.T(Eo,_.C);_.g=Eo.prototype;_.g.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"}}}}};
_.g.segmentsChanged=function(){this.updateOffsets()};
_.g.onYtPlayerTimeChanged=function(G){for(var H=this.segmentIndex,Z=H;;){if(Z>=0){var Q=this.segmentOffsets[Z].start;var p=this.segmentOffsets[Z].isAutoScrollable}else Q=-1,p=!0;var l=G+.5;if(!p){Q=Z+1<this.segmentOffsets.length?this.segmentOffsets[Z+1].start:Infinity;if(l>=Q){Z+=1;continue}Z=-1;break}if(l<Q)Q=Z-1>=0&&this.segmentOffsets[Z-1].isAutoScrollable,p=Z===0||Q?1:2,Z-=p;else if(p=Z+1<this.segmentOffsets.length&&this.segmentOffsets[Z+1].isAutoScrollable?1:2,Q=Z+p<this.segmentOffsets.length?
this.segmentOffsets[Z+p].start:Infinity,l>Q)Z+=p;else{if(Z<0)break;Z<this.segmentOffsets.length&&l>this.segmentOffsets[Z].end&&(Z=-1);break}}if(H!==Z){if(H>=0){var q;(q=this.getSegmentElement(H))==null||q.classList.remove("active")}this.segmentIndex=Z;if(!(Z<0)){var u;(u=this.getSegmentElement(Z))==null||u.classList.add("active");this.isHovered||this.scrollElementToTop(Z)}}};
_.g.handleSegmentEdit=function(G){G.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=G.target,_.AZ(this.hostElement,"yt-transcript-player-edit",[G.detail.startMs/1E3,G.detail.endMs/1E3]))};
_.g.handleSegmentSelected=function(G){_.AZ(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.g.handleSegmentReplay=function(G){_.AZ(this.hostElement,"yt-transcript-player-replay",[G.detail.startMs/1E3,G.detail.endMs/1E3])};
_.g.handleSectionHeaderSelected=function(G){_.AZ(this.hostElement,"yt-transcript-player-seek",[G.detail.startMs/1E3])};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
_.g.onRetryButtonClick=function(){_.N5(this.hostElement,"transcript-retry-button-click")};
_.g.getSegmentElement=function(G){return _.F9(this.hostElement).querySelector(":nth-child("+(G+1)+")")};
_.g.scrollElementToTop=function(G){G=this.getSegmentElement(G>=2?G-2:0);this.hostElement.scrollTop=Math.min(G.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.g.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(G){var H,Z=(H=G.transcriptSegmentRenderer)!=null?H:G.transcriptSectionHeaderRenderer;return{start:Number(Z.startMs)/1E3,end:Number(Z.endMs)/1E3,isAutoScrollable:G.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.g.clearHighlightedSegments=function(){var G=_.F9(this.hostElement);G=_.I(G.querySelectorAll("ytd-transcript-segment-renderer"));for(var H=G.next();!H.done;H=G.next())H.value.classList.remove("active")};
_.u4.Object.defineProperties(Eo.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:G.searchResultSegments)||((H=this.data)==null?void 0:H.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Eo.prototype.onMouseLeave=Eo.prototype.onMouseLeave;Eo.prototype.onMouseEnter=Eo.prototype.onMouseEnter;Eo.prototype.handleSectionHeaderSelected=Eo.prototype.handleSectionHeaderSelected;Eo.prototype.handleSegmentReplay=Eo.prototype.handleSegmentReplay;Eo.prototype.handleSegmentSelected=Eo.prototype.handleSegmentSelected;Eo.prototype.handleSegmentEdit=Eo.prototype.handleSegmentEdit;Eo.prototype.segmentsChanged=Eo.prototype.segmentsChanged;
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Eo.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Eo.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Eo.prototype,"isError",void 0);
_.N([_.h(),_.A("design:type",Object)],Eo.prototype,"noResultLabel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Eo.prototype,"darkerPanels",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Eo.prototype,"useParentMaxHeight",void 0);_.N([_.z("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],Eo.prototype,"segments",null);
_.N([_.z("segments","noResultLabel"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Eo.prototype,"displayNoResults",null);_.N([_.gx("segments"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Eo.prototype,"segmentsChanged",null);_.N([_.lq("yt-transcript-segment-edit"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Eo.prototype,"handleSegmentEdit",null);
_.N([_.lq("yt-transcript-segment-selected"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Eo.prototype,"handleSegmentSelected",null);_.N([_.lq("yt-transcript-segment-replay"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Eo.prototype,"handleSegmentReplay",null);
_.N([_.lq("ytd-transcript-section-header"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Eo.prototype,"handleSectionHeaderSelected",null);_.N([_.lq("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Eo.prototype,"onMouseEnter",null);_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Eo.prototype,"onMouseLeave",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Eo);
_.m(Eo,"ytd-transcript-segment-list-renderer",function(){if(KIM!==void 0)return KIM;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return KIM=G},{mode:1});var YS=function(){var G=_.C.apply(this,arguments)||this;G.hideTimestamps=!!_.dT("hide-transcript-timestamps");G.isLoadingTranscripts=!1;G.darkerPanels=_.V("web_watch_darker_panels");G.isError=!1;G.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return G};
_.T(YS,_.C);_.g=YS.prototype;_.g.headerChanged=function(){var G,H;this.baseGetTranscriptsCommand=(H=_.X((G=this.data)==null?void 0:G.header,Yvq))==null?void 0:H.onTextChangeCommand};
_.g.bodyChanged=function(){var G=this.getBodyRenderer();G&&(G.initialSegments&&(this.initialTranscriptsRenderer=G),G.noResultLabel&&(this.noResultLabel=G.noResultLabel),G.retryLabel&&(this.retryLabel=G.retryLabel))};
_.g.detached=function(){this.clearSearchBoxText()};
_.g.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.g.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"}}}};
_.g.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.g.fireSearch=function(G){var H=this;if(G){var Z=G.detail.query;if(this.baseGetTranscriptsCommand){var Q;G=(Q=_.X(this.baseGetTranscriptsCommand,_.vxa))==null?void 0:Q.params;var p;Q=_.X((p=this.data)==null?void 0:p.footer,wS7);var l;if((p=(l=_.X(Q==null?void 0:Q.languageMenu,As7))==null?void 0:l.subMenuItems)&&p.length>0&&(l=p.find(function(B){return B.selected}))){var q,u;
G=(q=l.continuation)==null?void 0:(u=q.reloadContinuationData)==null?void 0:u.continuation}q=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:G,searchQuery:Z}});this.ytComponentBehavior.resolveCommand(q,{commandController:{onServerError:function(){H.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Js2(this.ytContinuationHandlerBehavior,function(){return Z===H.getCurrentSearchBoxText()})}}};
_.g.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.g.onRetryButtonClick=function(){this.isError=!1;var G={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:G}))};
_.g.hideTimestampsChanged=function(){_.Dp("hide-transcript-timestamps",this.hideTimestamps)};
_.g.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.g.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.g.handleSignalActionCopyTranscript=function(){var G=this,H=this.getBodyRenderer();H&&(H=((H==null?void 0:H.searchResultSegments)||(H==null?void 0:H.initialSegments)||[]).map(function(Z){return _.X(Z,bbO)}).filter(function(Z){return!!Z}).map(function(Z){return{snippet:Z.snippet||{runs:[{text:""}]},
startTimeText:Z.startTimeText||{simpleText:""}}}).map(function(Z){var Q=(Z.snippet.runs||[]).reduce(function(p,l){return p+l.text},"");
return G.hideTimestamps?Q:Z.startTimeText.simpleText+" "+Q}).join("\n"),this.copyToClipboard(H))};
_.g.copyToClipboard=function(G){navigator.clipboard&&navigator.clipboard.writeText(G)};
_.g.getCurrentSearchBoxText=function(){var G;return(G=this.searchBox)==null?void 0:G.value};
_.g.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.g.getBodyRenderer=function(){var G;return _.X((G=this.data)==null?void 0:G.body,Ffy)};
_.g.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.u4.Object.defineProperties(YS.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.F9(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
YS.prototype.hideTimestampsChanged=YS.prototype.hideTimestampsChanged;YS.prototype.searchCleared=YS.prototype.searchCleared;YS.prototype.fireSearch=YS.prototype.fireSearch;YS.prototype.onReloadContinuationFinish=YS.prototype.onReloadContinuationFinish;YS.prototype.bodyChanged=YS.prototype.bodyChanged;YS.prototype.headerChanged=YS.prototype.headerChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],YS.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],YS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],YS.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],YS.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YS.prototype,"hideTimestamps",void 0);
_.N([_.h(),_.A("design:type",Object)],YS.prototype,"isLoadingTranscripts",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YS.prototype,"darkerPanels",void 0);_.N([_.h(),_.A("design:type",Object)],YS.prototype,"isError",void 0);_.N([_.gx("data.header"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YS.prototype,"headerChanged",null);
_.N([_.Jv("data.body"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YS.prototype,"bodyChanged",null);_.N([_.lq("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YS.prototype,"onReloadContinuationFinish",null);_.N([_.lq("yt-transcript-search-box-search"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],YS.prototype,"fireSearch",null);
_.N([_.lq("yt-transcript-search-box-clear"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YS.prototype,"searchCleared",null);_.N([_.gx("hideTimestamps"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YS.prototype,"hideTimestampsChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],YS);
_.m(YS,"ytd-transcript-search-panel-renderer",function(){if(WId!==void 0)return WId;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return WId=G},{mode:1});var Fp=function(){var G=_.C.apply(this,arguments)||this;G.player=null;G.playerPollJobId=0;return G};
_.T(Fp,_.C);_.g=Fp.prototype;_.g.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.g.onLoadReloadContinuation=function(G){_.V("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:G.target.data.continuation}}):(G={clickTrackingParams:G.target.data.clickTrackingParams,getTranscriptEndpoint:{params:G.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}}))};
_.g.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"}}}};
_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.g.attached=function(){this.updatePlayerListening()};
_.g.detached=function(){this.updatePlayerListening()};
_.g.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.g.startPlayerListening=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return(H=_.UO())?Z.yield(H.getPlayerPromise(),2):Z.return();G.player=Z.yieldResult;G.playerPollJobId=_.Ui.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3);
G.player.addEventListener("onCueRangeEnter",function(Q){G.onCueRangeEnter(Q)});
G.player.addEventListener("onCueRangeExit",function(Q){G.onCueRangeExit(Q)});
G.player.addEventListener("onStateChange",function(Q){G.onPlayerStateChange(Q)});
G.player.addEventListener("SEEK_TO",function(Q){G.onPlayerSeek(Q)});
_.K0(Z)})};
_.g.getPlayerVideoProgress=function(){var G=this;_.Ui.cancelJob(this.playerPollJobId);if(this.player){var H=this.player.getCurrentTime();_.AZ(this.hostElement,"yt-player-time-changed",[H])}this.playerPollJobId=_.Ui.addLowPriorityJob(function(){G.getPlayerVideoProgress()},1E3)};
_.g.stopPlayerListening=function(){this.player=null;_.Ui.cancelJob(this.playerPollJobId)};
_.g.onPlayerStateChange=function(G){G===2&&this.removePendingCue()};
_.g.onPlayerSeek=function(G){var H;if(H=this.pendingReplayCueId)H=this.pendingReplayCueId,H=G===(_.V("web_transcript_cue_id_killswitch")?Number(H):Number(H.split("_")[1]));H||this.removePendingCue()};
_.g.onCueRangeEnter=function(G){PY7(G)&&(this.pendingReplayCueId=G)};
_.g.onCueRangeExit=function(G){PY7(G)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.g.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.g.onYtTranscriptPlayerSeek=function(G){this.player&&this.player.seekTo(G,!0)};
_.g.onYtTranscriptPlayerReplay=function(G,H){this.player&&(this.player.addCueRange(jf_(G),G,H),this.player.seekTo(G,!0),this.player.playVideo())};
_.g.onYtTranscriptPlayerEdit=function(G,H){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(jf_(G),G,H),this.player.seekTo(G,!0))};
Fp.prototype.onLoadReloadContinuation=Fp.prototype.onLoadReloadContinuation;Fp.prototype.panelContentVisibleChanged=Fp.prototype.panelContentVisibleChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Fp.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Fp.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Fp.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Fp.prototype,"panelContentVisible",void 0);_.N([_.gx("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Fp.prototype,"panelContentVisibleChanged",null);
_.N([_.lq("yt-load-reload-continuation"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],Fp.prototype,"onLoadReloadContinuation",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Fp);
_.m(Fp,"ytd-transcript-renderer",function(){if(faN!==void 0)return faN;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return faN=G},{mode:1});var j1N;var P7_;var bm=function(){return _.C.apply(this,arguments)||this};
_.T(bm,_.C);bm.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.El(this.hostElement,[this.data.clickCommand],this.hostElement))};
bm.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.KR)()+_.i8)+"px)"};
bm.prototype.updateShouldHideFromBinding=function(G){this.shouldHide=G.detail.value};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bm.prototype,"rendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bm.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],bm.prototype,"shouldHide",void 0);_.N([_.O({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],bm);
_.m(bm,"ytd-ad-engagement-panel-banner-renderer",function(){if(P7_!==void 0)return P7_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return P7_=G},{mode:_.LH("kevlar_poly_si_batch_j070")?1:2});var r3O;var Gr=function(){var G=_.C.apply(this,arguments)||this;G.buttonUpdate=_.V("web_modern_buttons");G.adsSemanticText=_.V("enable_ads_web_ep_buenos_aires_and_padding_fix");return G};
_.T(Gr,_.C);Gr.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.N([_.h(),_.A("design:type",Object)],Gr.prototype,"data",void 0);_.N([_.h({computed:"computeHideDefaultAdBadge(data)"}),_.A("design:type",Boolean)],Gr.prototype,"hideDefaultAdBadge",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Gr.prototype,"buttonUpdate",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Gr.prototype,"adsSemanticText",void 0);_.N([_.O({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Gr);
_.m(Gr,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(r3O!==void 0)return r3O;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return r3O=G},{mode:1});var wPM;var HH=function(){var G=_.C.apply(this,arguments)||this;G.darkerPanels=_.V("web_watch_darker_panels");G.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");G.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");G.headerClickListener=function(H){G.onHeaderClick(H)};
G.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return G};
_.T(HH,_.C);_.g=HH.prototype;_.g.computeAdsInfoButton=function(){if(_.V("web_modern_buttons")){var G,H;return(H=_.X((G=this.data)==null?void 0:G.subtitleComplex,hyN))==null?void 0:H.adInfoRenderer}};
_.g.updateHeaderClickListener=function(){var G,H,Z;((G=this.data)==null?0:G.navigationEndpoint)||((H=this.data)==null?0:H.onClickCommand)||_.X((Z=this.data)==null?void 0:Z.visibilityButton,_.Fw)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.g.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}}}}}};
_.g.collapsedChanged=function(){var G;(G=this.data)!=null&&G.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.V("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.g.focus=function(G){var H=this;this.titleElement&&_.Ui.addJob(function(){_.pT(H.titleElement,G)},0,500)};
_.g.computeTitleAriaLabel=function(G){var H=[];if(G.title){var Z,Q;H.push(this.ytRendererBehavior.getSimpleString(G.title)||((Z=G.title.accessibility)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label))}G.contextualInfo&&H.push(this.ytRendererBehavior.getSimpleString(G.contextualInfo));return H.join(" ")};
_.g.onHeaderClick=function(G){this.shouldTriggerHeaderClick(G)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.El(this.hostElement,[this.data.onClickCommand],this.hostElement)):(G=this.getVisibilityToggleButton())&&G.click())};
_.g.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var G=_.X(this.data.visibilityButton,_.Yl)||_.X(this.data.visibilityButton,_.Fw);G&&this.ytRendererBehavior.logExplicitClick(G)}};
_.g.getVisibilityToggleButton=function(){var G=_.F9(this.hostElement).querySelector("#visibility-button").firstElementChild;return(G==null?void 0:G.is)==="ytd-toggle-button-renderer"?G:null};
_.g.shouldTriggerHeaderClick=function(G){return!_.OO(_.OD(G),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.g.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(G){G=_.X(G,_.vFd);this.targetId&&(G==null?void 0:G.targetId)===this.targetId&&(G=G.navigationButton)&&this.set("data.navigationButton",G)};
_.u4.Object.defineProperties(HH.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!!(((G=this.entity)==null?0:G.isActionButtonHidden)||this.hideActionButton)}}});
HH.prototype.collapsedChanged=HH.prototype.collapsedChanged;HH.prototype.updateHeaderClickListener=HH.prototype.updateHeaderClickListener;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],HH.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],HH.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],HH.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],HH.prototype,"targetId",void 0);_.N([_.h(),_.A("design:type",Boolean)],HH.prototype,"collapsed",void 0);_.N([_.h(),_.A("design:type",Boolean)],HH.prototype,"hideActionButton",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],HH.prototype,"shortsPanel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],HH.prototype,"liveChatEngagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],HH.prototype,"learningChatEngagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],HH.prototype,"darkerPanels",void 0);_.N([_.q6("#title"),_.A("design:type",HTMLElement)],HH.prototype,"titleElement",void 0);_.N([_.q6("#header"),_.A("design:type",HTMLElement)],HH.prototype,"headerElement",void 0);
_.N([_.h({computed:"computeAdsInfoButton(data)"}),_.A("design:type",Object)],HH.prototype,"adsInfoButton",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],HH.prototype,"enableSqueezebackPanels",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],HH.prototype,"enableAnchoredPanel",void 0);_.N([_.h({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(G,H){return _.Hv(G.entities,"engagementPanelTitleHeaderEntity",H)}}),
_.A("design:type",Object)],HH.prototype,"entity",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("targetId"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],HH.prototype,"adsSemanticText",null);_.N([_.gx("data","data.navigationEndpoint","data.onClickCommand"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HH.prototype,"updateHeaderClickListener",null);
_.N([_.Jv("collapsed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],HH.prototype,"collapsedChanged",null);_.N([_.z("entity","hideActionButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],HH.prototype,"isActionButtonHidden",null);_.N([_.O({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],HH);
_.m(HH,"ytd-engagement-panel-title-header-renderer",function(){if(wPM!==void 0)return wPM;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wPM=G},{mode:1});var hII;var sb=function(){return _.C.apply(this,arguments)||this};
_.T(sb,_.C);sb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sb.prototype,"data",void 0);_.N([_.O({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],sb);
_.m(sb,"ytd-macro-markers-info-item-renderer",function(){if(hII!==void 0)return hII;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return hII=G},{mode:1});var C7d;var Zl=function(G,H,Z,Q,p,l){_.wI.call(this);var q=this;this.JSC$23083_containerElement=G;this.hostElement=H;this.supportedSyncItems=Z;this.syncEntityKey=Q;this.options=p;this.renderLazyListItems=l;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;igq(this);OgY(this);this.JSC$23083_scrollAnimation=new _.Qc(function(u){G.scrollTop=u});
_.T$(this,this.JSC$23083_scrollAnimation);this.addOnDisposeCallback(function(){aaI(q,!1);q.activeItem&&q.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.T(Zl,_.wI);var igq=function(G){var H=_.wU(_.tp().resolve(_.oT),function(Z){return Z.entities.markersEngagementPanelSyncEntity||{}},function(Z,Q){var p;
if(Z[G.syncEntityKey]!==Q[G.syncEntityKey]&&((p=Z[G.syncEntityKey])==null?void 0:p.activeItemIndex)!==void 0)if(Q=Z[G.syncEntityKey].activeItemIndex,Z=G.getItemByIndex(Q)){if(y30(G,Z),G.contentVisible)if(G.browsingMode){var l;((l=G.options)==null?void 0:l.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(l=oNU(G),Z.offsetTop<G.JSC$23083_containerElement.clientHeight+G.JSC$23083_containerElement.scrollTop&&l&&!G.activeItemBelowSyncPosition&&aaI(G,!1));mh_(G)}else G.scrollToItem(Z)}else _.Rp(new _.C$("Could not find "+
G.supportedSyncItems+" sync child to set active.",Q,G.JSC$23083_containerElement.querySelectorAll(G.supportedSyncItems).length))});
G.unsubscribeFromTimedMarkersListSyncEntity=H;G.addOnDisposeCallback(H);Uh2(G)},Uh2=function(G){var H=_.tp().resolve(_.oT);
H=_.DD3(H.getState(),G.syncEntityKey);(H==null?void 0:H.activeItemIndex)!==void 0&&(H=G.getItemByIndex(H.activeItemIndex))&&y30(G,H)},OgY=function(G){var H=new _.Zo(G.onScroll,50,G);
_.T$(G,H);var Z=function(){H.fire()};
G.JSC$23083_containerElement.addEventListener("scroll",Z);G.addOnDisposeCallback(function(){G.JSC$23083_containerElement.removeEventListener("scroll",Z)})};
Zl.prototype.getItemByIndex=function(G){var H;(H=this.renderLazyListItems)==null||H.call(this,G);H=this.JSC$23083_containerElement.querySelectorAll(this.supportedSyncItems);if(H.length>G)return H[G]};
var y30=function(G,H){G.activeItem&&G.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));H.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));G.activeItem=H};
Zl.prototype.scrollToItem=function(G){G=this.getScrollPositionForItem(G);this.JSC$23083_containerElement.scrollTop!==G&&this.JSC$23083_scrollAnimation.start(this.JSC$23083_containerElement.scrollTop,G,300)};
Zl.prototype.getScrollPositionForItem=function(G){if(this.JSC$23083_containerElement.querySelectorAll(this.supportedSyncItems)[0]===G)return 0;var H,Z=((H=this.options)==null?0:H.percentOffset)?this.JSC$23083_containerElement.clientHeight*this.options.percentOffset:0;G=_.Aa(G).y+this.JSC$23083_containerElement.scrollTop-(_.Aa(this.JSC$23083_containerElement).y+Z);return Math.max(0,Math.min(G,this.JSC$23083_containerElement.scrollHeight-this.JSC$23083_containerElement.offsetHeight))};
Zl.prototype.onScroll=function(){this.activeItemBelowSyncPosition=oNU(this);if(this.activeItem&&!this.JSC$23083_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23083_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var G;switch((G=this.options)==null?void 0:G.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":RId(this,!Ntd(this));mh_(this);break;default:RId(this,!0)}}};
var RId=function(G,H){var Z,Q;_.S(function(p){if(p.nextAddress==1){if(G.browsingMode)return p.return();G.browsingMode=!0;H&&G.hostElement.classList.add("browsing-mode");G.playerExitBrowsingModeListener=function(){aaI(G,!1)};
return p.yield(_.Gk(),2)}Z=p.yieldResult;(Q=Z)==null||Q.addEventListener("SEEK_TO",G.playerExitBrowsingModeListener);_.K0(p)})},aaI=function(G,H){H=H===void 0?!0:H;
G.browsingMode&&(G.browsingMode=!1,G.hostElement.classList.remove("browsing-mode"),H&&G.scrollToItem(G.activeItem),A32(G))},A32=function(G){var H,Z;
_.S(function(Q){if(Q.nextAddress==1)return G.playerExitBrowsingModeListener?Q.yield(_.Gk(),3):Q.jumpTo(0);H=Q.yieldResult;(Z=H)==null||Z.removeEventListener("SEEK_TO",G.playerExitBrowsingModeListener);G.playerExitBrowsingModeListener=void 0;_.K0(Q)})},mh_=function(G){var H;
((H=G.options)==null?void 0:H.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Ntd(G)?G.hostElement.classList.remove("browsing-mode"):G.activeItem&&G.hostElement.classList.add("browsing-mode"))},oNU=function(G){if(!G.activeItem)return!1;
var H,Z=((H=G.options)==null?0:H.percentOffset)?G.JSC$23083_containerElement.clientHeight*G.options.percentOffset:0;return G.activeItem.offsetTop>=G.JSC$23083_containerElement.scrollTop+Z},Ntd=function(G){if(!G.activeItem)return!1;
var H=G.activeItem.offsetTop+14<=G.JSC$23083_containerElement.scrollTop+G.JSC$23083_containerElement.clientHeight;return G.activeItem.offsetTop+G.activeItem.clientHeight-14>=G.JSC$23083_containerElement.scrollTop&&H};
Zl.prototype.panelContentVisibleChanged=function(G){(this.contentVisible=G)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var xh4=function(G,H){G.syncEntityKey=H;var Z;(Z=G.unsubscribeFromTimedMarkersListSyncEntity)==null||Z.call(G);igq(G)},LIy=function(G,H){G.options=H};var Ql=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return G};
_.T(Ql,_.C);_.g=Ql.prototype;_.g.detached=function(){var G;(G=this.scrollController)==null||G.dispose();this.scrollController=void 0};
_.g.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"}}}};
_.g.dataChanged=function(){var G=this;_.q2(this,function(){if(G.scrollController){var H;(H=G.scrollController)==null||aaI(H,!1);var Z,Q,p;(Q=G.scrollController)==null||xh4(Q,(p=(Z=G.data)==null?void 0:Z.syncModelEntityKey)!=null?p:"default-macro-markers-list-renderer-entity-key");var l,q,u;(u=G.scrollController)==null||LIy(u,{percentOffset:(l=G.data)==null?void 0:l.selectedItemAlignmentPercentOffset,floatingPillType:(q=G.data)==null?void 0:q.floatingPillType})}else{var B,t,D,d;G.scrollController=
new Zl(G.contents,G.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(d=(B=G.data)==null?void 0:B.syncModelEntityKey)!=null?d:"default-macro-markers-list-renderer-entity-key",{percentOffset:(t=G.data)==null?void 0:t.selectedItemAlignmentPercentOffset,floatingPillType:(D=G.data)==null?void 0:D.floatingPillType},function(e){G.renderLazyListItems(e)})}G.scrollController.panelContentVisibleChanged(!!G.panelContentVisible)})};
_.g.computeButtonShape=function(){var G=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){G.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.g.renderLazyListItems=function(G){for(var H=this.contents.children,Z=0,Q=0;Q<H.length;Q++){var p=void 0;(p=H[Q].ytLazyListBehavior)==null||p.fillRemainingListItems();var l=void 0,q=void 0;p=_.X((l=this.data)==null?void 0:(q=l.contents)==null?void 0:q[Q],_.Iix);q=l=void 0;if((l=p)==null?0:(q=l.contents)==null?0:q.length)Z+=p.contents.length;if(Z>=G)break}};
_.g.handleSetActivePanelItemAction=function(G){if((G=_.X(G,zyM))&&this.panelTargetId===G.panelTargetId){G=G.itemIndex;var H,Z,Q=(Z=(H=this.data)==null?void 0:H.syncModelEntityKey)!=null?Z:"default-macro-markers-list-renderer-entity-key",p;((p=this.syncEntity)==null?void 0:p.activeItemIndex)!==G&&this.ytdReduxBehavior.dispatch(_.uP("markersEngagementPanelSyncEntity",Q,{key:Q,activeItemIndex:G}))}};
_.g.onSyncClick=function(){var G;(G=this.scrollController)==null||aaI(G)};
_.g.panelContentVisibleChanged=function(){var G;(G=this.scrollController)==null||G.panelContentVisibleChanged(!!this.panelContentVisible)};
Ql.prototype.panelContentVisibleChanged=Ql.prototype.panelContentVisibleChanged;Ql.prototype.dataChanged=Ql.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ql.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],Ql.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ql.prototype,"data",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Ql.prototype,"useCustomColors",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],Ql.prototype,"panelTargetId",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ql.prototype,"panelContentVisible",void 0);
_.N([_.q6("#contents"),_.A("design:type",HTMLElement)],Ql.prototype,"contents",void 0);_.N([_.h({selectorArgs:["data.syncModelEntityKey"],selector:_.DD3}),_.A("design:type",Object)],Ql.prototype,"syncEntity",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ql.prototype,"dataChanged",null);
_.N([_.gx("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ql.prototype,"panelContentVisibleChanged",null);_.N([_.O({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Ql);
_.m(Ql,"ytd-macro-markers-list-renderer",function(){if(C7d!==void 0)return C7d;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return C7d=G},{mode:1});var ENI;var pj=function(){return _.C.apply(this,arguments)||this};
_.T(pj,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],pj.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],pj.prototype,"data",void 0);_.N([_.O({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],pj);
_.m(pj,"ytd-error-corrections-section-item-renderer",function(){if(ENI!==void 0)return ENI;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ENI=G},{mode:1});var Yi2;var lv=function(){return _.C.apply(this,arguments)||this};
_.T(lv,_.C);lv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],lv.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lv.prototype,"data",void 0);_.N([_.O({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],lv);
_.m(lv,"ytd-error-corrections-section-renderer",function(){if(Yi2!==void 0)return Yi2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Yi2=G},{mode:1});var FIM;var gC=function(){return _.C.apply(this,arguments)||this};
_.T(gC,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],gC.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gC.prototype,"data",void 0);_.N([_.O({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],gC);
_.m(gC,"ytd-topic-link-renderer",function(){if(FIM!==void 0)return FIM;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return FIM=G},{mode:1});var bgU;var IC=function(){var G=_.C.apply(this,arguments)||this;G.modernLockupV2=_.V("modernize_structured_description_playlist_lockups_v2");return G};
_.T(IC,_.C);IC.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],IC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],IC.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],IC.prototype,"modernLockupV2",void 0);_.N([_.O({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],IC);
_.m(IC,"ytd-video-description-course-section-renderer",function(){if(bgU!==void 0)return bgU;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bgU=G},{mode:1});var G_0;var qr=function(){return _.C.apply(this,arguments)||this};
_.T(qr,_.C);qr.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qr.prototype,"data",void 0);_.N([_.O({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],qr);
_.m(qr,"ytd-video-description-files-section-renderer",function(){if(G_0!==void 0)return G_0;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return G_0=G},{mode:1});var HTO;var Sx=function(){return _.C.apply(this,arguments)||this};
_.T(Sx,_.C);Sx.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Sx.prototype,"data",void 0);_.N([_.O({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Sx);
_.m(Sx,"ytd-video-description-gaming-section-renderer",function(){if(HTO!==void 0)return HTO;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return HTO=G},{mode:1});var sp7;var uv=function(){var G=_.C.apply(this,arguments)||this;G.isExpanded=!1;return G};
_.T(uv,_.C);uv.prototype.computeHasDefaultMetadataEndpoint=function(G){var H;G=G==null?void 0:(H=G.defaultMetadata)==null?void 0:H.runs;return!(!G||G.length!==1||!G[0].navigationEndpoint)};
uv.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.u4.Object.defineProperties(uv.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uv.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],uv.prototype,"isExpanded",void 0);_.N([_.h({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],uv.prototype,"hasDefaultMetadataEndpoint",void 0);
_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],uv.prototype,"isExpandable",null);_.N([_.z("data","isExpandable","isExpanded"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],uv.prototype,"showExpandedMetadata",null);_.N([_.O({is:"ytd-info-row-renderer",disableElementRegistration:!0})],uv);
_.m(uv,"ytd-info-row-renderer",function(){if(sp7!==void 0)return sp7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sp7=G},{mode:1});var ZT7;var BH=function(){var G=_.C.apply(this,arguments)||this;G.currentIndex=0;G.supportComponentResize=!0;G.JSC$23112_lastScrollContainerWidth=NaN;return G};
_.T(BH,_.C);_.g=BH.prototype;
_.g.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"}}}};
_.g.getItemsPath=function(){return"videoLockups"};
_.g.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.g.onIronResize=function(){this.updateVideoLockupStyles()};
_.g.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.g.updateVideoLockupStyles=function(){var G;this.JSC$23112_scrollContainer!==void 0&&(G=this.videoLockups)!=null&&G.length&&(G=this.JSC$23112_scrollContainer.clientWidth,G!==this.JSC$23112_lastScrollContainerWidth&&(this.JSC$23112_lastScrollContainerWidth=G,_.ZI(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(G*.8,415)+"px"}),_.N5(this.hostElement,"iron-resize")))};
_.u4.Object.defineProperties(BH.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var G=[],H;if((H=this.data)==null||!H.carouselLockups)return G;H=_.I(this.data.carouselLockups);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=void 0;((Q=_.X(Z,QzM))==null?0:Q.videoLockup)&&G.push(_.X(Z,QzM).videoLockup)}return G}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoLockups)==null||!G.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var G=[],H;if((H=this.data)==null||!H.carouselLockups)return G;var Z;return(Z=_.X(this.data.carouselLockups[this.scrollCount],QzM))==null?void 0:Z.infoRows}}});
BH.prototype.dataChanged=BH.prototype.dataChanged;BH.prototype.onIronResize=BH.prototype.onIronResize;BH.prototype.hiddenChanged=BH.prototype.hiddenChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],BH.prototype,"componentBehavior",void 0);_.N([_.v(_.uU.YtdHorizontalListBehavior),_.A("design:type",Object)],BH.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],BH.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],BH.prototype,"inlineStructuredDescription",void 0);_.N([_.h({value:2}),_.A("design:type",Number)],BH.prototype,"initialCount",void 0);_.N([_.h(),_.A("design:type",Object)],BH.prototype,"currentIndex",void 0);
_.N([_.h(),_.A("design:type",Number)],BH.prototype,"scrollCount",void 0);_.N([_.h(),_.A("design:type",Object)],BH.prototype,"supportComponentResize",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],BH.prototype,"contentHidden",void 0);_.N([_.q6("#scroll-container"),_.A("design:type",HTMLDivElement)],BH.prototype,"JSC$23112_scrollContainer",void 0);
_.N([_.gx("contentHidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BH.prototype,"hiddenChanged",null);_.N([_.z("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],BH.prototype,"videoLockups",null);_.N([_.z("videoLockups"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],BH.prototype,"hasVideoLockups",null);
_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BH.prototype,"onIronResize",null);_.N([_.z("data","scrollCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],BH.prototype,"infoRows",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BH.prototype,"dataChanged",null);_.N([_.O({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],BH);
_.m(BH,"ytd-video-description-music-section-renderer",function(){if(ZT7!==void 0)return ZT7;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ZT7=G},{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var Qp7;var JK=function(){return _.C.apply(this,arguments)||this};
_.T(JK,_.C);JK.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.N([_.h({}),_.A("design:type",Object)],JK.prototype,"data",void 0);_.N([_.O({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],JK);
_.m(JK,"ytd-video-description-transcript-section-renderer",function(){if(Qp7!==void 0)return Qp7;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Qp7=G},{mode:1});var pWd;_.RX(_.y(function(G){var H=_.gu(_.$Lu,function(){return G.data().firstProviderLinkStatusEntityKey}),Z=_.gu(_.$Lu,function(){return G.data().secondProviderLinkStatusEntityKey}),Q=function(){var p,l;
return((p=H())==null?void 0:p.linked)||((l=Z())==null?void 0:l.linked)};
return _.J("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.J(_.Fe,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return G.data().sectionTitle}}),_.J(_.Fe,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return Q()?G.data().connectedMessage:G.data().notConnectedMessage}}),_.J(_.k,{cond:Q,
then:function(){return _.J(_.SP,{data:function(){return G.data().connectedButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.J(_.k,{cond:function(){return!Q()},
then:function(){return _.J(_.SP,{data:function(){return G.data().notConnectedButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"tn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;return _.J("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.J("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.J(_.Fe,{text:function(){return H().sectionTitle}})),_.J("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.J(_.Fe,{text:function(){return H().bodyHeader}})),_.J("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.J(_.Fe,{text:function(){return H().bodyText}})),_.J(_.k,{cond:function(){return H().attributionText},
then:function(){return _.J("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.J(_.Fe,{text:function(){return H().attributionText}}))}}))},"un"),"how-this-was-made-section-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){return _.J("yt-video-description-youchat-section-view-model",{class:_.bb("ytVideoDescriptionYouchatSectionViewModelHost")},_.J("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.J(_.Fe,{text:function(){return G.data().sectionTitle}})),_.J("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.J(_.Fe,{text:function(){return G.data().subHeaderText}})),_.J("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.J(_.kg,{data:function(){return _.X(G.data().primaryButton,
_.HN)}})))},"vn"),"yt-video-description-youchat-section-view-model",{props:{data:_.b3}});var tK=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return G};
_.T(tK,_.C);_.g=tK.prototype;
_.g.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}}}}}};
_.g.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.g.dataChanged=function(){var G,H;this.hasDescriptionOnly=!(((G=this.data)==null?void 0:(H=G.items)==null?void 0:H.length)!==1||!_.X(this.data.items[0],h2))};
_.g.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.g.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.g.autoFocusDescription=function(){var G;((G=_.tp().resolve(_.Jp(_.qZ)))==null?0:G.isKeyBoardInUse())&&this.description&&_.lc(this.description)};
_.g.resize=function(){if(_.V("kevlar_disable_sd_resize"))this.JSC$23120_cardList&&_.N5(this.JSC$23120_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.N5(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.N5(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.g.scrollToSection=function(G){if(G=this.getSectionElement(G))_.AZ(this.hostElement,"yt-scroll-to-watch-element",[G]),G.focus()};
_.g.getSectionElement=function(G){switch(G){case "infocards-item-section":var H;return(H=this.infocardsSection)!=null?H:null;case "transcript-item-section":var Z;return(Z=this.transcriptSection)!=null?Z:null;case "how-this-was-made-section-item-section":var Q;return(Q=this.howThisWasMadeSection)!=null?Q:null;case "files-item-section":var p;return(p=this.filesSection)!=null?p:null;default:return null}};
_.g.handleSetActiveItemAction=function(G){var H=_.X(G,zyM),Z=H&&(H==null?void 0:H.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23120_cardList;if(H&&Z){G=this.currentActiveChapter;var Q=this.currentActiveProblem;H=Z==null?void 0:Z.getItemByIndex(H.itemIndex);var p=Z=!0;H&&(H.active=!0,H.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(Z=G!==H,p=!1,this.currentActiveChapter=H):(H==null?void 0:H.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(Z=!1,p=Q!==H,this.currentActiveProblem=H));G&&Z&&(G.active=!1);Q&&p&&(Q.active=!1)}};
_.u4.Object.defineProperties(tK.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.V("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
tK.prototype.onYtExpanderMoreTapped=tK.prototype.onYtExpanderMoreTapped;tK.prototype.onHiddenChanged=tK.prototype.onHiddenChanged;tK.prototype.dataChanged=tK.prototype.dataChanged;tK.prototype.panelContentVisibleChanged=tK.prototype.panelContentVisibleChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],tK.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.hS),_.A("design:type",Object)],tK.prototype,"ironResizableBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],tK.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],tK.prototype,"panelContentVisible",void 0);_.N([_.h(),_.A("design:type",Boolean)],tK.prototype,"hasDescriptionOnly",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],tK.prototype,"inlineStructuredDescription",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],tK.prototype,"hidden",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],tK.prototype,"shortsPanel",void 0);_.N([_.h(),_.A("design:type",Object)],tK.prototype,"videoSummary",void 0);_.N([_.h(),_.A("design:type",Object)],tK.prototype,"merchShelf",void 0);
_.N([_.z("videoSummary"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],tK.prototype,"showVideoSummary",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],tK.prototype,"engagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],tK.prototype,"watchWhileSdp",void 0);_.N([_.q6("ytd-expandable-video-description-body-renderer"),_.A("design:type",Object)],tK.prototype,"description",void 0);
_.N([_.q6("ytd-horizontal-card-list-renderer"),_.A("design:type",Object)],tK.prototype,"JSC$23120_cardList",void 0);_.N([_.q6("ytd-horizontal-card-list-renderer[center-items]"),_.A("design:type",Object)],tK.prototype,"problemWalkthroughCardList",void 0);_.N([_.q6("ytd-shelf-renderer"),_.A("design:type",Object)],tK.prototype,"shelfSection",void 0);_.N([_.q6("ytd-video-description-music-section-renderer"),_.A("design:type",Object)],tK.prototype,"musicMetadataSection",void 0);
_.N([_.q6("ytd-video-description-infocards-section-renderer"),_.A("design:type",Object)],tK.prototype,"infocardsSection",void 0);_.N([_.q6("ytd-video-description-transcript-section-renderer"),_.A("design:type",Object)],tK.prototype,"transcriptSection",void 0);_.N([_.q6("how-this-was-made-section-view-model"),_.A("design:type",Object)],tK.prototype,"howThisWasMadeSection",void 0);_.N([_.q6("ytd-video-description-files-section-renderer"),_.A("design:type",Object)],tK.prototype,"filesSection",void 0);
_.N([_.gx("panelContentVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tK.prototype,"panelContentVisibleChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tK.prototype,"dataChanged",null);_.N([_.gx("hidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tK.prototype,"onHiddenChanged",null);
_.N([_.lq("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tK.prototype,"onYtExpanderMoreTapped",null);_.N([_.O({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],tK);
_.m(tK,"ytd-structured-description-content-renderer",function(){if(pWd!==void 0)return pWd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pWd=G},{mode:2});var lv_;var gJM;var kD=function(){return _.C.apply(this,arguments)||this};
_.T(kD,_.C);kD.prototype.computeAriaLabel=function(G){var H,Z;return(G==null?void 0:(H=G.accessibility)==null?void 0:(Z=H.accessibilityData)==null?void 0:Z.label)||_.Zg("LOADING",void 0,"Loading")};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],kD.prototype,"data",void 0);_.N([_.h({computed:"computeAriaLabel(data)"}),_.A("design:type",String)],kD.prototype,"ariaLabel",void 0);_.N([_.fH({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],kD);
_.m(kD,"yt-content-loading-renderer",function(){if(gJM===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;lv_===void 0&&(lv_=document.createElement("template"));var Q=lv_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);gJM=G}G=gJM;return G},{mode:_.LH("kevlar_poly_si_batch_j043")?1:2});_.RX(_.y(function(G){var H=_.I(_.Ty(!1,void 0,"OZMtVb")),Z=H.next().value,Q=H.next().value;H=_.I(_.Ty(!1,void 0,"qWERsf"));var p=H.next().value,l=H.next().value;_.mR(function(){var B=_.X(G.data().collaboratePlaylistCollaborationSetting,xf0);B&&Q(B.switchedOnByDefault);var t=_.X(G.data().allowNewCollaboratorsPlaylistCollaborationSetting,xf0);t&&l(t.switchedOnByDefault);if(!B&&!t||!B&&G.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")Q(!0),l(!0)});
var q=function(B){Q(B);l(B);var t=G.data().playlistCollaborationEntityKey||"";var D=_.OI().getState();(D=_.Hv(D.entities,"playlistCollaborationEntity",t))&&(D==null?void 0:D.isCollaborative)===B||_.OI().dispatch(_.uP("playlistCollaborationEntity",t,Object.assign({},D,{isCollaborative:B})))},u=function(B){l(B)};
return _.J("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.J("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.J(_.SP,{data:function(){return G.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(B){return _.J(_.drN,{data:B.data,
onSwitch:q})}})),_.J(_.k,{cond:Z,
then:function(){return _.J(_.kI,null,_.J("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.J(_.SP,{data:function(){return G.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(B){return _.J(_.drN,{data:B.data,
onSwitch:u,overrideDisabled:!1})}})),_.J(_.k,{cond:p,
then:function(){return _.J("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.J(_.SP,{data:function(){return G.data().copyLinkButton}},{buttonViewModel:_.kg}))}}),_.J("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.J(_.SP,{data:function(){return G.data().playlistCollaborators}},{contentListItemViewModel:_.VSL})))}}))},"wn"),"playlist-collaboration-view-model",{props:{data:_.b3}});var Ivx=_.y(function(G){var H=G.data;var Z=G.customCommandResolver;return _.J(_.kI,null,_.J("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.J(_.SP,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(Q){return _.J(_.Oaw,{data:Q.data,
customCommandResolver:Z})}})),_.J("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.J(_.k,{cond:function(){return H().headline},
then:function(Q){return _.J(_.Fe,{text:Q,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.J("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.J(_.SP,{data:function(){return H().adBadge}},{adBadgeViewModel:function(Q){return _.J(_.nJ,{data:Q.data,
hasDot:function(){return H().primaryDetailsLine!==void 0},
customCommandResolver:Z,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.J(_.SP,{data:function(){return H().primaryDetailsLine}},{adDetailsLineViewModel:function(Q){return _.J(_.VH,{data:Q.data,
customCommandResolver:Z,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"xn"),qNO=_.y(function(G){var H=G.data;
var Z=G.customCommandResolver;return _.J("ad-avatar-lockup-view-model",{class:function(){var Q;return((Q=H().interaction)==null?0:Q.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.aX(_.tk({visibilityCallback:function(Q){var p,l=(p=H().interaction)==null?void 0:p.onFirstVisible;Q&&l&&_.zt(l)},
showOption:_.ux}),_.fG(function(){return H().interaction},Z)),
"aria-label":function(){var Q,p;return(Q=H().interaction)==null?void 0:(p=Q.accessibility)==null?void 0:p.label}},_.J(_.iW,null,_.J(_.wO,{when:function(){return H().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.J(Ivx,{data:H,
customCommandResolver:Z})}),_.J(_.he,null,function(){return null})))},"yn");_.RX(_.y(function(G){var H=G.data;var Z=G.panelContentVisibility;G=_.tk({visibilityCallback:function(l){var q,u=(q=H().interaction)==null?void 0:q.onFirstVisible;l&&u&&_.zt(u)},
showOption:_.ux});var Q=_.fG(function(){return H().interaction},rRN);
_.RM(function(){var l,q;if(q=_.GF("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var u;q=(u=q())==null?void 0:u.onLayoutVisibleCallback}else q=null;(l=q)==null||l()},"zn");
var p=function(){return Z()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.J("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.aX(G,Q)},_.J("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.J("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.J(_.k,{cond:_.dqW("(min-width: "+((0,_.KR)()+_.i8)+"px) or (max-width: 600px)"),then:function(){return _.J(_.SP,{data:function(){return H().adImage}},{adImageViewModel:function(l){return _.J(_.PR,{data:l.data,
targetHeight:80,customCommandResolver:rRN})}})}})),_.J("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.J("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.J(_.SP,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(l){return _.J(qNO,{data:l.data,
customCommandResolver:rRN})}})),_.J(_.k,{cond:p,
then:function(){return _.J(_.SP,{data:function(){return H().adButton}},{adButtonViewModel:function(l){return _.J(_.Jz,{data:l.data,
customCommandResolver:rRN})}})},
else:function(){return _.J(_.SP,{data:function(){return H().menu}},{buttonViewModel:_.kg})}}),_.J("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.J(_.SP,{data:function(){var l=_.X(H().toggleButton,_.ZD);
return{toggleButtonViewModel:Object.assign({},l,{isTogglingDisabled:!0,isToggled:p()})}}},{toggleButtonViewModel:_.hf})))))},"An"),"panel-ad-header-image-lockup-view-model",{props:{data:_.b3,
panelContentVisibility:_.b3}});_.RX(_.y(function(G){var H=function(){return _.X(G.data().inputComposerViewModel,CYN)},Z=_.SQ(_.KG.currentPageSubTypeSelector),Q=_.SQ(_.KG.persistentPanelVisibleSelector),p=_.I(_.Ty(!1,void 0,"tZvFae")),l=p.next().value,q=p.next().value;
p=_.I(_.Ty(!1,void 0,"yUp6Be"));var u=p.next().value,B=p.next().value,t=function(){W(!0);var $R;_.zt((($R=H())==null?void 0:$R.onSubmitCommand)||{})},D=function(){if(Q()&&!u()){var $R;
($R=_.HV())==null||$R.removeCueRange("aic-proactive");q(!1);B(!0);t();_.fX(_.Lvd(H().endOfVideoContinuation),{form:{formData:_.Ch({clientMessageId:"youchat-"+Date.now(),pageContext:fW()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.fX(n52(x()));W(!1)}}})}},d=function(){var $R=_.HV();
if($R&&!l()&&!u()){var ie=$R.getDuration();ie>60&&($R.addCueRange("aic-proactive",ie-60,ie-20),q(!0))}},e=function(){var $R;
return(($R=H())==null?void 0:$R.youchatPendingResponseEntityKey)||""},n=_.gu(_.lT2,e),c=function(){var $R;
return!(($R=n())==null||!$R.isPendingResponse)},W=function($R){_.gw7(e())($R)};
p=_.I(_.Ty(!0,void 0,"ypljKe"));var M=p.next().value,r=p.next().value,w=function(){var $R,ie;var W3=_.X((ie=H())==null?void 0:ie.inputFormField,f0d);return W3==null?void 0:($R=W3.contentProperties)==null?void 0:$R.placeholderText},x=function(){return H().sectionTargetId||"youchat_messages_section"};
p=_.qK("yt-chat-input-view-model");var U=_.IA("textarea"),R=_.gu($jO,"chat_input_view_model_state"),L=X70(),H3=function(){var $R;return!(($R=R())==null||!$R.value)},qX=function(){return G.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},B3=function(){var $R;
($R=_.HV())==null||$R.removeCueRange("aic-proactive");q(!1);B(!1);var ie;_.V("enable_navigational_proactive_messages_on_ai_companion")&&((ie=H())==null?0:ie.navigationContinuation)&&Q()&&(t(),_.fX(_.Lvd(H().navigationContinuation),{form:{formData:_.Ch({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:hK0(),pageContext:fW()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.fX(n52(x()));W(!1)}}}))},fW=function(){var $R;
return($R=_.tp().resolve(_.Jp(_.wi)))==null?void 0:_.Lic($R,Z())};
_.mR(function(){if(_.V("enable_ai_chat_controller")){var $R;($R=_.tp().resolve(_.Jp(_.wi)))==null||$R.init(G.data().environment)}else if($R=iu4(G.data()),!H3()&&$R){var ie;((ie=H())==null?0:ie.setPendingResponseOnWelcome)&&W(!0);_.fX($R,{form:{formData:_.Ch({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:hK0(),pageContext:fW()})}});L(!0)}var W3=x(),DT=_.tp().resolve(_.Jp(_.f2)),UR=function(){_.qB.remove(W3);if(_.V("enable_ai_chat_controller")){var be;(be=_.tp().resolve(_.Jp(_.wi)))!=null&&be.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(be.lastWelcomeContinuationSent=void 0)}else L(!1)},zx=function(){_.cS(function(){if(qX()&&(B3(W3),Z()==="watch")){var be=_.HV();
be&&(be.addEventListener("onStateChange",d),be.addEventListener("onCueRangeEnter",D))}})};
ie=_.V("enable_ai_companion")?!qX():!0;DT==null||DT.addEventListener("yt-navigate-start",UR,{once:ie});DT==null||DT.addEventListener("yt-navigate-finish",zx,{once:ie});_.oM(function(){DT==null||DT.removeEventListener("yt-navigate-start",UR);DT==null||DT.removeEventListener("yt-navigate-finish",zx);var be=_.HV();be&&(be.removeEventListener("onCueRangeEnter",D),be.removeEventListener("onStateChange",d),be.removeCueRange("aic-proactive"))})});
_.yN(function(){if(_.V("enable_ai_chat_controller")){var $R=iu4(G.data());if($R){var ie,W3=((ie=H())==null?0:ie.setPendingResponseOnWelcome)?W:void 0,DT;(DT=_.tp().resolve(_.Jp(_.wi)))==null||Df0(DT,{command:$R,setPending:W3})}}},"RZzrCc");
var e2=function(){var $R=U.value.value;U.value.value="";w70(U.value);var ie,W3=((ie=H())==null?void 0:ie.enableGradientColorBg)||!1;ie=V_Y(x(),$R,W3);_.fX(ie);t();var DT,UR,zx;ie=(zx=(DT=G.data())==null?void 0:DT.sendUserQueryCommand)!=null?zx:_.Lvd((UR=H())==null?void 0:UR.continuation);_.fX(ie,{form:{formData:_.Ch({clientMessageId:"youchat-"+Date.now(),userInputText:$R,playerOffsetMs:hK0(),pageContext:fW()})},commandController:{onSuccess:function(){W(!1)},
onServerError:function(){_.fX(n52(x()));W(!1)}}})};
return _.J("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:p},_.J("div",{class:"chatInputViewModelChatInputWrapper"},_.J("form",{class:"chatInputViewModelChatInputForm"},_.J("textarea",{class:"chatInputViewModelChatInput",el:U,"on:keydown":_.Hh(function($R){var ie=c()||!1;w70(U.value);ie||$R.key!=="Enter"||$R.shiftKey||($R.preventDefault(),e2());return!1}),
"on:keyup":_.Hh(function(){r(U.value.value.length===0);return!1}),
"aria-label":function(){return c()?G.data().loadingAnimationA11yLabel||"":w()},
placeholder:w,rows:1}),_.J(_.kg,{data:function(){return _.X(G.data().sendButton,_.HN)},
onClick:function($R){$R.preventDefault();e2();r(U.value.value.length===0)},
buttonOverrides:function(){return{disabled:M()||c()}}})),_.J(_.Fe,{className:"chatInputViewModelChatDisclaimer",
text:function(){var $R;return($R=_.X(G.data().disclaimer,_.qpt))==null?void 0:$R.text}})))},"Cn"),"yt-chat-input-view-model",{props:{data:_.b3}});var SNI=["engagement-panel-clip-create","engagement-panel-clip-view"],uN4=0,Dl=function(){var G=_.C.apply(this,arguments)||this;var H;G.headerData=(H=G.data)==null?void 0:H.header;G.darkerPanels=_.V("web_watch_darker_panels");G.matchContentTheme=_.V("web_watch_panel_content_match_theme");G.disableAutoFill=!1;G.isFullscreen=!1;G.isTheaterMode=!1;G.liveChatReplyPanel=!1;G.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");G.disableBackdropFilter=_.V("web_disable_backdrop_filter");G.isPersistentPanel=
!1;G.trackEngagementPanelVisibility=_.V("web_watch_track_engagement_panel_visibility");G.overscrollContain=!1;G.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 G};
_.T(Dl,_.C);_.g=Dl.prototype;
_.g.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(G){var H;return(G==null?void 0:(H=G.webComponentHint)==null?void 0:H.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]]",overscrollContain:"[[overscrollContain]]"}},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"}}}};
_.g.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var G;if((G=this.hostElement.parentElement)==null?0:G.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.g.detached=function(){this.updateTheaterDisablement()};
_.g.showPanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Ui.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.g.maybeScrollToItemSection=function(G){var H=this,Z,Q=G==null?void 0:(Z=G.sectionListEngagementPanelExtras)==null?void 0:Z.scrollToItemSectionIdentifier;Q&&_.Ui.addJob(function(){var p;(p=H.sectionListRendererElement)==null||p.scrollToItemSection(Q)},8)};
_.g.hidePanel=function(){var G=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Ui.addJob(function(){G.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.g.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.g.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.g.updatePanel=function(G,H,Z,Q){var p=this;if((G=G==null?void 0:G.engagementPanelSectionListRenderer)||Q){if(G){Q=G.header;var l=G.content,q=G.footer;(G=G.targetId)&&this.set("data.targetId",G);Q&&this.set("data.header",Q);l&&this.set("data.content",l);q&&this.set("data.footer",q)}else Q&&(G=Q.content,l=Q.secondaryHeaderContent,q=Q.targetId,Q=Q.loggingDirectives,q&&this.set("data.targetId",q),G&&this.set("data.content",G),Q&&_.V("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
Q),l&&(this.secondaryHeaderData=l));this.updateChildVisibilityProperties();if(H){var u;_.V("kevlar_update_panel_focus_scroll_killswitch")||(u={preventScroll:!0});this.focus(u)}_.q2(this,function(){_.N5(p.hostElement,"yt-refit");p.maybeScrollToItemSection(Z)})}};
_.g.computeHeaderData=function(){var G,H=(0,_.oN.unsafeClone)((G=this.data)==null?void 0:G.header);if(H){G=new _.bn(Object.keys(H)[0]);var Z=_.X(H,G),Q=_.X(this.secondaryHeaderData,G);Q&&_.nX(H,G,Object.assign({},Q,Z))}return H};
_.g.getReloadContinuation=function(){var G,H,Z,Q=_.I(((G=this.data)==null?void 0:(H=G.content)==null?void 0:(Z=H.sectionListRenderer)==null?void 0:Z.continuations)||[]);for(G=Q.next();!G.done;G=Q.next())if(G=G.value,G.reloadContinuationData)return G.reloadContinuationData.continuation};
_.g.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var G;((G=this.data)==null?0:G.targetId)&&(G=this.contentElement.firstElementChild)&&G.setAttribute("panel-target-id",this.data.targetId)};
_.g.forwardPopupClosedToFlowRootRenderer=function(){var G=_.F9(this.hostElement).querySelector("ytd-flow-root-renderer");if(G&&this.hostElement.closest("ytd-popup-container"))G.onPopupClosed()};
_.g.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var G;if(!SNI.includes((G=this.theaterDisablementPanelIdentifier)!=null?G:""))if(G=_.V("web_watch_imax_theater_mode")&&this.isTheaterMode,G=_.V("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G,_.V("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||G){var H;this.visibility=(H=this.data)==null?void 0:H.visibility;var Z;this.trackEngagementPanelVisibility&&((Z=this.data)==null?void 0:Z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var Q,p,l,q;this.contentEmpty=!!(((Q=this.data)==null?0:(p=Q.content)==null?0:p.structuredDescriptionContentRenderer)&&Object.keys((l=this.data)==null?void 0:(q=l.content)==null?void 0:
q.structuredDescriptionContentRenderer).length===0);(H=_.tp().resolve(_.iU))&&H.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.g.isTheaterModeChanged=function(){_.V("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.g.isFullscreenChanged=function(){_.V("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.g.focus=function(G){if(this.header)this.header.focus(G);else{var H;(H=_.F9(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||H.focus(G)}};
_.g.visibilityChanged=function(){if(!_.V("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var G=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",p=Q||!this.lastVisibility,l,q,u,B=((l=this.data)==null?void 0:(q=l.identifier)==null?void 0:
q.tag)||((u=this.data)==null?void 0:u.panelIdentifier);if(G&&p){var t;((t=this.data)==null?0:t.onShowCommands)&&_.El(this.hostElement,this.data.onShowCommands,this.hostElement);B&&_.mm().dispatch(_.Lo({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:B}}))}else if(H&&Z){var D;((D=this.data)==null?0:D.onHideCommands)&&_.El(this.hostElement,this.data.onHideCommands,this.hostElement);B&&_.mm().dispatch(_.Lo({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:B}}))}G&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*uN4++));_.V("kevlar_watch_focus_on_engagement_panels")&&G&&Q&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.g.notifyVisibilityChanged=function(G){var H;_.xk(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,G,(H=this.data)==null?void 0:H.targetId]);if(_.V("autonav_pause_for_comments_ep")){var Z;_.N5(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(Z=this.data)==null?void 0:Z.targetId})}};
_.g.updateTheaterDisablement=function(){if(!_.V("kevlar_watch_theater_disablement_killswitch")){var G=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&SNI.includes(G)&&!_.V("watch_next_grid_ignore_disallowed_panels")){var H=_.XD(_.mm().getState()),Z=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";G!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():Z?(this.originalTheaterState===void 0&&(this.originalTheaterState=H,this.theaterDisablementPanelIdentifier=
G),H&&_.AZ(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.g.clearTheaterDisablement=function(){_.AZ(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.g.updateChildVisibilityProperties=function(){this.hostElement||_.V("kevlar_panel_property_init_killswitch")||this._enableProperties();var G=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=G);var H,Z=(H=this.headerElement)==null?void 0:H.firstElementChild;if(Z&&!this.adHeaderImageLockupViewModel){H=G==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";Z.collapsed=H;Z=_.F9(Z).querySelector("#visibility-button");if(!Z)return;(Z=Z.firstElementChild)&&
Z.polymerController.is==="ytd-toggle-button-renderer"&&Z.polymerController.data.isToggled!==H&&Z.polymerController.set("data.isToggled",H)}var Q;if(H=(Q=this.contentElement)==null?void 0:Q.firstElementChild)if(G&&G!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")H.removeAttribute("panel-content-visible");else{H.setAttribute("panel-content-visible","");var p;(p=H.markDirty)==null||p.call(H)}};
_.g.onYtChangeEngagementPanelVisibilityAction=function(G){var H=this,Z,Q=(Z=this.data)==null?void 0:Z.targetId,p,l,q;Z=((p=this.data)==null?void 0:(l=p.identifier)==null?void 0:l.tag)||((q=this.data)==null?void 0:q.panelIdentifier);var u=_.X(G,_.P2w),B;G=Q&&(u==null?void 0:u.targetId)===Q||Z&&(u==null?void 0:(B=u.panelIdentifier)==null?void 0:B.tag)===Z;this.dialog&&G&&(u==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Q==="engagement-panel-comments-section"?_.AZ(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.AZ(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",Z]));!_.V("kevlar_use_engagement_panel_management_component")&&G&&(Q=u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!Q?_.Ui.addJob(function(){H.visibility=u.visibility},2,this.hideDelayMs):this.visibility=u.visibility,u.visibility&&this.notifyVisibilityChanged(u.visibility))};
_.g.onYtScrollToEngagementPanelCommand=function(G){var H,Z=(H=this.data)==null?void 0:H.targetId,Q,p,l;H=((Q=this.data)==null?void 0:(p=Q.identifier)==null?void 0:p.tag)||((l=this.data)==null?void 0:l.panelIdentifier);G=_.X(G,_.Rea);var q;(Z&&(G==null?void 0:G.targetId)===Z||H&&(G==null?void 0:(q=G.panelIdentifier)==null?void 0:q.tag)===H)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.AZ(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.g.attachVEs=function(G){var H,Z;(G==null?0:(H=G.content)==null?0:(Z=H.productListRenderer)==null?0:Z.trackingParams)&&_.gr().graftServerVe(G.content.productListRenderer.trackingParams);var Q,p;(G==null?0:(Q=G.content)==null?0:(p=Q.transcriptRenderer)==null?0:p.trackingParams)&&_.gr().graftServerVe(G.content.transcriptRenderer.trackingParams)};
_.g.onYtUpdateEngagementPanelAction=function(G){var H,Z=(H=this.data)==null?void 0:H.targetId;G=_.X(G,Mgd);Z&&(G==null?void 0:G.targetId)===Z&&(this.updatePanel({engagementPanelSectionListRenderer:{header:G==null?void 0:G.header,content:G==null?void 0:G.content}},!1),this.attachVEs(G))};
_.g.onYtShowEngagementPanelScrimAction=function(G){var H,Z=(H=this.data)==null?void 0:H.targetId;G=_.X(G,Kfd);Z&&(G==null?void 0:G.engagementPanelTargetId)===Z&&(this.scrimmed=!0)};
_.g.onYtHideEngagementPanelScrimAction=function(G){var H,Z=(H=this.data)==null?void 0:H.targetId;G=_.X(G,Wf0);Z&&(G==null?void 0:G.engagementPanelTargetId)===Z&&(this.scrimmed=!1)};
_.g.getIdentifier=function(){var G,H,Z;return((G=this.data)==null?void 0:G.panelIdentifier)||((H=this.data)==null?void 0:(Z=H.identifier)==null?void 0:Z.tag)};
_.g.getSurface=function(){var G,H;return(G=this.data)==null?void 0:(H=G.identifier)==null?void 0:H.surface};
_.u4.Object.defineProperties(Dl.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var G=this.getIdentifier();return G==="engagement-panel-youchat"||G==="PAyouchat"}}});
Dl.prototype.visibilityChanged=Dl.prototype.visibilityChanged;Dl.prototype.isFullscreenChanged=Dl.prototype.isFullscreenChanged;Dl.prototype.isTheaterModeChanged=Dl.prototype.isTheaterModeChanged;Dl.prototype.dataChanged=Dl.prototype.dataChanged;Dl.prototype.forwardPopupClosedToFlowRootRenderer=Dl.prototype.forwardPopupClosedToFlowRootRenderer;Dl.prototype.onYtRendererstamperFinished=Dl.prototype.onYtRendererstamperFinished;
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Dl.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Dl.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Dl.prototype,"ytEventForwardingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Dl.prototype,"data",void 0);
_.N([_.h({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.A("design:type",Object)],Dl.prototype,"headerData",void 0);_.N([_.h(),_.A("design:type",Object)],Dl.prototype,"secondaryHeaderData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"visibility",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dl.prototype,"contentEmpty",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dl.prototype,"scrimmed",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dl.prototype,"dialog",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dl.prototype,"dropdown",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"darkerPanels",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"matchContentTheme",void 0);_.N([_.h(),_.A("design:type",Object)],Dl.prototype,"disableAutoFill",void 0);
_.N([_.h({reflectToAttribute:!0,value:_.V("optimal_reading_width_comments_ep")}),_.A("design:type",Boolean)],Dl.prototype,"optimalReadingWidthComments",void 0);_.N([_.h(),_.A("design:type",Number)],Dl.prototype,"hideDelayMs",void 0);_.N([_.h({selector:_.ch,reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"isFullscreen",void 0);_.N([_.h({selector:_.XD,reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"isTheaterMode",void 0);
_.N([_.h(),_.A("design:type",Number)],Dl.prototype,"showDelayMs",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.targetId"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dl.prototype,"targetId",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dl.prototype,"webSize",null);_.N([_.h(),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Dl.prototype,"hideFooterBorder",null);
_.N([_.h(),_.A("design:type",Object)],Dl.prototype,"isWatch",void 0);_.N([_.h(),_.A("design:type",Object)],Dl.prototype,"originalTheaterState",void 0);_.N([_.h(),_.A("design:type",Object)],Dl.prototype,"theaterDisablementPanelIdentifier",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dl.prototype,"isWatchWhilePanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dl.prototype,"shortsPanel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dl.prototype,"liveChatEngagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Dl.prototype,"learningChatEngagementPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"liveChatReplyPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"enableAnchoredPanel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"disableBackdropFilter",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Dl.prototype,"isPersistentPanel",void 0);_.N([_.h(),_.A("design:type",Object)],Dl.prototype,"trackEngagementPanelVisibility",void 0);_.N([_.h(),_.A("design:type",Object)],Dl.prototype,"overscrollContain",void 0);_.N([_.q6("#header"),_.A("design:type",HTMLElement)],Dl.prototype,"headerElement",void 0);
_.N([_.q6("#header > *"),_.A("design:type",HTMLElement)],Dl.prototype,"header",void 0);_.N([_.q6("ytd-section-list-renderer"),_.A("design:type",Object)],Dl.prototype,"sectionListRendererElement",void 0);_.N([_.q6("panel-ad-header-image-lockup-view-model"),_.A("design:type",HTMLElement)],Dl.prototype,"adHeaderImageLockupViewModel",void 0);_.N([_.q6("#content"),_.A("design:type",HTMLElement)],Dl.prototype,"contentElement",void 0);
_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dl.prototype,"onYtRendererstamperFinished",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dl.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.N([_.Jv("data","isFullscreen","isTheaterMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dl.prototype,"dataChanged",null);
_.N([_.gx("isTheaterMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dl.prototype,"isTheaterModeChanged",null);_.N([_.gx("isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dl.prototype,"isFullscreenChanged",null);_.N([_.gx("visibility"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Dl.prototype,"visibilityChanged",null);
_.N([_.O({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Dl);
_.m(Dl,"ytd-engagement-panel-section-list-renderer",function(){if(j1N!==void 0)return j1N;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return j1N=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var BMO;var dC=function(){var G=_.C.apply(this,arguments)||this;G.lastRenderedPanelIds=new Set;G.visiblePanels=[];G.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.T(dC,_.C);_.g=dC.prototype;_.g.dataChanged=function(){if(this.data){for(var G=[],H=_.I(this.data),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=void 0,p=void 0,l=(Q=Z)==null?void 0:(p=Q.engagementPanelSectionListRenderer)==null?void 0:p.visibility;p=Q=void 0;((Q=Z)==null?0:(p=Q.engagementPanelSectionListRenderer)==null?0:p.targetId)&&l!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G.push(Z)}this.visiblePanels=G}else this.visiblePanels=[]};
_.g.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}}};
_.g.withoutVisiblePanelById=function(G){return this.visiblePanels.filter(function(H){var Z;return((Z=H.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)!==G})};
_.g.onYtChangeEngagementPanelVisibilityAction=function(G){var H=this,Z=_.X(G,_.P2w);if(this.data&&(Z==null?0:Z.targetId)&&(Z==null?0:Z.visibility)){var Q,p=(Q=this.data.find(function(q){var u;return((u=q.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===Z.targetId}))==null?void 0:Q.engagementPanelSectionListRenderer;
if(p){var l=this.withoutVisiblePanelById(Z.targetId);Z.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(G=this.data.find(function(q){var u;return((u=q.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===Z.targetId}))&&(l=[G].concat(_.OP(l)));
this.hideDelayMs&&Z.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&l.length===0?_.Ui.addJob(function(){p.visibility=Z.visibility;H.visiblePanels=l},10,this.hideDelayMs):(p.visibility=Z.visibility,this.visiblePanels=l);
_.xk(this.hostElement,"yt-engagement-panels-visible-changed",[l])}}};
_.g.onRendererstamperFinished=function(){var G=new Set(this.visiblePanels.map(function(H){var Z;return(Z=H.engagementPanelSectionListRenderer)==null?void 0:Z.targetId}));
this.handlePanelVisibilityChange(G,this.lastRenderedPanelIds);this.lastRenderedPanelIds=G};
_.g.handlePanelVisibilityChange=function(G,H){G=G===void 0?new Set:G;H=H===void 0?new Set:H;if(this.data)for(var Z=_.I(this.data),Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var p=void 0,l=void 0,q=(p=Q)==null?void 0:(l=p.engagementPanelSectionListRenderer)==null?void 0:l.targetId;if(q&&(p=H.has(q),l=G.has(q),q=void 0,!p&&l?(l=p=void 0,q=(p=Q)==null?void 0:(l=p.engagementPanelSectionListRenderer)==null?void 0:l.onShowCommands):p&&!l&&(l=p=void 0,q=(p=Q)==null?void 0:(l=p.engagementPanelSectionListRenderer)==
null?void 0:l.onHideCommands),q))for(Q=_.I(q),q=Q.next();!q.done;q=Q.next())this.ytComponentBehavior.resolveCommand(q.value)}};
dC.prototype.onRendererstamperFinished=dC.prototype.onRendererstamperFinished;dC.prototype.dataChanged=dC.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],dC.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],dC.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],dC.prototype,"lastRenderedPanelIds",void 0);_.N([_.h(),_.A("design:type",Number)],dC.prototype,"hideDelayMs",void 0);_.N([_.h(),_.A("design:type",Array)],dC.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Array)],dC.prototype,"visiblePanels",void 0);_.N([_.h(),_.A("design:type",Boolean)],dC.prototype,"isWatchWhilePanel",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"dataChanged",null);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dC.prototype,"onRendererstamperFinished",null);_.N([_.O({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],dC);
_.m(dC,"ytd-watch-engagement-panels",function(){if(BMO!==void 0)return BMO;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return BMO=G},{mode:1});var JL_;var ex=function(){return _.C.apply(this,arguments)||this};
_.T(ex,_.C);ex.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Is(_.F9(this.hostElement).querySelector("#text"),_.x_t(_.YPN,this.data.companionLegalText))};
ex.prototype.computeAutoScrollEnabled=function(G,H){return G&&!H};
ex.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
ex.prototype.onToggleTap=function(){this.expanded=!this.expanded};
ex.prototype.expandedChanged=ex.prototype.expandedChanged;ex.prototype.dataChanged=ex.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.$7U),_.A("design:type",Object)],ex.prototype,"ytdAutoScrollBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ex.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],ex.prototype,"expanded",void 0);
_.N([_.h({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.A("design:type",Boolean)],ex.prototype,"autoScrollEnabled",void 0);_.N([_.h(),_.A("design:type",String)],ex.prototype,"expanderIcon",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ex.prototype,"dataChanged",null);
_.N([_.gx("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ex.prototype,"expandedChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],ex);
_.m(ex,"ytd-companion-legal-text-renderer",function(){if(JL_!==void 0)return JL_;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JL_=G},{mode:1});var tyY;var nj=function(){var G=_.C.apply(this,arguments)||this;G.buttonUpdate=_.V("web_modern_buttons");G.kevlarWatchGrid=_.V("kevlar_watch_grid");G.centerAlignDescription=_.V("action_companion_center_align_description");G.truncateDomain=_.V("action_companion_truncate_domain");G.enableMonoStyle=_.V("enable_default_mono_cta_migration_web_client");return G};
_.T(nj,_.C);_.g=nj.prototype;_.g.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.g.getOnLayoutVisibleCallback=function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.g.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",nj.JSC$23165_DEFAULT_AD_BADGE_RENDERER);var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.g.getButtonRenderer=function(G){return G.actionButton&&_.X(G.actionButton,_.Yl)?(delete _.X(G.actionButton,_.Yl).navigationEndpoint,_.X(G.actionButton,_.Yl)):{}};
_.g.onClick=function(G){var H=this;if((!_.V("web_modern_buttons")||!_.OO(_.OD(G),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){G=_.UO();var Z=this.getLayoutId();G&&Z&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(Q){(new _.O0(Q)).executeCommand(H.data.navigationEndpoint,Z)}):_.V("kevlar_companion_resolve_command_killswitch")?_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.AZ(this.hostElement,"yt-companion-ad-clicked",["action-companion",Z])}};
_.u4.Object.defineProperties(nj.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.data)==null?0:(H=G.detailsLine)==null?0:(Z=H.adRating)==null?0:Z.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 G,H,Z,Q;return((G=this.data)==null?0:(H=G.detailsLine)==null?0:(Z=H.adRating)==null?0:(Q=Z.ratingIcon)==null?0:Q.iconType)?_.bq(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q;return((G=this.data)==null?0:(H=G.detailsLine)==null?0:(Z=H.texts)==null?0:(Q=Z[0])==null?0:Q.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 G,H;return((G=this.data)==null?0:(H=G.description)==null?0:H.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var G=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return G?G.indexOf("/default_banner")!==-1:!0}}});
nj.prototype.onClick=nj.prototype.onClick;nj.prototype.dataChanged=nj.prototype.dataChanged;nj.JSC$23165_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Zg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],nj.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nj.prototype,"rendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nj.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],nj.prototype,"buttonUpdate",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],nj.prototype,"kevlarWatchGrid",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],nj.prototype,"centerAlignDescription",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],nj.prototype,"truncateDomain",void 0);
_.N([_.h({computed:"computeButtonOverride(buttonUpdate)"}),_.A("design:type",Object)],nj.prototype,"buttonOverride",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],nj.prototype,"enableMonoStyle",void 0);_.N([_.z("data.detailsLine.adRating.ratingText"),_.A("design:type",Object),_.A("design:paramtypes",[])],nj.prototype,"getRating",null);_.N([_.z("getRating"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nj.prototype,"computeRatingHidden",null);
_.N([_.z("data.detailsLine.adRating.ratingIcon.iconType"),_.A("design:type",Object),_.A("design:paramtypes",[])],nj.prototype,"iconType",null);_.N([_.z("data.detailsLine.texts.0.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],nj.prototype,"getDetailsLine",null);_.N([_.z("getDetailsLine"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nj.prototype,"computeDetailsLineHidden",null);
_.N([_.z("data.description.text"),_.A("design:type",Object),_.A("design:paramtypes",[])],nj.prototype,"getDescriptionText",null);_.N([_.z("getDescriptionText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nj.prototype,"computeDescriptionTextHidden",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],nj.prototype,"interactionLoggingClientData",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],nj.prototype,"hideBanner",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nj.prototype,"dataChanged",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],nj.prototype,"onClick",null);_.N([_.O({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],nj);
_.m(nj,"ytd-action-companion-ad-renderer",function(){if(tyY!==void 0)return tyY;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return tyY=G},{mode:_.LH("kevlar_poly_si_batch_j067")?1:2});var k_N;var D1q;var Vl=function(){var G=_.C.apply(this,arguments)||this;G.buttonUpdate=_.V("web_modern_buttons");G.hideLegacyBanner=_.V("enable_dsa_one_click_ata_translators_infeed_elements");G.adInfoButtonStyle="mono";G.adInfoButtonType="text";G.noDotAdBadge=!0;return G};
_.T(Vl,_.C);_.g=Vl.prototype;_.g.getOnLayoutVisibleCallback=function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.g.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 G=this.data.image.thumbnail.thumbnails[0];this.imageSrc=G.url?_.m0(G.url):void 0;this.imageWidth=G.width||0;this.imageHeight=G.height||0}this.data.clickthroughEndpoint&&_.X(this.data.clickthroughEndpoint,_.Hx)&&(G=_.X(this.data.clickthroughEndpoint,_.Hx).url,_.V("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
G||"":G?(G=_.m0(G),this.clickThroughUrl=_.iI(G)):this.clickThroughUrl=void 0);(G=this.getOnLayoutVisibleCallback())&&G()}};
_.g.onClick=function(G){_.OO(_.OD(G),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(G)};
_.g.handleClick=function(){var G=this;this.data&&this.data.clickthroughEndpoint&&(_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(H){G.macroReplacementBehavior.sendServiceRequestAction([H])}),_.AZ(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.g.onLoad=function(){_.xk(this.hostElement,"yt-refit-popups-action")};
_.u4.Object.defineProperties(Vl.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
Vl.prototype.onLoad=Vl.prototype.onLoad;Vl.prototype.onClick=Vl.prototype.onClick;Vl.prototype.dataChanged=Vl.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Vl.prototype,"rendererBehavior",void 0);_.N([_.v(T74.YtMacroReplacementBehavior),_.A("design:type",Object)],Vl.prototype,"macroReplacementBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Vl.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Vl.prototype,"buttonUpdate",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Vl.prototype,"hideLegacyBanner",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Vl.prototype,"adInfoButtonStyle",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Vl.prototype,"adInfoButtonType",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vl.prototype,"macros",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vl.prototype,"interactionLoggingClientData",null);_.N([_.h(),_.A("design:type",String)],Vl.prototype,"clickThroughUrl",void 0);_.N([_.h(),_.A("design:type",_.w0)],Vl.prototype,"imageSrc",void 0);_.N([_.h(),_.A("design:type",Number)],Vl.prototype,"imageWidth",void 0);_.N([_.h(),_.A("design:type",Number)],Vl.prototype,"imageHeight",void 0);_.N([_.h(),_.A("design:type",Object)],Vl.prototype,"noDotAdBadge",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vl.prototype,"dataChanged",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Vl.prototype,"onClick",null);_.N([_.lq("load"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vl.prototype,"onLoad",null);_.N([_.O({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Vl);
_.m(Vl,"ytd-image-companion-renderer",function(){if(D1q!==void 0)return D1q;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return D1q=G},{mode:_.LH("kevlar_poly_si_batch_j067")?1:2});var d1Y;var $D=function(){return _.C.apply(this,arguments)||this};
_.T($D,_.C);_.g=$D.prototype;_.g.dataChanged=function(){this.set("data.adBadge",$D.JSC$23174_DEFAULT_AD_BADGE_RENDERER);if(this.data){var G=this.getOnLayoutVisibleCallback();G&&G()}};
_.g.getOnLayoutVisibleCallback=function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.layoutId:null};
_.g.onCompanionClicked=function(G){this.data&&(G.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.AZ(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.g.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var G=_.UO(),H=this.getLayoutId(),Z=this.data.clickToAdvSiteEndpoint;G&&H&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?G.getPlayerPromise().then(function(Q){(new _.O0(Q)).executeCommand(Z,H)}):_.N5(this.hostElement,"yt-navigate",{endpoint:Z})}};
_.g.sendTrackingPings=function(G){if(G&&G.length!==0&&G[0].loggingUrls&&(G=G[0].loggingUrls.map(this.getBaseUrl)))for(var H=0;H<G.length;H++)_.G_(G[H])};
_.g.getBaseUrl=function(G){return G.baseUrl||""};
_.u4.Object.defineProperties($D.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var G=_.GF("yt.www.ads.eventcache.getLastCompanionData");return G?(G=G())&&G.interactionLoggingClientData:null}}});
$D.prototype.onCompanionClicked=$D.prototype.onCompanionClicked;$D.prototype.dataChanged=$D.prototype.dataChanged;$D.JSC$23174_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Zg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$D.prototype,"data",void 0);_.N([_.q6("#title"),_.A("design:type",HTMLElement)],$D.prototype,"shopTitle",void 0);
_.N([_.Jv("data.impressionEndpoints"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$D.prototype,"dataChanged",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],$D.prototype,"interactionLoggingClientData",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],$D.prototype,"onCompanionClicked",null);
_.N([_.O({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],$D);
_.m($D,"ytd-shopping-companion-renderer",function(){if(d1Y!==void 0)return d1Y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return d1Y=G},{mode:1});_.RX(_.y(function(G){var H=G.data;G=_.tk({visibilityCallback:function(Q){var p,l=(p=H().interaction)==null?void 0:p.onFirstVisible;Q&&l&&_.zt(l)},
showOption:_.ux});var Z=_.fG(function(){return H().interaction},Ou0);
_.RM(function(){var Q,p;p=(p=_.GF("yt.www.ads.eventcache.getLastCompanionData"))?(p=p())&&p.onLayoutVisibleCallback:null;(Q=p)==null||Q()},"Dn");
return _.J("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Hh(function(Q){_.xk(Q.currentTarget,"yt-refit-popups-action")}),
el:_.aX(G,Z),"aria-label":function(){var Q,p;return(Q=H().interaction)==null?void 0:(p=Q.accessibility)==null?void 0:p.label}},_.J("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.J(_.SP,{data:function(){return H().adImage}},{adImageViewModel:function(Q){return _.J(_.PR,{data:Q.data,
targetHeight:80,customCommandResolver:Ou0})}})),_.J("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.J("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.J(_.SP,{data:function(){return H().adBadge}},{adBadgeViewModel:function(Q){return _.J(_.nJ,{data:Q.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.J("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.J(_.SP,{data:function(){return H().menu}},{buttonViewModel:_.kg}))))},"En"),"banner-image-layout-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;G=_.tk({visibilityCallback:function(Q){var p,l=(p=H().interaction)==null?void 0:p.onFirstVisible;Q&&l&&_.zt(l)},
showOption:_.ux});var Z=_.fG(function(){return H().interaction},aSd);
_.RM(function(){var Q,p;p=(p=_.GF("yt.www.ads.eventcache.getLastCompanionData"))?(p=p())&&p.onLayoutVisibleCallback:null;(Q=p)==null||Q()},"Fn");
return _.J("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.aX(G,Z)},_.J("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.J(_.SP,{data:function(){return H().adImage}},{adImageViewModel:function(Q){return _.J(_.PR,{data:Q.data,
targetHeight:80,customCommandResolver:aSd})}})),_.J("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.J("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.J(_.SP,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(Q){return _.J(qNO,{data:Q.data,
customCommandResolver:aSd})}})),_.J(_.SP,{data:function(){return H().adButton}},{adButtonViewModel:function(Q){return _.J(_.Jz,{data:Q.data,
customCommandResolver:aSd})}}),_.J("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.J(_.SP,{data:function(){return H().menu}},{buttonViewModel:_.kg}))))},"Gn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.b3}});var el2={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"},XJ=function(){var G=_.C.apply(this,arguments)||this;G.updateCompanionDataJobId=0;G.contentVideoId=null;G.player=null;G.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return G};
_.T(XJ,_.C);_.g=XJ.prototype;_.g.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:el2}}};
_.g.attached=function(){var G=this,H=_.UO();H&&H.getPlayerPromise().then(function(Z){G.getCachedDataAndListen(Z)})};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.g.updateRendererStamper=function(){var G={};if(this.data)for(var H in el2)if(this.data[H]){G[H]=this.data[H];break}if(this.oneofRenderer!=void 0||Object.keys(G).length)this.oneofRenderer=G};
_.g.getCachedDataAndListen=function(G){var H=this.retrieveCachedCompanionData();H&&Object.keys(H).length&&this.receiveCompanionData(H);this.ytPlayerListenerBehavior.listenToPlayerEvent(G,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=G};
_.g.retrieveCachedCompanionData=function(){return _.Qf.yt&&_.Qf.yt.www&&_.Qf.yt.www.ads&&_.Qf.yt.www.ads.eventcache&&_.Qf.yt.www.ads.eventcache.getLastCompanionData?_.Qf.yt.www.ads.eventcache.getLastCompanionData():null};
_.g.receiveCompanionData=function(G){G&&Object.keys(G).length?(this.contentVideoId=G.contentVideoId,this.setCompanionData(G)):this.setCompanionData(G)};
_.g.setCompanionData=function(G){this.cancelPendingCompanionAdJobs();if(G){this.updateCompanionDataJobId=0;for(var H in el2)el2.hasOwnProperty(H)&&(this.data[H]=void 0);G.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",G.shoppingCompanionCarouselRenderer):G.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",G.imageCompanionAdRenderer):G.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",G.actionCompanionAdRenderer),_.xk(this.hostElement,
"yt-hide-unlimited-offer-module"),_.xk(this.hostElement,"yt-hide-tvfilm-offer-module")):G.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",G.bannerImageLayoutViewModel):G.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",G.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.g.dataChanged=function(){var G=this,H=_.UO();H?H.getPlayerPromise().then(function(Z){G.contentVideoId&&Z.getVideoUrl().includes("v="+G.contentVideoId)||(G.cancelPendingCompanionAdJobs(),G.updateRendererStamper())}):_.HU(Error("Wo"))};
_.g.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Ui.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.g.handleCompanionAdClicked=function(G,H){this.player.onAdUxClicked(G,H);this.player.pauseVideo()};
XJ.prototype.dataChanged=XJ.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],XJ.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],XJ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],XJ.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],XJ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],XJ.prototype,"oneofRenderer",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XJ.prototype,"dataChanged",null);_.N([_.O({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],XJ);
_.m(XJ,"ytd-companion-slot-renderer",function(){if(k_N!==void 0)return k_N;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return k_N=G},{mode:_.LH("kevlar_poly_si_batch_j067")?
1:2});var nJN;var cH=function(){return _.C.apply(this,arguments)||this};
_.T(cH,_.C);cH.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
cH.prototype.dataChanged=cH.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cH.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],cH.prototype,"companionSlotData",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cH.prototype,"dataChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],cH);
_.m(cH,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(nJN!==void 0)return nJN;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return nJN=G},{mode:1});var Vy7;var Tr=function(){var G=_.C.apply(this,arguments)||this;G.skinnyMode=!1;G.COMPACT_EVENT_COUNT=4;G.onShelfToggleButtonTap=function(){G.logTap(G.data);G.showingMore=!G.showingMore};
G.onShelfToggleButtonFocus=function(){G.showingMore||(G.logTap(G.data),G.showingMore=!0,_.q2(G,function(){var H=G.COMPACT_EVENT_COUNT-1,Z;(Z=_.F9(G.hostElement).querySelector("#event-"+H))==null||Z.focus()}))};
return G};
_.T(Tr,_.C);_.g=Tr.prototype;_.g.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.g.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.g.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.pH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.pH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.pH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.pH(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.pH(this.infoTooltip,this.infoTooltip.hide))};
_.g.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.pH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.pH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.pH(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.pH(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.pH(this.infoTooltip,this.infoTooltip.hide))};
_.g.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)};
_.g.onShowingMoreChanged=function(){var G;this.showingMoreChanged((G=this.showingMore)!=null?G:!1)};
_.g.showingMoreChanged=function(G){var H=this.get("data.events")||[];this.set("restEvents",H.slice(1,G?H.length:this.COMPACT_EVENT_COUNT).map(function(Z){return Z.ticketEventRenderer}));
H.slice(0,G?H.length:this.COMPACT_EVENT_COUNT).forEach(function(Z){var Q=_.$k();Z=Z.ticketEventRenderer.trackingParams;_.Va()&&Q&&Z&&(Z=_.BT(Z),Q&&_.r8(Q,Z))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.g.computeAriaLabel=function(G){return G.subtitle1+", "+G.subtitle2};
_.g.logTap=function(G){_.Va()&&this.ytRendererBehavior.logExplicitClick(G)};
_.g.isKeyboardAction=function(G){return this.get("detail.x",G)===0&&this.get("detail.y",G)===0};
_.g.onFirstEventTap=function(G){G.target&&this.handleTap(G.target,this.firstEvent,this.isKeyboardAction(G))};
_.g.onTicketLinkTap=function(G){G.target&&this.handleTap(G.target,G.model.item,this.isKeyboardAction(G))};
_.g.handleTap=function(G,H,Z){if(H.buttonCommand)if(H.hasMultipleOffers)Object.assign(_.X(H.buttonCommand,_.Pe),{properties:{source:Z?"keyboard":"tap"}}),this.logTap(H),this.popupPositionTarget=G,_.El(this.hostElement,[H.buttonCommand],this.hostElement);else{var Q;if((Q=_.X(H.buttonCommand,_.Hx))==null?0:Q.url)this.logTap(H),_.Hg(window,_.X(H.buttonCommand,_.Hx).url)}};
Tr.prototype.onShowingMoreChanged=Tr.prototype.onShowingMoreChanged;Tr.prototype.dataChanged=Tr.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Tr.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Tr.prototype,"firstEvent",void 0);_.N([_.h(),_.A("design:type",Object)],Tr.prototype,"restEvents",void 0);_.N([_.h(),_.A("design:type",String)],Tr.prototype,"imageUrl",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Tr.prototype,"showingMore",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Tr.prototype,"canShowMore",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Tr.prototype,"skinnyMode",void 0);_.N([_.h(),_.A("design:type",HTMLElement)],Tr.prototype,"popupPositionTarget",void 0);_.N([_.q6("#banner-info-tooltip"),_.A("design:type",Object)],Tr.prototype,"infoTooltip",void 0);
_.N([_.q6("#info-container"),_.A("design:type",HTMLElement)],Tr.prototype,"infoContainer",void 0);_.N([_.q6("#shelf-toggler"),_.A("design:type",HTMLElement)],Tr.prototype,"shelfToggleButton",void 0);_.N([_.q6("#separator"),_.A("design:type",HTMLDivElement)],Tr.prototype,"separator",void 0);_.N([_.h(),_.A("design:type",String)],Tr.prototype,"shelfTogglerLabelText",void 0);_.N([_.h(),_.A("design:type",String)],Tr.prototype,"shelfTogglerIcon",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tr.prototype,"dataChanged",null);_.N([_.Jv("showingMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tr.prototype,"onShowingMoreChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Tr);
_.m(Tr,"ytd-ticket-shelf-renderer",function(){if(Vy7!==void 0)return Vy7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Vy7=G},{mode:1});var $1y;var XW2;var cLU=function(){return _.C.apply(this,arguments)||this};
_.T(cLU,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cLU.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cLU.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],cLU);
_.m(cLU,"ytd-comments-entry-point-message-renderer",function(){if(XW2!==void 0)return XW2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return XW2=G},{mode:1});var TMy;var fj=function(){return _.C.apply(this,arguments)||this};
_.T(fj,_.C);_.u4.Object.defineProperties(fj.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.teaserAvatar)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fj.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fj.prototype,"hasAvatar",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],fj);
_.m(fj,"ytd-comments-entry-point-teaser-renderer",function(){if(TMy!==void 0)return TMy;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TMy=G},{mode:1});var fvN;var vJy=function(){return _.C.apply(this,arguments)||this};
_.T(vJy,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vJy.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vJy.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],vJy);
_.m(vJy,"ytd-comments-simplebox-renderer",function(){if(fvN!==void 0)return fvN;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fvN=G},{mode:1});var vH=function(){var G=_.C.apply(this,arguments)||this;G.fullHeight=!_.V("comment_teaser_full_height_kill_switch")&&_.V("kevlar_watch_grid");return G};
_.T(vH,_.C);vH.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"}}}};
vH.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
vH.prototype.onTap=function(){var G=this.tapCommand;G&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(G))};
vH.prototype.onKeyUp=function(G){if(G.keyCode===13)this.onTap()};
_.u4.Object.defineProperties(vH.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.onTap)return this.data.onTap;var H,Z;if(((H=this.data)==null?0:H.teaserContent)||((Z=this.data)==null?0:Z.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)!=null&&G.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
vH.prototype.onKeyUp=vH.prototype.onKeyUp;vH.prototype.onTap=vH.prototype.onTap;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],vH.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vH.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vH.prototype,"fullHeight",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vH.prototype,"tapCommand",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vH.prototype,"simpleboxPlaceholder",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vH.prototype,"hasSimpleboxPlaceholder",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vH.prototype,"simpleboxAvatar",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vH.prototype,"teaserContent",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vH.prototype,"hasTeaserContent",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vH.prototype,"teaserAvatar",null);
_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vH.prototype,"hasTeaserAvatar",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vH.prototype,"messageText",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],vH.prototype,"contentRenderer",null);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vH.prototype,"hasContents",null);
_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vH.prototype,"hasContentRenderer",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vH.prototype,"onTap",null);_.N([_.lq("keypress"),_.A("design:type",Function),_.A("design:paramtypes",[_.dl]),_.A("design:returntype")],vH.prototype,"onKeyUp",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],vH);
_.m(vH,"ytd-comments-entry-point-header-renderer",function(){if($1y!==void 0)return $1y;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $1y=G},{mode:1});var WeM;_.RX(_.hwR,"yt-animated-rolling-number",{props:{numberText:_.b3,numberValue:_.b3,heightPx:_.b3,fontSizeMultiplier:_.b3,shouldAnimate:_.b3,forceRollUp:_.b3}});var zl0=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Key={numberText:"",heightPx:2*zl0,shouldAnimate:!1},WH=function(){var G=_.C.apply(this,arguments)||this;G.usingAnimatedComponents=!0;G.wasDetailed=!1;G.JSC$23211_browserSupportsAnimation=_.V("web_supports_animations_api");G.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};G.detailed=!1;G.shouldAnimate=!1;G.viewCountProps=Key;G.dateTextProps=
Key;G.metadataBadgesInDescription=_.V("web_metadata_badges_in_description");return G};
_.T(WH,_.C);_.g=WH.prototype;_.g.attached=function(){var G=this;_.tp().resolve(_.ug).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(H){G.set("videoPrimaryInfoRenderer.subtitle",H)})};
_.g.detached=function(){_.tp().resolve(_.ug).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.g.resetAnimationState=function(){this.shouldAnimate=!1};
_.g.updateDynamicMetadata=function(){if(this.JSC$23211_browserSupportsAnimation){if(!this.detailed){var G,H,Z,Q;var p=(G=this.videoPrimaryInfoRenderer)==null?void 0:(H=G.viewCount)==null?void 0:(Z=H.videoViewCountRenderer)==null?void 0:(Q=Z.extraShortViewCount)==null?void 0:Q.simpleText;var l,q,u,B;var t=(l=this.videoPrimaryInfoRenderer)==null?void 0:(q=l.viewCount)==null?void 0:(u=q.videoViewCountRenderer)==null?void 0:(B=u.shortViewCount)==null?void 0:B.simpleText}if(!t){var D,d,e,n;p=(D=this.videoPrimaryInfoRenderer)==
null?void 0:(d=D.viewCount)==null?void 0:(e=d.videoViewCountRenderer)==null?void 0:(n=e.unlabeledViewCountValue)==null?void 0:n.simpleText;var c,W,M,r;t=(c=this.videoPrimaryInfoRenderer)==null?void 0:(W=c.viewCount)==null?void 0:(M=W.videoViewCountRenderer)==null?void 0:(r=M.viewCount)==null?void 0:r.simpleText}var w,x,U;G=Number((w=this.videoPrimaryInfoRenderer)==null?void 0:(x=w.viewCount)==null?void 0:(U=x.videoViewCountRenderer)==null?void 0:U.originalViewCount);var R,L;w=(R=this.videoPrimaryInfoRenderer)==
null?void 0:(L=R.relativeDateText)==null?void 0:L.simpleText;var H3;R=!((H3=this.videoPrimaryInfoRenderer)==null||!H3.relativeDateText);if(p&&t&&G&&(w||!R)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;H3=t.split(new RegExp("("+p+")"));p=_.aq(H3[0]);var qX;t={numberText:(qX=H3[1])!=null?qX:"",numberValue:G,heightPx:2*zl0,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var B3;qX=((B3=H3[2])!=null?B3:"")+"  ";this.setViewCount(t,p,_.aq(qX));
if(!this.detailed&&R){p=w.split(/(\d+)/);B3=_.aq(p[0]);var fW;qX={numberText:(fW=p[1])!=null?fW:"",heightPx:2*zl0,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var e2;fW=((e2=p[2])!=null?e2:"")+"  ";this.setDateText(qX,B3,_.aq(fW))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.g.setViewCount=function(G,H,Z){_.yn(H)!==_.yn(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=H);this.viewCountProps.numberText!==(G==null?void 0:G.numberText)&&(this.viewCountProps=G||Key);_.yn(Z)!==_.yn(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=Z)};
_.g.setDateText=function(G,H,Z){_.yn(H)!==_.yn(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=H);this.dateTextProps.numberText!==(G==null?void 0:G.numberText)&&(this.dateTextProps=G||Key);_.yn(Z)!==_.yn(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=Z)};
_.g.onYtUpdateViewershipAction=function(G){this.videoPrimaryInfoRenderer&&(_.X(G,sz0).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.X(G,sz0).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.X(G,sz0).viewCount)))};
_.g.onYtUpdateDateTextAction=function(G){if(this.videoPrimaryInfoRenderer){G=_.X(G,_.GIy).dateText;this.shouldAnimate=!0;var H;((H=this.videoPrimaryInfoRenderer)==null?0:H.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",G):this.set("videoPrimaryInfoRenderer.dateText",G)}};
_.u4.Object.defineProperties(WH.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return RK_(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.yn(RK_(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.yn(this.viewCountPreNumberText),this.viewCountProps.numberText,_.yn(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.yn(this.dateTextPreNumberText),this.dateTextProps.numberText,_.yn(this.dateTextPostNumberText)].join("")}}});
WH.prototype.updateDynamicMetadata=WH.prototype.updateDynamicMetadata;WH.prototype.resetAnimationState=WH.prototype.resetAnimationState;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],WH.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],WH.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],WH.prototype,"videoPrimaryInfoRenderer",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WH.prototype,"detailed",void 0);_.N([_.h(),_.A("design:type",Object)],WH.prototype,"shouldAnimate",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WH.prototype,"viewCountPreNumberText",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WH.prototype,"viewCountProps",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WH.prototype,"viewCountPostNumberText",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WH.prototype,"dateTextPreNumberText",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WH.prototype,"dateTextProps",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WH.prototype,"dateTextPostNumberText",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],WH.prototype,"metadataBadgesInDescription",void 0);_.N([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.A("design:type",Object),_.A("design:paramtypes",[])],WH.prototype,"infoText",null);
_.N([_.z("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.A("design:type",String),_.A("design:paramtypes",[])],WH.prototype,"descriptionInfoTooltipText",null);_.N([_.z("detailed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],WH.prototype,"showDescriptionInfoTooltip",null);
_.N([_.z("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.A("design:type",String),_.A("design:paramtypes",[])],WH.prototype,"animatedViewCountAccessibilityLabel",null);_.N([_.z("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.A("design:type",String),_.A("design:paramtypes",[])],WH.prototype,"animatedDateTextAccessibilityLabel",null);
_.N([_.gx("videoPrimaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WH.prototype,"resetAnimationState",null);_.N([_.gx("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],WH.prototype,"updateDynamicMetadata",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-watch-info-text"})],WH);
_.m(WH,"ytd-watch-info-text",function(){if(WeM!==void 0)return WeM;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WeM=G},{mode:1});var MyI;var jpN="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Pc0=_.y(function(G){var H=G.data;var Z=G.setTapCommand;_.yN(function(){var Q=_.Tt(H().onTap);Z(Q)},"CLm0Xe");
return _.J("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.J(_.SP,{data:function(){return H().avatar}},{avatarViewModel:_.m9}),_.J("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.J("span",null,function(){return H().simpleboxText})))},"In");var rL_=_.y(function(G){return _.J("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.J(_.k,{cond:function(){return _.X(G.data().avatar,_.Xu)},
then:function(H){return _.J(_.m9,{data:H,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.J("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.J(_.Fe,{text:function(){return G.data().teaserText}})))},"Jn");var wW2=_.y(function(G){var H=G.data;var Z=G.setTapCommand;_.yN(function(){var Q=_.Tt(H().onTap);Z(Q)},"qxjCCd");
return _.J("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.J(_.SP,{data:function(){return H().teasers}},{commentsEntryPointTeaserViewModel:rL_}))},"Ln");var hlN=_.y(function(G){var H=G.data;var Z=G.setTapCommand;_.yN(function(){var Q=_.Tt(H().onTap);Z(Q)},"CRZByf");
return _.J("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.J(_.Fe,{text:function(){return H().messageText}}))},"Nn");var Ccx=_.y(function(G){var H=G.data;var Z=G.setTapCommand;var Q=G.isDisabled;_.yN(function(){var p=(Q==null?0:Q())?void 0:_.Tt(H().onTap);Z(p)},"GZxRqd");
return _.J("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.J(_.ll,{icon:function(){return H().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.J(_.k,{cond:function(){return H().image},
then:function(p){return _.J(_.ib,{data:p,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.J(_.Fe,{text:function(){return H().text},
className:function(){return H().image||H().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.J(_.SP,{data:function(){return H().button}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:Q==null?void 0:Q()}}})}}))},"Pn");var iTI=_.y(function(G){var H=G.data;var Z=G.itemIndex;var Q=G.selectedIndex;var p=G.indexUpdatedCallback;var l=G.observer;G=G.title;var q=_.IA("yt-carousel-item-view-model",function(d){l&&l().observe(d)}),u=function(d){Z()===Q()&&p(d)},B=_.SQ(DjY),t=_.SQ(_.p0o),D=function(){var d,e,n,c,W;
return((d=H())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!B()||((e=H())==null?void 0:e.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((n=t())==null?void 0:n.includes("PAposts_by_host"))||((c=H())==null?void 0:c.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((W=t())==null?void 0:W.includes("PAyouchat"))};
return _.J("yt-carousel-item-view-model",{el:q,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":G},_.J(_.SP,{data:function(){var d,e;return(e=(d=_.X(H().carouselItem,TnU))==null?void 0:d.textCarousel)!=null?e:H().carouselItem}},{textCarouselItemViewModel:function(d){return _.J(Ccx,{data:d.data,
setTapCommand:u,isDisabled:D})},
commentTeaserCarouselItemViewModel:function(d){return _.J(wW2,{data:d.data,setTapCommand:u})},
commentInputBoxCarouselItemViewModel:function(d){return _.J(Pc0,{data:d.data,setTapCommand:u})},
commentsEntryPointMessageViewModel:function(d){return _.J(hlN,{data:d.data,setTapCommand:u})}}))},"Qn");var OT4=_.y(function(G){var H=G.numDots;var Z=G.activeIndex;return _.J("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.J(_.Cl,{each:function(){return Array.from({length:H()})},
keyBy:"INDEX"},function(Q,p){return _.J("div",{class:function(){var l={};return _.Dq("ytCarouselDotsShapeDot",(l.ytCarouselDotsShapeDotActive=p===Z(),l))}})}))},"Rn");var avO=_.y(function(G){var H=G.data;var Z=G.handleCarouselNavigation;var Q=G.numItems;var p=G.selectedIndex;var l=function(){return{disabled:p()===0}},q=function(){return{disabled:p()===Q()-1}};
return _.J("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.J("div",null,_.J("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return H().title}),_.J(_.k,{cond:function(){return H().subtitle},
then:function(u){return _.J("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return H().subtitleAccessibilityText}},u)}})),_.J(_.k,{cond:function(){return Q()>1},
then:function(){return _.J("div",{class:"ytCarouselTitleViewModelNavigation"},_.J(OT4,{numDots:Q,activeIndex:p}),_.J(_.k,{cond:function(){return H().previousButton},
then:function(u){return _.J(_.SP,{data:u},{buttonViewModel:function(B){return _.J(_.kg,{data:B.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return Z(-1)},
buttonOverrides:l})}})}}),_.J(_.k,{cond:function(){return H().nextButton},
then:function(u){return _.J(_.SP,{data:u},{buttonViewModel:function(B){return _.J(_.kg,{data:B.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return Z(1)},
buttonOverrides:q})}})}}))}}))},"Sn");_.RX(_.y(function(G){var H=G.data;var Z,Q=_.IA("yt-video-metadata-carousel-view-model"),p=_.IA("div",function(R){var L=function(){var H3=R.offsetWidth*W(),qX=24*(W()-1);e(H3+qX)};
L();window.ResizeObserver&&(Z=new ResizeObserver(L),Z.observe(R))}),l=_.xI("HTML_DIR")==="rtl",q=!1,u=0,B=0;
G=_.I(_.Ty(0,void 0,"M49TDf"));var t=G.next().value,D=G.next().value;G=_.I(_.Ty(0,void 0,"zLIok"));var d=G.next().value,e=G.next().value;G=_.I(_.Ty(!1,void 0,"bhelhc"));var n=G.next().value,c=G.next().value,W=function(){var R,L,H3;return(H3=(R=H())==null?void 0:(L=R.carouselTitles)==null?void 0:L.length)!=null?H3:0},M=function(){p.value&&p.value.scrollLeft!==u&&D((l?p.value.scrollLeft<u:p.value.scrollLeft>u)?Math.min(t()+1,W()-1):Math.max(t()-1,0))},r;
window.IntersectionObserver&&(r=new IntersectionObserver(function(R){R=_.I(R);for(var L=R.next();!L.done;L=R.next())if(L.value.isIntersecting){if(q){q=!1;break}M()}else D(B)},{threshold:.2}));
_.yN(function(){if(p.value){var R=(l?-1:1)*(d()/W()+12)*(n()&&r?B:t());typeof p.value.scrollTo==="function"?p.value.scrollTo({left:R,behavior:"smooth"}):p.value.scrollLeft=R;u=R;B=n()&&r?B:t()}},"s9rbgc");
var w,x=function(R){w=R};
_.oM(function(){var R;(R=Z)==null||R.disconnect();var L;(L=r)==null||L.disconnect()});
var U=function(R){R=t()+R;R>=0&&R<W()&&(q=!0,D(R))};
return _.J("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:Q,"on:click":_.Hh(function(R){if(_.eP(_.du(R),Q.value,["BUTTON".toString()])||!w)return!1;_.tp().resolve(_.Dk).resolveCommand(w,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Hh(function(){c(!0);return!1}),
"on:touchend":_.Hh(function(){r||M();c(!1);return!1}),
hidden:function(){var R,L;return!((R=H())==null?0:(L=R.carouselItems)==null?0:L.length)}},_.J("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.J(_.k,{cond:function(){return H().carouselTitles},
then:function(R){return _.J(_.SP,{data:function(){return R()[n()&&r?B:t()]}},{carouselTitleViewModel:function(L){return _.J(avO,{data:L.data,
handleCarouselNavigation:U,numItems:W,selectedIndex:t})}})}})),_.J("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:p},_.J("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+d()+"px;"}},_.J(_.k,{cond:function(){return H().carouselItems},
then:function(R){return _.J(_.Cl,{each:R},function(L,H3){return _.J(_.SP,{data:function(){return L}},{carouselItemViewModel:function(qX){return _.J(iTI,{data:qX.data,
itemIndex:H3,selectedIndex:t,indexUpdatedCallback:x,observer:r,title:function(){a:{var B3=H3();var fW,e2=(fW=H())==null?void 0:fW.carouselTitles;if(e2&&(B3=e2[B3])){var $R;B3=($R=_.X(B3,cs0))==null?void 0:$R.title;break a}B3=void 0}return B3}})}})})}}))))},"Un"),"yt-video-metadata-carousel-view-model",{props:{data:_.b3}});var yLM=_.V("web_action_buttons_update_owner_width")?32:12,zr=function(){var G=_.C.apply(this,arguments)||this;G.isHovering=!1;G.enableColorSampling=_.V("web_delhi_colorful_sd");G.metadataBadgesInDescription=_.V("web_metadata_badges_in_description");G.descriptionCollapsed=!0;G.useFadedScrimDescription=_.V("kevlar_enable_faded_scrim_on_description");G.skinnyMode=!1;G.playlist=!1;G.isDark=document.documentElement.hasAttribute("dark");G.disableVideoOwnerOnTap=_.V("swatchie_video_owner_on_tap_ks");G.swatcherooDelayLoad=
_.V("swatcheroo_enable_ghost_cards");G.primaryMenuWidth=0;G.videoId="";G.titleHeadlineXs=_.V("web_watch_typography_title_headline_xs");G.titleHeadlineS=_.V("web_watch_typography_title_headline_s");G.titleHeadlineM=_.V("web_watch_typography_title_headline_m");G.titleHashtagBlackLinkified=_.V("web_title_hashtag_black_linkified");G.titleHashtagGreyLinkified=_.V("web_title_hashtag_grey_linkified");G.actionButtonsUpdateOwnerWidth=_.V("web_action_buttons_update_owner_width");G.shouldForceIconOnly=!1;G.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};G.isFullscreen=!1;G.isTheaterMode=!1;return G};
_.T(zr,_.C);_.g=zr.prototype;_.g.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.g.updateOwnerAndDescriptionPosition=function(){_.V("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.ww(this.bottomRowElement,this.ownerElement)):(_.ww(this.bottomRowElement,this.descriptionElement),_.ww(this.topRowElement,this.ownerElement)))};
_.g.titleOnTap=function(G){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.OO(_.OD(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||this.handleExpandDescriptionCommands()}};
_.g.videoOwnerOnTap=function(G){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.OO(_.OD(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.g.detached=function(){var G=this,H;return _.S(function(Z){(H=G.resizeObserver)==null||H.disconnect();_.K0(Z)})};
_.g.maybeAttachResizeObserver=function(){var G=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Zo(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){G.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.g.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var G=this.hostElement.clientWidth,H=Math.max(this.largerItemWrap?400:350,G/2-yLM);_.V("web_action_buttons_update_owner_width")&&(H=this.ownerElement.clientWidth+yLM);this.actionsOnSeparateLine=this.primaryMenuWidth>G-H?!0:!1}};
_.g.stripAttributedDescription=function(G){return{content:G.content.replace(/[\r\n]{2,}/g,"\n")}};
_.g.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.V("web_modern_buttons"),forceIconButton:!_.V("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:_.V("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.g.videoPrimaryInfoRendererChanged=function(){var G;if((G=this.videoPrimaryInfoRenderer)==null?0:G.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.g.videoSecondaryInfoRendererChanged=function(){var G,H;(G=this.descriptionInlineExpander)==null||(H=G.collapse)==null||H.call(G);this.descriptionExpandClientVe=_.bl(110509);this.descriptionCollapseClientVe=_.bl(110510);G=_.$k();H=_.Va();G&&H&&(_.V("combine_ve_grafts")?(_.fQ(_.gr(),this.descriptionExpandClientVe,H),_.fQ(_.gr(),this.descriptionCollapseClientVe,H)):_.PA(G,H,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.g.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.g.updateTopLevelIconsOnly=function(){var G=this;_.V("top_level_update_killswitch")||this.menu&&_.Ui.addLowPriorityJob(function(){G.menu.topLevelIconsOnly=G.skinnyMode},_.eA("swathceroo_delay_flexible_menu_update",100))};
_.g.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.V("web_action_buttons_minimize_subscribe")};
_.g.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.g.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.g.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.g.onYtTextInlineExpanderExpandedChanged=function(){if(!_.V("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var G,H;(H=(G=this.structuredDescriptionContentRendererElement).resize)==null||H.call(G)}};
_.g.onRenderStamperFinished=function(G){(G==null?void 0:G.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.g.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.g.onYtExpanderLessTapped=function(){var G,H=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showLessCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.g.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.g.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.g.onDescriptionClick=function(G){if(!_.OO(_.OD(G)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.V("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.g.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.g.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.g.logCollapseClick=function(){var G=_.$k();G&&this.descriptionCollapseClientVe&&_.Co(G,this.descriptionCollapseClientVe)};
_.g.logExpandClick=function(){var G=_.$k();G&&this.descriptionExpandClientVe&&_.Co(G,this.descriptionExpandClientVe)};
_.g.collapseDescription=function(){this.descriptionCollapsed=!0};
_.g.scrollToTopOfContainer=function(){_.AZ(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.g.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.g.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.g.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.g.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var G,H;(H=(G=this.descriptionInlineExpander).resize)==null||H.call(G)}else _.Rp(new _.C$("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var Z;(Z=this.menu)==null||Z.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.g.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var G,H,Z,Q,p=_.V("web_action_buttons_update_owner_width")?(Z=(G=_.F9(this.menu).querySelector("#button-shape"))==null?void 0:G.clientWidth)!=null?Z:0:(Q=(H=_.F9(this.menu).querySelector("#button"))==null?void 0:H.clientWidth)!=null?Q:0,l,q;G=((q=(l=_.F9(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:l.clientWidth)!=null?q:0)+8+p;var u,B;p=(B=(u=_.F9(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:u.children.length)!=null?B:2;G<=8*p||(this.primaryMenuWidth=G)}};
_.g.onYtUpdateTitleAction=function(G){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.X(G,Hly).title)};
_.g.onYtUpdateDescriptionAction=function(G){if(G=_.X(G,_.rix)){var H,Z=!((H=this.videoSecondaryInfoRenderer)==null||!H.attributedDescription);G.isEmpty||!G.description&&!G.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):G.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",G.attributedDescription):G.description&&(Z?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Vw(G.description)):this.set("videoSecondaryInfoRenderer.description",G.description))}};
_.g.onYtDarkModeToggledAction=function(G){this.isDark=G};
_.g.registerPanel=function(){if(!_.V("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var G=_.V("web_watch_imax_theater_mode")&&this.isTheaterMode;G=_.V("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||G;var H=_.tp().resolve(_.iU);H&&!G&&H.registerPanel("engagement-panel-structured-description",this)}};
_.g.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.g.parseColorSamplingData=function(){var G;if(_.V("web_delhi_colorful_sd")&&((G=this.structuredDescriptionContentRenderer)==null?0:G.items)&&(G=this.structuredDescriptionContentRenderer.items.find(function(p){return!!_.X(p,h2)}))){var H,Z;
this.hoverColor={lightTheme:(H=_.X(G,h2))==null?void 0:H.lightThemeColorPalette,darkTheme:(Z=_.X(G,h2))==null?void 0:Z.darkThemeColorPalette};var Q;this.hoverText=(Q=_.X(G,h2))==null?void 0:Q.colorSampledDescriptionBodyText}};
_.g.updateHoverColor=function(){if(_.V("web_delhi_colorful_sd")){var G=this.hoverColor,H={},Z;G=(Z=this.isDark?G==null?void 0:G.darkTheme:G==null?void 0:G.lightTheme)!=null?Z:{};Z=_.I(jpN);for(var Q=Z.next();!Q.done;Q=Z.next()){Q=Q.value;var p=G[Q];H["--yt-saturated-"+_.ZQ(Q)]=p?_.c$(p):"initial"}_.ZI(this.hostElement,H)}};
_.g.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.g.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.g.showPanel=function(G){this.expandDescription();var H=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;H.resize();var Z,Q=G==null?void 0:(Z=G.sectionListEngagementPanelExtras)==null?void 0:Z.scrollToItemSectionIdentifier;Q?_.Ui.addJob(function(){H==null||H.scrollToSection(Q)},8):this.scrollToTopOfContainer()};
_.g.isVisible=function(){return!this.descriptionCollapsed};
_.g.getReloadContinuation=function(){};
_.g.hidePanel=function(){};
_.g.updatePanel=function(){};
_.u4.Object.defineProperties(zr.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var G;return _.V("web_delhi_colorful_sd")&&(G=this.structuredDescriptionContentRenderer)!=null&&G.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(H){return!_.X(H,h2)&&!_.X(H,ptY)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.structuredDescriptionContentRendererComputed)!=null&&G.items){var H;G=_.I((H=this.structuredDescriptionContentRendererComputed)==null?void 0:H.items);for(H=G.next();!H.done;H=G.next())if(H=_.X(H.value,_.TWw))return H}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoPrimaryInfoRenderer)==null?0:G.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!!((G=this.videoSecondaryInfoRenderer)==null?0:(H=G.owner)==null?0:(Z=H.videoOwnerRenderer)==null?0:Z.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var G,H;if((G=this.videoSecondaryInfoRenderer)==null?0:(H=G.attributedDescription)==null?0:H.content){var Z,Q;return(Q=this.stripAttributedDescription((Z=this.videoSecondaryInfoRenderer)==null?void 0:Z.attributedDescription))!=null?Q:{runs:[]}}}if(_.V("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var p,l,q,u;return(u=(q=(p=this.videoSecondaryInfoRenderer)==
null?void 0:p.description)!=null?q:(l=this.videoSecondaryInfoRenderer)==null?void 0:l.attributedDescription)!=null?u:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.headerRuns)!=null?H:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.commentsEntryPointHeaderRenderer)==null||!G.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.videoMetadataCarousel)==null||!G.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.eA("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(H=G.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(Z&&Z.rows&&Z.collapsedItemCount!==void 0&&!(Z.rows.length<=Z.collapsedItemCount))return Z.rows=Z.rows.slice(Z.collapsedItemCount),Z.collapsedItemCount=0,Z}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var G,H,Z=Object.assign({},(G=this.videoSecondaryInfoRenderer)==null?void 0:(H=G.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(Z&&Z.rows&&Z.collapsedItemCount!==void 0)return Z.rows=Z.rows.slice(0,Z.collapsedItemCount),Z.collapsedItemCount=Z.rows.length,Z}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var G,H;return!!((G=this.structuredDescriptionContentRendererComputed)==null?0:(H=G.items)==null?0:H.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 G;return(G=this.videoSecondaryInfoRenderer)==null?void 0:G.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.videoSecondaryInfoRenderer)==null?0:(H=G.owner)==null?0:(Z=H.videoOwnerRenderer)==null?0:Z.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q;return!!((G=this.videoPrimaryInfoRenderer)==null?0:(H=G.videoActions)==null?0:(Z=H.menuRenderer)==null?0:(Q=Z.flexibleItems)==null?0:Q.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.wr(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.wr(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var G=this;if(_.V("web_title_hashtag_grey_delinkified")){var H,Z=_.oN.unsafeClone((H=this.videoPrimaryInfoRenderer)==null?void 0:H.title);(H=Z==null?void 0:Z.runs)&&H.forEach(function(Q){if(Q==null?0:Q.navigationEndpoint)Q.textColor=4284506208,G.isDark&&(Q.textColor=4289374890)});
return Z}return(Z=this.videoPrimaryInfoRenderer)==null?void 0:Z.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.V("web_title_hashtag_black_delinkified")||_.V("web_title_hashtag_grey_delinkified")}}});
zr.prototype.updateHoverColor=zr.prototype.updateHoverColor;zr.prototype.parseColorSamplingData=zr.prototype.parseColorSamplingData;zr.prototype.resetDescriptionState=zr.prototype.resetDescriptionState;zr.prototype.registerPanel=zr.prototype.registerPanel;zr.prototype.onYtExpanderLessTapped=zr.prototype.onYtExpanderLessTapped;zr.prototype.onYtExpanderMoreTapped=zr.prototype.onYtExpanderMoreTapped;zr.prototype.onRenderStamperFinished=zr.prototype.onRenderStamperFinished;
zr.prototype.onYtTextInlineExpanderExpandedChanged=zr.prototype.onYtTextInlineExpanderExpandedChanged;zr.prototype.onYtTextInlineExpanderCollapseClicked=zr.prototype.onYtTextInlineExpanderCollapseClicked;zr.prototype.onYtTextInlineExpanderExpandClicked=zr.prototype.onYtTextInlineExpanderExpandClicked;zr.prototype.moveActionsElement=zr.prototype.moveActionsElement;zr.prototype.updateShouldForceIconOnly=zr.prototype.updateShouldForceIconOnly;zr.prototype.updateTopLevelIconsOnly=zr.prototype.updateTopLevelIconsOnly;
zr.prototype.structuredDescriptionContentRendererChanged=zr.prototype.structuredDescriptionContentRendererChanged;zr.prototype.videoSecondaryInfoRendererChanged=zr.prototype.videoSecondaryInfoRendererChanged;zr.prototype.videoPrimaryInfoRendererChanged=zr.prototype.videoPrimaryInfoRendererChanged;zr.prototype.maybeUpdateActionsOnSeparateLine=zr.prototype.maybeUpdateActionsOnSeparateLine;zr.prototype.updateOwnerAndDescriptionPosition=zr.prototype.updateOwnerAndDescriptionPosition;
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],zr.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],zr.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],zr.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],zr.prototype,"ytdReduxBehavior",void 0);_.N([_.q6("#above-the-fold"),_.A("design:type",HTMLElement)],zr.prototype,"aboveTheFoldContainer",void 0);_.N([_.q6("#menu ytd-menu-renderer"),_.A("design:type",Object)],zr.prototype,"menu",void 0);_.N([_.q6("#description-inline-expander"),_.A("design:type",Object)],zr.prototype,"descriptionInlineExpander",void 0);
_.N([_.q6("#faded-structured-description"),_.A("design:type",Object)],zr.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.N([_.q6("#structured-description"),_.A("design:type",Object)],zr.prototype,"structuredDescriptionContentRendererElement",void 0);_.N([_.q6("#title"),_.A("design:type",HTMLElement)],zr.prototype,"titleElement",void 0);_.N([_.q6("#description"),_.A("design:type",HTMLElement)],zr.prototype,"descriptionElement",void 0);
_.N([_.q6("#description-interaction"),_.A("design:type",Object)],zr.prototype,"descriptionInteraction",void 0);_.N([_.q6("#owner"),_.A("design:type",HTMLElement)],zr.prototype,"ownerElement",void 0);_.N([_.q6("#top-row"),_.A("design:type",HTMLElement)],zr.prototype,"topRowElement",void 0);_.N([_.q6("#bottom-row"),_.A("design:type",HTMLElement)],zr.prototype,"bottomRowElement",void 0);_.N([_.q6("#actions"),_.A("design:type",HTMLElement)],zr.prototype,"actionsElement",void 0);
_.N([_.q6("#bottom-actions"),_.A("design:type",HTMLElement)],zr.prototype,"bottomActionsElement",void 0);_.N([_.q6("#ytd-watch-info-text"),_.A("design:type",Object)],zr.prototype,"watchInfoTextElement",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"videoPrimaryInfoRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"videoSecondaryInfoRenderer",void 0);
_.N([_.h(),_.A("design:type",Object)],zr.prototype,"commentsEntryPointHeaderRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"videoMetadataCarousel",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"structuredDescriptionContentRenderer",void 0);_.N([_.z("structuredDescriptionContentRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"structuredDescriptionContentRendererComputed",null);
_.N([_.h(),_.A("design:type",Object)],zr.prototype,"videoSummary",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"merchShelf",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"infoPanelBelowMetadata",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"hoverColor",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"hoverText",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"isHovering",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"enableColorSampling",void 0);_.N([_.z("structuredDescriptionContentRendererComputed"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"productShelf",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"metadataBadgesInDescription",void 0);_.N([_.z("videoPrimaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"shouldHideBadges",null);
_.N([_.z("productShelf","descriptionCollapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zr.prototype,"shouldShowProductShelf",null);_.N([_.h(),_.A("design:type",Boolean)],zr.prototype,"isWatchFlexy",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"descriptionCollapsed",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],zr.prototype,"useFadedScrimDescription",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"skinnyMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("videoSecondaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"largerItemWrap",null);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"playlist",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"clarifyBox",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"playerAds",void 0);
_.N([_.h(),_.A("design:type",Boolean)],zr.prototype,"isDark",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],zr.prototype,"actionsOnSeparateLine",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"disableVideoOwnerOnTap",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"swatcherooDelayLoad",void 0);_.N([_.h(),_.A("design:type",Boolean)],zr.prototype,"suppressTopLevelMetadataRows",void 0);
_.N([_.h(),_.A("design:type",Object)],zr.prototype,"primaryMenuWidth",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"videoId",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"titleHeadlineXs",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"titleHeadlineS",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"titleHeadlineM",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"titleHashtagBlackLinkified",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"titleHashtagGreyLinkified",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.N([_.h(),_.A("design:type",Object)],zr.prototype,"shouldForceIconOnly",void 0);
_.N([_.Jv("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"updateOwnerAndDescriptionPosition",null);_.N([_.Jv("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.N([_.z("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"descriptionText",null);_.N([_.z("videoSecondaryInfoRenderer.headerRuns"),_.A("design:type",Array),_.A("design:paramtypes",[])],zr.prototype,"headerRuns",null);
_.N([_.h({value:!1}),_.z("commentsEntryPointHeaderRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"hasTeaser",null);_.N([_.h({value:!1,reflectToAttribute:!0}),_.z("videoMetadataCarousel"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"hasTeaserCarousel",null);_.N([_.h({value:3}),_.z("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"descriptionMaxLines",null);
_.N([_.z("videoSecondaryInfoRenderer.metadataRowContainer"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"collapsibleMetadataRows",null);_.N([_.z("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"alwaysVisibleMetadataRows",null);
_.N([_.z("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zr.prototype,"hasInlineStructuredDescription",null);_.N([_.z("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zr.prototype,"showInlineStructuredDescription",null);
_.N([_.z("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"descriptionExpandCommand",null);_.N([_.z("videoSecondaryInfoRenderer.owner"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"videoOwnerCommand",null);_.N([_.h({reflectToAttribute:!0}),_.z("videoPrimaryInfoRenderer.videoActions"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zr.prototype,"flexMenuEnabled",null);
_.N([_.h({selector:_.ch,reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"isFullscreen",void 0);_.N([_.h({selector:_.XD,reflectToAttribute:!0}),_.A("design:type",Object)],zr.prototype,"isTheaterMode",void 0);_.N([_.z("descriptionText","useFadedScrimDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zr.prototype,"showAttributedStringDescription",null);
_.N([_.z("descriptionText","useFadedScrimDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zr.prototype,"showFormattedStringDescription",null);_.N([_.z("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zr.prototype,"showFadedStructuredDescription",null);
_.N([_.Jv("videoPrimaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"videoPrimaryInfoRendererChanged",null);_.N([_.z("videoPrimaryInfoRenderer.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"videoTitle",null);_.N([_.z("videoPrimaryInfoRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],zr.prototype,"noEndpoints",null);
_.N([_.Jv("videoSecondaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"videoSecondaryInfoRendererChanged",null);_.N([_.gx("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"structuredDescriptionContentRendererChanged",null);
_.N([_.gx("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"updateTopLevelIconsOnly",null);_.N([_.gx("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"updateShouldForceIconOnly",null);_.N([_.gx("skinnyMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"moveActionsElement",null);
_.N([_.lq("yt-text-inline-expander-expand-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"onYtTextInlineExpanderExpandClicked",null);_.N([_.lq("yt-text-inline-expander-collapse-clicked"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.N([_.lq("yt-text-inline-expander-expanded-changed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],zr.prototype,"onRenderStamperFinished",null);
_.N([_.lq("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"onYtExpanderMoreTapped",null);_.N([_.lq("yt-expander-less-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"onYtExpanderLessTapped",null);
_.N([_.gx("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"registerPanel",null);_.N([_.gx("videoSecondaryInfoRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"resetDescriptionState",null);
_.N([_.gx("structuredDescriptionContentRenderer"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"parseColorSamplingData",null);_.N([_.gx("hoverColor","isDark"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zr.prototype,"updateHoverColor",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-watch-metadata"})],zr);
_.m(zr,"ytd-watch-metadata",function(){if(MyI!==void 0)return MyI;var G=document.createElement("template");_.f(G,'\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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" 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]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[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    </template>\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return MyI=G},{mode:2});_.Le7=function(G){_.wI.call(this);this.JSC$23236_watchApi=G;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;oJ7(this);m17(this);U1U(this);RlN(this);NM7(this);ALy(this);x17(this)};
_.T(_.Le7,_.wI);var U1U=function(G){var H=function(){_.V("kevlar_is_pupi_enabled")||Kj(G)};
G.JSC$23236_watchApi.getRoot().addEventListener("yt-player-updated",H);G.addOnDisposeCallback(function(){G.JSC$23236_watchApi.getRoot().removeEventListener("yt-player-updated",H)})},NM7=function(G){if(_.V("kevlar_endscreen_auto_theater_mode")){var H=G.JSC$23236_watchApi.subscribeToActiveChanged(function(){EJd(G)},!1);
G.addOnDisposeCallback(H)}},oJ7=function(G){var H,Z,Q,p,l;
_.S(function(q){if(q.nextAddress==1)return q.yield(G.JSC$23236_watchApi.playerApi,2);H=q.yieldResult;Z=function(u){u=!!u;YNO(G)&&(u=u?2:1,_.tP.getInstance().setState(u,!0,!1))};
Q=function(u){u&&_.k$4(_.mm().getState())&&(_.AZ(G.JSC$23236_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),G.temporaryTheaterMode=!0)};
p=function(u){_.V("kevlar_player_update_autonav_on_new_data")&&u.type==="newdata"&&(_.V("kevlar_is_pupi_enabled")||Kj(G))};
l=function(u){G.onPlayerStateChange(u)};
_.V("kevlar_endscreen_auto_theater_mode")&&H.addEventListener("onAutonavCancelled",Q);H.addEventListener("onAutonavChangeRequest",Z);H.addEventListener("onVideoDataChange",p);H.addEventListener("onStateChange",l);G.addOnDisposeCallback(function(){H.removeEventListener("onAutonavChangeRequest",Z);H.removeEventListener("onVideoDataChange",p);H.removeEventListener("onStateChange",l);_.V("kevlar_endscreen_auto_theater_mode")&&H.removeEventListener("onAutonavCancelled",Q)});
_.K0(q)})},m17=function(G){G.JSC$23236_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){G.autonavCancelledBySignal=!0;
_.V("kevlar_is_pupi_enabled")||Kj(G)});
G.JSC$23236_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(H,Z,Q){Z&&Kj(G,Q)});
G.JSC$23236_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){YNO(G)&&_.tP.getInstance().setState(2,!0,!0)});
G.JSC$23236_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){YNO(G)&&_.tP.getInstance().setState(1,!0,!0)});
G.addOnDisposeCallback(function(){G.JSC$23236_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");G.JSC$23236_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");G.JSC$23236_watchApi.unregisterActionHandler("yt-enable-autoplay-command");G.JSC$23236_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},RlN=function(G){var H=G.JSC$23236_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){x17(G)}),Z=G.JSC$23236_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ALy(G)});
G.addOnDisposeCallback(function(){G.JSC$23236_watchApi.unsubscribeByKey(H);G.JSC$23236_watchApi.unsubscribeByKey(Z)})},x17=function(G){G.autonavCancelledBySignal=!1;
_.V("kevlar_is_pupi_enabled")||Kj(G)},ALy=function(G){var H=G.JSC$23236_watchApi.getWatchNextResponse(),Z,Q;
var p=(H=(Q=_.X(H==null?void 0:(p=H.playerOverlays)==null?void 0:(Z=p.playerOverlayRenderer)==null?void 0:Z.autonavToggle,_.idw))==null?void 0:Q.enabled)?2:1;_.V("kevlar_is_pupi_enabled")?_.tP.getInstance().setState(p,!1,!1):Kj(G);_.V("web_persist_server_autonav_state_on_client")&&typeof H==="boolean"&&_.SLf(p===2)},YNO=function(G){if(G.autonavCancelledBySignal)return!1;
var H,Z,Q,p;return!!((H=G.JSC$23236_watchApi.getWatchNextResponse())==null?0:(Z=H.contents)==null?0:(Q=Z.twoColumnWatchNextResults)==null?0:(p=Q.autoplay)==null?0:p.autoplay)};
_.Le7.prototype.onPlayerStateChange=function(G){if(G===0){G=!_.tP.getInstance().isAutoplaySetExplicitly();var H=this.JSC$23236_watchApi.getWatchNextResponse(),Z,Q,p,l;H=_.X(H==null?void 0:(Z=H.contents)==null?void 0:(Q=Z.twoColumnWatchNextResults)==null?void 0:(p=Q.autoplay)==null?void 0:(l=p.autoplay)==null?void 0:l.autoplayExplicitChoiceDialogRenderer,_.bip);YNO(this)&&G&&H&&_.HT.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:H},popupType:"DIALOG"}})}else EJd(this)};
var EJd=function(G){G.temporaryTheaterMode&&(G.temporaryTheaterMode=!1,_.AZ(G.JSC$23236_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Kj=function(G,H){H=H===void 0?!1:H;
var Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23236_watchApi.playerApi,2);Z=Q.yieldResult;YNO(G)?Z.setAutonavState(_.tP.getInstance().getState(),H):Z.setAutonavState(1,H);_.K0(Q)})};var FeI={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"};_.GUM=function(G){_.wI.call(this);var H=this;this.JSC$23241_watchApi=G;var Z=this.JSC$23241_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){bT_(H)});
this.addOnDisposeCallback(function(){H.JSC$23241_watchApi.unsubscribeByKey(Z)});
bT_(this)};
_.T(_.GUM,_.wI);var bT_=function(G){var H=G.JSC$23241_watchApi.getPlayerResponse(),Z=G.JSC$23241_watchApi.getWatchNextResponse();if(!_.yuM(H==null?void 0:H.playabilityStatus,Z==null?void 0:Z.playerOverlays)){var Q;var p=H==null?void 0:(Q=H.playabilityStatus)==null?void 0:Q.errorScreen}G.JSC$23241_watchApi.provideRenderingData("ERROR_SCREEN",p)};var H1y=_.y(function(G){var H=G.data;G=_.V("web_watch_video_details_hide_subtitle");var Z=_.V("web_watch_video_details_single_line_title"),Q=_.Hh(function(){var u=H().onTap;u&&_.tp().resolve(_.Dk).resolveCommand(u)}),p={},l={},q={};
return _.J("yt-player-overlay-video-details-renderer",{class:_.bb("ytPlayerOverlayVideoDetailsRendererHost",(p.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.V("web_watch_video_details_transparent_background"),p)),"on:click":Q,role:"button"},_.J("h2",{class:_.bb("ytPlayerOverlayVideoDetailsRendererTitle",(l.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return Z},l))},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",{class:_.bb("ytPlayerOverlayVideoDetailsRendererSubtitle",
(q.ytPlayerOverlayVideoDetailsRendererHideSubtitle=G,q))},_.J(_.Fe,{text:function(){return H().subtitle}})))},"Vn");var Mr={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},sAM=_.y(function(G){var H=G.data;var Z=_.SQ(_.ch),Q=_.V("web_watch_action_bar_resize_buttons"),p=_.V("web_watch_video_action_dsdvb"),l=_.V("delhi_modern_web_player_icons")&&!_.V("enable_web_delhi_icons");G=_.V("delhi_modern_web_player_disable_frosted_glass");var q=_.V("delhi_modern_web_player_compact_video_actions_controls"),
u=_.V("web_player_quick_action_buttons_icon_only"),B=function(){var D=Q&&!Z(),d={};q?d.size="S":D&&(d.size="M");u&&(d.iconPosition="icon-only");if(Object.keys(d).length!==0)return d},t={};
return _.J("yt-player-quick-action-buttons",{class:_.bb("ytPlayerQuickActionButtonsHost",(t.ytPlayerQuickActionButtonsHostCompactControls=function(){return!Z()||q},t.ytPlayerQuickActionButtonsHostDisableBackdropFilter=G,t))},_.J(_.Cl,{each:function(){var D=H();
if(l){D=JSON.parse(JSON.stringify(D));for(var d=_.I(D),e=d.next();!e.done;e=d.next()){var n=e.value,c=void 0;e=_.X((c=_.X(n,_.RH))==null?void 0:c.toggleButtonViewModel,_.ZD);var W=void 0;c=_.X((W=_.X(n,_.UL))==null?void 0:W.toggleButtonViewModel,_.ZD);W=_.X(n,_.HN);n=_.X(n,_.ZD);if(e)c=_.X(e.defaultButtonViewModel,_.HN),e=_.X(e.toggledButtonViewModel,_.HN),c&&c.iconName&&(c.iconName=Mr[c.iconName]),e&&e.iconName&&(e.iconName=Mr[e.iconName]);else if(c)e=_.X(c.defaultButtonViewModel,_.HN),c=_.X(c.toggledButtonViewModel,
_.HN),e&&e.iconName&&(e.iconName=Mr[e.iconName]),c&&c.iconName&&(c.iconName=Mr[c.iconName]);else if(W)W.iconName&&(W.iconName=Mr[W.iconName]);else if(n){e=_.X(n.defaultButtonViewModel,_.HN);c=_.X(n.toggledButtonViewModel,_.HN);n=void 0;if((n=e)==null?0:n.iconName)e.iconName=Mr[e.iconName];e=void 0;if((e=c)==null?0:e.iconName)c.iconName=Mr[c.iconName]}}}p&&(D=NI2(D));return D}},function(D){return _.J(_.SP,{data:function(){return D}},{buttonViewModel:function(d){return _.J(_.kg,{data:d.data,
buttonOverrides:B})},
likeButtonViewModel:function(d){return _.J(_.AD,{data:d.data,buttonShapeOverrideables:B})},
dislikeButtonViewModel:function(d){return _.J(_.Nt,{data:d.data,buttonShapeOverrideables:B})},
toggleButtonViewModel:function(d){return _.J(_.hf,{data:d.data,buttonShapeOverrides:B})}})}))},"Wn");_.QA7=function(G){_.wI.call(this);var H=this;this.JSC$23245_watchApi=G;G=_.I(_.Ty({},void 0,"n9wCVe"));this.quickActionsViewModel=G.next().value;this.setQuickActionsViewModel=G.next().value;G=_.I(_.Ty({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=G.next().value;this.setPlayerOverlayVideoDetailsRenderer=G.next().value;var Z=this.JSC$23245_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Z12(H)});
this.addOnDisposeCallback(function(){H.JSC$23245_watchApi.unsubscribeByKey(Z)});
Z12(this)};
_.T(_.QA7,_.wI);
var Z12=function(G){var H,Z,Q,p,l,q,u,B,t,D,d,e,n,c;_.S(function(W){if(W.nextAddress==1)return W.yield(G.JSC$23245_watchApi.playerApi,2);H=W.yieldResult;Z=G.JSC$23245_watchApi.getWatchNextResponse();l=(Q=Z)==null?void 0:(p=Q.playerOverlays)==null?void 0:p.playerOverlayRenderer;u=_.X((q=l)==null?void 0:q.fullscreenQuickActionsBar,_.wYd);(t=(B=G).setQuickActionsViewModel)==null||t.call(B,u||{});u&&pxU(G,H);e=(D=l)==null?void 0:(d=D.videoDetails)==null?void 0:d.playerOverlayVideoDetailsRenderer;(c=(n=
G).setPlayerOverlayVideoDetailsRenderer)==null||c.call(n,e||{});e&&lYx(G,H);_.K0(W)})},pxU=function(G,H){if(!G.quickActionButtonsContainer)if(H.setFullscreenQuickActions){G.quickActionButtonsContainer=document.createElement("div");
H.setFullscreenQuickActions(G.quickActionButtonsContainer);var Z=function(){return G.quickActionsViewModel().quickActionButtons||[]},Q=_.az(G.quickActionButtonsContainer,function(){return _.J(sAM,{data:Z})},"Xn");
G.addOnDisposeCallback(function(){H.setFullscreenQuickActions(void 0);Q()})}else _.Rp(new _.C$("setFullscreenQuickActions not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},lYx=function(G,H){if(!G.playerOverlayVideoDetailsRendererContainer)if(H.setPlayerOverlayVideoDetailsRenderer){G.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
H.setPlayerOverlayVideoDetailsRenderer(G.playerOverlayVideoDetailsRendererContainer);var Z=_.az(G.playerOverlayVideoDetailsRendererContainer,function(){return _.J(H1y,{data:G.playerOverlayVideoDetailsRenderer})},"Yn");
G.addOnDisposeCallback(function(){H.setPlayerOverlayVideoDetailsRenderer(void 0);Z()})}else _.Rp(new _.C$("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))};_.jx=function(G){_.wI.call(this);var H=this;this.JSC$23251_watchApi=G;this.JSC$23251_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;G=_.wU(_.mm(),_.ch,function(Z){H.onFullscreenChanged(Z)});
this.addOnDisposeCallback(G);G=_.wU(_.mm(),_.jH,function(Z){H.onWatchScroll(Z)});
this.addOnDisposeCallback(G);_.V("kevlar_watch_while_v2")&&(G=_.wU(_.mm(),_.T9,function(Z){gPI(H,Z)}),this.addOnDisposeCallback(G));
IYN(this);qS_(this);SSx();this.onWatchScroll(_.jH(_.mm().getState()));_.YI("START_IN_FULL_WINDOW_MODE")&&this.JSC$23251_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.T(_.jx,_.wI);var IYN=function(G){G.JSC$23251_watchApi.registerActionHandler("yt-fullscreen-change-action",function(H){var Z=G.JSC$23251_watchApi.isActive();H&&!Z||_.mm().dispatch(_.Lo({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!H}}))});
G.addOnDisposeCallback(function(){G.JSC$23251_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},qS_=function(G){var H,Z;
_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23251_watchApi.playerApi,2);H=Q.yieldResult;Z=function(){G.onFullerscreenEduClicked()};
H.addEventListener("onFullerscreenEduClicked",Z);G.addOnDisposeCallback(function(){H.removeEventListener("onFullerscreenEduClicked",Z)});
_.K0(Q)})};
_.jx.prototype.onFullscreenChanged=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return H.isFullscreen=!!_.oO(),Q.yield(H.JSC$23251_watchApi.playerApi,2);Z=Q.yieldResult;H.JSC$23251_miniplayerActive||Z.setFauxFullscreen(H.isFullscreen);if(G&&(H.JSC$23251_watchApi.focusOnPlayer(),!H.fullerscreenEduButtonShownThisPlayback)){H.fullerscreenEduButtonShownThisPlayback=!0;var p=_.dT("yt-fullerscreen-edu-button-shown-count")||0;_.Dp("yt-fullerscreen-edu-button-shown-count",p+1,31536E3);
H.updateFullerscreenEduButtonSubtleModeState()}_.K0(Q)})};
var gPI=function(G,H){var Z;_.S(function(Q){if(Q.nextAddress==1)return G.JSC$23251_miniplayerActive=H,Q.yield(G.JSC$23251_watchApi.playerApi,2);Z=Q.yieldResult;Z.setFauxFullscreen(!G.JSC$23251_miniplayerActive&&G.isFullscreen);_.K0(Q)})};
_.jx.prototype.onWatchScroll=function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1)return _.V("external_fullscreen_with_edu")?p.yield(H.JSC$23251_watchApi.playerApi,2):p.return();Z=p.yieldResult;Q=G<=0;H.shouldShowFullerscreenEdu!==Q&&(H.shouldShowFullerscreenEdu=Q,Z.updateFullerscreenEduButtonVisibility(!H.shouldShowFullerscreenEdu));_.K0(p)})};
_.jx.prototype.onFullerscreenEduClicked=function(){this.JSC$23251_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var G=_.dT("yt-fullerscreen-edu-button-click-count")||0;_.Dp("yt-fullerscreen-edu-button-click-count",G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.jx.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var G=this,H,Z,Q,p,l,q;return _.S(function(u){if(u.nextAddress==1)return H=_.dT("yt-fullerscreen-edu-button-click-count")||0,Z=_.dT("yt-fullerscreen-edu-button-shown-count")||0,Q=_.eA("external_fullscreen_button_click_threshold"),p=_.eA("external_fullscreen_button_shown_threshold"),l=H>=Q||Z>=p,u.yield(G.JSC$23251_watchApi.playerApi,2);q=u.yieldResult;q.updateFullerscreenEduButtonSubtleModeState(l);_.K0(u)})};
_.jx.prototype.disposeInternal=function(){_.wI.prototype.disposeInternal.call(this);var G=_.oO();_.V("kevlar_exit_fullscreen_leaving_watch")&&G&&_.mj(G)};
var SSx=function(){if(_.V("web_watch_add_viewport_meta_tag")){var G=document.querySelector("meta[name=viewport]"),H=document.head;H&&!G&&(G=document.createElement("meta"),G.name="viewport",G.content="width=device-width, initial-scale=1.0, viewport-fit=cover",H.appendChild(G))}};_.BN4=function(G){_.wI.call(this);var H=this;this.JSC$23254_watchApi=G;this.jobId=0;this.pendingRequestId=void 0;var Z=this.JSC$23254_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uZ4(H)});
this.addOnDisposeCallback(function(){H.JSC$23254_watchApi.unsubscribeByKey(Z)});
uZ4(this)};
_.T(_.BN4,_.wI);var Jky=function(G){_.Ui.cancelJob(G.jobId);G.pendingRequestId=void 0},uZ4=function(G){Jky(G);
var H=ARd(G.JSC$23254_watchApi.getWatchNextResponse());if(H){var Z=250,Q,p=(Q=_.X(H,_.Pz2))==null?void 0:Q.initialDelayMs;_.V("web_watch_updated_metadata_server_initial_delay")&&p&&(Z=p);G.jobId=_.Ui.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(H)},Z)}};
_.BN4.prototype.fetchUpdatedMetadata=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r;return _.S(function(w){switch(w.nextAddress){case 1:H&&(Q={continuation:H});if(!_.V("web_get_updated_metadata_fantasy_panel_continuation_params")){w.jumpTo(2);break}p=_.tp().resolve(_.iU);l="PAsports_fantasy";return w.yield(p.isVisible(l,!0),3);case 3:w.yieldResult&&(t=(u=(q=p).getUpdatePanelContinuationData)==null?void 0:(B=u.call(q,l))==null?void 0:B.updatePanelContinuationRequest)&&(Q||(Q={}),Q.clientParams=
{panelContinuationParams:{panelContinuation:t}});case 2:D=_.tp().resolve(_.t0);if(!D)return _.me(Error("Xo")),w.return();d={};Z.pendingRequestId=d;return w.yield(_.wb(D,G,Q),4);case 4:e=w.yieldResult;if(d!==Z.pendingRequestId)return w.return();W=(n=e)==null?void 0:(c=n.continuation)==null?void 0:c.timedContinuationData;((M=W)==null?0:M.continuation)&&((r=W)==null?0:r.timeoutMs)&&(Z.jobId=_.Ui.addLowPriorityJob(function(){return Z.fetchUpdatedMetadata(G,W.continuation)},W.timeoutMs));
_.K0(w)}})};
_.BN4.prototype.disposeInternal=function(){_.wI.prototype.disposeInternal.call(this);Jky(this)};var tsd=_.y(function(G){var H=_.Hh(function(){var Q=G.data().videoId;if(G.active())Q=_.R5(Q),_.tp().resolve(_.Dk).resolveCommand(Q);else{var p=G.playerApi(),l=p.getAvailableAudioTracks(),q,u,B=(q=G.sourceVideoConfig().audioTracks)==null?void 0:(u=q.find(function(t){return t.isDefaultForSource}))==null?void 0:u.id;
if(l=l.find(function(t){return t.getLanguageInfo().getId()===B}))p.setAudioTrack(l,!0),p.setCompositeParam({activeVideoId:Q}),G.setActiveSourceId(Q)}}),Z={};
return _.J("ytw-composite-source-video-overlay",{class:_.bb("ytwCompositeSourceVideoOverlayHost",(Z.ytwCompositeSourceVideoOverlayActive=G.active,Z.ytwCompositeSourceVideoOverlayInteracting=G.interacting,Z)),style:_.pI({left:function(){var Q;return((Q=G.data().topLeftCornerX)!=null?Q:0)*100+"%"},
top:function(){var Q;return((Q=G.data().topLeftCornerY)!=null?Q:0)*100+"%"},
width:function(){var Q;return((Q=G.data().width)!=null?Q:0)*100+"%"},
height:function(){var Q;return((Q=G.data().height)!=null?Q:0)*100+"%"}}),
"on:click":H},_.J("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Zn");var kUN=_.y(function(G){var H=_.I(_.QF(function(){var q,u=(q=G.data().sources)==null?void 0:q.find(function(B){return B.isActive});
if(u)return u.videoId})),Z=H.next().value,Q=H.next().value;
H=_.I(_.Ty(!1,void 0,"rmRJ8d"));var p=H.next().value,l=H.next().value;return _.J("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Hh(function(){l(!0)}),
"on:mouseout":_.Hh(function(){l(!1)})},_.J(_.k,{cond:function(){return G.data().sources},
then:function(q){return _.J(_.Cl,{each:q},function(u){return _.J(tsd,{data:u,active:function(){return u.videoId===Z()},
setActiveSourceId:Q,interacting:p,playerApi:G.playerApi,sourceVideoConfig:function(){return xj2(G.compositeVideoConfig(),u.videoId)}})})}}))},"$n");_.ekq=function(G){_.wI.call(this);this.JSC$23270_watchApi=G;G=_.I(_.Ty({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=G.next().value;this.setCompositeVideoOverlayRenderer=G.next().value;G=_.I(_.Ty({},void 0,"OlaJpc"));this.compositeVideoConfig=G.next().value;this.setCompositeVideoConfig=G.next().value;DK2(this);dK4(this)};
_.T(_.ekq,_.wI);var DK2=function(G){var H=G.JSC$23270_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dK4(G)});
G.addOnDisposeCallback(function(){G.JSC$23270_watchApi.unsubscribeByKey(H)})},nP7=function(G){var H;
return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23270_watchApi.playerApi,2);H=Z.yieldResult;H.setCompositeVideoOverlayRendererComponent(G.container);_.K0(Z)})},Vsy=function(G){var H;
return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23270_watchApi.playerApi,2);H=Z.yieldResult;H.setCompositeVideoOverlayRendererComponent(void 0);_.K0(Z)})},$KY=function(G){var H,Z;
return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23270_watchApi.playerApi,2);H=Q.yieldResult;G.container=document.createElement("div");Z=_.az(G.container,function(){return _.J(kUN,{data:G.compositeVideoOverlayRenderer,compositeVideoConfig:G.compositeVideoConfig,playerApi:H})},"ao");
G.addOnDisposeCallback(Z);_.K0(Q)})},dK4=function(G){var H,Z,Q,p,l,q,u,B;
_.S(function(t){return t.nextAddress==1?(H=G.JSC$23270_watchApi.getPlayerResponse(),l=_.X((Z=H)==null?void 0:(Q=Z.overlay)==null?void 0:(p=Q.playerControlsOverlayRenderer)==null?void 0:p.compositeVideoOverlay,NnN),B=(q=H)==null?void 0:(u=q.playerConfig)==null?void 0:u.compositeVideoConfig,l&&G.setCompositeVideoOverlayRenderer(l),B&&G.setCompositeVideoConfig(B),l&&B?G.container?t.jumpTo(6):t.yield($KY(G),6):Xxq(G)?t.yield(Vsy(G),0):t.jumpTo(0)):Xxq(G)?t.jumpTo(0):t.yield(nP7(G),0)})},Xxq=function(G){var H;
return!((H=G.container)==null||!H.parentElement)};
_.ekq.prototype.disposeInternal=function(){Xxq(this)&&Vsy(this);_.wI.prototype.disposeInternal.call(this)};_.WgY=function(G){_.wI.call(this);var H=this;this.JSC$23276_watchApi=G;var Z=this.JSC$23276_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var Q=H.JSC$23276_watchApi.getPlayerResponse();if(Q){var p,l;if(Q=_.X((p=Q.endscreen)==null?void 0:(l=p.endscreenRenderer)==null?void 0:l.hideButton,_.ZD)){var q;(q=H.setEndscreenHideButton)==null||q.call(H,Q);ck2(H)}}});
this.addOnDisposeCallback(function(){H.JSC$23276_watchApi.unsubscribeByKey(Z)});
G=_.I(_.Ty({},void 0,"ER3tqb"));this.endscreenHideButton=G.next().value;this.setEndscreenHideButton=G.next().value;TNy(this);fYx(this);vP2(this)};
_.T(_.WgY,_.wI);
var ck2=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return G.creatorEndscreenHideButtonContainer?Q.return():Q.yield(G.JSC$23276_watchApi.playerApi,2);H=Q.yieldResult;G.creatorEndscreenHideButtonContainer=document.createElement("div");_.QN(G.creatorEndscreenHideButtonContainer,!1);H.setCreatorEndscreenHideButton(G.creatorEndscreenHideButtonContainer);Z=_.az(G.creatorEndscreenHideButtonContainer,function(){return _.J(_.hf,{data:G.endscreenHideButton,useOutlinedIcon:!0})},"bo");
G.addOnDisposeCallback(function(){Z();var p;(p=H)==null||p.setCreatorEndscreenHideButton(void 0)});
_.K0(Q)})},TNy=function(G){var H,Z;
_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23276_watchApi.playerApi,2);H=Q.yieldResult;Z=function(){G.creatorEndscreenHideButtonContainer&&_.QN(G.creatorEndscreenHideButtonContainer,!0)};
H.addEventListener("endscreenelementshown",Z);G.addOnDisposeCallback(function(){var p;(p=H)==null||p.removeEventListener("endscreenelementshown",Z)});
_.K0(Q)})},fYx=function(G){var H=function(){G.creatorEndscreenHideButtonContainer&&_.QN(G.creatorEndscreenHideButtonContainer,!1)},Z=G.JSC$23276_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",H),Q=G.JSC$23276_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",H);
G.addOnDisposeCallback(function(){G.JSC$23276_watchApi.unsubscribeByKey(Z);G.JSC$23276_watchApi.unsubscribeByKey(Q)})},vP2=function(G){G.JSC$23276_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(H){var Z=_.X(H,a0_);
G.JSC$23276_watchApi.playerApi.then(function(Q){Q==null||Q.setCreatorEndscreenVisibility(!!Z.hide)})});
G.addOnDisposeCallback(function(){G.JSC$23276_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.KgI=function(G){_.wI.call(this);this.JSC$23282_watchApi=G;zk7(this)};
_.T(_.KgI,_.wI);var zk7=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23282_watchApi.playerApi,2);H=Q.yieldResult;Z=function(p){_.mm().dispatch(_.Lo({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:p}}))};
H.addEventListener("onRetroModeChanged",Z);G.addOnDisposeCallback(function(){H.removeEventListener("onRetroModeChanged",Z)});
_.K0(Q)})};var sMY=0,rw=0,QM7=0;var Msy;Msy=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.PH=function(G){_.wI.call(this);this.JSC$23287_watchApi=G;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;jA0(this)};
_.T(_.PH,_.wI);
var jA0=function(G){var H,Z,Q;_.S(function(p){if(p.nextAddress==1)return p.yield(G.JSC$23287_watchApi.playerApi,2);H=p.yieldResult;if(G.isDisposed())return p.return();G.sessionStorage=_.YJ8("yt-sleep-timer");G.sessionStorage||_.Rp(new _.C$("SessionStorage for Sleep Timer is undefined."));((Z=G.sessionStorage)==null?void 0:Z.get("yt-sleep-timer"))==="true"&&(gFM(),(Q=G.sessionStorage)==null||Q.remove("yt-sleep-timer"),H.syncVolume());Puy(G,H);rk2(G,H);wxO(G,H);_.K0(p)})},Puy=function(G,H){var Z=function(t){G.onSleepTimerSettingsChanged(t,
H)},Q=function(t){G.onPlayerStateChange(t,H)},p=function(){G.onLoopChange(H)},l=function(){G.onCloseMiniplayer(H)},q=function(){Hb0(H,(0,_.t3)(),I07(H),G.selectedOption==="End of video",H.getPlayerState()!==1)},u=function(){G.onSeekComplete(H)},B=function(){_.Ui.cancelJob(rw);
var t=H.getCurrentTime()>=H.getDuration(),D=G.selectedOption==="End of video"||G.selectedOption==="End of playlist"&&!Fud(G.playlistId);t&&D&&hkY(G,H)};
H.addEventListener("onSleepTimerSettingsChanged",Z);H.addEventListener("onLoopChange",p);H.addEventListener("onLoopRangeChange",p);H.addEventListener("onStateChange",Q);H.addEventListener("onCloseMiniplayer",l);H.addEventListener("onSleepTimerFeatureAvailable",q);H.addEventListener("SEEK_COMPLETE",u);H.addEventListener("onAdStart",B);G.addOnDisposeCallback(function(){H.removeEventListener("onSleepTimerSettingsChanged",Z);H.removeEventListener("onLoopChange",p);H.removeEventListener("onLoopRangeChange",
p);H.removeEventListener("onStateChange",Q);H.removeEventListener("onCloseMiniplayer",l);H.removeEventListener("onSleepTimerFeatureAvailable",q);H.removeEventListener("SEEK_COMPLETE",u);H.removeEventListener("onAdStart",B)})},rk2=function(G,H){var Z=G.JSC$23287_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var Q=H.getVideoData().video_id,p,l=(p=E57(G.JSC$23287_watchApi))==null?void 0:p.playlistId;
G.pauseAutonavPlayback&&(H.pauseVideo(),H.syncVolume(),G.pauseAutonavPlayback=!1);if(G.selectedOption==="End of video"&&Q!==G.videoId)rC(G,H);else{if(G.selectedOption==="End of playlist"){p=Fud(G.playlistId);if(l!==G.playlistId){rC(G,H);break a}p?p&&Cu_(G,H):i1N(G,H)}G.videoId=Q;G.playlistId=l}}});
G.addOnDisposeCallback(function(){G.JSC$23287_watchApi.unsubscribeByKey(Z)})},wxO=function(G,H){var Z=_.tp().resolve(_.oT),Q=_.wU(Z,_.rfe,function(l){l&&G.selectedOption!=="Off"&&rC(G,H)}),p=G.JSC$23287_watchApi.subscribeToActiveChanged(function(l){var q,u;
return _.S(function(B){if(B.nextAddress==1)return B.yield(_.PN().navigationFinishPromise,2);q=!_.bnw();u=_.tp().resolve(_.WM).isMiniplayerActive();l||!LuM(G.selectedOption)||u||q||rC(G,H);_.K0(B)})},!1);
Z=_.wU(Z,function(l){return l.entities.playlistLoopStateEntity||{}},function(l){l=l===void 0?{}:l;
var q=Y17(G.JSC$23287_watchApi);if(q){var u;((u=l[q])==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ALL"&&LuM(G.selectedOption)&&rC(G,H)}});
G.addOnDisposeCallback(Q);G.addOnDisposeCallback(Z);G.addOnDisposeCallback(p)};
_.PH.prototype.onSleepTimerSettingsChanged=function(G,H){switch(G){case "Off":this.selectedOption!=="Off"&&rC(this,H);break;case "End of video":case "End of playlist":O1N(this,G,H);break;default:O1N(this,G,H,Msy.get(G))}};
_.PH.prototype.onLoopChange=function(G){(G.getLoopVideo()||G.getLoopRange())&&LuM(this.selectedOption)&&rC(this,G)};
_.PH.prototype.onCloseMiniplayer=function(G){LuM(this.selectedOption)&&rC(this,G)};
var O1N=function(G,H,Z,Q){aYI(G,Z);G.selectedOption=H;G.videoId=Z.getVideoData().video_id;G.playlistId="";var p;(p=G.sessionStorage)==null||p.set("yt-sleep-timer","true");G.adjustmentsCount++;Hb0(Z,(0,_.t3)(),I07(Z),G.selectedOption==="End of video");if(G.selectedOption==="End of video")i1N(G,Z),yk0(G,Z);else if(G.selectedOption==="End of playlist"){yk0(G,Z);var l,q;G.playlistId=(q=(l=E57(G.JSC$23287_watchApi))==null?void 0:l.playlistId)!=null?q:"";Fud(G.playlistId)||i1N(G,Z)}else Q&&(G.presetFadeSchedulerId=
_.JW(_.Ui,function(){pS0(Z,15E3)},Q-15E3),G.presetPauseSchedulerId=_.JW(_.Ui,function(){hkY(G,Z)},Q),Zbx(Z,(0,_.t3)(),Q))},hkY=function(G,H){if(G.JSC$23287_watchApi.isActive()){var Z={dismissDialogEndpoint:{}};
var Q={commandExecutorCommand:{commands:[Z,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};Z={buttonViewModel:{title:_.Zg("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:Z}}};Q={buttonViewModel:{title:_.Zg("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Q}}};var p={dialogHeaderViewModel:{headline:{content:_.Zg("SLEEP_TIMER_ENDED_TITLE")}}},
l={basicContentViewModel:{paragraphs:[{text:{content:_.Zg("SLEEP_TIMER_ENDED_TEXT")}}]}};Z={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:p,content:l,footer:{panelFooterViewModel:{primaryButton:Z,secondaryButton:Q,shouldHideDivider:!0}}}}}}};_.tp().resolve(_.Dk).resolveCommand(Z,{form:{element:G}})}else gFM();oP2(G,!1);mKd(G,H);H.pauseVideo();_.tP.getInstance().getState()===2&&H.getPlayerState()===5&&(G.pauseAutonavPlayback=!0)},rC=function(G,H){oP2(G,!0);
mKd(G,H);gFM()},mKd=function(G,H){aYI(G,H);
G.selectedOption="Off";G.videoId="";G.playlistId="";G.adjustmentsCount=0;var Z;(Z=G.sessionStorage)==null||Z.remove("yt-sleep-timer");_.Ui.cancelJob(sMY);H.resetSleepTimerMenuSettings()},oP2=function(G,H){H={timer_length_adjustment_times_during_session:G.adjustmentsCount-1,
is_session_cancelled:H};switch(G.selectedOption){case "Off":H.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:H.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",H.option_duration_in_minutes=Msy.get(G.selectedOption)/6E4}_.yR("sleepTimerSessionFinishEvent",H)};
_.PH.prototype.onPlayerStateChange=function(G,H){G===1?Hb0(H,(0,_.t3)(),I07(H),this.selectedOption==="End of video"):G===0?(_.Ui.cancelJob(rw),H.setVideoTimeLeft(Gyq(0,0))):G===2&&_.Ui.cancelJob(rw);this.selectedOption==="End of video"?G===0?hkY(this,H):G===2&&l0x(H):this.selectedOption!=="End of playlist"||Fud(this.playlistId)||(G===0?hkY(this,H):G===2&&l0x(H))};
_.PH.prototype.onSeekComplete=function(G){G.getPlayerState()===2&&Hb0(G,(0,_.t3)(),I07(G),this.selectedOption==="End of video",!0)};
_.PH.prototype.onCueRangeEnter=function(G,H){G==="sleep-timer-fade-audio"&&pS0(H,(H.getDuration()-H.getProgressState().current)*1E3)};
_.PH.prototype.onCueRangeExit=function(G,H){G==="sleep-timer-fade-audio"&&H.getPlayerState()!==0&&l0x(H,!0)};
var i1N=function(G,H){H.addCueRange("sleep-timer-fade-audio",H.getDuration()-15,H.getDuration());H.addEventListener("onCueRangeEnter",function(Z){G.onCueRangeEnter(Z,H)});
H.addEventListener("onCueRangeExit",function(Z){G.onCueRangeExit(Z,H)})},Cu_=function(G,H){H.removeCueRange("sleep-timer-fade-audio");
H.removeEventListener("onCueRangeEnter",function(Z){G.onCueRangeEnter(Z,H)});
H.removeEventListener("onCueRangeExit",function(Z){G.onCueRangeExit(Z,H)})},aYI=function(G,H){LuM(G.selectedOption)?Cu_(G,H):(_.Ui.cancelJob(G.presetPauseSchedulerId),_.Ui.cancelJob(G.presetFadeSchedulerId),G.presetPauseSchedulerId=0,G.presetFadeSchedulerId=0);
l0x(H,!0)},yk0=function(G,H){H.setLoop(!1);
H.setLoopVideo(!1);H.setLoopRange(null);(G=Y17(G.JSC$23287_watchApi))&&_.tp().resolve(_.oT).dispatch(_.uP("playlistLoopStateEntity",G,{key:G,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Akd=function(G){_.wI.call(this);var H=this;this.JSC$23290_watchApi=G;UKI(this);RkO(this);NN_(this);var Z=this.JSC$23290_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.eA("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.jA.get("wide",void 0)==="1"&&_.PU("wide","1",_.eA("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){H.JSC$23290_watchApi.unsubscribeByKey(Z)});
G=G.getRoot();if(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-grid")G.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.dj0();_.V("web_watch_log_theater_mode_cookie_state")&&_.jA.get("wide","0")==="1"&&_.Kzu("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.T(_.Akd,_.wI);var UKI=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23290_watchApi.playerApi,2);H=Q.yieldResult;Z=function(p){xKM(G,!!p)};
H.addEventListener("SIZE_CLICKED",Z);G.addOnDisposeCallback(function(){H.removeEventListener("SIZE_CLICKED",Z)});
_.K0(Q)})},RkO=function(G){G.JSC$23290_watchApi.registerActionHandler("yt-toggle-theater-mode",function(H,Z){xKM(G,H,Z===void 0?!0:Z)});
G.addOnDisposeCallback(function(){G.JSC$23290_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Akd.prototype.getState=function(){return _.XD(_.mm().getState())};
var xKM=function(G,H,Z){Z=Z===void 0?!0:Z;var Q,p,l,q=_.V("enable_player_resize_transition")&&!!G.JSC$23290_watchApi.getWatchNextResponse()&&!((Q=G.JSC$23290_watchApi.getWatchNextResponse())==null?0:(p=Q.contents)==null?0:(l=p.twoColumnWatchNextResults)==null?0:l.conversationBar);_.$lh(function(){_.mm().dispatch(_.Lo({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:H}}));_.V("theater_mode_scroll_to_top_killswitch")||G.JSC$23290_watchApi.scrollWatchTo(0,!1);_.oO()&&_.V("external_fullscreen")&&_.mj(document.documentElement);
NN_(G);Z&&_.PU("wide",H?"1":"0",_.eA("theater_mode_cookie_max_age_seconds",-1));_.AZ(G.JSC$23290_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);G.JSC$23290_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:H});H&&_.dj0()},{shouldWrap:q})},NN_=function(G){var H;
_.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23290_watchApi.playerApi,2);H=Z.yieldResult;H.setSizeStyle(!0,G.getState());_.K0(Z)})};var YS4=function(G){_.wI.call(this);var H=this;this.playerApi=G;this.timeToPanelSyncKeyMap={};var Z;if(G==null?0:(Z=G.isReady)==null?0:Z.call(G)){Z=_.wU(_.tp().resolve(_.oT),function(p){return p.entities.timedMarkersListSyncEntity||{}},function(p,l){p=p===void 0?{}:p;
l=l===void 0?{}:l;for(var q=_.I(Object.keys(l)),u=q.next();!u.done;u=q.next())u=u.value,p[u]!==l[u]&&Lg_(H,l[u]);l=_.I(Object.keys(p));for(q=l.next();!q.done;q=l.next())q=q.value,u=p[q],H.timeToPanelSyncKeyMap[q]&&EPy(H,u)});
this.addOnDisposeCallback(Z);var Q=function(p){H.onCueRangeEnter(p)};
G.addEventListener("onCueRangeEnter",Q);this.addOnDisposeCallback(function(){var p;(p=G.removeEventListener)==null||p.call(G,"onCueRangeEnter",Q)})}};
_.T(YS4,_.wI);
var EPy=function(G,H){var Z,Q;if((Z=G.playerApi)==null?0:(Q=Z.isReady)==null?0:Q.call(Z)){var p;if((Z=H==null?void 0:(p=H.timedListData)==null?void 0:p.sections)&&H!=null&&H.key)for(p=_.I(Z),Z=p.next();!Z.done;Z=p.next())if(Z=Z.value,Z.timedSyncDataList&&Z.sectionId)for(Q=0;Q<Z.timedSyncDataList.length;Q++){var l=Z.timedSyncDataList[Q];l.syncItemId&&G.playerApi.addCueRange(Z.sectionId+"_"+H.key+"_"+l.syncItemId,Number(l.videoTimeMs)/1E3,Q===Z.timedSyncDataList.length-1?0x8000000000000:Number(Z.timedSyncDataList[Q+
1].videoTimeMs)/1E3)}}},Lg_=function(G,H){var Z,Q;
if((Z=G.playerApi)==null?0:(Q=Z.isReady)==null?0:Q.call(Z)){var p;if((Z=H==null?void 0:(p=H.timedListData)==null?void 0:p.sections)&&H!=null&&H.key)for(p=_.I(Z),Z=p.next();!Z.done;Z=p.next())if(Z=Z.value,Z.timedSyncDataList&&Z.sectionId){Q=_.I(Z.timedSyncDataList);for(var l=Q.next();!l.done;l=Q.next())l=l.value,l.syncItemId&&G.playerApi.removeCueRange(Z.sectionId+"_"+H.key+"_"+l.syncItemId)}}};
YS4.prototype.onCueRangeEnter=function(G){for(var H=_.I(Object.keys(this.timeToPanelSyncKeyMap)),Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=_.I(G.split("_"+Z+"_")),p=Q.next().value;Q=Q.next().value;if(p&&Q){G=_.tp().resolve(_.oT);H=this.timeToPanelSyncKeyMap[Z];var l=_.DD3(G.getState(),H);Z=Fg4(Z,p,Q);if(Z===-1)break;Z={activeSyncId:Q,activeItemIndex:Z,activeSectionInfo:{sectionIdentifier:p}};l?G.dispatch(_.eO("markersEngagementPanelSyncEntity",H,Z)):G.dispatch(_.uP("markersEngagementPanelSyncEntity",
H,Object.assign({},{key:H},Z)));break}}};
var Fg4=function(G,H,Z){var Q=_.tp().resolve(_.oT),p,l;G=(p=q17(Q.getState(),G))==null?void 0:(l=p.timedListData)==null?void 0:l.sections;if(!G)return-1;p=0;l=_.I(G);for(G=l.next();!G.done;G=l.next()){G=G.value;Q=G.timedSyncDataList||[];if(G.sectionId===H)return H=Q.findIndex(function(q){return q.syncItemId===Z}),H===-1?H:p+H;
p+=Q.length}return-1};_.H6q=function(G){_.wI.call(this);var H=this;this.JSC$23303_watchApi=G;this.unresolvedCommands=[];this.JSC$23303_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(Z){b14(H,Z)});
this.addOnDisposeCallback(function(){H.JSC$23303_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
GEY(this)};
_.T(_.H6q,_.wI);var GEY=function(G){var H;_.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23303_watchApi.playerApi,2);H=Z.yieldResult;if(G.isDisposed())return Z.return();G.timedSyncObserver=new YS4(H);G.unresolvedCommands.length&&(G.unresolvedCommands.forEach(function(Q){return b14(G,Q)}),G.unresolvedCommands=[]);
_.T$(G,G.timedSyncObserver);_.K0(Z)})},b14=function(G,H){if(G.timedSyncObserver){var Z=_.X(H,oFO);
if(Z&&Z.timedSyncEntityKey&&Z.panelSyncEntityKey){G=G.timedSyncObserver;H=Z.timedSyncEntityKey;var Q=Z.panelSyncEntityKey;Z=!!Z.isEnabled;Z=Z===void 0?!0:Z;var p=_.tp().resolve(_.oT);p=q17(p.getState(),H);Z?G.timeToPanelSyncKeyMap[H]||(G.timeToPanelSyncKeyMap[H]=Q,EPy(G,p)):(delete G.timeToPanelSyncKeyMap[H],Lg_(G,p))}}else G.unresolvedCommands.push(H)};var sZI=_.y(function(G){var H=G.data,Z=G.maybeLogSmartSkipClientData,Q=null,p=null,l=_.V("web_enable_auto_focus_for_timely_action_button"),q=function(){Q=document.activeElement},u=function(){H().smartSkipMetadata&&(Q=document.activeElement,_.aUd(function(){return p}))},B=function(D){if(H().smartSkipMetadata&&(!D||D.key!=="Enter")){Q&&Q.isConnected&&(_.aUd(function(){return Q}),Q=null);
var d;(d=p)==null||d.blur()}};
G=_.Hh(function(){Z==null||Z(!0,H());return!1});
var t=_.aX(_.$X(function(){return H().rendererContext},{onTap:function(D,d){d({disableClickTracking:!0})}}),_.tk({visibilityCallback:function(D){if(l)D?p&&H().smartSkipMetadata&&(u(),document.addEventListener("focusin",q)):(document.removeEventListener("focusin",q),B());
else if(D){D=_.nG(H().rendererContext);var d=Number(H().maxVisibleDurationMilliseconds),e,n=(e=_.X(H().rendererContext,_.qc))==null?void 0:e.label;D&&d&&n&&(e={label:n,command:D,durationMs:d},_.tp().resolve(_.pD).enqueue(e))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.yP(function(){if(l){var D;if((p=(D=t.value)==null?void 0:D.querySelector("button"))&&H().smartSkipMetadata){var d;(d=t.value)==null||d.addEventListener("keydown",B)}}});
_.oM(function(){l&&(p&&H().smartSkipMetadata&&p.removeEventListener("keydown",B),document.removeEventListener("focusin",q),B())});
return _.J("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:t,"on:click":G},_.J(_.SP,{data:function(){return H().content}},{buttonViewModel:_.kg}))},"eo");var Z62=_.y(function(G){var H=G.data,Z=G.playerApi,Q=_.tp().resolve(_.Vta);G=_.I(_.QF(function(){H()}));
var p=G.next().value,l=G.next().value,q=function(){return uMO(H(),p())},u=function(t,D){var d,e,n=(d=_.X(D==null?void 0:D.rendererContext,_.IX))==null?void 0:(e=d.loggingDirectives)==null?void 0:e.trackingParams;
if((D=D==null?void 0:D.smartSkipMetadata)&&D.loggingData&&(e=D.loggingData,D=e.algorithmId,d=e.startMilliseconds,e=e.endMilliseconds,D&&d!==void 0&&e!==void 0)){var c,W;t={smartSkipData:Object.assign({},{versionName:D,startMediaTimeMs:d,endMediaTimeMs:e},t&&{userInteractionMediaTimeMs:(Math.floor(((c=_.UO())==null?void 0:(W=c.getPlayer())==null?void 0:W.getCurrentTime())||0)*1E3).toString()})};c=_.$k();var M;n&&(M=_.BT(n));c&&M&&_.a5(c,M,t)}},B=function(t,D){var d=uMO(H(),t);
if(d){var e=_.X(d,SvO),n;if(n=D)n=Z(),d=_.X(d,SvO),n=d!=null&&d.smartSkipMetadata?!(n==null?0:n.isSameMarkerTypeVisible((d==null?void 0:d.smartSkipMetadata.markerKey)||"")):!0;if(n){var c,W;(e==null?0:(c=e.smartSkipMetadata)==null?0:(W=c.loggingData)==null?0:W.isCounterfactual)||(u(!1,e),l(t))}else D||p()!==t||l(void 0)}};
_.yN(function(){var t=H().timelyActions;if(t){t=_.I(t);for(var D=t.next();!D.done;D=t.next()){D=_.X(D.value,SvO);var d=void 0;(d=D)!=null&&d.cueRangeId&&Q.timelyActionsMap.set(D.cueRangeId,B)}_.oM(function(){Q.timelyActionsMap.clear()})}},"l2RtC");
return _.J("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.J(_.SP,{data:q},{timelyActionViewModel:function(t){return _.J(sZI,{data:t.data,maybeLogSmartSkipClientData:function(){u(!0,_.X(q(),SvO))}})}}))},"go");_.pEy=function(G){_.wI.call(this);this.JSC$23315_watchApi=G;G=_.I(_.Ty({},void 0,"UN7k5e"));this.timelyActionsOverlay=G.next().value;this.setTimelyActionsOverlay=G.next().value;QZx(this)};
_.T(_.pEy,_.wI);var QZx=function(G){var H,Z,Q,p;_.S(function(l){if(l.nextAddress==1)return lZN(G),giq(G),G.timelyActionsContainer=document.createElement("div"),l.yield(G.JSC$23315_watchApi.playerApi,2);H=l.yieldResult;(Q=(Z=H).insertTimelyActionUi)==null||Q.call(Z,G.timelyActionsContainer);p=_.az(G.timelyActionsContainer,function(){return _.J(Z62,{data:G.timelyActionsOverlay,playerApi:H})},"ho");
G.addOnDisposeCallback(p);_.K0(l)})},giq=function(G){var H=G.JSC$23315_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lZN(G)});
G.addOnDisposeCallback(function(){G.JSC$23315_watchApi.unsubscribeByKey(H)})},lZN=function(G){var H=G.JSC$23315_watchApi.getWatchNextResponse();
if(H){var Z,Q;if(H=_.X((Z=H.playerOverlays)==null?void 0:(Q=Z.playerOverlayRenderer)==null?void 0:Q.timelyActionsOverlayViewModel,mf0)){var p;(p=G.setTimelyActionsOverlay)==null||p.call(G,H)}}};_.qW7=function(G){_.wI.call(this);this.JSC$23319_watchApi=G;IZ4(this)};
_.T(_.qW7,_.wI);var IZ4=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23319_watchApi.playerApi,2);H=Q.yieldResult;Z=function(p){_.HT.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.X(p,_.i04)},popupType:"TOAST"}})};
H.addEventListener("onYtShowToast",Z);G.addOnDisposeCallback(function(){H.removeEventListener("onYtShowToast",Z)});
_.K0(Q)})};var SWx,Jc4,eM0,ur2,Bg0,d2x,kEN,D2O,niq,$2N;SWx=!1;_.tn0=function(G){_.wI.call(this);this.JSC$23322_watchApi=G;this.fullscreen=this.theater=!1;ur2(this);Bg0(this);Jc4(this)};
_.T(_.tn0,_.wI);Jc4=function(G){var H,Z,Q;_.S(function(p){if(p.nextAddress==1)return p.yield(G.JSC$23322_watchApi.playerApi,2);H=p.yieldResult;if(G.isDisposed())return p.return();Z=G.JSC$23322_watchApi.getElement("CINEMATICS");if(!Z)return p.return();G.JSC$23322_cinematicController=new _.$m(Z,H);_.T$(G,G.JSC$23322_cinematicController);_.lwO(G.JSC$23322_cinematicController);kEN(G,_.bhU());Q=G.JSC$23322_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(l){D2O(G,l)});
G.addOnDisposeCallback(function(){G.JSC$23322_watchApi.unsubscribeByKey(Q)});
d2x(G);D2O(G,G.JSC$23322_cinematicController.isAllowed());eM0(G);niq(G);_.K0(p)})};
eM0=function(G){G.fullscreen=_.ch(_.mm().getState());G.theater=_.XD(_.mm().getState());_.VnU(G,G.fullscreen,G.theater);var H=_.wU(_.mm(),_.ch,function(Q){G.fullscreen=Q;_.VnU(G,G.fullscreen,G.theater)}),Z=_.wU(_.mm(),_.XD,function(Q){G.theater=Q;
_.VnU(G,G.fullscreen,G.theater)});
G.addOnDisposeCallback(H);G.addOnDisposeCallback(Z)};
ur2=function(G){var H=G.JSC$23322_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){d2x(G)});
G.addOnDisposeCallback(function(){G.JSC$23322_watchApi.unsubscribeByKey(H)})};
Bg0=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23322_watchApi.playerApi,2);H=Q.yieldResult;Z=function(p){kEN(G,p)};
H.addEventListener("cinematicSettingsToggleChange",Z);G.addOnDisposeCallback(function(){H.removeEventListener("cinematicSettingsToggleChange",Z)});
_.K0(Q)})};
d2x=function(G){var H=G.JSC$23322_watchApi.getWatchNextResponse(),Z;H=_.X(H==null?void 0:(Z=H.pageVisualEffects)==null?void 0:Z[0],_.sX);var Q;(Q=G.JSC$23322_cinematicController)==null||_.IwI(Q,H)};
kEN=function(G,H){var Z;(Z=G.JSC$23322_cinematicController)==null||_.gry(Z,H);$2N(G)};
D2O=function(G,H){var Z;_.S(function(Q){if(Q.nextAddress==1)return _.V("kevlar_watch_cinematics_invisible")&&(H=!1),Q.yield(G.JSC$23322_watchApi.playerApi,2);Z=Q.yieldResult;Z.updateCinematicSettings(H);$2N(G);_.K0(Q)})};
niq=function(G){var H=_.lf();if(_.V("kevlar_measure_ambient_mode_idle")&&!H.getFlag(192)&&!SWx){SWx=!0;var Z=_.wM(_.Ui,function(){_.tp().resolve(_.LRA).start(1E4)},5E3);
G.addOnDisposeCallback(function(){_.Ui.cancelJob(Z);_.tp().resolve(_.LRA).stop()})}};
_.VnU=function(G,H,Z){G.fullscreen=H;G.theater=Z;var Q;(Q=G.JSC$23322_cinematicController)==null||Q.setFullscreen(G.fullscreen,G.theater);if(_.V("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(G.theater||G.fullscreen){var p;(p=G.JSC$23322_cinematicController)==null||_.qAq(p)}else if((G=G.JSC$23322_cinematicController)!=null){var l;(l=G.currentCinematicEffect)==null||l.pause()}};
$2N=function(G){if(_.V("web_cinematic_theater_mode")||_.V("web_cinematic_fullscreen")){var H;G.JSC$23322_watchApi.getRoot().toggleCinematicsActive(!((H=G.JSC$23322_cinematicController)==null||!H.isEnabled()))}};_.fZ4=function(G){_.wI.call(this);var H=this;this.JSC$23325_watchApi=G;this.commentsReady=!1;this.setCommentsJobId=0;G=_.wU(_.mm(),_.jH,function(){XE4(H)});
this.addOnDisposeCallback(G);var Z=this.JSC$23325_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ccO(H)}),Q=this.JSC$23325_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){ccO(H)});
this.addOnDisposeCallback(function(){H.JSC$23325_watchApi.unsubscribeByKey(Z);H.JSC$23325_watchApi.unsubscribeByKey(Q)});
var p=function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&TgN(H,"false")};
this.JSC$23325_watchApi.getRoot().addEventListener("yt-page-data-will-update",p);this.addOnDisposeCallback(function(){H.JSC$23325_watchApi.getRoot().removeEventListener("yt-page-data-will-update",p)});
ccO(this)};
_.T(_.fZ4,_.wI);var ccO=function(G){G.commentsReady=!1;_.Ui.cancelJob(G.setCommentsJobId);G.setCommentsJobId=_.wM(_.Ui,function(){XE4(G)},1E3)},XE4=function(G){if(!G.commentsReady){_.$K("cmi");
_.Ui.cancelJob(G.setCommentsJobId);var H,Z,Q,p,l=(H=G.JSC$23325_watchApi.getWatchNextResponse())==null?void 0:(Z=H.contents)==null?void 0:(Q=Z.twoColumnWatchNextResults)==null?void 0:(p=Q.results)==null?void 0:p.results.contents;H=void 0;if(l&&l.length)for(l=_.I(l),Z=l.next();!Z.done;Z=l.next())if(Z=Z.value,p=Q=void 0,((Q=Z)==null?void 0:(p=Q.itemSectionRenderer)==null?void 0:p.sectionIdentifier)==="comment-item-section"){_.V("web_watch_provide_undefined_comments")?H=Z.itemSectionRenderer:G.JSC$23325_watchApi.provideRenderingData("COMMENTS",
Z.itemSectionRenderer);TgN(G,"true");break}_.V("web_watch_provide_undefined_comments")&&G.JSC$23325_watchApi.provideRenderingData("COMMENTS",H);G.commentsReady=!0;G.JSC$23325_watchApi.dispatchEvent("yt-watch-comments-ready")}},TgN=function(G,H){var Z;
(Z=G.JSC$23325_watchApi.getElement("COMMENTS"))==null||Z.setAttribute("canScheduleJobs",H)};_.Mnx=function(G){_.wI.call(this);var H=this;this.JSC$23328_watchApi=G;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.V("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.V("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.V("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.eA("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)vi0(this);
else{var Z=this.JSC$23328_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){W_y(H);wC(H)}),Q=this.JSC$23328_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){hK(H);
wC(H)});
this.JSC$23328_watchApi.getRoot().is==="ytd-watch-grid"&&_.V("swatcheroo_pbs_load_grid")&&(zMY(this),K_Y(this));this.addOnDisposeCallback(function(){H.JSC$23328_watchApi.unsubscribeByKey(Z);H.JSC$23328_watchApi.unsubscribeByKey(Q);_.Ui.cancelJob(H.provideRichGridJobId)});
W_y(this);hK(this)}};
_.T(_.Mnx,_.wI);var vi0=function(G){var H=G.JSC$23328_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){G.providePlayerJobId=_.ZG(_.Ui,function(){W_y(G);wC(G)},G.provideAllDataDelayMs)}),Z=G.JSC$23328_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){G.provideWatchNextJobId=_.ZG(_.Ui,function(){hK(G);
wC(G)},G.provideAllDataDelayMs)}),Q=G.JSC$23328_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){G.provideWatchNextJobId=_.ZG(_.Ui,function(){hK(G);
wC(G)},G.provideAllDataDelayMs)});
G.JSC$23328_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.wM(_.Ui,function(){W_y(G);hK(G);wC(G)},100)});
G.JSC$23328_watchApi.addPageDisposeJob(function(){_.Ui.cancelJob(G.provideWatchNextJobId);_.Ui.cancelJob(G.providePlayerJobId)});
G.addOnDisposeCallback(function(){G.JSC$23328_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");G.JSC$23328_watchApi.unsubscribeByKey(H);G.JSC$23328_watchApi.unsubscribeByKey(Z);G.JSC$23328_watchApi.unsubscribeByKey(Q);_.Ui.cancelJob(G.providePlayerJobId);_.Ui.cancelJob(G.provideWatchNextJobId)});
W_y(G);hK(G)},W_y=function(G){var H=G.JSC$23328_watchApi.getPlayerResponse(),Z,Q,p=(Q=H==null?void 0:(Z=H.playabilityStatus)==null?void 0:Z.messageRenderers)!=null?Q:[],l,q;
H=(q=H==null?void 0:(l=H.playabilityStatus)==null?void 0:l.messages)!=null?q:[];l=_.I(H);for(q=l.next();!q.done;q=l.next())p.push({alertRenderer:{text:_.aq(q.value),type:"WARNING"}});G.JSC$23328_watchApi.provideRenderingData("ALERTS",p)},hK=function(G){var H=[],Z,Q,p,l=G.JSC$23328_watchApi.getWatchNextResponse(),q,u,B,t,D=l==null?void 0:(q=l.contents)==null?void 0:(u=q.twoColumnWatchNextResults)==null?void 0:(B=u.results)==null?void 0:(t=B.results)==null?void 0:t.contents;
if(D)for(q=_.I(D),u=q.next();!u.done;u=q.next())if(u=u.value,u.videoPrimaryInfoRenderer)var d=u;else if(u.videoSecondaryInfoRenderer){var e=u;t=B=void 0;u=Object.assign({},(B=u.videoSecondaryInfoRenderer)==null?void 0:(t=B.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(u.rows&&u.collapsedItemCount!==void 0){u.rows=u.rows.slice(0,u.collapsedItemCount).filter(function(Zt){return!!Zt.richMetadataRowRenderer});
u.collapsedItemCount=u.rows.length;var n={metadataRowContainerRenderer:u}}}else if(u.merchandiseShelfRenderer)var c=u;else if(u.ticketShelfRenderer)var W=u;else if(u.expandableMetadataRenderer)var M=u;else if(u.itemSectionRenderer)if(B=u.itemSectionRenderer.contents,t=void 0,G.directlyProvideComments&&((t=u.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section")_.$K("cmi"),G.JSC$23328_watchApi.provideRenderingData("COMMENTS",u.itemSectionRenderer);else if(B)for(u=_.I(B),B=
u.next();!B.done;B=u.next())if(B=B.value,B.commentsEntryPointHeaderRenderer)var r=B;else if(B.clarificationRenderer||B.infoPanelContainerRenderer||B.infoPanelContentRenderer||B.emergencyOneboxRenderer){H.push(B);var w=w||!!e}else B.limitedStateMessageRenderer?Q=B:B.videoMetadataCarouselViewModel&&(p=B);if(_.V("web_watch_merch_in_sd_when_ticket_shelf_present")&&c&&W){var x=c;c=void 0}if(G.provideWatchNextSecondaryResults){var U,R,L;G.JSC$23328_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
l==null?void 0:(U=l.contents)==null?void 0:(R=U.twoColumnWatchNextResults)==null?void 0:(L=R.secondaryResults)==null?void 0:L.secondaryResults)}if(G.JSC$23328_watchApi.getRoot().is==="ytd-watch-grid"){var H3,qX;G.JSC$23328_watchApi.provideRenderingData("LIVE_CHAT",l==null?void 0:(H3=l.contents)==null?void 0:(qX=H3.twoColumnWatchNextResults)==null?void 0:qX.conversationBar)}var B3,fW,e2,$R;(U=l==null?void 0:(B3=l.contents)==null?void 0:(fW=B3.twoColumnWatchNextResults)==null?void 0:(e2=fW.secondaryResults)==
null?void 0:($R=e2.secondaryResults)==null?void 0:$R.offerModule)&&(U.donationShelfRenderer||U.donationUnavailableRenderer)&&G.JSC$23328_watchApi.getRoot().is!=="ytd-watch-grid"&&(Z=U);B3=G.JSC$23328_watchApi.getPlayerResponse();if(!B3||!_.yuM(B3.playabilityStatus,l==null?void 0:l.playerOverlays)){var ie;if(l==null?0:(ie=l.contents)==null?0:ie.singleColumnWatchNextResults){var W3,DT;var UR=l==null?void 0:(W3=l.contents.singleColumnWatchNextResults.results)==null?void 0:(DT=W3.results)==null?void 0:
DT.contents}else{var zx,be,J_,rG;ie=!!(D==null?0:(zx=D[0])==null?0:(be=zx.itemSectionRenderer)==null?0:(J_=be.contents)==null?0:(rG=J_[0])==null?0:rG.backgroundPromoRenderer);var Kw,cD;zx=!!(l==null?0:(Kw=l.contents)==null?0:(cD=Kw.twoColumnWatchNextResults)==null?0:cD.secondaryResults);ie&&!zx&&(UR=D)}}D=H[0];Kw=H[1];w&&H.length===1&&(Kw=D,D=void 0);G.JSC$23328_watchApi.provideRenderingData("PRIMARY_INFO",d);G.JSC$23328_watchApi.provideRenderingData("SECONDARY_INFO",e);G.JSC$23328_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
r);G.JSC$23328_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",p);G.JSC$23328_watchApi.provideRenderingData("CLARIFICATION",D);G.JSC$23328_watchApi.provideRenderingData("RICH_METADATA",n);G.JSC$23328_watchApi.provideRenderingData("MERCH_SHELF",c);_.V("web_watch_merch_in_sd_when_ticket_shelf_present")&&G.JSC$23328_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",x);G.JSC$23328_watchApi.provideRenderingData("TICKET_SHELF",W);G.JSC$23328_watchApi.provideRenderingData("LIMITED_STATE",Q);G.JSC$23328_watchApi.getRoot().is!==
"ytd-watch-grid"&&G.JSC$23328_watchApi.provideRenderingData("DONATION_SHELF",Z);G.JSC$23328_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",UR);G.JSC$23328_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Kw);G.JSC$23328_watchApi.provideRenderingData("EXPANDABLE_METADATA",M);if(G.swatcherooProvideAllDataOnScheduledJob){var ec,gf,sR,ep,Qh,$w;d=l==null?void 0:(ec=l.contents)==null?void 0:(gf=ec.twoColumnWatchNextResults)==null?void 0:(sR=gf.secondaryResults)==null?void 0:(ep=sR.secondaryResults)==
null?void 0:(Qh=ep.results)==null?void 0:($w=Qh[0])==null?void 0:$w.richGridRenderer;G.JSC$23328_watchApi.provideRenderingData("RICH_GRID_RENDERER",d)}};
_.Mnx.prototype.hasCompanionAds=function(G){var H,Z;return(Z=G==null?void 0:(H=G.adPlacements)==null?void 0:H.some(function(Q){var p,l,q,u;return(Q==null?void 0:(p=Q.adPlacementRenderer)==null?void 0:(l=p.renderer)==null?void 0:l.actionCompanionAdRenderer)||(Q==null?void 0:(q=Q.adPlacementRenderer)==null?void 0:(u=q.renderer)==null?void 0:u.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?Z:!1};
var wC=function(G){if(!_.V("swaterdoo_ps_wn_handle_ks")){G.swatcherooProvideAllDataOnScheduledJob||K_Y(G,3E3);var H=G.JSC$23328_watchApi.getPlayerResponse(),Z,Q,p,l,q,u=(Z=G.JSC$23328_watchApi.getWatchNextResponse())==null?void 0:(Q=Z.contents)==null?void 0:(p=Q.twoColumnWatchNextResults)==null?void 0:(l=p.secondaryResults)==null?void 0:(q=l.secondaryResults)==null?void 0:q.offerModule;H=G.hasCompanionAds(H);var B,t;Z=(u==null?void 0:(B=u.tvfilmOfferModuleRenderer)==null?void 0:B.clientShouldSuppressIfCompanionAdDisplayed)||
(u==null?void 0:(t=u.unlimitedOfferModuleRenderer)==null?void 0:t.suppressIfCompanionAds);B=H&&Z;G.JSC$23328_watchApi.getRoot().is==="ytd-watch-grid"&&G.JSC$23328_watchApi.provideRenderingData("OFFER_MODULE",B?void 0:u)}},K_Y=function(G,H){_.V("swatcheroo_pbs_load_grid")&&(G.provideRichGridJobId&&_.Ui.cancelJob(G.provideRichGridJobId),G.provideRichGridJobId=_.ZG(_.Ui,function(){G.provideRichGridJobId=0;
var Z,Q,p,l,q,u,B,t=(Z=G.JSC$23328_watchApi.getWatchNextResponse())==null?void 0:(Q=Z.contents)==null?void 0:(p=Q.twoColumnWatchNextResults)==null?void 0:(l=p.secondaryResults)==null?void 0:(q=l.secondaryResults)==null?void 0:(u=q.results)==null?void 0:(B=u[0])==null?void 0:B.richGridRenderer;t&&G.JSC$23328_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)},H))},zMY=function(G){var H,Z;
_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23328_watchApi.playerApi,2);H=Q.yieldResult;Z=function(){G.onPlaybackStart()};
H.addEventListener("onPlaybackStartExternal",Z);G.addOnDisposeCallback(function(){H.removeEventListener("onPlaybackStartExternal",Z)});
_.K0(Q)})};
_.Mnx.prototype.onPlaybackStart=function(){K_Y(this)};_.P4d=function(G){_.wI.call(this);var H=this;this.JSC$23341_watchApi=G;G.playerApi.then(function(Z){H.player=Z});
this.gestures=new _.S6(this.JSC$23341_watchApi.getRoot(),G.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.JRM(_.mm().getState())&&_.jH(_.mm().getState())<=0)if(_.ch(_.mm().getState())){var Z;(Z=H.player)==null||Z.toggleFullscreen()}else _.AZ(H.JSC$23341_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
jZ2(this)};
_.T(_.P4d,_.wI);var jZ2=function(G){var H=_.wU(_.mm(),_.ch,function(Z){G.onFullscreenChanged(Z)});
G.addOnDisposeCallback(H);H=_.wU(_.mm(),_.jH,function(Z){G.gestures&&(Z>0?G.gestures.detach():G.gestures.attach())});
G.addOnDisposeCallback(H)};
_.P4d.prototype.onFullscreenChanged=function(G){this.gestures&&this.gestures.update(G)};var rcY;rcY=["PLAYLIST"];_.hMU=function(G){_.wI.call(this);var H=this;this.JSC$23344_watchApi=G;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(G.subscribeToActiveChanged(function(Z){H.onActiveChanged(Z)}));
wEd(this)};
_.T(_.hMU,_.wI);var C4_=function(G){G.pageDisposalDataTypes=Object.values(FeI).filter(function(H){return!rcY.includes(H)})},wEd=function(G){if(_.V("swatcheroo_enable_ghost_cards")||_.V("web_watch_clear_data_on_page_dispose"))C4_(G),G.JSC$23344_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ui.cancelJob(G.clearDataJobId);
G.clearDataJobId=0}),G.runPageDisposeJob=function(){var H=_.tp().resolve(_.o0).getDestinationPageType()==="watch";
G.clearDataJobId=_.ZG(_.Ui,G.runClearDataJob,H?0:_.eA("web_watch_delay_page_dispose_ms",1E4))},G.runClearDataJob=function(){i6x(G)},G.runOnYtNavigateAwayFinish=function(){G.clearDataJobId&&(_.Ui.cancelJob(G.clearDataJobId),G.clearDataJobId=0,i6x(G))},document.addEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish),G.JSC$23344_watchApi.addPageDisposeJob(G.runPageDisposeJob),G.addOnDisposeCallback(function(){G.JSC$23344_watchApi.removePageDisposeJob(G.runPageDisposeJob);
G.JSC$23344_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",G.runOnYtNavigateAwayFinish)})},i6x=function(G){G.pageDisposalDataTypes.forEach(function(H){G.JSC$23344_watchApi.provideRenderingData(H,void 0)});
G.clearDataJobId=0};
_.hMU.prototype.onActiveChanged=function(G){G&&((G=document.querySelector("#watch-page-skeleton"))&&_.Ku(G),O6I(this),document.body.removeAttribute("no-y-overflow"),_.YI("IS_SHELL_LOAD")&&_.QjO())};
var O6I=function(G){_.S(function(H){if(H.nextAddress==1)return H.yield(G.JSC$23344_watchApi.playerApi,2);_.KA();_.K0(H)})};var aZI;aZI=_.V("kevlar_watch_while_counterfactual")?0:.25;_.U2U=function(G){_.wI.call(this);this.JSC$23347_watchApi=G;this.JSC$23347_watchWhileEnabled=_.V("kevlar_watch_while_v2");this.pipEnabled=_.V("web_enable_pip_on_miniplayer");ycY(this);oiI(this);m2U(this)};
_.T(_.U2U,_.wI);var ycY=function(G){G.JSC$23347_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){RM4(G)});
G.addOnDisposeCallback(function(){G.JSC$23347_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},oiI=function(G){var H,Z;
_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23347_watchApi.playerApi,2);H=Q.yieldResult;Z=function(){RM4(G)};
H.addEventListener("onCollapseMiniplayer",Z);G.addOnDisposeCallback(function(){H.removeEventListener("onCollapseMiniplayer",Z)});
_.K0(Q)})},m2U=function(G){var H=G.JSC$23347_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&H&&G.JSC$23347_watchWhileEnabled&&(G.playerIntersectionObserver=new IntersectionObserver(function(Z){G.handleIntersect(Z)},{threshold:[aZI]}),G.playerIntersectionObserver.observe(H),G.addOnDisposeCallback(function(){var Z;
(Z=G.playerIntersectionObserver)==null||Z.disconnect()}))},RM4=function(G){var H,Z,Q;
_.S(function(p){if(p.nextAddress==1){H=_.tp().resolve(_.o0);Z=H.data;Q=_.XW(Z.response,!1,Z.playerResponse);_.PN().miniplayerButtonActivation=!0;if(G.pipEnabled)return _.PN().watchPipActivation=!0,p.jumpTo(2);_.tp().resolve(_.WM).collapse();return p.yield(_.PN().navigationFinishPromise,2)}if(p.nextAddress!=4)return _.PN().currentEndpoint=Q.watchEndpoint||null,p.yield(_.tp().resolve(_.WM).activate(G.JSC$23347_watchApi.getElement("PLAYER"),Q,Z),4);_.PN().userActivation=!0;_.K0(p)})};
_.U2U.prototype.handleIntersect=function(G){Ng_(this,G[G.length-1])};
var Ng_=function(G,H){G.watchWhileJobId&&_.Ui.cancelJob(G.watchWhileJobId);G.watchWhileJobId=_.Ui.addLowPriorityJob(function(){var Z,Q;return _.S(function(p){if(p.nextAddress==1)return G.watchWhileJobId=void 0,Z=_.tp().resolve(_.WM),H.intersectionRatio>aZI?Z.isMiniplayerActive()?p.yield(Z.deactivate(),0):p.jumpTo(0):(Q=!Z.isMiniplayerActive())?p.yield(AcO(G),5):p.jumpTo(4);p.nextAddress!=4&&(Q=p.yieldResult);if(!Q)return p.jumpTo(0);_.PN().watchWhileActivation=!0;return p.yield(x2_(G),0)})},100)},
AcO=function(G){return _.S(function(H){return H.nextAddress==1?_.V("kevlar_watch_while_paused")?H.return(!0):H.yield(G.isPlayerPlaying(),2):H.return(H.yieldResult)})};
_.U2U.prototype.isPlayerPlaying=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23347_watchApi.playerApi,2);H=Z.yieldResult;return Z.return(H.getPlayerStateObject().isPlaying)})};
var x2_=function(G){var H,Z;return _.S(function(Q){H=_.tp().resolve(_.o0).data;Z=_.XW(H.response,!1,H.playerResponse);_.PN().currentEndpoint=Z.watchEndpoint||null;return Q.yield(_.tp().resolve(_.WM).activate(G.JSC$23347_watchApi.getElement("PLAYER"),Z,H),0)})};_.YWy=function(G){_.wI.call(this);this.JSC$23351_watchApi=G;L_U(this);EiO(this)};
_.T(_.YWy,_.wI);var EiO=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23351_watchApi.playerApi,2);H=Q.yieldResult;Z=function(p){var l;p.sessionData&&p.sessionData.itct&&(l=p.sessionData.itct);var q=p.watchEndpoint;if(q&&p.sessionData&&p.sessionData.autonav)q=_.mG3(q,l);else{var u;q=_.R5(p.videoId,(u=p.listId)!=null?u:void 0,l)}l={endpoint:q};p.sessionData&&(l.tempData=p.sessionData);G.JSC$23351_watchApi.dispatchEvent("yt-navigate",l)};
H.addEventListener("onPlayVideo",Z);G.addOnDisposeCallback(function(){H.removeEventListener("onPlayVideo",Z)});
_.K0(Q)})},L_U=function(G){var H=function(Z){G.onYtNavigate(Z)};
G.JSC$23351_watchApi.getRoot().addEventListener("yt-navigate",H);G.addOnDisposeCallback(function(){G.JSC$23351_watchApi.getRoot().removeEventListener("yt-navigate",H)})};
_.YWy.prototype.onYtNavigate=function(G){var H=this,Z,Q,p,l,q,u,B,t,D;return _.S(function(d){if(d.nextAddress==1){if(!((Z=G.detail)==null?0:(Q=Z.endpoint)==null?0:Q.watchEndpoint))return d.return();p=G.detail.endpoint.watchEndpoint;l=H.JSC$23351_watchApi.getWatchNextResponse();u=_.X((q=l)==null?void 0:q.currentVideoEndpoint,_.hZ);if(!u)return d.return();if(p.videoId!==u.videoId||p.playlistId&&p.playlistId!==u.playlistId||typeof p.startTimeSeconds!=="number")return d.jumpTo(0);G.stopPropagation();
(B=_.V("kevlar_watch_while_v2")&&!_.V("kevlar_watch_while_counterfactual"))&&_.tp().resolve(_.WM).isMiniplayerActive()||H.JSC$23351_watchApi.scrollWatchTo(0,!0);return d.yield(H.JSC$23351_watchApi.playerApi,3)}t=d.yieldResult;D=p.startTimeSeconds;t.seekTo(D,void 0,void 0,void 0,84);t.wakeUpControls();D<t.getDuration()&&t.playVideo();_.K0(d)})};_.b6O=function(G){_.wI.call(this);var H=this;this.JSC$23354_watchApi=G;var Z=this.JSC$23354_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){F_7(H)});
this.addOnDisposeCallback(function(){H.JSC$23354_watchApi.unsubscribeByKey(Z)});
F_7(this);_.V("enable_ai_companion")&&(G=this.JSC$23354_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.c08(_.tp().resolve(_.yp),G,"WATCH")};
_.T(_.b6O,_.wI);var F_7=function(G){var H=G.JSC$23354_watchApi.getWatchNextResponse();if(H){var Z,Q=[].concat(_.OP((Z=H==null?void 0:H.engagementPanels)!=null?Z:[]));Q.unshift.apply(Q,_.OP(GhU(H)));G.JSC$23354_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Q)}},H9y=function(G){var H,Z,Q,p=(H=G.engagementPanels)==null?void 0:(Z=H.find(function(n){var c;
return((c=n.engagementPanelSectionListRenderer)==null?void 0:c.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Q=Z.engagementPanelSectionListRenderer.content)==null?void 0:Q.structuredDescriptionContentRenderer,l;
if(_.X(p==null?void 0:(l=p.items)==null?void 0:l.find(function(n){return!!_.X(n,l22)}),l22))return!0;
var q,u,B,t;if(G=(((q=G.contents)==null?void 0:(u=q.twoColumnWatchNextResults)==null?void 0:(B=u.results)==null?void 0:(t=B.results)==null?void 0:t.contents)||[]).find(function(n){return n.videoPrimaryInfoRenderer})){var D,d,e;
return(((D=G.videoPrimaryInfoRenderer)==null?void 0:(d=D.videoActions)==null?void 0:(e=d.menuRenderer)==null?void 0:e.flexibleItems)||[]).some(function(n){n=_.X(n,_.Hr4);if(!n)return!1;var c,W;n=(c=n.topLevelButton)==null?void 0:(W=c.buttonViewModel)==null?void 0:W.onTap;if(!n)return!1;c=_.Tt(n);if(!c)return!1;var M;return((M=_.X(c,_.nM))==null?void 0:M.panelIdentifier)==="PAyouchat"})}return!1},GhU=function(G){var H=[];
if(!_.V("web_watch_inject_placeholder_fantasy_panel_killswitch")){var Z,Q,p,l=(Z=G.engagementPanels)==null?void 0:(Q=Z.find(function(u){var B;return((B=u.engagementPanelSectionListRenderer)==null?void 0:B.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(p=Q.engagementPanelSectionListRenderer.content)==null?void 0:p.structuredDescriptionContentRenderer,q;
_.X(l==null?void 0:(q=l.items)==null?void 0:q.find(function(u){return!!_.X(u,CVO)}),CVO)&&(Z=_.VJX("PAsports_fantasy"),Z.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(Z))}H9y(G)&&(G=_.VJX("PAyouchat"),G.engagementPanelSectionListRenderer.targetId="PAyouchat",G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(G));
return H};_.Z90=function(G){_.wI.call(this);this.JSC$23357_watchApi=G;sOd(this)};
_.T(_.Z90,_.wI);var sOd=function(G){G.JSC$23357_watchApi.registerActionHandler("yt-loop-command",function(H){QOI(G,H)});
G.JSC$23357_watchApi.registerActionHandler("yt-repeat-chapter-command",function(H){pfy(G,H)});
G.addOnDisposeCallback(function(){G.JSC$23357_watchApi.unregisterActionHandler("yt-loop-command");G.JSC$23357_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},QOI=function(G,H){var Z;
_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23357_watchApi.playerApi,2);Z=Q.yieldResult;_.X(H,ObM).loop?(Z.setLoopRange({startTimeMs:Number(_.X(H,ObM).startTimeMs),endTimeMs:Number(_.X(H,ObM).endTimeMs),postId:_.X(H,ObM).postId,type:"clips"}),Z.playVideo()):Z.setLoopRange(null);_.K0(Q)})},pfy=function(G,H){var Z,Q;
_.S(function(p){if(p.nextAddress==1)return p.yield(G.JSC$23357_watchApi.playerApi,2);Z=p.yieldResult;Q=_.X(H,UfO).repeat;Q==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(Z.setLoopRange({startTimeMs:Number(_.X(H,UfO).startTimeMs),endTimeMs:Number(_.X(H,UfO).endTimeMs),type:"repeatChapter"}),Z.playVideo()):Q==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&Z.setLoopRange(null);_.K0(p)})};_.gkd=function(G){_.wI.call(this);this.JSC$23362_watchApi=G;lQx(this)};
_.T(_.gkd,_.wI);var lQx=function(G){G.JSC$23362_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(H){IQM(G,H)});
G.addOnDisposeCallback(function(){G.JSC$23362_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},IQM=function(G,H){var Z,Q,p,l,q,u,B,t,D,d,e;
_.S(function(n){if(n.nextAddress==1)return n.yield(G.JSC$23362_watchApi.playerApi,2);Z=n.yieldResult;if(l=(p=(Q=_.X(H,RyN))==null?void 0:Q.highlightedMenuItemKey)!=null?p:"")(u=(q=Z).highlightSettingsMenuItem)==null||u.call(q,l);if(D=(t=(B=_.X(H,RyN))==null?void 0:B.openMenuItemKey)!=null?t:"")(e=(d=Z).openSettingsMenuItem)==null||e.call(d,D);_.K0(n)})};var qlx=_.G9("/youtube/app/watch/player_state","playerStateEntity");_.Cj=function(G){_.wI.call(this);this.JSC$23365_watchApi=G;Sld(this);utY(this)};
_.T(_.Cj,_.wI);var Bj7=function(G){switch(G){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"}},Sld=function(G){var H,Z,Q,p;
_.S(function(l){if(l.nextAddress==1)return l.yield(G.JSC$23365_watchApi.playerApi,2);H=l.yieldResult;if(G.isDisposed())return l.return();Z=function(q){G.onPlayerStateChange(q)};
Q=function(q){G.onAdStateChange(q)};
p=function(){G.onAdSkip()};
H.addEventListener("onStateChange",Z);H.addEventListener("onAdStateChange",Q);H.addEventListener("onAdSkip",p);G.addOnDisposeCallback(function(){H.removeEventListener("onStateChange",Z);H.removeEventListener("onAdStateChange",Q);H.removeEventListener("onAdSkip",p)});
_.K0(l)})},utY=function(G){var H=G.JSC$23365_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){G.adsState=-1;
JZ0(G)});
G.addOnDisposeCallback(function(){G.JSC$23365_watchApi.unsubscribeByKey(H)})},JZ0=function(G){var H=_.OI(),Z=H.dispatch;
a:switch(G.adsState){case -1:case 0:var Q="ADS_STATE_NONE";break a;case 1:case 2:case 3:Q="ADS_STATE_PLAYING";break a;default:Q="ADS_STATE_UNKNOWN"}Z.call(H,_.uP("playerStateEntity",qlx,{key:qlx,playerState:Bj7(G.playerState),adsState:Q,videoId:G.videoId}))};
_.Cj.prototype.onPlayerStateChange=function(G){var H=this,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(H.JSC$23365_watchApi.playerApi,2);Z=Q.yieldResult;if(H.isDisposed())return Q.return();H.playerState=G;H.videoId=Z.getVideoData().video_id;JZ0(H);_.K0(Q)})};
_.Cj.prototype.onAdStateChange=function(G){this.adsState=G;JZ0(this)};
_.Cj.prototype.onAdSkip=function(){this.adsState=0;JZ0(this)};_.kh0=function(G){_.wI.call(this);var H=this;this.JSC$23369_watchApi=G;this.enableExternalPlaylistPanelInPlayer=_.V("delhi_web_player_use_external_playlist_panel");_.tp().resolve(_.H9).setPlayer(this.JSC$23369_watchApi.getElement("PLAYER"));G=this.JSC$23369_watchApi.subscribeToActiveChanged(function(Z){H.onActiveChanged(Z)});
this.addOnDisposeCallback(G);tuM(this)};
_.T(_.kh0,_.wI);var tuM=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return G.enableExternalPlaylistPanelInPlayer?Q.yield(G.JSC$23369_watchApi.playerApi,2):Q.return();H=Q.yieldResult;Z=function(){if(G.playlistPanelElement)G.playlistPanelElement.onToggleExpanded()};
H.addEventListener("onToggleExternalPlaylistPanel",Z);G.addOnDisposeCallback(function(){H.removeEventListener("onToggleExternalPlaylistPanel",Z)});
_.K0(Q)})};
_.kh0.prototype.onActiveChanged=function(G){var H=this,Z=_.tp().resolve(_.H9),Q=function(){D57(H)};
G?(this.playlistPanelElement=this.JSC$23369_watchApi.getElement("PLAYLIST_PANEL"))?(Z.setPlaylistComponent(this.playlistPanelElement),Z.addEventListener("yt-playlist-data-updated",Q),this.addOnDisposeCallback(function(){Z.removeEventListener("yt-playlist-data-updated",Q)}),D57(this)):_.HU(Error("Yo")):(Z.removeEventListener("yt-playlist-data-updated",Q),Z.cancelVideoSkip())};
var D57=function(G){var H=_.tp().resolve(_.H9);G.JSC$23369_watchApi.provideRenderingData("PLAYLIST",H.getPlaylistData())};_.iv=function(G){_.wI.call(this);var H=this;this.JSC$23372_watchApi=G;this.onPageScroll=function(){H.scrollThrottle.fire();H.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Zo(this.onThrottledScroll,200,this);_.T$(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Zo(this.onMastheadThrottledScroll,50,this);_.T$(this,this.mastheadScrollThrottle);this.animation=new _.Qc(function(Z){H.JSC$23372_watchApi.getRoot().setScrollTop(Z)});
G=_.wU(_.mm(),_.ch,function(){H.onFullscreenChanged()});
this.addOnDisposeCallback(G);d5_(this);evq(this);this.onThrottledScroll()};
_.T(_.iv,_.wI);
_.iv.prototype.onFullscreenChanged=function(){var G=this,H=this.JSC$23372_watchApi.getRoot();!this.pageScrollElement&&H.pageScrollElement?(this.pageScrollElement=H.pageScrollElement,H.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){G.pageScrollElement&&G.pageScrollElement.removeEventListener("scroll",G.onPageScroll)})):this.pageScrollElement&&!H.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var d5_=function(G){window.addEventListener("scroll",G.onPageScroll);G.addOnDisposeCallback(function(){window.removeEventListener("scroll",G.onPageScroll)})},evq=function(G){G.JSC$23372_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(H){a:{var Z;
if(Z=G.JSC$23372_watchApi.getRoot().contains(H)&&!G.animation.isAnimating()){Z=H.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var Q,p,l=(H==null?void 0:(Q=H.parentElement)==null?void 0:(p=Q.parentElement)==null?void 0:p.id)==="fixed-secondary";Z=!(Z&&l)}if(Z){if(_.V("kevlar_watch_scroll_manager_absolute_offset_killswitch"))Q=H.offsetTop;else for(Q=0,p=H;p!==null;)Q+=p.offsetTop,Q-=p.scrollTop,p=p.offsetParent;p=Q;Q=p-24;H=p+H.offsetHeight+24;p=G.JSC$23372_watchApi.getRoot().getPageScrollingElement();
Z=G.JSC$23372_watchApi.getRoot().getScrollTop();l=Z+p.clientHeight-56;if(Q<Z+56)H=Q-56;else if(H>l)H-=p.clientHeight;else break a;G.scrollWatchTo(Math.max(0,H),!0)}}});
G.addOnDisposeCallback(function(){G.JSC$23372_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.iv.prototype.onThrottledScroll=function(){var G=_.mm(),H=G.dispatch,Z=this.JSC$23372_watchApi.getRoot().getScrollTop();H.call(G,_.Lo({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:Z}}))};
_.iv.prototype.onMastheadThrottledScroll=function(){this.JSC$23372_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23372_watchApi.getRoot().getScrollTop())};
_.iv.prototype.scrollWatchTo=function(G,H){(H===void 0?0:H)?this.animation.start(this.JSC$23372_watchApi.getRoot().getScrollTop(),Math.max(0,G),500):this.JSC$23372_watchApi.getRoot().setScrollTop(G)};_.$50=function(G){_.wI.call(this);var H=this;this.JSC$23375_watchApi=G;var Z=this.JSC$23375_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){nk0(H)}),Q=this.JSC$23375_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Vu4(H)});
this.addOnDisposeCallback(function(){H.JSC$23375_watchApi.unsubscribeByKey(Z);H.JSC$23375_watchApi.unsubscribeByKey(Q)});
nk0(this);Vu4(this)};
_.T(_.$50,_.wI);
var nk0=function(G){var H,Z,Q,p=(Q=(H=G.JSC$23375_watchApi.getPlayerResponse())==null?void 0:(Z=H.videoDetails)==null?void 0:Z.title)!=null?Q:"";G.JSC$23375_watchApi.dispatchEvent("yt-update-title",p)},Vu4=function(G){var H,Z,Q,p,l,q,u,B=(u=((q=(H=G.JSC$23375_watchApi.getWatchNextResponse())==null?void 0:(Z=H.contents)==null?void 0:(Q=Z.twoColumnWatchNextResults)==null?void 0:(p=Q.results)==null?void 0:(l=p.results)==null?void 0:l.contents)!=null?q:[]).find(function(t){return!!t.videoPrimaryInfoRenderer}))==null?
void 0:u.videoPrimaryInfoRenderer;
(H=_.yn(B==null?void 0:B.title))&&G.JSC$23375_watchApi.dispatchEvent("yt-update-title",H)};_.cZ0=function(G){_.wI.call(this);this.JSC$23378_watchApi=G;Xf0(this)};
_.T(_.cZ0,_.wI);var Xf0=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$23378_watchApi.playerApi,2);H=Q.yieldResult;Z=function(){G.onYpcContentRequest()};
H.addEventListener("onYpcContentRequest",Z);G.addOnDisposeCallback(function(){H.removeEventListener("onYpcContentRequest",Z)});
_.K0(Q)})};
_.cZ0.prototype.onYpcContentRequest=function(){var G,H,Z,Q,p,l=(G=this.JSC$23378_watchApi.getWatchNextResponse())==null?void 0:(H=G.contents)==null?void 0:(Z=H.twoColumnWatchNextResults)==null?void 0:(Q=Z.secondaryResults)==null?void 0:(p=Q.secondaryResults)==null?void 0:p.offerModule,q,u,B,t;G=(t=(B=(u=(q=l==null?void 0:l.episodeOfferModuleRenderer)!=null?q:l==null?void 0:l.movieOfferModuleRenderer)!=null?u:l==null?void 0:l.unlimitedOfferModuleRenderer)!=null?B:l==null?void 0:l.liveOfferModuleRenderer)!=
null?t:l==null?void 0:l.tvfilmOfferModuleRenderer;var D,d,e;l=(e=l==null?void 0:(D=l.tvfilmOfferModuleRenderer)==null?void 0:(d=D.actionButtons)==null?void 0:d.length)!=null?e:0;d=Math.max(l-1,0);var n,c,W;D=(W=G==null?void 0:(n=G.offerButton)==null?void 0:n.buttonRenderer)!=null?W:G==null?void 0:(c=G.actionButtons)==null?void 0:c[d].buttonRenderer;var M,r;(n=(r=(M=D==null?void 0:D.navigationEndpoint)!=null?M:D==null?void 0:D.serviceEndpoint)!=null?r:D==null?void 0:D.command)&&_.HT.instance.resolveCommand(n)};
}catch(e){_._DumpException(e)}
try{
var SID,gQq,pGt;_.lI8=function(){var G=_.oN.clone(QKo),H;return(new _.T_(function(Z,Q){G.onSuccess=function(p){_.pAW(p)?Z(new pGt(p)):Q(new _.oW("Request failed, status="+_.XP(p),"net.badstatus",p))};
G.onError=function(p){Q(new _.oW("Unknown request error","net.unknown",p))};
G.onTimeout=function(p){Q(new _.oW("Request timed out","net.timeout",p))};
H=_.WU("//googleads.g.doubleclick.net/pagead/id",G)})).thenCatch(function(Z){if(Z instanceof _.fA){var Q;
(Q=H)==null||Q.abort()}return _.DJ(Z)})};
_.II8=function(G){a:{var H="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(H="EMBEDDED_PLAYER_MODE_PFL");var Z=G.raw_embedded_player_response;if(!Z&&(G=G.embedded_player_response))try{Z=JSON.parse(G)}catch(p){break a}if(Z)b:for(var Q in gQq)if(gQq[Q]==Z.embeddedPlayerMode){H=gQq[Q];break b}}return H==="EMBEDDED_PLAYER_MODE_PFL"};
_.qIq=function(){if(_.V("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.Rbe())return Error("xf");var G=_.xI("PLAYER_VARS",{});if(_.oN.get(G,"privembed",!1)=="1")return Error("yf");if(_.II8(G))return Error("zf")};
SID=function(G){switch(G){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:_.Lw(G,"unknown result type")}};
_.uT6=function(G,H,Z){H=_.Ga2[H];Z={detected:G===0,source:H.pu4,detectionResult:SID(G),contentCpn:Z};_.yR("biscottiBasedDetection",Z);_.N$R.increment(H.pu4,G);H.bCi!==void 0&&_.Ae("CATSTAT",_.F92(G,H))};
_.mq=function(G,H){var Z={};Z.key=G;Z.value=H;return _.$AW().then(function(Q){return new Promise(function(p,l){try{var q=Q.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(Z);q.onsuccess=function(){p()};
q.onerror=function(){l()}}catch(u){l(u)}})})};
_.JvD=function(){var G=_.eA("user_engagement_experiments_rate_limit_ms"),H=Bxc.get("last-user-engagement-exp-trigger-timestamp");return!H||(0,_.t3)()>=H+G?(Bxc.set("last-user-engagement-exp-trigger-timestamp",(0,_.t3)()),!0):!1};
_.Ut=function(G,H,Z,Q,p){H=H===void 0?null:H;Z=Z===void 0?null:Z;Q=Q===void 0?null:Q;p=p===void 0?null:p;G={youThereEventType:G};Z&&(G.lactThresholdMs=Z.lactThresholdMs,G.mediaPosSec=Z.promptDelaySec,G.lactServerRequestMs=Z.lactServerRequestMs,G.triggerReason=Z.triggerReason);p!=null&&(G.renderingMediaPosSec=Math.round(p));H||(H=_.$k());H&&(G.clientScreenNonce=H);Q&&(G.clientPlaybackNonce=Q);_.yR("youThere",G)};
gQq={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"};pGt=function(G){this.xhr=G};
_.oW=function(G,H,Z){_.sj.call(this,G+", errorCode="+H);this.errorCode=H;this.xhr=Z;this.name="PromiseAjaxError"};
_.T(_.oW,_.sj);var QKo={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Bxc=new _.Lg("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.ZH8=function(G){return _.Lo({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:G})};
}catch(e){_._DumpException(e)}
try{
var mY,GD4,s57,Zox,Q50,pAq,gKq,Dmy,dmx,eEU,lg4,Ho0,us0,S3M,$mM;_.b9Y=function(){var G=window.location.hash;G.charAt(0)==="#"&&(G=G.charAt(1)==="!"?G.substring(2):G.substring(1));return _.QD(G)};
mY=function(G,H,Z){var Q;return _.S(function(p){if(p.nextAddress==1)return p.yield(H(),2);Q=p.yieldResult;Z(Q,G);_.K0(p)})};
GD4=function(){return _.S(function(G){return G.nextAddress==1?G.yield((_.qIq()!==void 0?_.DJ(Error("Af")):_.lI8()).then(function(){return 1},function(H){if(H.message==="Biscotti id is disabled")return 3;
_.Rp("Failed fetching bid");return 0}),2):G.return(G.yieldResult)})};
s57=function(){var G=_.Ay("YXllciM0MjB5Z3hvcHc0YmZ5dC1oYXZlbi1lbWJlZC1wbA=="),H=_.Ay("cmFtZSN0MnhwZmZxcDB6b2hpZg==");return document.querySelector(H+Ho0+G)?0:1};
Zox=function(){return _.OdU(_.qP)};
Q50=function(){return _.a9f()===0?0:_.yiW()};
pAq=function(){return _.NyU(_.l9X([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
gKq=function(){return _.MrX(lg4)};
_.IgM=function(G){_.S(function(H){switch(H.nextAddress){case 1:return H.yield(mY("b.f_",GD4,G),2);case 2:return H.yield(mY("j.s_",_.zgR,G),3);case 3:return H.yield(mY("r.s_",_.f9M,G),4);case 4:return H.yield(mY("e.h_",gKq,G),5);case 5:if(!_.V("ab_det_sc_inj")){H.jumpTo(6);break}return H.yield(mY("s.i_",_.CAo,G),6);case 6:if(_.V("ab_deg_unex_thr")){H.jumpTo(8);break}return H.yield(mY("a.o_",_.wrv,G),8);case 8:if(_.V("ks_get_o_pp")){H.jumpTo(10);break}return H.yield(mY("g.o_",_.rio,G),10);case 10:if(_.V("ks_det_gpbl")){H.jumpTo(12);
break}return H.yield(mY("p.i_",_.PAj,G),12);case 12:return H.yield(mY("f.i_",_.tru,G),14);case 14:return H.yield(mY("a.b_",_.ci2,G),15);case 15:return H.yield(mY("p.m_",_.dJ2,G),16);case 16:if(!_.V("ab_det_el_h_v2")){H.jumpTo(17);break}return H.yield(mY("n.h_",pAq,G),17);case 17:return H.yield(mY("o.p_",Zox,G),19);case 19:return H.yield(mY("e.i_",s57,G),20);case 20:if(_.V("ab_det_apm"))return H.yield(mY("o.a_",Q50,G),0);H.jumpTo(0)}})};
_.q3O=function(G,H){G={videoId:G};H&&(G.playlistId=H);return G};
_.B8U=function(){if(_.Rbe()){var G=_.xI("PLAYER_VARS",{});if(_.oN.get(G,"privembed",!1)!="1"&&!_.II8(G)){var H=function(){S3M=!0;"google_ad_status"in window?_.Ae("DCLKSTAT",1):_.Ae("DCLKSTAT",2)};
try{_.zh(_.xUh,H)}catch(Z){}us0.push(_.Ui.addLowPriorityJob(function(){if(!(S3M||"google_ad_status"in window)){try{_.CMe(_.xUh.toString(),H)}catch(Z){}S3M=!0;_.Ae("DCLKSTAT",3)}},5E3))}}};
_.JUd=function(G,H,Z){Z=Z===void 0?!1:Z;var Q=Math.max(G.width,_.I2O);if(_.V("kevlar_watch_feed_big_thumbs")&&G.width>=1550-_.KR()&&G.height>=800)Q-=_.tKd;else if(G.width>=_.i8){var p=_.qJY+_.SJO+_.Cx;_.V("kevlar_watch_feed_big_thumbs")&&(p=_.JeM);Q-=p}else Q-=_.qJY;Q=Math.min(Q,_.uUU);p=240;Z&&(p=380);H<.5624||(!_.V("kevlar_watch_flexy_disable_small_window_sizing")&&(G.height<630&&G.width>=657||G.height>=630&&G.width>=_.i8&&G.width<1327)?p=360:!_.V("kevlar_watch_flexy_disable_large_window_sizing")&&
G.height>=630&&G.width>=1327&&(p=480));var l=Math.min(Q*H,G.height-(56+_.gIY+_.BO0));l=Math.max(l,p);H<1?Q=l/H:G.width>=_.i8&&(Q=_.JUd(G,.5625,Z).width);return new _.M4(Math.round(Q),Math.round(l))};
_.teO=function(G){var H=0;G.indexOf("h")!=-1&&(G=G.split("h"),H=G[0]*60*60,G=G[1]);G.indexOf("m")!=-1&&(G=G.split("m"),H=G[0]*60+H,G=G[1]);G.indexOf("s")!=-1?(G=G.split("s"),H=G[0]*1+H):H=G*1+H;return H};
_.kDU=function(){_.eA("service_worker_push_logged_out_prompt_watches")!=-1&&_.jh("WatchCount").then(function(G){G>=100||_.mq("WatchCount",G+1)})};
Dmy=function(G){var H=G.externalVideoId||"";return H?G.isShortsEligible?"https://www.youtube.com/shorts/"+H:"https://www.youtube.com/watch?v="+H:""};
dmx=function(G){var H=[];G.viewCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:G.viewCount});G.likeCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:G.likeCount});return H};
eEU=function(G){var H,Z,Q={"@context":"https://schema.org","@type":"VideoObject",description:_.yn(G.description),duration:"PT"+(G.lengthSeconds||"0")+"S",embedUrl:G.embed?G.embed.iframeUrl:"",name:_.yn(G.title),thumbnailUrl:((H=G.thumbnail)==null?void 0:(Z=H.thumbnails)==null?void 0:Z.map(function(D){return D&&D.url||""}))||[],
uploadDate:G.publishDate};_.V("mweb_video_schema_id_killswitch")||(Q["@id"]=Dmy(G));H=dmx(G);H.length&&(Q.interactionStatistic=H);G.category&&(Q.genre=G.category);G.ownerChannelName&&(Q.author=G.ownerChannelName);G.liveBroadcastDetails&&(Q.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:G.liveBroadcastDetails.startTimestamp,endDate:G.liveBroadcastDetails.endTimestamp}]);if(G.learningResource){G=G.learningResource;Q["@type"]=["VideoObject","LearningResource"];var p;if((p=G.learningResourceType)==
null?0:p.length)Q.learningResourceType=G.learningResourceType[0];var l;if((l=G.educationalAlignment)==null?0:l.length)Q.educationalAlignment={"@type":"AlignmentObject",targetName:G.educationalAlignment[0]};var q;if((q=G.educationalLevel)==null?0:q.length){p=G.educationalLevel[0];var u;if((u=G.educationalLevelCountry)==null?0:u.length)p+=" ("+G.educationalLevelCountry+")";Q.educationalLevel=p}var B,t;if(((B=G.learningResourceType)==null?0:B.length)&&G.learningResourceType[0]==="Problem walkthrough"&&
((t=G.problemDescriptions)==null?0:t.length))for(Q.hasPart=[],u=_.I(G.problemDescriptions),B=u.next();!B.done;B=u.next())p=B.value,B=p.problemDescriptionText,t=p.startOffset,p=p.url,B&&t!==void 0&&p&&Q.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:B,text:B,startOffset:t,url:p})}return Q};
_.nKU=function(G){return _.Lo({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:G}})};
lg4=[[["bWFyeSNiZnA5MHd4MzhsOWlwcmk=",null,null],[null,["ZXJlciN6MnFsNnRpOGczZzR5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5k","Y29wZSNubnQzZGNra2FqcThzdHlsZS1z"],null],["ZC1hZCNoeTVkZmVheDc4dnVtYXN0aGVh",["ZXJlciNicWozOGUyMXhjemJ5dGQtcmljaC1ncmlkLXJlbmQ="],null],[null,["ZXJlciNhaW50MDR0bTUxODN5dGQtcmljaC1ncmlkLXJlbmQ=","Y29wZSM4M2ZrdGR2Y2pobTVzdHlsZS1z"],null],[null,["ZXJlciM5dW1mcTF1cjh2eDZ5dGQtYmFubmVyLXByb21vLXJlbmQ=","Y29wZSNtbWZrcWs5YzhydHNzdHlsZS1z"],null],[null,["ZXJlciNpNGIzNnZ1NHMwc2J5dGQtYWQtc2xvdC1yZW5k"],
null]],[["LWFkcyNqYmlvdXRid2FrMTJwbGF5ZXI=",null,null]],[[null,null,"ZXJlciN2dDhhM3R0Mm12ZTh5dGxyLWJhbm5lci1jdGEtcmVuZA=="]]];Ho0="#";us0=[];S3M=!1;_.Ve_=["engagement-panel-ads"];$mM=new _.bn("updateSentimentBarStateCommand");_.XAd=new _.bn("showSurveyCommand");_.Ub=new _.bn("changeMarkersVisibilityCommand");var T8x,fgO,KhY,zE4,WhO,RC;_.cU4=function(G,H){this.playerProvider_=G;this.actionSenderElement_=H;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.cU4.prototype.reset=function(){T8x(this);this.isUserPredictedAbsent_=!1};
T8x=function(G,H){!G.youThereData_||G.showWarningJob_||H!==void 0&&H||(_.Ut("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.$k(),G.youThereData_,G.clientPlaybackNonce_),_.op());_.Ui.cancelJob(G.showWarningJob_);G.showWarningJob_=0;_.Ui.cancelJob(G.showBlockingWarningJob_);G.showBlockingWarningJob_=0;_.Ui.cancelJob(G.pausePlaybackJob_);G.pausePlaybackJob_=0;G.youThereData_=null;G.clientPlaybackNonce_=void 0;G.inYouThereFlow_=!1};
_.vK4=function(G,H){var Z,Q,p;_.S(function(l){if(l.nextAddress==1)return G.reset(),l.yield(G.playerProvider_().getPlayerPromise(),2);Z=l.yieldResult;G.clientPlaybackNonce_=Z.getVideoData().cpn;G.youThereData_=H.configData.youThereData;if(!G.youThereData_)return l.return();if(G.youThereData_.triggerReason&&G.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.JvD())return _.Ut("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.$k(),G.youThereData_,G.clientPlaybackNonce_),l.return();Q=G.youThereData_.promptDelaySec;
p=Z.getCurrentTime();G.showWarningJob_=_.Ui.addLowPriorityJob(function(){return _.S(function(q){G.showWarningJob_=0;return q.yield(fgO(G),0)})},Math.max(Q-p,0)*1E3);
_.K0(l)})};
fgO=function(G){var H,Z,Q,p,l,q;return _.S(function(u){if(u.nextAddress==1)return u.yield(G.playerProvider_().getPlayerPromise(),2);if(u.nextAddress!=3)return H=u.yieldResult,Z=H.getCurrentTime(),u.yield(WhO(G),3);Q=u.yieldResult;if(!Q||!G.youThereData_)return u.return();if(_.V("check_user_lact_at_prompt_shown_time_on_web")&&(p=parseInt(G.youThereData_.lactThresholdMs,10),_.JL()<p))return _.Ut("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.$k(),G.youThereData_,G.clientPlaybackNonce_),u.return();if(G.youThereData_.playbackPauseDelayMs<=
0)return zE4(G),u.return();!_.V("external_fullscreen")&&(l=_.oO())&&(G.ignoreFullscreenExitUserActivity_=!0,_.Ui.addLowPriorityJob(function(){G.ignoreFullscreenExitUserActivity_=!1},2E3),_.mj(l));
G.youThereData_.showToastWarningPrompt&&(RC(G,G.youThereData_.showWarningActions),G.inYouThereFlow_=!0,_.Ut("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.$k(),G.youThereData_,G.clientPlaybackNonce_,Z),_.Ut("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.$k(),G.youThereData_,G.clientPlaybackNonce_,Z));q=0;G.youThereData_.blockingPromptDelayMs&&(q=G.youThereData_.blockingPromptDelayMs);G.showBlockingWarningJob_=_.Ui.addLowPriorityJob(function(){return _.S(function(B){G.showBlockingWarningJob_=0;return B.yield(KhY(G),
0)})},q);
_.K0(u)})};
KhY=function(G){var H,Z,Q;return _.S(function(p){if(p.nextAddress==1)return p.yield(WhO(G),2);H=p.yieldResult;if(!G.youThereData_)return p.return();H&&(G.youThereData_.showBlockingWarningAction&&(_.Ut("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.$k(),G.youThereData_,G.clientPlaybackNonce_),(Z=_.X(G.youThereData_.showBlockingWarningAction,_.Ft))?RC(G,Z.commands):RC(G,[G.youThereData_.showBlockingWarningAction]),G.inYouThereFlow_=!0),Q=G.youThereData_.playbackPauseDelayMs,G.pausePlaybackJob_=
_.Ui.addLowPriorityJob(function(){return _.S(function(l){G.pausePlaybackJob_=0;return l.yield(zE4(G),0)})},Q));
_.K0(p)})};
zE4=function(G){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(WhO(G),2);H=Z.yieldResult;if(!G.youThereData_)return Z.return();H&&(_.Ut("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.$k(),G.youThereData_,G.clientPlaybackNonce_),RC(G,G.youThereData_.showPausedActions),G.inYouThereFlow_=!0);_.K0(Z)})};
_.cU4.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var G=_.X(this.youThereData_.userActiveDuringFlowAction,_.Ft);G?RC(this,G.commands):RC(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Ut("YOU_THERE_EVENT_TYPE_LACT_RESET",_.$k(),this.youThereData_,this.clientPlaybackNonce_),_.op());T8x(this,!0)}_.Me7(this,!1)};
_.j5U=function(G){_.Ut("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.$k(),G.youThereData_,G.clientPlaybackNonce_)};
WhO=function(G){var H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.playerProvider_().getPlayerPromise(),2);H=Q.yieldResult;Z=H.getPlayerState();return Q.return(Z==-1||Z==1||Z==3)})};
_.Me7=function(G,H){var Z;_.S(function(Q){if(Q.nextAddress==1){if(G.isUserPredictedAbsent_==H)return Q.jumpTo(0);G.isUserPredictedAbsent_=H;return Q.yield(G.playerProvider_().getPlayerPromise(),3)}Z=Q.yieldResult;Z.setUserEngagement(H);H&&_.Ut("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.$k(),G.youThereData_,G.clientPlaybackNonce_);_.K0(Q)})};
RC=function(G,H){if(_.V("handle_service_request_actions")||_.V("kevlar_youthere_service_endpoint_actions_killswitch"))_.El(G.actionSenderElement_,H,G.actionSenderElement_);else{H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())Z=Z.value,Z.commandMetadata&&Z.commandMetadata.webCommandMetadata&&Z.commandMetadata.webCommandMetadata.sendPost?_.L9(G.actionSenderElement_,[Z]):_.El(G.actionSenderElement_,[Z],G.actionSenderElement_)}};var PfY;var rUI;var Nr=function(){var G=_.C.apply(this,arguments)||this;G.systemIcons=_.V("kevlar_system_icons");G.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return G};
_.T(Nr,_.C);Nr.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var G=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(G=this.data.percentIfLiked||0,this.activated=!0):(G=this.data.percentIfIndifferent||0,this.activated=!1);_.F9(this.hostElement).querySelector("#like-bar").style.width=G+"%"}};
Nr.prototype.handleUpdateSentimentBarStateCommand=function(G){this.data&&this.set("data.likeStatus",_.X(G,$mM).likeStatus)};
Nr.prototype.observeLikeStatus=Nr.prototype.observeLikeStatus;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Nr.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Nr.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Nr.prototype,"activated",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Nr.prototype,"systemIcons",void 0);_.N([_.gx("data.likeStatus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Nr.prototype,"observeLikeStatus",null);_.N([_.O({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Nr);
_.m(Nr,"ytd-sentiment-bar-renderer",function(){if(rUI!==void 0)return rUI;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rUI=G},{mode:1});var wAU;var AK=function(){var G=_.C.apply(this,arguments)||this;G.small=!0;return G};
_.T(AK,_.C);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],AK.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],AK.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],AK.prototype,"small",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],AK);
_.m(AK,"ytd-video-view-count-renderer",function(){if(wAU!==void 0)return wAU;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wAU=G},{mode:_.LH("kevlar_poly_si_batch_j080")?1:2});var xD=function(){var G=_.C.apply(this,arguments)||this;G.infoFormattedStrings=[];G.wrapVideoActions=_.V("kevar_watch_wrap_video_actions");G.hideSentimentBar=_.V("kevlar_watch_hide_sentiment_bar");G.actionMap={};return G};
_.T(xD,_.C);_.g=xD.prototype;_.g.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.V("web_modern_buttons"),forceIconButton:!_.V("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.g.dataChanged=function(){_.V("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.g.computeInfoFormattedStrings=function(G){if(!G)return[];var H=[];G.dateText&&H.push(G.dateText);G.stationName&&H.push(G.stationName);G.rating&&H.push(G.rating);G.startEndTimeTemplate&&G.startTimeUtcMillis&&G.endTimeUtcMillis&&H.push(_.aq(_.eKd(_.yn(G.startEndTimeTemplate),Number(G.startTimeUtcMillis),Number(G.endTimeUtcMillis))));G.upNextProgramText&&H.push(G.upNextProgramText);return H};
_.g.scheduleInitialUpdatedMetadataRequest=function(){var G,H=(G=this.data)==null?void 0:G.updatedMetadataEndpoint;if(H){var Z;G=Number((Z=_.X(H,_.Pz2))==null?void 0:Z.initialDelayMs);Z=isNaN(G)?250:G;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),Z)}};
_.g.setSentimentBarWidth=function(){var G=this;_.q2(this,function(){var H=_.F9(G.hostElement).querySelector("ytd-menu-renderer");if(H){H=H.topLevelButtons;for(var Z=0,Q=0;Q<H.length;Q++){var p=H[Q],l=G.get("toggleButtonSupportedData.toggleButtonIdData.id",p.data);if(l==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||l==="TOGGLE_BUTTON_ID_TYPE_LIKE")Z+=p.clientWidth+8;else break}Z&&(G.sentiment.style.width=Z-8+" px")}})};
_.g.fetchUpdatedMetadata=function(G){var H;G&&(H={continuation:G});var Z;(G=(Z=this.data)==null?void 0:Z.updatedMetadataEndpoint)&&_.tp().resolve(_.Dk).resolveCommand(G,{form:Object.assign({},H,{element:this.hostElement})})};
_.g.onYtServiceRequestSent=function(G,H){H.endpoint&&_.X(H.endpoint,_.TG)&&(this.hasUpdateSentimentBarStateCommands()&&!_.V("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.X(H.endpoint,_.TG).status),this.setSentimentBarWidth())};
_.g.hasUpdateSentimentBarStateCommands=function(){var G,H,Z,Q,p=(Q=(G=this.data)==null?void 0:(H=G.videoActions)==null?void 0:(Z=H.menuRenderer)==null?void 0:Z.topLevelButtons)!=null?Q:[];G=_.I(p);for(H=G.next();!H.done;H=G.next()){H=H.value;p=Q=Z=void 0;var l=(Z=H.toggleButtonRenderer)==null?void 0:(Q=Z.toggleButtonSupportedData)==null?void 0:(p=Q.toggleButtonIdData)==null?void 0:p.id;if(l==="TOGGLE_BUTTON_ID_TYPE_LIKE"||l==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){Q=Z=void 0;H=(Q=_.X((Z=H.toggleButtonRenderer)==
null?void 0:Z.defaultServiceEndpoint,_.Ft))==null?void 0:Q.commands;if(!H)break;H=_.I(H);for(Z=H.next();!Z.done;Z=H.next())if(_.X(Z.value,$mM))return!0}}return!1};
_.g.onYtServiceRequestCompleted=function(G,H){var Z;(G=(Z=H.data)==null?void 0:Z.loggingDirectives)&&_.A2f(_.gr(),G);this.get("continuation.timedContinuationData",H.data)&&this.data&&this.data.updatedMetadataEndpoint&&(H=H.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,H.continuation),H.timeoutMs))};
_.g.computeHasDateText=function(G){return!!G&&!!G.dateText};
_.u4.Object.defineProperties(xD.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q;return!((Q=(G=this.data)==null?void 0:(H=G.videoActions)==null?void 0:(Z=H.menuRenderer)==null?void 0:Z.flexibleItems)==null||!Q.length)}}});
xD.prototype.onYtServiceRequestCompleted=xD.prototype.onYtServiceRequestCompleted;xD.prototype.onYtServiceRequestSent=xD.prototype.onYtServiceRequestSent;xD.prototype.dataChanged=xD.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],xD.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Q6.YtTaskEmitterBehavior),_.A("design:type",Object)],xD.prototype,"ytTaskEmitterBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xD.prototype,"data",void 0);_.N([_.h({computed:"computeInfoFormattedStrings(data)"}),_.A("design:type",Array)],xD.prototype,"infoFormattedStrings",void 0);
_.N([_.h({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],xD.prototype,"hasDateText",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],xD.prototype,"wrapVideoActions",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],xD.prototype,"hideSentimentBar",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xD.prototype,"flexMenuEnabled",null);
_.N([_.q6("#sentiment"),_.A("design:type",Object)],xD.prototype,"sentiment",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xD.prototype,"dataChanged",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],xD.prototype,"onYtServiceRequestSent",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],xD.prototype,"onYtServiceRequestCompleted",null);
_.m(xD,"ytd-video-primary-info-renderer",function(){if(PfY===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);PfY=G}G=PfY;return G},{mode:1});var hE0;var Lj=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return G};
_.T(Lj,_.C);_.g=Lj.prototype;_.g.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"}}}};
_.g.dataChanged=function(){var G;this.descriptionToggled=!((G=this.data)==null||!G.defaultExpanded);var H;this.collapsed=this.descriptionAlwaysCollapsed||!((H=this.data)==null?0:H.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.bl(110509);this.showLessClientVe=_.bl(110510);G=_.$k();H=_.Va();G&&H&&_.PA(G,H,[this.showMoreClientVe,this.showLessClientVe])};
_.g.onYtExpanderMoreTapped=function(){var G,H=(G=this.data)==null?void 0:G.showMoreCommand;H&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(H);(G=_.$k())&&this.showMoreClientVe&&_.Co(G,this.showMoreClientVe)};
_.g.onYtExpanderLessTapped=function(){var G=_.$k();G&&this.showLessClientVe&&_.Co(G,this.showLessClientVe);var H;(G=(H=this.data)==null?void 0:H.showLessCommand)&&this.componentBehavior.resolveCommand(G)};
_.g.handleUpdateDateTextAction=function(G){this.data&&this.data.dateText&&this.set("data.dateText",_.X(G,_.GIy).dateText)};
_.g.handleUpdateDescriptionAction=function(G){if(G=_.X(G,_.rix))G.isEmpty||!G.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Vw(G.description)):this.set("data.description",G.description)};
_.g.onYtChangeEngagementPanelVisibilityAction=function(G){if(_.V("web_structured_description_show_more")||_.V("web_engagement_panel_open_description")){var H,Z=(H=_.X(G,_.P2w))==null?void 0:H.targetId,Q;G=((Q=_.X(G,_.P2w))==null?void 0:Q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";Z==="engagement-panel-structured-description"&&G&&(this.descriptionToggled=!0)}};
_.g.updateCollapsedFromBinding=function(G){this.collapsed=G.detail.value};
_.g.updateDescriptionToggledFromBinding=function(G){this.descriptionToggled=G.detail.value};
_.g.updateCanCollapseFromBinding=function(G){this.canCollapse=G.detail.value};
_.u4.Object.defineProperties(Lj.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer;return!!Z&&!!Z.rows&&Z.rows.length>Z.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.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}}});
Lj.prototype.onYtExpanderLessTapped=Lj.prototype.onYtExpanderLessTapped;Lj.prototype.onYtExpanderMoreTapped=Lj.prototype.onYtExpanderMoreTapped;Lj.prototype.dataChanged=Lj.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Lj.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Lj.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Lj.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Lj.prototype,"collapsed",void 0);_.N([_.h(),_.A("design:type",Boolean)],Lj.prototype,"descriptionToggled",void 0);
_.N([_.h(),_.A("design:type",Boolean)],Lj.prototype,"canCollapse",void 0);_.N([_.h(),_.A("design:type",Object)],Lj.prototype,"subscribeButtonData",void 0);_.N([_.h(),_.A("design:type",Number)],Lj.prototype,"descriptionCollapsedHeight",void 0);_.N([_.h(),_.A("design:type",Object)],Lj.prototype,"structuredDescriptionContentRenderer",void 0);_.N([_.h({value:function(){return _.V("web_watch_description_always_collapsed")}}),
_.A("design:type",Boolean)],Lj.prototype,"descriptionAlwaysCollapsed",void 0);_.N([_.q6("#description"),_.A("design:type",HTMLDivElement)],Lj.prototype,"description",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lj.prototype,"dataChanged",null);_.N([_.lq("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lj.prototype,"onYtExpanderMoreTapped",null);
_.N([_.lq("yt-expander-less-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lj.prototype,"onYtExpanderLessTapped",null);_.N([_.z("data.metadataRowContainer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lj.prototype,"metadataCollapsible",null);_.N([_.z("data","structuredDescriptionContentRenderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lj.prototype,"hasInlineStructuredDescription",null);
_.N([_.z("data.attributedDescription"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lj.prototype,"hasAttributedDescription",null);_.N([_.z("hasInlineStructuredDescription","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lj.prototype,"loadStructuredDescription",null);_.N([_.z("data","structuredDescriptionContentRenderer","collapsed"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lj.prototype,"showInlineStructuredDescription",null);
_.N([_.z("data","hasInlineStructuredDescription","metadataCollapsible"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lj.prototype,"descriptionAlwaysCollapsible",null);
_.m(Lj,"ytd-video-secondary-info-renderer",function(){if(hE0===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);hE0=G}G=hE0;return G},{mode:2});var CfM;var Eb=function(){return _.C.apply(this,arguments)||this};
_.T(Eb,_.C);Eb.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.V("web_modern_buttons"),forceIconButton:!_.V("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Eb.prototype.activate=function(G){G.appendTo(this.player);G.getPlayerPromise().then(function(H){H.setMinimized(!0)});
this.active=!0};
Eb.prototype.deactivate=function(){var G=this.player.firstElementChild;G.getPlayerPromise().then(function(H){H.setMinimized(!1)});
this.active=!1;return G};
Eb.prototype.onScrollUpTap=function(){var G=_.tp().resolve(_.o0).getCurrentPage();G&&G.setScrollTop(0)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Eb.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Eb.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Eb.prototype,"active",void 0);
_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.A("design:type",Boolean)],Eb.prototype,"darkLaunch",void 0);_.N([_.q6("#player"),_.A("design:type",HTMLDivElement)],Eb.prototype,"player",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Eb);
_.m(Eb,"ytd-miniplayer-bar-renderer",function(){if(CfM!==void 0)return CfM;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return CfM=G},{mode:1});_.RX(_.y(function(G){var H=_.IA("script");_.yN(function(){var Z;if(Z=JSON)Z=eEU(G.data()),Z=_.Qk(JSON.stringify(Z).replace(/</g,"\\u003C"));var Q=G.data(),p=_.yn(Q.title).trim().length===0,l=!Q.publishDate||Q.publishDate.trim().length===0,q,u,B,t,D=!((q=Q.thumbnail)==null?0:(u=q.thumbnails)==null?0:u.length)||!((B=Q.thumbnail)==null?0:B.thumbnails[0].url)||((t=Q.thumbnail)==null?void 0:t.thumbnails[0].url.trim().length)===0;H.value&&Z&&!(p||l||D)&&_.lE(H.value,Z)},"Vy9K7b");
return _.J("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.J("script",{el:H,type:"application/ld+json"}))},"jo"),"player-microformat-renderer",{props:{data:_.oX}});
}catch(e){_._DumpException(e)}
try{
var fQx,vk_,zvY;_.Tjy=function(G){return G.watch.watchWindowSize};
fQx=function(G,H){var Z=document.querySelector(G);Z?H(Z):setTimeout(function(){fQx(G,H)},1E3)};
vk_=function(G,H,Z,Q){if(G.isLockupToWatchTransitionEnabled){if(H){var p={};p=(p["watch-next-appears"]="player-watch-next-loaded",p);p["lockup-to-watch"]=G.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";G.viewTransitionCoordinator.registerElement(H,p)}Z&&(H={},G.viewTransitionCoordinator.registerElement(Z,(H["lockup-to-watch"]="below-lockup-to-watch",H["watch-next-appears"]="below-watch-next-loaded",H)));Q&&(Z={},G.viewTransitionCoordinator.registerElement(Q,
(Z["watch-next-appears"]="secondary-watch-next-loaded",Z)))}};
_.WjO=function(G){return _.Lo({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:G}})};
zvY=new _.bn("webWatchNextResponseExtensionData");var Muy=function(G){_.wI.call(this);var H=this;this.JSC$23382_watchApi=G;this.observer=null;var Z=this.JSC$23382_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){KjU(H)});
this.addOnDisposeCallback(function(){H.JSC$23382_watchApi.unsubscribeByKey(Z);H.observer&&(H.observer.disconnect(),H.observer=null)});
KjU(this)};
_.T(Muy,_.wI);
var KjU=function(G){var H,Z,Q,p,l;_.S(function(q){if(q.nextAddress==1){G.observer&&(G.observer.disconnect(),G.observer=null);H=G.JSC$23382_watchApi.getWatchNextResponse();if(!H)return q.return();Z=_.X(H,zvY);return((Q=Z)==null?0:Q.enableCreatorChatbot)&&Z.creatorChannelId?_.V("enable_creator_chatbot_link_out")?q.yield((0,_.s9u)("NSzT5"),6):q.yield((0,_.s9u)("NSzT5"),5):q.jumpTo(0)}if(q.nextAddress!=6)return p=_.jON,p(Z.creatorChannelId),fQx("ytd-watch-metadata",function(u){G.observer=new MutationObserver(function(){var B,
t;(B=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(t=B.closest("yt-button-view-model.ytd-menu-renderer"))==null||t.remove()});
G.observer.observe(u,{childList:!0,subtree:!0})}),q.jumpTo(0);
l=_.PJd;l(Z.creatorChannelId);_.K0(q)})};var Ob=function(G){_.wI.call(this);this.JSC$23386_watchApi=G;this.isShelfVisible=this.isAdPlaying=this.isSeeking=!1;rZx(this)};
_.T(Ob,_.wI);var rZx=function(G){_.S(function(H){if(H.nextAddress==1)return H.yield(wfY(G),2);hv0(G);_.K0(H)})},wfY=function(G){var H,Z,Q,p,l,q,u,B;
return _.S(function(t){if(t.nextAddress==1)return t.yield(G.JSC$23386_watchApi.playerApi,2);H=t.yieldResult;G.JSC$23386_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){CJN(G)});
G.JSC$23386_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){G.isShelfVisible?i9I(G):O92(G)});
Z=G.JSC$23386_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){hv0(G)});
Q=function(D){G.onCueRangeEnter(D)};
H.addEventListener("onCueRangeEnter",Q);p=function(D){G.onCueRangeExit(D)};
H.addEventListener("onCueRangeExit",p);l=function(){G.isSeeking=!0};
H.addEventListener("SEEK_TO",l);q=function(){G.onSeekComplete()};
H.addEventListener("SEEK_COMPLETE",q);u=function(){G.onAdStart()};
H.addEventListener("onAdStart",u);B=function(){G.onAdComplete()};
H.addEventListener("onAdComplete",B);G.addOnDisposeCallback(function(){G.JSC$23386_watchApi.unsubscribeByKey(Z);H.removeEventListener("onCueRangeEnter",Q);H.removeEventListener("onCueRangeExit",p);H.removeEventListener("SEEK_TO",l);H.removeEventListener("SEEK_COMPLETE",q);H.removeEventListener("onAdStart",u);H.removeEventListener("onAdComplete",B)});
_.K0(t)})},aQ0=function(G){var H,Z,Q,p,l,q,u,B,t;
return(l=(H=G.contents)==null?void 0:(Z=H.twoColumnWatchNextResults)==null?void 0:(Q=Z.results)==null?void 0:(p=Q.results)==null?void 0:p.contents)==null?void 0:(q=l.find(function(D){var d,e,n;return(d=D.itemSectionRenderer)==null?void 0:(e=d.contents)==null?void 0:(n=e[0])==null?void 0:n.shoppingTimelyShelfViewModel}))==null?void 0:(u=q.itemSectionRenderer)==null?void 0:(B=u.contents)==null?void 0:(t=B[0])==null?void 0:t.shoppingTimelyShelfViewModel},hv0=function(G){var H;
_.S(function(Z){if(Z.nextAddress==1)return(H=G.JSC$23386_watchApi.getWatchNextResponse())?Z.yield(CJN(G),2):Z.return();G.shoppingTimelyShelfViewModel=aQ0(H);yZx(G);okY(G);_.K0(Z)})},yZx=function(G){var H,Z=(H=G.shoppingTimelyShelfViewModel)==null?void 0:H.offerIdToVariants;
Z&&(H=Z.filter(function(Q){return Q.key&&Q.value}).map(function(Q){return[Q.key,
Q.value]}),G.variantsMap=new Map(H))},okY=function(G){var H,Z,Q,p,l,q;
_.S(function(u){if(u.nextAddress==1)return(Z=(H=G.shoppingTimelyShelfViewModel)==null?void 0:H.cueRanges)?u.yield(G.JSC$23386_watchApi.playerApi,2):u.return();Q=u.yieldResult;G.cueRanges=Z;p=_.I(Z);for(l=p.next();!l.done;l=p.next())q=l.value,q.startTime!==void 0&&q.endTime!==void 0&&q.id!==void 0&&Q.addCueRange("shopping_timely_shelf"+q.id,m52(q.startTime),m52(q.endTime));_.K0(u)})},m52=function(G){return Number(G.seconds||0)+(G.nanos||0)/1E9};
Ob.prototype.onCueRangeEnter=function(G){if(G.startsWith("shopping_timely_shelf")&&(this.activeCueId=G,!this.isSeeking&&!this.isAdPlaying)){G=G.substring(21);var H,Z,Q=(H=this.variantsMap)==null?void 0:(Z=H.get(G))==null?void 0:Z.shelf;Q&&(this.JSC$23386_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",Q),i9I(this))}};
Ob.prototype.onCueRangeExit=function(G){G.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||O92(this))};
Ob.prototype.onSeekComplete=function(){this.isSeeking=!1;U5O(this)};
var i9I=function(G){G.shoppingTimelyShelfViewModel&&(G.isShelfVisible=!0,_.sS.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},O92=function(G){G.shoppingTimelyShelfViewModel&&(G.isShelfVisible=!1,_.sS.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},CJN=function(G){var H,Z,Q,p,l;
return _.S(function(q){if(q.nextAddress==1)return q.yield(G.JSC$23386_watchApi.playerApi,2);H=q.yieldResult;if(G.cueRanges)for(Z=_.I(G.cueRanges),Q=Z.next();!Q.done;Q=Z.next())p=Q.value,p.id&&(l="shopping_timely_shelf"+p.id,H.removeCueRange(l));G.JSC$23386_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});O92(G);G.shoppingTimelyShelfViewModel=void 0;G.cueRanges=void 0;G.variantsMap=void 0;G.isSeeking=!1;G.activeCueId=void 0;_.K0(q)})};
Ob.prototype.onAdStart=function(){this.isAdPlaying=!0;O92(this)};
Ob.prototype.onAdComplete=function(){this.isAdPlaying=!1;U5O(this)};
var U5O=function(G){if(G.activeCueId)G.onCueRangeEnter(G.activeCueId);else O92(G)};var Lj7=function(G){_.wI.call(this);var H=this;this.JSC$23393_watchApi=G;G=_.wU(_.mm(),_.QDv,function(){RvO(H)});
this.addOnDisposeCallback(G);G=_.wU(_.mm(),_.Tjy,function(){RvO(H)});
this.addOnDisposeCallback(G);Njq(this);AZO(this);x50()};
_.T(Lj7,_.wI);var Njq=function(G){var H=function(Q){_.mm().dispatch(_.nF0(Q.matches))},Z=window.matchMedia("(max-width: "+(999+_.KR())+"px)");
Z.addListener(H);G.addOnDisposeCallback(function(){Z.removeListener(H)});
H(Z)},AZO=function(G){G.JSC$23393_watchApi.registerActionHandler("yt-window-resized",function(){x50()});
G.addOnDisposeCallback(function(){G.JSC$23393_watchApi.unregisterActionHandler("yt-window-resized")})},x50=function(){var G=_.SX();
_.mm().dispatch(_.Lo({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:G.width,height:G.height}}}))},RvO=function(G){var H;
_.S(function(Z){if(Z.nextAddress==1)return Z.yield(G.JSC$23393_watchApi.playerApi,2);H=Z.yieldResult;H.setSize(NaN,NaN);_.K0(Z)})};var Ekq=function(G){_.wI.call(this);var H=_.tp().resolve(_.jB);vk_(H,G.getElement("PLAYER_CONTAINER"),G.getElement("BELOW_THE_PLAYER"),G.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var Z=G.getElement("PLAYER_CONTAINER"),Q=G.getElement("BELOW_THE_PLAYER"),p=G.getElement("SECONDARY");H.isLockupToWatchTransitionEnabled&&(Z&&_.Tk(H.viewTransitionCoordinator,Z),Q&&_.Tk(H.viewTransitionCoordinator,Q),p&&_.Tk(H.viewTransitionCoordinator,p))})};
_.T(Ekq,_.wI);_.aC=function(G){_.NM.call(this);var H=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(Z){H.initOrDisposeActiveModules(Z)}));
this.onAttached()};
_.T(_.aC,_.NM);_.g=_.aC.prototype;_.g.getRoot=function(){return this.rootElement};
_.g.getElement=function(G){return this.rootElement.getElement(G)};
_.g.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.g.getPlayerResponse=function(){return this.playerResponse};
_.g.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.g.getWatchNextResponse=function(){return this.watchNextResponse};
_.g.registerActionHandler=function(G,H){var Z=this;if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var Q={};_.p1(_.sS.getInstance(),(Q[G]=H,Q),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),Q={},_.p1(_.sS.getInstance(),(Q[G]=function(){var p=_.Ry.apply(0,arguments);return(Z.actionHandlers.get(G)||[]).map(function(l){return l.apply(null,_.OP(p))})},Q),this.getRoot())),this.actionHandlers.get(G).push(H)};
_.g.unregisterActionHandler=function(G){if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.lu(_.sS.getInstance(),(H[G]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(G))?(H.pop(),H.length===0&&(H={},_.lu(_.sS.getInstance(),(H[G]=!0,H),this.getRoot()),this.actionHandlers.delete(G))):_.Rp(new _.C$("Attempted to unregister an action handler which is not registered.",G))};
_.g.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.M2v(this.rootElement.pageDisposeJobs,G)};
_.g.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.ou(this.rootElement.pageDisposeJobs,G)};
_.g.dispatchEvent=function(G,H){_.N5(this.rootElement,G,H)};
_.g.provideRenderingData=function(G,H){this.rootElement.provideRenderingData(G,H)};
_.g.scrollWatchTo=function(G,H){var Z;(Z=this.watchScrollManager)==null||Z.scrollWatchTo(G,H)};
_.g.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.q2(G,function(){if(G&&G.firstElementChild){var H=G.querySelector(".html5-video-player");H&&(_.IP(_.tp().resolve(_.Bh)),H.focus())}else _.Rp(Error("Zo"))})};
_.g.subscribeToActiveChanged=function(G,H){H=H===void 0?!0:H;var Z=_.wU(_.mm(),_.JRM,function(Q){G(Q)});
H&&G(_.JRM(_.mm().getState()));return Z};
_.g.isActive=function(){return _.JRM(_.mm().getState())};
_.g.onAttached=function(){var G=_.V("external_fullscreen");_.V("use_unified_flag_accessor")&&(G=_.tp().resolve(_.KRj).retriever.getFlag(_.$ha));(G||_.YI("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Yl_=function(G){return G.getRoot().is==="ytd-watch-flexy"||G.getRoot().is==="ytd-watch-grid"},yl=function(G){return G.getRoot().is==="ytd-watch-fixie"};
_.aC.prototype.initPersistentModules=function(){if(yl(this)||Yl_(this)&&_.V("kevlar_watch_flexy_theater_manager")){var G=new _.Akd(this);_.T$(this,G)}G=new _.hMU(this);_.T$(this,G);G=new _.jx(this);_.T$(this,G);G=new _.Mnx(this);_.T$(this,G);G=new _.Cj(this);_.T$(this,G);G=new _.PH(this);_.T$(this,G);if(yl(this)||Yl_(this)&&_.V("kevlar_watch_flexy_playlist_manager"))G=new _.kh0(this),_.T$(this,G);_.V("web_thumbnail_to_watch_transition")&&(G=new Ekq(this),_.T$(this,G))};
_.aC.prototype.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new _.iv(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.YWy(this)),_.V("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Ob(this)),this.activeModules.push(new _.Le7(this)),yl(this)&&this.activeModules.push(new Lj7(this)),this.activeModules.push(new _.$50(this)),this.activeModules.push(new _.U2U(this)),(yl(this)||_.V("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.GUM(this)),this.activeModules.push(new _.Z90(this)),(yl(this)||_.V("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.cZ0(this)),(yl(this)||_.V("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.qW7(this)),_.V("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.tn0(this),this.activeModules.push(this.watchCinematicManager)),_.V("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.gkd(this)),_.V("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.P4d(this)),G=_.V("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.V("kevlar_watch_flexy_comments_manager")&&!G&&this.activeModules.push(new _.fZ4(this)),_.V("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.BN4(this)),this.activeModules.push(new _.H6q(this)),this.activeModules.push(new _.b6O(this)),_.V("web_enable_timely_actions")&&this.activeModules.push(new _.pEy(this)),_.V("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.WgY(this)),_.V("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ekq(this)),_.V("web_fullscreen_components")&&this.activeModules.push(new _.QA7(this)),_.V("web_player_rtr_ctrls")&&this.activeModules.push(new _.KgI(this)),(_.V("enable_creator_chatbot")||_.V("enable_creator_chatbot_link_out"))&&this.activeModules.push(new Muy(this))):(_.uY(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.aC.prototype.disposeInternal=function(){_.NM.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.u4.Object.defineProperties(_.aC.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var lt4,Qq,gAU,ItU,Sqd,uLY,qqO,Bk_;lt4=function(){var G=_.I5();G.info||(G.info={});return G.info};
Qq=function(G){return Math.round(_.JU()+G)};
gAU=function(){var G;if(_.V("csi_use_performance_navigation_timing")){var H,Z,Q,p=_.uf==null?void 0:(G=_.uf.getEntriesByType)==null?void 0:(H=G.call(_.uf,"navigation"))==null?void 0:(Z=H[0])==null?void 0:(Q=Z.toJSON)==null?void 0:Q.call(Z);p?(p.requestStart=Qq(p.requestStart),p.responseEnd=Qq(p.responseEnd),p.redirectStart=Qq(p.redirectStart),p.redirectEnd=Qq(p.redirectEnd),p.domainLookupEnd=Qq(p.domainLookupEnd),p.connectStart=Qq(p.connectStart),p.connectEnd=Qq(p.connectEnd),p.responseStart=Qq(p.responseStart),
p.secureConnectionStart=Qq(p.secureConnectionStart),p.domainLookupStart=Qq(p.domainLookupStart),p.isPerformanceNavigationTiming=!0,G=p):G=_.uf.timing}else G=_.V("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.uf.timing)):_.uf.timing;return G};
ItU=function(){if(_.uf.getEntriesByType){var G=_.uf.getEntriesByType("paint");if(G=_.hM(G,function(Z){return Z.name==="first-paint"}))return Qq(G.startTime)}var H;
_.V("csi_use_performance_navigation_timing")?H=_.uf.getEntriesByType("first-paint")[0].startTime:H=_.uf.timing.msFirstPaint;return H?Math.max(0,H):0};
Sqd=function(){var G=window.location.protocol,H=_.uf.getEntriesByType("resource");H=_.LM(H,function(Z){return Z.name.indexOf(G+"//fonts.gstatic.com/s/")===0});
(H=qqO(H,function(Z,Q){return Q.duration>Z.duration?Q:Z}))&&H.startTime>0&&H.responseEnd>0&&(_.tU("wffs",Qq(H.startTime)),_.tU("wffe",Qq(H.responseEnd)))};
uLY=function(G,H){G=document.querySelector(G);if(!G)return!1;var Z="",Q=G.nodeName;Q==="SCRIPT"?(Z=G.src,Z||(Z=G.getAttribute("data-timing-href"))&&(Z=window.location.protocol+Z)):Q==="LINK"&&(Z=G.href);_.sP(document)&&G.setAttribute("nonce",_.sP(document));return Z?(G=_.uf.getEntriesByName(Z))&&G[0]&&(G=G[0],Z=_.JU(),_.tU("rsf_"+H,Z+Math.round(G.fetchStart)),_.tU("rse_"+H,Z+Math.round(G.responseEnd)),G.transferSize!==void 0&&G.transferSize===0)?!0:!1:!1};
_.J60=function(G,H){_.bW(function(){_.Se("").info.actionType=G;H&&_.Ae("TIMING_AFT_KEYS",H);_.Ae("TIMING_ACTION",G);var Z=_.hHv(_.xI("TIMING_INFO",{}));Object.keys(Z).length>0&&_.kK(Z);Z={isNavigation:!0,actionType:_.Xef(_.xI("TIMING_ACTION"))};var Q=_.xI("PREVIOUS_ACTION");Q&&(Z.previousAction=_.Xef(Q));if(Q=_.xI("CLIENT_PROTOCOL"))Z.httpProtocol=Q;if(Q=_.xI("CLIENT_TRANSPORT"))Z.transportProtocol=Q;(Q=_.$k())&&Q!=="UNDEFINED_CSN"&&(Z.clientScreenNonce=Q);Q=_.we2();if(Q===1||Q===-1)Z.isVisible=!0;
Q=_.tj2().loadType==="cold";var p=lt4();Q||(Q=p.yt_lt==="cold");if(Q){Z.loadType="cold";Q=lt4();p=gAU();var l=_.JU(),q=_.xI("CSI_START_TIMESTAMP_MILLIS",0);q>0&&!_.V("embeds_web_enable_csi_start_override_killswitch")&&(l=q);l&&(_.tU("srt",p.responseStart),Q.prerender!==1&&_.WXb(l));Q=ItU();Q>0&&_.tU("fpt",Q);Q=gAU();Q.isPerformanceNavigationTiming&&_.kK({performanceNavigationTiming:!0},void 0);_.tU("nreqs",Q.requestStart,void 0);_.tU("nress",Q.responseStart,void 0);_.tU("nrese",Q.responseEnd,void 0);
Q.redirectEnd-Q.redirectStart>0&&(_.tU("nrs",Q.redirectStart,void 0),_.tU("nre",Q.redirectEnd,void 0));Q.domainLookupEnd-Q.domainLookupStart>0&&(_.tU("ndnss",Q.domainLookupStart,void 0),_.tU("ndnse",Q.domainLookupEnd,void 0));Q.connectEnd-Q.connectStart>0&&(_.tU("ntcps",Q.connectStart,void 0),_.tU("ntcpe",Q.connectEnd,void 0));Q.secureConnectionStart>=_.JU()&&Q.connectEnd-Q.secureConnectionStart>0&&(_.tU("nstcps",Q.secureConnectionStart,void 0),_.tU("ntcpe",Q.connectEnd,void 0));_.uf&&"getEntriesByType"in
_.uf&&Sqd();Q=[];if(document.querySelector&&_.uf&&_.uf.getEntriesByName)for(var u in Bk_)Bk_.hasOwnProperty(u)&&(p=Bk_[u],uLY(u,p)&&Q.push(p));if(Q.length>0)for(Z.resourceInfo=[],u=_.I(Q),Q=u.next();!Q.done;Q=u.next())Z.resourceInfo.push({resourceCache:Q.value})}_.kK(Z);Z=_.qm();Z.preLoggedGelInfos||(Z.preLoggedGelInfos=[]);u=Z.preLoggedGelInfos;Z=_.Dub();Q=void 0;for(p=0;p<u.length;p++)if(l=u[p],l.loadType){Q=l.loadType;break}if(_.tj2().loadType==="cold"&&(Z.loadType==="cold"||Q==="cold")){Q=_.kmf();
p=_.qm();p=p.gelTicks?p.gelTicks:p.gelTicks={};for(var B in Q)if(!(B in p))if(typeof Q[B]==="number")_.tU(B,_.Dg(B));else if(_.V("log_repeated_ytcsi_ticks"))for(l=_.I(Q[B]),q=l.next();!q.done;q=l.next())q=q.value,_.tU(B.slice(1),q);B={};Q=!1;u=_.I(u);for(p=u.next();!p.done;p=u.next())Q=p.value,_.f9(Z,Q),_.f9(B,Q),Q=!0;Q&&_.kK(B)}_.a8R(!0);B=_.xI("TIMING_ACTION");_.GF("ytglobal.timingready_")&&B&&_.LXf()&&_.OsM()&&_.PN2()})()};
qqO=function(G,H){return Array.prototype.reduce.call(G,H,{duration:0})};
Bk_={'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 tcN={};tcN.YtVisibilityRootBehavior=[_.k6R.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.S_(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.xI("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var G=_.xI("INNERTUBE_CLIENT_NAME")!=="WEB";_.V("kevlar_use_vimio_behavior")&&G&&_.wFd()}}];_.py={};_.py.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(G){G.detail.contextProvider=this;G.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
tcN.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.hQ();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(G){var H=this;this.pageCount+=1;_.V("kevlar_use_vimio_behavior")&&(_.xI("INNERTUBE_CLIENT_NAME")==="WEB"?_.Ui.addJob(function(){H.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(G)},
loadPage_:function(G){this.data=G},
ytPageBehaviorActiveObserver_:function(G){var H=this;_.V("kevlar_use_vimio_behavior")&&(G?_.xI("INNERTUBE_CLIENT_NAME")==="WEB"?_.Ui.addJob(function(){H.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(G){if(!this.setScrollTopJobId_){var H=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){H.setScrollTopJobId_=0;var Z=_.tp().resolve(_.Jp(_.Bh));Z&&_.IP(Z);this.getPageScrollingElement().scrollTop=G}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.TL(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var pD2;var ZC=function(){var G=_.C.apply(this,arguments)||this;G.playerListenerConfig=null;G.actionMap={"yt-show-watch-page-survey":"openSurvey"};return G};
_.T(ZC,_.C);_.g=ZC.prototype;_.g.dataChanged=function(){var G=this,H=_.UO();H&&H.getPlayerPromise().then(function(Q){G.maybeRemovePlayerListeners(Q)});
var Z=this.data&&this.data.survey;Z&&((Z=(Z=Z.singleOptionSurveyRenderer||Z.checkboxSurveyRenderer||Z.multiStageSurveyRenderer)&&Z.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(H,Z):this.openSurvey())};
_.g.triggerWatchPageSurvey=function(G,H){var Z=this,Q,p,l,q,u,B,t,D,d;return _.S(function(e){if(e.nextAddress==1)return G?e.yield(G.getPlayerPromise(),2):e.return();Z.player=e.yieldResult;if(!Z.player)return e.return();Q={};p=_.I(H);for(l=p.next();!l.done;l=p.next())q=l.value,u=_.I(Z.createEventListenerPair(q)),B=u.next().value,t=u.next().value,D=B,d=t,D&&d&&(Q[D]=d,Z.ytPlayerListenerBehavior.listenToPlayerEvent(Z.player,D,d));Z.playerListenerConfig=Q;_.K0(e)})};
_.g.createEventListenerPair=function(G){var H=G.playbackEventTrigger;return H?this.handlePlaybackTrigger(H):(G=G.watchTimeTrigger)?this.handleWatchTimeTrigger(G):[void 0,void 0]};
_.g.handleWatchTimeTrigger=function(G){var H=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var Z=G.videoWatchFraction,Q=G.watchTimeSec;return Q&&Z?["onVideoProgress",function(){H.player&&H.isWatchTimeConditionMet(H.player,Z,Q)&&H.showSurvey()}]:[void 0,
void 0]};
_.g.isWatchTimeConditionMet=function(G,H,Z){var Q=G.getProgressState(),p=Q.current-this.lastKnownPlaybackPosition;p<5&&(this.accumulatedMediaTime+=p);this.lastKnownPlaybackPosition=Q.current;Q=Math.round(this.accumulatedMediaTime/Q.duration*1E3)/1E3;return G.getPresentingPlayerType&&G.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>Z||Q>H)};
_.g.handlePlaybackTrigger=function(G){var H=this;G=G.playbackEvent;if(G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var Z="onStateChange";var Q=function(p){p===0&&H.showSurvey()}}else G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(Z="onVideoProgress",Q=function(p){H.player&&H.player.getPresentingPlayerType&&H.player.getPresentingPlayerType()===1&&p&&H.showSurvey()}):G==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(Z="onAdEnd",Q=this.showSurvey);
return[Z,Q]};
_.g.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.g.openSurvey=function(){var G=this,H=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.ZH8(!!H));_.Ui.addJob(function(){G.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:H}})},0,0)};
_.g.maybeRemovePlayerListeners=function(G){if(this.playerListenerConfig){for(var H=_.I(Object.keys(this.playerListenerConfig)),Z=H.next();!Z.done;Z=H.next())Z=Z.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(G,Z,this.playerListenerConfig[Z]);this.playerListenerConfig=null}};
ZC.prototype.dataChanged=ZC.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],ZC.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],ZC.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],ZC.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],ZC.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ZC.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],ZC.prototype,"playerListenerConfig",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],ZC.prototype,"lastKnownPlaybackPosition",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],ZC.prototype,"accumulatedMediaTime",void 0);_.N([_.h(),_.A("design:type",Object)],ZC.prototype,"player",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ZC.prototype,"dataChanged",null);_.N([_.O({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ZC);
_.m(ZC,"ytd-survey-trigger-renderer",function(){if(pD2!==void 0)return pD2;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return pD2=G},{mode:1});
}catch(e){_._DumpException(e)}
try{
var e2o;_.Y$=function(G){var H=document.createElement("link");_.Sl(H,G,"stylesheet");document.head.appendChild(H)};
_.FX=function(G,H){var Z,Q;return _.S(function(p){Z=document.createElement("div");Z.id=G.id;G.className&&(Z.className=G.className);Q=G.element;if(!Q)throw Error("gk");if(G.location==="prepend")Q.prepend(Z);else if(G.location==="appendChild")Q.appendChild(Z);else if(G.location==="after")Q.after(Z);else throw Error("hk");return p.return(_.az(Z,H,"Vi"))})};
_.bd=function(G){var H;return _.S(function(Z){(H=document.getElementById(G))&&H.remove();_.K0(Z)})};
_.Gc=function(G,H){var Z=document.querySelector(G);Z?H(Z):setTimeout(function(){_.Gc(G,H)},1E3)};
_.nQq=function(G,H,Z){var Q;_.S(function(p){if(p.nextAddress==1)return(Q=document.getElementById(G))?p.jumpTo(2):p.yield(e2o(G,H,Z),2);if(Q=document.getElementById(G))Q.style.display="block";_.K0(p)})};
e2o=function(G,H,Z){return _.S(function(Q){return Q.return(new Promise(function(p){_.Gc("div #panels",function(l){_.FX({element:l,location:"appendChild",id:G,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+Z},H);p()})}))})};_.HI=_.y(function(G){var H=G.text;var Z=G.onClick;var Q=G.color;var p=G.backgroundColor;var l=G.buttonSize;var q=G.disabled;var u=G.iconName;var B=G.iconSize;var t=G.className;var D=G.iconClassName;G=_.Hh(function(e){Z(e)});
var d={};return _.J("button",{class:_.bb("ytpStandardButtonsHost",(d.ytpStandardButtonsLarge=function(){return(l==null?void 0:l())==="large"},d),t),
"on:click":G,style:_.pI({color:Q,"background-color":p}),disabled:q}," ",_.J(_.k,{cond:u,then:function(){return _.J(_.ll,{className:_.bb("ytpStandardButtonsIconContainer",D),icon:u,size:B})}}),H)},"Ui");_.V96=_.y(function(G){var H,Z,Q={};return _.J("div",{class:_.bb("ytprototypesEngagementPanelComponentHost",(Q.ytprototypesEngagementPanelComponentHostMweb=G.isMweb,Q),G.className),id:G.id},_.J("div",{class:_.bb("ytprototypesEngagementPanelComponentEngagementPanelHeader",G.headerClassName)},_.J("div",null,G.header()),_.J("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.J("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(H=G.HeaderButton)==null?void 0:H.call(G)),
_.J(_.HI,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){var p;(p=G.onHide)==null||p.call(G);var l;if((l=G.preventDefault)==null||!l.call(G))if(p=G.id(),p=document.getElementById(p))p.style.display="none"}}))),_.J("div",{class:_.bb("ytprototypesEngagementPanelComponentEngagementPanelContent",G.contentClassName),
style:function(){var p,l;return"height: "+(((p=G.height)==null?0:p.call(G))||((l=G.isMweb)==null?0:l.call(G))?"100%":"800px")+";"}},G.content()),_.J("div",null,(Z=G.Footer)==null?void 0:Z.call(G)))},"Wi");
}catch(e){_._DumpException(e)}
try{
var x7q=new _.bn("replaceFeedContentAction");var L2d;var Ew4;var YR_=function(){return _.C.apply(this,arguments)||this};
_.T(YR_,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],YR_.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],YR_.prototype,"data",void 0);_.N([_.O({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],YR_);
_.m(YR_,"ytd-sub-feed-option-renderer",function(){if(Ew4!==void 0)return Ew4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ew4=G},{mode:1});var F2O;var EZ=function(){return _.C.apply(this,arguments)||this};
_.T(EZ,_.C);EZ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],EZ.prototype,"ytRendererStamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],EZ.prototype,"data",void 0);_.N([_.O({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],EZ);
_.m(EZ,"ytd-sub-feed-selector-renderer",function(){if(F2O!==void 0)return F2O;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return F2O=G},{mode:1});var Y4=function(){return _.C.apply(this,arguments)||this};
_.T(Y4,_.C);
Y4.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}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Y4.prototype,"data",void 0);_.N([_.O({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Y4);
_.m(Y4,"ytd-browse-feed-actions-renderer",function(){if(L2d!==void 0)return L2d;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return L2d=G},{mode:1});var bwy;var G8x;var Fj=function(){return _.C.apply(this,arguments)||this};
_.T(Fj,_.C);Fj.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Fj.prototype,"data",void 0);_.N([_.O({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Fj);
_.m(Fj,"ytd-mini-channel-renderer",function(){if(G8x!==void 0)return G8x;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return G8x=G},{mode:1});var Hm0;var bQ=function(){return _.C.apply(this,arguments)||this};
_.T(bQ,_.C);bQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bQ.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],bQ);
_.m(bQ,"ytd-vertical-channel-section-renderer",function(){if(Hm0!==void 0)return Hm0;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Hm0=G},{mode:1});var Gu=function(){return _.C.apply(this,arguments)||this};
_.T(Gu,_.C);Gu.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Gu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Gu.prototype,"data",void 0);_.N([_.O({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Gu);
_.m(Gu,"ytd-browse-secondary-contents-renderer",function(){if(bwy!==void 0)return bwy;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return bwy=G},{mode:1});var sj0;var Hq=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};G.notActive=!1;G.isConstrainedList=!1;G.marginSettings=0;return G};
_.T(Hq,_.C);_.g=Hq.prototype;
_.g.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]]",marginSettings:"[[marginSettings]]"},matcher:function(G){var H;return(G==null?void 0:(H=G.webComponentHint)==null?void 0:H.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}}}}};
_.g.getPath=function(G,H){var Z="data.tabs.#"+H+".";G.tabs[H].tabRenderer?Z+="tabRenderer.":G.tabs[H].expandableTabRenderer&&(Z+="expandableTabRenderer.");return Z+"content.sectionListRenderer"};
_.g.computeDisplayedContent=function(G){this.unlinkPaths("content");if(G&&G.tabs)for(var H=G.tabs.length,Z=0;Z<H;Z++){var Q=G.tabs[Z].tabRenderer||G.tabs[Z].expandableTabRenderer;if(Q.selected&&Q.content)return this.linkPaths("content",this.getPath(G,Z)),Q.content}return null};
_.g.computeHasSecondaryColumnData=function(G){return!!G&&!!G.secondaryContents};
_.g.onRetrieveLocation=function(G,H){H.locationRetrieved(H.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);G.stopPropagation()};
_.g.onYtServiceRequestSent=function(G,H){_.V("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.g.onYtServiceRequestCompleted=function(G,H){_.V("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.g.onReplaceFeedContentAction=function(G){if(!_.V("replace_feed_content_action_killswitch")&&!this.notActive){var H;(G=(H=_.X(G,x7q))==null?void 0:H.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(G)}};
_.g.handleServiceRequestActions=function(G){if(G=G.actions){G=_.I(G);for(var H=G.next();!H.done;H=G.next()){H=H.value;var Z=void 0;((Z=_.X(H,x7q))==null?0:Z.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.X(H,x7q).items)}}};
Hq.prototype.onYtServiceRequestCompleted=Hq.prototype.onYtServiceRequestCompleted;Hq.prototype.onYtServiceRequestSent=Hq.prototype.onYtServiceRequestSent;Hq.prototype.onRetrieveLocation=Hq.prototype.onRetrieveLocation;_.N([_.v(_.xO),_.A("design:type",Object)],Hq.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Hq.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Hq.prototype,"data",void 0);_.N([_.h({computed:"computeDisplayedContent(data)"}),_.A("design:type",Object)],Hq.prototype,"content",void 0);
_.N([_.h({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Hq.prototype,"hasSecondaryColumnData",void 0);_.N([_.h({value:function(){return window.outerHeight>1024?3:2}}),
_.A("design:type",Number)],Hq.prototype,"initialCount",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],Hq.prototype,"pageSubtype",void 0);_.N([_.q6("ytd-section-list-renderer"),_.A("design:type",Object)],Hq.prototype,"listRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],Hq.prototype,"notActive",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Hq.prototype,"isConstrainedList",void 0);
_.N([_.h(),_.A("design:type",String)],Hq.prototype,"responsiveSizing",void 0);_.N([_.h(),_.A("design:type",Number)],Hq.prototype,"marginSettings",void 0);_.N([_.lq("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Hq.prototype,"onRetrieveLocation",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],Hq.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],Hq.prototype,"onYtServiceRequestCompleted",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Hq);
_.m(Hq,"ytd-two-column-browse-results-renderer",function(){if(sj0!==void 0)return sj0;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return sj0=G},{mode:2});
}catch(e){_._DumpException(e)}
try{
var iod=function(G){if((G==null?void 0:G.value)===void 0||G==null||!G.unit)return"initial";a:{switch(G.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var H="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":H="%";break a}H=void 0}return H?""+G.value+H:"initial"};_.RX(_.y(function(G){var H=G.data;G=_.I(_.Ty(!1,void 0,"cIbvuf"));var Z=G.next().value,Q=G.next().value;_.mR(function(){_.sS.getInstance().triggerAction("yt-request-timely-shelf-state")});
_.p1(_.sS.getInstance(),{"yt-hide-shopping-timely-shelf":function(){Q(!1)},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){Q(!0)})}});
var p=function(){var q;return((q=H().image)==null?void 0:q.height)||40},l=function(){var q;
return(q=H().image)==null?void 0:q.backgroundColor};
G={};return _.J("yt-shopping-timely-shelf-content-view-model",{el:_.aX(_.$X(function(){return H().rendererContext})),
class:_.bb("ytShoppingTimelyShelfContentViewModelHost",(G.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(H().image||H().avatar||H().line1)&&Z()},G)),
style:_.pI({"--shopping-timely-shelf-content-padding-top":function(){var q;return iod((q=H().padding)==null?void 0:q.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var q;return iod((q=H().padding)==null?void 0:q.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var q;return iod((q=H().padding)==null?void 0:q.start)},
"--shopping-timely-shelf-content-padding-end":function(){var q;return iod((q=H().padding)==null?void 0:q.end)},
"--yt-shopping-timely-shelf-background-color":function(){return H().backgroundColor!==void 0?_.c$(H().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var q,u;return((u=(q=H().image)==null?void 0:q.cornerRadius)!=null?u:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return l()!==void 0?_.c$(l()):"initial"}})},_.J(_.k,{cond:function(){var q;
return(q=H().image)==null?void 0:q.image},
then:function(q){return _.J(_.ib,{preserveHeight:!0,preserveWidth:!0,height:p,data:q,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.J(_.SP,{data:function(){return H().avatar}},{avatarViewModel:_.m9}),_.J("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.J(_.SP,{data:function(){return H().line1}},{shoppingContentLineViewModel:function(q){return _.J(_.Zc,{data:q.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.J(_.SP,{data:function(){return H().line2}},{shoppingContentLineViewModel:function(q){return _.J(_.Zc,{data:q.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.J("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.J(_.SP,{data:function(){var q;
return(q=H().button)!=null?q:[]}},{buttonViewModel:function(q){var u=q.data;
return _.J(_.kg,{data:u,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(B){u().onTap&&B.stopPropagation()}})}})))},"ko"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.b3}});_.Ooy={};
_.Ooy.YtdWatchBehavior=[_.Y.YtRendererBehavior,_.Hk.YtPlayerListenerBehavior,_.Ii.YtRendererstamperBehavior,_.V6.YtActionHandlerBehavior,_.py.YtPageBehavior,_.ni.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 _.YI("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.V("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.YI("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.V("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.eA("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.eA("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)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.V("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.V("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.V("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_enable_ghost_cards")||_.V("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.V("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);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(G,H,Z){return G&&(H||!Z)},
computeShowGhostRelated_:function(G,H,Z){return G&&(H||!Z)},
monitorScroll:!0,configureRendererStamper:function(){var G={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:_.$2(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.$2(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},
"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.V("swa_prov_panels_ks")?G.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(G.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},G.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return G},
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 G=this;this.watchController=void 0;this.pageDisposeJobs=[function(){G.showMetadataPlaceholder_()},
function(){_.V("web_watch_dont_clear_comments")||G.clearComments_()},
function(){G.clearPlayerAds_()},
function(){G.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.V("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.V("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.cU4(function(){return _.mG(G)},this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.V("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.JS;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.V("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]=
"setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.V("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.pH(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(G){G&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:G}),G.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(G){_.V("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.V("kevlar_watch_while_v2")&&!_.V("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.N5(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(G>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(G){this.initCsi_();this.updatePageData_(G)},
updatePageData_:function(G){var H=this;if(G)if(this.data===G){this.onPageLoadWithSameData_();var Z;(Z=this.watchController)==null||Z.setWatchNextResponse(this.data)}else this.data=G;this.playlist&&_.ee({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.$K("nw");this.loading=!1;_.wM(_.Ui,function(){H.initDclkstatus_();var Q,p=((Q=H.player)==null?void 0:Q.getVideoData().cpn)||"";_.IgM(function(l,q){_.uT6(l,q,p)})})},
onPageLoadWithSameData_:function(){_.V("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var G=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!G);this.set("loadingData.playlistLoading",G&&G!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),G=this.watchNextSkeletonEl_.firstElementChild;G;)G.classList.remove("hidden"),G=G.nextElementSibling;if(_.V("kevlar_watch_frame0_loading_state")){var H,Z,Q;G=(H=this.loadingData)==null?void 0:(Z=H.endpoint)==null?void 0:(Q=Z.watchEndpoint)==null?void 0:Q.videoId;var p;G&&(p="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.F9(this.hostElement).querySelector("#player").style.backgroundImage=p?"url("+p+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.F9(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&G&&(G.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,Z;(Z=(H=this.watchMetadata).updateSentimentBarWidth)==
null||Z.call(H);var Q,p;(p=(Q=this.watchMetadata).resize)==null||p.call(Q)}_.V("kevlar_watch_frame0_loading_state")&&(_.F9(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(G){var H=_.F9(this.hostElement).querySelector(G);H?_.Ul(H,!1):_.Rp(new _.C$("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var H=_.F9(this.hostElement).querySelector(G);H?_.RO(H):_.Rp(new _.C$("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.V("web_thumbnail_to_watch_transition")&&!_.EMi||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.V("web_thumbnail_to_watch_transition")&&!_.EMi||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(G){var H=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Ui.addLowPriorityJob(function(){H.onWindowResized_(_.SX(!0))})},
updateTheaterModeState_:function(G){if(!_.V("kevlar_watch_flexy_theater_manager")){G=G||this.fullWindowMode_;if(this.theater!==void 0||G)this.theater=G;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();G&&_.dj0()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var G=this.fullBleedPlayer?_.F9(this.hostElement).querySelector("#player-full-bleed-container"):_.F9(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),Z=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip");H.parentElement!==G&&(Z&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.mG(this).appendTo(G,H))},
updateErrorScreenLocation:function(){var G=_.F9(this.hostElement).querySelector("#error-screen"),H=this.fullBleedPlayer?_.F9(this.hostElement).querySelector("#player-full-bleed-container"):_.F9(this.hostElement).querySelector("#player");G.parentElement!==H&&H.appendChild(G)},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.S(function(H){if(H.nextAddress==1)return H.yield(_.tp().resolve(_.WM).deactivate(),2);G.updatePlayerLocation();_.K0(H)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var H=this.getCinematicsLocationContainer();G.parentElement!==H&&H.appendChild(G)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.F9(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.F9(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(G,H,Z){var Q=document.documentElement.hasAttribute("dark"),p=Q&&_.V("web_cinematic_theater_mode"),l=Q&&_.V("web_cinematic_fullscreen");Q=!Q&&this.cinematicLightTheme;return Z||G&&p||H&&l||(H||G)&&Q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G=this,H;(H=this.watchController)==null||H.setWatchNextResponse(this.data);_.V("kevlar_watch_flexy_comments_manager")||this.initComments_();_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tp().resolve(_.H9).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.V("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Ui.addLowPriorityJob(function(){_.xk(G.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.V("web_watch_start_chat_in_theater_mode")){var Z,Q,p;if((Z=this.data)==null?0:(Q=Z.contents)==null?0:(p=Q.twoColumnWatchNextResults)==null?0:p.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var l,q;((l=this.data)==null?0:(q=l.contents)==null?0:q.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(G){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(H=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=this.isLiveStreamOffline_(G.playabilityStatus),H&&!G||_.q2(this,function(){_.$K("pbu")}));
this.setPlayerAds_();_.xk(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(G,H){if((_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"))&&this.playerData&&H)return this.playerData.videoDetails},
watchPageActiveChanged_:function(G){_.mm().dispatch(_.WjO(this.active));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new _.aC(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.V("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.mG(this);_.V("kevlar_disable_prepare_player")||
H.preparePlayer();_.V("kevlar_watch_flexy_playlist_manager")||_.tp().resolve(_.H9).setPlayer(H);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":_.KR()+"px"};this.is==="ytd-watch-grid"&&(_.mm().dispatch(_.Lo({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),H["--ytd-watch-flexy-sidebar-width"]=_.SJO+"px",H["--ytd-watch-grid-horizontal-page-margins"]=_.Cx+"px",H["--ytd-watch-grid-columns-top-margins"]=
_.gIY+"px",H["--ytd-watch-grid-min-player-height-medium"]="360px");!_.eA("kv_pl_mx_sz_ks")&&_.eA("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=_.uUU+"px");_.eA("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=_.BO0+"px");this.safeUpdateStyles(H);_.V("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.S6(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.F9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var G=_.KR(),H=_.i8+G,Z=H;this.fixedPanels&&(H+=_.SJO);var Q=657+G;G=1327+G;_.F9(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.F9(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Q+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(G+"px)");_.F9(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");
_.F9(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+Z+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var G=_.F9(this.hostElement).querySelector("#miniplayer-bar").firstChild,H=this.squeezeback&&!_.V("web_watch_squeezeback_player_size_killswitch");return G&&G.active||this.theater||_.V("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||H||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.M4(NaN,NaN):_.JUd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.JUd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.S_(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.SX());_.V("browse_skeleton_removal_on_watch_killswitch")||_.YI("IS_SHELL_LOAD")&&_.QjO();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.mG(this);H.addEventListener("yt-player-updated",_.pH(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(Z){G.playerApiReady_(Z)});
_.V("kevlar_watch_flexy_playlist_manager")||(H=_.tp().resolve(_.H9),_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.pH(this,this.onYtNavigate_)),H.setPlaylistComponent(_.F9(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.pH(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Ui.addLowPriorityJob(function(){_.N5(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.mG(this).removeEventListener("yt-player-updated",_.pH(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.V("kevlar_watch_flexy_playlist_manager")){var G=_.tp().resolve(_.H9);_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.pH(this,this.onYtNavigate_));
G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.pH(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.N5(this.hostElement,"yt-autonav-pause-player",!1);G=_.oO();_.V("kevlar_exit_fullscreen_leaving_watch")&&G&&_.mj(G)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(G){this.player&&this.player.updateVideoData({rvs:G.rvs})},
getPageContents:function(G){return G&&G.contents&&G.contents.twoColumnWatchNextResults&&G.contents.twoColumnWatchNextResults.results&&G.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(G){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G)},
onRetrieveLocation_:function(G,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.J60("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.F9(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.F9(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(G){this.player=G;this.setPlayerState(G.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.V("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.V("kevlar_unified_player")||_.V("kevlar_player_new_bootstrap_adoption"))&&_.KA()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,H){H=H===void 0?!0:H;_.oO()&&_.V("external_fullscreen")&&_.mj(document.documentElement);this.theaterRequested_=G;H&&_.PU("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.AZ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.N5(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(G){_.N1(G,typeof this.player),this.player&&_.N1(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.AZ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,H){return this.loading?H:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.I(G);for(var H=G.next();!H.done;H=G.next())H=H.value,H.youThereRenderer&&_.vK4(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.JL()<G.lowEngagementThresholdMs||_.Me7(H,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.AZ(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,H,Z){return!!G&&!this.isVideoPlayable_(G,Z)&&!H},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,H){if(!G)return!1;var Z=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",Q=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var p;H=H==null?void 0:(p=H.playerOverlayRenderer)==null?void 0:p.gatedActionsOverlayRenderer;return!!Z||!!Q||!!G||!!H},
hasWatchNextResponseErrorRenderer:function(G){var H=this.getPageContents(G),Z,Q,p,l,q;return!(G==null?0:(Z=G.contents)==null?0:(Q=Z.twoColumnWatchNextResults)==null?0:Q.secondaryResults)&&!!((p=H[0])==null?0:(l=p.itemSectionRenderer)==null?0:(q=l.contents[0])==null?0:q.backgroundPromoRenderer)},
isLiveStreamOffline_:function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(G,H,Z){var Q=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),p=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];p=_.V("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&p.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var l=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);l==void 0&&(l=!0);!Z||this.isVideoPlayable_(G,this.getPlayerOverlays_(H))||
Q||p||!l||_.tp().resolve(_.H9).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.kDU()},
onPlayerFeedbackStartRequest_:function(G){_.AZ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.AZ(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,H,Z,Q,p,l,q,u,B=((G=this.data)==null?NaN:(H=G.contents)==null?NaN:(Z=H.twoColumnWatchNextResults)==null?NaN:(Q=Z.secondaryResults)==null?NaN:(p=Q.secondaryResults)==null?NaN:(l=p.offerModule)==null?NaN:(q=l.tvfilmOfferModuleRenderer)==null?NaN:(u=q.actionButtons)==null?NaN:u.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(B>=0?B:0)+".buttonRenderer."];H=_.I(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(Z=H.next();!Z.done;Z=H.next())for(Z=Z.value,Q=_.I(G),p=Q.next();!p.done;p=Q.next())if(p="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+Z+p.value,p=this.get(p+"navigationEndpoint",this.data)||this.get(p+"serviceEndpoint",this.data)||this.get(p+"command",this.data)){_.s6(p,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.N5(this.hostElement,"yt-autonav-pause-player",G)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(G){G()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.N5(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(G)},
setPlayerState:function(G){_.mm().dispatch(_.GKw(G))},
onPlayerSubscribe_:function(G){_.AZ(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.AZ(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.AZ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:G.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(G){if(G)return G},
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(G){return!_.V("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.V("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,H,Z,Q;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(H=G.contents)==null?void 0:(Z=H.twoColumnWatchNextResults)==null?void 0:(Q=Z.secondaryResults)==null?void 0:Q.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,H=(G=this.data)==null?void 0:G.engagementPanels;if(H==null?0:H.length){G=null;H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=void 0;if(((Q=Z.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)==="engagement-panel-structured-description"){G=Z;break}}var p,l,q;G=(p=G)==null?void 0:(l=p.engagementPanelSectionListRenderer)==null?void 0:(q=l.content)==null?void 0:q.structuredDescriptionContentRenderer;if(G==null?0:G.items){p=
[];l=_.I(G.items);for(q=l.next();!q.done;q=l.next()){q=q.value;if(!_.V("sd_horizontal_list_show_nav_killswitch")){var u=Q=Z=H=G=void 0,B=void 0,t=(G=q.horizontalCardListRenderer)==null?void 0:(H=G.header)==null?void 0:(Z=H.richListHeaderRenderer)==null?void 0:(Q=Z.navigationButton)==null?void 0:(u=Q.buttonRenderer)==null?void 0:(B=u.command)==null?void 0:B.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(D){return!_.X(D,_.vFd)}))}(!q.expandableVideoDescriptionBodyRenderer&&
!q.videoDescriptionHeaderRenderer||_.V("web_delhi_colorful_sd"))&&p.push(q)}return{items:p}}}},
constructWarning_:function(G){return{text:_.aq(G),type:"WARNING"}},
isPlaShelfEnabled_:function(G){if((this.get("adPlacements",G)||[]).length)return!0;G=this.get("playerAds",G)||[];return!(!G.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",G[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var G=this;_.N5(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var H=this.getScrollTop()>0;this.gestures_&&(H?this.gestures_.detach():this.gestures_.attach());H!==this.showFullerscreenEdu_&&_.V("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=H,_.mG(this).getPlayerPromise().then(function(Z){Z.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.N5(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.Ui.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.wM(_.Ui,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.V("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.$K("cmi");_.Ui.cancelJob(this.setCommentsJobId_);var G=this.getPageContents(this.data);if(G&&G.length){G=_.I(G);for(var H=G.next();!H.done;H=G.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.N5(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.$K("cmc")},
doRemoveComments_:function(){this.comments={};_.V("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Ui.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Ui.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,H){var Z=_.X(H.endpoint,_.hZ);Z&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||Z.videoId!==H.videoId||Z.playlistId&&Z.playlistId!==H.playlistId||Z.index!==void 0&&Z.index!==H.index||typeof Z.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.mG(this).getPlayerPromise().then(function(Q){var p=Z.startTimeSeconds;Q.seekTo(p);Q.wakeUpControls();p<Q.getDuration()&&Q.playVideo()})))},
updatePlayerStartTime_:function(){var G=_.b9Y();"t"in G&&(G=_.teO(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=this.getPageContents(G);var H,Z;(G=_.yn(G==null?void 0:(H=G[0])==null?void 0:(Z=H.videoPrimaryInfoRenderer)==null?void 0:Z.title))&&_.N5(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.N5(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,H,Z){if(this.active&&this.player){var Q=this.player.getVideoData();if(Q.video_id===Z&&(Z=Q.list,_.V("polymer_enable_mdx_queue")&&Z&&Z.startsWith("RQ")&&(Z=void 0),Q.video_id!==G||Z!=H)){var p;_.V("kevlar_player_watch_endpoint_navigation")?p=_.mG3(_.q3O(G,H)):p=this.buildWatchEndpoint_(G,H);_.N5(this.hostElement,"yt-navigate",{endpoint:p,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(G,H,Z){return _.R5(G,H,Z)},
initDclkstatus_:function(){_.B8U()},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var H=G.querySelector("#primary-info"),Z=G.querySelector("#secondary-info"),Q=G.querySelector("#related");H&&_.F9(this.hostElement).querySelector("#info-skeleton").appendChild(H);Z&&_.F9(this.hostElement).querySelector("#meta-skeleton").appendChild(Z);Q&&(_.F9(this.hostElement).querySelector("#related-skeleton").appendChild(Q),this.watchNextSkeletonEl_=Q);_.Ku(G)}},
handlePlayerUpdated_:function(){_.mG(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,H){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof H!=="undefined"){var Z=this.watchNextSkeletonEl_.children,Q=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,Z.length);H||(Q=0,G=Z.length);if(!this.ghostCardsEnabled)for(H=Q;H<G;H++)Z[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.V("external_fullscreen")||_.AZ(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.mG(this);H.getPlayerPromise().then(function(Z){Z.setFauxFullscreen(!!_.oO())});
this.updateFullBleedElementLocations();G&&(H.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,H){return H&&!!G},
computeResponseHasComments:function(G){var H,Z,Q,p,l;return!!(G==null?0:(H=G.contents)==null?0:(Z=H.twoColumnWatchNextResults)==null?0:(Q=Z.results)==null?0:(p=Q.results)==null?0:(l=p.contents)==null?0:l.some(function(q){var u;return(q==null?void 0:(u=q.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,H,Z,Q){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Q?!1:!!G&&!!Object.keys(G).length&&!H},
identity:_.CW,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(G){var H=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.mG(this).getPlayerPromise().then(function(Z){var Q=Z.getPlayerState();Q!==5&&Q!==0&&(Z=1/Z.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==Z&&(H.videoHeightToWidthRatio_=Z))})},
schedulePlayerSizeUpdate_:function(G){var H=this,Z=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"),Q=function(){if(H.watchMetadata){var p,l;(l=(p=H.watchMetadata).resize)==null||l.call(p)}_.mG(H).getPlayerPromise().then(function(q){if(_.V("kevlar_set_internal_player_size")){if(!Z||!H.isMiniplayerActive()){var u=H.calculateCurrentPlayerSize_();q.setInternalSize(u.width,u.height)}}else q.setSize(NaN,NaN);_.V("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
G?Q():_.ZG(_.Ui,Q)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.X(G,_.XAd).survey)},
onDownloadedVideoDeleted:function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1){if(!H.active||(Z=H.playerData)==null||!Z.offlineState||H.videoId!==G)return p.return();(Q=H.player)==null||Q.stopVideo();_.PN().navigatingAwayFromWatchDeletedVideo=!0;_.s6(_.bav,H.hostElement);return p.yield(_.PN().navigationFinishPromise,2)}_.PN().navigatingAwayFromWatchDeletedVideo=!1;_.K0(p)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.cM(.5625*this.windowSize_.width,480,this.windowSize_.height-185):G=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==G&&(this.watchWhileScrollThreshold_=G,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var G=_.F9(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&G){var H=this.windowSize_.height>=624,Z=this.active?this.getScrollTop():0;!G.active&&H&&Z>=this.watchWhileScrollThreshold_?(G.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):G.active&&(!H||Z<this.watchWhileScrollThreshold_&&!_.oO())&&(G.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var G=_.F9(this.hostElement).querySelector("#secondary-inner");if(G){var H=_.F9(this.hostElement).querySelector("#below"),Z=_.F9(this.hostElement).querySelector("#secondary"),Q=_.F9(this.hostElement).querySelector("#comments");Q&&Z&&H&&(this.defaultTwoColumnLayout?(G.appendChild(Q),Z.appendChild(G)):(H.appendChild(Q),_.ww(H,G)))}}},
isTwoColumnsChanged_:function(G,H){if(G!==!0||H!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(G=_.F9(this.hostElement).querySelector("#secondary-inner"))){H=_.F9(this.hostElement).querySelector("#below");var Z=_.F9(this.hostElement).querySelector("#secondary"),Q=_.F9(this.hostElement).querySelector("#comments");Q&&Z&&H&&(this.isTwoColumns_?(G.appendChild(Q),Z.appendChild(G)):(H.appendChild(Q),_.ww(H,G)))}}else{G=!_.V("web_watch_enable_fs_squeezeback_panels");
H=_.F9(this.hostElement).querySelector("#panels");var p=_.F9(this.hostElement).querySelector("#alerts"),l=_.F9(this.hostElement).querySelector("#shopping-timely-shelf");Z=_.F9(this.hostElement).querySelector("#playlist");Q=_.F9(this.hostElement).querySelector("#related");var q=_.F9(this.hostElement).querySelector("#donation-shelf"),u=_.F9(this.hostElement).querySelector("#comments"),B=_.F9(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(p=_.F9(this.hostElement).querySelector("#secondary-inner"),
G&&(p.appendChild(H),p.appendChild(Z),this.aiCompanionEnabled&&B&&p.appendChild(B)),p.appendChild(q),p.appendChild(Q)):(G&&(_.KO(H,p),_.KO(Z,p),this.aiCompanionEnabled&&B&&_.KO(B,p),_.KO(l,Z)),_.KO(q,p),u&&_.KO(Q,u));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.V("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.V("web_watch_enable_fs_squeezeback_panels")&&_.V("web_watch_theater_chat")){var G=_.F9(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.V("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?(H=_.F9(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==H&&H.append(G),this.fixedPanels=!0):(this.fixedPanels=
!1,H=_.F9(this.hostElement).querySelector("#playlist"),G&&H?_.ME(G,H):_.Rp(new _.C$("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,H){return _.V("sw_metadata_vis_toggle_ks")?!0:!!G||!!H},
computeForceDarkPanelTheme:function(G){return _.V("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.ZI(this.hostElement,G)}catch(H){_.Rp(H)}},
videoHeightToWidthRatioChanged_:function(G,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(G){this.videoHeightToWidthRatio_=1/G},
computeIsVerticalVideo_:function(G){return G>=1},
computeIsFourThreeToSixteenNineVideo_:function(G){return G<=.7501&&G>=.5624},
computeIsExtraWideVideo_:function(G){return G<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.mG(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.mG(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.j5U(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var H=_.dT(G)||0;_.Dp(G,H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.dT("yt-fullerscreen-edu-button-click-count")||0,H=_.dT("yt-fullerscreen-edu-button-shown-count")||0,Z=_.eA("external_fullscreen_button_shown_threshold"),Q=G>=_.eA("external_fullscreen_button_click_threshold")||H>=Z;_.mG(this).getPlayerPromise().then(function(p){p.updateFullerscreenEduButtonSubtleModeState(Q)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tp().resolve(_.H9).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var G=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Ui.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Ui.addLowPriorityJob(function(){G.fullHeightPanelPositionUpdateJobId=0;var H=_.F9(G.hostElement).querySelector("#secondary"),Z=_.F9(G.hostElement).querySelector("#fixed-secondary");H=H.getBoundingClientRect();var Q=H.width;G.swatcherooSqueezeback&&
(Q+=_.Cx);if(G.swatcherooSqueezeback){var p=_.F9(G.hostElement).querySelector("#squeezeback-constraining-container");p.style.width=Q+"px";p.style.flex="0 0 "+Q+"px"}Z.style.width=Q+"px";Z.style.left=H.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Ui.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Ui.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var H;!G.isTwoColumns_||G.theater||G.fullscreen?H=460:H=G.calculateNormalPlayerSize_().height;var Z=H+"px";_.V("live_chat_taller_height")&&!G.theater&&(Z="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.V("live_chat_medium_height")&&!G.theater&&(Z="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.V("live_chat_scaled_height")&&!G.theater&&(Z="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":Z,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(G){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",G)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.El(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var H=_.F9(this.hostElement).querySelector("#engagement-panel-scrim");G?H.addEventListener("tap",_.pH(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.pH(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var H=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var Z=this.getPageScrollingElement(),Q=this.getScrollTop(),p=Q+Z.clientHeight-56;if(H<Q+56)H-=56;else if(G>p)H=G-Z.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.V("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.jt().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,H,Z){if(this.active&&this.trackEngagementPanelVisibility&&!_.Ve_.includes(Z)){if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.xk(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var Q=_.tp().resolve(_.iU);this.visiblePanelIdentifiers_.forEach(function(p){p!==Z&&Q.hidePanel({identifier:p})})}this.visiblePanelIdentifiers_.add(Z)}H!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(Z);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(G){return G?"":"watch-active-metadata"},
computeNewMetadataClass:function(G){return G?"watch-active-metadata":""},
computeIsSingleColumn:function(G,H){return H&&!G},
computeFullBleedPlayer:function(G,H,Z){return _.V("external_fullscreen")&&G||H||Z},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,H){return!G&&H},
updatePanelsLocation:function(){if(_.V("web_watch_enable_fs_squeezeback_panels")){var G=_.F9(this.hostElement).querySelector("#below"),H=_.F9(this.hostElement).querySelector("#panels"),Z=_.F9(this.hostElement).querySelector("#playlist"),Q=_.F9(this.hostElement).querySelector("#chat-container"),p=_.F9(this.hostElement).querySelector("#panels-full-bleed-container"),l=_.F9(this.hostElement).querySelector("#secondary-inner"),q=_.F9(this.hostElement).querySelector("#shopping-timely-shelf"),u=_.F9(this.hostElement).querySelector("#persistent-panel-container");
if(G&&H&&Z&&Q&&p&&l&&q&&(this.aiCompanionEnabled?u:1)){var B=this.fullscreen||this.theater&&this.iMaxTheaterMode,t=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;t?(t=_.F9(this.hostElement).querySelector("#columns"),(Q==null?void 0:Q.parentElement)!==t&&t.append(Q),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):B?p.appendChild(Q):this.isTwoColumns_?_.ww(l,Q):_.ww(G,Q);B?(p.appendChild(H),p.appendChild(Z),this.aiCompanionEnabled&&
u&&p.appendChild(u)):(this.isTwoColumns_?(_.ww(l,H),_.ww(l,Z),this.aiCompanionEnabled&&u&&_.ww(l,u)):(_.ww(G,H),_.ww(G,Z),this.aiCompanionEnabled&&u&&_.ww(G,u)),_.ww(G,q))}}},
swatcherooUpdatePanelsLocation:function(G,H,Z,Q,p,l){if(this.is==="ytd-watch-grid"){H=G&&!H;this.swatcherooSplitScroll&&(H?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));Z=_.F9(this.hostElement).querySelector("#panels");var q=_.F9(this.hostElement).querySelector("#playlist"),u=_.F9(this.hostElement).querySelector("#persistent-panel-container"),
B=_.F9(this.hostElement).querySelector("#fixed-secondary"),t=_.F9(this.hostElement).querySelector("#fixed-below"),D=_.F9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),d=_.F9(this.hostElement).querySelector("#chat-container");l&&(G?(B.appendChild(Z),this.aiCompanionEnabled&&u&&B.appendChild(u)):(t.appendChild(Z),this.aiCompanionEnabled&&u&&t.appendChild(u)));p?G?B.appendChild(d):t.appendChild(d):_.ME(d,D);Q?G?B.appendChild(q):t.appendChild(q):_.ME(q,
D);this.swatcherooSplitScroll&&(G=_.F9(this.hostElement).querySelector("#secondary"),Q=_.F9(this.hostElement).querySelector("#columns"),p=_.F9(this.hostElement).querySelector("#fixed-columns-secondary"),H?p.appendChild(G):Q.appendChild(G))}},
computeMetadataSkinnyMode:function(G,H,Z){return this.is!=="ytd-watch-grid"?!1:G?Z:H},
computeWatchWhilePanelsActive:function(G,H){return G||H},
computeNoBorderOnChat:function(G){return _.V("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,H){return G&&!H},
computePanelExpanded:function(G,H,Z){return G||H||Z},
computeSqueezeback:function(G,H,Z,Q){if(_.V("web_watch_enable_fs_squeezeback_panels")){var p=this.iMaxTheaterMode&&this.theater,l=this.theater&&!this.iMaxTheaterMode;return(G||H||Z)&&(p||Q)||H&&l}},
computeSwatcherooSqueezeback:function(G,H,Z){return this.is!=="ytd-watch-grid"||_.V("ww_squeezeback_killswitch")?!1:G&&H&&Z},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(G){_.mG(this).getPlayerPromise().then(function(H){var Z;(Z=H.changeMarkerVisibility)==null||Z.call(H,_.X(G,_.Ub).isVisible||!1,_.X(G,_.Ub).entityKeys||[],_.X(G,_.Ub).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.mm().dispatch(_.nKU(G.detail));if(!this.liveChatCollapsed&&this.squeezeback){var H=_.tp().resolve(_.iU);this.visiblePanelIdentifiers_.forEach(function(Z){H.hidePanel({identifier:Z})})}},
onSetPlaylistCollapsed:function(G){_.V("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!G)},
provideRenderingData:function(G,H){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=H;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=
H;break;case "DONATION_SHELF":this.donation=H;break;case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
H;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=H;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=H}},
toggleCinematicsActive:function(G){this.cinematicsActive=G},
isMiniplayerActive:function(){return _.tp().resolve(_.WM).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var kqi;_.t9L=function(G){if(!(0,_.kxa)(G))throw Error("K``"+String(G));};
_.D6o=function(G){return G.findIndex(function(H){return kqi.indexOf(H.tagName)>-1})>-1};
_.d6k=function(){var G=_.tp().resolve(_.XI);_.gCM(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(G.isFullscreenEnabled()?_.mj(document.documentElement):_.FL2(document.documentElement))};
kqi=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Ad=new Map;_.Ad.set(32,59972);_.Ad.set(27,50765);_.Ad.set(70,60102);_.Ad.set(76,60221);_.Ad.set(77,60222);_.Ad.set(74,60223);_.Ad.set(84,60224);_.Ad.set(38,61941);_.Ad.set(40,61942);_.Ad.set(73,62521);_.Ad.set(67,62522);_.Ad.set(80,63390);_.Ad.set(78,63397);_.Ad.set(75,59972);_.Ad.set(188,63385);_.Ad.set(190,63384);_.Ad.set(36,63387);
_.Ad.set(35,63386);_.Ad.set(37,63388);_.Ad.set(39,63389);_.Ad.set(79,63423);_.Ad.set(87,63424);_.Ad.set(107,63426);_.Ad.set(109,63425);_.Ad.set(65,63428);_.Ad.set(83,63430);_.Ad.set(68,63429);_.Ad.set(221,63431);_.Ad.set(219,63432);_.Ad.set(97,63439);_.Ad.set(98,63440);_.Ad.set(99,63441);_.Ad.set(100,63442);_.Ad.set(101,63443);_.Ad.set(102,63444);_.Ad.set(103,63445);_.Ad.set(104,63446);_.Ad.set(105,63447);_.x$=new Map;_.x$.set(80,63390);_.x$.set(78,63397);_.x$.set(188,63400);_.x$.set(190,63401);
_.x$.set(191,60765);_.x$.set(13,247917);_.LR=new Map;_.Et=new Map;
}catch(e){_._DumpException(e)}
try{
var PSA,hGq,CSh,i3D;_.zGD=function(G){return G.ui.guideIsVisibleButNotPersistent};
_.KAa=function(G){return G.ui.tabGesturesIsActive};
_.MXs=function(){var G=_.n$("service_worker_scope");try{return navigator.serviceWorker.getRegistration(G)}catch(H){return Promise.reject(H)}};
_.j_c=function(G){return!(!G||!G.pushManager)};
PSA=function(){return _.MXs().then(_.j_c).catch(function(){return!1})};
_.r0A=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?PSA():Promise.resolve(!1)};
_.w$8=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
hGq=function(){var G,H,Z;return _.S(function(Q){switch(Q.nextAddress){case 1:return Q.yield(_.oI.getInstance(),2);case 2:G=Q.yieldResult;if(!G){H=void 0;Q.jumpTo(3);break}return Q.yield(G.get("lmqf"),4);case 4:H=Q.yieldResult;case 3:switch((Z=H)||(Z="SD"),Z){case "HD":return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return Q.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
CSh=function(G){var H,Z,Q;return _.S(function(p){if(p.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.V("disable_av1_setting")){var l=window.localStorage["yt-player-av1-pref"];l=l==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":l==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else l="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(H=G===l)return p.jumpTo(2);Q=Z=G;return p.yield(hGq(),3)}p.nextAddress!=2&&(H=Q===p.yieldResult);return p.return(H)})};var O3i;var apo=_.KF.IronButtonState,y0L=(0,_.ft)(HTMLElement);
_.Vy({_template:function(){if(O3i!==void 0)return O3i;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;i3D===void 0&&(i3D=document.createElement("template"));var Q=i3D;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return O3i=G},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[apo,_.WZ,_.Mo,_.r5],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(G){var H=(0,_.js)(this);H.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:G});H.shadowRoot.appendChild(G);return y0L.prototype._attachDom.call(this,G)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var G=this.contentElement;G&&G.selectedItem&&this._setSelectedItem(G.selectedItem)},
get contentElement(){for(var G=_.Bf(this.$.content).getDistributedNodes(),H=0,Z=G.length;H<Z;H++)if(G[H].nodeType===Node.ELEMENT_NODE)return G[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(G){this._setSelectedItem(G.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(G){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G)===this&&this.open()},
_selectedItemChanged:function(G){var H="";G?H=G.label||G.getAttribute("label")||G.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(G,H){return H?H:G?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var G=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",G)}});_.jI=new _.bn("navigateAction");var oTh=new _.bn("formRenderer");var Pp=function(){var G=_.uq.apply(this,arguments)||this;G.showInput=!1;return G};
_.T(Pp,_.uq);_.g=Pp.prototype;_.g.detached=function(){this.showInput&&window.removeEventListener("click",_.pH(this,this.closeOnOutsideClick_))};
_.g.stopPropagation_=function(G){this.showInput&&G.stopPropagation()};
_.g.closeOnOutsideClick_=function(G){this.closeOnOutsideClickCondition(G)&&(this.showInput=!1,window.removeEventListener("click",_.pH(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.g.closeOnOutsideClickCondition=function(){return!0};
_.g.closeOnOutsideClickHandler=function(){};
_.g.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.pH(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.g.openOnClickHandler=function(){};
_.g.showInputChanged=function(){};
_.g.setShowInput=function(G){this.showInput=G};
Pp.prototype.setShowInput=Pp.prototype.setShowInput;Pp.prototype.showInputChanged=Pp.prototype.showInputChanged;Pp.prototype.openOnClickHandler=Pp.prototype.openOnClickHandler;Pp.prototype.openOnClick_=Pp.prototype.openOnClick_;Pp.prototype.closeOnOutsideClickHandler=Pp.prototype.closeOnOutsideClickHandler;Pp.prototype.closeOnOutsideClickCondition=Pp.prototype.closeOnOutsideClickCondition;Pp.prototype.closeOnOutsideClick_=Pp.prototype.closeOnOutsideClick_;Pp.prototype.stopPropagation_=Pp.prototype.stopPropagation_;
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Pp.prototype,"showInput",void 0);_.N([_.lq("click"),_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Pp.prototype,"stopPropagation_",null);_.N([_.gx("showInput"),_.A("design:type",Function),_.A("design:paramtypes",[Boolean]),_.A("design:returntype")],Pp.prototype,"showInputChanged",null);_.N([_.BG()],Pp);_.mla=[Pp.prototype];var Ulj;var RGc;var rA=function(){return _.C.apply(this,arguments)||this};
_.T(rA,_.C);_.g=rA.prototype;_.g.computePreselectedOption=function(G,H){return H===this.itemSelected_?G:void 0};
_.g.dataChanged_=function(){var G=this;this.preselectedSubreason=this.itemSelected_=-1;var H;(H=this.data)!=null&&H.key&&_.q2(this,function(){var Z,Q=Number((Z=G.data)==null?void 0:Z.key);!Number.isNaN(Q)&&(G.itemSelected_=Q,Z=(Z=(G.data.items||[])[Q])&&Z.optionSelectableItemRenderer&&Z.optionSelectableItemRenderer.preselectedIndex)&&(G.preselectedSubreason=Z)})};
_.g.isSubReasonHidden_=function(G,H){return G!=H};
_.g.onTopItemSelected_=function(G,H){for(var Z=_.F9(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),Q=0,p=Z.length;Q<p;Q++)Z[Q].select(0);_.AZ(this.hostElement,"yt-report-form-update",[H.item.value]);G.stopPropagation()};
_.g.onItemSelected_=function(G,H){_.AZ(this.hostElement,"yt-report-form-update",[H.item.value]);G.stopPropagation()};
_.g.getItem_=function(G){return G.serviceItem?G.serviceItem:G.navigationItem?G.navigationItem:G.optionSelectableItemRenderer?G.optionSelectableItemRenderer:null};
_.g.computeText_=function(G){return(G=this.getItem_(G))?this.ytRendererBehavior.getSimpleString(G.text):null};
_.g.validate=function(){return this.itemSelected_!==-1};
_.g.computeAriaLabel_=function(G){var H=_.yn(G.text);(G=G.accessibility&&G.accessibility.accessibilityData&&G.accessibility.accessibilityData.label)&&(H+=". "+G);return H};
_.g.computeItemSelected_=function(G){return G};
_.g.preventSelection_=function(G){G.stopPropagation();this.tooltipTapped=!0};
_.g.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.g.updateItemSelectedFromBinding=function(G){this.itemSelected_=G.detail.value};
_.g.save=function(){var G;this.validate()&&(G=this.data)!=null&&G.items&&(G=this.data.items[this.itemSelected_],G!=null&&G.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(G.optionSelectableItemRenderer.submitEndpoint)||_.L9(this.hostElement,[G.optionSelectableItemRenderer.submitEndpoint])))};
rA.prototype.onPaperRippleTransitionEnd_=rA.prototype.onPaperRippleTransitionEnd_;rA.prototype.dataChanged_=rA.prototype.dataChanged_;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],rA.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rA.prototype,"data",void 0);_.N([_.h({value:-1}),_.A("design:type",Number)],rA.prototype,"itemSelected_",void 0);
_.N([_.h({computed:"computeItemSelected_(itemSelected_)"}),_.A("design:type",Number)],rA.prototype,"value",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],rA.prototype,"restoreFocusOnClose",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],rA.prototype,"tooltipTapped",void 0);_.N([_.h({value:-1}),_.A("design:type",Number)],rA.prototype,"preselectedSubreason",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rA.prototype,"dataChanged_",null);_.N([_.lq("transitionend"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rA.prototype,"onPaperRippleTransitionEnd_",null);_.N([_.fH({is:"yt-options-renderer",disableElementRegistration:!0})],rA);
_.m(rA,"yt-options-renderer",function(){if(RGc===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Ulj===void 0&&(Ulj=document.createElement("template"));var Q=Ulj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);RGc=G}G=RGc;return G},{mode:2});var NTm;var A0h;var xli;var LAD;var ETh;var YDD;var wA=function(){return _.C.apply(this,arguments)||this};
_.T(wA,_.C);wA.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
wA.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
wA.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.AZ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])G&&G.detail&&(G.detail.x||G.detail.y)&&_.F9(this.hostElement).querySelector("#target").blur(),(G=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),G={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:G?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.AZ(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.N([_.h({observer:"onDataChanged"}),_.A("design:type",Object)],wA.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.A("design:type",String)],wA.prototype,"componentTitle",void 0);_.N([_.q6("#thumbnail"),_.A("design:type",Object)],wA.prototype,"thumbnail",void 0);_.N([_.fH({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],wA);
_.m(wA,"yt-enrolled-contact-renderer",function(){if(YDD===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;ETh===void 0&&(ETh=document.createElement("template"));var Q=ETh;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);YDD=G}G=YDD;return G},{mode:2});var FAq;var b3i;var hd=function(){return _.C.apply(this,arguments)||this};
_.T(hd,_.C);hd.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
hd.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
hd.prototype.onTap=function(G){if(this.hostElement.classList.contains("selected")||_.AZ(this.hostElement,"yt-share-panel-can-select-contact-action")[0])G&&G.detail&&(G.detail.x||G.detail.y)&&_.F9(this.hostElement).querySelector("#target").blur(),(G=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),G={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:G?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.AZ(this.hostElement,"yt-share-panel-select-contact-action",[G])};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.N([_.h({observer:"onDataChanged"}),_.A("design:type",Object)],hd.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.A("design:type",String)],hd.prototype,"componentTitle",void 0);_.N([_.q6("#thumbnail"),_.A("design:type",Object)],hd.prototype,"thumbnail",void 0);_.N([_.fH({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],hd);
_.m(hd,"yt-suggested-contact-renderer",function(){if(b3i===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;FAq===void 0&&(FAq=document.createElement("template"));var Q=FAq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);b3i=G}G=b3i;return G},{mode:2});var CR=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-share-panel-reset-action":"onReset"};return G};
_.T(CR,_.C);CR.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"}}}}}};
CR.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.AZ(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
CR.prototype.onReset=function(){for(var G=_.F9(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),H=G.length-1;H>=0;H--)G[H].classList.toggle("selected")};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],CR.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h({observer:"onDataChanged"}),_.A("design:type",Object)],CR.prototype,"data",void 0);
_.N([_.fH({is:"yt-contact-section-renderer",disableElementRegistration:!0})],CR);
_.m(CR,"yt-contact-section-renderer",function(){if(LAD===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;xli===void 0&&(xli=document.createElement("template"));var Q=xli;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);LAD=G}G=LAD;return G},{mode:2});var id=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return G};
_.T(id,_.C);_.g=id.prototype;_.g.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"}}}};
_.g.onYtRefreshFormCommand=function(G){var H;(G=_.X((H=_.X(G,_.mdR))==null?void 0:H.formRenderer,oTh))&&this.set("data",G)};
_.g.reset=function(){var G=_.F9(this.hostElement).querySelector("#fields").children;G=_.I(G);for(var H=G.next();!H.done;H=G.next())H=H.value,H.reset&&H.reset()};
_.g.getForm=function(){var G={},H=_.F9(this.hostElement).querySelector("#fields").children;H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;if(!Z.validate())return null;G[Z.data.key]=Z.value}return G};
_.g.submitFormFields=function(){if(this.fields)for(var G=_.I(this.fields),H=G.next();!H.done;H=G.next())H=H.value,H.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?H.save():H.nodeName==="YT-OPTIONS-RENDERER"&&H.save()};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],id.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],id.prototype,"data",void 0);_.N([_.S9("#fields > *"),_.A("design:type",Array)],id.prototype,"fields",void 0);
_.N([_.fH({is:"yt-form-renderer",disableElementRegistration:!0})],id);
_.m(id,"yt-form-renderer",function(){if(A0h===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;NTm===void 0&&(NTm=document.createElement("template"));var Q=NTm;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);A0h=G}G=A0h;return G},{mode:2});var Gqi;var Ot=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return G};
_.T(Ot,_.C);Ot.prototype.onCheckboxChange=function(G){this.data&&(G=(this.checked=_.a_(G).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}})};
Ot.prototype.handleUpdateCheckboxCommand=function(G){(G=_.X(G,_.lRt))&&this.data&&this.data.id===G.id&&(this.set("data.disabled",G.disabled),this.set("data.title",G.title))};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Ot.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ot.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Ot.prototype,"checked",void 0);_.N([_.O({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Ot);
_.m(Ot,"ytd-settings-checkbox-renderer",function(){if(Gqi!==void 0)return Gqi;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Gqi=G},{mode:1});var HH8;var aW=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return G};
_.T(aW,_.C);aW.prototype.dataChanged=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return G.radio.removeAttribute("checked"),!G.data||!G.data.id||G.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.w$8()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(H=G.data&&G.data.id)?Z.yield(CSh(G.data.id),4):Z.jumpTo(3):(G.set("data.hidden",!0),Z.jumpTo(0));Z.nextAddress!=3&&(H=Z.yieldResult);H&&_.AZ(G.hostElement,"yt-select-settings-radio-option",[G.data.id]);_.K0(Z)})};
aW.prototype.onButtonChanged=function(G){_.a_(G).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.AZ(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
aW.prototype.onSelectOption=function(G){this.data&&this.data.id&&(this.data.id===G?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
aW.prototype.dataChanged=aW.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],aW.prototype,"ytActionHandlerBehavior",void 0);_.N([_.q6("#radio"),_.A("design:type",Object)],aW.prototype,"radio",void 0);_.N([_.h(),_.A("design:type",Object)],aW.prototype,"data",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],aW.prototype,"dataChanged",null);_.N([_.O({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],aW);
_.m(aW,"ytd-settings-radio-option-renderer",function(){if(HH8!==void 0)return HH8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return HH8=G},{mode:1});var sK6;var y5=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return G};
_.T(y5,_.C);
y5.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"}}}};
y5.prototype.handleUpdateTextCommand=function(G){(G=_.X(G,_.gxw))&&this.data&&this.data.id===G.id&&this.set("data",G)};
y5.prototype.handleUpdateConnectedAppRendererCommand=function(G){if(_.X(G,_.Ssd)&&this.data){var H,Z;if(G=(H=_.X(G,_.Ssd))==null?void 0:(Z=H.newConnectedAppRenderer)==null?void 0:Z.connectedAppRenderer)this.data=G}};
y5.prototype.computeConnectedAppStyle=function(G){return G.style?G.style.toLowerCase().replace(/_/g,"-"):""};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],y5.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],y5.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.A("design:type",String)],y5.prototype,"connectedAppStyle",void 0);_.N([_.O({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],y5);
_.m(y5,"ytd-connected-app-renderer",function(){if(sK6!==void 0)return sK6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sK6=G},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.mu("iuT5Oc");

_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("NSzT5");
var HNO=_.CM(["https://portraits.google.com"]),sq7=_.CM(["https://labs-characters.teams.x20web.corp.google.com"]),ZN7=_.CM(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),Qqd=_.CM(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),pvU=_.VB(HNO),lfY=_.VB(sq7),gaY=_.y(function(G){function H(e){var n;if(e=(n=e.detail)==null?void 0:n.endpoint){n=_.X(e,_.gT);var c;n&&((c=n.browseId)==null?0:c.startsWith("UC"))&&n.browseId!==p()&&(_.bd("creator_chatbots-panel-persistent"),
D.removeEventListener("yt-navigate-start",H))}}
var Z=G.usePlayerHeight;var Q=G.isPersistentPanel;var p=G.creatorChannelId;var l=_.V("enable_creator_chatbots_extension_dev_server"),q=document.createElement("iframe"),u=l?lfY:pvU;_.yP(function(){var e=p();e=l?lfY:_.VB(ZN7,e);_.GO(q,1,e)});
q.className="ytprotoCreatorChatbotsAppLabsIframe";q.allow="microphone; clipboard-read; clipboard-write self "+u;var B=function(){var e;return _.S(function(n){if(n.nextAddress==1)return n.yield(_.tp().resolve(_.LI),2);(e=n.yieldResult)&&e.pauseVideo();_.K0(n)})},t=function(){var e,n,c;
return _.S(function(W){return W.nextAddress==1?W.yield(_.tp().resolve(_.LI),2):(e=W.yieldResult)?W.return({video_id:(c=(n=e.getVideoData())==null?void 0:n.video_id)!=null?c:"",timestamp_sec:e.getCurrentTime().toString()}):W.return({})})};
window.addEventListener("message",function(e){var n,c,W,M,r,w;return _.S(function(x){if(x.nextAddress==1){n=l?lfY.toString():pvU.toString();if(e.origin!==n)return console.warn("Received message from untrusted origin:",e.origin),x.return();c=e.data;if(typeof c!=="object"||c===null||!c.action)return x.return();if(c.action==="pause")return x.yield(B(),0);if(c.action!=="getYouTubeContext"||!e.source)return x.jumpTo(0);W=e.source;M=W.postMessage;r=JSON;w=r.stringify;return x.yield(t(),7)}M.call(W,w.call(r,
{youTubeContext:x.yieldResult}),{targetOrigin:e.origin});return x.jumpTo(0)})});
_.Bx("yt-page-type-changed",function(){if(Q==null?0:Q()){var e;((e=_.tp().resolve(_.o0).getCurrentPage())==null?void 0:e.pageSubtype)!=="channels"&&(e=document.getElementById("creator_chatbots-panel-persistent"))&&(e.style.display="none")}});
var D=_.tp().resolve(_.f2),d;(d=D)==null||d.addEventListener("yt-navigate-start",H);_.oM(function(){var e;(e=D)==null||e.removeEventListener("yt-navigate-start",H)});
return _.J("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(Z==null?0:Z())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.J(_.V96,{id:function(){return(Q==null?0:Q())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var e=l?lfY.toString():pvU.toString(),n;(n=q.contentWindow)==null||n.postMessage("ep_closed",e)},
header:function(){return _.J("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.J("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.J(_.LB,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.J(_.HI,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.Hg(window,_.y2(l?lfY.toString():u.toString()+"/gallery?ytChannelId="+p()),"_blank")}})},
content:function(){return q}}))},"mo"),If7=_.y(function(G){var H=G.creatorChannelId;
var Z=document.createElement("iframe");_.yP(function(){var p=H();p=_.VB(Qqd,p);_.GO(Z,1,p)});
Z.className="ytprotoCreatorChatbotsAppLabsIframe";var Q=function(){var p;return _.S(function(l){if(l.nextAddress==1)return l.yield(_.tp().resolve(_.LI),2);(p=l.yieldResult)&&p.pauseVideo();_.K0(l)})};
return _.J("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.J(_.V96,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.J("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.J("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator"),_.J(_.LB,{data:{text:"AI experiment",type:0}}))},
content:function(){return Z},
Footer:function(){return _.J("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.J(_.HI,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){_.Hg(window,_.y2(pvU.toString()+"/gallery?ytChannelId="+H()),"_blank");Q()}}),_.J("div",null,"This will take you to Google Portraits"))}}))},"oo");var q74,S72,u84;q74=_.CM(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);S72=_.VB(q74);
_.jON=function(G){G=G===void 0?"":G;_.bd("creator_chatbots-entry-point");_.bd("creator_chatbots-panel");_.Y$(S72);_.Gc("ytd-watch-metadata #top-level-buttons-computed",function(H){document.getElementById("creator_chatbots-entry-point")||(_.FX({element:H,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.J(u84,{creatorChannelId:G})}),_.nQq("creator_chatbots-panel",function(){return _.J(gaY,{usePlayerHeight:!0,
creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};
_.PJd=function(G){G=G===void 0?"":G;_.bd("creator_chatbots-panel");_.Gc("ytd-watch-metadata #top-level-buttons-computed",function(){_.nQq("creator_chatbots-panel",function(){return _.J(If7,{creatorChannelId:G})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
u84=_.y(function(G){var H=G.creatorChannelId;var Z=function(){_.nQq("creator_chatbots-panel",function(){return _.J(gaY,{usePlayerHeight:!0,creatorChannelId:H})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.J("div",{class:"ytd-menu-renderer"},_.J(_.tf,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:Z}},
icon:function(){return _.J(_.ll,{icon:"SPARK"})}}))},"po");
_.KKm=function(G){G=G===void 0?"":G;var H;return _.S(function(Z){return(H=document.getElementById("creator_chatbots-panel-persistent"))?(H.style.display==="none"&&(H.style.display="block"),Z.jumpTo(0)):Z.yield(new Promise(function(Q){_.Gc("ytd-app",function(p){_.FX({element:p,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.J(gaY,{isPersistentPanel:!0,
creatorChannelId:G})});
Q()})}),0)})};
_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("L3n37");
var N8O=function(G){return G.watch.isLearningJourneyActive},AUY=_.bl(115994),xmY=_.bl(115993),Lhq=function(G,H,Z){var Q=this;
var p=Z.dragDownAction;this.layer=0;this.JSC$23461_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Q.dragDownAction()}}}};
this.JSC$23461_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Q.dragDownAction()}}}};
this.fullscreen=!1;var l=_.gr();_.vN(l,AUY,this.layer);_.vN(l,xmY,this.layer);this.dragDownAction=function(){p();_.jQ(l,{visualElement:Q.fullscreen?AUY:xmY})};
this.gesture=new _.aG(G,H,this.getConfig(!1),"pandown");this.attach()};
Lhq.prototype.attach=function(){this.gesture.attach()};
Lhq.prototype.detach=function(){this.gesture.detach()};
Lhq.prototype.update=function(G){this.fullscreen=G;var H=this.gesture;G=this.getConfig(G);H.config=G};
Lhq.prototype.getConfig=function(G){return G?this.JSC$23461_watchFullScreenConfig:this.JSC$23461_watchConfig};var EKy=function(G){_.NM.call(this);var H=this;this.rootElement=G;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(Z){H.initOrDisposeActiveModules(Z)}));
this.onAttached()};
_.T(EKy,_.NM);_.g=EKy.prototype;_.g.getRoot=function(){return this.rootElement};
_.g.getElement=function(G){return this.rootElement.getElement(G)};
_.g.setPlayerResponse=function(G){this.playerResponse=G;this.publish("PLAYER_RESPONSE_UPDATED",G)};
_.g.getPlayerResponse=function(){return this.playerResponse};
_.g.setWatchNextResponse=function(G){this.watchNextResponse===G?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=G,this.publish("WATCH_NEXT_RESPONSE_UPDATED",G))};
_.g.getWatchNextResponse=function(){return this.watchNextResponse};
_.g.registerActionHandler=function(G,H){var Z=this;if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var Q={};_.p1(_.sS.getInstance(),(Q[G]=H,Q),this.getRoot())}else this.actionHandlers.has(G)||(this.actionHandlers.set(G,[]),Q={},_.p1(_.sS.getInstance(),(Q[G]=function(){var p=_.Ry.apply(0,arguments);return(Z.actionHandlers.get(G)||[]).map(function(l){return l.apply(null,_.OP(p))})},Q),this.getRoot())),this.actionHandlers.get(G).push(H)};
_.g.unregisterActionHandler=function(G){if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.lu(_.sS.getInstance(),(H[G]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(G))?(H.pop(),H.length===0&&(H={},_.lu(_.sS.getInstance(),(H[G]=!0,H),this.getRoot()),this.actionHandlers.delete(G))):_.Rp(new _.C$("Attempted to unregister an action handler which is not registered.",G))};
_.g.addPageDisposeJob=function(G){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.M2v(this.rootElement.pageDisposeJobs,G)};
_.g.removePageDisposeJob=function(G){this.rootElement.pageDisposeJobs&&_.ou(this.rootElement.pageDisposeJobs,G)};
_.g.dispatchEvent=function(G,H){_.N5(this.rootElement,G,H)};
_.g.provideRenderingData=function(G,H){this.rootElement.provideRenderingData(G,H)};
_.g.scrollWatchTo=function(G,H){var Z;(Z=this.watchScrollManager)==null||Z.scrollWatchTo(G,H)};
_.g.focusOnPlayer=function(){var G=this.getElement("PLAYER");_.q2(G,function(){if(G&&G.firstElementChild){var H=G.querySelector(".html5-video-player");H&&(_.IP(_.tp().resolve(_.Bh)),H.focus())}else _.Rp(Error("Zo"))})};
var Y3y=function(G){var H=!!G.rootElement.theater,Z=!!G.rootElement.fullscreen,Q;(Q=G.watchCinematicManager)==null||_.VnU(Q,Z,H)};
_.g=EKy.prototype;_.g.subscribeToActiveChanged=function(G,H){H=H===void 0?!0:H;var Z=_.wU(_.mm(),N8O,function(Q){G(Q)});
H&&G(N8O(_.mm().getState()));return Z};
_.g.isActive=function(){return N8O(_.mm().getState())};
_.g.onAttached=function(){var G=_.V("external_fullscreen");_.V("use_unified_flag_accessor")&&(G=_.tp().resolve(_.KRj).retriever.getFlag(_.$ha));(G||_.YI("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.g.initPersistentModules=function(){if(_.V("kevlar_watch_flexy_theater_manager")){var G=new _.Akd(this);_.T$(this,G)}G=new _.hMU(this);_.T$(this,G);G=new _.jx(this);_.T$(this,G);G=new _.Mnx(this);_.T$(this,G);G=new _.Cj(this);_.T$(this,G);G=new _.PH(this);_.T$(this,G);_.V("kevlar_watch_flexy_playlist_manager")&&(G=new _.kh0(this),_.T$(this,G))};
_.g.initOrDisposeActiveModules=function(G){G?(this.watchScrollManager=new _.iv(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.YWy(this)),this.activeModules.push(new _.Le7(this)),this.activeModules.push(new _.$50(this)),this.activeModules.push(new _.U2U(this)),_.V("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.GUM(this)),this.activeModules.push(new _.Z90(this)),_.V("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.cZ0(this)),
_.V("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.qW7(this)),_.V("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.tn0(this),this.activeModules.push(this.watchCinematicManager),Y3y(this)),_.V("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.gkd(this)),_.V("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.P4d(this)),G=_.V("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.V("kevlar_watch_flexy_comments_manager")&&
!G&&this.activeModules.push(new _.fZ4(this)),_.V("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.BN4(this)),this.activeModules.push(new _.H6q(this)),this.activeModules.push(new _.b6O(this)),_.V("web_enable_timely_actions")&&this.activeModules.push(new _.pEy(this)),_.V("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.WgY(this)),_.V("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ekq(this)),_.V("web_fullscreen_components")&&
this.activeModules.push(new _.QA7(this)),_.V("web_player_rtr_ctrls")&&this.activeModules.push(new _.KgI(this))):(_.uY(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.g.disposeInternal=function(){_.NM.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.u4.Object.defineProperties(EKy.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var FhU={},box=["learning-journey-engagement-panel","PAlearning_chat"];
FhU.YtdLearningJourneyWatchBehavior=[_.Y.YtRendererBehavior,_.Hk.YtPlayerListenerBehavior,_.Ii.YtRendererstamperBehavior,_.V6.YtActionHandlerBehavior,_.py.YtPageBehavior,_.ni.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 _.YI("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.V("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.YI("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.V("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.V("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.eA("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.eA("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_rounded_player_large")||_.V("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.V("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.V("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.$2(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.$2(["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 G=this;this.watchController=void 0;this.pageDisposeJobs=[function(){G.showMetadataPlaceholder_()},
function(){_.V("web_watch_dont_clear_comments")||G.clearComments_()},
function(){G.clearPlayerAds_()},
function(){G.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.V("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.V("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.cU4(function(){return _.mG(G)},
this.hostElement);
this.pageDisposeJobs.push(function(){G.youThereManager_.reset()});
_.V("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){G.resetFullerscreenEduButtonForNewPlayback_()}));
_.V("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.JS;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.V("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.V("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.V("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.pH(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(G){G&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:G}),G.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(G){_.V("kevlar_watch_flexy_theater_manager")&&(this.theater=G,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.V("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(G){!_.V("kevlar_watch_while_v2")&&!_.V("web_watch_pip")||G||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(G){this.active!==void 0&&(this.fullscreen=G,_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(G){this.active!==void 0&&(_.N5(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(G>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(G){this.initCsi_();this.updatePageData_(G)},
updatePageData_:function(G){var H=this;if(G)if(this.data===G){this.onPageLoadWithSameData_();var Z;(Z=this.watchController)==null||Z.setWatchNextResponse(this.data)}else this.data=G;this.playlist&&_.ee({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.$K("nw");this.loading=!1;_.wM(_.Ui,function(){H.initDclkstatus_();var Q,p=((Q=H.player)==null?void 0:Q.getVideoData().cpn)||"";_.IgM(function(l,q){_.uT6(l,q,p)})})},
onPageLoadWithSameData_:function(){_.V("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var G=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!G);this.set("loadingData.playlistLoading",G&&G!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),G=this.watchNextSkeletonEl_.firstElementChild;G;)G.classList.remove("hidden"),G=G.nextElementSibling;var H,Z,Q;G=(H=this.loadingData)==null?void 0:(Z=H.endpoint)==null?void 0:(Q=Z.watchEndpoint)==null?void 0:Q.videoId;var p;G&&(p="https://i.ytimg.com/vi/"+G+"/frame0.jpg");_.F9(this.hostElement).querySelector("#player").style.backgroundImage=p?"url("+p+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var G=_.F9(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&G&&(G.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,Z;(Z=(H=this.watchMetadata).updateSentimentBarWidth)==
null||Z.call(H);var Q,p;(p=(Q=this.watchMetadata).resize)==null||p.call(Q)}_.F9(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(G){var H=_.F9(this.hostElement).querySelector(G);H?_.Ul(H,!1):_.Rp(new _.C$("Overscroll monitor not found for component: ",G))},
removeSplitScrollMouseTrap:function(G){var H=_.F9(this.hostElement).querySelector(G);H?_.RO(H):_.Rp(new _.C$("Disposal component for  overscroll monitoring not found: ",G))},
onLoadingChanged_:function(G){G?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(G){var H=this;G?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Ui.addLowPriorityJob(function(){H.onWindowResized_(_.SX(!0))})},
updateTheaterModeState_:function(G){if(!_.V("kevlar_watch_flexy_theater_manager")){G=G||this.fullWindowMode_;if(this.theater!==void 0||G)this.theater=G;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();G&&_.dj0()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var G=this.theater;_.V("external_fullscreen")&&this.fullscreen&&(G=!0);G=G?_.F9(this.hostElement).querySelector("#player-full-bleed-container"):_.F9(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),Z=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip");H.parentElement!==G&&(Z&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.mG(this).appendTo(G,H),G.appendChild(_.F9(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var G=this;return _.S(function(H){if(H.nextAddress==1)return H.yield(_.tp().resolve(_.WM).deactivate(),2);G.updatePlayerLocation();_.K0(H)})},
updateCinematicsLocation:function(){var G=this.getElement("CINEMATICS");if(G){var H=this.getCinematicsLocationContainer();G.parentElement!==H&&H.appendChild(G);var Z;(Z=this.watchController)==null||Y3y(Z)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.F9(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.F9(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(G,H){var Z=document.documentElement.hasAttribute("dark"),Q=Z&&_.V("web_cinematic_theater_mode"),p=Z&&_.V("web_cinematic_fullscreen");Z=!Z&&this.cinematicLightTheme;return G&&Q||H&&p||(H||G)&&Z},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data);_.V("kevlar_watch_flexy_comments_manager")||this.initComments_();_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tp().resolve(_.H9).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.V("web_watch_start_chat_in_theater_mode")){var H,
Z,Q;if((H=this.data)==null?0:(Z=H.contents)==null?0:(Q=Z.twoColumnWatchNextResults)==null?0:Q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var p,l;((p=this.data)==null?0:(l=p.contents)==null?0:l.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(G){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);G&&G.playabilityStatus&&(H=this.isVideoPlayable_(G.playabilityStatus,this.getPlayerOverlays_(this.data)),G=this.isLiveStreamOffline_(G.playabilityStatus),H&&!G||_.q2(this,function(){_.$K("pbu")}));
this.setPlayerAds_();_.xk(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(G){_.mm().dispatch(_.Lo({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));G?this.activate_():this.deactivate_()},
attached:function(){var G=this;this.watchController=new EKy(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.V("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.mG(this);_.V("kevlar_disable_prepare_player")||H.preparePlayer();_.V("kevlar_watch_flexy_playlist_manager")||_.tp().resolve(_.H9).setPlayer(H);this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":_.KR()+
"px"};!_.eA("kv_pl_mx_sz_ks")&&_.eA("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=_.uUU+"px");_.eA("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=_.BO0+"px");this.safeUpdateStyles(H);_.V("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Lhq(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return G.onPlayerTouchPanDown_()}}));
_.V("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.F9(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var G=_.KR(),H=_.i8+G,Z=H;this.fixedPanels&&(H+=_.SJO);var Q=657+G;G=1327+G;_.F9(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.F9(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Q+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(G+"px)");_.F9(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(G+"px)");
_.F9(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+Z+"px)"},
calculateCurrentPlayerSize_:function(){var G=_.F9(this.hostElement).querySelector("#miniplayer-bar").firstChild;return G&&G.active||this.theater||_.V("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.M4(NaN,NaN):_.JUd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.JUd(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.S_(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var G=this;this.onWindowResized_(_.SX());_.V("browse_skeleton_removal_on_watch_killswitch")||_.YI("IS_SHELL_LOAD")&&_.QjO();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.mG(this);H.addEventListener("yt-player-updated",_.pH(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(Z){G.playerApiReady_(Z)});
_.V("kevlar_watch_flexy_playlist_manager")||(H=_.tp().resolve(_.H9),_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.pH(this,this.onYtNavigate_)),H.setPlaylistComponent(_.F9(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.pH(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Ui.addLowPriorityJob(function(){_.N5(G.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.mG(this).removeEventListener("yt-player-updated",_.pH(this,this.onPlayerUpdated_));if(!_.V("kevlar_watch_flexy_playlist_manager")){var G=_.tp().resolve(_.H9);_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&G.removeEventListener("yt-navigate",_.pH(this,this.onYtNavigate_));G.cancelVideoSkip();G.removeEventListener("yt-playlist-data-updated",_.pH(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.V("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.N5(this.hostElement,"yt-autonav-pause-player",!1);G=_.oO();_.V("kevlar_exit_fullscreen_leaving_watch")&&G&&_.mj(G)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(G){this.player&&this.player.updateVideoData({rvs:G.rvs})},
getPageContents:function(G){return G&&G.contents&&G.contents.twoColumnWatchNextResults&&G.contents.twoColumnWatchNextResults.results&&G.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(G){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G)},
onRetrieveLocation_:function(G,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);G.stopPropagation()},
onSubscriptionChanged_:function(G,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.J60("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.F9(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.F9(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(G){this.player=G;this.setPlayerState(G.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.V("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.V("kevlar_unified_player")||_.V("kevlar_player_new_bootstrap_adoption"))&&_.KA()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(G,H){H=H===void 0?!0:H;_.oO()&&_.V("external_fullscreen")&&_.mj(document.documentElement);this.theaterRequested_=G;H&&_.PU("wide",G?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.V("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.AZ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.N5(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(G){_.N1(G,typeof this.player),this.player&&_.N1(G,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var G;((G=this.player)==null?0:G.isFullscreen())?this.player.toggleFullscreen():_.AZ(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(G,H){return this.loading?H:!!Object.keys(G).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(G){if(G){G=_.I(G);for(var H=G.next();!H.done;H=G.next())H=H.value,H.youThereRenderer&&_.vK4(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(G){return G||{}},
userEngagementConfigDataChanged_:function(G){if(G)if(G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.JL()<G.lowEngagementThresholdMs||_.Me7(H,!0)}else G.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.AZ(this.hostElement,"yt-autonav-pause-user-engagement",[G])},
isPlayerUnavailable_:function(G,H,Z){return!!G&&!this.isVideoPlayable_(G,Z)&&!H},
getPlayerOverlays_:function(G){return(G==null?void 0:G.playerOverlays)||null},
isVideoPlayable_:function(G,H){if(!G)return!1;var Z=G.status==="OK"||G.status==="LIVE_STREAM_OFFLINE",Q=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",G)||this.get("errorScreen.ypcTrailerRenderer",G);G=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",G);var p;H=H==null?void 0:(p=H.playerOverlayRenderer)==null?void 0:p.gatedActionsOverlayRenderer;return!!Z||!!Q||!!G||!!H},
hasWatchNextResponseErrorRenderer:function(G){var H=this.getPageContents(G),Z,Q,p,l,q;return!(G==null?0:(Z=G.contents)==null?0:(Q=Z.twoColumnWatchNextResults)==null?0:Q.secondaryResults)&&!!((p=H[0])==null?0:(l=p.itemSectionRenderer)==null?0:(q=l.contents[0])==null?0:q.backgroundPromoRenderer)},
isLiveStreamOffline_:function(G){return G?G.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(G,H,Z){var Q=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),p=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];p=_.V("web_no_skip_video_on_verification_checks")?(G==null?void 0:G.status)&&p.includes(G.status):G&&G.status==="AGE_CHECK_REQUIRED";var l=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",G);l==void 0&&(l=!0);!Z||this.isVideoPlayable_(G,this.getPlayerOverlays_(H))||
Q||p||!l||_.tp().resolve(_.H9).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.kDU()},
onPlayerFeedbackStartRequest_:function(G){_.AZ(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:G}])},
onPlayerFeedbackArticleRequest_:function(G){_.AZ(this.hostElement,"yt-help-dialog-requested",[G])},
onPlayerYpcContentRequest_:function(){var G,H,Z,Q,p,l,q,u,B=((G=this.data)==null?NaN:(H=G.contents)==null?NaN:(Z=H.twoColumnWatchNextResults)==null?NaN:(Q=Z.secondaryResults)==null?NaN:(p=Q.secondaryResults)==null?NaN:(l=p.offerModule)==null?NaN:(q=l.tvfilmOfferModuleRenderer)==null?NaN:(u=q.actionButtons)==null?NaN:u.length)-1;G=[".offerButton.buttonRenderer.",".actionButtons."+(B>=0?B:0)+".buttonRenderer."];H=_.I(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(Z=H.next();!Z.done;Z=H.next())for(Z=Z.value,Q=_.I(G),p=Q.next();!p.done;p=Q.next())if(p="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+Z+p.value,p=this.get(p+"navigationEndpoint",this.data)||this.get(p+"serviceEndpoint",this.data)||this.get(p+"command",this.data)){_.s6(p,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(G){_.N5(this.hostElement,"yt-autonav-pause-player",G)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(G){G()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(G){switch(G){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.N5(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(G)},
setPlayerState:function(G){_.mm().dispatch(_.GKw(G))},
onPlayerSubscribe_:function(G){_.AZ(this.hostElement,"yt-player-subscribe",[G])},
onPlayerUnsubscribe_:function(G){_.AZ(this.hostElement,"yt-player-unsubscribe",[G])},
onPlayerAdYtShowToast_:function(G){_.AZ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:G.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(G){if(G)return G},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(G){return!_.V("web_watch_move_summary_to_sd")&&!!G},
computeWatchMetadataRefresh:function(){return _.V("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var G,H,Z,Q;this.watchNextSecondaryResults=(G=this.data)==null?void 0:(H=G.contents)==null?void 0:(Z=H.twoColumnWatchNextResults)==null?void 0:(Q=Z.secondaryResults)==null?void 0:Q.secondaryResults}},
setRichGridRendererData:function(G){this.richGridRendererData=G},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var G,H=(G=this.data)==null?void 0:G.engagementPanels;if(H==null?0:H.length){G=null;H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=void 0;if(((Q=Z.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)==="engagement-panel-structured-description"){G=Z;break}}var p,l,q;G=(p=G)==null?void 0:(l=p.engagementPanelSectionListRenderer)==null?void 0:(q=l.content)==null?void 0:q.structuredDescriptionContentRenderer;if(G==null?0:G.items){p=
[];l=_.I(G.items);for(q=l.next();!q.done;q=l.next()){q=q.value;if(!_.V("sd_horizontal_list_show_nav_killswitch")){var u=Q=Z=H=G=void 0,B=void 0,t=(G=q.horizontalCardListRenderer)==null?void 0:(H=G.header)==null?void 0:(Z=H.richListHeaderRenderer)==null?void 0:(Q=Z.navigationButton)==null?void 0:(u=Q.buttonRenderer)==null?void 0:(B=u.command)==null?void 0:B.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(D){return!_.X(D,_.vFd)}))}q.expandableVideoDescriptionBodyRenderer||
q.videoDescriptionHeaderRenderer||p.push(q)}return{items:p}}}},
constructWarning_:function(G){return{text:_.aq(G),type:"WARNING"}},
isPlaShelfEnabled_:function(G){if((this.get("adPlacements",G)||[]).length)return!0;G=this.get("playerAds",G)||[];return!(!G.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",G[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var G=this;_.N5(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var H=this.getScrollTop()>0;this.gestures_&&(H?this.gestures_.detach():this.gestures_.attach());H!==this.showFullerscreenEdu_&&_.V("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=H,_.mG(this).getPlayerPromise().then(function(Z){Z.updateFullerscreenEduButtonVisibility(G.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.N5(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var G=this;this.commentsReady=!1;_.Ui.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.wM(_.Ui,function(){G.setComments_()},1E3)},
setComments_:function(){if(!_.V("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.$K("cmi");_.Ui.cancelJob(this.setCommentsJobId_);var G=this.getPageContents(this.data);if(G&&G.length){G=_.I(G);for(var H=G.next();!H.done;H=G.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.N5(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.$K("cmc")},
doRemoveComments_:function(){this.comments={};_.V("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Ui.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Ui.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(G,H){var Z=_.X(H.endpoint,_.hZ);Z&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||Z.videoId!==H.videoId||Z.playlistId&&Z.playlistId!==H.playlistId||Z.index!==void 0&&Z.index!==H.index||typeof Z.startTimeSeconds!=="number"||(G.stopPropagation(),this.setScrollTop(0),_.mG(this).getPlayerPromise().then(function(Q){var p=Z.startTimeSeconds;Q.seekTo(p);Q.wakeUpControls();p<Q.getDuration()&&Q.playVideo()})))},
updatePlayerStartTime_:function(){var G=_.b9Y();"t"in G&&(G=_.teO(G.t),this.player.seekTo(G,!0))},
updateTitleFromWatchNext:function(G){G=this.getPageContents(G);var H,Z;(G=_.yn(G==null?void 0:(H=G[0])==null?void 0:(Z=H.videoPrimaryInfoRenderer)==null?void 0:Z.title))&&_.N5(this.hostElement,"yt-update-title",G)},
updateTitle_:function(G){G=this.get("videoDetails.title",G)||"";_.N5(this.hostElement,"yt-update-title",G)},
syncWithRemoteVideo_:function(G,H,Z){if(this.active&&this.player){var Q=this.player.getVideoData();if(Q.video_id===Z&&(Z=Q.list,_.V("polymer_enable_mdx_queue")&&Z&&Z.startsWith("RQ")&&(Z=void 0),Q.video_id!==G||Z!=H)){var p;_.V("kevlar_player_watch_endpoint_navigation")?p=_.mG3(_.q3O(G,H)):p=this.buildWatchEndpoint_(G,H);_.N5(this.hostElement,"yt-navigate",{endpoint:p,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(G,H,Z){return _.R5(G,H,Z)},
initDclkstatus_:function(){_.B8U()},
attachWatchPageSkeleton_:function(){var G=document.querySelector("#watch-page-skeleton");if(G){var H=G.querySelector("#primary-info"),Z=G.querySelector("#secondary-info"),Q=G.querySelector("#related");H&&_.F9(this.hostElement).querySelector("#info-skeleton").appendChild(H);Z&&_.F9(this.hostElement).querySelector("#meta-skeleton").appendChild(Z);Q&&(_.F9(this.hostElement).querySelector("#related-skeleton").appendChild(Q),this.watchNextSkeletonEl_=Q);_.Ku(G)}},
handlePlayerUpdated_:function(){_.mG(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(G,H){if(this.watchNextSkeletonEl_&&typeof H!=="undefined"){var Z=this.watchNextSkeletonEl_.children,Q=G&&G.indexSplices.length?G.indexSplices[0].index:0;G=Math.min(this.watchNextShownItems.length,Z.length);H||(Q=0,G=Z.length);for(H=Q;H<G;H++)Z[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(G){_.V("external_fullscreen")||_.AZ(this.hostElement,"yt-player-fullscreen",[G.fullscreen])},
onFullscreenChange_:function(G){this.fullscreen=G;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.mG(this);H.getPlayerPromise().then(function(Z){Z.setFauxFullscreen(!!_.oO())});
this.updateFullBleedElementLocations();G&&(H.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(G,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(G){return G},
computeShouldShowMerchShelf:function(G,H){return H&&!!G},
computeResponseHasComments:function(G){var H,Z,Q,p,l;return!!(G==null?0:(H=G.contents)==null?0:(Z=H.twoColumnWatchNextResults)==null?0:(Q=Z.results)==null?0:(p=Q.results)==null?0:(l=p.contents)==null?0:l.some(function(q){var u;return(q==null?void 0:(u=q.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(G,H){this.responseHasComments=this.computeResponseHasComments(this.data);return!!G&&!!Object.keys(G).length&&!H},
identity:_.CW,onWindowResized_:function(G){this.windowSize_=G;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.V("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(G){var H=this;G&&G.type!=="dataloaded"&&G.type!=="dataupdated"||_.mG(this).getPlayerPromise().then(function(Z){var Q=Z.getPlayerState();Q!==5&&Q!==0&&(Z=1/Z.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==Z&&(H.videoHeightToWidthRatio_=Z))})},
schedulePlayerSizeUpdate_:function(G){var H=this,Z=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"),Q=function(){if(H.watchMetadata){var p,l;(l=(p=H.watchMetadata).resize)==null||l.call(p)}_.mG(H).getPlayerPromise().then(function(q){if(_.V("kevlar_set_internal_player_size")){if(!Z||!H.isMiniplayerActive()){var u=H.calculateCurrentPlayerSize_();q.setInternalSize(u.width,u.height)}}else q.setSize(NaN,NaN);_.V("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
G?Q():_.ZG(_.Ui,Q)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(G){this.set("data.survey",G.detail)},
onYtShowSurveyCommand_:function(G){this.set("data.survey",_.X(G,_.XAd).survey)},
onDownloadedVideoDeleted:function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1){if(!H.active||(Z=H.playerData)==null||!Z.offlineState||H.videoId!==G)return p.return();(Q=H.player)==null||Q.stopVideo();_.PN().navigatingAwayFromWatchDeletedVideo=!0;_.s6(_.bav,H.hostElement);return p.yield(_.PN().navigationFinishPromise,2)}_.PN().navigatingAwayFromWatchDeletedVideo=!1;_.K0(p)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var G;this.theater?G=_.cM(.5625*this.windowSize_.width,480,this.windowSize_.height-185):G=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==G&&(this.watchWhileScrollThreshold_=G,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var G=_.F9(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&G){var H=this.windowSize_.height>=624,Z=this.active?this.getScrollTop():0;!G.active&&H&&Z>=this.watchWhileScrollThreshold_?(G.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):G.active&&(!H||Z<this.watchWhileScrollThreshold_&&!_.oO())&&(G.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(G,H){if(G!==!0||H!==void 0){G=!_.V("live_chat_over_engagement_panels");H=_.F9(this.hostElement).querySelector("#chat-container");var Z=_.F9(this.hostElement).querySelector("#plj-sidebar"),Q=_.F9(this.hostElement).querySelector("#panels"),p=_.F9(this.hostElement).querySelector("#plj-panels"),l=_.F9(this.hostElement).querySelector("#plj-playlist"),q=_.F9(this.hostElement).querySelector("#alerts"),u=_.F9(this.hostElement).querySelector("#playlist"),B=_.F9(this.hostElement).querySelector("#related"),
t=_.F9(this.hostElement).querySelector("#donation-shelf"),D=_.F9(this.hostElement).querySelector("#comments");this.isTwoColumns_?(q=_.F9(this.hostElement).querySelector("#secondary-inner"),q.appendChild(Z),Z.appendChild(l),l.appendChild(u),Z.appendChild(p),G&&q.appendChild(Q),_.V("web_watch_theater_chat")||q.appendChild(H),G||q.appendChild(Q),q.appendChild(t),q.appendChild(B)):(G&&_.KO(Q,q),_.KO(u,q),_.V("web_watch_theater_chat")||_.KO(H,q),G||_.KO(Q,q),_.KO(t,q),D&&(p&&_.KO(p,D),_.KO(B,D)));_.V("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.V("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.V("web_watch_theater_chat")){var G=_.F9(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.V("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?_.V("web_watch_theater_chat_beside_player")?(H=_.F9(this.hostElement).querySelector("#panels-full-bleed-container"),(G==null?void 0:G.parentElement)!==H&&H.append(G),this.panelsBesidePlayer=!0):_.V("web_watch_theater_fixed_chat")&&
(H=_.F9(this.hostElement).querySelector("#columns"),(G==null?void 0:G.parentElement)!==H&&H.append(G),this.fixedPanels=!0):(_.V("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.V("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),H=_.F9(this.hostElement).querySelector("#playlist"),G&&H?_.ME(G,H):_.Rp(new _.C$("Missing element when updating chat location",{"chatContainer defined":!!G,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(G,H){return _.V("sw_metadata_vis_toggle_ks")?!0:!!G||!!H},
computeForceDarkPanelTheme:function(G){return _.V("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&G:!1},
safeUpdateStyles:function(G){try{_.ZI(this.hostElement,G)}catch(H){_.Rp(H)}},
videoHeightToWidthRatioChanged_:function(G,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.V("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(G){this.videoHeightToWidthRatio_=1/G},
computeIsVerticalVideo_:function(G){return G>=1},
computeIsFourThreeToSixteenNineVideo_:function(G){return G<=.7501&&G>=.5624},
computeIsExtraWideVideo_:function(G){return G<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.mG(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.mG(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.j5U(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(G){var H=_.dT(G)||0;_.Dp(G,H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var G=_.dT("yt-fullerscreen-edu-button-click-count")||0,H=_.dT("yt-fullerscreen-edu-button-shown-count")||0,Z=_.eA("external_fullscreen_button_shown_threshold"),Q=G>=_.eA("external_fullscreen_button_click_threshold")||H>=Z;_.mG(this).getPlayerPromise().then(function(p){p.updateFullerscreenEduButtonSubtleModeState(Q)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(G,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tp().resolve(_.H9).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var G=this;this.panelMaxHeightUpdateJob_&&_.Ui.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Ui.addLowPriorityJob(function(){G.panelMaxHeightUpdateJob_=0;var H;!G.isTwoColumns_||G.theater||G.fullscreen?H=460:H=G.calculateNormalPlayerSize_().height;var Z=H+"px";_.V("live_chat_taller_height")&&!G.theater&&(Z="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.V("live_chat_medium_height")&&
!G.theater&&(Z="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.V("live_chat_scaled_height")&&!G.theater&&(Z="calc(100vh - var(--ytd-toolbar-height) - 238px)");G.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":Z,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})})},
onYtShowEngagementPanelScrimAction_:function(G){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",G)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.El(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(G){var H=_.F9(this.hostElement).querySelector("#engagement-panel-scrim");G?H.addEventListener("tap",_.pH(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.pH(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(G){if(this.hostElement.contains(G)&&!this.scrollToAnimation_.isAnimating()){var H=G.offsetTop-24;G=G.offsetTop+G.offsetHeight+24;var Z=this.getPageScrollingElement(),Q=this.getScrollTop(),p=Q+Z.clientHeight-56;if(H<Q+56)H-=56;else if(G>p)H=G-Z.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtSignalActionScrollToComments:function(){var G=this.hostElement.querySelector("#comments");if(G&&!this.scrollToAnimation_.isAnimating()){G=G.offsetTop-56-24;if(_.V("kevlar_comment_teaser_scroll_to_midpoint")&&(G-=_.jt().height/3,G<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtEngagementPanelVisibleChanged:function(G,H,Z){this.active&&this.trackEngagementPanelVisibility&&!_.Ve_.includes(Z)&&(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(Z),H!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(Z),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(G){return G?"":"watch-active-metadata"},
computeNewMetadataClass:function(G){return G?"watch-active-metadata":""},
computeFullBleedPlayer:function(G,H){return G||H},
computeDefaultLayout:function(G){return!G},
computeDefaultTwoColumnLayout:function(G,H){return!G&&H},
computeWatchWhilePanelsActive:function(G,H){return G||H},
computeNoBorderOnChat:function(G){return _.V("web_watch_theater_chat_no_border")&&G},
computeLiveChatPresentAndExpanded:function(G,H){return G&&!H},
computePanelExpanded:function(G,H,Z){return G||H||Z},
onChangeMarkersVisibility:function(G){_.mG(this).getPlayerPromise().then(function(H){var Z;(Z=H.changeMarkerVisibility)==null||Z.call(H,_.X(G,_.Ub).isVisible||!1,_.X(G,_.Ub).entityKeys||[],_.X(G,_.Ub).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(G){this.liveChatCollapsed=G.detail;_.mm().dispatch(_.nKU(G.detail))},
provideRenderingData:function(G,H){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=H;break;case "DONATION_SHELF":this.donation=H;break;
case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=H}},
toggleCinematicsActive:function(G){this.cinematicsActive=G},
isMiniplayerActive:function(){return _.tp().resolve(_.WM).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(G){return box.map(function(H){return G.find(function(Z){var Q;return(Z==null?void 0:(Q=Z.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)===H})}).filter(function(H){return H!==void 0})},
getNonLearningJourneyEngagementPanels:function(G){return G.filter(function(H){var Z;return!box.includes((H==null?void 0:(Z=H.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)||"")})}}];var G9_;var bv=function(){var G=_.C.apply(this,arguments)||this;G.flexy=!0;G.learningJourney=!0;G.viewTransitionEnabled=_.V("enable_player_resize_transition");G.smallerChatMinHeight=_.V("live_chat_smaller_min_height");G.cinematicTheaterMode=_.V("web_cinematic_theater_mode");G.transparentTheaterMode=_.V("web_transparent_theater_mode");G.cinematicFullscreen=_.V("web_cinematic_fullscreen");G.cinematicFullscreenV2=_.V("web_cinematic_fullscreen_v2");G.isDarkTheme=document.documentElement.hasAttribute("dark");
G.theaterLargerPlayer=_.V("web_watch_theater_larger_player");G.defaultCollapsePlaylist=_.V("web_watch_default_collapse_playlist");G.enableCanvasLayout=_.V("web_enable_canvas_on_learning_journey");return G};
_.T(bv,_.C);_.g=bv.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.g.ready=function(){var G=this,H=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(G){_.V("web_watch_update_narrow_width_killswitch")||_.mm().dispatch(_.nF0(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.g.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.g.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23470_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23470_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.u4.Object.defineProperties(bv.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 G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(G=_.X(this.data.pageVisualEffects[H],_.sX))return H=void 0,(H=G.config)==null?void 0:H.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.learningJourneyEngagementPanels)==null?void 0:G.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var G,H=(G=this.learningJourneyEngagementPanels)==null?void 0:G.find(function(e){var n;return(e==null?void 0:(n=e.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="learning-journey-engagement-panel"});
if(H){var Z,Q,p,l,q,u,B,t,D;if(G=(t=((B=(q=((l=H==null?void 0:(Z=H.engagementPanelSectionListRenderer)==null?void 0:(Q=Z.content)==null?void 0:(p=Q.sectionListRenderer)==null?void 0:p.contents)!=null?l:[])[0])==null?void 0:(u=q.itemSectionRenderer)==null?void 0:u.contents)!=null?B:[])[0])==null?void 0:(D=t.accordionViewModel)==null?void 0:D.onTitleTap){var d=_.Tt(G);if(d)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.HT.instance.resolveCommand(d)}}}}}}});
_.u4.Object.defineProperties(bv,{template:{configurable:!0,enumerable:!0,get:function(){if(G9_===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);G9_=G}G=G9_;return G}}});
bv.prototype.updateMiniplayerIsActiveValue=bv.prototype.updateMiniplayerIsActiveValue;bv.prototype.updateScrollTopValue=bv.prototype.updateScrollTopValue;bv.prototype.updateFullscreenValue=bv.prototype.updateFullscreenValue;bv.prototype.updateTheaterValue=bv.prototype.updateTheaterValue;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],bv.prototype,"ytComponentBehavior",void 0);
_.N([_.v(FhU.YtdLearningJourneyWatchBehavior),_.A("design:type",Object)],bv.prototype,"ytdWatchBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],bv.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bv.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],bv.prototype,"playerData",void 0);_.N([_.h(),_.A("design:type",Object)],bv.prototype,"browseData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"flexy",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"learningJourney",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"viewTransitionEnabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"smallerChatMinHeight",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"cinematicTheaterMode",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"transparentTheaterMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"cinematicFullscreen",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"cinematicFullscreenV2",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"isDarkTheme",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bv.prototype,"theaterLargerPlayer",void 0);_.N([_.h(),_.A("design:type",Object)],bv.prototype,"defaultCollapsePlaylist",void 0);_.N([_.h(),_.A("design:type",Object)],bv.prototype,"enableCanvasLayout",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("playerData","browseData","enableCanvasLayout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],bv.prototype,"showBrowseResponse",null);
_.N([_.h({reflectToAttribute:!0}),_.z("playerData","enableCanvasLayout"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],bv.prototype,"showWatchResponse",null);_.N([_.h({selector:_.XD}),_.A("design:type",Object)],bv.prototype,"theaterValue",void 0);_.N([_.h({selector:_.ch}),_.A("design:type",Object)],bv.prototype,"fullscreenValue",void 0);_.N([_.h({selector:_.jH}),_.A("design:type",Object)],bv.prototype,"scrollTopValue",void 0);
_.N([_.h({selector:_.T9}),_.A("design:type",Object)],bv.prototype,"miniplayerIsActiveValue",void 0);_.N([_.q6("#ytd-plj-player"),_.A("design:type",HTMLElement)],bv.prototype,"ytdPlayer",void 0);_.N([_.q6("#playlist"),_.A("design:type",HTMLElement)],bv.prototype,"JSC$23470_ytdPlaylistPanelRenderer",void 0);_.N([_.RW("ytd-comments"),_.A("design:type",HTMLElement)],bv.prototype,"ytdComments",void 0);_.N([_.q6("#primary"),_.A("design:type",HTMLElement)],bv.prototype,"primary",void 0);
_.N([_.q6("#secondary"),_.A("design:type",HTMLElement)],bv.prototype,"secondary",void 0);_.N([_.q6("#player-container"),_.A("design:type",HTMLElement)],bv.prototype,"playerContainer",void 0);_.N([_.q6("#cinematics"),_.A("design:type",HTMLElement)],bv.prototype,"JSC$23470_cinematics",void 0);_.N([_.gx("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bv.prototype,"updateTheaterValue",null);
_.N([_.gx("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bv.prototype,"updateFullscreenValue",null);_.N([_.gx("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bv.prototype,"updateScrollTopValue",null);_.N([_.gx("miniplayerIsActiveValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bv.prototype,"updateMiniplayerIsActiveValue",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],bv.prototype,"cinematicLightTheme",null);_.N([_.h({reflectToAttribute:!0}),_.z("learningJourneyEngagementPanels"),_.A("design:type",Object),_.A("design:paramtypes",[])],bv.prototype,"hasLearningJourneyPanels",null);_.N([_.z("learningJourneyEngagementPanels"),_.A("design:type",Object),_.A("design:paramtypes",[])],bv.prototype,"backButtonData",null);_.N([_.O({is:"ytd-watch-learning-journey"})],bv);_.Ri.registerService(_.JKf,bv);
_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("Tm0L3c");
var yU4;var oKU;var mm7=function(){return _.C.apply(this,arguments)||this};
_.T(mm7,_.C);_.N([_.O({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],mm7);
_.m(mm7,"ytd-ghost-comments-renderer",function(){if(oKU===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);oKU=G}G=oKU;return G},{mode:1});var UmI;var REN=function(){return _.C.apply(this,arguments)||this};
_.T(REN,_.C);_.N([_.O({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],REN);
_.m(REN,"ytd-ghost-watch-metadata-renderer",function(){if(UmI===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);UmI=G}G=UmI;return G},{mode:1});var FJ=function(){var G=_.C.apply(this,arguments)||this;G.ghostGridRenderer={rows:6};G.smallerChatMinHeight=_.V("live_chat_smaller_min_height");G.cinematicTheaterMode=_.V("web_cinematic_theater_mode");G.transparentTheaterMode=_.V("web_transparent_theater_mode");G.darkerPanels=_.V("web_watch_darker_panels");G.cinematicFullscreen=_.V("web_cinematic_fullscreen");G.cinematicFullscreenV2=_.V("web_cinematic_fullscreen_v2");G.isDarkTheme=document.documentElement.hasAttribute("dark");return G};
_.T(FJ,_.C);_.g=FJ.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.g.ready=function(){var G=this,H=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(G){this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.g.updateShownItemsFromBinding=function(G){_.V("swatcheroo_direct_use_rich_grid")||(G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value)};
_.g.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23458_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23458_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.u4.Object.defineProperties(FJ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(G=_.X(this.data.pageVisualEffects[H],_.sX))return H=void 0,(H=G.config)==null?void 0:H.enableInLightTheme;return!1}}});
FJ.prototype.updateMiniplayerIsActiveValue=FJ.prototype.updateMiniplayerIsActiveValue;FJ.prototype.updateScrollTopValue=FJ.prototype.updateScrollTopValue;FJ.prototype.updateFullscreenValue=FJ.prototype.updateFullscreenValue;FJ.prototype.updateTheaterValue=FJ.prototype.updateTheaterValue;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],FJ.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.Ooy.YtdWatchBehavior),_.A("design:type",Object)],FJ.prototype,"ytdWatchBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],FJ.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],FJ.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],FJ.prototype,"ghostGridRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],FJ.prototype,"playerData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],FJ.prototype,"smallerChatMinHeight",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],FJ.prototype,"cinematicTheaterMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],FJ.prototype,"transparentTheaterMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],FJ.prototype,"darkerPanels",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],FJ.prototype,"cinematicFullscreen",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],FJ.prototype,"cinematicFullscreenV2",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],FJ.prototype,"isDarkTheme",void 0);_.N([_.h({selector:_.XD}),_.A("design:type",Object)],FJ.prototype,"theaterValue",void 0);_.N([_.h({selector:_.ch}),_.A("design:type",Object)],FJ.prototype,"fullscreenValue",void 0);_.N([_.h({selector:_.jH}),_.A("design:type",Object)],FJ.prototype,"scrollTopValue",void 0);
_.N([_.h({selector:_.T9}),_.A("design:type",Object)],FJ.prototype,"miniplayerIsActiveValue",void 0);_.N([_.q6("#ytd-player"),_.A("design:type",HTMLElement)],FJ.prototype,"ytdPlayer",void 0);_.N([_.q6("#playlist"),_.A("design:type",HTMLElement)],FJ.prototype,"JSC$23458_ytdPlaylistPanelRenderer",void 0);_.N([_.q6("#ytd-comments"),_.A("design:type",HTMLElement)],FJ.prototype,"ytdComments",void 0);_.N([_.q6("#primary"),_.A("design:type",HTMLElement)],FJ.prototype,"primary",void 0);
_.N([_.q6("#secondary"),_.A("design:type",HTMLElement)],FJ.prototype,"secondary",void 0);_.N([_.q6("#player-container"),_.A("design:type",HTMLElement)],FJ.prototype,"playerContainer",void 0);_.N([_.q6("#cinematics"),_.A("design:type",HTMLElement)],FJ.prototype,"JSC$23458_cinematics",void 0);_.N([_.gx("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FJ.prototype,"updateTheaterValue",null);
_.N([_.gx("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FJ.prototype,"updateFullscreenValue",null);_.N([_.gx("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FJ.prototype,"updateScrollTopValue",null);_.N([_.gx("miniplayerIsActiveValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FJ.prototype,"updateMiniplayerIsActiveValue",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],FJ.prototype,"cinematicLightTheme",null);
_.m(FJ,"ytd-watch-grid",function(){if(yU4===void 0){var G=document.createElement("template");_.f(G,'\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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);yU4=G}G=yU4;return G},{mode:2});_.Ri.registerService(_.BCU,FJ);
_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("CF909");
var agY;var YD=function(){var G=_.C.apply(this,arguments)||this;G.viewTransitionEnabled=_.V("enable_player_resize_transition");G.smallerChatMinHeight=_.V("live_chat_smaller_min_height");G.cinematicTheaterMode=_.V("web_cinematic_theater_mode");G.transparentTheaterMode=_.V("web_transparent_theater_mode");G.cinematicFullscreen=_.V("web_cinematic_fullscreen");G.isDarkTheme=document.documentElement.hasAttribute("dark");G.defaultCollapsePlaylist=_.V("web_watch_default_collapse_playlist");G.retroModeReduxValue=
!1;G.persistentPanelVisibleValue=!1;return G};
_.T(YD,_.C);_.g=YD.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateRetroModeReduxValue=function(){_.V("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.g.updatePersistentPanelVisibleValue=function(){_.V("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.g.ready=function(){var G=this,H=function(){G.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(G){_.V("web_watch_update_narrow_width_killswitch")||_.mm().dispatch(_.nF0(!G.detail.value));this.ytdWatchBehavior.isTwoColumns_=G.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(G){this.ytdWatchBehavior.flexySmallWindow_=G.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(G){this.ytdWatchBehavior.flexyLargeWindow_=G.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(G){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=G.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(G){this.ytdWatchBehavior.watchNextCanShowMore=G.detail.value};
_.g.updateShownItemsFromBinding=function(G){G.detail.path?this.set(G.detail.path,G.detail.value):this.ytdWatchBehavior.watchNextShownItems=G.detail.value};
_.g.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23453_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23453_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}};
_.u4.Object.defineProperties(YD.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(G=_.X(this.data.pageVisualEffects[H],_.sX))return H=void 0,(H=G.config)==null?void 0:H.enableInLightTheme;return!1}}});
_.u4.Object.defineProperties(YD,{template:{configurable:!0,enumerable:!0,get:function(){if(agY===void 0){var G=document.createElement("template");_.f(G,'\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" hidden$="[[!showGhostMetadata]]">\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" hidden$="[[!showGhostRelated]]"></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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);agY=G}G=agY;return G}}});
YD.prototype.updatePersistentPanelVisibleValue=YD.prototype.updatePersistentPanelVisibleValue;YD.prototype.updateRetroModeReduxValue=YD.prototype.updateRetroModeReduxValue;YD.prototype.updateScrollTopValue=YD.prototype.updateScrollTopValue;YD.prototype.updateFullscreenValue=YD.prototype.updateFullscreenValue;YD.prototype.updateTheaterValue=YD.prototype.updateTheaterValue;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],YD.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ooy.YtdWatchBehavior),_.A("design:type",Object)],YD.prototype,"ytdWatchBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],YD.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],YD.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],YD.prototype,"playerData",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YD.prototype,"viewTransitionEnabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YD.prototype,"smallerChatMinHeight",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YD.prototype,"cinematicTheaterMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YD.prototype,"transparentTheaterMode",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YD.prototype,"cinematicFullscreen",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],YD.prototype,"isDarkTheme",void 0);_.N([_.h(),_.A("design:type",Object)],YD.prototype,"defaultCollapsePlaylist",void 0);_.N([_.h({selector:_.XD}),_.A("design:type",Object)],YD.prototype,"theaterValue",void 0);_.N([_.h({selector:_.ch}),_.A("design:type",Object)],YD.prototype,"fullscreenValue",void 0);
_.N([_.h({selector:_.jH}),_.A("design:type",Object)],YD.prototype,"scrollTopValue",void 0);_.N([_.h({selector:_.T9}),_.A("design:type",Object)],YD.prototype,"miniplayerIsActive",void 0);_.N([_.h({selector:function(G){return G.watch.isWatchRetroMode}}),
_.A("design:type",Object)],YD.prototype,"retroModeReduxValue",void 0);_.N([_.h({selector:_.KG.persistentPanelVisibleSelector}),_.A("design:type",Object)],YD.prototype,"persistentPanelVisibleValue",void 0);_.N([_.RW("ytd-player"),_.A("design:type",HTMLElement)],YD.prototype,"ytdPlayer",void 0);_.N([_.q6("#playlist"),_.A("design:type",HTMLElement)],YD.prototype,"JSC$23453_ytdPlaylistPanelRenderer",void 0);_.N([_.RW("ytd-comments"),_.A("design:type",HTMLElement)],YD.prototype,"ytdComments",void 0);
_.N([_.q6("#primary"),_.A("design:type",HTMLElement)],YD.prototype,"primary",void 0);_.N([_.q6("#secondary"),_.A("design:type",HTMLElement)],YD.prototype,"secondary",void 0);_.N([_.q6("#player-container"),_.A("design:type",HTMLElement)],YD.prototype,"playerContainer",void 0);_.N([_.q6("#below"),_.A("design:type",HTMLElement)],YD.prototype,"below",void 0);_.N([_.q6("#cinematics"),_.A("design:type",HTMLElement)],YD.prototype,"JSC$23453_cinematics",void 0);
_.N([_.q6("#persistent-panel-container"),_.A("design:type",HTMLElement)],YD.prototype,"persistentPanelContainer",void 0);_.N([_.gx("theaterValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YD.prototype,"updateTheaterValue",null);_.N([_.gx("fullscreenValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YD.prototype,"updateFullscreenValue",null);
_.N([_.gx("scrollTopValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YD.prototype,"updateScrollTopValue",null);_.N([_.gx("retroModeReduxValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YD.prototype,"updateRetroModeReduxValue",null);_.N([_.gx("persistentPanelVisibleValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YD.prototype,"updatePersistentPanelVisibleValue",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],YD.prototype,"cinematicLightTheme",null);_.N([_.O({is:"ytd-watch-flexy"})],YD);_.Ri.registerService(_.uJf,YD);
_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("nmfa2d");
var Fj2;var oC=function(){var G=_.C.apply(this,arguments)||this;G.hidden=!1;G.errorScreen=null;G.playlistData={};return G};
_.T(oC,_.C);_.g=oC.prototype;_.g.getPlayer=function(){return this.ytdPlayer};
_.g.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:_.$2(["aa","eocs"])}}};
_.g.onActiveChanged=function(){_.mm().dispatch(_.WjO(this.ytPageBehavior.active))};
_.g.playerDataChanged=function(){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData)};
_.g.dataChanged=function(){var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)};
_.g.sizeChanged=function(){var G,H;(H=(G=this.metadata).resize)==null||H.call(G)};
_.g.attached=function(){this.watchController=new _.aC(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.g.detached=function(){_.S_(this.watchController);this.watchController=void 0};
_.g.getPlayerContainer=function(){return this.playerContainer};
_.g.getElement=function(G){switch(G){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.g.provideRenderingData=function(G,H){switch(G){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=H;break;case "ERROR_SCREEN":this.errorScreen=H!=null?H:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=H;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=H;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=H;break;case "RICH_METADATA":this.richMetadataRowContainer=H;break;case "CLARIFICATION":this.clarificationData=H;break;case "PLAYLIST":this.playlistData=
H!=null?H:{};break;case "MERCH_SHELF":this.merchShelf=H;break;case "TICKET_SHELF":this.ticketShelf=H;break;case "LIMITED_STATE":this.limitedState=H;break;case "DONATION_SHELF":this.donationShelf=H;break;case "ALERTS":this.alerts=H}};
_.u4.Object.defineProperties(oC.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return!this.hidden&&!!((G=this.data)==null?0:(H=G.contents)==null?0:(Z=H.twoColumnWatchNextResults)==null?0:Z.conversationBar)}}});
oC.prototype.sizeChanged=oC.prototype.sizeChanged;oC.prototype.dataChanged=oC.prototype.dataChanged;oC.prototype.playerDataChanged=oC.prototype.playerDataChanged;oC.prototype.onActiveChanged=oC.prototype.onActiveChanged;_.N([_.v(_.py.YtPageBehavior),_.A("design:type",Object)],oC.prototype,"ytPageBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],oC.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],oC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],oC.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"playerData",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],oC.prototype,"hidden",void 0);_.N([_.q6("#ytd-player"),_.A("design:type",HTMLElement)],oC.prototype,"ytdPlayer",void 0);_.N([_.q6("#player-container"),_.A("design:type",HTMLElement)],oC.prototype,"playerContainer",void 0);_.N([_.q6("#metadata"),_.A("design:type",Object)],oC.prototype,"metadata",void 0);_.N([_.q6("#playlist"),_.A("design:type",HTMLElement)],oC.prototype,"playlistPanel",void 0);
_.N([_.h({selector:_.k$4,reflectToAttribute:!0}),_.A("design:type",Object)],oC.prototype,"fixie",void 0);_.N([_.h({selector:_.t_x,reflectToAttribute:!0}),_.A("design:type",Object)],oC.prototype,"singleColumn",void 0);_.N([_.h({selector:function(G){return _.XD(G)&&!_.ch(G)},
reflectToAttribute:!0}),_.A("design:type",Object)],oC.prototype,"theater",void 0);_.N([_.h({selector:_.ch,reflectToAttribute:!0}),_.A("design:type",Object)],oC.prototype,"fullscreen",void 0);_.N([_.h({selector:_.Tjy}),_.A("design:type",Object)],oC.prototype,"windowSize",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"singleColumnContents",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"errorScreen",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"playlistData",void 0);
_.N([_.h(),_.A("design:type",Object)],oC.prototype,"videoPrimaryInfoRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"videoSecondaryInfoRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"richMetadataRowContainer",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"clarificationData",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"commentsEntryPointHeaderRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"ticketShelf",void 0);
_.N([_.h(),_.A("design:type",Object)],oC.prototype,"merchShelf",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"donationShelf",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"limitedState",void 0);_.N([_.h(),_.A("design:type",Object)],oC.prototype,"alerts",void 0);_.N([_.z("playlistData"),_.A("design:type",Object),_.A("design:paramtypes",[])],oC.prototype,"hasPlaylistData",null);
_.N([_.z("data","hidden"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],oC.prototype,"hasChat",null);_.N([_.gx("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oC.prototype,"onActiveChanged",null);_.N([_.gx("playerData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oC.prototype,"playerDataChanged",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oC.prototype,"dataChanged",null);_.N([_.gx("windowSize","singleColumn"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oC.prototype,"sizeChanged",null);
_.m(oC,"ytd-watch-fixie",function(){if(Fj2===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);Fj2=G}G=Fj2;return G},{mode:1});_.Ri.registerService(_.SbU,oC);
_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("xwEKAe");
var SAM=function(G){G=G.command;var H=_.X(G,_.uS);return{command:G,reelPlayerOverlayRenderer:_.X(H==null?void 0:H.overlay,_.xZ4),thumbnail:H==null?void 0:H.thumbnail,videoId:H.videoId}},ukx=function(G){G=G.command;
var H=_.X(G,_.xl);return{command:G,reelNonVideoContentRenderer:_.X(H==null?void 0:H.renderer,_.EL)}},B3I=function(G){return G.entries?G.entries.map(function(H){return _.X(H==null?void 0:H.command,_.uS)?SAM(H):ukx(H)}):[]},JaN=function(G){return G.prevEntries?G.prevEntries.map(function(H){return _.X(H==null?void 0:H.command,_.uS)?SAM(H):ukx(H)}):[]},tt_=function(G){return _.gM(G)?G.getAttribute("jsname")==="coFSxe":!1},k5O=function(G,H){H.id||(H.id="ow"+_.LW(H));
G.setAttribute("jsowner",H.id);G.__owner=H;var Z=_.xr(H,tt_);Z&&(_.hvG.has(Z)||_.hvG.set(Z,[]),_.hvG.get(Z).push(G));(Z=_.wfw.get(H))||_.wfw.set(H,Z=[]);Z.includes(G)||Z.push(G);H.setAttribute("__IS_OWNER",!0)},D4N=function(){var G=_.nNR(1);
G=_.Sg(G,_.faM);if(!(_.eIW(G)||G[_.evW]&&!G.__hasBeenSet))return G.value},d4x=function(G){return(G=_.Qco(G))?_.lVj(G):0},eO0=function(G){return G.shorts.isSmallScreenSqueezeback},nry=function(G){return G.shorts.isPlaybackStarted},VtU=function(G){var H=_.lf();
if(H.getFlag(202))H=H.getFlag(201);else{var Z;H=(G==null?void 0:(Z=G.config)==null?void 0:Z.settingOnByDefault)!==void 0?G.config.settingOnByDefault:!_.V("web_shorts_cinematics_disabled_by_default")}return H},$4U=function(G){var H=_.lf();
_.g8(0,201,G);_.g8(0,202,!0);H.save()},T3x=function(G){var H=_.nNR(2),Z=new Set;
_.oM(function(){return void Z.forEach(function(Q){return void Q()})});
return function(Q){var p=_.qf(H);try{var l=Xl_(caq(G),Q);Z.add(l);return function(){l();Z.delete(l)}}finally{_.qf(p)}}},fw2=function(G){var H=G.children;
var Z=G.root;_.yP(function(){var Q=T3x(Z)(H);_.oM(Q)});
return document.createTextNode("")},Xl_=function(G,H){var Z=vr0(G);
(G=D4N())&&k5O(Z,G);_.ct.setUp();H=_.I(_.oXb(H,!0));G=H.next().value;var Q=H.next().value;H=_.I(G);for(G=H.next();!G.done;G=H.next())Z.appendChild(G.value);_.ct.log(Z);_.ct.tearDown();return function(){Q();Z.remove()}},caq=function(G){if(typeof G==="string")return G=document.querySelector(G),_.t9L(G),G;
if(_.dO(G)&&G.nodeType===Node.ELEMENT_NODE)return G;if(!G.__value&&!G.__optional){var H=_.Vuo.USE_ELEMENT_NOT_ASSIGNED(G.__expectedTagName);G.__hasErrored=!0;throw H;}return G.value},vr0=function(G){var H=document.createElementNS(G.namespaceURI,G.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return G.appendChild(H)},WTx=function(G,H,Z,Q){G=H-G;
Z=Q-Z;return Math.sqrt(G*G+Z*Z)},zO_=function(G){var H=G>>8&255,Z=G&255;
return"#"+(G>>16&255).toString(16).padStart(2,"0")+H.toString(16).padStart(2,"0")+Z.toString(16).padStart(2,"0")},KTU=function(G,H){G&&_.tp().resolve(_.Dk).resolveCommand(G,{forceClickLogging:!0,
form:{element:H}})},MtM=function(){return _.tp().resolve(_.XI).dismissedIndices},jN2=function(G,H){var Z,Q,p,l,q,u,B,t,D;
return _.S(function(d){if(d.nextAddress==1){Z=_.tp().resolve(_.nC);l=(Q=Z)==null?void 0:(p=Q.reelWatchEndpointMap)==null?void 0:p.reelWatchSequence;u=(q=G.innertubeTransportService)!=null?q:_.tp().resolve(_.t0);if(!l)return d.jumpTo(2);B=l();return(t=B.JSC$14170_getRequest(H,{}))?d.yield(_.GP(u,t.innerTubeRequest,t.input,H.clickTrackingParams,t.config),4):d.jumpTo(2)}return d.nextAddress!=2?(D=d.yieldResult,d.return(D)):d.return(void 0)})},PGI=function(G,H,Z){var Q,p=(Q=_.X(H,_.uS))==null?void 0:
Q.videoId;
Q=!(!p||!G.find(function(q){return q.videoId&&q.videoId===p}));
var l=!!G.find(function(q){var u;return((u=_.X(q.command,_.uS))==null?void 0:u.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
G=!!G.find(function(q){return!!_.X(q.command,_.xl)&&!!_.X(H,_.xl)&&q.command===H});
return Z?Q||G:Q||l||G},ra7=function(G,H,Z){var Q=[].concat(_.OP(G)),p=0,l=Z?B3I(Z):[];
Z=Z?JaN(Z):[];H&&!PGI(G,H.command)&&Q.unshift(H);l.length&&!PGI(G,l[0].command,!0)&&Q.push.apply(Q,_.OP(l));H&&Z.length&&!PGI(G,Z[0].command)&&(Q.unshift.apply(Q,_.OP(Z.reverse())),p=Z.length);return{newContentList:Q,indexChange:p}},wld=function(G){return _.Lo({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:G}})},hOq=function(G){return _.Lo({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:G}})},CG4=function(G){return _.Lo({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:G}})};var X7=function(G,H){if(G instanceof X7)this.array_=G.array_;else{var Z;if(Z=_.Uj(G))a:{for(var Q=Z=0;Q<G.length;Q++){if(!_.Uj(G[Q])||Z>0&&G[Q].length!=Z){Z=!1;break a}for(var p=0;p<G[Q].length;p++)if(typeof G[Q][p]!=="number"){Z=!1;break a}Z==0&&(Z=G[Q].length)}Z=Z!=0}if(Z)this.array_=_.mv(G);else if(G instanceof _.M4)this.array_=iEy(G.height,G.width);else if(typeof G==="number"&&typeof H==="number"&&G>0&&H>0)this.array_=iEy(G,H);else throw Error("Mo");}this.size_=new _.M4(this.array_[0].length,
this.array_.length)},OE0=function(G,H,Z){for(var Q=0;Q<G.getSize().height;Q++)for(var p=0;p<G.getSize().width;p++)H.call(Z,G.array_[Q][p],Q,p,G)},aw0=function(G,H){var Z=new X7(G.getSize());
OE0(G,function(Q,p,l){Z.array_[p][l]=H.call(void 0,Q,p,l,G)});
return Z},iEy=function(G,H){for(var Z=[],Q=0;Q<G;Q++){Z[Q]=[];
for(var p=0;p<H;p++)Z[Q][p]=0}return Z};
X7.prototype.add=function(G){if(!_.CEd(this.size_,G.getSize()))throw Error("No");return aw0(this,function(H,Z,Q){return H+G.array_[Z][Q]})};
X7.prototype.equals=function(G,H){if(this.size_.width!=G.size_.width||this.size_.height!=G.size_.height)return!1;H=H||0;for(var Z=0;Z<this.size_.height;Z++)for(var Q=0;Q<this.size_.width;Q++)if(!_.hLO(this.array_[Z][Q],G.array_[Z][Q],H))return!1;return!0};
X7.prototype.getSize=function(){return this.size_};
var co=function(G,H,Z){return H>=0&&H<G.size_.height&&Z>=0&&Z<G.size_.width?G.array_[H][Z]:null};
X7.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ya2=function(G,H,Z,Q){if(!(H>=0&&H<G.size_.height&&Z>=0&&Z<G.size_.width))throw Error("Oo`"+H+"`"+Z+"`"+G.size_.height+"`"+G.size_.width);G.array_[H][Z]=Q};
X7.prototype.multiply=function(G){if(G instanceof X7){if(this.size_.width!=G.getSize().height)throw Error("Po");return or0(this,G)}if(typeof G==="number")return m4O(this,G);throw Error("Qo");};
var or0=function(G,H){var Z=new X7(G.size_.height,H.getSize().width);OE0(Z,function(Q,p,l){for(var q=Q=0;q<this.size_.width;q++)Q+=co(this,p,q)*co(H,q,l);ya2(Z,p,l,Q)},G);
return Z},m4O=function(G,H){return aw0(G,function(Z){return Z*H})};var U4I=new _.bn("inlineSurveyRenderer");var ROM=new _.bn("interstitialViewModel");var N3y=new _.bn("reelNavigateCommand");var AaY=new _.bn("reelNonVideoContentDismissalCommand");var x42=new _.bn("showReelsCommentsOverlayCommand");var LT4=new _.bn("videoInteractionPopUpRenderer");var ErN=new _.bn("pollChoiceData");var YAM;var FTq;var bEM;var Td=function(){var G=_.C.apply(this,arguments)||this;G.ctaVisualElement=null;G.currentCsn=null;return G};
_.T(Td,_.C);_.g=Td.prototype;_.g.onDataChanged=function(){this.maybeLogShows()};
_.g.computeButtonShape=function(){var G=this;if(this.data)return{buttonText:_.yn(this.data.text),state:"active",onTap:function(){G.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.g.maybeCreateCtaVe=function(){var G;if((G=this.data)!=null&&G.badgeInteractionLogging){var H;if(G=(H=this.data.badgeInteractionLogging)==null?void 0:H.trackingParams)this.ctaVisualElement=_.BT(G)}};
_.g.maybeLogClicks=function(){this.currentCsn=_.$k(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Co(this.currentCsn,this.ctaVisualElement)};
_.g.maybeLogShows=function(){this.currentCsn=_.$k(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.w8(this.currentCsn,[this.ctaVisualElement])};
_.g.onTap=function(){var G;if((G=this.data)!=null&&G.onClickCommand){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand);this.maybeLogClicks()}};
Td.prototype.onDataChanged=Td.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Td.prototype,"ytComponentBehavior",void 0);_.N([_.h({}),_.A("design:type",Object)],Td.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Td.prototype,"onDataChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],Td);
_.m(Td,"ytd-shopping-overlay-badge-renderer",function(){if(bEM!==void 0)return bEM;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return bEM=G},{mode:1});_.RX(_.Yvm,"reel-sound-metadata-view-model",{props:{data:_.oX,overlayDensity:_.oX}});_.RX(_.A3h,"player-disclosure-view-model",{props:{data:_.b3,extractOverlay:_.b3}});_.RX(_.RZa,"pivot-button-view-model",{props:{data:_.oX,className:_.oX}});_.RX(_.N_a,"reel-action-bar-view-model",{props:{data:_.b3,buttonShapeOverrideables:_.b3}});_.RX(_.FIt,"yt-reel-metapanel-view-model",{props:{data:_.b3,overlayDensity:_.b3,extractOverlay:_.b3}});var G$2=_.y(function(G){var H=G.children;var Z=G.region;G=_.I(_.Ty(void 0,void 0,"flxBBc"));var Q=G.next().value,p=G.next().value;G=_.I(_.Ty("0px",void 0,"IAR7k"));var l=G.next().value,q=G.next().value;G=_.I(_.Ty("0px",void 0,"QV4iWb"));var u=G.next().value,B=G.next().value;G=_.I(_.Ty(0,void 0,"Q2oK6b"));var t=G.next().value,D=G.next().value;G=_.I(_.Ty(0,void 0,"hYKowe"));var d=G.next().value,e=G.next().value,n=function(){var x=Q();if(x){var U;if(((U=_.HV())==null?void 0:U.getPlayerState())!==-1){x.style.display=
"inherit";var R;(R=_.HV())==null||R.removeEventListener("onStateChange",n)}else x.style.display="none";W()}},c=function(){var x;
return(x=_.UO())==null?void 0:x.querySelector("video")},W=function(){var x=c();
if(x){D(x.getBoundingClientRect().width);e(x.getBoundingClientRect().height);var U;q((x==null?void 0:(U=x.style)==null?void 0:U.left)||"0px");var R;B((x==null?void 0:(R=x.style)==null?void 0:R.top)||"0px")}};
_.yN(function(){var x=Q();if(x){var U,R,L;if(((U=_.HV())==null?void 0:U.getPlayerState())===-1&&Math.round(((L=(R=_.HV())==null?void 0:R.getVideoAspectRatio())!=null?L:0)*100)!==Math.round(t()/d()*100)){x.style.display="none";var H3,qX;e(t()/((qX=(H3=_.HV())==null?void 0:H3.getVideoAspectRatio())!=null?qX:1))}}},"N29KDe");
var M=function(){W()},r;
_.yP(function(){W();var x;if(!(Z==null?0:(x=Z())==null?0:x.transformationMatrix))throw Error("Uo");var U;(U=_.HV())==null||U.addEventListener("onStateChange",n);if(window.ResizeObserver){if(x=c())r=new ResizeObserver(M),r.observe(x)}else window.addEventListener("resize",W);_.oM(function(){var R;(R=_.HV())==null||R.removeEventListener("onStateChange",n);r?r.disconnect():window.removeEventListener("resize",W)})});
var w=function(){var x,U,R=(U=Z==null?void 0:(x=Z())==null?void 0:x.transformationMatrix)!=null?U:[];x=t();U=d();for(var L=[],H3=0,qX=-1;H3<R.length;H3++)H3%3===0&&(qX++,L[qX]=[]),L[qX].push(R[H3]);R=new X7(L);L=new X7([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);L=R.multiply(L);R=new X7([[0,0],[0,0],[0,0],[0,0]]);for(H3=0;H3<L.getSize().width;H3++){qX=co(L,0,H3);var B3=co(L,1,H3);if(qX===null||B3===null)throw Error("To`"+(H3+1).toString());ya2(R,H3,0,qX*x);ya2(R,H3,1,B3*U)}x=co(R,0,0);H3=co(R,1,0);U=co(R,0,
1);qX=co(R,1,1);if(x===null||H3===null||U===null||qX===null)throw Error("Ro");L=WTx(x,H3,U,qX);B3=co(R,3,0);R=co(R,3,1);if(B3===null||R===null)throw Error("So");R=WTx(x,B3,U,R);qX=(Number((qX*-1).toFixed(2))-Number((U*-1).toFixed(2)))/(Number(H3.toFixed(2))-Number(x.toFixed(2)));B3=Math.atan(qX)*180/Math.PI;H3=qX===Number.POSITIVE_INFINITY?-90:qX===Number.NEGATIVE_INFINITY?90:Object.is(qX,-0)?180:qX===0?0:qX>0?B3*-1:x<H3?B3*-1:Math.abs(B3)+180;return"left:calc("+x+"px + "+l()+"); top:calc("+(U+"px + "+
u()+"); width:")+(L+"px; height:")+(R+"px; transform:rotate(")+(H3+"deg);\n        --sticker-width:"+L+";")};
return _.J(fw2,{root:"#sticker-layer"},function(){return _.J("yt-overlay-sticker",{el:_.aX(p),style:w,class:"ytOverlayStickerHost"},H)})},"en");var Hu4=_.y(function(G){function H(){var n,c,W,M,r=(c=_.X((n=B())==null?void 0:n.command,_.Xs7))==null?void 0:(W=c.item)==null?void 0:(M=W.notificationTextRenderer)==null?void 0:M.successResponseText;if(r)n=_.Rq(r),_.AZ(Q.value,"yt-open-popup-action",[n,Q.value]);else if(t())KTU(t(),Q.value);else{var w;KTU((w=B())==null?void 0:w.command,Q.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var Z=G.data;var Q=_.IA("svg"),p=_.I(_.Ty(!1,void 0,"e9onLe"));G=p.next().value;var l=p.next().value,q=_.I(_.Ty(!1,void 0,"ptnIQd"));p=q.next().value;var u=q.next().value,B=function(){var n;return _.X((n=Z())==null?void 0:n.popUp,LT4)},t=function(){var n;
return(n=Z())==null?void 0:n.command},D=function(){return _.X(t(),_.Jxo)!==void 0};
q=_.Hh(function(){H();return!1});
var d={},e={};return _.J("svg",{"on:mouseover":_.Hh(function(){D()&&l(!0);u(!0);return!1}),
"on:mouseout":_.Hh(function(){l(!1);u(!1);return!1}),
"on:keydown":_.Hh(function(n){n.key==="Enter"&&H();return!1}),
"on:focus":_.Hh(function(){D()&&l(!0);return!1}),
"on:blur":_.Hh(function(){D()&&l(!1);return!1}),
el:Q,tabindex:0,"aria-label":function(){var n;return(n=Z())==null?void 0:n.a11yString},
id:"player-overlay-video-interaction-svg",class:_.bb("ytPlayerOverlayInteractionInteractionsSvg",(d.ytPlayerOverlayInteractionInteractionsSvgHover=G,d),(e.ytPlayerOverlayInteractionInteractionsSvgHideOutline=p,e)),role:"button","on:click":q})},"hn");_.RX(_.y(function(G){var H=G.data;_.yP(function(){var Z;if((Z=H())==null?0:Z.trackingParams){var Q;_.gr().graftServerVe((Q=H().trackingParams)!=null?Q:"")}});
return _.J("yt-player-overlay-interaction",null,_.J(G$2,{region:function(){var Z,Q;return(Z=H())==null?void 0:(Q=Z.regions)==null?void 0:Q[0]}},_.J(Hu4,Object.assign({},G))))},"gn"),"yt-player-overlay-interaction",{props:{data:_.b3}});var sfY=_.y(function(G){var H=G.data;var Z=G.index;var Q=G.selectedChoice;var p=function(){var l;return _.X((l=H())==null?void 0:l.renderer,ErN)};
G={};return _.J("yt-overlay-poll-sticker-choice",{class:_.bb("ytOverlayPollStickerChoiceHost"),style:_.pI({"--displayed-percentage":function(){var l,q,u,B;return""+Math.ceil(Number((Q==null?void 0:Q())===Z()?(l=p())==null?void 0:(q=l.selected)==null?void 0:q.progressBarWidth:(u=p())==null?void 0:(B=u.unselected)==null?void 0:B.progressBarWidth)*100)}})},_.J("div",{class:_.bb("ytOverlayPollStickerChoicePollChoice",(G.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(Q==null?void 0:Q())!==
void 0},G.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(Q==null?void 0:Q())===Z()},G))},_.J("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var l;
return((l=p())==null?void 0:l.text)||""}),_.J("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(Q==null?void 0:Q())==="undefined")var l="";
else{var q,u,B,t;l=(Q==null?void 0:Q())===Z()?(q=p())==null?void 0:(u=q.selected)==null?void 0:u.votePercentage:(B=p())==null?void 0:(t=B.unselected)==null?void 0:t.votePercentage}return l})))},"jn");var Zuq=_.y(function(G){var H=G.data;var Z=_.SQ(function(p){var l,q=((l=H())==null?void 0:l.postPollStateEntityKey)||"";p=_.Hv(p.entities,"postPollStateEntity",q);var u;return((u=H())==null?0:u.viewerIsOwner)?Object.assign({},p,{selectedOptionId:-1,voted:!0}):p}),Q=_.tp().resolve(_.Dk);
return _.J("yt-overlay-poll-sticker",null,_.J(G$2,{region:function(){var p,l;return(p=H())==null?void 0:(l=p.region)==null?void 0:l.interactionRegion}},_.J("div",{class:_.bb("ytOverlayPollStickerHost"),
style:_.pI({"--original-height":function(){var p;return""+(((p=H())==null?void 0:p.mainBodyHeight)||1)},
"--original-width":function(){var p;return""+(((p=H())==null?void 0:p.mainBodyWidth)||1)},
"--scaled-width":function(){var p;return""+(((p=H())==null?void 0:p.mainBodyWidth)||1)},
"--primary-surface":function(){var p,l;return zO_(((p=H())==null?void 0:(l=p.theme)==null?void 0:l.primarySurface)||0)},
"--raised-surface":function(){var p,l;return zO_(((p=H())==null?void 0:(l=p.theme)==null?void 0:l.raisedSurface)||0)},
"--secondary-surface":function(){var p,l;return zO_(((p=H())==null?void 0:(l=p.theme)==null?void 0:l.secondarySurface)||0)},
"--primary-text":function(){var p,l;return zO_(((p=H())==null?void 0:(l=p.theme)==null?void 0:l.primaryText)||0)},
"--secondary-text":function(){var p,l;return zO_(((p=H())==null?void 0:(l=p.theme)==null?void 0:l.secondaryText)||0)}})},_.J("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return H().questionText}," "),_.J(_.Cl,{each:function(){return H().pollChoiceConfigs||[]}},function(p,l){return _.J("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Hh(function(){var q=l(),u;if((u=H())==null||!u.viewerIsOwner){var B,t;u=(B=H())==null?void 0:(t=B.pollChoiceConfigs)==null?void 0:t[q];if(t=(u==null?0:u.renderer)?_.X(u.renderer,ErN):void 0){var D;B=((D=Z())==null?void 0:D.selectedOptionId)!==q;var d;if(D=(d=B?t.selectedPollCommand:t.deselectedPollCommand)==null?void 0:d.innertubeCommand){Q.resolveCommand(D);var e,n;_.OI().dispatch(_.uP("postPollStateEntity",((e=Z())==null?void 0:e.key)||"",{key:((n=Z())==null?void 0:n.key)||"",selectedOptionId:B?
q:-1,voted:B}))}}}})},_.J(sfY,{data:p,
index:l,selectedChoice:function(){var q,u;return((q=Z())==null?0:q.voted)?(u=Z())==null?void 0:u.selectedOptionId:void 0}}))}),_.J("div",{class:"ytOverlayPollStickerVoteCount"},function(){var p,l;
return((p=Z())==null?0:p.voted)&&((l=Z())==null?void 0:l.selectedOptionId)!==-1?H().postVoteCountText:H().preVoteCountText}))))},"kn");_.RX(_.y(function(G){var H=G.data;return _.J("yt-stickers-layer",null,_.J(_.Cl,{each:function(){var Z;return((Z=H())==null?void 0:Z.stickers)||[]}},function(Z){return _.J(_.k,{cond:function(){return _.V("enable_shorts_poll_stickers_web")},
then:function(){return _.J(_.k,{cond:function(){return Z==null?void 0:Z.pollSticker},
then:function(Q){return _.J(Zuq,{data:Q})}})}})}))},"ln"),"yt-stickers-layer",{props:{data:_.b3}});var fx=function(){var G=_.C.apply(this,arguments)||this;G.showScrubber=!1;G.isWatchWhileMode=!1;G.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");G.enablePollStickers=_.V("enable_shorts_poll_stickers_web");G.enableShortsModernControls=_.V("web_shorts_modern_controls");G.anchoredPanelActive=!1;G.enableLivingroomLayout=_.V("reels_enable_livingroom_layout");G.enablePlayerMetadataContainer=_.V("reels_web_enable_metadata_container");G.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");
G.useAspectRatio=_.V("web_use_aspect_ratio");G.isSqueezebackActive=!1;G.smallScreenSqueezeback=!1;G.isPlayerStarted=!1;G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;G.isOverlay=!1;G.isImmersive=!1;G.isImmersiveHorizontal=!1;G.isFullscreen=!1;G.onWindowResized=function(){var H;G.set("isImmersive",((H=window.getComputedStyle(G.hostElement))==null?void 0:H.getPropertyValue("--immersive-mode-on"))==="1");G.set("isImmersiveHorizontal",G.isImmersive&&G.enableLivingroomLayout&&!G.isWatchWhileMode)};
return G};
_.T(fx,_.C);_.g=fx.prototype;_.g.updateIsOverlay=function(G){this.isOverlay=G.detail.value};
_.g.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.g.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.g.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.g.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.g.onOverlayDensityChange=function(){var G=_.F9(this.hostElement).querySelector("ytd-info-panel-container-renderer");G&&(G.set("extractOverlay",this.extractOverlay),G.set("roundedContainer",this.extractOverlay))};
_.g.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.g.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.g.ready=function(){(_.V("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.V("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.n$("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.n$("reels_action_justified_content")||"flex-start")};
_.g.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}}};
_.g.setFakeLoadingButtons=function(){_.V("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Zg("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Zg("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Zg("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Zg("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Zg("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()};
_.g.setEmptyOverlayMetadata=function(){_.V("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.u4.Object.defineProperties(fx.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.infoPanel)}}});
fx.prototype.onOverlayDensityChange=fx.prototype.onOverlayDensityChange;fx.prototype.onIsActiveChanged=fx.prototype.onIsActiveChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],fx.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],fx.prototype,"ytdReduxBehavior",void 0);
_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],fx.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fx.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],fx.prototype,"isActive",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],fx.prototype,"hidden",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],fx.prototype,"useShortsIcon",void 0);
_.N([_.h({value:"left"}),_.A("design:type",String)],fx.prototype,"buttonTooltipPosition",void 0);_.N([_.h({value:_.V("reels_enable_livingroom_layout")?"top":"left"}),_.A("design:type",String)],fx.prototype,"likeButtonTooltipPosition",void 0);_.N([_.h({value:"none"}),_.A("design:type",String)],fx.prototype,"textTransform",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"showScrubber",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"isWatchWhileMode",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.infoPanel"),_.A("design:type",Object),_.A("design:paramtypes",[])],fx.prototype,"hasInfoPanel",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"enableAnchoredPanel",void 0);_.N([_.h(),_.A("design:type",Object)],fx.prototype,"enablePollStickers",void 0);
_.N([_.h(),_.A("design:type",Object)],fx.prototype,"enableShortsModernControls",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"anchoredPanelActive",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"enableLivingroomLayout",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],fx.prototype,"enablePlayerMetadataContainer",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"enableSqueezebackPanels",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"useAspectRatio",void 0);_.N([_.h({selector:_.Es3,reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"isSqueezebackActive",void 0);_.N([_.h({selector:eO0,reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"smallScreenSqueezeback",void 0);
_.N([_.h({selector:nry}),_.A("design:type",Object)],fx.prototype,"isPlayerStarted",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"overlayDensity",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"extractOverlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"extractActionBar",void 0);_.N([_.h(),_.A("design:type",Object)],fx.prototype,"isOverlay",void 0);
_.N([_.h(),_.A("design:type",Object)],fx.prototype,"isImmersive",void 0);_.N([_.h(),_.A("design:type",Object)],fx.prototype,"isImmersiveHorizontal",void 0);_.N([_.h({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.A("design:type",Boolean)],fx.prototype,"isShortsImmersive",void 0);_.N([_.h({computed:"computeButtonOverride(extractActionBar)"}),_.A("design:type",Object)],fx.prototype,"buttonOverride",void 0);
_.N([_.h({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.A("design:type",Object)],fx.prototype,"actionBarButtonOverride",void 0);_.N([_.h({selector:_.RS,reflectToAttribute:!0}),_.A("design:type",Object)],fx.prototype,"isFullscreen",void 0);_.N([_.gx("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fx.prototype,"onIsActiveChanged",null);
_.N([_.gx("extractOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fx.prototype,"onOverlayDensityChange",null);_.N([_.O({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],fx);
_.m(fx,"ytd-reel-player-overlay-renderer",function(){if(FTq!==void 0)return FTq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return FTq=G},{mode:1});var QfM;var vo=function(){var G=_.C.apply(this,arguments)||this;G.videoDuration=0;G.playedTime=0;G.isActive=!1;G.JSC$22661_playerEvents=new Map;return G};
_.T(vo,_.C);_.g=vo.prototype;_.g.created=function(){this.JSC$22661_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22661_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.g.attached=function(){this.getPlayerAndInitializeListeners()};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22661_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.pH(this,this.onPageChanged))};
_.g.getPlayerAndInitializeListeners=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return H=_.UO(),H?Z.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.pH(G,G.onPageChanged)),Z.jumpTo(0));G.player=Z.yieldResult;G.initializePlayerListeners();_.K0(Z)})};
_.g.onPageChanged=function(G){var H=this;return _.S(function(Z){if(Z.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?Z.return():Z.yield(_.R0().getPlayerPromise(),2);H.player=Z.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.pH(H,H.onPageChanged));_.K0(Z)})};
_.g.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22661_playerEvents)};
_.g.onVideoDataChange=function(G){var H=this;return _.S(function(Z){if(!H.player||G.type!=="newdata")return Z.return();H.videoDuration=_.V("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(G.playertype).seekableEnd:H.player.getDuration(G.playertype);H.playedTime=0;_.K0(Z)})};
_.g.onVideoProgress=function(G){var H=this,Z,Q;return _.S(function(p){if(!H.player)return p.return();Z=H.player.getPresentingPlayerType();Q=H.player.getPlayerState();H.videoDuration=_.V("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(Z).seekableEnd:H.player.getDuration(Z);H.playedTime=Q===0?H.videoDuration:G;_.K0(p)})};
_.g.getPercentPlayed=function(G,H){return G?_.cM(H/G,0,1):0};
_.u4.Object.defineProperties(vo.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 G="";return G=this.videoDuration&&this.playedTime?G+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):G+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],vo.prototype,"componentBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],vo.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vo.prototype,"player",void 0);_.N([_.h(),_.A("design:type",Object)],vo.prototype,"videoDuration",void 0);_.N([_.h(),_.A("design:type",Object)],vo.prototype,"playedTime",void 0);_.N([_.h(),_.A("design:type",Object)],vo.prototype,"isActive",void 0);
_.N([_.z("videoDuration","playedTime"),_.A("design:type",Number),_.A("design:paramtypes",[])],vo.prototype,"percentPlayed",null);_.N([_.z("videoDuration","playedTime"),_.A("design:type",Object),_.A("design:paramtypes",[])],vo.prototype,"percentPlayedStyle",null);_.N([_.z("videoDuration","isActive"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],vo.prototype,"hideProgressBar",null);
_.m(vo,"ytd-progress-bar-line",function(){if(QfM===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);QfM=G}G=QfM;return G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var p7Y;_.RX(_.$KA,"ytm-closed-captioning-button",{props:{captionIconType:_.b3,onClick:_.oX,ariaLabel:_.b3,ariaPressed:_.b3,isOverlay:_.oX,isModern:_.oX}});_.RX(_.Nti,"desktop-shorts-volume-controls",{props:{orientation:_.b3}});var Wo=function(){var G=_.C.apply(this,arguments)||this;G.playerState=null;G.isMuted=!1;G.shortsModernControlsEnabled=_.V("web_shorts_modern_controls");G.volumeControlsOrientationState="horizontal_right";G.isOverlay=!0;G.isAdsOverlay=!1;G.captionIconType=-1;G.ariaLabel="";G.overlayDensity=0;G.JSC$22664_playerEvents=new Map;G.onClosedCaptionsButtonClick=function(){G.player&&_.Tg(G.player)&&(G.player.toggleSubtitles(),G.updateCaptionIconType())};
return G};
_.T(Wo,_.C);_.g=Wo.prototype;_.g.created=function(){this.JSC$22664_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22664_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22664_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.g.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.bl(28662);this.playPauseButtonClientVE=_.bl(36842);this.fullscreenButtonToggleOffClientVE=_.bl(222256);this.fullscreenButtonToggleOnClientVE=_.bl(222257);var G=_.$k(),H=_.Va();G&&H&&(_.V("combine_ve_grafts")?(_.fQ(_.gr(),this.muteButtonClientVE,H),_.fQ(_.gr(),this.playPauseButtonClientVE,H)):_.PA(G,H,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22664_playerEvents),this.player=null)};
_.g.updateCaptionIconType=function(){var G=-1,H=void 0,Z=_.Zg("CLOSED_CAPTIONS_DISABLED");this.player&&_.Tg(this.player)&&(_.qSq(this.player)?(H=!0,Z=_.Zg("CLOSED_CAPTIONS_ON"),G=1):(H=!1,Z=_.Zg("CLOSED_CAPTIONS_OFF"),G=0));this.captionIconType=G;this.ariaPressedState=H;this.ariaLabel=Z};
_.g.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.g.getPlayerAndInitializeListeners=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return H=_.UO(),H?Z.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.pH(G,G.onPageChanged)),Z.jumpTo(0));G.player=Z.yieldResult;G.initializePlayerListeners();_.K0(Z)})};
_.g.onPageChanged=function(G){var H=this;return _.S(function(Z){if(Z.nextAddress==1)return G.detail.newPageType!=="ytd-shorts"?Z.return():Z.yield(_.R0().getPlayerPromise(),2);H.player=Z.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.pH(H,H.onPageChanged));_.K0(Z)})};
_.g.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22664_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.g.onPlayerStateChange=function(G){this.playerState=G};
_.g.onPlayerVolumeChange=function(G){this.isMuted=G.muted};
_.g.onPlayPauseButtonClick=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.R0().getPlayerPromise(),2);H=Q.yieldResult;(Z=_.$k())&&G.playPauseButtonClientVE&&_.Co(Z,G.playPauseButtonClientVE);H.getPlayerState()!==1?H.playVideo():H.pauseVideo();_.K0(Q)})};
_.g.computePlayPauseIcon=function(G){return G===2||G===-1||G===5?_.V("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.V("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.V("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.g.computeFullscreenLabel=function(G){return G?_.Zg("FULLSCREEN_EXIT_LABEL"):_.Zg("FULLSCREEN_ENTER_LABEL")};
_.g.computePlayPauseLabel=function(G){return G===1||G===3?_.Zg("PLAYER_LABEL_PAUSE"):_.Zg("PLAYER_LABEL_PLAY")};
_.g.onMuteButtonClick=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.R0().getPlayerPromise(),2);H=Q.yieldResult;(Z=_.$k())&&G.muteButtonClientVE&&_.Co(Z,G.muteButtonClientVE);H.isMuted()?H.unMute(!0):H.mute(!0);_.K0(Q)})};
_.g.computeMuteIcon=function(G){return G?"miniplayer:volume-off":"miniplayer:volume-up"};
_.g.computeMuteLabel=function(G){return G?_.Zg("PLAYER_LABEL_UNMUTE"):_.Zg("PLAYER_LABEL_MUTE")};
_.g.onFullscreenButtonClick=function(){var G=_.$k();G&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Co(G,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Co(G,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.d6k()};
_.u4.Object.defineProperties(Wo.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var G=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(){G.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.V("web_shorts_modern_controls")?"player_full_exit_alt":_.V("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.V("web_shorts_modern_controls")?"player_full_enter_alt":_.V("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Wo.prototype,"componentBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],Wo.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Wo.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"player",void 0);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"playerState",void 0);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"isMuted",void 0);
_.N([_.h({computed:"computePlayPauseIcon(playerState)"}),_.A("design:type",String)],Wo.prototype,"playPauseIcon",void 0);_.N([_.h({computed:"computeMuteIcon(isMuted)"}),_.A("design:type",String)],Wo.prototype,"muteIcon",void 0);_.N([_.h({selector:_.RS}),_.A("design:type",Boolean)],Wo.prototype,"isFullscreen",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wo.prototype,"shortsModernControlsEnabled",void 0);
_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"volumeControlsOrientationState",void 0);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"isOverlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wo.prototype,"isAdsOverlay",void 0);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"captionIconType",void 0);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"ariaLabel",void 0);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"ariaPressedState",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Wo.prototype,"overlayDensity",void 0);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"data",void 0);_.N([_.h({computed:"computeActionBarButtonOverride()"}),_.A("design:type",Object)],Wo.prototype,"actionBarButtonOverride",void 0);_.N([_.z("playerState"),_.A("design:type",Object),_.A("design:paramtypes",[])],Wo.prototype,"playPauseButtonData",null);
_.N([_.z("isFullscreen"),_.A("design:type",Object),_.A("design:paramtypes",[])],Wo.prototype,"fullscreenButtonData",null);_.N([_.h(),_.A("design:type",Object)],Wo.prototype,"onClosedCaptionsButtonClick",void 0);_.N([_.z("isFullscreen"),_.A("design:type",String),_.A("design:paramtypes",[])],Wo.prototype,"fullscreenIcon",null);
_.m(Wo,"ytd-shorts-player-controls",function(){if(p7Y===void 0){var G=document.createElement("template");_.f(G,'\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]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" 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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);p7Y=G}G=p7Y;return G},{mode:1});var lSN;_.RX(_.yNc,"yt-interstitial-view-model",{props:{data:_.b3}});var g5x=_.y(function(G){var H=G.data;return _.J("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.J("h1",{class:"reelWatchBreakViewModelHostTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J("h2",{class:"reelWatchBreakViewModelHostBody"},_.J(_.Fe,{text:function(){return H().body},
isOverlay:!0})),_.J(_.SP,{data:function(){return H().buttons}},{buttonViewModel:function(Z,Q){return _.J("div",{class:function(){return Q()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.J(_.kg,{data:Z.data}))}}))},"mn");
g5x.idomCompat=!0;_.RX(g5x,"reel-watch-break-view-model",{props:{data:_.b3}});var zd=function(){return _.C.apply(this,arguments)||this};
_.T(zd,_.C);zd.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}}};
_.u4.Object.defineProperties(zd.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.X((G=this.data)==null?void 0:G.renderer,U4I)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var G;return!!_.X((G=this.data)==null?void 0:G.renderer,ROM)}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],zd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],zd.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],zd.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zd.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data.renderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zd.prototype,"isSurvey",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.renderer"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],zd.prototype,"isInterstitialViewModel",null);_.N([_.O({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],zd);
_.m(zd,"ytd-reel-non-video-content-renderer",function(){if(lSN!==void 0)return lSN;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return lSN=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var ISY;_.RX(_.RIi,"desktop-shorts-player-controls",{});var Kx=function(){var G=_.C.apply(this,arguments)||this;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.showPlayerControls=!1;G.showScrubber=!1;G.autoHideJobId=0;G.overlayType=_.n$("web_shorts_expanded_overlay_type");G.panelData=void 0;G.isWatchWhileMode=!1;G.hasError=!1;G.panelShowDelayMs=1;G.scrubberComponent={};G.isFullscreen=!1;G.shouldHideOverlay=!1;G.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");G.enablePersistentAnchoredPanel=_.V("desktop_shorts_v2_persistent_anchored_panel");G.hideWatchWhilePanel=
_.V("web_shorts_hide_watch_while_panel");G.useAspectRatio=_.V("web_use_aspect_ratio");G.enableShortsModernControls=_.V("web_shorts_modern_controls");G.isPersistentPanelActive=!1;G.anchoredPanelActive=!1;G.isShortsPipActive=!1;G.smallScreenSqueezeback=!1;G.enableFlexibleOverlay=_.V("web_enable_flexible_overlay");G.overlayDensity=0;G.extractOverlay=!1;G.extractActionBar=!1;G.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
G.onWindowResized=function(){_.rx(G,"calculateOverlayDensity",function(){G.calculateOverlayDensity()},100)};
return G};
_.T(Kx,_.C);_.g=Kx.prototype;_.g.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.g.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.g.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var G=_.tp().resolve(_.iU);this.isWatchWhileMode&&_.Ui.addJob(function(){G.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.g.handleShowReelsCommentsOverlayCommand=function(G){G=_.X(G,x42);this.isActive&&(G==null?0:G.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))};
_.g.updateEngagementPanelVisibility=function(G,H){G&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:H?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:G}})};
_.g.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.g.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.tp().resolve(_.XI).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.g.handleWatchWhilePanelScrimClick=function(){var G=_.tp().resolve(_.iU);this.activeWatchWhilePanel&&(G.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.g.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.g.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}}};
_.g.handlePlayerClick=function(G){var H=this,Z,Q;if((Q=(Z=window).matchMedia)!=null&&Q.call(Z,"(any-pointer: coarse)").matches||!G)this.showPlayerControls=!0,_.Ui.cancelJob(this.autoHideJobId),this.autoHideJobId=_.wM(_.Ui,function(){H.showPlayerControls=!1},4E3)};
_.g.isFirstReel=function(){return this.index===0};
_.g.handleMouseenter=function(){_.Ui.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.g.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.g.handleScrubberEnter=function(){this.showScrubber=!0};
_.g.handleScrubberLeave=function(){this.showScrubber=!1};
_.g.maybeLogNonDefaultAspectRatio=function(){var G;(G=this.data)!=null&&G.thumbnail&&this.isActive&&.5625!==d4x(this.data.thumbnail)&&_.Kzu("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.g.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var G=document.querySelector("#shorts-container");if(G){var H=!1,Z,Q=this.playerContainer.offsetWidth,p=this.playerContainer.offsetHeight;G=G.offsetWidth/2-Q/2;G>=368?(G=1,H=Z=!0):G>=72?(G=0,Z=!0):(G=2,Z=!1);Q>=600&&p>=840?G=1:window.innerWidth<=599&&(G=2,Z=H=!1);this.isPersistentPanelActive&&(G=0,H=!1);this.extractActionBar=Z;_.V("web_enable_flexible_overlay")&&(this.overlayDensity=G,this.extractOverlay=
H);var l;(l=this.onOverlayDensityChanged)==null||l.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.g.onOverlayDensityChange=function(){var G;(G=this.onOverlayDensityChanged)==null||G.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(G=_.F9(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))G.set("overlayDensity",this.overlayDensity),G.set("extractOverlay",this.extractOverlay),G.set("extractActionBar",this.extractActionBar);if(G=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))G.overlayDensity=this.overlayDensity,G.extractOverlay=
this.extractOverlay,G.extractActionBar=this.extractActionBar};
_.g.isVideoContent=function(G){_.tp().resolve(_.XI);return!!_.X(G,_.uS)};
_.g.isNonVideoContent=function(G){_.tp().resolve(_.XI);return!!_.X(G,_.xl)};
_.g.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.u4.Object.defineProperties(Kx.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var G,H;return _.V("web_enable_format_first")||((G=this.data)==null?void 0:G.adsOverlay)&&_.V("web_enable_format_first_ads_only")||((H=this.data)==null?void 0:H.reelPlayerOverlayRenderer)&&_.V("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.V("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var G;return!this.isActive||!this.isPlayerStarted||(G=this.data)!=null&&G.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.data)==null?0:G.command)&&this.isVideoContent(this.data.command)){var H,Z;if(((H=this.data)==null?0:H.adsOverlay)&&Object.keys((Z=this.data)==null?void 0:Z.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var Q,p;if(((Q=this.data)==null?0:Q.reelPlayerOverlayRenderer)&&Object.keys((p=this.data)==null?void 0:p.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Kx.prototype.onOverlayDensityChange=Kx.prototype.onOverlayDensityChange;Kx.prototype.calculateOverlayDensity=Kx.prototype.calculateOverlayDensity;Kx.prototype.maybeLogNonDefaultAspectRatio=Kx.prototype.maybeLogNonDefaultAspectRatio;Kx.prototype.onEngagementPanelsChanged=Kx.prototype.onEngagementPanelsChanged;Kx.prototype.onScrubberDataChange=Kx.prototype.onScrubberDataChange;Kx.prototype.updateShouldHideOverlay=Kx.prototype.updateShouldHideOverlay;
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Kx.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Kx.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Kx.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],Kx.prototype,"index",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kx.prototype,"isActive",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Kx.prototype,"isHiddenInDom",void 0);_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"isPlayerPaused",void 0);_.N([_.h({selector:nry}),_.A("design:type",Object)],Kx.prototype,"isPlayerStarted",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"showPlayerControls",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"showScrubber",void 0);_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"autoHideJobId",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"overlayType",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Kx.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Kx.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"watchWhileEngagementPanels",void 0);_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"panelData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"isWatchWhileMode",void 0);_.N([_.h(),_.A("design:type",String)],Kx.prototype,"activeWatchWhilePanel",void 0);_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"hasError",void 0);_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"panelShowDelayMs",void 0);
_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"scrubberComponent",void 0);_.N([_.h({selector:_.RS,reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"isFullscreen",void 0);_.N([_.h(),_.A("design:type",Object)],Kx.prototype,"shouldHideOverlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"enableAnchoredPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"enablePersistentAnchoredPanel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"hideWatchWhilePanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"useAspectRatio",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"enableShortsModernControls",void 0);_.N([_.h({selector:_.Es3,reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"isPersistentPanelActive",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"anchoredPanelActive",void 0);_.N([_.h({selector:_.NB,reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"isShortsPipActive",void 0);_.N([_.h({selector:eO0,reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"smallScreenSqueezeback",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.adsOverlay"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kx.prototype,"isAdsOverlay",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kx.prototype,"enableFormatFirst",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"enableFlexibleOverlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"overlayDensity",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"extractOverlay",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Kx.prototype,"extractActionBar",void 0);_.N([_.h(),_.A("design:type",Function)],Kx.prototype,"onOverlayDensityChanged",void 0);_.N([_.h(),_.z("isActive","hasError","isPlayerStarted"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kx.prototype,"shouldRenderPlayerElements",null);_.N([_.h(),_.z("isActive","isWatchWhileMode"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kx.prototype,"watchWhileOrPersistentActive",null);
_.N([_.gx("isActive","hasError","showingExpandedOverlay"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kx.prototype,"updateShouldHideOverlay",null);_.N([_.h({reflectToAttribute:!0}),_.z("isActive","isPlayerStarted","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kx.prototype,"shouldRenderScrubber",null);
_.N([_.gx("shouldRenderScrubber"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kx.prototype,"onScrubberDataChange",null);_.N([_.z("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.A("design:type",Object),_.A("design:paramtypes",[])],Kx.prototype,"overlayComponent",null);_.N([_.gx("watchWhileEngagementPanels"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kx.prototype,"onEngagementPanelsChanged",null);
_.N([_.q6("#player-container"),_.A("design:type",HTMLElement)],Kx.prototype,"playerContainer",void 0);_.N([_.q6("#cinematic-container"),_.A("design:type",HTMLElement)],Kx.prototype,"cinematicContainer",void 0);_.N([_.gx("isPersistentPanelActive","data.thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kx.prototype,"maybeLogNonDefaultAspectRatio",null);
_.N([_.gx("isPersistentPanelActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kx.prototype,"calculateOverlayDensity",null);_.N([_.gx("overlayDensity","extractOverlay","extractActionBar"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kx.prototype,"onOverlayDensityChange",null);_.N([_.O({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Kx);
_.m(Kx,"ytd-reel-video-renderer",function(){if(ISY!==void 0)return ISY;var G=document.createElement("template");_.f(G,'\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]]" is-ads-overlay="[[isAdsOverlay]]" 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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ISY=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var M0=function(){var G=_.C.apply(this,arguments)||this;G.isPreviousPageShorts=!1;G.index=0;G.delayedActiveIndex=0;G.playablePreviousIndex=null;G.isPlayerPaused=!1;G.isPlayerStarted=!1;G.intersectionObserverThreshold=.6;G.fitToVisibleBounds=!1;G.pageSubtype="shorts";G.enablePreviousContinuation=_.V("shorts_in_playlists_web");G.shortsPipEnabled=_.V("web_shorts_pip");G.isDark=document.documentElement.hasAttribute("dark");G.shortsViewTransitions=_.V("web_shorts_view_transitions");G.isFullscreen=!1;G.isShortsPipActive=
!1;G.buttonOverride={iconPosition:"icon-only",size:"XL"};G.anchoredPanelActive=!1;G.isActive=!1;G.smallScreenPersistentPanel=!1;G.isPersistentPanelActive=!1;G.smallScreenSqueezeBack=!1;G.enableScrollIntoViewCenter=_.V("web_scroll_into_view_center");G.formatFirst=_.V("web_enable_format_first")||_.V("web_enable_format_first_ads_only")||_.V("web_enable_format_first_organic_only");G.enableFlexibleOverlay=_.V("web_enable_flexible_overlay");G.extractOverlay=!1;G.useAspectRatio=_.V("web_use_aspect_ratio");
G.enableShortsSequenceRefactorUnify=_.V("web_enable_shorts_sequence_refactor_unify");G.isShortsInitialized=!1;G.shortsContentList=[];G.hasDataUpdated=!1;G.playerInPosition=!1;G.hidePreviousButtonImmediately=!1;G.showPreviousButtonImmediately=!1;G.endOfNextContinuation=!1;G.currentPlayerIndex=0;G.nextReelVe=_.bl(56921);G.prevReelVe=_.bl(56922);G.loopToggleOffVe=_.bl(198013);G.loopToggleOnVe=_.bl(198014);G.ambientModeToggleVe=_.bl(227860);G.reelPlayerPausedStateRendererVe=_.bl(141313);G.storedPlaybackSpeed=
null;G.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"};G.onOverlayDensityChanged=function(H,Z,Q,p){H=G.getActiveReelVideo(H);G.extractOverlay=!!Q;H==null||H.setAttribute("overlay-density",String(Z));Q===void 0||H!=null&&H.toggleAttribute("extract-overlay",
Q);p===void 0||H!=null&&H.toggleAttribute("extract-action-bar",p)};
return G};
_.T(M0,_.C);_.g=M0.prototype;_.g.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.g.setShortsContentList=function(){var G=this,H=this.shortsContentList?[].concat(_.OP(this.shortsContentList)):[],Z=this.firstShortsData,Q=this.reelWatchSequenceResponse;if(Z=this.shortsController==null?void 0:ra7(H,Z,Q!=null?Q:null)){Q=Z.newContentList;var p=Z.indexChange;if(Q.length!==H.length){var l;(l=this.intersectionObserver)==null||l.disconnect();this.shortsContentList=Q;_.q2(this,function(){p!==0&&(G.index=p,G.scrollToVideoThrottle.fire(G.index,"instant"),G.movePlayerToVideo(G.index));_.Ui.addLowPriorityJob(function(){G.observeShorts()})})}}};
_.g.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.g.onResize=function(){var G=_.mm(),H=G.dispatch,Z=this.calculateIsSmallWidth();H.call(G,_.Lo({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:Z}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.g.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}}};
_.g.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var G=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,H=G,Z=0;G<250&&(H=G+this.shortsInnerContainer.clientWidth,Z=24);_.ZI(this.hostElement,{"--ytd-shorts-header-width":H+"px","--ytd-shorts-top-spacing":Z+"px"})}};
_.g.isFirstShorts=function(G){return G&&!this.enableShortsSequenceRefactorUnify?this.index===-G.length:this.index===0};
_.g.isActiveReel=function(G,H,Z){Z&&(H=this.calculatePrevIndex(H,Z));return G===H};
_.g.onFullscreenChange=function(){_.V("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.tp().resolve(_.WM).close(!0))};
_.g.engagementPanelsChanged=function(){var G;this.watchWhileEngagementPanels=(G=this.data)==null?void 0:G.engagementPanels};
_.g.unregisterPanels=function(){var G=_.tp().resolve(_.iU);if(this.watchWhileEngagementPanels)for(var H=_.I(this.watchWhileEngagementPanels),Z=H.next();!Z.done;Z=H.next()){var Q=Z.value,p=void 0,l=void 0;Z=(p=Q.engagementPanelSectionListRenderer)==null?void 0:(l=p.identifier)==null?void 0:l.tag;Q=this.getPanelIdentifier(Q.engagementPanelSectionListRenderer);G&&(Z&&G.panelMap.delete(Z),Q&&_.V("web_shorts_panel_caching_bugfix")&&(p=Z=void 0,(p=(Z=G).unregisterPanelContent)==null||p.call(Z,Q)))}};
_.g.isVideoContent=function(G){return this.isVideoContentCommand(G==null?void 0:G.command)};
_.g.getActiveReelVideo=function(G){return _.F9(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+G+'"]')};
_.g.calculatePrevIndex=function(G,H){return H?G-((H==null?void 0:H.length)||0):-1};
_.g.onKeydown=function(G){var H=_.OD(G)||[];if(!_.D6o(H))if(G.code==="ArrowUp")G.preventDefault(),this.handlePrevButtonClick();else if(G.code==="ArrowDown")G.preventDefault(),this.handleNextButtonClick();else if(G.code==="KeyM")this.toggleMuteUnmuteVideo();else if(G.code==="KeyK"||G.code==="Space")this.togglePlayPauseVideo();else if((G.code==="KeyA"||G.code==="ArrowLeft")&&_.V("web_shorts_keyboard_enable_seek_shortcuts")){var Z;(Z=this.player)==null||Z.seekBy(-5)}else if((G.code==="KeyD"||G.code===
"ArrowRight")&&_.V("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var Q;(Q=this.player)==null||Q.seekBy(5)}};
_.g.onServiceRequestCompleted=function(G,H){G=H.data;this.enableShortsSequenceRefactorUnify?G.continuationEndpoint||G.prevContinuationEndpoint?this.reelWatchSequenceResponse=G:this.endOfNextContinuation=!0:G.continuationEndpoint&&G.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:G.entries,continuationEndpoint:G.continuationEndpoint}}),_.V("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=
G)):G.prevContinuationEndpoint&&G.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:G.prevEntries,prevContinuationEndpoint:G.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.g.handleEngagementPanelVisibilityChanged=function(G,H){var Z=_.tp().resolve(_.iU);if(G&&Z){var Q=this.getPanelIdentifier(G);if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==Q){Z.hidePanel({identifier:this.activePanel});var p;this.activePanel=((p=G.identifier)==null?void 0:p.tag)||G.panelIdentifier}else this.isPersistentPanelActive=!0,_.mm().dispatch(wld(!0)),this.anchoredPanelActive=!0,this.activePanel=Q;else H==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===Q&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.mm().dispatch(wld(!1)))}};
_.g.handlePanelScrimClick=function(){var G=_.tp().resolve(_.iU);this.activePanel&&(G.hidePanel({identifier:this.activePanel}),_.mm().dispatch(wld(!1)))};
_.g.getShortsLoopSetting=function(){var G,H,Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:return _.V("kevlar_shorts_auto_advance")?l.yield(_.oI.getInstance(),2):l.return(!0);case 2:return(G=l.yieldResult)?l.yield(G.get("sfvles"),3):l.return(!0);case 3:return Z=(H=l.yieldResult)!=null?H:!1,l.yield(G.get("sfvle"),4);case 4:return p=(Q=l.yieldResult)!=null?Q:!0,Z?l.return(p):l.return(!0)}})};
_.g.handleSignalActionToggleLoopShortsOff=function(){var G=this,H,Z,Q;return _.S(function(p){switch(p.nextAddress){case 1:if(!G.player)return p.return();G.player.setLoopVideo(!1);H=_.gr();_.WN(H,G.loopToggleOffVe);return p.yield(_.oI.getInstance(),2);case 2:return(Z=p.yieldResult)?p.yield(Z.set("sfvle",!1),3):p.return();case 3:return p.yield(Z.set("sfvles",!0),4);case 4:Q=_.lf(),_.g8(0,203,!1),_.g8(0,204,!0),Q.save(),_.K0(p)}})};
_.g.handleSignalActionToggleLoopShortsOn=function(){var G=this,H,Z,Q;return _.S(function(p){switch(p.nextAddress){case 1:if(!G.player)return p.return();G.player.setLoopVideo(!0);H=_.gr();_.WN(H,G.loopToggleOnVe);return p.yield(_.oI.getInstance(),2);case 2:return(Z=p.yieldResult)?p.yield(Z.set("sfvle",!0),3):p.return();case 3:return p.yield(Z.set("sfvles",!0),4);case 4:Q=_.lf(),_.g8(0,203,!0),_.g8(0,204,!0),Q.save(),_.K0(p)}})};
_.g.handleSignalActionToggleCinematicShortsOn=function(){$4U(!0);var G;(G=this.JSC$22688_cinematicController)==null||_.gry(G,!0);_.WN(_.gr(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.g.handleSignalActionToggleCinematicShortsOff=function(){$4U(!1);var G;(G=this.JSC$22688_cinematicController)==null||_.gry(G,!1);_.WN(_.gr(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.g.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.g.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.g.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var G=this.overlayContainer.querySelector("#experiment-overlay");G&&_.Ui.addLowPriorityJob(function(){G.style.display="unset"},100)}};
_.g.getCurrentShort=function(){if(this.currentEndpoint){var G=this.currentEndpoint;if(this.isNonVideoContentCommand(G)){var H=_.X(G,_.xl);return{reelNonVideoContentRenderer:_.X(H==null?void 0:H.renderer,_.EL),command:G}}if(this.data){var Z;H=(Z=_.X(this.currentEndpoint,_.uS))==null?void 0:Z.thumbnail;var Q;Z=(Q=this.data.overlay)==null?void 0:Q.reelPlayerOverlayRenderer;_.tp().resolve(_.XI);G=this.data;var p,l;Q=(p=G.overlay)==null?void 0:(l=p.shortsAdsRenderer)==null?void 0:l.adSlots;if(Q!==void 0)Q.length===
0?(_.MB("Shorts ads returned no ad slots."),G=void 0):(Q.length>1&&_.MB("Shorts ads has more than one ad slots."),G=_.X(Q[0],_.j3G));else{var q,u;G=_.X((q=G.overlay)==null?void 0:(u=q.shortsAdsRenderer)==null?void 0:u.overlay,_.j3G)}q=G;G=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.X(this.currentEndpoint,_.uS),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var B;return{reelPlayerOverlayRenderer:Z,thumbnail:H,command:G,adsOverlay:q,
videoId:(B=_.X(this.currentEndpoint,_.uS))==null?void 0:B.videoId}}}};
_.g.created=function(){var G=this;this.scrollToVideoThrottle=new _.Zo(function(H,Z){Z=Z===void 0?"smooth":Z;var Q;(Q=G.getActiveReelVideo(H))==null||Q.scrollIntoView({behavior:Z,block:"nearest",inline:G.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.tp().resolve(_.XI);this.maybeCreateIntersectionObserver()};
_.g.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.g.attached=function(){var G=this;_.tp().resolve(_.XI).registerRootElement(this);this.pageScrollElement=_.F9(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.pH(this,this.processResetAction));_.V("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){G.maybeCreateIntersectionObserver();G.scrollToVideoThrottle.fire(G.activeIndex,"instant");G.shortsContainer.style.overflowY=
"scroll"}))};
_.g.updateReelWatchSequenceResponse=function(){var G=this,H;if(_.V("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((H=_.X(this.currentEndpoint,_.uS))==null?0:H.sequenceParams)&&!this.reelWatchSequenceResponse){var Z;(Z=this.shortsController)==null||jN2(Z,this.currentEndpoint).then(function(Q){Q&&(G.reelWatchSequenceResponse=Q,_.Ui.addLowPriorityJob(function(){G.observeShorts()}))})}};
_.g.calculateSqueezebackPanelSize=function(){var G=this,H=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Ui.addLowPriorityJob(function(){H<360?_.mm().dispatch(hOq(!0)):(G.hostElement.style.setProperty("--anchored-panel-width",Math.min(H,480)+"px"),_.mm().dispatch(hOq(!1)))})};
_.g.detached=function(){var G=_.tp().resolve(_.XI);G.rootElement=void 0;var H;(H=G.unsubscribeFromStore)==null||H.call(G);G.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.pH(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.g.onResizeFinished=function(G,H){var Z=this,Q=new ResizeObserver(function(){Z.shortsContainer.style.overflowY="hidden";_.Ui.addLowPriorityJob(function(){H()},100)});
Q.observe(G);return Q};
_.g.resetDocumentScrollTop=function(){var G,H;if((G=document)==null?0:(H=G.scrollingElement)==null?0:H.scrollTop)document.scrollingElement.scrollTop=0};
_.g.loadPage_=function(G){var H=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),G){var Z;!_.V("web_enable_delay_shorts_sequence_call")&&((Z=_.X(this.currentEndpoint,_.uS))==null?0:Z.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=G;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){H.isPlayerStarted&&(H.handleOnPlaybackCommand(),H.afterPlayerStarted=function(){})};
this.registerPanel(G)}};
_.g.afterPlayerStarted=function(){};
_.g.handleOnPlaybackCommand=function(){if(_.V("web_shorts_comment_stickers")&&this.isPlayerStarted){var G,H=(G=_.X(this.currentEndpoint,_.uS))==null?void 0:G.onPlaybackCommand;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.g.maybeCreateIntersectionObserver=function(){var G=this,H=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==H){this.intersectionObserverThreshold=H;var Z={rootMargin:"0px",threshold:H},Q;(Q=this.intersectionObserver)==null||Q.disconnect();this.intersectionObserver=new IntersectionObserver(function(p){p=_.I(p);for(var l=p.next();!l.done;l=p.next())if(l=l.value,l.intersectionRatio>H){l=Number(l.target.id);if(isNaN(l))break;if(l===G.index)break;
_.NSj();G.loadVideo(l);_.fo("r_vtc")}},Z);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.g.observeShorts=function(){var G=[].concat(_.OP(_.F9(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));G=_.I(G);for(var H=G.next();!H.done;H=G.next()){H=H.value;var Z=void 0;(Z=this.intersectionObserver)==null||Z.observe(H)}};
_.g.initCsi=function(){_.J60("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var G={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"}},H,Z;if((H=this.playerData)==null?0:(Z=H.cacheMetadata)==null?0:Z.isCacheHit)G.isCacheHit=!0;var Q;if(H=(Q=_.X(this.currentEndpoint,_.uS))==null?void 0:
Q.prefetchTaskId)G.prefetchInfo={taskId:H};_.ee(G)};
_.g.isAd=function(){var G,H;return!!((G=_.X(this.currentEndpoint,_.uS))==null?0:(H=G.adClientParams)==null?0:H.isAd)};
_.g.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.g.getPlayerContainer=function(){var G;return(G=_.F9(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:G.playerContainer};
_.g.onPlayerStateChange=function(G){var H=this;this.isPlayerPaused=G===2;G!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?G===1&&this.index===0&&(this.isPlayerStarted||_.mm().dispatch(CG4(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.mm().dispatch(CG4(!0)));this.player&&!this.player.getLoopVideo()&&_.Ui.addLowPriorityJob(function(){H.getShortsLoopSetting().then(function(Z){var Q;(Q=H.player)==null||Q.setLoopVideo(Z)})});
this.isPlayerPaused&&_.V("web_shorts_paused_state_logging")&&_.w8(_.$k(),[this.reelPlayerPausedStateRendererVe])};
_.g.isShortPlayable=function(){if(_.V("kevlar_playable_short_killswitch"))return!0;var G;return(G=this.playerData)!=null&&G.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.g.setNormalPlaybackSpeed=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.getPlayer().getPlayerPromise(),2);H=Q.yieldResult;Z=H.getPlaybackRate();Z!==1&&(G.storedPlaybackSpeed=Z,H.setPlaybackRate(1));_.K0(Q)})};
_.g.restorePlaybackSpeed=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1)return G.storedPlaybackSpeed===null?Z.jumpTo(0):Z.yield(G.getPlayer().getPlayerPromise(),3);H=Z.yieldResult;H.setPlaybackRate(G.storedPlaybackSpeed);G.storedPlaybackSpeed=null;_.K0(Z)})};
_.g.playerDataChanged=function(){var G=this,H,Z,Q,p,l,q,u,B,t;return _.S(function(D){if(D.nextAddress==1){H=G.getPlayer();G.enableShortsSequenceRefactorUnify||(Z=G.intersectionObserver)==null||Z.disconnect();if(G.playerData){if(((Q=G.playerData.videoDetails)==null?void 0:Q.videoId)!==((p=H.getPlayer())==null?void 0:p.getVideoData().video_id)){l={};if(q=_.X(G.currentEndpoint,_.uS))l.watch_endpoint=q,q.endTimeSeconds&&(l.end=q.endTimeSeconds);H.loadVideoWithPlayerResponse(G.playerData,l)}}else return D.return();
return G.player?D.jumpTo(2):D.yield(H.getPlayerPromise(),3)}D.nextAddress!=2&&(G.player=D.yieldResult,G.JSC$22688_playerStateChangeListener=G.onPlayerStateChange.bind(G),G.player.addEventListener("onStateChange",G.JSC$22688_playerStateChangeListener),_.V("kevlar_client_enable_shorts_player_bootstrap")&&_.KA(),G.scrollToVideoThrottle.fire(G.index),G.movePlayerToVideo(G.index),_.Ui.addLowPriorityJob(function(){G.getShortsLoopSetting().then(function(d){var e;(e=G.player)==null||e.setLoopVideo(d)})}),
_.mTt.resolve(G.player),G.player.syncVolume(),G.getPlayer().focusOnPlayer());
G.enableShortsSequenceRefactorUnify||_.Ui.addLowPriorityJob(function(){G.observeShorts()},100);
u=G.player.getPlayerState(G.player.getPresentingPlayerType());u!==1||G.isPlayerStarted||_.mm().dispatch(CG4(!0));G.updateBackNavContainerWidth();B=_.X(G.currentEndpoint,_.uS);((t=B)==null?0:t.startTimeSeconds)&&G.player.seekTo(B.startTimeSeconds);if(G.JSC$22688_cinematicController||G.cinematicsInitializeJobId)return D.return();G.cinematicsInitializeJobId=_.Ui.addLowPriorityJob(function(){G.initCinematicController();G.cinematicsInitializeJobId=void 0});
_.K0(D)})};
_.g.onShortUndoDismiss=function(){var G=this,H=MtM().pop();H!==void 0&&(_.q2(this,function(){G.showCardWithIndex(H)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.g.onShortsDismiss=function(G){if(G=G.detail.reelDismissalActionRenderer)(G=_.X(G.onDismissalCompletionRenderer,_.i04))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:G}}}),this.scrollAndDismissCard()};
_.g.processReelNonVideoContentDismissalCommand=function(G){var H=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);G=_.X(G,AaY);this.activeDimissalTimeout=setTimeout(function(){H.scrollAndDismissCard()},Number(G==null?void 0:G.delayMs))};
_.g.scrollAndDismissCard=function(){var G=this,H=this.index;MtM().push(H);_.q2(this,function(){var Z=G.getPlayableNextIndex();Z!==null&&(G.hideCardWithIndex(H),G.scrollToVideoThrottle.fire(Z))})};
_.g.hideCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!0};
_.g.showCardWithIndex=function(G){if(G=this.getActiveReelVideo(G))G.hidden=!1};
_.g.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.g.activeChanged=function(G){_.mm().dispatch(_.Lo({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:G}}));if(G)document.addEventListener("keydown",_.pH(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var H;(H=this.player)==null||H.sendAbandonmentPing()}var Z;(Z=this.player)==null||Z.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.pH(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.g.graftClientVisualElements=function(){if(this.data){var G=_.gr();_.Onw(G,_.Yk({response:this.reelWatchSequenceResponse}));_.fQ(G,this.nextReelVe);_.fQ(G,this.prevReelVe);_.V("kevlar_shorts_auto_advance")&&(_.fQ(G,this.loopToggleOffVe),_.fQ(G,this.loopToggleOnVe));_.fQ(G,this.ambientModeToggleVe);_.w8(_.$k(),[this.nextReelVe,this.prevReelVe]);_.V("web_shorts_paused_state_logging")&&_.fQ(G,this.reelPlayerPausedStateRendererVe)}};
_.g.graftNvcRenderer=function(){var G,H,Z,Q,p,l,q=this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:(H=G[this.index])==null?void 0:H.command:this.index<0?(Z=this.shortsProcessedPrevSequence)==null?void 0:(Q=Z[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:Q.command:(p=this.shortsProcessedSequence)==null?void 0:(l=p[this.index])==null?void 0:l.command;if(q&&this.isNonVideoContentCommand(q)){G=_.X(q,_.xl);var u,B;(G=(u=_.X(G==null?void 0:G.renderer,_.EL))==
null?void 0:(B=u.loggingDirectives)==null?void 0:B.trackingParams)&&_.gr().graftServerVe(G)}};
_.g.setActiveIndex=function(){_.tp().resolve(_.XI).setActiveIndex(this.index)};
_.g.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.g.lazyUpdateMiniplayerData=function(){var G=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Ui.addLowPriorityJob(function(){G.updateMiniplayerData();G.updateMiniplayerDataJobId=void 0}))};
_.g.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Ui.cancelJob(this.updateMiniplayerDataJobId)};
_.g.updateMiniplayerData=function(){var G,H,Z,Q=_.tp().resolve(_.WM),p={shortsData:this.getCurrentShort(),previousButtonDisabled:!((G=this.prevButtonData)==null||!G.isDisabled),nextButtonDisabled:!((H=this.nextButtonData)==null||!H.isDisabled),playabilityStatus:(Z=this.playerData)==null?void 0:Z.playabilityStatus};_.nD(Q,p)};
_.g.resetPlayerLocation=function(){var G=this.getPlayer();this.initialPlayerContainer&&G.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.g.movePlayerToVideo=function(G,H){var Z=this;H=H===void 0?!0:H;var Q=this.getActiveReelVideo(G),p=this.getPlayer();if(Q){this.overlayContainer?Q.appendChild(this.overlayContainer):(this.overlayContainer=_.F9(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,Q.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||p.appendTo(this.overlayContainer.playerContainer,void 0,!0));var l;(l=this.player)==null||l.setSize(NaN,NaN);this.isActive||_.wM(_.Ui,function(){Z.isActive=
!0});
p.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.V("reels_web_disable_rtr_tick")||_.V("reels_web_use_pbs_first_shorts")&&G===0||_.$K("r_tr");this.currentPlayerIndex=G;Q.appendChild(this.errorScreenContainer);var q;(q=this.JSC$22688_cinematicController)==null||_.qAq(q)}else H?_.Ui.addLowPriorityJob(function(){Z.movePlayerToVideo(Z.index,!1)}):Math.random()<=_.eA("web_shorts_error_logging_threshold")&&_.UN(new _.C$("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:H,
index:G}))};
_.g.enableFormatFirst=function(G){return _.V("web_enable_format_first")||G.adsOverlay&&_.V("web_enable_format_first_ads_only")||G.reelPlayerOverlayRenderer&&_.V("web_enable_format_first_organic_only")};
_.g.getAspectRatio=function(G){if(this.enableFormatFirst(G))return(G==null?0:G.thumbnail)&&d4x(G.thumbnail)?"--ytd-shorts-player-ratio: "+d4x(G.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.g.getBackgroundImage=function(G){if(G!=null&&G.thumbnail)return(G=_.At(G.thumbnail.thumbnails))?'background-image:url("'+G+'");':"background-color:black;"};
_.g.onPersistentPanelActiveChanged=function(){var G=this.getCurrentShort();if(G&&this.enableFormatFirst(G)&&(G==null?0:G.thumbnail)&&d4x(G.thumbnail)!==.5625){var H;(H=this.player)==null||H.setSize(NaN,NaN)}};
_.g.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.g.moveCinematicsToVideo=function(){var G=_.F9(this.hostElement).querySelector("ytd-reel-video-renderer");(G==null?0:G.cinematicContainer)&&G.cinematicContainer!==this.shortsCinematicContainer.parentElement&&G.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.g.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.g.updatePrevButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(G){var H;this.prevButtonData=G=Object.assign({},G,{accessibility:{label:_.Zg("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:G.isDisabled||this.index===-(((H=this.shortsProcessedPrevSequence)==null?void 0:H.length)||0),tooltip:this.isUpArrowHidden?"":_.Zg("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=G=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.g.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.g.updateNextButtonData=function(){var G=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(G){var H;this.nextButtonData=G=Object.assign({},G,{accessibility:{label:_.Zg("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:G.isDisabled||this.index===((H=this.shortsProcessedSequence)==null?void 0:H.length),tooltip:_.Zg("NEXT_VIDEO_LABEL")||""})}};
_.g.getPlayablePreviousIndex=function(){for(var G,H=this.index-1;H>=-(((G=this.prevShortsSequence)==null?void 0:G.length)||0);H--)if(!MtM().includes(H))return H;return null};
_.g.getIndexInSequence=function(G,H){return G.findIndex(function(Z){var Q;return((Q=_.X(Z.command,_.uS))==null?void 0:Q.videoId)===H})};
_.g.handlePrevButtonClick=function(G){var H=this,Z,Q;return _.S(function(p){Z=H.getPlayablePreviousIndex();if(Z===null)return p.return();H.gestureType=((Q=G)==null?void 0:Q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";Z===0&&(H.hidePreviousButtonImmediately=!0);if(H.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){H.scrollToVideoThrottle.fire(Z,"auto")}),p.return();
H.scrollToVideoThrottle.fire(Z);_.K0(p)})};
_.g.getPlayableNextIndex=function(){for(var G,H,Z=this.index+1;Z<(this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:G.length:((H=this.shortsProcessedSequence)==null?void 0:H.length)||0);Z++)if(!MtM().includes(Z))return Z;return null};
_.g.handleNextButtonClick=function(G,H){var Z=this,Q,p;return _.S(function(l){Q=Z.getPlayableNextIndex();if(Q===null)return l.return();Q===1&&(Z.showPreviousButtonImmediately=!0);Z.gestureType=((p=G)==null?void 0:p.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";H&&(Z.gestureType=H);if(Z.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){Z.scrollToVideoThrottle.fire(Q,"auto")}),l.return();
Z.scrollToVideoThrottle.fire(Q);_.K0(l)})};
_.g.handleReelNavigateCommand=function(G,H,Z){(G=_.X(G,N3y))&&H&&G.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(Z)};
_.g.loadVideo=function(G,H){H=H===void 0?!1:H;if(G!==this.currentPlayerIndex){_.mm().dispatch(CG4(!1));if(this.isAd()&&!H){var Z;(Z=this.player)==null||Z.notifyShortsAdSwipeEvent()}if((H=this.JSC$22688_cinematicController)!=null){var Q;(Q=H.currentCinematicEffect)==null||Q.pause()}if((Q=this.JSC$22688_cinematicController)!=null){var p;(p=Q.currentCinematicEffect)==null||p.clear()}Q=G>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(Q));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var l,q,u,B,t,D;p=this.enableShortsSequenceRefactorUnify?(l=this.shortsContentList)==null?void 0:(q=l[G])==null?void 0:q.command:G<0?(u=this.shortsProcessedPrevSequence)==null?void 0:(B=u[this.shortsProcessedPrevSequence.length+G])==null?void 0:B.command:(t=this.shortsProcessedSequence)==null?void 0:(D=t[G])==
null?void 0:D.command;this.index=G;this.gestureType||(this.gestureType=Q?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");p&&this.isVideoContentCommand(p)&&(this.ytComponentBehavior.resolveCommand(p,{form:{createScreenConfig:{clickedVisualElement:Q?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(p&&this.isNonVideoContentCommand(p)){this.currentEndpoint=p;this.data=void 0;l=_.gr();q=_.X(p,_.xl);var d,e;(q=(d=
_.X(q==null?void 0:q.renderer,_.EL))==null?void 0:(e=d.screenLoggingData)==null?void 0:e.screenVeType)&&_.Te(l,q);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(d=this.getActiveReelVideo(G))&&d.appendChild(this.overlayContainer)}var n,c;d=this.enableShortsSequenceRefactorUnify?((n=this.shortsContentList)==null?void 0:n.length)===G+1:((c=this.reelWatchSequenceResponse)==null?void 0:c.entries)&&G===this.reelWatchSequenceResponse.entries.length-1;var W;if(((W=
this.reelWatchSequenceResponse)==null?0:W.continuationEndpoint)&&d){var M,r;n={contentPlaybackContext:_.Nc({},(r=_.X((M=this.currentEndpoint)==null?void 0:M.commandMetadata,_.HA))==null?void 0:r.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:n})}var w,x;G=this.enableShortsSequenceRefactorUnify?G===0:G===-(((w=this.reelWatchSequenceResponse)==null?void 0:(x=w.prevEntries)==null?void 0:x.length)||0);var U,R;((U=this.reelWatchSequenceResponse)==
null?0:U.prevContinuationEndpoint)&&((R=this.reelWatchSequenceResponse)==null?0:R.prevEntries)&&G&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.g.setMiniplayerPreview=function(G){G=(G===void 0?0:G)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var H,Z,Q,p,l=_.tp().resolve(_.WM),q={shortsData:void 0,shortsPreviewThumbnail:G?this.enableShortsSequenceRefactorUnify?(H=this.shortsContentList)==null?void 0:(Z=H[G])==null?void 0:Z.thumbnail:(Q=this.shortsProcessedSequence)==null?void 0:(p=Q[G])==null?void 0:p.thumbnail:void 0};_.nD(l,q)};
_.g.updateTitle=function(G){var H,Z;G=(G==null?0:G.adSlots)?"":(Z=G==null?void 0:(H=G.videoDetails)==null?void 0:H.title)!=null?Z:"";_.N5(this.hostElement,"yt-update-title",G)};
_.g.registerPanel=function(G){var H=_.tp().resolve(_.iU);if(H){G=_.I(G.engagementPanels||[]);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value;var Q=this.getPanelIdentifier(Z.engagementPanelSectionListRenderer),p=void 0,l=void 0;(l=(p=H).registerPanelContent)==null||l.call(p,Q,Z)}}};
_.g.getPanelIdentifier=function(G){var H;return(G==null?void 0:(H=G.identifier)==null?void 0:H.tag)||(G==null?void 0:G.panelIdentifier)||(G==null?void 0:G.targetId)};
_.g.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.mm().dispatch(CG4(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.mm().dispatch(wld(!1));var G;(G=this.shortsController)!=
null&&(G.dismissedIndices=[]);var H;(H=this.shortsController)!=null&&H.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.tp().resolve(_.WM).close(!0)};
_.g.processAppendReelWatchSequenceContinuationEntriesAction=function(G){var H=this,Z;(Z=this.intersectionObserver)==null||Z.disconnect();G=G.appendReelWatchSequenceContinuationEntriesAction;if(G==null?0:G.entries){var Q;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.OP(((Q=this.reelWatchSequenceResponse)==null?void 0:Q.entries)||[]),_.OP(G.entries)),continuationEndpoint:G.continuationEndpoint})}else if(G==null?0:G.prevEntries){var p;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.OP(((p=this.reelWatchSequenceResponse)==null?void 0:p.prevEntries)||[]),_.OP(G.prevEntries)),prevContinuationEndpoint:G.prevContinuationEndpoint});_.Ui.addLowPriorityJob(function(){H.movePlayerToVideo(H.index);H.scrollToVideoThrottle.fire(H.index,"instant")})}else return;
_.Ui.addLowPriorityJob(function(){H.observeShorts()},100)};
_.g.processWatchSequence=function(G){var H=this;return G.map(function(Z){Z=Z.command;if(H.isVideoContentCommand(Z)){var Q=_.X(Z,_.uS);return{reelPlayerOverlayRenderer:_.X(Q==null?void 0:Q.overlay,_.xZ4),thumbnail:Q.thumbnail,command:Z}}return H.isNonVideoContentCommand(Z)?(Q=_.X(Z,_.xl),{reelNonVideoContentRenderer:_.X(Q==null?void 0:Q.renderer,_.EL),command:Z}):{command:Z}})};
_.g.calculateIntersectionObserverThreshold=function(){var G=_.F9(this.hostElement).querySelector("ytd-reel-video-renderer"),H=1;(G==null?0:G.offsetHeight)&&(G==null?0:G.offsetWidth)&&(H=Math.min(G.offsetHeight,this.shortsContainer.offsetHeight)/G.offsetHeight*(Math.min(G.offsetWidth,this.shortsContainer.offsetWidth)/G.offsetWidth));return Math.round(H*.6*10)/10};
_.g.isVideoContentCommand=function(G){_.tp().resolve(_.XI);return!!_.X(G,_.uS)};
_.g.isNonVideoContentCommand=function(G){_.tp().resolve(_.XI);return!!_.X(G,_.xl)};
_.g.initCinematicController=function(){var G=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22688_cinematicController=new _.$m(this.shortsCinematicContainer,this.player);var H,Z=_.X((H=this.data)==null?void 0:H.background,_.sX);_.IwI(this.JSC$22688_cinematicController,Z);_.gry(this.JSC$22688_cinematicController,VtU(Z));_.lwO(this.JSC$22688_cinematicController);_.Ui.addLowPriorityJob(function(){G.moveCinematicsToVideo()})}};
_.g.handleMiniplayerNavigateShorts=function(G){G==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():G==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.g.handleSignalActionToggleShortsPictureInPicture=function(){if(_.tp().resolve(_.WM).pictureInPictureSupported()){var G=_.tp().resolve(_.XI);if(_.V("web_shorts_pip")){var H=_.tp().resolve(_.WM);G.isShortsPipActive()?H.deactivate():H.isMiniplayerActive()||(_.PN().shortsPipActivation=!0,_.spc(H))}}else(G=this.player)==null||G.togglePictureInPicture()};
_.u4.Object.defineProperties(M0.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.prevEntries)return this.processWatchSequence([].concat(_.OP(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.OP(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.reelWatchSequenceResponse)!=null&&G.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var G=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var H;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((H=this.shortsProcessedSequence)==null?void 0:H.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var Z;H=_.X((Z=this.firstShortsData)==null?void 0:Z.command,_.uS);if(H==null||!H.videoId)return this.shortsProcessedSequence;Z=this.getIndexInSequence(this.shortsSequence,
H.videoId);if(Z!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=Z,_.Ui.addLowPriorityJob(function(){G.scrollToVideoThrottle.fire(G.index,"auto");G.movePlayerToVideo(G.index)}));
return[].concat(_.OP(this.shortsSequence))}return[this.firstShortsData].concat(_.OP(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var G=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;G&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(G)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 G,H;return this.index===((G=this.reelWatchSequenceResponse)==null?void 0:(H=G.entries)==null?void 0:H.length)}var Z;return!((Z=this.reelWatchSequenceResponse)==null?0:Z.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var G;(G=this.delayedActiveIndexUpdateDebouncer)==null||G.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return this.isShortPlayable()||((H=_.X((G=this.data)==null?void 0:G.watchStatus,_.Zr2))==null?void 0:(Z=H.style)==null?void 0:Z.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var G=this,H=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),Z;if((this.data||H)&&(((Z=this.data)==null?0:Z.engagementPanels)||this.isAd()||H)){H=!1;this.activePanel="shorts-comments-panel";var Q;Z=_.I(((Q=this.data)==null?void 0:Q.engagementPanels)||[]);for(Q=Z.next();!Q.done;Q=Z.next())if(this.getPanelIdentifier(Q.value.engagementPanelSectionListRenderer)===this.activePanel){H=!0;break}if(this.isPersistentPanelActive){var p=
_.tp().resolve(_.iU);_.wM(_.Ui,function(){p.showPanel({identifier:G.activePanel,target:null})},100)}var l;
Q=[].concat(_.OP(Object.values(((l=this.data)==null?void 0:l.engagementPanels)||{})));l=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);Z=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return l===void 0&&Z===void 0||(l==null?0:l.isDisabled)||(Z==null?void 0:Z.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!H?(H=Q==null?void 0:Q.findIndex(function(q){var u,B;return((u=q.engagementPanelSectionListRenderer)==null?void 0:(B=u.identifier)==null?void 0:B.tag)==="shorts-comments-panel"}),H===-1||H===void 0||Q!=null&&Q.splice(H,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Zg("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Zg("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:_.Zg("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Zg("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(_.OP(Object.values(Q||
{})))):Q}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var G=this,H,Z,Q;if((H=this.playerData)==null?0:(Z=H.playabilityStatus)==null?0:(Q=Z.errorScreen)==null?0:Q.playerInterstitialRenderer)return _.Ui.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.playerData.playabilityStatus.errorScreen;
var p,l;return((p=this.data)==null?void 0:p.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((l=this.data)==null?0:l.watchStatus)&&_.X(this.data.watchStatus,_.TSR)?(_.Ui.addLowPriorityJob(function(){G.movePlayerToVideo(G.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.u4.Object.defineProperties(M0,{template:{configurable:!0,enumerable:!0,get:function(){if(YAM===void 0){var G=document.createElement("template");_.f(G,'\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="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" 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    </template>\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);YAM=G}G=YAM;return G}}});
M0.prototype.onNextButtonDataChange=M0.prototype.onNextButtonDataChange;M0.prototype.onPrevButtonDataChange=M0.prototype.onPrevButtonDataChange;M0.prototype.onPersistentPanelActiveChanged=M0.prototype.onPersistentPanelActiveChanged;M0.prototype.lazyUpdateMiniplayerData=M0.prototype.lazyUpdateMiniplayerData;M0.prototype.onShortsPipActiveChanged=M0.prototype.onShortsPipActiveChanged;M0.prototype.setActiveIndex=M0.prototype.setActiveIndex;M0.prototype.graftNvcRenderer=M0.prototype.graftNvcRenderer;
M0.prototype.graftClientVisualElements=M0.prototype.graftClientVisualElements;M0.prototype.onActiveChanged=M0.prototype.onActiveChanged;M0.prototype.onShortsDismiss=M0.prototype.onShortsDismiss;M0.prototype.onShortUndoDismiss=M0.prototype.onShortUndoDismiss;M0.prototype.playerDataChanged=M0.prototype.playerDataChanged;M0.prototype.afterPlayerStarted=M0.prototype.afterPlayerStarted;M0.prototype.updateReelWatchSequenceResponse=M0.prototype.updateReelWatchSequenceResponse;
M0.prototype.unhideCurrentOverlay=M0.prototype.unhideCurrentOverlay;M0.prototype.onServiceRequestCompleted=M0.prototype.onServiceRequestCompleted;M0.prototype.engagementPanelsChanged=M0.prototype.engagementPanelsChanged;M0.prototype.onFullscreenChange=M0.prototype.onFullscreenChange;M0.prototype.onResize=M0.prototype.onResize;M0.prototype.setShortsContentList=M0.prototype.setShortsContentList;M0.prototype.setFirstShortsData=M0.prototype.setFirstShortsData;
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],M0.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.py.YtPageBehavior),_.A("design:type",Object)],M0.prototype,"ytPageBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],M0.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.hS),_.A("design:type",Object)],M0.prototype,"ironResizableBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],M0.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],M0.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],M0.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],M0.prototype,"playerData",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"reelWatchSequenceResponse",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"cachedReelWatchSequenceResponse",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"cachedSequenceParams",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"cachedSequenceProvider",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"currentEndpoint",void 0);
_.N([_.h(),_.A("design:type",Object)],M0.prototype,"nextButtonData",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"prevButtonData",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"isPreviousPageShorts",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"index",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"delayedActiveIndex",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"playablePreviousIndex",void 0);
_.N([_.h(),_.A("design:type",Object)],M0.prototype,"player",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"isPlayerPaused",void 0);_.N([_.h({selector:nry}),_.A("design:type",Object)],M0.prototype,"isPlayerStarted",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"intersectionObserver",void 0);_.N([_.h(),_.A("design:type",Number)],M0.prototype,"cinematicsInitializeJobId",void 0);_.N([_.h(),_.A("design:type",Number)],M0.prototype,"updateMiniplayerDataJobId",void 0);
_.N([_.h(),_.A("design:type",Object)],M0.prototype,"fitToVisibleBounds",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"pageSubtype",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],M0.prototype,"enablePreviousContinuation",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"shortsPipEnabled",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"isDark",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"shortsViewTransitions",void 0);_.N([_.h({selector:_.RS,reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"isFullscreen",void 0);_.N([_.h({selector:_.NB,reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"isShortsPipActive",void 0);_.N([_.q6("#shorts-inner-container"),_.A("design:type",HTMLElement)],M0.prototype,"shortsInnerContainer",void 0);
_.N([_.q6("#back-nav-button ytd-button-renderer"),_.A("design:type",_.SE)],M0.prototype,"backNavButton",void 0);_.N([_.q6("#shorts-container"),_.A("design:type",HTMLElement)],M0.prototype,"shortsContainer",void 0);_.N([_.RW("error-screen"),_.A("design:type",HTMLElement)],M0.prototype,"errorScreenContainer",void 0);_.N([_.RW("player"),_.A("design:type",Object)],M0.prototype,"playerElement",void 0);
_.N([_.RW("shorts-cinematic-container"),_.A("design:type",HTMLElement)],M0.prototype,"shortsCinematicContainer",void 0);_.N([_.RW("initial-player-container"),_.A("design:type",HTMLElement)],M0.prototype,"initialPlayerContainer",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"buttonOverride",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"anchoredPanelActive",void 0);_.N([_.h(),_.A("design:type",String)],M0.prototype,"activePanel",void 0);
_.N([_.h(),_.A("design:type",Object)],M0.prototype,"isActive",void 0);_.N([_.h({selector:eO0,reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"smallScreenPersistentPanel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"isPersistentPanelActive",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"smallScreenSqueezeBack",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"enableScrollIntoViewCenter",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"formatFirst",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"enableFlexibleOverlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"extractOverlay",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"useAspectRatio",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],M0.prototype,"enableShortsSequenceRefactorUnify",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"shortsController",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"panelContainer",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"overlayContainer",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"isShortsInitialized",void 0);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"firstShortsData",void 0);
_.N([_.h(),_.A("design:type",Object)],M0.prototype,"firstShortsDataModel",void 0);_.N([_.h(),_.A("design:type",Array)],M0.prototype,"shortsContentList",void 0);_.N([_.z("reelWatchSequenceResponse"),_.A("design:type",Object),_.A("design:paramtypes",[])],M0.prototype,"prevShortsSequence",null);_.N([_.z("data","prevShortsSequence"),_.z("data","prevShortsSequence"),_.A("design:type",Object),_.A("design:paramtypes",[])],M0.prototype,"shortsProcessedPrevSequence",null);
_.N([_.z("reelWatchSequenceResponse"),_.A("design:type",Object),_.A("design:paramtypes",[])],M0.prototype,"shortsSequence",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"setFirstShortsData",null);_.N([_.gx("reelWatchSequenceResponse","firstShortsData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"setShortsContentList",null);
_.N([_.z("data","shortsSequence","firstShortsData"),_.A("design:type",Object),_.A("design:paramtypes",[])],M0.prototype,"shortsProcessedSequence",null);_.N([_.h({reflectToAttribute:!0}),_.z("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],M0.prototype,"isUpArrowHidden",null);
_.N([_.h({reflectToAttribute:!0}),_.z("reelWatchSequenceResponse","index","endOfNextContinuation"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],M0.prototype,"isDownArrowHidden",null);_.N([_.h(),_.z("index"),_.A("design:type",Number),_.A("design:paramtypes",[])],M0.prototype,"activeIndex",null);_.N([_.z("isShortPlayable","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],M0.prototype,"shouldRenderOfflineContent",null);
_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"onResize",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],M0.prototype,"anchoredEngagementPanels",null);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"watchWhileEngagementPanels",void 0);_.N([_.gx("isFullscreen"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"onFullscreenChange",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"engagementPanelsChanged",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],M0.prototype,"onServiceRequestCompleted",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"unhideCurrentOverlay",null);
_.N([_.gx("currentEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"updateReelWatchSequenceResponse",null);_.N([_.gx("isPlayerStarted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"afterPlayerStarted",null);_.N([_.z("playerData","reelWatchSequenceResponse","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],M0.prototype,"errorScreen",null);
_.N([_.z("errorScreen"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],M0.prototype,"hasError",null);_.N([_.gx("playerData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],M0.prototype,"playerDataChanged",null);_.N([_.lq("yt-dismissible-item-undo-feedback"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"onShortUndoDismiss",null);
_.N([_.lq("yt-disable-lockup-interaction"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],M0.prototype,"onShortsDismiss",null);_.N([_.Jv("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"onActiveChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"graftClientVisualElements",null);
_.N([_.gx("currentPlayerIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"graftNvcRenderer",null);_.N([_.gx("index"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"setActiveIndex",null);_.N([_.gx("isShortsPipActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"onShortsPipActiveChanged",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"lazyUpdateMiniplayerData",null);_.N([_.h(),_.A("design:type",Object)],M0.prototype,"onOverlayDensityChanged",void 0);_.N([_.gx("isPersistentPanelActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"onPersistentPanelActiveChanged",null);
_.N([_.gx("index","data","isUpArrowHidden"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"onPrevButtonDataChange",null);_.N([_.gx("index","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],M0.prototype,"onNextButtonDataChange",null);_.N([_.O({is:"ytd-shorts"})],M0);_.Ri.registerService(_.qbu,M0);
_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("JzFVk");
var gb7;var I6O;var Ho=function(){return _.C.apply(this,arguments)||this};
_.T(Ho,_.C);Ho.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ho.prototype.computeBlueBottomLink=function(G){return G};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ho.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.bottomIcon)"}),_.A("design:type",String)],Ho.prototype,"bottomIcon",void 0);
_.N([_.h({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ho.prototype,"enableBlueBottomLink",void 0);_.N([_.O({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Ho);
_.m(Ho,"ytd-web-answer-renderer",function(){if(I6O!==void 0)return I6O;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return I6O=G},{mode:_.LH("kevlar_poly_si_batch_j035")?1:2});var qPU;var sC=function(){var G=_.C.apply(this,arguments)||this;G.hasChipBar=!1;return G};
_.T(sC,_.C);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(G){return!(G==null||!G.chipBar)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sC.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.A("design:type",Object)],sC.prototype,"hasChipBar",void 0);_.N([_.O({is:"ytd-search-header-renderer",disableElementRegistration:!0})],sC);
_.m(sC,"ytd-search-header-renderer",function(){if(qPU!==void 0)return qPU;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return qPU=G},{mode:1});var SPd;var Z1=function(){return _.C.apply(this,arguments)||this};
_.T(Z1,_.C);Z1.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Z1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Z1.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-page-continuation"})],Z1);
_.m(Z1,"ytd-page-continuation",function(){if(SPd!==void 0)return SPd;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return SPd=G},{mode:1});var uV0;var BJq;var JwU;var tlM=function(){return _.C.apply(this,arguments)||this};
_.T(tlM,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tlM.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],tlM.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],tlM);
_.m(tlM,"ytd-watch-card-one-vs-one-event",function(){if(JwU!==void 0)return JwU;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return JwU=G},{mode:1});var kOU=function(){return _.C.apply(this,arguments)||this};
_.T(kOU,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],kOU.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],kOU.prototype,"data",void 0);_.N([_.O({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],kOU);
_.m(kOU,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(BJq!==void 0)return BJq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return BJq=G},{mode:1});var D__;var d_d=function(){return _.C.apply(this,arguments)||this};
_.T(d_d,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],d_d.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],d_d.prototype,"data",void 0);_.N([_.O({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],d_d);
_.m(d_d,"ytd-banner-and-box-hero-image-renderer",function(){if(D__!==void 0)return D__;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return D__=G},{mode:1});var eLx;var Q0=function(){var G=_.C.apply(this,arguments)||this;G.modern=_.V("web_modern_buttons");return G};
_.T(Q0,_.C);Q0.prototype.computeIcon=function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.icon)==null?void 0:H.iconType;if(Z)return _.bq(Z)};
Q0.prototype.computeButtonShape=function(){var G;return{buttonText:_.yn((G=this.data)==null?void 0:G.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.u4.Object.defineProperties(Q0.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"}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Q0.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Q0.prototype,"modern",void 0);_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.z("data.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],Q0.prototype,"buttonColor",null);
_.N([_.O({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Q0);
_.m(Q0,"ytd-call-to-action-button-renderer",function(){if(eLx!==void 0)return eLx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return eLx=G},{mode:1});var nbI;var px=function(){return _.C.apply(this,arguments)||this};
_.T(px,_.C);px.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.F9(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.N$(this.data.leftThumbnail.thumbnails,216)+")")};
px.prototype.onLeftThumbnailChanged=px.prototype.onLeftThumbnailChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],px.prototype,"data",void 0);_.N([_.gx("data.leftThumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],px.prototype,"onLeftThumbnailChanged",null);_.N([_.O({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],px);
_.m(px,"ytd-collage-hero-image-renderer",function(){if(nbI!==void 0)return nbI;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return nbI=G},{mode:1});var Vl7;var l8=function(){return _.C.apply(this,arguments)||this};
_.T(l8,_.C);l8.prototype.computeStyle=function(G){return G};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],l8.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.A("design:type",String)],l8.prototype,"componentStyle",void 0);_.N([_.O({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],l8);
_.m(l8,"ytd-single-hero-image-renderer",function(){if(Vl7!==void 0)return Vl7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Vl7=G},{mode:1});var $_d;var gw=function(){return _.C.apply(this,arguments)||this};
_.T(gw,_.C);_.g=gw.prototype;
_.g.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.V("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.g.computeSubtitle=function(G){if(this.data){var H;if(this.data.upcomingEventData){G=_.yn(G.subtitle);var Z=Number(this.data.upcomingEventData.startTime);isNaN(Z)||(H=_.aq(_.tW(G,Z)))}else H=G.subtitle;return H}};
_.g.onHeroTap=function(G){G.preventDefault();var H=this.data&&this.data.navigationEndpoint;!H||!_.OO(_.OD(G),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.OO(_.OD(G),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.V("kevlar_watchcard_hero_video_renderer_killswitch")?_.N5(this.hostElement,"yt-navigate",{navigationEndpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.g.computeHeroTabIndex=function(G){return G&&G.simpleText?-1:0};
_.g.computeHeroRole=function(G){return G&&G.simpleText?"":"link"};
_.g.computeIsReminderButtonPresent=function(G){return!(!G||!G.reminderButton)};
_.g.computeHideBottomItems=function(G){return!(this.computeIsReminderButtonPresent(G)||G.subtitle)};
_.g.dataChanged=function(){var G=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;((H=_.X(G==null?void 0:G.commandMetadata,_.rS))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(G)};
gw.prototype.dataChanged=gw.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gw.prototype,"data",void 0);
_.N([_.h({computed:"computeSubtitle(data)"}),_.A("design:type",String)],gw.prototype,"subtitle",void 0);_.N([_.h({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],gw.prototype,"isReminderButtonPresent",void 0);_.N([_.h({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],gw.prototype,"hideBottomItems",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gw.prototype,"dataChanged",null);_.N([_.O({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],gw);
_.m(gw,"ytd-watch-card-hero-video-renderer",function(){if($_d!==void 0)return $_d;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $_d=G},{mode:1});var Xgx;var IU=function(){return _.C.apply(this,arguments)||this};
_.T(IU,_.C);_.g=IU.prototype;_.g.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"}}}};
_.g.computeTitleBadges=function(G){return G?[G]:[]};
_.g.computeHeaderStyle=function(G){return G?G.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.g.computeAvatarAriaLabel=function(G){if(G){var H,Z,Q,p;return(p=(H=G.avatar)==null?void 0:(Z=H.accessibility)==null?void 0:(Q=Z.accessibilityData)==null?void 0:Q.label)!=null?p:_.yn(G==null?void 0:G.title)}};
_.g.computeAvatarHeight=function(G){return G==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.g.computeBadgeRowClass=function(G){return(G==null?0:G[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],IU.prototype,"data",void 0);_.N([_.h({computed:"computeTitleBadges(data.titleBadge)"}),_.A("design:type",Array)],IU.prototype,"titleBadges",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.A("design:type",String)],IU.prototype,"headerStyle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.A("design:type",String)],IU.prototype,"badgeRowClass",void 0);_.N([_.O({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],IU);
_.m(IU,"ytd-watch-card-rich-header-renderer",function(){if(Xgx!==void 0)return Xgx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Xgx=G},{mode:1});var cwO;var TJ4;var q0=function(){return _.C.apply(this,arguments)||this};
_.T(q0,_.C);q0.prototype.onMetadataTap=function(G){var H=this.data&&this.data.navigationEndpoint;H&&!_.OO(_.OD(G),this.hostElement,["A".toString()])&&_.N5(this.hostElement,"yt-navigate",{endpoint:H})};
_.u4.Object.defineProperties(q0.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 G;if(this.data.upcomingEventData){var H=_.yn(this.data.subtitle),Z=Number(this.data.upcomingEventData.startTime);isNaN(Z)||(G=_.aq(_.tW(H,Z)))}else G=this.data.subtitle;return G}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],q0.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data.style"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],q0.prototype,"isCondensed",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],q0.prototype,"subtitle",null);
_.N([_.O({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],q0);
_.m(q0,"ytd-watch-card-compact-video-renderer",function(){if(TJ4!==void 0)return TJ4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return TJ4=G},{mode:1});var f6x;var vbN=function(){return _.C.apply(this,arguments)||this};
_.T(vbN,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vbN.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vbN.prototype,"data",void 0);_.N([_.O({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],vbN);
_.m(vbN,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(f6x!==void 0)return f6x;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return f6x=G},{mode:1});var SH=function(){return _.C.apply(this,arguments)||this};
_.T(SH,_.C);SH.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}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],SH.prototype,"ytRendererStamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],SH.prototype,"data",void 0);_.N([_.O({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],SH);
_.m(SH,"ytd-vertical-watch-card-list-renderer",function(){if(cwO!==void 0)return cwO;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return cwO=G},{mode:1});var WiO;var u8=function(){var G=_.C.apply(this,arguments)||this;G.ariaExpanded="false";return G};
_.T(u8,_.C);_.g=u8.prototype;_.g.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.g.dataChanged=function(){var G;this.currentSeasonIndex=((G=this.data)==null?void 0:G.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.g.computeEpisodesInfo=function(G,H,Z){if(G!==void 0&&H.length===G.length)return G[Z]};
_.g.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.g.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.g.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.g.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.g.getUppercaseSimpleString=function(G){return this.ytRendererBehavior.getSimpleString(G).toUpperCase()};
_.g.updateCurrentSeasonIndexFromBinding=function(G){this.currentSeasonIndex=G.detail.value};
u8.prototype.onIronOverlayClosed=u8.prototype.onIronOverlayClosed;u8.prototype.currentSeasonIndexChanged=u8.prototype.currentSeasonIndexChanged;u8.prototype.dataChanged=u8.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],u8.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",String)],u8.prototype,"label",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],u8.prototype,"currentSeasonIndex",void 0);_.N([_.h({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.A("design:type",Object)],u8.prototype,"episodesInfo",void 0);_.N([_.h({value:"false"}),_.A("design:type",Object)],u8.prototype,"ariaExpanded",void 0);_.N([_.q6("#lists"),_.A("design:type",Object)],u8.prototype,"lists",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u8.prototype,"dataChanged",null);_.N([_.Jv("currentSeasonIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],u8.prototype,"currentSeasonIndexChanged",null);_.N([_.lq("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],u8.prototype,"onIronOverlayClosed",null);
_.N([_.O({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],u8);
_.m(u8,"ytd-watch-card-section-dropdown-renderer",function(){if(WiO!==void 0)return WiO;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WiO=G},{mode:1});var zLO;var Bo=function(){var G=_.C.apply(this,arguments)||this;G.isSearch=!1;return G};
_.T(Bo,_.C);Bo.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}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Bo.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Bo.prototype,"isSearch",void 0);_.N([_.O({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Bo);
_.m(Bo,"ytd-watch-card-section-sequence-renderer",function(){if(zLO!==void 0)return zLO;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return zLO=G},{mode:1});var Ki2=_.y(function(G){return _.J("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.J(_.SP,{data:function(){return G.data().ctaButton}},{buttonViewModel:_.kg}),_.J(_.Fe,{text:function(){return G.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Zm");
Ki2.idomCompat=!0;_.RX(Ki2,"ytd-button-banner-view-model",{props:{data:_.b3}});var J2=function(){var G=_.C.apply(this,arguments)||this;G.isSearch=!1;return G};
_.T(J2,_.C);
J2.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"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],J2.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],J2.prototype,"rounded",void 0);_.N([_.h(),_.A("design:type",Object)],J2.prototype,"isSearch",void 0);
_.N([_.O({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],J2);
_.m(J2,"ytd-universal-watch-card-renderer",function(){if(uV0!==void 0)return uV0;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uV0=G},{mode:1});var Mlx;_.RX(_.y(function(G){var H=G.data;var Z;G=!((Z=_.tp().resolve(_.Jp(_.rr)))==null||!Z());Z={};return _.J("overview-message-view-model",{class:_.bb("ytwOverviewMessageViewModelHost",(Z.ytwOverviewMessageViewModelDarkBackground=G,Z.ytwOverviewMessageViewModelLightBackground=!G,Z))},_.J(_.k,{cond:function(){return H().primaryImage},
then:function(Q){return _.J(_.ib,{data:Q,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.J(_.k,{cond:function(){return H().primaryText},
then:function(){return _.J("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.J(_.Fe,{text:function(){return H().primaryText}}))}}),_.J(_.k,{cond:function(){return H().secondaryText},
then:function(){return _.J("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.J(_.Fe,{text:function(){return H().secondaryText}}))}}))},"$m"),"overview-message-view-model",{props:{data:_.b3}});_.RX(_.IUq,"ytd-overview-answer-view-model",{props:{data:_.b3}});var t2=function(){return _.C.apply(this,arguments)||this};
_.T(t2,_.C);t2.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"}}}};
t2.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],t2.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],t2.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],t2.prototype,"isSearch",void 0);
_.N([_.O({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],t2);
_.m(t2,"ytd-secondary-search-container-renderer",function(){if(Mlx!==void 0)return Mlx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return Mlx=G},{mode:1});var jsO;var km=function(){var G=_.C.apply(this,arguments)||this;G.renderSecondarySearchContainer=!1;G.isSearch=!1;return G};
_.T(km,_.C);_.g=km.prototype;_.g.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"}}}};
_.g.created=function(){var G=this;this.boundStampSecondarySearchContainerIfFits=function(){G.stampSecondarySearchContainerIfFits()};
_.Ae("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.g.computeIsSearchFrictionPage=function(G){var H,Z,Q,p,l;G=G==null?void 0:(H=G.primaryContents)==null?void 0:(Z=H.sectionListRenderer)==null?void 0:(Q=Z.contents)==null?void 0:(p=Q[0])==null?void 0:(l=p.itemSectionRenderer)==null?void 0:l.contents;if(!G)return!1;H=_.I(G);for(Z=H.next();!Z.done;Z=H.next())if(Q=void 0,(Q=Z.value)==null?0:Q.searchFrictionViewModel)return!0;return!1};
_.g.computeShowSecondaryColumn=function(G,H){return!!(H&&H.secondaryContents&&G)};
_.g.activeChanged=function(){var G=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.pH(this,this.debounceStampSecondarySearchContainerIfFits)),_.PG(function(){G.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.pH(this,this.debounceStampSecondarySearchContainerIfFits))};
_.g.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.g.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.g.debounceStampSecondarySearchContainerIfFits=function(){_.rx(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.g.onRetrieveLocation=function(G,H){H.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);G.stopPropagation()};
_.g.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
km.prototype.dataChanged=km.prototype.dataChanged;km.prototype.onRetrieveLocation=km.prototype.onRetrieveLocation;km.prototype.persistentGuideChanged=km.prototype.persistentGuideChanged;km.prototype.activeChanged=km.prototype.activeChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],km.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.hS),_.A("design:type",Object)],km.prototype,"ironResizableBehavior",void 0);_.N([_.h(),_.A("design:type",Boolean)],km.prototype,"active",void 0);_.N([_.h(),_.A("design:type",Object)],km.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.A("design:type",Boolean)],km.prototype,"useBiggerThumbs",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.n$("desktop_search_bigger_thumbs_style")}}),
_.A("design:type",String)],km.prototype,"biggerThumbsStyle",void 0);_.N([_.h(),_.A("design:type",Object)],km.prototype,"renderSecondarySearchContainer",void 0);_.N([_.h({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.A("design:type",Boolean)],km.prototype,"showSecondaryColumn",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.A("design:type",Boolean)],km.prototype,"isSearchFrictionPage",void 0);
_.N([_.h(),_.A("design:type",Object)],km.prototype,"isSearch",void 0);_.N([_.gx("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],km.prototype,"activeChanged",null);_.N([_.gx("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],km.prototype,"persistentGuideChanged",null);
_.N([_.lq("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],km.prototype,"onRetrieveLocation",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],km.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],km);
_.m(km,"ytd-two-column-search-results-renderer",function(){if(jsO!==void 0)return jsO;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return jsO=G},{mode:1});var D1=function(){var G=_.C.apply(this,arguments)||this;G.hasSearchHeader=!1;G.hasSecondaryContent=!1;G.hasBiggerThumbs=_.V("enable_desktop_search_bigger_thumbs");G.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return G};
_.T(D1,_.C);_.g=D1.prototype;_.g.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:_.$2(["aa","eocs"])}}};
_.g.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.loadPage_=function(G){this.initCsi();G&&(this.data=G,_.Ae("REFINEMENTS_TUPLE",["FromSearchResponse",G.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.lc(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.g.initCsi=function(){_.J60("results",["ol","cpt"])};
_.g.updateTitle=function(){var G=_.bY(window.location.href,"q");G||(G=_.bY(window.location.href,"search_query"));_.N5(this.hostElement,"yt-update-title",G||"")};
_.g.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.g.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.V("web_srp_data_changed_terminate_imp_killswitch")||_.AZ(this.hostElement,"yt-terminate-video-preview-action")};
_.g.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.g.computeHasSearchHeader=function(G){var H;G=G==null?void 0:(H=G.header)==null?void 0:H.searchHeaderRenderer;return!!G&&(!!G.searchFilterButton||!!G.chipBar)};
_.g.computeHasSecondaryContent=function(G){var H,Z;return!!(G==null?0:(H=G.contents)==null?0:(Z=H.twoColumnSearchResultsRenderer)==null?0:Z.secondaryContents)};
_.u4.Object.defineProperties(D1,{template:{configurable:!0,enumerable:!0,get:function(){if(gb7===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);gb7=G}G=gb7;return G}}});
D1.prototype.onReloadContinuationFinish=D1.prototype.onReloadContinuationFinish;D1.prototype.dataChanged=D1.prototype.dataChanged;_.N([_.v(_.py.YtPageBehavior),_.A("design:type",Object)],D1.prototype,"ytPageBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],D1.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],D1.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],D1.prototype,"data",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],D1.prototype,"monitorScroll",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],D1.prototype,"hasSearchHeader",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],D1.prototype,"hasSecondaryContent",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],D1.prototype,"hasBiggerThumbs",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D1.prototype,"dataChanged",null);
_.N([_.lq("yt-reload-continuation-finish"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D1.prototype,"onReloadContinuationFinish",null);_.N([_.O({is:"ytd-search"})],D1);_.Ri.registerService(_.Ilf,D1);
_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("h8y2qb");
var k8U=function(G){if(G=_.Qco(G)){var H;(H=G.sources)!=null&&H[0]?(H=_.lVj(G),H=H<1?"VERTICAL":H>1?"HORIZONTAL":"SQUARE"):H=void 0;return H}},lD=function(G){_.$_.call(this,"upload");
this.opts.query=G},daq=function(G,H){return _.J(Da0,{data:G,
onYtNavigate:H})},eiq=function(G,H){return _.Hv(G.entities,"pageHeaderEntity",H)},VcM=function(G,H){return G.map(function(Z){if(Z.tabRenderer)return nAI(Z.tabRenderer);
if(Z.expandableTabRenderer&&H){var Q=Z.expandableTabRenderer;return{customTabRenderable:function(){return H(Q)}}}return{}})},nAI=function(G){return{identifier:G.tabIdentifier,
aTagConfig:_.vT({innertubeCommand:G.endpoint,forceNewState:!0}),title:G.title,selected:G.selected,disabled:G.unselectable,icon:G.icon}},$a0=function(G){return _.Lo({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:G})},XDU=function(G){if(!_.Ni(document,"gtm-noscript")){var H=document.createElement("noscript");
H.id="gtm-noscript";H.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+G+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(H)}};_.AB(lD,_.$_);lD.prototype.JSC$10083_setLabel=function(G){lD.superClass_.JSC$10083_setLabel.call(this,G);return this};
lD.prototype.addUploadMetadata=function(G,H){lD.superClass_.addUploadMetadata.call(this,G,H);return this};var c6O=function(G){if(G!=="youtubebanner"&&G!=="youtube-channel-banner")throw Error("Io");lD.call(this,G)};
_.T(c6O,lD);c6O.prototype.JSC$10083_setLabel=function(G){lD.prototype.JSC$10083_setLabel.call(this,G);return this};
c6O.prototype.addUploadMetadata=function(G,H){lD.prototype.addUploadMetadata.call(this,G,H);return this};var Tk_=[_.hS,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(G){_.Bf(G).path[0]!==this&&(this.resetLayout(),G.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var G=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.u2(this._layoutDebouncer,_.kC,G);_.BK(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var G=this;requestAnimationFrame(function(){G.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(G){this.resizerShouldNotify(G)&&this._notifyDescendant(G)},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 ftO=[_.Ln7,{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(G,H){var Z=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[G];if(!Z)throw new ReferenceError(this._getUndefinedMsg(G));G=this._boundEffect(Z,H||{});G.setUp();return G},
_effectsChanged:function(G,H,Z){this._tearDownEffects();G&&Z&&(G.split(" ").forEach(function(Q){var p;Q!==""&&((p=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Q])?this._effects.push(this._boundEffect(p,H[Q])):console.warn(this._getUndefinedMsg(Q)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(G,H){H=H||{};var Z=parseFloat(H.startsAt||0),Q=parseFloat(H.endsAt||1),p=Q-Z,l=function(){};
Q=Z===0&&Q===1?G.run:function(q,u){G.run.call(this,Math.max(0,(q-Z)/p),u)};
return{setUp:G.setUp?G.setUp.bind(this,H):l,run:G.run?Q.bind(this):l,tearDown:G.tearDown?G.tearDown.bind(this):l}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(G){G.setUp()!==!1&&this._effectsRunFn.push(G.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(G){G.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(G,H){this._effectsRunFn&&this._effectsRunFn.forEach(function(Z){Z(G,H)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var G=this._clampedScrollTop;this._updateScrollState(G);this.threshold>0&&this._setThresholdTriggered(G>=this.threshold)}},
_getDOMRef:function(G){console.warn("_getDOMRef","`"+G+"` is undefined")},
_getUndefinedMsg:function(G){return"Scroll effect `"+G+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+G+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Jo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(G){var H={};G=parseFloat(G.scalar);H.background=this._getDOMRef("background");H.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");H.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");H.deltaBg=H.backgroundFrontLayer.offsetHeight-H.background.offsetHeight;H.deltaBg===0?(isNaN(G)&&(G=.8),H.deltaBg=(this._dHeight||0)*G):(isNaN(G)&&(G=
1),H.deltaBg*=G);this._fxParallaxBackground=H},
run:function(G){var H=this._fxParallaxBackground;this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,G)+"px, 0px)",H.backgroundFrontLayer);H.backgroundRearLayer&&this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,G)+"px, 0px)",H.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var vA2;var Ws0;var ziy=function(){};
_.g=ziy.prototype;_.g._scrollTargetChanged=function(){};
_.g.scroll=function(){};
_.g._isValidScrollTarget=function(){};
_.g._toggleScrollListener=function(){};
_.g.toggleScrollListener=function(){};
_.g.createEffect=function(){};
_.g._effectsChanged=function(){};
_.g._layoutIfDirty=function(){};
_.g._boundEffect=function(){};
_.g._setUpEffect=function(){};
_.g._tearDownEffects=function(){};
_.g._runEffects=function(){};
_.g._scrollHandler=function(){};
_.g._scrollStateChanged=function(){};
_.g._getUndefinedMsg=function(){};
_.g.notifyResize=function(){};
_.g.assignParentResizable=function(){};
_.g.stopResizeNotificationsFor=function(){};
_.g._subscribeIronResize=function(){};
_.g._unsubscribeIronResize=function(){};
_.g.resizerShouldNotify=function(){};
_.g._onDescendantIronResize=function(){};
_.g._fireResize=function(){};
_.g._onIronRequestResizeNotifications=function(){};
_.g._parentResizableChanged=function(){};
_.g._notifyDescendant=function(){};
_.g._requestResizeNotifications=function(){};
_.g._findParent=function(){};
_.g._appResetLayoutHandler=function(){};
_.g.resetLayout=function(){};
_.g._notifyLayoutChanged=function(){};
_.g._notifyDescendantResize=function(){};
_.g._setThresholdTriggered=function(){};
ziy=_.Vy({_template:function(){if(Ws0!==void 0)return Ws0;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;vA2===void 0&&(vA2=document.createElement("template"));var Q=vA2;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Ws0=G},
is:"tp-yt-app-header",behaviors:[ftO,Tk_],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 G=_.Bf(this.$.slot).getDistributedNodes(),H=0,Z;Z=G[H];H++)if(Z.nodeType===Node.ELEMENT_NODE)if(Z.hasAttribute("sticky")){this._stickyElRef=Z;break}else this._stickyElRef||(this._stickyElRef=Z);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var G=this._clampedScrollTop,H=this._height===0||G===0,Z=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;H||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();H?this._updateScrollState(G,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=Z}},
_updateScrollState:function(G,H){if(this._height!==0){var Z=0,Q=this._top;var p=this._maxHeaderTop;var l=G-this._lastScrollTop,q=Math.abs(l),u=G>this._lastScrollTop,B=performance.now();this._mayMove()&&(Z=this._clamp(this.reveals?Q+l:G,0,p));G>=this._dHeight&&(Z=this.condenses&&!this.fixed?Math.max(this._dHeight,Z):Z,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&q<100){if(B-this._initTimestamp>300||this._wasScrollingDown!==u)this._initScrollTop=G,this._initTimestamp=B;G>=p&&
(Math.abs(this._initScrollTop-G)>30||q>10?(u&&G>=p?Z=p:!u&&G>=this._dHeight&&(Z=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((Z-Q)/(l/(B-this._lastTimestamp)),0,300)+"ms"):Z=this._top)}p=this._dHeight===0?G>0?1:0:Z/this._dHeight;H||(this._lastScrollTop=G,this._top=Z,this._wasScrollingDown=u,this._lastTimestamp=B);if(H||p!==this._progress||Q!==Z||G===0)this._progress=p,this._runEffects(p,Z),this._transformHeader(Z)}},
_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(G){this.translate3d(0,-G+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&G>=this._stickyElTop?Math.min(G,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(G,H,Z){return Math.min(Z,Math.max(H,G))},
_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),_.Bf(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(G){switch(G){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Bf(this).querySelector("[main-title]");case "condensedTitle":return _.Bf(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Ks4;var Mcy;_.Vy({_template:function(){if(Mcy!==void 0)return Mcy;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Ks4===void 0&&(Ks4=document.createElement("template"));var Q=Ks4;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Mcy=G},
is:"tp-yt-app-header-layout",behaviors:[Tk_],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Bf(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var G=this.header;if(this.isAttached&&G){this.$.wrapper.classList.remove("initializing");G.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)G.style.left=
"",G.style.right="";else{var H=this.getBoundingClientRect(),Z=document.documentElement.clientWidth-H.right;G.style.left=H.left+"px";G.style.right=Z+"px"}H=this.$.contentContainer.style;Z=G.offsetHeight;G.fixed&&!G.condenses&&this.hasScrollingRegion?(H.marginTop=Z+"px",H.paddingTop=""):(H.paddingTop=Z+"px",H.marginTop="")}}});var jjI=new _.bn("alertCommand");var Pox=new _.bn("manageLabsStateCommand");var r6_=new _.bn("inlineFormRenderer");var wDU=new _.bn("playlistSidebarPrimaryInfoRenderer");var hi0=new _.bn("productDetailsThumbnailRenderer"),CoN=new _.bn("productDetailsVariantRenderer"),im0=new _.bn("productDetailsVariantOptionRenderer"),OmY=new _.bn("productDetailsOffersContainerRenderer"),atq=new _.bn("productDetailsOfferRenderer");var y6O=new _.bn("shoppingFlaggingRenderer");var oAq=new _.bn("playlistBylineRenderer");var ma7=new _.bn("insertChannelTabCommand");var g1=function(){return _.uq.apply(this,arguments)||this};
_.T(g1,_.uq);_.g=g1.prototype;_.g.activeChanged=function(){if(this.active){var G=_.F9(this.hostElement).querySelector("#header");G&&_.N5(G,"iron-resize");window.addEventListener("scroll",_.pH(this,this.onScroll))}else window.removeEventListener("scroll",_.pH(this,this.onScroll)),_.N5(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.g.guideVisibleChanged=function(){var G=_.F9(this.hostElement).querySelector("#header");G&&_.N5(G,"iron-resize")};
_.g.onScroll=function(){var G=this;_.rx(this,"onScroll",function(){var H=_.F9(G.hostElement).querySelector("#header");H&&H.polymerController&&(H=H.polymerController.getScrollState().progress===1?"standard":"seamed",_.N5(G.hostElement,"yt-request-panel-mode-change",{mode:H}))},10)};
_.g.tabsChanged=function(){if(this.tabs){for(var G=null,H=0,Z=this.tabs.length;H<Z;++H){var Q=this.tabs[H].tabRenderer;if(Q&&Q.selected){G=H;break}}this.selected=G}};
_.g.onTabsActivate=function(G){_.N5(this.hostElement,"yt-navigate",{endpoint:this.tabs[G.detail.selected].tabRenderer.endpoint})};
g1.prototype.tabsChanged=g1.prototype.tabsChanged;g1.prototype.guideVisibleChanged=g1.prototype.guideVisibleChanged;g1.prototype.activeChanged=g1.prototype.activeChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],g1.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.h(),_.A("design:type",Array)],g1.prototype,"tabs",void 0);
_.N([_.h(),_.A("design:type",Object)],g1.prototype,"selected",void 0);_.N([_.h(),_.A("design:type",Boolean)],g1.prototype,"active",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],g1.prototype,"disableHeaderFluidWidth",void 0);_.N([_.gx("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],g1.prototype,"activeChanged",null);
_.N([_.gx("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],g1.prototype,"guideVisibleChanged",null);_.N([_.gx("tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],g1.prototype,"tabsChanged",null);_.N([_.BG()],g1);var Uax=[_.Y.YtRendererBehavior,_.Ep.YtdGuideStateAwareBehavior,g1.prototype];var Ri7=2/3,Nk0=_.bl(130749),A62=function(G,H){var Z=this;this.element=G;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){Z.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Ri7,moveAction:function(Q){Z.moveAction(Q)},
triggerAction:function(){Z.element.isReloading=!0;_.jQ(_.gr(),{visualElement:Nk0});_.HT.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:Z.element}})}}}};
_.vN(_.gr(),Nk0,this.layer);this.gesture=new _.aG(G,H,this.refreshConfig,"pan-down");this.attach()};
_.g=A62.prototype;_.g.attach=function(){this.gesture.attach()};
_.g.detach=function(){this.gesture.detach()};
_.g.reset=function(){this.element.close()};
_.g.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.g.moveAction=function(G){this.element.rotation=G*360};var xaN=_.bl(130750),EAy=function(G,H,Z,Q,p){var l=this;this.element=G;this.parent=Z;this.channelHeader=Q;this.ytdReduxDispatch=p;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){l.tabsStartAtInPx=l.channelHeader.clientHeight-48;var q;(q=l.selectedTab)!=null&&q.title&&(q=_.tp().resolve(_.Jp(_.o0)))&&(q=q.getCurrentPage(),l.lastVisitedTabScrollPosition=q.getScrollTop(),l.previousTab&&
((l.lastVisitedTabScrollPosition===void 0?0:l.lastVisitedTabScrollPosition<l.channelHeader.clientHeight-48)?l.scrollPositionForTabs.has(l.selectedTab.title)&&l.scrollPositionForTabs.delete(l.selectedTab.title):l.scrollPositionForTabs.set(l.selectedTab.title,q.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:Lsx(),triggerAction:function(){l.navigate(l.previousTab)},
moveAction:function(q,u){l.moveAction(q,u)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-Lsx(),triggerAction:function(){l.navigate(l.nextTab)},
moveAction:function(q,u){l.moveAction(q,u)}}}};
_.vN(_.gr(),xaN,this.layer);this.gesture=new _.aG(G,H,this.tabConfig);this.attach()};
_.g=EAy.prototype;_.g.attach=function(){this.gesture.attach()};
_.g.detach=function(){this.gesture.detach()};
_.g.tabsChanged=function(G){if(G){var H=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next()){Z=Z.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=Z);var Q=void 0;if((Q=Z)==null?0:Q.selected)this.previousTab=H,this.selectedTab=Z;H=Z}H=this.gesture;G=this.getConfig();H.config=G;this.scrollPositionNeedsUpdate=!0}};
_.g.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}})};
_.g.moveAction=function(G,H){if(!this.tabsElement){var Z;this.tabsElement=(Z=this.parent.header)==null?void 0:Z.tabsElement;H==="right"&&this.previousTab?(Z=this.previousTab.endpoint,_.sfA(_.tp().resolve(_.JB),Z,{},"")):H==="left"&&this.nextTab&&(Z=this.nextTab.endpoint,_.sfA(_.tp().resolve(_.JB),Z,{},""));if(!this.tabsElement)return}Z=this.tabsElement._pos;H==="right"&&(G*=-1);this.tabsElement._positionBar(Z.width,Z.left*1+Z.width*G)};
var Lsx=function(){var G,H;return(H=(G=_.tp().resolve(_.o0).getCurrentPage())==null?void 0:G.clientWidth)!=null?H:0};
EAy.prototype.navigate=function(G){this.element.data=void 0;if(G=G==null?void 0:G.endpoint)this.ytdReduxDispatch($a0(!0)),_.jQ(_.gr(),{visualElement:xaN}),_.HT.instance.resolveCommand({navigateAction:{endpoint:G}},{form:{element:this.element}})};var Yq2;var Fsx;var Il=function(){return _.C.apply(this,arguments)||this};
_.T(Il,_.C);Il.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Il.prototype,"data",void 0);_.N([_.O({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Il);
_.m(Il,"ytd-labs-edit-renderer",function(){if(Fsx!==void 0)return Fsx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Fsx=G},{mode:1});var bmx;var qb=function(){var G=_.C.apply(this,arguments)||this;G.dark=!1;G.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";G.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(qb,_.C);qb.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qb.prototype.ready=function(){var G=document.documentElement.hasAttribute("dark");this.setBackgroundImage(G);this.dark=G};
qb.prototype.onDarkModeToggledAction=function(G){this.setBackgroundImage(G);this.dark=G};
qb.prototype.setBackgroundImage=function(G){_.ZI(this.hostElement,{"--yt-labs-header-background":"url("+(G?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],qb.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qb.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],qb.prototype,"dark",void 0);
_.N([_.O({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],qb);
_.m(qb,"ytd-labs-header-renderer",function(){if(bmx!==void 0)return bmx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return bmx=G},{mode:1});var G40;var S3=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return G};
_.T(S3,_.C);S3.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"}}}}}};
S3.prototype.onYtToggleButton=function(G){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",G.detail.toggled)};
S3.prototype.onManageLabsState=function(G){if(G=_.X(G,Pox))G.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?G.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&G.labsItemId===this.data.labsItemId&&(G.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.AZ(this.hostElement,"yt-check-labs-opted-in-state").some(function(H){return H})&&this.data.confirmationDialogCommand?_.El(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.tp().resolve(_.Dk).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&G.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.tp().resolve(_.Dk).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
S3.prototype.onCheckLabsOptedInState=function(){var G=this.get("data.primaryButton.toggleButtonRenderer");return G?G.isToggled:!1};
_.u4.Object.defineProperties(S3.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
S3.prototype.onYtToggleButton=S3.prototype.onYtToggleButton;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],S3.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],S3.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],S3.prototype,"itemStyle",null);_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],S3.prototype,"onYtToggleButton",null);_.N([_.O({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],S3);
_.m(S3,"ytd-labs-item-renderer",function(){if(G40!==void 0)return G40;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return G40=G},{mode:1});var Hqx;var sy0;var Zq0=function(){return _.C.apply(this,arguments)||this};
_.T(Zq0,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Zq0.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Zq0.prototype,"data",void 0);_.N([_.O({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Zq0);
_.m(Zq0,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(sy0!==void 0)return sy0;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sy0=G},{mode:1});var Qy7;var uD=function(){return _.C.apply(this,arguments)||this};
_.T(uD,_.C);uD.prototype.observeSuperchatChip=function(){if(this.data){var G={"--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)};_.ZI(this.hostElement,G)}};
uD.prototype.colorFromDecimal=function(G){return _.c$(Number(G||0))};
uD.prototype.observeSuperchatChip=uD.prototype.observeSuperchatChip;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uD.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uD.prototype,"observeSuperchatChip",null);_.N([_.O({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],uD);
_.m(uD,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(Qy7!==void 0)return Qy7;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Qy7=G},{mode:1});var Bq=function(){return _.C.apply(this,arguments)||this};
_.T(Bq,_.C);Bq.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"}}}};
_.u4.Object.defineProperties(Bq.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Bq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.NH),_.A("design:type",Object)],Bq.prototype,"ytdDismissibleItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Bq.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Bq.prototype,"hideMessageBlock",null);
_.N([_.O({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Bq);
_.m(Bq,"ytd-live-chat-history-entry-renderer",function(){if(Hqx!==void 0)return Hqx;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Hqx=G},{mode:1});var pOU;var lM7=function(){return _.C.apply(this,arguments)||this};
_.T(lM7,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lM7.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lM7.prototype,"data",void 0);_.N([_.O({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],lM7);
_.m(lM7,"ytd-channel-options-renderer",function(){if(pOU!==void 0)return pOU;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return pOU=G},{mode:1});var gYO;var Ju=function(){return _.C.apply(this,arguments)||this};
_.T(Ju,_.C);Ju.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ju.prototype,"data",void 0);_.N([_.O({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Ju);
_.m(Ju,"ytd-settings-email-item-renderer",function(){if(gYO!==void 0)return gYO;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return gYO=G},{mode:1});var IMY;var tu=function(){return _.C.apply(this,arguments)||this};
_.T(tu,_.C);tu.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"}}}};
tu.prototype.getExpansionIcon=function(G){return G?"COLLAPSE":"EXPAND"};
tu.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.u4.Object.defineProperties(tu.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],tu.prototype,"data",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],tu.prototype,"expanded",void 0);_.N([_.z("expanded"),_.A("design:type",String),_.A("design:paramtypes",[])],tu.prototype,"emailListExpanded",null);
_.N([_.q6("#options"),_.A("design:type",Object)],tu.prototype,"options",void 0);_.N([_.O({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],tu);
_.m(tu,"ytd-settings-email-list-renderer",function(){if(IMY!==void 0)return IMY;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return IMY=G},{mode:1});var q_Y;var k8=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.T(k8,_.C);k8.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"}}}};
k8.prototype.handleSignalActionSubmitForm=function(){var G,H=(G=this.formRenderer)==null?void 0:G.getForm();H&&this.data.serviceEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},H,{element:this.hostElement})})};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],k8.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],k8.prototype,"data",void 0);_.N([_.q6("yt-form-renderer"),_.A("design:type",Object)],k8.prototype,"formRenderer",void 0);
_.N([_.O({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],k8);
_.m(k8,"ytd-settings-gaia-link-renderer",function(){if(q_Y!==void 0)return q_Y;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return q_Y=G},{mode:1});var S_O;var DC=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return G};
_.T(DC,_.C);DC.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.w$8()&&this.set("data.hidden",!1)};
DC.prototype.onSwitchReady=function(){var G=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.V("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.r0A().then(function(H){H&&(Notification.permission==="default"?G.set("data.hidden",!1):Notification.permission==="granted"&&_.jh("NotificationsDisabled").then(function(Z){Z||_.AZ(G.hostElement,"yt-toggle-settings-switch",[G.data.id,!Z]);G.set("data.hidden",!1)}).catch(function(){}))})})};
DC.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}}}}};
DC.prototype.handleUpdateOptionsCommand=function(G){(G=_.X(G,_.IRT))&&this.data&&this.data.id===G.id&&(this.set("data.hidden",G.hidden),G.text!==void 0&&this.set("data.text",G.text),G.clearOptions&&this.set("data.options",[]))};
DC.prototype.onSwitchReady=DC.prototype.onSwitchReady;DC.prototype.dataChanged=DC.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],DC.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],DC.prototype,"data",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DC.prototype,"dataChanged",null);_.N([_.lq("yt-settings-switch-ready"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],DC.prototype,"onSwitchReady",null);_.N([_.O({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],DC);
_.m(DC,"ytd-settings-options-renderer",function(){if(S_O!==void 0)return S_O;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return S_O=G},{mode:1});var uxy;var d1=function(){return _.C.apply(this,arguments)||this};
_.T(d1,_.C);d1.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
d1.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
d1.prototype.onYtExpanderMoreTapped=d1.prototype.onYtExpanderMoreTapped;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],d1.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],d1.prototype,"data",void 0);
_.N([_.lq("yt-expander-more-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],d1.prototype,"onYtExpanderMoreTapped",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],d1);
_.m(d1,"ytd-product-details-description-renderer",function(){if(uxy!==void 0)return uxy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uxy=G},{mode:1});var B02;var e3=function(){var G=_.C.apply(this,arguments)||this;G.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";G.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";G.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";G.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return G};
_.T(e3,_.C);e3.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u4.Object.defineProperties(e3.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:(H=G.offerData)==null?void 0:H.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?void 0:G.purchaseButtonRenderers)!==void 0&&((H=this.data)==null?void 0:H.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null||!G.formattedFromMerchantText)&&(!((H=this.data)==null||!H.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],e3.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],e3.prototype,"data",void 0);
_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],e3.prototype,"shippingIcon",void 0);_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],e3.prototype,"shippingAddressIcon",void 0);_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],e3.prototype,"googleGuaranteeIcon",void 0);
_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.A("design:type",Object)],e3.prototype,"returnPolicyIcon",void 0);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e3.prototype,"showAdditionalFees",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e3.prototype,"showMultiPurchaseButtons",null);
_.N([_.z("data","showMultiPurchaseButtons"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],e3.prototype,"showPurchaseData",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],e3);
_.m(e3,"ytd-product-details-hero-offer-renderer",function(){if(B02!==void 0)return B02;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return B02=G},{mode:1});var JNI;var t70;var ny=function(){return _.C.apply(this,arguments)||this};
_.T(ny,_.C);_.g=ny.prototype;_.g.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.g.onKeyDown=function(G){G=G.keyCode;G!==13&&G!==32||this.handleSelection()};
_.g.onMouseEnterImage=function(){var G;((G=this.data)==null?void 0:G.thumbnailDetails)!==void 0&&_.xk(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.g.onMouseLeaveImage=function(){_.xk(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.g.handleSelection=function(){this.data&&_.N5(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.u4.Object.defineProperties(ny.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.isSelected)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ny.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],ny.prototype,"isSelected",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],ny);
_.m(ny,"ytd-product-details-thumbnail-renderer",function(){if(t70!==void 0)return t70;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return t70=G},{mode:1});var Vq=function(){var G=_.C.apply(this,arguments)||this;var H={};G.actionMap=(H["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",H["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",H);G.selectedThumbnailIndex=0;G.selectItem=function(Z){Z.target.onKeyDown(Z)};
return G};
_.T(Vq,_.C);_.g=Vq.prototype;_.g.handlePreviewImageSelect=function(G){this.hoverThumbnail=G};
_.g.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.g.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.g.onThumbnailSelected=function(G,H){this.selectedThumbnailIndex=H};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.g.updateOffset=function(){var G=_.F9(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-G));this.ytdHorizontalListBehavior.reposition_()};
_.u4.Object.defineProperties(Vq.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.imageRenderer){var H,Z;return((H=this.data)==null?void 0:(Z=H.imageRenderer)==null?void 0:Z.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var G;if((G=this.data)==null?0:G.imageRenderer){var H;return(H=_.X(this.data.imageRenderer[this.selectedThumbnailIndex],hi0))==null?void 0:H.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var G=this,H,Z,Q,p=(Q=(H=this.data)==null?void 0:(Z=H.imageRenderer)==null?void 0:Z.map(function(l,q){return{productDetailsThumbnailRenderer:Object.assign({},_.X(l,hi0),{index:q,isSelected:q===G.selectedThumbnailIndex})}}))!=null?Q:[];
return Object.assign({},this.data,{imageRenderer:p})}}});
Vq.prototype.updateOffset=Vq.prototype.updateOffset;Vq.prototype.dataChanged=Vq.prototype.dataChanged;Vq.prototype.onThumbnailSelected=Vq.prototype.onThumbnailSelected;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Vq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.uU.YtdHorizontalListBehavior),_.A("design:type",Object)],Vq.prototype,"ytdHorizontalListBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Vq.prototype,"componentBehavior",void 0);_.N([_.v([_.V6.YtActionHandlerBehavior]),_.A("design:type",Object)],Vq.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Vq.prototype,"data",void 0);_.N([_.h({value:"$.items.children"}),_.A("design:type",String)],Vq.prototype,"itemsPath",void 0);_.N([_.h({value:3}),_.A("design:type",Number)],Vq.prototype,"initialCount",void 0);
_.N([_.q6("#items"),_.A("design:type",Object)],Vq.prototype,"items",void 0);_.N([_.h(),_.A("design:type",Object)],Vq.prototype,"selectedThumbnailIndex",void 0);_.N([_.h(),_.A("design:type",Object)],Vq.prototype,"hoverThumbnail",void 0);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Vq.prototype,"showThumbnails",null);
_.N([_.lq("ytd-product-details-thumbnail-renderer-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Number]),_.A("design:returntype")],Vq.prototype,"onThumbnailSelected",null);_.N([_.z("data","selectedThumbnailIndex","hoverThumbnail"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vq.prototype,"thumbnailDetails",null);_.N([_.z("data","selectedThumbnailIndex"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vq.prototype,"populatedData",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vq.prototype,"dataChanged",null);_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vq.prototype,"updateOffset",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Vq);
_.m(Vq,"ytd-product-details-image-carousel-renderer",function(){if(JNI!==void 0)return JNI;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return JNI=G},{mode:_.LH("kevlar_poly_si_batch_j079")?1:2});var k4Y;var $8=function(){return _.C.apply(this,arguments)||this};
_.T($8,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],$8.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$8.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],$8);
_.m($8,"ytd-product-details-offer-renderer",function(){if(k4Y!==void 0)return k4Y;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return k4Y=G},{mode:1});var DUN;var X3=function(){var G=_.C.apply(this,arguments)||this;G.isOffersHidden=!0;return G};
_.T(X3,_.C);X3.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var G,H=_.X((G=this.data)==null?void 0:G.viewOffersButton,_.Yl);H&&this.ytRendererBehavior.logExplicitClick(H)};
X3.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.u4.Object.defineProperties(X3.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q;return(Z=_.X((G=this.data)==null?void 0:(H=G.offers)==null?void 0:H[0],atq))==null?void 0:(Q=Z.offerData)==null?void 0:Q.vendorLogoUrl}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],X3.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],X3.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],X3.prototype,"isOffersHidden",void 0);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],X3.prototype,"firstOfferVendorLogoUrl",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],X3);
_.m(X3,"ytd-product-details-offers-container-renderer",function(){if(DUN!==void 0)return DUN;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return DUN=G},{mode:1});var dU0;var ed0;var cq=function(){return _.C.apply(this,arguments)||this};
_.T(cq,_.C);cq.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
cq.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.xk(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
cq.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.xk(this,"ytd-product-details-variant-image-unselect")};
_.u4.Object.defineProperties(cq.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 G;return((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.data)==null?void 0:G.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((H=this.data)==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((Z=this.data)==null?void 0:Z.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var G;if(((G=this.data)==null?void 0:G.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var G,H;return this.isUnavailable?(G=this.data)==null?void 0:G.variantOptionUnavailableAccessibilityLabel:(H=this.data)==null?void 0:H.variantOptionAccessibilityLabel}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],cq.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cq.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],cq.prototype,"displayType",void 0);
_.N([_.z("displayType","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cq.prototype,"isImageButton",null);_.N([_.z("displayType","data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cq.prototype,"isPillButton",null);_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cq.prototype,"isActive",null);
_.N([_.z("data"),_.h({reflectToAttribute:!0}),_.A("design:type",Boolean),_.A("design:paramtypes",[])],cq.prototype,"isUnavailable",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],cq.prototype,"thumbnailDetails",null);_.N([_.z("isUnavailable","data"),_.A("design:type",Object),_.A("design:paramtypes",[])],cq.prototype,"accessibilityLabel",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],cq);
_.m(cq,"ytd-product-details-variant-option-renderer",function(){if(ed0!==void 0)return ed0;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ed0=G},{mode:1});var nYy;var Tu=function(){var G=_.C.apply(this,arguments)||this;G.variantsExpanded=!1;G.hideShowMoreLessVariantButton=!0;G.initialized=!1;G.computeVariantsDebouncer=null;G.computeVariants=function(H){H=H===void 0?!1:H;G.variantsExpanded||G.showOptions()||!H||(G.variantsExpanded=!0);if(G.variantsExpanded){H=_.I(G.items.children);for(var Z=H.next();!Z.done;Z=H.next())Z.value.hidden=!1}G.initialized=!0};
return G};
_.T(Tu,_.C);_.g=Tu.prototype;_.g.ready=function(){var G=this;setTimeout(function(){G.computeVariants(!0)})};
_.g.showOptions=function(){for(var G=_.I(this.items.children),H=G.next();!H.done;H=G.next())H.value.hidden=!0;var Z=this.container.getBoundingClientRect().width,Q=0,p=G=0;H=!1;for(var l=_.I(this.items.children),q=l.next();!q.done;q=l.next()){q=q.value;q.hidden=!1;var u=q.getBoundingClientRect().width;if(Q+u<Z)Q+=u;else if(++p<2)Q=u;else break;G+=1;q.hasAttribute("is-active")&&(H=!0)}for(Z=G;Z<this.items.children.length;Z++)this.items.children[Z].hidden=!0;this.hideShowMoreLessVariantButton=G===this.items.children.length;
return H};
_.g.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.u2(this.computeVariantsDebouncer,_.FA.after(100),this.computeVariants)};
_.g.onShowMoreLessVariantsButtonClick=function(){var G;(G=this.data)!=null&&G.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.g.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.u4.Object.defineProperties(Tu.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.variantOptionRenderers)==null?void 0:H.find(function(l){return _.X(l,im0).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),Q,p;
return(p=(Q=_.X(Z,im0))==null?void 0:Q.name)!=null?p:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.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"}}}});
Tu.prototype.debouncedComputeVariants=Tu.prototype.debouncedComputeVariants;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Tu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Tu.prototype,"componentBehavior",void 0);_.N([_.v(_.hS),_.A("design:type",Object)],Tu.prototype,"ironResizableBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Tu.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Tu.prototype,"variantsExpanded",void 0);_.N([_.h(),_.A("design:type",Object)],Tu.prototype,"hideShowMoreLessVariantButton",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Tu.prototype,"initialized",void 0);_.N([_.q6("#items"),_.A("design:type",HTMLDivElement)],Tu.prototype,"items",void 0);_.N([_.q6("#container"),_.A("design:type",HTMLDivElement)],Tu.prototype,"container",void 0);
_.N([_.q6("#more-variants-button"),_.A("design:type",HTMLElement)],Tu.prototype,"moreVariantsButton",void 0);_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],Tu.prototype,"selectedOptionName",null);_.N([_.gx("data","variantsExpanded"),_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tu.prototype,"debouncedComputeVariants",null);
_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],Tu.prototype,"displayType",null);_.N([_.z("displayType"),_.A("design:type",Object),_.A("design:paramtypes",[])],Tu.prototype,"variantItemsClassname",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Tu);
_.m(Tu,"ytd-product-details-variant-renderer",function(){if(nYy!==void 0)return nYy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return nYy=G},{mode:1});var fy=function(){return _.C.apply(this,arguments)||this};
_.T(fy,_.C);
fy.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"}}}};
_.u4.Object.defineProperties(fy.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(H=_.X((G=this.data)==null?void 0:G.offersContainerRenderer,OmY))==null?void 0:H.offers;return Z!==void 0&&(Z==null?void 0:Z.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 G,H,Z;return((Z=(G=this.data)==null?void 0:(H=G.variants)==null?void 0:H.map(function(Q){var p,l;Q=(l=(p=_.X(Q,CoN))==null?void 0:p.variantOptionRenderers)==null?void 0:l.find(function(u){var B;return((B=_.X(u,im0))==null?void 0:B.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var q;return(q=_.X(Q,im0))==null?void 0:q.name}).filter(function(Q){return typeof Q==="string"}))!=null?Z:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var G,H,Z,Q=(H=_.X((G=this.data)==null?void 0:G.shoppingFlaggingRenderer,y6O))==null?void 0:(Z=H.reportButton)==null?void 0:Z.buttonRenderer;if(Q)return{text:Q.text,command:Q.command,icon:{iconType:"FLAG"},accessibilityData:Q.accessibilityData,trackingParams:Q.trackingParams,loggingDirectives:Q.loggingDirectives}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],fy.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fy.prototype,"data",void 0);_.N([_.q6("#image-carousel-renderer"),_.A("design:type",Object)],fy.prototype,"imageCarouselRenderer",void 0);
_.N([_.q6("#hero-offer-renderer"),_.A("design:type",Object)],fy.prototype,"productDetailsHeroOfferRenderer",void 0);_.N([_.q6("#variants"),_.A("design:type",Object)],fy.prototype,"productDetailsVariantRenderer",void 0);_.N([_.q6("#offers"),_.A("design:type",Object)],fy.prototype,"productDetailsOffersContainerRenderer",void 0);_.N([_.q6("#description-renderer"),_.A("design:type",Object)],fy.prototype,"productDetailsDescriptionRenderer",void 0);
_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fy.prototype,"showPurchaseData",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fy.prototype,"showHeroOfferRenderer",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fy.prototype,"showBrandText",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fy.prototype,"showOffers",null);
_.N([_.z("showOffers","showPurchaseData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fy.prototype,"showBuySeparator",null);_.N([_.z("showOffers","showPurchaseData"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],fy.prototype,"showBuyCard",null);_.N([_.z("data"),_.A("design:type",String),_.A("design:paramtypes",[])],fy.prototype,"selectedVariantsText",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],fy.prototype,"shoppingReportingButtonData",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],fy);
_.m(fy,"ytd-product-details-renderer",function(){if(dU0!==void 0)return dU0;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return dU0=G},{mode:1});var V70;var $Ud;var XO4;var vq=function(){return _.C.apply(this,arguments)||this};
_.T(vq,_.C);vq.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.u4.Object.defineProperties(vq.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vq.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],vq.prototype,"formattedAmount",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vq.prototype,"ariaLabel",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data.style"),_.A("design:type",String),_.A("design:paramtypes",[])],vq.prototype,"vcBalanceWidgetStyle",null);_.N([_.fH({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],vq);
_.m(vq,"yt-vc-balance-renderer",function(){if(XO4===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;$Ud===void 0&&($Ud=document.createElement("template"));var Q=$Ud;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);XO4=G}G=XO4;return G},{mode:2});_.eQ("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Wq=function(){return _.C.apply(this,arguments)||this};
_.T(Wq,_.C);_.u4.Object.defineProperties(Wq.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:""}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Wq.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Wq.prototype,"data",void 0);_.N([_.h({selectorArgs:["data.vcBalanceEntityKey"],selector:function(G,H){return _.Hv(G.entities,"vcBalanceEntity",H)}}),
_.A("design:type",Object)],Wq.prototype,"vcBalanceEntity",void 0);_.N([_.z("vcBalanceEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],Wq.prototype,"formattedAmount",null);_.N([_.z("vcBalanceEntity"),_.A("design:type",String),_.A("design:paramtypes",[])],Wq.prototype,"vcBalanceAriaLabel",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Wq);
_.m(Wq,"ytd-vc-balance-renderer",function(){if(V70!==void 0)return V70;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return V70=G},{mode:1});var cN4;var zu=function(){var G=_.C.apply(this,arguments)||this;G.rotation=0;G.isReloading=!1;return G};
_.T(zu,_.C);zu.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
zu.prototype.reset=function(){this.hostElement.style.opacity=""};
zu.prototype.close=function(){var G=this;return _.S(function(H){if(H.nextAddress==1)return H.yield(G.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);G.hostElement.style.opacity="0";_.K0(H)})};
zu.prototype.rotationChanged=zu.prototype.rotationChanged;_.N([_.h(),_.A("design:type",Object)],zu.prototype,"rotation",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],zu.prototype,"isReloading",void 0);_.N([_.q6("#icon"),_.A("design:type",HTMLElement)],zu.prototype,"icon",void 0);_.N([_.gx("rotation"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zu.prototype,"rotationChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-refresh"})],zu);
_.m(zu,"ytd-refresh",function(){if(cN4!==void 0)return cN4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cN4=G},{mode:1});var T07;var Ky=function(){return _.C.apply(this,arguments)||this};
_.T(Ky,_.C);Ky.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"}}}};
Ky.prototype.dataChanged=function(){if(this.data){var G=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var H=_.N$(this.data.banner.thumbnails,this.hostElement.clientWidth);H&&(H.indexOf("//")===0&&(H="https:"+H),this.hasBannerArt=!0,_.ZI(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+H+")"}))}this.hasBannerArt!==G&&_.F9(this.hostElement).querySelector("#header").fire("iron-resize")}};
Ky.prototype.updateSelectedFromBinding=function(G){this.selected=G.detail.value};
Ky.prototype.dataChanged=Ky.prototype.dataChanged;_.N([_.v(Uax),_.A("design:type",Object)],Ky.prototype,"ytdTabbedHeaderBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.xO),_.A("design:type",Object)],Ky.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Ky.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Ky.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ky.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],Ky.prototype,"selected",void 0);_.N([_.h(),_.A("design:type",Boolean)],Ky.prototype,"active",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Ky.prototype,"hasBannerArt",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ky.prototype,"dataChanged",null);_.N([_.O({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Ky);
_.m(Ky,"ytd-interactive-tabbed-header-renderer",function(){if(T07!==void 0)return T07;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return T07=G},{mode:1});var fMM;var Mb=function(){return _.C.apply(this,arguments)||this};
_.T(Mb,_.C);Mb.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Mb.prototype.computeActionsAlignment=function(G){return(G==null?void 0:G.actionsAlignment)||""};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Mb.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.A("design:type",String)],Mb.prototype,"actionsAlignment",void 0);_.N([_.O({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Mb);
_.m(Mb,"ytd-page-footer-renderer",function(){if(fMM!==void 0)return fMM;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fMM=G},{mode:1});var vY2;var W0M;var j3=function(){var G=_.C.apply(this,arguments)||this;G.isEditing=!1;G.useSlot=!1;G.isMultiline=!1;return G};
_.T(j3,_.C);_.g=j3.prototype;_.g.onKeydown=function(G){if(G.keyCode===13&&!this.isMultiline)this.onSave();else if(G.keyCode===27)this.onCancel()};
_.g.computeComponentStyle=function(G){return(G==null?0:G.style)?G.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.g.computeisMultiline=function(G){if(this.multilineOverride!==void 0)return this.multilineOverride;var H,Z;return!!(G==null?0:(H=G.formField)==null?0:(Z=H.textInputFormFieldRenderer)==null?0:Z.isMultiline)};
_.g.computeTextDisplayed=function(G,H){if(G)return G;if(H)return H};
_.g.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.g.onSave=function(){if(this.textForm.validate()){this.textForm.save();var G=this.textForm.value;if(G)this.set("data.textDisplayed",_.aq(G));else{var H;((H=this.data)==null?0:H.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.sp("inline-form-changed",this.data));this.isEditing=!1}};
_.g.onCancel=function(){var G=_.yn(this.data.textDisplayed);G===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(G);this.isEditing=!1};
j3.prototype.onKeydown=j3.prototype.onKeydown;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],j3.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],j3.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],j3.prototype,"isEditing",void 0);_.N([_.h(),_.A("design:type",Object)],j3.prototype,"useSlot",void 0);_.N([_.h(),_.A("design:type",Boolean)],j3.prototype,"multilineOverride",void 0);_.N([_.h(),_.A("design:type",Boolean)],j3.prototype,"enableOverlayTheme",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.A("design:type",String)],j3.prototype,"componentStyle",void 0);
_.N([_.h({computed:"computeisMultiline(data)"}),_.A("design:type",Object)],j3.prototype,"isMultiline",void 0);_.N([_.q6("#text-form"),_.A("design:type",Object)],j3.prototype,"textForm",void 0);_.N([_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],j3.prototype,"onKeydown",null);_.N([_.O({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],j3);
_.m(j3,"ytd-inline-form-renderer",function(){if(W0M!==void 0)return W0M;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return W0M=G},{mode:1});var zd7;var Pq=function(){var G=_.C.apply(this,arguments)||this;G.previousSelectValue=void 0;G.selectedItemMessage=void 0;return G};
_.T(Pq,_.C);Pq.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Pq.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var G,H,Z,Q,p=(G=this.data)==null?void 0:(H=G.dropdown)==null?void 0:(Z=H.dropdownRenderer)==null?void 0:(Q=Z.entries)==null?void 0:Q.map(function(u){return u.privacyDropdownItemRenderer});
G=_.I(p!=null?p:[]);for(H=G.next();!H.done;H=G.next())if((H=H.value)&&H.int32Value===this.selectedValue){this.selectedItemMessage=H.itemMessage;break}}else this.selectedItemMessage=void 0;var l;(l=this.onValueChanged)==null||l.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var q;(q=this.data)!=null&&q.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Pq.prototype.onValueChangedForSelectedValue=function(G){this.selectedValue=G.detail.value};
Pq.prototype.selectedValueChanged=Pq.prototype.selectedValueChanged;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Pq.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Pq.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Pq.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],Pq.prototype,"theme",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Number)],Pq.prototype,"selectedValue",void 0);_.N([_.h(),_.A("design:type",Function)],Pq.prototype,"onValueChanged",void 0);
_.N([_.Jv("selectedValue"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pq.prototype,"selectedValueChanged",null);_.N([_.O({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Pq);
_.m(Pq,"ytd-dropdown-form-field-renderer",function(){if(zd7!==void 0)return zd7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zd7=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var K00;var r1=function(){return _.C.apply(this,arguments)||this};
_.T(r1,_.C);_.u4.Object.defineProperties(r1.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var G=[],H=_.I(this.data||[]),Z=H.next();!Z.done;Z=H.next())(Z=_.X(Z.value,oAq))&&G.push(Z);return G}}});
_.N([_.h(),_.A("design:type",Array)],r1.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],r1.prototype,"byline",null);_.N([_.O({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],r1);
_.m(r1,"ytd-playlist-byline-renderer",function(){if(K00!==void 0)return K00;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return K00=G},{mode:1});var M7q;var w1=function(){var G=_.C.apply(this,arguments)||this;G.rtlBullet=_.V("web_playlist_stats_rtl_bullet_icon_killswitch");G.modern=_.V("web_modern_buttons");G.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return G};
_.T(w1,_.C);_.g=w1.prototype;_.g.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"}}}}};
_.g.attached=function(){};
_.g.computeIsCustomThumbnail=function(G){return G?!!G.playlistCustomThumbnailRenderer:!1};
_.g.onYtNavigate=function(G,H){if(H&&H.actions&&H.actions.indexOf("shuffle")>-1){G=_.tp().resolve(_.H9);var Z=H.tempData||{};Z.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);H.tempData=Z;G.isShuffleNextPlaylist=!0}};
_.g.onUpdatePlaylistAction=function(G){var H;G=(H=_.X(G,_.ita))==null?void 0:H.updatedRenderer;if(H=_.X(G,wDU))this.data=H};
_.g.computeStyleType=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.g.computeThumbnailWidth=function(G){return G==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.g.computeHideThumbnailAria=function(G){if(G==null?0:G.thumbnailOverlays)for(var H=0;H<G.thumbnailOverlays.length;H++){var Z=void 0;if((Z=G.thumbnailOverlays[H])==null?0:Z.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
w1.prototype.onYtNavigate=w1.prototype.onYtNavigate;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],w1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],w1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],w1.prototype,"ytComponentBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],w1.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],w1.prototype,"rtlBullet",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.A("design:type",String)],w1.prototype,"styleType",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.A("design:type",Number)],w1.prototype,"thumbnailWidth",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],w1.prototype,"modern",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.A("design:type",Boolean)],w1.prototype,"isCustomThumbnail",void 0);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],w1.prototype,"onYtNavigate",null);_.N([_.O({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],w1);
_.m(w1,"ytd-playlist-sidebar-primary-info-renderer",function(){if(M7q!==void 0)return M7q;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return M7q=G},{mode:1});var jy4;var hu=function(){return _.C.apply(this,arguments)||this};
_.T(hu,_.C);hu.prototype.computeOwnerVisibility=function(G){return!(!G.videoOwner&&!G.button)};
hu.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],hu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],hu.prototype,"data",void 0);_.N([_.O({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],hu);
_.m(hu,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(jy4!==void 0)return jy4;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return jy4=G},{mode:1});var PIy;var Cy=function(){var G=_.C.apply(this,arguments)||this;G.expanded=!1;G.isCompact=!1;return G};
_.T(Cy,_.C);_.g=Cy.prototype;_.g.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.g.dataChanged=function(){this.data&&_.Is(_.F9(this.text),_.x_t(_.YPN,_.yn(this.data.text||null)))};
_.g.computeAutoScrollEnabled=function(G,H){return G&&!H};
_.g.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.g.toggleOnTap=function(){this.expanded=!this.expanded};
Cy.prototype.expandedChanged=Cy.prototype.expandedChanged;Cy.prototype.dataChanged=Cy.prototype.dataChanged;_.N([_.v(_.$7U),_.A("design:type",Object)],Cy.prototype,"ytdAutoScrollBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Cy.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Cy.prototype,"expanded",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Cy.prototype,"isCompact",void 0);_.N([_.h({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.A("design:type",Boolean)],Cy.prototype,"autoScrollEnabled",void 0);_.N([_.q6("#text"),_.A("design:type",Object)],Cy.prototype,"text",void 0);_.N([_.q6("#expander-icon"),_.A("design:type",Object)],Cy.prototype,"expanderIcon",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cy.prototype,"dataChanged",null);_.N([_.gx("expanded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cy.prototype,"expandedChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Cy);
_.m(Cy,"ytd-channel-legal-info-renderer",function(){if(PIy!==void 0)return PIy;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return PIy=G},{mode:1});var rNI;var wOO=_.Zg("DOWNLOAD",{},"Download"),hdM=_.Zg("DOWNLOADING",{},"Downloading"),CIO=_.Zg("DOWNLOADED",{},"Downloaded"),iD=function(){var G=_.C.apply(this,arguments)||this;G.downloadProgress=0;G.isDownloadComplete=!1;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.T(iD,_.C);_.g=iD.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.dataChanged=function(){var G;(G=this.data)!=null&&G.tooltip||(G=_.z9(_.mm().getState(),this.playlistId),this.updateButtonState(G))};
_.g.computePlaylistId=function(G){return G};
_.g.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.g.updateButtonState=function(G){if(this.data&&(this.data.tooltip!==hdM||!_.uX(G))){this.isDownloadComplete=!1;switch(G){case "TRANSFER_STATE_UNKNOWN":G=wOO;var H="OFFLINE_DOWNLOAD";var Z="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":G=CIO;H="OFFLINE_PIN";Z="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":G=hdM;H="OFFLINE_DOWNLOADING_ZERO";Z="ACTION_REMOVE_WITH_PROMPT";
break;default:G=wOO,H="OFFLINE_DOWNLOAD",Z="ACTION_ADD"}var Q=Object.assign({},this.data);Q.tooltip=G;Q.accessibilityData={accessibilityData:{label:G}};Q.icon={iconType:H};Q.size="SIZE_DEFAULT";_.X(Q.command,_.lP)&&(_.X(Q.command,_.lP).action=Z);this.set("data",Q)}};
_.g.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var G="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?G="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?G="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?G="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?G="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?G="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(G="OFFLINE_PIN",this.isDownloadComplete=!0);var H;G!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.tooltip=hdM,H.accessibilityData={accessibilityData:{label:hdM}},H.icon={iconType:G},_.X(H.command,_.lP)&&(_.X(H.command,_.lP).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
iD.prototype.updateProgress=iD.prototype.updateProgress;iD.prototype.onTransferStateChanged=iD.prototype.onTransferStateChanged;iD.prototype.dataChanged=iD.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],iD.prototype,"ytdReduxBehavior",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],iD.prototype,"forceIconButton",void 0);
_.N([_.h({value:!0}),_.A("design:type",Boolean)],iD.prototype,"forceIconOnly",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],iD.prototype,"overrides",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],iD.prototype,"buttonTooltipPosition",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],iD.prototype,"styleActionButton",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],iD.prototype,"disableTextTransform",void 0);
_.N([_.h({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.A("design:type",String)],iD.prototype,"playlistId",void 0);_.N([_.h(),_.A("design:type",Object)],iD.prototype,"data",void 0);_.N([_.h({selector:_.UZu,selectorArgs:["playlistId"]}),_.A("design:type",Object)],iD.prototype,"downloadProgress",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],iD.prototype,"isDownloadComplete",void 0);
_.N([_.h({selector:_.z9,selectorArgs:["playlistId"]}),_.A("design:type",String)],iD.prototype,"transferState",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],iD.prototype,"showTooltips",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],iD.prototype,"sendCommandWhenDisabled",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],iD.prototype,"disabled",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iD.prototype,"dataChanged",null);_.N([_.Jv("transferState"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iD.prototype,"onTransferStateChanged",null);_.N([_.Jv("downloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iD.prototype,"updateProgress",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],iD);
_.m(iD,"ytd-download-playlist-button-renderer",function(){if(rNI!==void 0)return rNI;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rNI=G},{mode:1});var iqq;_.RX(_.klx,"thumbnail-overlay-button-view-model",{props:{data:_.b3,lockupExperiments:_.b3}});var OX=function(){var G=_.C.apply(this,arguments)||this;G.isSquare=!1;G.isVertical=!1;return G};
_.T(OX,_.C);OX.prototype.computeIsSquare=function(G){return G!=null&&G.thumbnail?k8U(G.thumbnail)==="SQUARE":!1};
OX.prototype.computeIsVertical=function(G){return G!=null&&G.thumbnail?k8U(G.thumbnail)==="VERTICAL":!1};
OX.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],OX.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.A("design:type",Object)],OX.prototype,"isSquare",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.A("design:type",Object)],OX.prototype,"isVertical",void 0);
_.N([_.h(),_.A("design:type",Object)],OX.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],OX);
_.m(OX,"ytd-hero-playlist-thumbnail-renderer",function(){if(iqq!==void 0)return iqq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iqq=G},{mode:1});var al=function(){var G=_.C.apply(this,arguments)||this;G.isDarkTheme=!1;G.isUltraWide=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return G};
_.T(al,_.C);_.g=al.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.tp();var G;(G=_.tp().resolve(_.Jp(_.Kc)))!=null&&(G.headerElement=this.hostElement)};
_.g.detached=function(){var G;(G=_.tp().resolve(_.Jp(_.Kc)))!=null&&(G.headerElement=void 0)};
_.g.onUpdateHeader=function(G){(G=G.detail)&&this.set("data",G)};
_.g.computeTextDisplayed=function(G){if(G)return G.textDisplayed?G.textDisplayed:G.placeholder};
_.g.gradientColorToLinearGradientStop=function(G){var H=this.isDarkTheme?G.darkThemeColor:G.lightThemeColor;return H?_.c$(H)+" "+((G==null?void 0:G.startLocation)||0)*100+"%":"transparent"};
_.g.onWindowResize=function(){var G;((G=this.data)==null?0:G.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.g.onIronResize=function(G){this.isUltraWide=!G.detail.value};
_.g.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.g.onUpdatePlaylistName=function(G){var H=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},G.detail.value));_.q2(this,function(){var Z;(Z=H.editableTitle)==null||Z.resize()})};
_.g.onUpdatePlaylistDescription=function(G){var H=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},G.detail.value));_.q2(this,function(){var Z;(Z=H.editableDescriptionInlineExpander)==null||Z.resize()})};
_.g.getCinematicData=function(G){return _.X(G==null?void 0:G.cinematicContainer,_.sX)};
_.u4.Object.defineProperties(al.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 G,H=(G=this.getCinematicData(this.data))==null?void 0:G.config;return(G=this.isDarkTheme?H==null?void 0:H.darkThemeBackgroundColor:H==null?void 0:H.lightThemeBackgroundColor)?"background-color:"+_.X9(G)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var G;return _.X((G=this.data)==null?void 0:G.descriptionForm,r6_)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var G=this,H,Z,Q;return"background:linear-gradient(to bottom, "+(((Q=(H=this.getCinematicData(this.data))==null?void 0:(Z=H.gradientColorConfig)==null?void 0:Z.map(function(p){return G.gradientColorToLinearGradientStop(p)}))==null?void 0:Q.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var G;return _.yn((G=this.data)==null?void 0:G.descriptionTapText)}}});
al.prototype.onUpdateHeader=al.prototype.onUpdateHeader;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],al.prototype,"actionHandlerBehavior",void 0);_.N([_.q6("#description-inline-expander"),_.A("design:type",Object)],al.prototype,"descriptionInlineExpander",void 0);
_.N([_.q6("#editable-description-inline-expander"),_.A("design:type",Object)],al.prototype,"editableDescriptionInlineExpander",void 0);_.N([_.h(),_.A("design:type",Object)],al.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],al.prototype,"isUltraWide",void 0);_.N([_.q6("#editable-title-display"),_.A("design:type",Object)],al.prototype,"editableTitle",void 0);_.N([_.z("isUltraWide"),_.A("design:type",Object),_.A("design:paramtypes",[])],al.prototype,"maxDescriptionLines",null);
_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],al.prototype,"noCinematicData",null);_.N([_.lq("yt-new-playlist-header"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],al.prototype,"onUpdateHeader",null);_.N([_.z("data","isDarkTheme"),_.A("design:type",Object),_.A("design:paramtypes",[])],al.prototype,"backgroundStyle",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],al.prototype,"descriptionFormData",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],al.prototype,"getDropdownTheme",null);_.N([_.z("data","isDarkTheme"),_.A("design:type",String),_.A("design:paramtypes",[])],al.prototype,"gradientStyle",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],al.prototype,"descriptionTapText",null);
_.N([_.O({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],al);
_.m(al,"ytd-playlist-header-renderer",function(){if(vY2!==void 0)return vY2;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vY2=G},{mode:_.LH("kevlar_poly_si_batch_j078")?1:2});var OqI;var aM7;var yq=function(){return _.C.apply(this,arguments)||this};
_.T(yq,_.C);yq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],yq.prototype,"data",void 0);_.N([_.O({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],yq);
_.m(yq,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(aM7!==void 0)return aM7;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return aM7=G},{mode:1});var ol=function(){return _.C.apply(this,arguments)||this};
_.T(ol,_.C);
ol.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}}}}};
ol.prototype.computeUsePremiumShowStyle=function(G){if(!G||!G.items)return!1;for(var H=0;H<G.items.length;H++)if(_.X(G.items[H],wDU)){var Z=void 0;return((Z=_.X(G.items[H],wDU))==null?void 0:Z.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ol.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.A("design:type",Boolean)],ol.prototype,"usePremiumShowStyle",void 0);
_.N([_.O({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],ol);
_.m(ol,"ytd-playlist-sidebar-renderer",function(){if(OqI!==void 0)return OqI;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return OqI=G},{mode:1});var yN7;var oYd;var mU_=function(G,H,Z,Q,p,l,q,u){this.minWidth=G;this.minHeight=H;this.recommendedWidth=Z;this.recommendedHeight=Q;this.JSC$22466_maxFileSize=p;this.title=l;this.bannerGalleryTitle=q;this.channelId=u;this.picker_=null;G=_.BBW("yt-banner");H=G.addView;Z=(new c6O("youtubebanner")).addUploadMetadata("silo_id","19");Z.opts.ytMaxFileSize=this.JSC$22466_maxFileSize;Q=this.recommendedHeight;Z.opts.ytRecWidth=this.recommendedWidth;Z.opts.ytRecHeight=Q;H.call(G,Z);G.addView(new _.Tj);H=G.addView;Z=new _.Tj;
Z.opts.type="ytbanner";H.call(G,Z.JSC$10083_setLabel(this.bannerGalleryTitle));H=G.setTitle(this.title).setSize(1E3);H.urlParamMap_.set("thumbs","orig");Z=this.minWidth;Q=this.minHeight;if(isNaN(Z)||isNaN(Q))throw Error("gb`"+Z+"`"+Q);H.urlParamMap_.set("minSize",Z+"x"+Q);H.urlParamMap_.set("cropMode","ytcb");this.builder_=G};
mU_.prototype.open=function(){var G=this;return new _.T_(function(H,Z){_.rk4(G.builder_,function(Q){Q.action=="picked"?H(Q):Q.action=="cancel"&&Z(Error("Ko"))});
G.picker_&&G.picker_.dispose();G.picker_=G.builder_.build();G.picker_.setVisible(!0)})};
mU_.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var UU4=function(G){this.channelId=G};
UU4.prototype.upload=function(G){var H="";G.viewToken&&(H=G.viewToken[2].type);var Z=G.docs[0];G=Z.crop;H={channel_id:this.channelId,fife_url:Z.thumbnails[0].url,photo_id:Z.id,is_gallery_image:H=="ytbanner"};G&&(H.crop_top=G.top,H.crop_right=G.right,H.crop_bottom=G.bottom,H.crop_left=G.left);return _.tUb("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:H})};var mP=function(){var G=_.C.apply(this,arguments)||this;G.ariaLabel=null;return G};
_.T(mP,_.C);_.g=mP.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.detached=function(){this.picker&&this.picker.dispose()};
_.g.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.g.computeAriaLabel=function(G){return G};
_.g.onTap=function(){var G=this,H;if((H=this.data)==null||!H.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new mU_(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 Z;(Z=this.picker)==null||Z.open().then(function(Q){G.handleBannerPicked(Q)},function(){})}};
_.g.handleBannerPicked=function(G){var H=this;this.uploader||(this.uploader=new UU4(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(G).then(function(Z){H.handleBannerUploadSucceeded(Z)},function(Z){H.handleBannerUploadFailed(Z)})};
_.g.handleBannerUploadSucceeded=function(G){G&&G.errors?this.handleBannerUploadFailed(G):(_.N5(this.hostElement,"yt-banner-updated",G),this.message=null)};
_.g.handleBannerUploadFailed=function(G){this.message=G&&G.errors&&G.errors.length?G.errors[0]:null};
mP.prototype.dataChanged=mP.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],mP.prototype,"componentBehavior",void 0);_.N([_.v(_.iM),_.A("design:type",Object)],mP.prototype,"ironButtonState",void 0);_.N([_.h(),_.A("design:type",Object)],mP.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.A("design:type",Object)],mP.prototype,"ariaLabel",void 0);
_.N([_.h(),_.A("design:type",Object)],mP.prototype,"message",void 0);_.N([_.h(),_.A("design:type",Object)],mP.prototype,"picker",void 0);_.N([_.h(),_.A("design:type",Object)],mP.prototype,"uploader",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mP.prototype,"dataChanged",null);_.N([_.O({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],mP);
_.m(mP,"ytd-channel-banner-editor-renderer",function(){if(oYd!==void 0)return oYd;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return oYd=G},{mode:1});var Rd4;var N00=_.CM(["#"]),UX=function(){return _.C.apply(this,arguments)||this};
_.T(UX,_.C);UX.prototype.computeHrefWithDefault=function(G){return this.ytComponentBehavior.computeHref_(G,!0)||_.gb2(N00)};
UX.prototype.dataChanged=function(){var G=this.data;G&&G.targetId&&_.vL2(_.v9(),G.targetId,this.moreIcon)};
UX.prototype.dataChanged=UX.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],UX.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],UX.prototype,"data",void 0);_.N([_.q6("#more-icon"),_.A("design:type",Object)],UX.prototype,"moreIcon",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UX.prototype,"dataChanged",null);
_.N([_.O({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],UX);
_.m(UX,"ytd-channel-tagline-renderer",function(){if(Rd4!==void 0)return Rd4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Rd4=G},{mode:1});var ANy;var Rl=function(){return _.C.apply(this,arguments)||this};
_.T(Rl,_.C);_.g=Rl.prototype;_.g.ready=function(){var G=this;_.F9(this.hostElement).querySelector("#form").addEventListener("submit",function(H){G.onSubmit(H)})};
_.g.onDataChanged=function(){var G;((G=this.data)==null?0:G.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.g.onIconButtonKeydown=function(G){G.keyCode===13&&this.iconButton.click()};
_.g.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.g.openOnClickHandler=function(){this.input.focus()};
_.g.onSubmit=function(G){G.preventDefault();return!1};
_.g.submitOnEnterKeyUp=function(G){var H;if(G.keyCode===13&&((H=this.data)==null?0:H.expandedText)){G=this.data.endpoint;H=_.oN.unsafeClone(G);var Z;((Z=_.X(H==null?void 0:H.commandMetadata,_.HA))==null?0:Z.url)?(_.X(H.commandMetadata,_.HA).url=_.LT(_.X(H.commandMetadata,_.HA).url,"query",this.data.expandedText),_.X(H,_.gT)&&(_.X(H,_.gT).query=this.data.expandedText),_.N5(this.hostElement,"yt-navigate",{endpoint:H,tempData:{disableCache:!0}})):(Z=new _.C$("Error: Trying to navigate to an endpoint without url",
G),_.me(Z))}};
_.g.updateDataExpandedTextFromBinding=function(G){this.set("data.expandedText",G.detail.value)};
_.u4.Object.defineProperties(Rl.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Rl.prototype.onDataChanged=Rl.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.mla),_.A("design:type",Object)],Rl.prototype,"ytdExpandableInputBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Rl.prototype,"data",void 0);_.N([_.q6("#input"),_.A("design:type",Object)],Rl.prototype,"input",void 0);_.N([_.q6("#icon-button"),_.A("design:type",HTMLElement)],Rl.prototype,"iconButton",void 0);
_.N([_.h(),_.A("design:type",String),_.A("design:paramtypes",[])],Rl.prototype,"searchIcon",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Rl.prototype,"onDataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Rl);
var Da0=_.xQ()(Rl,"ytd-expandable-tab-renderer",function(){if(ANy===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);ANy=G}G=ANy;return G},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var xU2;var Nb=function(){var G=_.C.apply(this,arguments)||this;G.avatarSize=80;G.ariaLabel=_.Zg("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return G};
_.T(Nb,_.C);Nb.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Nb.prototype.computeHref=function(G){var H;return((H=_.X(G,_.Hx))==null?0:H.url)?this.componentBehavior.computeHref_(G):null};
Nb.prototype.onTap=function(){var G,H;(G=this.data)==null||!G.editAvatarServiceEndpoint||((H=_.X(this.data.editAvatarServiceEndpoint,_.Hx))==null?0:H.url)||_.tp().resolve(_.Dk).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.N([_.v(_.iM),_.A("design:type",Object)],Nb.prototype,"ironButtonState",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Nb.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Nb.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Nb.prototype,"avatarSize",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],Nb.prototype,"ariaLabel",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Nb);
_.m(Nb,"ytd-channel-avatar-editor",function(){if(xU2!==void 0)return xU2;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return xU2=G},{mode:1});var L0N=_.y(function(G){var H=G.data;var Z=G.noPadding;var Q=G.enableBanner;var p=G.cinematicContainerTopbarOffset;var l=G.allowCinematicContainerOverflow;var q=G.displayAsSidebar;G=G.className;_.yN(function(){H().tagManagerId&&(_.P9(H().tagManagerId,_.xI("GL")),XDU(H().tagManagerId))},"vUc8md");
var u=_.gu(eiq,function(){return H().pageHeaderEntityKey});
return _.J("yt-page-header-renderer",{class:_.bb("pageHeaderRendererHost",G)},_.J(_.SP,{data:function(){var B;return((B=u())==null?0:B.header)?u().header:(q==null?0:q())&&H().sidebarContent?H().sidebarContent:H().content}},{pageHeaderViewModel:function(B){return _.J(_.suj,{data:B.data,
noPadding:Z,enableBanner:Q,cinematicContainerTopbarOffset:p,allowCinematicContainerOverflow:l,displayAsSidebar:function(){return(q==null?void 0:q())&&H().enableSidebarView}})}}))},"Xm");
L0N.idomCompat=!0;_.RX(L0N,"yt-page-header-renderer",{props:{data:_.b3,noPadding:_.b3,enableBanner:_.b3,cinematicContainerTopbarOffset:_.b3,allowCinematicContainerOverflow:_.b3,displayAsSidebar:_.b3,className:_.b3}});_.RX(_.GS,"yt-image-banner-view-model",{props:{data:_.b3,isPositionRelative:_.b3}});_.RX(_.$Xt,"yt-tab-group-shape",{props:{shape:_.b3}});var EYM=_.KG.persistentPanelVisibleSelector,Au=function(){var G=_.C.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(H){return daq(H,function(){return void G.onSearchNavigate()})};
G.isRichGrid=!1;G.isConstrainedList=!1;G.richGridMiniMode=!1;G.richGridStyle="RICH_GRID_STYLE_UNKNOWN";G.isRichGridShorts=!1;G.responsiveSizing="COMPACT";G.disableGridStateAware=!1;G.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return G};
_.T(Au,_.C);_.g=Au.prototype;_.g.computeHeaderDisabled=function(G,H){return H||!G||this.tabsHidden};
_.g.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.g.computeIsRichGridShorts=function(G){return G==="RICH_GRID_STYLE_SHORTS_GRID"||G==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.g.computeImageBannerViewModel=function(){var G,H;return _.X((H=_.X((G=this.data)==null?void 0:G.content,_.DJR))==null?void 0:H.banner,_.q5T)};
_.g.computeHasCinematicContainer=function(){var G,H;return!((H=_.X((G=this.data)==null?void 0:G.content,_.DJR))==null||!H.background)};
_.g.handleHeaderResize=function(){var G=_.F9(this.hostElement).querySelector("#header");G&&_.N5(G,"iron-resize")};
_.g.handleInsertTabCommand=function(G){var H=_.X(G,ma7);H&&(H.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(Z){return Z.tabRenderer&&Z.tabRenderer.tabIdentifier===H.tabIdentifier})||this.splice("tabs",H.tabIndex||-1,0,H.tab))};
_.g.handleRefreshChannelTabAction=function(G){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===G&&_.N5(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.g.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.g.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.ZI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.g.observerRichGridSlimItemsPerRow=function(){_.ZI(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.g.updateCssVars=function(){this.richGridItemsPerRow&&_.ZI(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.eA("rich_grid_max_item_width",500))+16)-16+"px"})};
_.g.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.ZI(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.g.onDataChanged=function(){this.handleHeaderResize()};
_.g.onWindowResize=function(){this.handleHeaderResize()};
_.g.onFocusedChanged=function(G){(G=_.a_(G))&&G.is==="tp-yt-paper-tab"&&G.hasRipple()&&(G.getRipple().holdDown=!G.pointerDown&&G.focused)};
_.g.updateSelectedFromBinding=function(G){this.ytdTabbedHeaderBehavior.selected=G.detail.value};
_.g.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.u4.Object.defineProperties(Au.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:VcM(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.imageBannerViewModel)==null?void 0:G.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Au.prototype.onDataChanged=Au.prototype.onDataChanged;Au.prototype.updateCssVarsForResponsiveGrid=Au.prototype.updateCssVarsForResponsiveGrid;Au.prototype.updateCssVars=Au.prototype.updateCssVars;Au.prototype.observerRichGridSlimItemsPerRow=Au.prototype.observerRichGridSlimItemsPerRow;Au.prototype.observerRichGridItemsPerRow=Au.prototype.observerRichGridItemsPerRow;Au.prototype.persistentPanelVisibleChanged=Au.prototype.persistentPanelVisibleChanged;
_.N([_.v(_.xO),_.A("design:type",Object)],Au.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.v(Uax),_.A("design:type",Object)],Au.prototype,"ytdTabbedHeaderBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Au.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Au.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Au.prototype,"ytdReduxBehavior",void 0);_.N([_.q6("#tabs"),_.A("design:type",Object)],Au.prototype,"tabsElement",void 0);_.N([_.h(),_.A("design:type",Array)],Au.prototype,"tabs",void 0);_.N([_.h(),_.A("design:type",Object)],Au.prototype,"expandableCustomTabRenderable",void 0);
_.N([_.z("tabs.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],Au.prototype,"tabGroupShape",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Au.prototype,"isRichGrid",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Au.prototype,"isConstrainedList",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Object)],Au.prototype,"richGridMiniMode",void 0);_.N([_.h({selector:function(G){return G.ui.richGridStyle}}),
_.A("design:type",Object)],Au.prototype,"richGridStyle",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.A("design:type",Object)],Au.prototype,"isRichGridShorts",void 0);_.N([_.h({selector:_.cv}),_.A("design:type",Number)],Au.prototype,"richGridItemsPerRow",void 0);_.N([_.h({selector:function(G){return G.ui.richGridContainerWidth}}),
_.A("design:type",Number)],Au.prototype,"richGridContainerWidth",void 0);_.N([_.h({selector:_.KHv}),_.A("design:type",Number)],Au.prototype,"richGridSlimItemsPerRow",void 0);_.N([_.h(),_.A("design:type",Object)],Au.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Au.prototype,"responsiveSizing",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Au.prototype,"disableGridStateAware",void 0);
_.N([_.h({computed:"computeImageBannerViewModel(data)"}),_.A("design:type",Object)],Au.prototype,"imageBannerViewModel",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.A("design:type",Boolean)],Au.prototype,"hasCinematicContainer",void 0);_.N([_.h({selector:_.zGD,reflectToAttribute:!0}),_.A("design:type",Boolean)],Au.prototype,"guideIsVisibleButNotPersistent",void 0);
_.N([_.h({selector:EYM}),_.A("design:type",Boolean)],Au.prototype,"persistentPanelVisible",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],Au.prototype,"hasBanner",null);_.N([_.h({reflectToAttribute:!0}),_.z("imageBannerViewModel"),_.A("design:type",Object),_.A("design:paramtypes",[])],Au.prototype,"hasInsetBanner",null);
_.N([_.h({computed:"computeTabsHidden(tabs)",value:!0}),_.A("design:type",Boolean)],Au.prototype,"tabsHidden",void 0);_.N([_.gx("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Au.prototype,"persistentPanelVisibleChanged",null);_.N([_.gx("richGridItemsPerRow","isRichGrid"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Au.prototype,"observerRichGridItemsPerRow",null);
_.N([_.gx("richGridSlimItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Au.prototype,"observerRichGridSlimItemsPerRow",null);_.N([_.gx("richGridItemsPerRow","richGridMiniMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Au.prototype,"updateCssVars",null);
_.N([_.gx("richGridContainerWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Au.prototype,"updateCssVarsForResponsiveGrid",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Au.prototype,"onDataChanged",null);_.N([_.O({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Au);
_.m(Au,"ytd-tabbed-page-header",function(){if(yN7!==void 0)return yN7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return yN7=G},{mode:1});var Y_0;var x8=function(){return _.C.apply(this,arguments)||this};
_.T(x8,_.C);x8.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.ZI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.u4.Object.defineProperties(x8.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var G,H;return this.componentBehavior.computeIcon_(((H=_.X((G=this.data)==null?void 0:G.badge,_.VLN))==null?void 0:H.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=_.X((G=this.data)==null?void 0:G.badge,_.VLN))==null?void 0:H.label}}});
x8.prototype.observerRichGridItemsPerRow=x8.prototype.observerRichGridItemsPerRow;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],x8.prototype,"componentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],x8.prototype,"ytdReduxBehavior",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.X8}),_.A("design:type",Boolean)],x8.prototype,"richGridMiniMode",void 0);
_.N([_.h({selector:_.cv}),_.A("design:type",Number)],x8.prototype,"richGridItemsPerRow",void 0);_.N([_.h(),_.A("design:type",Object)],x8.prototype,"data",void 0);_.N([_.gx("richGridItemsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],x8.prototype,"observerRichGridItemsPerRow",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],x8.prototype,"badgeIconName",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],x8.prototype,"badgeLabel",null);_.N([_.O({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],x8);
_.m(x8,"ytd-member-hub-profile-renderer",function(){if(Y_0!==void 0)return Y_0;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Y_0=G},{mode:1});var F0d;var Ly=function(){return _.C.apply(this,arguments)||this};
_.T(Ly,_.C);Ly.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ly.prototype,"data",void 0);_.N([_.O({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Ly);
_.m(Ly,"ytd-settings-sidebar-renderer",function(){if(F0d!==void 0)return F0d;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return F0d=G},{mode:1});var bq7;var EX=function(){var G=_.C.apply(this,arguments)||this;G.expandableCustomTabRenderable=function(H){return daq(H,function(){return void G.onSearchNavigate()})};
return G};
_.T(EX,_.C);EX.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
EX.prototype.onSearchNavigate=function(){this.selected=void 0};
EX.prototype.onTabsChange=function(){var G,H=(G=this.tabs)==null?void 0:G.findIndex(function(Z){var Q;return Z==null?void 0:(Q=Z.tabRenderer)==null?void 0:Q.selected});
H!==void 0&&(this.selected=H)};
EX.prototype.onTabsActive=function(G){if(this.tabs!==void 0){var H,Z;(G=(H=this.tabs[G.detail.selected])==null?void 0:(Z=H.tabRenderer)==null?void 0:Z.endpoint)&&_.N5(this.hostElement,"yt-navigate",{endpoint:G})}};
_.u4.Object.defineProperties(EX.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:VcM(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
EX.prototype.onTabsChange=EX.prototype.onTabsChange;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.xO),_.A("design:type",Object)],EX.prototype,"ytdGridStateAwareBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],EX.prototype,"ytdGuideStateAwareBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],EX.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Array)],EX.prototype,"tabs",void 0);_.N([_.h(),_.A("design:type",Number)],EX.prototype,"selected",void 0);_.N([_.z("tabs.*"),_.A("design:type",Object),_.A("design:paramtypes",[])],EX.prototype,"tabGroupShape",null);_.N([_.h(),_.A("design:type",Object)],EX.prototype,"expandableCustomTabRenderable",void 0);
_.N([_.z("tabs"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],EX.prototype,"tabsEnabled",null);_.N([_.Jv("tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],EX.prototype,"onTabsChange",null);_.N([_.O({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],EX);
_.m(EX,"ytd-topic-channel-details-renderer",function(){if(bq7!==void 0)return bq7;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return bq7=G},{mode:1});var GO4;var Y8=function(){var G=_.C.apply(this,arguments)||this;G.disableGridStateAware=!1;return G};
_.T(Y8,_.C);Y8.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]]"}}}}}};
Y8.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Y8.prototype.updateCssVars=function(){_.ZI(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.eA("rich_grid_max_item_width",500))+16)-16+"px"})};
Y8.prototype.updateCssVars=Y8.prototype.updateCssVars;Y8.prototype.activeChanged=Y8.prototype.activeChanged;_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Y8.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Y8.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Y8.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Array)],Y8.prototype,"tabs",void 0);_.N([_.h(),_.A("design:type",Boolean)],Y8.prototype,"active",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Y8.prototype,"disableGridStateAware",void 0);
_.N([_.h({selector:_.cv}),_.A("design:type",Number)],Y8.prototype,"richGridItemsPerRow",void 0);_.N([_.h({selector:_.X8}),_.A("design:type",Boolean)],Y8.prototype,"richGridMiniMode",void 0);_.N([_.q6("ytd-carousel-item-renderer"),_.A("design:type",Object)],Y8.prototype,"carousel",void 0);_.N([_.gx("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Y8.prototype,"activeChanged",null);
_.N([_.gx("richGridItemsPerRow","richGridMiniMode"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Y8.prototype,"updateCssVars",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Y8);
_.m(Y8,"ytd-carousel-header-renderer",function(){if(GO4!==void 0)return GO4;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return GO4=G},{mode:1});var H0N;var ssy=_.CM(["https://www.google-analytics.com/analytics.js"]),F3=function(){var G=_.C.apply(this,arguments)||this;G.scriptAnalyticsAdded=!1;return G};
_.T(F3,_.C);F3.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var G,H=(G=this.data)==null?void 0:G.tagManagerId;H&&(_.P9(H,_.xI("GL")),XDU(H))};
F3.prototype.sendGoogleAnalyticsPageview=function(G){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var Z=_.Ry.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(Z)};
var H=window.ga;H("set","page",window.location.pathname);H.l=+new Date;H("set","forceSSL",!0);H("create",G,"'auto'");H("send","pageview")};
F3.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var G=_.z$("SCRIPT");G.name="ga-analytics";var H=_.VB(ssy);_.gJ(G,H);G.async=!0;_.F9(this.hostElement).appendChild(G)};
F3.prototype.dataChanged=F3.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],F3.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],F3.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],F3);
_.m(F3,"ytd-channel-metadata-renderer",function(){if(H0N!==void 0)return H0N;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return H0N=G},{mode:1});var Z0_;var Qs0;var bD=function(){var G=_.C.apply(this,arguments)||this;G.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"]);G.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"]);G.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return G};
_.T(bD,_.C);_.g=bD.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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_]]"}}}}}};
_.g.onUpdateElementsPerRowAction=function(G){G&&this.elementsPerRow!==G&&(this.elementsPerRow=G)};
_.g.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.g.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.g.computeAlertStyle_=function(G){return G};
_.g.observerElementsPerRow=function(){this.elementsPerRow&&_.ZI(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.g.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.g.requestElementsPerRow=function(){_.N5(this.hostElement,"yt-request-elements-per-row")};
bD.prototype.onIsVisibleChanged_=bD.prototype.onIsVisibleChanged_;bD.prototype.observerElementsPerRow=bD.prototype.observerElementsPerRow;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],bD.prototype,"actionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],bD.prototype,"data",void 0);_.N([_.h({value:6,reflectToAttribute:!0}),_.A("design:type",Number)],bD.prototype,"elementsPerRow",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],bD.prototype,"wrapButtons",void 0);_.N([_.h({value:_.xI("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.A("design:type",Boolean)],bD.prototype,"isMusic",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.A("design:type",String)],bD.prototype,"alertStyle",void 0);_.N([_.h({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.A("design:type",Function)],bD.prototype,"dismissBoundButtonTap_",void 0);_.N([_.h({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.A("design:type",Function)],bD.prototype,"acceptBoundButtonTap_",void 0);_.N([_.gx("elementsPerRow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bD.prototype,"observerElementsPerRow",null);_.N([_.gx("data.isVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bD.prototype,"onIsVisibleChanged_",null);_.N([_.fH({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],bD);
_.m(bD,"yt-alert-with-actions-renderer",function(){if(Qs0===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Z0_===void 0&&(Z0_=document.createElement("template"));var Q=Z0_;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Qs0=G}G=Qs0;return G},{mode:2});_.RX(_.y(function(G){function H(e){var n={};return _.J(_.Fe,{text:e,className:_.bb("ytPersonalGreetingViewModelHeadline",(n.ytPersonalGreetingViewModelHeadlineSmall=function(){return u()===48},n))})}
function Z(e,n){return _.J("span",{el:e,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},H(n))}
var Q=_.aX(_.$X(function(){var e;return(e=G.data())==null?void 0:e.rendererContext},void 0,void 0,void 0,!0)),p=_.IA("span"),l=_.IA("span"),q=function(){return G.data().canvasPromoData},u=function(){var e;
return(e=G.data().bannerHeight)!=null?e:56},B=_.I9(Q,{throttleMs:100}),t=_.I9(p,{throttleMs:100}),D=_.I9(l,{throttleMs:100}),d=function(){return t.width()-B.width()>1};
return _.J("yt-personal-greeting-view-model",{el:Q,"aria-hidden":d,class:_.bb(G.className,"ytPersonalGreetingViewModelHost"),style:_.pI({height:(0,_.A7)(function(){return d()?0:u()})})},_.J(_.k,{cond:function(){return G.data().avatar&&!(D.width()+(G.data().avatar?48:0)-B.width()>1)},
then:function(){return _.J(_.SP,{data:function(){return G.data().avatar}},{decoratedAvatarViewModel:function(e){return _.J(_.U5,{data:e.data,
className:_.bb("ytPersonalGreetingViewModelAvatar")})}})}}),_.J("h1",null,H(function(){var e;
return(q==null?void 0:(e=q())==null?void 0:e.headline)||(D.width()+(G.data().avatar?48:0)-B.width()>1?G.data().shorterGreeting:G.data().greeting)})),Z(l,function(){return G.data().greeting}),Z(p,function(){return G.data().shorterGreeting}))},"Ym"),"yt-personal-greeting-view-model",{props:{data:_.b3,
className:_.b3}});var Gd=function(){var G=_.C.apply(this,arguments)||this;G.hidden=!1;G.isConstrainedList=!1;G.responsiveSizing="COMPACT";G.attachedPlayers=_.V("kevlar_channel_trailer_multi_attach")?[]:void 0;G.player=null;G.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return G};
_.T(Gd,_.C);_.g=Gd.prototype;
_.g.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}}}}};
_.g.created=function(){var G=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){G.disposeMastheadAd()}]};
_.g.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new A62(this.refresh,this.contents))};
_.g.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.g.activeChanged=function(){var G=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=G)};
_.g.tabsChanged=function(){var G=this,H,Z;if(this.pageSubtype==="channels"||_.V("kevlar_tab_gestures_for_tabbed_header_data")&&((H=this.data)==null?0:(Z=H.header)==null?0:Z.carouselHeaderRenderer))this.tabGestures=new EAy(this.contents,this.contents,this.hostElement,this.header,function(q){G.ytdReduxBehavior.dispatch(q)});
var Q,p,l;H=(Q=this.data)==null?void 0:(p=Q.contents)==null?void 0:(l=p.twoColumnBrowseResultsRenderer)==null?void 0:l.tabs;this.tabGestures&&this.tabGestures.tabsChanged(H)};
_.g.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.g.engagementPanelsChanged=function(){var G=_.tp().resolve(_.iU);if(G){if(this.engagementPanels)for(var H=_.I(this.engagementPanels),Z=H.next();!Z.done;Z=H.next()){var Q=void 0;(Z=(Q=Z.value.identifier)==null?void 0:Q.tag)&&G.panelMap.delete(Z)}this.engagementPanels=[];var p;H=_.I(((p=this.data)==null?void 0:p.panels)||[]);for(p=H.next();!p.done;p=H.next()){p=_.X(p.value,_.tp4);var l=Z=void 0,q=void 0,u=void 0;if(Q=((Z=p)==null?void 0:Z.targetId)||((l=p)==null?void 0:l.panelIdentifier)||((q=p)==
null?void 0:(u=q.identifier)==null?void 0:u.tag))l=Z=void 0,(l=(Z=G).registerPanelContent)==null||l.call(Z,Q,{engagementPanelSectionListRenderer:p}),this.engagementPanels.push(p)}}};
_.g.onStampFinished=function(){var G=this;_.q2(this,function(){if(G.tabGestures){var H=G.tabGestures;if(H.scrollPositionNeedsUpdate){var Z=_.tp().resolve(_.Jp(_.o0)),Q;if((Q=H.selectedTab)!=null&&Q.title&&Z&&(Q=Z.getCurrentPage())){if(H.scrollPositionForTabs.has(H.selectedTab.title)){var p,l;Z=(l=(p=Z.getCurrentPage())==null?void 0:p.clientHeight)!=null?l:0;p=H.scrollPositionForTabs.get(H.selectedTab.title);Q.setScrollTop(p);Z>p+100&&(H.scrollPositionNeedsUpdate=!1)}else Q.setScrollTop(Math.min(H.lastVisitedTabScrollPosition!==
void 0?H.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,H.tabsStartAtInPx)),H.scrollPositionNeedsUpdate=!1;H.ytdReduxDispatch($a0(!1))}}}})};
_.g.loadPage_=function(G){this.initCsi();G&&(this.data=G);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.g.getTitle=function(G){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",G))return this.get("microformat.microformatDataRenderer.title",G);if(this.get("header.feedTabbedHeaderRenderer.title",G))return _.yn(this.get("header.feedTabbedHeaderRenderer.title",G));if(this.get("header.interactiveTabbedHeaderRenderer.title",G))return this.get("header.interactiveTabbedHeaderRenderer.title",G);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
G))return _.yn(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",G));var H,Z;return(G==null?0:(H=G.header)==null?0:(Z=H.pageHeaderRenderer)==null?0:Z.pageTitle)?G.header.pageHeaderRenderer.pageTitle:""};
_.g.updateTitle=function(G){_.N5(this.hostElement,"yt-update-title",this.getTitle(G))};
_.g.initCsi=function(){_.J60(this.pageSubtype||"browse",["ol","cpt"])};
_.g.getPlayer=function(){if(_.V("kevlar_channel_trailer_multi_attach")){for(var G=_.I(this.attachedPlayers),H=G.next();!H.done;H=G.next())if(H=H.value,H.isConnected||_.FG(this.hostElement,H))return H;return null}return this.player};
_.g.getPlayerContainer=function(){return null};
_.g.onPlayerAttached=function(G,H){_.V("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(H):this.player=H};
_.g.onPlayerDetached=function(G,H){_.V("kevlar_channel_trailer_multi_attach")?(G=this.attachedPlayers.indexOf(H),G<0||this.attachedPlayers.splice(G,1)):this.player=null};
_.g.getServiceTrackingParams=function(){var G,H;return((G=this.data)==null?void 0:(H=G.responseContext)==null?void 0:H.serviceTrackingParams)||[]};
_.g.setMastheadAd=function(G){G&&G.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=G&&G.mastheadAd};
_.g.dataChanged=function(){var G=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.QjO();_.q2(this,function(){_.xk(G.hostElement,"ytd-update-grid-state-action")})};
_.g.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.g.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(H){return!!H.alertWithActionsRenderer})}};
_.g.computeGreetingData=function(){if(this.data&&this.data.alerts){var G=this.data.alerts;return G&&G.find(function(H){return!!H.personalGreetingViewModel})}};
_.g.computeHasMemberHubProfileRenderer=function(G){var H;return!!(G==null?0:(H=G.header)==null?0:H.memberHubProfileRenderer)};
_.g.handleAlertCommand=function(G){this.get("alertCommand.alert.alertWithActionsRenderer",G)&&(G=_.X(G,jjI),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",G.alert))};
_.g.handleYtPlaylistDeletionRedirect=function(G){G=this.get("playlistDeletionRedirectCommand.redirectEndpoint",G);_.N5(this.hostElement,"yt-navigate",{endpoint:G})};
_.g.computeFluidWidth=function(G,H,Z){if(H==="mini_app"||Z)return!0;var Q,p,l;G=G==null?void 0:(Q=G.contents)==null?void 0:(p=Q.twoColumnBrowseResultsRenderer)==null?void 0:(l=p.tabs)==null?void 0:l.find(function(B){var t;return B==null?void 0:(t=B.tabRenderer)==null?void 0:t.selected});
if(!G)return!1;var q,u;return!!((q=G.tabRenderer)==null?0:(u=q.content)==null?0:u.richGridRenderer)&&!["channel","channels","playables"].includes(H)};
_.g.computeHeaderFluidWidth=function(G){return G==="hashtag-landing-page"};
_.g.computeHasSidebar=function(G){var H;return!!(G.sidebar||((H=G.header)==null?0:H.playlistHeaderRenderer))};
_.g.computeHasPageHeaderSidebar=function(G){var H,Z;return!!((H=G.header)==null?0:(Z=H.pageHeaderRenderer)==null?0:Z.enableSidebarView)};
_.g.computeUseUnifiedShowPageLayout=function(G){if(!G||this.pageSubtype!=="show"||!G.sidebar||!G.sidebar.playlistSidebarRenderer)return!1;G=G.sidebar.playlistSidebarRenderer;if(!G.items)return!1;for(var H=0;H<G.items.length;H++)if(_.X(G.items[H],wDU)){var Z=void 0;return((Z=_.X(G.items[H],wDU))==null?void 0:Z.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.g.computeIsConstrainedList=function(G){return _.V("web_enable_constrained_list_subscriptions_channels")&&G==="subscriptions-channels"};
_.g.computeResponsiveSizing=function(G){return G==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.u4.Object.defineProperties(Gd.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var G,H;return((G=this.data)==null?0:(H=G.header)==null?0:H.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var G,H;if(!((G=this.data)==null?0:(H=G.sidebar)==null?0:H.playlistSidebarRenderer))return!1;var Z;return(Z=this.data)!=null&&Z.header?!1:!0}}});
_.u4.Object.defineProperties(Gd,{template:{configurable:!0,enumerable:!0,get:function(){if(Yq2===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);Yq2=G}G=Yq2;return G}}});
Gd.prototype.dataChanged=Gd.prototype.dataChanged;Gd.prototype.onPlayerDetached=Gd.prototype.onPlayerDetached;Gd.prototype.onPlayerAttached=Gd.prototype.onPlayerAttached;Gd.prototype.onStampFinished=Gd.prototype.onStampFinished;Gd.prototype.engagementPanelsChanged=Gd.prototype.engagementPanelsChanged;Gd.prototype.scrollAtTopChanged=Gd.prototype.scrollAtTopChanged;Gd.prototype.tabsChanged=Gd.prototype.tabsChanged;Gd.prototype.activeChanged=Gd.prototype.activeChanged;
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Gd.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],Gd.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Gd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Gd.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.py.YtPageBehavior),_.A("design:type",Object)],Gd.prototype,"ytPageBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],Gd.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Gd.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Gd.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Gd.prototype,"hidden",void 0);
_.N([_.h(),_.A("design:type",Object)],Gd.prototype,"mastheadAdData",void 0);_.N([_.h({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.A("design:type",Object)],Gd.prototype,"alertBannerData",void 0);_.N([_.h({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.A("design:type",Object)],Gd.prototype,"greetingData",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],Gd.prototype,"pageSubtype",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.A("design:type",Boolean)],Gd.prototype,"hasMemberHubProfileRenderer",void 0);_.N([_.h({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Gd.prototype,"hasSidebar",void 0);_.N([_.h({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Gd.prototype,"hasPageHeaderSidebar",void 0);
_.N([_.h({reflectToAttribute:!0,value:!0}),_.A("design:type",Boolean)],Gd.prototype,"roundedContainer",void 0);_.N([_.h({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Gd.prototype,"useUnifiedShowPageLayout",void 0);_.N([_.h({computed:"computeIsConstrainedList(pageSubtype)"}),_.A("design:type",Object)],Gd.prototype,"isConstrainedList",void 0);
_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Gd.prototype,"usePlaylistHeaderRenderer",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Gd.prototype,"useOldPlaylistSidebarRenderer",null);_.N([_.h({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.A("design:type",Boolean)],Gd.prototype,"fluidWidth",void 0);_.N([_.h({selector:function(G){return G.ui.scrollAtTop}}),
_.A("design:type",Boolean)],Gd.prototype,"scrollAtTop",void 0);_.N([_.h({selector:_.KAa}),_.A("design:type",Boolean)],Gd.prototype,"tabGesturesIsActive",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.A("design:type",Boolean)],Gd.prototype,"disableHeaderFluidWidth",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.A("design:type",String)],Gd.prototype,"responsiveSizing",void 0);
_.N([_.q6("ytd-two-column-browse-results-renderer"),_.A("design:type",HTMLElement)],Gd.prototype,"contents",void 0);_.N([_.q6("#header"),_.A("design:type",HTMLElement)],Gd.prototype,"header",void 0);_.N([_.q6("ytd-refresh"),_.A("design:type",Object)],Gd.prototype,"refresh",void 0);_.N([_.gx("active"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gd.prototype,"activeChanged",null);
_.N([_.gx("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gd.prototype,"tabsChanged",null);_.N([_.gx("scrollAtTop"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gd.prototype,"scrollAtTopChanged",null);_.N([_.h(),_.A("design:type",Object)],Gd.prototype,"engagementPanels",void 0);
_.N([_.gx("data.panels"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gd.prototype,"engagementPanelsChanged",null);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gd.prototype,"onStampFinished",null);_.N([_.lq("yt-player-attached"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Element]),_.A("design:returntype")],Gd.prototype,"onPlayerAttached",null);
_.N([_.lq("yt-player-detached"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Element]),_.A("design:returntype")],Gd.prototype,"onPlayerDetached",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Gd.prototype,"dataChanged",null);_.N([_.O({is:"ytd-browse"})],Gd);_.Ri.registerService(_.gDe,Gd);
_.U1();
}catch(e){_._DumpException(e)}
try{
_.mu("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 s9,Txm,fIm,vQj,Wlm,z2i,Kl6,M98,jKt,PqL,rvL,wGt,CqL,iH6,aID,yvs,oQA,U6j,R2q,Nxo,Avh,Zj,LlA,Qe,EQi,YIt,Flo,bH6,Gta,sXq,QXs,HXA,h2s,pTL,lJA,gC6,IJc,q6o,S6c,ugi,BrL,Jth,ktc,D$k,eot,Vkq,$$A,XTA,Trq,vCs,W3D,zoc,K3c,Mki,jXj,Pbc,rtc,wTo,ho8,Cbm,iXs,aJq,ytL,oCA,m$s,U$c,Ros,NrL,Ati,L3o,ECo,Y6A,F38,bXm,G3j,HIs,s0k,ZID,Q0s,phm,loh,gVL,Io8,qOa,SOA,uDo,BbL,JQt,tQ6,k3k,Dio,dic,eha,Jb,nVk,VQD,cQL,Pl8,Clt,iIm,mit,Uiq,oVA,aoc,xii,YOo,ZGD,OIh,bIc,LGt,nZ,pVi,Iqh,uu8,qwm,SwL,Buh,DBa,tPc,dBL,e3k,kkq,JWa,nXj,cI,Tc,
fqq,vXh,fZ,Wwt,z3m,Kwq,h3h,CPq,vI,WI,OGo,iGh,aqA,yWi,oXL,zc,KZ,MC,jN,EXL,Ywa,Fwc,rL,ZAL,bGj,s9j,Q98,GGo,lxh,HAm,qzL,gGk,IxA,wL,uya,Szi,kGL,nGs,O9,aL,dcm,$co,ef6,VOk,oL,U9,RL,NC,mck,PLk,Nph,AlD,xc8,LUk,Yza,WUD,zf6,LZ,MOa,Ab,x6,j9j,EGj,Uc6,KUj,Y6,pMo,gjt,IGq,lGq,HMm,SVt,JBm,sm,GT,Ha,DW8,G1s,QZ,Bqk,s6A,uWk,Q6s,bAj,ZMh,ech,njt,VVL,XM6,TqD,fGs,vjq,Wnq,Knm,zci,j6o,P$j,wMs,hc8,iMo,OMh,aGt,yBh,ojq,mWh,UWL,Nqj,Rc6,AB8,Lna,EjD,g2,YVs,FnD,Ig,bMk,GW8,HYo,sED,ZYj,QEq,p46,lHL,IH6,qL,qyh,Syk,Jgq,kWt,D8A,exo,d86,
nHo,VDi,$8o,cgL,Tmk,fH8,vH8,Wyh,zxs,Kyk,MDh,jEm,P6s,rgc,w4k,OYh,aHc,C6c,iYD,hxq,ygq,U8D,oHD,m8m,Agj,Rxh,Nmm,x8h,Ly6,EHL,Yya,bYk,GLm,HOk,ZOt,Qxi,l_D,I_q,SKj,BPs,t4i,DEo,ePa,V4a,cHh,TPc,f_o,WWk,vui,KWc,M4s,jxs,P_6,uk,rH6,wnA,hPh,NPA,xEq,LWA,bOj,DP,Gwc,HK6,svA,Qv6,ZKD,pQh,lAm,gfD,IAL,qxL,tb,Sxa,uQL,uCs,Blt,Jrq,nCq,taj,kwq,Dni,euA,nfo,Vao;
s9=function(G){if(!G)return"browse";var H=G.page,Z=G.url,Q,p,l,q=(Q=G.response)==null?void 0:(p=Q.responseContext)==null?void 0:(l=p.webResponseContextExtensionData)==null?void 0:l.pageTheme;if(q)H=q.toLowerCase().replace(/_/g,"-");else if(H!=="watch"&&H!=="learning_journey_watch"){var u,B;if((H==="browse"||H==="settings")&&((u=G.response)==null?0:(B=u.sidebar)==null?0:B.settingsSidebarRenderer))H="WEB_PAGE_TYPE_SETTINGS";else{var t,D;H==="browse"&&((t=G.response)==null?0:(D=t.metadata)==null?0:D.channelMetadataRenderer)?
H="channel":Z&&(H=_.lFf(Z)||H)}}return H};
Txm=function(){var G=_.GF("yt.aba.att");return G?G:_.TY.instance!==void 0?_.TY.instance.jvY.bind(_.TY.instance):null};
fIm=function(G,H){var Z;return _.S(function(Q){return(Z=Txm())?Q.return(Z(G,H,6E4)):Q.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
vQj=function(G,H,Z,Q,p){H=H===void 0?[]:H;p=p?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:p}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Nm(G),dialogMessages:H.map(function(l){return _.Nm(l)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Nm(Z),serviceEndpoint:p}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Nm(Q)}}}}}};
Wlm=function(G,H,Z){Z=Z===void 0?!1:Z;var Q=_.PN(),p=!!_.l3().queueProxy,l,q,u;G=G==null?void 0:(l=G.response)==null?void 0:(q=l.currentVideoEndpoint)==null?void 0:(u=q.watchEndpoint)==null?void 0:u.playlistId;if((p||G)&&!_.V("web_watch_disable_playlist_auto_miniplayer"))return Z&&(Q.playlistWatchPageActivation=!0),!0;switch(s9(H)){case "yts-products":return Z&&(Q.productDetailsPageActivation=!0),!0;case "mini_app":return Z&&(Q.miniAppPageActivation=!0),!0;case "playables":return Z&&(Q.playablesDestPageActivation=
!0),!0;case "companion-canvas":return Z&&(Q.companionCanvasActivation=!0),!0;default:return!1}};
z2i=function(G){G=_.gRo(G);G.length>0&&G[0].focus()};
Kl6=function(G,H,Z){for(var Q=typeof G==="string"?G.split(""):G,p=G.length-1;p>=0;--p)p in Q&&H.call(Z,Q[p],p,G)};
M98=function(G,H){H=_.zjU(G,H);H>=0&&_.juv(G,H)};
jKt=function(G){return Array.prototype.concat.apply([],arguments)};
PqL=function(G){var H=0;H=H===void 0?0:H;if(!_.sq(G))throw _.Hd("uint64");var Z=typeof G;switch(H){case 512:switch(Z){case "string":return _.jtX(G);case "bigint":return String((0,_.dk)(64,G));default:return _.K22(G)}case 1024:switch(Z){case "string":return _.Pae(G);case "bigint":return _.ia((0,_.dk)(64,G));default:return _.Mpu(G)}case 0:switch(Z){case "string":return _.jtX(G);case "bigint":return _.ia((0,_.dk)(64,G));default:return _.zNo(G)}default:return _.Lw(H,"Unknown format requested type for int64")}};
rvL=function(G){G!=null&&(G=G.JSC$8829_value_||"",G=typeof G==="string"?G:new Uint8Array(G));return G};
wGt=function(G,H){if(/-[a-z]/.test(H))return null;if(_.S1N&&G.dataset){if(_.nRW()&&!(H in G.dataset))return null;G=G.dataset[H];return G===void 0?null:G}return G.getAttribute("data-"+_.ZQ(H))};
CqL=function(){var G=h2s;_.GF("yt.ads.biscotti.getId_")||_.u7("yt.ads.biscotti.getId_",G)};
iH6=function(G){_.u7("yt.ads.biscotti.lastId_",G)};
aID=function(){var G={};for(_.oJ=new OHq(G.handleError===void 0?_.UN:G.handleError,G.logEvent===void 0?_.yR:G.logEvent);_.mK.length>0;)switch(G=_.mK.shift(),G.type){case "ERROR":_.oJ.logError(G.payload);break;case "EVENT":_.oJ.logEvent(G.eventType,G.payload)}};
yvs=function(G,H,Z){return _.If2(function(Q){return Z?Q.userIdentifier!==void 0&&!G.includes(Q.userIdentifier)&&Z.includes(Q.publicName):Q.userIdentifier!==void 0&&!G.includes(Q.userIdentifier)},H)};
oQA=function(G){var H,Z;return _.S(function(Q){if(Q.nextAddress==1)return H=_.w7("YtIdbMeta hasAnyMeta other"),Q.yield(_.If2(function(p){return p.userIdentifier!==void 0&&p.userIdentifier!==H},G),2);
Z=Q.yieldResult;return Q.return(Z.length>0)})};
U6j=function(G,H){m6q||(m6q=_.Ui.addLowPriorityJob(function(){var Z,Q,p,l,q;return _.S(function(u){switch(u.nextAddress){case 1:return u.yield(_.BP(),2);case 2:Z=u.yieldResult;if(!Z)return u.return();Q=!0;_.XV(u,3);return u.yield(yvs(G,Z,H),5);case 5:p=u.yieldResult;if(!p.length){Q=!1;u.jumpTo(6);break}l=p[0];return u.yield(_.QL(l.actualName),7);case 7:return u.yield(_.gt(l.actualName,Z),6);case 6:_.Za(u,4);break;case 3:q=_.Wg(u),_.Ud(q),Q=!1;case 4:_.Ui.cancelJob(m6q),m6q=0,Q&&U6j(G,H),_.K0(u)}})}))};
R2q=function(){var G;return _.S(function(H){return H.nextAddress==1?H.yield(_.BP(),2):(G=H.yieldResult)?H.return(oQA(G)):H.return(!1)})};
Nxo=function(G){var H=100;H=H===void 0?500:H;var Z,Q,p,l,q,u;return _.S(function(B){return B.nextAddress==1?(Z=_.xI("INNERTUBE_CONTEXT_CLIENT_NAME",0),Q=[Z,(0,_.t3)()-2592E6],p=[Z,(0,_.t3)()],l=IDBKeyRange.bound(Q,p),B.yield(_.wGU(G),2)):B.nextAddress!=3?(q=B.yieldResult,u=[],B.yield(_.l7(q,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){u.length=0;return _.kN(t.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:l,direction:"prev"},function(D){if(D.getValue()&&u.length<
H)return u.push(D.getValue()),D.delete().then(function(){return D.continue()})})}),3)):B.return(u)})};
Avh=function(){var G;return _.S(function(H){if(H.nextAddress==1)return H.yield(_.BP(),2);G=H.yieldResult;if(!G||!_.hp()&&!_.V("nwl_init_require_datasync_id_killswitch")||!_.GtX())return H.jumpTo(0);_.sXj=!0;_.HXR.isNwlInitialized=_.sXj;return H.yield(_.vaw().awaitInitialization(),0)})};
Zj=function(G,H){_.nCj[G]=!0;var Z=_.tL();Z&&Z.publish.apply(Z,arguments);_.nCj[G]=!1};
LlA=function(){if(_.ETf()&&!x6q){var G=function(Z){Z=Z.data;if(Z.op==="serializedGelBatch"){var Q=_.VQ3.get(Z.key);Q&&(_.Xhv(Z.serializedBatch,Q.client,Q.resolve,Q.networklessOptions,Q.isIsolated,Q.useVSSEndpoint,Q.dangerousLogToVisitorSession,Q.requestsOutstanding),_.VQ3.delete(Z.key))}},H=_.LA3();
H&&(H.addEventListener("message",G),H.onerror=function(){_.VQ3.clear()});
x6q=!0}};
Qe=function(){this.relativeTimeStart_=_.NW()};
EQi=function(G,H){G!=null&&this.append.apply(this,arguments)};
YIt=function(){return _.vf("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
Flo=function(G,H,Z){Z=Z===void 0?!1:Z;var Q,p,l,q,u;return _.S(function(B){switch(B.nextAddress){case 1:_.PU("SOCS",G,34128E3,"youtube.com",!0);if(_.H4)return p=fetch(H,{method:"POST",mode:_.Pf(H),credentials:_.ju(H),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),l=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Pf("/upgrade_visitor_cookie?eom=1"),credentials:_.ju("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),B.yield(Promise.all([p,l]).then(function(t){return t[1]}),5);
fetch(H,{method:"POST",mode:_.Pf(H),credentials:_.ju(H),cache:"no-store",headers:{"Content-Type":"text/plain"}});return B.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Pf("/upgrade_visitor_cookie?eom=1"),credentials:_.ju("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:Q=B.yieldResult;B.jumpTo(3);break;case 5:Q=q=B.yieldResult;case 3:if(!Q.ok)throw Error("vf");return B.yield(Q.text(),7);case 7:u=B.yieldResult,
!u.includes('"state_switch":true')&&!Z||u.includes("skip_reload_for_test")||window.location.reload(),_.K0(B)}})};
bH6=function(G){return _.S(function(H){return H.nextAddress==1?H.yield(Flo(G.socsCookie,G.savePreferenceUrl,!0),2):H.return()})};
Gta=function(G){return _.S(function(H){return H.nextAddress==1?H.yield(Flo(G.socsCookie,G.savePreferenceUrl),2):H.return()})};
sXq=function(G){G=G.xhr.responseText;if(!_.le(G,")]}'"))throw new pZ;G=JSON.parse(G.substr(4));if((G.type||1)>1)throw new pZ;G=G.id;iH6(G);li=_.II(G);HXA(18E5,2);return G};
QXs=function(G,H){H=new ZXL(H);iH6("");li=_.MoN(H);G>0&&HXA(12E4,G-1);throw H;};
HXA=function(G,H){_.cU(function(){_.lI8().then(sXq,function(Z){return QXs(H,Z)}).thenCatch(_.dP)},G)};
h2s=function(){var G=_.qIq();if(G!==void 0)return _.DJ(G);li||(li=_.lI8().then(sXq).thenCatch(function(H){return QXs(2,H)}));
return li};
pTL=function(){var G=document;return _.hM(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(H){return"on"+H.toLowerCase()in G})};
lJA=function(G){G.addEventListener("click",function(H){var Z=H.target;Z&&Z.getAttribute("href")&&(Z=Z.getAttribute("href"),_.Hg(window,Z,"_blank"),H.preventDefault(),H.stopImmediatePropagation())})};
gC6=function(G){var H,Z,Q,p=(Q=(Z=((H=G.mainDownloadsListEntity)!=null?H:{})[_.$Zj])==null?void 0:Z.refresh)!=null?Q:"",l;G=(l=G.refresh)==null?void 0:l[p];p=G!=null?G:{};return(p==null?0:p.refreshTime)?Number(p==null?void 0:p.refreshTime):0};
IJc=function(G,H){var Z=_.dc(G);return H.every(function(Q){var p;Q=Q==null?void 0:(p=Q.playbackDataEntity)==null?void 0:p.key;if(!Q)return!1;p=_.G9(_.YK(Q).entityId,"mainVideoEntity");return!!Z[p]})};
q6o=function(G){G=_.Jy(G.entities);return _.hBv(G).length};
S6c=function(G,H){if(H){var Z;G=(Z=_.Hv(G.entities,"downloadQualityPickerEntity",H))!=null?Z:void 0}else G=void 0;return G};
ugi=function(G){var H=document.getElementsByTagName("ytd-enforcement-message-view-model");H.length===0||getComputedStyle(H[0]).display==="none"?G(0,"p.h_"):G(1,"p.h_")};
BrL=function(){gL=0;var G=[_.SX(!0)];IL&&_.xk(IL,"yt-window-resized",G)};
Jth=function(){gL||(gL=_.Ui.addLowPriorityJob(BrL,200))};
ktc=function(){qC=0;tkt=_.uka(document);var G=[tkt];IL&&_.xk(IL,"yt-window-scrolled",G)};
D$k=function(){qC||(qC=_.Ui.addLowPriorityJob(ktc,200))};
eot=function(G){G=G===void 0?null:G;d$s.push(_.Sy(window,"resize",Jth));d$s.push(_.Sy(window,"scroll",D$k));G&&(IL=G)};
Vkq=function(){var G=_.kT.getLocalStorage();G&&nCq(G,G.mechanism.__iterator__(!0))};
$$A=function(G){_.S(function(H){if(H.nextAddress==1)return H.yield(G.delete("yt-appshell-assets"),2);_.K0(H)})};
XTA=function(G){return _.pg((0,_.hXR)(),G)};
Trq=function(){var G;_.S(function(H){return H.nextAddress==1?H.yield(SN.getInstance(),2):(G=H.yieldResult)?H.yield(ctD(G),0):H.jumpTo(0)})};
vCs=function(){var G;_.S(function(H){return H.nextAddress==1?H.yield(ui.getInstance(),2):(G=H.yieldResult)?H.yield(fJc(G),0):H.jumpTo(0)})};
W3D=function(G){$$A(G);Trq();vCs()};
zoc=function(G){var H,Z;return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(_.z9b(G),2);if(H=Q.yieldResult){var p;a:{if(H.headers&&(p=H.headers.get("date"))&&(p=Date.parse(p),!isNaN(p))){p=Math.round((0,_.t3)()-p);break a}p=-1}Z=p;if(Z>-1)return Q.return(Z)}return Q.return(-1)})};
K3c=function(){var G=_.Qf.caches,H=_.YI("IS_SHELL_LOAD"),Z,Q;_.S(function(p){if(p.nextAddress==1)return Z=-1,H?p.yield(zoc(G),3):(Q=_.JU(),Z=Math.round((0,_.t3)()-Q),p.jumpTo(2));p.nextAddress!=2&&(Z=p.yieldResult);Z>=0&&Z<2147483648&&_.ee({appInstallDataAgeMs:Z});_.K0(p)})};
Mki=function(G){var H=_.HS(_.Qf.location.href),Z={};"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(Q){var p=H.JSC$10041_queryData_.getValues(Q);if(p==null?0:p.length)Z[Q]=p});
return _.$r(G,new Map(Object.entries(Z)))};
jXj=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
Pbc=function(G){if(_.Azv()){var H=Object.keys(window.localStorage);H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=jXj(Z);Q===void 0||G.includes(Q)||self.localStorage.removeItem(Z)}}};
rtc=function(){if(!_.Azv())return!1;var G=_.w7(),H=Object.keys(window.localStorage);H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())if(Z=jXj(Z.value),Z!==void 0&&Z!==G)return!0;return!1};
wTo=function(G){return _.mq("NotificationsDisabled",G)};
ho8=function(){return Notification.permission!="granted"?Promise.resolve():_.MXs().then(function(G){return G?G.pushManager.getSubscription().then(function(H){if(H)return Promise.resolve();H={userVisibleOnly:!0,applicationServerKey:_.YR("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return G.pushManager.subscribe(H).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
Cbm=function(G){return _.MXs().then(function(H){if(!H||!H.active)return Promise.reject(new _.C$("serviceworker.postMessage",G,H));try{return H.active.postMessage(G),Promise.resolve()}catch(Z){return Promise.reject(Z)}})};
iXs=function(){Cbm({type:"notifications_register",data:_.xI("ID_TOKEN")})};
aJq=function(){var G={isWide:_.jA.get("wide","0")==="1"},H=_.lf();if(H=H.getFlag(165)||H.getFlag(174))G.theme=_.Ml(!0);if(_.u1f()){var Z=_.K3()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G.systemTheme=Z}!H&&_.V("parent_tools_enable_app_settings")&&_.p$(window.location.href).theme!==void 0&&(G.theme=_.Ml());if((H=BI)?!_.oN.equals(H,G):G)H={currentValue:G},OXA&&(H.timeSinceLastSnapshotSecs=Math.round(((0,_.t3)()-OXA)/1E3)),BI&&(H.previousValue=BI),_.yR("appSettingsCaptured",H),BI=G,OXA=
(0,_.t3)()};
ytL=function(){if(!_.YI("LOGGED_IN"))return Promise.resolve(!1);var G=_.n$("service_worker_push_force_notification_prompt_tag");return G?_.jh("PromptTags").then(function(H){if(!H)return!0;var Z=[];try{Z=JSON.parse(H)}catch(Q){return!1}return Z&&Z.indexOf(G)==-1}):Promise.resolve(!1)};
oCA=function(){var G=_.eA("service_worker_push_prompt_delay_microseconds");return G?_.jh("PromptTime").then(function(H){return Promise.resolve(Date.now()-G>(H||0))}):Promise.resolve(!0)};
m$s=function(){var G=_.eA("service_worker_push_logged_out_prompt_watches");return G==-1?Promise.resolve(!1):_.jh("WatchCount").then(function(H){return H>=G})};
U$c=function(){var G=_.Ni(document,"yt-push-prompt-modal-bg");G&&_.Ku(G)};
Ros=function(){return _.eA("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.jh("PromptCount").then(function(G){G||(G=0);return Promise.resolve(G<_.eA("service_worker_push_prompt_cap"))})};
NrL=function(G){return _.YI("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.YI("LOGGED_IN")&&(G===void 0?0:G)?ytL().then(function(H){if(H)return!0;H=[Ros(),oCA()];_.YI("LOGGED_IN")||H.push(m$s());return Promise.all(H).then(function(Z){return Z.every(function(Q){return Q})})}):Promise.resolve(!1)};
Ati=function(){_.jh("PromptCount").then(function(G){return _.mq("PromptCount",G+1)}).then(function(){return _.mq("PromptTime",Date.now())}).then(function(){var G=_.n$("service_worker_push_force_notification_prompt_tag");
if(G)return _.jh("PromptTags").then(function(H){var Z=[];if(H)try{Z=JSON.parse(H)}catch(Q){return!1}Z||(Z=[]);Z.push(G);return _.mq("PromptTags",JSON.stringify(Z))})})};
L3o=function(){x$D||U$c()};
ECo=function(G){G.style.zIndex=2147483648;G.style.pointerEvents="auto";G.style.backgroundColor="rgba(0, 0, 0, 0.6)";G.style.width="100%";G.style.height="100vh";G.style.position="absolute";G.style.top="0";G.style.left="0";G.style.border="none"};
Y6A=function(){var G=_.Ni(document,"yt-push-prompt-modal-bg");x$D=_.V("service_worker_push_prompt_modal_ignore_click");G?ECo(G):(G=_.fO("div",{id:"yt-push-prompt-modal-bg"}),ECo(G),document.body.appendChild(G),_.tkU(document,"click",L3o))};
F38=function(){var G=arguments;_.V("service_worker_push_prompt_modal_enable")&&Y6A();return Notification.requestPermission().then(function(H){U$c();var Z=document.getElementById("ticker");Z&&(Z.className=Z.classList.remove("show"));if(H=="granted")return ho8().then(function(){wTo(!1);iXs();return Promise.resolve(!0)});
H=="denied"&&iXs();return Promise.resolve(!1)}).catch(function(){U$c();
return Promise.reject.apply(Promise,_.OP(G))})};
bXm=function(G){G=G===void 0?!1:G;var H=_.DyM().client;if(H&&H.browserVersion){var Z=H.browserVersion,Q=H.browserName=="CHROME"&&_.DU(Z,"50.0.0")<0;H=H.browserName=="OPERA"&&_.DU(Z,"42.0.0")<0;if(Q||H)return Promise.resolve()}return _.r0A().then(function(p){if(!p)return Promise.resolve();p=ho8().then(function(){return Cbm({type:"notifications_check_registration",data:_.xI("ID_TOKEN")})});
return Notification.permission!="default"?p.catch(function(){}):p.then(function(){return NrL(G)}).then(function(l){if(l)return Ati(),F38().then(function(){})}).catch(function(){})})};
G3j=function(G){return _.j_c(G)?bXm():Promise.resolve()};
HIs=function(G){var H=G.installing||G.waiting;return G.active||!H?Promise.resolve(G):new Promise(function(Z){var Q=function(p){p=p.target;if(p.state==="activated"||p.state==="redundant")H.removeEventListener("statechange",Q),Z(G)};
H.addEventListener("statechange",Q)})};
s0k=function(){var G=new _.cSR("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.G1(G,{mainAppWeb:_.wT()});var H=_.shd;_.V("service_worker_forward_exp_params")&&(H=Mki(H));try{var Z=_.nnU(H).catch(function(){_.HM(G,"FAILURE");return new Promise(function(){})});
_.V("service_worker_push_enabled")&&Z.then(function(Q){_.HM(G,"SUCCESS");return Q}).then(HIs).then(G3j)}catch(Q){if(_.HM(G,"FAILURE"),Q.name!=="SecurityError")throw Q;
}};
ZID=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&s0k()};
Q0s=function(G,H){var Z={};H&&(Z.serializedYpcFamilyCreateLoggingParams=H);_.yR(G,Z);_.op()};
phm=function(G,H){var Z={};Z.serializedYpcRefundFlowLoggingParams=H;G&&(Z.eventType=G);_.yR("ypcRefundFlowEvent",Z);_.op()};
loh=function(G){G&&_.$yv("transactionFlowSucceeded",G)};
gVL=function(G){G&&_.VV("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
Io8=function(G){var H,Z,Q,p,l,q,u;_.S(function(B){if(B.nextAddress==1)return B.yield(_.sdM(),2);if(B.nextAddress!=3){if(!B.yieldResult)return B.return(!1);H=[];return B.yield(_.YC.keys(),3)}Z=B.yieldResult;Q=_.I(Z);for(p=Q.next();!p.done;p=Q.next())l=p.value,q=_.G0f(l),u=q.datasyncId,!u||G.includes(u)||H.push(_.YC.delete(l));return B.return(Promise.all(H).then(function(t){return t.some(function(D){return D})}))})};
qOa=function(){var G,H,Z,Q,p,l,q;return _.S(function(u){if(u.nextAddress==1)return u.yield(_.sdM(),2);if(u.nextAddress!=3){if(!u.yieldResult)return u.return(!1);G=_.w7("cache contains other");return u.yield(_.YC.keys(),3)}H=u.yieldResult;Z=_.I(H);for(Q=Z.next();!Q.done;Q=Z.next())if(p=Q.value,l=_.G0f(p),(q=l.datasyncId)&&q!==G)return u.return(!0);return u.return(!1)})};
SOA=function(){var G=_.tp().resolve(_.Jp(_.sLx));return G?G.getCurrentTime():0};
uDo=function(){var G,H,Z,Q,p,l,q,u,B,t,D,d,e,n;return _.S(function(c){switch(c.nextAddress){case 1:G={},H=_.g$v(),Z=_.I(Object.entries(H)),Q=Z.next();case 4:if(Q.done){c.jumpTo(3);break}p=Q.value;l=_.I(p);q=l.next().value;u=l.next().value;B=q;t=u;if(!t){c.jumpTo(5);break}return c.yield(t(),8);case 8:G[B]=c.yieldResult;case 5:Q=Z.next();c.jumpTo(4);break;case 2:D=_.I(),d=D.next();case 9:if(d.done){c.jumpTo(3);break}e=d.value;n=H[e];if(!n){c.jumpTo(10);break}return c.yield(n(),13);case 13:G[e]=c.yieldResult;
case 10:d=D.next();c.jumpTo(9);break;case 3:return c.return(G)}})};
BbL=function(){var G;_.S(function(H){if(H.nextAddress==1)return H.yield(uDo(),2);G=H.yieldResult;return H.yield(navigator.clipboard.writeText(JSON.stringify(G,null,2)),0)})};
JQt=function(G,H){return _.Hv(G.entities,"superThanksSelectedTierEntity",H)};
tQ6=function(G,H){return{popup:{searchSuggestionReportDialog:{searchQuery:G,title:_.Zg("SBOX_INAPPROPRIATE_TITLE"),suggestions:H,categoryLabel:_.Zg("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Zg("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Zg("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Zg("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Zg("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Zg("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Zg("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Zg("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Zg("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Zg("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
k3k=function(G){var H,Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x;return _.S(function(U){switch(U.nextAddress){case 1:return U.yield(_.Qn(),2);case 2:return(H=U.yieldResult)?U.yield(_.Jue(H),3):U.return();case 3:Z=U.yieldResult;if(!Z)return U.return();p=((Q=Z.offlineVideos)==null?void 0:Q.length)||0;q=((l=Z.offlinePlaylists)==null?void 0:l.length)||0;if(p===0&&q===0)return U.return();u=0;if(Z.offlineVideos)for(B=_.I(Z.offlineVideos),t=B.next();!t.done;t=B.next())D=t.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
D.videoState&&(u+=1);G.offline_videos_count=p.toString();_.V("kevlar_log_offline_current_network_type_ks")||(G.offline_current_network_type=(d=_.CfU())!=null?d:"CONN_INVALID");_.V("kevlar_log_updated_time_for_smart_downloads")&&(e=_.mm().getState().entities,n=_.$a(e),c=gC6(e),G.offline_smart_downloads_last_sync_time_ms=n.toString(),G.offline_smart_downloads_next_sync_time_ms=c.toString());G.offline_videos_playable=u.toString();G.offline_playlists_count=q.toString();Z.offlineVideos&&(W=Z.offlineVideos.reduce(function(R,
L){L.downloadedBytes&&(R+=Number(L.downloadedBytes));return R},0).toString())&&(G.offline_used_disk_space_bytes=W);
if(!((M=navigator)==null?0:(r=M.storage)==null?0:r.estimate)){U.jumpTo(4);break}return U.yield(navigator.storage.estimate(),5);case 5:w=U.yieldResult,G.offline_free_disk_space_bytes=(((x=w)==null?void 0:x.quota)||0).toString();case 4:G.offline_client_state=JSON.stringify(Z),_.K0(U)}})};
Dio=function(G){G=G.match(/(.*)::.*::.*/);if(G!==null)return G[1]};
dic=function(G){if(_.r2e()){var H=Object.keys(window.sessionStorage);H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next()){Z=Z.value;var Q=Dio(Z);Q===void 0||G.includes(Q)||self.sessionStorage.removeItem(Z)}}};
eha=function(){if(!_.r2e())return!1;var G=_.w7(),H=Object.keys(window.sessionStorage);H=_.I(H);for(var Z=H.next();!Z.done;Z=H.next())if(Z=Dio(Z.value),Z!==void 0&&Z!==G)return!0;return!1};
Jb=function(G,H,Z){(_.V("desktop_keyboard_shortcut_usage_log")||Z&&_.V("web_shorts_keyboard_shortcut_usage_log"))&&(H?_.x$.get(G):_.Ad.get(G))&&(G=H?_.Et.get(G):_.LR.get(G))&&_.Co(_.$k(),G)};
nVk=function(G,H){return G.findIndex(function(Z){return Z.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(H.keyCode):!1};
VQD=function(G,H){H.stack&&(G.stack+="\n"+H.stack);return G};
cQL=function(G){var H=tb(G,"Content-Type");if(!H)return null;H=H.toLowerCase();if(H.startsWith("application/json"))return H.startsWith("application/json+protobuf")?new $io:new _.SL;if(H.startsWith("application/x-protobuf")){G=tb(G,"Content-Transfer-Encoding");if(!G)return new k6;if(G.toLowerCase()=="base64")return new Xhs}return null};
Pl8=function(G,H,Z,Q){var p=new Tba(function(u,B){return fo6.has(B)?u.sentinel==="gal"&&u.event!==void 0:!1},function(u){u.event?(u=vVA(u.event),u=!u||WG6(Q,u)?!0:_.q8(G.lastEvent,Dj,2,dL)?!_.q8(u,eN,1,dL)&&!_.q8(u,Dj,2,dL):!_.q8(u,eN,1,dL)&&!_.q8(u,Dj,3,dL)):u=!0;
return u});
Z=_.$r(G.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",zh6(Z)]]));if(G.nestedOrigins!==void 0)for(var l=_.I(G.nestedOrigins),q=l.next();!q.done;q=l.next())Z=_.$r(Z,new Map([["origin",q.value]]));return KGm(p,Z,H).then(function(u){u=MQq(u.event);if(_.q8(u,eN,1,dL)){var B,t=(B=_.c4(u,eN,1,dL))==null?void 0:_.V8(B,2);t&&Q.JSC$19695_logErrorEvent(j0o(t));B=_.c4(u,eN,1,dL);_.V8(B,2)===4?(u=_.c4(u,eN,1,dL),u={statusCode:11,statusMessage:_.nY(u,
3)}):(u=_.c4(u,eN,1,dL),u={statusCode:12,statusMessage:_.nY(u,3)});return u}_.q8(u,Dj,3,dL)?(u=_.c4(u,Dj,3,dL),u={statusCode:1,consentLanguageKeys:_.nY(u,2)}):u={statusCode:1};return u}).catch(function(u){return u.errorCode!==void 0?{statusCode:u.errorCode,
statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
Clt=function(G){var H={};if(G===void 0||G===null)return H;G.getToken()!==void 0&&rQc(G.getToken())&&rQc(G.getToken()).length>0&&(H.scopes=new Set(rQc(G.getToken())));G.getToken()!==void 0&&whc(G.getToken())&&whc(G.getToken()).length>0&&(H.capabilities=new Set(whc(G.getToken())));_.nY(G,3)!==void 0&&(H.consistencyKey=_.nY(G,3));G.getName()!==void 0&&G.getName()!==""&&(H.linkName=G.getName());_.IE(G,hh8,4)&&(G=_.dt(G,hh8,4),G=Object.assign({},_.nY(G,1)&&{userId:_.nY(G,1)},_.nY(G,2)&&{displayName:_.nY(G,
2)},_.nY(G,3)&&{email:_.nY(G,3)},_.nY(G,5)&&{username:_.nY(G,5)},_.nY(G,4)&&{profilePicture:_.nY(G,4)}),H.profile=G);return H};
iIm=function(G,H){var Z=G.flowParams,Q;return{serviceId:Z.serviceId,sessionId:Z.sessionId,currentFlow:G.currentFlow,googleScopesString:H,linkingSessionSerialized:G.session.serialize(),consentLanguageKeys:Z.consentLanguageKeys,callerState:G.callerState,dynamicUrlParameters:Z.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(Q=Z.partnerConfigMinReadTimestamp)==null?void 0:Q.serialize()}};
mit=function(G){var H=G.googleScopes!==void 0?Array.from(G.googleScopes).join(","):"";OIh(iIm(G,H));H=aoc(G);return H===null?Promise.resolve(yQt):H.start().then(function(Z){var Q,p=(Q=Z.link)==null?void 0:Q.consistencyKey;return Z.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&p!==void 0?(Q=G.flowParams,oVA(Q.serviceId,Q.sessionId,G.googleScopes,p,Q.galService,G.config,Z)):Z})};
Uiq=function(G){var H=aoc(G);return H===null?Promise.resolve(nZ({statusCode:7,statusMessage:"Failed to create flow object"},G.callerState)):H.complete().then(function(Z){var Q,p=(Q=Z.link)==null?void 0:Q.consistencyKey;return Z.statusCode===1&&G.googleScopes!==void 0&&G.googleScopes.size>0&&p!==void 0?(Q=G.flowParams,oVA(Q.serviceId,Q.sessionId,G.googleScopes,p,Q.galService,G.config,Z)):nZ(Z,G.callerState)},function(Z){return nZ({statusCode:12,
statusMessage:"Failed to complete the flow: "+Z.message},G.callerState)})};
oVA=function(G,H,Z,Q,p,l,q){return Rhi(p,{serviceId:G,sessionId:H,googleScopes:Z,consistencyKey:Q}).then(function(){return q},function(u){return p.deleteLink({serviceId:G,
sessionId:H,accountLinkingEntryPoint:l.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+u.message}},function(B){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+B.message}})})};
aoc=function(G){switch(G.currentFlow){case 1:var H=G.flowParams;G=_.dt(G.session,Nb8,1);return Ve.createOAuthFlow(H,G);case 2:case 3:return H=G.flowParams,G=_.dt(G.session,AQ6,6),$6.createStreamlinedFlow(H,G);default:return null}};
xii=function(G,H){G===2&&(G=3);var Z=0;Xd.indexOf(G)!==-1&&(Z=Xd.indexOf(G)+1);for(G=Z;G<Xd.length;G++)if(H.has(Xd[G]))return Xd[G]};
YOo=function(G){var H=G.serviceId;var Z=G.sessionId;var Q=G.config;var p=G.galService;var l=G.capabilities;var q=G.scopes;var u=G.loginHint;var B=G.callerState;var t=G.consentLanguageKeys;var D=G.linkName;var d=G.dynamicUrlParameters;var e=G.partnerConfigMinReadTimestamp;G=Q.dataUsageNoticeConfig?Q.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return p.startLinkingSession({serviceId:H,sessionId:Z,capabilities:l,scopes:q,loginHint:u,callerState:B,supportedFlows:LGt(Q.supportedFlows),completionUrl:Q.completionUrl,
accountLinkingEntryPoint:Q.accountLinkingEntryPoint,consentLanguageKeys:t,dataUsageNoticeConfig:G,linkName:D,dynamicUrlParameters:d,partnerConfigMinReadTimestamp:e}).then(function(n){return new EV8(H,Z,Q,p,n,void 0,B,t,d,e)})};
ZGD=function(G,H,Z){var Q=(new FGo).getSession(G);if(Q===null)return Promise.resolve({statusCode:2});bIc(G);var p=Gka(Q.linkingSessionSerialized),l=Q.googleScopesString!==""&&Q.googleScopesString!==void 0?new Set(Q.googleScopesString.split(",")):void 0,q=Q.partnerConfigMinReadTimestampSerialized?HGm(Q.partnerConfigMinReadTimestampSerialized):void 0;return sSq(new EV8(G,Q.sessionId,H,Z,p,l,Q.callerState,Q.consentLanguageKeys,Q.dynamicUrlParameters,q),Q.currentFlow,Q.consentLanguageKeys)};
OIh=function(G){var H=new FGo;H.storage!==null&&H.storage.set("SAVED_SESSION",G)};
bIc=function(G){var H=new FGo;if(H.storage!==null){var Z=H.storage.get("SAVED_SESSION");Z!==void 0&&Z.serviceId===G&&H.storage.remove("SAVED_SESSION")}};
LGt=function(G){var H=new Set;G=_.I(G);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z!==1&&QSo.has(Z)&&H.add(QSo.get(Z));return H};
nZ=function(G,H){H!==void 0&&(G.callerState=H);return G};
pVi=function(G){switch(G){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
Iqh=function(G){return new lqm(G,new gXc(G))};
uu8=function(G,H){H=H===void 0?!1:H;var Z=document.createElement("div");G&&(Z.style.transform="scaleX(-1)");Z.style.backgroundColor=H?"rgba(138,180,248,.24)":"#e8f0fe";Z.style.height="4px";Z.style.overflow="hidden";Z.style.position="absolute";Z.style.top="0";Z.style.width="100%";Z.style.zIndex="1500";Z.setAttribute("aria-label","Loading");Z.setAttribute("aria-live","polite");G=document.createElement("style");G.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  }";
Z.appendChild(G);G=qwm();G.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";G.style.left="-145.166611%";var Q=SwL(H);Q.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";G.appendChild(Q);Z.appendChild(G);G=qwm();G.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";G.style.left="-54.888891%";H=SwL(H);H.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
G.appendChild(H);Z.appendChild(G);return Z};
qwm=function(){var G=document.createElement("div");G.style.height="100%";G.style.position="absolute";G.style.transformOrigin="top left";G.style.width="100%";return G};
SwL=function(G){var H=document.createElement("span");H.style.borderTop=G?"4px solid #669df6":"4px solid #4285f4";H.style.display="inline-block";H.style.position="absolute";H.style.width="100%";return H};
Buh=function(G){return G==null?void 0:_.eKN(G).valueOf()};
DBa=function(G){var H=document.body,Z=!1,Q=function(){Z||(Z=!0,JWa(p,l),setTimeout(function(){H.removeChild(l);H.removeChild(p)},150))},p=tPc(G,getComputedStyle(H).direction==="rtl",Q),l=kkq(Q);
JWa(p,l);H.appendChild(l);H.appendChild(p);window.requestAnimationFrame(function(){l.style.opacity="1";p.style.opacity="1";p.style.transform="translate(-50%, -50%) scale(1)";p.children[0].focus()})};
tPc=function(G,H,Z){var Q=document.createElement("div");Q.style.position="fixed";Q.style.alignItems="center";Q.style.backgroundColor=G?"rgb(32, 33, 36)":"white";Q.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";Q.style.display="flex";Q.style.flexDirection="column";Q.style.justifyContent="center";Q.style.left="50%";Q.style.top="50%";Q.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";Q.style.zIndex="2002";document.body.clientWidth>=
660?(Q.style.borderRadius="8px",Q.style.minHeight="220px",Q.style.maxHeight="90%",Q.style.maxWidth="90%",Q.style.minWidth="540px"):(Q.style.height="100%",Q.style.width="100%");Q.setAttribute("aria-label","Error");Q.setAttribute("aria-modal","true");Q.setAttribute("role","alertdialog");Q.addEventListener("keydown",function(l){l.key==="Escape"&&Z()});
H=dBL(G,H,Z);Q.appendChild(e3k(H));Q.appendChild(H);var p=document.createElement("img");p.src=G?"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";p.style.height="72px";p.style.width="72px";p.style.color="#9aa0a6";p.setAttribute("alt","");Q.appendChild(p);p=document.createElement("h1");p.textContent="Something went wrong.  Try again.";
p.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";p.style.lineHeight="24px";p.style.fontSize="16px";p.style.textAlign="center";p.style.letterSpacing="0.1px";p.style.color=G?"rgb(232,234,237)":"#3c4043";Q.appendChild(p);Q.appendChild(e3k(H));return Q};
dBL=function(G,H,Z){var Q=document.createElement("button");Q.style.backgroundColor="transparent";Q.style.border="none";Q.style.borderRadius="50%";Q.style.cursor="pointer";Q.style.outline="none";Q.style.padding="12px";Q.setAttribute("aria-label","Close dialog");Q.style.position="absolute";Q.style.top="0";H?Q.style.right="0":Q.style.left="0";Q.addEventListener("focus",function(){Q.style.backgroundColor=G?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
Q.addEventListener("blur",function(){Q.style.backgroundColor="transparent"});
Q.addEventListener("mouseenter",function(){Q.style.backgroundColor=G?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
Q.addEventListener("mouseleave",function(){Q.style.backgroundColor="transparent"});
Q.addEventListener("click",Z);Q.addEventListener("keydown",function(p){p.key!=="Enter"&&p.key!=="Space"||Z()});
H=document.createElement("img");H.src=G?"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";H.style.display="block";H.style.height="24px";H.style.width="24px";H.setAttribute("alt","");Q.appendChild(H);return Q};
e3k=function(G){var H=document.createElement("div");H.setAttribute("tabindex","0");H.setAttribute("aria-hidden","true");H.addEventListener("focus",function(){return void G.focus()});
return H};
kkq=function(G){var H=document.createElement("div");H.style.backgroundColor="rgba(32,33,36,0.6)";H.style.bottom="0";H.style.left="0";H.style.position="fixed";H.style.right="0";H.style.top="0";H.style.transition=" opacity 150 ms linear";H.style.zIndex="2001";H.addEventListener("click",G);return H};
JWa=function(G,H){H.style.opacity="0";G.style.opacity="0";G.style.transform="translate(-50%, -50%) scale(0.8)"};
nXj=function(G,H){G.sandbox&&G.sandbox.add&&(G.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),G.sandbox.add("allow-downloads"));G.src=H};
cI=function(G){VPc.call(this,G)};
Tc=function(G,H){H=H===void 0?!1:H;this.parsedImageUrl_=null;G instanceof $B6||(XVt==void 0&&(XVt=new cWh),G=XVt.parse(G.toString(),H));G=this.parsedImageUrl_=G;G.JSC$19907_parsedOptions_==void 0&&((H=G.getOptions())||(H=""),G.JSC$19907_parsedOptions_=(new Tut).parse(H));VPc.call(this,G.JSC$19907_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;G=this.parsedImageUrl_;H=G.uri_.JSC$10041_port_;this.JSC$19909_domain_=G.uri_.JSC$10041_domain_+(H?":"+H:"");this.JSC$19909_query_=
this.parsedImageUrl_.uri_.JSC$10041_queryData_.toString()};
fqq=function(G){this.mode=4;this.data=G;this.parsedData=[];G=0;for(var H=this.data.length;G<H;G++){var Z=[],Q=this.data.charCodeAt(G);Q>65536?(Z[0]=240|(Q&1835008)>>>18,Z[1]=128|(Q&258048)>>>12,Z[2]=128|(Q&4032)>>>6,Z[3]=128|Q&63):Q>2048?(Z[0]=224|(Q&61440)>>>12,Z[1]=128|(Q&4032)>>>6,Z[2]=128|Q&63):Q>128?(Z[0]=192|(Q&1984)>>>6,Z[1]=128|Q&63):Z[0]=Q;this.parsedData.push(Z)}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))};
vXh=function(G){this.typeNumber=0;this.errorCorrectLevel=G===void 0?2:G;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
fZ=function(G,H){if(G.length==void 0)throw Error("Pk`"+G.length+"`"+H);for(var Z=0;Z<G.length&&G[Z]==0;)Z++;this.num=Array(G.length-Z+H);for(H=0;H<G.length-Z;H++)this.num[H]=G[H+Z]};
Wwt=function(G,H){this.totalCount=G;this.dataCount=H};
z3m=function(){this.buffer=[];this.length=0};
Kwq=function(){var G=!1;if(_.cMU()){G=_.nW();var H="";_.vRj()?(H=/Windows (?:NT|Phone) ([0-9.]+)/,H=(G=H.exec(G))?G[1]:"0.0"):_.P3()?(H=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,H=(G=H.exec(G))&&G[1].replace(/_/g,".")):_.fUo()?(H=/Mac OS X ([0-9_.]+)/,H=(G=H.exec(G))?G[1].replace(/_/g,"."):"10"):_.tM(_.nW(),"KaiOS")?(H=/(?:KaiOS)\/(\S+)/i,H=(G=H.exec(G))&&G[1]):_.cMU()?(H=/Android\s+([^\);]+)(\)|;)/,H=(G=H.exec(G))&&G[1]):_.Wvf()&&(H=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,H=(G=H.exec(G))&&G[1]);G=
H||""}return G};
h3h=function(G,H){this.JSC$19932__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(H)for(var Z in H)this.JSC$19932__htOption[Z]=H[Z];this.JSC$19932__htOption.useSVG&&(MPq=jSD);this.JSC$19932__android=Kwq();this.JSC$19932__el=G;this._oQRCode=null;this._oDrawing=new MPq(this.JSC$19932__el,this.JSC$19932__htOption);this.JSC$19932__htOption.text&&(G=this.JSC$19932__htOption.text,this._oQRCode=new vXh(this.JSC$19932__htOption.correctLevel),PPt(this._oQRCode,
G),H=this._oQRCode,rWs(H,!1,wVD(H)),this.JSC$19932__el.title=G,this._oDrawing.draw(this._oQRCode),this.makeImage())};
CPq=function(G,H,Z,Q,p){G.save();var l=new Path2D;l.roundRect(H,Z,Q*7,Q*7,Q*2);l.roundRect(H+Q,Z+Q,Q*5,Q*5,Q*1.3);l.roundRect(H+2*Q,Z+2*Q,Q*3,Q*3,Q);G.clip(l,"evenodd");G.fillStyle=p;G.fillRect(0,0,G.canvas.width,G.canvas.height);G.restore()};
vI=function(G,H){if(typeof G!=="function")throw Error("Sk");return _.Qf.setTimeout(function(){G()},H)};
WI=function(){};
OGo=function(G,H,Z,Q,p){(new WI).debug("TestLoadImageWithRetries: "+p);if(Q==0)Z(!1);else{var l=p||0;Q--;iGh(G,H,function(q){q?Z(!0):_.Qf.setTimeout(function(){OGo(G,H,Z,Q,l)},l)})}};
iGh=function(G,H,Z){var Q=new WI;Q.debug("TestLoadImage: loading "+G);var p=new Image;p.onload=function(){try{Q.debug("TestLoadImage: loaded"),aqA(p),Z(!0)}catch(l){}};
p.onerror=function(){try{Q.debug("TestLoadImage: error"),aqA(p),Z(!1)}catch(l){}};
p.onabort=function(){try{Q.debug("TestLoadImage: abort"),aqA(p),Z(!1)}catch(l){}};
p.ontimeout=function(){try{Q.debug("TestLoadImage: timeout"),aqA(p),Z(!1)}catch(l){}};
_.Qf.setTimeout(function(){if(p.ontimeout)p.ontimeout()},H);
p.src=G};
aqA=function(G){G.onload=null;G.onerror=null;G.onabort=null;G.ontimeout=null};
yWi=function(){this.front_=[];this.back_=[]};
oXL=function(G,H){this.action=G;this.params=H||{}};
zc=function(G,H){_.wI.call(this);this.delay_=new _.iY(this.JSC$20058_onTick_,0,this);_.T$(this,this.delay_);this.JSC$20056_interval_=5E3;this.nextTickTime_=0;if(typeof G==="function")H&&(G=(0,_.Cu)(G,H));else if(G&&typeof G.handleEvent==="function")G=(0,_.Cu)(G.handleEvent,G);else throw Error("ya");this.JSC$20058_listener_=G};
KZ=function(G,H,Z,Q,p,l,q,u,B,t,D,d,e,n,c){var W=this;Z=Z===void 0?!1:Z;Q=Q===void 0?function(){return""}:Q;
p=p===void 0?!1:p;l=l===void 0?!1:l;q=q===void 0?!1:q;u=u===void 0?function(){return _.Yk({})}:u;
B=B===void 0?!1:B;D=D===void 0?!1:D;d=d===void 0?!1:d;e=e===void 0?!1:e;n=n===void 0?!1:n;this.JSC$20059_pathPrefix_=G;this.defaultQueryParams_=H;this.pubsub_=new _.K$;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!c)?c(function(){W.safeReconnect_()}):new zc(this.safeReconnect_,this);
this.JSC$20059_channel_=null;this.JSC$20059_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20059_pendingMessages_=[];this.enableAsyncTest_=Z;this.JSC$20059_getXsrfToken_=Q;this.useAsyncBrowserChannelHandler_=l;this.getAuthorizationHeader_=u;this.getAuthorizationHeaderSync_=t;this.enableCachedUpdateAuthorizationHeader_=q;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Yk();this.enableLoungeTokenRefresh_=p;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
B;this.disableMdxAuthForNonPlaybackMessages_=D;this.disableMdxAuthForAdMessages_=d;this.enableMdxAuthForConnectionOnly_=e;this.disableMdxAuthForShortsMessages_=n;this.JSC$20059_channelOpenedCounter=new mB8;this.JSC$20059_channelClosedCounter=new UB8;this.channelMessageSentCounter=new R38;this.JSC$20059_channelMessageReceivedCounter=new Nuj;this.JSC$20059_channelErrorCounter=new AWL;this.pendingMapsOnClosedCounter=new xBL;this.undeliveredMapsOnClosedCounter=new LwD};
MC=function(G){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;G=G||document.location.href;var H=Number(_.IJ(G)[4]||null)||"";H&&(this.port=":"+H);this.domain=_.qY(G)||"";G=_.nW();G.search("MSIE")>=0&&_.DU(G.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
jN=function(G){G=G||{};this.name=G.name||"";this.id=G.id||G.screenId||"";this.token=G.token||G.loungeToken||"";this.uuid=G.uuid||G.dialId||"";this.idType=G.screenIdType||"normal";this.secret=G.screenIdSecret||""};
EXL=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(G){var H=Math.random()*16|0;return(G=="x"?H:H&3|8).toString(16)})};
Ywa=function(G){return _.mT(G,function(H){return{key:H.id,name:H.name}})};
Fwc=function(G,H){return _.hM(G,function(Z){return Z||H?!Z!=!H?!1:Z.id==H.id:!0})};
rL=function(G,H){return _.hM(G,function(Z){return PI(Z,H)})};
ZAL=function(){var G=bGj(),H=GGo();if(HAm()){var Z=G,Q=_.Ce2(Z,H);Q<0&&_.rMU(Z,-(Q+1),0,H)}G=s9j(G);if(G.length==0)try{_.PfR("remote_sid")}catch(p){}else try{_.PU("remote_sid",G.join(","),-1)}catch(p){}};
bGj=function(){var G=_.dT("yt-remote-connected-devices")||[];G.sort(_.hjW);return G};
s9j=function(G){if(G.length==0)return[];var H=G[0].indexOf("#"),Z=H==-1?G[0]:G[0].substring(0,H);return _.mT(G,function(Q,p){return p==0?Q:Q.substring(Z.length)})};
Q98=function(G){_.Dp("yt-remote-connected-devices",G,86400)};
GGo=function(){if(p8q)return p8q;var G=_.dT("yt-remote-device-id");G||(G=EXL(),_.Dp("yt-remote-device-id",G,31536E3));for(var H=bGj(),Z=1,Q=G;_.yf(H,Q);)Z++,Q=G+"#"+Z;return p8q=Q};
lxh=function(){return _.dT("yt-remote-session-browser-channel")};
HAm=function(){return _.dT("yt-remote-session-screen-id")};
qzL=function(G){G.length>5&&(G=G.slice(G.length-5));var H=_.mT(gGk(),function(Q){return Q.loungeToken}),Z=_.mT(G,function(Q){return Q.loungeToken});
_.UAb(Z,function(Q){return!_.yf(H,Q)})&&IxA();
_.Dp("yt-remote-local-screens",G,31536E3)};
gGk=function(){return _.dT("yt-remote-local-screens")||[]};
IxA=function(){_.Dp("yt-remote-lounge-token-expiration",!0,86400)};
wL=function(G){G||(_.eX("yt-remote-session-screen-id"),_.eX("yt-remote-session-video-id"));ZAL();G=bGj();_.ou(G,GGo());Q98(G)};
uya=function(){Szi();return hb?!!hb.get("yt-remote-use-staging-server"):!1};
Szi=function(){if(!hb){var G=_.oKX();G&&(hb=new _.i0(G))}};
kGL=function(G,H,Z,Q,p){Z=Z===void 0?function(){return""}:Z;
var l=function(){return new KZ(CZ(G,"/bc"),H,!1,Z,Q)};
return _.V("enable_mdx_web_channel_desktop")?new Bpm(function(){return new Jlj(CZ(G,"/wc"),H,Z)}):new tOD(l,p)};
nGs=function(){var G=Dct;dcm();ii.push(G);ef6()};
O9=function(G,H){dcm();var Z=VOk(G,String(H));ii.length==0?$co(Z):(ef6(),_.Zk(ii,function(Q){Q(Z)}))};
aL=function(G){O9("CP",G)};
dcm=function(){ii||(ii=_.GF("yt.mdx.remote.debug.handlers_")||[],_.u7("yt.mdx.remote.debug.handlers_",ii))};
$co=function(G){var H=(ye+1)%50;ye=H;X8A[H]=G;clh||(clh=H==49)};
ef6=function(){var G=ii;if(X8A[0]){var H=clh?ye:-1,Z={};do Z={record$jscomp$15:void 0},H=(H+1)%50,Z.record$jscomp$15=X8A[H],_.Zk(G,function(Q){return function(p){p(Q.record$jscomp$15)}}(Z));
while(H!=ye);X8A=Array(50);ye=-1;clh=!1}};
VOk=function(G,H){var Z=(Date.now()-Tp8)/1E3;Z.toFixed&&(Z=Z.toFixed(3));var Q=[];Q.push("[",Z+"s","] ");Q.push("[","yt.mdx.remote","] ");Q.push(G+": "+H,"\n");return Q.join("")};
oL=function(G){_.NM.call(this);this.JSC$20084_logName_=G;this.screens=[]};
U9=function(G){oL.call(this,"LocalScreenService");this.JSC$20091_http_=G;this.loungeTokenRefreshTimer_=NaN;mF(this);this.info("Initializing with "+fxL(this.screens))};
RL=function(G,H){H=H===void 0?!1:H;oL.call(this,"ScreenService");this.JSC$20097_http_=G;this.disableAutomaticScreenCache_=H;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};vGc(this)};
NC=function(G,H,Z){_.NM.call(this);this.JSC$20101_logName_=Z;this.JSC$20101_screenService_=G;this.receiver_=H;this.screen_=null};
mck=function(G,H,Z){Z.disableCastApi?Ab("Cannot initialize because disabled by Mdx config."):WUD()?zf6(G,Z)&&(KUj(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?MOa(H):(window.__onGCastApiAvailable=function(Q,p){Q?MOa(H):(x6("Failed to load cast API: "+p),j9j(!1),KUj(!1),_.eX("yt-remote-cast-available"),_.eX("yt-remote-cast-receiver"),PLk(),H(!1))},Z.loadCastApiSetupScript?_.zh(rlA):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
w8j()>=60&&hfj():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?CLa():w8j()>=89?iAq():(OAh(),axh(yl6.map(oGq))))):Ab("Cannot initialize because not running Chrome")};
PLk=function(){Ab("dispose");var G=LZ();G&&G.dispose();_.u7("yt.mdx.remote.cloudview.instance_",null);Uc6(!1);_.Vkj(Rfj);Rfj.length=0};
Nph=function(){return!!_.dT("yt-remote-cast-installed")};
AlD=function(){var G=_.dT("yt-remote-cast-receiver");return G?G.friendlyName:null};
xc8=function(){Ab("clearCurrentReceiver");_.eX("yt-remote-cast-receiver")};
LUk=function(){return Nph()?LZ()?LZ().getCastSession():(x6("getCastSelector: Cast is not initialized."),null):(x6("getCastSelector: Cast API is not installed!"),null)};
Yza=function(G,H){EGj()?LZ().setConnectedScreenStatus(G,H):x6("setConnectedScreenStatus called before ready.")};
WUD=function(){var G=_.nW().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.sy||G};
zf6=function(G,H){var Z=!1;LZ()||(G=new E9(G,H),G.subscribe("yt-remote-cast2-availability-change",function(Q){_.Dp("yt-remote-cast-available",Q);Zj("yt-remote-cast2-availability-change",Q)}),G.subscribe("yt-remote-cast2-receiver-selected",function(Q){Ab("onReceiverSelected: "+Q.friendlyName);
_.Dp("yt-remote-cast-receiver",Q);Zj("yt-remote-cast2-receiver-selected",Q)}),G.subscribe("yt-remote-cast2-receiver-resumed",function(Q){Ab("onReceiverResumed: "+Q.friendlyName);
_.Dp("yt-remote-cast-receiver",Q);Zj("yt-remote-cast2-receiver-resumed",Q)}),G.subscribe("yt-remote-cast2-session-change",function(Q){Ab("onSessionChange: "+FUh(Q));
Q||_.eX("yt-remote-cast-receiver");Zj("yt-remote-cast2-session-change",Q)}),_.u7("yt.mdx.remote.cloudview.instance_",G),Z=!0);
Ab("cloudview.createSingleton_: "+Z);return Z};
LZ=function(){return _.GF("yt.mdx.remote.cloudview.instance_")};
MOa=function(G){j9j(!0);KUj(!1);LZ().init(!1,function(H){H?(Uc6(!0),_.$$R("yt-remote-cast2-api-ready")):(x6("Failed to initialize cast API."),j9j(!1),_.eX("yt-remote-cast-available"),_.eX("yt-remote-cast-receiver"),PLk());G(H)})};
Ab=function(G){O9("cloudview",G)};
x6=function(G){O9("cloudview",G)};
j9j=function(G){Ab("setCastInstalled_ "+G);_.Dp("yt-remote-cast-installed",G)};
EGj=function(){return!!_.GF("yt.mdx.remote.cloudview.apiReady_")};
Uc6=function(G){Ab("setApiReady_ "+G);_.u7("yt.mdx.remote.cloudview.apiReady_",G)};
KUj=function(G){_.u7("yt.mdx.remote.cloudview.initializing_",G)};
Y6=function(G){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(G)};
pMo=function(G){Szi();if(!hb||!hb.get("yt-remote-disable-remote-module-for-dev")){G=_.xI("MDX_CONFIG")||G;Vkq();ZAL();Fd||(Fd=new MC(G?G.loungeApiHost:void 0),uya()&&(Fd.basePath="/api/loungedev"));bi||(bi=_.GF("yt.mdx.remote.deferredProxies_")||[],_.u7("yt.mdx.remote.deferredProxies_",bi));bAj();var H=GT();if(!H){var Z=new RL(Fd,G?G.disableAutomaticScreenCache||!1:!1);_.u7("yt.mdx.remote.screenService_",Z);H=GT();var Q={};G&&(Q={appId:G.appId,disableDial:G.disableDial,theme:G.theme,loadCastApiSetupScript:G.loadCastApiSetupScript,
disableCastApi:G.disableCastApi,enableDialLoungeToken:G.enableDialLoungeToken,enableCastLoungeToken:G.enableCastLoungeToken,forceMirroring:G.forceMirroring});_.u7("yt.mdx.remote.enableConnectWithInitialState_",G?G.enableConnectWithInitialState||!1:!1);mck(Z,function(l){l?Ha()&&Yza(Ha(),"YouTube TV"):Z.subscribe("onlineScreenChange",function(){Zj("yt-remote-receiver-availability-change")})},Q)}if(G&&!_.GF("yt.mdx.remote.initialized_")){_.u7("yt.mdx.remote.initialized_",!0);
sm("Initializing: "+(0,_.zw)(G));ZP.push(_.dM("yt-remote-cast2-api-ready",function(){Zj("yt-remote-api-ready")}));
ZP.push(_.dM("yt-remote-cast2-availability-change",function(){Zj("yt-remote-receiver-availability-change")}));
ZP.push(_.dM("yt-remote-cast2-receiver-selected",function(){G1s();Zj("yt-remote-auto-connect","cast-selector-receiver")}));
ZP.push(_.dM("yt-remote-cast2-receiver-resumed",function(){Zj("yt-remote-receiver-resumed","cast-selector-receiver")}));
ZP.push(_.dM("yt-remote-cast2-session-change",HMm));ZP.push(_.dM("yt-remote-connection-change",function(l){l?Yza(Ha(),"YouTube TV"):s6A()||(Yza(null,null),xc8())}));
ZP.push(_.dM("yt-remote-cast2-session-failed",function(){Zj("yt-remote-connection-failed")}));
Q=ZMh();G.isAuto&&(Q.id+="#dial");var p=G.capabilities||[];p.length>0&&(Q.capabilities=p);Q.name=G.device;Q.app=G.app;(G=G.theme)&&(Q.theme=G);sm(" -- with channel params: "+(0,_.zw)(Q));Q?(_.Dp("yt-remote-session-app",Q.app),_.Dp("yt-remote-session-name",Q.name)):(_.eX("yt-remote-session-app"),_.eX("yt-remote-session-name"));_.u7("yt.mdx.remote.channelParams_",Q);H.start();Ha()||Q6s()}}};
gjt=function(){var G=GT().instance_.$_gos();var H=lGq();H&&QZ()&&(Fwc(G,H)||G.push(H));return Ywa(G)};
IGq=function(){var G=gjt(),H=lGq();H||(H=s6A());return _.hM(G,function(Z){return H&&PI(H,Z.key)?!0:!1})};
lGq=function(){var G=Ha();if(!G)return null;var H=GT().getScreens();return rL(H,G)};
HMm=function(G){sm("remote.onCastSessionChange_: "+FUh(G));if(G){var H=lGq();if(H&&H.id==G.id){if(Yza(H.id,"YouTube TV"),G.idType=="shortLived"&&(G=G.token))qVD&&(qVD.token=G),(H=QZ())&&H.setLoungeToken(G)}else H&&SVt(),uWk(G,1)}else QZ()&&SVt()};
SVt=function(){EGj()?LZ().stopSession():x6("stopSession called before API ready.");var G=QZ();G&&(G.disconnect(1),Bqk(null))};
JBm=function(){var G=QZ();return G&&G.getProxyState()!=3?new pL(QZ(),void 0):null};
sm=function(G){O9("remote",G)};
GT=function(){if(!tVi){var G=_.GF("yt.mdx.remote.screenService_");tVi=G?new k16(G):null}return tVi};
Ha=function(){return _.GF("yt.mdx.remote.currentScreenId_")};
DW8=function(G){_.u7("yt.mdx.remote.currentScreenId_",G)};
G1s=function(){_.u7("yt.mdx.remote.connectData_",null)};
QZ=function(){return _.GF("yt.mdx.remote.connection_")};
Bqk=function(G){var H=QZ();G1s();G||DW8("");_.u7("yt.mdx.remote.connection_",G);bi&&(_.Zk(bi,function(Z){Z(G)}),bi.length=0);
H&&!G?Zj("yt-remote-connection-change",!1):!H&&G&&Zj("yt-remote-connection-change",!0)};
s6A=function(){var G=HAm();if(!G)return null;var H=GT();if(!H)return null;H=H.getScreens();return rL(H,G)};
uWk=function(G,H){dWi?qVD=G:(DW8(G.id),G=new lk(Fd,G,ZMh(),_.GF("yt.mdx.remote.enableConnectWithInitialState_")||!1),G.connect(H,_.GF("yt.mdx.remote.connectData_")),G.subscribe("beforeDisconnect",function(Z){Zj("yt-remote-before-disconnect",Z)}),G.subscribe("beforeDispose",function(){QZ()&&Bqk(null)}),G.subscribe("browserChannelAuthError",function(){var Z=lGq();
Z&&Z.idType=="shortLived"&&(EGj()?LZ().handleBrowserChannelAuthError():x6("refreshLoungeToken called before API ready."))}),Bqk(G))};
Q6s=function(){var G=s6A();G?(sm("Resume connection to: "+FUh(G)),uWk(G,0)):(wL(),xc8(),sm("Skipping connecting because no session screen found."))};
bAj=function(){var G=ZMh();if(_.oN.isEmpty(G)){G=GGo();var H=_.dT("yt-remote-session-name")||"",Z=_.dT("yt-remote-session-app")||"";G={device:"REMOTE_CONTROL",id:G,name:H,app:Z,mdxVersion:3};G.authuser=String(_.xI("SESSION_INDEX","0"));(H=_.xI("DELEGATED_SESSION_ID"))&&(G.pageId=String(H));_.u7("yt.mdx.remote.channelParams_",G)}};
ZMh=function(){return _.GF("yt.mdx.remote.channelParams_")||{}};
ech=function(){var G,H;return _.S(function(Z){if(Z.nextAddress==1)return(_.ZXb()||_.V("use_new_nwl"))&&_.bHM().isNetworkAvailable()?Z.yield(_.BP(),2):Z.return();if(Z.nextAddress!=3)return(G=Z.yieldResult)?Z.yield(Nxo(G),3):Z.return();H=Z.yieldResult;if(!H.length)return Z.return();H.forEach(function(Q){var p={timestamp:Q.timestamp};Q=Q.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:Q.appShellAssetLoadReport,options:p}:Q.clientError?{payloadName:"clientError",payload:Q.clientError,
options:p}:void 0;Q&&_.yR(Q.payloadName,Q.payload,Q.options)});
H.length===100&&_.Ui.addLowPriorityJob(ech);_.K0(Z)})};
njt=function(G){if(G.playerResponse){if(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(H){return!(!H||!H.mealbarPromoRenderer)}))&&G.mealbarPromoRenderer)return G.mealbarPromoRenderer}else if(G.response&&(G=G.response)&&G.overlay&&G.overlay.mealbarPromoRenderer)return G.overlay.mealbarPromoRenderer};
VVL=function(G){if(G.response){var H=G.response;if(H&&H.overlay&&H.overlay.tooltipRenderer)return H.overlay.tooltipRenderer}if(G.playerResponse&&(G=G.playerResponse,G.messages&&G.messages.length>0&&(G=G.messages.find(function(Z){return!(!Z||!Z.tooltipRenderer)}))&&G.tooltipRenderer))return G.tooltipRenderer};
XM6=function(G){if(!$Wt&&(G=G||_.xI("ZWIEBACK_PING_URLS"))&&G.length){$Wt=!0;for(var H=0;H<G.length;H++)_.G_(G[H])}};
TqD=function(G){if(_.oN.get(_.xI("PLAYER_VARS",{}),"privembed",!1)!="1"){G&&CqL();try{cBa().then(function(){},function(){}),_.cU(TqD,18E5)}catch(H){_.FU(H)}}};
fGs=function(){var G=_.lf(),H=G.getFlag(119),Z=window.devicePixelRatio>1;document.body&&_.yX(document.body,"exp-invert-logo")&&(Z&&!_.yX(document.body,"inverted-hdpi")?_.O6(document.body,"inverted-hdpi"):!Z&&_.yX(document.body,"inverted-hdpi")&&_.CX(document.body,"inverted-hdpi"));H!=Z&&(_.g8(0,119,Z),G.save())};
vjq=function(G){return G.filter(function(H){return"ypcGetCartEndpoint"in H||"ypcFixInstrumentEndpoint"in H})};
Wnq=function(G){return G.filter(function(H){return!_.X(H,_.ka_)})};
Knm=function(G,H){var Z,Q,p,l,q,u,B;_.S(function(t){switch(t.nextAddress){case 1:Z=_.rT.getInstance();Q=_.HT.instance;p=_.Ph.instance;if(!p)return zci(G,Q,H),t.return();_.XV(t,2);G.onLoadingCommand&&Q.resolveCommand(G.onLoadingCommand);return t.yield(Z.getCurrentPositionFromGeolocation(),4);case 4:l=t.yieldResult;if(!G.resolveLocationCommand){t.jumpTo(5);break}q=Z.createLocationInfo(l);return t.yield(_.wb(p,G.resolveLocationCommand,{locationInfo:q}),6);case 6:u=t.yieldResult;if(!u||"error"in u&&u.error||
u.errorMetadata)return zci(G,Q,H),t.return();var D;if(u==null?0:(D=u.onResponseReceivedActions)==null?0:D.length){D=_.I(u.onResponseReceivedActions);for(var d=D.next();!d.done;d=D.next())Q.resolveCommand(d.value)}(_.X(G.onSuccessCommand,_.hZ)||_.X(G.onSuccessCommand,_.gT))&&_.N5(H.hostElement,"yt-navigate",{endpoint:G.onSuccessCommand,reload:!0});case 5:_.Za(t,0);break;case 2:B=_.Wg(t);if(B instanceof GeolocationPositionError&&B.code===GeolocationPositionError.PERMISSION_DENIED)return G.onDeniedCommand&&
Q.resolveCommand(G.onDeniedCommand),t.return();zci(G,Q,H);_.K0(t)}})};
zci=function(G,H,Z){G.onFailureCommand&&(H.resolveCommand(G.onFailureCommand),_.AZ(Z.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
j6o=function(G,H){var Z=_.X(G,_.Ot7);if(Z&&H){G=Z.videoIds||[Z.videoId];var Q;H=(Q=_.N5(H,"yt-lockup-requested",{videoIds:G}).detail)==null?void 0:Q.returnValue;var p;Z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?p=H?H:G.map(function(l){return{videoId:l,navigationEndpoint:Z.videoCommand}}):H&&(p=H);
p&&(Q=p.map(function(l){var q=Object,u=q.assign;var B=l.navigationEndpoint;if(!_.X(B,_.uS)){var t=_.X(B,_.hZ);if(t){if(delete t.index,delete t.playlistId,t=_.X(B==null?void 0:B.commandMetadata,_.HA),t==null?0:t.url){var D=t.url;D=_.ya(D,"list");D=_.ya(D,"index");t.url=D}}else B=void 0}return u.call(q,{},l,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:B})}),MVL(Q,Z))}};
P$j=function(G){var H=_.l3();if(G=_.X(G,_.ayd))G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&H.clearQueue(),G.closeMiniplayer&&_.tp().resolve(_.WM).close(!0)};
wMs=function(G){rBk(_.l3(),G)};
hc8=function(G){var H;(G=(H=_.X(G,_.C2T))==null?void 0:H.setVideoIds)&&G.forEach(function(Z){_.Mf7(_.l3(),Z)})};
iMo=function(G){C$q(_.l3(),G)};
OMh=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(G){return!1}};
aGt=function(G){var H=["h","m","s"],Z=_.mv(H);Z.reverse();var Q={};G=(G.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(q){var u=(q.match(/[hms]/)||[""])[0];return u?(Q[u]=parseInt(q.match(/\d+/)[0],10),!1):!0});
for(G.reverse();G.length&&Z.length;){var p=Z.shift();p in Q||(Q[p]=parseInt(G.shift(),10))}if(G.length||Q.s>59||Q.m>59||Q.h>9)return null;var l="";H.forEach(function(q){Q[q]&&(l+=""+Q[q]+q)});
return l||null};
yBh=function(G,H){var Z=_.lNa(H,{},G,!0);return new Promise(function(Q,p){Z.listenOnce("n",function(){p(Error("Dl`"+Z.JSC$29797_getErrorDescription()))});
Z.listenOnce("l",function(){var l=Z.getResponseCode();if(l!==200)p(Error("El`"+H+"`"+G.type+"`"+G.size+"`"+l));else try{Q(JSON.parse(Z.getResponseText()).encryptedBlobId)}catch(q){p(q)}});
Z.run()})};
ojq=function(G){return G.substring(G.indexOf(":")+1,G.indexOf(";"))};
mWh=function(G){return new Promise(function(H,Z){var Q=new FileReader;Q.onloadend=function(){try{var p=new Uint8Array(Q.result);p.length<8&&Z(void 0);var l=p.subarray(0,8);p="";for(var q=0;q<l.length;q++)p+=("0"+l[q].toString(16)).substr(-2);p.startsWith("ffd8ff")?H("image/jpeg"):p.startsWith("47494638")?H("image/gif"):p.startsWith("89504e470d0a1a0a")?H("image/png"):p.startsWith("424d")?H("image/bmp"):H(void 0)}catch(u){Z(u)}};
Q.onerror=Z;Q.readAsArrayBuffer(G)})};
UWL=function(G){return new Promise(function(H,Z){var Q=new Image;Q.crossOrigin="anonymous";Q.onload=function(){var p=document.createElement("canvas");p.width=Q.naturalWidth;p.height=Q.naturalHeight;var l=p.getContext("2d");if(!l)throw Error("Fl");l.drawImage(Q,0,0);l=ojq(G);p.toBlob(function(q){q?H(q):Z()},l)};
Q.src=G})};
Nqj=function(G,H){var Z;if(((Z=_.X(G,_.uS))==null?void 0:Z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Q;_.N5((Q=H.hostElement)!=null?Q:H,"yt-shorts-reset");_.bEt(_.tp().resolve(_.XI),G).then(function(l){Rc6(l,H,G)})}else{var p;
_.L9((p=H.hostElement)!=null?p:H,[G]).then(function(l){l&&Rc6(l.data,H,G)})}};
Rc6=function(G,H,Z){if(G){var Q=_.X(G.replacementEndpoint,_.uS);if(Q){G.sequenceContinuation&&(Q.sequenceParams=G.sequenceContinuation);var p;_.N5((p=H.hostElement)!=null?p:H,"yt-navigate",{endpoint:G.replacementEndpoint})}else if((G==null?void 0:G.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(G==null?0:G.watchStatus)&&_.X(G.watchStatus,_.TSR)){var l;_.N5((l=H.hostElement)!=null?l:H,"yt-navigate",{endpoint:Z})}}};
AB8=function(G){var H=_.tp().resolve(_.oT),Z=_.KG.currentPageTypeSelector(H.getState())||"";H=_.KG.currentPageSubTypeSelector(H.getState())||"";Z=Z==="ytd-browse"&&H==="home";return _.V("web_guide_entry_enable_cache_for_non_home_pages")?(G=(G==null?void 0:G.navigationEndpoint)&&_.lS(G.navigationEndpoint)==="home",{disableCache:Z&&G}):{disableCache:Z}};
Lna=function(G,H,Z){if(H!=null&&H.isPrimary){a:{if(Z&&Z.length){var Q=H.formattedTitle;var p={};Q&&(p.header={panelHeaderViewModel:{title:_.Vw(Q)}});Q=[];Z=_.I(Z);for(var l=Z.next();!l.done;l=Z.next()){l=_.X(l.value,xWa);var q=void 0,u=void 0,B=((q=l)==null?0:q.formattedTitle)?_.Vw((u=l)==null?void 0:u.formattedTitle):void 0;q=void 0;u=(q=l)==null?void 0:q.isPrimary;if(l&&B&&!u){B={title:B};l.navigationEndpoint&&(B.rendererContext={commandContext:{onTap:{innertubeCommand:l.navigationEndpoint}}});
q=[];var t=u=void 0;if(((u=l)==null?0:(t=u.thumbnail)==null?0:t.thumbnails)&&l.thumbnail.thumbnails.length>0){u=_.I(l.thumbnail.thumbnails);for(t=u.next();!t.done;t=u.next())q.push({url:t.value.url});B.leadingAccessory={avatarViewModel:{image:{sources:q},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(u=void 0,(u=l.icon)==null?0:u.iconType)q.push({clientResource:{imageName:l.icon.iconType||""}}),B.leadingImage={sources:q};u=q=void 0;((q=l)==null?0:(u=q.badges)==null?0:u.liveBroadcasting)?B.trailingImage=
{sources:[{clientResource:{imageName:"live",imageColor:4294901760},width:20,height:20}]}:l.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?B.themedTrailingImage={image:{sources:[{clientResource:{imageName:"dot",imageColor:4278607828},width:8,height:8}]},darkThemeImage:{sources:[{clientResource:{imageName:"dot",imageColor:4282296063},width:8,height:8}]}}:l.count&&(B.trailingLabel={content:l.count.toString()});Q.push({listItemViewModel:B})}}Q.length!==0?(p.content={listViewModel:{listItems:Q}},
p.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}}):p=void 0;if(p){p={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:p}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:{preventCloseWhileHovered:!0,hideDelayMs:3E3}}}};break a}}p=void 0}p&&(H.mouseEnterEndpoint=p,H.mouseLeaveEndpoint={hideSheetCommand:{}});G.push({guideEntryRenderer:H})}};
EjD=function(G){if(!G)return!1;try{if(G.host&&G.host.tagName==="YT-FORMATTED-STRING"&&G.host.id==="contenteditable-textarea"||G.nodeType===Node.ELEMENT_NODE&&G.tagName==="YTD-COMMENT-INPUT")return!0}catch(H){return!1}return EjD(G.parentNode)};
g2=function(G){return G?G.tagName==="A"&&G.href&&G.classList.contains("yt-simple-endpoint"):!1};
YVs=function(G){return G?G.tagName==="IMG"&&G.classList.contains("emoji"):!1};
FnD=function(G,H,Z){if(!G)return null;var Q=g2(G);if(Q&&Z)return H=G.pathname.substring(G.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(Q&&!Z)return document.createTextNode("");if(YVs(G))return Z=G.alt,G=G.dataset.emojiId,!G&&H&&(H=_.xX(H,Z))&&H.isCustomEmoji&&(G=H.emojiId),G?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+G+">"):document.createTextNode(Z);Q=G.cloneNode(!1);for(var p=0;p<G.childNodes.length;++p){var l=FnD(G.childNodes[p],H,Z);l&&Q.appendChild(l)}return Q};
Ig=function(G){return G?g2(G)?G:Ig(G.lastChild):null};
bMk=function(G){return G?g2(G)?G:bMk(G.firstChild):null};
GW8=function(G){if(!G)return null;for(var H=G.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=Ig(H))?G=H:G=(G=G.parentNode)?Ig(G.previousElementSibling):null;return G};
HYo=function(G){if(!G)return null;for(var H=G.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=bMk(H))?H:HYo(G.parentNode)};
sED=function(G){var H=_.Ew(),Z=H.JSC$11352_getStartNode();if(!EjD(Z.parentNode))return null;H=H.JSC$11352_getStartOffset();if(Z.nodeType===Node.TEXT_NODE){var Q=_.xr(Z,g2);if(Q){if(G&&H===0||!G&&H===Z.length)return Q}else{if(G&&H===Z.length)return!Z||Z.nodeName==="BR"||Z.nextElementSibling&&_.YX(Z.nextElementSibling,"display")==="block"?null:bMk(Z.nextElementSibling);if(!G&&H===0)return Z?Ig(Z.previousElementSibling):null}}if(Z.nodeType===Node.ELEMENT_NODE)if(G){if(0<=H&&H<Z.childNodes.length)return bMk(Z.childNodes[H])}else if(0<
H&&H<=Z.childNodes.length)return Ig(Z.childNodes[H-1]);return null};
ZYj=function(G,H,Z){if(!G)return null;if(G.nodeType===Node.TEXT_NODE)if(Z){var Q=GW8(G);if(Q&&!/^\s+\S/.test(G.wholeText.substr(0,H)))return Q}else if((Q=HYo(G))&&!/\S\s+/.test(G.wholeText.substr(H,G.wholeText.length)))return Q;return G.nodeType===Node.ELEMENT_NODE?Z?GW8(G.childNodes[H]):HYo(G.childNodes[H]):ZYj(G.parentNode,H,Z)};
QEq=function(G){if(G.hasChildNodes())switch(G.tagName){case "DIV":case "A":case "SPAN":var H="";for(G=G.firstChild;G;G=G.nextSibling)H+=QEq(G);return H;default:return""}else switch(G.nodeType){case 3:return G.textContent;default:return""}};
p46=function(G){switch(G){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"}};
lHL=function(G){return G.map(function(H){return{settingsRadioOptionRenderer:{title:_.xK(H.name),asideText:_.xK(H.approximateSize),id:p46(H.format)}}})};
IH6=function(G){if(G&&G.length!==0)return G.filter(gHm()).map(function(H){return{settingsRadioOptionRenderer:{title:H.name,asideText:H.approximateSize,id:p46(H.formatType)}}})};
qL=function(G){if(G)return G.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
qyh=function(G,H){G=new Set(G!=null?G:[]);if(G.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(G.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(G.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(G.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(G.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(H)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Syk=function(G){var H=G.indexOf("(");return H!==-1?G.substring(H+1,G.length-1):G};
_.Bmh=function(G,H,Z,Q,p,l){Z||(Z=uzo);var q;(q=_.X(Z.commandMetadata,_.HA))!=null&&q.url||(Z=Error("Kl`"+JSON.stringify(Z)),_.me(Z),Z=uzo);Z=_.oN.unsafeClone(Z);q=_.LT(_.X(Z.commandMetadata,_.HA).url,"search_query",G);_.bY(location.href,"sv")==="1"&&(_.X(Z,_.I_).params="EgOAAgE%3D",q=_.LT(q,"sv","1"));_.X(Z,_.I_)&&(_.X(Z,_.I_).query=G);q=q.replace(/%20/g,"+");_.X(Z.commandMetadata,_.HA).url=q;p=_.V("desktop_enable_entity_suggest")?{entityMid:p}:{};_.tp().resolve(_.Dk).resolveCommand(Z,{form:{tempData:Object.assign({},
{gs_l:H,oq:Q!=null?Q:G},p,{isFromShorts:l})}})};
Jgq=function(G){switch(G){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
kWt=function(G,H,Z,Q,p,l){var q=_.oN.clone(tDi);q.locale=_.xI("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;q.report={description:p||"<empty>"};p=_.xI("SBOX_SETTINGS",{});H=H.join(",");var u=Date.now();G={choice_cc:Q,choice_id_cc:Z,choices_sc:H,gl:p.REQUEST_DOMAIN,hl:p.REQUEST_LANGUAGE,query:G,time:u};l&&(G.choice_additional_comment_cc=l);_.BKt(q,G)};
D8A=function(G){var H=new Map;H.set("authuser",_.xI("SESSION_INDEX","0"));return _.$r(G,H)};
exo=function(G){var H;return _.S(function(Z){switch(Z.nextAddress){case 1:if(!G||!d86(G))return Z.return(null);H=null;switch(_.xI("INNERTUBE_CLIENT_NAME")){case "WEB":return Z.jumpTo(2);case "WEB_REMIX":H=G.getPlayer()}Z.jumpTo(3);break;case 2:return Z.yield(G.getPlayerPromise(),4);case 4:H=Z.yieldResult;Z.jumpTo(3);break;case 3:return Z.return(H)}})};
d86=function(G){return["ytd-player","ytmusic-player"].includes(String(G.tagName||"").toLowerCase())};
nHo=function(G){G=Math.round(G);return G%2?G-1:G};
VDi=function(G){G=Math.round(G);return G%2===0?G-1:G};
$8o=function(G){var H,Z,Q;if(G=(H=G.createPlaylistDialogFormSchema)==null?void 0:(Z=H.fieldSchemas)==null?void 0:(Q=Z.title)==null?void 0:Q.validationSchema)for(H=[G.syncStep,G.asyncStep].filter(function(p){return p!==void 0}),H=_.I(H),Z=H.next();!Z.done;Z=H.next()){Z=Z.value.rules;
if(!Z)break;Z=_.I(Z);for(Z=Z.next();!Z.done;Z=Z.next())return _.X(Z.value,_.d2L)}};
cgL=function(G){var H,Z,Q;if(G=(H=G.createPlaylistDialogFormSchema)==null?void 0:(Z=H.fieldSchemas)==null?void 0:(Q=Z.visibility)==null?void 0:Q.validationSchema)for(H=[G.syncStep,G.asyncStep].filter(function(p){return p!==void 0}),H=_.I(H),Z=H.next();!Z.done;Z=H.next()){Z=Z.value.rules;
if(!Z)break;Z=_.I(Z);for(Q=Z.next();!Q.done;Q=Z.next())if(Q=_.X(Q.value,X4D))return H=void 0,(H=Q.translations)==null?void 0:H.visibilityNotValidErrorMessage}};
Tmk=function(){var G,H;return(H=(G=_.tp().resolve(_.Jp(_.rr)))==null?void 0:G())!=null?H:!1};
fH8=function(G){var H=21;if(!G)return H;H+=G.headerTitle?27:0;H+=G.headerTitle&&G.hasHeaderActionHeader?4:0;return H+=G.headerTitle&&G.headerSubtitle?16:0};
vH8=function(G){var H=0;if(!G)return H;H+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton?48:0;H+=G.footerTrailingLabel||G.footerLeadingLabel?30:0;return H+=G.hasFooterPrimaryButton||G.hasFooterSecondaryButton||!G.footerTrailingLabel&&!G.footerLeadingLabel?0:12};
Wyh=function(G){var H=new _.K$,Z=G;return{subscribe:function(Q){H.subscribe("changed",Q)},
dispatch:function(Q,p){var l=Z;if(Q==="Touch Start")Z=Object.assign({},l,{isAnimating:!1,initialY:p.event.touches[0].clientY});else if(Q==="Touch Move"){Q=p.contentScrollable?-1*(l.initialY-24):0;var q,u=(q=p.headerDivHeight)!=null?q:fH8(p.header),B;q=(B=p.footerDivHeight)!=null?B:vH8(p.footer);B=Math.min(p.fullContentWrapperHeight,p.heightMap[p.contentWrapperId]+u-q);Z=Object.assign({},l,{currentY:Math.max(Q,p.event.touches[0].clientY-l.initialY),maxHeightForContentWrapper:Math.min(B,Math.max(0,
(l.isFullScreen?B:p.contentWrapperHeight)-l.currentY))})}else Z=Q==="Snap To Full Screen"?Object.assign({},l,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:p.maxHeight}):Q==="Snap To Neutral Position"?Object.assign({},l,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:p.maxHeight}):Q==="Close Sheet"?Object.assign({},l,{isAnimating:!0,currentY:p.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:p.maxHeight}):l;H.publish("changed",Z)}}};
zxs=function(G){return _.Hh(function(H){G(H);return!1})};
Kyk=function(){_.tp().resolve(_.On).closeSheet()};
MDh=function(G){var H,Z,Q,p,l,q,u,B,t,D,d;return{headerTitle:(H=G.headerTitle)==null?void 0:H.call(G),headerSubtitle:(Z=G.headerSubtitle)==null?void 0:Z.call(G),headerActionHeader:G.headerActionHeader,footerPrimaryButton:G.footerPrimaryButton,footerSecondaryButton:G.footerSecondaryButton,footerButtonType:(Q=G.footerButtonType)==null?void 0:Q.call(G),footerLeadingLabel:(p=G.footerLeadingLabel)==null?void 0:p.call(G),footerTrailingLabel:(l=G.footerTrailingLabel)==null?void 0:l.call(G),shouldShowIcons:(q=
G.shouldShowIcons)==null?void 0:q.call(G),skipContentClick:(u=G.skipContentClick)==null?void 0:u.call(G),additionalClassName:(B=G.additionalClassName)==null?void 0:B.call(G),onClosedCallback:G.onClosedCallback,focusOnClose:(t=G.focusOnClose)==null?void 0:t.call(G),isDisabled:(D=G.isDisabled)==null?void 0:D.call(G),disabledCommand:(d=G.disabledCommand)==null?void 0:d.call(G),headerFn:G.headerFn,contentFn:G.contentFn,footerFn:G.footerFn,hasHeaderFn:G.hasHeaderFn(),hasContentFn:G.hasContentFn(),hasFooterFn:G.hasFooterFn(),
hasFooterPrimaryButton:G.hasFooterPrimaryButton(),hasFooterSecondaryButton:G.hasFooterSecondaryButton(),hasHeaderActionHeader:G.hasHeaderActionHeader()}};
jEm=function(G){switch(G){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""}};
P6s=function(G){switch(G){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""}};
rgc=function(G){switch(G){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""}};
w4k=function(G,H,Z){H.forEach(function(Q){_.ze(_.tp().resolve(_.rv),Q)});
_.AZ(G,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",Z])};
OYh=function(G,H,Z,Q){var p=_.X(Z,_.Qi).commandLifeCycleConfig;p&&p.onStartCommand&&_.El(G,[p.onStartCommand],H);_.W8(H);var l=_.Ph.instance;l&&_.rb(l,Z)?_.wb(l,Z,Q).then(function(q){if(!q||(q==null?0:q.error))return q=_.X(Z,_.Qi).serializedTransactionFlowLoggingParams,_.zG(H),_.DJ(new SF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",q));_.zG(H);return{data:q}}).then(function(q){_.zG(H);
hxq(q.data);var u=q.data.command;u&&_.El(G,[u],H);u=C6c(Z,q.data);if(!u){var B=q.data;q=!1;if(B&&B.command&&_.X(B.command,_.Ft)){var t;B=((t=_.X(B.command,_.Ft))==null?void 0:t.commands)||[];for(t=0;t<B.length;t++)if(_.X(B[t],_.F9p)){q=!0;break}}q||_.rW('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!u&&p&&p.onSuccessCommand?_.El(G,[p.onSuccessCommand],H):u&&p&&p.onFailureCommand&&_.El(G,[p.onFailureCommand],H)},function(){_.zG(H);
p&&p.onFailureCommand&&_.El(G,[p.onFailureCommand],H);iYD(Z)}):_.me(Error("Wl"),"ERROR")};
aHc=function(G,H,Z){var Q=[H];Z&&Q.push(Z);return _.L9(G,Q).then(function(p){var l=_.X(H,_.Qi).serializedTransactionFlowLoggingParams,q=p.data,u=C6c(H,q);u?p=_.DJ(new SF(u,l)):hxq(q);return p},function(){var p=_.X(H,_.Qi).serializedTransactionFlowLoggingParams;
iYD(H);return _.DJ(new SF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",p))})};
C6c=function(G,H){G=_.X(G,_.Qi).serializedTransactionFlowLoggingParams;var Z=null;switch(H.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":Z="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":Z="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":Z="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}Z?_.C3(Z,G):loh(G);return Z};
iYD=function(G){_.C3("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.X(G,_.Qi).serializedTransactionFlowLoggingParams)};
hxq=function(G){if(G.trackingParams){var H=_.$k(),Z=_.Va();H&&Z&&_.je(H,Z,_.BT(G.trackingParams))}};
ygq=function(G,H,Z){var Q=_.Ph.instance,p=_.hJW(_.xI("YPC_MB_URL")),l=(new _.rof).init(),q=_.wmf(),u=_.X(Z,_.xJx).languageCode;u===void 0?_.me(Error("Ii"),"ERROR"):_.Tw([l,p]).then(function(){var B={ctk:_.a9.payments.business.integration.ClientTokenFactory.createClientToken(u,q)};Q&&_.rb(Q,Z)?_.wb(Q,Z,B).then(function(t){return{data:t}}).then(function(t){_.N5(H,"yt-service-request-completed",t);
t.code!=="ERROR"&&(t=t.data.command)&&_.El(G,[t],H)}):_.me(Error("Wl"),"ERROR")})};
U8D=function(G,H,Z,Q){var p=_.Ph.instance;p&&_.rb(p,Z)?_.wb(p,Z,Q).then(function(l){return{data:l}}).then(function(l){oHD(G,H,Z,l)},function(){m8m(Z)}):(p=_.tp().resolve(_.Jp(_.J0)))&&p.requestDataForServiceEndpoint(Z,Q).then(function(l){oHD(G,H,Z,l)},function(){m8m(Z)})};
oHD=function(G,H,Z,Q){_.N5(H,"yt-service-request-completed",Q);if(Q.code&&Q.code=="ERROR")m8m(Z);else{(Q=Q.data.commands)&&_.El(G,Q,H);var p;(G=(p=_.X(Z,_.Gap))==null?void 0:p.serializedYpcPauseFlowLoggingParams)&&G&&_.VV("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",G)}};
m8m=function(G){var H;(G=(H=_.X(G,_.Gap))==null?void 0:H.serializedYpcPauseFlowLoggingParams)&&G&&_.VV("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Agj=function(G,H,Z){var Q=_.Ph.instance;Q&&_.rb(Q,Z)?_.wb(Q,Z).then(function(p){return{data:p}}).then(function(p){Rxh(G,H,Z,p)},function(){Nmm(Z)}):(Q=_.tp().resolve(_.Jp(_.J0)))&&Q.requestDataForServiceEndpoint(Z).then(function(p){Rxh(G,H,Z,p)},function(){Nmm(Z)})};
Rxh=function(G,H,Z,Q){_.N5(H,"yt-service-request-completed",Q);Q.code&&Q.code=="ERROR"?Nmm(Z):((Q=Q.data.commands)&&_.El(G,Q,H),(G=_.X(Z,_.HJd).serializedYpcResumeFlowLoggingParams)&&G&&_.VV("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",G))};
Nmm=function(G){(G=_.X(G,_.HJd).serializedYpcResumeFlowLoggingParams)&&G&&_.VV("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",G,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
x8h=function(G){G=G===void 0?{}:G;_.tp().resolve(_.rNo).showFeedbackDialog(G.customProductData,G.feedbackContent,G.onFeedbackSubmitted,G.bucket)};
Ly6=function(G){G=G===void 0?{}:G;_.tp().resolve(_.rNo).showHelpDialog(G.helpContext,G.articleId,G.productData)};
EHL=function(){Ly6()};
Yya=function(){x8h()};
bYk=function(G,H,Z){var Q,p,l,q,u,B,t;return _.S(function(D){switch(D.nextAddress){case 1:Q=_.X(G,FyL);if((p=Q)==null?0:p.productId){B={productId:Q.productId,bucket:Q.bucket,enableAnonymousFeedback:(u=Q.enableAnonymousFeedback)!=null?u:!0,allowNonLoggedInFeedback:!0};t={feedbackChoice:Z.feedbackChoice};if(!_.V("web_collect_offline_state")){D.jumpTo(8);break}_.XV(D,9);return D.yield(k3k(t),11)}q={bucket:(l=Q)==null?void 0:l.bucket};if(!_.V("web_collect_offline_state")){D.jumpTo(4);break}q.customProductData=
{};_.XV(D,5);return D.yield(k3k(q.customProductData),7);case 7:_.Za(D,4);break;case 5:_.Wg(D);case 4:x8h(q);D.jumpTo(0);break;case 11:_.Za(D,8);break;case 9:_.Wg(D);case 8:_.$FR(t),_.VUv("GFEEDBACK",t),Q.productId==="5295751"&&(t.client_attestation=Number(_.xI("CATSTAT",0))),Q.productId==="5295751"&&(t.client_time=Date.now()/1E3/3600),Q.productId==="5295751"&&(t.original_playback_id=_.oZa||""),_.BKt(B,t),_.K0(D)}})};
GLm=function(G){if(G=_.X(G,_.feo)){var H={bucket:G.bucketIdentifier};G.additionalDatas&&(H.customProductData={},G.additionalDatas.forEach(function(Z){if(Z=Z.userFeedbackEndpointProductSpecificValueData)H.customProductData[Z.key]=Z.value}));
x8h(H)}};
HOk=function(G){var H=_.sS.getInstance();var Z=_.Zg("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var Q=_.Zg("DELETE",void 0,"Delete"),p=_.Zg("CANCEL",void 0,"Cancel");Z=vQj(Z,void 0,Q,p,{signal:"DELETE_ALL_DOWNLOADS"});_.hA(H,[{openPopupAction:Z}],G)};
ZOt=function(){return _.S(function(G){return G.nextAddress==1?G.yield(_.tp().resolve(_.Nw),2):G.yield(sxk(),0)})};
Qxi=function(G){var H,Z;return _.S(function(Q){return Q.nextAddress==1?(Z=(H=_.X(G,_.bc))==null?void 0:H.targetId)?Q.yield(_.tp().resolve(_.Nw),3):Q.jumpTo(0):Q.yield(_.tp().resolve(_.R8).deleteVideo(Z),0)})};
l_D=function(G){var H,Z;return _.S(function(Q){return Q.nextAddress==1?(Z=(H=_.X(G,_.bc))==null?void 0:H.targetId)?Q.yield(_.tp().resolve(_.Nw),3):Q.jumpTo(0):Q.yield(pno(_.tp().resolve(_.R8),Z),0)})};
I_q=function(G){var H,Z;return _.S(function(Q){return(Z=(H=_.X(G,_.bc))==null?void 0:H.targetId)?Q.yield(guj(Z),0):Q.jumpTo(0)})};
SKj=function(){_.V("kevlar_woffle_refresh_dl_load_killswitch")||qKq()};
BPs=function(){_.V("kevlar_woffle")&&_.P$.instance&&uCs()};
t4i=function(G){var H;if((H=_.X(G,_.Qt))==null||!H.videoId)return!1;JHk(_.tp().resolve(_.R8),_.X(G,_.Qt),G.clickTrackingParams);return!0};
DEo=function(G){var H;if((H=_.X(G,_.lP))==null||!H.playlistId)return!1;kLj(_.tp().resolve(_.R8),_.X(G,_.lP),G.clickTrackingParams);return!0};
ePa=function(G){var H=_.X(G,_.w52);(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||dEA(_.tp().resolve(_.R8),_.X(G,_.w52))};
V4a=function(G){G=_.X(G,_.Bvw);var H;(G==null?0:(H=G.actions)==null?0:H.length)&&nut(G)};
cHh=function(G){var H,Z;return _.S(function(Q){H=_.X(G,$Em);return(Z=H)!=null&&Z.localWatchHistoryCommandType?Q.yield(Xnj(H),0):Q.return()})};
TPc=function(G){setTimeout(function(){requestAnimationFrame(G)},80)};
f_o=function(G){return Object.entries(G).map(function(H){return H.join(":")}).join(";")};
WWk=function(G){var H,Z,Q;_.S(function(p){if(p.nextAddress==1)return p.yield(vui(),2);H=p.yieldResult;Z=_.HT.instance;switch(H){case "granted":Q=G.getLocationCommand;break;case "denied":Q=G.openDeniedDialogAction;break;case "prompt":Q=G.openCollectionDialogAction;break;default:Q=G.openCollectionDialogAction}Q&&Z.resolveCommand(Q);_.K0(p)})};
vui=function(){var G,H;return _.S(function(Z){if(Z.nextAddress==1)return G="prompt",navigator.permissions?Z.yield(navigator.permissions.query({name:"geolocation"}),3):Z.jumpTo(2);Z.nextAddress!=2&&(H=Z.yieldResult,G=H.state);return Z.return(G)})};
KWc=function(){_.S(function(G){return G.yield(_.zPc(),0)})};
M4s=function(){var G,H,Z;return _.S(function(Q){if(Q.nextAddress==1)return G=_.tp().resolve(_.t0),G?Q.yield(_.wb(G,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Rp(Error("Zl")),Q.return(void 0));if(H=Q.yieldResult){if(H.errorMetadata)return _.Rp(Error("$l`"+H.errorMetadata.status+"`"+H.error)),Q.return(void 0);Z=H.datasyncIds;_.Awc=Z.length;return Q.return(Z)}_.Rp(Error("am"));return Q.return(void 0)})};
jxs=function(){M4s().then(function(G){G&&(U6j(G),Io8(G),Pbc(G),dic(G))})};
P_6=function(G){_.Ui.addLowPriorityJob(function(){var H,Z,Q,p,l;return _.S(function(q){switch(q.nextAddress){case 1:if(_.V("ytidb_clear_optimizations_killswitch")){q.jumpTo(2);break}H=_.w7("clear");if(H.startsWith("V")&&H.endsWith("||")){var u=[H];U6j(u);Io8(u);Pbc(u);dic(u);return q.return()}Z=rtc();Q=eha();return q.yield(qOa(),3);case 3:return p=q.yieldResult,q.yield(R2q(),4);case 4:if(l=q.yieldResult,!(Z||Q||p||l))return q.return();case 2:G.isNetworkAvailable()?jxs():G.listenOnce("publicytnetworkstatus-online",
jxs),_.K0(q)}})})};
uk=function(G){G={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.aq(G)}}}};_.HT.instance&&_.HT.instance.resolveCommand(G)};
rH6=function(G){if(G){var H=_.gr();_.Te(H,3854,void 0,{layer:0,parentLayer:4});switch(G){case 1:var Z=238708;break;case 2:Z=238715;break;case 3:Z=238710;break;case 6:Z=238709}Z&&(G=_.pX(H,{veType:Z}))&&_.WN(H,G)}};
wnA=function(G){if(G){var H=_.gr();_.Te(H,3854,void 0,{layer:0,parentLayer:4});switch(G){case 1:var Z=238714;break;case 2:Z=238711;break;case 8:Z=238709;break;case 7:Z=238713;break;case 3:case 4:case 5:Z=238712}Z&&(G=_.pX(H,{veType:Z}))&&_.WN(H,G)}};
hPh=function(G){switch(G.latencyType){case 0:_.VY("consent_primitive_flow");_.$K("cpit",G.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.$K("cpist",G.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.$K("cprtif",G.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.$K("cprtli",G.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.$K("cprt",G.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.$K("cpdt",G.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.$K("cpjct",G.timestampEpochMillis,"consent_primitive_flow")}};
NPA=function(G,H){var Z,Q,p,l,q,u,B,t,D,d,e,n,c,W,M,r,w,x,U,R;return _.S(function(L){switch(L.nextAddress){case 1:_.XV(L,2);(Q=(Z=_.X(G,C_t))==null?void 0:Z.serializedConsentRequest)||(Q=(p=_.X(G,iOt))==null?void 0:p.serializedConsentRequest);Q&&(l=OOm(_.YR(Q)));if(l===void 0)return L.return();q=a_h(l);q.latencyCallback=hPh;H&&yHk(q,function(){H.then(function(H3){H3.pauseVideo();(new ouA).increment()})});
return((u=_.X(G,C_t))==null?void 0:u.consentAction)==="CONSENT_ACTION_PREWARM"||((B=_.X(G,iOt))==null?void 0:B.consentAction)==="CONSENT_ACTION_PREWARM"?L.yield(mEq(q),5):L.yield(UEq(q),6);case 6:t=L.yieldResult;D=_.B4(t,Ba);if(D===1){if(((d=_.c4(t,Jx,1,Ba))==null?void 0:_.V8(d,1))===1||((e=_.c4(t,Jx,1,Ba))==null?void 0:_.V8(e,1))===2||((n=_.c4(t,Jx,1,Ba))==null?void 0:_.V8(n,1))===3)_.X(G,iOt)?uk(_.Zg("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
uk(_.Zg("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));rH6((c=_.c4(t,Jx,1,Ba))==null?void 0:_.V8(c,1),_.JR(t,RP6,3,_.tR()))}else D===2?(((W=tx(t))==null?void 0:_.V8(W,1))===5?_.X(G,iOt)?uk(_.Zg("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):uk(_.Zg("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((M=tx(t))==null?void 0:_.V8(M,1))===1||((r=tx(t))==null?void 0:_.V8(r,1))===4?uk(_.Zg("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((w=tx(t))==null?void 0:_.V8(w,1))===7&&((x=l)==null?void 0:(U=_.dt(x,kt,4))==null?void 0:_.V8(U,4))!==1&&uk(_.Zg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),wnA((R=tx(t))==null?void 0:_.V8(R,1))):uk(_.Zg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));L.jumpTo(5);break;case 5:_.Za(L,0);break;case 2:_.Wg(L),uk(_.Zg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.K0(L)}})};
xEq=function(){if(!AHs.has("Worker")){AHs.set("Worker",!0);var G={api:"BROWSER_API_WEB_WORKER"};G.available="Worker"in window?!0:!1;_.yR("apiTest",G)}};
LWA=function(G){return typeof G==="undefined"?"-1":String(Math.ceil(G/1048576))};
bOj=function(G,H){Eum(new YKh(_.X(H,FWD).addToken,_.X(H,FWD).commonToken)).then(function(){_.N5(G,"yt-invoke-instrument-manager-action-completed")},function(Z){_.N5(G,"yt-invoke-instrument-manager-action-error",Z)})};
DP=function(){return _.xI("HTML_DIR")==="rtl"};
Gwc=function(){var G,H;return(H=(G=window).matchMedia)==null?void 0:H.call(G,"(prefers-reduced-motion: reduce)").matches};
HK6=function(G){var H=_.tp().resolve(_.Jp(_.jB));if(H&&H.isAnyTransitionEnabled){var Z={};H.viewTransitionCoordinator.registerElement(G,(Z.slide="miniplayer-page-transition",Z["lockup-to-watch"]="miniplayer-page-transition",Z["learning-journey"]="miniplayer-page-transition",Z))}};
svA=function(G,H,Z){return{horizontalAlignment:G.x+Z.width/2<H.width/2?"west":"east",verticalAlignment:G.y+Z.height/2<H.height/2?"north":"south"}};
Qv6=function(G,H,Z,Q,p){p=p===void 0?new _.UA(0,0):p;G=ZKD(G,H,Z,Q,!1);return new _.UA(G.x+p.x,G.y+p.y)};
ZKD=function(G,H,Z,Q,p){p=(p===void 0?0:p)?400:0;return new _.UA(G==="west"?16+(DP()?p:0):Z.width-Q.width-16-(DP()?0:p),H==="north"?16:Z.height-Q.height-16)};
pQh=function(G,H){var Z=0;G&&(Z+=76);H&&(Z+=285);return Z};
lAm=function(G){return _.zW(G)};
gfD=function(G){var H=1;G=G.split(":");for(var Z=[];H>0&&G.length;)Z.push(G.shift()),H--;G.length&&Z.push(G.join(":"));return Z};
IAL=function(G){var H=new _.qn;return _.TW(H,11,G)};
qxL=function(G){var H={};G=G.getAllResponseHeaders().split("\r\n");for(var Z=0;Z<G.length;Z++)if(!_.ue(G[Z])){var Q=gfD(G[Z]),p=Q[0];Q=Q[1];if(typeof Q==="string"){Q=Q.trim();var l=H[p]||[];H[p]=l;l.push(Q)}}return _.oN.map(H,function(q){return q.join(", ")})};
tb=function(G,H){return G.JSC$9805_xhr_?G.JSC$9805_xhr_.getResponseHeader(H):null};
Sxa=function(G,H){if(G.isDisposed())throw Error("Ea");G.zu.dh("n");var Z=_.PQ(G.zu,function(){return G.xZY([H.ko,H.tH6,H.vLy,H.mQZ])},"n");
G.zu.aEW(Z.length);G.zu.k0();return Z};
uQL=function(G,H,Z){Array.isArray(Z)||(Z=[String(Z)]);_.D1w(G.JSC$10041_queryData_,H,Z);return G};
uCs=function(){var G=_.P$.instance;_.S(function(H){return G.deferredInstallPrompt?H.yield(G.deferredInstallPrompt.prompt(),0):H.jumpTo(0)})};
Blt=function(G,H,Z){if(_.Uj(G))_.Zk(G,H,Z);else for(G=_.fgd(G);;){var Q=G.next();if(Q.done)break;H.call(Z,Q.value,void 0,G)}};
Jrq=function(G,H){var Z=[];Blt(H,function(Q){try{var p=_.Vg.prototype.getWrapper.call(this,Q,!0)}catch(l){if(l=="Storage: Invalid value was encountered")return;throw l;}p===void 0?Z.push(Q):_.T8a(p)&&Z.push(Q)},G);
return Z};
nCq=function(G,H){Jrq(G,H).forEach(function(Z){_.Vg.prototype.remove.call(this,Z)},G)};
taj=function(G){var H=_.Es;H._minimumZ=Math.max(H._minimumZ,G)};
kwq=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];Dni=function(G,H){_.S_(G.vm);G.vm=H};
euA=function(G,H,Z,Q){G.setState(5);var p=!!G.uVQ&&kwq.includes(_.qY(G.uVQ)||"");try{var l=new _.rl({program:H,globalName:Z,bc3:{disable:!_.V("att_web_record_metrics")||!_.V("att_skip_metrics_for_cookieless_domains_ks")&&p,dY:"aGIf"}});l.hXW.then(function(){G.setState(6);Q&&Q(H)});
Dni(G,l)}catch(q){G.setState(7),q instanceof Error&&_.Rp(q)}};
nfo=function(G,H,Z,Q,p,l){var q=q===void 0?"trayride":q;Z?(G.setState(2),_.zh(_.O1(Z),function(){if(window[q])euA(G,Q,q,p);else{G.setState(3);var u=_.iF2(Z),B=document.getElementById(u);B&&(_.ct3(u),B.parentNode.removeChild(B));_.Rp(new _.C$("BL:ULB",Z))}},l)):H?(l=_.z$("SCRIPT"),H instanceof _.Z6?_.lE(l,H):l.textContent=H,l.nonce=_.sP(document),document.head.appendChild(l),document.head.removeChild(l),window[q]?euA(G,Q,q,p):(G.setState(4),_.Rp(new _.C$("BL:ULBJ")))):_.Rp(new _.C$("BL:ULV"))};
Vao=function(){this.state=1;this.vm=null;this.uVQ=void 0};
_.g=Vao.prototype;_.g.initialize=function(G,H,Z,Q){this.uVQ=Q;if(G.program){var p;Q=(p=G.interpreterUrl)!=null?p:null;if(G.interpreterSafeScript)p=_.RG2(G.interpreterSafeScript);else{var l;p=(l=G.interpreterScript)!=null?l:null}G.interpreterSafeUrl&&(Q=_.R1(G.interpreterSafeUrl).toString());nfo(this,p,Q,G.program,H,Z)}else _.Rp(Error("tf"))};
_.g.isInitialized=function(){return!!this.vm};
_.g.getState=function(){return this.state};
_.g.isLoading=function(){return this.state===2};
_.g.invoke=function(G){G=G===void 0?{}:G;var H;this.vm?H=Sxa(this.vm,{ko:G}):H=null;return H};
_.g.dispose=function(){Dni(this,null);this.setState(8)};
_.g.setState=function(G){this.state=G};
var $n8=function(G,H){return G.vm.snapshot(H)},XQo=function(G,H){var Z=_.eA("botguard_async_snapshot_timeout_ms",3E3);
H=H===void 0?{}:H;Z=Z===void 0?3E3:Z;return G.vm?new Promise(function(Q,p){var l=!1,q=_.Ui.addJob(function(){l=!0;p(Error("uf"))},1,Z);
G.vm?$n8(G,{ko:H}).then(function(u){_.Ui.cancelJob(q);l||Q(u)}).catch(function(u){_.Ui.cancelJob(q);
l||p(u)}):(_.Ui.cancelJob(q),Q(null))}):Promise.resolve(null)},crL=["att/log"],uzo;
uzo={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var Tl6={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},fAm=function(G,H){return _.Iq(G,{mode:"readwrite",enableRetries:!0},function(Z){return _.V5b(Z,H,"settingEntity")})},vfm=function(G,H,Z){return _.Iq(G,{mode:"readonly",
enableRetries:!0},function(Q){return _.X6N(Q,H,Z)})},WDj=function(G){if(!G.storage)return!1;
a:{if(G.storage){try{var H=G.storage.get("TLPQtimestamp")}catch(Z){}G=Number(H);if(!isNaN(G))break a}G=void 0}return G?Date.now()-G<864E5:!1},zuo=function(G){if(G.storage){try{var H=G.storage.get("TLPQindex")}catch(Z){}G=Number(H);
if(!isNaN(G))return G}},KDt=function(G,H){G.queueProxy&&H.forEach(function(Z){if(Z.videoId&&Z.trackingParams&&G.queueProxy instanceof _.Fo){var Q=_.$k();
G.queueProxy.attributionData.set(Z.videoId,{enqueueingVe:_.BT(Z.trackingParams).getAsJson(),enqueueingCsn:Q?Q:void 0,clientEnqueueingTimeMs:Math.floor((0,_.t3)()).toString()})}})},Maq=function(G){var H=_.lcG(G);
H!=G.currentSnapState_&&(G.currentSnapState_=H,G.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},d2=function(G){this.JSC$13224_networkManager_=G;
this.partCallbacks_=[]};
d2.prototype.getCacheKeyForEndpoint=function(G){return _.ufj(G,!1)};
d2.prototype.onPartsCallback_=function(G){this.partCallbacks_.forEach(function(H){G&&H(G)})};
var eF=function(G,H,Z){d2.call(this,G);this.player_=H;this.autoplayData_=Z};
_.T(eF,d2);eF.prototype.getCacheKeyForEndpoint=function(G){return _.ufj(G,!!this.autoplayData_)};
eF.prototype.getTempData=function(G,H){H=H.timeBeforeNextVideo;G={itct:G.clickTrackingParams,lact:_.JL(),pbis:H,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(G.autonav=1);return G};
eF.prototype.getXhrParams=function(G){return Object.assign({pbj:"prefetch"},G)};
eF.prototype.getParams=function(G){G={frags:G.fragmentsRequested.join(",")};_.V("kevlar_droppable_prefetchable_requests")&&(G.prefetch=1);return G};
var jvi=function(G){G.playerEvents_.forEach(function(H){G.player.removeEventListener(H.eventName,H.callback)});
G.playerEvents_.length=0},P5o=function(G,H,Z){this.player=G;
this.JSC$13234_taskManager=H;this.prefetchDelay=Z;this.completionResolver_=null;this.playerEvents_=[]};
P5o.prototype.start=function(){var G=this;this.completionResolver_=_.hQ();_.fK(this.completionResolver_.promise,function(){jvi(G);G.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var rrD=function(G,H,Z){G.player.addEventListener(H,Z);G.playerEvents_.push({eventName:H,callback:Z})},wQk={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},huq={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},C5k=function(G,H,Z){P5o.call(this,G,H,Z);this.cueId_="playbackTrigger-"+Math.random()};
_.T(C5k,P5o);
C5k.prototype.prepareTrigger=function(G){var H=this,Z=this.player.getDuration(),Q=this.player.getVideoData(),p=Q.isLive&&Q.hasProgressBarBoundaries;if(p&&Q.progressBarEndPositionUtcTimeMillis){var l=Q.progressBarEndPositionUtcTimeMillis/1E3;isNaN(l)||(Z=l)}var q=0;this.prefetchDelay>=0?p?Q.progressBarStartPositionUtcTimeMillis&&(Q=Q.progressBarStartPositionUtcTimeMillis/1E3,isNaN(Q)||(q=Q+this.prefetchDelay)):q=this.prefetchDelay:q=Z+this.prefetchDelay;p?this.player.addUtcCueRange(this.cueId_,q,Z):
this.player.addCueRange(this.cueId_,q,Z);_.fK(G.promise,function(){H.player.removeCueRange(H.cueId_)});
rrD(this,"onCueRangeEnter",function(u){u==H.cueId_&&G.resolve(Z-q)})};
var iKc=function(G,H){G.fragmentConfiguration_[H].requiredKeys.every(function(Z){return!!G.prefetchedData_[Z]})&&(G.validatedFragments_.push(H),H=G.missingFragments_.indexOf(H),H!==-1&&G.missingFragments_.splice(H,1))},OKm=function(G){G.prefetchedFragments_.forEach(function(H){iKc(G,H)})},aAq=function(G,H,Z){this.pageFragments_=G;
this.prefetchedFragments_=H;this.fragmentConfiguration_=huq;this.prefetchedData_=Z;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;OKm(this)},yrL=function(){},ofs=function(G){this.JSC$13248_playlistManager_=G};
_.T(ofs,yrL);ofs.prototype.getPrefetchEndpoint=function(){return this.JSC$13248_playlistManager_.getAutoplayEndpoint()};
var mnL=function(G){this.autonavEndpoints_=G};
_.T(mnL,yrL);mnL.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var UnL=function(G,H,Z,Q,p){this.autonavEndpoints=G;this.foregroundTrigger=H;this.backgroundTrigger=Z;this.pageType=Q;this.isInPlaylist=p},Rum=function(G,H){if(G.webPrefetchData&&G.webPrefetchData.navigationEndpoints&&G.webPrefetchData.navigationEndpoints.length){G=G.webPrefetchData.navigationEndpoints;
var Z=_.X(G[0],_.hZ);if(Z.watchEndpointSupportedPrefetchConfig&&Z.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var Q=Z.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;Z=Q.playbackRelativeSecondsPrefetchCondition;Z=typeof Z==="number"&&Math.abs(Z)<H.videoDuration?Z:void 0;Q=Q.countdownUiRelativeSecondsPrefetchCondition;Q=typeof Q!=="number"||_.V("prefetch_job_config_cleanup_ks")&&H.inPlaylist?void 0:Q;if(typeof Q==="number")return new UnL(G,H.makeUpNextTrigger(Q),H.makePlaybackTrigger(Q),
"watch",H.inPlaylist);if(typeof Z==="number")return new UnL(G,H.makePlaybackTrigger(Z),null,"watch",H.inPlaylist)}}},NlL=function(G){return G.prefetchJobConfig_.backgroundTrigger?_.bW(_.we2)()==0?G.prefetchJobConfig_.backgroundTrigger:G.prefetchJobConfig_.foregroundTrigger:G.prefetchJobConfig_.foregroundTrigger},Ar8=function(G){_.VX(document,"visibilitychange",G.onVisibilityChange_,!1,G)},nL=function(G){d2.call(this,G)};
_.T(nL,d2);nL.prototype.getCacheKeyForEndpoint=function(G){return d2.prototype.getCacheKeyForEndpoint.call(this,G)};
nL.prototype.getTempData=function(){return{}};
nL.prototype.getXhrParams=function(G){return G};
nL.prototype.getParams=function(){return{}};
var xnh=function(G,H,Z){var Q=G.prefetchDelay*1E3;if(Math.abs(Q)>H)Z.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var p=Q,l=H-Q;Q<0&&(p=H+Q,l=Math.abs(Q));var q=G.JSC$13234_taskManager.addJob(function(){Z.resolve(l/1E3)},10,p);
Z.promise.thenCatch(function(){G.JSC$13234_taskManager.cancelJob(q)})}},LDD=function(G,H,Z){P5o.call(this,G,H,Z)};
_.T(LDD,P5o);LDD.prototype.prepareTrigger=function(G){var H=this;rrD(this,"onAutonavCoundownStarted",function(Z){xnh(H,Z,G)})};
var Efq=function(G){G.pendingPrefetchJob_&&(G.pendingPrefetchJob_.cancel(),G.pendingPrefetchJob_=null)},Yxk=function(G,H,Z){if(!G.triggeredTargets.has(H)){var Q=_.fcw(G,H);
Q.action=Z;_.cGN(G,H,Q)}},FD8=function(G){_.knG();
_.xuX("cpt")&&_.Rp(Error("lh"));_.Qf.requestAnimationFrame(function(){_.Qf.setTimeout(function(){_.$K("cpt");var H=_.vA("vpl"),Z=_.vA("cpt");H&&Z&&_.$K("ol",Math.max(H,Z))})});
try{_.$K("fr_s"),G()}catch(H){_.me(H)}_.Qf.requestAnimationFrame(function(){_.$K("bcp")})},bKD=function(G,H){G.serviceEndpointHandlers.push(H)},Gjt=function(G,H){H=G.pendingPages_.indexOf(H);
H>-1&&G.pendingPages_.splice(H,1)},Hp6=function(G,H){var Z=_.mM_.indexOf(H);
Z>-1&&_.mM_.splice(Z,1);G.targetPage_==H?(G.abort(),_.Rqw(G)):Gjt(G,H)},sQi=function(G,H,Z,Q){H={challenge:H};
Z&&(H.webResponse=Z);return _.GP(G.innertubeTransportService,H,_.U7(crL),Q)},Zpm=function(G,H,Z){if(!H.challenge)throw Error("qi");
if(H.botguardData&&H.botguardData.program){var Q=new Vao;Q.initialize(H.botguardData,function(){XQo(Q,{atr_challenge:H.challenge}).then(function(p){if(!p)throw Error("ri");return sQi(G,H.challenge,p,Z)}).catch(function(p){_.Rp(p);
return sQi(G,H.challenge,void 0,Z)})},void 0)}else sQi(G,H.challenge,void 0,Z)},QQ6=function(G,H,Z){var Q={};
H.ids&&(Q.ids=[].concat(_.OP(H.ids)));H.engagementType&&(Q.engagementType=H.engagementType);return _.GP(G.innertubeTransportService,Q,_.U7(_.aFx),Z).then(function(p){if(!p)throw new _.C$("GetAttestationChallenge returned falsy");Zpm(G,p,Z)}).thenCatch(function(p){_.me(p)})},pym=function(G,H,Z){return new _.T_(function(Q,p){var l;
return _.S(function(q){if(q.nextAddress==1){var u=q.yield,B=H.engagementType,t=H.ids,D={};t=_.I(t!=null?t:[]);for(var d=t.next();!d.done;d=t.next())d=d.value,d.encryptedVideoId?D.encryptedVideoId=d.encryptedVideoId:d.externalChannelId?D.externalChannelId=d.externalChannelId:d.commentId?D.commentId=d.commentId:d.externalOwnerId?D.externalOwnerId=d.externalOwnerId:d.artistId?D.artistId=d.artistId:d.playlistId?D.playlistId=d.playlistId:d.externalPostId?D.externalPostId=d.externalPostId:d.shareId&&(D.shareId=
d.shareId);return u.call(q,fIm(B,D),2)}l=q.yieldResult;if(!l.challenge)return _.Rp(Error("si")),QQ6(G,H,Z).then(Q,p),q.return();u=l;B={challenge:u.challenge};B.webResponse=u.webResponse;B.engagementType=H.engagementType;B.ids=H.ids;_.GP(G.innertubeTransportService,B,_.U7(crL),Z).then(Q,p);_.K0(q)})})},C$q=function(G,H){var Z,Q,p,l;
_.S(function(q){if(q.nextAddress==1){Z=_.X(H,_.ohx);if(!(Z&&Z.listId&&G.response&&G.response.playingVideoId)||G.listId!==Z.listId)return q.return();G.index===void 0&&(G.index=0);return q.yield(_.Iut(G.JSC$13087_playlistNetworkManager,Z.listId,G.index,G.response.playingVideoId),2)}Q=q.yieldResult;if(!Q)return q.return();p=Q.playlistId;l=Q.playlistPanelRenderer;G.setPlaylistData(p,l,Q.autoplayRenderer);_.K0(q)})},l$c=function(G,H,Z){var Q=G.getParams(Z),p=_.GkX(H,Q),l=G.getTempData(H,Z);
l.endpoint=JSON.stringify(H);_.V("enable_unknown_lact_fix_on_html5")&&(_.tp().resolve(_.Bh),l.lact=_.JL());var q={headers:{"X-YouTube-STS":_.xI("STS"),"x-youtube-csoc":1}};_.aO(p,l);return new _.T_(function(u,B){var t=G.getXhrParams(Q),D;_.V("kevlar_cache_on_ttl_player")&&(D=_.tp().resolve(_.JB));D&&_.Er6(D,H)?_.sfA(D,H,l,window.location.href).then(function(d){d?u(d):B()},B):_.O7T(G.JSC$13224_networkManager_,H,t,G.onPartsCallback_.bind(G),q).then(function(d){d?u(d):B()},B)})},g_L=function(G,H){G.triggerPromise_=
H.start();
G.triggerPromise_.then(function(Z){var Q=G.prefetchEndpointProvider_.getPrefetchEndpoint();if(Q){var p=wQk[G.prefetchJobConfig_.pageType].prefetchedFragments;G.prefetchRequestPromise_=l$c(G.JSC$13260_networkPrefetchRequest_,Q,{fragmentsRequested:p,timeBeforeNextVideo:Z});G.prefetchResponseCacheKey_=G.JSC$13260_networkPrefetchRequest_.getCacheKeyForEndpoint(Q);Ar8(G);G.prefetchRequestPromise_.then(function(l){G.storePrefetchedDataCallback_(G.prefetchResponseCacheKey_,l);if(_.V("web_prefetch_preload_video")&&
p.length===1&&p[0]==="pl"&&l&&!l.playerAds&&!l.adPlacements){var q=_.X(Q,_.uS),u=q!=null,B={raw_player_response:l,watch_endpoint:q};(l=_.tp().resolve(u?_.UTR:_.LI))&&Q&&l.then(function(t){u&&_.V("web_queue_preload_video")?(B.prefer_gapless=!0,t.queueNextVideo(B)):t.preloadVideoByPlayerVars(B)})}})}})},VZ=function(G,H,Z,Q){this.prefetchEndpointProvider_=G;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=H;this.prefetchJobConfig_=Z;this.JSC$13260_networkPrefetchRequest_=Q;this.prefetchResponseCacheKey_=null};
VZ.prototype.enqueue=function(){this.triggerPromise_||(g_L(this,NlL(this)),_.tt(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
VZ.prototype.resolve=function(){this.cancel()};
VZ.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.");Ar8(this)};
VZ.prototype.onVisibilityChange_=function(){var G=this;_.bW(_.we2)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){G.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||g_L(this,NlL(this))};
var I$q=function(G,H,Z,Q,p){H&&(H==null?0:H.videoId)&&Z&&Z.entries&&_.V("kevlar_enable_shorts_prefetch_in_sequence")&&(Efq(G),H=Z.entries.map(function(l){var q;return(q=_.X(l.command,_.uS))==null?void 0:q.videoId}).indexOf(H.videoId),Z=Z.entries[H+1],Z!=null&&Z.command&&!_.X(Z==null?void 0:Z.command,_.xl)&&(Q=new UnL([Z.command],new C5k(Q,_.Ui,1),null,"shorts",!1),G.pendingPrefetchJob_=new VZ(new mnL(Q.autonavEndpoints),function(){return!1},Q,new nL(p)),G.pendingPrefetchJob_.enqueue()))},qac=function(G,
H,Z,Q,p,l){var q=_.tP.getInstance();
if(!_.V("block_all_player_prefetch_requests")){Efq(G);var u=!!Z.getPlaylistId(),B=Z.getVideoData().isLive&&Z.getVideoData().hasProgressBarBoundaries;if((q.getState()==2||u||B)&&(!Z.getVideoData().isLive||B)){q={inPlaylist:u,videoDuration:Z.getDuration(),makeUpNextTrigger:function(D){return new LDD(Z,_.Ui,D)},
makePlaybackTrigger:function(D){return new C5k(Z,_.Ui,D)}};
var t=Rum(H,q);t&&(G.pendingPrefetchJob_=new VZ(t.isInPlaylist?new ofs(p):new mnL(t.autonavEndpoints),function(D,d){d=new aAq(wQk[t.pageType].pageFragments,wQk[t.pageType].prefetchedFragments,d);return _.tv_(d)?(G.prefetchCache_.set(D,d),!0):!1},t,new eF(Q,Z,l,p)),G.pendingPrefetchJob_.enqueue())}}},Sai=function(){var G=_.l3();
G.signals.parkOrScheduleJob(function(){var H=G.storage;if(H.storage)if(WDj(H)){var Z=H.getPlaylistId();H=zuo(H);Z=!!Z&&H!==void 0}else H.clear(),Z=!1;else Z=!1;if(Z){Z=G.JSC$13087_pageManager.isOnWatch();a:{var Q=G.storage;if(Q.storage&&WDj(Q)&&(H=Q.getPlaylistId(),Q=zuo(Q),H&&Q!==void 0)){Z={recoverPlaylistCommand:{listId:H,index:Q,openMiniplayer:!Z,openListPanel:Z,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}Z=void 0}Z&&_.hA(G.JSC$13087_actionRouter,[Z],null)}},0,"ma")},uOA=function(G,H,Z,
Q,p,l){var q=_.bl(7111);
_.fQ(G.JSC$18587_screenManager,q,l?_.BT(l):void 0);_.WN(G.JSC$18587_screenManager,q,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:Q,offlineId:H,offlineabilityFormatType:Z,isDefaultFormatType:p==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:p}})},Bsm=function(G,H,Z,Q,p){var l,q,u,B,t;
return _.S(function(D){if(D.nextAddress==1)return D.yield(G.JSC$18587_playerApiPromise,2);l=D.yieldResult;uOA(G,H,Z,"OFFLINE_OBJECT_TYPE_PLAYLIST",Q,p);if(u=_.K4_[G.entityTypeMap.listEntityType])t={},q=(t[u]={maximumDownloadQuality:(B=Z)!=null?B:void 0},t);return D.yield(l.queueOfflineAction(H,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",q),0)})},JqD=function(G,H){var Z,Q,p,l;
return _.S(function(q){if(q.nextAddress==1)return q.yield(G.JSC$18587_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3){Z=q.yieldResult;if(!Z)return _.Rp(new _.C$("PES is undefined")),q.return();Q=_.G9(H,"downloadStatusEntity");return q.yield(vfm(Z,Q,"downloadStatusEntity"),3)}p=q.yieldResult;return q.return((l=p)==null?void 0:l.downloadState)})},tbD=function(G,H,Z,Q,p){var l,q,u,B,t,D;
return _.S(function(d){switch(d.nextAddress){case 1:return d.yield(G.JSC$18587_playerApiPromise,2);case 2:l=d.yieldResult;uOA(G,H,Z,"OFFLINE_OBJECT_TYPE_VIDEO",Q,p);if(u=_.K4_[G.entityTypeMap.singleEntityType])t={},q=(t[u]={maximumDownloadQuality:(B=Z)!=null?B:void 0},t);return d.yield(JqD(G,H),3);case 3:D=d.yieldResult;if(D!=="DOWNLOAD_STATE_USER_DELETED"){d.jumpTo(4);break}return d.yield(G.deleteVideo(H),4);case 4:return d.yield(l.queueOfflineAction(H,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
q),0)}})},kji=function(G,H,Z,Q,p){return _.S(function(l){return l.nextAddress==1?l.yield(G.deleteVideo(H,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):l.yield(tbD(G,H,Z,Q,p),0)})},DQi=function(G,H,Z){var Q,p;
return _.S(function(l){if(l.nextAddress==1)return l.yield(G.JSC$18587_playerApiPromise,2);Q=l.yieldResult;p=_.G9(H,"mainVideoDownloadStateEntity");return l.yield(Q.updateDownloadState(p,Z),0)})},guj=function(G){var H=_.tp().resolve(_.R8);
return _.S(function(Z){if(Z.nextAddress==1)return H.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&H.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?Z.jumpTo(2):Z.yield(H.resumeVideoDownload(G),2);if(Z.nextAddress!=4)return Z.yield(DQi(H,G,H.previousDownloadStateForVideo[G]),4);delete H.previousDownloadStateForVideo[G];_.K0(Z)})},pno=function(G,H){var Z;
return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$18587_playerApiPromise,2);Z=Q.yieldResult;return Q.yield(Z.queueOfflineAction(H,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},sxk=function(){var G=_.tp().resolve(_.R8),H,Z;
return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$18587_playerApiPromise,2);if(Q.nextAddress!=3)return H=Q.yieldResult,Z={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},Q.yield(H.queueOfflineAction("!*$_ALL_ENTITIES_!*$",G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",Z),3);var p=G.JSC$18587_commandHandler,l=p.resolveCommand,q=_.Zg("DELETING_ALL",void 0,"Downloads are being deleted");l.call(p,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Nm(q)}},
popupType:"TOAST"}});_.K0(Q)})},dQD=function(G,H){var Z,Q,p,l,q,u;
return _.S(function(B){if(B.nextAddress==1)return B.yield(G.JSC$18587_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3)return Z=B.yieldResult,Z?B.yield(vfm(Z,_.eS,"downloadsPageViewConfigurationEntity"),3):(_.Rp(new _.C$("PES is undefined")),B.return());p=(Q=B.yieldResult)!=null?Q:{};u=(q=(l=p)==null?void 0:l.downloadsUpsellBannerVisibility)!=null?q:{};return u.visibleWithConnection?B.yield(H.refreshAllStaleEntities(0),0):B.jumpTo(0)})},eSh=function(G){var H,Z;
return _.S(function(Q){if(Q.nextAddress==1)return Q.yield(G.JSC$18587_prefStorage,2);H=Q.yieldResult;return Q.return((Z=H)==null?void 0:Z.get("sdois"))})},n_h=function(G){var H,Z,Q,p,l,q;
return _.S(function(u){if(u.nextAddress==1)return u.yield(G.JSC$18587_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3){H=u.yieldResult;if(!H)return _.Rp(new _.C$("PES is undefined")),u.return();Z=_.G9("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return u.yield(vfm(H,Z,"settingEntity"),3)}Q=u.yieldResult;return u.return((q=(p=Q)==null?void 0:(l=p.settingOptionValue)==null?void 0:l.boolValue)!=null?q:!1)})},VbL=function(G,H){var Z,Q,p,l;
return _.S(function(q){switch(q.nextAddress){case 1:return((Z=H)==null?void 0:Z.formatType)===void 0?q.return():q.yield(G.JSC$18587_prefStorage,2);case 2:Q=q.yieldResult;if(Q===void 0)return q.return();if(((p=H)==null?void 0:p.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return q.yield(Q.set("lmqf",H.formatType),8);if(((l=H)==null?void 0:l.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){q.jumpTo(0);break}return q.yield(Q.set("lmqf",H.formatType),6);case 6:return q.yield(Q.set("lmqflst",
Math.floor((0,_.t3)())),0);case 8:return q.yield(Q.remove("lmqflst"),0)}})},$Qo=function(G){var H,Z;
return _.S(function(Q){switch(Q.nextAddress){case 1:return Q.yield(G.JSC$18587_prefStorage,2);case 2:H=Q.yieldResult;if(!H){Q.jumpTo(3);break}return Q.yield(H.get("lmqflst"),4);case 4:if(Z=Q.yieldResult,Z!==void 0)return Q.return(Z);case 3:return Q.return(0)}})},Xyc=function(G){var H,Z;
return _.S(function(Q){switch(Q.nextAddress){case 1:return Q.yield(G.JSC$18587_prefStorage,2);case 2:H=Q.yieldResult;if(H===void 0){Q.jumpTo(3);break}return Q.yield(H.get("lmqf"),4);case 4:if(Z=Q.yieldResult,Z!==void 0)return Q.return(Z);case 3:return Q.return("SD")}})},kLj=function(G,H,Z){var Q,p,l,q,u,B,t,D;
_.S(function(d){switch(d.nextAddress){case 1:return d.yield(VbL(G,(Q=H)==null?void 0:Q.actionParams),2);case 2:p=H.playlistId;if(!p)return d.return();if(H.action==="ACTION_ADD")return((q=H.actionParams)==null?0:q.formatType)?d.yield(Bsm(G,p,H.actionParams.formatType,(D=H.actionParams)==null?void 0:D.settingsAction,Z),0):d.yield(G.offlineWebClientEligibility,14);if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var e=G.JSC$18587_commandHandler,n=e.resolveCommand,c=_.xI("INNERTUBE_CLIENT_NAME");var W=c===
"WEB_REMIX"?_.Zg("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Zg("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var M=c==="WEB_REMIX"?[_.Zg("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];c=c==="WEB_REMIX"?_.Zg("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Zg("DELETE",void 0,"Delete");var r=_.Zg("CANCEL",void 0,"Cancel");W=vQj(W,M,c,r,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:p});n.call(e,{openPopupAction:W});return d.return()}if(H.action===
"ACTION_REMOVE")return d.yield(pno(G,p),0);if(H.action!=="ACTION_SYNC"){d.jumpTo(0);break}return d.yield(G.JSC$18587_playerApiPromise,9);case 9:return l=d.yieldResult,d.yield(l.queueOfflineAction(p,G.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return u=d.yieldResult,d.yield(Xyc(G),15);case 15:return B=d.yieldResult,d.yield($Qo(G),16);case 16:t=d.yieldResult,H.onAddCommand&&G.JSC$18587_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:B,
offlineWebClientEligibility:u,lastOfflineQualitySettingsSavedMs:t.toString()}}),d.jumpTo(0)}})},JHk=function(G,H,Z){var Q,p,l,q,u,B,t,D,d,e,n,c,W,M;
_.S(function(r){switch(r.nextAddress){case 1:return r.yield(VbL(G,(Q=H)==null?void 0:Q.actionParams),2);case 2:p=H.videoId;if(!p)return r.return();if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var w=G.JSC$18587_commandHandler,x=w.resolveCommand,U=_.xI("INNERTUBE_CLIENT_NAME");var R=U==="WEB_REMIX"?_.Zg("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Zg("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=U==="WEB_REMIX"?[_.Zg("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];U=U==="WEB_REMIX"?_.Zg("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Zg("DELETE",void 0,"Delete");var H3=_.Zg("CANCEL",void 0,"Cancel");R=vQj(R,L,U,H3,{signal:"DELETE_DOWNLOAD",targetId:p});x.call(w,{openPopupAction:R});return r.return()}if(H.action==="ACTION_ADD")return((e=H.actionParams)==null?0:e.formatType)?r.yield(tbD(G,p,H.actionParams.formatType,(M=H.actionParams)==null?void 0:M.settingsAction,Z),0):r.yield(G.offlineWebClientEligibility,23);if(H.action==="ACTION_RETRY")return r.yield(Xyc(G),
19);if(H.action==="ACTION_PAUSE")return r.yield(G.pauseVideoDownload(p),0);if(H.action==="ACTION_RESUME")return r.yield(G.resumeVideoDownload(p),0);if(H.action!=="ACTION_REMOVE"){r.jumpTo(0);break}return r.yield(JqD(G,p),13);case 13:return l=r.yieldResult,G.previousDownloadStateForVideo[p]=(q=l)!=null?q:"DOWNLOAD_STATE_UNKNOWN",r.yield(DQi(G,p,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(G.previousDownloadStateForVideo[p]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&G.previousDownloadStateForVideo[p]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){r.jumpTo(15);break}return r.yield(G.pauseVideoDownload(p),15);case 15:w=_.Zg("DELETED_VIDEO",void 0,"Video deleted from downloads.");x=_.Zg("UNDO_ACTION",void 0,"Undo");R=_.Zg("CLOSE",void 0,"Close");u={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Nm(w),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Nm(x),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:p}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:w+" "+x}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:p}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:R}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};G.JSC$18587_commandHandler.resolveCommand(u);
r.jumpTo(0);break;case 19:B=r.yieldResult;B==="UNKNOWN_FORMAT_TYPE"&&(B="SD");t="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((D=H.actionParams)==null?0:D.formatType)B=H.actionParams.formatType,t=(d=H.actionParams)==null?void 0:d.settingsAction;return r.yield(kji(G,p,B,t,Z),20);case 20:return r.return();case 23:return n=r.yieldResult,r.yield(Xyc(G),24);case 24:return c=r.yieldResult,r.yield($Qo(G),25);case 25:W=r.yieldResult,H.onAddCommand&&G.JSC$18587_commandHandler.resolveCommand(H.onAddCommand,
{form:{preferredFormatType:c,offlineWebClientEligibility:n,lastOfflineQualitySettingsSavedMs:W.toString()}}),r.jumpTo(0)}})},cqo=function(G,H){var Z,Q,p,l,q,u,B;
return _.S(function(t){if(t.nextAddress==1)return t.yield(G.JSC$18587_persistentStorePromiseAccessor(),2);Z=t.yieldResult;if(!Z)return _.Rp(new _.C$("PES is undefined")),t.return();if((Q=H)==null||!Q.settingItemId)return t.return();p=H;l=p.settingItemId;q=p.boolValue;u=_.G9(l,"settingEntity");B={key:u,settingOptionValue:{boolValue:q}};return t.yield(fAm(Z,B),0)})},Tsm=function(G,H){var Z,Q,p,l,q,u,B;
return _.S(function(t){switch(t.nextAddress){case 1:return t.yield(G.JSC$18587_prefStorage,2);case 2:return Z=t.yieldResult,Q=_.lf(),t.yield(G.JSC$18587_persistentStorePromiseAccessor(),3);case 3:return p=t.yieldResult,Z?p?t.yield(Z.get("sdois"),4):(_.Rp(new _.C$("PES is undefined")),t.return()):(_.Rp(new _.C$("prefStorage is undefined")),t.return());case 4:l=t.yieldResult;u=(q=H)==null?void 0:q.boolValue;u===void 0||_.V("kevlar_set_sd_enabled_flag_killswitch")||_.g8(0,197,!0);l===void 0&&u===void 0&&
(u=!1);if(u===void 0){t.jumpTo(0);break}return t.yield(Z.set("sdois",u),6);case 6:return _.V("kevlar_set_sd_enabled_flag_killswitch")||(_.g8(0,196,u),Q.save()),B={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:u},t.yield(cqo(G,B),0)}})},f$k=function(G,H,Z){var Q,p,l,q,u;
return _.S(function(B){switch(B.nextAddress){case 1:return B.yield(eSh(G),2);case 2:return Q=B.yieldResult,B.yield(Tsm(G,Z),3);case 3:return B.yield(eSh(G),4);case 4:return p=B.yieldResult,l=p!==Q,B.yield(n_h(G),5);case 5:q=B.yieldResult&&!_.V("kevlar_modern_downloads_page");if((u=!p&&!q)||l)return B.yield(H.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);B.jumpTo(0)}})},qKq=function(){var G=_.tp().resolve(_.R8),
H;
_.S(function(Z){switch(Z.nextAddress){case 1:return Z.yield(G.JSC$18587_playerApiPromise,2);case 2:H=Z.yieldResult;if(!_.V("kevlar_force_refresh_smart_downloads")){Z.jumpTo(3);break}return Z.yield(H.refreshAllStaleEntities(0),4);case 4:return Z.return();case 3:return Z.yield(H.refreshAllStaleEntities(),5);case 5:return Z.yield(f$k(G,H),6);case 6:if(_.V("enable_download_pep_for_premium_countries_web"))return Z.yield(dQD(G,H),0);Z.jumpTo(0)}})},dEA=function(G,H){var Z,Q;
_.S(function(p){switch(p.nextAddress){case 1:return p.yield(G.JSC$18587_playerApiPromise,2);case 2:Z=p.yieldResult;switch((Q=H)==null?void 0:Q.settingItemId){case "SMART_DOWNLOADS_ENABLED":return p.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return p.jumpTo(4)}p.jumpTo(0);break;case 3:return p.yield(f$k(G,Z,H),6);case 6:p.jumpTo(0);break;case 4:return p.yield(cqo(G,H),7);case 7:p.jumpTo(0)}})},v_t=function(G,H){var Z,Q,p;
return _.S(function(l){if(l.nextAddress==1)return l.yield(G.JSC$18587_persistentStorePromiseAccessor(),2);if(l.nextAddress!=3){Z=l.yieldResult;if(!Z)return _.Rp(new _.C$("PES is undefined")),l.return(!1);if(!H)return l.return(!1);Q=_.G9(H,"mainVideoEntity");return l.yield(vfm(Z,Q,"mainVideoEntity"),3)}p=l.yieldResult;return l.return(p!==void 0)})},nut=function(G){var H=_.tp().resolve(_.R8),Z,Q,p,l,q,u,B,t,D,d,e;
_.S(function(n){switch(n.nextAddress){case 1:return n.yield(H.JSC$18587_playerApiPromise,2);case 2:Z=n.yieldResult;p=(Q=G)==null?void 0:Q.actions;if(!p)return n.return();l=_.I(p);q=l.next();case 3:if(q.done){n.jumpTo(0);break}u=q.value;t=B=void 0;if(!(((B=u)==null?0:B.entityKey)&&((t=u)==null?0:t.actionType))){n.jumpTo(4);break}D=_.YK(u.entityKey);d=D.entityId;e=D.entityType;return n.yield(Z.queueOfflineAction(d,e,u.actionType),4);case 4:q=l.next(),n.jumpTo(3)}})},WNc=function(G,H){var Z,Q,p,l,q;
return _.S(function(u){if(u.nextAddress==1)return u.yield(G.JSC$18587_prefStorage,2);if(u.nextAddress!=3)return(Z=u.yieldResult)?u.yield(Z.get("psi"),3):u.return();Q=u.yieldResult;q={isPaused:H,lastSyncTimestamp:(l=(p=Q)==null?void 0:p.lastSyncTimestamp)!=null?l:"0"};return u.yield(Z.set("psi",q),0)})},Xnj=function(G){var H=_.tp().resolve(_.R8),Z,Q,p,l,q,u,B,t;
return _.S(function(D){switch(D.nextAddress){case 1:return D.yield(H.JSC$18587_playerApiPromise,2);case 2:Z=D.yieldResult;p=((Q=G)==null?void 0:Q.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((u=G)==null?void 0:u.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":l="!*$_ALL_ENTITIES_!*$";q="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return D.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return D.jumpTo(4)}D.jumpTo(5);break;case 3:return D.yield(WNc(H,p),6);case 6:D.jumpTo(5);break;case 4:return D.yield(v_t(H,(B=G)==null?void 0:B.videoId),7);case 7:D.yieldResult&&(l=(t=G)==null?void 0:t.videoId,q="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");D.jumpTo(5);break;case 5:if(l&&q)return D.yield(Z.queueOfflineAction(l,"videoPlaybackPositionEntity",q),0);D.jumpTo(0)}})},zSA=function(G,H){var Z;
H!==1||((Z=G.currentPersistentToast)==null?0:Z.isOpened())?G.openToast():G.currentPersistentToast=void 0},KNm=function(G,H){var Z;
return(Z=G.transitionTasksMap.get(H))!=null?Z:[]},Mbc=function(G,H){var Z=[];
G.elementTasksMap.forEach(function(Q){(Q=Q.get(H))&&Z.push(Q)});
return Z},jQ8=function(G,H,Z,Q,p){p=p===void 0?{}:p;
var l=H.defaultViewTransitionOptions;return Object.assign({},l,p,{beforeTransition:function(){Q.forEach(function(t){t.beforeTransition()});
var q;(q=l.beforeTransition)==null||q.call(l);var u,B;(B=(u=p).beforeTransition)==null||B.call(u);Z.forEach(function(t){t.beforeTransition()})},
afterTransition:function(){Q.forEach(function(t){t.afterTransition()});
var q;(q=l.afterTransition)==null||q.call(l);var u,B;(B=(u=p).afterTransition)==null||B.call(u);Z.forEach(function(t){t.afterTransition()})},
ignoredErrors:G.config.ignoredErrors})},Pnt=function(G,H,Z){G.transitionTasksMap.has(H)?G.transitionTasksMap.get(H).push(Z):(G=new _.C$("Transition task registered for unknown transition type",H),_.me(G))},rqD=function(G,H,Z){if(G.transitionTasksMap.has(H)){var Q=G.transitionTasksMap.get(H).filter(function(p){return p!==Z});
G.transitionTasksMap.set(H,Q)}},wyL=function(G,H){var Z=KNm(G,H);
Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,Q.runOnce&&rqD(G,H,Q);G.elementTasksMap.forEach(function(p,l){p.forEach(function(q,u){q.runOnce&&H===u&&(p.delete(u),p.size===0&&G.elementTasksMap.delete(l))})})},hSt=function(G,H,Z){var Q,p,l,q,u,B,t,D,d;
_.S(function(e){if(e.nextAddress==1){if(G.config.disableAllTransitions)return e.return(H());if((Q=Z)==null||!Q.transitionType)return e.return(_.$lh(H,Object.assign({},(p=Z)==null?void 0:p.viewTransitionOptions,{ignoredErrors:G.config.ignoredErrors})));l=Z;q=l.transitionType;u=l.viewTransitionOptions;B=G.config.transitionConfigs.get(q);if(!B)return e.return(H());t=KNm(G,q);D=Mbc(G,q);d=_.$lh(H,jQ8(G,B,t,D,u));return e.yield(d,2)}wyL(G,q);_.K0(e)})},Cna=function(){var G,H,Z,Q;
return _.S(function(p){if(p.nextAddress==1)return G=navigator,(H=G.storage)!=null&&H.persisted?p.yield((Z=G.storage)==null?void 0:Z.persisted(),2):p.return("PERSISTED_STATE_NOT_SUPPORTED");Q=p.yieldResult;return p.return(Q?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},ipk=function(){var G,H,Z,Q;
return _.S(function(p){if(p.nextAddress==1)return G=navigator,(H=G.storage)!=null&&H.persist?p.yield((Z=G.storage)==null?void 0:Z.persist(),2):p.return("PERSISTED_STATE_NOT_SUPPORTED");Q=p.yieldResult;return p.return(Q?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Opa=function(){var G,H;
return _.S(function(Z){switch(Z.nextAddress){case 1:return G="PERSISTED_STATE_NOT_SUPPORTED",_.XV(Z,2),Z.yield(Cna(),4);case 4:G=Z.yieldResult;if(G!=="PERSISTED_STATE_NOT_GRANTED"){Z.jumpTo(5);break}return Z.yield(ipk(),6);case 6:G=Z.yieldResult;case 5:_.Za(Z,3);break;case 2:H=_.Wg(Z),H instanceof Error&&_.me(H);case 3:return _.yR("persistentStorageStateChecked",{persistedState:G}),Z.return(G)}})},a$a=function(G,H){var Z=[],Q=!1;
H=_.I(H);for(var p=H.next();!p.done;p=H.next()){p=G.moduleRegistry[p.value];var l=void 0,q=void 0;((l=p)==null?0:l.isFetching)&&((q=p)==null?0:q.resolver)?(Z.push(p.resolver.promise),Q=!0):(p=new _.sD,p.resolve(void 0),Z.push(p.promise))}return Q?Promise.all(Z):void 0},yqt=function(G,H,Z){if(G.isAnyTransitionEnabled){var Q={beforeTransition:function(){Z(!0);
H.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){H.style.viewTransitionName&&(H.style.viewTransitionName="",Z(!1))}};
Pnt(G.viewTransitionCoordinator,"slide",Q);Pnt(G.viewTransitionCoordinator,"lockup-to-watch",Q);Pnt(G.viewTransitionCoordinator,"watch-next-appears",Q);Pnt(G.viewTransitionCoordinator,"learning-journey",Q)}},o_L=function(G,H){G.isBrowseTransitionEnabled?hSt(G.viewTransitionCoordinator,H,{transitionType:"slide"}):(H(),Promise.resolve())},mQs=function(G,H){G.isLockupToWatchTransitionEnabled?hSt(G.viewTransitionCoordinator,H,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){G.registeredLockupThumbnail=void 0;G.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(H(),Promise.resolve())},UQa=function(G,H){G.isLockupToWatchTransitionEnabled?hSt(G.viewTransitionCoordinator,H,{transitionType:"watch-next-appears"}):(H(),Promise.resolve())},RSj=function(G,H){G.isLearningJourneyTransitionEnabled?hSt(G.viewTransitionCoordinator,H,{transitionType:"learning-journey"}):(H(),Promise.resolve())},Ns8=function(G,H,Z){if(G.isInitialized()){var Q=
s9(Z),p=Q==="watch";
Q=Q==="shorts";var l=s9(H)==="watch";if(p)l||(G.backgroundPageData=H),G.watchPipMode&&l||G.deactivate(Z.endpoint);else if(Q){if(s9(H)!=="shorts"){var q;(q=G.getPlayerElement())==null||q.pause()}}else l&&!G.watchPipMode&&(Wlm(H,Z,!0)?(G.watchWhileMode&&_.gJt(G,!1),_.HTD(G,H)):G.isMiniplayerActive()&&G.watchWhileMode&&G.deactivate());l&&_.qND(G);G.shortsPipMode&&!Q&&(window.focus(),G.deactivate());if(G.pictureInPictureEnabled())if(Q&&G.shortsPipEnabled||p&&G.watchPipEnabled)_.XqR(G.handleMediaSessionPipActivation);
else if(!G.isMiniplayerActive()&&(G.shortsPipEnabled||G.watchPipEnabled)&&window.documentPictureInPicture&&_.MX()&&_.X3v("Chromium")>=120){G=_.$b3().mediaSession;try{G.setActionHandler("enterpictureinpicture",null)}catch(u){}}}},Aqt=function(G,H){var Z,Q;
_.S(function(p){if(p.nextAddress==1){if(!G||!G.navigationEndpoint)return p.return();_.PN().lockupActivation=!0;var l;H?l=_.aq(_.Zg("QUEUE",void 0,"Queue")):l=G.longBylineText;Q=(Z=l)&&G.title?{miniplayerTitle:G.title,miniplayerSubtitle:Z,playlistData:null}:void 0;return p.yield(_.y2x(_.tp().resolve(_.WM),G.navigationEndpoint,!0,Q),2)}_.PN().userActivation=!0;_.K0(p)})},rBk=function(G,H){var Z,Q,p,l,q,u;
_.S(function(B){if(B.nextAddress==1){Z=_.X(H,_.yOd);if(!Z||!Z.listId)return B.return();G.index=Z.index||G.index||0;Q=G.response&&G.response.playingVideoId||void 0;return B.yield(_.Iut(G.JSC$13087_playlistNetworkManager,Z.listId,G.index,Q),2)}p=B.yieldResult;if(!p)return B.return();l=p.playlistId;q=p.playlistPanelRenderer;!G.queueProxy&&l&&q&&l.startsWith("TLPQ")&&(G.queueProxy=new _.Fo(G.JSC$13087_playlistNetworkManager,l,G.setPlaylistData.bind(G),G.clearQueue.bind(G),_.Hde(q),G.storage));if(Z.openMiniplayer&&
(u=_.srR(q))&&!G.JSC$13087_pageManager.isOnWatch()){var t=u,D=Z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";G.isMiniplayerActive()?G.openToast(t):Aqt(t,D)}G.setPlaylistData(l,q,p.autoplayRenderer);_.K0(B)})},MVL=function(G,H){var Z=_.l3();
Z.index===void 0&&(Z.index=0);Z.temporaryItems.push.apply(Z.temporaryItems,_.OP(G));if((H.videoId||H.videoIds)&&Z.index!==void 0&&H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!Z.queueProxy){var Q=[];if(Z.response){var p=_.tp().resolve(_.WM).isMiniplayerActive();if(Z.response.playlistPanelRenderer&&Z.response.playlistId&&!Z.response.playlistId.startsWith("TLPQ")){if(Z.JSC$13087_pageManager.isOnWatch()||p)Q=_.Hde(Z.response.playlistPanelRenderer)}else Z.response.playingVideoId&&!H.openMiniplayer?
Q.push(Z.response.playingVideoId):p&&Z.response.playingVideoId&&H.openMiniplayer&&Q.push(Z.response.playingVideoId)}Z.queueProxy=new _.Fo(Z.JSC$13087_playlistNetworkManager,"",Z.setPlaylistData.bind(Z),Z.clearQueue.bind(Z),Q,Z.storage);Z.queueProxy.JSC$13033_setCurrentIndex(Z.index)}Z.queueProxy.addVideos(H.videoIds||[H.videoId],H)}KDt(Z,G);Z.response&&_.gW(Z,_.IT(Z,Z.response.autoplayRenderer));Z.JSC$13087_pageManager.isOnWatch()?Z.isMiniplayerActive()&&Z.openToast(G[0]):(G=G[0],H=H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
Z.isMiniplayerActive()?Z.openToast(G):Aqt(G,H))},xQq=function(G){var H=_.ba(G);
if(H=="object"||H=="array"){if(typeof G.clone==="function")return G.clone();if(typeof Map!=="undefined"&&G instanceof Map)return new Map(G);if(typeof Set!=="undefined"&&G instanceof Set)return new Set(G);H=H=="array"?[]:{};for(var Z in G)H[Z]=xQq(G[Z]);return H}return G},$t=function(G,H){return _.eNW(_.gm(G,H,void 0,_.l6))},X5=function(G,H){return _.qa(_.gm(G,H,void 0,_.l6))},ca=function(G,H){return _.Ca2(_.gm(G,H,void 0,_.l6))},TT=function(G,H){return _.gm(G,H,void 0,_.l6,_.Fa)},LNj=_.uI(function(G,
H,Z,Q){if(G.nextWireType_!==0)return!1;
_.u6(H,Z,Q,_.W4(G.decoder_,_.D7X));return!0},_.DM,_.P4),E_c=_.uI(function(G,H,Z){if(G.nextWireType_!==1)return!1;
var Q=G.decoder_;G=_.KY(Q);Q=_.KY(Q);G=_.ot(G,Q);_.BO(H,Z,G);return!0},_.CI3,_.Zma),Yac=_.uI(function(G,H,Z){if(G.nextWireType_!==2)return!1;
G=_.y_G(G);_.BO(H,Z,G===_.jp()?void 0:G);return!0},_.oYj,_.ltx),FNo=_.W0U(function(G,H,Z){if(G.nextWireType_!==0&&G.nextWireType_!==2)return!1;
H=_.s_(H,H[_.pw]|0,Z);G.nextWireType_==2?_.ow4(G,lAm,H):H.push(_.zW(G.decoder_));return!0},function(G,H,Z){H=_.vYf(_.qa,H,!0);
if(H!=null&&H.length){Z=_.x7w(G,Z);for(var Q=0;Q<H.length;Q++)_.rNe(G.encoder_,H[Q]);_.L2N(G,Z)}},_.gA7),bpi=_.uI(function(G,H,Z,Q){if(G.nextWireType_!==0)return!1;
_.u6(H,Z,Q,_.zW(G.decoder_));return!0},_.UUo,_.gA7),Gvc=function(G){return G.previousElementSibling!==void 0?G.previousElementSibling:_.eOG(G.previousSibling,!1)},HVo=function(G,H){var Z=[];
for(H=H||0;H<G.length;H+=2)_.g5a(G[H],G[H+1],Z);return Z.join("&")},s3m=function(G,H){var Z=arguments.length==2?HVo(arguments[1],0):HVo(arguments,1);
return _.lS_(G,Z)},HGm=_.cO(_.nA),ZV6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(ZV6,_.Iy);ZV6.prototype.getTypeName=function(){return _.nY(this,1).split("/").pop()};
ZV6.prototype.getValue=function(){var G=_.gm(this,2);if(Array.isArray(G)||G instanceof _.Iy)throw Error("W");return _.SD(this,2)};
var mB8=function(){var G=_.F8();this.JSC$9926_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.e_("channel_type"))};
mB8.prototype.increment=function(G){this.JSC$9926_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",G)};
var UB8=function(){var G=_.F8();this.JSC$9929_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.e_("channel_type"))};
UB8.prototype.increment=function(G){this.JSC$9929_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",G)};
var Nuj=function(){var G=_.F8();this.JSC$9932_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.e_("channel_type"))};
Nuj.prototype.increment=function(G){this.JSC$9932_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",G)};
var R38=function(){var G=_.F8();this.JSC$9935_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
R38.prototype.increment=function(){this.JSC$9935_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var AWL=function(){var G=_.F8();this.JSC$9938_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.e_("channel_type"),_.e_("error_type"))};
AWL.prototype.increment=function(G,H){this.JSC$9938_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",G,H)};
var xBL=function(){var G=_.F8();this.JSC$9941_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
xBL.prototype.increment=function(){this.JSC$9941_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var LwD=function(){var G=_.F8();this.JSC$9944_streamzService=G;G.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
LwD.prototype.increment=function(){this.JSC$9944_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var ouA=function(){var G=_.F8();this.JSC$9950_streamzService=G;G.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
ouA.prototype.increment=function(){this.JSC$9950_streamzService.JSC$9796_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Q3t=function(G){return G.getCount&&typeof G.getCount=="function"?G.getCount():_.Uj(G)||typeof G==="string"?G.length:_.oN.getCount(G)},psk=function(G,H){if(typeof G.every=="function")return G.every(H,void 0);
if(_.Uj(G)||typeof G==="string")return Array.prototype.every.call(G,H,void 0);for(var Z=_.gJT(G),Q=_.Yf(G),p=Q.length,l=0;l<p;l++)if(!H.call(void 0,Q[l],Z&&Z[l],G))return!1;return!0},lNo=function(G,H,Z,Q){var p=new _.C9(null);
G&&_.FQ(p,G);H&&_.b5(p,H);Z&&_.Gj(p,Z);Q&&_.Hy(p,Q);return p},gqD=function(){var G=_.Ed&&_.DU(_.$2_,10)>=0,H;
if(H=_.xXt)H=_.DU(_.Vn7,10)>=0;var Z=_.sy&&_.DU(_.$2_,85)>=0;return _.FW||G||H||Z},INs=function(G){var H=_.ya4(G);
return H&&gqD()?-G.scrollLeft:H&&_.Y5(G,"overflowX")!="visible"?G.scrollWidth-G.clientWidth-G.scrollLeft:G.scrollLeft},qea=function(G,H){H=Math.max(H,0);
_.ya4(G)?gqD()?G.scrollLeft=-H:G.scrollLeft=G.scrollWidth-H-G.clientWidth:G.scrollLeft=H},m6q=0,x6q=!1;
Qe.prototype.set=function(G){this.relativeTimeStart_=G};
Qe.prototype.reset=function(){this.set(_.NW())};
Qe.prototype.get=function(){return this.relativeTimeStart_};
var uAm=null,BKj=function(){uAm||(uAm=new Qe)},JAq=function(){uAm||(uAm=new Qe)};
_.AB(JAq,BKj);_.g=EQi.prototype;_.g.JSC$11361_buffer_="";_.g.set=function(G){this.JSC$11361_buffer_=""+G};
_.g.append=function(G,H,Z){this.JSC$11361_buffer_+=String(G);if(H!=null)for(var Q=1;Q<arguments.length;Q++)this.JSC$11361_buffer_+=arguments[Q];return this};
_.g.clear=function(){this.JSC$11361_buffer_=""};
_.g.getLength=function(){return this.JSC$11361_buffer_.length};
_.g.toString=function(){return this.JSC$11361_buffer_};
var tGm=!1,ZXL=function(G){_.sj.call(this,G.message||G.description||G.name);this.isMissing=G instanceof pZ;this.isTimeout=G instanceof _.oW&&G.errorCode=="net.timeout";this.isCanceled=G instanceof _.fA};
_.T(ZXL,_.sj);ZXL.prototype.name="BiscottiError";var pZ=function(){_.sj.call(this,"Biscotti ID is missing from server")};
_.T(pZ,_.sj);pZ.prototype.name="BiscottiMissingError";var li=null,cBa=function(){try{var G=_.GF("yt.ads.biscotti.getId_");return G?G():h2s()}catch(H){return _.DJ(H)}},kvi=function(G,H){return _.Lo({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:G,command:H}})},DOa=function(G){return _.Lo({type:"SET_GUIDE_IS_EXPANDED",
payload:G})},dOh=function(G){return _.Lo({type:"SET_ONLINE_STATUS",
payload:G})},eAD=function(G,H){return _.Lo({type:"SET_TRANSCRIPTION_STATE",
payload:{high:G,low:H}})},nqi=function(G){return _.Lo({type:"SET_OVERLAY_STATE",
payload:G})},VGL=0,$OD=function(G,H,Z){var Q=this;
this.priority=H;this.delay=Z;this.jobId=0;this.completionCallback=_.dP;this.wrappedJob=function(){G();Q.completionCallback()};
this.id=++VGL};
$OD.prototype.enqueue=function(G){this.completionCallback=G;this.jobId=_.Ui.addJob(this.wrappedJob,this.priority,this.delay)};
var fL=function(){_.ZN.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.T(fL,_.ZN);fL.prototype.addJob=function(G,H,Z){G=new $OD(G,H,Z);this.taskIdToTask.set(G.id,G);this.isActive?Xsa(this,G):this.suspendedTasks.add(G);return G.id};
var Xsa=function(G,H){G.scheduledTasks.add(H);H.enqueue(function(){G.scheduledTasks.delete(H)})};
fL.prototype.cancelJob=function(G){(G=this.taskIdToTask.get(G))&&(this.scheduledTasks.delete(G)?_.Ui.cancelJob(G.jobId):this.suspendedTasks.delete(G))};
fL.prototype.pause=function(){var G=this;this.isActive=!1;this.scheduledTasks.forEach(function(H){_.Ui.cancelJob(H.jobId);G.suspendedTasks.add(H)});
this.scheduledTasks.clear()};
fL.prototype.start=function(){var G=this;this.isActive=!0;this.suspendedTasks.forEach(function(H){Xsa(G,H)});
this.suspendedTasks.clear()};
fL.prototype.reset=function(){this.scheduledTasks.forEach(function(G){_.Ui.cancelJob(G.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var cAc=function(G,H){this.JSC$13213_networkService_=G;this.pageRequestPromise=H};
cAc.prototype.fetchData=function(G){TKq(this,this.JSC$13213_networkService_.fetchData(G))};
cAc.prototype.postData=function(G,H){TKq(this,this.JSC$13213_networkService_.postData(G,H))};
cAc.prototype.requestDataForServiceEndpoint=function(G,H){TKq(this,this.JSC$13213_networkService_.requestDataForServiceEndpoint(G,H))};
var TKq=function(G,H){H.then(G.pageRequestPromise.onSuccess,G.pageRequestPromise.onFailure,G.pageRequestPromise)};
cAc.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var fNA=function(G){this.buildNetworkRequest_=G;this.pendingRequests_=new Set};
fNA.prototype.reset=function(){this.pendingRequests_.forEach(function(G){G.cancel()});
this.pendingRequests_.clear()};
fNA.prototype.fetchData=function(G){var H=vqm(this);H.fetchData(G);return H.pageRequestPromise};
fNA.prototype.postData=function(G,H){var Z=vqm(this);Z.postData(G,H);return Z.pageRequestPromise};
fNA.prototype.requestDataForServiceEndpoint=function(G,H){var Z=vqm(this);Z.requestDataForServiceEndpoint(G,H);return Z.pageRequestPromise};
var vqm=function(G){var H=G.buildNetworkRequest_();G.pendingRequests_.add(H);var Z=function(){G.pendingRequests_.delete(H)};
H.pageRequestPromise.then(Z,Z);return H},W16=function(G){var H=new fL;
this.JSC$13220_networkService_=G;this.JSC$13220_taskManager_=H;this.JSC$13220_networkManager_=new fNA(this.networkRequestFactory_.bind(this))};
_.g=W16.prototype;_.g.networkRequestFactory_=function(){return new cAc(this.JSC$13220_networkService_,new _.c9(this.JSC$13220_taskManager_))};
_.g.reset=function(){this.JSC$13220_taskManager_.reset();this.JSC$13220_networkManager_.reset()};
_.g.start=function(){this.JSC$13220_taskManager_.start()};
_.g.pause=function(){this.JSC$13220_taskManager_.pause()};
_.g.getTaskManager=function(){return this.JSC$13220_taskManager_};
_.g.getNetworkManager=function(){return this.JSC$13220_networkManager_};
var tkt=null,d$s=[],gL=0,qC=0,IL=null,ui=function(G){this.token=G};
ui.getInstance=function(){var G;return _.S(function(H){if(H.nextAddress==1)return H.yield(_.BP(),2);G=H.yieldResult;if(!G)return H.return();ui.instance||(ui.instance=new ui(G));return H.return(ui.instance)})};
var fJc=function(G){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(XTA(G.token),2);H=Z.yieldResult;return Z.return(H.clear("resource-manifest-assets"))})},SN=function(G){this.token=G};
SN.getInstance=function(){var G;return _.S(function(H){if(H.nextAddress==1)return H.yield(_.BP(),2);G=H.yieldResult;if(!G)return H.return();SN.instance||(SN.instance=new SN(G));return H.return(SN.instance)})};
var ctD=function(G){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(XTA(G.token),2);H=Z.yieldResult;return Z.yield(H.clear("auth"),0)})},zAA=!1,BI=null,OXA=void 0,x$D=!1,K1c=function(G){_.sj.call(this,G)};
_.T(K1c,_.w2w);var w8j=function(){var G=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return G?parseInt(G[1],10):0},MGs=function(G){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+G)!=-1||document.currentScript.src.indexOf("&"+G)!=-1)},j3k=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},axh=function(G){G.length?POm(G.shift(),function(){axh(G)}):CLa()},oGq=function(G){return"chrome-extension://"+G+"/cast_sender.js"},POm=function(G,
H,Z){var Q=document.createElement("script");
Q.onerror=H;Z&&(Q.onload=Z);_.gJ(Q,_.O1(G));(document.head||document.documentElement).appendChild(Q)},rA8=function(){var G=w8j(),H=[];
if(G>1){var Z=G-1;H.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js");H.push("//www.gstatic.com/eureka/clank/"+Z+"/cast_sender.js")}return H},CLa=function(){var G=j3k();
G&&G(!1,"No cast extension found")},OAh=function(){if(ws6){var G=2,H=j3k(),Z=function(){G--;
G==0&&H&&H(!0)};
window.__onGCastApiAvailable=Z;POm("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",CLa,Z)}},hfj=function(){OAh();
var G=rA8();G.push("//www.gstatic.com/eureka/clank/cast_sender.js");axh(G)},iAq=function(){OAh();
var G=rA8();G.push.apply(G,_.OP(yl6.map(oGq)));G.push("//www.gstatic.com/eureka/clank/cast_sender.js");axh(G)},ws6=MGs("loadCastFramework")||MGs("loadCastApplicationFramework"),yl6=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var hAa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(hAa,_.Iy);var COh=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(COh,_.Iy);var iVA=function(){var G=new COh;return _.fY(G,1,3)};var va=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(va,_.Iy);var hh8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(hh8,_.Iy);var OVo=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(OVo,_.Iy);OVo.prototype.getToken=function(){return _.nY(this,1)};
OVo.prototype.setToken=function(G){return _.jO(this,1,G)};
var rQc=function(G){return _.YA(G,3,_.T8,_.tR())},whc=function(G){return _.YA(G,6,_.T8,_.tR())};var Wa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Wa,_.Iy);Wa.prototype.getToken=function(){return _.dt(this,OVo,2)};
Wa.prototype.setToken=function(G){return _.fq(this,2,G)};
Wa.prototype.getName=function(){return _.nY(this,6)};
var aND=_.cO(Wa);var yAt=function(G,H,Z){this.requestMessage=G;this.methodDescriptor=H;this.metadata=Z};
yAt.prototype.getMetadata=function(){return this.metadata};var oqt=function(G,H){H=H===void 0?{}:H;this.responseMessage=G;this.metadata=H;this.status=null};
oqt.prototype.getMetadata=function(){return this.metadata};
oqt.prototype.getStatus=function(){return this.status};var zT=function(G,H,Z,Q,p){this.name=G;this.methodType="unary";this.requestType=H;this.responseType=Z;this.requestSerializeFn=Q;this.responseDeserializeFn=p},mOm=function(G,H,Z){Z=Z===void 0?{}:Z;
return new yAt(H,G,Z)};
zT.prototype.getName=function(){return this.name};var KL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(KL,_.Iy);KL.prototype.getHeader=function(){return _.dt(this,va,1)};
KL.prototype.setHeader=function(G){return _.fq(this,1,G)};
KL.prototype.hasHeader=function(){return _.IE(this,va,1)};var UO6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(UO6,_.Iy);var RAs=new zT("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",KL,UO6,function(G){return G.serialize()},_.cO(UO6));var ML=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(ML,_.Iy);ML.prototype.getHeader=function(){return _.dt(this,va,1)};
ML.prototype.setHeader=function(G){return _.fq(this,1,G)};
ML.prototype.hasHeader=function(){return _.IE(this,va,1)};var NKo=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(NKo,_.Iy);var AAs=new zT("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",ML,NKo,function(G){return G.serialize()},_.cO(NKo));var jF=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(jF,_.Iy);jF.prototype.getHeader=function(){return _.dt(this,va,1)};
jF.prototype.setHeader=function(G){return _.fq(this,1,G)};
jF.prototype.hasHeader=function(){return _.IE(this,va,1)};var xO6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(xO6,_.Iy);xO6.prototype.getLink=function(){return _.dt(this,Wa,1)};var L18=new zT("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",jF,xO6,function(G){return G.serialize()},_.cO(xO6));var Pa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Pa,_.Iy);Pa.prototype.getHeader=function(){return _.dt(this,va,1)};
Pa.prototype.setHeader=function(G){return _.fq(this,1,G)};
Pa.prototype.hasHeader=function(){return _.IE(this,va,1)};var EqL=new zT("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Pa,Wa,function(G){return G.serialize()},aND);var Ye6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Ye6,_.Iy);var F1q=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(F1q,_.Iy);F1q.prototype.getUrl=function(){return _.nY(this,2)};
F1q.prototype.setUrl=function(G){return _.jO(this,2,G)};var bVa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(bVa,_.Iy);var GJa=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(GJa,_.Iy);var Htc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Htc,_.Iy);var AQ6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(AQ6,_.Iy);var Nb8=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Nb8,_.Iy);var sBo=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(sBo,_.Iy);var Gka=_.cO(sBo);var ZtD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(ZtD,_.Iy);var QBk=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(QBk,_.Iy);_.g=QBk.prototype;_.g.getHeader=function(){return _.dt(this,va,1)};
_.g.setHeader=function(G){return _.fq(this,1,G)};
_.g.hasHeader=function(){return _.IE(this,va,1)};
_.g.getCompletionUrl=function(){return _.nY(this,6)};
_.g.getDeviceId=function(){return _.nY(this,11)};var pKk=new zT("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",QBk,sBo,function(G){return G.serialize()},Gka);var lyA=new Set(["SAPISIDHASH","APISIDHASH"]);var ghD=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(ghD,_.Iy);ghD.prototype.getMessage=function(){return _.nY(this,2)};
var Iyq=_.cO(ghD);var S4j=function(G,H){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=G.nodeReadableStream;this.grpcResponseDeserializeFn=H;this.xhr=G.xhr;this.xhrNodeReadableStream&&q4k(this)},dds=function(G,H){var Z=new uEq;
_.tt(G.xhr,"complete",function(){if(G.xhr.isSuccess()){var Q=G.xhr.getResponseText();var p;if(p=H)p=G.xhr,p.JSC$9805_xhr_&&p.isComplete()?(p=p.JSC$9805_xhr_.getResponseHeader("Content-Type"),p=p===null?void 0:p):p=void 0,p=p==="text/plain";if(p){if(!atob)throw Error("ik");Q=atob(Q)}try{var l=G.grpcResponseDeserializeFn(Q)}catch(u){Baa(G,VQD(new _.WQ(13,"Error when deserializing response data; error: "+u+(", response: "+Q)),Z));return}Q=_.qdu(G.xhr.getStatus());JOq(G,tML(G));Q===0?kJa(G,l):Baa(G,VQD(new _.WQ(Q,
"Xhr succeeded but the status code is not 200"),Z))}else{Q=G.xhr.getResponseText();l=tML(G);if(Q){var q=Dds(G,Q);Q=q.code;p=q.details;q=q.metadata}else Q=2,p="Rpc failed due to xhr error. uri: "+String(G.xhr.JSC$9805_lastUri_)+", error code: "+(G.xhr.JSC$9805_lastErrorCode_+", error: ")+G.xhr.getLastError(),q=l;JOq(G,l);Baa(G,VQD(new _.WQ(Q,p,q),Z))}})},q4k=function(G){G.xhrNodeReadableStream.on("data",function(H){if("1"in H){var Z=H["1"];
try{var Q=G.grpcResponseDeserializeFn(Z)}catch(p){Baa(G,new _.WQ(13,"Error when deserializing response data; error: "+p+(", response: "+Z)))}Q&&kJa(G,Q)}if("2"in H)for(H=Dds(G,H["2"]),Z=0;Z<G.onStatusCallbacks.length;Z++)G.onStatusCallbacks[Z](H)});
G.xhrNodeReadableStream.on("end",function(){JOq(G,tML(G));for(var H=0;H<G.onEndCallbacks.length;H++)G.onEndCallbacks[H]()});
G.xhrNodeReadableStream.on("error",function(){if(G.onErrorCallbacks.length!==0){var H=G.xhr.JSC$9805_lastErrorCode_;H!==0||G.xhr.isSuccess()||(H=6);var Z=-1;switch(H){case 0:var Q=2;break;case 7:Q=10;break;case 8:Q=4;break;case 6:Z=G.xhr.getStatus();Q=_.qdu(Z);break;default:Q=14}JOq(G,tML(G));H=_.OlN(H)+", error: "+G.xhr.getLastError();Z!==-1&&(H+=", http status code: "+Z);Baa(G,new _.WQ(Q,H))}})},tML=function(G){var H={},Z=qxL(G.xhr);
Object.keys(Z).forEach(function(Q){H[Q]=Z[Q]});
return H},Dds=function(G,H){var Z=2,Q={};
try{var p=Iyq(H);Z=_.k5(p,1);var l=p.getMessage();_.JR(p,ZV6,3,_.tR()).length&&(Q["grpc-web-status-details-bin"]=H)}catch(q){G.xhr&&G.xhr.getStatus()===404?(Z=5,l="Not Found: "+String(G.xhr.JSC$9805_lastUri_)):(Z=14,l="Unable to parse RpcStatus: "+q)}return{code:Z,details:l,metadata:Q}};
S4j.prototype.on=function(G,H){G==="data"?this.onDataCallbacks.push(H):G==="metadata"?this.onMetadataCallbacks.push(H):G==="status"?this.onStatusCallbacks.push(H):G==="end"?this.onEndCallbacks.push(H):G==="error"&&this.onErrorCallbacks.push(H);return this};
var eej=function(G,H){H=G.indexOf(H);H>-1&&G.splice(H,1)};
S4j.prototype.removeListener=function(G,H){G==="data"?eej(this.onDataCallbacks,H):G==="metadata"?eej(this.onMetadataCallbacks,H):G==="status"?eej(this.onStatusCallbacks,H):G==="end"?eej(this.onEndCallbacks,H):G==="error"&&eej(this.onErrorCallbacks,H);return this};
S4j.prototype.cancel=function(){this.xhr.abort()};
var kJa=function(G,H){for(var Z=0;Z<G.onDataCallbacks.length;Z++)G.onDataCallbacks[Z](H)},JOq=function(G,H){for(var Z=0;Z<G.onMetadataCallbacks.length;Z++)G.onMetadataCallbacks[Z](H)},Baa=function(G,H){for(var Z=0;Z<G.onErrorCallbacks.length;Z++)G.onErrorCallbacks[Z](H)},uEq=function(){var G=Error.call(this);
this.message=G.message;"stack"in G&&(this.stack=G.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.T(uEq,Error);var nhc=function(G){this.JSC$19630_worker_=G.worker||null;this.JSC$19630_streamBinaryChunks_=G.streamBinaryChunks||!1;this.JSC$19630_credentialsMode_=void 0};
_.AB(nhc,_.uPf);nhc.prototype.createInstance=function(){var G=new r2(this.JSC$19630_worker_,this.JSC$19630_streamBinaryChunks_);this.JSC$19630_credentialsMode_&&G.setCredentialsMode(this.JSC$19630_credentialsMode_);return G};
nhc.prototype.setCredentialsMode=function(G){this.JSC$19630_credentialsMode_=G};
var r2=function(G,H){_.$f.call(this);this.JSC$19634_worker_=G;this.JSC$19634_streamBinaryChunks_=H;this.JSC$19634_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$19634_responseHeaders_=null;this.JSC$19634_method_="GET";this.JSC$19634_url_="";this.inProgress_=!1;this.JSC$19634_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.AB(r2,_.$f);r2.prototype.open=function(G,H){if(this.readyState!=0)throw this.abort(),Error("jk");this.JSC$19634_method_=G;this.JSC$19634_url_=H;this.readyState=1;VMo(this)};
r2.prototype.send=function(G){if(this.readyState!=1)throw this.abort(),Error("kk");if(this.abortController_.signal.aborted)throw this.abort(),Error("lk");this.inProgress_=!0;var H={headers:this.requestHeaders_,method:this.JSC$19634_method_,credentials:this.JSC$19634_credentialsMode_,cache:void 0,signal:this.abortController_.signal};G&&(H.body=G);(this.JSC$19634_worker_||_.Qf).fetch(new Request(this.JSC$19634_url_,H)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
r2.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,$dA(this));this.readyState=0};
r2.prototype.handleResponse_=function(G){if(this.inProgress_&&(this.fetchResponse_=G,this.JSC$19634_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19634_responseHeaders_=G.headers,this.readyState=2,VMo(this)),this.inProgress_&&(this.readyState=3,VMo(this),this.inProgress_)))if(this.responseType==="arraybuffer")G.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Qf.ReadableStream!==
"undefined"&&"body"in G){this.currentReader_=G.body.getReader();if(this.JSC$19634_streamBinaryChunks_){if(this.responseType)throw Error("mk");this.response=[]}else this.response=this.responseText="",this.JSC$19634_textDecoder_=new TextDecoder;XKA(this)}else G.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var XKA=function(G){G.currentReader_.read().then(G.handleDataFromStream_.bind(G)).catch(G.handleSendFailure_.bind(G))};
r2.prototype.handleDataFromStream_=function(G){if(this.inProgress_){if(this.JSC$19634_streamBinaryChunks_&&G.value)this.response.push(G.value);else if(!this.JSC$19634_streamBinaryChunks_){var H=G.value?G.value:new Uint8Array(0);if(H=this.JSC$19634_textDecoder_.decode(H,{stream:!G.done}))this.response=this.responseText+=H}G.done?$dA(this):VMo(this);this.readyState==3&&XKA(this)}};
r2.prototype.handleResponseText_=function(G){this.inProgress_&&(this.response=this.responseText=G,$dA(this))};
r2.prototype.handleResponseArrayBuffer_=function(G){this.inProgress_&&(this.response=G,$dA(this))};
r2.prototype.handleSendFailure_=function(){this.inProgress_&&$dA(this)};
var $dA=function(G){G.readyState=4;G.fetchResponse_=null;G.currentReader_=null;G.JSC$19634_textDecoder_=null;VMo(G)};
r2.prototype.setRequestHeader=function(G,H){this.requestHeaders_.append(G,H)};
r2.prototype.getResponseHeader=function(G){return this.JSC$19634_responseHeaders_?this.JSC$19634_responseHeaders_.get(G.toLowerCase())||"":""};
r2.prototype.getAllResponseHeaders=function(){if(!this.JSC$19634_responseHeaders_)return"";for(var G=[],H=this.JSC$19634_responseHeaders_.entries(),Z=H.next();!Z.done;)Z=Z.value,G.push(Z[0]+": "+Z[1]),Z=H.next();return G.join("\r\n")};
r2.prototype.setCredentialsMode=function(G){this.JSC$19634_credentialsMode_=G};
var VMo=function(G){G.onreadystatechange&&G.onreadystatechange.call(G)};
Object.defineProperty(r2.prototype,"withCredentials",{get:function(){return this.JSC$19634_credentialsMode_==="include"},
set:function(G){this.setCredentialsMode(G?"include":"same-origin")}});var cOq=function(G){var H="";_.oN.forEach(G,function(Z,Q){H+=Q;H+=":";H+=Z;H+="\r\n"});
return H},Tao=function(G,H,Z){if(_.oN.isEmpty(Z))return G;
Z=cOq(Z);if(typeof G==="string")return _.yO(G,_.sd(H),Z);_.Z0(G,H,Z);return G};var fyc=function(){this.isInputValid_=!0;this.JSC$19640_streamPos_=0;this.leftoverInput_=""};
fyc.prototype.isInputValid=function(){return this.isInputValid_};
fyc.prototype.decode=function(G){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("nk`"+this.JSC$19640_streamPos_+"`stream already broken`"+G);this.leftoverInput_+=G;G=Math.floor(this.leftoverInput_.length/4);if(G==0)return null;try{var H=_.CK2(this.leftoverInput_.slice(0,G*4))}catch(Z){throw H=this.leftoverInput_,G=Z.message,this.isInputValid_=!1,Error("nk`"+this.JSC$19640_streamPos_+"`"+G+"`"+H);}this.JSC$19640_streamPos_+=G*4;this.leftoverInput_=this.leftoverInput_.slice(G*4);return H};var k6=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19643_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
k6.prototype.isInputValid=function(){return this.state_!=3};
var vh8=function(G,H,Z,Q){G.state_=3;G.errorMessage_="The stream is broken @"+G.JSC$19643_streamPos_+"/"+Z+". Error: "+Q+". With input:\n"+H;throw Error(G.errorMessage_);};
k6.prototype.acceptsBinaryInput=function(){return!0};
k6.prototype.parse=function(G){function H(B){B&128&&vh8(l,q,u,"invalid tag");(B&7)!=2&&vh8(l,q,u,"invalid wire type");l.tag_=B>>>3;l.tag_!=1&&l.tag_!=2&&l.tag_!=15&&vh8(l,q,u,"unexpected tag");l.state_=1;l.length_=0;l.countLengthBytes_=0}
function Z(B){l.countLengthBytes_++;l.countLengthBytes_==5&&B&240&&vh8(l,q,u,"message length too long");l.length_|=(B&127)<<(l.countLengthBytes_-1)*7;B&128||(l.state_=2,l.countMessageBytes_=0,typeof Uint8Array!=="undefined"?l.messageBuffer_=new Uint8Array(l.length_):l.messageBuffer_=Array(l.length_),l.length_==0&&p())}
function Q(B){l.messageBuffer_[l.countMessageBytes_++]=B;l.countMessageBytes_==l.length_&&p()}
function p(){if(l.tag_<15){var B={};B[l.tag_]=l.messageBuffer_;l.result_.push(B)}l.state_=0}
for(var l=this,q=G instanceof Array?G:new Uint8Array(G),u=0;u<q.length;){switch(l.state_){case 3:vh8(l,q,u,"stream already broken");break;case 0:H(q[u]);break;case 1:Z(q[u]);break;case 2:Q(q[u]);break;default:throw Error("ok`"+l.state_);}l.JSC$19643_streamPos_++;u++}G=l.result_;l.result_=[];return G.length>0?G:null};var Xhs=function(){this.errorMessage_=null;this.JSC$19646_streamPos_=0;this.base64Decoder_=new fyc;this.pbParser_=new k6};
Xhs.prototype.isInputValid=function(){return this.errorMessage_===null};
var WrL=function(G,H,Z){G.errorMessage_="The stream is broken @"+G.JSC$19646_streamPos_+". Error: "+Z+". With input:\n"+H;throw Error(G.errorMessage_);};
Xhs.prototype.acceptsBinaryInput=function(){return!1};
Xhs.prototype.parse=function(G){this.errorMessage_!==null&&WrL(this,G,"stream already broken");var H=null;try{var Z=this.base64Decoder_.decode(G);H=Z===null?null:this.pbParser_.parse(Z)}catch(Q){WrL(this,G,Q.message)}this.JSC$19646_streamPos_+=G.length;return H};var $io=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19649_streamPos_=0;this.result_=[];this.statusParsed_=!1};
$io.prototype.isInputValid=function(){return this.errorMessage_===null};
$io.prototype.acceptsBinaryInput=function(){return!1};
$io.prototype.parse=function(G){function H(B){l.state_=6;l.errorMessage_="The stream is broken @"+l.JSC$19649_streamPos_+"/"+q+". Error: "+B+". With input:\n";throw Error(l.errorMessage_);}
function Z(){l.jsonStreamParser_=new _.SL({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function Q(B){if(B)for(var t=0;t<B.length;t++){var D={};D[1]=B[t];l.result_.push(D)}}
function p(B){if(B){(l.statusParsed_||B.length>1)&&H("extra status: "+B);l.statusParsed_=!0;var t={};t[2]=B[0];l.result_.push(t)}}
for(var l=this,q=0;q<G.length;){var u;if(u=l.state_!==2){a:{for(;q<G.length;){if(!_.qo(G[q])){u=!0;break a}q++;l.JSC$19649_streamPos_++}u=!1}u=!u}if(u)return null;switch(l.state_){case 6:H("stream already broken");break;case 0:G[q]==="["?(l.state_=1,q++,l.JSC$19649_streamPos_++):H("unexpected input token");break;case 1:G[q]==="["?(l.state_=2,Z()):G[q]===","||G.slice(q,q+5)=="null,"?l.state_=3:G[q]==="]"?(l.state_=5,q++,l.JSC$19649_streamPos_++):H("unexpected input token");break;case 2:u=l.jsonStreamParser_.parse(G.substring(q));
Q(u);l.jsonStreamParser_.done()?(l.state_=3,u=l.jsonStreamParser_.JSC$11488_buffer_,l.JSC$19649_streamPos_+=G.length-q-u.length,G=u,q=0):(l.JSC$19649_streamPos_+=G.length-q,q=G.length);break;case 3:G[q]===","||G.slice(q,q+5)=="null,"?(l.state_=4,Z(),l.jsonStreamParser_.parse("["),q+=G[q]===","?1:5,l.JSC$19649_streamPos_++):G[q]==="]"&&(l.state_=5,q++,l.JSC$19649_streamPos_++);break;case 4:u=l.jsonStreamParser_.parse(G.substring(q));p(u);l.jsonStreamParser_.done()?(l.state_=5,u=l.jsonStreamParser_.JSC$11488_buffer_,
l.JSC$19649_streamPos_+=G.length-q-u.length,G=u,q=0):(l.JSC$19649_streamPos_+=G.length-q,q=G.length);break;case 5:H("extra input after stream end")}}return l.result_.length>0?(G=l.result_,l.result_=[],G):null};var zeo=function(G){this.JSC$19652_xhr_=G;this.JSC$19652_parser_=null;this.status_=this.JSC$19652_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19652_textDecoder_=null;this.JSC$19652_eventHandler_=new _.en(this);this.JSC$19652_eventHandler_.listen(this.JSC$19652_xhr_,"readystatechange",this.JSC$19654_readyStateChangeHandler_)},w2=function(G,H){G.status_!=H&&(G.status_=H,G.statusHandler_&&G.statusHandler_())},Kr8=function(G){G.JSC$19652_eventHandler_.removeAll();
if(G.JSC$19652_xhr_){var H=G.JSC$19652_xhr_;G.JSC$19652_xhr_=null;H.abort();H.dispose()}};
zeo.prototype.getStatus=function(){return this.status_};
zeo.prototype.JSC$19654_readyStateChangeHandler_=function(G){G=G.target;try{if(G==this.JSC$19652_xhr_)a:{var H=_.Mn(this.JSC$19652_xhr_),Z=this.JSC$19652_xhr_.JSC$9805_lastErrorCode_,Q=this.JSC$19652_xhr_.getStatus(),p=this.JSC$19652_xhr_.getResponseText();G=[];if(this.JSC$19652_xhr_.getResponse()instanceof Array){var l=this.JSC$19652_xhr_.getResponse();l.length>0&&l[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,G=l)}if(!(H<3||H==3&&!p&&G.length==0))if(Q=Q==200||Q==206,H==4&&(Z==8?w2(this,
7):Z==7?w2(this,8):Q||w2(this,3)),this.JSC$19652_parser_||(this.JSC$19652_parser_=cQL(this.JSC$19652_xhr_),this.JSC$19652_parser_==null&&w2(this,5)),this.status_>2)Kr8(this);else{if(G.length>this.JSC$19652_pos_){var q=G.length;Z=[];try{if(this.JSC$19652_parser_.acceptsBinaryInput())for(var u=0;u<q;u++){var B=this.JSC$19652_parser_.parse(Array.from(G[u]));B&&(Z=Z.concat(B))}else{B="";if(!this.JSC$19652_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("pk");this.JSC$19652_textDecoder_=
new TextDecoder}for(u=0;u<q;u++)B+=this.JSC$19652_textDecoder_.decode(G[u],{stream:H==4&&u==q-1});Z=this.JSC$19652_parser_.parse(B)}G.splice(0,q);Z&&this.dataHandler_(Z)}catch(D){w2(this,5);Kr8(this);break a}}else if(p.length>this.JSC$19652_pos_){u=p.slice(this.JSC$19652_pos_);this.JSC$19652_pos_=p.length;try{var t=this.JSC$19652_parser_.parse(u);t!=null&&this.dataHandler_&&this.dataHandler_(t)}catch(D){w2(this,5);Kr8(this);break a}}H==4?(p.length!=0||this.hasStreamingResponseData_?w2(this,2):w2(this,
4),Kr8(this)):w2(this,1)}}}catch(D){w2(this,6),Kr8(this)}};var MMk=function(G){G=this.xhrReader_=G;var H=(0,_.Cu)(this.onData_,this);G.dataHandler_=H;G=this.xhrReader_;H=(0,_.Cu)(this.onStatusChange_,this);G.statusHandler_=H;this.JSC$19656_callbackMap_={};this.callbackOnceMap_={}};
_.g=MMk.prototype;_.g.on=function(G,H){var Z=this.JSC$19656_callbackMap_[G];Z||(Z=[],this.JSC$19656_callbackMap_[G]=Z);Z.push(H);return this};
_.g.addListener=function(G,H){this.on(G,H);return this};
_.g.removeListener=function(G,H){var Z=this.JSC$19656_callbackMap_[G];Z&&_.ou(Z,H);(G=this.callbackOnceMap_[G])&&_.ou(G,H);return this};
_.g.once=function(G,H){var Z=this.callbackOnceMap_[G];Z||(Z=[],this.callbackOnceMap_[G]=Z);Z.push(H);return this};
_.g.onData_=function(G){var H=this.JSC$19656_callbackMap_.data;H&&jB6(G,H);(H=this.callbackOnceMap_.data)&&jB6(G,H);this.callbackOnceMap_.data=[]};
var jB6=function(G,H){for(var Z={},Q=0;Q<G.length;Z={message$jscomp$1008:void 0},Q++)Z.message$jscomp$1008=G[Q],H.forEach(function(p){return function(l){try{l(p.message$jscomp$1008)}catch(q){}}}(Z))};
MMk.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:P2m(this,"readable");break;case 5:case 6:case 4:case 7:case 3:P2m(this,"error");break;case 8:P2m(this,"close");break;case 2:P2m(this,"end")}};
var P2m=function(G,H){var Z=G.JSC$19656_callbackMap_[H];Z&&Z.forEach(function(Q){try{Q()}catch(p){}});
(Z=G.callbackOnceMap_[H])&&Z.forEach(function(Q){Q()});
G.callbackOnceMap_[H]=[]};var rOL=function(){var G={format:"jspb"};G=G===void 0?{}:G;this.suppressCorsPreflight=G.suppressCorsPreflight||_.GF("suppressCorsPreflight",G)||!1;this.withCredentials=G.withCredentials||_.GF("withCredentials",G)||!1;this.streamInterceptors=G.streamInterceptors||[];this.unaryInterceptors=G.unaryInterceptors||[];this.workerScope=G.workerScope;this.chunkedServerStreaming=G.useFetchDownloadStreams||!1},C2t=function(G,H,Z,Q,p,l){l=l===void 0?{}:l;
var q=H.substring(0,H.length-p.name.length),u,B=(u=l)==null?void 0:u.signal;return wKh(function(t){return new Promise(function(D,d){if(B==null?0:B.aborted){var e=new _.WQ(1,"Aborted");e.cause=B.reason;d(e)}else{var n={},c=hej(G,t,q);c.on("error",function(W){return void d(W)});
c.on("metadata",function(W){n=W});
c.on("data",function(W){var M=n;M=M===void 0?{}:M;D(new oqt(W,M))});
B&&B.addEventListener("abort",function(){c.cancel();var W=new _.WQ(1,"Aborted");W.cause=B.reason;d(W)})}})},G.unaryInterceptors).call(G,mOm(p,Z,Q)).then(function(t){return t.responseMessage})},ito=function(G,H,Z,Q,p,l){l=l===void 0?{}:l;
return C2t(G,H,Z,Q,p,l)};
rOL.prototype.serverStreaming=function(G,H,Z,Q){var p=this,l=G.substring(0,G.length-Q.name.length);return Ota(function(q){var u=q.methodDescriptor,B=q.getMetadata(),t=ayD(p,!1);B=yOD(p,B,t,l+u.getName());var D=oh8(t,u.responseDeserializeFn,!0);q=u.requestSerializeFn(q.requestMessage);t.send(B,"POST",q);return D},this.streamInterceptors).call(this,mOm(Q,H,Z))};
var hej=function(G,H,Z){var Q=H.methodDescriptor,p=H.getMetadata(),l=ayD(G,!0);G=yOD(G,p,l,Z+Q.getName());Z=oh8(l,Q.responseDeserializeFn,!1);dds(Z,p["X-Goog-Encode-Response-If-Executable"]==="base64");H=Q.requestSerializeFn(H.requestMessage);l.send(G,"POST",H);return Z},ayD=function(G,H){H=G.chunkedServerStreaming&&!H;
return G.workerScope||H?new _.KK(new nhc({worker:G.workerScope,streamBinaryChunks:H})):new _.KK},yOD=function(G,H,Z,Q){H["Content-Type"]="application/json+protobuf";
H["X-User-Agent"]="grpc-web-javascript/0.1";var p=H.Authorization;if(p&&lyA.has(p.split(" ")[0])||G.withCredentials)Z.JSC$9805_withCredentials_=!0;if(G.suppressCorsPreflight)Q=Tao(Q,"$httpHeaders",H);else for(G=_.I(Object.keys(H)),p=G.next();!p.done;p=G.next())p=p.value,Z.headers.set(p,H[p]);return Q},oh8=function(G,H,Z){if(Z){Z=new zeo(G);
var Q=new MMk(Z)}return new S4j({xhr:G,nodeReadableStream:Q},H)},Ota=function(G,H){return H.reduce(function(Z,Q){return function(p){return Q.intercept(p,Z)}},G)},wKh=function(G,H){return H.reduce(function(Z,Q){return function(p){return Q.intercept(p,Z)}},G)};var mdq=function(G){this.client_=new rOL;this.hostname_=G==void 0?G:G.replace(/\/+$/,"")};
_.g=mdq.prototype;_.g.JSC$19674_depositGoogleCredential=function(G,H,Z){return ito(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",G,H||{},AAs,Z)};
_.g.deleteLink=function(G,H,Z){return ito(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",G,H||{},RAs,Z)};
_.g.JSC$19674_finishOAuth=function(G,H,Z){return ito(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",G,H||{},L18,Z)};
_.g.getLink=function(G,H,Z){return ito(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",G,H||{},EqL,Z)};
_.g.startLinkingSession=function(G,H,Z){return ito(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",G,H||{},pKk,Z)};var Udj=[0,_.aE,1,FNo,[0,_.RE,[0,_.oE,-1]],[0,Yac],[0,_.Ey,-1],[0,Yac]];var ReL=function(){this.storage=new Map},AOi=function(G,H,Z,Q,p){if(!G.storage.has(H))return null;
G=_.I(G.storage.get(H));for(H=G.next();!H.done;H=G.next())if(H=H.value,!p||H.linkName===p)if(Z&&H.scopes&&Na8(H.scopes,Z)||Q&&H.capabilities&&Na8(H.capabilities,Q))return H;return null},xdL=function(G,H,Z){if(!Z)G.storage.delete(H);
else if(G.storage.has(H)){var Q=G.storage.get(H).filter(function(p){return p.linkName!==Z});
Q.length>0?G.storage.set(H,Q):G.storage.delete(H)}},Na8=function(G,H){H=_.I(H);
for(var Z=H.next();!Z.done;Z=H.next())if(!G.has(Z.value))return!1;return!0};var Lrt=function(){var G=_.xI("LINK_GAL_DOMAIN");this.alsDomain1p=_.xI("LINK_GAL_DOMAIN");this.alsDomain3p=G;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},Ehi=function(G,H){G.apiKey=H;
return G};
Lrt.prototype.build=function(){var G={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("qk");G.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("rk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("sk");G.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(G.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)G.apiKey=
this.apiKey,G.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("tk");G.oauthToken=this.oauthToken;G.alsDomain=this.alsDomain3p}G.clientXd3=this.clientXd3;G.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(G.authUser=this.authUser);this.bucket!==void 0&&(G.bucket=this.bucket);this.completionUrl!==void 0&&(G.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(G.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(G.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(G.locale=this.locale);G.loggerType=this.loggerType;G.clientEnvironment=this.clientEnvironment;G.colorScheme=this.colorScheme;G.showCloseOption=this.showCloseOption;return G};var Dj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Dj,_.Iy);var Y4j=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Y4j,_.Iy);var Fri=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Fri,_.Iy);var eN=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(eN,_.Iy);var bts=function(G){return _.V8(G,1)};var Gsc=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Gsc,_.Iy);var MQq=_.cO(Gsc),dL=[1,2,3,4,5];var vVA=function(G){try{return MQq(G)}catch(H){return null}},HFD=function(){},WG6=function(G,H){switch(_.B4(H,dL)){case 4:return(H=_.c4(H,Fri,4,dL))&&G.logStateTransition(_.V8(H,1)),!0;
case 5:return(H=_.c4(H,Y4j,5,dL))&&G.logInternalEvent(_.V8(H,1)),!0}return!1},j0o=function(G){switch(G){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Lw(G)}};var Tba=function(G,H){var Z=this;this.validator=G;this.messageListener=H;this.dismissCallback=function(){s$A(Z,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19703_receiveMessage=function(Q){Q.type==="message"&&(Q=Q.event_,Q!==null&&(new URL(Z.iframe.src)).origin===Q.origin&&Z.validator(Q.data,Q.origin)&&!Z.messageListener(Q.data)&&(Z.JSC$19703_resolveCb!==void 0&&Z.JSC$19703_resolveCb(Q.data),ZFm(Z)))}},KGm=function(G,H,Z){G.uiHandler!==void 0&&s$A(G,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(Q,p){G.JSC$19703_resolveCb=Q;G.JSC$19703_rejectCb=p;G.iframe=document.createElement("iframe");_.bI(G.iframe,H);G.uiHandler=Z.displayContent(G.iframe,G.dismissCallback);_.tt(window,"message",G.JSC$19703_receiveMessage,!1,G)})},s$A=function(G,H){G.JSC$19703_rejectCb!==void 0&&G.JSC$19703_rejectCb(H);
ZFm(G)},ZFm=function(G){G.uiHandler!==void 0&&G.uiHandler.hideContent();
_.VX(window,"message",G.JSC$19703_receiveMessage,!1,G);G.JSC$19703_resolveCb=void 0;G.JSC$19703_rejectCb=void 0;G.uiHandler=void 0;G.iframe=void 0};var Q$A=function(G){if(G===2){var H;G=((H=window)==null?0:H.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return G},zh6=function(G){G=Q$A(G);
switch(G){case 0:return"light";case 1:return"dark";default:_.Lw(G)}};var fo6=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),pZq=function(G,H){this.JSC$19715_linkingSession=G;this.noticeConfig=H;this.displayInfoMap=new Map;var Z=new Map;if(_.IE(this.JSC$19715_linkingSession,bVa,7))for(G=_.dt(this.JSC$19715_linkingSession,bVa,7),G=_.JR(G,F1q,1,_.tR()),G=_.I(G),H=G.next();!H.done;H=G.next())H=H.value,Z.set(_.V8(H,1),_.fkj(_.dt(H,_.oBf,3)));if(Z.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){H=this.noticeConfig.enabledDataUsageNoticeUis;G=H.has(0)?Z.get(1):void 0;H=H.has(1)?Z.get(2):void 0;Z=G!==void 0&&H!==void 0?Z.get(3):void 0;var Q=this.noticeConfig.nestedOrigins;var p=new Gsc;var l=new Dj;p=_.vO(p,2,dL,l);l=new Gsc;var q=new Dj;l=_.vO(l,3,dL,q);q=[];G!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:G,lastEvent:p,nestedOrigins:Q}]),q.push({trustedUrl:G,lastEvent:p,nestedOrigins:Q}));H!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:H,lastEvent:l,nestedOrigins:Q}]),q.push({trustedUrl:H,lastEvent:l,nestedOrigins:Q}));Z!==void 0?this.displayInfoMap.set(3,[{trustedUrl:Z,lastEvent:l,nestedOrigins:Q}]):this.displayInfoMap.set(3,q)}};var lRj=function(G){var H=new ReL;this.galService=G;this.galCache=H};
lRj.prototype.getLink=function(G){var H=G.serviceId;var Z=G.scopes;var Q=G.capabilities;var p=G.linkName;var l=this,q;return _.S(function(u){if(Q!==void 0&&Z!==void 0)throw Error("uk");q=AOi(l.galCache,H,Z,Q,p);return q!==null?u.return(q):u.return(l.galService.getLink({serviceId:H,sessionId:Math.floor(Math.random()*2147483648),scopes:Z,capabilities:Q,linkName:p}).then(function(B){B=Clt(B);var t=l.galCache;t.storage.has(H)?t.storage.get(H).push(B):t.storage.set(H,[B]);return B}))})};
lRj.prototype.deleteLink=function(G,H,Z){var Q=this;return _.S(function(p){xdL(Q.galCache,G,Z);return p.return(Q.galService.deleteLink({serviceId:G,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:H,linkName:Z}).then(function(){return!0}))})};var IRt=function(G,H){var Z=this;this.validator=G;this.msgHandler=H;this.closedPopupTimeout=this.JSC$19737_rejectCb=this.JSC$19737_resolveCb=this.popup=null;this.JSC$19737_receiveMessage=function(Q){if(Q!==null&&(Q=Q.event_,Q.source===Z.popup)){var p=Q.data;if(Z.validator(p,Q.origin)){var l;(l=Z.msgHandler)!=null&&l.call(Z,p)||(Z.JSC$19737_resolveCb!==null&&Z.JSC$19737_resolveCb(p),gxm(Z))}}}};
IRt.prototype.open=function(G,H){var Z=this;this.popup!==null&&qsc(this);return new Promise(function(Q,p){Z.JSC$19737_resolveCb=Q;Z.JSC$19737_rejectCb=p;Z.popup=_.Hg(window,G,"",H);_.tt(window,"message",Z.JSC$19737_receiveMessage,!1,Z);SsD(Z)})};
var qsc=function(G,H){G.JSC$19737_rejectCb!==null&&G.JSC$19737_rejectCb(H);gxm(G)},gxm=function(G){G.closedPopupTimeout&&(G.closedPopupTimeout.cancel(),G.closedPopupTimeout=null);
G.popup&&G.popup.close();_.VX(window,"message",G.JSC$19737_receiveMessage,!1,G);G.popup=null;G.JSC$19737_resolveCb=null;G.JSC$19737_rejectCb=null},SsD=function(G){G.closedPopupTimeout=_.re2(100).then(function(){G.popup?G.popup.closed?uvi(G):SsD(G):qsc(G,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},uvi=function(G){G.closedPopupTimeout=_.re2(100).then(function(){qsc(G,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var B5s=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),JSk=function(G,H,Z,Q,p,l,q,u,B,t){var D=this;this.serviceId=G;this.sessionId=H;this.galService=Z;this.oauthDetails=Q;this.galLogger=p;this.interactionMode=l;this.redirectServiceUrl=q;this.consentLanguageKeys=u;this.dynamicUrlParameters=B;this.partnerConfigMinReadTimestamp=t;this.started=!1;this.JSC$19743_dataValidator=function(d,
e){var n=B5s.has(e);n||D.redirectServiceUrl===void 0||(n=D.redirectServiceUrl===e);return n?d.sentinel==="gdi":!1}};
JSk.prototype.complete=function(){var G=this,H;return _.S(function(Z){if(G.interactionMode!==1)return Z.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=Ve.getRedirectStateFromUri();return H===null?Z.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):Z.return(tLo(G,H))})};
JSk.prototype.start=function(){var G=this,H;return _.S(function(Z){if(G.started)return Z.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.nY(G.oauthDetails,1))return Z.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(G.interactionMode===1)return Ve.setLocation(_.nY(G.oauthDetails,1)),Z.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));G.started=!0;G.galLogger.logStateTransition(5);
H=Ve.getPostMessagePopup(G.JSC$19743_dataValidator);return Z.return(H.open(_.nY(G.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(Q){G.started=!1;var p=G.galLogger;if((Q==null?void 0:Q.error)!==void 0)throw p.logInternalEvent(59),Error("vk");if((Q==null?void 0:Q.redirect_state)===void 0)throw p.logInternalEvent(131),Error("wk");return tLo(G,Q.redirect_state)}).catch(function(Q){G.started=
!1;
return Q.errorCode!==void 0?{statusCode:Q.errorCode,statusMessage:Q.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var tLo=function(G,H){return _.S(function(Z){return Z.return(ksa(G.galService,{serviceId:G.serviceId,sessionId:G.sessionId,dynamicUrlParameters:G.dynamicUrlParameters,redirectState:H,consentLanguageKeys:G.consentLanguageKeys,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp}).then(function(Q){var p={statusCode:1,link:Clt(Q.getLink())};rvL(_.SD(Q,3))!==void 0&&(p.callerState=rvL(_.SD(Q,3)));G.galLogger.logInternalEvent(134);return p}))})},Ve={getPostMessagePopup:function(G){return new IRt(G)},
getRedirectStateFromUri:function(){var G=_.HS(Ve.getLocation()).fragment_;return(new _.pp(G)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(G){_.d_j(window.location,_.m0(G))},
createOAuthFlow:function(G,H){return new JSk(G.serviceId,G.sessionId,G.galService,H,G.galLogger,G.interactionMode,G.redirectServiceUrl,G.consentLanguageKeys,G.dynamicUrlParameters,G.partnerConfigMinReadTimestamp)}};var DoA=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(DoA,_.Iy);var do8=_.cO(DoA);var ebk=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),nxa=function(G,H,Z,Q,p,l,q,u,B){var t=this;this.serviceId=G;this.sessionId=H;this.galService=Z;this.gsiWebFlowDetails=Q;this.colorScheme=p;this.showCloseOption=l;this.galLogger=q;this.interactionMode=u;this.redirectServiceUrl=B;this.started=!1;this.JSC$19755_dataValidator=function(D,d){var e=ebk.has(d);e||t.redirectServiceUrl===
void 0||(e=t.redirectServiceUrl===d);return e?D.sentinel==="gal":!1};
this.logEventProcessor=function(D){return D.result?(D=vVA(D.result))?WG6(t.galLogger,D):!1:!1}};
nxa.prototype.complete=function(){var G=this,H,Z;return _.S(function(Q){if(G.interactionMode!==1)return Q.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=$6.getRedirectStateFromUri();if(H===void 0)return G.galLogger.JSC$19695_logErrorEvent(131),Q.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return Z=VLi(G,H),Q.return($om(G,Z))}catch(p){return Q.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
nxa.prototype.start=function(){var G=this,H;return _.S(function(Z){if(G.started)return Z.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.nY(G.gsiWebFlowDetails,1))return Z.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(G.interactionMode===1)return $6.setLocation(XZo(G,_.nY(G.gsiWebFlowDetails,1))),Z.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
G.started=!0;H=$6.getPostMessagePopup(G.JSC$19755_dataValidator,G.logEventProcessor);return Z.return(H.open(XZo(G,_.nY(G.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(Q){G.started=!1;if((Q==null?void 0:Q.result)===void 0)throw G.galLogger.JSC$19695_logErrorEvent(131),Error("wk");Q=VLi(G,Q.result);return $om(G,Q)}).catch(function(Q){G.started=!1;
return Q.errorCode!==void 0?{statusCode:Q.errorCode,statusMessage:Q.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var XZo=function(G,H){G=["result_channel",G.interactionMode===1?"2":"1","color_scheme",zh6(G.colorScheme),"show_close_option",G.showCloseOption];return s3m(H,G)},$om=function(G,H){if(H!==null&&_.IE(H,eN,2)){var Z,Q=H==null?void 0:(Z=_.dt(H,eN,2))==null?void 0:_.V8(Z,2);
Q&&G.galLogger.JSC$19695_logErrorEvent(j0o(Q));return bts(_.dt(H,eN,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 G.galService.getLink({serviceId:G.serviceId,sessionId:G.sessionId,consistencyKey:_.nY(H,1)}).then(function(p){p=Clt(p);G.galLogger.logInternalEvent(134);return{statusCode:1,link:p}})},VLi=function(G,H){H=do8(H);
if(!_.IE(H,eN,2)&&_.nY(H,1)==="")throw G.galLogger.JSC$19695_logErrorEvent(5),Error("xk");return H},$6={getPostMessagePopup:function(G,H){return new IRt(G,H)},
getRedirectStateFromUri:function(){return _.sv(_.HS($6.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(G){_.d_j(window.location,_.m0(G))},
createStreamlinedFlow:function(G,H){return new nxa(G.serviceId,G.sessionId,G.galService,H,G.colorScheme,G.showCloseOption,G.galLogger,G.interactionMode,G.redirectServiceUrl)}};var FGo=function(){var G=_.mm2("GAL");this.storage=G?new _.i0(G):null};
FGo.prototype.getSession=function(G){if(this.storage!==null)try{var H=this.storage.get("SAVED_SESSION");if(H===void 0)return null;if(H.serviceId===G)return H}catch(Z){}return null};var cSA=function(){};
_.T(cSA,HFD);cSA.prototype.logStateTransition=function(){};
cSA.prototype.logInternalEvent=function(){};
cSA.prototype.JSC$19695_logErrorEvent=function(){};var T5h=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(T5h,_.Iy);T5h.prototype.getCompletionUrl=function(){return _.nY(this,15)};var hx=function(G,H,Z,Q,p,l){this.serviceId=G;this.environment=H;this.sessionId=Z;this.colorSchemeSelected=Q;this.colorThemeDisplayed=p;this.JSC$19768_transport=l;this.currentState=1};
_.T(hx,HFD);hx.prototype.logStateTransition=function(G){var H=fRA(this);H=_.ed(H,3,this.currentState);H=_.ed(H,1,G);this.currentState=G;G=IAL(1);this.dispatch(H,G)};
hx.prototype.logInternalEvent=function(G){G=IAL(G);this.dispatch(fRA(this),G)};
hx.prototype.JSC$19695_logErrorEvent=function(G){var H=fRA(this);H=_.ed(H,1,10);G=IAL(G);this.dispatch(H,G)};
var fRA=function(G){var H=new T5h;H=_.ed(H,1,G.currentState);H=_.ha(H,7,G.serviceId);var Z,Q;var p=((Z=window)==null?0:(Q=Z.location)==null?0:Q.href)?_.HS(window.location.href).JSC$10041_domain_:"NO_PACKAGE_NAME";Z=_.ha(H,8,p);Z=_.ed(Z,6,G.environment);Z=_.ha(Z,5,"100");Z=_.ed(Z,11,G.colorSchemeSelected);return _.ed(Z,12,G.colorThemeDisplayed)};
hx.prototype.dispatch=function(G,H){H===void 0&&(H=new _.qn);var Z=H;G=G.serialize();Z=_.ha(Z,8,G);_.PW(Z,12,this.sessionId);this.JSC$19768_transport.dispatch(H)};var vxo=function(G,H){this.loggerType=G;this.sessionIndex=H!=null?H:0},WLk;
vxo.prototype.create=function(G,H,Z,Q,p){switch(this.loggerType){case 0:return new cSA;case 1:return WLk||(WLk=(new _.c7(555,this.sessionIndex.toString())).build()),new hx(G,H,Z,Q,p,WLk);default:_.Lw(this.loggerType,"unknown logger type")}};var Xd=[6,2,3,1],QSo=new Map([[4,1],[1,6],[2,2],[3,3]]),yQt={statusCode:7,statusMessage:"Failed to create flow object"},EV8=function(G,H,Z,Q,p,l,q,u,B,t){this.serviceId=G;this.sessionId=H;this.config=Z;this.galService=Q;this.JSC$19775_linkingSession=p;this.googleScopes=l;this.callerState=q;this.consentLanguageKeys=u;this.dynamicUrlParameters=B;this.partnerConfigMinReadTimestamp=t;this.currentFlow=0;Q=this.JSC$19775_linkingSession;p=new Set;_.IE(Q,Nb8,1)&&p.add(1);_.IE(Q,Htc,2)&&_.IE(Q,AQ6,6)&&p.add(2);
_.IE(Q,GJa,3)&&_.IE(Q,AQ6,6)&&p.add(3);_.IE(Q,Ye6,4)&&p.add(6);this.supportedFlows=p;Q=Z.loggerType;p=Z.clientEnvironment;a:{l=Z.colorScheme;switch(l){case 0:l=1;break a;case 1:l=2;break a;case 2:l=3;break a;default:_.Lw(l)}l=void 0}a:{q=Z.colorScheme;q=Q$A(q);switch(q){case 0:q=1;break a;case 1:q=2;break a;default:_.Lw(q)}q=void 0}this.galLogger=(new vxo(Q,Z.authUser)).create(G,p,H,l,q)},KLD=function(G){return new Promise(function(H){var Z,Q,p,l,q,u,B,t,D,d;
return _.S(function(e){switch(e.nextAddress){case 1:Z=xii(G.currentFlow,G.supportedFlows),Q=!1,p=new pZq(G.JSC$19775_linkingSession,G.config.dataUsageNoticeConfig);case 2:if(Z===void 0){e.jumpTo(4);break}_.XV(e,5);var n=p,c=Z,W=void 0;Q?c===1&&(W=n.displayInfoMap.get(2)):c===2||c===3?W=n.displayInfoMap.get(1):c===1&&(W=n.displayInfoMap.get(3));l=W?W:[];q=G.consentLanguageKeys;u=_.I(l);B=u.next();case 7:if(B.done)return G.currentFlow=Z,e.yield(mit(zbk(G,q)),11);t=B.value;return e.yield(Pl8(t,G.config.dataUsageNoticeConfig.uiAdapter,
G.config.colorScheme,G.galLogger),10);case 10:D=e.yieldResult;if(D.statusCode!==1)return bIc(G.serviceId),G.currentFlow=0,H(nZ({statusCode:D.statusCode,statusMessage:D.statusMessage},G.callerState)),e.return();D.consentLanguageKeys!==void 0&&(q=D.consentLanguageKeys);B=u.next();e.jumpTo(7);break;case 11:d=e.yieldResult;if(d.statusCode!==10)return d.statusCode!==6&&(bIc(G.serviceId),G.currentFlow=0),d.statusCode!==1&&G.callerState!==void 0&&(d.callerState=G.callerState),H(d),e.return();_.Za(e,6);break;
case 5:_.Wg(e);case 6:Z=xii(G.currentFlow,G.supportedFlows);Q=!0;e.jumpTo(2);break;case 4:bIc(G.serviceId),G.currentFlow=0,H(nZ({statusCode:12,statusMessage:"Linking failed"},G.callerState)),_.K0(e)}})})},sSq=function(G,H,Z){G.currentFlow=H;
return Uiq(zbk(G,Z)).then(function(Q){return Q.statusCode===10&&G.config.interactionMode===1&&xii(G.currentFlow,G.supportedFlows)!==void 0?KLD(G):Q})},zbk=function(G,H){return{flowParams:{serviceId:G.serviceId,
sessionId:G.sessionId,galService:G.galService,galLogger:G.galLogger,interactionMode:G.config.interactionMode,redirectServiceUrl:G.config.redirectServiceUrl,colorScheme:G.config.colorScheme,consentLanguageKeys:H,dynamicUrlParameters:G.dynamicUrlParameters,showCloseOption:G.config.showCloseOption,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp},currentFlow:G.currentFlow,config:G.config,session:G.JSC$19775_linkingSession,googleScopes:G.googleScopes,callerState:G.callerState}};var lqm=function(G,H){this.config=G;this.galService=H.getService();this.JSC$19788_galRepository=H.JSC$19806_galRepository};
lqm.prototype.getLink=function(G,H){return ML8(this,G,H)};
var ML8=function(G,H,Z){return G.JSC$19788_galRepository.getLink({serviceId:H,scopes:void 0,capabilities:void 0,linkName:Z}).then(function(Q){return{statusCode:1,link:Q}}).catch(function(Q){return{statusCode:pVi(Q.code),
statusMessage:Q.message}})};
lqm.prototype.deleteLink=function(G,H){return this.JSC$19788_galRepository.deleteLink(G,this.config.accountLinkingEntryPoint,H).then(function(){return{statusCode:1}}).catch(function(Z){return{statusCode:pVi(Z.code),
statusMessage:Z.message}})};
lqm.prototype.startLinkingSession=function(G){var H=G.serviceId;var Z=G.sessionId;return YOo({serviceId:H,sessionId:Z!==void 0?Z:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:G.loginHint,callerState:G.callerState,consentLanguageKeys:G.consentLanguageKeys,linkName:G.linkName,dynamicUrlParameters:G.dynamicUrlParameters,partnerConfigMinReadTimestamp:G.partnerConfigMinReadTimestamp})};var CL=function(G,H,Z,Q,p,l,q){this.apiKey=H;this.authUser=Z;this.oauthToken=Q;this.bucket=p;this.locale=l;this.galSdkEventHandler=q;if(Q===void 0){if(H===void 0)throw Error("yk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new mdq(G)};
CL.prototype.deleteLink=function(G){var H=G.serviceId;var Z=G.sessionId;var Q=G.accountLinkingEntryPoint;var p=G.linkName;var l=this,q;return _.S(function(u){var B=(new KL).setHeader(l.getHeader(Z));var t=j$o({serviceId:H,linkName:p});B=_.fq(B,2,t);q=_.fY(B,3,Q);return u.return(l.makeRequest(l.galServiceClient.deleteLink,q,[1,3],[2,4]))})};
var ksa=function(G,H){var Z=H.serviceId;var Q=H.sessionId;var p=H.dynamicUrlParameters;var l=H.redirectState;var q=H.consentLanguageKeys;var u=H.partnerConfigMinReadTimestamp;var B;return _.S(function(t){var D=(new jF).setHeader(G.getHeader(Q,p));D=_.jO(D,2,Z);B=_.jO(D,4,l);q!==void 0&&_.jO(B,5,q);u!==void 0&&_.fq(B,6,u);return t.return(G.makeRequest(G.galServiceClient.JSC$19674_finishOAuth,B,[1,3],[2,4]))})};
CL.prototype.getLink=function(G){var H=G.serviceId;var Z=G.sessionId;var Q=G.scopes;var p=G.capabilities;var l=G.consistencyKey;var q=G.linkName;var u=this,B;return _.S(function(t){var D=(new Pa).setHeader(u.getHeader(Z)),d=j$o({serviceId:H,scopes:Q,capabilities:p,linkName:q});B=_.fq(D,2,d);l!==void 0&&(D=iVA(),D=_.jO(D,2,l),_.fq(B,3,D));return t.return(u.makeRequest(u.galServiceClient.getLink,B,[1,3],[2,4]))})};
var Rhi=function(G,H){var Z=H.serviceId;var Q=H.sessionId;var p=H.googleScopes;var l=H.consistencyKey;var q;return _.S(function(u){var B=(new ML).setHeader(G.getHeader(Q));B=_.jO(B,2,Z);var t=Array.from(p.values());B=_.G4(B,3,t,_.$A);t=iVA();t=_.jO(t,2,l);q=_.fq(B,4,t);return u.return(G.makeRequest(G.galServiceClient.JSC$19674_depositGoogleCredential,q,[1,3],[2,4]))})};
CL.prototype.startLinkingSession=function(G){var H=G.serviceId;var Z=G.sessionId;var Q=G.scopes;var p=G.capabilities;var l=G.loginHint;var q=G.supportedFlows;var u=G.completionUrl;var B=G.usePingPong;var t=G.twoWayLinking;var D=G.accountLinkingEntryPoint;var d=G.callerState;var e=G.consentLanguageKeys;var n=G.googleScopes;var c=G.dataUsageNoticeConfig;var W=G.linkName;var M=G.dynamicUrlParameters;var r=G.partnerConfigMinReadTimestamp;var w=this,x,U;return _.S(function(R){if(p!==void 0&&Q!==void 0)throw Error("uk");
var L=(new QBk).setHeader(w.getHeader(Z,M));x=_.jO(L,2,H);W!==void 0&&_.jO(x,14,W);if(p!==void 0){L=x;var H3=Array.from(p.values());_.G4(L,5,H3,_.$A)}else Q!==void 0&&(L=x,H3=Array.from(Q.values()),_.G4(L,3,H3,_.$A));u!==void 0&&_.jO(x,6,u);B!==void 0&&_.DQ(x,15,B);q!==void 0&&(L=x,H3=Array.from(q.values()),_.G4(L,4,H3,_.pm));if(t!==void 0){if(t&&(!n||n.size===0))throw Error("zk");_.DQ(x,8,t)}D!==void 0&&_.fY(x,9,D);l!==void 0&&_.jO(x,13,l);d!==void 0&&(L=x,H3=(new TextEncoder).encode(d),_.HO(L,12,
_.Pd(H3,!1),_.jp()));e!==void 0&&_.jO(x,16,e);r!==void 0&&_.fq(x,18,r);if(c!==void 0&&c.size>0||n!==void 0&&n.size>0)U=new ZtD,n!==void 0&&n.size>0&&(L=U,H3=Array.from(n.values()),_.G4(L,1,H3,_.$A)),c!==void 0&&(c.has(0)&&_.y63(U,2,_.pm,1,_.lo),c.has(1)&&_.y63(U,2,_.pm,2,_.lo)),_.fq(x,17,U);return R.return(w.makeRequest(w.galServiceClient.startLinkingSession,x,[1],[2]))})};
CL.prototype.getMetadata=function(){var G=this,H,Z;return _.S(function(Q){H={};G.useFpa?(H["X-Goog-Api-Key"]=G.apiKey,H["X-Goog-AuthUser"]=G.authUser!==void 0?G.authUser.toString():"0",(Z=_.t9b([]))&&(H.Authorization=Z)):H.Authorization="Bearer "+G.oauthToken;G.locale&&(H["accept-language"]=G.locale);return Q.return(H)})};
CL.prototype.makeRequest=function(G,H,Z,Q){var p=this,l;return _.S(function(q){if(q.nextAddress==1)return q.yield(p.getMetadata(),2);l=q.yieldResult;PMh(p,Z);return q.return(G.bind(p.galServiceClient)(H,l).finally(function(){PMh(p,Q)}))})};
var PMh=function(G,H){G.galSdkEventHandler!==void 0&&H.forEach(function(Z){G.galSdkEventHandler.onEvent(Z)})};
CL.prototype.getHeader=function(G,H){var Z=new va;G=_.HO(Z,2,_.Ij(G),0);G=_.fY(G,5,3);H=_.G4(G,8,H,_.$A);this.bucket!==void 0&&_.jO(H,1,this.bucket);return H};
var j$o=function(G){var H=G.serviceId;var Z=G.scopes;var Q=G.capabilities;G=G.linkName;if(Q!==void 0&&Z!==void 0)throw Error("uk");var p=new hAa;H=_.jO(p,1,H);Q!==void 0?(Z=Array.from(Q.values()),_.G4(H,5,Z,_.$A)):Z!==void 0&&(Z=Array.from(Z.values()),_.G4(H,3,Z,_.$A));G!==void 0&&_.jO(H,6,G);return H};var gXc=function(G){this.galService=new CL(G.alsDomain,G.apiKey,G.authUser,G.oauthToken,G.bucket,G.locale,G.galSdkEventHandler);this.JSC$19806_galRepository=new lRj(this.galService)};
gXc.prototype.getService=function(){return this.galService};var rSL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(rSL,_.Iy);var wZj=function(G){var H=new rSL;return _.ed(H,1,G)};
rSL.prototype.setErrorMessage=function(G){return _.ha(this,2,G)};var hbh=[0,_.LY,_.y8,_.LY];var ik=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(ik,_.Iy);var CMo=[0,[1,2,3],_.N8,[0,_.J6G,_.Xfs,-1],_.N8,[0,E_c,-1],_.my];var iFc=[0,_.i6,1,_.LY,_.y8,-1,1,_.Ag,_.wm,_.LY,-1,CMo];var OFj=[0,_.LY,[0,_.Ag,_.wm,[0,_.y8]],_.Oy,[0,_.LY,-1]];var kt=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(kt,_.Iy);var aRs=[0,_.y8,_.LY,-2,_.i6,_.LY,_.i6,_.LY,-2,1,_.Oy];var ySL=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(ySL,_.Iy);var oxL=[0,_.i6];var moj=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(moj,_.Iy);var Uoa=[0,_.LY,OFj,oxL,aRs,iFc];var OOm=_.e7(moj,Uoa);var Rbo=[0,Udj];var RP6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(RP6,_.Iy);var N5j=[0,[1,3],bpi,_.LY,bpi];var Jx=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Jx,_.Iy);var ASo=[0,_.LY];var xos=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(xos,_.Iy);var tx=function(G){return _.c4(G,rSL,2,Ba)},LLA=function(G){var H=new xos;
return _.vO(H,2,Ba,G)},Ba=[1,
2];var Ex6=[0,Ba,_.N8,ASo,_.N8,hbh,_.RE,N5j,1,_.LY,Rbo];var Ysi=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Ysi,_.Iy);var bFh=function(G){var H=new Ysi;return _.vO(H,3,FLc,G)},FLc=[2,
3];var Gmh=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Gmh,_.Iy);var HsL=function(G,H){return _.fq(G,2,H)},sHL=function(G,H){return _.fq(G,8,H)},Zsk=function(G,H){return _.fq(G,3,H)};var QHL=[0,_.LY,Ex6,Uoa,_.b_,[0,[5,6,7],[0,_.LY,-2],[0,_.i6,_.LY,_.y8],[0,CMo],[0,_.y8,_.LY,-1,_.FC,_.LY],_.N8,[0,[0,_.i6],_.LY,-1],_.N8,[0,[3,4],_.LY,-1,_.N8,[0,[0,_.LY,_.Oy]],_.N8,[0,[0,[0,[1,2,3],_.N8,[0],_.N8,[0],_.N8,[0]]]]],_.N8,[0,_.LY]],_.b_,-1,[0,FLc,_.LY,_.N8,ASo,_.N8,hbh,_.RE,N5j,[0,Udj]]];var pec=_.e7(Gmh,QHL),l8m=_.V2(QHL);var glL=function(){_.wI.call(this)};
_.T(glL,_.wI);glL.prototype.init=function(){};
new glL;var I8h=_.CM(["data-"]),qLq=_.CM(["aria-"]),SLh=_.CM(["aria-"]),Om=function(G,H){this.isLatencyMeasurementExperiment=G===void 0?!1:G;this.enableDialogA11yFix=H===void 0?!1:H;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.sfw(_.Qf.location.href)},yHk=function(G,H){G.onConsentPrimitiveShownCallback=H},uwi=function(G,H){return G.overriddenIframeLoadTimeout?G.overriddenIframeLoadTimeout:H!==void 0?H:5E3},mEq=function(G){if(G.prewarmPromise!==void 0)return G.prewarmPromise;
G.prewarmPromise=new Promise(function(H,Z){ag(G,1);BSt(G,J$c(G,!0),tjc(G));G.iframe?G.prewarmChannel||kmh(G,G.iframe,H):Z(Error("Ak"))});
G.prewarmPromise.finally(function(){G.prewarmPromise=void 0});
return G.prewarmPromise};
Om.prototype.showPrimitive=function(){var G=this;if(this.consentPromise!==void 0)return this.consentPromise;var H=Date.now();DuL(this,H);this.consentPromise=new Promise(function(Z,Q){ag(G,0,H);var p=G.isDarkTheme();G.isLatencyMeasurementExperiment||G.initialLoadingStrategy===1||G.initialLoadingStrategy===2||(G.loadingBar||(G.loadingBar=uu8(getComputedStyle(document.body).direction==="rtl",p),G.loadingBar.style.position="fixed",G.loadingBar.style.zIndex="15000"),document.body.appendChild(G.loadingBar));
BSt(G,J$c(G),tjc(G));G.iframe?G.channel||duo(G,G.iframe,Z,Q):(eHL(G),Q(Error("Ak")))});
this.consentPromise.finally(function(){G.consentPromise=void 0});
return this.consentPromise};
var duo=function(G,H,Z,Q){var p,l;_.S(function(q){switch(q.nextAddress){case 1:ag(G,3);p=!1;setTimeout(function(){if(!p){eHL(G);nlt(G);Vjm(G);var u=wZj(7).setErrorMessage("Timeout connecting to iframe");Z(sHL(HsL(new Gmh,LLA(u)),bFh(u)))}},uwi(G,$uL(G)));
if(!G.prewarmPromise){q.jumpTo(2);break}_.XV(q,3);return q.yield(G.prewarmPromise,5);case 5:_.Za(q,2);break;case 3:_.Wg(q),l=wZj(4).setErrorMessage("Error while prewarming."),Z(sHL(HsL(new Gmh,LLA(l)),bFh(l)));case 2:G.prewarmChannel&&G.prewarmChannel.send(l8m(Zsk(new Gmh,G.consentPrimitiveRequest))),G.channel=_.b6({destination:G.win,iframe:H,origin:Xeh(G),channelName:"cpw",onEstablished:function(){p=!0;eHL(G);G.isLatencyMeasurementExperiment||(G.JSC$19835_previousBodyOverflow=document.body.style.overflow,
G.JSC$19835_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,G.JSC$19835_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",G.enableDialogA11yFix&&window.addEventListener("blur",G.focusChangeListener));var u=G.iframe;u.style.bottom="0";u.style.position="fixed";u.style.right="0";u.style.border="none";u.style.left="0";u.style.top=
"0";u.style.zIndex="5000";u.style.pointerEvents="";u.style.visibility="";G.initialLoadingStrategy===2||G.initialLoadingStrategy===3?ag(G,4):ag(G,6);var B;(B=G.onConsentPrimitiveShownCallback)==null||B.call(G)},
onMessage:function(u){u=pec(u.data);switch(_.V8(u,1)){case 1:nlt(G);var B=Buh(_.dt(u,_.nA,7));B&&(G.initialLoadingStrategy!==2&&G.initialLoadingStrategy!==3||ag(G,6,B),ag(G,5,B));if(B=Buh(_.dt(u,_.nA,6)))ag(G,7,B),ag(G,8);var t,D;((t=_.dt(u,xos,2))==null?void 0:_.B4(t,Ba))!==0&&((D=_.dt(u,Ysi,8))==null?void 0:_.B4(D,FLc))!==0||Q(Error("Bk"));Z(u);break;case 2:Vjm(G)}}}),_.K0(q)}})},kmh=function(G,H,Z){G.prewarmChannel=_.b6({destination:G.win,
iframe:H,origin:Xeh(G),channelName:"pwcp",onEstablished:function(){ag(G,2);Z()}})},Xeh=function(G){var H=_.PO(G.src).toString();
return H&&H.indexOf("://")<0&&H.indexOf("//")!==0?G.origin:_.sfw(H)},J$c=function(G,H){H=H===void 0?!1:H;
var Z,Q=new Map([["origin",G.origin],["hl",(Z=c$m(G))!=null?Z:null]]);H&&Q.set("pw","1");H=_.I([["cpr",G.consentPrimitiveRequest.serialize()]]);for(Z=H.next();!Z.done;Z=H.next()){var p=_.I(Z.value);Z=p.next().value;p=p.next().value;Q.set(Z,p)}G.isDarkTheme()&&Q.set("color_scheme","dark");return _.$r(G.src,Q)},eHL=function(G){G.isLatencyMeasurementExperiment||G.loadingBar&&document.body.removeChild(G.loadingBar)};
Om.prototype.getSrc=function(){var G=_.qY(this.origin),H;var Z=(H=_.dt(this.consentPrimitiveRequest,ySL,3))==null?void 0:_.k5(H,1);H="consent.google.com";Z=Z?"/u/"+encodeURIComponent(Z.toString()):"";(G==null?0:G.endsWith("youtube.com"))?H="consent.youtube.com":(G=G==null?void 0:G.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(H="consent.google."+((G[1]?"co.":"")+encodeURIComponent(G[2])));return _.j7("https://"+H+"/signedin"+Z+"/landing")};
var BSt=function(G,H,Z){G.iframe||(G.iframe=document.createElement("iframe"),G.iframe.style.width="100%",G.iframe.style.height="100%",Z!==112496729&&(G.iframe.style.colorScheme="auto"),G.isLatencyMeasurementExperiment&&(G.iframe.style.display="none"),_.bI(G.iframe,H),G.iframe.setAttribute("jsname","C5o1O"),TSq(G.iframe),document.body.appendChild(G.iframe))},TSq=function(G){G.style.bottom="-200vh";
G.style.position="fixed";G.style.right="-200vw";G.style.border="";G.style.left="";G.style.top="";G.style.zIndex="";G.style.pointerEvents="none";G.style.visibility="hidden"},nlt=function(G){G.iframe&&(G.isLatencyMeasurementExperiment||(G.JSC$19835_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=G.JSC$19835_previousHtmlOverscroll),G.JSC$19835_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=G.JSC$19835_previousBodyOverscroll),G.JSC$19835_previousBodyOverflow!==
void 0&&(document.body.style.overflow=G.JSC$19835_previousBodyOverflow),G.enableDialogA11yFix&&f8j(G,!1)),TSq(G.iframe))};
Om.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(f8j(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var f8j=function(G,H){var Z,Q,p=(Z=G.iframe)==null?void 0:(Q=Z.parentElement)==null?void 0:Q.children;if(p)for(Z=0;Z<p.length;Z++)Q=p[Z],Q!==G.iframe&&(H?(Q.hasAttribute("aria-hidden")&&_.q_([_.et(I8h)],Q,"data-old-aria-hidden",Q.getAttribute("aria-hidden")),_.q_([_.et(qLq)],Q,"aria-hidden","true")):(Q.removeAttribute("aria-hidden"),Q.hasAttribute("data-old-aria-hidden")&&(_.q_([_.et(SLh)],Q,"aria-hidden",Q.getAttribute("data-old-aria-hidden")),Q.removeAttribute("data-old-aria-hidden"))))},ag=function(G,
H,Z){var Q;
(Q=G.latencyCallback)==null||Q.call(G,{latencyType:H,timestampEpochMillis:Z!=null?Z:Date.now()})};var vlk=function(G,H,Z){Om.call(this,H,Z===void 0?!1:Z);this.consentPrimitiveRequest=G;G=c$m(this);_.t9L(G);this.src=this.getSrc();var Q;this.initialLoadingStrategy=(Q=_.dt(this.consentPrimitiveRequest,kt,4))==null?void 0:_.V8(Q,4)},WXL;
_.T(vlk,Om);var a_h=function(G){var H=_.V("enable_primitive_dialog_aria_hide_siblings");G={request:G,enableDialogA11yFix:H===void 0?!1:H};WXL||(WXL=new vlk(G.request,G.isLatencyMeasurementExperiment||_.V8(G.request,1)===2,G.enableDialogA11yFix));return WXL},c$m=function(G){var H;
return(H=_.dt(G.consentPrimitiveRequest,kt,4))==null?void 0:_.nY(H,1)},DuL=function(G,H){if(!_.IE(G.consentPrimitiveRequest,ik,5)){var Z=G.consentPrimitiveRequest,Q=new ik;
_.fq(Z,5,Q)}var p;if((p=_.dt(G.consentPrimitiveRequest,ik,5))==null||_.wdU(_.gm(p,8))==null){var l;(l=_.dt(G.consentPrimitiveRequest,ik,5))!=null&&_.PW(l,8,H)}},tjc=function(G){var H;
return(H=_.dt(G.consentPrimitiveRequest,ik,5))==null?void 0:_.k5(H,1)};
vlk.prototype.isDarkTheme=function(){var G;return((G=_.dt(this.consentPrimitiveRequest,kt,4))==null?void 0:_.V8(G,2))===2};
var $uL=function(G){var H;return((H=_.dt(G.consentPrimitiveRequest,kt,4))==null?void 0:_.k5(H,5))||void 0},Vjm=function(G){G.channel=void 0;
G.prewarmChannel=void 0;G.iframe&&(document.body.contains(G.iframe)&&document.body.removeChild(G.iframe),G.iframe=void 0);WXL=void 0},UEq=function(G){return Om.prototype.showPrimitive.call(G).then(function(H){return _.dt(H,xos,2)})};for(var yZ={},zH6=(yZ[64]="ma",yZ[73]="ogb",yZ[89]="cr",yZ[21]="test",yZ[0]="unkn",yZ[137]="con",yZ[155]="hl",yZ[78]="yt",yZ[171]="lp",yZ[172]="ap",yZ[177]="amo",yZ[178]="pqe",yZ[74]="gg",yZ[1]="gm",yZ[140]="am",yZ[193]="sc",yZ),KXD=_.I(Object.keys(zH6)),MjD=KXD.next();!MjD.done;MjD=KXD.next());var jH6=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(jH6,_.Iy);var PNc=[0,[2,3,4],_.LY,LNj,bpi,_.my];var r$o=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(r$o,_.Iy);var wec=_.e7(r$o,[0,_.Ey,_.y8,_.LY,_.y8,_.LY,PNc]);var hHs=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(hHs,_.Iy);hHs.prototype.getCommand=function(){return _.V8(this,1)};
var CNo=function(){var G=new hHs;return _.fY(G,1,0)};var isD=_.V2([0,_.Ey,_.y8,[0,_.LY,_.y8,-1]]);var Os6=new _.kf("s"),a8A=new _.kf("t"),y$h=new _.kf("u"),olq=new _.kf("v"),muj=function(G,H,Z){_.DA.call(this,Os6);this.mediaKey=G;this.photoUrl=H;this.photoSource=Z};
_.T(muj,_.DA);var UuL=function(){_.DA.call(this,a8A)};
_.T(UuL,_.DA);var RH6=function(G){G=G===void 0?!1:G;_.DA.call(this,y$h);this.isError=G};
_.T(RH6,_.DA);var NSi=function(){_.DA.call(this,olq)};
_.T(NSi,_.DA);var A$a=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,YLh=function(G){if(typeof G=="string"){if(G.charAt(0)==".")return xua(G.substr(1));if(G.charAt(0)=="["){var H=A$a.exec(G);G=G.indexOf("=")==-1?void 0:H[3];return LXk(H[1],G)}return El6(G)}return G},xua=function(G){return function(H){return H.getAttribute&&_.yX(H,G)}},LXk=function(G,H){return function(Z){return H!==void 0?Z.getAttribute&&Z.getAttribute(G)==H:Z.hasAttribute&&Z.hasAttribute(G)}},El6=function(G){G=G.toUpperCase();
return function(H){return(H=H.tagName)&&H.toUpperCase()==G}},FXA=function(){return!0};var og=function(G,H){this.JSC$19863_key_=G;this.JSC$19863_value_=H},bsm=function(G){throw Error("Ck`"+G.JSC$19863_key_);
},GeA=function(G,H){return new TypeError("Dk`"+H+"`"+G.JSC$19863_key_+"`"+G.JSC$19863_value_+"`"+typeof G.JSC$19863_value_)};
og.prototype.string=function(G){return arguments.length==0?HQq(this):sIi(this,G)};
var sIi=function(G,H){var Z;return(Z=ZQm(G))!=null?Z:H},HQq=function(G){var H=ZQm(G);
H===null&&bsm(G);return H},ZQm=function(G){var H=G.JSC$19863_value_;
if(H==null)return null;if(typeof H==="string")return H;throw GeA(G,"string");};
og.prototype.bool=function(G){if(arguments.length==0){var H=this.optionalBool();H===null&&bsm(this)}else{var Z;H=(Z=this.optionalBool())!=null?Z:G}return H};
og.prototype.optionalBool=function(){var G=this.JSC$19863_value_;if(G==null)return null;if(typeof G==="boolean")return G;if(typeof G==="string"){G=G.toLowerCase();if(G==="true"||G==="1")return!0;if(G==="false"||G==="0")return!1}throw GeA(this,"boolean");};
og.prototype.number=function(G){if(arguments.length==0){var H=QIs(this);H===null&&bsm(this)}else H=pNm(this,G);return H};
var pNm=function(G,H){var Z;return(Z=QIs(G))!=null?Z:H},QIs=function(G){var H=G.JSC$19863_value_;
if(H==null)return null;if(typeof H==="number")return H;if(typeof H==="string"){var Z=Number(H);if(!isNaN(Z)&&(Z!==0||H.trim().length!==0))return Z}throw GeA(G,"number");};
og.prototype.toString=function(){return HQq(this)};
og.prototype.enum=function(G,H){var Z=!0,Q=void 0,p;for(p in G){var l=G[p];Z&&(Z=!1,Q=typeof l==="number"?pNm(this,H):sIi(this,H));if(l==Q)return Q}JSON.stringify(G);return Q};
og.prototype.array=function(G){if(arguments.length==0){var H=lDo(this);H===null&&bsm(this);return H}H=lDo(this);return H==null?G:H};
var lDo=function(G){var H=G.JSC$19863_value_;if(H==null)return null;Array.isArray(H)||(typeof H!=="string"?H=[H]:(H=H.trim(),H=H==""?[]:H.split(",").map(function(Z){return Z.trim()})));
return g96(G,H)},g96=function(G,H){var Z=G.JSC$19863_key_+"[";
return Array.from(H,function(Q,p){return new og(Z+p+"]",Q)})};
og.prototype.object=function(G){var H=this.JSC$19863_value_;if(H==null)return G===void 0&&bsm(this),G;if(typeof H==="object"&&H.constructor===Object){G={};var Z=this.JSC$19863_key_+".",Q;for(Q in H)G[Q]=new og(Z+Q,H[Q]);return G}throw GeA(this,"object");};var mz=function(G){this.list_=IDL(G)},IDL=function(G){if(G instanceof mz)G=G.list_;
else if(G[0]instanceof mz){for(var H=new Set,Z=0;Z<G.length;Z++)for(var Q=_.I(G[Z].list_),p=Q.next();!p.done;p=Q.next())H.add(p.value);G=H}return[].concat(_.OP(G))};
_.g=mz.prototype;_.g.each=function(G,H,Z){((Z===void 0?0:Z)?Kl6:_.Zk)(this.list_,G,H);return this};
_.g.size=function(){return this.list_.length};
_.g.isEmpty=function(){return this.list_.length===0};
_.g.get=function(G){return this.list_[G]||null};
_.g.el=function(){return this.list_[0]||null};
_.g.map=function(G,H){return _.mT(this.list_,G,H)};
_.g.equals=function(G){return this===G||_.Ej(this.list_,G.list_)};
_.g.first=function(){return this.list_.length==0?null:new Um(this.list_[0])};
_.g.last=function(){return this.list_.length==0?null:new Um(this.list_[this.list_.length-1])};
_.g.find=function(G){var H=[];this.each(function(Z){Z=Z.querySelectorAll(String(G));for(var Q=0;Q<Z.length;Q++)H.push(Z[Q])});
return new mz(H)};
_.g.parent=function(){var G=[];this.each(function(H){(H=H.parentElement||null)&&!_.yf(G,H)&&G.push(H)});
return new mz(G)};
_.g.children=function(){var G=[];this.each(function(H){H=_.j4(H);for(var Z=0;Z<H.length;Z++)G.push(H[Z])});
return new mz(G)};
_.g.filter=function(G){G=_.LM(this.list_,YLh(G));return new mz(G)};
_.g.closest=function(G){var H=[],Z=YLh(G),Q=function(p){return _.gM(p)&&Z(p)};
this.each(function(p){(p=_.xr(p,Q,!0))&&!_.yf(H,p)&&H.push(p)});
return new mz(H)};
_.g.next=function(G){return qgq(this,_.nrt,G)};
_.g.prev=function(G){return qgq(this,Gvc,G)};
var qgq=function(G,H,Z){var Q=[];var p=Z?YLh(Z):FXA;G.each(function(l){(l=H(l))&&p(l)&&Q.push(l)});
return new mz(Q)};
mz.prototype.setClass=function(G){return this.each(function(H){_.av(H,G)})};
var SgA=function(G,H){return G.each(function(Z){_.O6(Z,H)})},uoD=function(G,H){return G.each(function(Z){_.CX(Z,H)})};
mz.prototype.toggleClass=function(G,H){return H===!0?SgA(this,G):H===!1?uoD(this,G):this.each(function(Z){_.yX(Z,G)?_.CX(Z,G):_.O6(Z,G)})};
mz.prototype.setText=function(G){return this.each(function(H){_.Pn(H,G)})};
var BUk=function(G){G.each(function(H){H.removeAttribute("aria-hidden")})};
mz.prototype.getStyle=function(G){if(this.list_.length>0){var H=this.list_[0],Z=H.style[_.Qa(G)];return typeof Z!=="undefined"?Z:H.style[_.PGa(H,G)]||""}};
mz.prototype.getData=function(G){if(this.list_.length===0)return new og(G,null);var H=wGt(this.list_[0],G);return new og(G,H)};
mz.prototype.focus=function(G){try{G?this.el().focus(G):this.el().focus()}catch(H){}return this};
mz.prototype.click=function(){var G=_.N4(this.el());if(G.createEvent){var H=G.createEvent("MouseEvents");H.initMouseEvent("click",!0,!0,G.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(H)}else G=G.createEventObject(),G.clientX=0,G.clientY=0,G.screenX=0,G.screenY=0,G.altKey=!1,G.ctrlKey=!1,G.shiftKey=!1,G.button=0,this.el().fireEvent("onclick",G)};
var Rg=function(G,H,Z,Q){function p(u,B,t){var D=B;B&&B.parentNode&&(D=B.cloneNode(!0));u(D,t)}
Q=Q===void 0?!1:Q;if(G.list_.length==1){var l=G.list_[0],q=function(u){return H(u,l)};
Z instanceof mz?Z.each(q,void 0,Q):Array.isArray(Z)?(Q?Kl6:_.Zk)(Z,q):q(Z);return G}return G.each(function(u){Z instanceof mz?Z.each(function(B){p(H,B,u)}):Array.isArray(Z)?_.Zk(Z,function(B){p(H,B,u)}):p(H,Z,u)})};
_.g=mz.prototype;_.g.append=function(G){return Rg(this,function(H,Z){H&&Z.appendChild(H)},G)};
_.g.appendTo=function(G){(new mz([G])).append(this);return this};
_.g.remove=function(){return Rg(this,function(G,H){_.Ku(H)},null)};
_.g.empty=function(){return Rg(this,function(G,H){_.zL(H)},null)};
_.g.after=function(G,H){return Rg(this,function(Z,Q){Z&&_.ME(Z,Q)},G,!(H===void 0||H))};
_.g.before=function(G){return Rg(this,function(H,Z){H&&_.KO(H,Z)},G)};
_.g.replaceWith=function(G){return Rg(this,function(H,Z){H&&_.D4_(H,Z)},G)};
_.g.toggle=function(G){return this.each(function(H){_.QN(H,G)})};
_.g.show=function(){return this.toggle(!0)};
_.g.hide=function(){return this.toggle(!1)};
_.g.trigger=function(G,H,Z,Q){return JPi(this,G,H,Z,Q)};
var JPi=function(G,H,Z,Q,p){return G.each(function(l){_.Dhe(_.N4(l)).triggerWizEventInternal(l,H,Z,Q,p)})},Um=function(G,H){G instanceof mz&&(H=G.list_,G=null);
this.list_=IDL(G!=null?[G]:H)};
_.AB(Um,mz);_.g=Um.prototype;_.g.children=function(){return new mz(Array.prototype.slice.call(_.j4(this.list_[0])))};
_.g.each=function(G,H){G.call(H,this.list_[0],0);return this};
_.g.size=function(){return 1};
_.g.el=function(){return this.list_[0]};
_.g.first=function(){return this};var NL=function(G,H){H=H===void 0?window:H;this.hostId=G;this.win=H;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$19874_previousHtmlOverscroll=this.JSC$19874_previousBodyOverscroll=this.JSC$19874_previousBodyOverflow="";this.eventTarget=new _.$f;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},Dzt=function(G){var H=
twi(twi(twi(new keo(78),"po"),"hppp"),"hhc");
H.authUser=Number(_.xI("SESSION_INDEX","0"));H.colorScheme=G;return H};
NL.prototype.getOrigin=function(){return this.origin?this.origin:_.Gj(_.b5(_.FQ(new _.C9,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
NL.prototype.getTargetOrigin=function(){return _.Gj(_.b5(_.FQ(new _.C9,this.scheme),this.domain),this.port)};
NL.prototype.preloadIframe=function(G){var H=this;if(this.iframeLoadPromise===void 0){var Z=document.createElement("iframe");this.iframe=Z;nXj(Z,G);this.iframeLoadPromise=new Promise(function(Q,p){var l=!1,q=function(u){u.stopPropagation();Z.removeEventListener("error",q);Z.removeEventListener("securitypolicyviolation",q);p(Error("Ek",{cause:u}))};
Z.addEventListener("error",q);Z.addEventListener("securitypolicyviolation",q);setTimeout(function(){l||p(Error("Fk"))},3E4);
dz6(H,Z,function(){l=!0;Z.removeEventListener("error",q);Z.removeEventListener("securitypolicyviolation",q);Q()})});
esh(this);G=this.getTargetOrigin().toString();Z.setAttribute("allow","camera "+G+"; display-capture "+G);this.parentElement.appendChild(Z)}return this.iframeLoadPromise};
var $zA=function(G,H){var Z,Q;return _.S(function(p){if(p.nextAddress==1)return Z=uu8(getComputedStyle(G.parentElement).direction==="rtl"),G.parentElement.appendChild(Z),document.activeElement instanceof HTMLElement&&(G.elementToFocusAfterClose=document.activeElement),_.XV(p,2),p.yield(G.preloadIframe(H),4);if(p.nextAddress!=2){G.parentElement.removeChild(Z);G.JSC$19874_previousBodyOverflow=G.parentElement.style.overflow;G.JSC$19874_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
G.JSC$19874_previousBodyOverscroll=G.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";G.parentElement.style.overscrollBehavior="contain";G.parentElement.style.overflow="hidden";var l=G.iframe;l.style.bottom="0";l.style.border="none";l.style.height="100%";l.style.left="0";l.style.position=G.iframePosition;l.style.right="0";l.style.top="0";l.style.width="100%";l.style.zIndex="2202";l.setAttribute("aria-hidden","false");l.setAttribute("aria-modal","true");
G.opened=!0;n9q(G);return _.Za(p,0)}Q=_.Wg(p);G.parentElement.removeChild(Z);DBa(G.isDarkTheme());Vwi(G,!1);throw Error("Gk",{cause:Q});})},Vwi=function(G,H){H=H===void 0?!0:H;
G.iframe!==void 0&&(XN6(G),document.documentElement.style.overscrollBehavior=G.JSC$19874_previousHtmlOverscroll,G.parentElement.style.overscrollBehavior=G.JSC$19874_previousBodyOverscroll,G.parentElement.style.overflow=G.JSC$19874_previousBodyOverflow,G.elementToFocusAfterClose!==void 0&&(G.elementToFocusAfterClose.focus(),G.elementToFocusAfterClose=void 0),H?esh(G):(G.parentElement.removeChild(G.iframe),G.iframe=void 0,G.iframeLoadPromise=void 0,G.mainChannel=void 0),G.opened=!1)},XN6=function(G){G.backgroundElementsAriaHiddenIsNull&&
(BUk(G.backgroundElementsAriaHiddenIsNull),G.backgroundElementsAriaHiddenIsNull=void 0);
G.backgroundElementsAriaHiddenIsFalse&&(G.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","false")}),G.backgroundElementsAriaHiddenIsFalse=void 0);
G.backgroundElementsWithoutInert&&(G.backgroundElementsWithoutInert.each(function(H){H.removeAttribute("inert")}),G.backgroundElementsWithoutInert=void 0)},n9q=function(G){G.backgroundElementsAriaHiddenIsNull=(new Um(G.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")===null&&H!==G.iframe});
G.backgroundElementsAriaHiddenIsNull.each(function(H){H.setAttribute("aria-hidden","true")});
G.backgroundElementsAriaHiddenIsFalse=(new Um(G.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")==="false"&&H!==G.iframe});
G.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","true")});
G.backgroundElementsWithoutInert=(new Um(G.iframe.parentElement)).children().filter(function(H){return!H.hasAttribute("inert")&&H!==G.iframe});
G.backgroundElementsWithoutInert.each(function(H){H.setAttribute("inert","true")})},esh=function(G){G=G.iframe;
G.style.bottom="-1000px";G.style.position="fixed";G.style.right="-1000px";G.style.border="";G.style.height="";G.style.left="";G.style.top="";G.style.width="";G.style.zIndex="";G.setAttribute("aria-hidden","true");G.setAttribute("aria-modal","false")};
NL.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var keo=function(G,H){NL.call(this,zH6[G],H);this.options=[];this.style=""};
_.T(keo,NL);var cP8=function(G){G.style="youtube";return G},TUc=function(G,H){G.eventTarget.listen(y$h,H);
return G},fDq=function(G,H){G.eventTarget.listen(Os6,H);
return G},twi=function(G,H){G.options.push(H);
return G},v9A=function(G){var H=[G.getOrigin()];
G.ancestorOrigins&&H.push.apply(H,_.OP(G.ancestorOrigins));var Z=new _.C9(G.win.location.href),Q=G.startUrl?G.startUrl:G.options.includes("po")?"profile-picture/art":"profile-picture";H=uQL(_.Hy(G.getTargetOrigin(),Q),"origin",H);G.startUrl&&_.Z0(H,"startPath",G.startUrl);G.authUser>0&&_.Z0(H,"authuser",G.authUser);G.pageId!==void 0&&_.Z0(H,"pageId",G.pageId);_.Z0(H,"hostId",G.hostId);G.jsMode!==void 0&&_.Z0(H,"jsmode",G.jsMode);G.rectangleRatio!==void 0&&_.Z0(H,"rectangleRatio",G.rectangleRatio);
G.options.length>0&&_.Z0(H,"opts",G.options.join(","));try{for(var p=_.I(["utm_source","utm_medium","utm_campaign","utm_content"]),l=p.next();!l.done;l=p.next()){var q=l.value;_.sv(Z,q)&&_.Z0(H,q,_.sv(Z,q))}var u,B=(u=G.hl)!=null?u:_.sv(Z,"hl");B!==void 0&&_.Z0(H,"hl",B)}catch(t){if(!(t instanceof URIError))throw t;}G.colorScheme&&_.Z0(H,"theme",G.colorScheme);G.style&&_.Z0(H,"style",G.style);return H},Wd6=function(G,H){G.mainChannel=_.b6({destination:G.win,
iframe:H,origin:G.getTargetOrigin().toString(),channelName:"ow",onMessage:function(Z){Z=wec(Z.data);if(H===G.iframe)switch(_.V8(Z,1)){case 1:G.eventTarget.dispatchEvent(new RH6);Vwi(G);break;case 2:G.eventTarget.dispatchEvent(new muj(_.nY(Z,4),_.nY(Z,2),_.V8(Z,5),_.dt(Z,jH6,6)));break;case 0:var Q;G.eventTarget.dispatchEvent(new UuL(_.nY(Z,2),(Q=_.V8(Z,3))!=null?Q:0));break;case 3:G.eventTarget.dispatchEvent(new RH6(!0));Vwi(G,!1);break;case 4:G.eventTarget.dispatchEvent(new NSi)}}})},dz6=function(G,
H,Z){_.b6({destination:G.win,
iframe:H,origin:_.Gj(_.b5(_.FQ(new _.C9,G.scheme),G.domain),G.port).toString(),channelName:"owi",onMessage:function(Q){H===G.iframe&&(Z!==void 0&&Z(),Wd6(G,H),G.opened&&G.mainChannel.send(isD(CNo())),Q.reply(),dz6(G,H))}})};
keo.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?NL.prototype.preloadIframe.call(this,v9A(this).toString()):this.iframeLoadPromise};
keo.prototype.openPicker=function(G){var H=this;return _.S(function(Z){if(Z.nextAddress==1)return H.startUrl=G?G:H.options.includes("po")?"profile-picture/art":"profile-picture",Z.yield($zA(H,v9A(H).toString()),2);if(H.mainChannel){var Q=H.mainChannel,p=Q.send;var l=CNo();l=_.ha(l,2,H.startUrl);p.call(Q,isD(l))}_.K0(Z)})};var zst=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(zst,_.Iy);_.g=zst.prototype;_.g.getSize=function(){return X5(this,1)};
_.g.setSize=function(G){return _.TW(this,1,G)};
_.g.getWidth=function(){return X5(this,12)};
_.g.getHeight=function(){return X5(this,13)};
_.g.setCenterCrop=function(G){return _.nu(this,20,G)};
_.g.getHtml=function(){return _.DH(this,4)};
_.g.getToken=function(){return _.W7(this,24)};
_.g.setToken=function(G){return _.ha(this,24,G)};
_.g.getBackgroundColor=function(){return X5(this,87)};
_.g.hasBackgroundColor=function(){return _.qa(_.gm(this,87))!=null};
_.g.getStoryboardLevel=function(){return X5(this,109)};var Ax=function(G){this.JSC$19882_value_=void 0;this.childNodes_={};if(G){var H=_.gJT(G);G=_.Yf(G);for(var Z=0;Z<H.length;Z++)this.set(H[Z],G[Z])}};
Ax.prototype.set=function(G,H){KdA(this,G,H,!1)};
Ax.prototype.add=function(G,H){KdA(this,G,H,!0)};
var KdA=function(G,H,Z,Q){for(var p=0;p<H.length;p++){var l=H.charAt(p);G.childNodes_[l]||(G.childNodes_[l]=new Ax);G=G.childNodes_[l]}if(Q&&G.JSC$19882_value_!==void 0)throw Error("Hk`"+H);G.JSC$19882_value_=Z},MwL=function(G,H){for(var Z=0;Z<H.length;Z++)if(G=G.childNodes_[H.charAt(Z)],!G)return;
return G};
Ax.prototype.get=function(G){return(G=MwL(this,G))?G.JSC$19882_value_:void 0};
Ax.prototype.getValues=function(){var G=[];jIh(this,G);return G};
var jIh=function(G,H){G.JSC$19882_value_!==void 0&&H.push(G.JSC$19882_value_);for(var Z in G.childNodes_)jIh(G.childNodes_[Z],H)};
Ax.prototype.getKeys=function(G){var H=[];if(G){for(var Z=this,Q=0;Q<G.length;Q++){var p=G.charAt(Q);if(!Z.childNodes_[p])return[];Z=Z.childNodes_[p]}PZL(Z,G,H)}else PZL(this,"",H);return H};
var PZL=function(G,H,Z){G.JSC$19882_value_!==void 0&&Z.push(H);for(var Q in G.childNodes_)PZL(G.childNodes_[Q],H+Q,Z)};
_.g=Ax.prototype;_.g.containsKey=function(G){return this.get(G)!==void 0};
_.g.containsValue=function(G){if(this.JSC$19882_value_===G)return!0;for(var H in this.childNodes_)if(this.childNodes_[H].containsValue(G))return!0;return!1};
_.g.clear=function(){this.childNodes_={};this.JSC$19882_value_=void 0};
_.g.remove=function(G){for(var H=this,Z=[],Q=0;Q<G.length;Q++){var p=G.charAt(Q);if(!H.childNodes_[p])throw Error("Ik`"+G);Z.push([H,p]);H=H.childNodes_[p]}G=H.JSC$19882_value_;for(delete H.JSC$19882_value_;Z.length>0;)if(Q=Z.pop(),H=Q[0],Q=Q[1],H.childNodes_[Q].isEmpty())delete H.childNodes_[Q];else break;return G};
_.g.clone=function(){return new Ax(this)};
_.g.getCount=function(){return Q3t(this.getValues())};
_.g.isEmpty=function(){return this.JSC$19882_value_===void 0&&_.oN.isEmpty(this.childNodes_)};var Tut=function(){if(!rPL){var G=rPL=new Ax,H;for(H in wNA)G.add(H,wNA[H])}},rPL,xt=function(G,H){this.types=G;
this.setters=H},wNA={a:new xt([3,
0],[function(G,H){_.nu(G,21,H)},
function(G,H){_.TW(G,56,H)}]),
al:new xt([3],[function(G,H){_.nu(G,74,H)}]),
b:new xt([3,0],[function(G,H){_.nu(G,23,H)},
function(G,H){_.TW(G,38,H)}]),
ba:new xt([0],[function(G,H){_.TW(G,85,H)}]),
bc:new xt([0],[function(G,H){_.TW(G,87,H)}]),
br:new xt([0],[function(G,H){_.TW(G,86,H)}]),
c:new xt([3,0],[function(G,H){_.nu(G,2,H)},
function(G,H){_.TW(G,39,H)}]),
cc:new xt([3],[function(G,H){_.nu(G,51,H)}]),
ci:new xt([3],[function(G,H){_.nu(G,32,H)}]),
ckm:new xt([3],[function(G,H){_.nu(G,104,H)}]),
cp:new xt([0],[function(G,H){_.TW(G,92,H)}]),
cr:new xt([3],[function(G,H){_.nu(G,108,H)}]),
cv:new xt([0],[function(G,H){_.TW(G,94,H)}]),
d:new xt([3],[function(G,H){_.nu(G,3,H)}]),
dc:new xt([5],[function(G,H){_.ha(G,99,H)}]),
df:new xt([3],[function(G,H){_.nu(G,80,H)}]),
dv:new xt([3],[function(G,H){_.nu(G,90,H)}]),
e:new xt([0],[function(G,H){_.TW(G,15,H)}]),
em:new xt([0],[function(G,H){_.TW(G,107,H)}]),
f:new xt([4],[function(G,H){_.ha(G,16,H)}]),
fg:new xt([3],[function(G,H){_.nu(G,34,H)}]),
fh:new xt([3],[function(G,H){_.nu(G,30,H)}]),
fm:new xt([3],[function(G,H){_.nu(G,84,H)}]),
fo:new xt([2],[function(G,H){_.ng(G,79,_.ER(H))}]),
ft:new xt([3],[function(G,H){_.nu(G,50,H)}]),
fv:new xt([3],[function(G,H){_.nu(G,31,H)}]),
g:new xt([3],[function(G,H){_.nu(G,14,H)}]),
gce:new xt([4],[function(G,H){_.ha(G,112,H)}]),
gd:new xt([3],[function(G,H){_.nu(G,83,H)}]),
gm:new xt([3],[function(G,H){_.nu(G,105,H)}]),
h:new xt([3,0],[function(G,H){_.nu(G,4,H)},
function(G,H){_.TW(G,13,H)}]),
i:new xt([3],[function(G,H){_.nu(G,22,H)}]),
ic:new xt([0],[function(G,H){_.TW(G,71,H)}]),
id:new xt([3],[function(G,H){_.nu(G,70,H)}]),
il:new xt([3],[function(G,H){_.nu(G,96,H)}]),
ip:new xt([3],[function(G,H){_.nu(G,54,H)}]),
iv:new xt([0],[function(G,H){_.PW(G,75,H)}]),
j:new xt([1],[function(G,H){H=H==null?H:PqL(H);_.ng(G,29,H)}]),
k:new xt([3,0],[function(G,H){_.nu(G,17,H)},
function(G,H){_.TW(G,42,H)}]),
l:new xt([0],[function(G,H){_.TW(G,44,H)}]),
lf:new xt([3],[function(G,H){_.nu(G,65,H)}]),
lo:new xt([3],[function(G,H){_.nu(G,97,H)}]),
m:new xt([0],[function(G,H){_.TW(G,63,H)}]),
md:new xt([3],[function(G,H){_.nu(G,91,H)}]),
mm:new xt([4],[function(G,H){_.ha(G,81,H)}]),
mo:new xt([3],[function(G,H){_.nu(G,73,H)}]),
mp:new xt([0],[function(G,H){_.TW(G,115,H)}]),
mv:new xt([3],[function(G,H){_.nu(G,66,H)}]),
n:new xt([3],[function(G,H){G.setCenterCrop(H)}]),
nc:new xt([3],[function(G,H){_.nu(G,55,H)}]),
nd:new xt([3],[function(G,H){_.nu(G,53,H)}]),
ng:new xt([3],[function(G,H){_.nu(G,95,H)}]),
ngm:new xt([3],[function(G,H){_.nu(G,106,H)}]),
no:new xt([3],[function(G,H){_.nu(G,37,H)}]),
ns:new xt([3],[function(G,H){_.nu(G,40,H)}]),
nt0:new xt([4],[function(G,H){_.ha(G,36,H)}]),
ntm:new xt([3],[function(G,H){_.nu(G,114,H)}]),
nu:new xt([3],[function(G,H){_.nu(G,46,H)}]),
nw:new xt([3],[function(G,H){_.nu(G,48,H)}]),
o:new xt([1,3],[function(G,H){H=H==null?H:PqL(H);_.ng(G,7,H)},
function(G,H){_.nu(G,27,H)}]),
p:new xt([3,0],[function(G,H){_.nu(G,19,H)},
function(G,H){_.TW(G,43,H)}]),
pa:new xt([3],[function(G,H){_.nu(G,61,H)}]),
pc:new xt([0],[function(G,H){_.TW(G,88,H)}]),
pd:new xt([3],[function(G,H){_.nu(G,60,H)}]),
pf:new xt([3],[function(G,H){_.nu(G,67,H)}]),
pg:new xt([3],[function(G,H){_.nu(G,72,H)}]),
pi:new xt([2],[function(G,H){_.ng(G,76,_.ER(H))}]),
pp:new xt([3],[function(G,H){_.nu(G,52,H)}]),
pt:new xt([4],[function(G,H){_.ha(G,111,H)}]),
q:new xt([4],[function(G,H){_.ha(G,28,H)}]),
r:new xt([3,0],[function(G,H){_.nu(G,6,H)},
function(G,H){_.TW(G,26,H)}]),
ra:new xt([3],[function(G,H){_.nu(G,103,H)}]),
rf:new xt([3],[function(G,H){_.nu(G,100,H)}]),
rg:new xt([3],[function(G,H){_.nu(G,59,H)}]),
rh:new xt([3],[function(G,H){_.nu(G,49,H)}]),
rj:new xt([3],[function(G,H){_.nu(G,57,H)}]),
ro:new xt([2],[function(G,H){_.ng(G,78,_.ER(H))}]),
rp:new xt([3],[function(G,H){_.nu(G,58,H)}]),
rw:new xt([3],[function(G,H){_.nu(G,35,H)}]),
rwa:new xt([3],[function(G,H){_.nu(G,64,H)}]),
rwu:new xt([3],[function(G,H){_.nu(G,41,H)}]),
s:new xt([3,0],[function(G,H){_.nu(G,33,H)},
function(G,H){G.setSize(H)}]),
sb:new xt([0],[function(G,H){_.TW(G,110,H)}]),
sc:new xt([0],[function(G,H){_.TW(G,89,H)}]),
sg:new xt([3],[function(G,H){_.nu(G,82,H)}]),
sl:new xt([0],[function(G,H){_.TW(G,109,H)}]),
sm:new xt([3],[function(G,H){_.nu(G,93,H)}]),
t:new xt([4],[function(G,H){G.setToken(H)}]),
tm:new xt([3],[function(G,H){_.nu(G,113,H)}]),
u:new xt([3],[function(G,H){_.nu(G,18,H)}]),
ut:new xt([3],[function(G,H){_.nu(G,45,H)}]),
v:new xt([0],[function(G,H){_.TW(G,62,H)}]),
vb:new xt([0],[function(G,H){_.PW(G,68,H)}]),
vf:new xt([4],[function(G,H){_.ha(G,102,H)}]),
vl:new xt([0],[function(G,H){_.PW(G,69,H)}]),
vm:new xt([3],[function(G,H){_.nu(G,98,H)}]),
w:new xt([0],[function(G,H){_.TW(G,12,H)}]),
x:new xt([0],[function(G,H){_.TW(G,9,H)}]),
y:new xt([0],[function(G,H){_.TW(G,10,H)}]),
ya:new xt([2],[function(G,H){_.ng(G,77,_.ER(H))}]),
z:new xt([0],[function(G,H){_.TW(G,11,H)}])};
Tut.prototype.parse=function(G){var H=new zst,Z=new zst;if(G=="")G=!0;else{G=G.split("-");for(var Q=!0,p=0;p<G.length;p++){var l=G[p];if(l.length==0)Q=!1;else{var q=l,u=!1;var B=q;var t=q.charAt(0);t!=t.toLowerCase()&&(u=!0,B=q.charAt(0).toLowerCase()+q.substring(1));var D=rPL;for(t=1;t<=B.length;++t){var d=D,e=B.substring(0,t);if(e.length==0?d.isEmpty():!MwL(d,e))break}B=t==1?null:(B=D.get(B.substring(0,t-1)))?{option:q.substring(0,t-1),value:q.substring(t-1),signed:u,attributes:B}:null;if(B){q=
[];u=[];t=!1;for(D=0;D<B.attributes.types.length;D++){d=B.attributes.types[D];var n=B.value;e=p;if(B.signed&&d==1)for(var c=n.length;c<12&&e<G.length-1;)n+="-"+G[e+1],c=n.length,++e;else if(d==2)for(;e<G.length-1&&G[e+1].match(/^[\d\.]/);)n+="-"+G[e+1],++e;c=B.attributes.setters[D];n=hsq(this,d)(B.option,n,H,Z,c);if(n===null){t=!0;p=e;break}else q.push(d),u.push(n)}if(!t)for(B=0;B<u.length;B++)D=q[B],n=u[B],CZL(this,D)(l,n);Q=Q&&t}else Q=!1}}G=Q}return new iQA(H,Z,G)};
var OQj=function(G,H,Z,Q,p,l){p(Z,H);G=G.charAt(0);l=l(G==G.toUpperCase());p(Q,l)};
_.g=Tut.prototype;_.g.parseAndSetIntOption_=function(G,H,Z,Q,p){if(H=="")return 0;isFinite(H)&&(H=String(H));H=typeof H==="string"?/^\s*-?0x/i.test(H)?parseInt(H,16):parseInt(H,10):NaN;if(isNaN(H))return 1;OQj(G,H,Z,Q,p,Number);return null};
_.g.logIntParseError_=function(){};
_.g.parseAndSetFloatOption_=function(G,H,Z,Q,p){if(H=="")return 0;var l=Number(H);H=l==0&&_.ue(H)?NaN:l;if(isNaN(H))return 1;OQj(G,H,Z,Q,p,Number);return null};
_.g.logFloatParseError_=function(){};
_.g.parseAndSetBoolOption_=function(G,H,Z,Q,p){if(H!="")return 2;OQj(G,!0,Z,Q,p,Boolean);return null};
_.g.logBoolParseError_=function(){};
_.g.parseAndSetStringOption_=function(G,H,Z,Q,p){if(H=="")return 0;OQj(G,H,Z,Q,p,function(l){return l?"1":""});
return null};
_.g.logStringParseError_=function(){};
_.g.parseAndSetUint64Base64Option_=function(G,H,Z,Q,p){if(H=="")return 0;OQj(G,H,Z,Q,p,function(l){return l?1:0});
return null};
var hsq=function(G,H){switch(H){case 0:return(0,_.Cu)(G.parseAndSetIntOption_,G);case 2:return(0,_.Cu)(G.parseAndSetFloatOption_,G);case 3:return(0,_.Cu)(G.parseAndSetBoolOption_,G);case 4:return(0,_.Cu)(G.parseAndSetStringOption_,G);case 1:return(0,_.Cu)(G.parseAndSetUint64Base64Option_,G);default:return function(){}}},CZL=function(G,H){switch(H){case 0:return(0,_.Cu)(G.logIntParseError_,G);
case 2:return(0,_.Cu)(G.logFloatParseError_,G);case 3:return(0,_.Cu)(G.logBoolParseError_,G);case 4:case 1:return(0,_.Cu)(G.logStringParseError_,G);default:return function(){}}},iQA=function(G,H,Z){this.valueProto_=G;
this.signatureFlagProto_=H;this.JSC$19894_valid_=Z};
iQA.prototype.isValid=function(){return this.JSC$19894_valid_};var VPc=function(G){this.JSC$19895_parser_=null;this.JSC$19895_components_=[];this.JSC$19895_parsedOptions_=null;aDc(this,G)},yPh=function(G){G.JSC$19895_parser_==null&&(G.JSC$19895_parser_=new Tut);
return G.JSC$19895_parser_},aDc=function(G,H){G.JSC$19895_parsedOptions_=H?typeof H==="string"?yPh(G).parse(H):H:yPh(G).parse("")},LL=function(G,H){return G==H?!1:!0};
_.g=VPc.prototype;_.g.JSC$19897_setCrop=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,_.DH(Z,2),_.DH(H.signatureFlagProto_,2))&&_.nu(Z,2,G);return this};
_.g.JSC$19897_setCircleCrop=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,$t(Z,51),$t(H.signatureFlagProto_,51))&&_.nu(Z,51,G);return this};
_.g.JSC$19897_setImageCrop=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,$t(Z,32),$t(H.signatureFlagProto_,32))&&_.nu(Z,32,G);return this};
_.g.JSC$19897_setHeight=function(G){var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,Z.getHeight(),H.signatureFlagProto_.getHeight())&&_.TW(Z,13,G);return this};
_.g.setCenterCrop=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,_.DH(Z,20),_.DH(H.signatureFlagProto_,20))&&Z.setCenterCrop(G);return this};
_.g.JSC$19897_setSmartCrop=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,_.DH(Z,19),_.DH(H.signatureFlagProto_,19))&&_.nu(Z,19,G);return this};
_.g.JSC$19897_setPad=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,$t(Z,60),$t(H.signatureFlagProto_,60))&&_.nu(Z,60,G);return this};
_.g.JSC$19897_setSmartCropUseFace=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,_.DH(Z,67),_.DH(H.signatureFlagProto_,67))&&_.nu(Z,67,G);return this};
_.g.JSC$19897_setSmartCropNoClip=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,_.DH(Z,52),_.DH(H.signatureFlagProto_,52))&&_.nu(Z,52,G);return this};
_.g.setSize=function(G){var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,Z.getSize(),H.signatureFlagProto_.getSize())&&Z.setSize(G);return this};
_.g.setToken=function(G){G=G||void 0;var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,Z.getToken(),H.signatureFlagProto_.getToken())&&Z.setToken(G);return this};
_.g.JSC$19897_setWidth=function(G){var H=this.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(G,Z.getWidth(),H.signatureFlagProto_.getWidth())&&_.TW(Z,12,G);return this};
_.g.clearOptions=function(){aDc(this,"");return this};
_.g.build=function(){this.JSC$19895_components_.length=0;var G=this.JSC$19895_parsedOptions_,H=G.valueProto_;G=G.signatureFlagProto_;Em(this,"s",H.getSize(),G.getSize());Em(this,"w",H.getWidth(),G.getWidth());Yt(this,"c",_.DH(H,2),_.DH(G,2));Yt(this,"d",_.DH(H,3),_.DH(G,3));Em(this,"h",H.getHeight(),G.getHeight());Yt(this,"s",$t(H,33),$t(G,33));Yt(this,"h",H.getHtml(),G.getHtml());Yt(this,"p",_.DH(H,19),_.DH(G,19));Yt(this,"pp",_.DH(H,52),_.DH(G,52));Yt(this,"pf",_.DH(H,67),_.DH(G,67));Yt(this,"n",
_.DH(H,20),_.DH(G,20));Em(this,"r",X5(H,26),X5(G,26));Yt(this,"r",_.DH(H,6),_.DH(G,6));Yt(this,"o",$t(H,27),$t(G,27));var Z=_.kH(H,7,_.l6);F5(this,"o",Z,_.kH(G,7,_.l6));Z=_.kH(H,29,_.l6);F5(this,"j",Z,_.kH(G,29,_.l6));Em(this,"x",X5(H,9),X5(G,9));Em(this,"y",X5(H,10),X5(G,10));Em(this,"z",X5(H,11),X5(G,11));Yt(this,"g",_.DH(H,14),_.DH(G,14));Em(this,"e",X5(H,15),X5(G,15));F5(this,"f",_.W7(H,16),_.W7(G,16));Yt(this,"k",$t(H,17),$t(G,17));Yt(this,"u",$t(H,18),!0);Yt(this,"ut",$t(H,45),!0);Yt(this,"i",
$t(H,22),!0);Yt(this,"a",$t(H,21),$t(G,21));Yt(this,"b",_.DH(H,23),_.DH(G,23));Em(this,"b",X5(H,38),X5(G,38));Em(this,"c",X5(H,39),X5(G,39),16,8);F5(this,"q",_.W7(H,28),_.W7(G,28));Yt(this,"fh",$t(H,30),$t(G,30));Yt(this,"fv",$t(H,31),$t(G,31));Yt(this,"fg",_.DH(H,34),_.DH(G,34));Yt(this,"ci",$t(H,32),$t(G,32));F5(this,"t",H.getToken(),G.getToken());F5(this,"nt0",_.W7(H,36),_.W7(G,36));Yt(this,"rw",_.DH(H,35),_.DH(G,35));Yt(this,"rwu",_.DH(H,41),_.DH(G,41));Yt(this,"rwa",_.DH(H,64),_.DH(G,64));Yt(this,
"nw",_.DH(H,48),_.DH(G,48));Yt(this,"rh",_.DH(H,49),_.DH(G,49));Yt(this,"no",_.DH(H,37),_.DH(G,37));Yt(this,"ns",$t(H,40),$t(G,40));Em(this,"k",X5(H,42),X5(G,42));Em(this,"p",X5(H,43),X5(G,43));Em(this,"l",X5(H,44),X5(G,44));Em(this,"v",X5(H,62),X5(G,62));Yt(this,"nu",$t(H,46),$t(G,46));Yt(this,"ft",$t(H,50),$t(G,50));Yt(this,"cc",$t(H,51),$t(G,51));Yt(this,"nd",$t(H,53),$t(G,53));Yt(this,"ip",$t(H,54),$t(G,54));Yt(this,"nc",$t(H,55),$t(G,55));Em(this,"a",X5(H,56),X5(G,56));Yt(this,"rj",$t(H,57),
$t(G,57));Yt(this,"rp",$t(H,58),$t(G,58));Yt(this,"rg",$t(H,59),$t(G,59));Yt(this,"pd",$t(H,60),$t(G,60));Yt(this,"pa",$t(H,61),$t(G,61));Em(this,"m",X5(H,63),X5(G,63));Em(this,"vb",ca(H,68),ca(G,68));Em(this,"vl",ca(H,69),ca(G,69));Yt(this,"lf",$t(H,65),$t(G,65));Yt(this,"mv",$t(H,66),$t(G,66));Yt(this,"id",$t(H,70),$t(G,70));Em(this,"ic",X5(H,71),!0);Yt(this,"pg",_.DH(H,72),_.DH(G,72));Yt(this,"mo",$t(H,73),$t(G,73));Yt(this,"al",$t(H,74),$t(G,74));Em(this,"iv",ca(H,75),ca(G,75));Em(this,"pi",TT(H,
76),TT(G,76));Em(this,"ya",TT(H,77),TT(G,77));Em(this,"ro",TT(H,78),TT(G,78));Em(this,"fo",TT(H,79),TT(G,79));Yt(this,"df",$t(H,80),$t(G,80));F5(this,"mm",_.W7(H,81),_.W7(G,81));Yt(this,"sg",$t(H,82),$t(G,82));Yt(this,"gd",$t(H,83),$t(G,83));Yt(this,"fm",$t(H,84),$t(G,84));Em(this,"ba",X5(H,85),X5(G,85));Em(this,"br",X5(H,86),X5(G,86));Em(this,"bc",H.getBackgroundColor(),G.getBackgroundColor(),16,8);Em(this,"pc",X5(H,88),X5(G,88),16,8);Em(this,"sc",X5(H,89),X5(G,89),16,8);Yt(this,"dv",$t(H,90),$t(G,
90));Yt(this,"md",$t(H,91),$t(G,91));Em(this,"cp",X5(H,92),X5(G,92));Yt(this,"sm",$t(H,93),$t(G,93));Em(this,"cv",X5(H,94),X5(G,94));Yt(this,"ng",$t(H,95),$t(G,95));Yt(this,"il",$t(H,96),$t(G,96));Yt(this,"lo",$t(H,97),$t(G,97));Yt(this,"vm",$t(H,98),$t(G,98));F5(this,"dc",_.W7(H,99),_.W7(G,99));Yt(this,"rf",$t(H,100),$t(G,100));F5(this,"vf",_.W7(H,102),_.W7(G,102));Yt(this,"ra",_.DH(H,103),_.DH(G,103));Yt(this,"ckm",$t(H,104),$t(G,104));Yt(this,"gm",$t(H,105),$t(G,105));Yt(this,"ngm",$t(H,106),$t(G,
106));Em(this,"em",X5(H,107),X5(G,107));Yt(this,"cr",$t(H,108),$t(G,108));Em(this,"sl",H.getStoryboardLevel(),G.getStoryboardLevel());Em(this,"sb",X5(H,110),X5(G,110));F5(this,"pt",_.W7(H,111),_.W7(G,111));F5(this,"gce",_.W7(H,112),_.W7(G,112));Yt(this,"tm",$t(H,113),$t(G,113));Yt(this,"ntm",$t(H,114),$t(G,114));Em(this,"mp",X5(H,115),X5(G,115));return this.JSC$19895_components_.join("-")};
var Em=function(G,H,Z,Q,p,l){if(Z!=null){var q=p==void 0||p!=10&&p!=16?10:p;Z=Number(Z).toString(q);p=new EQi;p.append(q==16?"0x":"");q=p.append;l==void 0?l="":(l-=Z.length,l=l<=0?"":(0,_.Qs2)("0",l));q.call(p,l);p.append(Z);o9h(G,H,p.toString(),!!Number(Q))}},Yt=function(G,H,Z,Q){Z&&o9h(G,H,"",!!Q)},F5=function(G,H,Z,Q){Z&&o9h(G,H,String(Z),!!Number(Q))},o9h=function(G,H,Z,Q){Q&&(H=H.charAt(0).toUpperCase()+H.substring(1));
G.JSC$19895_components_.push(H+Z)};_.AB(cI,VPc);_.g=cI.prototype;_.g.JSC$19897_setCrop=function(G){G&&bk(this);return cI.superClass_.JSC$19897_setCrop.call(this,G)};
_.g.JSC$19897_setHeight=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return cI.superClass_.JSC$19897_setHeight.call(this,G)};
_.g.JSC$19897_setImageCrop=function(G){G&&bk(this);return cI.superClass_.JSC$19897_setImageCrop.call(this,G)};
_.g.JSC$19897_setCircleCrop=function(G){G&&bk(this);return cI.superClass_.JSC$19897_setCircleCrop.call(this,G)};
_.g.setSize=function(G){_.AM(G)&&(G=Math.max(G.width,G.height));G=G==null||G<0?void 0:G;G!=null&&(this.JSC$19897_setWidth(),this.JSC$19897_setHeight());return cI.superClass_.setSize.call(this,G)};
_.g.JSC$19897_setSmartCrop=function(G){G&&bk(this);return cI.superClass_.JSC$19897_setSmartCrop.call(this,G)};
_.g.JSC$19897_setSmartCropNoClip=function(G){G&&bk(this);return cI.superClass_.JSC$19897_setSmartCropNoClip.call(this,G)};
_.g.JSC$19897_setSmartCropUseFace=function(G){G&&bk(this);return cI.superClass_.JSC$19897_setSmartCropUseFace.call(this,G)};
_.g.setCenterCrop=function(G){G&&bk(this);return cI.superClass_.setCenterCrop.call(this,G)};
_.g.JSC$19897_setPad=function(G){G&&bk(this);return cI.superClass_.JSC$19897_setPad.call(this,G)};
_.g.JSC$19897_setWidth=function(G){G=G==null||G<0?void 0:G;G!=null&&this.setSize();return cI.superClass_.JSC$19897_setWidth.call(this,G)};
var mz8=function(G){G.clearOptions();var H=G.JSC$19895_parsedOptions_,Z=H.valueProto_;LL(!0,_.DH(Z,3),_.DH(H.signatureFlagProto_,3))&&_.nu(Z,3,!0);return G},bk=function(G){G.setCenterCrop();
G.JSC$19897_setCircleCrop();G.JSC$19897_setCrop();G.JSC$19897_setImageCrop();G.JSC$19897_setPad();G.JSC$19897_setSmartCrop();G.JSC$19897_setSmartCropNoClip();G.JSC$19897_setSmartCropUseFace()};
cI.prototype.build=function(){var G=this.JSC$19895_parsedOptions_.valueProto_;$t(G,18)||$t(G,45)?G.getSize()||this.setSize(0):(G=this.JSC$19895_parsedOptions_.valueProto_,G.getSize()||G.getWidth()||G.getHeight()||(this.setSize(),this.JSC$19897_setHeight(),this.JSC$19897_setWidth(),bk(this)));return cI.superClass_.build.call(this)};var Uzo=/^[^\/]*\/\//,Rso=function(G,H){H=H===void 0?!1:H;this.original_=G;this.originalPrefix_="";(G=this.original_.match(Uzo))&&G[0]?(this.originalPrefix_=G[0],G=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):G="http://"+this.original_;this.uri_=_.HS(G,!0);this.isFreeformUrl_=H;this.JSC$19901_valid_=!0;this.obfuscated_=!1},NUc=function(G,H){G.JSC$19903_pathPrefix_=G.JSC$19903_pathPrefix_?G.JSC$19903_pathPrefix_+("/"+H):H},G2=function(G){if(G.JSC$19903_components_==
void 0){var H=G.uri_.getPath().substring(1);
G.JSC$19903_pathPrefix_=null;if(G.isFreeformUrl_){G.JSC$19903_components_=[];if((H.match(/=/g)||[]).length>1)return G.JSC$19901_valid_=!1,G.JSC$19903_components_;var Z=H.indexOf("=");Z!=-1?(G.JSC$19903_components_.push(H.substr(0,Z)),G.JSC$19903_components_.push(H.substr(Z+1))):G.JSC$19903_components_.push(H);return G.JSC$19903_components_}G.JSC$19903_components_=H.split("/");H=G.JSC$19903_components_.length;H>2&&G.JSC$19903_components_[0]=="u"&&(NUc(G,G.JSC$19903_components_[0]+"/"+G.JSC$19903_components_[1]),
G.JSC$19903_components_.shift(),G.JSC$19903_components_.shift(),H-=2);if(H==0||H==4||H>7)return G.JSC$19901_valid_=!1,G.JSC$19903_components_;if(H==2)NUc(G,G.JSC$19903_components_[0]);else if(G.JSC$19903_components_[0]=="image")NUc(G,G.JSC$19903_components_[0]);else if(H==7||H==3)return G.JSC$19901_valid_=!1,G.JSC$19903_components_;if(H<=3){G.obfuscated_=!0;H==3&&(NUc(G,G.JSC$19903_components_[1]),G.JSC$19903_components_.shift(),--H);--H;Z=G.JSC$19903_components_[H];var Q=Z.indexOf("=");Q!=-1&&(G.JSC$19903_components_[H]=
Z.substr(0,Q),G.JSC$19903_components_.push(Z.substr(Q+1)))}}return G.JSC$19903_components_};
Rso.prototype.isValid=function(){G2(this);return this.JSC$19901_valid_};
Rso.prototype.isObfuscated=function(){G2(this);return this.obfuscated_};
var APA=function(G){G2(G);return G.isFreeformUrl_},HB=function(G){G2(G);
G.JSC$19903_pathPrefix_==void 0&&(G.JSC$19903_pathPrefix_=null);return G.JSC$19903_pathPrefix_},xzk=function(G){switch(G2(G).length){case 7:return!0;
case 6:return HB(G)==null;case 5:return!1;case 3:return!0;case 2:return HB(G)==null;case 1:return!1;default:return!1}},su=function(G,H){if(APA(G))a:{switch(H){case 7:H=0;
break;case 4:if(!xzk(G)){G=null;break a}H=1;break;default:G=null;break a}G=G2(G)[H]}else if(G.isObfuscated())a:{var Z=HB(G)!=null?1:0;switch(H){case 6:H=Z;break;case 4:if(!xzk(G)){G=null;break a}H=1+Z;break;default:G=null;break a}G=G2(G)[H]}else a:{Z=HB(G)!=null?1:0;switch(H){case 0:H=Z;break;case 1:H=1+Z;break;case 2:H=2+Z;break;case 3:H=3+Z;break;case 4:if(!xzk(G)){G=null;break a}H=4+Z;break;case 5:H=xzk(G)?1:0;H=4+Z+H;break;default:G=null;break a}G=G2(G)[H]}return G};
Rso.prototype.getOptions=function(){this.options_==void 0&&(this.options_=su(this,4));return this.options_};var cWh=function(){};
cWh.prototype.parse=function(G,H){return new $B6(G,H===void 0?!1:H)};
var $B6=function(G,H){Rso.call(this,G,H===void 0?!1:H)};
_.T($B6,Rso);_.AB(Tc,cI);var XVt;Tc.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Tc.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var G=Tc.superClass_.build.call(this),H=[];HB(this.parsedImageUrl_)!=null&&H.push(HB(this.parsedImageUrl_));var Z=APA(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var Q=this.parsedImageUrl_;Q.obfuscatedData_==void 0&&(Q.obfuscatedData_=su(Q,6));H.push(Q.obfuscatedData_+(G?"="+G:""))}else if(Z){Q=H.push;var p=this.parsedImageUrl_;p.freeformUrlPath_===void 0&&(p.freeformUrlPath_=su(p,
7));Q.call(H,p.freeformUrlPath_);G&&H.push(G)}else Q=H.push,p=this.parsedImageUrl_,p.obfuscatedGaiaId_==void 0&&(p.obfuscatedGaiaId_=su(p,0)),Q.call(H,p.obfuscatedGaiaId_),Q=H.push,p=this.parsedImageUrl_,p.photoId_==void 0&&(p.photoId_=su(p,1)),Q.call(H,p.photoId_),Q=H.push,p=this.parsedImageUrl_,p.imageVersion_==void 0&&(p.imageVersion_=su(p,2)),Q.call(H,p.imageVersion_),Q=H.push,p=this.parsedImageUrl_,p.signature_==void 0&&(p.signature_=su(p,3)),Q.call(H,p.signature_),G&&H.push(G),G=H.push,Q=this.parsedImageUrl_,
Q.filename_==void 0&&(Q.filename_=su(Q,5)),G.call(H,Q.filename_);H=Z?H.join("="):H.join("/");H=_.HS(this.protocolPrefix_+this.JSC$19909_domain_+"/"+H+(this.JSC$19909_query_?"?"+this.JSC$19909_query_:"")).toString();H.startsWith("%3a//")&&(H=H.replace("%3a//","://"));return H};var Ldo=_.CM(["viewBox"]),E98=_.CM(["width"]),Ygh=_.CM(["height"]),FdD=_.CM(["fill"]),bQa=_.CM(["id"]),GPi=_.CM(["x"]),H2k=_.CM(["y"]);fqq.prototype.getLength=function(){return this.parsedData.length};
fqq.prototype.write=function(G){for(var H=0,Z=this.parsedData.length;H<Z;H++)G.put(this.parsedData[H],8)};
var PPt=function(G,H){var Z=new fqq(H);G.dataList.push(Z);Z=G.errorCorrectLevel;var Q=1,p=encodeURI(H).toString().replace(/%[0-9a-fA-F]{2}/g,"a");H=p.length+(p.length!=H?3:0);p=0;for(var l=ZX.length;p<=l;p++){var q=0;switch(Z){case 1:q=ZX[p][0];break;case 0:q=ZX[p][1];break;case 3:q=ZX[p][2];break;case 2:q=ZX[p][3]}if(H<=q)break;else Q++}if(Q>ZX.length)throw Error("Rk");G.typeNumber=Q;G.dataCache=null};
vXh.prototype.isDark=function(G,H){if(G<0||this.moduleCount<=G||H<0||this.moduleCount<=H)throw Error("Jk`"+G+"`"+H);return this.modules[G][H]};
for(var rWs=function(G,H,Z){G.moduleCount=G.typeNumber*4+17;G.modules=Array(G.moduleCount);for(var Q=0;Q<G.moduleCount;Q++){G.modules[Q]=Array(G.moduleCount);for(var p=0;p<G.moduleCount;p++)G.modules[Q][p]=null}sT8(G,0,0);sT8(G,G.moduleCount-7,0);sT8(G,0,G.moduleCount-7);Q=Z2q[G.typeNumber-1];for(p=0;p<Q.length;p++)for(var l=0;l<Q.length;l++){var q=Q[p],u=Q[l];if(G.modules[q][u]==null)for(var B=-2;B<=2;B++)for(var t=-2;t<=2;t++)G.modules[q+B][u+t]=B==-2||B==2||t==-2||t==2||B==0&&t==0?!0:!1}for(Q=
8;Q<G.moduleCount-8;Q++)G.modules[Q][6]==null&&(G.modules[Q][6]=Q%2==0);for(Q=8;Q<G.moduleCount-8;Q++)G.modules[6][Q]==null&&(G.modules[6][Q]=Q%2==0);Q=G.errorCorrectLevel<<3|Z;for(p=Q<<10;Qv(p)-Qv(1335)>=0;)p^=1335<<Qv(p)-Qv(1335);Q=(Q<<10|p)^21522;for(p=0;p<15;p++)l=!H&&(Q>>p&1)==1,p<6?G.modules[p][8]=l:p<8?G.modules[p+1][8]=l:G.modules[G.moduleCount-15+p][8]=l;for(p=0;p<15;p++)l=!H&&(Q>>p&1)==1,p<8?G.modules[8][G.moduleCount-p-1]=l:p<9?G.modules[8][15-p-1+1]=l:G.modules[8][15-p-1]=l;G.modules[G.moduleCount-
8][8]=!H;if(G.typeNumber>=7){Q=G.typeNumber;for(p=Q<<12;Qv(p)-Qv(7973)>=0;)p^=7973<<Qv(p)-Qv(7973);Q=Q<<12|p;for(p=0;p<18;p++)l=!H&&(Q>>p&1)==1,G.modules[Math.floor(p/3)][p%3+G.moduleCount-8-3]=l;for(p=0;p<18;p++)l=!H&&(Q>>p&1)==1,G.modules[p%3+G.moduleCount-8-3][Math.floor(p/3)]=l}if(G.dataCache==null){p=G.typeNumber;l=G.dataList;H=G.errorCorrectLevel;Q=QTL(p,H);if(Q==void 0)throw Error("Qk`"+p+"`"+H);q=Q.length/3;H=[];for(u=0;u<q;u++){B=Q[u*3];t=Q[u*3+1];for(var D=Q[u*3+2],d=0;d<B;d++)H.push(new Wwt(t,
D))}Q=new z3m;for(q=0;q<l.length;q++)u=l[q],Q.put(u.mode,4),Q.put(u.getLength(),p9o(u.mode,p)),u.write(Q);for(q=p=0;q<H.length;q++)p+=H[q].dataCount;if(Q.length>p*8)throw Error("Kk`"+Q.length+"`"+p*8);for(Q.length+4<=p*8&&Q.put(0,4);Q.length%8!=0;)lOi(Q,!1);for(;!(Q.length>=p*8);){Q.put(236,8);if(Q.length>=p*8)break;Q.put(17,8)}l=p=t=0;q=Array(H.length);u=Array(H.length);for(B=0;B<H.length;B++){d=H[B].dataCount;var e=H[B].totalCount-d;p=Math.max(p,d);l=Math.max(l,e);q[B]=Array(d);for(D=0;D<q[B].length;D++)q[B][D]=
255&Q.buffer[D+t];t+=d;D=e;d=new fZ([1],0);for(e=0;e<D;e++)d=d.multiply(new fZ([1,gyt(e)],0));D=d;d=(new fZ(q[B],D.getLength()-1)).mod(D);u[B]=Array(D.getLength()-1);for(D=0;D<u[B].length;D++)e=D+d.getLength()-u[B].length,u[B][D]=e>=0?d.get(e):0}for(D=Q=0;D<H.length;D++)Q+=H[D].totalCount;Q=Array(Q);for(D=t=0;D<p;D++)for(B=0;B<H.length;B++)D<q[B].length&&(Q[t++]=q[B][D]);for(D=0;D<l;D++)for(B=0;B<H.length;B++)D<u[B].length&&(Q[t++]=u[B][D]);G.dataCache=Q}H=G.dataCache;Q=-1;p=G.moduleCount-1;l=7;q=
0;for(u=G.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(B=0;B<2;B++)G.modules[p][u-B]==null&&(t=!1,q<H.length&&(t=(H[q]>>>l&1)==1),IOq(Z,p,u-B)&&(t=!t),G.modules[p][u-B]=t,l--,l==-1&&(q++,l=7));p+=Q;if(p<0||G.moduleCount<=p){p-=Q;Q=-Q;break}}},sT8=function(G,H,Z){for(var Q=-1;Q<=7;Q++)if(!(H+Q<=-1||G.moduleCount<=H+Q))for(var p=-1;p<=7;p++)Z+p<=-1||G.moduleCount<=Z+p||(G.modules[H+Q][Z+p]=0<=Q&&Q<=6&&(p==0||p==6)||0<=p&&p<=6&&(Q==0||Q==6)||2<=Q&&Q<=4&&2<=p&&p<=4?!0:!1)},wVD=function(G){for(var H=0,
Z=0,Q=0;Q<8;Q++){rWs(G,!0,Q);
var p=G;for(var l=p.moduleCount,q=0,u=0;u<l;u++)for(var B=0;B<l;B++){for(var t=0,D=p.isDark(u,B),d=-1;d<=1;d++)if(!(u+d<0||l<=u+d))for(var e=-1;e<=1;e++)B+e<0||l<=B+e||(d!=0||e!=0)&&D==p.isDark(u+d,B+e)&&t++;t>5&&(q+=3+t-5)}for(u=0;u<l-1;u++)for(B=0;B<l-1;B++)if(t=0,p.isDark(u,B)&&t++,p.isDark(u+1,B)&&t++,p.isDark(u,B+1)&&t++,p.isDark(u+1,B+1)&&t++,t==0||t==4)q+=3;for(u=0;u<l;u++)for(B=0;B<l-6;B++)p.isDark(u,B)&&!p.isDark(u,B+1)&&p.isDark(u,B+2)&&p.isDark(u,B+3)&&p.isDark(u,B+4)&&!p.isDark(u,B+5)&&
p.isDark(u,B+6)&&(q+=40);for(B=0;B<l;B++)for(u=0;u<l-6;u++)p.isDark(u,B)&&!p.isDark(u+1,B)&&p.isDark(u+2,B)&&p.isDark(u+3,B)&&p.isDark(u+4,B)&&!p.isDark(u+5,B)&&p.isDark(u+6,B)&&(q+=40);for(B=t=0;B<l;B++)for(u=0;u<l;u++)p.isDark(u,B)&&t++;p=q+=Math.abs(100*t/l/l-50)/5*10;if(Q==0||H>p)H=p,Z=Q}return Z},Z2q=[[],
[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]],Qv=function(G){for(var H=0;G!=0;)H++,G>>>=1;return H},IOq=function(G,H,Z){switch(G){case 0:return(H+Z)%2==0;
case 1:return H%2==0;case 2:return Z%3==0;case 3:return(H+Z)%3==0;case 4:return(Math.floor(H/2)+Math.floor(Z/3))%2==0;case 5:return H*Z%2+H*Z%3==0;case 6:return(H*Z%2+H*Z%3)%2==0;case 7:return(H*Z%3+(H+Z)%2)%2==0;default:throw Error("Lk`"+G);}},p9o=function(G,H){if(1<=H&&H<10)switch(G){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Mk`"+G);}else if(H<27)switch(G){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Mk`"+G);}else if(H<41)switch(G){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Mk`"+G);}else throw Error("Nk`"+H);},Srs=function(G){if(G<1)throw Error("Ok`"+G);
return qrq[G]},gyt=function(G){for(;G<0;)G+=255;
for(;G>=256;)G-=255;return pU[G]},pU=Array(256),qrq=Array(256),uej=0;uej<8;uej++)pU[uej]=1<<uej;
for(var l9=8;l9<256;l9++)pU[l9]=pU[l9-4]^pU[l9-5]^pU[l9-6]^pU[l9-8];for(var BWh=0;BWh<255;BWh++)qrq[pU[BWh]]=BWh;fZ.prototype.get=function(G){return this.num[G]};
fZ.prototype.getLength=function(){return this.num.length};
fZ.prototype.multiply=function(G){for(var H=Array(this.getLength()+G.getLength()-1),Z=0;Z<this.getLength();Z++)for(var Q=0;Q<G.getLength();Q++)H[Z+Q]^=gyt(Srs(this.get(Z))+Srs(G.get(Q)));return new fZ(H,0)};
fZ.prototype.mod=function(G){if(this.getLength()-G.getLength()<0)return this;for(var H=Srs(this.get(0))-Srs(G.get(0)),Z=Array(this.getLength()),Q=0;Q<this.getLength();Q++)Z[Q]=this.get(Q);for(Q=0;Q<G.getLength();Q++)Z[Q]^=gyt(Srs(G.get(Q))+H);return(new fZ(Z,0)).mod(G)};
var J98=[[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]],QTL=function(G,H){switch(H){case 1:return J98[(G-1)*4];case 0:return J98[(G-1)*4+1];case 3:return J98[(G-1)*4+2];case 2:return J98[(G-1)*4+3]}};
z3m.prototype.get=function(G){return(this.buffer[Math.floor(G/8)]>>>7-G%8&1)==1};
z3m.prototype.put=function(G,H){for(var Z=0;Z<H;Z++)lOi(this,(G>>>H-Z-1&1)==1)};
var lOi=function(G,H){var Z=Math.floor(G.length/8);G.buffer.length<=Z&&G.buffer.push(0);H&&(G.buffer[Z]|=128>>>G.length%8);G.length++},ZX=[[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]],jSD=function(){var G=function(H,Z){this.JSC$19929__el=H;this.JSC$19929__htOption=Z};
G.prototype.draw=function(H){function Z(D,d){D=document.createElementNS("http://www.w3.org/2000/svg",D);for(var e in d)d.hasOwnProperty(e)&&(e==="href"?_.X$A(D,d[e]):_.q_([_.et(Ldo),_.et(E98),_.et(Ygh),_.et(FdD),_.et(bQa),_.et(GPi),_.et(H2k)],D,e,d[e]));return D}
var Q=this.JSC$19929__htOption,p=this.JSC$19929__el,l=H.moduleCount;this.clear();var q=Z("svg",{viewBox:"0 0 "+String(l)+" "+String(l),width:"100%",height:"100%",fill:Q.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});p.appendChild(q);q.appendChild(Z("rect",{fill:Q.colorLight,width:"100%",height:"100%"}));q.appendChild(Z("rect",{fill:Q.colorDark,width:"1",height:"1",id:"template"}));for(var u=0;u<l;u++)for(var B=0;B<l;B++)if(H.isDark(u,B)){var t=Z("use",{x:String(u),y:String(B),href:"#template"});
q.appendChild(t)}};
G.prototype.clear=function(){for(;this.JSC$19929__el.hasChildNodes();)this.JSC$19929__el.removeChild(this.JSC$19929__el.lastChild)};
return G}(),MPq=document.documentElement.tagName.toLowerCase()==="svg"?jSD:typeof CanvasRenderingContext2D!="undefined"?function(){var G=function(H,Z){this._bIsPainted=!1;
Kwq();this.JSC$19929__htOption=Z;this._elCanvas=document.createElement("canvas");this._elCanvas.width=Z.width;this._elCanvas.height=Z.height;H.appendChild(this._elCanvas);this.JSC$19929__el=H;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$19929__el.appendChild(this._elImage);this._bSupportDataURI=null};
G.prototype._onMakeImage=function(){var H=this._elCanvas.toDataURL("image/png");this._elImage.src=H;this._elImage.style.display="block";this._elCanvas.style.display="none"};
G.prototype._safeSetDataURI=function(H,Z){var Q=this;Q._fFail=Z;Q._fSuccess=H;Q._bSupportDataURI===null?(H=_.z$("IMG"),Z=function(){Q._bSupportDataURI=!1;Q._fFail&&Q._fFail.call(Q)},H.onabort=Z,H.onerror=Z,H.onload=function(){Q._bSupportDataURI=!0;
Q._fSuccess&&Q._fSuccess.call(Q)},H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):Q._bSupportDataURI===!0&&Q._fSuccess?Q._fSuccess.call(Q):Q._bSupportDataURI===!1&&Q._fFail&&Q._fFail.call(Q)};
G.prototype.draw=function(H){var Z=this._oContext,Q=this.JSC$19929__htOption,p=H.moduleCount,l=Q.width/p,q=Q.height/p,u=Math.round(l),B=Math.round(q);this._elImage.style.display="none";this.clear();for(var t=0;t<p;t++)for(var D=0;D<p;D++){var d=H.isDark(t,D),e=D*l,n=t*q;Z.strokeStyle=d?Q.colorDark:Q.colorLight;Z.lineWidth=1;Z.fillStyle=d?Q.colorDark:Q.colorLight;Z.fillRect(e,n,l,q);Z.strokeRect(Math.floor(e)+.5,Math.floor(n)+.5,u,B);Z.strokeRect(Math.ceil(e)-.5,Math.ceil(n)-.5,u,B)}this._bIsPainted=
!0};
G.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
G.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
G.prototype.round=function(H){return H?Math.floor(H*1E3)/1E3:H};
return G}():function(){var G=function(H,Z){this.JSC$19929__el=H;
this.JSC$19929__htOption=Z};
G.prototype.draw=function(H){for(var Z=this.JSC$19929__htOption,Q=this.JSC$19929__el,p=H.moduleCount,l=Math.floor(Z.width/p),q=Math.floor(Z.height/p),u=['<table style="border:0;border-collapse:collapse;">'],B=0;B<p;B++){u.push("<tr>");for(var t=0;t<p;t++)u.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+l+"px;height:"+q+"px;background-color:"+(H.isDark(B,t)?Z.colorDark:Z.colorLight)+';"></td>');u.push("</tr>")}u.push("</table>");H=u.join("");H=_.x_t(_.Ebw,H);_.Is(Q,H);
H=Q.childNodes[0];p=(Z.width-H.offsetWidth)/2;l=(Z.height-H.offsetHeight)/2;p>0&&l>0&&(H.style.margin=l+"px "+p+"px")};
G.prototype.clear=function(){this.JSC$19929__el.textContent=""};
return G}();
h3h.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19932__android||this.JSC$19932__android>=3)&&this._oDrawing.makeImage()};
h3h.prototype.clear=function(){this._oDrawing.clear()};
_.Qf.QRCode=h3h;var t5a={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var kPk=function(){};
kPk.prototype.stringify=function(G){return _.Qf.JSON.stringify(G,void 0)};
kPk.prototype.parse=function(G){return _.Qf.JSON.parse(G,void 0)};var DPt=function(){_.DA.call(this,"z")};
_.AB(DPt,_.DA);var dPo=function(){_.DA.call(this,"y")};
_.AB(dPo,_.DA);var eBm=null,nyq=function(){return eBm=eBm||new _.$f},V5L=function(G){_.DA.call(this,"serverreachability",G)};
_.AB(V5L,_.DA);var $Pk=function(G){var H=nyq();H.dispatchEvent(new V5L(H,G))},X9c=function(G,H){_.DA.call(this,"statevent",G);
this.stat=H};
_.AB(X9c,_.DA);var g9=function(G){var H=nyq();H.dispatchEvent(new X9c(H,G))},c9i=function(G,H,Z,Q){_.DA.call(this,"timingevent",G);
this.size=H;this.rtt=Z;this.retries=Q};
_.AB(c9i,_.DA);var TWA=function(G,H,Z){var Q=nyq();Q.dispatchEvent(new c9i(Q,G,H,Z))},fOA=function(G,H){if(typeof G!=="function")throw Error("Sk");
return _.Qf.setTimeout(function(){G()},H)};var IY=function(){this.redactEnabled_=!0};
IY.prototype.disableRedact=function(){this.redactEnabled_=!1};
var vyi=function(G,H,Z,Q,p,l){G.info(function(){if(G.redactEnabled_)if(l){var q="";for(var u=l.split("&"),B=0;B<u.length;B++){var t=u[B].split("=");if(t.length>1){var D=t[0];t=t[1];var d=D.split("_");q=d.length>=2&&d[1]=="type"?q+(D+"="+t+"&"):q+(D+"=redacted&")}}}else q=null;else q=l;return"XMLHTTP REQ ("+Q+") [attempt "+p+"]: "+H+"\n"+Z+"\n"+q})},W$h=function(G,H,Z,Q,p,l,q){G.info(function(){return"XMLHTTP RESP ("+Q+") [ attempt "+p+"]: "+H+"\n"+Z+"\n"+l+" "+q})},qS=function(G,H,Z,Q){G.info(function(){return"XMLHTTP TEXT ("+
H+"): "+zBm(G,Z)+(Q?" "+Q:"")})},K$h=function(G,H){G.info(function(){return"TIMEOUT: "+H})};
IY.prototype.debug=function(){};
IY.prototype.info=function(){};
IY.prototype.warning=function(){};
var zBm=function(G,H){if(!G.redactEnabled_)return H;if(!H)return null;try{var Z=JSON.parse(H);if(Z)for(var Q=0;Q<Z.length;Q++)if(Array.isArray(Z[Q])){var p=Z[Q];if(!(p.length<2)){var l=p[1];if(Array.isArray(l)&&!(l.length<1)){var q=l[0];if(q!="noop"&&q!="stop"&&q!="close")for(var u=1;u<l.length;u++)l[u]=""}}}return(0,_.zw)(Z)}catch(B){return G.debug("Exception parsing expected JS array - probably was not JS"),H}};var Sm=function(G,H,Z,Q,p){this.JSC$19954_channel_=G;this.JSC$19954_channelDebug_=H;this.sid_=Z;this.JSC$19954_rid_=Q;this.JSC$19954_retryId_=p||1;this.JSC$19954_eventHandler_=new _.en(this);this.timeout_=45E3;this.JSC$19954_extraHeaders_=null;this.JSC$19954_successful_=!1;this.JSC$19954_postData_=this.JSC$19954_requestUri_=this.JSC$19954_baseUri_=this.JSC$19954_type_=this.JSC$19954_requestStartTime_=this.JSC$19954_watchDogTimeoutTime_=this.JSC$19954_watchDogTimerId_=null;this.JSC$19954_pendingMessages_=
[];this.JSC$19954_xmlHttp_=null;this.JSC$19954_xmlHttpChunkStart_=0;this.JSC$19954_lastError_=this.JSC$19954_verb_=null;this.JSC$19954_lastStatusCode_=-1;this.JSC$19954_cancelled_=!1;this.JSC$19954_readyStateChangeThrottleMs_=0;this.JSC$19954_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new M5a},M5a=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},jTs=function(G,H){switch(G){case 0:return"Non-200 return code ("+H+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},P3t={},r9s={};
Sm.prototype.setTimeout=function(G){this.timeout_=G};
var hBs=function(G,H,Z){G.JSC$19954_type_=1;G.JSC$19954_baseUri_=_.gs(H.clone());G.JSC$19954_postData_=Z;G.decodeChunks_=!0;w9h(G,null)},w9h=function(G,H){G.JSC$19954_requestStartTime_=Date.now();
C3k(G);G.JSC$19954_requestUri_=G.JSC$19954_baseUri_.clone();uQL(G.JSC$19954_requestUri_,"t",G.JSC$19954_retryId_);G.JSC$19954_xmlHttpChunkStart_=0;var Z=G.JSC$19954_channel_.JSC$19973_supportsCrossDomainXhrs_;G.fetchResponseState_=new M5a;G.JSC$19954_xmlHttp_=i2L(G.JSC$19954_channel_,Z?H:null,!G.JSC$19954_postData_);G.JSC$19954_readyStateChangeThrottleMs_>0&&(G.JSC$19954_readyStateChangeThrottle_=new _.Zo((0,_.Cu)(G.JSC$19958_xmlHttpHandler_,G,G.JSC$19954_xmlHttp_),G.JSC$19954_readyStateChangeThrottleMs_));
G.JSC$19954_eventHandler_.listen(G.JSC$19954_xmlHttp_,"readystatechange",G.JSC$19958_readyStateChangeHandler_);H=G.JSC$19954_extraHeaders_?_.oN.clone(G.JSC$19954_extraHeaders_):{};G.JSC$19954_postData_?(G.JSC$19954_verb_||(G.JSC$19954_verb_="POST"),H["Content-Type"]="application/x-www-form-urlencoded",G.JSC$19954_xmlHttp_.send(G.JSC$19954_requestUri_,G.JSC$19954_verb_,G.JSC$19954_postData_,H)):(G.JSC$19954_verb_="GET",G.JSC$19954_xmlHttp_.send(G.JSC$19954_requestUri_,G.JSC$19954_verb_,null,H));$Pk(1);
vyi(G.JSC$19954_channelDebug_,G.JSC$19954_verb_,G.JSC$19954_requestUri_,G.JSC$19954_rid_,G.JSC$19954_retryId_,G.JSC$19954_postData_)};
Sm.prototype.JSC$19958_readyStateChangeHandler_=function(G){G=G.target;var H=this.JSC$19954_readyStateChangeThrottle_;H&&_.Mn(G)==3?(this.JSC$19954_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19958_xmlHttpHandler_(G)};
Sm.prototype.JSC$19958_xmlHttpHandler_=function(G){try{G==this.JSC$19954_xmlHttp_?O2m(this):this.JSC$19954_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(H){this.JSC$19954_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),aOt(this)}finally{}};
var O2m=function(G){var H=_.Mn(G.JSC$19954_xmlHttp_),Z=G.JSC$19954_xmlHttp_.JSC$9805_lastErrorCode_,Q=G.JSC$19954_xmlHttp_.getStatus();if(!(H<3||H==3&&!aOt(G))){G.JSC$19954_cancelled_||H!=4||Z==7||(Z==8||Q<=0?$Pk(3):$Pk(2));y9m(G);var p=G.JSC$19954_xmlHttp_.getStatus();G.JSC$19954_lastStatusCode_=p;Z=oyL(G);aOt(G)||G.JSC$19954_channelDebug_.debug(function(){return"No response text for uri "+G.JSC$19954_requestUri_+" status "+p});
G.JSC$19954_successful_=p==200;W$h(G.JSC$19954_channelDebug_,G.JSC$19954_verb_,G.JSC$19954_requestUri_,G.JSC$19954_rid_,G.JSC$19954_retryId_,H,p);if(G.JSC$19954_successful_){if(G.decodeInitialResponse_&&!G.initialResponseDecoded_)if(Q=mPA(G))qS(G.JSC$19954_channelDebug_,G.JSC$19954_rid_,Q,"Initial handshake response via X-HTTP-Initial-Response"),G.initialResponseDecoded_=!0,UPD(G,Q);else{G.JSC$19954_successful_=!1;G.JSC$19954_lastError_=3;g9(12);G.JSC$19954_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
G.JSC$19954_rid_+")");u9(G);RB8(G);return}G.decodeChunks_?NWL(G,H,Z):(qS(G.JSC$19954_channelDebug_,G.JSC$19954_rid_,Z,null),UPD(G,Z));H==4&&u9(G);G.JSC$19954_successful_&&!G.JSC$19954_cancelled_&&(H==4?A9s(G.JSC$19954_channel_,G):(G.JSC$19954_successful_=!1,C3k(G)))}else qxL(G.JSC$19954_xmlHttp_),p==400&&Z.indexOf("Unknown SID")>0?(G.JSC$19954_lastError_=3,g9(12),G.JSC$19954_channelDebug_.warning("XMLHTTP Unknown SID ("+G.JSC$19954_rid_+")")):(G.JSC$19954_lastError_=0,g9(13),G.JSC$19954_channelDebug_.warning("XMLHTTP Bad status "+
p+" ("+G.JSC$19954_rid_+")")),u9(G),RB8(G)}},mPA=function(G){return G.JSC$19954_xmlHttp_&&(G=tb(G.JSC$19954_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.ue(G)?G:null},oyL=function(G){if(!xPA(G))return G.JSC$19954_xmlHttp_.getResponseText();
var H=G.JSC$19954_xmlHttp_.getResponse();if(H==="")return"";var Z="",Q=H.length,p=_.Mn(G.JSC$19954_xmlHttp_)==4;if(!G.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return u9(G),RB8(G),"";G.fetchResponseState_.textDecoder=new _.Qf.TextDecoder}for(var l=0;l<Q;l++)G.fetchResponseState_.responseArrivedForFetch=!0,Z+=G.fetchResponseState_.textDecoder.decode(H[l],{stream:!(p&&l==Q-1)});H.length=0;G.fetchResponseState_.responseBuffer+=Z;G.JSC$19954_xmlHttpChunkStart_=0;return G.fetchResponseState_.responseBuffer},
aOt=function(G){return G.JSC$19954_xmlHttp_?G.fetchResponseState_.responseArrivedForFetch?!0:!(!G.JSC$19954_xmlHttp_.getResponseText()&&!G.JSC$19954_xmlHttp_.getResponse()):!1},xPA=function(G){return G.JSC$19954_xmlHttp_?G.JSC$19954_verb_=="GET"&&G.JSC$19954_type_!=2&&G.JSC$19954_channel_.usesFetchStreams_:!1},NWL=function(G,H,Z){for(var Q=!0,p;!G.JSC$19954_cancelled_&&G.JSC$19954_xmlHttpChunkStart_<Z.length;)if(p=L$A(G,Z),p==r9s){H==4&&(G.JSC$19954_lastError_=4,g9(14),Q=!1);
qS(G.JSC$19954_channelDebug_,G.JSC$19954_rid_,null,"[Incomplete Response]");break}else if(p==P3t){G.JSC$19954_lastError_=4;g9(15);qS(G.JSC$19954_channelDebug_,G.JSC$19954_rid_,Z,"[Invalid Chunk]");Q=!1;break}else qS(G.JSC$19954_channelDebug_,G.JSC$19954_rid_,p,null),UPD(G,p);xPA(G)&&G.JSC$19954_xmlHttpChunkStart_!=0&&(G.fetchResponseState_.responseBuffer=G.fetchResponseState_.responseBuffer.slice(G.JSC$19954_xmlHttpChunkStart_),G.JSC$19954_xmlHttpChunkStart_=0);H!=4||Z.length!=0||G.fetchResponseState_.responseArrivedForFetch||
(G.JSC$19954_lastError_=1,g9(16),Q=!1);G.JSC$19954_successful_=G.JSC$19954_successful_&&Q;Q?Z.length>0&&!G.firstByteReceived_&&(G.firstByteReceived_=!0,H=G.JSC$19954_channel_,H.JSC$19973_backChannelRequest_==G&&H.detectBufferingProxy_&&!H.bpDetectionDone_&&(H.JSC$19973_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+Z.length),EyA(H),H.bpDetectionDone_=!0,g9(11))):(qS(G.JSC$19954_channelDebug_,G.JSC$19954_rid_,Z,"[Invalid Chunked Response]"),u9(G),RB8(G))},L$A=function(G,
H){var Z=G.JSC$19954_xmlHttpChunkStart_,Q=H.indexOf("\n",Z);
if(Q==-1)return r9s;Z=Number(H.substring(Z,Q));if(isNaN(Z))return P3t;Q+=1;if(Q+Z>H.length)return r9s;H=H.slice(Q,Q+Z);G.JSC$19954_xmlHttpChunkStart_=Q+Z;return H};
Sm.prototype.cancel=function(){this.JSC$19954_cancelled_=!0;u9(this)};
var C3k=function(G){G.JSC$19954_watchDogTimeoutTime_=Date.now()+G.timeout_;Yrk(G,G.timeout_)},Yrk=function(G,H){if(G.JSC$19954_watchDogTimerId_!=null)throw Error("Tk");
G.JSC$19954_watchDogTimerId_=fOA((0,_.Cu)(G.JSC$19958_onWatchDogTimeout_,G),H)},y9m=function(G){G.JSC$19954_watchDogTimerId_&&(_.Qf.clearTimeout(G.JSC$19954_watchDogTimerId_),G.JSC$19954_watchDogTimerId_=null)};
Sm.prototype.JSC$19958_onWatchDogTimeout_=function(){this.JSC$19954_watchDogTimerId_=null;var G=Date.now();G-this.JSC$19954_watchDogTimeoutTime_>=0?(K$h(this.JSC$19954_channelDebug_,this.JSC$19954_requestUri_),this.JSC$19954_type_!=2&&($Pk(3),g9(17)),u9(this),this.JSC$19954_lastError_=2,RB8(this)):(this.JSC$19954_channelDebug_.warning("WatchDog timer called too early"),Yrk(this,this.JSC$19954_watchDogTimeoutTime_-G))};
var RB8=function(G){G.JSC$19954_channel_.state_==0||G.JSC$19954_cancelled_||A9s(G.JSC$19954_channel_,G)},u9=function(G){y9m(G);
_.S_(G.JSC$19954_readyStateChangeThrottle_);G.JSC$19954_readyStateChangeThrottle_=null;G.JSC$19954_eventHandler_.removeAll();if(G.JSC$19954_xmlHttp_){var H=G.JSC$19954_xmlHttp_;G.JSC$19954_xmlHttp_=null;H.abort();H.dispose()}};
Sm.prototype.getLastError=function(){return this.JSC$19954_lastError_};
var UPD=function(G,H){try{var Z=G.JSC$19954_channel_;if(Z.state_!=0&&(Z.JSC$19973_backChannelRequest_==G||F$o(Z.forwardChannelRequestPool_,G)))if(!G.initialResponseDecoded_&&F$o(Z.forwardChannelRequestPool_,G)&&Z.state_==3){try{var Q=Z.wireCodec_.JSC$19968_parser_.parse(H)}catch(u){Q=null}if(Array.isArray(Q)&&Q.length==3){H=Q;if(H[0]==0)a:if(Z.JSC$19973_channelDebug_.debug("Server claims our backchannel is missing."),Z.JSC$19973_backChannelTimerId_)Z.JSC$19973_channelDebug_.debug("But we are currently starting the request.");
else{if(Z.JSC$19973_backChannelRequest_)if(Z.JSC$19973_backChannelRequest_.JSC$19954_requestStartTime_+3E3<G.JSC$19954_requestStartTime_)b26(Z),Gp8(Z);else break a;else Z.JSC$19973_channelDebug_.warning("We do not have a BackChannel established");Hiq(Z);g9(18)}else{Z.JSC$19973_lastPostResponseArrayId_=H[1];var p=Z.JSC$19973_lastPostResponseArrayId_-Z.JSC$19973_lastArrayId_;if(0<p){var l=H[2];Z.JSC$19973_channelDebug_.debug(l+" bytes (in "+p+" arrays) are outstanding on the BackChannel");l<37500&&
Z.enableStreaming_&&Z.JSC$19973_backChannelRetryCount_==0&&!Z.JSC$19973_deadBackChannelTimerId_&&(Z.JSC$19973_deadBackChannelTimerId_=fOA((0,_.Cu)(Z.JSC$19975_onBackChannelDead_,Z),6E3))}}if(sik(Z.forwardChannelRequestPool_)<=1&&Z.forwardChannelFlushedCallback_){try{Z.forwardChannelFlushedCallback_()}catch(u){}Z.forwardChannelFlushedCallback_=void 0}}else Z.JSC$19973_channelDebug_.debug("Bad POST response data returned"),BB(Z,11)}else if((G.initialResponseDecoded_||Z.JSC$19973_backChannelRequest_==
G)&&b26(Z),!_.ue(H)){var q=Z.wireCodec_.JSC$19968_parser_.parse(H);Z.onInput_(q,G)}$Pk(4)}catch(u){}};var Zio=function(G,H){this.JSC$19961_mapId=G;this.map=H;this.context=null};var QiA=function(G){this.maxPoolSizeConfigured_=G||10;_.Qf.PerformanceNavigationTiming?(G=_.Qf.performance.getEntriesByType("navigation"),G=G.length>0&&(G[0].nextHopProtocol=="hq"||G[0].nextHopProtocol=="h2")):G=!!(_.Qf.chrome&&_.Qf.chrome.loadTimes&&_.Qf.chrome.loadTimes()&&_.Qf.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19964_maxSize_=G?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19964_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19964_request_=null;this.JSC$19964_pendingMessages_=
[]},pYD=function(G){return G.JSC$19964_request_?!0:G.requestPool_?G.requestPool_.size>=G.JSC$19964_maxSize_:!1},sik=function(G){return G.JSC$19964_request_?1:G.requestPool_?G.requestPool_.size:0},F$o=function(G,H){return G.JSC$19964_request_?G.JSC$19964_request_==H:G.requestPool_?G.requestPool_.has(H):!1},l7k=function(G,H){G.requestPool_?G.requestPool_.add(H):G.JSC$19964_request_=H},ggt=function(G,H){G.JSC$19964_request_&&G.JSC$19964_request_==H?G.JSC$19964_request_=null:G.requestPool_&&G.requestPool_.has(H)&&
G.requestPool_.delete(H)};
QiA.prototype.cancel=function(){this.JSC$19964_pendingMessages_=I7A(this);if(this.JSC$19964_request_)this.JSC$19964_request_.cancel(),this.JSC$19964_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var G=_.I(this.requestPool_.values()),H=G.next();!H.done;H=G.next())H.value.cancel();this.requestPool_.clear()}};
var I7A=function(G){if(G.JSC$19964_request_!=null)return G.JSC$19964_pendingMessages_.concat(G.JSC$19964_request_.JSC$19954_pendingMessages_);if(G.requestPool_!=null&&G.requestPool_.size!==0){var H=G.JSC$19964_pendingMessages_;G=_.I(G.requestPool_.values());for(var Z=G.next();!Z.done;Z=G.next())H=H.concat(Z.value.JSC$19954_pendingMessages_);return H}return _.mv(G.JSC$19964_pendingMessages_)},qMi=function(G,H){G.JSC$19964_pendingMessages_=G.JSC$19964_pendingMessages_.concat(H)};var SMs=function(G,H){var Z=new IY;Z.debug("TestLoadImage: loading "+G);if(_.Qf.Image){var Q=new Image;Q.onload=_.po(JF,Z,"TestLoadImage: loaded",!0,H,Q);Q.onerror=_.po(JF,Z,"TestLoadImage: error",!1,H,Q);Q.onabort=_.po(JF,Z,"TestLoadImage: abort",!1,H,Q);Q.ontimeout=_.po(JF,Z,"TestLoadImage: timeout",!1,H,Q);_.Qf.setTimeout(function(){if(Q.ontimeout)Q.ontimeout()},1E4);
Q.src=G}else H(!1)},uYo=function(G,H){var Z=new IY,Q=new AbortController,p=setTimeout(function(){Q.abort();
JF(Z,"TestPingServer: timeout",!1,H)},1E4);
fetch(G,{signal:Q.signal}).then(function(l){clearTimeout(p);l.ok?JF(Z,"TestPingServer: ok",!0,H):JF(Z,"TestPingServer: server error",!1,H)}).catch(function(){clearTimeout(p);
JF(Z,"TestPingServer: error",!1,H)})},JF=function(G,H,Z,Q,p){try{G.debug(H),p&&(p.onload=null,p.onerror=null,p.onabort=null,p.ontimeout=null),Q(Z)}catch(l){}};var Bvm=function(){this.JSC$19968_parser_=new kPk};var Jf8=function(G,H,Z){return Z&&Z.internalChannelParams?Z.internalChannelParams[G]||H:H},tF=function(G){this.serverVersion_=0;
this.JSC$19973_outgoingMaps_=[];this.JSC$19973_channelDebug_=new IY;this.JSC$19973_hostPrefix_=this.JSC$19973_backChannelUri_=this.JSC$19973_forwardChannelUri_=this.JSC$19973_path_=this.JSC$19973_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19973_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19973_extraHeaders_=null;this.JSC$19973_nextMapId_=this.JSC$19973_nextRid_=0;this.JSC$19973_failFast_=Jf8("failFast",!1,G);this.enableStreaming_=this.JSC$19973_deadBackChannelTimerId_=
this.JSC$19973_backChannelTimerId_=this.JSC$19973_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19973_lastPostResponseArrayId_=this.JSC$19973_lastArrayId_=-1;this.JSC$19973_backChannelAttemptId_=this.JSC$19973_backChannelRetryCount_=this.JSC$19973_forwardChannelRetryCount_=0;this.JSC$19973_baseRetryDelayMs_=Jf8("baseRetryDelayMs",5E3,G);this.JSC$19973_retryDelaySeedMs_=Jf8("retryDelaySeedMs",1E4,G);this.JSC$19973_forwardChannelMaxRetries_=
Jf8("forwardChannelMaxRetries",2,G);this.JSC$19973_forwardChannelRequestTimeoutMs_=Jf8("forwardChannelRequestTimeoutMs",2E4,G);this.JSC$19973_xmlHttpFactory_=G&&G.xmlHttpFactory||void 0;this.networkTestUrl_=G&&G.networkTestUrl||void 0;this.usesFetchStreams_=G&&G.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19973_supportsCrossDomainXhrs_=G&&G.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new QiA(G&&G.concurrentRequestLimit);this.wireCodec_=new Bvm;
this.fastHandshake_=G&&G.fastHandshake||!1;this.encodeInitMessageHeaders_=G&&G.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19973_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=G&&G.blockingHandshake||!1;G&&G.disableRedact&&this.JSC$19973_channelDebug_.disableRedact();G&&G.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&G&&G.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;G&&G.longPollingTimeout&&G.longPollingTimeout>0&&(this.longPollingTimeout_=G.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
tF.prototype.JSC$19975_channelVersion_=8;tF.prototype.state_=1;
tF.prototype.connect=function(G,H,Z,Q){this.JSC$19973_channelDebug_.debug("connect()");g9(0);this.JSC$19973_path_=G;this.JSC$19973_extraParams_=H||{};Z&&Q!==void 0&&(this.JSC$19973_extraParams_.OSID=Z,this.JSC$19973_extraParams_.OAID=Q);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19973_channelDebug_.debug("connectChannel_()");G=t8L(this,null,this.JSC$19973_path_);this.JSC$19973_channelDebug_.debug("GetForwardChannelUri: "+G);this.JSC$19973_forwardChannelUri_=G;kpa(this)};
tF.prototype.disconnect=function(){this.JSC$19973_channelDebug_.debug("disconnect()");DZj(this);if(this.state_==3){var G=this.JSC$19973_nextRid_++,H=this.JSC$19973_forwardChannelUri_.clone();_.Z0(H,"SID",this.sid_);_.Z0(H,"RID",G);_.Z0(H,"TYPE","terminate");dZt(this,H);G=new Sm(this,this.JSC$19973_channelDebug_,this.sid_,G);G.JSC$19954_type_=2;G.JSC$19954_baseUri_=_.gs(H.clone());H=!1;if(_.Qf.navigator&&_.Qf.navigator.sendBeacon)try{H=_.Qf.navigator.sendBeacon(G.JSC$19954_baseUri_.toString(),"")}catch(Z){}!H&&
_.Qf.Image&&((new Image).src=G.JSC$19954_baseUri_,H=!0);H||(G.JSC$19954_xmlHttp_=i2L(G.JSC$19954_channel_,null),G.JSC$19954_xmlHttp_.send(G.JSC$19954_baseUri_));G.JSC$19954_requestStartTime_=Date.now();C3k(G)}e1j(this)};
var Gp8=function(G){G.JSC$19973_backChannelRequest_&&(EyA(G),G.JSC$19973_backChannelRequest_.cancel(),G.JSC$19973_backChannelRequest_=null)},DZj=function(G){Gp8(G);
G.JSC$19973_backChannelTimerId_&&(_.Qf.clearTimeout(G.JSC$19973_backChannelTimerId_),G.JSC$19973_backChannelTimerId_=null);b26(G);G.forwardChannelRequestPool_.cancel();G.JSC$19973_forwardChannelTimerId_&&(typeof G.JSC$19973_forwardChannelTimerId_==="number"&&_.Qf.clearTimeout(G.JSC$19973_forwardChannelTimerId_),G.JSC$19973_forwardChannelTimerId_=null)};
tF.prototype.getState=function(){return this.state_};
var kpa=function(G){pYD(G.forwardChannelRequestPool_)||G.JSC$19973_forwardChannelTimerId_||(G.JSC$19973_forwardChannelTimerId_=!0,_.cQ(G.JSC$19975_onStartForwardChannelTimer_,G),G.JSC$19973_forwardChannelRetryCount_=0)},V8s=function(G,H){if(sik(G.forwardChannelRequestPool_)>=G.forwardChannelRequestPool_.JSC$19964_maxSize_-(G.JSC$19973_forwardChannelTimerId_?1:0))return!1;
if(G.JSC$19973_forwardChannelTimerId_)return G.JSC$19973_channelDebug_.debug("Use the retry request that is already scheduled."),G.JSC$19973_outgoingMaps_=H.JSC$19954_pendingMessages_.concat(G.JSC$19973_outgoingMaps_),!0;if(G.state_==1||G.state_==2||G.JSC$19973_forwardChannelRetryCount_>=(G.JSC$19973_failFast_?0:G.JSC$19973_forwardChannelMaxRetries_))return!1;G.JSC$19973_channelDebug_.debug("Going to retry POST");G.JSC$19973_forwardChannelTimerId_=fOA((0,_.Cu)(G.JSC$19975_onStartForwardChannelTimer_,
G,H),ngL(G,G.JSC$19973_forwardChannelRetryCount_));G.JSC$19973_forwardChannelRetryCount_++;return!0};
tF.prototype.JSC$19975_onStartForwardChannelTimer_=function(G){if(this.JSC$19973_forwardChannelTimerId_)if(this.JSC$19973_forwardChannelTimerId_=null,this.JSC$19973_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!G){this.JSC$19973_channelDebug_.debug("open_()");this.JSC$19973_nextRid_=Math.floor(Math.random()*1E5);G=this.JSC$19973_nextRid_++;var H=new Sm(this,this.JSC$19973_channelDebug_,"",G),Z=this.JSC$19973_extraHeaders_;this.initHeaders_&&(Z?(Z=_.oN.clone(Z),_.oN.extend(Z,this.initHeaders_)):
Z=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(H.JSC$19954_extraHeaders_=Z,Z=null);var Q;if(this.fastHandshake_)a:{for(var p=Q=0;p<this.JSC$19973_outgoingMaps_.length;p++){b:{var l=this.JSC$19973_outgoingMaps_[p];if("__data__"in l.map&&(l=l.map.__data__,typeof l==="string")){l=l.length;break b}l=void 0}if(l===void 0)break;Q+=l;if(Q>4096){Q=p;break a}if(Q===4096||p===this.JSC$19973_outgoingMaps_.length-1){Q=p+1;break a}}Q=1E3}else Q=1E3;Q=$Zi(this,H,Q);
p=this.JSC$19973_forwardChannelUri_.clone();_.Z0(p,"RID",G);_.Z0(p,"CVER",22);this.httpSessionIdParam_&&_.Z0(p,"X-HTTP-Session-Id",this.httpSessionIdParam_);dZt(this,p);Z&&(this.encodeInitMessageHeaders_?Q="headers="+_.sd(cOq(Z))+"&"+Q:this.httpHeadersOverwriteParam_&&Tao(p,this.httpHeadersOverwriteParam_,Z));l7k(this.forwardChannelRequestPool_,H);this.blockingHandshake_&&_.Z0(p,"TYPE","init");this.fastHandshake_?(_.Z0(p,"$req",Q),_.Z0(p,"SID","null"),H.decodeInitialResponse_=!0,hBs(H,p,null)):hBs(H,
p,Q);this.state_=2}}else this.state_==3&&(G?XYL(this,G):this.JSC$19973_outgoingMaps_.length==0?this.JSC$19973_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):pYD(this.forwardChannelRequestPool_)||(XYL(this),this.JSC$19973_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var XYL=function(G,H){var Z;H?Z=H.JSC$19954_rid_:Z=G.JSC$19973_nextRid_++;var Q=G.JSC$19973_forwardChannelUri_.clone();_.Z0(Q,"SID",G.sid_);_.Z0(Q,"RID",Z);_.Z0(Q,"AID",G.JSC$19973_lastArrayId_);dZt(G,Q);G.httpHeadersOverwriteParam_&&G.JSC$19973_extraHeaders_&&Tao(Q,G.httpHeadersOverwriteParam_,G.JSC$19973_extraHeaders_);Z=new Sm(G,G.JSC$19973_channelDebug_,G.sid_,Z,G.JSC$19973_forwardChannelRetryCount_+1);G.httpHeadersOverwriteParam_===null&&(Z.JSC$19954_extraHeaders_=G.JSC$19973_extraHeaders_);
H&&(G.JSC$19973_outgoingMaps_=H.JSC$19954_pendingMessages_.concat(G.JSC$19973_outgoingMaps_));H=$Zi(G,Z,1E3);Z.setTimeout(Math.round(G.JSC$19973_forwardChannelRequestTimeoutMs_*.5)+Math.round(G.JSC$19973_forwardChannelRequestTimeoutMs_*.5*Math.random()));l7k(G.forwardChannelRequestPool_,Z);hBs(Z,Q,H)},dZt=function(G,H){G.JSC$19973_extraParams_&&_.oN.forEach(G.JSC$19973_extraParams_,function(Z,Q){_.Z0(H,Q,Z)});
G.handler_&&_.oN.forEach({},function(Z,Q){_.Z0(H,Q,Z)})},$Zi=function(G,H,Z){Z=Math.min(G.JSC$19973_outgoingMaps_.length,Z);
var Q=G.handler_?(0,_.Cu)(G.handler_.JSC$19979_badMapError,G.handler_,G):null;a:{for(var p=G.JSC$19973_outgoingMaps_,l=-1;;){var q=["count="+Z];l==-1?Z>0?(l=p[0].JSC$19961_mapId,q.push("ofs="+l)):l=0:q.push("ofs="+l);for(var u=!0,B=0;B<Z;B++){var t=p[B].JSC$19961_mapId,D=p[B].map;t-=l;if(t<0)l=Math.max(0,p[B].JSC$19961_mapId-100),u=!1;else try{t="req"+t+"_"||"";try{var d=D instanceof Map?D:Object.entries(D);for(var e=_.I(d),n=e.next();!n.done;n=e.next()){var c=_.I(n.value),W=c.next().value,M=c.next().value,
r=M;_.AM(M)&&(r=(0,_.zw)(M));q.push(t+W+"="+encodeURIComponent(r))}}catch(w){throw q.push(t+"type="+encodeURIComponent("_badmap")),w;}}catch(w){Q&&Q(D)}}if(u){d=q.join("&");break a}}d=void 0}G=G.JSC$19973_outgoingMaps_.splice(0,Z);H.JSC$19954_pendingMessages_=G;return d},cfj=function(G){G.JSC$19973_backChannelRequest_||G.JSC$19973_backChannelTimerId_||(G.JSC$19973_backChannelAttemptId_=1,_.cQ(G.JSC$19975_onStartBackChannelTimer_,G),G.JSC$19973_backChannelRetryCount_=0)},Hiq=function(G){if(G.JSC$19973_backChannelRequest_||
G.JSC$19973_backChannelTimerId_||G.JSC$19973_backChannelRetryCount_>=3)return!1;
G.JSC$19973_channelDebug_.debug("Going to retry GET");G.JSC$19973_backChannelAttemptId_++;G.JSC$19973_backChannelTimerId_=fOA((0,_.Cu)(G.JSC$19975_onStartBackChannelTimer_,G),ngL(G,G.JSC$19973_backChannelRetryCount_));G.JSC$19973_backChannelRetryCount_++;return!0};
tF.prototype.JSC$19975_onStartBackChannelTimer_=function(){this.JSC$19973_backChannelTimerId_=null;Tvo(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19973_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19973_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19973_backChannelRequest_+" "+this.handshakeRttMs_);else{var G=4*this.handshakeRttMs_;this.JSC$19973_channelDebug_.info("BP detection timer enabled: "+G);this.bpDetectionTimerId_=fOA((0,_.Cu)(this.onBpDetectionTimer_,
this),G)}};
tF.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19973_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19973_backChannelRequest_.JSC$19954_xmlHttp_!=null){var G=this.JSC$19973_backChannelRequest_.JSC$19954_xmlHttp_.getResponseText();G&&this.JSC$19973_channelDebug_.warning("Timer should have been cancelled : "+G)}this.JSC$19973_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;g9(10);Gp8(this);Tvo(this)}else this.JSC$19973_channelDebug_.warning("Invalid operation.")};
var EyA=function(G){G.bpDetectionTimerId_!=null&&(G.JSC$19973_channelDebug_.debug("Cancel the BP detection timer."),_.Qf.clearTimeout(G.bpDetectionTimerId_),G.bpDetectionTimerId_=null)},Tvo=function(G){G.JSC$19973_channelDebug_.debug("Creating new HttpRequest");
G.JSC$19973_backChannelRequest_=new Sm(G,G.JSC$19973_channelDebug_,G.sid_,"rpc",G.JSC$19973_backChannelAttemptId_);G.httpHeadersOverwriteParam_===null&&(G.JSC$19973_backChannelRequest_.JSC$19954_extraHeaders_=G.JSC$19973_extraHeaders_);G.JSC$19973_backChannelRequest_.JSC$19954_readyStateChangeThrottleMs_=0;var H=G.JSC$19973_backChannelUri_.clone();_.Z0(H,"RID","rpc");_.Z0(H,"SID",G.sid_);_.Z0(H,"AID",G.JSC$19973_lastArrayId_);_.Z0(H,"CI",G.enableStreaming_?"0":"1");!G.enableStreaming_&&G.longPollingTimeout_&&
_.Z0(H,"TO",G.longPollingTimeout_);_.Z0(H,"TYPE","xmlhttp");dZt(G,H);G.httpHeadersOverwriteParam_&&G.JSC$19973_extraHeaders_&&Tao(H,G.httpHeadersOverwriteParam_,G.JSC$19973_extraHeaders_);G.backChannelRequestTimeoutMs_&&G.JSC$19973_backChannelRequest_.setTimeout(G.backChannelRequestTimeoutMs_);var Z=G.JSC$19973_backChannelRequest_,Q=G.JSC$19973_hostPrefix_;Z.JSC$19954_type_=1;Z.JSC$19954_baseUri_=_.gs(H.clone());Z.JSC$19954_postData_=null;Z.decodeChunks_=!0;w9h(Z,Q);G.JSC$19973_channelDebug_.debug("New Request created")};
tF.prototype.JSC$19975_onBackChannelDead_=function(){this.JSC$19973_deadBackChannelTimerId_!=null&&(this.JSC$19973_deadBackChannelTimerId_=null,Gp8(this),Hiq(this),g9(19))};
var b26=function(G){G.JSC$19973_deadBackChannelTimerId_!=null&&(_.Qf.clearTimeout(G.JSC$19973_deadBackChannelTimerId_),G.JSC$19973_deadBackChannelTimerId_=null)},A9s=function(G,H){G.JSC$19973_channelDebug_.debug("Request complete");
var Z=null;if(G.JSC$19973_backChannelRequest_==H){b26(G);EyA(G);G.JSC$19973_backChannelRequest_=null;var Q=2}else if(F$o(G.forwardChannelRequestPool_,H))Z=H.JSC$19954_pendingMessages_,ggt(G.forwardChannelRequestPool_,H),Q=1;else return;if(G.state_!=0)if(H.JSC$19954_successful_)Q==1?(TWA(H.JSC$19954_postData_?H.JSC$19954_postData_.length:0,Date.now()-H.JSC$19954_requestStartTime_,G.JSC$19973_forwardChannelRetryCount_),kpa(G)):cfj(G);else{var p=H.JSC$19954_lastStatusCode_,l=H.getLastError();if(l==3||
l==0&&p>0)G.JSC$19973_channelDebug_.debug("Not retrying due to error type"),p>200&&(G.errorResponseStatusCode_=H.JSC$19954_lastStatusCode_);else{G.JSC$19973_channelDebug_.debug(function(){return"Maybe retrying, last error: "+jTs(l,G.errorResponseStatusCode_)});
if(Q==1&&V8s(G,H)||Q==2&&Hiq(G))return;G.JSC$19973_channelDebug_.debug("Exceeded max number of retries")}Z&&Z.length>0&&qMi(G.forwardChannelRequestPool_,Z);G.JSC$19973_channelDebug_.debug("Error: HTTP request failed");switch(l){case 1:BB(G,5);break;case 4:BB(G,10);break;case 3:BB(G,6);break;default:BB(G,2)}}},ngL=function(G,H){var Z=G.JSC$19973_baseRetryDelayMs_+Math.floor(Math.random()*G.JSC$19973_retryDelaySeedMs_);
G.isActive()||(G.JSC$19973_channelDebug_.debug("Inactive channel"),Z*=2);return Z*H};
tF.prototype.onInput_=function(G,H){for(var Z=0;Z<G.length;Z++){var Q=G[Z],p=Q[0];if(p<=this.JSC$19973_lastArrayId_)this.JSC$19973_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+p+", lastArrayId: "+this.JSC$19973_lastArrayId_);else if(p>this.JSC$19973_lastArrayId_+1&&this.JSC$19973_lastArrayId_>-1&&this.JSC$19973_channelDebug_.warning("Received non-consecutive message with arrayId: "+p+", lastArrayId: "+this.JSC$19973_lastArrayId_),this.JSC$19973_lastArrayId_=p,
Q=Q[1],this.state_==2)if(Q[0]=="c"){this.sid_=Q[1];this.JSC$19973_hostPrefix_=Q[2];p=Q[3];p!=null&&(this.JSC$19975_channelVersion_=p,this.JSC$19973_channelDebug_.info("VER="+this.JSC$19975_channelVersion_));p=Q[4];p!=null&&(this.serverVersion_=p,this.JSC$19973_channelDebug_.info("SVER="+this.serverVersion_));Q=Q[5];Q!=null&&typeof Q==="number"&&Q>0&&(this.backChannelRequestTimeoutMs_=Q*=1.5,this.JSC$19973_channelDebug_.info("backChannelRequestTimeoutMs_="+Q));if(Q=H.JSC$19954_xmlHttp_){var l=tb(Q,
"X-Client-Wire-Protocol");l&&(p=this.forwardChannelRequestPool_,!p.requestPool_&&(_.JM(l,"spdy")||_.JM(l,"quic")||_.JM(l,"h2"))&&(p.JSC$19964_maxSize_=p.maxPoolSizeConfigured_,p.requestPool_=new Set,p.JSC$19964_request_&&(l7k(p,p.JSC$19964_request_),p.JSC$19964_request_=null)));this.httpSessionIdParam_&&((Q=tb(Q,"X-HTTP-Session-Id"))?(this.httpSessionId_=Q,_.Z0(this.JSC$19973_forwardChannelUri_,this.httpSessionIdParam_,Q)):this.JSC$19973_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19979_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-H.JSC$19954_requestStartTime_,this.JSC$19973_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));Q=H;p=t8L(this,this.JSC$19973_supportsCrossDomainXhrs_?this.JSC$19973_hostPrefix_:null,this.JSC$19973_path_);this.JSC$19973_channelDebug_.debug("GetBackChannelUri: "+p);this.JSC$19973_backChannelUri_=p;Q.initialResponseDecoded_?(this.JSC$19973_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
ggt(this.forwardChannelRequestPool_,Q),p=Q,(l=this.backChannelRequestTimeoutMs_)&&p.setTimeout(l),p.JSC$19954_watchDogTimerId_&&(y9m(p),C3k(p)),this.JSC$19973_backChannelRequest_=Q):cfj(this);this.JSC$19973_outgoingMaps_.length>0&&kpa(this)}else Q[0]!="stop"&&Q[0]!="close"||BB(this,7);else this.state_==3&&(Q[0]=="stop"||Q[0]=="close"?Q[0]=="stop"?BB(this,7):this.disconnect():Q[0]!="noop"&&this.handler_&&this.handler_.JSC$19979_channelHandleArray(Q),this.JSC$19973_backChannelRetryCount_=0)}};
var BB=function(G,H){G.JSC$19973_channelDebug_.info("Error code "+H);if(H==2){var Z=(0,_.Cu)(G.testNetworkCallback_,G),Q=G.networkTestUrl_,p=!Q;Q=new _.C9(Q||"//www.google.com/images/cleardot.gif");_.Qf.location&&_.Qf.location.protocol=="http"||_.FQ(Q,"https");_.gs(Q);p?SMs(Q.toString(),Z):uYo(Q.toString(),Z)}else g9(2);G.onError_(H)};
tF.prototype.testNetworkCallback_=function(G){G?(this.JSC$19973_channelDebug_.info("Successfully pinged google.com"),g9(2)):(this.JSC$19973_channelDebug_.info("Failed to ping google.com"),g9(1))};
tF.prototype.onError_=function(G){this.JSC$19973_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$19979_channelError(G);e1j(this);DZj(this)};
var e1j=function(G){G.state_=0;G.nonAckedMapsAtChannelClose_=[];if(G.handler_){var H=I7A(G.forwardChannelRequestPool_);if(H.length!=0||G.JSC$19973_outgoingMaps_.length!=0)G.JSC$19973_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+H.length+", outgoing: "+G.JSC$19973_outgoingMaps_.length}),_.Ru(G.nonAckedMapsAtChannelClose_,H),_.Ru(G.nonAckedMapsAtChannelClose_,G.JSC$19973_outgoingMaps_),G.forwardChannelRequestPool_.JSC$19964_pendingMessages_.length=0,_.mv(G.JSC$19973_outgoingMaps_),
G.JSC$19973_outgoingMaps_.length=0;
G.handler_.JSC$19979_channelClosed()}},f7o=function(G){if(G.state_==0)return G.nonAckedMapsAtChannelClose_;
var H=[];_.Ru(H,I7A(G.forwardChannelRequestPool_));_.Ru(H,G.JSC$19973_outgoingMaps_);return H},t8L=function(G,H,Z){var Q=_.HS(Z);
Q.JSC$10041_domain_!=""?(H&&_.b5(Q,H+"."+Q.JSC$10041_domain_),_.Gj(Q,Q.JSC$10041_port_)):(Q=_.Qf.location,Q=lNo(Q.protocol,H?H+"."+Q.hostname:Q.hostname,+Q.port,Z));H=G.httpSessionIdParam_;Z=G.httpSessionId_;H&&Z&&_.Z0(Q,H,Z);_.Z0(Q,"VER",G.JSC$19975_channelVersion_);dZt(G,Q);return Q},i2L=function(G,H,Z){if(H&&!G.JSC$19973_supportsCrossDomainXhrs_)throw Error("Uk");
H=G.usesFetchStreams_&&!G.JSC$19973_xmlHttpFactory_?new _.KK(new nhc({streamBinaryChunks:Z})):new _.KK(G.JSC$19973_xmlHttpFactory_);H.JSC$9805_withCredentials_=G.JSC$19973_supportsCrossDomainXhrs_;return H};
tF.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var vgq=function(){};
_.g=vgq.prototype;_.g.JSC$19979_channelOpened=function(){};
_.g.JSC$19979_channelHandleArray=function(){};
_.g.JSC$19979_channelError=function(){};
_.g.JSC$19979_channelClosed=function(){};
_.g.isActive=function(){return!0};
_.g.JSC$19979_badMapError=function(){};var WHs=function(){},DX=function(G,H){_.$f.call(this);
this.JSC$19982_channel_=new tF(H);this.JSC$19982_url_=G;this.messageUrlParams_=H&&H.messageUrlParams||null;G=H&&H.messageHeaders||null;H&&H.clientProtocolHeaderRequired&&(G?_.oN.set(G,"X-Client-Protocol","webchannel"):G=_.oN.create("X-Client-Protocol","webchannel"));this.JSC$19982_channel_.JSC$19973_extraHeaders_=G;G=H&&H.initMessageHeaders||null;H&&H.messageContentType&&(G?_.oN.set(G,"X-WebChannel-Content-Type",H.messageContentType):G=_.oN.create("X-WebChannel-Content-Type",H.messageContentType));
H&&H.clientProfile&&(G?_.oN.set(G,"X-WebChannel-Client-Profile",H.clientProfile):G=_.oN.create("X-WebChannel-Client-Profile",H.clientProfile));this.JSC$19982_channel_.initHeaders_=G;(G=H&&H.httpHeadersOverwriteParam)&&!_.ue(G)&&(this.JSC$19982_channel_.httpHeadersOverwriteParam_=G);this.supportsCrossDomainXhr_=H&&H.supportsCrossDomainXhr||!1;this.sendRawJson_=H&&H.sendRawJson||!1;(H=H&&H.httpSessionIdParam)&&!_.ue(H)&&(this.JSC$19982_channel_.httpSessionIdParam_=H,_.oN.containsKey(this.messageUrlParams_,
H)&&_.oN.remove(this.messageUrlParams_,H));this.channelHandler_=new ko(this)};
_.AB(DX,_.$f);DX.prototype.open=function(){this.JSC$19982_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19982_channel_.JSC$19973_supportsCrossDomainXhrs_=!0);this.JSC$19982_channel_.connect(this.JSC$19982_url_,this.messageUrlParams_||void 0)};
DX.prototype.close=function(){this.JSC$19982_channel_.disconnect()};
DX.prototype.send=function(G){var H=this.JSC$19982_channel_;if(typeof G==="string"){var Z={};Z.__data__=G;G=Z}else this.sendRawJson_&&(Z={},Z.__data__=(0,_.zw)(G),G=Z);H.JSC$19973_outgoingMaps_.push(new Zio(H.JSC$19973_nextMapId_++,G));H.state_==3&&kpa(H)};
DX.prototype.disposeInternal=function(){this.JSC$19982_channel_.handler_=null;delete this.channelHandler_;this.JSC$19982_channel_.disconnect();delete this.JSC$19982_channel_;DX.superClass_.disposeInternal.call(this)};
var z1m=function(G){DPt.call(this);G.__headers__&&(this.headers=G.__headers__,this.statusCode=G.__status__,delete G.__headers__,delete G.__status__);var H=G.__sm__;H?this.data=(this.metadataKey=_.oN.getAnyKey(H))?_.oN.get(H,this.metadataKey):H:this.data=G};
_.AB(z1m,DPt);var KHs=function(G){dPo.call(this);this.status=1;this.errorCode=G};
_.AB(KHs,dPo);var ko=function(G){this.JSC$19989_channel_=G};
_.AB(ko,vgq);ko.prototype.JSC$19979_channelOpened=function(){this.JSC$19989_channel_.dispatchEvent("w")};
ko.prototype.JSC$19979_channelHandleArray=function(G){this.JSC$19989_channel_.dispatchEvent(new z1m(G))};
ko.prototype.JSC$19979_channelError=function(G){this.JSC$19989_channel_.dispatchEvent(new KHs(G))};
ko.prototype.JSC$19979_channelClosed=function(){this.JSC$19989_channel_.dispatchEvent("x")};
var M8q=function(G,H){this.transportChannel_=G;this.JSC$19992_channel_=H},jic=function(G){return f7o(G.JSC$19992_channel_).map(function(H){var Z=G.transportChannel_;
H=H.map;"__data__"in H?(H=H.__data__,Z=Z.sendRawJson_?(0,_.il_)(H):H):Z=H;return Z})};
M8q.prototype.commit=function(G){this.JSC$19992_channel_.forwardChannelFlushedCallback_=G};var d9=function(G){P1o.dispatchEvent(new rfo(P1o,G))},P1o=new _.$f,rfo=function(G,H){_.DA.call(this,"statevent",G);
this.stat=H};
_.T(rfo,_.DA);var em=function(G,H,Z,Q,p){this.JSC$19997_channel_=G;this.JSC$19997_channelDebug_=H;this.sid_=Z;this.JSC$19997_rid_=Q;this.JSC$19997_retryId_=p||1;this.timeout_=45E3;this.JSC$19997_eventHandler_=new _.en(this);this.pollingTimer_=new _.dg;this.pollingTimer_.setInterval(250)};
_.g=em.prototype;_.g.JSC$19999_extraHeaders_=null;_.g.JSC$19999_successful_=!1;_.g.JSC$19999_watchDogTimerId_=null;_.g.JSC$19999_watchDogTimeoutTime_=null;_.g.JSC$19999_requestStartTime_=null;_.g.JSC$19999_type_=null;_.g.JSC$19999_baseUri_=null;_.g.JSC$19999_requestUri_=null;_.g.JSC$19999_postData_=null;_.g.JSC$19999_xmlHttp_=null;_.g.JSC$19999_xmlHttpChunkStart_=0;_.g.trident_=null;_.g.JSC$19999_verb_=null;_.g.JSC$19999_lastError_=null;_.g.JSC$19999_lastStatusCode_=-1;_.g.sendClose_=!0;
_.g.JSC$19999_cancelled_=!1;_.g.JSC$19999_readyStateChangeThrottleMs_=0;_.g.JSC$19999_readyStateChangeThrottle_=null;var wYD=function(G,H){switch(G){case 0:return"Non-200 return code ("+H+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},h1o={},C1D={};
em.prototype.setTimeout=function(G){this.timeout_=G};
var Oio=function(G,H,Z){G.JSC$19999_type_=1;G.JSC$19999_baseUri_=_.gs(H.clone());G.JSC$19999_postData_=Z;G.decodeChunks_=!0;iio(G,null)},a7m=function(G,H,Z,Q,p){G.JSC$19999_type_=1;
G.JSC$19999_baseUri_=_.gs(H.clone());G.JSC$19999_postData_=null;G.decodeChunks_=Z;p&&(G.sendClose_=!1);iio(G,Q)},iio=function(G,H){G.JSC$19999_requestStartTime_=Date.now();
yfm(G);G.JSC$19999_requestUri_=G.JSC$19999_baseUri_.clone();uQL(G.JSC$19999_requestUri_,"t",G.JSC$19997_retryId_);G.JSC$19999_xmlHttpChunkStart_=0;G.JSC$19999_xmlHttp_=G.JSC$19997_channel_.JSC$20006_createXhrIo(G.JSC$19997_channel_.JSC$20006_shouldUseSecondaryDomains()?H:null);G.JSC$19999_readyStateChangeThrottleMs_>0&&(G.JSC$19999_readyStateChangeThrottle_=new _.Zo((0,_.Cu)(G.JSC$19999_xmlHttpHandler_,G,G.JSC$19999_xmlHttp_),G.JSC$19999_readyStateChangeThrottleMs_));G.JSC$19997_eventHandler_.listen(G.JSC$19999_xmlHttp_,
"readystatechange",G.JSC$19999_readyStateChangeHandler_);H=G.JSC$19999_extraHeaders_?_.oN.clone(G.JSC$19999_extraHeaders_):{};G.JSC$19999_postData_?(G.JSC$19999_verb_="POST",H["Content-Type"]="application/x-www-form-urlencoded",G.JSC$19999_xmlHttp_.send(G.JSC$19999_requestUri_,G.JSC$19999_verb_,G.JSC$19999_postData_,H)):(G.JSC$19999_verb_="GET",G.sendClose_&&!_.b$&&(H.Connection="close"),G.JSC$19999_xmlHttp_.send(G.JSC$19999_requestUri_,G.JSC$19999_verb_,null,H));G.JSC$19997_channel_.notifyServerReachabilityEvent(1);
H=G.JSC$19997_channelDebug_;var Z=G.JSC$19999_postData_;if(Z){var Q="";Z=Z.split("&");for(var p=0;p<Z.length;p++){var l=Z[p].split("=");if(l.length>1){var q=l[0];l=l[1];var u=q.split("_");Q=u.length>=2&&u[1]=="type"?Q+(q+"="+l+"&"):Q+(q+"=redacted&")}}}else Q=null;H.info("XMLHTTP REQ ("+G.JSC$19997_rid_+") [attempt "+G.JSC$19997_retryId_+"]: "+G.JSC$19999_verb_+"\n"+G.JSC$19999_requestUri_+"\n"+Q)};
em.prototype.JSC$19999_readyStateChangeHandler_=function(G){G=G.target;var H=this.JSC$19999_readyStateChangeThrottle_;H&&_.Mn(G)==3?(this.JSC$19997_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19999_xmlHttpHandler_(G)};
em.prototype.JSC$19999_xmlHttpHandler_=function(G){try{if(G==this.JSC$19999_xmlHttp_)a:{var H=_.Mn(this.JSC$19999_xmlHttp_),Z=this.JSC$19999_xmlHttp_.JSC$9805_lastErrorCode_,Q=this.JSC$19999_xmlHttp_.getStatus();if(_.b$&&!_.GW("420+")){if(H<4)break a}else if(H<3||H==3&&!this.JSC$19999_xmlHttp_.getResponseText())break a;this.JSC$19999_cancelled_||H!=4||Z==7||(Z==8||Q<=0?this.JSC$19997_channel_.notifyServerReachabilityEvent(3):this.JSC$19997_channel_.notifyServerReachabilityEvent(2));ogA(this);var p=
this.JSC$19999_xmlHttp_.getStatus();this.JSC$19999_lastStatusCode_=p;var l=this.JSC$19999_xmlHttp_.getResponseText();l||this.JSC$19997_channelDebug_.debug("No response text for uri "+this.JSC$19999_requestUri_+" status "+p);this.JSC$19999_successful_=p==200;this.JSC$19997_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19997_rid_+") [ attempt "+this.JSC$19997_retryId_+"]: "+this.JSC$19999_verb_+"\n"+this.JSC$19999_requestUri_+"\n"+H+" "+p);if(this.JSC$19999_successful_){H==4&&mZ8(this);if(this.decodeChunks_){for(G=
!0;!this.JSC$19999_cancelled_&&this.JSC$19999_xmlHttpChunkStart_<l.length;){var q=UZj(this,l);if(q==C1D){H==4&&(this.JSC$19999_lastError_=4,d9(15),G=!1);R1D(this.JSC$19997_channelDebug_,this.JSC$19997_rid_,null,"[Incomplete Response]");break}else if(q==h1o){this.JSC$19999_lastError_=4;d9(16);R1D(this.JSC$19997_channelDebug_,this.JSC$19997_rid_,l,"[Invalid Chunk]");G=!1;break}else R1D(this.JSC$19997_channelDebug_,this.JSC$19997_rid_,q,null),Nvt(this,q)}H==4&&l.length==0&&(this.JSC$19999_lastError_=
1,d9(17),G=!1);this.JSC$19999_successful_=this.JSC$19999_successful_&&G;G||(R1D(this.JSC$19997_channelDebug_,this.JSC$19997_rid_,l,"[Invalid Chunked Response]"),mZ8(this),Afs(this))}else R1D(this.JSC$19997_channelDebug_,this.JSC$19997_rid_,l,null),Nvt(this,l);this.JSC$19999_successful_&&!this.JSC$19999_cancelled_&&(H==4?this.JSC$19997_channel_.JSC$20006_onRequestComplete(this):(this.JSC$19999_successful_=!1,yfm(this)))}else p==400&&l.indexOf("Unknown SID")>0?(this.JSC$19999_lastError_=3,d9(13),this.JSC$19997_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19997_rid_+")")):(this.JSC$19999_lastError_=0,d9(14),this.JSC$19997_channelDebug_.warning("XMLHTTP Bad status "+p+" ("+this.JSC$19997_rid_+")")),mZ8(this),Afs(this)}else this.JSC$19997_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(u){this.JSC$19997_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var UZj=function(G,H){var Z=G.JSC$19999_xmlHttpChunkStart_,Q=H.indexOf("\n",Z);if(Q==-1)return C1D;Z=Number(H.substring(Z,Q));if(isNaN(Z))return h1o;Q+=1;if(Q+Z>H.length)return C1D;H=H.slice(Q,Q+Z);G.JSC$19999_xmlHttpChunkStart_=Q+Z;return H};
em.prototype.cancel=function(){this.JSC$19999_cancelled_=!0;mZ8(this)};
var yfm=function(G){G.JSC$19999_watchDogTimeoutTime_=Date.now()+G.timeout_;xZh(G,G.timeout_)},xZh=function(G,H){if(G.JSC$19999_watchDogTimerId_!=null)throw Error("Tk");
G.JSC$19999_watchDogTimerId_=vI((0,_.Cu)(G.JSC$19999_onWatchDogTimeout_,G),H)},ogA=function(G){G.JSC$19999_watchDogTimerId_&&(_.Qf.clearTimeout(G.JSC$19999_watchDogTimerId_),G.JSC$19999_watchDogTimerId_=null)};
em.prototype.JSC$19999_onWatchDogTimeout_=function(){this.JSC$19999_watchDogTimerId_=null;var G=Date.now();G-this.JSC$19999_watchDogTimeoutTime_>=0?(this.JSC$19997_channelDebug_.info("TIMEOUT: "+this.JSC$19999_requestUri_),this.JSC$19999_type_!=2&&this.JSC$19997_channel_.notifyServerReachabilityEvent(3),mZ8(this),this.JSC$19999_lastError_=2,d9(18),Afs(this)):(this.JSC$19997_channelDebug_.warning("WatchDog timer called too early"),xZh(this,this.JSC$19999_watchDogTimeoutTime_-G))};
var Afs=function(G){G.JSC$19997_channel_.JSC$20006_isClosed()||G.JSC$19999_cancelled_||G.JSC$19997_channel_.JSC$20006_onRequestComplete(G)},mZ8=function(G){ogA(G);
_.S_(G.JSC$19999_readyStateChangeThrottle_);G.JSC$19999_readyStateChangeThrottle_=null;G.pollingTimer_.stop();G.JSC$19997_eventHandler_.removeAll();if(G.JSC$19999_xmlHttp_){var H=G.JSC$19999_xmlHttp_;G.JSC$19999_xmlHttp_=null;H.abort();H.dispose()}G.trident_&&(G.trident_=null)};
em.prototype.getLastError=function(){return this.JSC$19999_lastError_};
var Nvt=function(G,H){try{G.JSC$19997_channel_.JSC$20006_onRequestData(G,H),G.JSC$19997_channel_.notifyServerReachabilityEvent(4)}catch(Z){}};var R1D=function(G,H,Z,Q){var p=G.info;a:if(Z&&Z!="y2f%"){try{var l=JSON.parse(Z);if(l)for(var q=0;q<l.length;q++)if(Array.isArray(l[q])){var u=l[q];if(!(u.length<2)){var B=u[1];if(Array.isArray(B)&&!(B.length<1)){var t=B[0];if(t!="noop"&&t!="stop")for(var D=1;D<B.length;D++)B[D]=""}}}var d=(0,_.zw)(l);break a}catch(e){G.debug("Exception parsing expected JS array - probably was not JS");d=Z;break a}d=void 0}else d=Z;p.call(G,"XMLHTTP TEXT ("+H+"): "+d+(Q?" "+Q:""))};
WI.prototype.debug=function(G){this.info(G)};
WI.prototype.info=function(){};
WI.prototype.warning=function(){};var LHk=function(G,H){this.JSC$20004_channel_=G;this.JSC$20004_channelDebug_=H;this.JSC$20004_parser_=new kPk};
_.g=LHk.prototype;_.g.JSC$20006_extraHeaders_=null;_.g.JSC$20006_request_=null;_.g.receivedIntermediateResult_=!1;_.g.JSC$20006_path_=null;_.g.state_=null;_.g.JSC$20006_lastStatusCode_=-1;_.g.JSC$20006_hostPrefix_=null;_.g.blockedPrefix_=null;
_.g.connect=function(G){this.JSC$20006_path_=G;G=Eg8(this.JSC$20004_channel_,this.JSC$20006_path_);d9(3);Date.now();var H=this.JSC$20004_channel_.firstTestResults_;H!=null?(this.JSC$20006_hostPrefix_=H[0],(this.blockedPrefix_=H[1])?(this.state_=1,YMo(this)):(this.state_=2,FHq(this))):(uQL(G,"MODE","init"),this.JSC$20006_request_=new em(this,this.JSC$20004_channelDebug_),this.JSC$20006_request_.JSC$19999_extraHeaders_=this.JSC$20006_extraHeaders_,a7m(this.JSC$20006_request_,G,!1,null,!0),this.state_=
0)};
var YMo=function(G){var H=bic(G.JSC$20004_channel_,G.blockedPrefix_,"/mail/images/cleardot.gif");_.gs(H);OGo(H.toString(),5E3,(0,_.Cu)(G.checkBlockedCallback_,G),3,2E3);G.notifyServerReachabilityEvent(1)};
LHk.prototype.checkBlockedCallback_=function(G){if(G)this.state_=2,FHq(this);else{d9(4);var H=this.JSC$20004_channel_;H.JSC$20007_channelDebug_.debug("Test Connection Blocked");H.JSC$20011_lastStatusCode_=H.connectionTest_.JSC$20006_lastStatusCode_;nU(H,9)}G&&this.notifyServerReachabilityEvent(2)};
var FHq=function(G){G.JSC$20004_channelDebug_.debug("TestConnection: starting stage 2");var H=G.JSC$20004_channel_.secondTestResults_;H!=null?(G.JSC$20004_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+H?"Buffered":"Unbuffered"),d9(5),H?(d9(11),GZo(G.JSC$20004_channel_,G,!1)):(d9(12),GZo(G.JSC$20004_channel_,G,!0))):(G.JSC$20006_request_=new em(G,G.JSC$20004_channelDebug_),G.JSC$20006_request_.JSC$19999_extraHeaders_=G.JSC$20006_extraHeaders_,H=Hrh(G.JSC$20004_channel_,
G.JSC$20006_hostPrefix_,G.JSC$20006_path_),d9(5),uQL(H,"TYPE","xmlhttp"),a7m(G.JSC$20006_request_,H,!1,G.JSC$20006_hostPrefix_,!1))};
_.g=LHk.prototype;_.g.JSC$20006_createXhrIo=function(G){return this.JSC$20004_channel_.JSC$20006_createXhrIo(G)};
_.g.abort=function(){this.JSC$20006_request_&&(this.JSC$20006_request_.cancel(),this.JSC$20006_request_=null);this.JSC$20006_lastStatusCode_=-1};
_.g.JSC$20006_isClosed=function(){return!1};
_.g.JSC$20006_onRequestData=function(G,H){this.JSC$20006_lastStatusCode_=G.JSC$19999_lastStatusCode_;if(this.state_==0)if(this.JSC$20004_channelDebug_.debug("TestConnection: Got data for stage 1"),H){try{var Z=this.JSC$20004_parser_.parse(H)}catch(Q){sa6(this.JSC$20004_channel_,this);return}this.JSC$20006_hostPrefix_=Z[0];this.blockedPrefix_=Z[1]}else this.JSC$20004_channelDebug_.debug("TestConnection: Null responseText"),sa6(this.JSC$20004_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(d9(7),Date.now()):H=="11111"?(d9(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20006_lastStatusCode_=200,this.JSC$20006_request_.cancel(),this.JSC$20004_channelDebug_.debug("Test connection succeeded; using streaming connection"),d9(12),GZo(this.JSC$20004_channel_,this,!0)):(d9(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.g.JSC$20006_onRequestComplete=function(){this.JSC$20006_lastStatusCode_=this.JSC$20006_request_.JSC$19999_lastStatusCode_;this.JSC$20006_request_.JSC$19999_successful_?this.state_==0?(this.JSC$20004_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,YMo(this)):(this.state_=2,FHq(this))):this.state_==2&&(this.JSC$20004_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20004_channelDebug_.debug("Test connection succeeded; using streaming connection"),
d9(12),GZo(this.JSC$20004_channel_,this,!0)):(this.JSC$20004_channelDebug_.debug("Test connection failed; not using streaming"),d9(11),GZo(this.JSC$20004_channel_,this,!1))):(this.JSC$20004_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?d9(9):this.state_==2&&d9(10),sa6(this.JSC$20004_channel_,this,this.JSC$20006_request_.getLastError()))};
_.g.JSC$20006_shouldUseSecondaryDomains=function(){return this.JSC$20004_channel_.JSC$20006_shouldUseSecondaryDomains()};
_.g.isActive=function(){return this.JSC$20004_channel_.isActive()};
_.g.notifyServerReachabilityEvent=function(G){this.JSC$20004_channel_.notifyServerReachabilityEvent(G)};var Vv=function(G,H,Z){this.state_=1;this.JSC$20007_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20007_channelDebug_=new WI;this.JSC$20007_parser_=new kPk;this.firstTestResults_=G||null;this.secondTestResults_=H!=null?H:null;this.asyncTest_=Z||!1},Zrs=function(G,H){this.JSC$20009_mapId=G;
this.map=H;this.context=null};
_.g=Vv.prototype;_.g.JSC$20011_extraHeaders_=null;_.g.JSC$20011_extraParams_=null;_.g.forwardChannelRequest_=null;_.g.JSC$20011_backChannelRequest_=null;_.g.JSC$20011_path_=null;_.g.JSC$20011_forwardChannelUri_=null;_.g.JSC$20011_backChannelUri_=null;_.g.JSC$20011_hostPrefix_=null;_.g.JSC$20011_nextRid_=0;_.g.JSC$20011_nextMapId_=0;_.g.handler_=null;_.g.JSC$20011_forwardChannelTimerId_=null;_.g.JSC$20011_backChannelTimerId_=null;_.g.JSC$20011_deadBackChannelTimerId_=null;_.g.connectionTest_=null;
_.g.useChunked_=null;_.g.JSC$20011_lastArrayId_=-1;_.g.JSC$20011_lastPostResponseArrayId_=-1;_.g.JSC$20011_lastStatusCode_=-1;_.g.JSC$20011_forwardChannelRetryCount_=0;_.g.JSC$20011_backChannelRetryCount_=0;_.g.JSC$20011_channelVersion_=8;var Qao={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},p5q=function(G,H,Z,Q){_.DA.call(this,"timingevent",G);this.size=H;this.rtt=Z;this.retries=Q};
_.AB(p5q,_.DA);var liD=function(G){_.DA.call(this,"serverreachability",G)};
_.AB(liD,_.DA);Vv.prototype.connect=function(G,H,Z,Q,p){this.JSC$20007_channelDebug_.debug("connect()");d9(0);this.JSC$20011_path_=H;this.JSC$20011_extraParams_=Z||{};Q&&p!==void 0&&(this.JSC$20011_extraParams_.OSID=Q,this.JSC$20011_extraParams_.OAID=p);this.asyncTest_?(vI((0,_.Cu)(this.connectTest_,this,G),100),gOj(this)):this.connectTest_(G)};
Vv.prototype.disconnect=function(){this.JSC$20007_channelDebug_.debug("disconnect()");Ii8(this);if(this.state_==3){var G=this.JSC$20011_nextRid_++,H=this.JSC$20011_forwardChannelUri_.clone();_.Z0(H,"SID",this.sid_);_.Z0(H,"RID",G);_.Z0(H,"TYPE","terminate");qpj(this,H);G=new em(this,this.JSC$20007_channelDebug_,this.sid_,G);G.JSC$19999_type_=2;G.JSC$19999_baseUri_=_.gs(H.clone());(new Image).src=G.JSC$19999_baseUri_.toString();G.JSC$19999_requestStartTime_=Date.now();yfm(G)}Sph(this)};
Vv.prototype.connectTest_=function(G){this.JSC$20007_channelDebug_.debug("connectTest_()");this.connectionTest_=new LHk(this,this.JSC$20007_channelDebug_);this.connectionTest_.JSC$20006_extraHeaders_=this.JSC$20011_extraHeaders_;this.connectionTest_.JSC$20004_parser_=this.JSC$20007_parser_;this.connectionTest_.connect(G)};
var gOj=function(G){G.JSC$20007_channelDebug_.debug("connectChannel_()");G.JSC$20011_ensureInState_(1,0);G.JSC$20011_forwardChannelUri_=Eg8(G,G.JSC$20011_path_);uih(G)},Ii8=function(G){G.connectionTest_&&(G.connectionTest_.abort(),G.connectionTest_=null);
G.JSC$20011_backChannelRequest_&&(G.JSC$20011_backChannelRequest_.cancel(),G.JSC$20011_backChannelRequest_=null);G.JSC$20011_backChannelTimerId_&&(_.Qf.clearTimeout(G.JSC$20011_backChannelTimerId_),G.JSC$20011_backChannelTimerId_=null);BQq(G);G.forwardChannelRequest_&&(G.forwardChannelRequest_.cancel(),G.forwardChannelRequest_=null);G.JSC$20011_forwardChannelTimerId_&&(_.Qf.clearTimeout(G.JSC$20011_forwardChannelTimerId_),G.JSC$20011_forwardChannelTimerId_=null)},J4k=function(G,H){if(G.state_==0)throw Error("Wk");
G.JSC$20007_outgoingMaps_.length==1E3&&G.JSC$20007_parser_.stringify(H);G.JSC$20007_outgoingMaps_.push(new Zrs(G.JSC$20011_nextMapId_++,H));G.state_!=2&&G.state_!=3||uih(G)};
Vv.prototype.JSC$20006_isClosed=function(){return this.state_==0};
Vv.prototype.getState=function(){return this.state_};
var uih=function(G){G.forwardChannelRequest_||G.JSC$20011_forwardChannelTimerId_||(G.JSC$20011_forwardChannelTimerId_=vI((0,_.Cu)(G.JSC$20011_onStartForwardChannelTimer_,G),0),G.JSC$20011_forwardChannelRetryCount_=0)};
Vv.prototype.JSC$20011_onStartForwardChannelTimer_=function(G){this.JSC$20011_forwardChannelTimerId_=null;tEo(this,G)};
var tEo=function(G,H){G.JSC$20007_channelDebug_.debug("startForwardChannel_");if(G.state_==1){if(!H){G.JSC$20007_channelDebug_.debug("open_()");G.JSC$20011_nextRid_=Math.floor(Math.random()*1E5);H=G.JSC$20011_nextRid_++;var Z=new em(G,G.JSC$20007_channelDebug_,"",H);Z.JSC$19999_extraHeaders_=G.JSC$20011_extraHeaders_;var Q=kZh(G),p=G.JSC$20011_forwardChannelUri_.clone();_.Z0(p,"RID",H);_.Z0(p,"CVER","1");qpj(G,p);Oio(Z,p,Q);G.forwardChannelRequest_=Z;G.state_=2}}else G.state_==3&&(H?DHm(G,H):G.JSC$20007_outgoingMaps_.length==
0?G.JSC$20007_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):G.forwardChannelRequest_||(DHm(G),G.JSC$20007_channelDebug_.debug("startForwardChannel_ finished, sent request")))},DHm=function(G,H){if(H)if(G.JSC$20011_channelVersion_>6){G.JSC$20007_outgoingMaps_=G.pendingMaps_.concat(G.JSC$20007_outgoingMaps_);
G.pendingMaps_.length=0;var Z=G.JSC$20011_nextRid_-1;H=kZh(G)}else Z=H.JSC$19997_rid_,H=H.JSC$19999_postData_;else Z=G.JSC$20011_nextRid_++,H=kZh(G);var Q=G.JSC$20011_forwardChannelUri_.clone();_.Z0(Q,"SID",G.sid_);_.Z0(Q,"RID",Z);_.Z0(Q,"AID",G.JSC$20011_lastArrayId_);qpj(G,Q);Z=new em(G,G.JSC$20007_channelDebug_,G.sid_,Z,G.JSC$20011_forwardChannelRetryCount_+1);Z.JSC$19999_extraHeaders_=G.JSC$20011_extraHeaders_;Z.setTimeout(1E4+Math.round(1E4*Math.random()));G.forwardChannelRequest_=Z;Oio(Z,Q,
H)},qpj=function(G,H){G.handler_&&(G=G.handler_.JSC$20018_getAdditionalParams())&&_.oN.forEach(G,function(Z,Q){_.Z0(H,Q,Z)})},kZh=function(G){var H=Math.min(G.JSC$20007_outgoingMaps_.length,1E3),Z=["count="+H];
if(G.JSC$20011_channelVersion_>6&&H>0){var Q=G.JSC$20007_outgoingMaps_[0].JSC$20009_mapId;Z.push("ofs="+Q)}else Q=0;for(var p={},l=0;l<H;p={mapId$jscomp$3:void 0},l++){p.mapId$jscomp$3=G.JSC$20007_outgoingMaps_[l].JSC$20009_mapId;var q=G.JSC$20007_outgoingMaps_[l].map;p.mapId$jscomp$3=G.JSC$20011_channelVersion_<=6?l:p.mapId$jscomp$3-Q;try{_.oN.forEach(q,function(u){return function(B,t){Z.push("req"+u.mapId$jscomp$3+"_"+t+"="+encodeURIComponent(B))}}(p))}catch(u){Z.push("req"+p.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}G.pendingMaps_=G.pendingMaps_.concat(G.JSC$20007_outgoingMaps_.splice(0,H));
return Z.join("&")},dHh=function(G){G.JSC$20011_backChannelRequest_||G.JSC$20011_backChannelTimerId_||(G.JSC$20011_backChannelAttemptId_=1,G.JSC$20011_backChannelTimerId_=vI((0,_.Cu)(G.JSC$20011_onStartBackChannelTimer_,G),0),G.JSC$20011_backChannelRetryCount_=0)},nOi=function(G){if(G.JSC$20011_backChannelRequest_||G.JSC$20011_backChannelTimerId_||G.JSC$20011_backChannelRetryCount_>=3)return!1;
G.JSC$20007_channelDebug_.debug("Going to retry GET");G.JSC$20011_backChannelAttemptId_++;G.JSC$20011_backChannelTimerId_=vI((0,_.Cu)(G.JSC$20011_onStartBackChannelTimer_,G),e4q(G,G.JSC$20011_backChannelRetryCount_));G.JSC$20011_backChannelRetryCount_++;return!0};
Vv.prototype.JSC$20011_onStartBackChannelTimer_=function(){this.JSC$20011_backChannelTimerId_=null;this.JSC$20007_channelDebug_.debug("Creating new HttpRequest");this.JSC$20011_backChannelRequest_=new em(this,this.JSC$20007_channelDebug_,this.sid_,"rpc",this.JSC$20011_backChannelAttemptId_);this.JSC$20011_backChannelRequest_.JSC$19999_extraHeaders_=this.JSC$20011_extraHeaders_;this.JSC$20011_backChannelRequest_.JSC$19999_readyStateChangeThrottleMs_=0;var G=this.JSC$20011_backChannelUri_.clone();_.Z0(G,
"RID","rpc");_.Z0(G,"SID",this.sid_);_.Z0(G,"CI",this.useChunked_?"0":"1");_.Z0(G,"AID",this.JSC$20011_lastArrayId_);qpj(this,G);_.Z0(G,"TYPE","xmlhttp");a7m(this.JSC$20011_backChannelRequest_,G,!0,this.JSC$20011_hostPrefix_,!1);this.JSC$20007_channelDebug_.debug("New Request created")};
var GZo=function(G,H,Z){G.JSC$20007_channelDebug_.debug("Test Connection Finished");G.useChunked_=G.secondTestResults_==null?Z:!G.secondTestResults_;G.JSC$20011_lastStatusCode_=H.JSC$20006_lastStatusCode_;G.asyncTest_||gOj(G)},sa6=function(G,H){G.JSC$20007_channelDebug_.debug("Test Connection Failed");
G.JSC$20011_lastStatusCode_=H.JSC$20006_lastStatusCode_;nU(G,2)};
Vv.prototype.JSC$20006_onRequestData=function(G,H){if(this.state_!=0&&(this.JSC$20011_backChannelRequest_==G||this.forwardChannelRequest_==G))if(this.JSC$20011_lastStatusCode_=G.JSC$19999_lastStatusCode_,this.forwardChannelRequest_==G&&this.state_==3)if(this.JSC$20011_channelVersion_>7){try{var Z=this.JSC$20007_parser_.parse(H)}catch(Q){Z=null}if(Array.isArray(Z)&&Z.length==3)if(H=Z,H[0]==0)a:if(this.JSC$20007_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20011_backChannelTimerId_)this.JSC$20007_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20011_backChannelRequest_)if(this.JSC$20011_backChannelRequest_.JSC$19999_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19999_requestStartTime_)BQq(this),this.JSC$20011_backChannelRequest_.cancel(),this.JSC$20011_backChannelRequest_=null;else break a;else this.JSC$20007_channelDebug_.warning("We do not have a BackChannel established");nOi(this);d9(19)}else this.JSC$20011_lastPostResponseArrayId_=H[1],G=this.JSC$20011_lastPostResponseArrayId_-this.JSC$20011_lastArrayId_,0<
G&&(H=H[2],this.JSC$20007_channelDebug_.debug(H+" bytes (in "+G+" arrays) are outstanding on the BackChannel"),H<37500&&this.useChunked_&&this.JSC$20011_backChannelRetryCount_==0&&!this.JSC$20011_deadBackChannelTimerId_&&(this.JSC$20011_deadBackChannelTimerId_=vI((0,_.Cu)(this.JSC$20011_onBackChannelDead_,this),6E3)));else this.JSC$20007_channelDebug_.debug("Bad POST response data returned"),nU(this,11)}else H!="y2f%"&&(this.JSC$20007_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
nU(this,11));else this.JSC$20011_backChannelRequest_==G&&BQq(this),_.ue(H)||(G=this.JSC$20007_parser_.parse(H),this.onInput_(G))};
Vv.prototype.JSC$20011_onBackChannelDead_=function(){this.JSC$20011_deadBackChannelTimerId_!=null&&(this.JSC$20011_deadBackChannelTimerId_=null,this.JSC$20011_backChannelRequest_.cancel(),this.JSC$20011_backChannelRequest_=null,nOi(this),d9(20))};
var BQq=function(G){G.JSC$20011_deadBackChannelTimerId_!=null&&(_.Qf.clearTimeout(G.JSC$20011_deadBackChannelTimerId_),G.JSC$20011_deadBackChannelTimerId_=null)};
Vv.prototype.JSC$20006_onRequestComplete=function(G){this.JSC$20007_channelDebug_.debug("Request complete");if(this.JSC$20011_backChannelRequest_==G){BQq(this);this.JSC$20011_backChannelRequest_=null;var H=2}else if(this.forwardChannelRequest_==G)this.forwardChannelRequest_=null,H=1;else return;this.JSC$20011_lastStatusCode_=G.JSC$19999_lastStatusCode_;if(this.state_!=0)if(G.JSC$19999_successful_)if(H==1){H=G.JSC$19999_postData_?G.JSC$19999_postData_.length:0;G=Date.now()-G.JSC$19999_requestStartTime_;
var Z=P1o;Z.dispatchEvent(new p5q(Z,H,G,this.JSC$20011_forwardChannelRetryCount_));uih(this);this.handler_&&this.handler_.JSC$20018_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else dHh(this);else{Z=G.getLastError();if(Z==3||Z==7||Z==0&&this.JSC$20011_lastStatusCode_>0)this.JSC$20007_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20007_channelDebug_.debug("Maybe retrying, last error: "+wYD(Z,this.JSC$20011_lastStatusCode_));var Q;if(Q=H==1)this.forwardChannelRequest_||
this.JSC$20011_forwardChannelTimerId_||this.state_==1||this.JSC$20011_forwardChannelRetryCount_>=2?Q=!1:(this.JSC$20007_channelDebug_.debug("Going to retry POST"),this.JSC$20011_forwardChannelTimerId_=vI((0,_.Cu)(this.JSC$20011_onStartForwardChannelTimer_,this,G),e4q(this,this.JSC$20011_forwardChannelRetryCount_)),this.JSC$20011_forwardChannelRetryCount_++,Q=!0);if(Q||H==2&&nOi(this))return;this.JSC$20007_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20007_channelDebug_.debug("Error: HTTP request failed");
switch(Z){case 1:nU(this,5);break;case 4:nU(this,10);break;case 3:nU(this,6);break;case 7:nU(this,12);break;default:nU(this,2)}}};
var e4q=function(G,H){var Z=5E3+Math.floor(Math.random()*1E4);G.isActive()||(G.JSC$20007_channelDebug_.debug("Inactive channel"),Z*=2);return Z*H};
Vv.prototype.onInput_=function(G){for(var H=0;H<G.length;H++){var Z=G[H];this.JSC$20011_lastArrayId_=Z[0];Z=Z[1];this.state_==2?Z[0]=="c"?(this.sid_=Z[1],this.JSC$20011_hostPrefix_=Z[2],Z=Z[3],Z!=null?this.JSC$20011_channelVersion_=Z:this.JSC$20011_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20018_channelOpened(),this.JSC$20011_backChannelUri_=Hrh(this,this.JSC$20011_hostPrefix_,this.JSC$20011_path_),dHh(this)):Z[0]=="stop"&&nU(this,7):this.state_==3&&(Z[0]=="stop"?nU(this,7):
Z[0]!="noop"&&this.handler_&&this.handler_.JSC$20018_channelHandleArray(Z),this.JSC$20011_backChannelRetryCount_=0)}};
Vv.prototype.JSC$20011_ensureInState_=function(G){if(!_.yf(arguments,this.state_))throw Error("Xk`"+this.state_);};
var nU=function(G,H){G.JSC$20007_channelDebug_.info("Error code "+H);if(H==2||H==9){var Z=null;G.handler_&&(Z=null);var Q=(0,_.Cu)(G.testGoogleComCallback_,G);Z||(Z=new _.C9("//www.google.com/images/cleardot.gif"),_.gs(Z));iGh(Z.toString(),1E4,Q)}else d9(2);G.onError_(H)};
Vv.prototype.testGoogleComCallback_=function(G){G?(this.JSC$20007_channelDebug_.info("Successfully pinged google.com"),d9(2)):(this.JSC$20007_channelDebug_.info("Failed to ping google.com"),d9(1),this.onError_(8))};
Vv.prototype.onError_=function(G){this.JSC$20007_channelDebug_.debug("HttpChannel: error - "+G);this.state_=0;this.handler_&&this.handler_.JSC$20018_channelError(G);Sph(this);Ii8(this)};
var Sph=function(G){G.state_=0;G.JSC$20011_lastStatusCode_=-1;if(G.handler_)if(G.pendingMaps_.length==0&&G.JSC$20007_outgoingMaps_.length==0)G.handler_.JSC$20018_channelClosed();else{G.JSC$20007_channelDebug_.debug("Number of undelivered maps, pending: "+G.pendingMaps_.length+", outgoing: "+G.JSC$20007_outgoingMaps_.length);var H=_.mv(G.pendingMaps_),Z=_.mv(G.JSC$20007_outgoingMaps_);G.pendingMaps_.length=0;G.JSC$20007_outgoingMaps_.length=0;G.handler_.JSC$20018_channelClosed(H,Z)}},Eg8=function(G,
H){H=bic(G,null,H);
G.JSC$20007_channelDebug_.debug("GetForwardChannelUri: "+H);return H},Hrh=function(G,H,Z){H=bic(G,G.JSC$20006_shouldUseSecondaryDomains()?H:null,Z);
G.JSC$20007_channelDebug_.debug("GetBackChannelUri: "+H);return H},bic=function(G,H,Z){var Q=_.HS(Z);
if(Q.JSC$10041_domain_!="")H&&_.b5(Q,H+"."+Q.JSC$10041_domain_),_.Gj(Q,Q.JSC$10041_port_);else{var p=window.location;Q=lNo(p.protocol,H?H+"."+p.hostname:p.hostname,+p.port,Z)}G.JSC$20011_extraParams_&&_.oN.forEach(G.JSC$20011_extraParams_,function(l,q){_.Z0(Q,q,l)});
_.Z0(Q,"VER",G.JSC$20011_channelVersion_);qpj(G,Q);return Q};
Vv.prototype.JSC$20006_createXhrIo=function(G){if(G)throw Error("Uk");G=new _.KK;G.JSC$9805_withCredentials_=!1;return G};
Vv.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Vv.prototype.notifyServerReachabilityEvent=function(G){var H=P1o;H.dispatchEvent(new liD(H,G))};
Vv.prototype.JSC$20006_shouldUseSecondaryDomains=function(){return!1};
new JAq;var VEA=function(){};
_.g=VEA.prototype;_.g.JSC$20018_channelOpened=function(){};
_.g.JSC$20018_channelHandleArray=function(){};
_.g.JSC$20018_channelSuccess=function(){};
_.g.JSC$20018_channelError=function(){};
_.g.JSC$20018_channelClosed=function(){};
_.g.JSC$20018_getAdditionalParams=function(){return{}};
_.g.isActive=function(){return!0};var ufi=function(G){G.front_.length===0&&(G.front_=G.back_,G.front_.reverse(),G.back_=[])};
_.g=yWi.prototype;_.g.enqueue=function(G){this.back_.push(G)};
_.g.peek=function(){ufi(this);return _.wf(this.front_)};
_.g.getCount=function(){return this.front_.length+this.back_.length};
_.g.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.g.clear=function(){this.front_=[];this.back_=[]};
_.g.contains=function(G){return _.yf(this.front_,G)||_.yf(this.back_,G)};
_.g.remove=function(G){var H=this.front_;var Z=Array.prototype.lastIndexOf.call(H,G,H.length-1);Z>=0?(_.juv(H,Z),H=!0):H=!1;return H||_.ou(this.back_,G)};
_.g.getValues=function(){for(var G=[],H=this.front_.length-1;H>=0;--H)G.push(this.front_[H]);H=this.back_.length;for(var Z=0;Z<H;++Z)G.push(this.back_[Z]);return G};var $o=function(G){this.JSC$20022_map_=new _.JS;this.size=0;G&&this.addAll(G)},BBm=function(G){var H=typeof G;
return H=="object"&&G||H=="function"?"o"+_.LW(G):H.charAt(0)+G};
_.g=$o.prototype;_.g.getCount=function(){return this.JSC$20022_map_.size};
_.g.add=function(G){this.JSC$20022_map_.set(BBm(G),G);this.size=this.JSC$20022_map_.size};
_.g.addAll=function(G){G=_.Yf(G);for(var H=G.length,Z=0;Z<H;Z++)this.add(G[Z]);this.size=this.JSC$20022_map_.size};
_.g.removeAll=function(G){G=_.Yf(G);for(var H=G.length,Z=0;Z<H;Z++)this.remove(G[Z]);this.size=this.JSC$20022_map_.size};
_.g.delete=function(G){G=this.JSC$20022_map_.remove(BBm(G));this.size=this.JSC$20022_map_.size;return G};
_.g.remove=function(G){return this.delete(G)};
_.g.clear=function(){this.JSC$20022_map_.clear();this.size=0};
_.g.isEmpty=function(){return this.JSC$20022_map_.size===0};
_.g.has=function(G){return this.JSC$20022_map_.containsKey(BBm(G))};
_.g.contains=function(G){return this.JSC$20022_map_.containsKey(BBm(G))};
_.g.getValues=function(){return this.JSC$20022_map_.getValues()};
_.g.values=function(){return this.JSC$20022_map_.values()};
_.g.clone=function(){return new $o(this)};
_.g.equals=function(G){return this.getCount()==Q3t(G)&&Jzj(this,G)};
var Jzj=function(G,H){var Z=Q3t(H);if(G.getCount()>Z)return!1;!(H instanceof $o)&&Z>5&&(H=new $o(H));return psk(G,function(Q){var p=H;return p.contains&&typeof p.contains=="function"?p.contains(Q):p.containsValue&&typeof p.containsValue=="function"?p.containsValue(Q):_.Uj(p)||typeof p==="string"?_.yf(p,Q):_.oN.containsValue(p,Q)})};
$o.prototype.__iterator__=function(){return this.JSC$20022_map_.__iterator__(!1)};
$o.prototype[Symbol.iterator]=function(){return this.values()};var toD={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(G){return(this._clampValue(G)-this.min)/(this.max-this.min)},
_clampValue:function(G){return Math.min(this.max,Math.max(this.min,this._calcStep(G)))},
_calcStep:function(G){G=parseFloat(G);if(!this.step)return G;G=Math.round((G-this.min)/this.step);return this.step<1?G/(1/this.step)+this.min:G*this.step+this.min},
_validateValue:function(){var G=this._clampValue(this.value);this.value=this.oldValue=isNaN(G)?this.oldValue:G;return this.value!==G},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var ka6;var DAt;_.Vy({_template:function(){if(DAt!==void 0)return DAt;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;ka6===void 0&&(ka6=document.createElement("template"));var Q=ka6;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return DAt=G},
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(){_.q2(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(G){G.keyCode===27&&(G.preventDefault(),this.close())},
_track:function(G){if(!this.persistent&&!this.disableSwipe)switch(G.preventDefault(),G.detail.state){case "start":this._trackStart(G);break;case "track":this._trackMove(G);break;case "end":this._trackEnd(G)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var G=this.$.contentContainer.getBoundingClientRect();this._savedWidth=G.width;this._translateOffset=this.position==="left"?G.left:G.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(G){this._trackDetails&&(this._translateDrawer(G.detail.dx+this._translateOffset),this._trackDetails.push({dx:G.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(G){if(this._trackDetails){var H=G.detail.dx+this._translateOffset,Z=this.getWidth();H=this.position==="left"?H>=0||H<=-Z:H<=0||H>=Z;if(!H){var Q=this._trackDetails;this._trackDetails=null;this._flingDrawer(G,Q);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}Z/=2;G.detail.dx<-Z?this.opened=this.position==="right":G.detail.dx>Z&&(this.opened=this.position==="left");H?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(G,H){for(var Z=Date.now(),Q=Z-100,p,l=0,q=H.length-1;l<=q;){var u=l+q>>1,B=H[u];B.timeStamp>=Q?(p=B,q=u-1):l=u+1}return p?(G.detail.dx-p.dx)/(Z-p.timeStamp||1):0},
_flingDrawer:function(G,H){H=this._calculateVelocity(G,H);if(!(Math.abs(H)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;G=G.detail.dx+this._translateOffset;var Z=this.getWidth(),Q=this.position==="left",p=H>0;p?(H=Math.max(H,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(H=Math.min(H,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");H=this._FLING_INITIAL_SLOPE*(!p&&Q?-(G+Z):p&&!Q?Z-G:-G)/H;this._styleTransitionDuration(H);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,H)}},
_styleTransitionDuration:function(G){this.style.transitionDuration=G+"ms";this.$.contentContainer.style.transitionDuration=G+"ms";this.$.scrim.style.transitionDuration=G+"ms"},
_styleTransitionTimingFunction:function(G){this.$.contentContainer.style.transitionTimingFunction=G;this.$.scrim.style.transitionTimingFunction=G},
_translateDrawer:function(G){var H=this.getWidth();this.position==="left"?(G=Math.max(-H,Math.min(G,0)),this.$.scrim.style.opacity=1+G/H):(G=Math.max(0,Math.min(G,H)),this.$.scrim.style.opacity=1-G/H);this.translate3d(G+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var G=this._drawerState;G===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;G!==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=""),G!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var G=_.Bf(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"])');G.length>0?(this._firstTabStop=G[0],this._lastTabStop=G[G.length-1]):
this._lastTabStop=this._firstTabStop=null;(G=this.getAttribute("tabindex"))&&parseInt(G,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(G){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||G.keyCode!==9||(G.shiftKey?this._firstTabStop&&_.Bf(G).localTarget===this._firstTabStop&&(G.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Bf(G).localTarget===this._lastTabStop&&(G.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(G,H){this.toggleClass("visible",G&&!H,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 dAL;var e9m;_.Vy({_template:function(){if(e9m!==void 0)return e9m;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;dAL===void 0&&(dAL=document.createElement("template"));var Q=dAL;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return e9m=G},
is:"tp-yt-paper-progress",behaviors:[toD],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(G){this.toggleClass("indeterminate",G,this.$.primaryProgress)},
_transformProgress:function(G,H){G.style.transform=G.style.webkitTransform="scaleX("+H/100+")"},
_mainRatioChanged:function(G){this._transformProgress(this.$.primaryProgress,G)},
_progressChanged:function(G,H,Z,Q,p){G=this._clampValue(G);H=this._clampValue(H);var l=this._calcRatio(G)*100,q=this._calcRatio(H)*100;this._setSecondaryRatio(l);this._transformProgress(this.$.secondaryProgress,l);this._transformProgress(this.$.primaryProgress,q);this.secondaryProgress=G;p?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",H);this.setAttribute("aria-valuemin",Z);this.setAttribute("aria-valuemax",Q)},
_disabledChanged:function(G){this.setAttribute("aria-disabled",G?"true":"false")},
_hideSecondaryProgress:function(G){return G===0}});var nz8;var Vos;var $Am=function(){};
_.g=$Am.prototype;_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._buttonStateChanged=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._calcRatio=function(){};
_.g._clampValue=function(){};
_.g._calcStep=function(){};
_.g._validateValue=function(){};
_.g._update=function(){};
_.g._setImmediateValue=function(){};
_.g._setExpand=function(){};
_.g._setDragging=function(){};
_.g._setTransiting=function(){};
_.g._setMarkers=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
_.g._setRatio=function(){};
$Am=_.Vy({_template:function(){if(Vos!==void 0)return Vos;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;nz8===void 0&&(nz8=document.createElement("template"));var Q=nz8;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return Vos=G},
is:"tp-yt-paper-slider",behaviors:[_.vZ,_.Mo,_.bOt,toD],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&&_.NK(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(G,H,Z){this.setAttribute("aria-valuemin",H);this.setAttribute("aria-valuemax",Z);this.setAttribute("aria-valuenow",G);this._positionKnob(this._calcRatio(G)*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(G){this._setImmediateValue(this._calcStep(this._calcKnobPosition(G)));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(G){return(this.max-this.min)*G/100+this.min},
_onTrack:function(G){G.stopPropagation();switch(G.detail.state){case "start":this._trackStart(G);break;case "track":this._trackX(G);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(G){this.dragging||this._trackStart(G);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,G.detail.dx*(this._isRTL?-1:1)));G=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(G);G=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(G+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var G=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;G.transform=G.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(G){this._expandKnob();G.preventDefault();this.focus()},
_bartrack:function(G){this._allowBarEvent(G)&&this._onTrack(G)},
_barclick:function(G){this._w=this.$.sliderBar.offsetWidth;var H=this.$.sliderBar.getBoundingClientRect();H=(G.detail.x-H.left)/this._w*100;this._isRTL&&(H=100-H);var Z=this.ratio;this._setTransiting(!0);this._positionKnob(H);Z===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
G.preventDefault();this.focus()},
_bardown:function(G){this._allowBarEvent(G)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(G))},
_knobTransitionEnd:function(G){G.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(G,H,Z,Q){Q||this._setMarkers([]);H=Math.round((Z-H)/this.step);H>G&&(H=G);if(H<0||!isFinite(H))H=0;this._setMarkers(Array(H))},
_mergeClasses:function(G){return Object.keys(G).filter(function(H){return G[H]}).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(G){return!this.ignoreBarTouch||G.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(G){this._isRTL?this._incrementKey(G):this._decrementKey(G)},
_rightKey:function(G){this._isRTL?this._decrementKey(G):this._incrementKey(G)},
_incrementKey:function(G){this.disabled||(G.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),G.preventDefault())},
_decrementKey:function(G){this.disabled||(G.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),G.preventDefault())},
_changeValue:function(G){this.value=G.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(G){G.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.FWd._createRipple.call(this)},
_focusedChanged:function(G){G&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=G?"":"none",this._ripple.holdDown=G)}});var XbL;var czo;var Xn=null,TBo=function(){};
_.g=TBo.prototype;_.g.fit=function(){};
_.g._discoverInfo=function(){};
_.g.resetFit=function(){};
_.g.refit=function(){};
_.g.position=function(){};
_.g.constrain=function(){};
_.g._sizeDimension=function(){};
_.g.__sizeDimension=function(){};
_.g.center=function(){};
_.g.__getNormalizedRect=function(){};
_.g.__getOffscreenArea=function(){};
_.g.__getPosition=function(){};
_.g.notifyResize=function(){};
_.g.assignParentResizable=function(){};
_.g.stopResizeNotificationsFor=function(){};
_.g._subscribeIronResize=function(){};
_.g._unsubscribeIronResize=function(){};
_.g.resizerShouldNotify=function(){};
_.g._onDescendantIronResize=function(){};
_.g._fireResize=function(){};
_.g._onIronRequestResizeNotifications=function(){};
_.g._parentResizableChanged=function(){};
_.g._notifyDescendant=function(){};
_.g._requestResizeNotifications=function(){};
_.g._findParent=function(){};
_.g.toggle=function(){};
_.g.open=function(){};
_.g.close=function(){};
_.g.cancel=function(){};
_.g.invalidateTabbables=function(){};
_.g._ensureSetup=function(){};
_.g._canceledChanged=function(){};
_.g._withBackdropChanged=function(){};
_.g._prepareRenderOpened=function(){};
_.g._finishRenderOpened=function(){};
_.g._finishRenderClosed=function(){};
_.g._preparePositioning=function(){};
_.g._finishPositioning=function(){};
_.g._applyFocus=function(){};
_.g._onCaptureClick=function(){};
_.g._onCaptureFocus=function(){};
_.g._onCaptureEsc=function(){};
_.g._onCaptureTab=function(){};
_.g._onIronResize=function(){};
_.g._onNodesChange=function(){};
_.g.__ensureFirstLastFocusables=function(){};
_.g.__openedChanged=function(){};
_.g.__deraf=function(){};
_.g.__updateScrollObservers=function(){};
_.g.__addScrollListeners=function(){};
_.g.__removeScrollListeners=function(){};
_.g.__isValidScrollAction=function(){};
_.g.__onCaptureScroll=function(){};
_.g.__saveScrollPosition=function(){};
_.g.__restoreScrollPosition=function(){};
_.g._setCanceled=function(){};
TBo=_.Vy({_template:function(){if(czo!==void 0)return czo;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;XbL===void 0&&(XbL=document.createElement("template"));var Q=XbL;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);return czo=G},
is:"tp-yt-paper-toast",behaviors:[_.Fv],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(){_.vK._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.AS.requestAvailability()},
show:function(G){typeof G=="string"&&(G={text:G});for(var H in G)H.indexOf("_")===0?_.vK._warn('The property "'+H+'" is private and was not set.'):H in this?this[H]=G[H]:_.vK._warn('The property "'+H+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(G){G&&G.target===this&&G.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Xn&&Xn!==this&&Xn.close(),Xn=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Xn===this&&(Xn=null);_.Yx._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(G){this.positionTarget=G},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var fFa=new _.bn("disablePersonalizationAction");var C_t=new _.bn("showDmaConsentFlowCommand");var iOt=new _.bn("showMmgNoticeCommand");var vzo=new _.bn("saveConsentAction");var Waq=function(G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.aj(G)};
_.T(Waq,_.Iy);var z9L=_.ANu(Waq);var KaA=new _.bn("updateTopbarAvatarAction");var Moi=new _.bn("channelHandleValidationResultRenderer");var jkL=new _.bn("generateHandleFromNameResultRenderer");var Pxs=new _.bn("channelHandleInputRenderer");var rzq=new _.bn("copyLinkRenderer");var wbs=new _.bn("timedCommand");var h9A=new _.bn("clearCookieAction");var Cxi=new _.bn("getMultiPageMenuAction");var iJj=new _.bn("addToGuideSectionAction"),OJA=new _.bn("removeFromGuideSectionAction");var aF8=new _.bn("updateNotificationsUnseenCountAction");var yz8=new _.bn("resetChannelUnreadCountCommand");var ozi=new _.bn("resetSubscriptionsUnreadDotCommand");var mAs=new _.bn("selectLanguageCommand");var FyL=new _.bn("sendFeedbackAction");var UAL=new _.bn("uploadImageToScottyCommand");var R9m=new _.bn("registerPromoCommand");var NBL=new _.bn("setPushNotificationsEnabledCommand");var Azs=new _.bn("desktopTopbarRenderer");var xA6=new _.bn("surveyFollowUpRenderer");var Lao=new _.bn("handlesClaimingRadioOptionRenderer");var Ez6=new _.bn("hotkeyDialogRenderer");var Y0c=new _.bn("modifyReportFormCommand");var Fai=new _.bn("accountLinkCommand");var bJh=new _.bn("accountUnlinkCommand");var Gfc=new _.bn("logAccountLinkingEventCommand");var Hec=new _.bn("guideCollapsibleEntryRenderer");var so8=new _.bn("guideDownloadsEntryRenderer");var xWa=new _.bn("guideEntryRenderer");var Zeq=new _.bn("getLocationCommand");var Qoi=new _.bn("locationCollectionCommand");var pRm=new _.bn("storiesItemViewModel");var lE8=new _.bn("addToRemoteQueueAction");var gnD=new _.bn("insertInRemoteQueueAction");var IEi=new _.bn("removeFromRemoteQueueAction");var qFa=new _.bn("notificationRenderer");var $Em=new _.bn("localWatchHistoryCommand");var SFt=new _.bn("pdgBuyFlowHeaderRenderer");var u1k=new _.bn("pdgColorSliderRenderer");var BYa=new _.bn("pdgCommentOptionRenderer");var JVq=new _.bn("pdgCommentPreviewRenderer");var tY6=new _.bn("superVodSelectableItemButtonRenderer");var kfq=new _.bn("switchButtonRenderer");var Dy6=new _.bn("upsellDialogRenderer");var dya=new _.bn("feedbackQuestionRenderer"),eWq=new _.bn("feedbackOptionRenderer");var nnt=new _.bn("sponsorshipsTierRenderer"),VYo=new _.bn("sponsorshipsPromotionChannelRenderer");var $ys=new _.bn("simpleSurveyMessageRenderer");var FWD=new _.bn("invokeInstrumentManagerAction");var XRs=new _.bn("logYpcFlowDismissCommand");var cVk=new _.bn("logYpcFlowStartCommand");var TY6=new _.bn("unlimitedCreateFamilyEndpoint");var fEs=new _.bn("iconBadgeRenderer");var X4D=new _.bn("collaborativePlaylistVisibilityValidationRule");var vni=function(G){_.DA.call(this,"channelMessage");this.message=G};
_.T(vni,_.DA);var WoL=function(G){_.DA.call(this,"channelError");this.error=G};
_.T(WoL,_.DA);var zWt={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"},Koc={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},MYi={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},jo6={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},PTo={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var cB=function(G){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 _.JS;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;G&&(this.id=G.id||G.name,this.name=G.name,this.clientName=G.clientName?G.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=G.app,this.type=G.type||"REMOTE_CONTROL",this.username=G.user||"",this.avatar=G.userAvatarUri||"",this.obfuscatedGaiaId=G.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=G.ownerObfuscatedGaiaId||"",this.castUserId=G.castUserId||"",this.theme=G.theme||"u",rVq(this,G.capabilities||""),wRi(this,
G.compatibleSenderThemes||""),hW8(this,G.experiments||""),this.remoteControllerUrl=G.remoteControllerUrl||"",this.localChannelEncryptionKey=G.localChannelEncryptionKey||"",this.deviceContext=G.deviceContext,this.brand=G.brand||"",this.model=G.model||"",this.year=G.year||0,this.os=G.os||"",this.osVersion=G.osVersion||"",this.chipset=G.chipset||"",this.mdxDialServerType=G.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=G.pairingType||"unknown",G=G.deviceInfo)&&(G=JSON.parse(G),this.brand=
G.brand||"",this.model=G.model||"",this.year=G.year||0,this.os=G.os||"",this.osVersion=G.osVersion||"",this.chipset=G.chipset||"",this.clientName=G.clientName?G.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=G.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
cB.prototype.copy=function(){var G={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&&(G.brand=this.brand);
this.model&&(G.model=this.model);this.year&&(G.year=this.year);this.os&&(G.os=this.os);this.osVersion&&(G.osVersion=this.osVersion);this.chipset&&(G.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(G.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(G.mdxDialServerType=this.mdxDialServerType);G=new cB(G);G.connected=this.connected;G.remoteControllerUrl=this.remoteControllerUrl;G.localChannelEncryptionKey=this.localChannelEncryptionKey;G.deviceContext=
this.deviceContext;G.castUserId=this.castUserId;return G};
cB.prototype.equals=function(G){return G?this.id==G.id:!1};
var rVq=function(G,H){G.capabilities.clear();_.LM(H.split(","),_.po(_.oN.contains,zWt)).forEach(function(Z){G.capabilities.add(Z)})},wRi=function(G,H){G.compatibleSenderThemes.clear();
_.LM(H.split(","),_.po(_.oN.contains,Koc)).forEach(function(Z){G.compatibleSenderThemes.add(Z)})},hW8=function(G,H){G.experiments.clear();
H.split(",").forEach(function(Z){G.experiments.add(Z)})};_.AB(zc,_.wI);_.g=zc.prototype;_.g.JSC$20058_onTick_=function(){this.JSC$20056_interval_=Math.min(3E5,this.JSC$20056_interval_*2);this.JSC$20058_listener_();this.nextTickTime_&&this.start()};
_.g.start=function(){var G=this.JSC$20056_interval_+15E3*Math.random(),H=this.delay_;H.isActive()||H.start(G);this.nextTickTime_=Date.now()+G};
_.g.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.g.isActive=function(){return this.delay_.isActive()};
_.g.reset=function(){this.delay_.stop();this.JSC$20056_interval_=5E3};_.AB(KZ,VEA);_.g=KZ.prototype;_.g.subscribe=function(G,H,Z){return this.pubsub_.subscribe(G,H,Z)};
_.g.unsubscribe=function(G,H,Z){return this.pubsub_.unsubscribe(G,H,Z)};
_.g.unsubscribeByKey=function(G){return this.pubsub_.unsubscribeByKey(G)};
_.g.publish=function(G,H){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.g.dispose=function(){this.JSC$20059_disposed_||(this.JSC$20059_disposed_=!0,_.S_(this.pubsub_),this.disconnect(),_.S_(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20059_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Yk({})})};
_.g.isDisposed=function(){return this.JSC$20059_disposed_};
_.g.connect=function(G,H,Z){var Q=this,p,l,q,u;return _.S(function(B){if(B.nextAddress==1)return _.f0(B,2),Q.useAsyncBrowserChannelHandler_?B.yield(Q.connectPromise_,2):B.jumpTo(2);_.TO(B);if(Q.JSC$20059_disposed_||Q.JSC$20059_channel_&&Q.JSC$20059_channel_.getState()==2)return B.return();Q.sCookie_="";Q.reconnectTimer_.stop();Q.connectionParams_=G||null;Q.connectUi_=H||0;p=Q.JSC$20059_pathPrefix_+"/test";l=Q.JSC$20059_pathPrefix_+"/bind";q=new Vv(Z?Z.firstTestResults:null,Z?Z.secondTestResults:null,
Q.enableAsyncTest_);if(u=Q.JSC$20059_channel_)u.handler_=null;q.handler_=Q;Q.JSC$20059_channel_=q;if(Q.useAsyncBrowserChannelHandler_)return Q.connectPromise_=CTq(Q).then(function(){return iea(Q,p,l,u,Z)}),B.return(Q.connectPromise_.then(function(){Q.connectPromise_=_.Yk()}));
iea(Q,p,l,u,Z);return _.vg(B,0)})};
var iea=function(G,H,Z,Q,p){Oea(G);if(G.JSC$20059_channel_){var l=_.xI("ID_TOKEN"),q=G.JSC$20059_channel_.JSC$20011_extraHeaders_||{};l?q["x-youtube-identity-token"]=l:delete q["x-youtube-identity-token"];G.JSC$20059_channel_.JSC$20011_extraHeaders_=q}aEq(G);Q?(Q.getState(),G.JSC$20059_channel_.connect(H,Z,G.defaultQueryParams_,Q.sid_,Q.JSC$20011_lastArrayId_)):p?G.JSC$20059_channel_.connect(H,Z,G.defaultQueryParams_,p.sessionId,p.arrayId):G.JSC$20059_channel_.connect(H,Z,G.defaultQueryParams_)};
KZ.prototype.disconnect=function(G){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Yk())}finally{this.disconnectUi_=G||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Oea(this),this.JSC$20059_channel_&&(this.JSC$20059_channel_.getState()==3&&tEo(this.JSC$20059_channel_),this.JSC$20059_channel_.disconnect()),this.disconnectUi_=0}};
KZ.prototype.sendMessage=function(G,H){var Z=this,Q;return _.S(function(p){switch(p.nextAddress){case 1:_.f0(p,2);if(!Z.useAsyncBrowserChannelHandler_){p.jumpTo(2);break}return p.yield(Z.connectPromise_,2);case 2:_.TO(p);if(Z.JSC$20059_disposed_)return p.return();Q={_sc:G};H&&_.oN.extend(Q,H);if(Z.reconnectTimer_.isActive()||(Z.JSC$20059_channel_?Z.JSC$20059_channel_.getState():0)==2){Z.JSC$20059_pendingMessages_.push(Q);p.jumpTo(6);break}if(!Z.isChannelOpened()){p.jumpTo(6);break}_.f0(p,8);if(!Z.useAsyncBrowserChannelHandler_||
yVm(Z,G)){p.jumpTo(8);break}return p.yield(CTq(Z),8);case 8:_.TO(p,0,0,1);Z.isChannelOpened()&&(yVm(Z,G)||aEq(Z),Oea(Z),J4k(Z.JSC$20059_channel_,Q));_.vg(p,6,1);break;case 6:_.vg(p,0)}})};
var yVm=function(G,H){return G.enableMdxAuthForConnectionOnly_?!0:G.disableMdxAuthForAdMessages_?Object.values(MYi).includes(H):G.disableMdxAuthForNonPlaybackMessages_?!Object.values(jo6).includes(H):G.disableMdxAuthForShortsMessages_?Object.values(PTo).includes(H):!1};
KZ.prototype.JSC$20018_channelOpened=function(){this.isInitialReconnectTimer_?(_.S_(this.reconnectTimer_),this.reconnectTimer_=new zc(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20059_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)onk(this);else{var G=this.JSC$20059_pendingMessages_;this.JSC$20059_pendingMessages_=[];var H=G.length;aEq(this);myi(this,G,H);Uy8(this)}else Uy8(this)};
var onk=function(G){var H,Z;_.S(function(Q){if(Q.nextAddress==1)return _.f0(Q,2),Q.yield(CTq(G),2);_.TO(Q);H=G.JSC$20059_pendingMessages_;G.JSC$20059_pendingMessages_=[];Z=H.length;myi(G,H,Z);Uy8(G);return _.vg(Q,0)})},myi=function(G,H,Z){for(var Q=0;Q<Z;++Q)J4k(G.JSC$20059_channel_,H[Q]);
Uy8(G)},Uy8=function(G){G.publish("handlerOpened");
G.JSC$20059_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.g=KZ.prototype;_.g.JSC$20018_channelError=function(G){var H=G==2&&this.JSC$20059_channel_.JSC$20011_lastStatusCode_==401;G==4||H||this.reconnectTimer_.start();this.publish("handlerError",G,H);H=Object.keys(Qao).find(function(Z){return Qao[Z]===G});
this.JSC$20059_channelErrorCounter.increment("BROWSER_CHANNEL",H!=null?H:"UNKNOWN")};
_.g.JSC$20018_channelClosed=function(G,H){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(H)for(var Z=H.length,Q=0;Q<Z;++Q){var p=H[Q].map;p&&this.JSC$20059_pendingMessages_.push(p)}this.JSC$20059_channelClosedCounter.increment("BROWSER_CHANNEL");G&&this.pendingMapsOnClosedCounter.JSC$9941_streamzService.JSC$9796_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",G.length);H&&this.undeliveredMapsOnClosedCounter.JSC$9944_streamzService.JSC$9796_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
H.length)};
_.g.JSC$20018_channelSuccess=function(G,H){H!=null&&G!=null&&this.channelMessageSentCounter.increment()};
_.g.JSC$20018_getAdditionalParams=function(){var G={v:2};this.sCookie_&&(G.gsessionid=this.sCookie_);this.connectUi_!=0&&(G.ui=""+this.connectUi_);this.disconnectUi_!=0&&(G.ui=""+this.disconnectUi_);this.connectionParams_&&_.oN.extend(G,this.connectionParams_);return G};
_.g.JSC$20018_channelHandleArray=function(G){G[0]=="S"?this.sCookie_=G[1]:G[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20059_channel_.disconnect()):this.publish("handlerMessage",new oXL(G[0],G[1]));this.JSC$20059_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.g.isChannelOpened=function(){return!!this.JSC$20059_channel_&&this.JSC$20059_channel_.getState()==3};
var Oea=function(G){if(G.JSC$20059_channel_){var H=G.JSC$20059_getXsrfToken_(),Z=G.JSC$20059_channel_.JSC$20011_extraHeaders_||{};H?Z["x-youtube-lounge-xsrf-token"]=H:delete Z["x-youtube-lounge-xsrf-token"];G.JSC$20059_channel_.JSC$20011_extraHeaders_=Z}},CTq=function(G){if(G.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Yk();
if(!G.enableCachedUpdateAuthorizationHeader_)return RWk(G);G.updateAuthorizationHeaderPromise_===null&&(G.updateAuthorizationHeaderPromise_=RWk(G));return G.updateAuthorizationHeaderPromise_},RWk=function(G){return _.fK(G.getAuthorizationHeader_().then(function(H){NYA(G,H)}).thenCatch(function(){}),function(){G.updateAuthorizationHeaderPromise_=null})},NYA=function(G,H){if(G.JSC$20059_channel_){var Z=G.JSC$20059_channel_.JSC$20011_extraHeaders_||{};
H&&Object.keys(H).length>0?Z=Object.assign({},Z,H):delete Z.Authorization;G.JSC$20059_channel_.JSC$20011_extraHeaders_=Z}},aEq=function(G){G.getAuthorizationHeaderSync_&&!G.useAsyncBrowserChannelHandler_&&NYA(G,G.getAuthorizationHeaderSync_())};
_.g=KZ.prototype;_.g.setLoungeToken=function(G){(this.defaultQueryParams_.loungeIdToken=G)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20059_channel_){var H=this.JSC$20059_channel_.JSC$20011_extraHeaders_||{};G?H["X-YouTube-LoungeId-Token"]=G:delete H["X-YouTube-LoungeId-Token"];this.JSC$20059_channel_.JSC$20011_extraHeaders_=H}};
_.g.getDeviceId=function(){return this.defaultQueryParams_.id};
_.g.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.g.reconnect=function(){var G=this.reconnectTimer_;G.delay_.fire();G.start()};
_.g.safeReconnect_=function(){var G=this.JSC$20059_channel_,H=0;G.JSC$20011_backChannelRequest_&&H++;G.forwardChannelRequest_&&H++;H==0&&this.connect(this.connectionParams_,this.connectUi_)};var CZ=function(G,H){var Z=G.basePath;G.supportCors&&(Z=G.scheme+"://"+G.domain+G.port+G.basePath);return _.g7(Z+H,{})};
MC.prototype.sendRequest=function(G,H,Z,Q,p,l,q){G={format:l?"RAW":"JSON",method:G,context:this,timeout:5E3,withCredentials:!!q,onSuccess:_.po(this.JSC$20065_onSuccess_,Q,!l),onError:_.po(this.onError_,p),onTimeout:_.po(this.JSC$20065_onTimeout_,p)};Z&&(G.postParams=Z,G.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.WU(H,G)};
MC.prototype.JSC$20065_onSuccess_=function(G,H,Z,Q){H?G(Q):G({text:Z.responseText})};
MC.prototype.onError_=function(G,H){G(Error("Yk`"+H.status))};
MC.prototype.JSC$20065_onTimeout_=function(G){G(Error("Zk"))};var PI=function(G,H){return!!H&&(G.id==H||G.uuid==H)},AV8=function(G){return{name:G.name,
screenId:G.id,loungeToken:G.token,dialId:G.uuid,screenIdType:G.idType,screenIdSecret:G.secret}},xyj=function(G){return new jN(G)},Los=function(G){return Array.isArray(G)?_.mT(G,xyj):[]},FUh=function(G){if(!G)return"null";
var H=G.token?".."+G.token.slice(-6):"-",Z=G.uuid?".."+G.uuid.slice(-6):"-",Q=G.secret?".."+G.secret.slice(-6):"-";return'{name:"'+G.name+'",id:'+G.id.substr(0,6)+"..,token:"+(H+",uuid:"+Z+",idType:"+G.idType+",secret:")+(Q+"}")},fxL=function(G){return Array.isArray(G)?"["+_.mT(G,FUh).join(",")+"]":"null"};var p8q="",hb=null;var tOD=function(G,H){_.$f.call(this);var Z=this;this.handler=G();this.handler.subscribe("handlerOpened",this.JSC$20072_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(Q,p){Z.onError(p)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=H};
_.T(tOD,_.$f);_.g=tOD.prototype;_.g.connect=function(G,H,Z){this.handler.connect(G,H,Z)};
_.g.disconnect=function(G){this.handler.disconnect(G)};
_.g.reconnect=function(){this.handler.reconnect()};
_.g.getDeviceId=function(){return this.handler.getDeviceId()};
_.g.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.g.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.g.JSC$20072_onOpened=function(){this.dispatchEvent("channelOpened");var G=this.handler,H=this.currentScreenId;_.Dp("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!G.JSC$20059_channel_.useChunked_,sessionId:G.JSC$20059_channel_.sid_,arrayId:G.JSC$20059_channel_.JSC$20011_lastArrayId_});_.Dp("yt-remote-session-screen-id",H);G=bGj();H=GGo();_.yf(G,H)||G.push(H);Q98(G);ZAL()};
_.g.onClosed=function(){this.dispatchEvent("channelClosed")};
_.g.onMessage=function(G){this.dispatchEvent(new vni(G))};
_.g.onError=function(G){this.dispatchEvent(new WoL(G?1:0))};
_.g.sendMessage=function(G,H){this.handler.sendMessage(G,H)};
_.g.setLoungeToken=function(G){this.handler.setLoungeToken(G)};
_.g.dispose=function(){this.handler.dispose()};var Jlj=function(G,H,Z){var Q=this;Z=Z===void 0?function(){return""}:Z;
var p=p===void 0?new WHs:p;var l=l===void 0?new _.K$:l;this.pathPrefix=G;this.defaultQueryParams=H;this.getXsrfToken=Z;this.JSC$20075_pubsub=l;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new zc(function(){var q;((q=Q.channel)==null?void 0:sik((new M8q(q,q.JSC$19982_channel_)).JSC$19992_channel_.forwardChannelRequestPool_))===0&&Q.connect(Q.connectionParams,Q.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20075_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20075_channelOpenedCounter=new mB8;this.JSC$20075_channelClosedCounter=new UB8;this.JSC$20075_channelMessageReceivedCounter=new Nuj;this.JSC$20075_channelErrorCounter=new AWL};
Jlj.prototype.connect=function(G,H){G=G===void 0?{}:G;H=H===void 0?0:H;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=G,this.connectUi=H,EnA(this),(G=_.xI("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=G: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 DX(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,YFc(this))};
var YFc=function(G){_.tt(G.channel,"w",function(){G.channelState=3;G.reconnectTimer.reset();G.connectionParams=null;G.connectUi=0;for(var H=_.I(G.nonAckedMessagesOnChannelClosed),Z=H.next();!Z.done;Z=H.next())Z=Z.value,G.channel&&G.channel.send(Z);G.nonAckedMessagesOnChannelClosed=[];G.publish("webChannelOpened");G.JSC$20075_channelOpenedCounter.increment("WEB_CHANNEL")});
_.tt(G.channel,"x",function(){G.channelState=0;G.reconnectTimer.isActive()||G.publish("webChannelClosed");var H,Z=(H=G.channel)==null?void 0:jic(new M8q(H,H.JSC$19982_channel_));Z&&(G.nonAckedMessagesOnChannelClosed=[].concat(_.OP(Z)));G.JSC$20075_channelClosedCounter.increment("WEB_CHANNEL")});
_.tt(G.channel,"z",function(H){var Z=H.data;Z[0]==="gracefulReconnect"?(G.reconnectTimer.start(),G.channel&&G.channel.close()):G.publish("webChannelMessage",new oXL(Z[0],Z[1]));G.lastStatusCode=H.statusCode;G.JSC$20075_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.tt(G.channel,"y",function(){G.lastStatusCode===401||G.reconnectTimer.start();G.publish("webChannelError");G.JSC$20075_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.g=Jlj.prototype;_.g.disconnect=function(G){this.disconnectUi=G===void 0?0:G;this.reconnectTimer.stop();EnA(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.g.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.g.reconnect=function(){var G=this.reconnectTimer;G.delay_.fire();G.start()};
_.g.sendMessage=function(G,H){this.channel&&(EnA(this),G=Object.assign({},{_sc:G},H),this.channel.send(G))};
_.g.setLoungeToken=function(G){G||this.reconnectTimer.stop();G?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=G:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var EnA=function(G){var H=G.getXsrfToken();H?G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=H:delete G.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.g=Jlj.prototype;_.g.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.g.publish=function(G){return this.JSC$20075_pubsub.publish.apply(this.JSC$20075_pubsub,[G].concat(_.OP(_.Ry.apply(1,arguments))))};
_.g.subscribe=function(G,H,Z){return this.JSC$20075_pubsub.subscribe(G,H,Z)};
_.g.unsubscribe=function(G,H,Z){return this.JSC$20075_pubsub.unsubscribe(G,H,Z)};
_.g.unsubscribeByKey=function(G){return this.JSC$20075_pubsub.unsubscribeByKey(G)};
_.g.dispose=function(){this.JSC$20075_disposed||(this.JSC$20075_disposed=!0,_.S_(this.JSC$20075_pubsub),this.disconnect(),_.S_(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.g.isDisposed=function(){return this.JSC$20075_disposed};var Bpm=function(G){_.$f.call(this);this.webChannelService=G();this.webChannelService.subscribe("webChannelOpened",this.JSC$20083_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.T(Bpm,_.$f);_.g=Bpm.prototype;_.g.connect=function(G,H){this.webChannelService.connect(G,H)};
_.g.disconnect=function(G){this.webChannelService.disconnect(G)};
_.g.reconnect=function(){this.webChannelService.reconnect()};
_.g.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.g.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.g.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.g.JSC$20083_onOpened=function(){this.dispatchEvent("channelOpened")};
_.g.onClosed=function(){this.dispatchEvent("channelClosed")};
_.g.onMessage=function(G){this.dispatchEvent(new vni(G))};
_.g.onError=function(){this.dispatchEvent(new WoL(this.webChannelService.lastStatusCode===401?1:0))};
_.g.sendMessage=function(G,H){this.webChannelService.sendMessage(G,H)};
_.g.setLoungeToken=function(G){this.webChannelService.setLoungeToken(G)};
_.g.dispose=function(){this.webChannelService.dispose()};var Tp8=Date.now(),ii=null,X8A=Array(50),ye=-1,clh=!1;_.AB(oL,_.NM);oL.prototype.getScreens=function(){return this.screens};
oL.prototype.contains=function(G){return!!Fwc(this.screens,G)};
oL.prototype.get=function(G){return G?rL(this.screens,G):null};
var Foo=function(G,H){var Z=G.get(H.uuid)||G.get(H.id);if(Z)return G=Z.name,Z.id=H.id||Z.id,Z.name=H.name,Z.token=H.token,Z.uuid=H.uuid||Z.uuid,Z.name!=G;G.screens.push(H);return!0},bek=function(G,H){var Z=G.screens.length!=H.length;
G.screens=_.LM(G.screens,function(l){return!!Fwc(H,l)});
for(var Q=H.length,p=0;p<Q;p++)Z=Foo(G,H[p])||Z;return Z},GQ8=function(G,H){var Z=G.screens.length;
G.screens=_.LM(G.screens,function(Q){return!(Q||H?!Q!=!H?0:Q.id==H.id:1)});
return G.screens.length<Z};
oL.prototype.info=function(G){O9(this.JSC$20084_logName_,G)};var Hnk=function(G,H,Z,Q,p){_.NM.call(this);this.JSC$20087_http_=G;this.pairingCode_=H;this.deviceId_=Z;this.friendlyName_=Q;this.enableShortLivedLoungeToken_=p;this.pollIndex_=0;this.JSC$20087_xhr_=null;this.JSC$20087_timer_=NaN};
_.T(Hnk,_.NM);_.g=Hnk.prototype;_.g.start=function(){!this.JSC$20087_xhr_&&isNaN(this.JSC$20087_timer_)&&this.poll_()};
_.g.stop=function(){this.JSC$20087_xhr_&&(this.JSC$20087_xhr_.abort(),this.JSC$20087_xhr_=null);isNaN(this.JSC$20087_timer_)||(_.f$(this.JSC$20087_timer_),this.JSC$20087_timer_=NaN)};
_.g.disposeInternal=function(){this.stop();_.NM.prototype.disposeInternal.call(this)};
_.g.poll_=function(){this.JSC$20087_timer_=NaN;this.JSC$20087_xhr_=_.WU(CZ(this.JSC$20087_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Cu)(this.JSC$20089_onSuccess_,this),onError:(0,_.Cu)(this.onError_,this),onTimeout:(0,_.Cu)(this.JSC$20089_onTimeout_,this)})};
_.g.JSC$20089_onSuccess_=function(G,H){this.JSC$20087_xhr_=null;G=H.screen||{};G.dialId=this.deviceId_;G.name=this.friendlyName_;H=-1;this.enableShortLivedLoungeToken_&&G.shortLivedLoungeToken&&G.shortLivedLoungeToken.value&&G.shortLivedLoungeToken.refreshIntervalMs&&(G.screenIdType="shortLived",G.loungeToken=G.shortLivedLoungeToken.value,H=G.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new jN(G),H)};
_.g.onError_=function(G){this.JSC$20087_xhr_=null;G.status&&G.status==404?this.pollIndex_>=sVD.length?this.publish("pairingFailed",Error("$k")):(G=sVD[this.pollIndex_],this.JSC$20087_timer_=_.cU((0,_.Cu)(this.poll_,this),G),this.pollIndex_++):this.publish("pairingFailed",Error("al`"+G.status))};
_.g.JSC$20089_onTimeout_=function(){this.JSC$20087_xhr_=null;this.publish("pairingFailed",Error("bl"))};
var sVD=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.AB(U9,oL);_.g=U9.prototype;_.g.start=function(){mF(this)&&this.publish("screenChange");!_.dT("yt-remote-lounge-token-expiration")&&Zna(this);_.f$(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.cU((0,_.Cu)(this.start,this),1E4)};
_.g.add=function(G,H){mF(this);Foo(this,G);QVL(this,!1);this.publish("screenChange");H(G);G.token||Zna(this)};
_.g.remove=function(G,H){var Z=mF(this);GQ8(this,G)&&(QVL(this,!1),Z=!0);H(G);Z&&this.publish("screenChange")};
_.g.updateName=function(G,H,Z,Q){var p=mF(this),l=this.get(G.id);l?(l.name!=H&&(l.name=H,QVL(this,!1),p=!0),Z(G)):Q(Error("cl"));p&&this.publish("screenChange")};
_.g.disposeInternal=function(){_.f$(this.loungeTokenRefreshTimer_);U9.superClass_.disposeInternal.call(this)};
var Zna=function(G){if(G.screens.length){var H=_.mT(G.screens,function(Q){return Q.id}),Z=CZ(G.JSC$20091_http_,"/pairing/get_lounge_token_batch");
G.JSC$20091_http_.sendRequest("POST",Z,{screen_ids:H.join(",")},(0,_.Cu)(G.handleLoungeTokens_,G),(0,_.Cu)(G.handleLoungeTokenError_,G))}};
U9.prototype.handleLoungeTokens_=function(G){mF(this);var H=this.screens.length;G=G&&G.screens||[];for(var Z=G.length,Q=0;Q<Z;++Q){var p=G[Q],l=this.get(p.screenId);l&&(l.token=p.loungeToken,--H)}QVL(this,!H);H&&O9(this.JSC$20084_logName_,"Missed "+H+" lounge tokens.")};
U9.prototype.handleLoungeTokenError_=function(G){O9(this.JSC$20084_logName_,"Requesting lounge tokens failed: "+G)};
var mF=function(G){if(_.V("deprecate_pair_servlet_enabled"))return bek(G,[]);var H=Los(gGk());H=_.LM(H,function(Z){return!Z.uuid});
return bek(G,H)},QVL=function(G,H){qzL(_.mT(G.screens,AV8));
H&&IxA()};var T2=function(G,H){_.NM.call(this);this.getScreensToCheck_=H;H=(H=_.dT("yt-remote-online-screen-ids")||"")?H.split(","):[];for(var Z={},Q=this.getScreensToCheck_(),p=Q.length,l=0;l<p;++l){var q=Q[l].id;Z[q]=_.yf(H,q)}this.screenIdSet_=Z;this.JSC$20094_http_=G;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;pF6("Initialized with "+(0,_.zw)(this.screenIdSet_))};
_.T(T2,_.NM);T2.prototype.isOnline=function(G){return!!this.screenIdSet_[G]};
T2.prototype.start=function(){var G=parseInt(_.dT("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.NW()-144E5<G?0:G)?lz8(this):(this.fastCheckEndTime_=_.NW()+3E5,_.Dp("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
T2.prototype.isEmpty=function(){return _.oN.isEmpty(this.screenIdSet_)};
T2.prototype.update=function(){pF6("Updating availability on schedule.");var G=this.getScreensToCheck_(),H=_.oN.filter(this.screenIdSet_,function(Z,Q){return Z&&!!rL(G,Q)},this);
gUk(this,H)};
var Iz8=function(G,H,Z){var Q=CZ(G.JSC$20094_http_,"/pairing/get_screen_availability");G.JSC$20094_http_.sendRequest("POST",Q,{lounge_token:H.token},(0,_.Cu)(function(p){p=p.screens||[];for(var l=p.length,q=0;q<l;++q)if(p[q].loungeToken==H.token){Z(p[q].status=="online");return}Z(!1)},G),(0,_.Cu)(function(){Z(!1)},G))};
T2.prototype.disposeInternal=function(){_.f$(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.NM.prototype.disposeInternal.call(this)};
var gUk=function(G,H){a:if(_.oN.getCount(H)!=_.oN.getCount(G.screenIdSet_))var Z=!1;else{Z=_.oN.getKeys(H);for(var Q=Z.length,p=0;p<Q;++p)if(!G.screenIdSet_[Z[p]]){Z=!1;break a}Z=!0}Z||(pF6("Updated online screens: "+(0,_.zw)(G.screenIdSet_)),G.screenIdSet_=H,G.publish("screenChange"));qhs(G)},lz8=function(G){isNaN(G.refreshTimer_)||_.f$(G.refreshTimer_);
G.refreshTimer_=_.cU((0,_.Cu)(G.requestScreenAvailability_,G),G.fastCheckEndTime_>0&&G.fastCheckEndTime_<_.NW()?2E4:1E4)};
T2.prototype.requestScreenAvailability_=function(){_.f$(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var G=Shc(this);if(_.oN.getCount(G)){var H=CZ(this.JSC$20094_http_,"/pairing/get_screen_availability"),Z={lounge_token:_.oN.getKeys(G).join(",")};this.currentRequest_=this.JSC$20094_http_.sendRequest("POST",H,Z,(0,_.Cu)(this.onScreenAvailability_,this,G),(0,_.Cu)(this.onScreenAvailabilityError_,this))}else gUk(this,{}),lz8(this)};
T2.prototype.onScreenAvailability_=function(G,H){this.currentRequest_=null;var Z=_.oN.getKeys(Shc(this));if(_.Ej(Z,_.oN.getKeys(G))){H=H.screens||[];Z={};for(var Q=H.length,p=0;p<Q;++p)Z[G[H[p].loungeToken]]=H[p].status=="online";gUk(this,Z);lz8(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
T2.prototype.onScreenAvailabilityError_=function(G){this.warn_("Screen availability failed: "+G);this.currentRequest_=null;lz8(this)};
var pF6=function(G){O9("OnlineScreenService",G)};
T2.prototype.warn_=function(G){O9("OnlineScreenService",G)};
var Shc=function(G){var H={};_.Zk(G.getScreensToCheck_(),function(Z){Z.token?H[Z.token]=Z.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return H},qhs=function(G){G=_.oN.getKeys(_.oN.filter(G.screenIdSet_,function(H){return H}));
G.sort(_.hjW);G.length?_.Dp("yt-remote-online-screen-ids",G.join(","),60):_.eX("yt-remote-online-screen-ids")};_.AB(RL,oL);_.g=RL.prototype;_.g.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.g.add=function(G,H,Z){this.localScreenService_.add(G,H,Z)};
_.g.remove=function(G,H,Z){this.localScreenService_.remove(G,H,Z);this.onlineScreenService_.update()};
_.g.updateName=function(G,H,Z,Q){this.localScreenService_.contains(G)?this.localScreenService_.updateName(G,H,Z,Q):(G="Updating name of unknown screen: "+G.name,O9(this.JSC$20084_logName_,G),Q(Error(G)))};
_.g.getScreens=function(G){return G?this.screens:jKt(this.screens,_.LM(this.automaticScreens_,function(H){return!this.contains(H)},this))};
_.g.JSC$20099_getOnlineScreens=function(){return _.LM(this.getScreens(!0),function(G){return this.onlineScreenService_.isOnline(G.id)},this)};
var BXm=function(G,H,Z,Q,p,l){G.info("getAutomaticScreenByIds "+Z+" / "+H);Z||(Z=G.deviceToScreenId_[H]);var q=G.getScreens(),u=Z?rL(q,Z):null;Z&&(G.disableAutomaticScreenCache_||u)||(u=rL(q,H));if(u){u.uuid=H;var B=fU(G,u);Iz8(G.onlineScreenService_,B,function(t){p(t?B:null)})}else Z?u48(G,Z,(0,_.Cu)(function(t){var D=fU(this,new jN({name:Q,
screenId:Z,loungeToken:t,dialId:H||""}));Iz8(this.onlineScreenService_,D,function(d){p(d?D:null)})},G),l):p(null)};
RL.prototype.JSC$20099_getScreenByPollingPairingCode=function(G,H,Z,Q,p,l){var q=this;this.info("getDialScreenByPairingCode "+G+" / "+H);var u=new Hnk(this.JSC$20097_http_,G,H,Z,Q);u.subscribe("pairingComplete",function(B,t){_.S_(u);p(fU(q,B),t)});
u.subscribe("pairingFailed",function(B){_.S_(u);l(B)});
u.start();return(0,_.Cu)(u.stop,u)};
var JjA=function(G,H){for(var Z=G.screens.length,Q=0;Q<Z;++Q)if(G.screens[Q].name==H)return G.screens[Q];return null};
RL.prototype.JSC$20099_getScreenByPairingCode=function(G,H,Z,Q){_.WU(CZ(this.JSC$20097_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:G},timeout:5E3,onSuccess:(0,_.Cu)(function(p,l){p=new jN(l.screen||{});if(!p.name||JjA(this,p.name)){a:{l=p.name;for(var q=2,u=H(l,q);JjA(this,u);){q++;if(q>20)break a;u=H(l,q)}l=u}p.name=l}Z(fU(this,p))},this),
onError:(0,_.Cu)(function(p){Q(Error("dl`"+p.status))},this),
onTimeout:(0,_.Cu)(function(){Q(Error("el"))},this)})};
var t$8=function(G,H,Z){Iz8(G.onlineScreenService_,H,Z)};
RL.prototype.disposeInternal=function(){_.S_(this.localScreenService_);_.S_(this.onlineScreenService_);RL.superClass_.disposeInternal.call(this)};
var u48=function(G,H,Z,Q){G.info("requestLoungeToken_ for "+H);var p={postParams:{screen_ids:H},method:"POST",context:G,onSuccess:function(l,q){l=q&&q.screens||[];l[0]&&l[0].screenId==H?Z(l[0].loungeToken):Q(Error("fl"))},
onError:function(){Q(Error("gl"))}};
_.WU(CZ(G.JSC$20097_http_,"/pairing/get_lounge_token_batch"),p)},kQq=function(G){G.screens=G.localScreenService_.getScreens();
for(var H=_.oN.transpose(G.deviceToScreenId_),Z=G.screens.length,Q=0;Q<Z;++Q){var p=G.screens[Q];p.uuid=H[p.id]||""}G.info("Updated manual screens: "+fxL(G.screens))};
RL.prototype.handleScreenChange_=function(){kQq(this);this.publish("screenChange");this.onlineScreenService_.update()};
var vGc=function(G){Dgj(G);G.localScreenService_=new U9(G.JSC$20097_http_);G.localScreenService_.subscribe("screenChange",(0,_.Cu)(G.handleScreenChange_,G));kQq(G);G.disableAutomaticScreenCache_||(G.automaticScreens_=Los(_.dT("yt-remote-automatic-screen-cache")||[]));Dgj(G);G.info("Initializing automatic screens: "+fxL(G.automaticScreens_));G.onlineScreenService_=new T2(G.JSC$20097_http_,(0,_.Cu)(G.getScreens,G,!0));G.onlineScreenService_.subscribe("screenChange",(0,_.Cu)(function(){this.publish("onlineScreenChange")},
G))},fU=function(G,H){var Z=G.get(H.id);
Z?(Z.uuid=H.uuid,H=Z):((Z=rL(G.automaticScreens_,H.uuid))?(Z.id=H.id,Z.token=H.token,H=Z):G.automaticScreens_.push(H),G.disableAutomaticScreenCache_||dgq(G));Dgj(G);G.deviceToScreenId_[H.uuid]=H.id;_.Dp("yt-remote-device-id-map",G.deviceToScreenId_,31536E3);return H},dgq=function(G){G=_.LM(G.automaticScreens_,function(H){return H.idType!="shortLived"});
_.Dp("yt-remote-automatic-screen-cache",_.mT(G,AV8))},Dgj=function(G){G.deviceToScreenId_=_.dT("yt-remote-device-id-map")||{}};
RL.prototype.dispose=RL.prototype.dispose;_.AB(NC,_.NM);var vB=function(G,H){G.screen_=H;G.publish("sessionScreen",G.screen_)},ert=function(G,H){G.screen_&&(G.screen_.token=H,fU(G.JSC$20101_screenService_,G.screen_));
G.publish("sessionScreen",G.screen_)};
NC.prototype.onSessionStopped=function(G){this.isDisposed()||(G&&(WB(this,""+G),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
NC.prototype.info=function(G){O9(this.JSC$20101_logName_,G)};
var WB=function(G,H){O9(G.JSC$20101_logName_,H)};
NC.prototype.JSC$20103_getCastSession=function(){return null};
NC.prototype.setDisplayStatus=function(G){var H=this.receiver_;G?(H.displayStatus=new chrome.cast.ReceiverDisplayStatus(G,[]),H.displayStatus.showStop=!0):H.displayStatus=null;chrome.cast.setReceiverDisplayStatus(H,(0,_.Cu)(function(){this.info("Updated receiver status for "+H.friendlyName+": "+G)},this),(0,_.Cu)(function(){WB(this,"Failed to update receiver status for: "+H.friendlyName)},this))};
NC.prototype.disposeInternal=function(){this.setDisplayStatus("");NC.superClass_.disposeInternal.call(this)};var z2=function(G,H,Z){NC.call(this,G,H,"CastSession");var Q=this;this.config_=Z;this.JSC$20106_session_=null;this.JSC$20106_boundSessionUpdate_=(0,_.Cu)(this.JSC$20108_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Cu)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.cU(function(){nUq(Q,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20106_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20106_isInitLoungeToken_=!1;this.JSC$20106_lastLoungeTokenRefreshError_="unknown"};
_.T(z2,NC);_.g=z2.prototype;
_.g.setCastSession=function(G){if(this.JSC$20106_session_){if(this.JSC$20106_session_==G)return;WB(this,"Overriding cast session with new session object");V$h(this);this.JSC$20106_isInitLoungeToken_=!1;this.JSC$20106_lastLoungeTokenRefreshError_="unknown";this.JSC$20106_session_.removeUpdateListener(this.JSC$20106_boundSessionUpdate_);this.JSC$20106_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20106_session_=G;this.JSC$20106_session_.addUpdateListener(this.JSC$20106_boundSessionUpdate_);this.JSC$20106_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);$gj(this,"getMdxSessionStatus")};
_.g.launchWithParams=function(G){this.info("launchWithParams no-op for Cast: "+(0,_.zw)(G))};
_.g.stop=function(){if(this.JSC$20106_session_)this.JSC$20106_session_.stop((0,_.Cu)(function(){this.onSessionStopped()},this),(0,_.Cu)(function(){this.onSessionStopped(Error("hl"))},this));
else this.onSessionStopped(Error("il"))};
_.g.setDisplayStatus=function(){};
_.g.disposeInternal=function(){this.info("disposeInternal");V$h(this);this.JSC$20106_session_&&(this.JSC$20106_session_.removeUpdateListener(this.JSC$20106_boundSessionUpdate_),this.JSC$20106_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20106_session_=null;NC.prototype.disposeInternal.call(this)};
var cjo=function(G,H){_.f$(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0;H==0?XFm(G):G.getLoungeTokenTimeoutKey_=_.cU(function(){XFm(G)},H)},XFm=function(G){$gj(G,"getLoungeToken");
_.f$(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=_.cU(function(){TXi(G,null)},3E4)},$gj=function(G,H){G.info("sendYoutubeMessage_: "+H+" "+(0,_.zw)(void 0));
var Z={};Z.type=H;G.JSC$20106_session_?G.JSC$20106_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",Z,function(){},(0,_.Cu)(function(){WB(this,"Failed to send message: "+H+".")},G)):WB(G,"Sending yt message without session: "+(0,_.zw)(Z))};
z2.prototype.onYoutubeMessage_=function(G,H){if(!this.isDisposed())if(H)if(H=(0,_.kk)(H),_.AM(H))switch(G=""+H.type,H=H.data||{},this.info("onYoutubeMessage_: "+G+" "+(0,_.zw)(H)),G){case "mdxSessionStatus":nUq(this,H);break;case "loungeToken":TXi(this,H);break;default:WB(this,"Unknown youtube message: "+G)}else WB(this,"Unable to parse message.");else WB(this,"No data in message.")};
var fzj=function(G,H){if(H)G.info("onConnectedScreenId_: Received screenId: "+H),G.screen_&&G.screen_.id==H||G.getScreen_(H,function(Z){vB(G,Z)},function(){return G.onSessionStopped()},5);
else G.onSessionStopped(Error("jl"))},W5t=function(G,H,Z){G.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(H));
var Q=new jN(H);vUt(G,Q,function(p){p?(G.JSC$20106_isInitLoungeToken_=!0,fU(G.JSC$20101_screenService_,Q),vB(G,Q),G.JSC$20106_lastLoungeTokenRefreshError_="unknown",cjo(G,Z)):(_.FU(Error("kl`"+JSON.stringify(H))),G.onSessionStopped())},5)},nUq=function(G,H){_.f$(G.sessionStatusTimeoutKey_);
G.sessionStatusTimeoutKey_=0;if(H)G.config_.enableCastLoungeToken&&H.loungeToken?H.deviceId?G.screen_&&G.screen_.uuid==H.deviceId||(H.loungeTokenRefreshIntervalMs?W5t(G,{name:G.receiver_.friendlyName,screenId:H.screenId,loungeToken:H.loungeToken,dialId:H.deviceId,screenIdType:"shortLived"},H.loungeTokenRefreshIntervalMs):(_.FU(Error("ml`"+JSON.stringify(H))),fzj(G,H.screenId))):(_.FU(Error("ll`"+JSON.stringify(H))),fzj(G,H.screenId)):fzj(G,H.screenId);else G.onSessionStopped(Error("jl"))},TXi=function(G,
H){_.f$(G.onLoungeTokenTimeoutKey_);
G.onLoungeTokenTimeoutKey_=0;var Z=null;if(H)if(H.loungeToken){var Q;((Q=G.screen_)==null?void 0:Q.token)==H.loungeToken&&(Z="staleLoungeToken")}else Z="missingLoungeToken";else Z="noLoungeTokenResponse";Z?(G.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(H)+", error: "+Z)),G.JSC$20106_lastLoungeTokenRefreshError_=Z,cjo(G,3E4)):(ert(G,H.loungeToken),G.JSC$20106_isInitLoungeToken_=!1,G.JSC$20106_lastLoungeTokenRefreshError_="unknown",cjo(G,H.loungeTokenRefreshIntervalMs))};
z2.prototype.getScreen_=function(G,H,Z,Q){_.f$(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;BXm(this.JSC$20101_screenService_,this.receiver_.label,G,this.receiver_.friendlyName,(0,_.Cu)(function(p){p?H(p):Q>=0?(WB(this,"Screen "+G+" appears to be offline. "+Q+" retries left."),this.getScreenTimeoutKey_=_.cU((0,_.Cu)(this.getScreen_,this,G,H,Z,Q-1),300)):Z(Error("nl"))},this),Z)};
var vUt=function(G,H,Z,Q){_.f$(G.JSC$20106_checkScreenAvailabilityTimeoutKey_);G.JSC$20106_checkScreenAvailabilityTimeoutKey_=0;t$8(G.JSC$20101_screenService_,H,function(p){p||Q<0?Z(p):G.JSC$20106_checkScreenAvailabilityTimeoutKey_=_.cU(function(){vUt(G,H,Z,Q-1)},300)})};
z2.prototype.JSC$20103_getCastSession=function(){return this.JSC$20106_session_};
z2.prototype.JSC$20108_onSessionUpdate_=function(G){this.isDisposed()||G||(WB(this,"Cast session died."),this.onSessionStopped())};
var V$h=function(G){_.f$(G.getScreenTimeoutKey_);G.getScreenTimeoutKey_=0;_.f$(G.JSC$20106_checkScreenAvailabilityTimeoutKey_);G.JSC$20106_checkScreenAvailabilityTimeoutKey_=0;_.f$(G.sessionStatusTimeoutKey_);G.sessionStatusTimeoutKey_=0;_.f$(G.onLoungeTokenTimeoutKey_);G.onLoungeTokenTimeoutKey_=0;_.f$(G.getLoungeTokenTimeoutKey_);G.getLoungeTokenTimeoutKey_=0};var KU=function(G,H,Z,Q){NC.call(this,G,H,"DialSession");this.config_=Q;this.JSC$20110_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20110_theme_=Z;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20110_deferredLaunchDeadlineTimer_=NaN;this.JSC$20110_boundSessionUpdate_=(0,_.Cu)(this.JSC$20112_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20110_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20110_isInitLoungeToken_=!1;this.JSC$20110_lastLoungeTokenRefreshError_="unknown"};
_.T(KU,NC);KU.prototype.setCastSession=function(G){this.JSC$20110_session_=G;this.JSC$20110_session_.addUpdateListener(this.JSC$20110_boundSessionUpdate_)};
KU.prototype.launchWithParams=function(G){this.connectData_=G;this.deferredLaunch_()};
KU.prototype.stop=function(){zrL(this);if(this.JSC$20110_session_)this.JSC$20110_session_.stop((0,_.Cu)(this.onSessionStopped,this,null),(0,_.Cu)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
KU.prototype.disposeInternal=function(){zrL(this);this.JSC$20110_session_&&this.JSC$20110_session_.removeUpdateListener(this.JSC$20110_boundSessionUpdate_);this.JSC$20110_session_=null;NC.prototype.disposeInternal.call(this)};
var K5c=function(G){var H;return!!(G.config_.enableDialLoungeToken&&((H=G.JSC$20110_session_)==null?0:H.getDialAppInfo))},jVt=function(G){G.cancelPolling_=G.JSC$20101_screenService_.JSC$20099_getScreenByPollingPairingCode(G.reversePairingCode_,G.receiver_.label,G.receiver_.friendlyName,K5c(G),function(H,Z){G.cancelPolling_=function(){};
G.JSC$20110_isInitLoungeToken_=!0;vB(G,H);H.idType=="shortLived"&&Z>0&&M$D(G,Z)},function(H){G.cancelPolling_=function(){};
G.onSessionStopped(H)})};
KU.prototype.JSC$20112_onSessionUpdate_=function(G){this.isDisposed()||G||(WB(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var PCA=function(G){var H={};H.pairingCode=G.reversePairingCode_;H.theme=G.JSC$20110_theme_;uya()&&(H.env_useStageMdx=1);return _.zF(H)},rjh=function(G){return new Promise(function(H){G.reversePairingCode_=EXL();
if(G.connectData_){var Z=new chrome.cast.DialLaunchResponse(!0,PCA(G));H(Z);jVt(G)}else G.deferredLaunch_=function(){_.f$(G.JSC$20110_deferredLaunchDeadlineTimer_);G.deferredLaunch_=function(){};
G.JSC$20110_deferredLaunchDeadlineTimer_=NaN;var Q=new chrome.cast.DialLaunchResponse(!0,PCA(G));H(Q);jVt(G)},G.JSC$20110_deferredLaunchDeadlineTimer_=_.cU(function(){G.deferredLaunch_()},100)})},hrA=function(G,H,Z){G.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(H));
var Q=new jN(H);return(new Promise(function(p){wFD(G,Q,function(l){l?(G.JSC$20110_isInitLoungeToken_=!0,fU(G.JSC$20101_screenService_,Q),vB(G,Q),M$D(G,Z)):_.FU(Error("pl`"+JSON.stringify(H)));p(l)},5)})).then(function(p){return p?new chrome.cast.DialLaunchResponse(!1):rjh(G)})},CCi=function(G,H){var Z=G.launchData_.receiver.label,Q=G.receiver_.friendlyName;
return(new Promise(function(p){BXm(G.JSC$20101_screenService_,Z,H,Q,function(l){l&&l.token&&vB(G,l);p(l)},function(l){WB(G,"Failed to get DIAL screen: "+l);
p(null)})})).then(function(p){return p&&p.token?new chrome.cast.DialLaunchResponse(!1):rjh(G)})},wFD=function(G,H,Z,Q){_.f$(G.JSC$20110_checkScreenAvailabilityTimeoutKey_);
G.JSC$20110_checkScreenAvailabilityTimeoutKey_=0;t$8(G.JSC$20101_screenService_,H,function(p){p||Q<0?Z(p):G.JSC$20110_checkScreenAvailabilityTimeoutKey_=_.cU(function(){wFD(G,H,Z,Q-1)},300)})},M$D=function(G,H){G.info("getDialAppInfoWithTimeout_ "+H);
K5c(G)&&(_.f$(G.getDialAppInfoTimeoutKey_),G.getDialAppInfoTimeoutKey_=0,H==0?inq(G):G.getDialAppInfoTimeoutKey_=_.cU(function(){inq(G)},H))},inq=function(G){K5c(G)&&G.JSC$20110_session_.getDialAppInfo(function(H){G.info("getDialAppInfo dialLaunchData: "+JSON.stringify(H));
H=H.extraData||{};var Z=null;if(H.loungeToken){var Q;((Q=G.screen_)==null?void 0:Q.token)==H.loungeToken&&(Z="staleLoungeToken")}else Z="missingLoungeToken";Z?(G.JSC$20110_lastLoungeTokenRefreshError_=Z,M$D(G,3E4)):(G.JSC$20110_isInitLoungeToken_=!1,G.JSC$20110_lastLoungeTokenRefreshError_="unknown",ert(G,H.loungeToken),M$D(G,H.loungeTokenRefreshIntervalMs))},function(H){G.info("getDialAppInfo error: "+H);
G.JSC$20110_lastLoungeTokenRefreshError_="noLoungeTokenResponse";M$D(G,3E4)})},zrL=function(G){_.f$(G.JSC$20110_checkScreenAvailabilityTimeoutKey_);
G.JSC$20110_checkScreenAvailabilityTimeoutKey_=0;_.f$(G.getDialAppInfoTimeoutKey_);G.getDialAppInfoTimeoutKey_=0;G.cancelPolling_();G.cancelPolling_=function(){};
_.f$(G.JSC$20110_deferredLaunchDeadlineTimer_)};var MS=function(G,H){NC.call(this,G,H,"ManualSession");this.JSC$20114_deferredLaunchDeadlineTimer_=_.cU((0,_.Cu)(this.launchWithParams,this,null),150)};
_.T(MS,NC);MS.prototype.stop=function(){this.onSessionStopped()};
MS.prototype.setCastSession=function(){};
MS.prototype.launchWithParams=function(){_.f$(this.JSC$20114_deferredLaunchDeadlineTimer_);this.JSC$20114_deferredLaunchDeadlineTimer_=NaN;var G=rL(this.JSC$20101_screenService_.getScreens(),this.receiver_.label);if(G)vB(this,G);else this.onSessionStopped(Error("ql"))};
MS.prototype.disposeInternal=function(){_.f$(this.JSC$20114_deferredLaunchDeadlineTimer_);this.JSC$20114_deferredLaunchDeadlineTimer_=NaN;NC.prototype.disposeInternal.call(this)};var E9=function(G,H){_.NM.call(this);this.config_=H;this.JSC$20117_screenService_=G;this.JSC$20117_appId_=H.appId||"233637DE";this.JSC$20117_theme_=H.theme||"cl";this.disableDial_=H.disableCastApi||!1;this.forceMirroring_=H.forceMirroring||!1;this.JSC$20117_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Cu)(this.onReceiverAction_,this)};
_.T(E9,_.NM);
E9.prototype.init=function(G,H){chrome.cast.timeout.requestSession=3E4;var Z=new chrome.cast.SessionRequest(this.JSC$20117_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.V("desktop_enable_cast_connect")&&(Z.androidReceiverCompatible=!0);this.disableDial_||(Z.dialRequest=new chrome.cast.DialRequest("YouTube"));var Q=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;G=G||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var p=(0,_.Cu)(this.onReceiverUpdated_,
this);Z=new chrome.cast.ApiConfig(Z,(0,_.Cu)(this.onSessionEstablished_,this),p,Q,G);Z.customDialLaunchCallback=(0,_.Cu)(this.onDialLaunchRequested_,this);chrome.cast.initialize(Z,(0,_.Cu)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),nGs(),this.JSC$20117_screenService_.subscribe("onlineScreenChange",(0,_.Cu)(this.JSC$20119_onScreenChange_,this)),this.customReceivers_=Onm(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Cu)(function(l){this.warn_("Failed to set initial custom receivers: "+(0,_.zw)(l))},this)),this.publish("yt-remote-cast2-availability-change",azj(this)),H(!0))},this),(0,_.Cu)(function(l){this.warn_("Failed to initialize API: "+(0,_.zw)(l));
H(!1)},this))};
E9.prototype.setConnectedScreenStatus=function(G,H){jm("Setting connected screen ID: "+G+" -> "+H);if(this.JSC$20117_session_){var Z=this.JSC$20117_session_.screen_;if(!G||Z&&Z.id!=G)jm("Unsetting old screen status: "+this.JSC$20117_session_.receiver_.friendlyName),PB(this,null)}if(G&&H){if(!this.JSC$20117_session_){G=rL(this.JSC$20117_screenService_.getScreens(),G);if(!G){jm("setConnectedScreenStatus: Unknown screen.");return}if(G.idType=="shortLived"){jm("setConnectedScreenStatus: Screen with id type to be short lived.");
return}Z=yjh(this,G);Z||(jm("setConnectedScreenStatus: Connected receiver not custom..."),Z=new chrome.cast.Receiver(G.uuid?G.uuid:G.id,G.name),Z.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(Z),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Cu)(function(Q){this.warn_("Failed to set initial custom receivers: "+(0,_.zw)(Q))},this)));
jm("setConnectedScreenStatus: new active receiver: "+Z.friendlyName);PB(this,new MS(this.JSC$20117_screenService_,Z),!0)}this.JSC$20117_session_.setDisplayStatus(H)}else jm("setConnectedScreenStatus: no screen.")};
var yjh=function(G,H){return H?_.hM(G.customReceivers_,function(Z){return PI(H,Z.label)},G):null};
E9.prototype.setLaunchParams=function(G){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20117_session_?this.JSC$20117_session_.launchWithParams(G):this.warn_("Setting connection data without a session")};
E9.prototype.JSC$20119_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20117_session_?(this.JSC$20117_session_.stop(),PB(this,null)):jm("Stopping non-existing session")};
E9.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Cu)(this.onSessionEstablished_,this),(0,_.Cu)(this.onSessionRequestFailed_,this))};
E9.prototype.disposeInternal=function(){this.JSC$20117_screenService_.unsubscribe("onlineScreenChange",(0,_.Cu)(this.JSC$20119_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.ou(_.GF("yt.mdx.remote.debug.handlers_")||[],Dct);_.S_(this.JSC$20117_session_);_.NM.prototype.disposeInternal.call(this)};
var jm=function(G){O9("Controller",G)};
E9.prototype.warn_=function(G){O9("Controller",G)};
var Dct=function(G){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(G)},azj=function(G){return G.hasCastReceiver_||!!G.customReceivers_.length||!!G.JSC$20117_session_},PB=function(G,H,Z){H!=G.JSC$20117_session_&&(_.S_(G.JSC$20117_session_),(G.JSC$20117_session_=H)?(Z?G.publish("yt-remote-cast2-receiver-resumed",H.receiver_):G.publish("yt-remote-cast2-receiver-selected",H.receiver_),H.subscribe("sessionScreen",(0,_.Cu)(G.onSessionScreen_,G,H)),H.subscribe("sessionFailed",
function(){return oUh(G,H)}),H.screen_?G.publish("yt-remote-cast2-session-change",H.screen_):Z&&G.JSC$20117_session_.launchWithParams(null)):G.publish("yt-remote-cast2-session-change",null))},oUh=function(G,H){G.JSC$20117_session_==H&&G.publish("yt-remote-cast2-session-failed")};
_.g=E9.prototype;_.g.onSessionScreen_=function(G,H){this.JSC$20117_session_==G&&(H||PB(this,null),this.publish("yt-remote-cast2-session-change",H))};
_.g.onReceiverAction_=function(G,H){if(!this.isDisposed())if(G)switch(G.friendlyName=chrome.cast.unescape(G.friendlyName),jm("onReceiverAction_ "+G.label+" / "+G.friendlyName+"-- "+H),H){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20117_session_)if(this.JSC$20117_session_.receiver_.label!=G.label)jm("onReceiverAction_: Stopping active receiver: "+this.JSC$20117_session_.receiver_.friendlyName),this.JSC$20117_session_.stop();else{jm("onReceiverAction_: Casting to active receiver.");this.JSC$20117_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20117_session_.screen_);break}switch(G.receiverType){case chrome.cast.ReceiverType.CUSTOM:PB(this,new MS(this.JSC$20117_screenService_,G));break;case chrome.cast.ReceiverType.DIAL:PB(this,new KU(this.JSC$20117_screenService_,G,this.JSC$20117_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:PB(this,new z2(this.JSC$20117_screenService_,G,this.config_));break;default:this.warn_("Unknown receiver type: "+G.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20117_session_&&
this.JSC$20117_session_.receiver_.label==G.label?this.JSC$20117_session_.stop():this.warn_("Stopping receiver w/o session: "+G.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.g.onDialLaunchRequested_=function(G){if(this.isDisposed())return Promise.reject(Error("rl"));var H=G.receiver;H.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+H.friendlyName),H.receiverType=chrome.cast.ReceiverType.DIAL);var Z=this.JSC$20117_session_?this.JSC$20117_session_.receiver_:null;if(!Z||Z.label!=H.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+H.friendlyName),Promise.reject(Error("sl"));if(Z&&Z.label==H.label&&Z.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20117_session_.screen_)return jm("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20117_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+Z.receiverType+'" to "dial" for '+H.friendlyName);PB(this,new KU(this.JSC$20117_screenService_,H,this.JSC$20117_theme_,this.config_))}H=this.JSC$20117_session_;H.launchData_=G;H.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(G=H.launchData_.extraData||{},Z=G.screenId||null,K5c(H)&&G.loungeToken?G.loungeTokenRefreshIntervalMs?G=hrA(H,{name:H.receiver_.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:H.launchData_.receiver.label,screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(_.FU(Error("ol`"+JSON.stringify(G))),G=CCi(H,Z)):G=CCi(H,Z)):G=rjh(H);return G};
_.g.onSessionEstablished_=function(G){var H=this;if(!this.isDisposed()&&!this.forceMirroring_){jm("New cast session ID: "+G.sessionId);var Z=G.receiver;if(Z.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20117_session_)if(Z.receiverType==chrome.cast.ReceiverType.CAST)jm("Got resumed cast session before resumed mdx connection."),Z.friendlyName=chrome.cast.unescape(Z.friendlyName),PB(this,new z2(this.JSC$20117_screenService_,Z,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var Q=this.JSC$20117_session_.receiver_,p=rL(this.JSC$20117_screenService_.getScreens(),Q.label);p&&PI(p,Z.label)&&Q.receiverType!=chrome.cast.ReceiverType.CAST&&Z.receiverType==chrome.cast.ReceiverType.CAST&&(jm("onSessionEstablished_: manual to cast session change "+Z.friendlyName),_.S_(this.JSC$20117_session_),this.JSC$20117_session_=new z2(this.JSC$20117_screenService_,Z,this.config_),this.JSC$20117_session_.subscribe("sessionScreen",(0,_.Cu)(this.onSessionScreen_,this,this.JSC$20117_session_)),
this.JSC$20117_session_.subscribe("sessionFailed",function(){return oUh(H,H.JSC$20117_session_)}),this.JSC$20117_session_.launchWithParams(null));
this.JSC$20117_session_.setCastSession(G)}}};
_.g.JSC$20119_getCastSession=function(){return this.JSC$20117_session_?this.JSC$20117_session_.JSC$20103_getCastSession():null};
_.g.onSessionRequestFailed_=function(G){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.zw)(G)),G.code!=chrome.cast.ErrorCode.CANCEL&&PB(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.g.onReceiverUpdated_=function(G){jm("Receiver availability updated: "+G);if(!this.isDisposed()){var H=azj(this);this.hasCastReceiver_=G==chrome.cast.ReceiverAvailability.AVAILABLE;azj(this)!=H&&this.publish("yt-remote-cast2-availability-change",azj(this))}};
var Onm=function(G){var H=G.JSC$20117_screenService_.JSC$20099_getOnlineScreens(),Z=G.JSC$20117_session_&&G.JSC$20117_session_.receiver_;G=_.mT(H,function(Q){Z&&PI(Q,Z.label)&&(Z=null);var p=Q.uuid?Q.uuid:Q.id,l=yjh(this,Q);l?(l.label=p,l.friendlyName=Q.name):(l=new chrome.cast.Receiver(p,Q.name),l.receiverType=chrome.cast.ReceiverType.CUSTOM);return l},G);
Z&&(Z.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(Z=new chrome.cast.Receiver(Z.label,Z.friendlyName),Z.receiverType=chrome.cast.ReceiverType.CUSTOM),G.push(Z));return G};
E9.prototype.JSC$20119_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Onm(this),jm("Updating custom receivers: "+(0,_.zw)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Cu)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",azj(this)))};
E9.prototype.setLaunchParams=E9.prototype.setLaunchParams;E9.prototype.setConnectedScreenStatus=E9.prototype.setConnectedScreenStatus;E9.prototype.stopSession=E9.prototype.JSC$20119_stopSession;E9.prototype.getCastSession=E9.prototype.JSC$20119_getCastSession;E9.prototype.requestSession=E9.prototype.requestSession;E9.prototype.init=E9.prototype.init;E9.prototype.dispose=E9.prototype.dispose;var mgL=_.CM(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Rfj=[],rlA=_.VB(mgL);var UgA=function(G){G.audioTrackId=null;G.trackData=null;G.playerState=-1;G.hasPrevious=!1;G.hasNext=!1;G.playerTime_=0;G.playerTimeAt_=_.NW();G.seekableStart_=0;G.seekableEnd_=0;G.duration_=0;G.loadedTime=0;G.liveIngestionTime_=NaN;G.isLive_=!1};
_.g=Y6.prototype;
_.g.reset=function(G){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;G&&(this.index=G.index,this.listId=G.listId,this.videoId=G.videoId,this.playerState=G.playerState,this.volume=G.volume,this.muted=G.muted,this.audioTrackId=G.audioTrackId,this.trackData=G.trackData,this.hasPrevious=G.hasPrevious,this.hasNext=G.hasNext,this.playerTime_=G.playerTime,this.playerTimeAt_=G.playerTimeAt,this.seekableStart_=G.seekableStart,this.seekableEnd_=G.seekableEnd,this.duration_=G.duration,this.loadedTime=
G.loadedTime,this.liveIngestionTime_=G.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.g.stopPlayer=function(){this.index=-1;this.videoId="";UgA(this)};
_.g.isPlaying=function(){return this.playerState==1};
_.g.isBuffering=function(){return this.playerState==3};
_.g.isAdPlaying=function(){return this.playerState==1081};
var r9=function(G,H){G.playerTime_=H;G.playerTimeAt_=_.NW()},Rr6=function(G){switch(G.playerState){case 1:case 1081:return(_.NW()-G.playerTimeAt_)/1E3+G.playerTime_;
case -1E3:return 0}return G.playerTime_};
Y6.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.NW()-this.playerTimeAt_)/1E3:0):this.duration_};
var NXL=function(G,H,Z){var Q=G.videoId;G.videoId=H;G.index=Z;H!=Q&&UgA(G)},Aji=function(G){var H={};
H.index=G.index;H.listId=G.listId;H.videoId=G.videoId;H.playerState=G.playerState;H.volume=G.volume;H.muted=G.muted;H.audioTrackId=G.audioTrackId;H.trackData=_.oN.unsafeClone(G.trackData);H.hasPrevious=G.hasPrevious;H.hasNext=G.hasNext;H.playerTime=G.playerTime_;H.playerTimeAt=G.playerTimeAt_;H.seekableStart=G.seekableStart_;H.seekableEnd=G.seekableEnd_;H.duration=G.duration_;H.loadedTime=G.loadedTime;H.liveIngestionTime=G.liveIngestionTime_;return H};
Y6.prototype.clone=function(){return new Y6(Aji(this))};var pL=function(G,H){_.NM.call(this);var Z=this;this.state_=0;this.connection_=G;this.contextSubscriptions_=[];this.actionQueue_=new yWi;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Cu)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Cu)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Cu)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Cu)(this.onCloudviewAvailabilityChange_,this);var Q=0;G?(Q=G.getProxyState(),
Q!=3&&(G.subscribe("proxyStateChange",this.setState_,this),xgD(this))):Q=3;Q!=0&&(H?this.setState_(Q):_.cU(function(){Z.setState_(Q)},0));
(G=LUk())&&L5s(this,G);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.T(pL,_.NM);pL.prototype.getState=function(){return this.state_};
pL.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
pL.prototype.reconnect=function(){this.connection_.reconnect()};
var w9=function(G){return new Y6(G.connection_.getPlayerContextData())};
_.g=pL.prototype;_.g.play=function(){hF(this)?(this.castMedia_?this.castMedia_.play(null,_.dP,EUs(this,"play")):CU(this,"play"),Yha(this,1,Rr6(w9(this))),this.publish("remotePlayerChange")):i9(this,this.play)};
_.g.pause=function(){hF(this)?(this.castMedia_?this.castMedia_.pause(null,_.dP,EUs(this,"pause")):CU(this,"pause"),Yha(this,2,Rr6(w9(this))),this.publish("remotePlayerChange")):i9(this,this.pause)};
_.g.seekTo=function(G){if(hF(this)){if(this.castMedia_){var H=w9(this),Z=new chrome.cast.media.SeekRequest;Z.currentTime=G;H.isPlaying()||H.isBuffering()?Z.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:Z.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(Z,_.dP,EUs(this,"seekTo",{newTime:G}))}else CU(this,"seekTo",{newTime:G});Yha(this,3,G);this.publish("remotePlayerChange")}else i9(this,_.po(this.seekTo,G))};
_.g.stop=function(){if(hF(this)){this.castMedia_?this.castMedia_.stop(null,_.dP,EUs(this,"stopVideo")):CU(this,"stopVideo");var G=w9(this);G.stopPlayer();Ou(this,G);this.publish("remotePlayerChange")}else i9(this,this.stop)};
_.g.setVolume=function(G,H){if(hF(this)){var Z=w9(this);if(this.castSession_){if(Z.volume!=G){var Q=Math.round(G)/100;this.castSession_.setReceiverVolumeLevel(Q,(0,_.Cu)(function(){aL("set receiver volume: "+Q)},this),(0,_.Cu)(function(){this.warn_("failed to set receiver volume.")},this))}Z.muted!=H&&this.castSession_.setReceiverMuted(H,(0,_.Cu)(function(){aL("set receiver muted: "+H)},this),(0,_.Cu)(function(){this.warn_("failed to set receiver muted.")},this))}else{var p={volume:G,
muted:H};Z.volume!=-1&&(p.delta=G-Z.volume);CU(this,"setVolume",p)}Z.muted=H;Z.volume=G;Ou(this,Z)}else i9(this,_.po(this.setVolume,G,H))};
_.g.setAudioTrack=function(G,H){hF(this)?(H=H.getLanguageInfo().getId(),CU(this,"setAudioTrack",{videoId:G,audioTrackId:H}),G=w9(this),G.audioTrackId=H,Ou(this,G)):i9(this,_.po(this.setAudioTrack,G,H))};
_.g.addVideo=function(G){hF(this)?CU(this,"addVideo",{videoId:G}):i9(this,_.po(this.addVideo,G))};
_.g.addPlaylist=function(G){hF(this)?CU(this,"addVideos",{listId:G}):i9(this,_.po(this.addPlaylist,G))};
_.g.addVideos=function(G){G.length==0?this.warn_("Ignore add videos request due to empty list"):hF(this)?CU(this,"addVideos",{videoIds:G.join(",")}):i9(this,_.po(this.addVideos,G))};
_.g.JSC$20129_removeVideo=function(G){hF(this)?CU(this,"removeVideo",{videoId:G}):i9(this,_.po(this.JSC$20129_removeVideo,G))};
_.g.JSC$20129_insertVideo=function(G){hF(this)?CU(this,"insertVideo",{videoId:G}):i9(this,_.po(this.JSC$20129_insertVideo,G))};
_.g.playVideo=function(G,H,Z,Q,p,l,q){Q=Q===void 0?null:Q;p=p===void 0?null:p;l=l===void 0?null:l;q=q===void 0?null:q;var u=w9(this),B={videoId:G};Z!==void 0&&(B.currentIndex=Z);NXL(u,G,Z||0);H!==void 0&&(r9(u,H),B.currentTime=H);Q&&(B.listId=Q);p&&(B.playerParams=p);l&&(B.clickTrackingParams=l);q&&(B.locationInfo=(0,_.zw)(q));CU(this,"setPlaylist",B);Q||Ou(this,u)};
_.g.nextVideo=function(G,H){if(hF(this)){if(G&&H){var Z=w9(this);NXL(Z,G,H);Ou(this,Z)}CU(this,"next")}else i9(this,_.po(this.nextVideo,G,H))};
_.g.clearPlaylist=function(){if(hF(this)){CU(this,"clearPlaylist");var G=w9(this);G.reset();Ou(this,G);this.publish("remotePlayerChange")}else i9(this,this.clearPlaylist)};
_.g.dispose=function(){if(this.state_!=3){var G=this.state_;this.state_=3;this.publish("proxyStateChange",G,this.state_)}_.NM.prototype.dispose.call(this)};
_.g.disposeInternal=function(){F56(this);this.connection_=null;this.actionQueue_.clear();L5s(this,null);_.NM.prototype.disposeInternal.call(this)};
var xgD=function(G){_.Zk("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(H){this.contextSubscriptions_.push(this.connection_.subscribe(H,_.po(this.onProxyEvent_,H),this))},G)},F56=function(G){_.Zk(G.contextSubscriptions_,function(H){this.connection_.unsubscribeByKey(H)},G);
G.contextSubscriptions_.length=0},hF=function(G){return G.getState()==1},i9=function(G,H){G.actionQueue_.getCount()<50&&G.actionQueue_.enqueue(H)},Yha=function(G,H,Z){var Q=w9(G);
r9(Q,Z);Q.playerState!=-1E3&&(Q.playerState=H);Ou(G,Q)},CU=function(G,H,Z){G.connection_.sendMessage(H,Z)},Ou=function(G,H){F56(G);
G.connection_.setPlayerContextData(Aji(H));xgD(G)};
pL.prototype.setState_=function(G){if((G!=this.state_||G==2)&&this.state_!=3&&G!=0){var H=this.state_;this.state_=G;this.publish("proxyStateChange",H,G);if(G==1)for(;!this.actionQueue_.isEmpty();)G=this.actionQueue_,ufi(G),G.front_.pop().apply(this);else G==3&&this.dispose()}};
pL.prototype.onProxyEvent_=function(G,H){this.publish(G,H)};
var L5s=function(G,H){G.castSession_&&(G.castSession_.removeUpdateListener(G.boundCastStatusListener_),G.castSession_.removeMediaListener(G.boundCastMediaListener_),G.onCastMediaChange_(null));G.castSession_=H;if(G.castSession_&&(aL("Setting cast session: "+G.castSession_.sessionId),G.castSession_.addUpdateListener(G.boundCastStatusListener_),G.castSession_.addMediaListener(G.boundCastMediaListener_),G.castSession_.media.length))G.onCastMediaChange_(G.castSession_.media[0])};
pL.prototype.onCastStatusUpdate_=function(G){if(!G)this.onCastMediaChange_(null),L5s(this,null);else if(this.castSession_.receiver.volume){G=this.castSession_.receiver.volume;var H=w9(this),Z=Math.round(100*G.level||0);if(H.volume!=Z||H.muted!=G.muted)aL("Cast volume update: "+G.level+(G.muted?" muted":"")),H.volume=Z,H.muted=!!G.muted,Ou(this,H)}};
pL.prototype.onCastMediaChange_=function(G){aL("Cast media: "+!!G);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=G)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),bnA(this),this.publish("remotePlayerChange")};
var bnA=function(G){var H=G.castMedia_.media,Z=G.castMedia_.customData;if(H&&Z){var Q=w9(G);H.contentId!=Q.videoId&&aL("Cast changing video to: "+H.contentId);Q.videoId=H.contentId;Q.playerState=Z.playerState;r9(Q,G.castMedia_.getEstimatedTime());Ou(G,Q)}else aL("No cast media video. Ignoring state update.")};
pL.prototype.onCastMediaUpdate_=function(G){if(G)bnA(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
pL.prototype.onCloudviewAvailabilityChange_=function(){var G=LUk();G&&L5s(this,G)};
pL.prototype.warn_=function(G){O9("CP",G)};
var EUs=function(G,H,Z){return(0,_.Cu)(function(Q){this.warn_("Failed to "+H+" with cast v2 channel. Error code: "+Q.code);Q.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+H+" using MDx browser channel."),CU(this,H,Z))},G)};var lk=function(G,H,Z,Q){Q=Q===void 0?!1:Q;_.NM.call(this);var p=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$20134_http_=G;this.enableConnectWithInitialState_=Q;this.listeners_.push(_.Sy(window,"beforeunload",function(){p.JSC$20137_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Y6;this.currentScreenId_=H.id;this.currentScreenIdType_=H.idType;this.channelService=kGL(this.JSC$20134_http_,Z,this.JSC$20137_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){G7c(p)});
this.channelService.listen("channelClosed",function(){aY("Channel closed");isNaN(p.connectTimerId_)?wL(!0):wL();p.dispose()});
this.channelService.listen("channelError",function(l){wL();isNaN(p.getReconnectTimeout_())?(l==1&&p.currentScreenIdType_=="shortLived"&&p.publish("browserChannelAuthError",l),aY("Channel error: "+l+" without reconnection"),p.dispose()):(p.reconnecting_=!0,aY("Channel error: "+l+" with reconnection in "+p.getReconnectTimeout_()+" ms"),H8k(p,2))});
this.channelService.listen("channelMessage",function(l){sbk(p,l)});
this.channelService.setLoungeToken(H.token);this.subscribe("remoteQueueChange",function(){var l=p.playerContext_.videoId;HAm()&&_.Dp("yt-remote-session-video-id",l)})};
_.T(lk,_.NM);
lk.prototype.connect=function(G,H){if(H){var Z=H.listId,Q=H.videoId,p=H.videoIds,l=H.playerParams,q=H.clickTrackingParams,u=H.index,B={videoId:Q},t=H.currentTime,D=H.locationInfo;H=H.loopMode;t!==void 0&&(B.currentTime=t<=5?0:t);l&&(B.playerParams=l);D&&(B.locationInfo=D);q&&(B.clickTrackingParams=q);Z&&(B.listId=Z);p&&p.length>0&&(B.videoIds=p.join(","));u!==void 0&&(B.currentIndex=u);this.enableConnectWithInitialState_&&(B.loopMode=H||"LOOP_MODE_OFF");Z&&(this.playerContext_.listId=Z);this.playerContext_.videoId=
Q;this.playerContext_.index=u||0;this.playerContext_.state=3;r9(this.playerContext_,t);this.autoplayMode_="UNSUPPORTED";Z=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";aY("Connecting with "+Z+" and params: "+(0,_.zw)(B));this.channelService.connect({method:Z,params:(0,_.zw)(B)},G,lxh())}else aY("Connecting without params"),this.channelService.connect({},G,lxh());Z8t(this)};
lk.prototype.setLoungeToken=function(G){this.channelService.setLoungeToken(G)};
lk.prototype.dispose=function(){this.isDisposed()||(_.u7("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),H8k(this,3));_.NM.prototype.dispose.call(this)};
lk.prototype.disposeInternal=function(){Qbq(this);p6i(this);lnm(this);_.f$(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.f$(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Jtf(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.NM.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var gcm=function(G){return _.hM(G.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"})},aY=function(G){O9("conn",G)},H8k=function(G,H){G.publish("proxyStateChange",H)},Z8t=function(G){G.connectTimerId_=_.cU(function(){aY("Connecting timeout");
G.JSC$20137_disconnect_(1)},2E4)},Qbq=function(G){_.f$(G.connectTimerId_);
G.connectTimerId_=NaN},lnm=function(G){_.f$(G.reconnectedCheckScreenTimeout_);
G.reconnectedCheckScreenTimeout_=NaN},qUo=function(G){p6i(G);
G.playingSyncTimerId_=_.cU(function(){Inj(G,"getNowPlaying")},2E4)},p6i=function(G){_.f$(G.playingSyncTimerId_);
G.playingSyncTimerId_=NaN},G7c=function(G){aY("Channel opened");
G.reconnecting_&&(G.reconnecting_=!1,lnm(G),G.reconnectedCheckScreenTimeout_=_.cU(function(){aY("Timing out waiting for a screen.");G.JSC$20137_disconnect_(1)},15E3))},u$k=function(G,H){var Z=null;
if(H){var Q=gcm(G);Q&&(Z={clientName:Q.clientName,deviceMake:Q.brand,deviceModel:Q.model,osVersion:Q.osVersion})}_.u7("yt.mdx.remote.remoteClient_",Z);H&&(Qbq(G),lnm(G));Z=G.channelService.isChannelOpened()&&isNaN(G.connectTimerId_);H==Z?H&&(H8k(G,1),Inj(G,"getSubtitlesTrack")):H?(G.getOtherConnectedRemoteId_()&&G.playerContext_.reset(),H8k(G,1),Inj(G,"getNowPlaying"),SUj(G)):G.JSC$20137_disconnect_(1)},BhL=function(G,H){var Z=H.params.videoId;
delete H.params.videoId;Z==G.playerContext_.videoId&&(_.oN.isEmpty(H.params)?G.playerContext_.trackData=null:G.playerContext_.trackData=H.params,G.publish("remotePlayerChange"))},JJt=function(G,H,Z){var Q=H.params.videoId||H.params.video_id,p=parseInt(H.params.currentIndex,10);
G.playerContext_.listId=H.params.listId||G.playerContext_.listId;NXL(G.playerContext_,Q,p);G.publish("remoteQueueChange",Z)},tBk=function(G,H){H.params=H.params||{};
JJt(G,H,"NOW_PLAYING_MAY_CHANGE");G.onStateChange_(H);G.publish("autoplayDismissed")};
lk.prototype.onStateChange_=function(G){var H=parseInt(G.params.currentTime||G.params.current_time,10);r9(this.playerContext_,isNaN(H)?0:H);H=parseInt(G.params.state,10);H=isNaN(H)?-1:H;H==-1&&this.playerContext_.playerState==-1E3&&(H=-1E3);this.playerContext_.playerState=H;H=Number(G.params.loadedTime);this.playerContext_.loadedTime=isNaN(H)?0:H;H=Number(G.params.duration);this.playerContext_.duration_=isNaN(H)?0:H;H=this.playerContext_;var Z=Number(G.params.liveIngestionTime);H.liveIngestionTime_=
Z;H.isLive_=isNaN(Z)?!1:!0;H=this.playerContext_;Z=Number(G.params.seekableStartTime);G=Number(G.params.seekableEndTime);H.seekableStart_=isNaN(Z)?0:Z;H.seekableEnd_=isNaN(G)?0:G;this.playerContext_.playerState==1?qUo(this):p6i(this);this.publish("remotePlayerChange")};
lk.prototype.onAdStateChange_=function(G){if(this.playerContext_.playerState!=-1E3){var H=1085;switch(parseInt(G.params.adState,10)){case 1:H=1081;break;case 2:H=1084;break;case 0:H=1083}this.playerContext_.playerState=H;G=parseInt(G.params.currentTime,10);r9(this.playerContext_,isNaN(G)?0:G);this.publish("remotePlayerChange")}};
var k7k=function(G,H){var Z=H.params.muted=="true";G.playerContext_.volume=parseInt(H.params.volume,10);G.playerContext_.muted=Z;G.publish("remotePlayerChange")},DTA=function(G,H){G.autoplayVideoId_=H.params.videoId;
G.publish("nowAutoplaying",parseInt(H.params.timeout,10))},dTo=function(G,H){G.autoplayVideoId_=H.params.videoId||null;
G.publish("autoplayUpNext",G.autoplayVideoId_)},eFc=function(G,H){G.autoplayMode_=H.params.autoplayMode;
G.publish("autoplayModeChange",G.autoplayMode_);G.autoplayMode_=="DISABLED"&&G.publish("autoplayDismissed")},nch=function(G,H){var Z=H.params.hasNext=="true";
G.playerContext_.hasPrevious=H.params.hasPrevious=="true";G.playerContext_.hasNext=Z;G.publish("previousNextChange")};
lk.prototype.isCapabilitySupportedOnConnectedDevices_=function(G){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var H=_.I(this.connectedDevices_),Z=H.next();!Z.done;Z=H.next())if(!Z.value.capabilities.has(G))return!1;return!0};
var sbk=function(G,H){H=H.message;H.params?aY("Received: action="+H.action+", params="+(0,_.zw)(H.params)):aY("Received: action="+H.action+" {}");switch(H.action){case "loungeStatus":H=(0,_.kk)(H.params.devices);G.connectedDevices_=_.mT(H,function(Q){return new cB(Q)});
H=!!_.hM(G.connectedDevices_,function(Q){return Q.type=="LOUNGE_SCREEN"});
u$k(G,H);H=G.isCapabilitySupportedOnConnectedDevices_("mlm");G.publish("multiStateLoopEnabled",H);break;case "loungeScreenDisconnected":M98(G.connectedDevices_,function(Q){return Q.type=="LOUNGE_SCREEN"});
u$k(G,!1);break;case "remoteConnected":var Z=new cB((0,_.kk)(H.params.device));_.hM(G.connectedDevices_,function(Q){return Q.equals(Z)})||_.M2v(G.connectedDevices_,Z);
break;case "remoteDisconnected":Z=new cB((0,_.kk)(H.params.device));M98(G.connectedDevices_,function(Q){return Q.equals(Z)});
break;case "gracefulDisconnect":break;case "playlistModified":JJt(G,H,"QUEUE_MODIFIED");break;case "nowPlaying":tBk(G,H);break;case "onStateChange":G.onStateChange_(H);break;case "onAdStateChange":G.onAdStateChange_(H);break;case "onVolumeChanged":k7k(G,H);break;case "onSubtitlesTrackChanged":BhL(G,H);break;case "nowAutoplaying":DTA(G,H);break;case "autoplayDismissed":G.publish("autoplayDismissed");break;case "autoplayUpNext":dTo(G,H);break;case "onAutoplayModeChanged":eFc(G,H);break;case "onHasPreviousNextChanged":nch(G,
H);break;case "requestAssistedSignIn":G.publish("assistedSignInRequested",H.params.authCode);break;case "onLoopModeChanged":G.publish("loopModeChange",H.params.loopMode);break;default:aY("Unrecognized action: "+H.action)}};
_.g=lk.prototype;_.g.getProxyState_=function(){var G=3;this.isDisposed()||(G=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(G=1):G=2);return G};
_.g.JSC$20137_disconnect_=function(G){aY("Disconnecting with "+G);_.u7("yt.mdx.remote.remoteClient_",null);Qbq(this);this.publish("beforeDisconnect",G);G==1&&wL();this.channelService.disconnect(G);this.dispose()};
_.g.getPlayerContextData_=function(){var G=this.playerContext_;this.clientVideoId_&&(G=this.playerContext_.clone(),NXL(G,this.clientVideoId_,G.index));return Aji(G)};
_.g.setPlayerContextData_=function(G){var H=this,Z=new Y6(G);Z.videoId&&Z.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=Z.videoId,_.f$(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.cU(function(){if(H.clientVideoId_){var p=H.clientVideoId_;H.clientVideoId_=null;H.playerContext_.videoId!=p&&Inj(H,"getNowPlaying")}},5E3));
var Q=[];this.playerContext_.listId==Z.listId&&this.playerContext_.videoId==Z.videoId&&this.playerContext_.index==Z.index||Q.push("remoteQueueChange");this.playerContext_.playerState==Z.playerState&&this.playerContext_.volume==Z.volume&&this.playerContext_.muted==Z.muted&&Rr6(this.playerContext_)==Rr6(Z)&&(0,_.zw)(this.playerContext_.trackData)==(0,_.zw)(Z.trackData)||Q.push("remotePlayerChange");this.playerContext_.reset(G);_.Zk(Q,function(p){this.publish(p)},this)};
_.g.getOtherConnectedRemoteId_=function(){var G=this.channelService.getDeviceId(),H=_.hM(this.connectedDevices_,function(Z){return Z.type=="REMOTE_CONTROL"&&Z.id!=G});
return H?H.id:""};
_.g.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.g.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.g.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.g.JSC$20137_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var SUj=function(G){_.f$(G.idleDisconnectTimerId_);G.idleDisconnectTimerId_=_.cU(function(){G.JSC$20137_disconnect_(1)},864E5)},Inj=function(G,H,Z){Z?aY("Sending: action="+H+", params="+(0,_.zw)(Z)):aY("Sending: action="+H);
G.channelService.sendMessage(H,Z)};
lk.prototype.sendMessageWithUserAction_=function(G,H){Inj(this,G,H);SUj(this)};
lk.prototype.JSC$20137_getXsrfToken_=function(){var G=_.jA.get("SAPISID","")||_.jA.get("__Secure-1PAPISID",void 0)||"",H=_.jA.get("__Secure-3PAPISID","")||"";if(!G&&!H)return"";G=_.Cm(_.rI(G),2);H=_.Cm(_.rI(H),2);return _.Cm(_.rI(","+G+","+H),2)};
lk.prototype.subscribe=lk.prototype.subscribe;lk.prototype.unsubscribeByKey=lk.prototype.unsubscribeByKey;lk.prototype.getProxyState=lk.prototype.getProxyState_;lk.prototype.disconnect=lk.prototype.JSC$20137_disconnect_;lk.prototype.getPlayerContextData=lk.prototype.getPlayerContextData_;lk.prototype.setPlayerContextData=lk.prototype.setPlayerContextData_;lk.prototype.getOtherConnectedRemoteId=lk.prototype.getOtherConnectedRemoteId_;lk.prototype.getReconnectTimeout=lk.prototype.getReconnectTimeout_;
lk.prototype.getAutoplayMode=lk.prototype.getAutoplayMode_;lk.prototype.getAutoplayVideoId=lk.prototype.getAutoplayVideoId_;lk.prototype.reconnect=lk.prototype.JSC$20137_reconnect_;lk.prototype.sendMessage=lk.prototype.sendMessageWithUserAction_;lk.prototype.getXsrfToken=lk.prototype.JSC$20137_getXsrfToken_;lk.prototype.isCapabilitySupportedOnConnectedDevices=lk.prototype.isCapabilitySupportedOnConnectedDevices_;var k16=function(G){oL.call(this,"ScreenServiceProxy");this.instance_=G;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Cu)(this.JSC$20140_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Cu)(this.onOnlineScreenChange_,this)))};
_.T(k16,oL);_.g=k16.prototype;_.g.getScreens=function(G){return this.instance_.$_gs(G)};
_.g.contains=function(G){return!!this.instance_.$_c(G)};
_.g.get=function(G){return this.instance_.$_g(G)};
_.g.start=function(){this.instance_.$_st()};
_.g.add=function(G,H,Z){this.instance_.$_a(G,H,Z)};
_.g.remove=function(G,H,Z){this.instance_.$_r(G,H,Z)};
_.g.updateName=function(G,H,Z,Q){this.instance_.$_un(G,H,Z,Q)};
_.g.disposeInternal=function(){for(var G=this.subscriptionKeys_.length,H=0;H<G;++H)this.instance_.$_ubk(this.subscriptionKeys_[H]);this.subscriptionKeys_.length=0;this.instance_=null;oL.prototype.disposeInternal.call(this)};
_.g.JSC$20140_onScreenChange_=function(){this.publish("screenChange")};
_.g.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
RL.prototype.$_st=RL.prototype.start;RL.prototype.$_gspc=RL.prototype.JSC$20099_getScreenByPairingCode;RL.prototype.$_gsppc=RL.prototype.JSC$20099_getScreenByPollingPairingCode;RL.prototype.$_c=RL.prototype.contains;RL.prototype.$_g=RL.prototype.get;RL.prototype.$_a=RL.prototype.add;RL.prototype.$_un=RL.prototype.updateName;RL.prototype.$_r=RL.prototype.remove;RL.prototype.$_gs=RL.prototype.getScreens;RL.prototype.$_gos=RL.prototype.JSC$20099_getOnlineScreens;RL.prototype.$_s=RL.prototype.subscribe;
RL.prototype.$_ubk=RL.prototype.unsubscribeByKey;var qVD=null,dWi=!1,Fd=null,bi=null,tVi=null,ZP=[];var VBh=new _.Lg("yt-menu"),$T8=function(){},cJD=function(G,H,Z){G=H=="right-click"?Z.rightClickMenuPopupHint:Z.menuPopupHint;
if(!(X6i(H)>10))return H=H||"default",VBh.set(H+"-impression",X6i(H)+1),G},X6i=function(G){return parseInt(VBh.get((G||"default")+"-impression")||0,10)};
_.R6($T8);var Th6=function(){this.contexts_=new WeakMap;this.JSC$20146_networkService_=this.activeContext_=null},fnh=function(G,H,Z){var Q=G.contexts_.get(H);
Q||(Q=new W16(G.JSC$20146_networkService_),G.contexts_.set(H,Q));G.activeContext_=Q;Z&&G.activeContext_.reset();G.activeContext_.start();return G.activeContext_};var yv=function(){};
yv.prototype.enqueue=function(){var G=this,H;return _.S(function(Z){if(G.isCounterfactual())return(H=G.getCounterfactualData())&&G.shouldLogCounterfactualImpression()&&G.sendImpressionEndpoints(H),Z.return();G.doEnqueue();_.K0(Z)})};
yv.prototype.sendImpressionEndpoints=function(G){_.sS.getInstance().triggerOptionalAction("yt-service-request",{},G[0])};var oY=function(G,H){this.renderer=G;this.page=H};
_.T(oY,yv);oY.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
oY.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
oY.prototype.shouldLogCounterfactualImpression=function(){return!0};
oY.prototype.doEnqueue=function(){var G=_.mG(this.page);G&&G.pause();this.renderer.impressionCommand&&_.sS.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.hA(_.sS.getInstance(),[this.renderer.promoCommand],this.page)};var vcs=function(G,H){this.renderer=G;this.resolver=_.hQ();this.JSC$20158_enforcementCounter=new _.pP4;H?this.JSC$20158_playerManager=_.mG(H):this.JSC$20158_playerManager=null;_.p3(1,!0)};
_.T(vcs,yv);_.g=vcs.prototype;_.g.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var G=[];this.renderer.impressionEndpoints.forEach(function(H){(H=_.Tt(H))&&G.push(H)});
return G}};
_.g.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.g.shouldLogCounterfactualImpression=function(){var G=_.MUX();G?(this.JSC$20158_enforcementCounter.increment("POPUP"),_.p3(3)):_.p3(2);return G};
_.g.cancel=function(){this.resolver.promise.cancel()};
_.g.doEnqueue=function(){var G=this;_.MUX()?(this.JSC$20158_enforcementCounter.increment("POPUP"),_.p3(3),W4c(this)):this.JSC$20158_playerManager?(this.resolver.promise.then(function(){W4c(G)}),zF6(this.resolver,this.JSC$20158_playerManager)):_.p3(2)};
var zF6=function(G,H){var Z=_.hQ();H.getPlayerPromise().then(function(Q){Z.resolve(Q)});
Z.promise.then(function(Q){Q.addEventListener("onAbnormalityDetected",G.resolve);_.fK(G.promise,function(){Q.removeEventListener("onAbnormalityDetected",G.resolve)})});
G.promise.thenCatch(function(){Z.promise.cancel()})},W4c=function(G){_.p3(3);
var H={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:G.renderer}};H=_.sS.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});Promise.all(H).then(function(){K46();G.JSC$20158_playerManager&&G.JSC$20158_playerManager.pause()})},K46=function(){ugi(function(G,H){_.uT6(G,H);
G===0?_.p3(7):_.p3(4)})};var MBq=function(G,H){this.renderer=G;this.page=H;this.resolver=_.hQ()};
_.T(MBq,yv);_.g=MBq.prototype;_.g.cancel=function(){this.resolver.promise.cancel()};
_.g.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.g.isCounterfactual=function(){return!this.renderer.isVisible};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var G=this;this.resolver.promise.then(function(){var Z={popup:{mealbarPromoRenderer:G.renderer},popupType:"MEALBAR"};_.sS.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Z},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var H=_.mG(this.page);H&&jbA(this.resolver,H)}break;default:this.resolver.resolve()}};
var jbA=function(G,H){var Z=_.hQ();H.getPlayerPromise().then(function(Q){Z.resolve(Q)});
Z.promise.then(function(Q){Q.addEventListener("onAdEnd",G.resolve);_.fK(G.promise,function(){Q.removeEventListener("onAdEnd",G.resolve)})});
G.promise.thenCatch(function(){Z.promise.cancel()})};var Pr6=function(G,H){this.renderer=G;this.page=H};
_.T(Pr6,yv);_.g=Pr6.prototype;_.g.cancel=function(){this.JSC$20166_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20166_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20166_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.g.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.g.isCounterfactual=function(){return!this.renderer.isVisible};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var G=this,H,Z;((H=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(Z=H.playbackUpsellDialogTriggerConditionData)==null?void 0:Z.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20166_downloadedVideosCountSelectorUnsubscriber=_.wU(_.mm(),q6o,function(Q,p){Q>p&&(rJ8(G),G.cancel())}):rJ8(this)};
var rJ8=function(G){var H={popup:{upsellDialogRenderer:G.renderer},popupType:"MODAL"};_.sS.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});(G=_.mG(G.page))&&G.pause()};var mC={},w6m=(mC.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",mC.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",mC.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",mC.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",mC.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",mC.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",mC.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",mC),hFh=function(G,H){this.renderer=G;this.targetManager=
H};
_.T(hFh,yv);_.g=hFh.prototype;_.g.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20173_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20173_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20173_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.g.getCounterfactualData=function(){if(this.isCounterfactual()){var G;return(G=this.renderer.promoConfig)==null?void 0:G.impressionEndpoints}};
_.g.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var G=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20173_downloadedVideosCountSelectorUnsubscriber=_.wU(_.mm(),q6o,function(H,Z){G.renderer.targetId&&H>Z&&(Yxk(G.targetManager,G.renderer.targetId,Cr8(G)),G.cancel())});
break;default:Yxk(this.targetManager,this.renderer.targetId,Cr8(this))}};
var Cr8=function(G){var H;if((H=G.renderer.suggestedPosition)==null?0:H.type)var Z=w6m[G.renderer.suggestedPosition.type];Z||(Z="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:G.renderer},popupType:"HINT",position:Z}}};var i8c=function(){this.previousPage=null},O8i;
i8c.prototype.registerPromoCommand=function(G,H){ana(this,void 0,void 0,_.X(G.roadblock,Dy6),void 0,void 0,H)};
var ana=function(G,H,Z,Q,p,l,q){G.previousPage!==q&&G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel();G.previousPage=q;p?(G.pendingEnforcementPromo&&G.pendingEnforcementPromo.cancel(),G.pendingEnforcementPromo=new vcs(p,q),G.pendingEnforcementPromo.enqueue()):l?(G.pendingCommandWrapperPromo=new oY(l,q),G.pendingCommandWrapperPromo.enqueue()):Q?(G.pendingRoadblockPromo&&G.pendingRoadblockPromo.cancel(),G.pendingRoadblockPromo=new Pr6(Q,q),G.pendingRoadblockPromo.enqueue()):H?(G.pendingMealbarPromo&&
G.pendingMealbarPromo.cancel(),G.pendingMealbarPromo=new MBq(H,q),G.pendingMealbarPromo.enqueue()):Z&&(G.pendingTooltipPromo&&G.pendingTooltipPromo.cancel(),G.pendingTooltipPromo=new hFh(Z,_.v9()),G.pendingTooltipPromo.enqueue())},yJs=function(){O8i||(O8i=new i8c);
return O8i};var $Wt=!1;var YKh=function(G,H){var Z=_.xI("SESSION_INDEX");this.actionToken_=G;this.commonToken_=H;this.sessionIndex_=Z},Eum=function(G){var H=_.hQ(),Z=_.GF("payments.business.integration.bootstrap"),Q=_.GF("payments.business.integration"),p=Q.Style.create().withMaterialDesignStyle(),l=Q.mashupMode.popup("instrument-manager");
Z.asMashupMode(l).usingUserIndex(G.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(p).inStandaloneContext(Q.standaloneContextAuthId.forUserId()).instrumentManager(G.actionToken_,G.commonToken_.length>0?G.commonToken_:void 0,function(q){var u=q.instrumentId;u?H.resolve(u):(u=_.GF("payments.business.integration.scenario.InstrumentManager"),H.reject(q.errorCode&&q.errorCode===u.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(q){_.FU(q);
H.reject("instrumentManagerLoadError")});
return H.promise};var SF=function(G,H,Z){this.payloadName="transactionFlowFailed";this.payload={errorType:G,serializedTransactionFlowLoggingParams:H,isUserDismiss:Z===void 0?!1:Z}};
_.u7("yt.ypc.shared.YpcTransactionFlowError",SF);var Uu=function(){return _.uq.apply(this,arguments)||this};
_.T(Uu,_.uq);Uu.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Uu.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Uu.prototype.onErrorMessageDismiss=Uu.prototype.onErrorMessageDismiss;_.N([_.h({readOnly:!0,observer:"errorRendererChanged"}),_.A("design:type",Object)],Uu.prototype,"errorRenderer",void 0);_.N([_.lq("yt-live-chat-error-message-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Uu.prototype,"onErrorMessageDismiss",null);_.N([_.BG()],Uu);var occ=[Uu.prototype];var mTj;var UTq;var RFi=new _.Lg("yt-live-chat"),Nht=new Map;Nht.set("timestamp_toggle","show-timestamps");Nht.set("reactions_toggle","allow-reactions");var RY=function(){return _.C.apply(this,arguments)||this};
_.T(RY,_.C);_.g=RY.prototype;_.g.menuItemIdentifierChanged=function(){var G;(G=this.data)!=null&&G.menuItemIdentifier&&(G=Nht.get(this.data.menuItemIdentifier))&&(_.V("enable_lwe_web_mute")?(G=RFi.get(G),this.isToggled=!(G===void 0?!this.data.isToggled:!G)):this.isToggled=RFi.get(G))};
_.g.onFocus=function(){this.toggleButton.focus()};
_.g.onTap=function(){var G=this.data.command;G&&this.componentBehavior.resolveCommand(G)};
_.g.computeText=function(G,H,Z){return this.componentBehavior.getSimpleString(G?Z:H)};
_.g.computeIcon=function(G,H,Z){return(G=G?Z:H)&&G.iconType?_.bq(G.iconType):""};
RY.prototype.onTap=RY.prototype.onTap;RY.prototype.onFocus=RY.prototype.onFocus;RY.prototype.menuItemIdentifierChanged=RY.prototype.menuItemIdentifierChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],RY.prototype,"componentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],RY.prototype,"data",void 0);
_.N([_.h({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.A("design:type",String)],RY.prototype,"icon",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],RY.prototype,"isToggled",void 0);_.N([_.q6("tp-yt-paper-toggle-button"),_.A("design:type",Object)],RY.prototype,"toggleButton",void 0);_.N([_.gx("data.menuItemIdentifier"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RY.prototype,"menuItemIdentifierChanged",null);
_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RY.prototype,"onFocus",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],RY.prototype,"onTap",null);_.N([_.fH({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],RY);
_.m(RY,"yt-live-chat-toggle-renderer",function(){if(UTq===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;mTj===void 0&&(mTj=document.createElement("template"));var Q=mTj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);UTq=G}G=UTq;return G},{mode:0});var AJ6=new _.Gv("NAVIGATION_PROGRESS_TOKEN");var xTk={},L4D={},Eci=(L4D[Qoi.name]=!0,L4D),NS=function(){var G=_.uq.apply(this,arguments)||this;G._noAccessors=!0;G.tabGesturesIsActive=!1;G.actionRouterIsRoot=!0;G.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"};G.pageTitle="";G.titleSuffix="YouTube";G.unseenNotificationCount=
0;G.hasNavigated=!1;G.hasSetScrollTopForNavigation=!1;G.pagePreparer=null;G.zwiebackInitJobId=0;G.dataUpdatePromise=null;G.loadDepsPromise=_.Yk();G.hasPendingNavigation=!1;G.pendingPlayerOnResponseReceivedActions=[];return G};
_.T(NS,_.uq);NS.prototype.attached=function(){YUh(this);document.addEventListener("yt-navigate-cache",_.pH(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var G=AF();G.init();G.dispatchElement=this.hostElement};
var YUh=function(G,H){H=H===void 0?0:H;var Z=_.tp().resolve(_.Jp(_.f2));if(Z)F48(G,Z);else{if(H>=5)throw Error("tl");setTimeout(function(){YUh(G,H+1)},0)}},F48=function(G,H){H.addEventListener("yt-navigate-start",_.pH(G,G.onYtNavigateStart));
H.addEventListener("yt-navigate-finish",_.pH(G,G.onYtNavigateFinish));H.addEventListener("yt-navigate-error",_.pH(G,G.onYtNavigateError));H.addEventListener("yt-page-data-fetched",_.pH(G,G.onYtPageDataFetched))};
_.g=NS.prototype;_.g.detached=function(){var G=_.tp().resolve(_.f2);G.removeEventListener("yt-navigate-start",_.pH(this,this.onYtNavigateStart));G.removeEventListener("yt-navigate-finish",_.pH(this,this.onYtNavigateFinish));G.removeEventListener("yt-navigate-error",_.pH(this,this.onYtNavigateError));G.removeEventListener("yt-page-data-fetched",_.pH(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.pH(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.g.setPageOffset=function(G,H){G?_.AZ(this.hostElement,"yt-set-page-offset",[G,H]):_.me(Error("ul"))};
_.g.setPageOffsetForNavigation=function(G,H){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(G,H))};
_.g.onYtNavigateSetPageOffset=function(G,H){this.setPageOffsetForNavigation(H.page,H.offset)};
_.g.getPageOffset=function(){var G=_.F9(this.hostElement).querySelector("#page-manager").getCurrentPage(),H=0;G&&(H=_.AZ(this.hostElement,"yt-get-page-offset",[G])[0]);return H};
_.g.onYtHistoryPop=function(G,H){if(_.YI("DISABLE_WARM_LOADS"))G.preventDefault(),window.location.reload();else{var Z=_.tp().resolve(_.f2);Z.hasPendingNavigation()&&G.preventDefault();Z.cancelPendingNavigation();_.xk(this.hostElement,"yt-pending-navigation-cancelled");H.errorMsg&&(G=H.errorMsg.split(" - "),H=Error(G[0]),G.length==2&&G[1]&&(_.N1(H,G[1]),_.Rp(H)),window.location.reload())}};
_.g.onYtHistoryLoad=function(G,H){var Z=this;if(_.YI("DISABLE_WARM_LOADS"))window.location.reload();else{(G=H.endpoint)&&Object.keys(G).length||(G=null);var Q=H.historyEntry,p=_.tp().resolve(_.f2),l=_.tp().resolve(_.o0),q=null;Q&&Q.rootData&&(q=Q.rootData);var u=q&&b88(q);!q||u||q.filler?G?(p.navigate(G,!0),GKm(this,G)):(H.legacyBorder||u||(H.JSC$30489_savedComponentState==null&&q==null?_.Rp(new _.C$("Incomplete history entry",H.forward)):_.UN(new _.C$("Malformed history entry",H.JSC$30489_savedComponentState,
H.forward,q))),window.location.reload()):(_.NSj({isHot:!0}),_.ee({webInfo:{navigationReason:"h"}}),_.Xpb(),_.$K("srt"),_.$K("pdc"),this.cancelPendingTasks(),H5o(this,H.forward,q),q.player&&(q.player.loaded=!1),GKm(this,G),_.vtt(p,G||{},q,2,{},!1,H).then(function(){Z.setPageOffset(l.getCurrentPage(),Q.scrollTop||0)}))}};
_.g.initHistoryManager=function(G){if(!this.hasNavigated){this.hasNavigated=!0;var H=_.F9(this.hostElement).querySelector("#page-manager").getCurrentData();G=isNaN(G)?this.getPageOffset():G;var Z=_.tp().resolve(_.f2).currentEndpoint;this.replaceState(Z,H,G)}};
_.g.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.g.onYtNavigateStart=function(G,H){this.cancelPendingTasks();H.noProgressBar||(G=_.tp().resolve(_.Jp(AJ6)))&&G.start();G=this.hasPendingNavigation?null:this.data;var Z=_.tp().resolve(_.o0),Q,p,l;_.V("kevlar_use_vimio_behavior")&&!((Q=H.endpoint)==null?0:(p=Q.commandMetadata)==null?0:(l=p.webCommandMetadata)==null?0:l.ignoreNavigation)&&(Q=Z.getCurrentPage())&&Q.disconnectVisibilityRoot();Z.prepareForNavigation(H.pageType,H.endpoint);_.V("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.l1(1,
"pcl"),_.gv(this.pagePreparer,Z.preparePage.bind(Z,H.pageType,H.endpoint)));Q=this.getPageOffset();this.initHistoryManager(Q);H.reload||this.hasPendingNavigation?((_.V("web_enable_delay_shorts_sequence_call")||_.V("web_enable_shorts_sequence_cache_fix"))&&H.pageType==="shorts"&&H.reload&&_.N5(this.hostElement,"yt-shorts-reset"),this.replaceState(H.endpoint,G,Q)):(G==null?void 0:G.page)==="watch"&&H.pageType==="watch"&&_.V("kevlar_replace_watch_to_watch_history_state")?this.replaceState(H.endpoint,
G,Q):(G==null?void 0:G.page)!=="shorts"||H.pageType!=="shorts"||H.endpoint.reelWatchEndpoint.sequenceParams||_.V("short_to_short_back_nav_killswitch")?H.type!="navigate-back"&&H.type!="navigate-forward"&&(H.pageType==="shorts"&&_.N5(this.hostElement,"yt-shorts-reset"),this.saveAndPush(H.url,H.endpoint,G,Q)):(_.V("web_enable_delay_shorts_sequence_call")&&(H.endpoint.reelWatchEndpoint.sequenceParams=G==null?void 0:G.cachedSequenceParams,H.endpoint.reelWatchEndpoint.sequenceProvider=G==null?void 0:G.cachedSequenceProvider),
this.replaceState(H.endpoint,G,0));this.hasPendingNavigation=!0};
var swa=function(G){G.hasPendingNavigation=!1;(G=_.tp().resolve(_.Jp(AJ6)))&&G.finish()};
NS.prototype.onYtNavigateError=function(G,H){swa(this);G=this.get("endpoint.commandMetadata.webCommandMetadata.url",H);var Z=_.p$(window.location.href);G&&!Z.pbjreload&&(H=H.navigationErrorReason||"10",_.V("kevlar_parent_on_pbjreload")&&(Z={csn:_.$k()},this.get("data.endpoint.clickTrackingParams")&&(Z.itct=this.data.endpoint.clickTrackingParams),_.aO(G,Z)),_.zz(_.l0(G,{pbjreload:H})))};
NS.prototype.onYtNavigateCache=function(G,H){var Z=this,Q=H.url,p=H.endpoint,l=H.data;G=!!H.miniplayer;H=!!H.skipHistory;if(Q&&p&&l){var q=this.getPageOffset(),u=this.data||null;H||this.saveAndPush(Q,p,u,q);Q=_.vtt(_.tp().resolve(_.f2),p,l,G?4:3,{},G);G&&Q.then(function(){Z.dataUpdatePromise&&Z.dataUpdatePromise.then(function(){var B=_.tp().resolve(_.o0);Z.setPageOffset(B.getCurrentPage(),0)})})}};
NS.prototype.onYtNavigateFinish=function(G,H){var Z=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Z5j(Z,H.fromHistory)})};
var Z5j=function(G,H){swa(G);if(G.pendingPlayerOnResponseReceivedActions){for(var Z=_.I(G.pendingPlayerOnResponseReceivedActions),Q=Z.next();!Q.done;Q=Z.next())_.s6(Q.value,G.hostElement);G.pendingPlayerOnResponseReceivedActions=[]}Z=_.tp().resolve(_.o0);H||!G.hasNavigated||_.V("web_disable_scroll_on_navigate_finish")||((H=Z.getCurrentPage())?H.is==="ytd-shorts"||G.tabGesturesIsActive||G.setPageOffsetForNavigation(H,0):_.Rp(Error("vl")));_.PG(function(){_.PG(function(){_.$K("pda")})})};
NS.prototype.onYtNavigate=function(G){if(!G.detail.endpoint){var H=new _.C$("Error: Missing yt-navigate endpoint from target:",G.target,G.target.nodeName);_.me(H)}if(H=_.V("cold_missing_history"))H=AF(),H.init(!1),H=!(H.browserHistory.boundHistoryReplaceState&&H.browserHistory.boundHistoryPushState);if(H){_.Ae("DISABLE_WARM_LOADS",!0);H=new _.C$("Failed to initialize history manager",this.getDebugString());var Z=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
Z?_.Rp(H):_.me(H)}H=G.detail.endpoint;var Q,p;_.V("debug_forward_web_query_parameters")&&((Q=H.commandMetadata)==null?0:(p=Q.webCommandMetadata)==null?0:p.url)&&(H=JSON.parse(JSON.stringify(H)),H.commandMetadata.webCommandMetadata.url=_.JUj(H.commandMetadata.webCommandMetadata.url,window.location.search));G={type:0,command:H,form:{params:G.detail.params,tempData:G.detail.tempData||{},requestType:G.detail.type,createScreenConfig:G.detail.createScreenConfig,reload:G.detail.reload?G.detail.reload:!1,
requestForm:G.detail}};_.V("kevlar_yt_navigate_command_handler")?(Q=_.tp().resolve(_.Dk),G.form.skipDefaultElement=!0,Q.resolveCommand(H,{form:G.form})):this.handleNavigate(G)};
NS.prototype.handleNavigate=function(G){this.hasSetScrollTopForNavigation=!1;var H=_.tp().resolve(_.f2),Z=G.form||{};H.navigate(G.command,Z.reload,Z.params,Z.tempData,Z.requestType,Z.createScreenConfig,Z.ignoreConfirmation,Z.requestForm)&&GKm(this,G.command,Z.tempData)};
NS.prototype.onYtPageDataFetched=function(G,H){try{_.knG().reset();this.data=H.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.tp().resolve(_.o0).updatePageData(this.data);var Z=this.get("playerResponse.onResponseReceivedActions",this.data);Z&&(Z=Qwa(this,Z));Z&&_.El(this.hostElement,Z,this.hostElement);var Q=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),p=this.get("response.responseContext.consistencyTokenJar",this.data);if(Q||p){var l=_.kfj(),q=(0,_.oN.getValues)(l.tokenJars);Q&&l.replace(q,Q);p&&l.replace(q,p)}}catch(u){_.me(u)}};
var GKm=function(G,H,Z){try{G.onYtEndpointChangeHandler(H,Z)}catch(Q){_.me(Q)}};
_.g=NS.prototype;_.g.onYtEndpointChangeHandler=function(){};
_.g.setPageTitle=function(G){G=(this.pageTitle=G)?G+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+G};
_.g.onYtUpdateTitle=function(G,H){this.setPageTitle(H)};
_.g.setUnseenNotificationCount=function(G){this.unseenNotificationCount=G;this.setPageTitle(this.pageTitle)};
_.g.handleUpdateNotificationsUnseenCountAction=function(G){_.X(G,aF8)&&((G=_.X(G,aF8).unseenCount)?this.setUnseenNotificationCount(G):this.setUnseenNotificationCount(0))};
_.g.handleClearCookieAction=function(G){var H;(G=(H=_.X(G,h9A))==null?void 0:H.cookieName)&&_.PfR(G)};
_.g.onYtUpdateUnseenNotificationCount=function(G,H){this.setUnseenNotificationCount(H)};
_.g.loadData=function(G){var H=this;this.loadDepsPromise.then(function(){var Z=_.tp().resolve(_.Jp(_.f2));Z||_.me(Error("wl"));if(G&&G.response){if(!G.endpoint){var Q=_.M5(window.document.location.href)||"/",p="";if(Q==="/"||Q.startsWith("/?"))p="WEB_PAGE_TYPE_BROWSE";G.endpoint={commandMetadata:{webCommandMetadata:{url:Q,webPageType:p,rootVe:3854}}}}_.vtt(Z,G.endpoint,G,5,{})}else G.endpoint?Z.navigate(G.endpoint):Z.navigate(_.rU);_.Ui.cancelJob(H.zwiebackInitJobId);H.zwiebackInitJobId=_.Ui.addLowPriorityJob(XM6)})};
var AF=function(){return _.tp().resolve(_.fB)};
NS.prototype.getDebugString=function(){return AF().getDebugString()};
NS.prototype.getThirdPartyManipulationSuspected=function(){return AF().getThirdPartyManipulationSuspected()};
NS.prototype.replaceState=function(G,H,Z){AF().saveAndReplace(G,H,Z)};
NS.prototype.saveAndPush=function(G,H,Z,Q){AF().saveAndPush(G,H,Z,Q)};
var b88=function(G){return _.X(G.endpoint,_.hZ)||_.X(G.endpoint,_.uS)?!0:!G||isNaN(G.expirationTime)?!1:(0,_.t3)()>G.expirationTime},H5o=function(G,H,Z){var Q=G.get("response.trackingParams",Z),p=_.Va(),l=_.$k();
if(Q&&p&&l&&(Q=G.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",Z),!Q&&Z.rootVe&&(Q=Z.rootVe),p=H?"forwardButton":"backButton",H=G.get("playerResponse.topbar.desktopTopbarRenderer."+p+".buttonRenderer.command.clickTrackingParams",G.data),G=G.get("response.topbar.desktopTopbarRenderer."+p+".buttonRenderer.command.clickTrackingParams",G.data),H=(G=H||G)?_.BT(G):void 0,G=_.gr(),p=[_.Yk(Z)],_.Te(G,Q,H,{dataPromises:p,csnToClone:Z.csn}),Z.graftedVes))for(Z=
_.I(Z.graftedVes),Q=Z.next();!Q.done;Q=Z.next())_.fQ(G,Q.value)};
NS.prototype.onStoreGraftedVeAction=function(G){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(G)):_.Rp(Error("xl"))};
var Qwa=function(G,H){return H.filter(function(Z){for(var Q in Z)if(Eci[Q])return G.pendingPlayerOnResponseReceivedActions.push(Z),!0;return!1})};
_.u4.Object.defineProperties(NS.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
NS.prototype.onStoreGraftedVeAction=NS.prototype.onStoreGraftedVeAction;NS.prototype.loadData=NS.prototype.loadData;NS.prototype.onYtUpdateUnseenNotificationCount=NS.prototype.onYtUpdateUnseenNotificationCount;NS.prototype.handleClearCookieAction=NS.prototype.handleClearCookieAction;NS.prototype.handleUpdateNotificationsUnseenCountAction=NS.prototype.handleUpdateNotificationsUnseenCountAction;NS.prototype.setUnseenNotificationCount=NS.prototype.setUnseenNotificationCount;
NS.prototype.onYtUpdateTitle=NS.prototype.onYtUpdateTitle;NS.prototype.setPageTitle=NS.prototype.setPageTitle;NS.prototype.onYtEndpointChangeHandler=NS.prototype.onYtEndpointChangeHandler;NS.prototype.onYtPageDataFetched=NS.prototype.onYtPageDataFetched;NS.prototype.handleNavigate=NS.prototype.handleNavigate;NS.prototype.onYtNavigate=NS.prototype.onYtNavigate;NS.prototype.onYtNavigateFinish=NS.prototype.onYtNavigateFinish;NS.prototype.onYtNavigateCache=NS.prototype.onYtNavigateCache;
NS.prototype.onYtNavigateError=NS.prototype.onYtNavigateError;NS.prototype.onYtNavigateStart=NS.prototype.onYtNavigateStart;NS.prototype.cancelPendingTasks=NS.prototype.cancelPendingTasks;NS.prototype.initHistoryManager=NS.prototype.initHistoryManager;NS.prototype.onYtHistoryLoad=NS.prototype.onYtHistoryLoad;NS.prototype.onYtHistoryPop=NS.prototype.onYtHistoryPop;NS.prototype.onYtNavigateSetPageOffset=NS.prototype.onYtNavigateSetPageOffset;NS.prototype.setPageOffset=NS.prototype.setPageOffset;
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],NS.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],NS.prototype,"data",void 0);_.N([_.lq("yt-navigate-set-page-offset"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],NS.prototype,"onYtNavigateSetPageOffset",null);
_.N([_.lq("yt-history-pop"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],NS.prototype,"onYtHistoryPop",null);_.N([_.lq("yt-history-load"),_.A("design:type",Function),_.A("design:paramtypes",[Event,_.mC7]),_.A("design:returntype")],NS.prototype,"onYtHistoryLoad",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],NS.prototype,"onYtNavigate",null);
_.N([_.lq("yt-update-title"),_.A("design:type",Function),_.A("design:paramtypes",[Event,String]),_.A("design:returntype")],NS.prototype,"onYtUpdateTitle",null);_.N([_.lq("yt-update-unseen-notification-count"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Number]),_.A("design:returntype")],NS.prototype,"onYtUpdateUnseenNotificationCount",null);_.N([_.BG()],NS);xTk.YtdAppBehavior=[_.V6.YtActionHandlerBehavior,NS.prototype];var xo=function(){var G=_.uq.apply(this,arguments)||this;G._noAccessors=!0;return G};
_.T(xo,_.uq);xo.prototype.ready=function(){var G=this;_.F9(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){G.onChange_()})};
xo.prototype.dataChanged_=function(){_.F9(this.hostElement).querySelector("#checkbox").checked=!1};
xo.prototype.onChange_=function(){var G=_.F9(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.N5(this.hostElement,"yt-dismissal-reason-"+G,this.data.feedbackToken)};
xo.prototype.dataChanged_=xo.prototype.dataChanged_;_.N([_.h(),_.A("design:type",Object)],xo.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xo.prototype,"dataChanged_",null);_.N([_.BG()],xo);var p_k=[xo.prototype];var LU=function(){var G=_.uq.apply(this,arguments)||this;G.timeoutJobId=0;G.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return G};
_.T(LU,_.uq);LU.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
LU.prototype.startTimeout=function(){var G=this,H=this.data&&this.data.displayDurationSeconds;H&&!this.timeoutJobId&&(this.timeoutJobId=_.wM(_.Ui,function(){_.AZ(G.hostElement,"yt-close-popup-action",[G.is]);G.timeoutJobId=0},H*1E3))};
LU.prototype.cancelTimeout=function(){_.Ui.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
LU.prototype.ytdHatsSurveyBehaviorDataChanged=LU.prototype.ytdHatsSurveyBehaviorDataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],LU.prototype,"ytActionHandlerBehavior",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],LU.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.N([_.BG()],LU);var lut=[_.V6.YtActionHandlerBehavior,LU.prototype];var gZk=function(G,H){var Z;return((Z=G.prefixMapping)==null?0:Z[H])?G.prefixMapping[H]:G.SHARED_RENDERERS_.hasOwnProperty(H)?"yt":G.prefix},Eu={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}};Eu.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.V("kevlar_mealbar_above_player"),modern:!0,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"}};
Eu.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Eu.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Eu.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Eu.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)"}};
Eu.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};
Eu.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};
Eu.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};
Eu.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};
Eu.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"}};Eu.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Eu.TOAST={component:null,properties:{}};var Iuj=new function(G,H,Z){this.supportedPopups=G;this.navigationEndpointPopupMap=H;this.popupTypeMap=Z;this.supportedPopups=G;this.navigationEndpointPopupMap=H;this.popupTypeMap=Z}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.V("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),qEo=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$20224_popupConfig=Eu;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 SEq=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.mS.getInstance()},Yo=function(G,H){var Z=G.pageNameToElement.get(H);
if(!Z){switch(H){case "watch":var Q=_.V("web_watch_force_learning_journey_for_testing")?_.pi("ytd-watch-learning-journey"):_.V("kevlar_watch_fixie")?_.pi("ytd-watch-fixie"):_.V("kevlar_watch_grid")?_.pi("ytd-watch-grid"):_.pi("ytd-watch-flexy");break;case "learning_journey_watch":Q=_.pi("ytd-watch-learning-journey");break;case "shorts":Q=_.pi("ytd-shorts");break;case "search":Q=_.pi("ytd-search");break;case "channel":Q=_.pi("ytd-browse");Q.pageSubtype="channels";break;case "trending":Q=_.pi("ytd-browse");
Q.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":case "your-courses":case "report-history":Q=
_.pi("ytd-browse");Q.pageSubtype=H;break;case "browse":Q=_.pi("ytd-browse");break;default:_.Rp(new _.C$("Error getting page element for type",H))}Z=Q;G.pageNameToElement.set(H,Z)}return Z};
SEq.prototype.preparePage=function(G,H,Z){Z&&(G=_.lS(Z)||G);if(G!=="watch"&&G!=="learning_journey_watch"){var Q=this.elementPoolPopulator,p=G;p!=Q.targetPage_&&Q.pendingPages_.indexOf(p)>-1&&(Q.targetPage_&&(Q.pendingPages_.unshift(Q.targetPage_),Q.abort()),Gjt(Q,p),_.UMR(Q,p))}if((Q=Yo(this,G))||!_.X(Z,_.Hx)){Q.isAttached||Q===H||(Q.hidden=!0);if(!Q.data&&(G!=="watch"&&G!=="learning_journey_watch"||!_.V("swatcheroo_page_pool_dont_provide_filler_data"))){var l;if(G=(l=_.xI("FILLER_DATA",{})[G])==
null?void 0:l.response)Q.data=G}return Q}};var uRk=function(G){this.JSC$32461_clientRoot=G;this.playlistHandlerActionMap={"yt-add-to-playlist-command":j6o,"yt-end-playlist-command":P$j,"yt-recover-playlist-command":wMs,"yt-refresh-playlist-command":iMo,"yt-playlist-remove-videos-action":hc8};_.p1(_.sS.getInstance(),this.playlistHandlerActionMap,this.JSC$32461_clientRoot);Sai()},B$o;var Fn=function(G,H,Z){this.apiKey=G;this.endpoint=H;this.confidenceThreshold=Z===void 0?.5:Z;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=H==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
H==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new WHs};
_.g=Fn.prototype;
_.g.start=function(G){if(this.state===0)if(this.isOnline()){G.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=G.supportsHttpHeadersOverwriteParam);G.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=G.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.VY("voice_assistant");_.TD("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=G.languageCode||"en-US";this.supportsCrossDomainXhr=G.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=G.youtubeAssistantRequest||null;this.listeningHandler=G.listeningHandler||this.listeningHandler;this.audioDetectedHandler=G.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=G.stopHandler||this.stopHandler;this.completeHandler=G.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=G.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=G.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
G.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=G.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=G.accessToken;this.additionalHeaders=G.additionalHeaders||{};var H;this.prefetchResponseTimeoutMs=(H=G.prefetchResponseTimeoutMs)!=null?H:this.prefetchResponseTimeoutMs;J7a(this);this.startAudio();tfa(this)}else this.errorHandler("OFFLINE")};
_.g.stop=function(G){var H=G===void 0?{}:G;G=H.logCancel===void 0?!0:H.logCancel;var Z=H.logMicClosed===void 0?!0:H.logMicClosed;var Q=H.handleError===void 0?!0:H.handleError;H=H.handleStop===void 0?!0:H.handleStop;this.state!==0&&(G&&b9("voz_cx"),GM(this,{logMicClosed:Z,handleStop:H}),Q&&this.errorHandler("ABORTED"))};
_.g.getState=function(){return this.state};
_.g.isSupported=function(){return!0};
_.g.stopAudio=function(G){(G===void 0||G)&&b9("voz_mf")};
_.g.startAudio=function(){b9("voz_vp");return _.Yk(null)};
var kKo=function(G,H){G.channelOpen&&(G.state!==2&&(G.state=2,b9("voz_ss"),G.listeningHandler()),H=new Uint8Array(H),H='{ "audioIn": "'+_.Cm(H)+'" }',G.channel.send(H))},GM=function(G,H){var Z=H===void 0?{}:H;
H=Z.logMicClosed===void 0?!0:Z.logMicClosed;Z=Z.handleStop===void 0?!0:Z.handleStop;G.vozEndOfDataTimeout>-1&&(clearTimeout(G.vozEndOfDataTimeout),G.vozEndOfDataTimeout=-1);DRD(G);G.stopAudio(H);G.channel&&(G.channelOpen=!1,G.manuallyClosedChannel=!0,G.channel.close(),G.channel=void 0);G.transcribedSpeechResults=[];G.state=0;Z&&G.stopHandler()},J7a=function(G){var H={httpHeadersOverwriteParam:G.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},G.additionalHeaders,G.accessToken&&G.isUsingVoz?{Authorization:"Bearer "+G.accessToken}:{"x-goog-api-key":G.apiKey}),supportsCrossDomainXhr:G.supportsCrossDomainXhr};G.channel=new DX(G.endpoint,H);G.channel.open();_.tt(G.channel,"w",function(){var Z=G.channel,Q=Z.send,p=G.isUsingVoz?"PLACEHOLDER":"example";p={config:{dialogStateIn:{languageCode:G.languageCode},deviceConfig:{deviceId:p,deviceModelId:p},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!G.isUsingVoz)p.config.requestType=4;else if(G.isUsingVoz&&G.youtubeAssistantRequest){var l=JSON.stringify(G.youtubeAssistantRequest);p.config.internalIn={youtubeAssistantS3InputJson:l}}Q.call(Z,p);G.channelOpen=!0;G.manuallyClosedChannel=!1});
_.tt(G.channel,"x",function(){G.manuallyClosedChannel||(G.channelOpen=!1,G.channel=void 0,GM(G))});
_.tt(G.channel,"z",function(Z){if(Z.data){DRD(G);for(var Q=0;Q<Z.data.length;Q++){var p=G,l=Z.data[Q],q=l.speechResults;if(q)a:{var u=[];l=[];var B=!1;q=_.I(q);for(var t=q.next();!t.done;t=q.next()){t=t.value;if(t.noSpeech){GM(p);p.errorHandler("NO_SPEECH");break a}t.transcript!==void 0&&t.stability!==void 0&&(t.stability<p.confidenceThreshold&&(B=!0),B?l.push(t.transcript):u.push(t.transcript))}if(u.length!==0||l.length!==0)u=u.join(" "),l=l.join(" "),p.receivedEndOfUtterance&&!p.isUsingVoz?p.isUsingVoz||
p.completeHandler([u,l]):(B=p,q=u,t=l,b9("voz_sf"),B.transcriptionUpdateHandler(q,t),B.transcribedSpeechResults=[q,t]),p.receivedEndOfUtterance&&(b9("voz_eou"),p.transcriptionCompleteHandler([u,l]),p.isUsingVoz&&(p.prefetchResponseTimeoutMs===0?GM(p,{logMicClosed:!1,handleStop:!0}):p.prefetchResponseTimeoutMs>0&&dRh(p)))}else p.isUsingVoz&&(l==null?0:l.internalOut)?(l=JSON.parse(l.internalOut.youtubeAssistantS3OutputJson),l.userHasOptedInToVaa||l.vaaConsent?p.vaaConsentUpdateHandler(!!l.userHasOptedInToVaa,
!!l.vaaConsent):(ems(p),l&&(u=p.transcribedSpeechResults,b9("voz_rqf"),p.completeHandler(u,l)))):l.eventType==="END_OF_UTTERANCE"?p.receivedEndOfUtterance=!0:(b9("voz_err"),p.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Rp(Error("yl")))}}});
_.tt(G.channel,"y",function(Z){GM(G);switch(Z.status){case 1:Z="WEBCHANNEL_NETWORK_ERROR";break;case 2:Z="WEBCHANNEL_SERVER_ERROR";break;default:Z="WEBCHANNEL_UNKNOWN_ERROR"}G.errorHandler(Z);G.logError(Error(Z))})};
Fn.prototype.logError=function(G){_.me(G)};
Fn.prototype.isOnline=function(){return!0};
var dRh=function(G){ems(G);G.prefetchResponseSetTimeoutId=setTimeout(function(){GM(G,{logMicClosed:!1,handleStop:!0})},G.prefetchResponseTimeoutMs)},ems=function(G){G.prefetchResponseSetTimeoutId>-1&&(clearTimeout(G.prefetchResponseSetTimeoutId),G.prefetchResponseSetTimeoutId=-1)},tfa=function(G){DRD(G);
G.noResponseReceivedTimeout=window.setTimeout(function(){GM(G);G.errorHandler("NO_SPEECH")},11E3)},DRD=function(G){G.noResponseReceivedTimeout>-1&&(window.clearTimeout(G.noResponseReceivedTimeout),G.noResponseReceivedTimeout=-1)},b9=function(G){_.$K(G,void 0,"voice_assistant")};var HC=function(){Fn.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.T(HC,Fn);HC.prototype.isSupported=function(){return OMh()};
HC.prototype.startAudio=function(){var G=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.DJ(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(Q){nZL(G,Q)};
this.processor.connect(this.audioContext.destination);var H=function(Q){G.stream=Q;if(!G.audioContext)return _.Yk(null);Q=G.audioContext.createMediaStreamSource(Q);G.processor&&Q.connect(G.processor);return _.Yk(null)},Z={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?H(this.stream):(Z=navigator.mediaDevices.getUserMedia(Z))?Z.then(H).catch(function(Q){GM(G);Q.name&&Q.name==="NotAllowedError"?G.errorHandler("NO_MICROPHONE_PERMISSION"):(G.errorHandler("AUDIO_ERROR"),G.logError(Q));return _.DJ(null)}):(GM(this),this.errorHandler("AUDIO_ERROR"),_.Rp(Error("zl")));
return Fn.prototype.startAudio.call(this)};
HC.prototype.stopAudio=function(G){G=G===void 0?!0:G;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(H){H.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Fn.prototype.stopAudio.call(this,G)};
HC.prototype.isOnline=function(){return navigator.onLine};
var nZL=function(G,H){if(G.audioContext)if(window.OfflineAudioContext){var Z=G.audioContext.sampleRate,Q=H.inputBuffer.getChannelData(0);H=new window.OfflineAudioContext(1,Q.length,16E3);for(var p=H.createBuffer(1,Q.length,Z),l=p.getChannelData(0),q=0,u=0;u<Q.length;u++)l[u]=Q[u],q+=l[u]*l[u];!G.audioDetected&&Math.sqrt(q/Q.length)>.01&&(G.audioDetected=!0,G.audioDetectedHandler());Q=H.createBufferSource();Q.buffer=p;Q.connect(H.destination);Q.start(0);H.oncomplete=function(B){B=B.renderedBuffer.getChannelData(0);
for(var t=Math.floor(16384E3/Z),D=new Int16Array(t),d=0;d<t;++d)D[d]=Math.max(-1,Math.min(1,B[d]))*32767;kKo(G,D.buffer)};
H.startRendering()}else Vf6(G,H)},Vf6=function(G,H){var Z=G.audioContext.sampleRate,Q=H.inputBuffer.getChannelData(0),p=Math.floor((Z+8E3)/16E3);
Z=Q.length/p;H=new Float32Array(Z);for(var l=0;l<Z;++l)H[l]=Q[l*p];Q=new Int16Array(Z);for(p=0;p<Z;++p)Q[p]=Math.max(-1,Math.min(1,H[p]))*32767;kKo(G,Q.buffer)};var $R6={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var X_s=function(){this.JSC$20289_audioEnabled=!0;this.audioFeedbackHolder={}};
X_s.prototype.isPlaying=function(G){return G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>2};
var c7k=function(G){for(var H=_.I(Object.values($R6)),Z=H.next();!Z.done;Z=H.next())Z=Z.value,G.audioFeedbackHolder[Z]=new Audio,G.audioFeedbackHolder[Z].src="/s/search/audio/"+Z+".mp3",G.audioFeedbackHolder[Z].load()},s$=function(G,H){if(G.JSC$20289_audioEnabled!==!1&&H in G.audioFeedbackHolder){for(var Z=_.I(Object.values(G.audioFeedbackHolder)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,G.isPlaying(Q)&&Q.pause();
G.audioFeedbackHolder[H].currentTime=0;G.audioFeedbackHolder[H].play().catch(function(){})}};var T$8=function(G,H){var Z=this;this.store=G;this.service=H;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){Z.setState("offline");Z.stop()};
this.audioPlayer=new X_s;var Q;(Q=this.audioPlayer)==null||c7k(Q)};
_.g=T$8.prototype;_.g.getService=function(){return this.service};
_.g.isEnabled=function(){return!!this.service};
_.g.isSupported=function(){var G;return(G=this.service)==null?void 0:G.isSupported()};
_.g.start=function(){var G=this,H,Z,Q,p,l,q,u,B,t,D,d,e,n;return _.S(function(c){switch(c.nextAddress){case 1:G.store.dispatch(eAD("",""));if(!navigator.onLine)return G.setState("offline"),c.return();window.addEventListener("offline",G.handleOfflineEvent);G.stream=null;if(!G.permissionsSupported){c.jumpTo(2);break}_.XV(c,3);return c.yield(fuA(G),5);case 5:H=c.yieldResult;if(!H)return(Z=G.audioPlayer)==null||s$(Z,"failure"),c.return();G.service.stream=G.stream;G.setState("listening");_.Za(c,2);break;
case 3:_.Wg(c),G.permissionsSupported=!1;case 2:Q={context:_.ON2(_.Da())},Q.youtubeAssistantParams={searchParams:{inlineSearchResponse:G.enableInlineSearchResponse}},p=function(W,M){G.store.dispatch(nqi("transcribing"));G.store.dispatch(eAD(W,M))},l=function(){var W;
(W=G.audioPlayer)==null||s$(W,"open");G.setState("listening")},q=function(){G.setState("transcribing")},u=function(W){G.setErrorState(W)},B=function(W,M){var r;
(r=G.audioPlayer)==null||s$(r,"success");M&&(_.V("kevlar_voice_search_inline_search")&&(G.responseProcessor=_.tp().resolve(_.$rj),G.responseProcessor&&(r=M.navigationAction,W=M.prefetchedSearchResponse,r&&W&&(r=(new _.k$8).JSC$14177_getStoreKey(r),_.jV(G.responseProcessor,W,r)))),G.JSC$20307_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",M))},t=function(){window.removeEventListener("offline",G.handleOfflineEvent)},D=_.xv2(!1),d=D.Authorization!=null,e=G.enableFirstPartyAuth||
G.enableFPAForSignedInUsers&&d?D:{"X-Goog-Visitor-Id":D["X-Goog-Visitor-Id"]},n={completeHandler:B,
errorHandler:u,listeningHandler:l,audioDetectedHandler:q,stopHandler:t,transcriptionUpdateHandler:p,youtubeAssistantRequest:Q,languageCode:vZi(),additionalHeaders:e,supportsCrossDomainXhr:G.enableFirstPartyAuth||G.enableFPAForSignedInUsers&&d,supportsHttpHeadersOverwriteParam:!G.disableHttpHeadersOverwrite},G.service.start(n),_.K0(c)}})};
_.g.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.g.reset=function(){this.store.dispatch(_.Lo({type:"RESET_VOICE_SEARCH_STATE"}))};
_.g.setState=function(G){this.store.dispatch(nqi(G))};
_.g.setErrorState=function(G){switch(G){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var H;(H=this.audioPlayer)==null||s$(H,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)fuA(this);else{var Z;(Z=this.audioPlayer)==null||s$(Z,"failure");this.setState("permission-denied")}break;case "ABORTED":var Q;(Q=this.audioPlayer)==null||s$(Q,"no_input");break;default:var p;(p=this.audioPlayer)==
null||s$(p,"no_input");this.setState("timeout")}};
var fuA=function(G){var H,Z;return _.S(function(Q){switch(Q.nextAddress){case 1:return Q.yield(navigator.permissions.query({name:"microphone"}),2);case 2:H=Q.yieldResult;if(H.state==="granted")return Q.return(!0);if(H.state==="denied")return G.setState("permission-denied"),Q.return(!1);G.setState("permission");Z={audio:{sampleSize:16,channelCount:1},video:!1};_.XV(Q,3);return Q.yield(navigator.mediaDevices.getUserMedia(Z),5);case 5:return G.stream=Q.yieldResult,Q.return(!0);case 3:return _.Wg(Q),
G.setState("permission-denied"),Q.return(!1)}})},vZi=function(){var G=_.xI("INNERTUBE_CONTEXT_HL"),H=_.xI("INNERTUBE_CONTEXT_GL");
return G.indexOf("-")>-1?G:G+"-"+H};var WEa=function(G,H,Z){T$8.call(this,H,Z);this.JSC$20307_actionRouter=G;this.enableInlineSearchResponse=_.V("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.V("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.V("kevlar_voice_search_enable_fpa_signedin_users")},zmk;
_.T(WEa,T$8);
var KEL=function(){if(!zmk){var G="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.V("kevlar_voice_search_auth_enabled")||_.V("kevlar_voice_search_use_yt_endpoint")?G="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.V("kevlar_voice_search_use_fp_endpoint")&&(G="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");zmk=
new WEa(_.sS.getInstance(),_.mm(),new HC(_.xI("VOZ_API_KEY"),G,.5))}return zmk};var Mfa=function(G){this.JSC$20311_clientRoot=G;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$20311_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)]]));G=_.I(this.eventListeners);for(var H=G.next();!H.done;H=G.next()){var Z=
_.I(H.value);H=Z.next().value;Z=Z.next().value;Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;H.addEventListener(Q,p)}}_.p1(_.sS.getInstance(),this.autonavPauseActionMap,this.JSC$20311_clientRoot)},jwh,PR8=function(G){return _.V("kevlar_autonav_popup_filtering")?(G=_.a_(G))?G.hasAttribute("prevent-autonav"):!0:!0};
_.g=Mfa.prototype;_.g.onIronOverlayOpened=function(G){PR8(G)&&(this.autonavPauseReasons.overlayOpen=!0,ZL(this))};
_.g.onIronOverlayClosed=function(G){PR8(G)&&(this.autonavPauseReasons.overlayOpen=!1,ZL(this))};
_.g.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;ZL(this)};
_.g.onYtAutonavPauseBlur=function(){var G=this;_.Ui.addJob(function(){r7L()||(G.autonavPauseReasons.inputBoxFocus=!1,ZL(G))},8,0)};
_.g.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;ZL(this)};
_.g.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;ZL(this)};
_.g.onYtAutonavPauseScroll=function(){var G=_.tp().resolve(_.o0);G.isOnWatch()&&(G=G.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=G.getBoundingClientRect().top<-200,ZL(this))};
_.g.onYtAutonavPauseUserEngagement=function(G){var H=this;if(_.V("user_engagement_enable_autoplay_pause_feature")){var Z=Number(G.lowEngagementThresholdMs);isNaN(Z)||Z<=0||G.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Ut("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.tp().resolve(_.Bh),_.JL()<Z?_.wM(_.Ui,function(){_.Ut("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.JvD()?(this.userEngagementCsn=_.$k(),_.wM(_.Ui,function(){_.Ut("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
H.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,ZL(this)):_.Ut("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.YOe(Error("Al`"+JSON.stringify(G)))};
_.g.onYtAutonavPausePlayer=function(G){this.autonavPauseReasons.requestedByPlayer=!!G.detail;ZL(this)};
_.g.onYtAutonavVisibilityChanged=function(){var G=this,H,Z,Q;return _.S(function(p){if(p.nextAddress==1)return(H=_.UO())?p.yield(H.getPlayerPromise(),2):p.return();Z=p.yieldResult;Q=Z.isMuted()||Z.getVolume()===0;G.autonavPauseReasons.backgroundAndMute=r7L()&&Q;ZL(G);_.K0(p)})};
_.g.onYtAutonavPausePlayerEnded=function(){_.tp().resolve(_.Bh);var G=144E5;_.V("user_engagement_enable_autoplay_pause_feature")||_.V("is_part_of_any_user_engagement_experiment")||(G=45E5);this.autonavPauseReasons.longIdle=_.JL()>G;w_i(this);ZL(this)};
_.g.onYtUserActivity=function(){var G=this;this.autonavPauseReasons.userEngagement&&(_.wM(_.Ui,function(){_.Ut("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",G.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,ZL(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.wM(_.Ui,function(){_.Ut("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",G.userEngagementCsn);_.op()}),this.autonavPauseReasons.youthereLactExperiment=!1,ZL(this));
this.autonavPauseReasons.longIdle&&!_.V("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,ZL(this))};
var r7L=function(){var G=window.document.visibilityState;return!(!G||G==="visible")},ZL=function(G){for(var H=!1,Z=_.I(Object.values(G.autonavPauseReasons)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,H=H||Q;
H?_.tP.getInstance().pause(G.autonavPauseReasons):(G=_.tP.getInstance(),G.autonavState_==3?(G.setState(2,!1,!1),G.autonavPauseReason_=void 0):G.autonavState_==1&&(G.disabledAutonavPauseReason_=void 0))},w_i=function(G){var H=!1;
if(_.V("enable_autoplay_pause_by_lact")){_.tp().resolve(_.Bh);H=_.eA("autoplay_pause_by_lact_sec")*1E3;var Z=_.eA("autoplay_pause_by_lact_sampling_fraction");(H=_.JL()>=H&&Math.random()<Z)&&!_.JvD()&&(_.wM(_.Ui,function(){_.Ut("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),H=!1)}H!==G.autonavPauseReasons.youthereLactExperiment&&(G.autonavPauseReasons.youthereLactExperiment=H)&&(G.userEngagementCsn=_.$k(),_.wM(_.Ui,function(){_.Ut("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",G.userEngagementCsn)}));
G.autonavPauseReasons.userEngagement&&_.wM(_.Ui,function(){_.Ut("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",G.userEngagementCsn)})};
Mfa.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Ut("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.op(),this.autonavPauseReasons.youthereLactExperiment=!1,ZL(this));this.autonavPauseReasons.userEngagement&&(_.Ut("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,ZL(this))};
Mfa.prototype.onYtEngagementPanelVisibleChanged=function(G){G.detail&&G.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=G.detail.visible,ZL(this))};
Mfa.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var hms=_.KG.persistentPanelVisibleSelector,Qo=function(){var G=_.C.apply(this,arguments)||this;G.miniGuideVisible=!1;G.guideOpened=_.V("disable_initial_guide_state_fix")?!1:G.canFitPersistentGuide(G.initialBodyClientWidth);G.guideUserStateOpened=G.getInitialGuideUserStateOpened();G.isFullscreenShorts=!1;G.miniGuideWidthThreshold=_.eA("kevlar_mini_guide_width_threshold",791);G.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
G.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");G.persistentGuideBlockedPagePathRegex=new RegExp(G.persistentGuideBlockedPagesPatterns.join("|"));G.animationTransitionDuration=0;G.lateDataResolver=_.hQ();G.initialGuideDataFetchFailed=!1;G.initialLoad=!0;G.guideRenderers=new Set;G.isMouseOverGuide=!1;G.sessionUserManuallyExpandedGuideState=
!1;G.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return G};
_.T(Qo,_.C);_.g=Qo.prototype;_.g.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.g.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.g.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.g.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.g.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.g.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.g.ready=function(){_.tp().addProvider({provide:_.Lr,useValue:this.hostElement})};
_.g.attached=function(){var G=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.pH(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.pH(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.pH(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.pH(this,this.onYtGuideShow));_.q2(this,function(){G.animationTransitionDuration=200})};
_.g.detached=function(){document.removeEventListener("yt-navigate-finish",_.pH(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.pH(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.pH(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.pH(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.pH(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.pH(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.pH(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.g.getData=function(){return this.data};
_.g.load=function(){var G=this,H,Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=G.lateDataResolver.resolve.bind(G),l.return(G.lateDataResolver.promise);if(window.ytInitialGuideData)return H=_.hQ(),H.resolve(window.ytInitialGuideData),l.return(H.promise);Q=!1;_.XV(l,2);return l.yield(G.fetchGuideData(),4);case 4:Z=l.yieldResult;_.Za(l,3);break;case 2:p=_.Wg(l),p.message==="Returned error"&&(Q=
!0);case 3:if(Z)return l.return(Z);G.onYtGuideClose();Q||(G.initialGuideDataFetchFailed=!0);return l.return(G.lateDataResolver.promise)}})};
_.g.fetchGuideData=function(){var G=this,H,Z,Q,p,l,q,u;return _.S(function(B){if(B.nextAddress==1)return H=_.tp(),G.guidePromise||(Z=H.resolve(_.t0),G.guidePromise=_.wb(Z,Tl6)),B.yield(G.guidePromise,2);if(B.nextAddress!=3)return Q=B.yieldResult,p=H.resolve(_.C7),B.yield(p(),3);(l=B.yieldResult)&&((q=Q)==null?void 0:(u=q.responseContext)==null?void 0:u.maxAgeSeconds)!==0&&l.put("service:guide:fallback",new _.$E({innertubeResponse:Q}));return B.return(Q)})};
_.g.initializeGuideDataIfEmpty=function(){var G=this,H,Z;return _.S(function(Q){if(Q.nextAddress==1){if(!G.initialGuideDataFetchFailed||G.data)return Q.return();_.XV(Q,2);return Q.yield(G.fetchGuideData(),4)}if(Q.nextAddress!=2)return(H=Q.yieldResult)&&G.lateDataResolver.resolve(H),_.Za(Q,0);Z=_.Wg(Q);_.Rp(Z);_.K0(Q)})};
_.g.initializeGuideData=function(){var G=this,H;return _.S(function(Z){switch(Z.nextAddress){case 1:return _.G1(YIt(),{mainAppWeb:_.wT()}),_.XV(Z,2),Z.yield(G.load(),4);case 4:G.data=Z.yieldResult;_.Za(Z,3);break;case 2:_.Wg(Z),_.HM(YIt(),"FAILURE");case 3:H=G.data&&G.data.items&&G.data.items.length>0?"SUCCESS":"FAILURE",_.HM(YIt(),H),_.K0(Z)}})};
_.g.setGuideData=function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1)return H.disabled?p.return():H.data?(G.data=H.data,H.guideRenderers.add(G),p.return()):p.yield(H.initializeGuideData(),2);H.graftGuideToPage();Z=_.YI("IS_HOMEPAGE_COLD")?"eop":void 0;_.V("disable_element_pool_populator")?H.setGuideDataAfterInit(G):(Q=new _.l1(1,Z),_.gv(Q,H.setGuideDataAfterInit.bind(H,G)));_.K0(p)})};
_.g.setGuideDataAfterInit=function(G){G.data=this.data;G.markDirty();this.guideRenderers.add(G);_.PG(function(){_.$K("gle")});
_.q2(this,function(){_.$K("gpe")})};
_.g.graftGuideToPage=function(){if(this.data){var G=this.data&&this.data.trackingParams;G&&(G=_.BT(G),_.vN(_.gr(),G))}};
_.g.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.pH(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.g.onDrawerOpenedChanged=function(G,H){!H.value&&this.guideOpened&&(this.guideOpened=!1)};
_.g.onYtGuideToggle=function(G){var H=this.guideOpened;this.guideOpened=!H;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var Z=_.lf();_.g8(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;Z.save()}this.updateGuideDrawerElementState();if(this.guideElement){var Q;this.guideOpened&&((Q=G.detail)==null?0:Q.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.pH(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.pH(this,this.onAppDrawerTransitioned))}H||this.initializeGuideDataIfEmpty()};
_.g.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.pH(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.lc(this.guideElement)};
_.g.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.pH(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(DOa(this.guideOpened))};
_.g.guidePersistentAndVisibleChanged=function(){_.xk(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.g.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.g.miniGuideVisibleChanged=function(){_.xk(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.g.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(DOa(this.guideOpened)),this.initialLoad=!1);_.xk(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.g.activeEndpointChanged=function(){_.xk(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.g.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.g.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()};
_.g.cachedClientWidthChanged=function(){this.updateGuideState()};
_.g.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.g.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var G=this.canFitPersistentGuide(this.cachedClientWidth);G?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=G}this.updateGuideDrawerElementState()};
_.g.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.g.getGuideOpened=function(){return this.guideOpened};
_.g.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.g.getActiveEndpoint=function(){return this.activeEndpoint};
_.g.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.g.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&&_.N5(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.g.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.V("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.g.handleGuideMouseLeave=function(){var G=this;!this.sessionUserManuallyExpandedGuideState&&_.V("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.rx(this,"handleGuideMouseLeave",function(){G.isMouseOverGuide||!G.guideOpened||G.miniGuideVisible||(G.guideOpened=!1,G.updateGuideDrawerElementState())},100))};
_.g.computeGuidePersistentAndVisible=function(){var G=this;_.rx(this,"computeGuidePersistentAndVisible",function(){G.guidePersistentAndVisible=G.guideOpened&&G.guidePersistent;G.guideIsVisibleButNotPersistent=!(!G.guideOpened||G.guidePersistent)})};
_.g.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.g.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.g.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.g.startLoadingWatch=function(){this.closeGuide()};
_.g.startLoadingShorts=function(){_.V("web_hide_guide_on_shorts")&&this.closeGuide()};
_.g.onYtNavigateFinish=function(G,H){if(!_.Yj||H){this.activeEndpoint=H.endpoint;this.pageType=H.pageType;this.pageUrl=H.response.url;var Z,Q;G=(Q=_.X((Z=H.endpoint)==null?void 0:Z.commandMetadata,_.HA))==null?void 0:Q.url;!this.pageUrl&&G&&(this.pageUrl=G);_.V("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.g.getVisibleGuideRenderer=function(){for(var G=_.I(this.guideRenderers),H=G.next();!H.done;H=G.next())if(H=H.value,this.miniGuideVisible&&H.is==="ytd-mini-guide-renderer"||this.guideOpened&&H.is==="ytd-guide-renderer")return H;return null};
_.g.markGuideRendererDirty=function(G){if(G){typeof G.markDirty==="function"&&G.markDirty();G=_.I([].concat(_.OP(_.F9(G).children)));for(var H=G.next();!H.done;H=G.next())this.markGuideRendererDirty(H.value)}};
_.g.persistentGuideEnabled=function(G,H){if(!H||G==="watch"||G==="settings"||G==="shorts"&&this.isFullscreenShorts||_.V("reels_web_disable_persistent_guide_shorts")&&G==="shorts")return!1;var Z=_.vU(H)||"";return _.V("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(Q){return Z===Q}):!this.persistentGuideBlockedPagePathRegex.test(Z)};
_.g.canFitPersistentGuide=function(G){var H=_.eA("kevlar_persistent_guide_width_threshold",1312);return H===-1||_.V("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:G>this.calculateGuideThreshold(H)};
_.g.calculateGuideThreshold=function(G){return _.V("enable_ai_companion")?G+(this.persistentPanelVisible?400:0):G};
_.g.canFitMiniGuide=function(G){return this.miniGuideWidthThreshold===-1?!1:G>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.g.onResize=function(){var G=this;_.rx(this,"calculateGuideState",function(){G.onResizeDebounced()})};
_.g.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.g.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.g.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.g.getInitialGuideUserStateOpened=function(){return _.V("web_force_mini_guide_default")?!1:!_.lf().getFlag(109)};
_.u4.Object.defineProperties(Qo.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.xI("initialBodyClientWidth")||window.innerWidth}}});
Qo.prototype.onResize=Qo.prototype.onResize;Qo.prototype.observeForMiniGuideVisible=Qo.prototype.observeForMiniGuideVisible;Qo.prototype.computeGuidePersistentAndVisible=Qo.prototype.computeGuidePersistentAndVisible;Qo.prototype.persistentPanelVisibleChanged=Qo.prototype.persistentPanelVisibleChanged;Qo.prototype.cachedClientWidthChanged=Qo.prototype.cachedClientWidthChanged;Qo.prototype.resetGuide=Qo.prototype.resetGuide;Qo.prototype.activeEndpointChanged=Qo.prototype.activeEndpointChanged;
Qo.prototype.guideOpenedChanged=Qo.prototype.guideOpenedChanged;Qo.prototype.miniGuideVisibleChanged=Qo.prototype.miniGuideVisibleChanged;Qo.prototype.guideIsVisibleButNotPersistentChanged=Qo.prototype.guideIsVisibleButNotPersistentChanged;Qo.prototype.guidePersistentAndVisibleChanged=Qo.prototype.guidePersistentAndVisibleChanged;Qo.prototype.onGuideElementChanged=Qo.prototype.onGuideElementChanged;Qo.prototype.onGuidePersistentChanged=Qo.prototype.onGuidePersistentChanged;
Qo.prototype.onRenderGuideChanged=Qo.prototype.onRenderGuideChanged;Qo.prototype.onActiveEndpointChanged=Qo.prototype.onActiveEndpointChanged;Qo.prototype.onMiniGuideVisibleChanged=Qo.prototype.onMiniGuideVisibleChanged;Qo.prototype.onGuideIsVisibleButNotPersistentChanged=Qo.prototype.onGuideIsVisibleButNotPersistentChanged;Qo.prototype.onGuidePersistendAndVisibleChanged=Qo.prototype.onGuidePersistendAndVisibleChanged;
_.N([_.v(_.hS),_.A("design:type",Object)],Qo.prototype,"ironResizableBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Qo.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Qo.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Qo.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Qo.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Boolean)],Qo.prototype,"disabled",void 0);_.N([_.h(),_.A("design:type",Boolean)],Qo.prototype,"guidePersistentAndVisible",void 0);_.N([_.gx("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"onGuidePersistendAndVisibleChanged",null);_.N([_.h(),_.A("design:type",Boolean)],Qo.prototype,"guideIsVisibleButNotPersistent",void 0);
_.N([_.gx("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.N([_.h(),_.A("design:type",Object)],Qo.prototype,"miniGuideVisible",void 0);_.N([_.gx("miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"onMiniGuideVisibleChanged",null);_.N([_.h(),_.A("design:type",Boolean)],Qo.prototype,"forceMiniGuideClose",void 0);
_.N([_.h(),_.A("design:type",Object)],Qo.prototype,"activeEndpoint",void 0);_.N([_.gx("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"onActiveEndpointChanged",null);_.N([_.h(),_.A("design:type",Boolean)],Qo.prototype,"renderGuide",void 0);_.N([_.gx("renderGuide"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"onRenderGuideChanged",null);
_.N([_.h({selector:hms}),_.A("design:type",Boolean)],Qo.prototype,"persistentPanelVisible",void 0);_.N([_.h(),_.A("design:type",Object)],Qo.prototype,"guideOpened",void 0);_.N([_.h(),_.A("design:type",Boolean)],Qo.prototype,"guidePersistent",void 0);_.N([_.gx("guidePersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"onGuidePersistentChanged",null);_.N([_.h(),_.A("design:type",Object)],Qo.prototype,"guideUserStateOpened",void 0);
_.N([_.h(),_.A("design:type",String)],Qo.prototype,"pageUrl",void 0);_.N([_.h(),_.A("design:type",String)],Qo.prototype,"pageType",void 0);_.N([_.h(),_.A("design:type",Number)],Qo.prototype,"cachedClientWidth",void 0);_.N([_.h(),_.A("design:type",Object)],Qo.prototype,"guideElement",void 0);_.N([_.h({selector:_.RS}),_.A("design:type",Object)],Qo.prototype,"isFullscreenShorts",void 0);
_.N([_.gx("guideElement"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"onGuideElementChanged",null);_.N([_.gx("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"guidePersistentAndVisibleChanged",null);
_.N([_.Jv("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"guideIsVisibleButNotPersistentChanged",null);_.N([_.gx("miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"miniGuideVisibleChanged",null);_.N([_.Jv("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"guideOpenedChanged",null);
_.N([_.gx("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"activeEndpointChanged",null);_.N([_.Jv("pageUrl"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"resetGuide",null);_.N([_.Jv("cachedClientWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"cachedClientWidthChanged",null);
_.N([_.Jv("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"persistentPanelVisibleChanged",null);_.N([_.gx("guideOpened","guidePersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"computeGuidePersistentAndVisible",null);
_.N([_.Jv("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"observeForMiniGuideVisible",null);_.N([_.lq("iron-resize"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qo.prototype,"onResize",null);_.N([_.O({disableElementRegistration:!0,is:"yt-guide-manager"})],Qo);
var CR6=_.m(Qo,"yt-guide-manager",void 0,{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var pf=function(){var G=_.C.apply(this,arguments)||this;G.JSC$20321_keyboardInUse=!1;G.boundHandleCapturedKeydownEvent=function(H){G.handleCapturedKeydownEvent(H)};
return G};
_.T(pf,_.C);_.g=pf.prototype;_.g.attached=function(){this.listenToDocument(document)};
_.g.listenToDocument=function(G){G.addEventListener("keydown",_.pH(this,this.onKeyDownEvent));G.addEventListener("keyup",_.pH(this,this.onKeyUpEvent));G.addEventListener("mousedown",_.pH(this,this.onMouseDownEvent));_.V("desktop_keyboard_capture_keydown_killswitch")||G.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.addEventListener("yt-page-data-updated",_.pH(this,this.onPageUpdate))};
_.g.detached=function(){this.unlistenFromDocument(document)};
_.g.unlistenFromDocument=function(G){G.removeEventListener("keydown",_.pH(this,this.onKeyDownEvent));G.removeEventListener("keyup",_.pH(this,this.onKeyUpEvent));G.removeEventListener("mousedown",_.pH(this,this.onMouseDownEvent));_.V("desktop_keyboard_capture_keydown_killswitch")||G.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);G.removeEventListener("yt-page-data-updated",_.pH(this,this.onPageUpdate))};
_.g.ready=function(){_.tp().addProvider({provide:_.qZ,useValue:this})};
_.g.isKeyBoardInUse=function(){return this.JSC$20321_keyboardInUse};
_.g.handleCapturedKeydownEvent=function(G){if(G.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(G)};
_.g.onMouseDownEvent=function(){this.JSC$20321_keyboardInUse=!1};
_.g.onPageUpdate=function(){if(_.V("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.V("web_shorts_keyboard_shortcut_usage_log")){_.LR.clear();for(var G=_.I(_.Ad),H=G.next();!H.done;H=G.next()){var Z=_.I(H.value);H=Z.next().value;Z=Z.next().value;Z=_.bl(Z);_.LR.set(H,Z);_.je(_.$k(),_.Va(),Z)}_.Et.clear();G=_.I(_.x$);for(H=G.next();!H.done;H=G.next())Z=_.I(H.value),H=Z.next().value,Z=Z.next().value,Z=_.bl(Z),_.Et.set(H,Z),_.je(_.$k(),_.Va(),Z);_.PA(_.$k(),_.Va(),[].concat(_.OP(_.Et.values()),
_.OP(_.LR.values())));_.w8(_.$k(),[].concat(_.OP(_.Et.values()),_.OP(_.LR.values())))}};
_.g.onMiniplayerActiveChange=function(){var G;(G=_.tp().resolve(_.WM).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(G.document):this.unlistenFromDocument(G.document))};
_.g.ignoreKeyEvent=function(G){if(G.ctrlKey||G.altKey)if(_.V("kevlar_macro_markers_keyboard_shortcut")){if(G.keyCode!==37&&G.keyCode!==39)return!0}else return!0;var H=_.OD(G)||[];return _.D6o(H)?(_.V("web_button_or_anchor_list_item")&&nVk(H,G)&&(this.JSC$20321_keyboardInUse=!0),!0):G.defaultPrevented?(Jb(G.keyCode,G.shiftKey,this.isShortsPage),!0):G.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(G):!1};
_.g.isSpacebarClick=function(G){var H=G||window.event;var Z;H.composedPath&&typeof H.composedPath==="function"?Z=H.composedPath():Z=H.path;Z&&Z.length?H=Z[0]:(H=H||window.event,H=H.target||H.srcElement,H.nodeType==3&&(H=H.parentNode));return H&&G.keyCode===32&&(G=H.tagName==="BUTTON"||H.tagName==="A"||H.tagName==="INPUT",H=(H=H.getAttribute("role"))&&(H==="option"||H==="button"||H.indexOf("menuitem")===0),G||H)?!0:!1};
_.g.onKeyDownEvent=function(G){if(!this.ignoreKeyEvent(G)&&(G.keyCode===191&&(G.shiftKey||G.metaKey?G.repeat!=null&&G.repeat||(this.openHotkeyDialog(),Jb(G.keyCode,G.shiftKey,this.isShortsPage)):(this.focusSearchBox(),G.preventDefault())),!G.metaKey)){var H=_.tp().resolve(_.WM);switch(G.keyCode){case 9:this.JSC$20321_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(G);break;case 84:H.pipController.getWindow()&&window.focus();this.toggleTheaterMode(G.keyCode,G.shiftKey);break;case 73:H.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(G.keyCode,G.shiftKey);break;case 70:if(this.isShortsPage){_.d6k();break}this.isMiniplayerActive()?H.pipController.getWindow()&&(H.close(!0),window.focus()):this.passEventToPlayer(G);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(G.keyCode,G.shiftKey):this.closeMiniplayer(G.keyCode,G.shiftKey)||this.passEventToPlayer(G);break;case 13:G.shiftKey&&_.tp().resolve(_.pD).activate(G);break;default:this.passEventToPlayer(G)}}};
_.g.onKeyUpEvent=function(G){if(!this.ignoreKeyEvent(G))if(_.V("web_speedmaster_spacebar_control")&&G.keyCode===32)this.handlePlayerSpaceKey(G,!0);else{var H=this.getPlayerManager();H&&(H=H.getPlayer())&&H.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code)}};
_.g.getPlayerManager=function(){var G=_.UO(),H=_.tp().resolve(_.Jp(_.o0));return G&&H&&H.isOnWatch()?G:null};
_.g.passEventToPlayer=function(G,H){var Z=this,Q,p,l,q;return _.S(function(u){if(u.nextAddress==1){if(!_.V("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&Z.isMiniplayerActive())Q=_.tp().resolve(_.WM).getPlayerElement();else if(Z.inlinePreviewIsActive){if(p=_.xk(Z.hostElement,"yt-get-inline-preview-player-action"),(l=p)==null?0:l[0])Q=p[0]}else Q=_.UO();return Q?u.yield(Q.getPlayerPromise(),3):u.jumpTo(0)}q=u.yieldResult;H?q.handleGlobalKeyUp(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,
G.key,G.code):q.handleGlobalKeyDown(G.keyCode,G.shiftKey,G.ctrlKey,G.altKey,G.metaKey,G.key,G.code,G.repeat);G.keyCode!==38&&G.keyCode!==40&&Jb(G.keyCode,G.shiftKey,Z.isShortsPage);_.K0(u)})};
_.g.focusSearchBox=function(){_.N5(this.hostElement,"yt-focus-searchbox")};
_.g.openHotkeyDialog=function(){_.N5(this.hostElement,"yt-open-hotkey-dialog")};
_.g.isMiniplayerActive=function(){return _.tp().resolve(_.WM).isMiniplayerActive()};
_.g.closeMiniplayer=function(G,H){return this.isMiniplayerActive()?(_.tp().resolve(_.WM).close(),Jb(G,H,this.isShortsPage),!0):!1};
_.g.toggleTheaterMode=function(G,H){var Z=_.XD(_.mm().getState()),Q=this.getPlayerManager(),p=_.V("disable_theater_mode_keyboard")||_.YI("START_IN_FULL_WINDOW_MODE");Q&&!p&&(Z=!Z,_.oO()&&_.V("external_fullscreen")&&(Z=!0),_.AZ(this.hostElement,"yt-toggle-theater-mode",[Z]),Jb(G,H,this.isShortsPage))};
_.g.toggleMiniplayer=function(G,H){var Z=this.getPlayerManager();if(this.isMiniplayerActive()){var Q;((Q=_.tp().resolve(_.Jp(_.o0)))==null?0:Q.isOnWatch())?_.tp().resolve(_.WM).close(!0):_.k2(_.tp().resolve(_.WM));Jb(G,H,this.isShortsPage)}else Z&&(_.AZ(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Jb(G,H,this.isShortsPage))};
_.g.handlePlayerSpaceKey=function(G,H){var Z=!!_.UO()||this.isMiniplayerActive();Z=_.V("disable_space_scroll_fix")||Z;_.V("global_spacebar_pause")&&!this.isKeyBoardInUse()&&Z&&(G.preventDefault(),this.passEventToPlayer(G,H))};
_.g.isPresentingTheaterMode=function(){return _.V("web_watch_enable_tm_esc_key")?_.XD(_.mm().getState())&&!_.oO():!1};
pf.prototype.onMiniplayerActiveChange=pf.prototype.onMiniplayerActiveChange;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],pf.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],pf.prototype,"ytdReduxBehavior",void 0);_.N([_.h({selector:_.wY3}),_.A("design:type",Boolean)],pf.prototype,"inlinePreviewIsActive",void 0);_.N([_.h({selector:_.L7M}),_.A("design:type",Boolean)],pf.prototype,"isShortsPage",void 0);
_.N([_.h({selector:_.T9}),_.A("design:type",Boolean)],pf.prototype,"miniplayerIsActive",void 0);_.N([_.gx("miniplayerIsActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pf.prototype,"onMiniplayerActiveChange",null);_.N([_.O({disableElementRegistration:!0,is:"yt-hotkey-manager"})],pf);_.m(pf,"yt-hotkey-manager",void 0,{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var lH=function(){var G=_.C.apply(this,arguments)||this;G.loopStateEntityKey_=null;G.playlistLoopStateEntity_=null;G.isShuffleNextPlaylist=!1;G.PLAYER_EVENTS_=new Map;G.playerListenersSetup_=!1;G.videoSkipJob_=0;G.canAutoAdvance_=!1;G.playerManager_=null;G.TEST_ONLY={};return G};
_.T(lH,_.C);_.g=lH.prototype;_.g.ready=function(){_.tp().addProvider({provide:_.H9,useValue:this.hostElement})};
_.g.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_)};
_.g.attached=function(){document.addEventListener("yt-navigate-start",_.pH(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.pH(this,this.onYtNavigateFinish_))};
_.g.detached=function(){document.removeEventListener("yt-navigate-start",_.pH(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.pH(this,this.onYtNavigateFinish_))};
_.g.updatePlaylistEventListeners=function(G,H){H&&!this.playerListenersSetup_?(this.playerManager_=G,this.registerPlaylistEventListeners_(G)):!H&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(G))};
_.g.setPlayer=function(G){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=G};
_.g.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.g.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.g.registerPlaylistEventListeners_=function(G){var H=this;G.getPlayerPromise().then(function(Z){H.playerListenersSetup_||(H.ytPlayerListenerBehavior.listenToPlayerEvents(Z,H.PLAYER_EVENTS_),H.playerListenersSetup_=!0)})};
_.g.removePlaylistEventListeners_=function(G){var H=this;G.getPlayerPromise().then(function(Z){H.playerListenersSetup_&&(H.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Z,H.PLAYER_EVENTS_),H.playerListenersSetup_=!1)})};
_.g.setPlaylistComponent=function(G){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.pH(this,this.onPlaylistYtNavigate_)),G&&(G.data&&this.playlistComponent.data&&G.data.playlistId==this.playlistComponent.data.playlistId?(G.loopOn=this.playlistComponent.loopOn,G.shuffleOn=this.playlistComponent.shuffleOn):(G.loopOn=!1,G.shuffleOn=!1),this.isShuffleNextPlaylist&&(G.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=G;this.playlistComponent.addEventListener("yt-navigate",
_.pH(this,this.onPlaylistYtNavigate_))};
_.g.setAutoplayRenderer=function(G){this.autoplayData=G};
_.g.setPlaylistData=function(G){this.currentPlaylistData_=G;_.N5(this.hostElement,"yt-playlist-data-updated");_.oN.isEmpty(G)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(G)};
_.g.setPlayerPlaybackControlData=function(G){this.playerManager_&&this.playerManager_.updatePlayerComponents(G.playlistPanelRenderer)};
_.g.getPlaylistData=function(){return this.currentPlaylistData_};
_.g.getTempData_=function(G,H){if(this.playlistComponent==null)return null;G={};this.playlistComponent.shuffleOn&&(G.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(G.loop_on=this.playlistComponent.loopOn);H&&(G.autonav="1",_.tp().resolve(_.Bh),H=_.JL(),H>0&&(G.lact=H),this.playerManager_&&(H=this.playerManager_.getPlayer())&&H.shouldSendVisibilityState()&&(H=H.getVisibilityState(),H!=0&&(G.vis=H)));_.V("enable_unknown_lact_fix_on_html5")&&(_.tp().resolve(_.Bh),G.lact=
_.JL());return G};
_.g.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.g.setLoopStateEntityKey_=function(G){var H;this.loopStateEntityKey_=((H=this.getPlaylistLoopData_(G))==null?void 0:H.playlistLoopStateEntityKey)||null};
_.g.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.g.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.g.skipVideo=function(){var G=this,H=_.V("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||H)H=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.JW(_.Ui,function(){G.onPlaylistNext();G.videoSkipJob_=0},H)};
_.g.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Ui.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.g.isInBackground_=function(){var G=window.document.visibilityState;return!(!G||G=="visible")};
_.g.onPlaylistIndex_=function(G){this.playlistComponent&&(G=this.playlistComponent.data.contents[G].playlistPanelVideoRenderer.navigationEndpoint,_.N5(this.hostElement,"yt-navigate",{endpoint:G,tempData:this.getTempData_(G)}))};
_.g.onPlayerStateChange_=function(G){if(G=G==0&&this.playlistComponent&&this.canAutoAdvance_)G=_.tP.getInstance(),G=!(G.autonavState_===3?G.autonavPauseReason_&&G.autonavPauseReason_.inputBoxFocus===!0:G.autonavState_===1&&G.disabledAutonavPauseReason_&&G.disabledAutonavPauseReason_.inputBoxFocus===!0);G&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.g.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.g.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.g.navigateToAutoplayWatchEndpoint_=function(G,H,Z){var Q=this.playlistComponent.data.currentIndex,p=this.getNumPlayableVideos_();G=="NORMAL"&&H=="autoplayVideo"&&Q+1>=p&&Z||!(G=this.getVideoEndpoint_(G,H))||(Z=this.getTempData_(G,Z),_.N5(this.hostElement,"yt-navigate",{endpoint:G,tempData:Z}))};
_.g.getNumPlayableVideos_=function(){for(var G=0,H=_.I(this.playlistComponent.data.contents||[]),Z=H.next();!Z.done;Z=H.next())Z.value.playlistPanelVideoRenderer&&(G+=1);return G};
_.g.getVideoEndpoint_=function(G,H){if(this.autoplayData&&this.autoplayData.sets)for(var Z=0,Q=this.autoplayData.sets.length;Z<Q;Z++){var p=this.autoplayData.sets[Z];if(p.mode==G){if(p[H])return p[H];break}}else G=new _.C$("AutoplayData is undefined in playlist manager","Mode: "+G+" endpoint: "+H),_.Rp(G)};
_.g.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.g.onPlaylistYtNavigate_=function(G){if(G.detail.endpoint){G.stopPropagation();var H=G.detail;H.tempData=this.getTempData_(G.detail.endpoint);_.N5(this.hostElement,"yt-navigate",H)}};
_.g.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.g.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.g.playlistLoopStateEntityChanged_=function(G){var H=this,Z,Q,p;return _.S(function(l){if(l.nextAddress==1){if(!G)return l.return();Z=G.state==="PLAYLIST_LOOP_STATE_ONE";return H.playerManager_?l.yield(H.playerManager_.getPlayerPromise(),3):l.jumpTo(2)}l.nextAddress!=2&&(Q=l.yieldResult,Q.setLoopVideo(Z));p=G.state==="PLAYLIST_LOOP_STATE_ALL";H.playlistComponent&&(H.playlistComponent.loopOn=p);_.K0(l)})};
_.g.getPlaylistLoopData_=function(G){var H,Z;if(G=G==null?void 0:(H=G.playlistButtons)==null?void 0:(Z=H.menuRenderer)==null?void 0:Z.topLevelButtons)for(H=_.I(G),Z=H.next();!Z.done;Z=H.next())if(Z=Z.value,Z.playlistLoopButtonRenderer)return Z.playlistLoopButtonRenderer};
_.g.getLoopStateCommand_=function(G){var H=this.getPlaylistData(),Z;H=((Z=this.getPlaylistLoopData_(H))==null?void 0:Z.states)||[];var Q;G=(Q=_.X(H[G?1:2],_.XZa))==null?void 0:Q.button;var p;return(p=_.X(G,_.Yl))==null?void 0:p.command};
_.g.onPlayerLoopChange_=function(G){this.playlistLoopStateEntity_&&(G?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(G=this.getLoopStateCommand_(G))&&this.ytComponentBehavior.resolveCommand(G)};
_.g.onSleepTimerSettingsChanged_=function(G){this.canAutoAdvance_=G!=="End of video"};
lH.prototype.onPlaylistLoopStateEntityChanged=lH.prototype.onPlaylistLoopStateEntityChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Hk.YtPlayerListenerBehavior),_.A("design:type",_.sn)],lH.prototype,"ytPlayerListenerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],lH.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lH.prototype,"loopStateEntityKey_",void 0);
_.N([_.h({selectorArgs:["loopStateEntityKey_"],selector:_.wv.playlistLoopStateEntitySelector}),_.A("design:type",Object)],lH.prototype,"playlistLoopStateEntity_",void 0);_.N([_.gx("playlistLoopStateEntity_"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lH.prototype,"onPlaylistLoopStateEntityChanged",null);_.N([_.O({disableElementRegistration:!0,is:"yt-playlist-manager"})],lH);_.m(lH,"yt-playlist-manager",void 0,{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var i5L,O5m=function(){if(i5L!==void 0)return i5L;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return i5L=G};var gR=function(){var G=_.C.apply(this,arguments)||this;G.lastCallback=null;G.getAccountLinkPromises={};G.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);G.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return G};
_.T(gR,_.C);_.g=gR.prototype;_.g.getLocation=function(){return window.location.href};
_.g.getCompletionUrl=function(){return _.Ol(this.getLocation())};
_.g.containsRedirectState=function(G){return(G=_.kj(_.DMf(G)))?(new URLSearchParams(G)).get("redirect_state")!==null:!1};
_.g.createGalConfig=function(G,H){var Z=new Lrt;G=Z=H?this.getPopupOrRedirectSetting(Z,_.xI("LINK_API_KEY"),_.xI("LINK_API_KEY_REDIRECT"),G):Ehi(Z,_.xI("LINK_API_KEY"));G.authUser=_.xI("SESSION_INDEX")||0;G.supportedFlows=new Set([4]);return G.build()};
_.g.getPopupOrRedirectSetting=function(G,H,Z,Q){this.isGalInteractionPopupMode(Q)?(G.interactionMode=0,G=Ehi(G,H)):(G.interactionMode=1,H=this.getCompletionUrl(),G.completionUrl=H,G=Ehi(G,Z));return G};
_.g.isGalInteractionPopupMode=function(G){if(this.redirectModeProviderAllowlist.has(G))switch(G){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.g.getStatusEntityKeyForProviderId=function(G){return _.G9(G+":all","accountLinkStatusEntity")};
_.g.findNestedPropValue=function(G,H){var Z=!1,Q=null;JSON.stringify(G,function(p,l){Z||p!==H||(Z=!0,Q=l);return Z?null:l});
return Q};
_.g.findAccountLinkButtonViewModel=function(G,H){var Z=null,Q=!1;JSON.stringify(G,function(p,l){Q||l.accountLinkStatusEntityKey!==H||l.accountLinkStatusSecondaryEntityKey||(Q=!0,Z=l);return Q?null:l});
return Z};
_.g.executeLinkingSuccessOrFailureCommands=function(G,H,Z){var Q=null,p;(H==null?0:(p=H.url)==null?0:p.includes("account_sharing"))?Q=H==null?void 0:H.response:Q=H==null?void 0:H.response;(H=this.findAccountLinkButtonViewModel(Q,G))?(G=Z?this.findNestedPropValue(H,"onSuccessCommand"):this.findNestedPropValue(H,"onFailureCommand"))?_.bJ([G],this.hostElement):_.HU(Error("Bl")):_.HU(Error("Cl`"+G))};
_.g.handleInitializeRequest=function(G,H){var Z=this,Q=Iqh(this.createGalConfig(G,!0));this.containsRedirectState(this.getLocation())?ZGD(G,Q.config,Q.galService).then(function(p){var l=Z.getStatusEntityKeyForProviderId(G);if(p.statusCode===1)H&&Z.executeLinkingSuccessOrFailureCommands(l,H,!0),p=Z.getLocation().indexOf("#"),p!==-1&&window.history.pushState(null,"",Z.getLocation().substring(0,p));else return H&&Z.executeLinkingSuccessOrFailureCommands(l,H,!1),Promise.reject(Error(p.statusMessage))}).catch(function(p){_.Rp(p);
_.yR("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(p)}):this.getAccountLinkPromises[G]=Q.startLinkingSession({serviceId:G})};
_.g.handleAccountLinkCommand=function(G){_.X(G,Fai)&&this.handleLinkRequest(_.X(G,Fai))};
_.g.handleLinkRequest=function(G){var H=this,Z=G.thirdPartyId;if(Z)if(this.isGalInteractionPopupMode(Z)){var Q=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onFailureCommand)},p=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",G.onSuccessCommand)};
this.lastCallback=p;this.getAccountLinkPromises[Z].then(function(l){KLD(l).then(function(q){q.statusCode===1?p():Q()})}).catch(function(){Q()})}else this.getAccountLinkPromises[Z].then(function(l){KLD(l).then(function(q){if(q.statusCode!==1)return Promise.reject(Error(q.statusMessage))})}).catch(function(l){_.Rp(l);
_.yR("gamingAccountLinkStatusChanged",{serviceId:Z,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(l)})};
_.g.closeAndFire=function(G,H){_.AZ(this.hostElement,"yt-close-popup-action",[G]);H&&_.bJ([H],this.hostElement)};
_.g.handleAccountUnlinkCommand=function(G){_.X(G,bJh)&&this.handleUnlinkRequest(_.X(G,bJh))};
_.g.handleUnlinkRequest=function(G){var H=this,Z=G.thirdPartyId;if(Z){var Q=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onFailureCommand)},p=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",G.onSuccessCommand)};
this.lastCallback=p;var l=Iqh(this.createGalConfig(Z,!1));this.unlinkUserGal(l,Z).then(function(q){q.statusCode===1?p():Q()}).catch(function(){Q()})}};
_.g.unlinkUserGal=function(G,H){return G.deleteLink(H)};
_.g.handleLogAccountLinkingEventCommand=function(G){_.V("enable_gel_log_commands")&&_.X(G,Gfc)&&(G=_.X(G,Gfc).event)&&_.yR("gamingAccountLinkStatusChanged",G)};
_.u4.Object.defineProperties(gR,{template:{configurable:!0,enumerable:!0,get:function(){return O5m()}}});
_.N([_.v(_.e8.YtOpenPopupBehavior),_.A("design:type",Object)],gR.prototype,"ytOpenPopupBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],gR.prototype,"ytActionHandlerBehavior",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-third-party-manager"})],gR);_.m(gR,"ytd-third-party-manager",function(){return O5m()},{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var auc,y76=function(){if(auc!==void 0)return auc;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return auc=G};var I7=function(){var G=_.C.apply(this,arguments)||this;G.currentPage=void 0;G.renderLoadingStateJobId=0;G.updatePageDataJobId=0;G.pageDisposeJobsets=new WeakMap;G.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"};G.shouldApplyLockupToWatchTransition=_.V("web_thumbnail_to_watch_transition");G.shouldApplySlideTransition=_.n$("web_page_transition_type")==="slide"||_.V("enable_plj_landing_page");G.shouldApplyLearningJourneyTransition=_.V("enable_plj_landing_page");G.TEST_ONLY=void 0;return G};
_.T(I7,_.C);_.g=I7.prototype;_.g.ready=function(){var G=_.tp();G.addProvider({provide:_.o0,useValue:this});G.addProvider({provide:_.LsL,useValue:this})};
_.g.created=function(){this.pagePool=new SEq;this.contextSwitcher=new Th6};
_.g.attached=function(){_.N5(this.hostElement,"attached");var G=_.tp().resolve(_.Jp(_.J0));G&&(this.contextSwitcher.JSC$20146_networkService_=G);this.viewTransitionManager=_.tp().resolve(_.jB)};
_.g.getPageOffset=function(G){return G.getScrollTop()};
_.g.setPageOffset=function(G,H){try{G.setScrollTop(H)}catch(Z){}};
_.g.setPageOffsetForNavigation=function(G,H){_.N5(this.hostElement,"yt-navigate-set-page-offset",{page:G,offset:H===void 0?0:H})};
_.g.pauseActiveContext=function(){var G=this.contextSwitcher;G.activeContext_&&G.activeContext_.pause()};
_.g.getModuleNameForType=function(G){return G==="watch"?_.V("kevlar_watch_fixie")?"watchFixie":_.V("kevlar_watch_grid")?"watchGrid":"watchFlexy":G==="shorts"||G==="search"?G:"browse"};
_.g.attachPage=function(G){var H,Z=!_.V("pc_is_attached_ks")&&(G==null?void 0:(H=G.polymerController)==null?void 0:H.isAttached);if(!G.isAttached&&!Z)try{_.F9(this.hostElement).appendChild(G)}catch(p){var Q;_.Rp(new _.C$("Error attaching page element for component",{origin:(Q=this.currentPage)==null?void 0:Q.is,component:G.is}))}};
_.g.setActivePage=function(G,H){var Z=this,Q=!1,p=function(){var l=Z.isOnWatch(),q=Z.currentPage;if(G)if(G!==Z.currentPage){q&&(q.hidden=!0,q.active=!1,q.removeAttribute("role"));Z.currentPage=G;var u,B=H!=null?H:_.lS((u=Z.data)==null?void 0:u.endpoint);q&&_.N5(Z.hostElement,"yt-page-type-changed",{oldPageType:q.is,newPageType:G.is,newPageSubtype:B});_.OI().dispatch(_.Lo({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:G.is}));_.OI().dispatch(_.Lo({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:B||""}));
G.hidden=!1;Z.attachPage(G);G.active=!0;G.setAttribute("role","main");q&&Z.setPageOffsetForNavigation(G,0);_.V("kevlar_remove_page_dom_on_switch")&&!l&&q&&_.F9(Z.hostElement).removeChild(q)}else Q=!0;else Z.handleMissingDestinationPage(q)};
this.shouldRunBrowseTransition(this.currentPage,G)?o_L(this.viewTransitionManager,p):this.shouldRunLearningJourneyTransition(this.currentPage,G)?RSj(this.viewTransitionManager,p):p();return Q};
_.g.handleMissingDestinationPage=function(G){if(this.isColdLoadForUnknownPage(G))_.Rp(new _.C$("Cold load for unknown page"));else{var H;G=new _.C$("Unable to set active page",G?G.is:"unknown origin",(H=this.data)==null?void 0:H.endpoint);_.me(G)}};
_.g.isColdLoadForUnknownPage=function(G){return!G&&s9(this.data)==="unknown"};
_.g.shouldRunBrowseTransition=function(G,H){return this.shouldApplySlideTransition&&(G==null?void 0:G.is)==="ytd-browse"&&(H==null?void 0:H.is)==="ytd-browse"&&G!==H};
_.g.shouldRunLearningJourneyTransition=function(G,H){return this.shouldApplyLearningJourneyTransition&&(G==null?void 0:G.is)==="ytd-browse"&&((H==null?void 0:H.is)==="ytd-watch-learning-journey"||(H==null?void 0:H.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.g.shouldRunWatchNextLoadedTransition=function(G,H){return this.viewTransitionManager&&G.is==="ytd-watch-flexy"&&H};
_.g.updatePageData=function(G){var H=this,Z=this.data;this.updatePageDataJobId&&_.Ui.cancelJob(this.updatePageDataJobId);this.data=G;return new _.T_(function(Q){var p=function(){G.filler?H.performDataUpdate(G,Z):FD8(function(){H.performDataUpdate(G,Z)});
var B=_.ZO();_.QA(B,"cr")||B.processSignal("cr");Q()},l=function(){G&&G.page==="watch"?H.updatePageDataJobId=_.JW(_.Ui,p):p()};
if(_.V("kevlar_enable_mss_page_modules_client")&&G){var q=_.tp().resolve(_.KM),u=H.getModuleNameForType(G.page);(q=a$a(q,[u]))?q.then(l):l()}else l()})};
_.g.isDownloadsPage=function(G){var H,Z;return(G==null?void 0:(H=G.endpoint)==null?void 0:(Z=H.browseEndpoint)==null?void 0:Z.browseId)==="FEdownloads"};
_.g.setPlayerSyncInterval=function(G){var H;return _.S(function(Z){if(Z.nextAddress==1)return Z.yield(_.tp().resolve(_.LI),2);H=Z.yieldResult;H.setUpPositionSyncInterval(G);_.K0(Z)})};
_.g.performDataUpdate=function(G,H){_.V("kevlar_early_popup_close")||_.AZ(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var Z=!G.filler;Z&&(_.$K("lps"),_.V("config_age_report_killswitch")||K3c());var Q=s9(G),p,l=!1;if(_.V("kevlar_remove_page_dom_on_switch")){var q=H&&s9(H);Q===q&&(p=this.getCurrentPage())}p||(p=Yo(this.pagePool,Q));Z&&Hp6(this.pagePool.elementPoolPopulator,Q);Z&&!this.renderLoadingStateJobId&&(l=this.setActivePage(p));if(p){q=Q==="watch";var u=
Q==="shorts",B=Q==="learning_journey_watch";_.V("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(p);if(q||u||B)p.playerData=G.playerResponse;if(u)if(_.V("web_enable_delay_shorts_sequence_call")){G.reelWatchSequenceResponse&&(G.reelWatchSequenceResponse.entries||G.reelWatchSequenceResponse.prevEntries)&&(p.reelWatchSequenceResponse=G.reelWatchSequenceResponse);p.currentEndpoint=G.endpoint;var t;p.isPreviousPageShorts=!!(H==null?0:(t=H.endpoint)==null?0:t.reelWatchEndpoint);
var D,d;G.cachedSequenceParams=((D=G.endpoint)==null?void 0:(d=D.reelWatchEndpoint)==null?void 0:d.sequenceParams)||G.cachedSequenceParams||(H==null?void 0:H.cachedSequenceParams);var e,n;G.cachedSequenceProvider=((e=G.endpoint)==null?void 0:(n=e.reelWatchEndpoint)==null?void 0:n.sequenceProvider)||G.cachedSequenceProvider||(H==null?void 0:H.cachedSequenceProvider);p.cachedSequenceParams=G.cachedSequenceParams;p.cachedSequenceProvider=G.cachedSequenceProvider}else if(_.V("web_enable_shorts_sequence_cache_fix")){G.reelWatchSequenceResponse&&
(G.reelWatchSequenceResponse.entries||G.reelWatchSequenceResponse.prevEntries)?p.reelWatchSequenceResponse=G.reelWatchSequenceResponse:p.cachedReelWatchSequenceResponse&&!p.reelWatchSequenceResponse&&(p.reelWatchSequenceResponse=p.cachedReelWatchSequenceResponse);G.reelWatchSequenceResponse&&(H==null?void 0:H.page)!=="shorts"&&(p.cachedReelWatchSequenceResponse=G.reelWatchSequenceResponse);p.currentEndpoint=G.endpoint;var c;p.isPreviousPageShorts=!!(H==null?0:(c=H.endpoint)==null?0:c.reelWatchEndpoint)}else{G.reelWatchSequenceResponse&&
(G.reelWatchSequenceResponse.entries||G.reelWatchSequenceResponse.prevEntries)?p.reelWatchSequenceResponse=G.reelWatchSequenceResponse:G.cachedReelWatchSequenceResponse?p.reelWatchSequenceResponse=G.cachedReelWatchSequenceResponse:_.V("web_enable_cached_reel_sequence_fix")&&p.cachedReelWatchSequenceResponse&&!p.reelWatchSequenceResponse&&(p.reelWatchSequenceResponse=p.cachedReelWatchSequenceResponse);p.currentEndpoint=G.endpoint;var W;p.isPreviousPageShorts=!!(H==null?0:(W=H.endpoint)==null?0:W.reelWatchEndpoint);
G.cachedReelWatchSequenceResponse=G.reelWatchSequenceResponse||G.cachedReelWatchSequenceResponse||(H==null?void 0:H.cachedReelWatchSequenceResponse);p.cachedReelWatchSequenceResponse=G.cachedReelWatchSequenceResponse}t=this.isDownloadsPage(G);D=this.isDownloadsPage(H);t&&!D?this.setPlayerSyncInterval(6E5):!t&&D&&this.setPlayerSyncInterval();_.V("block_all_player_prefetch_requests")||this.preparePrefetchRequest(G,p,Z,q,u,B);Ns8(_.tp().resolve(_.WM),H,G);if(_.V("enable_ai_companion")){var M;(M=_.tp().resolve(_.Jp(_.yp)))==
null||_.Tna(M,this.getPersistentPanelSurface(Q))}_.IP(_.tp().resolve(_.Bh));_.V("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(p);Z?(Z=typeof p.loadPage,Z==="function"?(p.pageContext=fnh(this.contextSwitcher,p,p.data!==G.response),Z=function(){p.loadPage(G.response)},this.shouldApplySlideTransition&&p.is==="ytd-browse"&&l&&(Q==="learning"||this.isDifferentBrowseId(G==null?void 0:G.endpoint,H==null?void 0:H.endpoint))?o_L(this.viewTransitionManager,Z):this.shouldRunWatchNextLoadedTransition(p,
l)?UQa(this.viewTransitionManager,Z):Z()):_.UN(new _.C$("b/38014653 ",[Q,
p.is,p.nodeName,Z,p.isAttached,H&&s9(H),this.hostElement.children.length])),_.$K("pdl")):(p.hidden=!0,G.response.filler=!0,p.data=G.response,this.attachPage(p));_.N5(this.hostElement,"yt-page-data-updated",{pageType:Q})}_.wM(_.Ui,function(){_.V("logging_avoid_blocking_during_navigation")&&_.TbX().transition("none");var r=yJs(),w=p;if(G){var x=njt(G),U=VVL(G),R;a:{if(G.playerResponse){var L=G.playerResponse,H3;if((R=L.auxiliaryUi)==null?0:(H3=R.messageRenderers)==null?0:H3.upsellDialogRenderer){R=
L.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(G.response&&(R=G.response,(L=R.overlay)==null?0:L.upsellDialogRenderer)){R=R.overlay.upsellDialogRenderer;break a}R=void 0}var qX;var B3;H3=(qX=G.playerResponse)==null?void 0:(B3=qX.auxiliaryUi)==null?void 0:B3.messageRenderers;qX=(H3==null?void 0:H3.enforcementMessageViewModel)||(H3==null?void 0:H3.bkaEnforcementMessageViewModel);qX=(qX==null?void 0:qX.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?qX:void 0;
var fW;a:{if(G.response&&(B3=G.response,(fW=B3.overlay)==null?0:fW.commandWrapperPromoRenderer)){fW=B3.overlay.commandWrapperPromoRenderer;break a}fW=void 0}ana(r,x,U,R,qX,fW,w)}})};
_.g.preparePrefetchRequest=function(G,H,Z,Q,p,l){var q,u,B,t,D,d,e,n,c,W,M,r,w,x,U;return _.S(function(R){if(R.nextAddress==1)return!Z||!(Q||p||l)||_.V("kevlar_disable_background_prefetch")&&_.bW(_.we2)()===0?R.return():(q=_.mG(H))?R.yield(q.getPlayerPromise(),2):R.return();u=R.yieldResult;B=_.tp().resolve(_.Jp(_.J0));if(!B)return R.return();if(p)return t=_.yj(_.TP),I$q(t,(D=G.endpoint)==null?void 0:D.reelWatchEndpoint,H.reelWatchSequenceResponse,u,B),R.return();n=(d=G.response)==null?void 0:(e=d.responseContext)==
null?void 0:e.webResponseContextExtensionData;if(!n)return R.return();w=(c=G.response)==null?void 0:(W=c.contents)==null?void 0:(M=W.twoColumnWatchNextResults)==null?void 0:(r=M.autoplay)==null?void 0:r.autoplay;x=_.tp().resolve(_.H9);U=_.yj(_.TP);qac(U,n,u,B,x,w);_.K0(R)})};
_.g.movePlayerToWatch=function(G){var H=this,Z,Q;return _.S(function(p){Z=Yo(H.pagePool,"watch");Q=Z.getPlayerContainer();G.appendTo(Q);_.K0(p)})};
_.g.movePlayerToShorts=function(G){var H=this,Z,Q,p;return _.S(function(l){Z=Yo(H.pagePool,"shorts");Q=Z.getPlayerContainer();(p=G)==null||p.appendTo(Q,void 0,!0);_.K0(l)})};
_.g.getPlayerFromWatch=function(){var G=Yo(this.pagePool,"watch");return _.mG(G)};
_.g.getPlayerFromShorts=function(){var G=Yo(this.pagePool,"shorts");return _.mG(G)};
_.g.startLoadingWatch=function(){var G=this,H=Yo(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Ui.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.V("web_watch_transition_enable_start_loading_watch_callsite")?mQs(this.viewTransitionManager,function(){G.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(H,"watch");
if(_.V("enable_ai_companion")){var Z;(Z=_.tp().resolve(_.Jp(_.yp)))==null||_.Tna(Z,this.getPersistentPanelSurface("watch"))}};
_.g.startLoadingShorts=function(){var G=Yo(this.pagePool,"shorts");this.setActivePage(G,"shorts")};
_.g.startLoadingLearningJourney=function(){var G=Yo(this.pagePool,"learning_journey_watch");this.setActivePage(G,"learning_journey_watch")};
_.g.getCurrentPage=function(){return this.currentPage};
_.g.getDestinationPageType=function(){return this.destinationPageType};
_.g.getCurrentData=function(){return this.data};
_.g.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.g.isOnShorts=function(){var G;return((G=this.currentPage)==null?void 0:G.is)==="ytd-shorts"};
_.g.isWatchPage=function(G){return!!G&&(G.is==="ytd-watch-flexy"||G.is==="ytd-watch-fixie"||G.is==="ytd-watch-grid")};
_.g.preparePage=function(G,H){var Z=this,Q=function(){var q=Z.pagePool.preparePage(G,Z.currentPage,H);q&&Z.attachPage(q)},p=function(q){_.N1(q,H);
_.Rp(q)};
if(_.V("kevlar_enable_mss_page_modules_client")){var l=this.getModuleNameForType(G);if(l=a$a(_.tp().resolve(_.KM),[l])){l.then(Q.bind(this)).catch(p.bind(this));return}}try{Q()}catch(q){p(q)}};
_.g.lazyPrepareCriticalPages=function(G,H){G=_.lS(H)||G;_.V("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(G).then(this.maybePrepareWatchPage.bind(this,G)):this.maybePrepareWatchPage(G)};
_.g.maybePrepareWatchPage=function(G){G==="watch"||G==="learning_journey_watch"&&_.V("web_watch_learning_journey_disable_lazy_pages")||_.wM(_.Ui,this.preparePage.bind(this,"watch"))};
_.g.downloadPageModules=function(G){G=this.getModuleNameForType(G);var H=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);H.delete(G);var Z=_.tp().resolve(_.KM);Z.JSC$18841_loadModules(G);return Z.JSC$18841_loadModules.apply(Z,_.OP(H))};
_.g.renderPageLoadingState=function(G,H){this.preparePage(G,H);var Z=Yo(this.pagePool,G);Z.loadingData&&(Z.loadingData.endpoint=H);Z.loading=!0;this.setActivePage(Z,G);G!=="watch"&&G!=="learning_journey_watch"||_.N5(this.hostElement,"yt-guide-close")};
_.g.prepareForNavigation=function(G,H){var Z=this;if(this.currentPage&&this.data){var Q=_.lS(H)||G;this.destinationPageType=Q;s9(this.data)==Q&&_.N5(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((G==="watch"||G==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Ui.cancelJob(this.renderLoadingStateJobId);_.tp().resolve(_.WM).deactivate(H);_.ZG(_.Ui,function(){var l=Z.viewTransitionManager,q=Z.currentPage;
if(l.isLockupToWatchTransitionEnabled&&l.isLockupThumbnailRegistrationEnabled&&q)if(l.registeredLockupThumbnail)l.lockupThumbnailRegisteredFromWatchEndpoint&&_.Rp(new _.C$("Lockup thumbnail already registered from watch endpoint."));else{a:{var u=_.X(H,_.hZ);if(u==null?0:u.videoId){var B="yt-lockup-view-model ."+_.GMW(u.videoId)+" yt-thumbnail-view-model";q=q.querySelectorAll(B);if(q.length===1){u=q[0];break a}q.length>1?_.Rp(new _.C$("Multiple LockupViewModel thumbnails found for videoId: "+u.videoId+
". Selector: "+B)):_.V("web_thumbnail_to_watch_transition_debug")&&_.Rp(new _.C$("No LockupViewModel thumbnail found for videoId: "+u.videoId+". Selector: "+B))}u=void 0}u&&(l.registeredLockupThumbnail=u,l.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.s1k(l,u))}});
var p=this.data;this.renderLoadingStateJobId=_.ZG(_.Ui,function(){mQs(Z.viewTransitionManager,function(){if(Z.data!=p){var l=Yo(Z.pagePool,G);Z.setActivePage(l)}else Z.renderPageLoadingState(G,H);Z.renderLoadingStateJobId=0})},150)}};
_.g.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var G=new _.l1(1);this.currentPage.pageDisposeJobs.forEach(function(H){_.gv(G,H)});
this.pageDisposeJobsets.set(this.currentPage,G)}};
_.g.flushPageDisposeJobset=function(G){var H=this.pageDisposeJobsets.get(G);H&&(H.flushJobs(),this.pageDisposeJobsets.delete(G))};
_.g.onYtStopOldPlayer=function(G,H){H=H===void 0?!1:H;var Z,Q=_.$M("kevlar_new_stop_old_player_logic_pages");if(_.V("kevlar_check_current_page_on_stop_old_player")&&(Q.length===0||this.currentPage&&Q.includes(this.currentPage.is)))if(this.data&&(Z=s9(this.data)),s9(G)===Z&&this.currentPage&&s9(this.currentPage.data)!==Z)var p=_.mG(this.currentPage);else Z=s9(this.data),p=Yo(this.pagePool,Z),p=_.mG(p);else this.data&&(Z=s9(this.data),p=Yo(this.pagePool,Z),p=_.mG(p));if(p){Q=s9(G);var l=Yo(this.pagePool,
Q);l=_.mG(l);if(p==l)H&&!_.V("kevlar_disable_preemptive_player_reset")&&p.resetForNewPlayback();else if(H=Z==="watch"&&Q!=="watch",!H||Q==="shorts"||_.bnw()&&!Wlm(this.data,G))G=_.tp().resolve(_.WM),H&&G.isMiniplayerActive()&&G.pipController.getWindow()||p.stop()}};
_.g.isDifferentBrowseId=function(G,H){G=_.X(G,_.gT);H=_.X(H,_.gT);return(G==null?void 0:G.browseId)!==(H==null?void 0:H.browseId)};
_.g.getPersistentPanelSurface=function(G){switch(G){case "watch":return"WATCH";default:return"APP"}};
_.u4.Object.defineProperties(I7,{template:{configurable:!0,enumerable:!0,get:function(){return y76()}}});
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],I7.prototype,"ytActionHandlerBehavior",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-page-manager"})],I7);_.m(I7,"ytd-page-manager",function(){return y76()},{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var oZL;var qN=function(){var G=_.C.apply(this,arguments)||this;G.useListItemStyles=_.V("web_list_item_style_for_menu_items");G.systemIcons=_.V("kevlar_system_icons");return G};
_.T(qN,_.C);_.g=qN.prototype;_.g.ready=function(){this.hostElement.addEventListener("tap",_.pH(this,this.onEndpointTapExtra))};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){var G;(G=_.F9(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.g.onEndpointTapExtra=function(G){_.N5(this.hostElement,"iron-activate");var H=this.data.navigationEndpoint;H&&_.X(H,_.feo)&&(G.stopPropagation(),_.El(this.hostElement,[H],this.hostElement))};
_.g.computeIcon=function(G){return G&&G.iconType?_.bq(G.iconType):""};
_.g.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.forceUpdateStylesOnLegacyBrowsers=function(){_.V("kevlar_legacy_browsers")&&_.ZI(this.hostElement)};
qN.prototype.forceUpdateStylesOnLegacyBrowsers=qN.prototype.forceUpdateStylesOnLegacyBrowsers;qN.prototype.onFocus=qN.prototype.onFocus;_.N([_.v(_.Ia),_.A("design:type",Object)],qN.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.XO8.YtConditionalRendererBehavior),_.A("design:type",Object)],qN.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.v(_.ni.YtEndpointBehavior),_.A("design:type",Object)],qN.prototype,"ytEndpointBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],qN.prototype,"data",void 0);_.N([_.h({computed:"computeIcon(data.icon)",value:""}),_.A("design:type",String)],qN.prototype,"icon",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],qN.prototype,"useIcons",void 0);_.N([_.h({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Boolean)],qN.prototype,"hasSeparator",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],qN.prototype,"useListItemStyles",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],qN.prototype,"systemIcons",void 0);_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qN.prototype,"onFocus",null);_.N([_.gx("useIcons","hasSeparator"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qN.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.m(qN,"ytd-menu-navigation-item-renderer",function(){if(oZL===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);oZL=G}G=oZL;return G},{mode:1});var mRk;var URD=_.aq(_.Zg("DOWNLOAD",{},"Download")),Rmh=_.aq(_.Zg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),N$q=_.aq(_.Zg("RETRY",{},"Retry")),A7o=_.aq(_.Zg("PAUSE_DOWNLOADING",{},"Pause downloading")),xRs=_.aq(_.Zg("RESUME_DOWNLOAD",{},"Resume download")),SC=function(){var G=_.C.apply(this,arguments)||this;G.primaryText=URD;G.primaryIconType="OFFLINE_DOWNLOAD";G.hasSecondaryContent=!1;G.hasSeparator=!1;G.transferState="TRANSFER_STATE_UNKNOWN";G.isVideoDeletedByUser=!1;G.isHidden=!1;G.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return G};
_.T(SC,_.C);_.g=SC.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){this.primaryEntry.focus()};
_.g.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.g.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.g.getRemoveAction=function(){return"ACTION_REMOVE"};
_.g.sendOfflineAction=function(G){var H=this.data.serviceEndpoint;if(H){var Z=_.X(H,_.Qt);Z&&G&&(Z.action=G);this.ytComponentBehavior.resolveCommand(H)}};
_.g.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=URD,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=URD;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=N$q;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Rmh;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=xRs;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Rmh;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
A7o;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Rmh;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Rmh;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=URD,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.g.showHideButton=function(){var G;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((G=this.playerStateEntity)==null?void 0:G.adsState)==="ADS_STATE_PLAYING"};
_.g.isSecondaryEntryHidden=function(G,H){return G?!0:!H};
_.g.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.g.computePlayerStateEntityKey=function(G){return G};
SC.prototype.showHideButton=SC.prototype.showHideButton;SC.prototype.onTransferStateChange=SC.prototype.onTransferStateChange;SC.prototype.onFocus=SC.prototype.onFocus;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],SC.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],SC.prototype,"ytComponentBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],SC.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],SC.prototype,"primaryText",void 0);_.N([_.h(),_.A("design:type",String)],SC.prototype,"primaryIconType",void 0);_.N([_.h(),_.A("design:type",String)],SC.prototype,"primaryAction",void 0);_.N([_.h(),_.A("design:type",Object)],SC.prototype,"secondaryText",void 0);_.N([_.h(),_.A("design:type",String)],SC.prototype,"secondaryIconType",void 0);
_.N([_.h(),_.A("design:type",String)],SC.prototype,"secondaryAction",void 0);_.N([_.h(),_.A("design:type",Object)],SC.prototype,"hasSecondaryContent",void 0);_.N([_.h({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Object)],SC.prototype,"hasSeparator",void 0);_.N([_.h({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.A("design:type",String)],SC.prototype,"playerStateEntityKey",void 0);
_.N([_.h({selector:_.G3,selectorArgs:["playerStateEntityKey"]}),_.A("design:type",Object)],SC.prototype,"playerStateEntity",void 0);_.N([_.h({selector:_.Wv,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",String)],SC.prototype,"transferState",void 0);_.N([_.h({selector:_.bi2,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",Object)],SC.prototype,"isVideoDeletedByUser",void 0);
_.N([_.h(),_.A("design:type",Object)],SC.prototype,"isHidden",void 0);_.N([_.h({selector:_.NvU,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.A("design:type",Object)],SC.prototype,"offlineabilityState",void 0);_.N([_.q6("#primary-entry"),_.A("design:type",Object)],SC.prototype,"primaryEntry",void 0);_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SC.prototype,"onFocus",null);
_.N([_.Jv("transferState","isVideoDeletedByUser"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SC.prototype,"onTransferStateChange",null);_.N([_.Jv("offlineabilityState","playerStateEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],SC.prototype,"showHideButton",null);
_.m(SC,"ytd-menu-service-item-download-renderer",function(){if(mRk===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);mRk=G}G=mRk;return G},{mode:1});var LEk;var uH=function(){var G=_.C.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.V("kevlar_system_icons");G.useListItemStyles=_.V("web_list_item_style_for_menu_items");return G};
_.T(uH,_.C);_.g=uH.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){var G;(G=_.F9(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.g.onTap=function(){_.xk(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var G=this.data.serviceEndpoint,H=this.data.command;if(G){var Z,Q=(Z=this.data)==null?void 0:Z.trackingParams;Z=!!_.X(G,_.ggT);Q&&Z&&_.mm().dispatch(_.Lo({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:Q}}));this.ytComponentBehavior.resolveCommand(G)||_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}})}H&&(this.ytComponentBehavior.resolveCommand(H)||_.El(this.hostElement,
[H],this.hostElement))};
_.g.computeIcon=function(G){return G&&G.iconType?_.bq(G.iconType):""};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.computeHasSeparator=function(){var G;return!((G=this.data)==null||!G.hasSeparator)};
_.g.forceUpdateStylesOnLegacyBrowsers=function(){_.V("kevlar_legacy_browsers")&&_.ZI(this.hostElement)};
_.g.computeIsSelected=function(){var G;return!((G=this.data)==null||!G.isSelected)};
uH.prototype.forceUpdateStylesOnLegacyBrowsers=uH.prototype.forceUpdateStylesOnLegacyBrowsers;uH.prototype.onTap=uH.prototype.onTap;uH.prototype.onFocus=uH.prototype.onFocus;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],uH.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],uH.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.XO8.YtConditionalRendererBehavior),_.A("design:type",Object)],uH.prototype,"ytConditionalRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uH.prototype,"data",void 0);_.N([_.h({computed:"computeIcon(data.icon)",value:""}),_.A("design:type",String)],uH.prototype,"icon",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],uH.prototype,"useIcons",void 0);
_.N([_.h({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.A("design:type",Boolean)],uH.prototype,"hasSeparator",void 0);_.N([_.h({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.A("design:type",Boolean)],uH.prototype,"isSelected",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],uH.prototype,"systemIcons",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],uH.prototype,"useListItemStyles",void 0);
_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uH.prototype,"onFocus",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],uH.prototype,"onTap",null);_.N([_.gx("useIcons","hasSeparator"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uH.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.m(uH,"ytd-menu-service-item-renderer",function(){if(LEk===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);LEk=G}G=LEk;return G},{mode:2});var EZh;var BC=function(){return _.C.apply(this,arguments)||this};
_.T(BC,_.C);_.g=BC.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onDataChanged=function(){var G=this;_.q2(this,function(){G.postbox.openDialog();G.focus();_.N5(G.hostElement,"yt-refit")})};
_.g.focus=function(){this.postbox.focus()};
_.g.closePopup=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
_.g.onYtCommentboxDismiss=function(){this.closePopup()};
BC.prototype.onYtCommentboxDismiss=BC.prototype.onYtCommentboxDismiss;BC.prototype.onDataChanged=BC.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],BC.prototype,"data",void 0);_.N([_.h({value:function(){return _.Zg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],BC.prototype,"closeButtonAriaLabel",void 0);_.N([_.q6("#postbox"),_.A("design:type",Object)],BC.prototype,"postbox",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BC.prototype,"onDataChanged",null);_.N([_.lq("yt-commentbox-dismiss"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],BC.prototype,"onYtCommentboxDismiss",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],BC);
_.m(BC,"ytd-backstage-post-dialog-popup-renderer",function(){if(EZh!==void 0)return EZh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return EZh=G},{mode:1});var YEh;var FED=function(){return _.C.apply(this,arguments)||this};
_.T(FED,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],FED.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],FED.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],FED);
_.m(FED,"ytd-sender-id-section-renderer",function(){if(YEh!==void 0)return YEh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return YEh=G},{mode:1});var b5m;var GSq;var HSj;var JI=function(){return _.C.apply(this,arguments)||this};
_.T(JI,_.C);JI.prototype.closePopup=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],JI.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],JI.prototype,"data",void 0);_.N([_.fH({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],JI);
_.m(JI,"yt-community-post-section-renderer",function(){if(HSj===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;GSq===void 0&&(GSq=document.createElement("template"));var Q=GSq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);HSj=G}G=HSj;return G},{mode:2});var snj;var ZS8;var QnL;var piD;var lck;var gLD;var Ic6=function(){return _.C.apply(this,arguments)||this};
_.T(Ic6,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ic6.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ic6.prototype,"data",void 0);_.N([_.fH({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Ic6);
_.m(Ic6,"yt-share-start-time-with-context-renderer",function(){if(gLD===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;lck===void 0&&(lck=document.createElement("template"));var Q=lck;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);gLD=G}G=gLD;return G},{mode:2});var tI=function(){return _.C.apply(this,arguments)||this};
_.T(tI,_.C);tI.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],tI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],tI.prototype,"data",void 0);_.N([_.fH({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],tI);
_.m(tI,"yt-share-panel-title-v15-renderer",function(){if(piD===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;QnL===void 0&&(QnL=document.createElement("template"));var Q=QnL;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);piD=G}G=piD;return G},{mode:2});var ks=function(){return _.C.apply(this,arguments)||this};
_.T(ks,_.C);ks.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ks.prototype,"data",void 0);_.N([_.fH({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],ks);
_.m(ks,"yt-share-panel-header-renderer",function(){if(ZS8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;snj===void 0&&(snj=document.createElement("template"));var Q=snj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ZS8=G}G=ZS8;return G},{mode:2});var qYs;var SYq;var DL=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-open-popup-action":"onOpen"};return G};
_.T(DL,_.C);_.g=DL.prototype;_.g.attached=function(){this.onOpen()};
_.g.updateTimeSecs=function(G){this.currentTimeSecs=G};
_.g.computeTimeString=function(G){G=G.toString();var H=Math.floor(Number(G)/3600),Z=Math.floor(Number(G)%3600%60);return(H>0?H+":":"")+_.sK(Math.floor(Number(G)%3600/60),H>0?2:1)+":"+_.sK(Z,2)};
_.g.computeTimeStringA11y=function(G){return _.li3({seconds:G})};
_.g.getTimeParam=function(){return aGt(this.timeString)};
_.g.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var G={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},H;_.ze(_.gr(),(H=this.data)==null?void 0:H.trackingParams,G,7)};
_.g.onChangeStartAtTimestamp=function(){for(var G=this.startAtTimestamp.value.split(":"),H=0,Z=1,Q=G.length-1;Q>=0;Q--)H+=Number(G[Q])*Z,Z*=60;this.updateTimeSecs(H);this.setTimestamp()};
_.g.onOpen=function(){var G=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var H=_.UO();H?H.getPlayerPromise().then(function(Z){Z=Z.getCurrentTime();G.updateTimeSecs(Z)}):SOA()&&this.updateTimeSecs(SOA())};
_.g.setTimestamp=function(){var G=Math.floor(this.currentTimeSecs);_.AZ(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!G,timestamp:G||""}])};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],DL.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],DL.prototype,"data",void 0);_.N([_.h({value:!1,notify:!0}),_.A("design:type",Boolean)],DL.prototype,"isStartAtChecked",void 0);_.N([_.h(),_.A("design:type",Number)],DL.prototype,"currentTimeSecs",void 0);
_.N([_.h({computed:"computeTimeString(currentTimeSecs)"}),_.A("design:type",String)],DL.prototype,"timeString",void 0);_.N([_.h({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.A("design:type",String)],DL.prototype,"timeStringA11y",void 0);_.N([_.q6("#start-at-timestamp"),_.A("design:type",Object)],DL.prototype,"startAtTimestamp",void 0);_.N([_.fH({is:"yt-start-at-renderer",disableElementRegistration:!0})],DL);
_.m(DL,"yt-start-at-renderer",function(){if(SYq===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;qYs===void 0&&(qYs=document.createElement("template"));var Q=qYs;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);SYq=G}G=SYq;return G},{mode:2});var uhL;var Bz6;var JGo={};JGo.YtBindingExpressionsBehavior={identity:_.CW,msg:function(G,H){H=H===void 0?{}:H;return _.Zg(G,H,G)},
msgPlural:function(G,H){return _.QY(G,H)},
getMusicIconFromType:function(G){return _.bq(G)}};var tv6;var kSh;var D3t;var d3h=document.head,eXD=d3h.appendChild,nL6;if(D3t===void 0){var Vvm=document.createElement("template");_.f(Vvm,'\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>');D3t=Vvm}nL6=D3t;eXD.call(d3h,nL6.content);var dR=function(){var G=_.C.apply(this,arguments)||this;G.screenLayer=7;return G};
_.T(dR,_.C);dR.prototype.getScreenLayer=function(){return this.screenLayer};
dR.prototype.onTap=function(G){G&&G.detail&&(G.detail.x||G.detail.y)&&_.F9(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.L9(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(G=this.getScreenLayer(),_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:G}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.u4.Object.defineProperties(dR.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()}}});
dR.prototype.onTap=dR.prototype.onTap;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],dR.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],dR.prototype,"data",void 0);_.N([_.z("data.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],dR.prototype,"title",null);
_.N([_.z("data.serviceName"),_.A("design:type",String),_.A("design:paramtypes",[])],dR.prototype,"icon",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],dR.prototype,"onTap",null);_.N([_.fH({is:"yt-share-target-renderer",disableElementRegistration:!0})],dR);
_.m(dR,"yt-share-target-renderer",function(){if(kSh===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;tv6===void 0&&(tv6=document.createElement("template"));var Q=tv6;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);kSh=G}G=kSh;return G},{mode:2});var $3o;var Xi6;var eC=function(){var G=_.C.apply(this,arguments)||this;G.SHARE_TARGET_WIDTH=70;G.SHARE_TARGET_MARGIN_RIGHT=8;G.PAGE_SCROLL_SPEED=9;G.actionMap={"yt-share-panel-reset-action":"onReset_"};return G};
_.T(eC,_.C);_.g=eC.prototype;_.g.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.g.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.F9(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.F9(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.g.onReset_=function(){if(_.F9(this.hostElement).querySelector("#list")){var G=_.F9(this.hostElement).querySelector("#list");var H=_.F9(this.hostElement).querySelector("#list");var Z=H.offsetLeft,Q=H.offsetParent;Q||_.wlN(H)!="fixed"||(Q=_.N4(H).documentElement);if(Q){if(_.FW&&!_.GW(58)){var p=_.m4d(Q);Z+=p.left}else Number(_.Qtx)>=8&&!(Number(_.Qtx)>=9)&&(p=_.m4d(Q),Z-=p.left);H=_.ya4(Q)?Q.clientWidth-(Z+H.offsetWidth):Z}else H=Z;qea(G,H);this.updateScrollButtons_()}};
_.g.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.g.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.g.onScrollWheel_=function(G){G.stopPropagation();G.preventDefault();var H=INs(_.F9(this.hostElement).querySelector("#list"));G=Math.abs(G.deltaX)>Math.abs(G.deltaY)?G.deltaX:G.deltaY;qea(_.F9(this.hostElement).querySelector("#list"),H+G);this.updateScrollButtons_()};
_.g.smoothScrollByOnePage_=function(G){var H=_.F9(this.hostElement).querySelector("#list"),Z=(Math.floor(H.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,Q=INs(H),p=Z*(G?1:-1),l=this.PAGE_SCROLL_SPEED,q=this.updateScrollButtons_.bind(this),u=0,B;(function D(){u+=l;B=u/Z*2;qea(H,Q+p*(B<1?B*B:-B*B+4*B-2));u<Z?window.requestAnimationFrame(D):q()})()};
_.g.updateScrollButtons_=function(){var G=INs(_.F9(this.hostElement).querySelector("#list")),H=_.F9(this.hostElement).querySelector("#list").scrollWidth-_.F9(this.hostElement).querySelector("#list").clientWidth;_.F9(this.hostElement).querySelector("#scroll-button-back").hidden=G<=0;_.F9(this.hostElement).querySelector("#scroll-button-forward").hidden=G>=H};
eC.prototype.onScrollWheel_=eC.prototype.onScrollWheel_;eC.prototype.onDataChanged_=eC.prototype.onDataChanged_;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],eC.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(JGo.YtBindingExpressionsBehavior),_.A("design:type",Object)],eC.prototype,"ytBindingExpressionsBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],eC.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eC.prototype,"onDataChanged_",null);_.N([_.lq("wheel"),_.A("design:type",Function),_.A("design:paramtypes",[WheelEvent]),_.A("design:returntype")],eC.prototype,"onScrollWheel_",null);
_.N([_.fH({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],eC);
_.m(eC,"yt-third-party-share-target-section-renderer",function(){if(Xi6===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;$3o===void 0&&($3o=document.createElement("template"));var Q=$3o;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Xi6=G}G=Xi6;return G},{mode:2});var nf=function(){return _.C.apply(this,arguments)||this};
_.T(nf,_.C);nf.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"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],nf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nf.prototype,"data",void 0);_.N([_.fH({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],nf);
_.m(nf,"yt-third-party-network-section-renderer",function(){if(Bz6===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;uhL===void 0&&(uhL=document.createElement("template"));var Q=uhL;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Bz6=G}G=Bz6;return G},{mode:2});_.RX(_.y(function(G){return _.J("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.J("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.J(_.SP,{data:function(){return G.data().firstPartyItems}},{listItemViewModel:_.L5})))},"$i"),"first-party-network-section-view-model",{props:{data:_.b3}});var cGi=(0,_.WPt)(_.v6.share,{parentClickTrackingParamsSelector:function(G){return G.parentClickTrackingParams}});var Tzk=_.CM(["data:image/svg+xml;charset=UTF-8;base64,",""]),Vo=function(){var G=_.C.apply(this,arguments)||this;G.screenLayer=7;G.qrCodeEnabled=_.V("web_enable_sharing_qr_code");G.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return G};
_.T(Vo,_.C);_.g=Vo.prototype;_.g.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"}}}};
_.g.attached=function(){this.JSC$20387_scroller&&(this.JSC$20387_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20387_scroller.attached&&typeof this.JSC$20387_scroller.attached==="function"&&this.JSC$20387_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.g.onDataChanged=function(){var G=this,H;(H=this.data)!=null&&H.contents&&(this.hostElement.setAttribute("links-only","true"),_.HG(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.q2(this,function(){_.N5(G.hostElement,"yt-refit");G.focusSharePanelHeader()}))};
_.g.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.g.handleSetTimestamp=function(G){var H=this.shortUrl();G.isSet&&(H=_.yO(H,"t",G.timestamp));this.maybeRenderQrCode(H)};
_.g.shortUrl=function(){var G,H=(G=this.data)==null?void 0:G.contents;if(H)for(G=0;G<H.length;G++){var Z=void 0,Q=void 0;if((Z=H[G])==null?0:(Q=Z.thirdPartyNetworkSection)==null?0:Q.copyLinkContainer){var p=Q=Z=void 0;return(p=_.X((Z=H[G])==null?void 0:(Q=Z.thirdPartyNetworkSection)==null?void 0:Q.copyLinkContainer,rzq))==null?void 0:p.shortUrl}}};
_.g.maybeRenderQrCode=function(G){var H=this,Z,Q,p,l,q,u,B,t,D;return _.S(function(d){if(d.nextAddress==1){Z=_.F9(H.hostElement).querySelector("#qr-code");if(!H.qrCodeEnabled||!G)return Z&&(Z.style.display="none"),d.return();Q=_.aeb(_.tp().resolve(_.Gt),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});p=document.createElement("div");return typeof Q==="function"?(Q(p),d.jumpTo(2)):d.yield(Q,3)}d.nextAddress!=2&&(l=d.yieldResult,l(p));B=(q=p)==null?void 0:(u=q.firstChild)==null?void 0:u.firstChild;
t=document.createElement("img");D=_.gb2(Tzk,btoa(B.outerHTML));t.onload=function(){var e={canvas:Z,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:t},n=new vXh;PPt(n,G);rWs(n,!1,wVD(n));var c=n.modules,W=Object.assign({},t5a,e);c=structuredClone(c);e=c.length;var M,r=(M=W.canvas)!=null?M:document.createElement("canvas");M=W.cellSize;n=W.logo;var w,x=(w=W.logoSize)!=null?w:Math.floor(e/4);e%2!==x%2&&x++;var U=W.logoPadding,R=W.backgroundColor;w=e*M;var L=
W.width,H3=0;L&&(H3=W.padding,H3=Math.ceil(H3*w/(L-H3*2)),r.style.width=L+"px",r.style.height=L+"px");r.width!==w+H3*2&&(r.width=w+H3*2);r.height!==w+H3*2&&(r.height=w+H3*2);w=r.getContext("2d");W.autoClear&&w.clearRect(0,0,r.width,r.height);w.fillStyle=R;w.beginPath();w.roundRect(0,0,r.width,r.height,W.borderRadius);w.fill();w.save();w.translate(H3,H3);if(n)for(r=Math.floor(e-x)/2-U,U=Math.floor(e+x)/2+U,R=r;R<U;R++)for(L=r;L<U;L++)c[R][L]=!1;for(r=0;r<e;r++)for(U=0;U<e;U++)(r<7&&U<7||r<7&&U>=e-
7||r>=e-7&&U<7)&&(c[r][U]=!1);var qX;r=(qX=W.markerColor)!=null?qX:W.color;CPq(w,0,0,M,r);CPq(w,M*(e-7),0,M,r);CPq(w,0,M*(e-7),M,r);switch(W.cellStyle){case 0:qX=c;c=qX.length;r=W.cellSize;w.beginPath();for(U=0;U<c;U++)for(R=0;R<c;R++)qX[U][R]&&w.rect(U*r,R*r,r,r);w.fillStyle=W.color;w.fill();break;case 1:qX=c;c=qX.length;r=W.cellSize;U=r*W.relativeCircleSize;w.fillStyle=W.color;w.beginPath();for(W=0;W<c;W++)for(R=0;R<c;R++)qX[W][R]&&(w.beginPath(),w.ellipse((W+.5)*r,(R+.5)*r,U/2,U/2,0,0,2*Math.PI),
w.fill());w.fill();break;case 2:qX=c;c=qX.length;r=W.cellSize;w.fillStyle=W.color;W=[[1,1],[-1,1],[-1,-1],[1,-1]];w.beginPath();for(U=0;U<c;U++)for(R=0;R<c;R++)if(qX[U][R])w.roundRect(U*r,R*r,r,r,r/2),U+1<c&&qX[U+1][R]&&w.rect(U*r+r/2,R*r,r,r),R+1<c&&qX[U][R+1]&&w.rect(U*r,R*r+r/2,r,r);else{L=U*r+r/2;H3=R*r+r/2;for(var B3=0;B3<4;B3++){var fW=_.I(W[B3]),e2=fW.next().value;fW=fW.next().value;U+e2>=0&&U+e2<c&&R+fW>=0&&R+fW<c&&qX[U+e2][R]&&qX[U][R+fW]&&qX[U+e2][R+fW]&&(e2=B3*Math.PI/2,fW=r/2,w.moveTo(L+
fW*Math.cos(e2),H3+fW*Math.sin(e2)),w.arc(L,H3,r/2,e2,e2+Math.PI/2,!1),w.lineTo(L+fW*(Math.cos(e2)-Math.sin(e2)),H3+fW*(Math.cos(e2)+Math.sin(e2))),w.lineTo(L+fW*Math.cos(e2),H3+fW*Math.sin(e2)))}}w.fill()}n&&w.drawImage(n,(e-x)*M/2,(e-x)*M/2,x*M,x*M);w.restore();Z.style.removeProperty("display")};
t.src=_.iI(D);_.K0(d)})};
_.g.hasCommunityPostRenderer=function(){var G,H,Z,Q;return!!((G=this.data)==null?0:(H=G.header)==null?0:(Z=H.sharePanelHeaderRenderer)==null?0:(Q=Z.communityPost)==null?0:Q.communityPostSectionRenderer)};
_.g.onTapClose=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.g.getScreenLayer=function(){return this.screenLayer};
_.g.logSharePanelPage=function(){if(!_.V("enable_share_panel_navigation_logging_fix_on_web")){var G;if((G=this.data)!=null&&G.trackingParams){G=this.data.trackingParams;var H=this.parentClickTrackingParams;H=H?_.BT(H):void 0;var Z=_.gr();_.Te(Z,21760,H,{layer:7,parentLayer:0});Z.graftServerVe(G,void 0,7);_.mm().dispatch(_.Lo({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Vo.prototype.onDataChanged=Vo.prototype.onDataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Vo.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Vo.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Vo.prototype,"data",void 0);_.N([_.h({value:_.Zg("SBOX_INAPPROPRIATE_CANCEL")}),_.A("design:type",String)],Vo.prototype,"closeButtonAriaLabel",void 0);_.N([_.q6("yt-share-panel-header-renderer"),_.A("design:type",HTMLElement)],Vo.prototype,"header",void 0);_.N([_.h({selector:cGi.parentClickTrackingParamsSelector}),_.A("design:type",String)],Vo.prototype,"parentClickTrackingParams",void 0);_.N([_.h(),_.A("design:type",Object)],Vo.prototype,"qrCodeEnabled",void 0);
_.N([_.q6("#scroller"),_.A("design:type",Object)],Vo.prototype,"JSC$20387_scroller",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vo.prototype,"onDataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Vo);
_.m(Vo,"ytd-unified-share-panel-renderer",function(){if(b5m!==void 0)return b5m;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return b5m=G},{mode:1});var fcm;var $s=function(){var G=_.C.apply(this,arguments)||this;G.modernModal=!0;return G};
_.T($s,_.C);$s.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
$s.prototype.computeShouldHideOldButtons=function(){var G;return!((G=this.data)==null?0:G.button)};
_.u4.Object.defineProperties($s.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var G,H;return(G=this.data)==null?void 0:(H=G.button)==null?void 0:H.buttonRenderer}}});
_.N([_.h(),_.A("design:type",Object)],$s.prototype,"data",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],$s.prototype,"ytEventForwardingBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],$s.prototype,"modernModal",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],$s.prototype,"buttonRendererData",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],$s);
_.m($s,"ytd-modal-with-title-and-button-renderer",function(){if(fcm!==void 0)return fcm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fcm=G},{mode:1});var vLs;var X6=function(){return _.C.apply(this,arguments)||this};
_.T(X6,_.C);X6.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("page-changed",this.page))};
X6.prototype.pageChangedForBinding=X6.prototype.pageChangedForBinding;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],X6.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],X6.prototype,"page",void 0);_.N([_.gx("page"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],X6.prototype,"pageChangedForBinding",null);
_.N([_.O({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],X6);
_.m(X6,"ytd-account-item-section-header-renderer",function(){if(vLs!==void 0)return vLs;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vLs=G},{mode:1});var Wkm;var cC=function(){return _.C.apply(this,arguments)||this};
_.T(cC,_.C);cC.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"}}}};
cC.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],cC.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cC.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!1}),_.A("design:type",Function)],cC.prototype,"onAccountItemTap",void 0);
_.N([_.O({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],cC);
_.m(cC,"ytd-account-item-section-renderer",function(){if(Wkm!==void 0)return Wkm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Wkm=G},{mode:1});var zXL;var Kk6;var Mvs=function(){return _.C.apply(this,arguments)||this};
_.T(Mvs,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Mvs.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Mvs.prototype,"data",void 0);_.N([_.O({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Mvs);
_.m(Mvs,"ytd-accounts-dialog-header-renderer",function(){if(Kk6!==void 0)return Kk6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Kk6=G},{mode:1});var jnk;var TM=function(){return _.C.apply(this,arguments)||this};
_.T(TM,_.C);TM.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],TM.prototype,"data",void 0);_.N([_.O({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],TM);
_.m(TM,"ytd-google-account-header-renderer",function(){if(jnk!==void 0)return jnk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jnk=G},{mode:1});var ff=function(){return _.C.apply(this,arguments)||this};
_.T(ff,_.C);ff.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"}}}};
ff.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("page-changed",this.page))};
ff.prototype.pageChangedForBinding=ff.prototype.pageChangedForBinding;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ff.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ff.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ff.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],ff.prototype,"page",void 0);
_.N([_.gx("page"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ff.prototype,"pageChangedForBinding",null);_.N([_.O({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],ff);
_.xQ()(ff,"ytd-account-section-list-renderer",function(){if(zXL===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);zXL=G}G=zXL;return G},{allowedProps:["data"],
mode:1});var PBs;var vC=function(){var G=_.C.apply(this,arguments)||this;G.enableHandlesAccountMenuSwitcher=_.V("enable_handles_account_menu_switcher");return G};
_.T(vC,_.C);vC.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
vC.prototype.dataChanged=vC.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vC.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],vC.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.N([_.q6("#avatar"),_.A("design:type",Object)],vC.prototype,"avatar",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vC.prototype,"dataChanged",null);_.N([_.O({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],vC);
_.xQ()(vC,"ytd-active-account-header-renderer",function(){if(PBs===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);PBs=G}G=PBs;return G},{allowedProps:["data"],
mode:1});var rGA;var wiA;var WC=function(){return _.C.apply(this,arguments)||this};
_.T(WC,_.C);WC.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WC.prototype.onBackTap=function(){_.N5(this.hostElement,"yt-menu-back-tapped")};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],WC.prototype,"data",void 0);_.N([_.O({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],WC);
_.xQ()(WC,"ytd-simple-menu-header-renderer",function(){if(wiA===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);wiA=G}G=wiA;return G},{allowedProps:["data"],
mode:2});var hXq;var CBs=function(){return _.C.apply(this,arguments)||this};
_.T(CBs,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],CBs.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],CBs.prototype,"data",void 0);_.N([_.O({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],CBs);
_.m(CBs,"ytd-comment-video-thumbnail-header-renderer",function(){if(hXq!==void 0)return hXq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return hXq=G},{mode:1});var iS6;var OSq=function(){return _.C.apply(this,arguments)||this};
_.T(OSq,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],OSq.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],OSq.prototype,"data",void 0);_.N([_.O({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],OSq);
_.m(OSq,"ytd-abuse-type-selector-renderer",function(){if(iS6!==void 0)return iS6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return iS6=G},{mode:1});var acj;var yGj=(0,_.WPt)(_.v6.reportChannelAbuse,{isVideoIdSelectedSelector:function(G,H){return H in G.selectedVideoIds},
additionalContextSelector:function(G){return G.additionalContext},
impersonatedChannelUrlSelector:function(G){return G.impersonatedChannelUrl},
reportChannelAbuseSelector:function(G){return G}});var zM=function(){return _.C.apply(this,arguments)||this};
_.T(zM,_.C);zM.prototype.attached=function(){var G=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){G.additionalContextInput.focusTextInput()})};
zM.prototype.handleAdditionalContextChanged=function(){var G=this;_.rx(this,"ytd-report-channel-additional-context-update",function(){G.ytdReduxBehavior.dispatch(_.Lo({type:"ADDITIONAL_CONTEXT_UPDATED",payload:G.additionalContext}))},300)};
zM.prototype.updateAdditionalContextFromBinding=function(G){this.additionalContext=G.detail.value};
zM.prototype.handleAdditionalContextChanged=zM.prototype.handleAdditionalContextChanged;_.N([_.v(_.Up),_.A("design:type",Object)],zM.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",String)],zM.prototype,"additionalContext",void 0);_.N([_.h({selector:yGj.additionalContextSelector}),_.A("design:type",String)],zM.prototype,"additionalContextRedux",void 0);_.N([_.h(),_.A("design:type",Object)],zM.prototype,"data",void 0);
_.N([_.q6("yt-text-input-form-field-renderer"),_.A("design:type",Object)],zM.prototype,"additionalContextInput",void 0);_.N([_.gx("additionalContext"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zM.prototype,"handleAdditionalContextChanged",null);_.N([_.O({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],zM);
_.m(zM,"ytd-report-channel-modal-additional-context-renderer",function(){if(acj!==void 0)return acj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return acj=G},{mode:1});var oLj;var Kf=function(){var G=_.C.apply(this,arguments)||this;G.nextButtonDisabled=null;G.submitEndpoint=null;G.navigationEndpoint=null;G.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return G};
_.T(Kf,_.C);_.g=Kf.prototype;_.g.computeNextButtonData=function(G,H,Z){var Q={};H&&(Q.navigationEndpoint=H);Z&&(Q.serviceEndpoint=Z);G&&G.buttonRenderer&&_.oN.extend(Q,G.buttonRenderer);return Q};
_.g.handleReportChannelModalDisableNextButtonAction=function(G){this.setNextButtonIsDisabled(G)};
_.g.handleReportFormEndpointUpdateAction=function(G){this.setNextButtonIsDisabled(!!G.disableSubmitButton);this.resetEndpointData();G.submitEndpoint?this.submitEndpoint=G.submitEndpoint:G.submitNavigationEndpoint&&(this.navigationEndpoint=G.submitNavigationEndpoint)};
_.g.handleSignalActionSubmitForm=function(){var G,H=Object.keys(((G=this.reportChannelAbuseForm)==null?void 0:G.selectedVideoIds)||{}),Z;G=((Z=this.reportChannelAbuseForm)==null?void 0:Z.additionalContext)||"";var Q;Z=((Q=this.reportChannelAbuseForm)==null?void 0:Q.impersonatedChannelUrl)||"";var p;if((p=this.data)==null?0:p.submitEndpoint){H={impersonated_channel_url:Z,text:G,video_ids:H};var l;_.tp().resolve(_.Dk).resolveCommand((l=this.data)==null?void 0:l.submitEndpoint,{form:Object.assign({},
H,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.g.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.g.onYtServiceRequestError=function(G){this.setNextButtonIsDisabled(!1);_.jP(this.hostElement,G.detail.error.message)};
_.g.setNextButtonIsDisabled=function(G){this.set("data.nextButton.buttonRenderer.isDisabled",G)};
_.g.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Kf.prototype.onYtServiceRequestError=Kf.prototype.onYtServiceRequestError;Kf.prototype.onYtServiceRequestCompleted=Kf.prototype.onYtServiceRequestCompleted;_.N([_.h(),_.A("design:type",Object)],Kf.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Kf.prototype,"nextButtonDisabled",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Kf.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Kf.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kf.prototype,"submitEndpoint",void 0);_.N([_.h(),_.A("design:type",Object)],Kf.prototype,"navigationEndpoint",void 0);_.N([_.h({selector:yGj.reportChannelAbuseSelector}),_.A("design:type",Object)],Kf.prototype,"reportChannelAbuseForm",void 0);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Kf.prototype,"onYtServiceRequestCompleted",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Kf.prototype,"onYtServiceRequestError",null);_.N([_.O({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Kf);
_.m(Kf,"ytd-report-channel-modal-footer-renderer",function(){if(oLj!==void 0)return oLj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return oLj=G},{mode:1});var m3q;var MN=function(){var G=_.C.apply(this,arguments)||this;G.boundOnTapDismissButton=function(){G.closePopup()};
return G};
_.T(MN,_.C);MN.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
MN.prototype.handleDataChanged=function(){_.pT(this.hostElement)};
MN.prototype.closePopup=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
MN.prototype.handleDataChanged=MN.prototype.handleDataChanged;_.N([_.h(),_.A("design:type",Object)],MN.prototype,"boundOnTapDismissButton",void 0);_.N([_.h(),_.A("design:type",Object)],MN.prototype,"data",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],MN.prototype,"handleDataChanged",null);_.N([_.O({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],MN);
_.m(MN,"ytd-report-channel-modal-header-renderer",function(){if(m3q!==void 0)return m3q;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return m3q=G},{mode:1});var U3m;var jC=function(){var G=_.C.apply(this,arguments)||this;G.autoValidate=!1;G.invalid=!1;G.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return G};
_.T(jC,_.C);_.g=jC.prototype;_.g.attached=function(){var G=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){G.channelUrlInput.focusTextInput()})};
_.g.disableNextButton=function(G){_.AZ(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[G])};
_.g.handleImpersonatedChannelUrlChanged=function(){var G=this;this.disableNextButton(!0);this.invalid=!1;_.rx(this,"ytd-report-channel-impersonated-channel-update",function(){var H=G.impersonatedChannelUrl.trim();G.ytdReduxBehavior.dispatch(_.Lo({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:H}));var Z;((Z=G.data)==null?0:Z.submitEndpoint)&&H&&_.tp().resolve(_.Dk).resolveCommand(G.data.submitEndpoint,{form:{impersonated_channel_url:H,element:G.hostElement}})},500)};
_.g.handleModifyReportFormCommand=function(G){this.invalid=this.get("modifyReportFormCommand.action",G)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.g.updateInvalidFromBinding=function(G){this.invalid=G.detail.value};
_.g.updateImpersonatedChannelUrlFromBinding=function(G){this.impersonatedChannelUrl=G.detail.value};
jC.prototype.handleImpersonatedChannelUrlChanged=jC.prototype.handleImpersonatedChannelUrlChanged;_.N([_.v(_.Up),_.A("design:type",Object)],jC.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],jC.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],jC.prototype,"autoValidate",void 0);_.N([_.h(),_.A("design:type",Object)],jC.prototype,"invalid",void 0);
_.N([_.h(),_.A("design:type",String)],jC.prototype,"impersonatedChannelUrl",void 0);_.N([_.h({selector:yGj.impersonatedChannelUrlSelector}),_.A("design:type",String)],jC.prototype,"impersonatedChannelUrlRedux",void 0);_.N([_.h(),_.A("design:type",Object)],jC.prototype,"data",void 0);_.N([_.q6("#text-input"),_.A("design:type",Object)],jC.prototype,"channelUrlInput",void 0);
_.N([_.gx("impersonatedChannelUrl"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jC.prototype,"handleImpersonatedChannelUrlChanged",null);_.N([_.O({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],jC);
_.m(jC,"ytd-report-channel-modal-impersonation-renderer",function(){if(U3m!==void 0)return U3m;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return U3m=G},{mode:1});var RXk;var Nzk;var PC=function(){return _.C.apply(this,arguments)||this};
_.T(PC,_.C);PC.prototype.onCheckboxToggled=function(G){var H,Z,Q=(Z=_.X((H=this.data)==null?void 0:H.video,_.bN))==null?void 0:Z.videoId;Q&&this.ytdReduxBehavior.dispatch(G.target.checked?_.Lo({type:"VIDEO_SELECTED",payload:Q}):_.Lo({type:"VIDEO_UNSELECTED",payload:Q}))};
PC.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.u4.Object.defineProperties(PC.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var G,H=(G=this.data)==null?void 0:G.video;if(!H)return{};var Z;G=(Z=_.X(H,_.bN))==null?void 0:Z.navigationEndpoint;if(!G)return H;_.X(G==null?void 0:G.commandMetadata,_.HA)&&(_.X(G.commandMetadata,_.HA).ignoreNavigation=!0);return H}}});
_.N([_.h({reflectToAttribute:!0,selector:yGj.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.A("design:type",Boolean)],PC.prototype,"checked",void 0);_.N([_.h(),_.A("design:type",Object)],PC.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],PC.prototype,"video",null);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],PC.prototype,"ytdReduxBehavior",void 0);_.N([_.O({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],PC);
_.m(PC,"ytd-selectable-video-renderer",function(){if(Nzk!==void 0)return Nzk;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Nzk=G},{mode:1});var rR=function(){var G=_.C.apply(this,arguments)||this;G.monitorScroll=!0;return G};
_.T(rR,_.C);rR.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rR.prototype,"data",void 0);_.N([_.O({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],rR);
_.m(rR,"ytd-selectable-video-list-renderer",function(){if(RXk!==void 0)return RXk;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return RXk=G},{mode:1});var AGL;_.eQ("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var wR=function(){return _.C.apply(this,arguments)||this};
_.T(wR,_.C);wR.prototype.onChange=function(G){if(G=_.a_(G).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.V("kevlar_command_handler_migration_killswitch"))_.El(this.hostElement,G,this.hostElement);else{G=_.I(G);for(var H=G.next();!H.done;H=G.next())this.ytComponentBehavior.resolveCommand(H.value)}};
wR.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
wR.prototype.updateDataToggledFromBinding=function(G){this.set("data.toggled",G.detail.value)};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],wR.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wR.prototype,"data",void 0);_.N([_.h({computed:"isEnabled(data)"}),_.A("design:type",Boolean)],wR.prototype,"enabled",void 0);_.N([_.O({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],wR);
_.m(wR,"ytd-toggle-item-renderer",function(){if(AGL!==void 0)return AGL;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return AGL=G},{mode:1});var x38;var Lkj;var ELL;var hI=function(){var G=_.C.apply(this,arguments)||this;G.setVisible=!1;G.boundOnSubmitButtonClick=function(){G.onSubmitButtonClick()};
G.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return G};
_.T(hI,_.C);hI.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}}}}}};
hI.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
hI.prototype.onSubmitButtonClick=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&!_.V("enable_ytc_refunds_submit_form_signal_action")&&_.L9(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
hI.prototype.handleSignalActionSubmitForm=function(){var G;((G=this.data)==null?0:G.submitEndpoint)&&_.L9(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.u4.Object.defineProperties(hI.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.hiddenByDefault)&&!this.setVisible}}});
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],hI.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],hI.prototype,"setVisible",void 0);_.N([_.h(),_.A("design:type",Object)],hI.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],hI.prototype,"surveyFeedbackData",void 0);_.N([_.h(),_.A("design:type",Object)],hI.prototype,"boundOnSubmitButtonClick",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data","setVisible"),_.A("design:type",Object),_.A("design:paramtypes",[])],hI.prototype,"visibilityHidden",null);_.N([_.fH({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],hI);
_.m(hI,"yt-flow-footer-renderer",function(){if(ELL===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Lkj===void 0&&(Lkj=document.createElement("template"));var Q=Lkj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ELL=G}G=ELL;return G},{mode:2});var YYk=(0,_.WPt)(_.v6.ypc,{surveyFeedbackDataSelector:function(G){return G.surveyFeedbackData}});var Cf=function(){return _.C.apply(this,arguments)||this};
_.T(Cf,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Cf.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Cf.prototype,"data",void 0);_.N([_.h({selector:YYk.surveyFeedbackDataSelector}),_.A("design:type",Object)],Cf.prototype,"surveyFeedbackData",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Cf);
_.m(Cf,"ytd-flow-footer-renderer",function(){if(x38!==void 0)return x38;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return x38=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var Fkh;var bSs;var iH=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return G};
_.T(iH,_.C);_.g=iH.prototype;_.g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.nI("multiPageMenuSectionItems")}}};
_.g.handleHideEnclosingAction_=function(G){if(this.data&&this.data.items)for(var H=0;H<this.data.items.length;H++){var Z=this.data.items[H].notificationRenderer;if(Z&&Z.notificationId==G.hideEnclosingAction.notificationId){this.splice("data.items",H,1);_.AZ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.g.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.HG(this.hostElement,"hidden",!0)};
_.g.updateMenu_=function(G){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&G&&!G.doNotRefreshInbox){G=this.data.continuations;for(var H=0;H<G.length;H++)if(G[H].invalidationContinuationData){var Z=void 0;var Q=(Z=G[H].invalidationContinuationData)==null?void 0:Z.continuation;break}G=_.oN.clone(this.data.continuationUpdateEndpoint||null);G.continuation=Q;G.click_tracking_params=this.data.trackingParams;_.L9(this.hostElement,[G])}};
_.g.onServiceRequestCompleted_=function(G,H){if(this.data&&(G=H.actions)){H=0;for(var Z=G.length;H<Z;H++){var Q=_.X(G[H],_.jB_);if(!Q)break;if((Q.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||Q.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&Q.continuationItems&&this.data.items){var p=this.data.items.length-1;this.data.items[p].continuationItemRenderer&&(Q=["data.items",p,1].concat(Q.continuationItems),this.splice.apply(this,Q))}}}};
iH.prototype.onServiceRequestCompleted_=iH.prototype.onServiceRequestCompleted_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],iH.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],iH.prototype,"data",void 0);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],iH.prototype,"onServiceRequestCompleted_",null);_.N([_.fH({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],iH);
_.xQ()(iH,"yt-multi-page-menu-section-renderer",function(){if(bSs===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Fkh===void 0&&(Fkh=document.createElement("template"));var Q=Fkh;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);bSs=G}G=bSs;return G},{allowedProps:["data"],
mode:2});var GYt;var H_c;var O$=function(){return _.C.apply(this,arguments)||this};
_.T(O$,_.C);O$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.u4.Object.defineProperties(O$.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.progress)==null?0:this.data.progress*100}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],O$.prototype,"data",void 0);_.N([_.z("data.progress"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],O$.prototype,"showProgressBar",null);
_.N([_.z("data.progress"),_.A("design:type",Number),_.A("design:paramtypes",[])],O$.prototype,"progress",null);_.N([_.fH({is:"yt-flow-header-renderer",disableElementRegistration:!0})],O$);
_.m(O$,"yt-flow-header-renderer",function(){if(H_c===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;GYt===void 0&&(GYt=document.createElement("template"));var Q=GYt;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);H_c=G}G=H_c;return G},{mode:2});var shD;var Z_j;var a7=function(){return _.C.apply(this,arguments)||this};
_.T(a7,_.C);a7.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],a7.prototype,"data",void 0);_.N([_.fH({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],a7);
_.m(a7,"yt-post-confirmation-flow-step-renderer",function(){if(Z_j===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;shD===void 0&&(shD=document.createElement("template"));var Q=shD;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Z_j=G}G=Z_j;return G},{mode:2});var Qhq;var pck;var yo=function(){return _.C.apply(this,arguments)||this};
_.T(yo,_.C);
yo.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"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],yo.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],yo.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],yo.prototype,"data",void 0);_.N([_.fH({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],yo);
_.m(yo,"yt-refund-confirmation-flow-step-renderer",function(){if(pck===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Qhq===void 0&&(Qhq=document.createElement("template"));var Q=Qhq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);pck=G}G=pck;return G},{mode:2});var lrA=_.y(function(G){var H=G.data;return _.J("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.J("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.J(_.ib,{data:function(){return{thumbnails:[{url:H().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.J("div",{class:"profileBadgeViewModelContent"},_.J("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return H().badgeDesc}),_.J(_.k,{cond:function(){return H().badgeSubtitle},
then:function(){return _.J("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return H().badgeSubtitle})}})))},"aj");
lrA.idomCompat=!0;var g1t=_.y(function(G){var H=G.data;return _.J("yt-comment-interaction-view-model",{el:_.aX(_.$X(function(){return H().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.J("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return H().onTapA11yLabel},
"on:keydown":_.mLR(),tabindex:0},_.J("div",{class:"ytCommentInteractionViewModelHeader"},_.J("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return H().headerPrefix},' "',function(){return H().videoTitle}),_.J("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.J("div",{class:"ytCommentInteractionViewModelContent"},_.J("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return H().commentContent}),_.J("div",{class:"ytCommentInteractionViewModelChevron"},
_.J(_.ib,{data:function(){return{thumbnails:[{url:H().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"bj");
g1t.idomCompat=!0;var Ir8=_.y(function(G){var H=G.data;return _.J("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.J(_.SP,{data:function(){return H().avatar}},{avatarViewModel:_.m9}),_.J("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return H().channelName}))},"cj");
Ir8.idomCompat=!0;var J58=_.y(function(G){var H=G.data;G={};return _.J("yt-profile-info-view-model",{class:_.bb("ytProfileInfoViewModelHost",(G.ytProfileInfoViewModelWithVideoShelf=function(){return H().videosHorizontalShelf},G))},_.J(qcc,{profileInfo:H}),_.J(_.SP,{data:function(){return H().videosHorizontalShelf}},{horizontalShelfViewModel:function(Z){return _.J("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.J(_.bR,{data:Z.data}))}}),_.J(_.k,{cond:function(){return H().comments},
then:function(){return _.J(Scm,{profileInfo:H})}}),_.J(_.k,{cond:function(){return H().sharedSubscriptionsTitle},
then:function(){return _.J(_.k,{cond:function(){return H().subscriptionsAccessButtonCommand},
then:function(){return _.J(umm,{profileInfo:H})},
else:function(){return _.J(Bik,{profileInfo:H})}})}}))},"dj");
J58.idomCompat=!0;var Scm=_.y(function(G){var H=G.profileInfo;return _.J("div",{class:"ytProfileInfoViewModelActivity"},_.J("div",{class:"ytProfileInfoViewModelHeader"},_.J("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().commentsInteractionTitle})),_.J(_.SP,{data:function(){return H().comments}},{commentInteractionViewModel:function(Z){return _.J("div",{class:"ytProfileInfoViewModelActivity"},_.J(g1t,{data:Z.data}))}}))},"ej"),umm=_.y(function(G){var H=G.profileInfo;
return _.J("div",{class:"ytProfileInfoViewModelSubSection"},_.J("div",{class:"ytProfileInfoViewModelSubHeader"},_.J(_.S8,{command:function(){return H().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.J("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return H().sharedSubscriptionsTitle}),_.J("div",null,_.J(_.SP,{data:function(){return H().subscriptionsAccessButton}},{buttonViewModel:_.kg})))),_.J(tWq,{sharedSubscriptions:function(){var Z;
return((Z=H().sharedSubscriptions)==null?void 0:Z.slice(0,5))||[]}}))},"fj"),Bik=_.y(function(G){var H=G.profileInfo;
return _.J("div",{class:"ytProfileInfoViewModelSubSection"},_.J("div",{class:"ytProfileInfoViewModelSubHeader"},_.J("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().sharedSubscriptionsTitle})),_.J(tWq,{sharedSubscriptions:function(){var Z;
return((Z=H().sharedSubscriptions)==null?void 0:Z.slice(0,5))||[]}}))},"gj"),tWq=_.y(function(G){return _.J("div",{class:"ytProfileInfoViewModelSubs"},_.J(_.SP,{data:G.sharedSubscriptions},{sharedSubscriptionViewModel:function(H){return _.J("div",{class:"ytProfileInfoViewModelSub"},_.J(Ir8,{data:H.data}))}}))},"hj"),qcc=_.y(function(G){var H=G.profileInfo;
return _.J("div",{class:"ytProfileInfoViewModelActivity"},_.J(_.Cl,{each:function(){return[H().profileBadgeInfoYtWide,H().profileBadgeInfoChannelWide].filter(function(Z){return!!Z})},
keyBy:"INDEX"},function(Z){return _.J(_.kI,null,_.J("div",{class:"ytProfileInfoViewModelHeader"},_.J("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return Z().profileSectionTitle}),_.J("div",{class:"ytProfileInfoViewModelSectionDesc"},_.J("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var Q;
return(Q=Z().commentBadge)==null?void 0:Q.commentDesc}),_.J(_.k,{cond:function(){var Q;
return(Q=Z().commentBadge)==null?void 0:Q.blackHeartDesc},
then:function(){return _.J("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.J("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.J(_.ib,{data:function(){var Q;
return{thumbnails:[{url:(Q=Z().commentBadge)==null?void 0:Q.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.J("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var Q;return(Q=Z().commentBadge)==null?void 0:Q.blackHeartDesc}))),_.J("div",{class:"ytProfileInfoViewModelBadge"},_.J(_.Cl,{each:function(){return Z().badges||[]}},function(Q){return _.J(lrA,{data:Q})})))}))},"ij");var kYh=_.y(function(G){var H=G.data;var Z=function(){return H().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.J("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.J(_.SP,{data:function(){return H().profileIdentityInfo}},{profileIdentityInfoViewModel:function(Q){return _.J(_.pAm,{data:Q.data,
hideDivider:Z,isChannelInfoCard:Z})},
profileInfoViewModel:J58}),_.J(_.SP,{data:function(){return H().profileInfo}},{profileIdentityInfoViewModel:_.pAm,
profileInfoViewModel:J58}))},"jj");
kYh.idomCompat=!0;_.RX(kYh,"yt-profile-card-view-model",{props:{data:_.b3}});var o7=function(){var G=_.C.apply(this,arguments)||this;G.enableFocusFix=_.V("music_web_enable_focus_on_setting_menu_fix")&&_.YI("IS_MOBILE_WEB",!1);G.covered=!1;G.hideMenu=!1;G.isCommentNotificationOnProfileCard=!1;G.scrolledByTouch=!1;G.disableBackdropFilter=_.V("web_disable_backdrop_filter");G.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return G};
_.T(o7,_.C);_.g=o7.prototype;
_.g.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"}}}};
_.g.ready=function(){var G=this;this.JSC$20488_containerElement.addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.g.attributeChanged=function(G,H){G==="menu-style"&&_.AZ(this.hostElement,"yt-multi-page-menu-closed-action",[H])};
_.g.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.pH(this,this.focusOnStampFinished))};
_.g.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.pH(this,this.focusOnStampFinished))};
_.g.reset=function(){this.closeJobId&&(_.Ui.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.g.focusOnStampFinished=function(G){G.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.pH(this,this.focusOnStampFinished)),this.doFocus())};
_.g.doFocus=function(){var G=_.P__(this.sectionsElement);G.length&&G[0].focus()};
_.g.computeMenuStyle=function(G){return G?G.toLowerCase().replace(/_/g,"-"):""};
_.g.computeIsCommentNotificationOnProfileCard=function(G){return _.V("enable_profile_cards_on_comments")&&G.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.g.computeHideMenu=function(G,H){return G||!(!H||!H.showLoadingSpinner)};
_.g.onPopupClosed=function(){this.isPopUpOpen=!1;_.AZ(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.g.onPopupOpened=function(G,H){this.isPopUpOpen=!0;H.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.N5(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Lo({type:"CHANNEL_REPORT_RESET"})))};
_.g.onYtNavigate=function(G,H){this.shouldCloseOnNavigateEvent(H.endpoint)&&_.AZ(this.hostElement,"yt-close-all-popups-action")};
_.g.handleEndpoint=function(G){G=_.X(G,_.Nu);!this.isCommentNotificationOnProfileCard&&G&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20488_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.g.handleActions=function(G){for(var H=0,Z=G.length;H<Z;H++){var Q=_.X(G[H],Cxi);Q&&this.handleGetMultiPageMenuAction(Q);(Q=_.X(G[H],_.jB_))&&this.handleAppendContinuationItemsAction(Q)}};
_.g.onServiceRequestSentOrCompleted=function(G,H){G.detail&&G.detail.endpoint&&this.handleEndpoint(G.detail.endpoint);H.actions&&this.handleActions(H.actions)};
_.g.handleGetMultiPageMenuAction=function(G){var H=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.F9(this.submenuElement).appendChild(H);(G=G.menu.multiPageMenuRenderer)&&this.logSubmenu(G);H.data=G;H.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.g.handleAppendContinuationItemsAction=function(G){if(this.data&&G.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&G.continuationItems&&this.data.sections){var H=this.data.sections.length-1;this.data.sections[H].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),H--);if(this.data.sections[H].multiPageMenuNotificationSectionRenderer&&G.continuationItems){G=_.I(G==null?void 0:G.continuationItems);for(var Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,_.X(Z,qFa)){var Q=
void 0,p=void 0,l=void 0,q=void 0,u=void 0;((Q=this)==null?0:(p=Q.data)==null?0:(l=p.sections)==null?0:(q=l[H])==null?0:(u=q.multiPageMenuNotificationSectionRenderer)==null?0:u.items)&&this.push("data.sections."+H+".multiPageMenuNotificationSectionRenderer.items",Z)}else if(_.X(Z,_.$ow)||_.X(Z,_.Oz))this.push("data.sections",Z),H++}}};
_.g.logSubmenu=function(G){if(!_.V("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var H=this.ytRendererBehavior.getScreenLayer(),Z=_.$k(H),Q=_.Va(H);if((G=G.trackingParams)&&Z&&Q){var p=_.BT(G);_.V("combine_ve_grafts")?_.gr().graftServerVe(G,Q,H):_.je(Z,Q,p)}}};
_.g.emptySubmenuContainer=function(){for(var G=_.F9(this.submenuElement);G.firstChild;)G.removeChild(G.firstChild)};
_.g.onMenuBackTap=function(G){_.N5(this.hostElement,"yt-submenu-closed");G.stopPropagation()};
_.g.onSubmenuClosed=function(G){_.a_(G)!==this.hostElement&&(this.covered=!1,_.N5(this.hostElement,"yt-refit"),G.stopPropagation())};
_.g.onRetrieveLocation=function(G,H){H.hasComments&&(H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),G.stopPropagation())};
_.g.shouldCloseOnNavigateEvent=function(G){if(!G)return!0;if(_.X(G,_.Gpx)||_.X(G,_.HiR)||_.X(G,_.b2_)||_.X(G,_.Hx))return!1;var H;return((H=_.X(G==null?void 0:G.commandMetadata,_.HA))==null?0:H.ignoreNavigation)?!1:!0};
_.g.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.g.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.g.refitAfterRender=function(){var G=this;_.q2(this,function(){_.N5(G.hostElement,"yt-refit")})};
o7.prototype.refitAfterRender=o7.prototype.refitAfterRender;o7.prototype.onRetrieveLocation=o7.prototype.onRetrieveLocation;o7.prototype.onSubmenuClosed=o7.prototype.onSubmenuClosed;o7.prototype.onMenuBackTap=o7.prototype.onMenuBackTap;o7.prototype.onServiceRequestSentOrCompleted=o7.prototype.onServiceRequestSentOrCompleted;o7.prototype.onYtNavigate=o7.prototype.onYtNavigate;o7.prototype.onPopupOpened=o7.prototype.onPopupOpened;o7.prototype.onPopupClosed=o7.prototype.onPopupClosed;
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],o7.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],o7.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],o7.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],o7.prototype,"enableFocusFix",void 0);_.N([_.h(),_.A("design:type",Object)],o7.prototype,"covered",void 0);_.N([_.h({computed:"computeHideMenu(covered, data)"}),_.A("design:type",Object)],o7.prototype,"hideMenu",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.A("design:type",String)],o7.prototype,"menuStyle",void 0);
_.N([_.h({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.A("design:type",Object)],o7.prototype,"isCommentNotificationOnProfileCard",void 0);_.N([_.h(),_.A("design:type",Boolean)],o7.prototype,"isPopUpOpen",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],o7.prototype,"scrolledByTouch",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],o7.prototype,"disableBackdropFilter",void 0);
_.N([_.q6("#sections"),_.A("design:type",HTMLElement)],o7.prototype,"sectionsElement",void 0);_.N([_.q6("#spinner"),_.A("design:type",HTMLElement)],o7.prototype,"spinnerElement",void 0);_.N([_.q6("#header"),_.A("design:type",HTMLElement)],o7.prototype,"headerElement",void 0);_.N([_.q6("#container"),_.A("design:type",HTMLElement)],o7.prototype,"JSC$20488_containerElement",void 0);_.N([_.q6("#submenu"),_.A("design:type",HTMLElement)],o7.prototype,"submenuElement",void 0);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],o7.prototype,"onPopupClosed",null);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],o7.prototype,"onPopupOpened",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],o7.prototype,"onYtNavigate",null);
_.N([_.lq("yt-service-request-completed"),_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],o7.prototype,"onServiceRequestSentOrCompleted",null);_.N([_.lq("yt-menu-back-tapped"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],o7.prototype,"onMenuBackTap",null);
_.N([_.lq("yt-submenu-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],o7.prototype,"onSubmenuClosed",null);_.N([_.lq("yt-retrieve-location"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],o7.prototype,"onRetrieveLocation",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],o7.prototype,"refitAfterRender",null);
_.N([_.O({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],o7);
_.m(o7,"ytd-multi-page-menu-renderer",function(){if(rGA!==void 0)return rGA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rGA=G},{mode:1});var Dxs;var m7=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return G};
_.T(m7,_.C);_.g=m7.prototype;_.g.created=function(){this.showTooltips=!0};
_.g.computeAccessibility_=function(G){return this.get("accessibility.accessibilityData",G)||null};
_.g.onTap=function(){var G=_.xk(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(G&&G.length===1&&G[0])_.AZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var H;if((H=this.data)==null?0:H.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var Z;((Z=this.data)==null?0:Z.menuRequest)&&_.L9(this.hostElement,[this.data.menuRequest])}}};
_.g.handleTopbarMenuClosedAction=function(G){var H,Z;(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(G)===((H=this.data)==null?void 0:(Z=H.icon)==null?void 0:Z.iconType)&&this.toggleIconState(!1)};
_.g.toggleIconState=function(G){_.V("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=G)};
_.g.handleUpdateTopbarAvatarAction=function(G){var H;G=(H=_.X(G,KaA))==null?void 0:H.avatarUrl;var Z,Q;H=(Z=this.data)==null?void 0:(Q=Z.avatar)==null?void 0:Q.thumbnails;G&&H&&(Z={thumbnails:[Object.assign({},H[0],{url:G})]},this.set("data.avatar",Z))};
_.u4.Object.defineProperties(m7.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.F9(this.hostElement).querySelector("#button")}}});
m7.prototype.onTap=m7.prototype.onTap;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],m7.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],m7.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.e67.YtButtonBehavior),_.A("design:type",Object)],m7.prototype,"ytButtonBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],m7.prototype,"data",void 0);
_.N([_.q6("yt-icon-button#button"),_.A("design:type",Object)],m7.prototype,"iconButton",void 0);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],m7.prototype,"onTap",null);_.N([_.O({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],m7);
_.xQ()(m7,"ytd-topbar-menu-button-renderer",function(){if(Dxs===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);Dxs=G}G=Dxs;return G},{allowedProps:["data"],
mode:1});var dxa;var U$=function(){return _.C.apply(this,arguments)||this};
_.T(U$,_.C);U$.prototype.getSelected=function(){return this.reasons.selected};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],U$.prototype,"data",void 0);_.N([_.q6("#reasons"),_.A("design:type",Object)],U$.prototype,"reasons",void 0);_.N([_.O({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],U$);
_.m(U$,"ytd-ad-feedback-content",function(){if(dxa!==void 0)return dxa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return dxa=G},{mode:1});var e$o;var R7=function(){return _.C.apply(this,arguments)||this};
_.T(R7,_.C);_.g=R7.prototype;_.g.onPopupOpened=function(){_.AZ(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.g.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
_.g.computeCancelButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.cancelLabel}};
_.g.onConfirmTap=function(){var G=this.content.getSelected();G!==void 0&&(G=this.data.reasons[G].endpoint)&&(_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}}),_.AZ(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.g.sendFeedbackSubmitToastAction=function(){var G;(G=this.data)!=null&&G.completionMessage&&(G=_.Rq(this.data.completionMessage),_.AZ(this.hostElement,"yt-open-popup-action",[G,this]))};
_.g.onCancelTap=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
R7.prototype.onPopupOpened=R7.prototype.onPopupOpened;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],R7.prototype,"data",void 0);_.N([_.q6("#content"),_.A("design:type",Object)],R7.prototype,"content",void 0);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],R7.prototype,"onPopupOpened",null);
_.N([_.O({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],R7);
_.m(R7,"ytd-ad-feedback-renderer",function(){if(e$o!==void 0)return e$o;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return e$o=G},{mode:1});var n1D;var VWo=function(){return _.C.apply(this,arguments)||this};
_.T(VWo,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],VWo.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],VWo.prototype,"data",void 0);_.N([_.O({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],VWo);
_.m(VWo,"ytd-ad-info-dialog-content",function(){if(n1D!==void 0)return n1D;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return n1D=G},{mode:1});var $xL;var NN=function(){return _.C.apply(this,arguments)||this};
_.T(NN,_.C);NN.prototype.computeConfirmButton=function(G){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:G.confirmLabel}};
NN.prototype.onConfirmTap=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
NN.prototype.computeShouldShowTitle=function(){var G;return!((G=this.data)==null||!G.title)};
NN.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
NN.prototype.onPopupClosed=NN.prototype.onPopupClosed;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],NN.prototype,"data",void 0);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],NN.prototype,"onPopupClosed",null);_.N([_.O({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],NN);
_.m(NN,"ytd-ad-info-dialog-renderer",function(){if($xL!==void 0)return $xL;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return $xL=G},{mode:1});var Xci;var AI=function(){var G=_.C.apply(this,arguments)||this;G.actionButtonClass="action-button";G.dismissButtonId="dismiss-button";G.dialogDismiss=!0;return G};
_.T(AI,_.C);_.g=AI.prototype;_.g.computeInPlayer=function(G){return(G==null?void 0:G.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.g.computedLogo=function(){var G,H;return this.isDarkTheme()?(G=this.data)==null?void 0:G.logoDark:(H=this.data)==null?void 0:H.logo};
_.g.computedHeaderImage=function(){var G,H;return this.isDarkTheme()?(G=this.data)==null?void 0:G.headerImageDark:(H=this.data)==null?void 0:H.headerImage};
_.g.computeLogoIconId=function(){var G,H,Z,Q=(G=this.computedLogo())==null?void 0:(H=G.sources)==null?void 0:(Z=H[0])==null?void 0:Z.height;return Q&&Q%31===0?"logo-icon-with-padding":"logo-icon"};
_.g.computeLogoIconHeight=function(){var G,H,Z,Q=(G=this.computedLogo())==null?void 0:(H=G.sources)==null?void 0:(Z=H[0])==null?void 0:Z.height;return Q&&Q%31===0?"31":"24"};
_.g.onPopupClosed=function(){_.tp().resolve(_.Pc).dispose()};
_.g.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.g.onShow=function(){this.inPlayer&&_.p3(6);this.titleElement.focus()};
_.g.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var G=0;G<this.data.impressionEndpoints.length;G++){var H=_.X(this.data.impressionEndpoints[G],_.cT);H&&this.ytComponentBehavior.resolveCommand(H)}};
_.g.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.AZ(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.u4.Object.defineProperties(AI.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var G,H;return!((G=this.data)==null||!G.headerImageDark)&&!((H=this.data)==null||!H.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.secondaryButton)}}});
AI.prototype.onPopupClosed=AI.prototype.onPopupClosed;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],AI.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.xy.YtVisibilityBehavior),_.A("design:type",Object)],AI.prototype,"ytVisibilityBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],AI.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],AI.prototype,"actionButtonClass",void 0);_.N([_.h(),_.A("design:type",Object)],AI.prototype,"dismissButtonId",void 0);_.N([_.h(),_.A("design:type",Object)],AI.prototype,"dialogDismiss",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],AI.prototype,"hasHeaderImage",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],AI.prototype,"hasPremiumButton",null);
_.N([_.h({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.A("design:type",Boolean)],AI.prototype,"inPlayer",void 0);_.N([_.q6("#dismiss-button"),_.A("design:type",HTMLElement)],AI.prototype,"dismissButton",void 0);_.N([_.q6("#title"),_.A("design:type",HTMLElement)],AI.prototype,"titleElement",void 0);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],AI.prototype,"onPopupClosed",null);
_.N([_.O({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],AI);
_.m(AI,"ytd-enforcement-message-view-model",function(){if(Xci!==void 0)return Xci;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Xci=G},{mode:1});var c5D;var TiA;var xs=function(){var G=_.C.apply(this,arguments)||this;G.TEST_ONLY={immediateValidation:function(){G.immediateValidation()},
onValidationResponse:function(H){G.onValidationResponse(H)},
onGenerateHandleFromNameResponse:function(H){G.onGenerateHandleFromNameResponse(H)}};
return G};
_.T(xs,_.C);_.g=xs.prototype;_.g.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.g.validate=function(){this.immediateValidation()};
_.g.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.g.setHandleInputValue=function(G){this.handleDir=this.getHandleDir(G);this.handleInput.value=G;this.validationState={status:"PENDING"};this.immediateValidation()};
_.g.getHandleDir=function(G){var H=G===""&&!1;return(H=_.YlR.test.call(_.YlR,G))?"rtl":"ltr"};
_.g.onDataChanged=function(){var G,H;this.handleDir=this.getHandleDir((H=(G=this.data)==null?void 0:G.handle)!=null?H:"");var Z;this.validationState=((Z=this.data)==null?0:Z.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var Q;((Q=this.data)==null?0:Q.validateOnInit)&&this.immediateValidation()};
_.g.stopPropagation=function(G){G.stopPropagation()};
_.g.onInput=function(){var G;this.handleDir=this.getHandleDir((G=this.handleInput.value)!=null?G:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.g.onFocusout=function(G){this.handleInput.contains(G.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.g.delayedValidation=function(){var G,H;this.debouncedValidation((H=(G=this.data)==null?void 0:G.validationDelayMs)!=null?H:1E3)};
_.g.immediateValidation=function(){this.debouncedValidation(0)};
_.g.debouncedValidation=function(G){var H=this;_.rx(this,"debouncedValidation",function(){var Z,Q=H.staticValidation((Z=H.handleInput.value)!=null?Z:"");if(Q!==void 0)H.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:Q};else{var p;if((p=H.data)!=null&&p.validateChannelHandleCommand){H.validationState={status:"LOADING"};var l;H.ytComponentBehavior.resolveCommand(H.data.validateChannelHandleCommand,{form:{handle:(l=H.handleInput.value)!=null?l:""},commandController:{onSuccess:function(q,
u){H.onValidationResponse(u)},
onServerError:function(q,u){H.onValidationServerError(u)}}})}else H.handleUnexpectedValidationError(new _.C$("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",H.data))}},G)};
_.g.staticValidation=function(G){var H;if(((H=this.data)==null?void 0:H.channelHandleStaticValidationParams)!==void 0){H=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(G)&&H.validValueRegexpErrorMessage!==void 0)return H.validValueRegexpErrorMessage;if(H.minLength!==void 0&&G.length<H.minLength&&H.minLengthErrorMessage!==void 0)return H.minLengthErrorMessage;if(H.maxLength!==void 0&&G.length>H.maxLength&&H.maxLengthErrorMessage!==void 0)return H.maxLengthErrorMessage}};
_.g.onValidationResponse=function(G){var H=_.X(G.result,Moi);H===void 0?this.handleUnexpectedValidationError(new _.C$("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",G)):this.handleValidationResultRenderer(H)};
_.g.onValidationServerError=function(G){this.handleUnexpectedValidationError(new _.C$("ValidateChannelHandle request failed.",G))};
_.g.handleValidationResultRenderer=function(G){if(G.handle===void 0)this.handleUnexpectedValidationError(new _.C$("ChannelHandleValidationResultRenderer does not contain handle.",G));else if(G.handle===this.handleInput.value)switch(G.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:G.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:G.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.C$("Unrecognized ChannelHandleValidationResult",G));break;default:_.Lw(G.result)}};
_.g.handleUnexpectedValidationError=function(G){var H;this.validationState={status:"UNKNOWN",handle:(H=this.handleInput.value)!=null?H:""};_.Rp(G)};
_.g.stopEventPropagation=function(G){G.stopPropagation()};
_.g.updateHandleOnChannelNameInputChange=function(G){if(!this.wasEdited){var H,Z;this.debouncedGenerateHandleFromName(G,(Z=(H=this.data)==null?void 0:H.validationDelayMs)!=null?Z:1E3)}};
_.g.debouncedGenerateHandleFromName=function(G,H){var Z=this;_.rx(this,"debouncedGenerateHandleFromName",function(){var Q;(Q=Z.data)!=null&&Q.validateChannelHandleCommand?Z.ytComponentBehavior.resolveCommand(Z.data.validateChannelHandleCommand,{form:{name:G},commandController:{onSuccess:function(p,l){Z.onGenerateHandleFromNameResponse(l)},
onServerError:function(p,l){_.Rp(new _.C$("Error calling GenerateHandleFromName",l))}}}):_.Rp(new _.C$("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",Z.data))},H)};
_.g.onGenerateHandleFromNameResponse=function(G){this.wasEdited||((G=_.X(G.result,jkL))?this.setHandleInputValue(G.handle):_.Rp(new _.C$("Invalid results when generate handle from name")))};
_.u4.Object.defineProperties(xs.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var G;if(G=this.validationState)G=this.validationState,G=G.status==="OK"||G.status==="UNKNOWN";if(G)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var G;if(((G=this.validationState)==null?void 0:G.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 G,H=(G=this.channelHandleEntity)==null?void 0:G.handleEdit;this.handleDir=this.getHandleDir(H!=null?H:"");return H}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var G,H;if(((G=this.data)==null?void 0:(H=G.channelHandleStaticValidationParams)==null?void 0:H.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
xs.prototype.stopEventPropagation=xs.prototype.stopEventPropagation;xs.prototype.onDataChanged=xs.prototype.onDataChanged;xs.prototype.applyHandleEdit=xs.prototype.applyHandleEdit;xs.prototype.onValueChanged=xs.prototype.onValueChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],xs.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],xs.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xs.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Boolean)],xs.prototype,"wasEdited",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],xs.prototype,"handleDir",void 0);_.N([_.q6("#handle-input"),_.A("design:type",Object)],xs.prototype,"handleInput",void 0);_.N([_.h(),_.z("validationState"),_.A("design:type",Object),_.A("design:paramtypes",[])],xs.prototype,"value",null);
_.N([_.gx("value"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xs.prototype,"onValueChanged",null);_.N([_.z("validationState"),_.A("design:type",Object),_.A("design:paramtypes",[])],xs.prototype,"errorIndicator",null);_.N([_.h({reflectToAttribute:!0}),_.z("errorIndicator"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],xs.prototype,"borderErrorIndicator",null);
_.N([_.h({selectorArgs:["data.channelHandleEntityKey"],selector:function(G,H){return _.Hv(G.entities,"channelHandle",H)}}),
_.A("design:type",Object)],xs.prototype,"channelHandleEntity",void 0);_.N([_.z("channelHandleEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],xs.prototype,"handleEdit",null);_.N([_.gx("handleEdit"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xs.prototype,"applyHandleEdit",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xs.prototype,"onDataChanged",null);
_.N([_.z("data.channelHandleStaticValidationParams.validValueRegexp"),_.A("design:type",Object),_.A("design:paramtypes",[])],xs.prototype,"validValueRegexp",null);_.N([_.lq("yt-service-request-sent"),_.lq("yt-service-request-completed"),_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],xs.prototype,"stopEventPropagation",null);_.N([_.O({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],xs);
_.m(xs,"ytd-channel-handle-input-renderer",function(){if(TiA!==void 0)return TiA;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return TiA=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var Lf=function(){var G=_.C.apply(this,arguments)||this;G.data=null;G.errorMessage=null;G.isLoading=!0;G.hideContainer=!1;G.enableNewChannelCreationOnIdForAll=_.V("enable_new_channel_creation_for_id4all");G.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"};G.testOnly={setErrorMessage:function(H){G.resetErrorState();
G.setErrorState(H)}};
return G};
_.T(Lf,_.C);_.g=Lf.prototype;_.g.created=function(){this.logScreenVe()};
_.g.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")};
_.g.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var G;((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.set("errorMessage",_.aq(this.zeroStepErrorMessageEntity.value))};
_.g.onCreateTap=function(){var G=this;if(this.data&&this.data.channelCreationEndpoint){var H,Z;if(!((H=this.data.createChannelButton)==null?0:(Z=H.buttonRenderer)==null?0:Z.isDisabled)){var Q;if((Q=this.nameInput)!=null&&Q.value){this.setLoadingState();var p,l;H=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(p=this.handleInput)==null?void 0:p.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((l=this.handleInput)==null?void 0:l.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:H,commandController:{onSuccess:function(q,u){G.onChannelCreationEndpointSuccess(u);G.obakeImageSource&&_.yR("channelCreatedWithObakeImage",{imageSourceType:G.obakeImageSource})},
onServerError:function(){G.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.g.endpointRequiresServiceRequestAction=function(G){return!!_.X(G,_.nM)||!!_.X(G,KaA)};
_.g.isNavigateAction=function(G){var H;return!!_.X(G,_.jI)||!!_.X((H=_.X(G,wbs))==null?void 0:H.command,_.jI)};
_.g.isPlaylistAction=function(G){return!!_.X(G,_.A$)||!!_.X(G,_.Ge)};
_.g.onChannelCreationEndpointSuccess=function(G){if(G.createChannelError){var H;this.setErrorState((H=G.createChannelError)==null?void 0:H.errorMessage);this.handleInput&&this.handleInput.validate()}else{G.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(G.navigationEndpoint);if(G.actions){H=_.I(G.actions);for(var Z=H.next();!Z.done;Z=H.next())if(Z=Z.value,this.endpointRequiresServiceRequestAction(Z)&&this.ytComponentBehavior.resolveCommand(Z),this.isNavigateAction(Z)){var Q=void 0;Z=_.X((Q=
_.X(Z,wbs))==null?void 0:Q.command,_.jI);Q=void 0;this.isPlaylistAction((Q=Z)==null?void 0:Q.endpoint)&&(_.AZ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),Q=void 0,this.ytComponentBehavior.resolveCommand((Q=Z)==null?void 0:Q.endpoint))}}G.actions&&G.actions.some(function(p){var l;return _.X(p,_.jI)||_.X((l=_.X(p,wbs))==null?void 0:l.command,_.jI)})||_.AZ(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.g.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.g.onCancelTap=function(){var G,H,Z;if(!((G=this.data)==null?0:(H=G.cancelButton)==null?0:(Z=H.buttonRenderer)==null?0:Z.isDisabled)){var Q,p,l;G=(Q=this.data)==null?void 0:(p=Q.cancelButton)==null?void 0:(l=p.buttonRenderer)==null?void 0:l.command;if(!G||!_.X(G,_.TDU)){var q;this.nameInput&&((q=this.data)==null?0:q.name)&&(this.nameInput.value=this.data.name);var u;this.handleInput&&((u=this.data)==null?0:u.channelHandleInput)&&(this.handleInput.data=_.X(this.data.channelHandleInput,Pxs));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.g.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.g.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.g.onClearProfilePhotoTap=function(){var G,H,Z;((G=this.data)==null?0:(H=G.clearProfilePhotoButton)==null?0:(Z=H.buttonRenderer)==null?0:Z.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.g.onEditAvatarTap=function(){var G,H,Z;((G=this.data)==null?0:(H=G.editAvatarButton)==null?0:(Z=H.buttonRenderer)==null?0:Z.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.g.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)};
_.g.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var G;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((G=this.data)==null?0:G.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.g.setErrorState=function(G){this.resetErrorState();if(G)this.set("errorMessage",G);else{var H;if((H=this.zeroStepErrorMessageEntity)==null?0:H.value)this.set("errorMessage",_.aq(this.zeroStepErrorMessageEntity.value));else{var Z;((Z=this.data)==null?0:Z.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.g.fetchImageBlobWithAlr=function(G,H){H=H===void 0?5:H;var Z=this,Q,p,l,q,u;return _.S(function(B){switch(B.nextAddress){case 1:return B.yield(fetch(G,{method:"GET",mode:"cors"}),2);case 2:Q=B.yieldResult;if(Q.ok){B.jumpTo(3);break}if(H===0)throw Error();p=Z.addJitter(Math.pow(2,5-H));return B.yield(new Promise(function(t){setTimeout(t,p*1E3)}),4);
case 4:return B.return(Z.fetchImageBlobWithAlr(G,H-1));case 3:if(!Q.headers.get("content-type").split(";").some(function(t){return t.trim()==="text/plain"})){B.jumpTo(5);
break}l=Z;q=l.fetchImageBlobWithAlr;return B.yield(Q.text(),6);case 6:return B.return(q.call(l,B.yieldResult,H-1));case 5:return B.yield(Q.blob(),7);case 7:return u=B.yieldResult,B.return(u)}})};
_.g.addJitter=function(G){var H=G*.3*Math.random();Math.random()>.5&&(H*=-1);return G+H};
_.g.openProfilePicturePicker=function(){var G=this,H,Z,Q,p,l,q;return _.S(function(u){if(u.nextAddress==1){H=G.data.scottyUploadUrl;if(!H)return u.return();Z=document.documentElement.hasAttribute("dark");Q=document.body.style.colorScheme;Z&&(document.body.style.colorScheme="dark");p=TUc(fDq(cP8(Dzt(Z?"dark":"light")),function(B){var t,D,d,e,n;return _.S(function(c){if(c.nextAddress==1)return t=_.yO(mz8(new Tc(B.photoUrl,!1)).build(),"alr","yes"),G.obakeImageSource=G.pictureChangeSourceToObakeImageSourceType(B.photoSource),
_.XV(c,2),G.setLoadingState(),c.yield(G.fetchImageBlobWithAlr(t),4);if(c.nextAddress!=2)return D=c.yieldResult,d=new FileReader,d.addEventListener("load",function(){var W,M,r,w,x,U;return _.S(function(R){if(R.nextAddress==1){if(D.size>15728640)return G.setErrorState((W=G.data)==null?void 0:W.imageSizeErrorMessage),_.Rp(Error("Gl")),R.return();if(!d.result)return G.setErrorState((M=G.data)==null?void 0:M.genericImageLoadErrorMessage),_.Rp(Error("Hl")),R.return();r=d.result;_.XV(R,2);return R.yield(yBh(D,
H),4)}if(R.nextAddress!=2)return w=R.yieldResult,G.handleImageUpdatedAction(r,w),G.resetErrorState(),_.Za(R,0);x=_.Wg(R);G.setErrorState((U=G.data)==null?void 0:U.uploadErrorMessage);if(x instanceof Error)_.me(x);else{var L=new _.C$(JSON.stringify(x));_.me(L)}_.K0(R)})}),d.readAsDataURL(D),_.Za(c,0);
e=_.Wg(c);G.setErrorState((n=G.data)==null?void 0:n.genericImageLoadErrorMessage);e instanceof Error?_.me(e):_.UN(new _.C$(JSON.stringify(e)));_.K0(c)})}),function(){G.hideContainer=!1;
document.body.style.colorScheme=Q});
_.XV(u,2);return((l=G.data)==null?0:l.shouldViewChannelCreationFormForSupex)?u.yield(p.openPicker("profile-picture/art-selection"),5):u.yield(p.openPicker(),5)}if(u.nextAddress!=2)return _.Za(u,0);_.Wg(u);G.setErrorState((q=G.data)==null?void 0:q.selectImageErrorMessage);_.K0(u)})};
_.g.pictureChangeSourceToObakeImageSourceType=function(G){switch(G){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.g.logScreenVe=function(){_.Te(_.gr(),124448)};
_.g.graftServerVe=function(){var G=_.Va(),H,Z,Q=(H=this.data)==null?void 0:(Z=H.loggingDirectives)==null?void 0:Z.trackingParams;Q&&G&&(this.channelCreationFormVe=_.gr().graftServerVe(Q,G),G={visualElement:this.channelCreationFormVe},_.Qw().reportShown(G))};
_.g.isNameChanged=function(G){var H;return((H=this.data)==null?void 0:H.name)!==G};
_.g.isHandleChanged=function(G){var H,Z=_.X((H=this.data)==null?void 0:H.channelHandleInput,Pxs);return Z&&G?Z.handle!==G:!1};
_.g.handleImageUpdatedAction=function(G,H){this.hideContainer=!1;this.previewDataUrl=G;this.encryptedBlobId=H};
_.g.handleImageSelectionErrorAction=function(G){this.hideContainer=!1;this.setErrorState(G)};
_.g.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.g.showContainer=function(){this.hideContainer=!1};
_.g.maybeWipeZeroStepErrorMessage=function(){var G,H=(G=this.data)==null?void 0:G.zeroStepErrorMessageEntityKey,Z;H&&((Z=this.zeroStepErrorMessageEntity)==null?0:Z.value)&&this.ytdReduxBehavior.dispatch(_.uP("stringEntity",H,{key:H,value:""}))};
_.u4.Object.defineProperties(Lf.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 G;return((G=this.photoThumbnail)==null?0:G.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 G;return!((G=this.data)==null||!G.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.descriptionInfo}}});
Lf.prototype.dataChanged=Lf.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Lf.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Lf.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Lf.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Lf.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Lf.prototype,"errorMessage",void 0);
_.N([_.h(),_.A("design:type",Object)],Lf.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",String)],Lf.prototype,"previewDataUrl",void 0);_.N([_.h(),_.A("design:type",Number)],Lf.prototype,"obakeImageSource",void 0);_.N([_.h(),_.A("design:type",Object)],Lf.prototype,"hideContainer",void 0);_.N([_.q6("#title-input"),_.A("design:type",Object)],Lf.prototype,"nameInput",void 0);_.N([_.q6("#handle-input"),_.A("design:type",Object)],Lf.prototype,"handleInput",void 0);
_.N([_.h(),_.A("design:type",Boolean)],Lf.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.N([_.h({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.g2f}),_.A("design:type",Object)],Lf.prototype,"zeroStepErrorMessageEntity",void 0);_.N([_.z("data","data.isDefaultProfilePhoto","previewDataUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lf.prototype,"photoThumbnail",null);
_.N([_.z("data","data.isDefaultProfilePhoto","photoThumbnail"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lf.prototype,"userSetPhotoThumbnailUrl",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lf.prototype,"hideProfilePhotoButtonLayer",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Lf.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.N([_.Jv("data","zeroStepErrorMessageEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lf.prototype,"dataChanged",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.descriptionInfo","zeroStepErrorMessageEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],Lf.prototype,"description",null);_.N([_.O({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Lf);
_.m(Lf,"ytd-channel-creation-dialog-renderer",function(){if(c5D!==void 0)return c5D;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return c5D=G},{mode:1});var frj;var E$=function(){var G=_.C.apply(this,arguments)||this;G.isLoading=!1;G.isDisabled=!1;return G};
_.T(E$,_.C);E$.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
E$.prototype.updateDisabled=function(){var G;this.isDisabled=this.isLoading||((G=this.handleInput)==null?void 0:G.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
E$.prototype.onSaveClick=function(){var G=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var H;((H=this.data)==null?void 0:H.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 Z;if((Z=G.data)==null?0:Z.nextEndpoint){var Q;G.ytComponentBehavior.resolveCommand((Q=G.data)==null?void 0:Q.nextEndpoint)}else G.isLoading=
!1,G.closeDialog()},
onServerError:function(){G.isLoading=!1;G.handleInput.validate();var Z;G.errorMessage=(Z=G.data)==null?void 0:Z.errorMessage}}}))}};
E$.prototype.closeDialog=function(){_.AZ(this.hostElement,"yt-close-popup-action",[this.is])};
E$.prototype.updateDisabled=E$.prototype.updateDisabled;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],E$.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],E$.prototype,"data",void 0);_.N([_.q6("#handle-input"),_.A("design:type",Object)],E$.prototype,"handleInput",void 0);_.N([_.gx("isLoading"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],E$.prototype,"updateDisabled",null);
_.N([_.O({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],E$);
_.m(E$,"ytd-channel-handle-edit-dialog-renderer",function(){if(frj!==void 0)return frj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return frj=G},{mode:1});var v1s;var Ys=function(){return _.C.apply(this,arguments)||this};
_.T(Ys,_.C);Ys.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ys.prototype,"data",void 0);_.N([_.O({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Ys);
_.m(Ys,"ytd-channel-switcher-footer-renderer",function(){if(v1s!==void 0)return v1s;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return v1s=G},{mode:1});var WxL;var z$s;var F6=function(){return _.C.apply(this,arguments)||this};
_.T(F6,_.C);F6.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
F6.prototype.onIronChange=F6.prototype.onIronChange;_.N([_.h(),_.A("design:type",Object)],F6.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!1}),_.A("design:type",Function)],F6.prototype,"onDontAskAgainChanged",void 0);_.N([_.q6("#checkbox"),_.A("design:type",Object)],F6.prototype,"checkbox",void 0);_.N([_.lq("iron-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],F6.prototype,"onIronChange",null);
_.N([_.O({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],F6);
_.m(F6,"ytd-identity-prompt-footer-renderer",function(){if(z$s!==void 0)return z$s;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return z$s=G},{mode:1});var bH=function(){var G=_.C.apply(this,arguments)||this;G.dontAskAgain=!1;G.showPopup=!1;G.boundDontAskAgainChanged=function(H){G.dontAskAgainChanged(H)};
G.boundOnAccountItemTap=function(H){G.onAccountItemTap(H)};
return G};
_.T(bH,_.C);_.g=bH.prototype;
_.g.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]]"}}}}}};
_.g.ready=function(){var G=this;_.F9(this.hostElement).querySelector("#container").addEventListener("scroll",function(){G.ytRendererBehavior.markDirty()})};
_.g.dontAskAgainChanged=function(G){this.dontAskAgain=G};
_.g.onAccountItemTap=function(G){if(G){var H={};this.dontAskAgain&&(H={dont_ask_again:this.dontAskAgain});_.zz(G,H)}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.g.redirectOnlyAccount=function(G){G.sections&&G.sections.length>0&&(G=_.X(G.sections[0],_.dO4),(G==null?0:G.contents)&&(G==null?void 0:G.contents.length)<=1?(G=_.p$(window.location.href),(G==null?0:G.next)&&_.Rv3(G.next)?_.zz(G.next):_.zz("/")):this.showPopup=!0)};
bH.prototype.dataChanged=bH.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bH.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!1}),_.A("design:type",Object)],bH.prototype,"dontAskAgain",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],bH.prototype,"showPopup",void 0);_.N([_.h({reflectToAttribute:!1}),_.A("design:type",Object)],bH.prototype,"boundDontAskAgainChanged",void 0);_.N([_.h({reflectToAttribute:!1}),_.A("design:type",Object)],bH.prototype,"boundOnAccountItemTap",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],bH.prototype,"dataChanged",null);
_.N([_.O({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],bH);
_.m(bH,"ytd-channel-switcher-renderer",function(){if(WxL!==void 0)return WxL;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WxL=G},{mode:1});var Kxc;var Gl=function(){return _.C.apply(this,arguments)||this};
_.T(Gl,_.C);_.u4.Object.defineProperties(Gl.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.N([_.h(),_.A("design:type",Object)],Gl.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],Gl.prototype,"steps",null);_.N([_.O({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Gl);
_.m(Gl,"ytd-channel-transfer-stepper-renderer",function(){if(Kxc!==void 0)return Kxc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Kxc=G},{mode:1});var MWq;var Hu=function(){var G=_.C.apply(this,arguments)||this;G.data=null;G.isError=!1;G.isLoading=!1;return G};
_.T(Hu,_.C);_.g=Hu.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.g.computeProfileName=function(G){return G?G.givenNameValue+" "+G.familyNameValue:""};
_.g.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)};
_.g.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)};
Hu.prototype.onYtServiceRequestError=Hu.prototype.onYtServiceRequestError;Hu.prototype.onYtServiceRequestSent=Hu.prototype.onYtServiceRequestSent;Hu.prototype.dataChanged=Hu.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Hu.prototype,"data",void 0);
_.N([_.h({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.A("design:type",String)],Hu.prototype,"profileName",void 0);_.N([_.h(),_.A("design:type",Object)],Hu.prototype,"isError",void 0);_.N([_.h(),_.A("design:type",Object)],Hu.prototype,"isLoading",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Hu.prototype,"dataChanged",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],Hu.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],Hu.prototype,"onYtServiceRequestError",null);_.N([_.O({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Hu);
_.m(Hu,"ytd-channel-warm-welcome-cont-renderer",function(){if(MWq!==void 0)return MWq;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return MWq=G},{mode:1});var jhi;var sk=function(){var G=_.C.apply(this,arguments)||this;G.data=null;return G};
_.T(sk,_.C);sk.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sk.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sk.prototype,"data",void 0);_.N([_.O({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],sk);
_.m(sk,"ytd-channel-warm-welcome-renderer",function(){if(jhi!==void 0)return jhi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return jhi=G},{mode:1});var PFL;var Z4=function(){return _.C.apply(this,arguments)||this};
_.T(Z4,_.C);_.u4.Object.defineProperties(Z4.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.authorThumbnail)||{}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Z4.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Z4.prototype,"thumbnailDetails",null);_.N([_.O({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Z4);
_.m(Z4,"ytd-comment-preview-renderer",function(){if(PFL!==void 0)return PFL;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return PFL=G},{mode:1});var r5o;var Qd=function(){return _.C.apply(this,arguments)||this};
_.T(Qd,_.C);Qd.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u4.Object.defineProperties(Qd.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.submitButton}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Qd.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Qd.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Qd.prototype,"submitButton",null);_.N([_.O({is:"ytd-notice-renderer",disableElementRegistration:!0})],Qd);
_.m(Qd,"ytd-notice-renderer",function(){if(r5o!==void 0)return r5o;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return r5o=G},{mode:1});var wcj;var pa=function(){return _.C.apply(this,arguments)||this};
_.T(pa,_.C);pa.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],pa.prototype,"data",void 0);_.N([_.O({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],pa);
_.m(pa,"ytd-preview-comment-dialog-content",function(){if(wcj!==void 0)return wcj;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return wcj=G},{mode:1});var h$s;var lw=function(){return _.C.apply(this,arguments)||this};
_.T(lw,_.C);lw.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
lw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lw.prototype,"data",void 0);_.N([_.O({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],lw);
_.m(lw,"ytd-preview-comment-dialog-renderer",function(){if(h$s!==void 0)return h$s;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return h$s=G},{mode:1});var CFD;var i_8=_.V("web_button_rework")&&_.YI("BUTTON_REWORK")||_.V("web_button_rework_with_live"),gE=function(){var G=_.C.apply(this,arguments)||this;G.closeLabel=_.Zg("CLOSE");G.selectedAmountIndex=1;G.privacyCheckboxValue=!1;G.useAmsterdamStyle=i_8;G.amountPlaceholderIndex=-1;return G};
_.T(gE,_.C);_.g=gE.prototype;_.g.onAmountClick=function(G){this.selectedAmountIndex=_.F9(this.hostElement).querySelector("#amounts").indexForElement(G.currentTarget)};
_.g.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.AZ(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.g.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.AZ(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.AZ(this.hostElement,"yt-close-popup-action",[this.is]);var G;(G=_.UO())==null||G.getPlayerPromise().then(function(H){H.pauseVideo()})}};
_.g.donationCallback=function(G){G.success?(this.hostElement.hasAttribute("live-chat")&&G.response&&G.response.data&&G.response.data.actions&&_.AZ(this.hostElement,"yt-live-chat-open-popup",[G.response.data.actions[0]]),_.AZ(this.hostElement,"yt-close-popup-action",[this.is]),_.AZ(this.hostElement,"yt-live-chat-close-buy-flow")):G.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(G.errorMessageRenderer)};
_.g.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.F9(this.hostElement).querySelector("#custom-amount-input").focus()};
_.g.updateConfirmationDialogTextWithAmount=function(G){var H=this.getConfirmDialogRuns();H&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(H),"text"],this.getFormattedAmount(G))};
_.g.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.g.getAmountPlaceholderIndex=function(G){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=G.findIndex(function(H){return H.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.g.getFormattedAmount=function(G){var H;return(new _.wc(4,((H=this.data)==null?void 0:H.currencyCode)||"")).format(G)};
_.g.isAmountValid=function(G){if(G==="")return!1;G=Number(G)*1E6;var H=this.get("minAmountMicros",this.data),Z=this.get("maxAmountMicros",this.data);return H&&G<H||Z&&G>Z?!1:!0};
_.g.setInputError=function(){this.shouldShowValidationError?_.F9(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.F9(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.g.setInitialCheckboxValue=function(){var G;this.privacyCheckboxValue=!((G=this.data)==null||!G.privacyCheckboxInitialState)};
_.g.updateCustomAmountInputFromBinding=function(G){this.customAmountInput=G.detail.value};
_.g.updatePrivacyCheckboxValueFromBinding=function(G){this.privacyCheckboxValue=G.detail.value};
_.u4.Object.defineProperties(gE.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var G=this,H,Z;return((H=this.data)==null?void 0:(Z=H.suggestedAmounts)==null?void 0:Z.map(function(Q,p){return{buttonRenderer:{style:G.selectedAmountIndex===p?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:Q.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 G;return!((G=this.data)==null||!G.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 G=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(G&&this.amountMicros!==null)return Object.assign({},G,{ypcGetCartEndpoint:Object.assign({},G.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 G=this.get("confirmLargeAmount",this.data);if(G&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),G}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var G=this.get("donateButton.buttonRenderer",this.data);if(G)return Object.assign({},G,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
gE.prototype.setInitialCheckboxValue=gE.prototype.setInitialCheckboxValue;gE.prototype.setInputError=gE.prototype.setInputError;gE.prototype.setFocusOnCustomAmountInput=gE.prototype.setFocusOnCustomAmountInput;_.N([_.v(occ),_.A("design:type",Object)],gE.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gE.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],gE.prototype,"closeLabel",void 0);_.N([_.h(),_.A("design:type",Object)],gE.prototype,"selectedAmountIndex",void 0);_.N([_.h(),_.A("design:type",String)],gE.prototype,"customAmountInput",void 0);_.N([_.h(),_.A("design:type",Object)],gE.prototype,"privacyCheckboxValue",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],gE.prototype,"useAmsterdamStyle",void 0);_.N([_.gx("customAmount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gE.prototype,"setFocusOnCustomAmountInput",null);_.N([_.z("data","selectedAmountIndex"),_.A("design:type",Array),_.A("design:paramtypes",[])],gE.prototype,"suggestedAmountButtons",null);
_.N([_.z("data","selectedAmountIndex"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gE.prototype,"isCustomAmountSelected",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gE.prototype,"showPrivacyCheckbox",null);_.N([_.z("data","selectedAmountIndex","customAmount"),_.A("design:type",Object),_.A("design:paramtypes",[])],gE.prototype,"amountMicros",null);
_.N([_.z("isCustomAmountSelected","customAmountInput"),_.A("design:type",Object),_.A("design:paramtypes",[])],gE.prototype,"customAmount",null);_.N([_.z("customAmount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gE.prototype,"shouldShowValidationError",null);_.N([_.z("customAmount"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],gE.prototype,"isDonateButtonEnabled",null);
_.N([_.z("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.A("design:type",Object),_.A("design:paramtypes",[])],gE.prototype,"donateCommand",null);_.N([_.z("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.A("design:type",Object),_.A("design:paramtypes",[])],gE.prototype,"donateCommandWithConfirmation",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],gE.prototype,"largeDonationThreshold",null);
_.N([_.z("customAmount","donateCommand","amountMicros"),_.A("design:type",Object),_.A("design:paramtypes",[])],gE.prototype,"confirmLargeAmountCommand",null);_.N([_.z("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.A("design:type",Object),_.A("design:paramtypes",[])],gE.prototype,"donateButtonRenderer",null);_.N([_.gx("shouldShowValidationError"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gE.prototype,"setInputError",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gE.prototype,"setInitialCheckboxValue",null);_.N([_.O({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],gE);
_.m(gE,"ytd-donation-amount-picker-renderer",function(){if(CFD!==void 0)return CFD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return CFD=G},{mode:1});var O_k;var aro=function(){return _.C.apply(this,arguments)||this};
_.T(aro,_.C);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],aro.prototype,"ytComponentBehavior",void 0);_.N([_.h({}),_.A("design:type",Object)],aro.prototype,"data",void 0);_.N([_.O({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],aro);
_.m(aro,"ytd-donation-post-transaction-content",function(){if(O_k!==void 0)return O_k;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return O_k=G},{mode:1});var y5m;var IR=function(){return _.C.apply(this,arguments)||this};
_.T(IR,_.C);IR.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.N([_.h({}),_.A("design:type",Object)],IR.prototype,"data",void 0);_.N([_.O({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],IR);
_.m(IR,"ytd-donation-post-transaction-renderer",function(){if(y5m!==void 0)return y5m;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return y5m=G},{mode:1});var o1h;var mxh;var qk=function(){return _.C.apply(this,arguments)||this};
_.T(qk,_.C);qk.prototype.computeIsStreamingProvider=function(G){return!!G.isStreamingShelf};
qk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],qk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],qk.prototype,"data",void 0);_.N([_.h({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],qk.prototype,"isStreamingProvider",void 0);
_.N([_.O({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],qk);
_.m(qk,"ytd-media-provider-renderer",function(){if(mxh!==void 0)return mxh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mxh=G},{mode:1});var Uxh;var Sq=function(){return _.C.apply(this,arguments)||this};
_.T(Sq,_.C);Sq.prototype.observeLightsourcePalette=function(){var G,H=(G=this.data)==null?void 0:G.vibrantsourceColorPaletteData;H&&_.Do(this.hostElement,H)};
Sq.prototype.observeLightsourcePalette=Sq.prototype.observeLightsourcePalette;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Sq.prototype,"data",void 0);
_.N([_.gx("data.vibrantsourceColorPaletteData"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Sq.prototype,"observeLightsourcePalette",null);_.N([_.O({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Sq);
_.m(Sq,"ytd-streaming-pop-up-dialog",function(){if(Uxh!==void 0)return Uxh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Uxh=G},{mode:1});var uw=function(){return _.C.apply(this,arguments)||this};
_.T(uw,_.C);uw.prototype.onPopupOpened_=function(){var G;((G=this.data)==null?0:G.serviceEndpoint)&&_.tp().resolve(_.Dk).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
uw.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
uw.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"}}}}};
uw.prototype.onPopupOpened_=uw.prototype.onPopupOpened_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.sF),_.A("design:type",Object)],uw.prototype,"ytContinuationHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],uw.prototype,"data",void 0);
_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uw.prototype,"onPopupOpened_",null);_.N([_.O({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],uw);
_.m(uw,"ytd-brandconnect-popup-renderer",function(){if(o1h!==void 0)return o1h;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return o1h=G},{mode:1});var R$j;var Bu=function(){return _.C.apply(this,arguments)||this};
_.T(Bu,_.C);_.g=Bu.prototype;_.g.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){for(var G=0;G<this.getOptionRenderers().length;G++)this.notifyPath("data.options."+G+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+G+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.g.updateSubmitButton=function(G){this.set("data.submitButton.buttonRenderer.isDisabled",!G)};
_.g.computeAlt=function(G){return _.yn(G)};
_.g.onDismissTap=function(){_.AZ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.getOptionRenderers=function(G){return(G=G||this.data)&&G.options?G.options.reduce(function(H,Z){Z.checkboxSurveyOptionRenderer&&H.push(Z.checkboxSurveyOptionRenderer);return H},[]):[]};
_.g.onOptionChange=function(G){var H=this,Z=!1;if(G.detail.checked)for(var Q=this.getOptionRenderers().find(function(u){return u.value===G.detail.value}),p=this.getOptionRenderers(),l=0;l<p.length;l++){var q=p[l];
this.notifyPath("data.options."+l+".checkboxSurveyOptionRenderer.checked");q.checked&&((Q==null?0:Q.isExclusiveOption)?!q.isExclusiveOption:q.isExclusiveOption)?this.set("data.options."+l+".checkboxSurveyOptionRenderer.checked",!1):q.checked&&(Z=!0)}else Z=this.getOptionRenderers().some(function(u,B){H.notifyPath("data.options."+B+".checkboxSurveyOptionRenderer.checked");return u.checked});
this.updateSubmitButton(Z)};
_.g.onSubmitTap=function(){var G=this.getOptionRenderers().filter(function(l){return l.checked});
if(G.length!==0){var H=G.map(function(l){return l.responseEndpoint});
G=[];for(var Z=1;Z<H.length;Z++){var Q=void 0,p=(Q=_.X(H[Z],_.Vb))==null?void 0:Q.feedbackToken;p&&G.push(p)}H=[H[0]];G.length&&H.push({extra_feedback_tokens:G});_.L9(this.hostElement,H);_.AZ(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);G=this.data&&this.data.submitActions||[];if(_.V("kevlar_command_handler_migration_killswitch"))_.El(this.hostElement,G,this.hostElement);else for(G=_.I(G),H=G.next();!H.done;H=G.next())this.ytComponentBehavior.resolveCommand(H.value)}};
Bu.prototype.onOptionChange=Bu.prototype.onOptionChange;Bu.prototype.dataChanged=Bu.prototype.dataChanged;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Bu.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Bu.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.N([_.v(lut),_.A("design:type",Object)],Bu.prototype,"ytdHatsSurveyBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Bu.prototype,"data",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Bu.prototype,"dataChanged",null);
_.N([_.lq("ytd-checkbox-survey-option-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Bu.prototype,"onOptionChange",null);_.N([_.O({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Bu);
_.m(Bu,"ytd-checkbox-survey-renderer",function(){if(R$j!==void 0)return R$j;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return R$j=G},{mode:1});var Nis;var A5o;var JE=function(){return _.C.apply(this,arguments)||this};
_.T(JE,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],JE.prototype,"ytRendererBehavior",void 0);_.N([_.v(p_k),_.A("design:type",Object)],JE.prototype,"ytdDismissalReasonBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],JE.prototype,"data",void 0);_.N([_.O({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],JE);
_.m(JE,"ytd-dismissal-reason-text-renderer",function(){if(A5o!==void 0)return A5o;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return A5o=G},{mode:1});var xxh;var tE=function(){return _.C.apply(this,arguments)||this};
_.T(tE,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.N([_.v(p_k),_.A("design:type",Object)],tE.prototype,"ytdDismissalReasonBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],tE.prototype,"data",void 0);_.N([_.O({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],tE);
_.m(tE,"ytd-dismissal-reason-video-renderer",function(){if(xxh!==void 0)return xxh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return xxh=G},{mode:1});var k0=function(){return _.C.apply(this,arguments)||this};
_.T(k0,_.C);_.g=k0.prototype;_.g.created=function(){this.selectedFeedbackTokens=new $o};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.g.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.g.onDismissalReasonSelected=function(G,H){_.N5(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(H);this.hasReasonsSelected=!0};
_.g.onDismissalReasonDeselected=function(G,H){_.N5(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(H);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.g.onCancelTap=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
_.g.onSubmitTap=function(){var G=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(G={feedback_tokens:G},_.tp().resolve(_.Dk).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}));_.AZ(this.hostElement,"yt-close-popup-action")};
k0.prototype.onDismissalReasonDeselected=k0.prototype.onDismissalReasonDeselected;k0.prototype.onDismissalReasonSelected=k0.prototype.onDismissalReasonSelected;k0.prototype.dataChanged=k0.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],k0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],k0.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Boolean)],k0.prototype,"hasReasonsSelected",void 0);_.N([_.h(),_.A("design:type",$o)],k0.prototype,"selectedFeedbackTokens",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],k0.prototype,"dataChanged",null);_.N([_.lq("yt-dismissal-reason-selected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],k0.prototype,"onDismissalReasonSelected",null);
_.N([_.lq("yt-dismissal-reason-deselected"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,String]),_.A("design:returntype")],k0.prototype,"onDismissalReasonDeselected",null);_.N([_.O({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],k0);
_.m(k0,"ytd-dismissal-follow-up-renderer",function(){if(Nis!==void 0)return Nis;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Nis=G},{mode:1});var Lxa;var D4=function(){return _.C.apply(this,arguments)||this};
_.T(D4,_.C);_.g=D4.prototype;_.g.onCheckedChange=function(){this.multiselect||_.N5(this.hostElement,"yt-feedback-single-select-changed");_.F9(this.hostElement).querySelector("#freeform").focus();_.N5(this.hostElement,"yt-refit")};
_.g.showTextBox=function(G,H){return G&&H};
_.g.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))};
_.g.updateDataCheckedFromBinding=function(G){this.set("data.checked",G.detail.value)};
_.g.updateDataResultTextFromBinding=function(G){this.set("data.resultText",G.detail.value)};
D4.prototype.dataChanged=D4.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],D4.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],D4.prototype,"multiselect",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D4.prototype,"dataChanged",null);
_.N([_.O({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],D4);
_.m(D4,"ytd-feedback-option-renderer",function(){if(Lxa!==void 0)return Lxa;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Lxa=G},{mode:1});var E1h;var dE=function(){return _.C.apply(this,arguments)||this};
_.T(dE,_.C);dE.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
dE.prototype.onSingleSelectCheckedChanged=function(G){G=_.a_(G);for(var H=0;H<this.data.options.length;H++)if(G.data!==_.X(this.data.options[H],eWq)){var Z="data.options."+H+".feedbackOptionRenderer.checked";this.notifyPath(Z);this.set(Z,!1)}};
dE.prototype.onSingleSelectCheckedChanged=dE.prototype.onSingleSelectCheckedChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],dE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],dE.prototype,"data",void 0);
_.N([_.lq("yt-feedback-single-select-changed"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],dE.prototype,"onSingleSelectCheckedChanged",null);_.N([_.O({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],dE);
_.m(dE,"ytd-feedback-question-renderer",function(){if(E1h!==void 0)return E1h;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return E1h=G},{mode:1});var Yct;var eq=function(){return _.C.apply(this,arguments)||this};
_.T(eq,_.C);eq.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
eq.prototype.getSelectedFeedbackResults=function(){for(var G={},H=0;H<this.data.questions.length;H++)for(var Z=_.X(this.data.questions[H],dya),Q=0;Q<Z.options.length;Q++){var p=_.X(Z.options[Q],eWq);p&&p.checked&&(G[p.optionKey]=p.resultText)}return G};
eq.prototype.onKeyUp=function(){var G=this;_.E6(_.Ui,function(){_.N5(G.hostElement,"yt-refit")});
_.Ui.start()};
eq.prototype.submitSurvey=function(){var G=this.getSelectedFeedbackResults();Object.keys(G).length>0&&this.data.submitFeedbackEndpoint&&(G={survey_results:G,is_feedback_token_unencrypted:!0},_.tp().resolve(_.Dk).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],eq.prototype,"data",void 0);_.N([_.O({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],eq);
_.m(eq,"ytd-feedback-survey-renderer",function(){if(Yct!==void 0)return Yct;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Yct=G},{mode:1});var Fxt;var b_j;var na=function(){return _.C.apply(this,arguments)||this};
_.T(na,_.C);na.prototype.computeAlt=function(G){return _.yn(G)};
na.prototype.submitResponse=function(){var G,H;(G=this.data)!=null&&G.feedbackToken&&((H=this.data)==null?void 0:H.nextStageIndex)!==void 0&&(_.xk(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.xk(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
na.prototype.onClick=function(){this.submitResponse()};
na.prototype.onClick=na.prototype.onClick;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],na.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],na.prototype,"vertical",void 0);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],na.prototype,"onClick",null);
_.N([_.O({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],na);
_.m(na,"ytd-single-select-answer-option-renderer",function(){if(b_j!==void 0)return b_j;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return b_j=G},{mode:1});var G6A;var Vd=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return G};
_.T(Vd,_.C);Vd.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Vd.prototype.dataChanged=function(){var G,H;this.vertical=((H=(G=this.data)==null?void 0:G.answerOrientation)!=null?H:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Vd.prototype.submitFeedback=function(G){var H;((H=this.data)==null?0:H.responseEndpoint)&&G&&_.L9(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[G]}])};
Vd.prototype.dataChanged=Vd.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Vd.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Vd.prototype,"eventForwardingBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Vd.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Vd.prototype,"vertical",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vd.prototype,"dataChanged",null);_.N([_.O({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Vd);
_.m(Vd,"ytd-single-select-question-renderer",function(){if(G6A!==void 0)return G6A;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return G6A=G},{mode:1});var $0=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return G};
_.T($0,_.C);_.g=$0.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.jumpToStage(0)};
_.g.jumpToStage=function(G){var H,Z;if((H=this.data)==null?0:(Z=H.stages)==null?0:Z[G])this.currentStage=this.data.stages[G],this.refitAfterRender()};
_.g.computeAlt=function(G){return _.yn(G)};
_.g.computeSimpleMessage=function(G){var H;return(H=_.X(G,$ys))==null?void 0:H.messageText};
_.g.computeHideDismiss=function(G){var H;return(H=_.X(G,xA6))==null?void 0:H.hideParentDismissButton};
_.g.onDismissTap=function(){_.AZ(this.hostElement,"yt-close-popup-action");_.X(this.currentStage,$ys)||this.data.dismissalEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.refitAfterRender=function(){var G=this;_.q2(this,function(){_.N5(G.hostElement,"yt-refit")})};
$0.prototype.dataChanged=$0.prototype.dataChanged;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],$0.prototype,"eventForwardingBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],$0.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v(lut),_.A("design:type",Object)],$0.prototype,"ytdHatsSurveyBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$0.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],$0.prototype,"currentStage",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$0.prototype,"dataChanged",null);_.N([_.O({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],$0);
_.m($0,"ytd-multi-stage-survey-renderer",function(){if(Fxt!==void 0)return Fxt;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Fxt=G},{mode:1});var Hcm;var XK=function(){return _.C.apply(this,arguments)||this};
_.T(XK,_.C);XK.prototype.computeAlt=function(G){return _.yn(G)};
XK.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.tp().resolve(_.Dk).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.AZ(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.ZH8(!1)))};
XK.prototype.onTap=function(){this.vertical&&this.submitResponse()};
XK.prototype.onTap=XK.prototype.onTap;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],XK.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],XK.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],XK.prototype,"vertical",void 0);
_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XK.prototype,"onTap",null);_.N([_.O({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],XK);
_.m(XK,"ytd-single-option-survey-option-renderer",function(){if(Hcm!==void 0)return Hcm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Hcm=G},{mode:1});var s4m;var cu=function(){return _.C.apply(this,arguments)||this};
_.T(cu,_.C);_.g=cu.prototype;_.g.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){var G,H;this.vertical=(((G=this.data)==null?void 0:(H=G.surveyOrientation)==null?void 0:H.type)||"HORIZONTAL")==="VERTICAL"};
_.g.computeAlt=function(G){return _.yn(G)};
_.g.onDismissTap=function(){_.AZ(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tp().resolve(_.Dk).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.ZH8(!1))};
cu.prototype.dataChanged=cu.prototype.dataChanged;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],cu.prototype,"eventForwardingBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(lut),_.A("design:type",Object)],cu.prototype,"ytdHatsSurveyBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],cu.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],cu.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],cu.prototype,"vertical",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],cu.prototype,"dataChanged",null);_.N([_.O({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],cu);
_.m(cu,"ytd-single-option-survey-renderer",function(){if(s4m!==void 0)return s4m;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return s4m=G},{mode:1});var Zck;var Tl=function(){return _.C.apply(this,arguments)||this};
_.T(Tl,_.C);Tl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Tl.prototype.onDismissTap=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
Tl.prototype.onNavigate=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
Tl.prototype.onNavigate=Tl.prototype.onNavigate;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Tl.prototype,"ytEventForwardingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Tl.prototype,"data",void 0);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Tl.prototype,"onNavigate",null);
_.N([_.O({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Tl);
_.m(Tl,"ytd-survey-follow-up-renderer",function(){if(Zck!==void 0)return Zck;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Zck=G},{mode:1});var Q4k;var pwj;var lsm;var fa=function(){var G=_.C.apply(this,arguments)||this;G.polymer2="Element"in Polymer;return G};
_.T(fa,_.C);_.g=fa.prototype;_.g.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.g.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.g.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.g.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("minutes-changed",this.minutes))};
_.g.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("seconds-changed",this.seconds))};
_.g.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.g.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
fa.prototype.secondsChangedForBinding=fa.prototype.secondsChangedForBinding;fa.prototype.minutesChangedForBinding=fa.prototype.minutesChangedForBinding;fa.prototype.secondsChanged=fa.prototype.secondsChanged;_.N([_.h(),_.A("design:type",String)],fa.prototype,"minutes",void 0);_.N([_.h(),_.A("design:type",String)],fa.prototype,"seconds",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],fa.prototype,"polymer2",void 0);
_.N([_.q6("#seconds"),_.A("design:type",Object)],fa.prototype,"secondsEl",void 0);_.N([_.gx("seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fa.prototype,"secondsChanged",null);_.N([_.gx("minutes"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fa.prototype,"minutesChangedForBinding",null);
_.N([_.gx("seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fa.prototype,"secondsChangedForBinding",null);_.N([_.fH({is:"yt-timestamp-input",disableElementRegistration:!0})],fa);
_.m(fa,"yt-timestamp-input",function(){if(lsm===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;pwj===void 0&&(pwj=document.createElement("template"));var Q=pwj;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);lsm=G}G=lsm;return G},{mode:2});var vu=function(){return _.C.apply(this,arguments)||this};
_.T(vu,_.C);_.g=vu.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20660_scroller.dialogElement=this.hostElement.parentNode};
_.g.dataChanged=function(){var G=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.R0().getPlayerPromise().then(function(H){H=H.getCurrentTime();G.minutes=Math.floor(H/60).toString();G.seconds=(Math.floor(H)%60).toString()})};
_.g.onTapSubmit=function(G){G.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(G={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(G.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(G.minutes=this.minutes,G.seconds=this.seconds),_.tp().resolve(_.Dk).resolveCommand(this.serviceEndpoint,{form:Object.assign({},G,{element:this.hostElement})}))};
_.g.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.g.onYtServiceRequestCompleted=function(G,H){H=H.actions;if(Array.isArray(H))for(var Z=0,Q=H.length;Z<Q;Z++)_.X(H[Z],_.Pe)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(H[Z]))};
_.g.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.g.toggleSubmitButton=function(G){this.set("submitButton.isDisabled",!G)};
_.g.handleInput=function(){var G=this.issueType,H=this.affiliation,Z=this.minutes,Q=this.seconds;Z=!this.showTimestamp||!!Z&&!!Q;this.toggleSubmitButton(!!this.descriptionText&&!!G&&!!H&&Z)};
_.g.computeServiceEndpoint=function(G){return this.get("submitButton.buttonRenderer.serviceEndpoint",G)};
_.g.computeSubmitButton=function(G){(G=this.get("submitButton.buttonRenderer",G))&&(G=Object.assign({},G,{serviceEndpoint:void 0}));return G};
_.g.computeShowTimestamp=function(G){return!!G};
_.g.onValueChangedForIssueType=function(G){this.issueType=G.detail.value};
_.g.onValueChangedForAffiliation=function(G){this.affiliation=G.detail.value};
_.g.updateDescriptionTextFromBinding=function(G){this.descriptionText=G.detail.value};
_.g.updateFullNameTextFromBinding=function(G){this.fullNameText=G.detail.value};
_.g.updateMinutesFromBinding=function(G){this.minutes=G.detail.value};
_.g.updateSecondsFromBinding=function(G){this.seconds=G.detail.value};
vu.prototype.handleInput=vu.prototype.handleInput;vu.prototype.onYtServiceRequestError=vu.prototype.onYtServiceRequestError;vu.prototype.onYtServiceRequestCompleted=vu.prototype.onYtServiceRequestCompleted;vu.prototype.onYtServiceRequestSent=vu.prototype.onYtServiceRequestSent;vu.prototype.dataChanged=vu.prototype.dataChanged;_.N([_.v(_.e8.YtOpenPopupBehavior),_.A("design:type",Object)],vu.prototype,"ytOpenPopupBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);_.N([_.q6("#scroller"),_.A("design:type",Object)],vu.prototype,"JSC$20660_scroller",void 0);_.N([_.q6("#description"),_.A("design:type",HTMLInputElement)],vu.prototype,"description",void 0);_.N([_.q6("#full-name"),_.A("design:type",Object)],vu.prototype,"fullName",void 0);_.N([_.h(),_.A("design:type",Object)],vu.prototype,"data",void 0);
_.N([_.h({computed:"computeShowTimestamp(data.timestampLabel)"}),_.A("design:type",Boolean)],vu.prototype,"showTimestamp",void 0);_.N([_.h({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.A("design:type",Object)],vu.prototype,"serviceEndpoint",void 0);_.N([_.h({computed:"computeSubmitButton(data)"}),_.A("design:type",Object)],vu.prototype,"submitButton",void 0);_.N([_.h(),_.A("design:type",String)],vu.prototype,"descriptionText",void 0);
_.N([_.h(),_.A("design:type",Number)],vu.prototype,"issueType",void 0);_.N([_.h(),_.A("design:type",Number)],vu.prototype,"affiliation",void 0);_.N([_.h(),_.A("design:type",String)],vu.prototype,"fullNameText",void 0);_.N([_.h(),_.A("design:type",String)],vu.prototype,"minutes",void 0);_.N([_.h(),_.A("design:type",String)],vu.prototype,"seconds",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vu.prototype,"dataChanged",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],vu.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],vu.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],vu.prototype,"onYtServiceRequestError",null);_.N([_.gx("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],vu.prototype,"handleInput",null);_.N([_.O({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],vu);
_.m(vu,"ytd-legal-report-details-form-renderer",function(){if(Q4k!==void 0)return Q4k;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Q4k=G},{mode:1});var gdm;var Wu=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return G};
_.T(Wu,_.C);Wu.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Wu.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var G=this.formRenderer.getForm();G&&this.data.submitEndpoint&&(_.tp().resolve(_.Dk).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},G,{element:this.hostElement})}),_.AZ(this.hostElement,"yt-close-popup-action"))}};
Wu.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.AZ(this.hostElement,"yt-close-popup-action"))};
Wu.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Wu.prototype.onPopupClosed=Wu.prototype.onPopupClosed;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Wu.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Wu.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);
_.N([_.q6("yt-form-renderer"),_.A("design:type",Object)],Wu.prototype,"formRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],Wu.prototype,"data",void 0);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Wu.prototype,"onPopupClosed",null);_.N([_.O({is:"ytd-form-popup-content",disableElementRegistration:!0})],Wu);
_.m(Wu,"ytd-form-popup-content",function(){if(gdm!==void 0)return gdm;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return gdm=G},{mode:1});var Isk;var zl=function(){return _.C.apply(this,arguments)||this};
_.T(zl,_.C);zl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
zl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zl.prototype.onPopupOpened=function(){_.N5(this.hostElement,"yt-invalidate-popup-tabbables")};
zl.prototype.onYtServiceRequestCompleted=function(G,H){H.data&&H.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.N5(this.hostElement,"yt-invalidate-popup-tabbables"))};
zl.prototype.onYtServiceRequestCompleted=zl.prototype.onYtServiceRequestCompleted;zl.prototype.onPopupOpened=zl.prototype.onPopupOpened;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],zl.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],zl.prototype,"data",void 0);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zl.prototype,"onPopupOpened",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],zl.prototype,"onYtServiceRequestCompleted",null);_.N([_.O({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],zl);
_.m(zl,"ytd-form-popup-renderer",function(){if(Isk!==void 0)return Isk;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Isk=G},{mode:1});var qTs;var Ka=function(){var G=_.C.apply(this,arguments)||this;G.isLoading=!1;return G};
_.T(Ka,_.C);_.g=Ka.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");lJA(this.hostElement)};
_.g.onYtServiceRequestSent=function(){this.isLoading=!0};
_.g.onYtServiceRequestCompleted=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.g.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.El(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.g.closePopupHandler=function(){this.fireOnCloseActions()};
_.g.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var G=this.get("data.headerImage.thumbnails");G&&(G=_.N$(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")")}};
_.g.onYtNavigate=function(G){(G=_.a_(G))&&G.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Ka.prototype.onYtNavigate=Ka.prototype.onYtNavigate;Ka.prototype.onHeaderImageChanged=Ka.prototype.onHeaderImageChanged;Ka.prototype.closePopupHandler=Ka.prototype.closePopupHandler;Ka.prototype.onYtServiceRequestCompleted=Ka.prototype.onYtServiceRequestCompleted;Ka.prototype.onYtServiceRequestSent=Ka.prototype.onYtServiceRequestSent;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Ka.prototype,"ytEventForwardingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ka.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ka.prototype,"isLoading",void 0);_.N([_.q6("#header"),_.A("design:type",HTMLDivElement)],Ka.prototype,"header",void 0);_.N([_.q6("#confirm-button"),_.A("design:type",_.MZ)],Ka.prototype,"confirmButton",void 0);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ka.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ka.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Ka.prototype,"closePopupHandler",null);_.N([_.gx("data.headerImage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ka.prototype,"onHeaderImageChanged",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Ka.prototype,"onYtNavigate",null);
_.N([_.O({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Ka);
_.m(Ka,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(qTs!==void 0)return qTs;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return qTs=G},{mode:1});var STk;var Mk=function(){var G=_.C.apply(this,arguments)||this;G.isLoading=!1;return G};
_.T(Mk,_.C);_.g=Mk.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);lJA(this.hostElement)};
_.g.onYtServiceRequestCompleted=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.g.onYtServiceRequestError=function(G){_.jP(this.hostElement,G.detail.error.message)};
_.g.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.g.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.AZ(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.g.onDataChanged=function(){this.isLoading=!1;var G=this.get("data.headerImage.thumbnails");G&&(G=_.N$(G,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+G+")");G=_.$k();var H=_.Va(),Z=this.get("data.trackingParams");Z&&H&&G&&_.je(G,H,_.BT(Z))};
_.u4.Object.defineProperties(Mk.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Mk.prototype.onDataChanged=Mk.prototype.onDataChanged;Mk.prototype.onDomChange=Mk.prototype.onDomChange;Mk.prototype.onYtServiceRequestError=Mk.prototype.onYtServiceRequestError;Mk.prototype.onYtServiceRequestCompleted=Mk.prototype.onYtServiceRequestCompleted;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Mk.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Mk.prototype,"isLoading",void 0);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Mk.prototype,"hasDescription",null);_.N([_.q6("tp-yt-paper-dialog-scrollable"),_.A("design:type",Object)],Mk.prototype,"scrollable",void 0);_.N([_.q6("#header"),_.A("design:type",HTMLElement)],Mk.prototype,"header",void 0);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Mk.prototype,"onYtServiceRequestCompleted",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Mk.prototype,"onYtServiceRequestError",null);
_.N([_.lq("dom-change"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Mk.prototype,"onDomChange",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mk.prototype,"onDataChanged",null);_.N([_.O({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Mk);
_.m(Mk,"ytd-gaming-account-link-setting-renderer",function(){if(STk!==void 0)return STk;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return STk=G},{mode:1});var uB6;var Bdm;var jq=function(){var G=_.C.apply(this,arguments)||this;G.isHeader=!1;G.getEndpointForm=function(){return AB8(G.data)};
return G};
_.T(jq,_.C);_.g=jq.prototype;_.g.triggerHintActions=function(){var G=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var H=_.xk(G.hostElement,"yt-get-opened-popups-action");!(H&&H.length===1?H[0]:[]).some(function(Z){Z=Z.openPopupAction.popupType;return Z==="SURVEY"||Z==="MEALBAR"||Z==="HINT"})&&G.data.hintActions&&G.guideOpened&&(_.El(G.hostElement,G.data.hintActions,G.hostElement),G.data.hintActions=void 0)})};
_.g.getBadgeIconType=function(G){return G&&G.liveBroadcasting?"live":null};
_.g.onDown=function(){this.interaction.triggerDown()};
_.g.onUp=function(){this.interaction.triggerUp()};
_.g.onTap=function(G){if(this.data.serviceEndpoint){var H;_.V("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.X(this.data.serviceEndpoint,_.uS))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Nqj(this.data.serviceEndpoint,this);G.preventDefault()}else this.data.navigationEndpoint&&!_.OO(_.OD(G),this.hostElement,["A".toString()])&&_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.g.computeActive=function(G,H){if(!G)return!1;var Z=G.navigationEndpoint;G=G.serviceEndpoint;if(!Z&&!G||!H)return!1;if(Z){G=(G=_.lS(H))&&["subscriptions","filteredsubscriptions"].includes(G);if(_.X(Z,_.gT)&&_.X(H,_.gT)&&!G){var Q=_.X(Z,_.gT).browseId;H=_.X(H,_.gT).browseId;return Q!==void 0&&H!==void 0&&(Q===H||Q==="VLWL"&&H==="FEwatch_later"||Q==="FEwatch_later"&&H==="VLWL")}var p;Z=(p=_.X(Z.commandMetadata,_.HA))==null?void 0:p.url;H=(Q=_.X(H.commandMetadata,_.HA))==null?void 0:Q.url;return!(!Z||
!H||Z!==H&&Z!==_.vU(H))}return this.isActiveShortsTab(G,H)};
_.g.isActiveShortsTab=function(G,H){H=!!_.X(H,_.uS)||!!_.X(H,_.xl);return(!!_.X(G,_.uS)||!!_.X(G,_.xl))&&H};
_.g.computeIsPrimary=function(G){return!!G};
_.u4.Object.defineProperties(jq.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 G=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&G)return G}}});
jq.prototype.onTap=jq.prototype.onTap;jq.prototype.onUp=jq.prototype.onUp;jq.prototype.onDown=jq.prototype.onDown;jq.prototype.triggerHintActions=jq.prototype.triggerHintActions;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],jq.prototype,"componentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],jq.prototype,"rendererBehavior",void 0);_.N([_.v(_.Q6.YtTaskEmitterBehavior),_.A("design:type",Object)],jq.prototype,"taskEmitterBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],jq.prototype,"activeEndpoint",void 0);_.N([_.h(),_.A("design:type",Object)],jq.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],jq.prototype,"guideOpened",void 0);_.N([_.h(),_.A("design:type",String)],jq.prototype,"type",void 0);_.N([_.q6("yt-interaction"),_.A("design:type",Object)],jq.prototype,"interaction",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],jq.prototype,"isHeader",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data","activeEndpoint"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],jq.prototype,"active",null);_.N([_.h({reflectToAttribute:!0}),_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],jq.prototype,"isPrimary",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.count","data.presentationStyle","data.badges.*"),_.A("design:type",String),_.A("design:paramtypes",[])],jq.prototype,"lineEndStyle",null);
_.N([_.z("lineEndStyle"),_.A("design:type",Object),_.A("design:paramtypes",[])],jq.prototype,"ariaLabel",null);_.N([_.gx("data.hintActions","guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jq.prototype,"triggerHintActions",null);_.N([_.lq("down"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jq.prototype,"onDown",null);
_.N([_.lq("up"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jq.prototype,"onUp",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jq.prototype,"onTap",null);_.N([_.O({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],jq);
_.m(jq,"ytd-guide-entry-renderer",function(){if(Bdm!==void 0)return Bdm;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Bdm=G},{mode:1});var Pu=function(){var G=_.C.apply(this,arguments)||this;G.userToggled=!1;return G};
_.T(Pu,_.C);_.g=Pu.prototype;_.g.getItemsPath=function(){return"data.expandableItems"};
_.g.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.g.onExpanderItemTapped=function(G){var H=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.V("kevlar_guide_expandable_items_killswitch")&&_.q2(this,function(){_.lc(H.expandableItems)});
G.preventDefault()};
_.g.onCollapserItemTapped=function(G){var H=this;this._setExpanded(!1);this.userToggled=!0;G.preventDefault();this.expandableItems&&!_.V("kevlar_guide_collapsible_items_killswitch")&&_.q2(this,function(){_.pT(H.hostElement)})};
_.g.observeActiveEndpoint=function(){for(var G=this.activeEndpoint,H=this.data,Z=this.expandableItems.children,Q=0,p=Z.length;Q<p;Q++)Z[Q].activeEndpoint=G;H&&H.autoExpandCommand&&G&&!this.userToggled&&(Z=this.data.autoExpandCommand,H=!(!_.X(Z,_.gT)||!_.X(G,_.gT)||_.X(Z,_.gT).browseId!==_.X(G,_.gT).browseId),G=this.get("commandMetadata.webCommandMetadata.url",G),Z=this.get("commandMetadata.webCommandMetadata.url",Z),H=H||!!(G&&Z&&G.includes(Z)),this._setExpanded(H),H&&this.ytLazyListBehavior.fillRemainingListItems())};
Pu.prototype.observeActiveEndpoint=Pu.prototype.observeActiveEndpoint;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Pu.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],Pu.prototype,"ytLazyListBehavior",void 0);_.N([_.q6("#expandable-items"),_.A("design:type",HTMLElement)],Pu.prototype,"expandableItems",void 0);
_.N([_.h(),_.A("design:type",Object)],Pu.prototype,"data",void 0);_.N([_.h({readOnly:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],Pu.prototype,"expanded",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],Pu.prototype,"initialCount",void 0);_.N([_.h(),_.A("design:type",Object)],Pu.prototype,"activeEndpoint",void 0);_.N([_.gx("data","activeEndpoint","canShowMore"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Pu.prototype,"observeActiveEndpoint",null);
_.N([_.O({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Pu);
_.m(Pu,"ytd-guide-collapsible-entry-renderer",function(){if(uB6!==void 0)return uB6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uB6=G},{mode:_.LH("kevlar_poly_si_batch_j079")?1:2});var Jhk;var tzm;var rE=function(){var G=_.C.apply(this,arguments)||this;G.allVideosCount=0;G.renderGuideEntry=!1;return G};
_.T(rE,_.C);rE.prototype.observeRenderEntry=function(){var G;this.renderGuideEntry=!((G=this.data)==null||!G.alwaysShow)||!!this.allVideosCount};
rE.prototype.observeRenderEntry=rE.prototype.observeRenderEntry;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],rE.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rE.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],rE.prototype,"activeEndpoint",void 0);_.N([_.h({selector:_.yfW}),_.A("design:type",Object)],rE.prototype,"allVideosCount",void 0);
_.N([_.h(),_.A("design:type",Object)],rE.prototype,"renderGuideEntry",void 0);_.N([_.Jv("allVideosCount","data.alwaysShow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],rE.prototype,"observeRenderEntry",null);_.N([_.O({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],rE);
_.m(rE,"ytd-guide-downloads-entry-renderer",function(){if(tzm===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);tzm=G}G=tzm;return G},{mode:1});var wE=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return G};
_.T(wE,_.C);_.g=wE.prototype;_.g.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]]"}}}}}};
_.g.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var G=this.sectionItems.children,H=0,Z=G.length;H<Z;H++)G[H].activeEndpoint=this.activeEndpoint}};
_.g.handleAddToGuideSectionAction=function(G){var H=_.X(G,iJj);if(H&&this.data&&(G=H.items,H=H.handlerData,G&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1)){H=0;for(var Z=G.length;H<Z;H++)G[H].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,G[H])}};
_.g.handleRemoveFromGuideSectionAction=function(G){var H=_.X(G,OJA);H&&this.data&&(G=H.guideEntryId,H=H.handlerData,G&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(G,this.data.sectionItems),this.removeFromCollapsedSection(G,this.data.sectionItems)))};
_.g.removeFromExpandedSection=function(G,H){G=this.getEntryIndexMatchingId(G,H);G!==-1&&this.splice("data.sectionItems",G,1)};
_.g.removeFromCollapsedSection=function(G,H){var Z=H.findIndex(function(Q){return!!_.X(Q,Hec)});
Z&&Z!==-1&&H[Z]&&_.X(H[Z],Hec)&&(H=_.X(H[Z],Hec).expandableItems)&&(G=this.getEntryIndexMatchingId(G,H),G!==-1&&this.splice("data.sectionItems."+Z+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.g.getEntryIndexMatchingId=function(G,H){var Z=this;return H.findIndex(function(Q){return Z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Q)===G})};
wE.prototype.activeEndpointChanged=wE.prototype.activeEndpointChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],wE.prototype,"actionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("#section-items"),_.A("design:type",HTMLDivElement)],wE.prototype,"sectionItems",void 0);
_.N([_.q6("#header-entry"),_.A("design:type",Object)],wE.prototype,"headerEntry",void 0);_.N([_.h(),_.A("design:type",Object)],wE.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],wE.prototype,"activeEndpoint",void 0);_.N([_.gx("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wE.prototype,"activeEndpointChanged",null);_.N([_.O({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],wE);
_.m(wE,"ytd-guide-collapsible-section-entry-renderer",function(){if(Jhk===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);Jhk=G}G=Jhk;return G},{mode:1});var k6q;var DIt;var hE=function(){var G=_.C.apply(this,arguments)||this;G.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 G};
_.T(hE,_.C);_.g=hE.prototype;
_.g.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}}}}};
_.g.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var G=_.xk(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);G&&G.length===1&&G[0]&&_.xk(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.g.handleResetChannelUnreadCountCommand=function(G){var H;(G=(H=_.X(G,yz8))==null?void 0:H.channelId)&&this.data&&this.data.items&&(H=this.getPathToEntryMatchingId(G))&&(this.set(H+".guideEntryRenderer.count",0),this.set(H+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.g.handleResetSubscriptionsUnreadDotCommand=function(G){var H,Z=(H=_.X(G,ozi))==null?void 0:H.targetId,Q;Z&&(Q=this.data)!=null&&Q.items&&(G=this.data.items.findIndex(function(p){var l;return((l=p.guideEntryRenderer)==null?void 0:l.targetId)===Z}),G<0||this.set("data.items."+G+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.g.getPathToEntryMatchingId=function(G){if(this.data&&this.data.items){var H=this.getEntryIndexMatchingId(G,this.data.items);if(H>-1)return"data.items."+H;for(var Z=0;Z<this.data.items.length;Z++)if(H=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[Z]))if(H=this.getEntryIndexMatchingId(G,H),H>-1)return"data.items."+Z+".guideCollapsibleEntryRenderer.expandableItems."+H}};
_.g.handleAddToGuideSectionAction=function(G){var H=this;if(_.X(G,iJj)){var Z=_.X(G,iJj).items;G=_.X(G,iJj).handlerData;var Q,p;if(Z&&G&&((Q=this.data)==null?void 0:(p=Q.handlerDatas)==null?void 0:p.indexOf(G))>-1){Z=Z.filter(function(q){return(q=H.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",q))&&!H.isGuideItemPresent(q)});
var l;if(G==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((l=this.data)==null?0:l.items)&&(Q=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),Q>-1)){this.splice.apply(this,["data.items",Q+1,0].concat(_.OP(Z)));return}this.unshift.apply(this,["data.items"].concat(_.OP(Z)))}}};
_.g.isGuideItemPresent=function(G){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(G,this.data.items)!==-1)return!0;var H=this.data.items.find(function(Z){return!!Z.guideCollapsibleEntryRenderer});
if((H==null?0:H.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(G,H.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.g.getEntryIndexMatchingId=function(G,H){var Z=this;return H.findIndex(function(Q){return Z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Q)===G})};
_.g.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(G,H){var Z=this;return H.findIndex(function(Q){return Z.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",Q)===G})};
_.g.handleRemoveFromGuideSectionAction=function(G){if(_.X(G,OJA)){var H=_.X(G,OJA).guideEntryId;G=_.X(G,OJA).handlerData;var Z,Q;H&&G&&((Z=this.data)==null?void 0:(Q=Z.handlerDatas)==null?void 0:Q.indexOf(G))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(H,this.data.items),this.removeFromCollapsedSection(H,this.data.items))}};
_.g.removeFromExpandedSection=function(G,H){G=this.getEntryIndexMatchingId(G,H);G!==-1&&this.splice("data.items",G,1)};
_.g.removeFromCollapsedSection=function(G,H){var Z=H.findIndex(function(Q){return!!Q.guideCollapsibleEntryRenderer});
Z!==-1&&(H=H[Z].guideCollapsibleEntryRenderer.expandableItems)&&(G=this.getEntryIndexMatchingId(G,H),G!==-1&&this.splice("data.items."+Z+".guideCollapsibleEntryRenderer.expandableItems",G,1))};
_.g.activeEndpointChanged=function(){for(var G=_.F9(this.hostElement).querySelector("#items").children,H=0,Z=G.length;H<Z;H++)G[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.g.guideOpenedChanged=function(){for(var G=_.F9(this.hostElement).querySelector("#items").children,H=0,Z=G.length;H<Z;H++)G[H].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
hE.prototype.guideOpenedChanged=hE.prototype.guideOpenedChanged;hE.prototype.activeEndpointChanged=hE.prototype.activeEndpointChanged;hE.prototype.persistentGuideChanged=hE.prototype.persistentGuideChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],hE.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],hE.prototype,"ytLazyListBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],hE.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],hE.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],hE.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",String)],hE.prototype,"type",void 0);_.N([_.h({value:20}),_.A("design:type",Number)],hE.prototype,"initialCount",void 0);_.N([_.h({value:10}),_.A("design:type",Number)],hE.prototype,"targetFramerate",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],hE.prototype,"autoFill",void 0);_.N([_.h({value:50}),_.A("design:type",Number)],hE.prototype,"renderDelay",void 0);
_.N([_.gx("guidePersistentAndVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hE.prototype,"persistentGuideChanged",null);_.N([_.Jv("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hE.prototype,"activeEndpointChanged",null);_.N([_.Jv("guideOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],hE.prototype,"guideOpenedChanged",null);
_.N([_.O({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],hE);
_.m(hE,"ytd-guide-section-renderer",function(){if(DIt!==void 0)return DIt;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return DIt=G},{mode:_.LH("kevlar_poly_si_batch_j073")?1:2});var dIo;var Ca=function(){return _.C.apply(this,arguments)||this};
_.T(Ca,_.C);_.u4.Object.defineProperties(Ca.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ca.prototype,"rendererBehaviors",void 0);_.N([_.h(),_.A("design:type",Object)],Ca.prototype,"data",void 0);_.N([_.h(),_.z("data.signInButton.buttonRenderer.style"),_.A("design:type",Object),_.A("design:paramtypes",[])],Ca.prototype,"alignByText",null);_.N([_.O({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],Ca);
_.m(Ca,"ytd-guide-signin-promo-renderer",function(){if(dIo===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);dIo=G}G=dIo;return G},{mode:1});var iw=function(){var G=_.C.apply(this,arguments)||this;G.showFooter=!1;return G};
_.T(iw,_.C);iw.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}}}}};
iw.prototype.attached=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1){H=_.tp().resolve(_.Jp(_.Lr));if(!H)return Z.jumpTo(0);H.setGuideData(G.hostElement);return Z.yield(0,3)}G.ytLazyListBehavior.initialCount=2;return Z.return()})};
iw.prototype.onMouseExit=function(){_.V("web_guide_hover_expansion")&&_.xk(this.hostElement,"yt-guide-mouseleaved",[])};
iw.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
iw.prototype.dataChanged=iw.prototype.dataChanged;iw.prototype.onMouseExit=iw.prototype.onMouseExit;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],iw.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Si.YtLazyListBehavior),_.A("design:type",Object)],iw.prototype,"ytLazyListBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],iw.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],iw.prototype,"showFooter",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],iw.prototype,"autoFill",void 0);_.N([_.lq("mouseleave"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iw.prototype,"onMouseExit",null);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],iw.prototype,"dataChanged",null);_.N([_.O({is:"ytd-guide-renderer",disableElementRegistration:!0})],iw);
_.m(iw,"ytd-guide-renderer",function(){if(k6q!==void 0)return k6q;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return k6q=G},{mode:_.LH("kevlar_poly_si_batch_j073")?1:2});var e5j;var oR=function(){var G=_.C.apply(this,arguments)||this;G.systemIcons=_.V("kevlar_system_icons");G.frostedGlass=_.V("web_frosted_glass");G.getEndpointForm=function(){return AB8(G.data)};
return G};
_.T(oR,_.C);_.g=oR.prototype;_.g.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.g.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.yn(this.data.formattedTitle))};
_.g.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.g.onDown=function(){this.interaction.triggerDown()};
_.g.onUp=function(){this.interaction.triggerUp()};
_.g.onTap=function(G){if(this.data.serviceEndpoint){var H;_.V("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.X(this.data.serviceEndpoint,_.uS))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):Nqj(this.data.serviceEndpoint,this);G.preventDefault()}else{var Z;((Z=this.data)==null?0:Z.navigationEndpoint)&&!_.OO(_.OD(G),this.hostElement,["A".toString()])&&_.N5(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.g.computeActive=function(G,H){if(!G)return!1;var Z=G.navigationEndpoint;G=G.serviceEndpoint;if(!Z&&!G||!H)return!1;if(Z){G=_.X(Z,_.gT);var Q=_.X(H,_.gT);if(G&&Q)return G.browseId===Q.browseId&&G.params===Q.params;var p;Z=(p=_.X(Z.commandMetadata,_.HA))==null?void 0:p.url;var l;H=(l=_.X(H.commandMetadata,_.HA))==null?void 0:l.url;return!(!Z||!H||Z!==H&&Z!==_.vU(H))}return this.isActiveShortsTab(G,H)};
_.g.isActiveShortsTab=function(G,H){H=!!_.X(H,_.uS)||!!_.X(H,_.xl);return(!!_.X(G,_.uS)||!!_.X(G,_.xl))&&H};
_.g.computeTitle=function(G,H){return H?"":_.yn(G)};
_.u4.Object.defineProperties(oR.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
oR.prototype.onTap=oR.prototype.onTap;oR.prototype.onUp=oR.prototype.onUp;oR.prototype.onDown=oR.prototype.onDown;oR.prototype.onActiveStateChange=oR.prototype.onActiveStateChange;oR.prototype.dataChanged=oR.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],oR.prototype,"ytComponentBehavior",void 0);
_.N([_.v(_.iM),_.A("design:type",Object)],oR.prototype,"ironButtonState",void 0);_.N([_.h(),_.A("design:type",Object)],oR.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],oR.prototype,"activeEndpoint",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],oR.prototype,"noLabels",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.A("design:type",Boolean)],oR.prototype,"isActive",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],oR.prototype,"systemIcons",void 0);_.N([_.q6("yt-interaction"),_.A("design:type",Object)],oR.prototype,"interaction",void 0);_.N([_.z("isActive"),_.A("design:type",Object),_.A("design:paramtypes",[])],oR.prototype,"ariaSelected",null);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],oR.prototype,"frostedGlass",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oR.prototype,"dataChanged",null);_.N([_.gx("isActive"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oR.prototype,"onActiveStateChange",null);_.N([_.lq("down"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oR.prototype,"onDown",null);
_.N([_.lq("up"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],oR.prototype,"onUp",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],oR.prototype,"onTap",null);_.N([_.O({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],oR);
_.m(oR,"ytd-mini-guide-entry-renderer",function(){if(e5j!==void 0)return e5j;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return e5j=G},{mode:_.LH("kevlar_poly_si_batch_j063")?1:2});var ndi;var mQ=function(){var G=_.C.apply(this,arguments)||this;G.allVideosCount=0;G.noLabels=_.V("kevlar_mini_guide_no_labels")||_.V("kevlar_modern_mini_guide");G.frostedGlass=_.V("web_frosted_glass");return G};
_.T(mQ,_.C);_.g=mQ.prototype;_.g.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.g.onMouseEnter=function(){_.V("web_guide_hover_expansion")&&_.xk(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.g.visibleChanged=function(){if(this.visible&&!this.data){var G=_.tp().resolve(_.Jp(_.Lr));G&&G.setGuideData(this.hostElement)}};
_.g.dataChanged=function(){var G=_.V("kevlar_modern_mini_guide"),H;var Z=(H=this.data)==null?void 0:H.items;H=this.allVideosCount;var Q=[];if(Z){for(var p=[],l=_.I(Z),q=l.next();!q.done;q=l.next())if(q=q.value,q.guideSubscriptionsSectionRenderer){var u=void 0;p=((u=q.guideSubscriptionsSectionRenderer)==null?void 0:u.items)||[]}Z=_.I(Z);for(l=Z.next();!l.done;l=Z.next())if(l=l.value,q=void 0,(q=l.guideSectionRenderer)==null?0:q.items)for(q=void 0,l=_.I((q=l.guideSectionRenderer)==null?void 0:q.items),
q=l.next();!q.done;q=l.next()){q=q.value;var B=void 0,t=void 0;u=q.guideEntryRenderer||_.X((B=q)==null?void 0:(t=B.guideCollapsibleSectionEntryRenderer)==null?void 0:t.headerEntry,xWa);B=[];t=[];var D=void 0;if(((D=u)==null?void 0:D.targetId)==="subscriptions-guide-item")B=p;else{var d=D=void 0;if((D=q)==null?0:(d=D.guideCollapsibleSectionEntryRenderer)==null?0:d.sectionItems)t=B=q.guideCollapsibleSectionEntryRenderer.sectionItems}Lna(Q,u,G?B:[]);if(t.length>0)for(q=_.I(t),u=q.next();!u.done;u=q.next())u=
u.value,t=_.X(u,so8),B=void 0,t=t&&(t.alwaysShow||H)?_.X((B=t)==null?void 0:B.entryRenderer,xWa):_.X(u,xWa),Lna(Q,t,[])}}this.miniGuideItems=Q};
_.g.activeEndpointChanged=function(){for(var G=this.items.children,H=0;H<G.length;H++)G[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.g.registerWithViewTransitionManager=function(){var G=this;_.wM(_.Ui,function(){var H=_.tp().resolve(_.Jp(_.jB));if(H&&H.isAnyTransitionEnabled){var Z={};H.viewTransitionCoordinator.registerElement(G.hostElement,(Z.slide="mini-guide-page-transition",Z))}})};
mQ.prototype.activeEndpointChanged=mQ.prototype.activeEndpointChanged;mQ.prototype.dataChanged=mQ.prototype.dataChanged;mQ.prototype.visibleChanged=mQ.prototype.visibleChanged;mQ.prototype.onMouseEnter=mQ.prototype.onMouseEnter;_.N([_.v(_.Up),_.A("design:type",Object)],mQ.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],mQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],mQ.prototype,"ytComponentBehavior",void 0);_.N([_.q6("#items"),_.A("design:type",Object)],mQ.prototype,"items",void 0);_.N([_.h(),_.A("design:type",Object)],mQ.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Boolean)],mQ.prototype,"visible",void 0);_.N([_.h(),_.A("design:type",Object)],mQ.prototype,"miniGuideItems",void 0);_.N([_.h({selector:_.yfW}),_.A("design:type",Object)],mQ.prototype,"allVideosCount",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],mQ.prototype,"noLabels",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],mQ.prototype,"frostedGlass",void 0);
_.N([_.lq("mouseenter"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mQ.prototype,"onMouseEnter",null);_.N([_.Jv("visible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mQ.prototype,"visibleChanged",null);_.N([_.Jv("data","allVideosCount"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mQ.prototype,"dataChanged",null);
_.N([_.Jv("activeEndpoint"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],mQ.prototype,"activeEndpointChanged",null);_.N([_.O({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],mQ);
_.m(mQ,"ytd-mini-guide-renderer",function(){if(ndi===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);ndi=G}G=ndi;return G},{mode:1});var Vzs;var $Ii=/^[\x00-\x7F]+$/,Uk=function(){return _.C.apply(this,arguments)||this};
_.T(Uk,_.C);_.u4.Object.defineProperties(Uk.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var G,H=_.yn((G=this.data)==null?void 0:G.handle);if(H)return _.aq("@"+H)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.yn(this.displayHandle),H,Z=_.yn((H=this.data)==null?void 0:H.handleUrl);if(G&&Z)return _.aq(Z+G)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var G=_.yn(this.displayHandle);if(G&&!$Ii.test(G)){var H;return(H=this.data)==null?void 0:H.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var G=_.yn(this.displayHandleUrl),H,Z=_.yn((H=this.data)==null?void 0:H.urlInfoText);if(G&&Z)return _.aq(Z+" "+G)}}});
_.N([_.h(),_.A("design:type",Object)],Uk.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Uk.prototype,"displayHandle",null);_.N([_.z("displayHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],Uk.prototype,"displayHandleUrl",null);_.N([_.z("displayHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],Uk.prototype,"warningText",null);
_.N([_.z("displayHandleUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],Uk.prototype,"urlInfoTextWithUrl",null);_.N([_.O({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Uk);
_.m(Uk,"ytd-handles-claiming-confirm-dialog-content",function(){if(Vzs!==void 0)return Vzs;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Vzs=G},{mode:1});var Xwc;var RR=function(){var G=_.C.apply(this,arguments)||this;G.okButtonOverride={style:"mono",type:"outline",size:"M"};return G};
_.T(RR,_.C);RR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
RR.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],RR.prototype,"okButtonOverride",void 0);_.N([_.h(),_.A("design:type",Object)],RR.prototype,"data",void 0);_.N([_.O({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],RR);
_.m(RR,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Xwc!==void 0)return Xwc;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Xwc=G},{mode:1});var ch6;var Tdh=/^[\x00-\x7F]+$/,Nk=function(){var G=_.C.apply(this,arguments)||this;G.isLoading=!1;return G};
_.T(Nk,_.C);Nk.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var G;this.selectedHandle=(G=this.handleInput)==null?void 0:G.value;this.onSelectedHandleChanged(this.selectedHandle);_.xk(this.hostElement,"yt-refit-popups-action")}};
_.u4.Object.defineProperties(Nk.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var G;return(G=this.data)==null?void 0:G.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.aq("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.aq(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Tdh.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Nk.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Nk.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],Nk.prototype,"selectedHandle",void 0);_.N([_.h(),_.A("design:type",Object)],Nk.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Function)],Nk.prototype,"onSelectedHandleChanged",void 0);_.N([_.q6("#channel-handle-input"),_.A("design:type",Object)],Nk.prototype,"handleInput",void 0);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nk.prototype,"handleUrlPrefix",null);_.N([_.z("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nk.prototype,"displayHandle",null);_.N([_.z("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nk.prototype,"displayHandleUrl",null);_.N([_.z("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],Nk.prototype,"warningText",null);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.N([_.O({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Nk);
_.m(Nk,"ytd-handles-claiming-edit-dialog-content",function(){if(ch6!==void 0)return ch6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ch6=G},{mode:1});var fsq;var AE=function(){var G=_.C.apply(this,arguments)||this;G.actionButtonOverride={style:"mono",type:"filled",size:"M"};G.cancelButtonOverride={style:"mono",type:"text",size:"M"};G.selectButtonDisabled=!1;G.isLoading=!1;G.hasSelectedHandleEventListener=!1;G.selectedHandleChanged=function(H){G.selectedHandle=H};
return G};
_.T(AE,_.C);_.g=AE.prototype;_.g.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.g.onDataChanged=function(){var G,H;this.selectedHandle=(H=_.X((G=this.data)==null?void 0:G.inputField,Pxs))==null?void 0:H.handle};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onCancel=function(){this.selectedHandle="";_.AZ(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onSelectHandle=function(){var G=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(Z,Q){if(Q.newHandleUpdateStatus!==void 0&&Q.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Q.newHandleUpdateStatus.errorMessage)_.jP(G.hostElement,_.yn(Q.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var p;if((p=G.data)==null?0:p.onChannelUpdateSuccess){Z=G.data.onChannelUpdateSuccess;var l,q;if(Q=(l=_.X(Z,_.Pe))==null?void 0:(q=l.popup)==null?void 0:q.handlesClaimingConfirmDialogRenderer)Q.handle=_.aq(G.selectedHandle);G.ytComponentBehavior.resolveCommand(Z);_.AZ(G.hostElement,"yt-close-popup-action",[G.is])}else G.isLoading=!1}},
onServerError:function(){var Z;G.content&&((Z=G.content)==null?0:Z.handleInput)&&G.content.handleInput.validate();G.isLoading=!1;_.jP(G.hostElement,_.Zg("TRY_AGAIN_LATER"))}}}))}};
_.g.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
AE.prototype.onDataChanged=AE.prototype.onDataChanged;AE.prototype.onSelectedHandleChanged=AE.prototype.onSelectedHandleChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],AE.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],AE.prototype,"actionButtonOverride",void 0);_.N([_.h(),_.A("design:type",Object)],AE.prototype,"cancelButtonOverride",void 0);_.N([_.h(),_.A("design:type",Object)],AE.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",String)],AE.prototype,"selectedHandle",void 0);_.N([_.h(),_.A("design:type",Object)],AE.prototype,"selectButtonDisabled",void 0);_.N([_.h(),_.A("design:type",Object)],AE.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Object)],AE.prototype,"hasSelectedHandleEventListener",void 0);_.N([_.h(),_.A("design:type",Object)],AE.prototype,"handleInput",void 0);
_.N([_.gx("selectedHandle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AE.prototype,"onSelectedHandleChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],AE.prototype,"onDataChanged",null);_.N([_.q6("ytd-handles-claiming-edit-dialog-content"),_.A("design:type",Object)],AE.prototype,"content",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],AE.prototype,"ytRendererstamperBehavior",void 0);_.N([_.O({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],AE);
_.m(AE,"ytd-handles-claiming-edit-dialog-renderer",function(){if(fsq!==void 0)return fsq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fsq=G},{mode:1});var vd8;var x0=function(){return _.C.apply(this,arguments)||this};
_.T(x0,_.C);_.u4.Object.defineProperties(x0.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null?0:G.handle){var H;return _.aq("@"+_.yn((H=this.data)==null?void 0:H.handle))}}}});
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],x0.prototype,"formattedHandle",null);_.N([_.h(),_.A("design:type",Object)],x0.prototype,"data",void 0);_.N([_.O({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],x0);
_.m(x0,"ytd-handles-claiming-radio-option-renderer",function(){if(vd8!==void 0)return vd8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return vd8=G},{mode:1});var W8k;var z5A=/^[\x00-\x7F]+$/,La=function(){var G=_.C.apply(this,arguments)||this;G.initialRadioIndex="-1";G.isLoading=!1;G.maybeSubmitFeedback=function(){G.feedbackSurveyRenderer.submitSurvey()};
return G};
_.T(La,_.C);La.prototype.updateSelectedHandleIndexFromBinding=function(G){this.selectedRadioIndex=+G.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(G)};
La.prototype.selectedHandleChanged=function(G){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var H;this.selectedHandle=(H=this.handleInput)==null?void 0:H.value;this.onSelectedHandleChanged(G)}};
_.u4.Object.defineProperties(La.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var G;return this.ytRendererBehavior.getSimpleString((G=this.data)==null?void 0:G.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.aq("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.aq(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!z5A.test(this.selectedHandle)){var G;return(G=this.data)==null?void 0:G.warningText}}}});
_.N([_.h(),_.A("design:type",Object)],La.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],La.prototype,"initialRadioIndex",void 0);_.N([_.h(),_.A("design:type",Number)],La.prototype,"selectedRadioIndex",void 0);_.N([_.h(),_.A("design:type",String)],La.prototype,"selectedHandle",void 0);_.N([_.h(),_.A("design:type",Object)],La.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Function)],La.prototype,"onSelectedHandleChanged",void 0);
_.N([_.h(),_.A("design:type",Function)],La.prototype,"onSelectedRadioIndexChanged",void 0);_.N([_.q6("#channel-handle-input"),_.A("design:type",Object)],La.prototype,"handleInput",void 0);_.N([_.q6("ytd-feedback-survey-renderer"),_.A("design:type",Object)],La.prototype,"feedbackSurveyRenderer",void 0);_.N([_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],La.prototype,"radioButtonLength",null);
_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],La.prototype,"handleUrlPrefix",null);_.N([_.z("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],La.prototype,"displayHandle",null);_.N([_.z("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],La.prototype,"displayHandleUrl",null);_.N([_.z("selectedHandle"),_.A("design:type",Object),_.A("design:paramtypes",[])],La.prototype,"warningText",null);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.N([_.O({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],La);
_.m(La,"ytd-handles-claiming-select-dialog-content",function(){if(W8k!==void 0)return W8k;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return W8k=G},{mode:1});var K8q;var Ek=function(){var G=_.C.apply(this,arguments)||this;G.actionButtonOverride={style:"mono",type:"filled",size:"M"};G.cancelButtonOverride={style:"mono",type:"text",size:"M"};G.initialRadioIndex="-1";G.selectButtonDisabled=!1;G.isLoading=!1;G.selectedRadioIndexChanged=function(H){G.selectedRadioIndex=Number(H.detail.value)};
G.selectedHandleChanged=function(H){G.selectedHandle=H.detail.value};
return G};
_.T(Ek,_.C);_.g=Ek.prototype;_.g.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.g.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.g.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.xk(this.hostElement,"yt-refit-popups-action")};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.AZ(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onSelectHandle=function(){var G=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(Z,Q){if(Q.newHandleUpdateStatus!==void 0&&Q.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Q.newHandleUpdateStatus.errorMessage)_.jP(G.hostElement,_.yn(Q.newHandleUpdateStatus.errorMessage)),
G.isLoading=!1;else{var p;if((p=G.data)==null?0:p.onChannelUpdateSuccess){Z=G.data.onChannelUpdateSuccess;Q=_.X(Z,_.Pe);var l;if(Q==null?0:(l=Q.popup)==null?0:l.handlesClaimingConfirmDialogRenderer)Q.popup.handlesClaimingConfirmDialogRenderer.handle=_.aq(G.selectedHandle);G.ytComponentBehavior.resolveCommand(Z);_.AZ(G.hostElement,"yt-close-popup-action",[G.is])}else G.isLoading=!1}},
onServerError:function(){if(G.selectedRadioIndex===G.radioButtonLength){var Z;G.content&&((Z=G.content)==null?0:Z.handleInput)&&G.content.handleInput.validate()}G.isLoading=!1;_.jP(G.hostElement,_.Zg("TRY_AGAIN_LATER"))}}}))}};
_.g.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var G,H;this.selectedHandle=(G=this.content)==null?void 0:(H=G.handleInput)==null?void 0:H.value}else this.selectedRadioIndex>=0&&((G=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(G==null?void 0:G.handle):this.selectedHandle=void 0)};
_.g.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.g.getRadioItem=function(G){if(this.radioButtonLength>G&&G>=0)return _.X(this.data.radioButton[G],Lao)};
_.u4.Object.defineProperties(Ek.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var G;return(((G=this.data)==null?void 0:G.radioButton)||[]).length}}});
Ek.prototype.onSelectedHandleChanged=Ek.prototype.onSelectedHandleChanged;Ek.prototype.onSelectedHandleIndexChanged=Ek.prototype.onSelectedHandleIndexChanged;Ek.prototype.onDataChanged=Ek.prototype.onDataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Ek.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Ek.prototype,"actionButtonOverride",void 0);_.N([_.h(),_.A("design:type",Object)],Ek.prototype,"cancelButtonOverride",void 0);
_.N([_.h(),_.A("design:type",Object)],Ek.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Ek.prototype,"initialRadioIndex",void 0);_.N([_.h(),_.A("design:type",Number)],Ek.prototype,"selectedRadioIndex",void 0);_.N([_.h(),_.A("design:type",String)],Ek.prototype,"selectedHandle",void 0);_.N([_.h(),_.A("design:type",Object)],Ek.prototype,"selectButtonDisabled",void 0);_.N([_.h(),_.A("design:type",Object)],Ek.prototype,"isLoading",void 0);
_.N([_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],Ek.prototype,"radioButtonLength",null);_.N([_.q6("ytd-handles-claiming-select-dialog-content"),_.A("design:type",Object)],Ek.prototype,"content",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ek.prototype,"onDataChanged",null);
_.N([_.gx("selectedRadioIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ek.prototype,"onSelectedHandleIndexChanged",null);_.N([_.gx("selectedHandle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ek.prototype,"onSelectedHandleChanged",null);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.N([_.O({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Ek);
_.m(Ek,"ytd-handles-claiming-select-dialog-renderer",function(){if(K8q!==void 0)return K8q;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return K8q=G},{mode:1});var Mz6;var j4D;var Y0=function(){return _.C.apply(this,arguments)||this};
_.T(Y0,_.C);Y0.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Y0.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Y0.prototype,"data",void 0);_.N([_.O({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Y0);
_.m(Y0,"ytd-hotkey-dialog-section-option-renderer",function(){if(j4D!==void 0)return j4D;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return j4D=G},{mode:1});var Psi;var FK=function(){return _.C.apply(this,arguments)||this};
_.T(FK,_.C);FK.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],FK.prototype,"data",void 0);_.N([_.O({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],FK);
_.m(FK,"ytd-hotkey-dialog-section-renderer",function(){if(Psi!==void 0)return Psi;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Psi=G},{mode:1});var bw=function(){return _.C.apply(this,arguments)||this};
_.T(bw,_.C);bw.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],bw.prototype,"data",void 0);_.N([_.O({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],bw);
_.m(bw,"ytd-hotkey-dialog-content",function(){if(Mz6!==void 0)return Mz6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Mz6=G},{mode:1});var rhi;var GR=function(){return _.C.apply(this,arguments)||this};
_.T(GR,_.C);GR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G=document.querySelector("ytd-hotkey-dialog-content #scrollable");G&&(G.dialogElement=this.hostElement.parentElement)};
GR.prototype.onCloseTap=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],GR.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],GR.prototype,"data",void 0);_.N([_.O({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],GR);
_.m(GR,"ytd-hotkey-dialog-renderer",function(){if(rhi!==void 0)return rhi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rhi=G},{mode:1});var wws;var H2=function(){return _.C.apply(this,arguments)||this};
_.T(H2,_.C);H2.prototype.onYtServiceRequestError=function(){if(this.blocked){var G;var H=(G=this.data)==null?void 0:G.defaultServiceEndpoint}else{var Z;H=(Z=this.data)==null?void 0:Z.toggledServiceEndpoint}var Q;(H=(Q=_.X(H,_.vlG))==null?void 0:Q.onFailureAction)&&this.ytComponentBehavior.resolveCommand(H);this.updateBlockState(!this.blocked)};
H2.prototype.onYtToggleButton=function(G){this.updateBlockState(G.detail.toggled)};
H2.prototype.updateBlockState=function(G){if(G!==this.blocked){var H=this.blockedEntityKey;H&&this.ytdReduxBehavior.dispatch(_.uP("blockStateEntity",H,{key:H,blocked:G}));this.set("data.isToggled",G)}};
_.u4.Object.defineProperties(H2.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)}}});
H2.prototype.onYtToggleButton=H2.prototype.onYtToggleButton;H2.prototype.onYtServiceRequestError=H2.prototype.onYtServiceRequestError;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],H2.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],H2.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],H2.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],H2.prototype,"blockedEntityKey",void 0);
_.N([_.h({selectorArgs:["blockedEntityKey"],selector:function(G,H){return _.Hv(G.entities,"blockStateEntity",H)}}),
_.A("design:type",Object)],H2.prototype,"blockStateEntity",void 0);_.N([_.z("data","blockStateEntity"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],H2.prototype,"blocked",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],H2.prototype,"onYtServiceRequestError",null);
_.N([_.lq("yt-toggle-button"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],H2.prototype,"onYtToggleButton",null);_.N([_.O({is:"ytd-block-button",disableElementRegistration:!0})],H2);
_.m(H2,"ytd-block-button",function(){if(wws!==void 0)return wws;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wws=G},
{mode:1});var h5h;var Csj;var sH=function(){return _.C.apply(this,arguments)||this};
_.T(sH,_.C);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],sH.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sH.prototype,"data",void 0);_.N([_.O({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],sH);
_.m(sH,"ytd-kids-blocklist-picker-item-renderer",function(){if(Csj!==void 0)return Csj;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Csj=G},{mode:1});var Z5=function(){return _.C.apply(this,arguments)||this};
_.T(Z5,_.C);Z5.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Z5.prototype,"data",void 0);_.N([_.O({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Z5);
_.m(Z5,"ytd-kids-blocklist-picker-content",function(){if(h5h!==void 0)return h5h;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return h5h=
G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var ick;var Qm=function(){var G=_.C.apply(this,arguments)||this;G.hasAnyRequestSucceeded=!1;G.hasAnyRequestFailed=!1;G.numPendingRequests=0;return G};
_.T(Qm,_.C);_.g=Qm.prototype;_.g.attached=function(){this.hostElement.setAttribute("dialog","")};
_.g.onDoneButtonTap=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.g.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.g.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.g.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.g.onPopupClosed=function(G){var H,Z;if(((H=G.detail)==null?void 0:(Z=H.popup)==null?void 0:Z.is)==="tp-yt-paper-dialog"){var Q;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((Q=this.data)==null?0:Q.successfulToastActionMessage)&&(G=_.Rq(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(G));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Qm.prototype.onPopupClosed=Qm.prototype.onPopupClosed;Qm.prototype.onYtServiceRequestError=Qm.prototype.onYtServiceRequestError;Qm.prototype.onYtServiceRequestCompleted=Qm.prototype.onYtServiceRequestCompleted;Qm.prototype.onYtServiceRequestSent=Qm.prototype.onYtServiceRequestSent;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Qm.prototype,"data",void 0);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qm.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qm.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Qm.prototype,"onYtServiceRequestError",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Qm.prototype,"onPopupClosed",null);_.N([_.O({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Qm);
_.m(Qm,"ytd-kids-blocklist-picker-renderer",function(){if(ick!==void 0)return ick;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ick=G},{mode:1});var Oc8;var asD;var pz=function(){return _.C.apply(this,arguments)||this};
_.T(pz,_.C);pz.prototype.setTip=function(G){var H=this;this.data&&(this.tip=cJD($T8.getInstance(),G,this.data),_.q2(this,function(){_.N5(H.hostElement,"yt-refit")}))};
pz.prototype.clearTip=function(){this.tip=void 0};
pz.prototype.computeHidden=function(G){return!G};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],pz.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.A("design:type",Boolean)],pz.prototype,"hidden",void 0);_.N([_.h(),_.A("design:type",Object)],pz.prototype,"tip",void 0);_.N([_.O({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],pz);
_.m(pz,"ytd-menu-popup-tip-renderer",function(){if(asD!==void 0)return asD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);
return asD=G},{mode:1});var yh6;var lt=function(){var G=_.C.apply(this,arguments)||this;G.useIcons=!1;G.systemIcons=_.V("kevlar_system_icons");G.useListItemStyles=_.V("web_list_item_style_for_menu_items");return G};
_.T(lt,_.C);_.g=lt.prototype;_.g.onFocus=function(){var G;(G=_.F9(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.g.onTap=function(){var G=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(G&&_.X(G,_.Ft))this.componentBehavior.resolveCommand(G),this.updateToggledStateInEntity();else if(G){this.componentBehavior.resolveCommand(G)||_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}});var H;((H=_.X(G,_.GD))==null?void 0:H.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.g.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.g.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.g.updateToggledStateInEntity=function(){var G=this.data.toggleMenuServiceItemEntityKey,H=!this.data.isToggled;G&&this.ytdReduxBehavior.dispatch(_.uP("toggleMenuServiceItemEntity",G,{key:G,isToggled:H}))};
_.g.computeIcon=function(G,H,Z){return(G=G?Z:H)&&G.iconType?_.bq(G.iconType):""};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.isIconActive=function(G){return!_.V("toggle_menu_active_icon_killswitch")&&G};
_.u4.Object.defineProperties(lt.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.data)==null?0:G.isToggled)?(H=this.data)==null?void 0:H.toggledText:(Z=this.data)==null?void 0:Z.defaultText}}});
lt.prototype.toggledStateEntityChanged=lt.prototype.toggledStateEntityChanged;lt.prototype.onYtServiceRequestCompleted=lt.prototype.onYtServiceRequestCompleted;lt.prototype.onTap=lt.prototype.onTap;lt.prototype.onFocus=lt.prototype.onFocus;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],lt.prototype,"componentBehavior",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],lt.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],lt.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lt.prototype,"useIcons",void 0);_.N([_.h({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.A("design:type",String)],lt.prototype,"icon",void 0);
_.N([_.h({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.wv.toggleMenuServiceItemEntitySelector}),_.A("design:type",Object)],lt.prototype,"toggleMenuServiceItemEntity",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lt.prototype,"systemIcons",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],lt.prototype,"useListItemStyles",void 0);
_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lt.prototype,"onFocus",null);_.N([_.z("data.isToggled"),_.A("design:type",Object),_.A("design:paramtypes",[])],lt.prototype,"toggleButtonText",null);_.N([_.lq("tap"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lt.prototype,"onTap",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lt.prototype,"onYtServiceRequestCompleted",null);_.N([_.gx("toggleMenuServiceItemEntity.isToggled","data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],lt.prototype,"toggledStateEntityChanged",null);_.N([_.O({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],lt);
_.m(lt,"ytd-toggle-menu-service-item-renderer",function(){if(yh6!==void 0)return yh6;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return yh6=G},{mode:1});var odD;var gH=function(){return _.C.apply(this,arguments)||this};
_.T(gH,_.C);gH.prototype.onFocus=function(){var G;(G=_.F9(this.hostElement).querySelector("tp-yt-paper-item"))==null||G.focus()};
_.u4.Object.defineProperties(gH.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.m0(this.data.iconUrl)}}});
gH.prototype.onFocus=gH.prototype.onFocus;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],gH.prototype,"rendererBehavior",void 0);_.N([_.v(_.ni.YtEndpointBehavior),_.A("design:type",Object)],gH.prototype,"ytEndpointBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],gH.prototype,"data",void 0);_.N([_.lq("focus"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],gH.prototype,"onFocus",null);
_.N([_.z("data.iconUrl"),_.A("design:type",Object),_.A("design:paramtypes",[])],gH.prototype,"imageSource",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],gH);
_.m(gH,"ytd-menu-custom-icon-item-renderer",function(){if(odD!==void 0)return odD;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return odD=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});_.RX(_.L5,"yt-list-item-view-model",{props:{data:_.b3,isMenuItem:_.b3,isCompact:_.b3,onTap:_.oX,trailingAccessory:_.oX,hideSelectionTextChevron:_.b3,disabled:_.b3,inPopup:_.b3,disableHorizontalPadding:_.b3,isOverlay:_.b3,isToggled:_.b3,ariaLabel:_.b3,ariaPressed:_.b3}});var Ie=function(){var G=_.C.apply(this,arguments)||this;G.disableBackdropFilter=_.V("web_disable_backdrop_filter");return G};
_.T(Ie,_.C);_.g=Ie.prototype;
_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.g.computeAriaLabel=function(G){return G};
_.g.onPopupOpened=function(){this.items.selected=0;for(var G=_.I(_.F9(this.items).children),H=G.next();!H.done;H=G.next())H.value.popupPositionTarget=this.positionTarget;if(G=this.popupTip||void 0)G.setTip(this.source||""),this.source=void 0;this.veData&&(G=_.$k())&&_.w8(G,[this.veData])};
_.g.onPopupClosed=function(){var G=this.popupTip||void 0;G&&G.clearTip()};
_.g.onIronActivate=function(G){this.shouldPersist(G)||_.AZ(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(G=_.$k())&&_.Co(G,this.veData)};
_.g.shouldPersist=function(G){var H,Z;if(((H=G.detail)==null?void 0:H.selected)===void 0||(Z=this.data)==null||!Z.items)return!1;var Q,p;return!((p=(Q=this.data.items[G.detail.selected])==null?void 0:Q.toggleMenuServiceItemRenderer)==null||!p.persistentOnMenuPopup)};
_.g.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(G){return G.menuNavigationItemRenderer?!!G.menuNavigationItemRenderer.icon:G.menuServiceItemRenderer?!!G.menuServiceItemRenderer.icon:G.menuConditionalServiceItemRenderer?!!G.menuConditionalServiceItemRenderer.icon:G.menuConditionalNavigationItemRenderer?!!G.menuConditionalNavigationItemRenderer.icon:G.toggleMenuServiceItemRenderer?!!G.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Ie.prototype.onPopupClosed=Ie.prototype.onPopupClosed;Ie.prototype.onPopupOpened=Ie.prototype.onPopupOpened;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Ie.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Ie.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Ie.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Ie.prototype,"veData",void 0);_.N([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.A("design:type",String)],Ie.prototype,"ariaLabel",void 0);_.N([_.h({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],Ie.prototype,"useIcons",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Ie.prototype,"disableBackdropFilter",void 0);_.N([_.q6("#items"),_.A("design:type",Object)],Ie.prototype,"items",void 0);_.N([_.q6("ytd-menu-popup-tip-renderer"),_.A("design:type",Object)],Ie.prototype,"popupTip",void 0);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ie.prototype,"onPopupOpened",null);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Ie.prototype,"onPopupClosed",null);_.N([_.O({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Ie);
_.m(Ie,"ytd-menu-popup-renderer",function(){if(Oc8!==void 0)return Oc8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Oc8=G},{mode:1});var mI8;var UID=_.y(function(G){G=_.oK(G,{icon:void 0});var H=G.data;G=G.icon;var Z=function(){return H().iconBadgeText},Q={},p=_.bb("yt-spec-icon-badge-shape",function(){a:switch(H().iconBadgeType){case "notification":var l="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":l="yt-spec-icon-badge-shape--type-cart";break a;default:l=""}return l},function(){a:switch(H().iconBadgeStyle){case "overlay":var l="yt-spec-icon-badge-shape--style-overlay";
break a;default:l=""}return l},(Q["yt-spec-icon-badge-shape--text-size-small"]=function(){var l=Z();
return!!((l==null?0:l.length)&&l.length>2)},Q));
return _.J("yt-icon-badge-shape",null,_.J(_.k,{cond:G,then:function(l){return _.J("div",{class:p},_.J("div",{class:"yt-spec-icon-badge-shape__icon"},_.J(_.ll,{icon:l})),_.J(_.k,{cond:Z,then:function(q){return _.J("div",{class:"yt-spec-icon-badge-shape__badge"},q)}}))}}))},"kj");
UID.idomCompat=!0;_.RX(UID,"yt-icon-badge-shape",{props:{data:_.b3,icon:_.b3}});var q9=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};G.unseenCount=0;G.isOverlay=!1;return G};
_.T(q9,_.C);_.g=q9.prototype;_.g.attached=function(){var G=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(H){G.onServiceWorkerMessage(H)})};
_.g.onDataChanged=function(){this.isAttached&&!this.JSC$20801_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20801_lastData=this.data};
_.g.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.g.computeIcon=function(){var G,H;return(G=this.data)==null?void 0:(H=G.icon)==null?void 0:H.iconType};
_.g.onServiceWorkerMessage=function(G){G.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.g.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.X(this.data.updateUnseenCountEndpoint,_.GD)&&_.X(this.data.updateUnseenCountEndpoint,_.GD).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.g.handleUpdateNotificationsUnseenCountAction=function(G){var H=this;G=_.X(G,aF8);G!=null&&G.unseenCount&&G.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(G.unseenCount),_.Ui.addLowPriorityJob(function(){H.data.updateUnseenCountEndpoint&&H.ytComponentBehavior.resolveCommand(H.data.updateUnseenCountEndpoint)},G.timeoutMs))};
_.g.onClick=function(){_.N5(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var G=_.xk(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),H=this.data.menuRequest;G&&G.length===1&&G[0]?_.AZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):H&&this.ytComponentBehavior.resolveCommand(H)};
_.g.handleTopbarMenuClosedAction=function(G){G==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.g.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
_.g.sendUnseenCountRequest=function(G){var H=this;_.wM(_.Ui,function(){H.ytComponentBehavior.resolveCommand(G)})};
_.g.updateCountUI=function(G){this.set("unseenCount",G<9?G:"9+")};
_.u4.Object.defineProperties(q9.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
q9.prototype.handleUpdateNotificationsUnseenCountAction=q9.prototype.handleUpdateNotificationsUnseenCountAction;q9.prototype.onDataChanged=q9.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],q9.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ia),_.A("design:type",Object)],q9.prototype,"ytdOpenPopupBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],q9.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],q9.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],q9.prototype,"unseenCount",void 0);_.N([_.h(),_.A("design:type",Object)],q9.prototype,"isOverlay",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],q9.prototype,"showTooltips",void 0);_.N([_.q6("yt-icon-button"),_.A("design:type",Object)],q9.prototype,"iconButton",void 0);
_.N([_.z("unseenCount"),_.A("design:type",Object),_.A("design:paramtypes",[])],q9.prototype,"showNotificationCount",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],q9.prototype,"onDataChanged",null);_.N([_.lq("yt-update-notifications-unseen-count-action"),_.A("design:type",Function),_.A("design:paramtypes",[Object]),_.A("design:returntype")],q9.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.N([_.O({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],q9);
_.m(q9,"ytd-notification-topbar-button-renderer",function(){if(mI8!==void 0)return mI8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return mI8=G},{mode:_.LH("kevlar_poly_si_batch_j025")?1:2});var R5h;var S1=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return G};
_.T(S1,_.C);S1.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}}}}}};
S1.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
S1.prototype.onDarkModeToggled=function(G){this.dark=G};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],S1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],S1.prototype,"data",void 0);_.N([_.h({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],S1.prototype,"dark",void 0);
_.N([_.O({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],S1);
_.m(S1,"yt-pdg-buy-flow-header-renderer",function(){if(R5h!==void 0)return R5h;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return R5h=G},{mode:1});var Nds;var Ahh;var ut=function(){var G=_.C.apply(this,arguments)||this;G.immediateValue=0;G.isDarkTheme=!1;G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(ut,_.C);_.g=ut.prototype;_.g.created=function(){_.AS.requestAvailability()};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.dataChanged=function(){var G=_.F9(this.hostElement).querySelector("#color-slider");G.immediateValue&&this.updateSliderKnobAndGradientStyles(G.immediateValue);this.data.notches[0].knobColorArgb&&_.ZI(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.c$(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.xI("HTML_DIR")==="rtl"&&_.F9(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.g.onSliderImmediateChange=function(){var G=_.F9(this.hostElement).querySelector("#color-slider");G.dragging&&(G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue)),this.updateSliderAria())};
_.g.onSliderChange=function(){var G=_.F9(this.hostElement).querySelector("#color-slider");G.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(G.immediateValue),this.updateSliderKnobAndGradientStyles(G.immediateValue));this.updateSliderAria()};
_.g.updateSliderAria=function(){var G=_.F9(this.hostElement).querySelector("#color-slider"),H=_.F9(this.hostElement).querySelector("#color-slider");H=_.yn(this.data.notches[H.immediateValue].tierValue);_.ejj()&&_.N5(this.hostElement,"iron-announce",{text:H});G.setAttribute("aria-valuetext",H)};
_.g.updateSuperThanksSelectedTierEntity=function(G){if(G!==this.immediateValue){var H,Z,Q=this==null?void 0:(H=this.data)==null?void 0:(Z=H.superThanksSelectedTierEntity)==null?void 0:Z.key;Q&&Q.length>0&&this.ytdReduxBehavior.dispatch(_.uP("superThanksSelectedTierEntity",Q,{key:Q,index:G}))}};
_.g.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.g.updateSliderKnobAndGradientStyles=function(G){this.immediateValue=G;G=this.data.notches[G];if(G==null?0:G.knobColorArgb)var H={"--ytd-pdg-color-slider-knob-color":_.c$(G.knobColorArgb)};(G==null?0:G.linearGradientCssStyle)&&H!==null&&(H=Object.assign({},H,{"--ytd-pdg-color-slider-active-color":G==null?void 0:G.linearGradientCssStyle}));H!==null&&_.ZI(this.hostElement,H)};
ut.prototype.onSliderChange=ut.prototype.onSliderChange;ut.prototype.onSliderImmediateChange=ut.prototype.onSliderImmediateChange;ut.prototype.dataChanged=ut.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],ut.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],ut.prototype,"immediateValue",void 0);_.N([_.h(),_.A("design:type",Number)],ut.prototype,"maxMarkers",void 0);
_.N([_.h({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JQt}),_.A("design:type",Object)],ut.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],ut.prototype,"isDarkTheme",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],ut.prototype,"ytdReduxBehavior",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ut.prototype,"dataChanged",null);
_.N([_.lq("immediate-value-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ut.prototype,"onSliderImmediateChange",null);_.N([_.lq("change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ut.prototype,"onSliderChange",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],ut);
_.m(ut,"ytd-pdg-color-slider-renderer",function(){if(Ahh!==void 0)return Ahh;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ahh=G},{mode:1});var xID;var L8A;var B2=null;
_.Vy({is:"ytd-comment-input",_template:function(){if(L8A!==void 0)return L8A;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return L8A=G},
behaviors:[_.Z8U.YtHostElementBehavior,_.vZ,_.RT.YtComponentBehavior,_.Ii.YtRendererstamperBehavior,_.Gct.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 _.FY}},
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",_.pH(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;_.Dy();this.focus()},
detached:function(){document.removeEventListener("tap",_.pH(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(G){G=G.detail;G=G.isCustomEmoji?G.shortcuts[0]:G.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,G);this.maybeUpdateTextDirection_();_.N5(this.hostElement,"input")},
getInputRange_:function(){var G=_.Ew();if(G){G=G.getBrowserRangeObject();for(var H=G.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return G;H=H.parentNode}}G=this.getEditableTextArea_();G=_.aB(G,G.childNodes.length);G.select();return G.getBrowserRangeObject()},
insertTextWithEmojis_:function(G,H,Z){(H=this.emojiManager.createDocumentFragment(H,!0,!1,Z===void 0?!0:Z))&&H.childNodes.length!==0&&(G.collapsed||G.deleteContents(),Z=H.lastChild,G.insertNode(H),_.Iox(Z).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var G=_.Ew();if(G){var H=G.JSC$11352_getStartNode(),Z=G.JSC$11352_getEndNode();if(EjD(H)&&EjD(Z)){var Q=G.JSC$11352_getStartOffset(),p;if(_.H4&&H.nodeType===Node.ELEMENT_NODE&&(p=_.Iwa(H)))_.aB(p,0).select();else{p=g2(H)?H:_.xr(H,g2);var l=g2(Z)?Z:_.xr(Z,g2);if(p||l)if(G.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){G=!0;Q===H.length&&(G=!1);if(B2==="end"||B2==="right")G=!1;H=H.parentNode;G=[].concat(_.OP(H.parentNode.childNodes)).indexOf(H)+(G?0:1);_.aB(H.parentNode,
G).select()}}else p?p.previousSibling&&p.previousSibling.length>0?_.yQ(Z,G.JSC$11352_getEndOffset(),p.previousSibling,p.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),p.parentNode.insertBefore(H,p),_.yQ(Z,G.JSC$11352_getEndOffset(),H,0).select()):l&&(l.nextSibling&&l.nextSibling.length>0?_.yQ(H,G.JSC$11352_getStartOffset(),l.nextSibling,1).select():(Z=document.createTextNode("\u200b"),l.parentNode.insertBefore(Z,l.nextSibling),_.yQ(H,G.JSC$11352_getStartOffset(),Z,Z.length).select()));
B2=null}}else B2=null}else B2=null},
leftKeyPressed_:function(){B2="left"},
rightKeyPressed_:function(){B2="right"},
endKeyPressed_:function(){B2="end"},
maybeDeleteChip_:function(){var G=sED(!0);if(G){var H=_.Ew(),Z=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();_.wa(Z,H,G,G.childNodes.length).select()}},
maybeBackspaceChip_:function(){var G=sED(!1);if(G){var H=_.Ew(),Z=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();_.wa(Z,H,G,0).select()}},
maybeBackspaceChipWordMode_:function(G){var H=_.Ew();if(H.isCollapsed()){var Z=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();var Q=ZYj(Z,H,!0);Q&&(_.wa(Z,H,Q,0).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(G){var H=_.Ew();if(H.isCollapsed()){var Z=H.JSC$11352_getStartNode();H=H.JSC$11352_getStartOffset();var Q=ZYj(Z,H,!1);Q&&(_.wa(Z,H,Q,Q.childNodes.length).select(),document.execCommand("delete"),G.preventDefault(),G.stopImmediatePropagation())}},
onContentClick:function(G){G.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(G){G.defaultPrevented||G.currentTarget.tagName==="YTD-COMMENT-INPUT"&&g2(G.target)&&G.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.F9(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.F9(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(G,H){G=FnD(G,this.emojiManager,H).cloneNode(!0);for(H=G.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var Z=_.vn();_.D4_(Z,H);H=Z.nextSibling;break;case "DIV":(Z=H.lastChild)&&H.nextSibling&&_.ME(_.vn(),Z);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.KO(_.vn(),H);Z&&Z.nodeName==="BR"&&_.Ku(Z);Z=H;H.hasChildNodes()?(H=H.firstChild,
_.d4a(Z)):(H=H.nextSibling,_.Ku(Z));break;default:H=H.nextSibling}return QEq(G)},
setTextAreaValue:function(G){G||(G="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof G==="string"&&(G={runs:[{text:G}]});H.text=G},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();B2=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var G=this.getEditableTextArea_();G&&(_.aB(G,G.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.xI("HTML_DIR")==="rtl"){var G=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";G.setAttribute("dir",H)}},
handleInputEvent_:function(){var G=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(G=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(G,!0);this.updateCharCount_();G=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=G.scrollHeight>G.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var G=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:G})},
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(G){this.isEmojiButtonDisplayed&&(G.preventDefault(),G.stopImmediatePropagation(),G=G.clipboardData.getData("text/plain"),this.insertText_(G,!1,!1),_.N5(this.hostElement,"input"))},
insertText_:function(G,H,Z){H=H===void 0?!1:H;Z=Z===void 0?!0:Z;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&G){var Q=this.getInputRange_().cloneRange();this.emojiManager&&Q&&(H&&this.emojiInput.offsetStartOfRangeBy(Q,G.length),this.insertTextWithEmojis_(Q,G,Z),YVs(this.getEditableTextArea_().lastChild)||(Q=this.getInputRange_().cloneRange()),Q&&(this.emojiInput.updateSuggestions(Q,G),this.updateSuggestionOffset_(Q)))}},
getSimpleString:_.yn,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(G){return G?"focused":"not-focused"},
computePlaceholderText_:function(G){return this.getSimpleString(G)},
computeEditableText_:function(G){return this.getSimpleString(G)},
onPrefilledContentDismissed_:function(G){G.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(G,H){G?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(G){var H=this.getEditableTextArea_();[].concat(_.OP(G.dataTransfer.items)).forEach(function(Z){Z.kind==="string"&&Z.type.match("^text/plain")&&Z.getAsString(function(Q){H.appendChild(document.createTextNode(Q))})});
G.preventDefault()},
preventDefault_:function(G){G.preventDefault()},
onSuggestionInsert_:function(G){this.insertTextWithEmojis_(G.detail.range,G.detail.text)},
onEmojiSuggestionClick_:function(G){this.emojiInput.insertSuggestion(G.detail)},
updateSuggestionOffset_:function(G){if(this.emojiInput&&_.F9(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,Z=G.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-Z)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;G=G.getBoundingClientRect().left-H;_.F9(this.emojiInput).querySelector("#dropdown").style.marginLeft=G+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Lg("yt-post"));return this.localStorage}});var J1=function(){var G=_.C.apply(this,arguments)||this;G.currentCommentOptionIndex=0;G.isEmojiPickerDisplayed=!1;G.emojiManager=_.FY;G.isUgcEmpty=!1;G.userGeneratedCommentChangedHandler=function(){_.N5(G.hostElement,"ytd-pdg-user-generated-comment-changed");G.isEmojiYtdCommentInputEnabled&&(G.isUgcEmpty=!G.ytdCommentInputEl.getTextAreaValue())};
G.pasteHandler=function(H){H.preventDefault();H.stopImmediatePropagation();var Z;if(H=(Z=H.clipboardData)==null?void 0:Z.getData("text/plain"))Z=document.getSelection().getRangeAt(0),Z.collapsed||Z.deleteContents(),H=document.createTextNode(H),Z.insertNode(H),Z.selectNodeContents(H),Z.collapse(!1),H=window.getSelection(),H.removeAllRanges(),H.addRange(Z)};
G.onDocumentClick=function(H){if(G.isEmojiPickerDisplayed){var Z,Q,p;!(H.target instanceof Node)||(Z=H.composedPath())!=null&&Z.includes(G.editableTextEl)||(Q=H.composedPath())!=null&&Q.includes(G.emojiButtonEl)||(p=H.composedPath())!=null&&p.includes(G.emojiPickerEl)||(G.isEmojiPickerDisplayed=!1)}};
return G};
_.T(J1,_.C);_.g=J1.prototype;_.g.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.g.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.g.detached=function(){var G;(G=this.contentEl)==null||G.removeEventListener("input",this.userGeneratedCommentChangedHandler);var H;(H=this.contentEl)==null||H.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.g.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.g.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var G;this.contentEl.textContent=this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.g.reloadEmojis=function(){this.emojiPickerEl&&_.X(this.emojiPicker,_.g9_)&&this.emojiPickerEl.updateEmojiCategories()};
_.g.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.ZI(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.g.handleBackgroundColorStyling=function(){var G;if((G=this.currentCommentOption)==null?0:G.commentBackgroundColorArgb){var H;_.ZI(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.c$((H=this.currentCommentOption)==null?void 0:H.commentBackgroundColorArgb)})}else _.ZI(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.g.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var G;(G=this.contentEl)==null||G.focus()}};
_.g.onEditButtonClick=function(G){var H=document.getSelection();H&&this.contentEl&&(G.stopPropagation(),G.preventDefault(),H.selectAllChildren(this.contentEl),H.collapseToEnd())};
_.g.onContentDrop=function(G){var H=this;if(G.dataTransfer){G=_.I(G.dataTransfer.items);for(var Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z.kind==="string"&&Z.type.match("^text/plain")&&Z.getAsString(function(Q){var p;(p=H.contentEl)==null||p.appendChild(document.createTextNode(Q))})}};
_.g.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.g.getUserGeneratedCommentText=function(){var G,H=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(G=this.contentEl)==null?void 0:G.textContent;return H?H.trim():""};
_.g.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.g.onEmojiSelect=function(G){this.ytdCommentInputEl.onEmojiSelect(G)};
_.u4.Object.defineProperties(J1.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.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 G;return!((G=this.currentCommentOption)==null||!G.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(_.X((G=this.currentCommentOption)==null?void 0:G.chipRenderer,_.KH2)){var H;return _.X((H=this.currentCommentOption)==null?void 0:H.chipRenderer,_.KH2)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var G,H;return((G=this.data)==null?0:G.commentOptionRenderers)?_.X((H=this.data)==null?void 0:H.commentOptionRenderers[this.superThanksSelectedTierEntity.index],BYa):void 0}var Z,Q;return((Z=this.data)==null?0:Z.commentOptionRenderers)?_.X((Q=this.data)==null?void 0:Q.commentOptionRenderers[this.currentCommentOptionIndex],BYa):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var G;return this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var G;return this.rendererBehavior.getSimpleString((G=this.data)==null?void 0:G.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=_.X((G=this.data)==null?void 0:G.commentDialog,_.Taa))==null?void 0:H.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=_.X((G=this.data)==null?void 0:G.commentDialog,_.Taa))==null?void 0:H.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=_.X((G=this.data)==null?void 0:G.commentDialog,_.Taa))==null?void 0:H.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(H=_.X((G=this.data)==null?void 0:G.commentDialog,_.Taa))==null?void 0:H.emojiPicker;if(!_.X(Z,_.g9_)||!_.X(Z,_.g9_).categories)return!1;G=function(l){return l.emojiPickerCategoryRenderer?l.emojiPickerCategoryRenderer.emojiIds&&l.emojiPickerCategoryRenderer.emojiIds.length>0:l.emojiPickerUpsellCategoryRenderer?l.emojiPickerUpsellCategoryRenderer.emojis&&l.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var Q,p;return((Q=_.X(Z,_.g9_))==null?0:(p=Q.categories)==null?0:p.find(G))?!0:!1}}});
J1.prototype.onEmojiSelect=J1.prototype.onEmojiSelect;J1.prototype.dataChanged=J1.prototype.dataChanged;J1.prototype.currentCommentOptionChanged=J1.prototype.currentCommentOptionChanged;_.N([_.v(_.Up),_.A("design:type",Object)],J1.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],J1.prototype,"rendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.q6("#content-dom-if"),_.A("design:type",_.XT)],J1.prototype,"contentDomIfEl",void 0);_.N([_.q6("#content-no-emojis"),_.A("design:type",HTMLElement)],J1.prototype,"contentEl",void 0);_.N([_.q6("#container"),_.A("design:type",HTMLElement)],J1.prototype,"containerEl",void 0);_.N([_.q6("#comment-chip-container"),_.A("design:type",HTMLElement)],J1.prototype,"paidCommentChipContainerEl",void 0);_.N([_.q6("#text-input"),_.A("design:type",HTMLElement)],J1.prototype,"editableTextEl",void 0);
_.N([_.q6("#emoji-button"),_.A("design:type",HTMLElement)],J1.prototype,"emojiButtonEl",void 0);_.N([_.q6("#emoji-picker > yt-emoji-picker-renderer"),_.A("design:type",Object)],J1.prototype,"emojiPickerEl",void 0);_.N([_.q6("#text-input > ytd-comment-input"),_.A("design:type",Object)],J1.prototype,"ytdCommentInputEl",void 0);_.N([_.h(),_.A("design:type",Object)],J1.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],J1.prototype,"currentCommentOptionIndex",void 0);
_.N([_.h({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JQt}),_.A("design:type",Object)],J1.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.h(),_.A("design:type",Object)],J1.prototype,"isEmojiPickerDisplayed",void 0);_.N([_.h(),_.A("design:type",Object)],J1.prototype,"emojiManager",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],J1.prototype,"isUgcEmpty",void 0);
_.N([_.gx("currentCommentOption"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J1.prototype,"currentCommentOptionChanged",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],J1.prototype,"dataChanged",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],J1.prototype,"isEmojiYtdCommentInputEnabled",null);
_.N([_.z("data.title"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"title",null);_.N([_.z("data.authorText"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"channelName",null);_.N([_.z("data.commentOptionRenderers","currentCommentOption"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],J1.prototype,"shouldShowPaidCommentChipRenderer",null);
_.N([_.z("data.commentOptionRenderers","currentCommentOption"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"paidCommentChipRenderer",null);_.N([_.z("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"currentCommentOption",null);
_.N([_.z("data.defaultCommentText","superThanksSelectedTierEntity"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"commentText",null);_.N([_.z("data.placeholderText"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"placeholderText",null);_.N([_.z("data.commentDialog.commentDialogRenderer.editableText"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"editableText",null);
_.N([_.z("data.commentDialog.commentDialogRenderer.emojiButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"emojiButton",null);_.N([_.z("data.commentDialog.commentDialogRenderer.emojiPicker"),_.A("design:type",Object),_.A("design:paramtypes",[])],J1.prototype,"emojiPicker",null);
_.N([_.z("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],J1.prototype,"isEmojiButtonDisplayed",null);_.N([_.lq("yt-emoji-select"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],J1.prototype,"onEmojiSelect",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],J1);
_.m(J1,"ytd-pdg-comment-preview-renderer",function(){if(xID!==void 0)return xID;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return xID=G},{mode:2});var Ed6;var t1=function(){var G=_.C.apply(this,arguments)||this;G.selected=!1;return G};
_.T(t1,_.C);_.g=t1.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.g.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.g.dataChanged=function(){this.data&&(_.bS(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.ZI(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.c$(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.c$(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.g.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.g.onClick=function(){this.logClick()};
_.g.onKeyboardSelect=function(){_.N5(this.hostElement,"tap");this.onClick()};
_.g.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
t1.prototype.onClick=t1.prototype.onClick;t1.prototype.selectedChanged=t1.prototype.selectedChanged;t1.prototype.dataChanged=t1.prototype.dataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],t1.prototype,"componentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.vZ),_.A("design:type",Object)],t1.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.v(_.hv),_.A("design:type",Object)],t1.prototype,"ironSelectableBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],t1.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],t1.prototype,"shownThumbnail",void 0);_.N([_.h(),_.A("design:type",Object)],t1.prototype,"basePriceText",void 0);_.N([_.h(),_.A("design:type",Object)],t1.prototype,"purchaseCommand",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],t1.prototype,"selected",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t1.prototype,"dataChanged",null);_.N([_.gx("selected"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t1.prototype,"selectedChanged",null);_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],t1.prototype,"onClick",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],t1);
_.m(t1,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Ed6!==void 0)return Ed6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Ed6=G},{mode:1});var kW=function(){var G=_.C.apply(this,arguments)||this;G.selectedItemIndex=0;G.buyButtonDisabled=!1;return G};
_.T(kW,_.C);_.g=kW.prototype;
_.g.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]]"}}}}}};
_.g.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var G;var H=(G=_.X(this.data.colorSlider,u1k))==null?void 0:G.notches[this.selectedItemIndex].purchaseCommand}else{var Z;H=(Z=_.X(this.data.selectableItemButtons[this.selectedItemIndex],tY6))==null?void 0:Z.purchaseCommand}if(H){G=_.X(H,_.ka_);G.productData||(G.productData={});var Q;G.productData={pdgData:{commentMessageText:(Q=this.commentPreviewRenderer)==null?void 0:Q.getUserGeneratedCommentText()}};
_.N5(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(H)}}};
_.g.dataChanged=function(){if(this.data){_.FY.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.MRw(_.FY,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.FY.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var G;this.buyButtonDisabled=!((G=_.X(this.data.commentPreview,JVq))==null||!G.placeholderText);this.updatePriceSelectorStatus();var H;if((H=this.data)==null?0:H.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;G=[];this.data.preloadImages&&(G=this.data.preloadImages);
G=G.map(function(Z){return _.N$(Z.thumbnails,1920)});
G=_.I(G);for(H=G.next();!H.done;H=G.next())(H=H.value)&&_.Cy3(H).thenCatch(function(){_.Rp(Error("Il"))})}};
_.g.superThanksSelectedTierEntityChanged=function(){var G;(this==null?void 0:(G=this.superThanksSelectedTierEntity)==null?void 0:G.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.g.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.g.updatePriceSelectorStatus=function(){this.isColorSlider?(_.F9(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.F9(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.F9(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.F9(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.g.closeBuyFlow=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.g.onUserGeneratedContentChanged=function(){var G;this.buyButtonDisabled=!((G=this.commentPreviewRenderer)==null?0:G.getUserGeneratedCommentText())};
_.g.updateSelectedItemIndexFromBinding=function(G){this.selectedItemIndex=G.detail.value};
_.u4.Object.defineProperties(kW.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var G;return!((G=this.data)==null||!G.disclaimerText)}}});
kW.prototype.onUserGeneratedContentChanged=kW.prototype.onUserGeneratedContentChanged;kW.prototype.closeBuyFlow=kW.prototype.closeBuyFlow;kW.prototype.selectedItemIndexChanged=kW.prototype.selectedItemIndexChanged;kW.prototype.superThanksSelectedTierEntityChanged=kW.prototype.superThanksSelectedTierEntityChanged;kW.prototype.dataChanged=kW.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],kW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],kW.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],kW.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],kW.prototype,"selectedItemIndex",void 0);_.N([_.h(),_.A("design:type",Boolean)],kW.prototype,"isColorSlider",void 0);
_.N([_.h(),_.A("design:type",Object)],kW.prototype,"buyButtonDisabled",void 0);_.N([_.h({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:JQt}),_.A("design:type",Object)],kW.prototype,"superThanksSelectedTierEntity",void 0);_.N([_.q6("ytd-pdg-comment-preview-renderer"),_.A("design:type",Object)],kW.prototype,"commentPreviewRenderer",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],kW.prototype,"ytdReduxBehavior",void 0);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kW.prototype,"dataChanged",null);_.N([_.gx("superThanksSelectedTierEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kW.prototype,"superThanksSelectedTierEntityChanged",null);_.N([_.gx("selectedItemIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kW.prototype,"selectedItemIndexChanged",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kW.prototype,"closeBuyFlow",null);_.N([_.lq("ytd-pdg-user-generated-comment-changed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kW.prototype,"onUserGeneratedContentChanged",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],kW.prototype,"isDisclaimerTextShown",null);
_.N([_.O({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],kW);
_.m(kW,"yt-super-vod-buy-flow-content-renderer",function(){if(Nds!==void 0)return Nds;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Nds=G},{mode:1});var YTc;var D5=function(){var G=_.C.apply(this,arguments)||this;G.lottieAnimationRef={};return G};
_.T(D5,_.C);_.g=D5.prototype;_.g.created=function(){_.AS.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.pH(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.g.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.N5(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.g.detached=function(){this.autoCloseJobId&&_.Ui.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.pH(this,this.onPopupIronOverlayOpened))};
_.g.dataChanged=function(){var G=this;this.data&&this.data.autoCloseDelay&&(_.AZ(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.E6(_.Ui,function(){G.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.ZI(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.g.onDOMLoadedLottie=function(){var G=this,H,Z,Q=Number((H=this.data)==null?void 0:(Z=H.autoCloseDelay)==null?void 0:Z.seconds)||0;this.fadeOutJobId=_.E6(_.Ui,function(){G.lottiePlayerEl.classList.add("fadeout")},(Q-.25)*1E3);
this.autoCloseJobId=_.E6(_.Ui,function(){G.closePopup()},Q*1E3)};
_.g.openPopup=function(){this.ironOverlayBehavior.open()};
_.g.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.AZ(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.El(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.tp().resolve(_.Dk).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Ui.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Ui.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.g.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var G,H;(G=this.lottieAnimationRef)==null||(H=G.lottieEl)==null||H.destroy();G=this.data.lottie;var Z,Q;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:G.url+"_"+Math.random(),path:G.url,autoplay:!0,loop:(Q=(Z=G.settings)==null?void 0:Z.loop)!=null?Q:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.u4.Object.defineProperties(D5.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var G,H;return!!((G=this.data)==null?0:(H=G.lottie)==null?0:H.url)}}});
D5.prototype.maybeInitializeLottie=D5.prototype.maybeInitializeLottie;D5.prototype.dataChanged=D5.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],D5.prototype,"rendererBehavior",void 0);_.N([_.v(_.Fv),_.A("design:type",Object)],D5.prototype,"ironOverlayBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],D5.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],D5.prototype,"lottiePlayerProps",void 0);
_.N([_.h(),_.A("design:type",Object)],D5.prototype,"lottieAnimationRef",void 0);_.N([_.q6("ytd-lottie-player"),_.A("design:type",HTMLElement)],D5.prototype,"lottiePlayerEl",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D5.prototype,"dataChanged",null);_.N([_.z("data"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],D5.prototype,"hasLottieAnimation",null);
_.N([_.gx("data.lottie.url"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D5.prototype,"maybeInitializeLottie",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],D5);
_.m(D5,"ytd-desktop-image-overlay-renderer",function(){if(YTc!==void 0)return YTc;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return YTc=G},{mode:1});var F8c;var dH=function(){return _.C.apply(this,arguments)||this};
_.T(dH,_.C);_.g=dH.prototype;_.g.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"}}}}};
_.g.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",_.pH(this,this.closePopup))};
_.g.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.pH(this,this.closePopup))};
_.g.dataChanged=function(){_.xk(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.X(this.data.header,SFt)&&(this.hasBackgroundBanner=!!_.X(this.data.header,SFt).backgroundBanner)};
_.g.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.pH(this,this.closePopup))};
_.g.closePopup=function(){this.data&&this.data.onCloseCommand&&_.L9(this.hostElement,[this.data.onCloseCommand])};
dH.prototype.handleBuyflowSelectionSubmitted=dH.prototype.handleBuyflowSelectionSubmitted;dH.prototype.dataChanged=dH.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],dH.prototype,"data",void 0);
_.N([_.h({value:!0,reflectToAttribute:!0}),_.A("design:type",Boolean)],dH.prototype,"hasBackgroundBanner",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dH.prototype,"dataChanged",null);_.N([_.lq("yt-pdg-buy-flow-selection-submitted"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],dH.prototype,"handleBuyflowSelectionSubmitted",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],dH);
_.m(dH,"ytd-pdg-buy-flow-renderer",function(){if(F8c!==void 0)return F8c;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return F8c=G},{mode:1});var bcs;var e1=function(){var G=_.C.apply(this,arguments)||this;G.isOpen=!1;G.isPlaylistCreated=!1;return G};
_.T(e1,_.C);_.g=e1.prototype;_.g.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.g.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.N5(this.hostElement,"yt-refit")};
_.g.onCreateTap=function(){var G=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.L9(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(H,Z){if(!_.V("killswitch_ep_in_create_playlist_response")&&(Z==null?0:Z.actions))for(H=_.I(Z.actions),Z=H.next();!Z.done;Z=H.next())Z=Z.value,_.X(Z,_.nM)&&G.ytComponentBehavior.resolveCommand(Z)}}]),this.isPlaylistCreated=!0)};
_.g.onKeydown=function(G){if(G.keyCode===13)this.onCreateTap()};
_.g.onServiceRequestCompleted=function(G){G.stopPropagation();_.AZ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.g.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
e1.prototype.onServiceRequestCompleted=e1.prototype.onServiceRequestCompleted;e1.prototype.onKeydown=e1.prototype.onKeydown;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],e1.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],e1.prototype,"isOpen",void 0);
_.N([_.h(),_.A("design:type",Object)],e1.prototype,"isPlaylistCreated",void 0);_.N([_.h({value:{REQUIRED_LABEL:_.Zg("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Zg("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.A("design:type",Object)],e1.prototype,"addToStrings",void 0);_.N([_.h({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.A("design:type",Array)],e1.prototype,"privacyBadge",void 0);
_.N([_.q6("#privacy-input"),_.A("design:type",Object)],e1.prototype,"privacyInput",void 0);_.N([_.q6("#name-input"),_.A("design:type",Object)],e1.prototype,"nameInput",void 0);_.N([_.lq("keydown"),_.A("design:type",Function),_.A("design:paramtypes",[KeyboardEvent]),_.A("design:returntype")],e1.prototype,"onKeydown",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],e1.prototype,"onServiceRequestCompleted",null);
_.N([_.O({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],e1);
_.m(e1,"ytd-add-to-playlist-create-renderer",function(){if(bcs!==void 0)return bcs;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return bcs=G},{mode:1});var Gnq;var HCA;var nz=function(){var G=_.C.apply(this,arguments)||this;G.transferState="TRANSFER_STATE_UNKNOWN";return G};
_.T(nz,_.C);nz.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
nz.prototype.onCheckboxChange=function(G){var H=this;this.data&&_.rx(this,"yt-playlist-checkbox-changed",function(){var Z=_.a_(G).checked?H.data.addToPlaylistServiceEndpoint:H.data.removeFromPlaylistServiceEndpoint;Z&&_.tp().resolve(_.Dk).resolveCommand(Z,{form:{element:H.hostElement}});_.V("dl_playlist_killswitch")||H.transferState!=="TRANSFER_STATE_UNKNOWN"&&H.transferState!=="TRANSFER_STATE_FAILED"&&H.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:H.data.playlistId,action:"ACTION_SYNC"}})},
100)};
nz.prototype.computeIconType=function(G){return G?"yt-icons:"+G.toLowerCase():null};
nz.prototype.dataChanged=nz.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nz.prototype,"data",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],nz.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],nz.prototype,"ytComponentBehavior",void 0);_.N([_.q6("#checkbox"),_.A("design:type",HTMLInputElement)],nz.prototype,"checkbox",void 0);
_.N([_.h({selector:_.z9,selectorArgs:["data.playlistId"]}),_.A("design:type",String)],nz.prototype,"transferState",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],nz.prototype,"dataChanged",null);_.N([_.O({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],nz);
_.m(nz,"ytd-playlist-add-to-option-renderer",function(){if(HCA!==void 0)return HCA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return HCA=G},{mode:1});var sch=_.y(function(G){var H=G.data;return _.J("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.J("div",null,_.J(_.Fe,{text:function(){return H().title}})),_.J(_.k,{cond:function(){return H().subtitle},
then:function(Z){return _.J("div",{class:"ytdMenuTitleRendererSubtitle"},_.J(_.Fe,{text:Z}))}}))},"lj");
sch.idomCompat=!0;_.RX(sch,"ytd-menu-title-renderer",{props:{data:_.b3}});var Vm=function(){var G=_.C.apply(this,arguments)||this;G.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Zg("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};G.closeButtonAriaLabel=_.Zg("SBOX_INAPPROPRIATE_CANCEL");G.dialog=_.V("desktop_add_to_playlist_renderer_dialog_popup");return G};
_.T(Vm,_.C);_.g=Vm.prototype;_.g.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"}}}};
_.g.onPopupOpened=function(){_.Gq(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.g.onPopupClosed=function(){_.Gq(this.playlists,"scrollable",!1)};
_.g.computeAriaLabel=function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.I(this.data.actions);for(var H=G.next();!H.done;H=G.next())if(H=H.value,H.menuTitleRenderer)return _.yn(H.menuTitleRenderer.title)}};
_.g.onTapClose=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.u4.Object.defineProperties(Vm.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var G;if(this==null?0:(G=this.data)==null?0:G.actions){G=_.I(this.data.actions);for(var H=G.next();!H.done;H=G.next())if(H=H.value,H.menuTitleRenderer)return H.menuTitleRenderer}return!1}}});
Vm.prototype.onPopupClosed=Vm.prototype.onPopupClosed;Vm.prototype.onPopupOpened=Vm.prototype.onPopupOpened;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Vm.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Vm.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],Vm.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Vm.prototype,"addToStrings",void 0);_.N([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.A("design:type",String)],Vm.prototype,"ariaLabel",void 0);_.N([_.h(),_.A("design:type",String)],Vm.prototype,"closeButtonAriaLabel",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Vm.prototype,"dialog",void 0);
_.N([_.q6("#playlists"),_.A("design:type",HTMLElement)],Vm.prototype,"playlists",void 0);_.N([_.q6("ytd-add-to-playlist-create-renderer"),_.A("design:type",Object)],Vm.prototype,"createRenderer",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],Vm.prototype,"menuTitleRenderer",null);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vm.prototype,"onPopupOpened",null);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Vm.prototype,"onPopupClosed",null);_.N([_.O({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Vm);
_.m(Vm,"ytd-add-to-playlist-renderer",function(){if(Gnq!==void 0)return Gnq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Gnq=G},{mode:1});var ZCq;var $W=function(){var G=_.C.apply(this,arguments)||this;G.isPlaylistEditComplete=!1;G.isCollabEngagementDisabled=!1;G.closeButtonAriaLabel=_.Zg("SBOX_INAPPROPRIATE_CANCEL");G.saveButton={title:_.Zg("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"};G.onValueChanged=function(){G.updateSaveButtonState();G.computeCollabEngagementDisabled()};
return G};
_.T($W,_.C);_.g=$W.prototype;_.g.attached=function(){this.JSC$20855_scroller&&(this.JSC$20855_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20855_scroller.attached&&typeof this.JSC$20855_scroller.attached==="function"&&this.JSC$20855_scroller.attached())};
_.g.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.g.onPopupClosed=function(){this.reset()};
_.g.close=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.g.onClickSave=function(){var G=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var H=[];this.nameInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var Z=Number(this.privacyInput.value);isNaN(Z)||H.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:Z})}this.votingInput.value!==null&&(Z=this.votingInput.value)&&H.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:Z});if(H.length>0){var Q;_.X((Q=this.data)==null?void 0:Q.updateSettingsEndpoint,_.A$).actions=H;var p;if((p=this.data)==null?0:p.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){G.close()}}}),this.isPlaylistEditComplete=!0}}};
_.g.computePrivacyBadge=function(G){return G?[{metadataBadgeRenderer:G}]:[]};
_.g.computeEditorData=function(G){var H,Z;return G==null?void 0:(H=G.sections)==null?void 0:(Z=H[0])==null?void 0:Z.playlistSettingsEditorCasualSectionRenderer};
_.g.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.g.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}}}}}};
_.g.computeAriaLabel=function(){var G,H,Z,Q=(G=this.data)==null?void 0:(H=G.sections)==null?void 0:(Z=H[0])==null?void 0:Z.playlistSettingsEditorCasualSectionRenderer;return _.yn(Q==null?void 0:Q.title)};
_.g.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"}))};
_.g.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.g.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.g.isNameChanged=function(){var G,H,Z;return(((G=this.editorData)==null?void 0:(H=G.name)==null?void 0:(Z=H.textInputFormFieldRenderer)==null?void 0:Z.value)||"")!==(this.nameInput.value||"")};
_.g.isDescriptionChanged=function(){var G,H,Z;return(((G=this.editorData)==null?void 0:(H=G.description)==null?void 0:(Z=H.textInputFormFieldRenderer)==null?void 0:Z.value)||"")!==(this.descriptionInput.value||"")};
_.g.isPrivacyChanged=function(){var G,H,Z,Q,p,l,q,u;return((q=(G=this.editorData)==null?void 0:(H=G.privacy)==null?void 0:(Z=H.dropdownFormFieldRenderer)==null?void 0:(Q=Z.dropdown)==null?void 0:(p=Q.dropdownRenderer)==null?void 0:(l=p.entries)==null?void 0:l.find(function(B){var t;return B==null?void 0:(t=B.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(u=q.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.privacyInput.value};
_.g.isVotingChanged=function(){var G,H,Z,Q,p,l,q,u;return((q=(G=this.editorData)==null?void 0:(H=G.voting)==null?void 0:(Z=H.dropdownFormFieldRenderer)==null?void 0:(Q=Z.dropdown)==null?void 0:(p=Q.dropdownRenderer)==null?void 0:(l=p.entries)==null?void 0:l.find(function(B){var t;return B==null?void 0:(t=B.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(u=q.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.votingInput.value};
$W.prototype.onPopupClosed=$W.prototype.onPopupClosed;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],$W.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],$W.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$W.prototype,"ytRendererStamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],$W.prototype,"data",void 0);_.N([_.h({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.A("design:type",Array)],$W.prototype,"privacyBadge",void 0);_.N([_.h({computed:"computeEditorData(data)"}),_.A("design:type",Object)],$W.prototype,"editorData",void 0);_.N([_.h(),_.A("design:type",Object)],$W.prototype,"isPlaylistEditComplete",void 0);_.N([_.h(),_.A("design:type",Object)],$W.prototype,"isCollabEngagementDisabled",void 0);
_.N([_.h({value:{REQUIRED_LABEL:_.Zg("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Zg("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.A("design:type",Object)],$W.prototype,"addToStrings",void 0);_.N([_.h({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.A("design:type",String)],$W.prototype,"ariaLabel",void 0);_.N([_.h(),_.A("design:type",String)],$W.prototype,"closeButtonAriaLabel",void 0);
_.N([_.h(),_.A("design:type",Object)],$W.prototype,"saveButton",void 0);_.N([_.q6("#name-input"),_.A("design:type",Object)],$W.prototype,"nameInput",void 0);_.N([_.q6("#description-input"),_.A("design:type",Object)],$W.prototype,"descriptionInput",void 0);_.N([_.q6("#privacy-input"),_.A("design:type",Object)],$W.prototype,"privacyInput",void 0);_.N([_.q6("#voting-input"),_.A("design:type",Object)],$W.prototype,"votingInput",void 0);
_.N([_.q6("#scroller"),_.A("design:type",Object)],$W.prototype,"JSC$20855_scroller",void 0);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],$W.prototype,"onPopupClosed",null);_.N([_.h(),_.A("design:type",Object)],$W.prototype,"onValueChanged",void 0);_.N([_.O({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],$W);
_.m($W,"ytd-playlist-settings-editor-renderer",function(){if(ZCq===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);ZCq=G}G=ZCq;return G},{mode:1});var Qc8;_.eQ("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var XF=function(){return _.C.apply(this,arguments)||this};
_.T(XF,_.C);_.g=XF.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.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 G=this.get("data.nextButton.buttonRenderer.navigationEndpoint");G&&(this.nextNavigationEndpoint=G,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.g.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 G={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",G)}}};
_.g.onPopupOpened=function(G){G.detail!==this&&G.detail!==this.hostElement||!_.V("enable_premium_voluntary_pause")||_.AZ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.g.onNextButtonTap=function(){var G=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);G&&this.ytdOpenPopupBehavior.openPopup(G)};
_.g.updateSelectedResponseIndexFromBinding=function(G){this.selectedResponseIndex=G.detail.value};
XF.prototype.onPopupOpened=XF.prototype.onPopupOpened;XF.prototype.onSelectedResponseIndexChange=XF.prototype.onSelectedResponseIndexChange;XF.prototype.dataChanged=XF.prototype.dataChanged;_.N([_.v(_.Ia),_.A("design:type",Object)],XF.prototype,"ytdOpenPopupBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],XF.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],XF.prototype,"selectedResponseIndex",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XF.prototype,"dataChanged",null);_.N([_.gx("selectedResponseIndex"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],XF.prototype,"onSelectedResponseIndexChange",null);
_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],XF.prototype,"onPopupOpened",null);_.N([_.O({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],XF);
_.m(XF,"ytd-red-cancel-survey-renderer",function(){if(Qc8!==void 0)return Qc8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return Qc8=G},{mode:1});var pXk;var c2=function(){var G=_.C.apply(this,arguments)||this;G.closeButtonAriaLabel=_.Zg("SBOX_INAPPROPRIATE_CANCEL");return G};
_.T(c2,_.C);c2.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
c2.prototype.onClickClose=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],c2.prototype,"rendererStamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],c2.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],c2.prototype,"closeButtonAriaLabel",void 0);_.N([_.O({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],c2);
_.m(c2,"ytd-search-filter-options-dialog-renderer",function(){if(pXk!==void 0)return pXk;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return pXk=G},{mode:1});var lVq;var gHm=function(){return function(G){G=G.availabilityType;return G===void 0||G==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||G==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var TR=function(){var G=_.C.apply(this,arguments)||this;G.qualityOptions=[];G.upsellOptions=[];G.showUpsellSection=!1;G.rememberSettingsChecked=!1;return G};
_.T(TR,_.C);_.g=TR.prototype;_.g.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}}}}};
_.g.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.g.updateQualityOptions=function(){if(this.formats===void 0)_.AZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var G=[],H=[];this.showUpsellSection=!1;for(var Z=_.I(this.formats),Q=Z.next();!Q.done;Q=Z.next())(Q=Q.value)&&(Q.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?H.push(Q):G.push(Q));G.length&&(this.qualityOptions=lHL(G));H.length&&(this.showUpsellSection=!0,this.upsellOptions=lHL(H))}};
_.g.updateRememberString=function(){if(this.downloadQualityPickerEntity)var G=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var H;G=(H=this.data)==null?void 0:H.premiumRememberSettingString}else{var Z;G=(Z=this.data)==null?void 0:Z.rememberSettingString}G=G===void 0?_.Zg("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):G;this.rememberSettingsCheckboxRenderer={title:_.Nm(G),disabled:!1}};
_.g.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.u4.Object.defineProperties(TR.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
TR.prototype.updateRememberString=TR.prototype.updateRememberString;TR.prototype.updateQualityOptions=TR.prototype.updateQualityOptions;TR.prototype.dataChanged=TR.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],TR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],TR.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],TR.prototype,"data",void 0);
_.N([_.v(_.Up),_.A("design:type",Object)],TR.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Boolean)],TR.prototype,"selectedUpsellQuality",void 0);_.N([_.h({computed:"computeIcon_(data.premiumIcon)",value:""}),_.A("design:type",String)],TR.prototype,"premiumIcon",void 0);_.N([_.h({selector:S6c,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.A("design:type",Object)],TR.prototype,"downloadQualityPickerEntity",void 0);
_.N([_.h(),_.A("design:type",Array)],TR.prototype,"qualityOptions",void 0);_.N([_.h(),_.A("design:type",Array)],TR.prototype,"upsellOptions",void 0);_.N([_.h(),_.A("design:type",Object)],TR.prototype,"showUpsellSection",void 0);_.N([_.h(),_.A("design:type",Object)],TR.prototype,"rememberSettingsCheckboxRenderer",void 0);_.N([_.q6("#remember-settings"),_.A("design:type",HTMLInputElement)],TR.prototype,"rememberSettingsCheckbox",void 0);
_.N([_.h(),_.A("design:type",Object)],TR.prototype,"rememberSettingsChecked",void 0);_.N([_.h(),_.A("design:type",Function)],TR.prototype,"onRememberSettingsCheckedChanged",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TR.prototype,"dataChanged",null);_.N([_.gx("downloadQualityPickerEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TR.prototype,"updateQualityOptions",null);
_.N([_.gx("selectedUpsellQuality"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],TR.prototype,"updateRememberString",null);_.N([_.O({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],TR);
_.m(TR,"ytd-download-quality-selector-content",function(){if(lVq!==void 0)return lVq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return lVq=G},{mode:1});var gvq;var fz=function(){var G=_.C.apply(this,arguments)||this;G.selectedUpsellQuality=!1;G.qualityOptions=[];G.useUpsellDismissAlternate=_.V("use_not_now_dl_upsell_dismiss_cta");G.shouldShowAlternateUpsellDimiss=!1;G.rememberSettings=!1;G.rememberSettingsChecked=!1;G.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};G.rememberSettingsCheckedChanged=function(H){G.rememberSettingsChecked=H};
return G};
_.T(fz,_.C);_.g=fz.prototype;
_.g.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Nm(_.Zg("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Nm(_.Zg("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Nm(_.Zg("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Nm(_.Zg("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.g.updateQualityOptions=function(){this.formats===void 0?_.AZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=lHL(this.formats)};
_.g.onQualityOptionsSelect=function(G){if(this.qualityOptions&&G){G!==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 H=_.I(this.qualityOptions.entries()),Z=H.next();!Z.done;Z=
H.next()){Z=_.I(Z.value);var Q=Z.next().value;Z=Z.next().value;var p=void 0,l=void 0;if(((p=Z)==null?void 0:(l=p.settingsRadioOptionRenderer)==null?void 0:l.id)===G){this.selectedQualityIndex=Q;G=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((G=this.formats[Q])==null?void 0:G.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.g.onClickSubmit=function(){var G;if((G=this.downloadButtonRenderer)==null||!G.isDisabled){var H,Z;G=(Z=(H=this.data)==null?void 0:H.onSubmitEndpoint)!=null?Z:{};var Q,p;if(this.formats&&(((Q=_.X(G,_.Qt))==null?0:Q.videoId)||((p=_.X(G,_.lP))==null?0:p.playlistId))){var l,q,u,B,t,D;H={formatType:(B=(l=this.formats)==null?void 0:(q=l[(u=this.selectedQualityIndex)!=null?u:0])==null?void 0:q.format)!=null?B:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(t=this.getOfflineEndpoint(G))==null?void 0:(D=t.actionParams)==null?void 0:D.settingsAction)};this.getOfflineEndpoint(G).actionParams=H;this.ytComponentBehavior.resolveCommand(G)}_.AZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.g.onClickUpsell=function(){var G;if((G=this.upsellButtonRenderer)==null||!G.isDisabled){var H,Z;G=(Z=(H=this.data)==null?void 0:H.upsellEndpoint)!=null?Z:{};this.ytComponentBehavior.resolveCommand(G);_.AZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);H="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var Q,p,l,q;H=(q=(Q=this.formats)==null?void 0:(p=Q[(l=this.selectedQualityIndex)!=null?l:0])==null?void 0:p.format)!=null?q:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:H}})}};
_.g.onClickClose=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.g.getOfflineSettingsAction=function(G,H){return G?H===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":H:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.g.getOfflineEndpoint=function(G){return _.X(G,_.Qt)?_.X(G,_.Qt):_.X(G,_.lP)};
_.u4.Object.defineProperties(fz.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Nm(_.Zg("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var G;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(G=this.data)==null?void 0:G.qualityFormats}}});
fz.prototype.updateQualityOptions=fz.prototype.updateQualityOptions;fz.prototype.dataChanged=fz.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],fz.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],fz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],fz.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Number)],fz.prototype,"selectedQualityIndex",void 0);_.N([_.h(),_.A("design:type",Object)],fz.prototype,"selectedUpsellQuality",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],fz.prototype,"ytdReduxBehavior",void 0);
_.N([_.h({selector:S6c,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.A("design:type",Object)],fz.prototype,"downloadQualityPickerEntity",void 0);_.N([_.h(),_.A("design:type",Array)],fz.prototype,"qualityOptions",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],fz.prototype,"useUpsellDismissAlternate",void 0);_.N([_.h(),_.A("design:type",Object)],fz.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.N([_.h(),_.A("design:type",Object)],fz.prototype,"downloadButtonRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],fz.prototype,"upsellButtonRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],fz.prototype,"cancelButtonRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],fz.prototype,"upsellCancelButtonRenderer",void 0);_.N([_.h(),_.A("design:type",Object)],fz.prototype,"rememberSettings",void 0);_.N([_.h(),_.A("design:type",Object)],fz.prototype,"rememberSettingsChecked",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fz.prototype,"dataChanged",null);_.N([_.gx("downloadQualityPickerEntity"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],fz.prototype,"updateQualityOptions",null);_.N([_.O({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],fz);
_.m(fz,"ytd-download-quality-selector-renderer",function(){if(gvq!==void 0)return gvq;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return gvq=G},{mode:1});var IVq;var v2=function(){return _.C.apply(this,arguments)||this};
_.T(v2,_.C);v2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
v2.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"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],v2.prototype,"data",void 0);_.N([_.h({computed:"computeIcon_(data.infoIcon)"}),_.A("design:type",Object)],v2.prototype,"infoIcon",void 0);
_.N([_.h({computed:"computeIcon_(data.warningIcon)"}),_.A("design:type",Object)],v2.prototype,"warningIcon",void 0);_.N([_.O({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],v2);
_.m(v2,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(IVq!==void 0)return IVq;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return IVq=G},{mode:1});var q2j;var W2=function(){return _.C.apply(this,arguments)||this};
_.T(W2,_.C);W2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
W2.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"}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],W2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],W2.prototype,"data",void 0);_.N([_.O({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],W2);
_.m(W2,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(q2j!==void 0)return q2j;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return q2j=G},{mode:1});var S28;var zR=function(){return _.C.apply(this,arguments)||this};
_.T(zR,_.C);zR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zR.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"}}}}};
zR.prototype.onServiceRequestSentOrCompleted=function(G,H){H&&H.actions&&H.actions.length>0&&_.AZ(this.hostElement,"yt-close-popup-action",[this.is])};
zR.prototype.onServiceRequestSentOrCompleted=zR.prototype.onServiceRequestSentOrCompleted;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zR.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],zR.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zR.prototype,"data",void 0);
_.N([_.lq("yt-service-request-completed"),_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],zR.prototype,"onServiceRequestSentOrCompleted",null);_.N([_.O({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],zR);
_.m(zR,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(S28!==void 0)return S28;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return S28=G},{mode:1});var uIL;var Kz=function(){var G=_.C.apply(this,arguments)||this;G.submitButtonDisabled=!0;return G};
_.T(Kz,_.C);_.g=Kz.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.g.onDataChanged=function(){var G,H,Z;if(((G=this.data)==null?void 0:(H=G.confirmButton)==null?void 0:(Z=H.buttonRenderer)==null?void 0:Z.isDisabled)!==void 0){var Q,p,l;this.submitButtonDisabled=(Q=this.data)==null?void 0:(p=Q.confirmButton)==null?void 0:(l=p.buttonRenderer)==null?void 0:l.isDisabled}};
_.g.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.g.updateSubmitButtonDisabledFromBinding=function(G){this.submitButtonDisabled=G.detail.value};
_.g.updateSubmitButtonDisabledFromConfirmCheckbox=function(G){this.submitButtonDisabled=!G.detail.value};
Kz.prototype.onDataChanged=Kz.prototype.onDataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kz.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Kz.prototype,"submitButtonDisabled",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Kz.prototype,"onDataChanged",null);_.N([_.O({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Kz);
_.m(Kz,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(uIL!==void 0)return uIL;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return uIL=G},{mode:1});var B6L;var M9=function(){return _.C.apply(this,arguments)||this};
_.T(M9,_.C);_.u4.Object.defineProperties(M9.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;return((G=this.data)==null?void 0:G.title)+" "+((H=this.data)==null?void 0:H.metadataPrimary)+" "+((Z=this.data)==null?void 0:Z.metadataSecondary)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],M9.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],M9.prototype,"data",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],M9.prototype,"ariaLabel",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],M9);
_.m(M9,"ytd-compact-product-list-item-renderer",function(){if(B6L!==void 0)return B6L;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return B6L=G},{mode:1});var Jns;var j1=function(){return _.C.apply(this,arguments)||this};
_.T(j1,_.C);j1.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]]"}}}}}};
_.u4.Object.defineProperties(j1.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],j1.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],j1.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],j1);
_.m(j1,"ytd-compact-product-list-renderer",function(){if(Jns!==void 0)return Jns;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Jns=G},{mode:1});var t0s;var P2=function(){return _.C.apply(this,arguments)||this};
_.T(P2,_.C);_.g=P2.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.g.getBackgroundUrl=function(){var G=this.get("data.headerImage.thumbnails");return G?"url("+_.N$(G,this.hostElement.clientWidth)+")":""};
_.g.onDataChanged=function(){var G=this.getBackgroundUrl();G&&(this.header.style.backgroundImage=G);G=_.$k();var H=_.Va(),Z=this.get("data.trackingParams");Z&&H&&G&&_.je(G,H,_.BT(Z));G=_.I(this.hostElement.querySelectorAll("yt-img-shadow"));for(H=G.next();!H.done;H=G.next())H.value.onShow()};
_.g.onPopupClosed=function(G){_.a_(G).localName==="ytd-membership-post-cancel-renderer"&&_.AZ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
P2.prototype.onPopupClosed=P2.prototype.onPopupClosed;P2.prototype.onDataChanged=P2.prototype.onDataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],P2.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],P2.prototype,"data",void 0);_.N([_.q6("#header"),_.A("design:type",HTMLDivElement)],P2.prototype,"header",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],P2.prototype,"onDataChanged",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],P2.prototype,"onPopupClosed",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],P2);
_.m(P2,"ytd-membership-post-cancel-renderer",function(){if(t0s!==void 0)return t0s;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return t0s=G},{mode:1});var knk;var rH=function(){return _.C.apply(this,arguments)||this};
_.T(rH,_.C);rH.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
rH.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],rH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],rH.prototype,"data",void 0);_.N([_.q6("ytd-feedback-survey-renderer"),_.A("design:type",Object)],rH.prototype,"feedbackSurveyRenderer",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],rH);
_.m(rH,"ytd-sponsorship-confirm-cancel-content",function(){if(knk!==void 0)return knk;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return knk=G},{mode:1});var Dp8;var wH=function(){var G=_.C.apply(this,arguments)||this;G.maybeSubmitFeedback=function(){G.content&&G.content.maybeSubmitFeedback()};
return G};
_.T(wH,_.C);_.g=wH.prototype;_.g.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.g.onYtPopupOpened=function(G,H){H===this&&this.data&&this.data.onOpenCommands&&_.El(this.hostElement,this.data.onOpenCommands,this.hostElement);_.AZ(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.g.onYtPopupClosed=function(G,H){(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.El(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestCompleted=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.g.onYtServiceRequestError=function(G){_.jP(this.hostElement,G.detail.error.message)};
_.g.onDataChanged=function(){if(this.isAttached){var G=this.backgroundUrl;G&&(_.F9(this.hostElement).querySelector("#header").style.backgroundImage=G)}};
_.u4.Object.defineProperties(wH.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return G?"url("+_.N$(G,this.hostElement.clientWidth)+")":""}}});
wH.prototype.onDataChanged=wH.prototype.onDataChanged;wH.prototype.onYtServiceRequestError=wH.prototype.onYtServiceRequestError;wH.prototype.onYtServiceRequestCompleted=wH.prototype.onYtServiceRequestCompleted;wH.prototype.onYtPopupClosed=wH.prototype.onYtPopupClosed;wH.prototype.onYtPopupOpened=wH.prototype.onYtPopupOpened;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],wH.prototype,"data",void 0);_.N([_.h({value:function(){return _.Zg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],wH.prototype,"closeButtonAriaLabel",void 0);_.N([_.q6("#scrollable"),_.A("design:type",Object)],wH.prototype,"scrollable",void 0);_.N([_.q6("ytd-sponsorship-confirm-cancel-content"),_.A("design:type",Object)],wH.prototype,"content",void 0);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],wH.prototype,"onYtPopupOpened",null);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],wH.prototype,"onYtPopupClosed",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wH.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],wH.prototype,"onYtServiceRequestError",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],wH.prototype,"onDataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],wH);
_.m(wH,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Dp8!==void 0)return Dp8;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Dp8=G},{mode:_.LH("kevlar_poly_si_batch_j081")?1:2});var dph;var h1=function(){return _.C.apply(this,arguments)||this};
_.T(h1,_.C);h1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],h1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],h1.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],h1);
_.m(h1,"ytd-sponsorships-celebration-content",function(){if(dph!==void 0)return dph;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return dph=
G},{mode:1});var ewm;var nvA=_.CM(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Cz=function(){var G=_.C.apply(this,arguments)||this;G.scriptsAppended=!1;G.useFullWidthPrimaryButton=!1;G.buttonOverrides={type:"tonal",style:"overlay-dark"};return G};
_.T(Cz,_.C);_.g=Cz.prototype;_.g.dataChanged=function(){var G;this.useFullWidthPrimaryButton=!((G=this.data)==null||!G.useFullWidthPrimaryButton)};
_.g.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.V("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onDataChanged=function(){var G;(G=this.header)==null||G.style.setProperty("background-color",this.backgroundColor);if(G=this.headerImageUrl){var H;(H=this.header)==null||H.style.setProperty("background-image",G)}H=_.$k(4);G=_.Va(4);var Z=this.get("data.trackingParams");if(Z&&G&&H){var Q=_.BT(Z);_.je(H,G,Q);_.V("combine_ve_grafts")?_.gr().graftServerVe(Z,G,4):_.je(H,G,Q)}H=_.I(this.hostElement.querySelectorAll("yt-img-shadow"));for(G=H.next();!G.done;G=H.next())G.value.onShow();if(H=this.get("data.gtmId"))_.P9(H,
_.xI("GL","")),this.setupConversionTracking()};
_.g.setupConversionTracking=function(){if(!this.scriptsAppended){var G=document.createElement("script");_.lE(G,_.Qk(nvA.join("")));document.head.appendChild(G);G=document.createElement("noscript");G.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(G);this.scriptsAppended=!0}};
_.g.onPopupClosed=function(G){if(_.a_(G).localName==="ytd-sponsorships-celebration-renderer"){_.AZ(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var H;this.data&&((H=this.data)==null?0:H.dismissCommand)&&_.HT.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.u4.Object.defineProperties(Cz.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.c$(G)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return G?"url("+_.N$(G,this.hostElement.getBoundingClientRect().width)+")":""}}});
Cz.prototype.onPopupClosed=Cz.prototype.onPopupClosed;Cz.prototype.onDataChanged=Cz.prototype.onDataChanged;Cz.prototype.dataChanged=Cz.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Cz.prototype,"data",void 0);
_.N([_.q6("#header"),_.A("design:type",HTMLElement)],Cz.prototype,"header",void 0);_.N([_.h(),_.A("design:type",Object)],Cz.prototype,"scriptsAppended",void 0);_.N([_.h({type:Boolean,reflectToAttribute:!0}),_.A("design:type",Object)],Cz.prototype,"useFullWidthPrimaryButton",void 0);_.N([_.h(),_.A("design:type",Object)],Cz.prototype,"buttonOverrides",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cz.prototype,"dataChanged",null);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cz.prototype,"onDataChanged",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Cz.prototype,"onPopupClosed",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Cz);
_.m(Cz,"ytd-sponsorships-celebration-renderer",function(){if(ewm!==void 0)return ewm;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return ewm=G},{mode:1});var V0c;var OH=function(){var G=_.C.apply(this,arguments)||this;G.isToggleChecked=!1;return G};
_.T(OH,_.C);OH.prototype.onDataChanged=function(){var G;this.isToggleChecked=((G=this.data)==null?void 0:G.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
OH.prototype.close=function(){var G;((G=this.data)==null?0:G.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
OH.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var G,H=_.X((G=this.data)==null?void 0:G.switchButton,kfq);H&&(this.isToggleChecked&&H.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOnInnertubeCommand),!this.isToggleChecked&&H.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOffInnertubeCommand))};
OH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OH.prototype.onDataChanged=OH.prototype.onDataChanged;_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],OH.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],OH.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],OH.prototype,"isToggleChecked",void 0);_.N([_.h({value:_.Zg("CLOSE")}),_.A("design:type",String)],OH.prototype,"closeButtonAriaLabel",void 0);
_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],OH.prototype,"onDataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],OH);
_.m(OH,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(V0c!==void 0)return V0c;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return V0c=G},{mode:1});var $po;var ae=function(){return _.C.apply(this,arguments)||this};
_.T(ae,_.C);_.g=ae.prototype;_.g.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"}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.detached=function(){this.playerElement.stop()};
_.g.onYtServiceRequestCompleted=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.g.onYtServiceRequestError=function(G){_.jP(this.hostElement,G.detail.error.message)};
_.g.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.g.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.g.getTier=function(G,H){return!G||!G.tiers||H<0?null:_.X(G.tiers[H],nnt)};
_.g.moreThanOne=function(G){return!!(G&&G.length>1)};
_.g.tierOverviewTap=function(G){var H=this;this.selectedTier=G.model.index;_.q2(this,function(){_.N5(H.hostElement,"yt-refit")})};
_.g.computeSelectedClass=function(G,H){return this.isSelected(G,H)?"selected":""};
_.g.computeButtonAriaPressed=function(G,H){return this.isSelected(G,H)?"true":"false"};
_.g.isSelected=function(G,H){return G===H};
_.g.onDataChanged=function(){_.F9(this.hostElement).querySelector("#header-overlay").style.visibility="";_.F9(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 G=_.I(this.hostElement.querySelectorAll("yt-img-shadow")),
H=G.next();!H.done;H=G.next())H.value.onShow();var Z;this.set("selectedTier",(Z=this.get("data.targetTierIndex"))!=null?Z:0);var Q;(G=(Q=this.data)==null?void 0:Q.onVisible)&&this.ytComponentBehavior.resolveCommand(G)};
_.g.initializeVe=function(G){var H=_.$k(),Z=_.Va(),Q=this.get("data.trackingParams");Z&&H&&(this.screenLayer=4,H=_.bW(_.QIv)(void 0,69877,{clientScreenNonce:H,visualElement:Z},void 0,void 0,void 0),_.cf(H,69877,4),Z=_.Va(4),Q&&Z&&(Q=_.BT(Q),_.je(H,Z,Q),G&&(this.offerVideoVe=_.bl(74659),_.je(H,Q,this.offerVideoVe))))};
_.g.setHeaderBackground=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.F9(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.c$(G);if(G=this.getHeaderImage())G=_.N$(G,screen.width),_.F9(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+G+")"};
_.g.getHeaderImage=function(){var G=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&G?G:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.g.setupVideoPlayer=function(G){var H=this,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1)return Z=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),Q=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.V("kevlar_player_update_killswitch")?H.playerElement.update({args:{autoplay:Z,video_id:G,player_params:Q}}):H.playerElement.loadVideoWithPlayerVars({autoplay:Z,video_id:G,player_params:Q}),
q.yield(H.playerElement.getPlayerPromise(),2);p=q.yieldResult;p.addEventListener("onStateChange",function(u){H.onPlayerStateChange(u)});
p.setScreenLayer(H.screenLayer);(l=_.$k(4))&&H.offerVideoVe&&_.r8(l,H.offerVideoVe);Z&&(H.pauseOtherPlayers(),H.playerElement.focusOnPlayer(),H.playerElement.getPlayer().hideControls(),_.wM(_.Ui,function(){H.fadeOutHeaderOverlay()},4E3));
_.K0(q)})};
_.g.onPlayerStateChange=function(G){G===1?this.backgroundPlayerElement&&(G=this.backgroundPlayerElement.player_.getPlayerState(),G!==1&&G!==3||this.backgroundPlayerElement.pause()):G===0&&(_.F9(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.F9(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.g.fadeOutHeaderOverlay=function(){_.F9(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.g.onHeaderTap=function(){if(this.offerVideo){_.F9(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var G;((G=this.playerElement.player_)==null?void 0:G.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(G=_.$k(4))&&this.offerVideoVe&&_.Co(G,this.offerVideoVe)}};
_.g.getBackgroundImageLayerClass=function(G){return G?"background-image-layer-with-video":""};
_.g.getHeaderClass=function(G){return G?"header-with-video":""};
_.g.getHeaderOverlayClass=function(G){return G?"header-overlay-with-video":""};
_.g.getTitleContainerClass=function(G,H){return G?"title-container-with-video":H?"title-container-without-video-flexible":"title-container-without-video"};
_.g.tierTitleDisplayStatus=function(G){return this.moreThanOne(G)?"hide":"show"};
_.g.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.tp().resolve(_.WM).getPlayerElement():this.backgroundPlayerElement=_.UO();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var G=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=G===1||G===3;this.backgroundPlayerElement.pause()}};
_.g.isMiniplayerActive=function(){return _.tp().resolve(_.WM).isMiniplayerActive()};
_.g.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("selected-tier-changed",this.selectedTier))};
ae.prototype.selectedTierChangedForBinding=ae.prototype.selectedTierChangedForBinding;ae.prototype.onDataChanged=ae.prototype.onDataChanged;ae.prototype.onYtPopupClosed=ae.prototype.onYtPopupClosed;ae.prototype.onYtPopupOpened=ae.prototype.onYtPopupOpened;ae.prototype.onYtServiceRequestError=ae.prototype.onYtServiceRequestError;ae.prototype.onYtServiceRequestCompleted=ae.prototype.onYtServiceRequestCompleted;
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],ae.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ae.prototype,"data",void 0);_.N([_.h({value:0}),_.A("design:type",Number)],ae.prototype,"selectedTier",void 0);
_.N([_.h({value:""}),_.A("design:type",String)],ae.prototype,"offerVideo",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],ae.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.N([_.h({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.LW(this)}}),
_.A("design:type",String)],ae.prototype,"playerId",void 0);_.N([_.q6("tp-yt-paper-dialog-scrollable"),_.A("design:type",Object)],ae.prototype,"scrollable",void 0);_.N([_.q6("ytd-sponsorships-tier-renderer"),_.A("design:type",Object)],ae.prototype,"tierRenderer",void 0);_.N([_.q6("#player"),_.A("design:type",Object)],ae.prototype,"playerElement",void 0);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ae.prototype,"onYtServiceRequestCompleted",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],ae.prototype,"onYtServiceRequestError",null);
_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ae.prototype,"onYtPopupOpened",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ae.prototype,"onYtPopupClosed",null);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ae.prototype,"onDataChanged",null);
_.N([_.gx("selectedTier"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ae.prototype,"selectedTierChangedForBinding",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],ae);
_.m(ae,"ytd-sponsorships-offer-renderer",function(){if($po!==void 0)return $po;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return $po=G},{mode:_.LH("kevlar_poly_si_batch_j077")?1:2});var XXL;var ym=function(){var G=_.C.apply(this,arguments)||this;G.buttonOverrides={type:"filled",style:"mono"};return G};
_.T(ym,_.C);ym.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}}}}}};
ym.prototype.backgroundColorChanged=function(){var G,H,Z,Q=(H=_.X((G=this.data)==null?void 0:G.content,VYo))==null?void 0:(Z=H.backgroundColor)==null?void 0:Z.backgroundColor;Q&&(G=_.X9(Q),_.F9(this.hostElement).querySelector("#banner").style.backgroundColor=G,_.F9(this.hostElement).querySelector("#abstract-art").style.backgroundColor=G)};
ym.prototype.attached=function(){this.JSC$20940_scroller&&(this.JSC$20940_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20940_scroller.attached&&typeof this.JSC$20940_scroller.attached==="function"&&this.JSC$20940_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ym.prototype.backgroundColorChanged=ym.prototype.backgroundColorChanged;_.N([_.h(),_.A("design:type",Object)],ym.prototype,"data",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("#scroller"),_.A("design:type",Object)],ym.prototype,"JSC$20940_scroller",void 0);_.N([_.h(),_.A("design:type",Object)],ym.prototype,"buttonOverrides",void 0);
_.N([_.gx("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],ym.prototype,"backgroundColorChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],ym);
_.m(ym,"ytd-sponsorships-promotion-celebration-renderer",function(){if(XXL!==void 0)return XXL;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return XXL=G},{mode:_.LH("kevlar_poly_si_batch_j077")?1:2});var cnA;var T6t;var oe=function(){return _.C.apply(this,arguments)||this};
_.T(oe,_.C);oe.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
oe.prototype.computeIsInitiallyChecked=function(G){return G===1};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],oe.prototype,"data",void 0);_.N([_.q6("#checkbox"),_.A("design:type",Object)],oe.prototype,"checkbox",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],oe);
_.m(oe,"ytd-subscription-toggle-option-renderer",function(){if(T6t!==void 0)return T6t;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return T6t=G},{mode:1});var mJ=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return G};
_.T(mJ,_.C);mJ.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"}}}};
mJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mJ.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var G=_.F9(this.hostElement).querySelector("#options").selected;G=this.data.options[G].subscriptionRadioOptionRenderer.serviceEndpoint;var H=_.F9(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");H&&G&&G.modifyChannelNotificationPreferenceEndpoint&&(H=H.getValue())&&(G.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[H]);_.tp().resolve(_.Dk).resolveCommand(G,{form:{element:this.hostElement}});
_.AZ(this.hostElement,"yt-close-popup-action")};
_.u4.Object.defineProperties(mJ.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var G=this.data.options,H=0;H<G.length;H++){var Z=G[H].subscriptionRadioOptionRenderer;if(Z&&Z.selected)return H}return null}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],mJ.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],mJ.prototype,"eventForwardingBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],mJ.prototype,"data",void 0);_.N([_.z("data.options"),_.A("design:type",Object),_.A("design:paramtypes",[])],mJ.prototype,"initialIndex",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],mJ);
_.m(mJ,"ytd-subscription-notification-options-renderer",function(){if(cnA!==void 0)return cnA;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return cnA=G},{mode:1});var fVi;var vv6=function(){return _.C.apply(this,arguments)||this};
_.T(vv6,_.C);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],vv6.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],vv6.prototype,"data",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],vv6);
_.m(vv6,"ytd-tvfilm-offer-groups-renderer",function(){if(fVi!==void 0)return fVi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return fVi=G},{mode:1});var WBh;var UH=function(){return _.C.apply(this,arguments)||this};
_.T(UH,_.C);_.g=UH.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.g.computeThumbnailClass=function(G){return G.thumbnailOverlays?G.isShow?"thumbnail-show":"thumbnail-movie":G.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.g.computeCommerceSectionClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.g.computeTitleClass=function(G){return G.offers&&G.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.g.onDataChanged=function(){[].concat(_.OP(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(G){G.onShow()})};
UH.prototype.onDataChanged=UH.prototype.onDataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],UH.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],UH.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],UH.prototype,"onDataChanged",null);
_.N([_.O({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],UH);
_.m(UH,"ytd-ypc-offers-overlay-renderer",function(){if(WBh!==void 0)return WBh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return WBh=G},{mode:_.LH("kevlar_poly_si_batch_j028")?1:2});var zwi;var KBi=function(){this.usedMethods=new Set};
KBi.prototype.add=function(G){this.usedMethods.add(G)};
KBi.prototype.reset=function(){this.usedMethods.clear()};var Pgo=function(G,H){this.query=G;this.previousSearchQuery=H;this.id=M0t++;if(!jc6){H=_.xI("SBOX_SETTINGS");G="https://"+((H==null?void 0:H.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var Z=H==null?void 0:H.REQUEST_LANGUAGE;Z&&(G+="&hl="+Z);(Z=H==null?void 0:H.REQUEST_DOMAIN)&&(G+="&gl="+Z);G+="&client=youtube&gs_ri=youtube";(Z=H==null?void 0:H.SUGG_EXP_ID)&&(G+="&sugexp="+encodeURIComponent(Z));(Z=H==null?void 0:H.PSUGGEST_TOKEN)&&(G+="&tok="+Z);(H=
H==null?void 0:H.SESSION_INDEX)&&(G+="&authuser="+H);_.V("desktop_enable_visual_suggest")&&(G+="&h=180&w=320&ytvs=1");jc6=G}},rnq=function(G){var H="q="+encodeURIComponent(G.query);
G.previousSearchQuery&&(H+="&pq="+encodeURIComponent(G.previousSearchQuery));return H},wXi=function(){var G=_.xI("SBOX_SETTINGS"),H={};
if(G==null?0:G.SEND_VISITOR_DATA)H["X-Goog-Visitor-Id"]=G==null?void 0:G.VISITOR_DATA;return H},hwq=function(G){var H=jc6;
H+="&gs_id="+G.id.toString(36);H+="&q="+encodeURIComponent(G.query);H+="&cp="+G.query.length;G.previousSearchQuery&&(H+="&pq="+encodeURIComponent(G.previousSearchQuery));(G=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(H+="&video_id="+G);return H},M0t=0,jc6="";var Cgm=_.vp.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,iCk=_.vp.SEARCH_ENTITY_SUGGESTION_MOVIE,OCi=_.vp.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,aVi=_.vp.SEARCH_ENTITY_SUGGESTION_TV_SHOW,ynk=function(G,H){this.text=G;this.bold=H},ovm=function(G,H,Z){this.input=H;
this.index=Z;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=G[0];this.type=G[1];this.subtypes=G[2];var Q;this.displayText=qL((Q=G[3])==null?void 0:Q.b);var p;this.ignoredPrefix=qL((p=G[3])==null?void 0:p.a);var l,q;this.hasNewVideo=((l=G[3])==null?void 0:(q=l.zam)==null?void 0:q.toString())==="true"?!0:!1;var u;this.visualSuggestUrl=(u=G[3])==null?void 0:u.zai;var B;this.entityType=qL((B=G[3])==null?void 0:B.zap);var t;this.entityName=qL((t=G[3])==null?void 0:t.zao);var D;H=qL((D=
G[3])==null?void 0:D.zaf);var d;this.entityMid=(d=G[3])==null?void 0:d.zae;D=qyh(this.subtypes,this.entityMid);if(H&&D){if(H){d="";switch(D){case "YOUTUBE_ENTITY_TYPE_SONG":d=OCi;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":d=Cgm;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":d=aVi;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":d=iCk}D=D==="YOUTUBE_ENTITY_TYPE_SONG"||D==="YOUTUBE_ENTITY_TYPE_ALBUM"?d+" \u2022  \u2022 "+H:H}else D="";this.entitySubtitle=D}var e;this.externalChannelId=(e=G[3])==null?void 0:e.zav;var n;
this.entityThumbnailAttributionUrl=(n=G[3])==null?void 0:n.zaq},UpD=function(G,H){var Z=[],Q,p=(Q=G.displayText)!=null?Q:G.text;
(H==null?0:H.useEntityName)&&mph(G)&&G.entityName&&(p=G.entityName);if(G.type===33)return Z.push(new ynk(p,!1)),Z;if(p.length>=G.input.length&&p.substring(0,G.input.length)===G.input)Z.push(new ynk(G.input,!1)),Z.push(new ynk(p.substring(G.input.length),!0));else{var l=new Set(G.input.split(/\s/)),q=p.split(/\s/);Z=q.map(function(u,B){return new ynk(u.trim()+(B===q.length-1?"":" "),!l.has(u))})}return Z},mph=function(G){var H=!!qyh(G.subtypes);
G=!!G.entityMid;return H||G};var Rwa=function(G){this.rawResponse=["",[],{}];this.suggestions=[];try{var H=JSON.parse(Syk(G));if(typeof H==="object"&&H!==null)this.rawResponse=H;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(Q){console.log("Suggest: Failed to parse SuggestResponse!");return}var Z=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(Q,p){return new ovm(Q,Z,p)})};var N6q=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new KBi;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20977_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Anh,xpq=function(){Anh||(Anh=new N6q);
return Anh};
N6q.prototype.updateSuggestions=function(G){var H=this;this.availableSuggestions.forEach(function(Z){H.previousSuggestions[Z]=!0});
this.availableSuggestions=G.map(function(Z){var Q=Z.type.toString();Z.subtypes.length>0&&(Q+="i"+Z.subtypes.join("i"),Q+="k"+Z.suggestionSources.COMPLETE_SERVER.toString());return Q})};
var LBc=function(G,H){var Z=Date.now();G.firstEditTime<0&&(G.firstEditTime=Z);H&&(G.lastQueryBuildTime=Z);G.lastEditTime=Z};
N6q.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20977_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Evj=function(G){var H="";G.availableSuggestions.forEach(function(p){delete G.previousSuggestions[p]});
for(var Z=_.I(Object.keys(G.previousSuggestions)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,G.previousSuggestions[Q]&&(H+=(H?"j":"")+Q);return H},Y2s=function(G,H){var Z=[];
H&&(Z[1]=H.toString());Z[0]="youtube";Z[7]=Date.now()-G.startTime;Z[6]=G.sessionNumber;G.zeroPrefixSuggestionCount>=0&&(Z[33]=G.zeroPrefixSuggestionCount);Z[13]=G.outOfSyncResponseCount;if(G.availableSuggestions.length>0){for(var Q=H="",p=0,l=_.I(G.availableSuggestions),q=l.next();!q.done;q=l.next())q=q.value,q!==Q&&(p>1&&(H+="l"+p),H+=(Q?"j":"")+q,p=0,Q=q),p+=1;p>1&&(H+="l"+p);Z[3]=H}Z[35]=Evj(G);G.selectedSuggestionIndex>=0&&(Z[2]=G.selectedSuggestionIndex);var u;if(H=(u=_.xI("SBOX_SETTINGS"))==
null?void 0:u.SUGG_EXP_ID)Z[19]=G.normalize(H),u=0,G.experimentTriggeredBeforeFinal&&(u|=1),G.experimentTriggeredFinal&&(u|=2),Z[20]=u;Z[26]=Array.from(G.inputMethodsTracker.usedMethods).join("j");if(G.JSC$20977_totalRoundTripTime>0){Z[15]=G.JSC$20977_totalRoundTripTime;Z[14]=G.maxRoundTripTime;u=[];for(p=H=0;p<10;p++)Q=G.roundTripTimeHistogram[p],Q===0?H++:(H>1?u.push(p+"-"+Q):H===1?u.push("0j"+Q):u.push(Q.toString()),H=0);u=u.join("j");Z[16]=u}G.zeroPrefixRoundTripTime>0&&(Z[36]=G.zeroPrefixRoundTripTime);
G.lastQueryBuildTime>0&&(Z[18]=G.lastQueryBuildTime-G.startTime);G.firstEditTime>0&&(Z[4]=G.firstEditTime-G.startTime);G.lastEditTime>0&&(Z[5]=G.lastEditTime-G.startTime);return Z.join(".")};
N6q.prototype.normalize=function(G){return G.replaceAll(".","-")};
var FBc=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Re=function(){var G=_.C.apply(this,arguments)||this;G.microphoneSpinnerActive=!1;G.noAnimations=!1;G.boundExitClick=function(){G.onExitButtonClick()};
G.speechOverlayClassName="";G.isLevelAnimating=!1;G.playCloseDialogAudioFeedback=!0;G.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return G};
_.T(Re,_.C);_.g=Re.prototype;_.g.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.g.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=KEL()};
_.g.dataChanged=function(){this.logDialog()};
_.g.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var G;(G=this.manager.audioPlayer)!=null&&(G.JSC$20289_audioEnabled=!1)}this.manager.stop();(G=this.manager.audioPlayer)!=null&&(G.JSC$20289_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.g.handleSpeechQueryCompleteAction=function(G){var H=G.navigationAction;H&&(G.trackingParams&&_.gr().graftServerVe(G.trackingParams,this.dialogVe,5),_.N5(this.hostElement,"yt-navigate",{endpoint:H,tempData:this.getNavigationParams(H),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.g.onExitButtonClick=function(){this.closeDialog()};
_.g.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var G;if((G=this.manager)!=null){var H;(H=G.audioPlayer)==null||s$(H,"failure");G.setState("microphone-off");G.stop()}}else(G=this.manager)==null||G.start()};
_.g.transcriptionChanged=function(){var G,H;(((G=this.transcription)==null?0:G.low)||((H=this.transcription)==null?0:H.high))&&this.setState("transcribing",this.transcription)};
_.g.stateChanged=function(){this.setState(this.state,this.transcription)};
_.g.logDialog=function(){var G;(G=this.data)!=null&&G.trackingParams&&(G=_.gr(),_.Te(G,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=G.graftServerVe(this.data.trackingParams,void 0,5))};
_.g.getNavigationParams=function(G){var H={};if(_.V("web_yt_searchbox")){var Z=xpq();Z.inputMethodsTracker.add(6);Z=Y2s(Z,15);H.gs_l=Z;var Q;H.oq=((Q=_.X(G,_.I_))==null?void 0:Q.query)||""}else if(G=window.ytvoicesearchloggingparams){if(G=G())H.oq=G.oq,H.gs_l=G.gs_l}else _.HU(Error("Jl"));return H};
_.g.closeDialog=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.g.setState=function(G,H){if(this.data){var Z=this.data,Q={};switch(G){case "listening":Q={headerText:Z.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:Z.microphoneButtonAriaLabel};break;case "timeout":Q={headerText:Z.promptHeader,microphoneState:"try-again",microphoneLabel:Z.promptMicrophoneLabel,microphoneAriaLabel:Z.promptMicrophoneLabel};break;case "microphone-off":Q={headerText:Z.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:Z.promptMicrophoneLabel,
microphoneAriaLabel:Z.promptMicrophoneLabel};break;case "transcribing":(H==null?0:H.low)||(H==null?0:H.high)?Q={transcriptionLow:H==null?void 0:H.low,transcriptionHigh:H==null?void 0:H.high,microphoneState:"speaking",microphoneAriaLabel:Z.microphoneButtonAriaLabel}:Q={headerText:Z.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:Z.microphoneButtonAriaLabel};break;case "processing":Q={headerText:Z.loadingHeader,microphoneState:"processing",microphoneAriaLabel:Z.microphoneButtonAriaLabel};
break;case "offline":Q={headerText:Z.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:Z.connectionErrorMicrophoneLabel,microphoneAriaLabel:Z.connectionErrorMicrophoneLabel};break;case "permission":Q={headerText:Z.permissionsHeader,bodyLine1:Z.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:Z.permissionsSubtext};break;case "permission-denied":Q={headerText:Z.disabledHeader,bodyLine1:Z.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:Z.disabledSubtext}}Q.className=
G;this.speechOverlayState=Q;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.g.setMicrophoneState=function(G){var H=this.isLevelAnimating;this.isLevelAnimating=G==="speaking";!H&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=G==="processing"&&!this.noAnimations};
_.g.setClass=function(G){this.speechOverlayClassName&&_.Gq(this.hostElement,this.speechOverlayClassName,!1);G&&(this.speechOverlayClassName=G,_.Gq(this.hostElement,G,!0))};
_.g.runLevelAnimation=function(){var G=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var H=1+Math.random()*.75,Z=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+Z/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+H+")");_.Ui.addJob(function(){G.runLevelAnimation()},3,Z)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Re.prototype.stateChanged=Re.prototype.stateChanged;Re.prototype.transcriptionChanged=Re.prototype.transcriptionChanged;Re.prototype.onPopupClosed=Re.prototype.onPopupClosed;Re.prototype.dataChanged=Re.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Re.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],Re.prototype,"rendererStamperBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],Re.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Re.prototype,"eventForwardingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Re.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Re.prototype,"speechOverlayState",void 0);
_.N([_.h(),_.A("design:type",Object)],Re.prototype,"microphoneSpinnerActive",void 0);_.N([_.h({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.A("design:type",Object)],Re.prototype,"noAnimations",void 0);_.N([_.h({selector:function(G){var H;return(H=G.voiceSearch)==null?void 0:H.transcription}}),
_.A("design:type",Object)],Re.prototype,"transcription",void 0);_.N([_.h({selector:function(G){var H;return(H=G.voiceSearch)==null?void 0:H.overlay}}),
_.A("design:type",String)],Re.prototype,"state",void 0);_.N([_.h(),_.A("design:type",Object)],Re.prototype,"boundExitClick",void 0);_.N([_.q6("#microphone-levels"),_.A("design:type",HTMLElement)],Re.prototype,"level",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Re.prototype,"dataChanged",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Re.prototype,"onPopupClosed",null);
_.N([_.Jv("transcription"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Re.prototype,"transcriptionChanged",null);_.N([_.Jv("state"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Re.prototype,"stateChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Re);
_.m(Re,"ytd-voice-search-dialog-renderer",function(){if(zwi!==void 0)return zwi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return zwi=G},{mode:1});var bCa;var N9=function(){var G=_.C.apply(this,arguments)||this;G.isOverlay=!1;G.hidden=!1;return G};
_.T(N9,_.C);_.g=N9.prototype;_.g.onPopupClosed=function(){this.toggleIconState(!1)};
_.g.computeIcon=function(){var G,H,Z;return(H=_.X((G=this.data)==null?void 0:G.icon,fEs))==null?void 0:(Z=H.icon)==null?void 0:Z.iconType};
_.g.computeIconBadgeShape=function(){var G;return{iconBadgeType:"cart",iconBadgeText:(G=this.iconBadgeEntity)==null?void 0:G.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.g.onClick=function(){var G;(G=this.data)!=null&&G.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.g.computeHidden=function(G){return!G};
_.g.toggleIconState=function(G){this.iconButton&&(this.iconButton.pressed=G)};
N9.prototype.onPopupClosed=N9.prototype.onPopupClosed;_.N([_.v(_.Up),_.A("design:type",Object)],N9.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],N9.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],N9.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],N9.prototype,"isOverlay",void 0);
_.N([_.h({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.A("design:type",Object)],N9.prototype,"hidden",void 0);_.N([_.h({selectorArgs:["data.iconBadgeEntityKey"],selector:function(G,H){return _.Hv(G.entities,"iconBadgeEntity",H)}}),
_.A("design:type",Object)],N9.prototype,"iconBadgeEntity",void 0);_.N([_.q6("yt-icon-button"),_.A("design:type",HTMLButtonElement)],N9.prototype,"iconButton",void 0);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],N9.prototype,"onPopupClosed",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],N9);
_.m(N9,"ytd-icon-badge-topbar-button-renderer",function(){if(bCa!==void 0)return bCa;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return bCa=G},{mode:1});var G0h;var A1=function(){var G=_.C.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.T(A1,_.C);A1.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.u4.Object.defineProperties(A1.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],A1.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Array)],A1.prototype,"premiumOptions",void 0);_.N([_.z("premiumOptions"),_.A("design:type",Object),_.A("design:paramtypes",[])],A1.prototype,"hasPremiumOptions",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],A1);
_.m(A1,"ytd-offline-promo-content",function(){if(G0h!==void 0)return G0h;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return G0h=G},{mode:1});var HP8;var xW=function(){var G=_.C.apply(this,arguments)||this;G.premiumOptions=[];return G};
_.T(xW,_.C);xW.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var G;this.premiumOptions=IH6((G=this.data)==null?void 0:G.formats)};
xW.prototype.onClickSubmit=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var G;(G=_.UO())==null||G.pause()};
xW.prototype.attached=function(){this.JSC$20997_scroller&&(this.JSC$20997_scroller.dialogElement=this.hostElement.parentNode)};
_.u4.Object.defineProperties(xW.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
xW.prototype.dataChanged=xW.prototype.dataChanged;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],xW.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],xW.prototype,"data",void 0);
_.N([_.h({computed:"computeIcon_(data.headersIcon)",value:""}),_.A("design:type",String)],xW.prototype,"headersIcon",void 0);_.N([_.h(),_.A("design:type",Array)],xW.prototype,"premiumOptions",void 0);_.N([_.q6("#scroller"),_.A("design:type",Object)],xW.prototype,"JSC$20997_scroller",void 0);_.N([_.z("headersIcon"),_.A("design:type",Object),_.A("design:paramtypes",[])],xW.prototype,"showIcon",null);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],xW.prototype,"dataChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],xW);
_.m(xW,"ytd-offline-promo-renderer",function(){if(HP8!==void 0)return HP8;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return HP8=G},{mode:1});var sd6;var Lz=function(){var G=_.C.apply(this,arguments)||this;G.playbackPauseInterval=NaN;G.isLoading=!1;G.hasError=!1;G.dialogClass="";G.youtubeLabel=_.Zg("LOGO_ALT_LABEL",{},"YouTube Home");G.logoName="yt-logos-ext:yt-logo-updated";G.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return G};
_.T(Lz,_.C);_.g=Lz.prototype;_.g.onDataChange=function(){var G;if(this.showEOMV1Text=!((G=this.data)==null||!G.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.g.attached=function(){this.pausePlayer()};
_.g.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.g.handleLangSelect=function(G){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[G.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.g.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.g.handleSaveConsent=function(G){var H=this;this.showLoadingSpinner();this.showLoadingSpinner();bH6(_.X(G,vzo)).catch(function(Z){_.Rp(new _.C$("Something went wrong when save consent "+(Z.message?Z.message:Z)+"."));H.hideLoadingSpinner();H.showErrorMessage()})};
_.g.handleDisablePersonalization=function(G){var H=this;this.showLoadingSpinner();Gta(_.X(G,fFa)).then(function(){H.dialog.close();H.resumePlayer()}).catch(function(Z){_.Rp(new _.C$("Something went wrong when disable personalization "+(Z.message?Z.message:Z)+"."));
H.hideLoadingSpinner();H.showErrorMessage()})};
_.g.showLoadingSpinner=function(){var G=this;this.showSpinnerJobId=_.Ui.addLowPriorityJob(function(){G.isLoading=!0},500)};
_.g.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Ui.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.g.showErrorMessage=function(){var G=this;this.hasError=!0;_.Ui.addLowPriorityJob(function(){G.hasError=!1},2E3)};
_.g.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.TF(function(){try{var G=_.UO();G&&G.pause()}catch(H){}},100))};
_.g.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var G=_.UO();G&&G.play()}catch(H){}};
_.u4.Object.defineProperties(Lz.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var H=["SHIELD","WARNING","BAR_CHART"],Z=this.data.eomV1Text.essentialCookieMsg.items,Q=0;Q<H.length&&Q<Z.length;Q++)G.push({icon:H[Q],text:Z[Q]});return G}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var G;if((G=this.data)==null||!G.eomV1Text)return[];G=[];for(var H=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],Z=this.data.eomV1Text.nonEssentialCookieMsg.items,Q=0;Q<H.length&&Q<Z.length;Q++)G.push({icon:H[Q],text:Z[Q]});return G}}});
Lz.prototype.onDataChange=Lz.prototype.onDataChange;_.N([_.h(),_.A("design:type",Object)],Lz.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],Lz.prototype,"showEOMV1Text",void 0);_.N([_.h(),_.A("design:type",Object)],Lz.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Object)],Lz.prototype,"hasError",void 0);_.N([_.h(),_.A("design:type",Number)],Lz.prototype,"showSpinnerJobId",void 0);_.N([_.h(),_.A("design:type",Object)],Lz.prototype,"dialogClass",void 0);
_.N([_.q6("#dialog"),_.A("design:type",Object)],Lz.prototype,"dialog",void 0);_.N([_.q6("#cb-header"),_.A("design:type",HTMLElement)],Lz.prototype,"header",void 0);_.N([_.q6("#lang-select"),_.A("design:type",HTMLElement)],Lz.prototype,"langSelect",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Lz.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);
_.N([_.h(),_.A("design:type",String)],Lz.prototype,"youtubeLabel",void 0);_.N([_.h(),_.A("design:type",Object)],Lz.prototype,"logoName",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Lz.prototype,"onDataChange",null);_.N([_.z("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],Lz.prototype,"eomEssentialCookieMsgItems",null);
_.N([_.z("data"),_.A("design:type",Array),_.A("design:paramtypes",[])],Lz.prototype,"eomNonEssentialCookieMsgItems",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Lz);
_.m(Lz,"ytd-consent-bump-v2-lightbox",function(){if(sd6!==void 0)return sd6;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return sd6=G},{mode:1});var ZPh;var EH=function(){return _.C.apply(this,arguments)||this};
_.T(EH,_.C);EH.prototype.ready=function(){if(!_.r7()||tGm)var G=!0;else tGm=!0,G=!1;G||(G=document.querySelector("ytd-app"),G||(G=document.body),this.internalLightBox=_.F9(G).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.N([_.h(),_.A("design:type",Object)],EH.prototype,"data",void 0);_.N([_.q6("#lightbox"),_.A("design:type",Object)],EH.prototype,"lightBox",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],EH);
_.m(EH,"ytd-consent-bump-v2-renderer",function(){if(ZPh!==void 0)return ZPh;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return ZPh=G},{mode:1});var Qds;var pJ8;var lmc;var YW=function(){return _.C.apply(this,arguments)||this};
_.T(YW,_.C);_.g=YW.prototype;_.g.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&zSA(this.toastManager,this.toastType)};
_.g.open=function(G){this.toast&&(this.ephemeralAction&&_.tp().resolve(_.pD).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=G!=null?G:0,this.toastManager.enqueue(this.toast,G)):this.toast.open())};
_.g.close=function(G){var H;(H=this.toast)==null||H.close();this.toastManager&&G===1&&zSA(this.toastManager,G)};
_.g.refit=function(){var G;(G=this.toast)==null||G.refit()};
_.g.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var G;(G=this.toast)==null||G.close()}};
_.g.setVerticalOffset=function(G){this.toast&&(this.toast.verticalOffset=G,this.toast.fit())};
_.g.computeButtonClass_=function(G){return G?"toast-button":""};
_.g.computeText_=function(G){return _.yn(G)};
_.g.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sp("toast-opened-changed",this.toastOpened))};
_.g.updateToastOpenedFromBinding=function(G){this.toastOpened=G.detail.value};
_.u4.Object.defineProperties(YW.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var G,H,Z=(G=this.data)==null?void 0:(H=G.actionButton)==null?void 0:H.buttonRenderer;return(Z==null?void 0:Z.command)||(Z==null?void 0:Z.serviceEndpoint)||(Z==null?void 0:Z.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 G=[],H;((H=this.data)==null?0:H.responseText)&&G.push(_.yn(this.data.responseText));var Z;((Z=this.data)==null?0:Z.subText)&&G.push(_.yn(this.data.subText));var Q,p;if((Q=this.data)==null?0:(p=Q.actionButton)==null?0:p.buttonRenderer){var l,q;G.push(((l=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(q=l.accessibilityData)==null?void 0:q.label)||_.yn(this.data.actionButton.buttonRenderer.text))}return G.filter(function(u){return u}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var G,H;return(H=(G=this.toast)==null?void 0:G.opened)!=null?H:!1}}});
YW.prototype.toastOpenedChangedForBinding=YW.prototype.toastOpenedChangedForBinding;YW.prototype.toastOpenedChanged=YW.prototype.toastOpenedChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],YW.prototype,"ytEventForwardingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],YW.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],YW.prototype,"duration",void 0);
_.N([_.h(),_.A("design:type",Number)],YW.prototype,"toastType",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],YW.prototype,"useCloseButton",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],YW.prototype,"closeToastOnActionButtonClick",void 0);_.N([_.h({value:function(){return _.Zg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.A("design:type",String)],YW.prototype,"closeButtonAriaLabel",void 0);_.N([_.h(),_.A("design:type",Boolean)],YW.prototype,"toastOpened",void 0);_.N([_.h(),_.A("design:type",Boolean)],YW.prototype,"hasOpened",void 0);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],YW.prototype,"command",null);_.N([_.z("labelText","command","duration"),_.A("design:type",Object),_.A("design:paramtypes",[])],YW.prototype,"ephemeralAction",null);
_.N([_.z("ephemeralAction"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],YW.prototype,"hasEphemeralAction",null);_.N([_.q6("#toast"),_.A("design:type",Object)],YW.prototype,"toast",void 0);_.N([_.h({value:function(){return{style:"call-to-action-inverse"}}}),
_.A("design:type",Object)],YW.prototype,"buttonOverrides",void 0);_.N([_.h({value:{style:"mono-inverse"}}),_.A("design:type",Object)],YW.prototype,"closeButtonOverrides",void 0);_.N([_.h({value:function(){return _.tp().resolve(_.Jp(_.Gg))}}),
_.A("design:type",Object)],YW.prototype,"toastManager",void 0);_.N([_.z("data.responseText","data.subText","data.actionButton"),_.A("design:type",Object),_.A("design:paramtypes",[])],YW.prototype,"labelText",null);_.N([_.gx("toastOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YW.prototype,"toastOpenedChanged",null);
_.N([_.gx("toastOpened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],YW.prototype,"toastOpenedChangedForBinding",null);_.N([_.fH({is:"yt-notification-action-renderer",disableElementRegistration:!0})],YW);
_.m(YW,"yt-notification-action-renderer",function(){if(lmc===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;pJ8===void 0&&(pJ8=document.createElement("template"));var Q=pJ8;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);lmc=G}G=lmc;return G},{mode:2});var FF=function(){var G=_.C.apply(this,arguments)||this;G.duration=4E3;G.downloadingCount=0;G.downloadedCount=0;G.downloadingOnlySmartDownloads=!1;G.sessionTotalDownloads=0;G.sessionDownloaded=0;G.previousSessionsDownloaded=0;G.totalDownloadPercentage=0;G.currentDownloadProgress=0;G.currentDownloadPercentage=0;G.isLeaderTab=!0;G.isFullScreen=!1;G.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};G.boundBeforeUnload=function(H){G.isLeaderTab&&G.downloadingCount>0&&(H.preventDefault(),
H.returnValue=!0)};
return G};
_.T(FF,_.C);_.g=FF.prototype;
_.g.open=function(){this.updateDownloadState();if(this.data){var G=this.sessionDownloaded+1,H=this.sessionTotalDownloads>1?_.Zg("VIDEOS_DOWNLOADING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+G+"/"+this.sessionTotalDownloads):_.Zg("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(H=this.sessionTotalDownloads>1?_.Zg("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:G.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
G+"/"+this.sessionTotalDownloads):_.Zg("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));G=this.isLeaderTab?_.Zg("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.yn(this.data.responseText)!==H||_.yn(this.data.subText)!==G)this.set("data.responseText",_.aq(H)),this.set("data.subText",_.aq(G)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.g.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.g.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.g.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.g.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var G=this.downloadedCount-this.previousSessionsDownloaded;G<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-G);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.g.handleFullscreenChange=function(G){(this.isFullScreen=G)||this.updatePopup()};
FF.prototype.updateCurrentDownloadProgress=FF.prototype.updateCurrentDownloadProgress;FF.prototype.updatePopup=FF.prototype.updatePopup;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],FF.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],FF.prototype,"ytEventForwardingBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],FF.prototype,"actionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],FF.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],FF.prototype,"duration",void 0);_.N([_.h({selector:function(G){return _.aOU(G.entities).length}}),
_.A("design:type",Object)],FF.prototype,"downloadingCount",void 0);_.N([_.h({selector:q6o}),_.A("design:type",Object)],FF.prototype,"downloadedCount",void 0);_.N([_.h({selector:function(G){var H=_.aOU(G.entities);return IJc(G.entities,H)}}),
_.A("design:type",Object)],FF.prototype,"downloadingOnlySmartDownloads",void 0);_.N([_.h(),_.A("design:type",Object)],FF.prototype,"sessionTotalDownloads",void 0);_.N([_.h(),_.A("design:type",Object)],FF.prototype,"sessionDownloaded",void 0);_.N([_.h(),_.A("design:type",Object)],FF.prototype,"previousSessionsDownloaded",void 0);_.N([_.h(),_.A("design:type",Object)],FF.prototype,"totalDownloadPercentage",void 0);
_.N([_.h({selector:function(G){var H;G=(H=_.aOU(G.entities))!=null?H:[];return G.length>0?_.zBW(G.slice(-1)):0}}),
_.A("design:type",Object)],FF.prototype,"currentDownloadProgress",void 0);_.N([_.h(),_.A("design:type",Object)],FF.prototype,"currentDownloadPercentage",void 0);_.N([_.h({selector:_.R13}),_.A("design:type",Object)],FF.prototype,"isLeaderTab",void 0);_.N([_.q6("yt-notification-action-renderer"),_.A("design:type",Object)],FF.prototype,"notificationActionRenderer",void 0);
_.N([_.Jv("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FF.prototype,"updatePopup",null);_.N([_.Jv("currentDownloadProgress"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],FF.prototype,"updateCurrentDownloadProgress",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],FF);
_.m(FF,"ytd-video-download-toast-renderer",function(){if(Qds!==void 0)return Qds;var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Qds=G},{mode:1});var g7o;var Ima;var bt=function(){return _.C.apply(this,arguments)||this};
_.T(bt,_.C);bt.prototype.computeIsRedLogo=function(G,H){!G&&H&&(G=H);return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
bt.prototype.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],bt.prototype,"componentBehavior",void 0);_.N([_.h({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.A("design:type",Boolean)],bt.prototype,"isRedLogo",void 0);_.N([_.h({computed:"computeLogoName(data)"}),_.A("design:type",String)],bt.prototype,"logoName",void 0);_.N([_.h({value:{}}),_.A("design:type",Object)],bt.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],bt.prototype,"logoType",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-logo"})],bt);
_.m(bt,"ytd-logo",function(){if(Ima!==void 0)return Ima;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Ima=G},{mode:_.LH("kevlar_poly_si_batch_j074")?1:2});var GA=function(){var G=_.C.apply(this,arguments)||this;G.animationRef={};return G};
_.T(GA,_.C);_.g=GA.prototype;_.g.attached=function(){document.addEventListener("yt-navigate-finish",_.pH(this,this.logYoodle))};
_.g.detached=function(){document.removeEventListener("yt-navigate-finish",_.pH(this,this.logYoodle))};
_.g.logYoodle=function(){var G,H;if((G=this.data)==null?0:(H=G.loggingDirectives)==null?0:H.trackingParams)this.ytRendererBehavior.markDirty(),_.gr().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.g.computeHideImg=function(G,H){return!!G||!!H};
_.g.computeHideYtdLogo=function(G,H){return!G||!!H};
_.g.computeHideLottie=function(G){return!G};
_.g.computeIsRedLogo=function(G){return G==="YOUTUBE_RED_LOGO"||G==="YOUTUBE_PREMIUM_LOGO"};
_.g.renderLogoEntity=function(){var G=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),H=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),Z=this.getLogoTitleText(this.data),Q=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==G&&(this.url=G);this.animatedUrl!==H&&(this.animatedUrl=H);this.logoTitleText!==Z&&(this.logoTitleText=Z);this.lottieUrl!==Q&&(this.lottieUrl=Q,this.lottiePlayerProps=this.computeLottiePlayerProps(Q))};
_.g.getSanitizedThumbnail=function(G){return G&&G.thumbnails?_.RwX(G.thumbnails,122)||"":""};
_.g.getThumbnailUrl=function(G,H){if(!H)return"";var Z,Q;G=G?(Z=H.darkThemeLogo)==null?void 0:Z.thumbnail:(Q=H.lightThemeLogo)==null?void 0:Q.thumbnail;return this.getSanitizedThumbnail(G)};
_.g.getAnimatedThumbnailUrl=function(G,H){return H?this.getSanitizedThumbnail(G?H.darkThemeAnimatedLogo:H.lightThemeAnimatedLogo):""};
_.g.getLogoTitleText=function(G){if(G)return _.yn(G.tooltipText)};
_.g.computeLogoIcon=function(G,H){if(H){var Z,Q;return G?(Z=H.darkThemeLogo)==null?void 0:Z.icon:(Q=H.lightThemeLogo)==null?void 0:Q.icon}};
_.g.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.g.getLottieUrl=function(G,H){var Z,Q,p,l;return G?H==null?void 0:(Z=H.darkThemeLogo)==null?void 0:(Q=Z.lottieAnimation)==null?void 0:Q.url:H==null?void 0:(p=H.lightThemeLogo)==null?void 0:(l=p.lottieAnimation)==null?void 0:l.url};
_.g.computeLottiePlayerProps=function(G){if(G){var H;if((H=this.animationRef)==null?0:H.lottieEl){var Z;(Z=this.animationRef)==null||Z.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:G,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.g.onLottieError=function(){this.data&&this.lottieUrl&&_.N5(this.hostElement,"yoodle-error")};
_.g.onImgError=function(){this.data&&!this.lottieUrl&&_.N5(this.hostElement,"yoodle-error")};
GA.prototype.playAnimation=GA.prototype.playAnimation;GA.prototype.renderLogoEntity=GA.prototype.renderLogoEntity;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],GA.prototype,"data",void 0);_.N([_.h({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.A("design:type",Boolean)],GA.prototype,"hideImg",void 0);
_.N([_.h({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.A("design:type",Boolean)],GA.prototype,"hideYtdLogo",void 0);_.N([_.h({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.A("design:type",Boolean)],GA.prototype,"hideLottie",void 0);_.N([_.h({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.A("design:type",Boolean)],GA.prototype,"isRedLogo",void 0);
_.N([_.h(),_.A("design:type",Boolean)],GA.prototype,"useDarkThemeYoodle",void 0);_.N([_.h(),_.A("design:type",String)],GA.prototype,"url",void 0);_.N([_.h(),_.A("design:type",String)],GA.prototype,"animatedUrl",void 0);_.N([_.h(),_.A("design:type",String)],GA.prototype,"logoTitleText",void 0);_.N([_.h({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.A("design:type",Object)],GA.prototype,"logoIcon",void 0);_.N([_.h(),_.A("design:type",Object)],GA.prototype,"logoType",void 0);
_.N([_.h(),_.A("design:type",String)],GA.prototype,"lottieUrl",void 0);_.N([_.h(),_.A("design:type",Object)],GA.prototype,"lottiePlayerProps",void 0);_.N([_.h(),_.A("design:type",Object)],GA.prototype,"animationRef",void 0);_.N([_.gx("data"),_.gx("useDarkThemeYoodle"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],GA.prototype,"renderLogoEntity",null);
_.N([_.lq("click"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],GA.prototype,"playAnimation",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],GA);
_.m(GA,"ytd-yoodle-renderer",function(){if(g7o!==void 0)return g7o;var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return g7o=G},{mode:_.LH("kevlar_poly_si_batch_j074")?1:2});var q8j;var S8a;var uHi=_.KG.currentPageTypeSelector,B4c=_.KG.currentPageSubTypeSelector,H1=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return G};
_.T(H1,_.C);_.g=H1.prototype;_.g.onYoodleError=function(){_.V("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.g.computeLogoName=function(G){G=this.componentBehavior.computeIcon_(G);return G===""?"yt-logos-ext:yt-logo-updated":G};
_.g.computeTitle=function(G,H,Z){return Z&&(H==null?0:H.tooltipText)?_.yn(H.tooltipText):_.yn(G)};
_.g.computeAriaLabel=function(G,H,Z){return Z&&(H==null?0:H.tooltipText)?_.yn(G):""};
_.g.computeShowYoodle=function(G,H,Z){return!G||!H&&!!Z&&!_.oN.isEmpty(Z)};
_.g.onNavigateHomeAction=function(){if(_.V("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G;(G=_.F9(this.hostElement).querySelector(".yt-simple-endpoint"))==null||G.click()}};
_.g.computeLogoHref=function(G,H,Z){var Q;(Z==null?0:Z.onTapCommand)?Q=this.componentBehavior.computeHref_(Z.onTapCommand):G&&(Q=this.componentBehavior.computeHref_(G));return Q?Q:H};
_.g.computeCommand=function(G,H){return(H==null?void 0:H.onTapCommand)||G};
_.g.getEndpointForm=function(){if(_.V("kevlar_topbar_disable_cache_only_home")){var G=_.tp().resolve(_.oT),H=uHi(G.getState())||"";G=B4c(G.getState())||"";return{disableCache:H==="ytd-browse"&&G==="home"}}return{disableCache:!0}};
H1.prototype.onYoodleError=H1.prototype.onYoodleError;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],H1.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],H1.prototype,"componentBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],H1.prototype,"ytdReduxBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],H1.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],H1.prototype,"countryCode",void 0);_.N([_.h({selectorArgs:["data.overrideEntityKey"],selector:function(G,H){return _.Hv(G.entities,"logoEntity",H)}}),
_.A("design:type",Object)],H1.prototype,"logoEntity",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.A("design:type",Boolean)],H1.prototype,"showYoodle",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],H1.prototype,"yoodleError",void 0);_.N([_.h({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.A("design:type",String)],H1.prototype,"titleText",void 0);
_.N([_.h({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.A("design:type",String)],H1.prototype,"ariaLabelText",void 0);_.N([_.h({value:"/"}),_.A("design:type",String)],H1.prototype,"defaultEndpointUrl",void 0);_.N([_.h({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.A("design:type",String)],H1.prototype,"endpointUrl",void 0);
_.N([_.h({computed:"computeCommand(data.endpoint, logoEntity)"}),_.A("design:type",String)],H1.prototype,"command",void 0);_.N([_.h(),_.A("design:type",Object)],H1.prototype,"logoType",void 0);_.N([_.h({}),_.A("design:type",Boolean)],H1.prototype,"useDarkThemeYoodle",void 0);_.N([_.lq("yoodle-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],H1.prototype,"onYoodleError",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],H1);
_.m(H1,"ytd-topbar-logo-renderer",function(){if(S8a!==void 0)return S8a;var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return S8a=G},{mode:_.LH("kevlar_poly_si_batch_j027")?1:2});var JTo=0;var tZi=_.vp.SEARCH_APPEND_LABEL,k0h=_.vp.SUGGESTION_NEW_VIDEOS_TEXT,DDD=_.vp.SUGGESTION_THUMBNAIL_LABEL,dD8=_.vp.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,e6a=_.y(function(G){function H(V4){var nm,E_;return _.S(function(Ma){if(Ma.nextAddress==1)return nm=new Request(V4),_.XV(Ma,2),Ma.yield(fetch(nm,{credentials:"include"}),4);if(Ma.nextAddress!=2)return cD(!0),_.Za(Ma,0);E_=_.Wg(Ma);_.Rp(E_);_.K0(Ma)})}
var Z=G.isHighlighted;var Q=G.suggestion;var p=G.onClickCallback;var l=G.onHoverUpdateCallback;var q=G.labels;var u=G.queryBuilderFunction;var B=G.onRemoveCallback;var t=G.suggestionIndex;var D=G.generateUniqueId;var d=G.highlightedId;var e=G.useScrollMargin;var n=G.isKeyboardMode;var c=null,W=null,M=_.IA("div"),r=_.IA("span");G=_.I(_.Ty(!1,void 0,"mxSc0e"));var w=G.next().value,x=G.next().value,U=_.qK("a",function(V4){V4&&_.tl(237477,V4,W,function(nm){W=nm})}),R=_.qK("button",function(V4){V4&&_.tl(237477,
V4,W,function(nm){W=nm})}),L=_.Hh(function(V4){if((V4==null?void 0:V4.button)===2)return V4.preventDefault(),!1;
var nm=_.$k();nm&&c&&_.O3(nm,c,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var E_;p(V4,Q().text,Q().index,Q().entityMid,V4==null?void 0:(E_=V4.detail)==null?void 0:E_.wasSelectedByKeyboard);return!1}),H3=function(){return Q().type===35},qX=function(){return _.V("desktop_enable_single_suggestion_highlight")},B3=function(){return _.eA("desktop_suggestions_panel_row_height")||0},fW=function(){var V4;
return _.V("desktop_enable_new_video_metadata")&&((V4=Q())==null?void 0:V4.hasNewVideo)===!0},e2=function(){return _.V("desktop_enable_visual_suggest")},$R=function(){return _.V("desktop_enable_entity_suggest")&&mph(Q())},ie=function(){return Q().entitySubtitle},W3=function(){return qX()?(Z==null?void 0:Z())||sR()&&!(n==null?0:n()):(Z==null?void 0:Z())||sR()},DT=function(){var V4=_.xI("SBOX_SETTINGS");
return H3()&&!(V4==null?0:V4.HIDE_REMOVE_LINK)},UR=function(){return UpD(Q(),{useEntityName:$R()})},zx,be=!((zx=_.tp().resolve(_.Jp(_.rr)))==null||!zx()),J_=function(){return H3()?_.V("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},rG=function(){return q==null?void 0:q().SUGGESTION_DISMISS_LABEL},Kw=function(){return q==null?void 0:q().SUGGESTION_DISMISSED_LABEL};
G=_.I(_.Ty(!1,void 0,"WMms1e"));zx=G.next().value;var cD=G.next().value;G=_.I(_.Ty(!1,void 0,"PyL0t"));var ec=G.next().value,gf=G.next().value,sR=ec,ep=_.Hh(function(){u(r.value.innerText);return!1}),Qh=_.Hh(function(V4){V4.preventDefault();
return!1}),$w=_.Hh(function(V4){var nm=Q().text,E_=_.xI("SBOX_SETTINGS"),Ma="https://"+(E_.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
Ma+="&delq="+encodeURIComponent(nm);(nm=E_==null?void 0:E_.PSUGGEST_TOKEN)&&(Ma+="&tok="+nm);(E_=E_==null?void 0:E_.SESSION_INDEX)&&(Ma+="&authuser="+E_);H(Ma);V4.preventDefault();(V4=_.$k())&&W&&_.O3(V4,W,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");B(t==null?void 0:t());return!1}),Zt=_.Hh(function(){if(qX()&&(n==null?0:n()))return!1;
gf(!0);l(!0);return!1}),rJ=_.Hh(function(){gf(!1);
l(!1);return!1}),N7=_.Hh(function(){x(!0);
return!1}),t_=_.Hh(function(){x(!1);
return!1}),Bd=_.Hh(function(V4){V4.preventDefault();
if(Q().entityThumbnailAttributionUrl){var nm=Q().entityThumbnailAttributionUrl;V4=Q().entityName;var E_={dismissDialogEndpoint:{}};nm={commandExecutorCommand:{commands:[E_,{urlEndpoint:{url:nm,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:nm}}}]}};E_={buttonViewModel:{title:_.Zg("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:E_}}};nm={buttonViewModel:{title:_.Zg("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:nm}}};V4={dialogHeaderViewModel:{headline:{content:V4!=null?V4:_.Zg("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var Ma={basicContentViewModel:{paragraphs:[{text:{content:_.Zg("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};V4={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:V4,footer:{panelFooterViewModel:{primaryButton:nm,
secondaryButton:E_,shouldHideDivider:!0}},content:Ma}}}}};_.tp().resolve(_.Dk).resolveCommand(V4)}return!1});
G=_.I(_.Ty("",void 0,"yG5Sx"));var HD=G.next().value,xR=G.next().value;_.yP(function(){DT()&&xR(D==null?void 0:D(t==null?void 0:t()));M.value&&_.tl(12453,M.value,c,function(V4){c=V4})});
return _.J(_.k,{cond:zx,then:function(){var V4={};return _.J("div",{class:_.bb("ytSuggestionComponentRemovedText",(V4.ytSuggestionComponentLargerRemovedText=function(){return e2()},V4)),
style:function(){return B3()>0?"height: "+B3()+"px;":""},
role:"button"},Kw)},
else:function(){var V4={},nm={};return _.J("div",{class:_.bb("ytSuggestionComponentSuggestion",(V4.ytSuggestionComponentSuggestionHover=function(){return!qX()},V4.ytSuggestionComponentHighlighted=W3,V4.ytSuggestionComponentPersonalizedSuggestion=H3,V4.ytSuggestionComponentMweb=!1,V4.ytSuggestionComponentLargerSuggestion=function(){return fW()||e2()},V4.ytSuggestionComponentThumbnailSuggestion=function(){return e2()},V4.ytSuggestionComponentRoundedSuggestion=function(){return _.V("desktop_enable_scrollable_suggestions_panel")&&
_.V("desktop_enable_suggestions_panel_padding")},V4.ytSuggestionComponentThumbnailPadding=function(){return e2()&&!H3()},V4)),
style:function(){return B3()>0?"height: "+B3()+"px;":""},
role:"presentation","on:mousedown":L,"on:mouseover":Zt,"on:mouseout":rJ,el:M},_.J("div",{class:_.bb("ytSuggestionComponentText",(nm.ytSuggestionComponentScrollMargin=e,nm)),"aria-label":function(){return fW()?Q().text+" "+k0h:Q().text},
id:function(){return D==null?void 0:D(t==null?void 0:t())},
"on:mousedown":L,role:"option"},_.J(_.k,{cond:function(){return Q().type!==33},
then:function(){return _.J(_.ll,{icon:J_,className:"ytSuggestionComponentIcon"})}}),_.J("div",{class:"ytSuggestionComponentLeftContainer"},_.J("span",{el:r,
role:"button",tabindex:0},_.J(_.Cl,{each:UR},function(E_){return E_.bold?_.J("span",{class:"ytSuggestionComponentBold"},E_.text):_.J("span",null,E_.text)})),_.J(_.k,{cond:function(){return $R()&&!!Q().entitySubtitle||fW()},
then:function(){return _.J("div",{class:"ytSuggestionComponentMetadataContainer"},_.J(_.k,{cond:function(){return $R()&&!!Q().entitySubtitle},
then:function(){return _.J("div",{class:"ytSuggestionComponentEntitySubtitle"},ie)}}),_.J(_.k,{cond:function(){return fW()},
then:function(){return _.J("div",{class:"ytSuggestionComponentNewVideoContainer"},_.J("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.J("div",{class:"ytSuggestionComponentNewVideoText"},k0h))}}))}}))),_.J("div",{class:"ytSuggestionComponentRightContainer"},_.J(_.k,{cond:function(){return e2()&&Q().visualSuggestUrl!==void 0},
then:function(){var E_={};return _.J("div",{class:"ytSuggestionComponentThumbnailContainer"},_.J("img",{"aria-label":DDD,class:_.bb("ytSuggestionComponentVisualSuggestThumbnail",(E_.ytSuggestionComponentCircularFrame=function(){return $R()&&Q().subtypes.includes(790)},E_.ytSuggestionComponentEntitySuggestThumbnail=function(){return $R()},E_)),
src:function(){return Q().visualSuggestUrl}}),_.J(_.k,{cond:function(){return $R()&&!!Q().entityThumbnailAttributionUrl},
then:function(){var Ma={};return _.J("span",{title:dD8,role:"tooltip"},_.J("div",{"on:mouseover":N7,"on:mouseout":t_,"on:mousedown":Bd,class:_.bb("ytSuggestionComponentThumbnailOverlay",(Ma.ytSuggestionComponentThumbnailOverlayHidden=function(){return!w()},Ma))},_.J(_.ll,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.J(_.iW,null,_.J(_.wO,{when:function(){return e2()&&DT()}},function(){var E_={};
return _.J("button",{class:_.bb("ytSuggestionComponentRemoveLinkClearButton",(E_.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return HD()&&HD()===(d==null?void 0:d())},E_.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!W3()},E_)),
el:R,"on:mousedown":$w,"aria-label":rG,id:function(){return HD()}},_.J(_.ll,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.J(_.wO,{when:function(){return!(e2()&&Q().visualSuggestUrl!==void 0)&&DT()}},function(){var E_={};
return _.J("a",{class:_.bb("ytSuggestionComponentRemoveLink",(E_.ytSuggestionComponentRemoveLinkDark=be,E_.ytSuggestionComponentRemoveLinkSelected=function(){return HD()&&HD()===(d==null?void 0:d())},E_)),
el:U,"on:mousedown":$w,"aria-label":rG,tabindex:0,role:"button",id:function(){return HD()}},rG)}),_.J(_.wO,{when:function(){return!1}},function(){return _.J("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":ep,"on:mousedown":Qh,role:"button","aria-label":tZi},_.J(_.ll,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"nj");var n7s=_.CM(["//www.google.com/textinputassistant/","/","_tia.js"]),VZ6=_.y(function(){return _.J("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.J("button",{class:"ytdTextInputAssistantButton","on:click":_.Hh(function(){xpq().inputMethodsTracker.add(3);var G,H=(G=_.xI("SBOX_SETTINGS"))==null?void 0:G.REQUEST_LANGUAGE;if(H)return _.zh(_.VB(n7s,14,H)),!1})},_.J("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"oj");var $Dt=function(){this.cache=new Map},XJ6=function(G){for(var H=_.I(G.cache.entries()),Z=H.next();!Z.done;Z=H.next()){var Q=_.I(Z.value);
Z=Q.next().value;Q=Q.next().value;Q.suggestions.some(function(p){return p.type===35})&&G.cache.delete(Z)}};var cTA=_.vp.SEARCH,T4A=_.vp.SEARCH_CLEAR_LABEL,fmo=new _.Gv("FAKE_SUGGEST_RESPONSE"),v7c=_.y(function(G){function H(){N7||(N7=setTimeout(function(){Bd()},1E3))}
function Z(fw,Tx,Oq){if(fw.trim()){rJ=fw;_.Ae("REFINEMENTS_TUPLE",void 0);$w=!0;var nq;Tx=Y2s(ec,Tx);var nw=(nq=G.searchEndpoint)==null?void 0:nq.call(G);_.Bmh(fw,Tx,nw,J_.value.value,Oq,window.location.pathname.startsWith("/shorts"));Bd();J_.value.value=fw;J_.value.blur();ec.reset()}}
function Q(fw){return _.S(function(Tx){return Tx.return(new Promise(function(Oq){var nq=new XMLHttpRequest;nq.open("GET",hwq(fw),!0);nq.withCredentials=!0;var nw=_.xI("SBOX_SETTINGS");(nw==null?0:nw.SEND_VISITOR_DATA)&&nq.setRequestHeader("X-Goog-Visitor-Id",nw==null?void 0:nw.VISITOR_DATA);nq.onload=function(){Oq(nq.responseText)};
nq.onerror=function(){_.Rp(Error("Ll"));Oq(null)};
setTimeout(function(){nq.abort()},1E4);
nq.send(null)}))})}
function p(fw){var Tx,Oq,nq,nw;return _.S(function(KE){switch(KE.nextAddress){case 1:return Tx={credentials:"include",headers:wXi()},window.AbortController&&(Oq=new AbortController,setTimeout(function(){Oq.abort("ytsbox-suggest-timeout")},1E4),Tx.signal=Oq.signal),_.XV(KE,2),KE.yield(fetch(hwq(fw),Tx),4);
case 4:nq=KE.yieldResult.text();_.Za(KE,3);break;case 2:return nw=_.Wg(KE),nw!=="ytsbox-abort-last"&&nw!=="ytsbox-suggest-timeout"&&_.Rp(nw),KE.return(null);case 3:return KE.return(nq)}})}
function l(fw){var Tx,Oq,nq;return _.S(function(nw){switch(nw.nextAddress){case 1:if(Tx=_.tp().resolve(_.Jp(fmo)))return nw.return(Tx);Oq=Date.now();H();return _.V("yt_searchbox_xhr")?nw.yield(Q(fw),5):nw.yield(p(fw),4);case 4:nq=nw.yieldResult;nw.jumpTo(3);break;case 5:nq=nw.yieldResult;case 3:if(nq){N7&&(clearTimeout(N7),N7=null);var KE=ec,oz=Oq,ay=fw.query.length===0;oz=Date.now()-oz;ay?KE.zeroPrefixRoundTripTime=oz:(KE.JSC$20977_totalRoundTripTime+=oz,KE.maxRoundTripTime=Math.max(KE.maxRoundTripTime,
oz),ay=Math.floor(oz/100),ay>=FBc.length?++KE.roundTripTimeHistogram[9]:++KE.roundTripTimeHistogram[FBc[ay]])}return nw.return(nq)}})}
function q(fw){var Tx,Oq,nq;return _.S(function(nw){if(nw.nextAddress==1)return(Tx=cD.cache.get(rnq(fw)))?nw.return(Tx):nw.yield(l(fw),2);Oq=nw.yieldResult;if(Oq===null)return nw.return(null);nq=new Rwa(Oq);fw.query.length===0&&nq.suggestions.length===0||cD.cache.set(rnq(fw),nq);return nw.return(nq)})}
function u(fw){var Tx,Oq;return _.S(function(nq){if(nq.nextAddress==1){Zt=!1;var nw=rJ;nw=_.TRW()==="search"?(_.bY(location.href,"search_query")||_.bY(location.href,"q"))===nw:!1;Tx=new Pgo(fw,nw?rJ:null);return nq.yield(q(Tx),2)}Oq=nq.yieldResult;if(Oq===null)return nq.return();Tx.query.length===0&&(ec.zeroPrefixSuggestionCount=Oq.suggestions.length);if(Tx.id<=t_)return ec.outOfSyncResponseCount++,nq.return();if(document.activeElement!==J_.value)return nq.return();t_=Tx.id;var KE=ec,oz=Oq.rawResponse[2]||
{};KE.experimentTriggeredBeforeFinal||(KE.experimentTriggeredBeforeFinal=KE.experimentTriggeredFinal);KE.experimentTriggeredFinal=!!oz.e;ec.updateSuggestions(Oq.suggestions);M(-1);DT([]);Oq.suggestions!==n()&&Nj(Oq.suggestions.length);c(Oq.suggestions);qX(Oq.suggestions.length>0&&Oq.suggestions[0].type===33);Kw&&(Kw.hidden=Oq.suggestions.length===0,H3()?(Kw.style.minWidth="",KE=Kw.style,oz=(nw=n()[0])==null?void 0:nw.ignoredPrefix,KE.marginLeft=(oz?Math.min(oz.length*6,rG.value.offsetWidth):0).toString()+
"px"):(Kw.style.minWidth=rG.value.offsetWidth+"px",Kw.style.marginLeft="0"),q4());_.K0(nq)})}
function B(){if(!$w)return!1;var fw=_.xI("REFINEMENTS_TUPLE");return fw?(fw=fw[1].map(function(Tx,Oq){return new ovm([Tx,0,[71]],J_.value.value,Oq)}),n()!==fw&&Nj(fw.length),DT([]),c(fw),ec.updateSuggestions(fw),$w=!1,Kw.hidden=fw.length===0,Zt=fw.length>0,!0):!1}
function t(){var fw=J_.value.value;(typeof fw==="string"||fw instanceof String)&&fw!==""?U(!0):U(!1)}
function D(){if(_.TRW()==="search"){var fw=window.location.href;try{var Tx=_.bY(fw,"search_query")||_.bY(fw,"q")||""}catch(Oq){Tx=""}Tx&&(J_.value.value=Tx,U(!0))}}
var d=_.I(_.Ty([],void 0,"YqWjzb")),e=d.next().value;d=d.next().value;var n=e,c=d;e=_.I(_.Ty(-1,void 0,"hiyF4d"));var W=e.next().value,M=e.next().value;e=_.I(_.Ty(-1,void 0,"SUGY4b"));var r=e.next().value,w=e.next().value;e=_.I(_.Ty(!1,void 0,"ozgCGe"));var x=e.next().value,U=e.next().value;e=_.I(_.Ty(!1,void 0,"fb0dKe"));var R=e.next().value,L=e.next().value;d=_.I(_.Ty(!1,void 0,"KkbNee"));e=d.next().value;d=d.next().value;var H3=e,qX=d;d=_.I(_.Ty(!1,void 0,"b5D7E"));e=d.next().value;var B3=d.next().value;
d=_.I(_.Ty(!1,void 0,"UrhqVc"));var fW=d.next().value,e2=d.next().value;d=_.I(_.Ty(1,void 0,"zwJX4d"));var $R=d.next().value,ie=d.next().value;d=_.I(_.Ty([],void 0,"HryHu"));var W3=d.next().value,DT=d.next().value;d=_.I(_.Ty(!1,void 0,"Imfa3e"));var UR=d.next().value,zx=d.next().value;d=_.V("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var be=_.IA("yt-searchbox"),J_=_.IA("input"),rG=_.IA("div"),Kw,cD=
new $Dt,ec=xpq(),gf=_.tp().resolve(_.Jp(_.rr)),sR=function(){var fw;return((fw=G.forceDarkMode)==null?void 0:fw.call(G))||!(gf==null||!gf())},ep=function(){return _.V("desktop_enable_scrollable_suggestions_panel")},Qh="i"+JTo++,$w=!1,Zt=!1,rJ="",N7=null,t_=-1,Bd=function(){DT([]);
c([]);qX(!1);Kw&&(Kw.hidden=!0);N7&&(clearTimeout(N7),N7=null);M(-1)},HD=function(fw,Tx){fw.preventDefault();
zx(!0);Kw&&(Kw.hidden=!1);var Oq=W();fw=n();var nq=W3();Tx=Jgq(Tx);Oq+=Tx;for(Oq>=fw.length?Oq=-1:Oq<-1&&(Oq=fw.length-1);Oq!==-1&&(nq.includes(Oq)||Oq>=fw.length||Oq<0);)Oq+=Tx,Oq>=fw.length&&(Oq=-1);M(Oq);W()>=0&&(J_.value.value=n()[W()].text,w(0),t(),fw=W(),nq=r(),(nq=document.getElementById(hR[fw][nq]))&&ep()&&(fw===n().length-1?Kw.scrollTop=Kw.scrollHeight:nq.scrollIntoView({block:"nearest",inline:"start"})))},xR=_.Hh(function(fw){if(!(fw.relatedTarget instanceof Element&&fw.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!0);
var Tx;(Tx=G.focusCallback)==null||Tx.call(G,!0);B()||(Zt?Kw.hidden=!1:(_.N5(be.value,"yt-autonav-pause-focus",{}),u(fw.target.value)))}}),V4=_.Hh(function(fw){if(!(fw.relatedTarget instanceof Element&&fw.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){L(!1);
var Tx;(Tx=G.focusCallback)==null||Tx.call(G,!1);Kw.scrollTop=0;Kw.hidden=!0;_.N5(be.value,"yt-autonav-pause-blur",{})}}),nm=function(fw){fw=Jgq(fw);
var Tx;((Tx=hR[W()])==null?0:Tx[r()+fw])&&w(r()+fw)},E_=_.Hh(function(fw){var Tx=fw.target;
switch(fw.keyCode){case 13:fw.preventDefault();var Oq;if((Oq=hR[W()])==null?0:Oq[r()]){var nq;(nq=document.getElementById(hR[W()][r()]))==null||nq.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}fw=fw.shiftKey?4:3;Oq=ec;nq=W();Oq.selectedSuggestionIndex=nq;Z(Tx.value,fw);break;case 27:Kw&&(Kw.hidden=!0);break;case 40:HD(fw,40);break;case 38:HD(fw,38);break;case 39:nm(39);break;case 37:nm(37);break;case 229:ec.inputMethodsTracker.add(4);break;default:ec.inputMethodsTracker.add(1),
LBc(ec)}return!1}),Ma=_.Hh(function(fw){u(fw.target.value);
t();ep()&&Kw&&(Kw.scrollTop=0);return!1}),yk=_.Hh(function(){ec.inputMethodsTracker.add(2);
LBc(ec);return!1});
_.yP(function(){if(Kw){ec.reset();if(window.ResizeObserver){var fw=new ResizeObserver(function(){H3()||(Kw.style.minWidth=rG.value.offsetWidth+"px")});
fw.observe(rG.value);(new ResizeObserver(function(){q4()})).observe(Kw);
_.oM(function(){fw.disconnect()})}D();
window.addEventListener("yt-navigate-finish",D);window.addEventListener("yt-focus-searchbox",function(){J_.value.focus()});
var Tx;B3((Tx=_.xI("SBOX_SETTINGS"))==null?void 0:Tx.HAS_ON_SCREEN_KEYBOARD)}else _.me(new _.C$("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var YJ=_.Hh(function(fw){fw.preventDefault();Z(J_.value.value,12);return!1}),IN=_.Hh(function(fw){fw.preventDefault();
var Tx,Oq;(Tx=J_)==null||(Oq=Tx.value)==null||Oq.focus();var nq,nw;((nq=J_)==null?void 0:(nw=nq.value)==null?void 0:nw.value)!==""&&(J_.value.value="",J_.value.dispatchEvent(new Event("input")));return!1}),Yw=_.Hh(function(){var fw=tQ6(J_.value.value,n().filter(function(Tx){return Tx.type!==35}).map(function(Tx){return{label:Tx.text}}));
_.AZ(be.value,"yt-open-popup-action",[{openPopupAction:fw},document.body]);return!1}),vD=_.Hh(function(){J_.value.focus();
return!1}),gk=function(fw,Tx,Oq,nq,nw){ec.selectedSuggestionIndex=Oq;
Z(Tx,nw?3:1,nq)},w3=function(fw){J_.value.value=fw;
J_.value.dispatchEvent(new Event("input"));ec.inputMethodsTracker.add(5);LBc(ec,!0)},hR=[[]],EA=function(fw){var Tx="searchbox-suggestion"+_.jb(_.NR);
hR[fw].push(Tx);return Tx},Nj=function(fw){if(n()){hR=[[]];
for(var Tx=0;Tx<fw;Tx++)hR.push([])}},q4=function(){if(ep()){var fw=Kw,Tx=fw.scrollTop;
fw=fw.scrollHeight-fw.clientHeight;e2(Tx>=fw);Tx=Math.abs(fw-Tx);Tx<=40?ie(1-(40-Tx)/40):ie(1)}},ty=function(){return"opacity: "+$R()*100+"%"},KW=_.Hh(function(){q4();
return!1}),au=_.Hh(function(){zx(!1);
return!1}),NX,Xa={},Vh={},MU={},jc={};
return _.J("yt-searchbox",{class:_.bb("ytSearchboxComponentHost",(Xa.ytSearchboxComponentMweb=!1,Xa.ytSearchboxComponentDesktop=!0,Xa["yt-searchbox-filled-query"]=function(){return x()},Xa["ytd-masthead"]=function(){return!R()},Xa.ytSearchboxComponentHostDark=sR,Xa)),
role:"search",el:be,"client-ve-type":10349},_.J("div",{el:rG,"on:click":vD,class:_.bb("ytSearchboxComponentInputBox",(Vh.ytSearchboxComponentInputBoxDark=sR,Vh.ytSearchboxComponentInputBoxHasFocus=R,Vh))},_.J("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":YJ},_.J(_.k,{cond:R,then:function(){return _.J("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.J(_.ll,{icon:"SEARCH"}))}}),_.J("input",{el:J_,
class:_.bb("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Qh,"aria-expanded":!((NX=Kw)==null?0:NX.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":V4,"on:focus":xR,"on:input":Ma,"on:keydown":E_,"on:paste":yk,placeholder:G.placeholderText,"aria-activedescendant":function(){var fw;return(fw=hR[W()])==null?void 0:fw[r()]},
"aria-autocomplete":"list",role:"combobox"})),_.J(_.k,{cond:e,then:function(){return _.J("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.J(VZ6,null))}}),_.J(_.k,{cond:x,
then:function(){return _.J("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.J("button",{class:"ytSearchboxComponentClearButton","on:click":IN,"aria-label":G.clearButtonAriaLabel||T4A},_.J(_.ll,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.J(_.u1,{model:{}})))}})),_.J("button",{class:_.bb("ytSearchboxComponentSearchButton",(MU.ytSearchboxComponentSearchButtonDark=sR,MU)),
"on:click":YJ,"aria-label":cTA,title:G.placeholderText},_.J(_.ll,{icon:"SEARCH"})),_.J(_.k,{cond:function(){if(OMh()&&_.V("mweb_voice_search")&&G.voiceSearchButton)return G.voiceSearchButton()},
then:function(fw){var Tx={};return _.J("div",{class:_.bb("ytSearchboxComponentVoiceSearchWrapper",(Tx.ytSearchboxComponentHideVoiceSearchButton=function(){return x()},Tx))},_.J(_.SP,{data:fw},{buttonRenderer:function(Oq){return _.J(_.pJ,{data:Oq.data,
onButtonClickCallback:function(){}})}}))}}),_.J("div",{el:_.aX(function(fw){return void(Kw=fw)}),
id:Qh,class:_.bb("ytSearchboxComponentSuggestionsContainer",(jc.ytSearchboxComponentSuggestionsContainerDark=sR,jc["yt-searchbox-suggestions-container"]=!1,jc.ytSearchboxComponentSuggestionsContainerScrollable=ep(),jc.ytSearchboxComponentSuggestionsContainerAnimated=d,jc)),"on:scroll":KW,"on:mousemove":au,role:"listbox",hidden:!0},_.J(_.Cl,{each:n},function(fw,Tx){return _.J(e6a,{suggestion:fw,isHighlighted:function(){return Tx()===W()},
onClickCallback:gk,onHoverUpdateCallback:function(Oq){if(_.V("desktop_enable_single_suggestion_highlight")){var nq=Tx();Oq&&(w(0),M(nq))}},
onRemoveCallback:function(Oq){XJ6(cD);Oq===void 0||Oq<0||W3().includes(Oq)||DT([].concat(_.OP(W3()),[Oq]))},
labels:G.labels,queryBuilderFunction:w3,suggestionIndex:Tx,generateUniqueId:EA,highlightedId:function(){var Oq;return(Oq=hR[W()])==null?void 0:Oq[r()]},
useScrollMargin:ep(),isKeyboardMode:UR})}),_.J(_.k,{cond:function(){return!H3()&&n().find(function(fw){return fw.type!==35})&&_.V("searchbox_reporting")},
then:function(){return _.J("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Yw},_.Zg("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.J(_.k,{cond:function(){return!fW()&&ep()},
then:function(){return _.J("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.J("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:ty}))}})))},"qj");
v7c.idomCompat={callbacks:{focusCallback:!0}};_.RX(v7c,"yt-searchbox",{props:{searchEndpoint:_.b3,placeholderText:_.b3,labels:_.b3,voiceSearchButton:_.b3,focusCallback:_.oX,clearButtonAriaLabel:_.b3,forceDarkMode:_.b3}});var sf=function(){var G=_.C.apply(this,arguments)||this;G.menuButtonTargetId="topbar-guide-menu";G.narrow=!1;G.menuStrings={BACK_ALT_LABEL:_.Zg("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Zg("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Zg("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Zg("SBOX_PLACEHOLDER",void 0,"Search")};G.pageDarkTheme=document.documentElement.hasAttribute("dark");G.watchPageScrollTop=0;G.theater=!1;G.fullscreen=!1;G.disableFrostedGlassDuringViewTransition=
!1;G.desktopUnifiedSearchPanelMode=_.V("desktop_enable_unified_search_panel");G.cinematicTheaterMode=_.V("web_cinematic_theater_mode");G.aiCompanionEnabled=_.V("enable_ai_companion");G.ytSearchboxFocused=!1;G.searchboxLabels=_.xI("SBOX_LABELS");G.topbarIsAboveChipbar=!1;G.isDarkThemeForced=!1;G.areGhostCardsHidden=!1;G.guideKeyboardToggle=!1;G.voiceSearchManager=KEL();G.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};G.setYtSearchboxFocused=
function(H){G.ytSearchboxFocused=H};
G.toggleFrostedGlassDuringViewTransition=function(H){G.disableFrostedGlassDuringViewTransition=H};
return G};
_.T(sf,_.C);_.g=sf.prototype;_.g.computeSimpleText=function(G){return _.yn(G)};
_.g.onDarkChanged=function(){for(var G=_.I(this.buttons||[]),H=G.next();!H.done;H=G.next())H.value.isOverlay=!!this.dark;G=_.I(this.buttonRenderers||[]);for(H=G.next();!H.done;H=G.next())H.value.overrides=this.computeButtonOverride()};
_.g.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var G=_.QA(_.ZO(),"aa");_.Gq(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||G||(this.isDarkThemeForced=this.dark=!0);this.logoType?(G=this.hostElement.querySelector("#masthead-logo"))&&(_.V("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.Ku(G)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.pH(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.pH(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.g.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.pH(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.pH(this,this.onSetTheaterModeEnabled))};
_.g.dataChanged=function(){var G=this.data;G&&(this.voiceEnabled=G.voiceSearchButton?KEL().isSupported():!1,_.vL2(_.v9(),this.menuButtonTargetId,this.guideButton),G.onReceivedActions&&G.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.El(this.hostElement,G.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&G&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.Gq(this.hostElement,"dark",!1),_.Gq(this.hostElement,"theater",!1),
(G=this.hostElement.querySelector("#masthead-logo"))&&(_.V("polymer_on_demand_shady_dom")?G.setAttribute("slot","masthead-logo-old"):_.Ku(G))))};
_.g.computeCenterHidden=function(){var G;return this.data&&!((G=this.data.searchbox)==null?0:G.fusionSearchboxRenderer)};
_.g.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.Gq(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.g.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.g.onWatchScroll=function(G){this.watchPageScrollTop=G.detail||0;this.updateMastheadBackgroundOpacity()};
_.g.onFullscreenChangeAction=function(G){G||(this.watchPageScrollTop=0);this.fullscreen=G;this.updateMastheadBackgroundOpacity()};
_.g.onSetTheaterModeEnabled=function(G){this.theater=G.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.g.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.g.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.g.setBackgroundOpacity=function(G){G=this.calculateBackgroundOpacity(G);this.background.style.opacity=""+G};
_.g.calculateBackgroundOpacity=function(G){var H=this.theater&&this.cinematicTheaterMode?.6:0,Z=this.hostElement.clientHeight/2;return Math.min(Math.max(G,0),Z)/Z*(1-H)+H};
_.g.shouldShowCinematicMastHead=function(){var G=_.V("kevlar_watch_grid")&&!_.V("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(G||this.pageDarkTheme)};
_.g.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.g.focusGuide=function(){this.guideButton.focus()};
_.g.onGuideToggleTap=function(){_.N5(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.g.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.g.onGuideToggleHover=function(){_.N5(this.hostElement,"yt-guide-hover")};
_.g.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.g.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.g.closeOnOutsideClickCondition=function(G){for(G=_.OD(G);G[0];){var H=G.shift();if(H instanceof Element&&H.id==="kbd")return!1}return!0};
_.g.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.g.pausePlayer=function(){var G;(G=_.UO())==null||G.pause();this.pauseMiniplayer()};
_.g.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var G;(G=_.tp().resolve(_.WM).getPlayerElement())==null||G.pause()}};
_.g.isMiniplayerActive=function(){return _.tp().resolve(_.WM).isMiniplayerActive()};
_.g.updateNarrowFromBinding=function(G){this.narrow=G.detail.value};
_.g.onYtSendFeedbackAction=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.g.registerWithViewTransitionManager=function(){yqt(_.tp().resolve(_.jB),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.u4.Object.defineProperties(sf.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var G;return!!(this.aiCompanionEnabled&&((G=this.data)==null?0:G.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var G;return(G=this.data)==null?void 0:G.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
sf.prototype.narrowChanged=sf.prototype.narrowChanged;sf.prototype.onWatchPageChange=sf.prototype.onWatchPageChange;sf.prototype.onRendererStamperFinished=sf.prototype.onRendererStamperFinished;sf.prototype.dataChanged=sf.prototype.dataChanged;sf.prototype.onDarkChanged=sf.prototype.onDarkChanged;_.N([_.v(_.hS),_.A("design:type",Object)],sf.prototype,"ironResizableBehavior",void 0);_.N([_.v(_.mla),_.A("design:type",Object)],sf.prototype,"ytdExpandableInputBehavior",void 0);
_.N([_.v(_.Ep.YtdGuideStateAwareBehavior),_.A("design:type",Object)],sf.prototype,"ytdGuideStateAwareBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],sf.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],sf.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],sf.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Up),_.A("design:type",Object)],sf.prototype,"ytdReduxBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],sf.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],sf.prototype,"narrow",void 0);_.N([_.h(),_.A("design:type",Object)],sf.prototype,"logoType",void 0);_.N([_.h(),_.A("design:type",Boolean)],sf.prototype,"voiceEnabled",void 0);
_.N([_.h(),_.A("design:type",Object)],sf.prototype,"menuStrings",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],sf.prototype,"dark",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],sf.prototype,"pageDarkTheme",void 0);_.N([_.h(),_.A("design:type",Object)],sf.prototype,"watchPageScrollTop",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.P1e}),_.A("design:type",Boolean)],sf.prototype,"isWatchPage",void 0);
_.N([_.h({reflectToAttribute:!0,selector:_.rfe}),_.A("design:type",Boolean)],sf.prototype,"isShortsPage",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],sf.prototype,"theater",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],sf.prototype,"fullscreen",void 0);_.N([_.h({reflectToAttribute:!0,selector:_.iie}),_.A("design:type",String)],sf.prototype,"frostedGlassMode",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],sf.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],sf.prototype,"aiCompanionEnabled",void 0);_.N([_.h(),_.A("design:type",Object)],sf.prototype,"ytSearchboxFocused",void 0);_.N([_.S9("#buttons > *"),_.A("design:type",Array)],sf.prototype,"buttons",void 0);_.N([_.S9("ytd-button-renderer"),_.A("design:type",Array)],sf.prototype,"buttonRenderers",void 0);
_.N([_.q6("#background"),_.A("design:type",HTMLDivElement)],sf.prototype,"background",void 0);_.N([_.q6("#guide-button"),_.A("design:type",Object)],sf.prototype,"guideButton",void 0);_.N([_.q6("#logo"),_.A("design:type",Object)],sf.prototype,"logo",void 0);_.N([_.h({computed:"computeButtonOverride(dark)"}),_.A("design:type",Object)],sf.prototype,"buttonOverrides",void 0);
_.N([_.Jv("dark"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sf.prototype,"onDarkChanged",null);_.N([_.h({value:function(){return this.onVoiceTap.bind(this)}}),
_.A("design:type",Function)],sf.prototype,"boundOnTapVoiceButton",void 0);_.N([_.h(),_.A("design:type",Object)],sf.prototype,"topbarIsAboveChipbar",void 0);_.N([_.h(),_.A("design:type",String),_.A("design:paramtypes",[])],sf.prototype,"guideIcon",null);_.N([_.z("voiceEnabled"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sf.prototype,"shouldShowVoiceSearchButton",null);
_.N([_.z("data.aiCompanionButton","aiCompanionEnabled"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],sf.prototype,"shouldShowAiCompanionButton",null);_.N([_.z("data"),_.A("design:type",Object),_.A("design:paramtypes",[])],sf.prototype,"voiceSearchButton",null);_.N([_.z("aiCompanionEnabled"),_.A("design:type",String),_.A("design:paramtypes",[])],sf.prototype,"narrowQuery",null);
_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sf.prototype,"dataChanged",null);_.N([_.lq("yt-rendererstamper-finished"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sf.prototype,"onRendererStamperFinished",null);_.N([_.Jv("isWatchPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sf.prototype,"onWatchPageChange",null);
_.N([_.Jv("narrow"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],sf.prototype,"narrowChanged",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-masthead"})],sf);
_.m(sf,"ytd-masthead",function(){if(q8j!==void 0)return q8j;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return q8j=G},{mode:_.LH("kevlar_poly_si_batch_j036")?1:2});var Wbi;var z6q={},Kbq={},MZt={},jdo={},Phh=(jdo.OFFLINE=(z6q["publicytnetworkstatus-online"]="BACK_ONLINE",z6q),jdo.ONLINE=(Kbq["publicytnetworkstatus-offline"]="OFFLINE",Kbq),jdo.BACK_ONLINE=(MZt["publicytnetworkstatus-offline"]="OFFLINE",MZt.TIMER_TRIGGER="ONLINE",MZt),jdo),Z3=function(){var G=_.C.apply(this,arguments)||this;G.currentState="ONLINE";G.scheduledJobId=0;G.bannerString="";G.bannerVe=null;G.networkStatusManagerInstance=new _.sN;return G};
_.T(Z3,_.C);_.g=Z3.prototype;_.g.attached=function(){var G=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){G.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){G.stateChangeHandler("publicytnetworkstatus-offline")})};
_.g.detached=function(){var G=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){G.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){G.stateChangeHandler("publicytnetworkstatus-offline")})};
_.g.enterState=function(G){var H=this;this.scheduledJobId&&_.Ui.cancelJob(this.scheduledJobId);G==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):G==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Zg("NO_INTERNET_CONNECTION",void 0,"No internet connection")):G==="BACK_ONLINE"&&(this.bannerString=_.Zg("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.wM(_.Ui,function(){H.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=G};
_.g.stateChangeHandler=function(G){(G=Phh[this.currentState][G])&&this.enterState(G)};
_.g.logVisibility=function(G){var H=_.$k();this.createBannerVe(G);H&&this.bannerVe&&(G?_.w8(H,[this.bannerVe]):_.hU(H,[this.bannerVe]))};
_.g.createBannerVe=function(G){!this.bannerVe&&G&&(this.bannerVe=_.bl(37929),_.vN(_.gr(),this.bannerVe))};
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",String)],Z3.prototype,"currentState",void 0);_.N([_.h(),_.A("design:type",Object)],Z3.prototype,"scheduledJobId",void 0);_.N([_.h(),_.A("design:type",Object)],Z3.prototype,"bannerString",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Z3);
_.m(Z3,"ytd-network-status-banner",function(){if(Wbi!==void 0)return Wbi;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return Wbi=
G},{mode:1});var rTh;var QG=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};G.hidden=!0;G.frostedGlass=_.V("web_frosted_glass");return G};
_.T(QG,_.C);QG.prototype.computeHidden=function(G){return G&&G.status?!1:!0};
QG.prototype.handleUpdatePermissionRoleCommand=function(G){if(G=_.X(G,_.jip))if(G=_.X(G.renderer,_.M8R))this.data=G};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],QG.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],QG.prototype,"componentBehavior",void 0);_.N([_.h({value:!0,computed:"computeHidden(data)"}),_.A("design:type",Object)],QG.prototype,"hidden",void 0);_.N([_.h(),_.A("design:type",Object)],QG.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],QG.prototype,"frostedGlass",void 0);
_.N([_.O({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],QG);
_.m(QG,"ytd-permission-role-bottom-bar-renderer",function(){if(rTh!==void 0)return rTh;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return rTh=G},{mode:1});var wJo;var h6o;var tDi={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var pv=function(){return _.C.apply(this,arguments)||this};
_.T(pv,_.C);_.g=pv.prototype;_.g.attached=function(){this.JSC$21095_scroller&&(this.JSC$21095_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21095_scroller.attached&&typeof this.JSC$21095_scroller.attached==="function"&&this.JSC$21095_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(Z){Z.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var G=_.F9(this.hostElement);G.querySelector("tp-yt-paper-radio-group").selected="";var H=G.querySelector("#reason-text");H&&(H.value="");G.querySelector("#description-text").value=""}};
_.g.canSubmit=function(G,H){_.N5(this.hostElement,"yt-invalidate-popup-tabbables");return!(G&&H)};
_.g.onCancel=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.g.onSubmit=function(){var G=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(l){return l.active}).map(function(l){return l.innerText.trim()}),H=this.hostElement.querySelector("tp-yt-paper-radio-group"),Z=H.selectedItem,Q=Z.name;
Z=Z.innerText.trim();var p=H.querySelector("#reason-text");H=void 0;p&&(H=p.value);(p=this.descriptionText.value)&&(p=p.trim());kWt(this.data.searchQuery,G,Q,Z,p,H);_.AZ(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.g.sendFormSubmitToast=function(){var G=_.Nv(_.Zg("SBOX_INAPPROPRIATE_TOAST"));_.AZ(this.hostElement,"yt-open-popup-action",[G,this])};
_.g.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(G){return G.active})};
_.g.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
pv.prototype.onIronSelect=pv.prototype.onIronSelect;pv.prototype.onIronChange=pv.prototype.onIronChange;pv.prototype.dataChanged=pv.prototype.dataChanged;_.N([_.h(),_.A("design:type",Object)],pv.prototype,"data",void 0);_.N([_.h({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.A("design:type",Boolean)],pv.prototype,"submitDisabled",void 0);_.N([_.h(),_.A("design:type",Boolean)],pv.prototype,"suggestionSelected",void 0);
_.N([_.h(),_.A("design:type",Boolean)],pv.prototype,"catagorySelected",void 0);_.N([_.q6("#scroller"),_.A("design:type",Object)],pv.prototype,"JSC$21095_scroller",void 0);_.N([_.q6("#description-text"),_.A("design:type",Object)],pv.prototype,"descriptionText",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pv.prototype,"dataChanged",null);
_.N([_.lq("iron-change"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pv.prototype,"onIronChange",null);_.N([_.lq("iron-select"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],pv.prototype,"onIronSelect",null);_.N([_.O({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],pv);
_.m(pv,"ytd-search-suggestion-report-dialog",function(){if(h6o!==void 0)return h6o;var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);return h6o=G},{mode:1});var lj=function(G){var H=G.openPopupAction;var Z=G.target;var Q=G.container;var p=G.popupContainerConfig;var l=G.getElement;G=G.removeWhenClosed===void 0?!1:G.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=H;this.target=Z;this.container=Q;this.popupContainerConfig=p;this.getElement=l;this.JSC$21101_popupConfig=this.popupContainerConfig.JSC$20224_popupConfig[this.openPopupAction.popupType];this.rendererName=(H=this.getName())?_.ZG3(H,gZk(this.popupContainerConfig,
H)):"";_.V("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=G);this.createPopup()};
lj.prototype.updatePopup=function(G){this.openPopupAction=G;this.JSC$21101_popupConfig=this.popupContainerConfig.JSC$20224_popupConfig[this.openPopupAction.popupType];Cht(this);_.V("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
lj.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var amk=function(G,H,Z){(H=H&&G.JSC$21101_popupConfig.narrowProperties?G.JSC$21101_popupConfig.narrowProperties:G.JSC$21101_popupConfig.properties)&&Z!==void 0&&(H.isAriaModal=Z);iPs(G,H);G.isRtl()&&iPs(G,G.JSC$21101_popupConfig.rtlProperties);OPA(G)};
lj.prototype.createPopup=function(){var G=this.JSC$21101_popupConfig.component;if(this.popupContent=yTA(this,this.rendererName)){if(G){this.popup=yTA(this,G);var H=this.popupContent;_.V("web_enable_wrapper_for_cow_component_in_popup")&&(H=document.createElement("div"),H.appendChild(this.popupContent));_.V("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21101_popupConfig.slotName&&H.setAttribute("slot",this.JSC$21101_popupConfig.slotName);G=this.popup;var Z=this.container.tagName.toLowerCase(),
Q=_.o_(H);_.pFM(_.UD(G),_.Nl(H,Z,Q));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.V("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.F9(this.container).appendChild(this.popup)}};
var Cht=function(G){var H,Z,Q=(H=G.openPopupAction.accessibilityData)==null?void 0:(Z=H.accessibilityData)==null?void 0:Z.label;Q&&(G.popup.ariaLabel=Q);var p;((p=G.popupContent.polymerController)!=null?p:G.popupContent).data=(0,_.oN.unsafeClone)(G.openPopupAction.popup[G.getName()]);G.popupContent.duration=o7L(G);G.popupContent.positionType=G.openPopupAction.position;var l=G.openPopupAction.properties;l&&Object.keys(l).forEach(function(q){G.popupContent[q]=l[q]})},iPs=function(G,H){if(H)for(var Z=
_.I(Object.keys(H)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,G.popup[Q]=H[Q]},OPA=function(G){if(G.openPopupAction.position){var H=G.JSC$21101_popupConfig.positionalProperties&&G.JSC$21101_popupConfig.positionalProperties[G.openPopupAction.position],Z=G.JSC$21101_popupConfig.rtlPositionalProperties&&G.JSC$21101_popupConfig.rtlPositionalProperties[G.openPopupAction.position];
H=G.isRtl()&&Z?Z:H;H.shiftedHorizontalOffset&&(Z=G.popup.style.display,G.popup.style.display="block",G.popupContent&&G.popup.positionTarget&&G.popupContent.clientWidth>G.popup.positionTarget.clientWidth&&(H.horizontalOffset=G.popup.positionTarget.clientWidth/2-H.shiftedHorizontalOffset),G.popup.style.display=Z);iPs(G,H)}},mDL=function(G,H){if(H)for(var Z=_.I(Object.keys(H)),Q=Z.next();!Q.done;Q=Z.next())Q=Q.value,G.popup.style[Q]=H[Q]};
lj.prototype.getName=function(){return _.Rz(this.openPopupAction.popup,"renderer")||_.Rz(this.openPopupAction.popup,"dialog")||_.Rz(this.openPopupAction.popup,"model")||void 0};
var o7L=function(G){G=G.openPopupAction.durationHintMs;return G===0?G:Math.max(4E3,G||4E3)};
lj.prototype.isRtl=function(){return _.xI("HTML_DIR")==="rtl"};
var yTA=function(G,H){G=G.getElement(H,G.target);G==null&&_.Rp(new _.C$("popup getElement returned null",H));return G};var UDA={};
UDA.YtPopupContainerBehavior=[_.RT.YtComponentBehavior,_.V6.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_);_.Ul(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.RO(this.hostElement)},
closePopup:function(G){var H=this.createCacheKey(void 0,G);this.popups_[H]&&this.handleClosePopupAction_(void 0,G)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Ui.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Ui.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(G){G.opened&&G.keepBelowPlayer&&this.ensurePopupBelowPlayer(G)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var G in this.popups_){var H=this.popups_[G];if(H.popup.scrollAction==="refit"){var Z=H.popup.positionTarget.getBoundingClientRect(),Q=H.popup;Z=Z.top;var p=H;if(!p.naturalHeight){p.popup.hidden=!1;p.popup.style.position="fixed";p.popup.style.top="0px";p.popup.style.left="0px";var l=p.popup.getBoundingClientRect();p.naturalHeight=l.bottom-l.top;p.popup.refit()}Q.hidden=!(Z>=p.naturalHeight+60);H.popupContent.clientHeight===0&&H.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(G){this.popupContainerConfig=G},
handleOpenPopupAction:function(G,H){var Z=G.openPopupAction,Q=_.tp().resolve(_.Jp(_.Gg))&&Z.popupType==="TOAST";Q&&!Z.uniqueId&&(Z.uniqueId=_.zH());if(!_.V("popup_container_parent_target_killswitch")){var p;H=(p=this.getParentTarget(H))!=null?p:H}var l=this.ensurePopup_(Z,H);return new _.T_(function(q){l.then(function(u){if(!u)return q();this.maybeCreateNarrowMediaQuery_();var B=this.createCacheKey(u.rendererName,u.openPopupAction.uniqueId);if(Z.showOncePerUniqueId){if(this.shownPopupKeys_.has(B))return q();
this.shownPopupKeys_.add(B)}B=this.popups_[B];var t=!(!B||!B.openPopupAction.beReused);t=!!Z.reusePopup||t;if(u.popup.opened&&!t){Q&&!u.openPopupAction.replacePopup||this.handleClosePopupAction_(u.rendererName,u.openPopupAction.uniqueId);t=Z.popupType==="DIALOG"&&!_.V("popup_container_dialog_reopen_killswitch");if(!Q&&!t&&B&&B.target==H&&!u.openPopupAction.replacePopup)return q();_.q2(u.popup,function(){this.completeOpenPopupAction_(Z,H,u);q()}.bind(this))}else u.popup.opened?u.updatePopup(Z):this.completeOpenPopupAction_(Z,
H,u),q()}.bind(this))}.bind(this))},
getParentTarget:function(G){if(G&&G instanceof HTMLElement)for(var H=_.I(Object.entries(this.popups_)),Z=H.next();!Z.done;Z=H.next())if(Z=_.I(Z.value),Z.next(),Z=Z.next().value,this.popupClosesOnClick(Z)&&Z.popup.contains(G))return Z.target},
popupClosesOnClick:function(G){return G.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(G.rendererName.toUpperCase())},
completeOpenPopupAction_:function(G,H,Z){Z.updatePopup(G);G=this.narrowMediaQuery_.queryMatches;var Q=this.isAriaModal;Z.target=H;var p;H=((p=Z.target.polymerController)!=null?p:Z.target).popupPositionTarget||Z.target;Z.JSC$21101_popupConfig.targetContainer&&(H=Z.container);Z.popup.positionTarget=H;Z.popupContent.positionTarget=H;OPA(Z);Z.JSC$21101_popupConfig.forceFocus&&(Z.popupContent.style.outline="none");Z.popupContent.tabIndex=-1;Z.JSC$21101_popupConfig.narrowProperties&&(Z.popup.style.position=
"static");Z.JSC$21101_popupConfig.preventAutonav&&Z.popup.setAttribute("prevent-autonav",!0);Z.JSC$21101_popupConfig.forceCloseOnOutsideClick&&Z.popup.setAttribute("force-close-on-outside-click",!0);amk(Z,G,Q);mDL(Z,Z.JSC$21101_popupConfig.styles);Z.isRtl()&&mDL(Z,Z.JSC$21101_popupConfig.rtlStyles);if(!Z.openPopupAction.shouldStopParentSignal){var l;p=(l=Z.target.polymerController)!=null?l:Z.target;(Z.popupContent.startForwardingEvents||Z.popupContainerConfig.forwardingEnabledPopups.has(Z.rendererName))&&
p.parentComponent!==Z.popupContent&&Z.popupContent!==Z.target&&Z.target!==document.body&&(Z.popupContent.startForwardingEvents?Z.popupContent.startForwardingEvents(Z.popupContainerConfig.forwardedEvents,Z.target):(Z.JSC$21101_eventForwarder||(Z.JSC$21101_eventForwarder=new _.YG(Z.popupContent)),Z.JSC$21101_eventForwarder.start(Z.popupContainerConfig.forwardedEvents,Z.target)))}Z=Z.popup;Z.addEventListener("iron-overlay-opened",_.pH(this,this.onPopupIronOverlayOpened_));Z.addEventListener("iron-overlay-closed",
_.pH(this,this.onPopupIronOverlayClosed_));Z.addEventListener("iron-overlay-canceled",_.pH(this,this.onPopupIronOverlayCanceled_));Z.addEventListener("yt-refit",_.pH(this,this.refitPopup_));Z.addEventListener("yt-invalidate-popup-tabbables",_.pH(this,this.handleInvalidatePopupTabbables_));Z.open()},
getPopupDurationMs_:function(G){return G.durationHintMs===0?G.durationHintMs:Math.max(4E3,G.durationHintMs||4E3)},
handleClosePopupAction_:function(G,H){var Z=_.V("web_popup_cache_key_killswitch")||!!H;if(G||Z){var Q=this.createCacheKey(G,H);G=(G=this.popups_[Q])&&G.popup}else G=_.hP4(_.Es);if(G&&G.close){if(H=_.tp().resolve(_.Jp(_.qZ)))G.restoreFocusOnClose=H.isKeyBoardInUse();G.close();this.removePopup_(G,Q)}},
handleClosePopupCommand_:function(G){G.closePopupCommand&&G.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,G.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(G){var H={},Z;for(Z in this.popups_)if(H={key$jscomp$1224:H.key$jscomp$1224},H.key$jscomp$1224=Z,!G||!G.some(function(l){return function(q){return q==l.key$jscomp$1224}}(H))){var Q=this.popups_[H.key$jscomp$1224],p=Q.popup;
_.tp().resolve(_.Jp(_.Gg))&&Q.openPopupAction.popupType==="TOAST"||(p&&p.close&&p.close(),this.removePopup_(p,H.key$jscomp$1224))}},
handleClosePopupsAction_:function(G){G.forEach(function(H){var Z=this.popups_[H];Z&&((Z=Z.popup)&&Z.close&&Z.close(),this.removePopup_(Z,H))}.bind(this))},
handleGetPopupOpenedAction_:function(G,H){return(H=this.createCacheKey(G,H))&&this.popups_[H]?this.popups_[G].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var G=[],H;for(H in this.popups_){var Z=this.popups_[H];Z.popup.opened&&G.push(Z)}return G},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(G,H){_.V("ytpopup_disable_default_html_caching")&&G&&G.removeWhenClosed&&(_.F9(this.hostElement).removeChild(G),H&&this.popups_[H]&&delete this.popups_[H])},
shouldReusePopup_:function(G){return!(!G||!G.reusePopup)||!(!G||!G.beReused)},
ensurePopup_:function(G,H){this.maybeCreateNarrowMediaQuery_();var Z=_.Rz(G.popup,"renderer")||_.Rz(G.popup,"dialog")||_.Rz(G.popup,"model");if(!Z)return _.Yk();Z=_.ZG3(Z,gZk(this.popupContainerConfig,Z));return _.Yk(this.getAndMaybeCreatePopup_(G,Z,H))},
getAndMaybeCreatePopup_:function(G,H,Z){var Q=this.createCacheKey(H,G.uniqueId);if(this.popups_[Q])return this.popups_[Q];G=new lj({openPopupAction:G,target:Z,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(H)});return this.popups_[Q]=G},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(G){return _.V("ytpopup_disable_default_html_caching")?G&&G.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",_.pH(this,this.openPopupQueryMatchesChanged_)),_.F9(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(G){G=G.detail.value;for(var H in this.popups_)amk(this.popups_[H],G)},
onPopupIronOverlayClosed_:function(G){var H=G.currentTarget,Z=_.fzu(H);Z=Z.length>0?Z[0]:H;if(Z.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){G.detail.popup=H;G.detail.popupRenderer=Z;var Q,p={context:{openingElement:((Q=this.popups_[(Z==null?void 0:Z.is)||""])==null?void 0:Q.target)||void 0}};Object.assign(p,G.detail);var l;_.N5((l=Z.hostElement)!=null?l:Z,"yt-popup-closed",p);H.removeEventListener("yt-refit",_.pH(this,this.refitPopup_));H.removeEventListener("yt-invalidate-popup-tabbables",
_.pH(this,this.handleInvalidatePopupTabbables_));H.removeEventListener("iron-overlay-canceled",_.pH(this,this.onPopupIronOverlayCanceled_));H.removeEventListener("iron-overlay-closed",_.pH(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(H)}},
onPopupIronOverlayCanceled_:function(G,H){var Z=G.currentTarget,Q=_.fzu(Z);Q=Q.length>0?Q[0]:Z;if(Q.is!=="ytd-reel-watch-while-dialog-renderer"||G.target.is!=="tp-yt-iron-dropdown"){var p;_.N5((p=Q.hostElement)!=null?p:Q,"yt-popup-canceled",G.detail);p=H?_.OD(H):null;(!H||["click","tap"].includes(H.type))&&!Z.hasAttribute("force-close-on-outside-click")&&Z.positionTarget&&p&&p.includes(Z.positionTarget)&&G.preventDefault();Z.restoreFocusOnClose=_.vZ.keyboardEventMatchesKeys(H,"esc")}},
onPopupIronOverlayOpened_:function(G){G=G.currentTarget;var H=_.fzu(G);H=H.length>0?H[0]:G;var Z,Q;_.N5((Z=H.hostElement)!=null?Z:H,"yt-popup-opened",(Q=H.hostElement)!=null?Q:H);G.keepBelowPlayer&&(this.ensurePopupBelowPlayer(G,!0),this.dynamicallyPositionedElements_.add(G));Z=_.tp().resolve(_.Jp(_.qZ));Q=!!H.querySelector("#toast");Z&&Z.isKeyBoardInUse()&&!Q&&(typeof H.focusFirstItem==="function"?H.focusFirstItem():(H=_.P__(G),H.length&&H[0].focus()));G.removeEventListener("iron-overlay-opened",
_.pH(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(G){G=G.currentTarget;G.refit&&G.refit()},
refitPopups_:function(){for(var G in this.popups_)this.popups_[G].refit()},
handleInvalidatePopupTabbables_:function(G){G=G.currentTarget;G.invalidateTabbables&&G.invalidateTabbables()},
createCacheKey:function(G,H){return _.V("web_popup_cache_key_killswitch")?H?G+"#"+H:G:H?"#"+H:G},
openSheet:function(G,H){var Z=G==null?void 0:G.openPopupActionCommand;if(!Z&&(G==null?0:G.viewModel)){if(G.sheetPosition)a:switch(G.sheetPosition){case "SHEET_POSITION_RIGHT":Z="OPEN_POPUP_POSITION_RIGHT";break a;default:Z="OPEN_POPUP_POSITION_UNKNOWN"}else Z=void 0;Z={openPopupAction:{popup:{sheetViewModel:G.viewModel},popupType:"CONTEXTUAL_SHEET",position:Z}}}Z&&this.handleOpenPopupAction(Z,H)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var G=this;return _.S(function(H){return H.return(G.handleGetOpenedPopupsAction_().filter(function(Z){var Q;return((Q=Z.openPopupAction)==null?void 0:Q.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(G,H,Z){if(_.V("web_dialog_utils_killswitch")){var Q=G==null?void 0:G.openPopupActionCommand,p=(Z==null?0:Z.ariaLabel)?{accessibilityData:{accessibilityData:{label:Z.ariaLabel}}}:void 0;!Q&&(G==null?0:G.viewModel)&&(Q={openPopupAction:Object.assign({},{popup:{dialogViewModel:G.viewModel},popupType:(Z==null?0:Z.isModal)?"MODAL":"DIALOG"},p&&p)});Q&&this.handleOpenPopupAction(Q,H)}else{if(p=G==null?void 0:G.viewModel){var l=Z=Z===void 0?{}:Z;Z=l.ariaLabel;p={popup:{dialogViewModel:p},
popupType:l.isModal?"MODAL":"DIALOG"};l={accessibilityData:{label:Z}};Z&&(p.accessibilityData=l);p={openPopupAction:p}}else p=void 0;if(p=(Q=p)!=null?Q:G==null?void 0:G.openPopupActionCommand)this.isAriaModal=_.V("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(p,H)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var G=this;return _.S(function(H){return H.return(G.handleGetOpenedPopupsAction_().filter(function(Z){var Q;return((Q=Z.openPopupAction)==null?void 0:Q.popupType)==="DIALOG"}).length>0)})}}];var R6o;var N4L;var ATD=_.CM(["about:blank"]),g_=function(){var G=_.C.apply(this,arguments)||this;G.isMuted=!1;G.pageLoadTimeoutId=void 0;return G};
_.T(g_,_.C);_.g=g_.prototype;_.g.dataChanged=function(){var G=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var H=this.data.url,Z=_.R1(H);_.V("enable_yt_ata_iframe_authuser")?(Z=_.R1(H),_.bI(this.iframe,D8A(Z))):_.bI(this.iframe,Z);this.pageLoadTimeoutId=_.wM(_.DG(),function(){return void G.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.b6({destination:window,iframe:this.iframe,origin:_.sfw(Z.toString()),channelName:"ataiframe",onMessage:_.q_w(Waq,function(Q){z9L(Q.data)?(Q=_.YA(Q.data,1,_.lo,_.tR()),Q.length!==1?_.Rp(Error("Ml")):(Q=Q[0],Q===3?(G.isMuted=!0,G.logStateChanged({adMuteRequested:!0})):Q===1&&G.close())):_.Rp(Error("Nl"))}),
onEstablished:function(){G.cancelPageLoadTimeout();G.logStateChanged({pageLoadSucceeded:!0})}})}};
_.g.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.DG().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.g.logStateChanged=function(G){var H;if((H=this.data)==null?0:H.trackingParams)G={adsClientData:{aboutThisAdData:G}},_.gr().stateChanged(this.data.trackingParams,G)};
_.g.close=function(){_.AZ(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.handlesPopupClosed=function(G,H){var Z=this,Q,p;return _.S(function(l){if(l.nextAddress==1)return _.xI("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.AZ(Z.hostElement,"on-about-this-ad-popup-closed",[Z.isMuted,H]),l.jumpTo(0)):G&&d86(G)?l.yield(exo(G),4):(Z.isMuted&&_.AZ(Z.hostElement,"yt-mute-ad-action",[Z.is,Z]),l.jumpTo(0));if(Q=l.yieldResult){var q=p=new _.O0(Q),u=Z.isMuted;q.getOptions().includes("onAboutThisAdPopupClosed")?_.BHa(q,"onAboutThisAdPopupClosed",{isMuted:u,layoutId:H}):_.MB("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.K0(l)})};
_.g.onPopupClosed=function(G){var H=this,Z,Q;return _.S(function(p){Z=_.VB(ATD);_.bI(H.iframe,Z);H.cancelPageLoadTimeout();if(!H.data)return p.jumpTo(0);H.ytRendererBehavior.markDirty();Q=G.detail.context.openingElement;return p.yield(H.handlesPopupClosed(Q,H.data.layoutId),0)})};
_.g.detached=function(){this.cancelPageLoadTimeout()};
_.g.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
g_.prototype.onPopupClosed=g_.prototype.onPopupClosed;g_.prototype.dataChanged=g_.prototype.dataChanged;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.N([_.q6("#iframe"),_.A("design:type",HTMLIFrameElement)],g_.prototype,"iframe",void 0);_.N([_.h(),_.A("design:type",Object)],g_.prototype,"data",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],g_.prototype,"dataChanged",null);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype",Promise)],g_.prototype,"onPopupClosed",null);_.N([_.fH({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],g_);
_.m(g_,"yt-about-this-ad-renderer",function(){if(N4L===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;R6o===void 0&&(R6o=document.createElement("template"));var Q=R6o;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);N4L=G}G=N4L;return G},{mode:2});var xDD;var Lbq;var E7j=function(G){var H=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=H.message;"stack"in H&&(this.stack=H.stack);this.maxFileSizeMB=G;Object.setPrototypeOf(this,E7j.prototype)};
_.T(E7j,Error);var Y8A=function(G,H){var Z=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.minWidth=G;this.minHeight=H;Object.setPrototypeOf(this,Y8A.prototype)};
_.T(Y8A,Error);var Fb8=function(G){this.requirements=G;this.JSC$21129_maxFileSize=G.maxFileSizeMB*1024*1024},bPs=function(G,H){if(H.size>G.JSC$21129_maxFileSize)throw new E7j(G.requirements.maxFileSizeMB);
};var GNL=function(G,H){this.canvas=G;this.imageEditorBuilder=H};
GNL.prototype.addEventListeners=function(G){var H=function(p){H7h(G,p)};
this.JSC$21135_mouseDownEvent=H;var Z=function(p){s8k(G,p)};
this.JSC$21135_mouseMoveEvent=Z;var Q=function(){Z7c(G)};
this.JSC$21135_mouseUpEvent=Q;this.canvas.addEventListener("mousedown",H);this.canvas.addEventListener("mousemove",Z);document.addEventListener("mouseup",Q)};
GNL.prototype.removeEventListeners=function(){this.JSC$21135_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21135_mouseDownEvent);this.JSC$21135_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21135_mouseMoveEvent);this.JSC$21135_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21135_mouseUpEvent)};
var Q8o=function(G,H){G.removeEventListeners();return new Promise(function(Z){var Q=new Image;Q.crossOrigin="anonymous";Q.onload=function(){var p=G.imageEditorBuilder(G.canvas,Q);G.addEventListeners(p);Z(p)};
Q.src=H})},I2=function(G,H,Z,Q,p,l,q,u){this.canvas=G;
this.image=H;this.requiredRatio=Z;this.minImageCropDimension=Q;this.minOutputImageResolution=p;this.component=l;this.styleFocusedCorner=u===void 0?!0:u;this.action=2;this.focusedCorner=this.resizeCorner=0;G=this.canvas.getContext("2d");if(!G)throw Error("Ol");this.ctx=G;this.canvasMargin=q!=null?q:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;q=this.image;G=this.canvasInnerWidth/q.width;q.height*G>912&&(G=q.width/q.height*912/q.width);q=G;this.scaledImageWidth=this.canvas.width%2?
VDi(this.image.width*q):nHo(this.image.width*q);this.scaledImageHeight=Math.round(this.image.height*q);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21138_overlayMarginBottom=this.JSC$21138_overlayMarginTop=this.canvasMargin;this.JSC$21138_overlayMarginRight=this.JSC$21138_overlayMarginLeft=this.horizontalMargin;this.JSC$21138_overlayWidth=this.scaledImageWidth;this.JSC$21138_overlayHeight=this.scaledImageHeight;
G=this.image.width/this.image.height;G>this.requiredRatio?(this.JSC$21138_overlayWidth=this.canvas.width%2?VDi(this.scaledImageHeight*this.requiredRatio):nHo(this.scaledImageHeight*this.requiredRatio),this.JSC$21138_overlayMarginRight=this.JSC$21138_overlayMarginLeft=(this.canvas.width-this.JSC$21138_overlayWidth)/2):G<this.requiredRatio&&(this.JSC$21138_overlayHeight=this.canvas.height%2?VDi(this.scaledImageWidth/this.requiredRatio):nHo(this.scaledImageWidth/this.requiredRatio),this.JSC$21138_overlayMarginBottom=
this.JSC$21138_overlayMarginTop=(this.canvas.height-this.JSC$21138_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*q,this.scaledImageWidth);pjD(this)};
I2.prototype.getContext=function(){return this.ctx};
var H7h=function(G,H){H={x:Math.round(H.pageX-G.canvas.getBoundingClientRect().left),y:Math.round(H.pageY-G.canvas.getBoundingClientRect().top)};G.dragStart=H;les(G,H)!==0?(G.action=1,geL(G,H),G.resizeCorner=les(G,H)):H.x>G.JSC$21138_overlayMarginLeft&&H.x<G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth&&H.y>G.JSC$21138_overlayMarginTop&&H.y<G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight&&(G.action=0)},Ieq=function(G,H){switch(H){case 1:return{x:G.JSC$21138_overlayMarginLeft,
y:G.JSC$21138_overlayMarginTop};case 2:return{x:G.JSC$21138_overlayMarginLeft,y:G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight};case 3:return{x:G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth,y:G.JSC$21138_overlayMarginTop};case 4:return{x:G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth,y:G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight};default:throw Error("Pl");}},SQi=function(G,H){if(G.focusedCorner!==0){G.dragStart=Ieq(G,G.focusedCorner);
G.action=1;G.resizeCorner=G.focusedCorner;var Z=G.dragStart.x,Q=G.dragStart.y;switch(H){case 0:G.focusedCorner===1||G.focusedCorner===4?(Z-=10,Q-=10):(Z-=10,Q+=10);break;case 1:G.focusedCorner===1||G.focusedCorner===4?(Z+=10,Q+=10):(Z+=10,Q-=10);break;case 2:Z=G.focusedCorner===1||G.focusedCorner===4?Z-10:Z+10;Q-=10;break;case 3:Z=G.focusedCorner===1||G.focusedCorner===4?Z+10:Z-10;Q+=10;break;default:throw Error("Ql");}qQh(G,{x:Z,y:Q});pjD(G);G.action=2;G.dragStart=void 0}},s8k=function(G,H){H={x:Math.round(H.pageX-
G.canvas.getBoundingClientRect().left),
y:Math.round(H.pageY-G.canvas.getBoundingClientRect().top)};geL(G,H);switch(G.action){case 1:qQh(G,H);break;case 0:G.dragStart&&(G.JSC$21138_overlayMarginLeft=Math.max(G.horizontalMargin,Math.min(G.JSC$21138_overlayMarginLeft-(G.dragStart.x-H.x),G.horizontalMargin+G.scaledImageWidth-G.JSC$21138_overlayWidth)),G.JSC$21138_overlayMarginRight=G.canvas.width-G.JSC$21138_overlayMarginLeft-G.JSC$21138_overlayWidth,G.JSC$21138_overlayMarginTop=Math.max(G.canvasMargin,Math.min(G.JSC$21138_overlayMarginTop-
(G.dragStart.y-H.y),G.scaledImageHeight-G.JSC$21138_overlayHeight+G.canvasMargin)),G.JSC$21138_overlayMarginBottom=G.canvas.height-(G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight));break;default:return}pjD(G);G.dragStart=H},Z7c=function(G){G.action=2;
G.dragStart=void 0;document.body.style.cursor="auto"},geL=function(G,H){switch(les(G,H)){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:G.action!==1&&(document.body.style.cursor="auto")}},les=function(G,H){var Z=G.JSC$21138_overlayMarginLeft-5,Q=G.JSC$21138_overlayMarginTop-5,p=G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth-5;
G=G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight-5;return u2D(H,{x:Z,y:Q})?1:u2D(H,{x:p,y:Q})?3:u2D(H,{x:Z,y:G})?2:u2D(H,{x:p,y:G})?4:0},u2D=function(G,H){return G.x>=H.x&&G.x<=H.x+10&&G.y>=H.y&&G.y<=H.y+10},qQh=function(G,H){if(G.dragStart)switch(G.resizeCorner){case 2:Math.abs((G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth-H.x)/(H.y-G.JSC$21138_overlayMarginTop))>=G.requiredRatio?BFm(G,H.x):JXs(G,H.y);
break;case 1:Math.abs((G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth-H.x)/(G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight-H.y))>=G.requiredRatio?tR8(G,H.x):JXs(G,H.y);break;case 4:Math.abs((H.x-G.JSC$21138_overlayMarginLeft)/(H.y-G.JSC$21138_overlayMarginTop))>=G.requiredRatio?BFm(G,H.x):kNh(G,H.y);break;case 3:Math.abs((H.x-G.JSC$21138_overlayMarginLeft)/(G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight-H.y))>=G.requiredRatio?tR8(G,H.x):kNh(G,H.y);break;default:throw Error("Rl");
}},BFm=function(G,H){var Z=G.JSC$21138_overlayMarginTop;
G.JSC$21138_overlayMarginBottom=Dwc(G,H);G.JSC$21138_overlayHeight=G.canvas.height-G.JSC$21138_overlayMarginBottom-Z;G.JSC$21138_overlayWidth=Math.round(G.JSC$21138_overlayHeight*G.requiredRatio);dwm(G)},tR8=function(G,H){var Z=G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight;
G.JSC$21138_overlayMarginTop=Dwc(G,H);G.JSC$21138_overlayHeight=Z-G.JSC$21138_overlayMarginTop;G.JSC$21138_overlayWidth=Math.round(G.JSC$21138_overlayHeight*G.requiredRatio);dwm(G)},dwm=function(G){switch(G.resizeCorner){case 2:case 1:G.JSC$21138_overlayMarginLeft=G.canvas.width-G.JSC$21138_overlayMarginRight-G.JSC$21138_overlayWidth;
break;case 4:case 3:G.JSC$21138_overlayMarginRight=G.canvas.width-G.JSC$21138_overlayMarginLeft-G.JSC$21138_overlayWidth;break;default:throw Error("Rl");}},JXs=function(G,H){var Z=G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth;
G.JSC$21138_overlayMarginLeft=eCc(G,H);G.JSC$21138_overlayWidth=Z-G.JSC$21138_overlayMarginLeft;G.JSC$21138_overlayHeight=Math.round(G.JSC$21138_overlayWidth/G.requiredRatio);nes(G)},kNh=function(G,H){var Z=G.JSC$21138_overlayMarginLeft;
G.JSC$21138_overlayMarginRight=eCc(G,H);G.JSC$21138_overlayWidth=G.canvas.width-G.JSC$21138_overlayMarginRight-Z;G.JSC$21138_overlayHeight=Math.round(G.JSC$21138_overlayWidth/G.requiredRatio);nes(G)},nes=function(G){switch(G.resizeCorner){case 2:case 4:G.JSC$21138_overlayMarginBottom=G.canvas.height-G.JSC$21138_overlayMarginTop-G.JSC$21138_overlayHeight;
break;case 1:case 3:G.JSC$21138_overlayMarginTop=G.canvas.height-G.JSC$21138_overlayMarginBottom-G.JSC$21138_overlayHeight;break;default:throw Error("Rl");}},Dwc=function(G,H){switch(G.resizeCorner){case 2:H=G.canvas.height-(G.JSC$21138_overlayMarginTop+VRh(G,H));
break;case 4:H=G.canvas.height-(G.JSC$21138_overlayMarginTop+$wh(G,H));break;case 1:H=G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight-VRh(G,H);break;case 3:H=G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight-$wh(G,H);break;default:throw Error("Rl");}return Math.max(H,G.canvasMargin)},VRh=function(G,H){H=G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth-Math.max(H,G.horizontalMargin);
H=H<0?G.JSC$21138_overlayWidth:Math.max(H,G.minOverlayWidth);return Math.round(H/G.requiredRatio)},$wh=function(G,H){H=G.canvas.width-Math.max(G.canvas.width-H,G.horizontalMargin)-G.JSC$21138_overlayMarginLeft;
H=H<0?G.JSC$21138_overlayWidth:Math.max(H,G.minOverlayWidth);return Math.round(H/G.requiredRatio)},eCc=function(G,H){switch(G.resizeCorner){case 2:H=G.canvas.width-G.JSC$21138_overlayMarginRight-Xjo(G,H);
break;case 4:H=G.canvas.width-G.JSC$21138_overlayMarginLeft-Xjo(G,H);break;case 1:H=G.canvas.width-G.JSC$21138_overlayMarginRight-cXj(G,H);break;case 3:H=G.canvas.width-G.JSC$21138_overlayMarginLeft-cXj(G,H);break;default:throw Error("Rl");}return Math.max(H,G.horizontalMargin)},Xjo=function(G,H){H=G.canvas.height-Math.max(G.canvas.height-H,G.canvasMargin)-G.JSC$21138_overlayMarginTop;
return H<0?G.JSC$21138_overlayWidth:Math.max(Math.round(H*G.requiredRatio),G.minOverlayWidth)},cXj=function(G,H){H=G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight-Math.max(H,G.canvasMargin);
return H<0?G.JSC$21138_overlayWidth:Math.max(Math.round(H*G.requiredRatio),G.minOverlayWidth)},pjD=function(G){G.ctx.clearRect(0,0,G.canvas.width,G.canvas.height);
G.ctx.drawImage(G.image,0,0,G.image.width,G.image.height,G.horizontalMargin,G.canvasMargin,G.canvas.width-2*G.horizontalMargin,G.scaledImageHeight);G.ctx.fillStyle="rgba(0, 0, 0, 0.7)";G.ctx.fillRect(G.horizontalMargin,G.JSC$21138_overlayMarginTop,G.JSC$21138_overlayMarginLeft-G.horizontalMargin,G.JSC$21138_overlayHeight);G.ctx.fillRect(G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth,G.JSC$21138_overlayMarginTop,G.JSC$21138_overlayMarginRight-G.horizontalMargin,G.JSC$21138_overlayHeight);G.ctx.fillRect(G.horizontalMargin,
G.canvasMargin,G.scaledImageWidth,G.JSC$21138_overlayMarginTop-G.canvasMargin);G.ctx.fillRect(G.horizontalMargin,G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight,G.scaledImageWidth,G.JSC$21138_overlayMarginBottom-G.canvasMargin);G.drawOverlay();G.component&&_.N5(G.component,"image-updated")};
I2.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21138_overlayMarginLeft,this.JSC$21138_overlayMarginTop,this.JSC$21138_overlayWidth,this.JSC$21138_overlayHeight);TFk(this)};
var TFk=function(G){var H=G.JSC$21138_overlayMarginLeft-5,Z=G.JSC$21138_overlayMarginTop-5,Q=G.JSC$21138_overlayMarginLeft+G.JSC$21138_overlayWidth-5,p=G.JSC$21138_overlayMarginTop+G.JSC$21138_overlayHeight-5;G.ctx.fillStyle="#FFF";G.ctx.fillRect(H,Z,10,10);G.ctx.strokeRect(H,Z,10,10);G.ctx.fillRect(Q,Z,10,10);G.ctx.strokeRect(Q,Z,10,10);G.ctx.fillRect(H,p,10,10);G.ctx.strokeRect(H,p,10,10);G.ctx.fillRect(Q,p,10,10);G.ctx.strokeRect(Q,p,10,10);if(G.focusedCorner!==0&&G.styleFocusedCorner){G.ctx.lineWidth=
4;G.ctx.strokeStyle="#3EA6FF";switch(G.focusedCorner){case 1:--H;--Z;break;case 2:--H;Z=p-1;break;case 3:H=Q-1;--Z;break;case 4:H=Q-1;Z=p-1;break;default:return}G.ctx.strokeRect(H,Z,12,12)}};
I2.prototype.crop=function(G,H){H=H===void 0?!0:H;var Z=this.image.width/this.scaledImageWidth,Q=document.createElement("canvas"),p=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],l=this.JSC$21138_overlayWidth*Z,q=this.JSC$21138_overlayHeight*Z;Q.width=Math.max(l,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);Q.height=Math.max(q,p);G&&(Q.width=Math.min(Q.width,Q.height),Q.height=Math.min(Q.width,Q.height));
G=Q.getContext("2d");if(!G)throw Error("Fl");p=(this.JSC$21138_overlayMarginLeft-this.horizontalMargin)*Z;Z*=this.JSC$21138_overlayMarginTop-this.canvasMargin;H||(G.fillStyle="white",G.fillRect(0,0,Q.width,Q.height));G.drawImage(this.image,p,Z,l,q,0,0,Q.width,Q.height);return Q};var fe8=function(G,H,Z,Q,p){I2.call(this,G,H,Z,Q,void 0,p,8,!1)};
_.T(fe8,I2);fe8.prototype.drawOverlay=function(){var G=this.getContext(),H=this.JSC$21138_overlayWidth,Z=this.JSC$21138_overlayHeight,Q=this.JSC$21138_overlayMarginTop,p=this.JSC$21138_overlayMarginLeft;G.lineWidth=2;G.strokeStyle="#3EA6FF";G.beginPath();G.arc(p+H/2,Q+Z/2,H/2,0,2*Math.PI);G.stroke();G.strokeRect(p,Q,H,Z);TFk(this)};
var vea={maxFileSizeMB:15,minWidth:98,minHeight:98},W6m=["image/png","image/jpeg","image/gif"],qq=function(){var G=_.C.apply(this,arguments)||this;G.fileSelectorFocusListener=null;G.errorMessage=null;G.isLoading=!0;G.hideContainer=!0;G.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return G};
_.T(qq,_.C);_.g=qq.prototype;_.g.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.g.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.g.computePlaylistThumbnail=function(G){return G==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.g.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.AZ(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.g.setErrorState=function(G){this.resetErrorState();G&&(this.errorMessage=G)};
_.g.showPopup=function(){var G=this;this.hideContainer=!1;_.wM(_.Ui,function(){_.N5(G.hostElement,"yt-refit")});
this.isLoading=!1};
_.g.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.g.closePopup=function(){this.resetFileSelector();_.AZ(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onCancelTap=function(){this.isPlaylistThumbnail||_.AZ(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.g.openFileSelector=function(){var G=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.wM(_.Ui,function(){setTimeout(function(){if(!G.fileSelector.files||G.fileSelector.files.length===0)G.onCancelTap();G.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(H){H instanceof Error?_.me(H):_.UN(new _.C$(JSON.stringify(H)))}};
_.g.handleFileSelection=function(){var G=this,H,Z,Q,p,l,q;return _.S(function(u){switch(u.nextAddress){case 1:_.XV(u,2);if(!G.fileSelector.files||!G.imageEditorCanvas)return G.onCancelTap(),u.return();H=G.fileSelector.files[0];bPs(G.imageChecker,H);_.XV(u,4);return u.yield(mWh(H),6);case 6:G.mimeType=u.yieldResult;_.Za(u,5,2);break;case 4:_.Wg(u,2),_.AZ(G.hostElement,"yt-image-selection-error-action",[(Z=G.data)==null?void 0:Z.genericImageLoadErrorMessage]),G.onCancelTap();case 5:Q=new FileReader;
Q.addEventListener("load",function(){var B,t;return _.S(function(D){if(D.nextAddress==1){if(!Q.result)return _.Rp(Error("Hl")),D.return();B=Q.result;t=new Image;t.src=B;t.onload=function(){try{var d=G.imageChecker;if(t.width<d.requirements.minWidth||t.height<d.requirements.minHeight)throw new Y8A(d.requirements.minWidth,d.requirements.minHeight);}catch(n){if(n instanceof Y8A){var e;_.AZ(G.hostElement,"yt-image-selection-error-action",[(e=G.data)==null?void 0:e.imageDimensionErrorMessage]);G.logImageDimensionErrorVe()}else n instanceof
Error?_.me(n):(d=new _.C$(JSON.stringify(n)),_.me(d));G.onCancelTap()}G.showPopup()};
t.onerror=function(){var d;_.AZ(G.hostElement,"yt-image-selection-error-action",[(d=G.data)==null?void 0:d.genericImageLoadErrorMessage]);G.onCancelTap()};
return D.yield(Q8o(G.imageEditorCanvas,B),2)}G.imageEditor=D.yieldResult;G.updatePositionOfAllCorners();G.addEventListeners(G.imageEditor);_.K0(D)})},!1);
Q.readAsDataURL(H);_.Za(u,0);break;case 2:p=_.Wg(u),p instanceof E7j?_.AZ(G.hostElement,"yt-image-selection-error-action",[(l=G.data)==null?void 0:l.imageSizeErrorMessage]):(p instanceof Error?_.me(p):_.UN(new _.C$(JSON.stringify(p))),_.AZ(G.hostElement,"yt-image-selection-error-action",[(q=G.data)==null?void 0:q.genericImageLoadErrorMessage])),G.onCancelTap(),_.K0(u)}})};
_.g.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var G=_.pX(_.gr(),{veType:232707,visualElement:_.bl(232707)});G&&(G={visualElement:G},_.Qw().reportShown(G))}};
_.g.handleImageSelectionErrorAction=function(G){this.isPlaylistThumbnail&&_.dNb(this.hostElement,G)};
_.g.convertToImageFormatBundle=function(G){var H=this,Z,Q,p;return _.S(function(l){switch(l.nextAddress){case 1:return Z=G.toDataURL(H.outputMimeType,1),l.yield(UWL(Z),2);case 2:Q=l.yieldResult;_.XV(l,3);bPs(H.imageChecker,Q);_.Za(l,4);break;case 3:p=_.Wg(l);if(!(p instanceof E7j))throw p;_.Rp(new _.C$("Output size is bigger than input size for image",H.mimeType,H.outputMimeType,Q.size));Z=G.toDataURL("image/jpeg",.95);return l.yield(UWL(Z),6);case 6:Q=l.yieldResult;case 4:return l.return({dataUrl:Z,
imageFile:Q})}})};
_.g.handleUploadImageToScottyCommand=function(G){var H=this,Z,Q,p,l,q,u,B,t,D,d;return _.S(function(e){switch(e.nextAddress){case 1:if(!H.imageEditor||!_.X(G,UAL))return e.return();Z=_.X(G,UAL).scottyUploadUrl;if(!Z){var n=new _.C$("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.me(n);return e.return()}_.XV(e,2);H.setLoadingState();Q=H.imageEditor.crop(!1,!1);return e.yield(H.convertToImageFormatBundle(Q),4);case 4:return p=e.yieldResult,e.yield(yBh(p.imageFile,Z),5);
case 5:l=e.yieldResult;((q=H.data)==null?0:q.onUploadEndpoint)?(u=H.buildUploadServiceEndpoint(l),H.ytComponentBehavior.resolveCommand(u),B=_.X(u,_.A$),((t=B)==null?0:t.params)?H.closePopup():H.resetFileSelector()):(_.AZ(H.hostElement,"yt-image-updated-action",[p.dataUrl,l]),H.closePopup());_.Za(e,0);break;case 2:D=_.Wg(e),H.setErrorState((d=H.data)==null?void 0:d.uploadErrorMessage),D instanceof Error?_.me(D):(n=new _.C$(JSON.stringify(D)),_.me(n)),_.K0(e)}})};
_.g.buildUploadServiceEndpoint=function(G){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",G),this.data.onUploadEndpoint):null};
_.g.dataChanged=function(){var G=this,H;return _.S(function(Z){if(Z.nextAddress==1){if(!G.data||!G.canvasElement)return Z.return();G.data.imageRatio&&G.data.minImageCropWidth||_.UN(new _.C$("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));H=function(Q,p){return G.data.imageType==="IMAGE_TYPE_AVATAR"?new fe8(Q,p,G.data.imageRatio,[G.data.minImageCropWidth,G.data.minImageCropWidth/G.data.imageRatio],G.hostElement):new I2(Q,p,G.data.imageRatio,[G.data.minImageCropWidth,
G.data.minImageCropWidth/G.data.imageRatio],void 0,G.hostElement,8,!1)};
G.imageEditorCanvas=new GNL(G.canvasElement,H);return G.data.url?Z.yield(Q8o(G.imageEditorCanvas,G.data.url),3):(G.hideContainer=!0,G.openFileSelector(),Z.jumpTo(0))}G.imageEditor=Z.yieldResult;G.showPopup();G.addEventListeners(G.imageEditor);_.K0(Z)})};
_.g.addEventListeners=function(G){this.removeEventListeners();var H=function(p){H7h(G,p)};
this.JSC$21146_mouseDownEvent=H;var Z=function(p){s8k(G,p)};
this.JSC$21146_mouseMoveEvent=Z;var Q=function(){Z7c(G)};
this.JSC$21146_mouseUpEvent=Q;this.topLeftCorner.addEventListener("mousedown",H);this.topLeftCorner.addEventListener("mousemove",Z);this.topLeftCorner.addEventListener("mouseup",Q);this.topRightCorner.addEventListener("mousedown",H);this.topRightCorner.addEventListener("mousemove",Z);this.topRightCorner.addEventListener("mouseup",Q);this.bottomLeftCorner.addEventListener("mousedown",H);this.bottomLeftCorner.addEventListener("mousemove",Z);this.bottomLeftCorner.addEventListener("mouseup",Q);this.bottomRightCorner.addEventListener("mousedown",
H);this.bottomRightCorner.addEventListener("mousemove",Z);this.bottomRightCorner.addEventListener("mouseup",Q)};
_.g.removeEventListeners=function(){this.JSC$21146_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21146_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21146_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21146_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21146_mouseDownEvent));this.JSC$21146_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21146_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21146_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21146_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21146_mouseMoveEvent));this.JSC$21146_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21146_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21146_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21146_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21146_mouseUpEvent))};
_.g.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var G=document.activeElement;G&&G.shadowRoot&&G.shadowRoot.activeElement;)G=G.shadowRoot.activeElement;switch(G){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};
_.g.updatePositionOfCorner=function(G,H){var Z=G.y-H.offsetHeight/2+4;H.style.left=G.x-H.offsetWidth/2+16+"px";H.style.top=Z+"px"};
_.g.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var G=_.I([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),H=G.next();!H.done;H=G.next()){H=H.value;var Z=Ieq(this.imageEditor,H.corner);this.updatePositionOfCorner(Z,H.div)}};
_.g.onLeft=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(SQi(this.imageEditor,0),this.updatePositionOfAllCorners(),G.preventDefault())};
_.g.onRight=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(SQi(this.imageEditor,1),this.updatePositionOfAllCorners(),G.preventDefault())};
_.g.onUp=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(SQi(this.imageEditor,2),this.updatePositionOfAllCorners(),G.preventDefault())};
_.g.onDown=function(G){this.imageEditor&&this.setFocusInImageEditor()&&(SQi(this.imageEditor,3),this.updatePositionOfAllCorners(),G.preventDefault())};
_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.u4.Object.defineProperties(qq.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&W6m.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var G,H,Z;((H=this.data)==null?0:H.imageRatio)&&((Z=this.data)==null?0:Z.minImageCropWidth)?G={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:G=vea;return new Fb8(G)}}});
qq.prototype.updatePositionOfAllCorners=qq.prototype.updatePositionOfAllCorners;qq.prototype.dataChanged=qq.prototype.dataChanged;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],qq.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],qq.prototype,"ytComponentBehavior",void 0);_.N([_.v(_.vZ),_.A("design:type",Object)],qq.prototype,"ironA11yKeysBehavior",void 0);
_.N([_.q6("#canvas"),_.A("design:type",HTMLCanvasElement)],qq.prototype,"canvasElement",void 0);_.N([_.q6("#file-selector"),_.A("design:type",HTMLInputElement)],qq.prototype,"fileSelector",void 0);_.N([_.q6("#top-left-corner"),_.A("design:type",HTMLDivElement)],qq.prototype,"topLeftCorner",void 0);_.N([_.q6("#top-right-corner"),_.A("design:type",HTMLDivElement)],qq.prototype,"topRightCorner",void 0);
_.N([_.q6("#bottom-left-corner"),_.A("design:type",HTMLDivElement)],qq.prototype,"bottomLeftCorner",void 0);_.N([_.q6("#bottom-right-corner"),_.A("design:type",HTMLDivElement)],qq.prototype,"bottomRightCorner",void 0);_.N([_.h(),_.A("design:type",Object)],qq.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],qq.prototype,"errorMessage",void 0);_.N([_.h(),_.A("design:type",Object)],qq.prototype,"isLoading",void 0);_.N([_.h(),_.A("design:type",Object)],qq.prototype,"hideContainer",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.A("design:type",Boolean)],qq.prototype,"isPlaylistThumbnail",void 0);_.N([_.Jv("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],qq.prototype,"dataChanged",null);_.N([_.lq("image-updated"),_.lq("yt-refit"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],qq.prototype,"updatePositionOfAllCorners",null);
_.N([_.fH({is:"yt-image-editor-renderer",disableElementRegistration:!0})],qq);
_.m(qq,"yt-image-editor-renderer",function(){if(Lbq===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;xDD===void 0&&(xDD=document.createElement("template"));var Q=xDD;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Lbq=G}G=Lbq;return G},{mode:2});var zCq;var K6L;var ST=function(){return _.C.apply(this,arguments)||this};
_.T(ST,_.C);ST.prototype.updateMinutesFromBinding=function(G){this.handleMinutesChanged&&this.handleMinutesChanged(G)};
ST.prototype.updateSecondsFromBinding=function(G){this.handleSecondsChanged&&this.handleSecondsChanged(G)};
ST.prototype.updateDescriptionFromBinding=function(G){this.handleDescriptionChanged&&this.handleDescriptionChanged(G)};
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],ST.prototype,"ytComponentBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],ST.prototype,"data",void 0);_.N([_.h(),_.A("design:type",String)],ST.prototype,"minutes",void 0);_.N([_.h(),_.A("design:type",String)],ST.prototype,"seconds",void 0);_.N([_.h(),_.A("design:type",String)],ST.prototype,"description",void 0);_.N([_.h(),_.A("design:type",Function)],ST.prototype,"handleMinutesChanged",void 0);
_.N([_.h(),_.A("design:type",Function)],ST.prototype,"handleSecondsChanged",void 0);_.N([_.h(),_.A("design:type",Function)],ST.prototype,"handleDescriptionChanged",void 0);_.N([_.h(),_.A("design:type",Number)],ST.prototype,"characterLimit",void 0);_.N([_.h(),_.A("design:type",Number)],ST.prototype,"textNumRows",void 0);_.N([_.fH({is:"yt-report-details-form-content",disableElementRegistration:!0})],ST);
_.m(ST,"yt-report-details-form-content",function(){if(K6L===void 0){var G=document.createElement("template");_.f(G,'\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>');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;zCq===void 0&&(zCq=document.createElement("template"));var Q=zCq;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);K6L=G}G=K6L;return G},{mode:2});var MRm;var j8A;var uj=function(){var G=_.C.apply(this,arguments)||this;G.updateMinutesFromBinding=function(H){G.minutes=H.detail.value};
G.updateSecondsFromBinding=function(H){G.seconds=H.detail.value};
G.updateDescriptionFromBinding=function(H){G.description=H.detail.value};
return G};
_.T(uj,_.C);_.g=uj.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.g.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"}}}};
_.g.ready=function(){_.F9(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.g.onSubmitYtAction=function(G){var H=G.detail;H.actionName==="yt-service-request"&&(H=H.args[1],H.flagEndpoint&&(G.stopPropagation(),this.refireAction(H)))};
_.g.refireAction=function(G){var H={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(H.vss_id=this.vssId);_.L9(this.hostElement,[G,H]);this.submitDisabled=!0};
_.g.dataChanged=function(){var G=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var H=_.UO();H&&H.getPlayerPromise().then(function(Z){var Q=Z.getOption("cc","track")||Z.getOption("captions","track");Q&&(G.vssId=Q.vss_id);Z=Z.getCurrentTime();G.minutes=Math.floor(Z/60).toString();G.seconds=(Math.floor(Z)%60).toString()})};
_.g.updateSubmitButtonState=function(){var G;((G=this.data)==null?0:G.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==="")};
_.g.onYtServiceRequestCompleted=function(){_.AZ(this.hostElement,"yt-close-popup-action")};
_.g.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.u4.Object.defineProperties(uj.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var G;return((G=this.data)==null?void 0:G.textNumRows)||4}}});
uj.prototype.onYtServiceRequestError=uj.prototype.onYtServiceRequestError;uj.prototype.onYtServiceRequestCompleted=uj.prototype.onYtServiceRequestCompleted;uj.prototype.updateSubmitButtonState=uj.prototype.updateSubmitButtonState;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);
_.N([_.h({observer:"dataChanged"}),_.A("design:type",Object)],uj.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Boolean)],uj.prototype,"submitDisabled",void 0);_.N([_.h(),_.A("design:type",String)],uj.prototype,"minutes",void 0);_.N([_.h(),_.A("design:type",String)],uj.prototype,"seconds",void 0);_.N([_.h(),_.A("design:type",String)],uj.prototype,"description",void 0);_.N([_.h(),_.A("design:type",String)],uj.prototype,"vssId",void 0);
_.N([_.h({value:_.xI("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.A("design:type",Boolean)],uj.prototype,"isMusic",void 0);_.N([_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],uj.prototype,"characterLimit",null);_.N([_.z("data"),_.A("design:type",Number),_.A("design:paramtypes",[])],uj.prototype,"textNumRows",null);
_.N([_.Jv("minutes","seconds","description","submitDisabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uj.prototype,"updateSubmitButtonState",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uj.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],uj.prototype,"onYtServiceRequestError",null);_.N([_.fH({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],uj);
_.m(uj,"yt-report-details-form-renderer",function(){if(j8A===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;MRm===void 0&&(MRm=document.createElement("template"));var Q=MRm;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);j8A=G}G=j8A;return G});var Ppt;var rXj;var wji;var hCo;var B1=function(){return _.C.apply(this,arguments)||this};
_.T(B1,_.C);
B1.prototype.onCheckedChanged_=function(){if(this.data){var G=_.F9(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.AZ(this.hostElement,"yt-additional-detail-checkbox-update",[G]):this.data.identifier==="yt-hide-user-checkbox"?_.AZ(this.hostElement,"yt-hide-user-checkbox-update",[G]):G&&this.data.enableCommand?_.AZ(this.hostElement,"yt-modify-report-form-command",[_.X(this.data.enableCommand,Y0c)]):!G&&this.data.disableCommand&&_.AZ(this.hostElement,
"yt-modify-report-form-command",[_.X(this.data.enableCommand,Y0c)])}};
B1.prototype.onLabelTap_=function(G){G.target.tagName!="A"&&(_.F9(this.hostElement).querySelector("#checkbox").checked=!_.F9(this.hostElement).querySelector("#checkbox").checked)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],B1.prototype,"data",void 0);_.N([_.fH({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],B1);
_.m(B1,"yt-boolean-form-field-v2-renderer",function(){if(hCo===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;wji===void 0&&(wji=document.createElement("template"));var Q=wji;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);hCo=G}G=hCo;return G});var JY=function(){var G=_.C.apply(this,arguments)||this;G.canShowAdditionalDetailCheckbox=!1;G.canShowCheckbox=!1;G.keepDropdownFocusedAfterSelection=!0;return G};
_.T(JY,_.C);JY.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}}}}};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],JY.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],JY.prototype,"canShowAdditionalDetailCheckbox",void 0);_.N([_.h(),_.A("design:type",Object)],JY.prototype,"canShowCheckbox",void 0);_.N([_.h(),_.A("design:type",Object)],JY.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.N([_.fH({is:"yt-report-form-modal-content",disableElementRegistration:!0})],JY);
_.m(JY,"yt-report-form-modal-content",function(){if(rXj===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Ppt===void 0&&(Ppt=document.createElement("template"));var Q=Ppt;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);rXj=G}G=rXj;return G},{mode:2});var Cpi;var i7j;var tY=function(){var G=_.C.apply(this,arguments)||this;G.submitting=!1;G.submitButtonDisabled=!0;G.command=null;G.canShowCheckbox=!1;G.canShowAdditionalDetailCheckbox=!1;G.canShowNextButton=!1;G.additionalDetailCheckboxChecked=!1;G.refitJob=0;G.keepDropdownFocusedAfterSelection=!0;G.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 G};
_.T(tY,_.C);_.g=tY.prototype;_.g.created=function(){this.refitJob=0};
_.g.attached=function(){this.JSC$21169_scroller&&(this.JSC$21169_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21169_scroller.attached&&typeof this.JSC$21169_scroller.attached==="function"&&this.JSC$21169_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(G){G&&(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,G.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),G.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.g.onYtPopupOpened=function(){var G=_.UO();G&&G.getPlayerPromise().then(function(H){H.pauseVideo()})};
_.g.onYtNavigate=function(G){_.X(G.detail.endpoint,_.bV7)&&(G.stopPropagation(),this.hideReportForm=!0)};
_.g.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.g.onYtServiceRequestCompleted=function(G,H){var Z=H.actions;if(Z){if(Z.length===1&&_.X(Z[0],_.Ft)){var Q;Z=((Q=_.X(Z[0],_.Ft))==null?void 0:Q.commands)||[]}Q=0;for(var p=Z.length;Q<p;Q++)_.X(Z[Q],_.Pe)&&(G.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(Z[Q]))}if(H.data&&(G=this.get("feedbackResponses",H.data)))for(H=0;H<G.length;H++)if(G[H].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.g.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.g._onDescendantIronResize=function(G){G.stopPropagation();return!1};
_.g.handleReportFormEndpointUpdateAction=function(G){if(G.submitEndpoint){var H=this.command=G.submitEndpoint;H=_.X(H,_.YsN);if(H==null?0:H.additionalDetailCheckboxChecked)H.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else G.submitNavigationEndpoint?(this.command=G.submitNavigationEndpoint,this.toggleSubmitButton(!1)):G.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:G.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;G.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",G));this.refit()};
_.g.handleConfirmDialogCloseAction=function(G){G.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.g.submitButtonDisabledChanged=function(){var G=this.hostElement.parentElement;G&&G.invalidateTabbables&&G.invalidateTabbables()};
_.g.handleModifyReportFormCommand=function(G){G=this.get("action",G);G==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:G==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:G==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:G==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:G==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:G==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.g.updateDialogStyling=function(){var G,H,Z,Q,p,l=((p=(G=this.data)==null?void 0:(H=G.optionsSupportedRenderers)==null?void 0:(Z=H.optionsRenderer)==null?void 0:(Q=Z.items)==null?void 0:Q.length)!=null?p:0)<=2?0:240;_.ZI(this.hostElement,{"--yt-report-form-modal-renderer-min-width":l+"px"})};
_.g.toggleSubmitButton=function(G){this.submitButtonDisabled=!G;this.submitButtonDisabled=G};
_.g.computeSubmitButtonData=function(G,H){var Z={};_.X(H,_.bV7)?Z.navigationEndpoint=H:Z.command=H||void 0;G&&G.buttonRenderer&&_.oN.extend(Z,G.buttonRenderer);return Z};
_.g.computeNextButtonData=function(G,H){var Z={};if(!G||!G.buttonRenderer)return Z;_.oN.extend(Z,G.buttonRenderer);if(!H)return Z;if(_.X(H,_.bV7))Z.navigationEndpoint=xQq(H);else if(Z.command=xQq(H),G=_.X(Z.command,_.YsN))G.legalCheckboxChecked=!0;return Z};
_.g.computeShowNextButton=function(G,H,Z){return!!G&&H&&Z};
_.g.refit=function(){var G=this;this.refitJob||(this.refitJob=_.Ui.addLowPriorityJob(function(){_.N5(G.hostElement,"yt-refit");G.refitJob=0}))};
_.g.handleAdditionalDetailCheckboxUpdateAction=function(G){this.additionalDetailCheckboxChecked=G;_.X(this.command,_.YsN).additionalDetailCheckboxChecked=G};
_.u4.Object.defineProperties(tY,{template:{configurable:!0,enumerable:!0,get:function(){if(i7j===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;Cpi===void 0&&(Cpi=document.createElement("template"));var Q=Cpi;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);i7j=G}G=i7j;return G}}});
tY.prototype.onYtServiceRequestError=tY.prototype.onYtServiceRequestError;tY.prototype.onYtServiceRequestCompleted=tY.prototype.onYtServiceRequestCompleted;tY.prototype.onYtServiceRequestSent=tY.prototype.onYtServiceRequestSent;tY.prototype.onYtNavigate=tY.prototype.onYtNavigate;tY.prototype.onYtPopupOpened=tY.prototype.onYtPopupOpened;_.N([_.v(_.e8.YtOpenPopupBehavior),_.A("design:type",Object)],tY.prototype,"openPopupBehavior",void 0);
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],tY.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],tY.prototype,"eventForwardingBehavior",void 0);_.N([_.v(_.hS),_.A("design:type",Object)],tY.prototype,"ironResizableBehavior",void 0);_.N([_.h({observer:"dataChanged"}),_.A("design:type",Object)],tY.prototype,"data",void 0);
_.N([_.h(),_.A("design:type",Object)],tY.prototype,"submitting",void 0);_.N([_.h({observer:"submitButtonDisabledChanged"}),_.A("design:type",Object)],tY.prototype,"submitButtonDisabled",void 0);_.N([_.h(),_.A("design:type",Object)],tY.prototype,"command",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],tY.prototype,"hideReportForm",void 0);_.N([_.h(),_.A("design:type",Object)],tY.prototype,"canShowCheckbox",void 0);
_.N([_.h(),_.A("design:type",Object)],tY.prototype,"canShowAdditionalDetailCheckbox",void 0);_.N([_.h(),_.A("design:type",Object)],tY.prototype,"canShowNextButton",void 0);_.N([_.h(),_.A("design:type",Object)],tY.prototype,"additionalDetailCheckboxChecked",void 0);_.N([_.h(),_.A("design:type",Object)],tY.prototype,"refitJob",void 0);_.N([_.h(),_.A("design:type",Object)],tY.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.N([_.q6("#scroller"),_.A("design:type",Object)],tY.prototype,"JSC$21169_scroller",void 0);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],tY.prototype,"onYtPopupOpened",null);_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],tY.prototype,"onYtNavigate",null);
_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],tY.prototype,"onYtServiceRequestSent",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],tY.prototype,"onYtServiceRequestCompleted",null);
_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],tY.prototype,"onYtServiceRequestError",null);_.N([_.fH({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],tY);var O7t;var aeL;var kp=function(){return _.C.apply(this,arguments)||this};
_.T(kp,_.C);_.g=kp.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.g.onVisible=function(){var G,H;(H=_.tp().resolve(_.Jp(_.pD)))==null||H.enqueue({label:_.yn((G=this.data)==null?void 0:G.messageTitle),elementToFocus:this.hostElement})};
_.g.onThumbnailLoaded=function(){_.N5(this.hostElement,"yt-refit")};
_.g.onDismissTap=function(){_.AZ(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.g.computeAlternateIcon=function(G){return G?G==="BACKSTAGE_ARTWORK"?"backstage:artwork":G:null};
_.g.computeFontFamily=function(G){return G==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.g.computeBackgroundStyle=function(G,H){if(G=this.computeBackgroundImage(G,H))if(G=_.At(G.thumbnails))return'background-image: url("'+G+'");'};
_.g.computeHasFullHeightImage=function(G){return!(!(G&&G.thumbnails&&G.thumbnails.length>0)||this.modern)};
_.g.isModernStyle=function(G){return G.style==="STYLE_MODERN"};
_.g.computeIcon=function(G,H){if(G&&G.icon)return H?G.iconDark:G.icon};
_.g.computeBackgroundImage=function(G,H){if(G&&G.backgroundImage)return H?G.backgroundImageDark:G.backgroundImage};
_.g.computeLogo=function(G,H){if(G&&G.logo)return H?G.logoDark:G.logo};
_.g.computeShouldShowModernIcon=function(G,H){return G&&!!H};
_.g.getLogoContainerClassName=function(G){return this.logoWithPadding(G)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.g.getLogoImageId=function(G){return this.logoWithPadding(G)?"mealbar-logo-with-padding":"mealbar-logo"};
_.g.logoWithPadding=function(G){var H,Z,Q;return(G=(H=this.computeLogo(G,this.isDarkTheme))==null?void 0:(Z=H.thumbnails)==null?void 0:(Q=Z[0])==null?void 0:Q.height)&&G%31===0?!0:!1};
kp.prototype.onThumbnailLoaded=kp.prototype.onThumbnailLoaded;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],kp.prototype,"ytRendererBehavior",void 0);_.N([_.h({}),_.A("design:type",Object)],kp.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.A("design:type",Boolean)],kp.prototype,"modern",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],kp.prototype,"isDarkTheme",void 0);
_.N([_.h({computed:"computeIcon(data, isDarkTheme)"}),_.A("design:type",Object)],kp.prototype,"icon",void 0);_.N([_.h({computed:"computeLogo(data, isDarkTheme)"}),_.A("design:type",Object)],kp.prototype,"logo",void 0);_.N([_.h({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.A("design:type",Object)],kp.prototype,"backgroundStyle",void 0);_.N([_.h({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.A("design:type",Object)],kp.prototype,"alternateIcon",void 0);
_.N([_.h({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.A("design:type",Boolean)],kp.prototype,"hasFullHeightImage",void 0);_.N([_.h({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.A("design:type",Boolean)],kp.prototype,"useYoutubeSans",void 0);_.N([_.h({computed:"computeShouldShowModernIcon(modern, icon)"}),_.A("design:type",Boolean)],kp.prototype,"shouldShowModernIcon",void 0);
_.N([_.lq("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],kp.prototype,"onThumbnailLoaded",null);_.N([_.fH({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],kp);
_.m(kp,"yt-mealbar-promo-renderer",function(){if(aeL===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;O7t===void 0&&(O7t=document.createElement("template"));var Q=O7t;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);aeL=G}G=aeL;return G},{mode:2});var yXi;var oem;var D3=function(){return _.C.apply(this,arguments)||this};
_.T(D3,_.C);_.g=D3.prototype;_.g.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]]"}}}}}};
_.g.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.acceptButton)};
_.g.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.g.observeImpressionEndpoints_=function(){var G=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;_.L9(G.hostElement,[H])})};
_.g.onTap_=function(){_.AZ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
D3.prototype.observeImpressionEndpoints_=D3.prototype.observeImpressionEndpoints_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],D3.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],D3.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],D3.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],D3.prototype,"positionType",void 0);_.N([_.h({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.A("design:type",Boolean)],D3.prototype,"hasButtons_",void 0);_.N([_.h({value:function(){return this.onTap_.bind(this)}}),
_.A("design:type",Function)],D3.prototype,"boundOnTap_",void 0);_.N([_.h({value:{style:"mono-inverse"}}),_.A("design:type",Object)],D3.prototype,"buttonOverride",void 0);_.N([_.gx("data.promoConfig.impressionEndpoints"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],D3.prototype,"observeImpressionEndpoints_",null);_.N([_.fH({is:"yt-tooltip-renderer",disableElementRegistration:!0})],D3);
_.m(D3,"yt-tooltip-renderer",function(){if(oem===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;yXi===void 0&&(yXi=document.createElement("template"));var Q=yXi;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);oem=G}G=oem;return G},{mode:2});var mwk;var Uw8;var RCc={},NFc=(RCc.WEB_REMIX="music.youtube.com",RCc),d_=function(){var G=_.C.apply(this,arguments)||this;G.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return G};
_.T(d_,_.C);_.g=d_.prototype;_.g.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.created=function(){this.embedHost_=NFc[_.xI("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.g.ready=function(){_.F9(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.g.computeEmbedCode_=function(G,H,Z,Q,p){if(!G)return"";var l=G.videoId,q=G.fullListId,u=[];G.attributionId&&u.push("si="+G.attributionId);Q||u.push("controls=0");Z&&Number(H)>0&&u.push("start="+H);q&&(l="videoseries",u.push("list="+q));Z="https://"+(p?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+l;G.clipId&&(u.push("clip="+G.clipId),u.push("clipt="+G.clipTiming));H=u.length>0?Z+"?"+u.join("&amp;"):Z;G.encryptedEmbedConfig&&u.push("embed_config="+JSON.stringify({enc:G.encryptedEmbedConfig}));
u=u.length>0?Z+"?"+u.join("&amp;"):Z;_.V("web_sharing_embed_preview_killswitch")?_.F9(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(u,G.previewWidth||854,G.previewHeight||480):(_.zL(this.videoPreviewContainer),_.F9(this.videoPreviewContainer).appendChild(this.buildIframeElement(u)));return this.getEmbedCode_(H,G.width||560,G.height||315)};
_.g.buildIframeElement=function(G){var H=document.createElement("iframe"),Z,Q;H.width=""+((Q=(Z=this.data)==null?void 0:Z.previewWidth)!=null?Q:854);var p,l;H.height=""+((l=(p=this.data)==null?void 0:p.previewHeight)!=null?l:480);_.GO(H,2,G);H.title="YouTube video player";H.frameBorder="0";H.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";H.referrerPolicy="strict-origin-when-cross-origin";H.allowFullscreen=!0;return H};
_.g.computeIsSquareAspectRatio_=function(G){return G.previewHeight&&G.previewWidth?G.previewHeight==G.previewWidth:!1};
_.g.computeShowEmbedOptions_=function(G){return!!G.enablePrivacyModeOptionLabel||!!G.showPlayerControlsOptionLabel};
_.g.getEmbedCode_=function(G,H,Z){return'<iframe width="'+H+'" height="'+Z+'" src="'+G+'" 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>'};
_.g.handleSignalActionCopyShareEmbedUrl_=function(){_.F9(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.g.handleSetTimestamp_=function(G){this.startAtTimeStamp_=(this.startAtChecked_=G.isSet)?G.timestamp:0};
_.g.closePanel_=function(){_.AZ(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.g.onEmbedCode_=function(){_.F9(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.g.onYtPopupClosed_=function(){_.zL(_.F9(this.hostElement).querySelector("#video-preview"))};
_.g.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.X(this.data.actionButtons[0],_.Yl)&&this.ytRendererBehavior.logExplicitClick(_.X(this.data.actionButtons[0],_.Yl))};
d_.prototype.onYtPopupClosed_=d_.prototype.onYtPopupClosed_;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],d_.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],d_.prototype,"data",void 0);
_.N([_.h({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.A("design:type",String)],d_.prototype,"embedCode_",void 0);_.N([_.h({value:!0}),_.A("design:type",Boolean)],d_.prototype,"isPlayerControlsOptionChecked_",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],d_.prototype,"isPrivacyModeOptionChecked_",void 0);_.N([_.h({value:!1,notify:!0}),_.A("design:type",Boolean)],d_.prototype,"startAtChecked_",void 0);
_.N([_.h({value:0}),_.A("design:type",Number)],d_.prototype,"startAtTimeStamp_",void 0);_.N([_.h({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],d_.prototype,"isSquareAspectRatio_",void 0);_.N([_.q6("#video-preview"),_.A("design:type",HTMLElement)],d_.prototype,"videoPreviewContainer",void 0);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],d_.prototype,"onYtPopupClosed_",null);
_.N([_.fH({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],d_);
_.m(d_,"yt-sharing-embed-renderer",function(){if(Uw8===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;mwk===void 0&&(mwk=document.createElement("template"));var Q=mwk;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);Uw8=G}G=Uw8;return G},{mode:2});var AXo={};
AXo.YtUnlimitedFamilyInterstitialBehavior=[_.e8.YtOpenPopupBehavior,_.V6.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(G){G=_.jN4(_.a_(G),"yt-button-renderer");return G?G.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(G){this.dialogHistory_.push(G)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var G=this.popFromHistory();if(G){var H={openPopupAction:{popupType:"DIALOG",popup:{}}};H.openPopupAction.popup[G.renderer]=G.data;this.showingPreviousDialog_=!0;this.openPopup(H)}},
handleOpenPopupAction_:function(G){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var H=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(Q){return!!G.openPopupAction.popup[Q]}),Z=this.getElementName_();
H&&this.data&&(this.pushToHistory({renderer:Z,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(G){if(G=_.X(G,TY6))this.loading=!0,_.AZ(this.hostElement,"yt-open-create-family-dialog",[G,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var G=this.hostElement.nodeName.split("-").slice(1).map(function(H){return""+H[0].toUpperCase()+H.slice(1).toLowerCase()}).join("");
return G[0].toLowerCase()+G.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var xwA;var L6i;var eT=function(){return _.C.apply(this,arguments)||this};
_.T(eT,_.C);_.g=eT.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.AZ(this.hostElement,"yt-register-create-family-dialog");_.F9(this.hostElement).querySelector("#thumbnail").onShow()};
_.g.fireOnCloseCommand_=function(){var G;((G=this.data)==null?0:G.onCloseCommand)&&_.El(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.g.onYtServiceRequestSent_=function(G,H){H&&H.endpoint&&_.X(H.endpoint,_.GD)||(this.loading=!0)};
_.g.onYtServiceRequestCompleted_=function(){var G=this.hostElement.parentElement;G.close&&G.close();this.loading=!1};
_.g.openPopupHandler_=function(G){if(G.detail==this){var H;((H=this.data)==null?0:H.onOpenCommands)&&_.El(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.g.closePopupHandler_=function(G,H){this.fireOnCloseCommand_();if(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1){var Z;((Z=this.data)==null?0:Z.onDismissCommands)&&_.El(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.g.dataChanged_=function(){this.loading=!1};
eT.prototype.dataChanged_=eT.prototype.dataChanged_;eT.prototype.closePopupHandler_=eT.prototype.closePopupHandler_;eT.prototype.openPopupHandler_=eT.prototype.openPopupHandler_;eT.prototype.onYtServiceRequestCompleted_=eT.prototype.onYtServiceRequestCompleted_;eT.prototype.onYtServiceRequestSent_=eT.prototype.onYtServiceRequestSent_;_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],eT.prototype,"ytEventForwardingBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(AXo.YtUnlimitedFamilyInterstitialBehavior),_.A("design:type",Object)],eT.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],eT.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],eT.prototype,"loading",void 0);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],eT.prototype,"onYtServiceRequestSent_",null);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],eT.prototype,"onYtServiceRequestCompleted_",null);
_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],eT.prototype,"openPopupHandler_",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],eT.prototype,"closePopupHandler_",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],eT.prototype,"dataChanged_",null);
_.N([_.fH({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],eT);
_.m(eT,"yt-unlimited-family-message-interstitial-renderer",function(){if(L6i===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;xwA===void 0&&(xwA=document.createElement("template"));var Q=xwA;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);L6i=G}G=L6i;return G},{mode:2});var Ee6;var YQh;var nv=function(){return _.C.apply(this,arguments)||this};
_.T(nv,_.C);nv.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"}}}};
nv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.F9(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(G){G.onShow()});
_.F9(this.hostElement).querySelector("#main-thumbnail").onShow()};
nv.prototype.onButtonTap_=function(G){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(G)};
nv.prototype.computeMainThumbnailWidth_=function(G){return G&&G.length!==0?72:96};
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.N([_.v(AXo.YtUnlimitedFamilyInterstitialBehavior),_.A("design:type",Object)],nv.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],nv.prototype,"data",void 0);
_.N([_.h({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.A("design:type",Number)],nv.prototype,"mainThumbnailWidth_",void 0);_.N([_.h({value:function(){return this.onButtonTap_.bind(this)}}),
_.A("design:type",Function)],nv.prototype,"boundButtonTap_",void 0);_.N([_.fH({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],nv);
_.m(nv,"yt-unlimited-family-profile-interstitial-renderer",function(){if(YQh===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Ee6===void 0&&(Ee6=document.createElement("template"));var Q=Ee6;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);YQh=G}G=YQh;return G},{mode:2});var F6L;var b7a;var VG=function(){var G=_.C.apply(this,arguments)||this;G.sliderAriaValueText_=null;G.selectedIndex_=0;G.messages={PAUSE_SLIDER:_.Zg("PAUSE_SLIDER",void 0,"Pause Duration")};return G};
_.T(VG,_.C);_.g=VG.prototype;_.g.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_]]"}}}}}};
_.g.onPopupOpened_=function(G){G.detail==this&&_.V("enable_premium_voluntary_pause")&&(_.AZ(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.setDialogData=function(G){this.data=G;this.resetSlider_()};
_.g.dataChanged_=function(){this.data&&this.resetSlider_()};
_.g.onSubmitTap_=function(){if(this.data.confirmCommand){var G=this.data.confirmCommand;_.X(G,_.Gap)&&_.L9(this.hostElement,[G,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.g.onExitButtonTap_=function(){_.AZ(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.g.closePopupHandler_=function(G,H){(H&&H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.handleOnDismissCommands_()};
_.g.onSliderChange_=function(){this.selectedIndex_=_.F9(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.g.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.g.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.g.resetSlider_=function(){if(this.data){var G=this.data.defaultEndOptionIndex||0,H=_.F9(this.hostElement).querySelector("#id-pause-slider");if(H.immediateValue<G)for(;H.immediateValue!=G;)H.increment();else if(G<H.immediateValue)for(;H.immediateValue!=G;)H.decrement();this.selectedIndex_=G;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.g.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.El(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.g.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.El(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestSent=function(){this.loading=!0};
_.g.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
VG.prototype.onYtServiceRequestCompleted=VG.prototype.onYtServiceRequestCompleted;VG.prototype.onYtServiceRequestSent=VG.prototype.onYtServiceRequestSent;VG.prototype.closePopupHandler_=VG.prototype.closePopupHandler_;VG.prototype.dataChanged_=VG.prototype.dataChanged_;VG.prototype.onPopupOpened_=VG.prototype.onPopupOpened_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],VG.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],VG.prototype,"loading",void 0);_.N([_.h(),_.A("design:type",Number)],VG.prototype,"selectIndexMax_",void 0);_.N([_.h(),_.A("design:type",Object)],VG.prototype,"selectedData_",void 0);
_.N([_.h(),_.A("design:type",Object)],VG.prototype,"sliderAriaValueText_",void 0);_.N([_.h({value:function(){return this.onSubmitTap_.bind(this)}}),
_.A("design:type",Function)],VG.prototype,"onButtonTap_",void 0);_.N([_.h({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.A("design:type",Function)],VG.prototype,"onSecondaryTap_",void 0);_.N([_.h(),_.A("design:type",Object)],VG.prototype,"messages",void 0);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],VG.prototype,"onPopupOpened_",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],VG.prototype,"dataChanged_",null);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],VG.prototype,"closePopupHandler_",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],VG.prototype,"onYtServiceRequestSent",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],VG.prototype,"onYtServiceRequestCompleted",null);_.N([_.fH({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],VG);
_.m(VG,"yt-unplugged-pause-membership-dialog-renderer",function(){if(b7a===void 0){var G=document.createElement("template");_.f(G,'\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>');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;F6L===void 0&&(F6L=document.createElement("template"));var Q=F6L;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);b7a=G}G=b7a;return G},{mode:2});var Ggi;var HDL;var $p=function(){return _.C.apply(this,arguments)||this};
_.T($p,_.C);$p.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.nI("vcBalanceRenderer")}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],$p.prototype,"data",void 0);_.N([_.fH({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],$p);
_.m($p,"yt-vc-offer-layout-header-renderer",function(){if(HDL===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Ggi===void 0&&(Ggi=document.createElement("template"));var Q=Ggi;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);HDL=G}G=HDL;return G},{mode:2});var sD6;var ZDi;var QDs;var p08;var XS=function(){return _.C.apply(this,arguments)||this};
_.T(XS,_.C);XS.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.u4.Object.defineProperties(XS.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)}}});
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.$7a.YtTappableItemBehavior),_.A("design:type",Object)],XS.prototype,"ytTappableItemBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],XS.prototype,"data",void 0);
_.N([_.h({reflectToAttribute:!0}),_.z("data.accessibilityText"),_.A("design:type",String),_.A("design:paramtypes",[])],XS.prototype,"ariaLabel",null);_.N([_.h({reflectToAttribute:!0}),_.z("data.style"),_.A("design:type",String),_.A("design:paramtypes",[])],XS.prototype,"vcOfferStyle",null);_.N([_.z("data.style","data.titleText"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],XS.prototype,"showTitleText",null);_.N([_.fH({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],XS);
_.m(XS,"yt-vc-offer-renderer",function(){if(p08===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;QDs===void 0&&(QDs=document.createElement("template"));var Q=QDs;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);p08=G}G=p08;return G},{mode:2});var c1=function(){return _.C.apply(this,arguments)||this};
_.T(c1,_.C);c1.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}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],c1.prototype,"data",void 0);_.N([_.fH({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],c1);
_.m(c1,"yt-vc-offer-layout-renderer",function(){if(ZDi===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;sD6===void 0&&(sD6=document.createElement("template"));var Q=sD6;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);ZDi=G}G=ZDi;return G},{mode:2});var lhk;var g2h;var Ihs;var qB6;var TA=function(){return _.C.apply(this,arguments)||this};
_.T(TA,_.C);TA.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}}}}}};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],TA.prototype,"data",void 0);_.N([_.fH({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],TA);
_.m(TA,"yt-ypc-offers-modal-top-bar-renderer",function(){if(qB6===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Ihs===void 0&&(Ihs=document.createElement("template"));var Q=Ihs;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);qB6=G}G=qB6;return G},{mode:2});var fv=function(){return _.C.apply(this,arguments)||this};
_.T(fv,_.C);fv.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"}}}}};
fv.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
fv.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var G=this.scrollable;G.attached&&typeof G.attached==="function"&&G.attached()};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.N([_.q6("#scrollable"),_.A("design:type",Object)],fv.prototype,"scrollable",void 0);_.N([_.h(),_.A("design:type",Object)],fv.prototype,"data",void 0);_.N([_.fH({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],fv);
_.m(fv,"yt-ypc-offers-modal-renderer",function(){if(g2h===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;lhk===void 0&&(lhk=document.createElement("template"));var Q=lhk;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);g2h=G}G=g2h;return G},{mode:2});var SBA;var u0m;var v1=function(){return _.C.apply(this,arguments)||this};
_.T(v1,_.C);_.g=v1.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.F9(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.g.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.AZ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.g.onYtPopupOpened_=function(G,H){(H==null?void 0:H.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.El(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.g.onYtPopupClosed_=function(G,H){this.continueButtonTapped||H&&(H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.data.onDismissCommands&&_.El(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestError_=function(G){this.set("showSpinner",!1);_.jP(this.hostElement,G.detail.error.message)};
_.g.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.V("enable_ypc_spinners")?_.AZ(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
v1.prototype.onYtServiceRequestError_=v1.prototype.onYtServiceRequestError_;v1.prototype.onYtPopupClosed_=v1.prototype.onYtPopupClosed_;v1.prototype.onYtPopupOpened_=v1.prototype.onYtPopupOpened_;v1.prototype.onYtServiceRequestCompleted_=v1.prototype.onYtServiceRequestCompleted_;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);
_.N([_.h(),_.A("design:type",Object)],v1.prototype,"data",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],v1.prototype,"showSpinner",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],v1.prototype,"continueButtonTapped",void 0);_.N([_.h({value:function(){return this.onContinueTapped_.bind(this)}}),
_.A("design:type",Function)],v1.prototype,"bindOnContinueTapped_",void 0);_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],v1.prototype,"onYtServiceRequestCompleted_",null);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],v1.prototype,"onYtPopupOpened_",null);
_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],v1.prototype,"onYtPopupClosed_",null);_.N([_.lq("yt-service-request-error"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],v1.prototype,"onYtServiceRequestError_",null);_.N([_.fH({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],v1);
_.m(v1,"yt-ypc-upgrade-dialog-renderer",function(){if(u0m===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;SBA===void 0&&(SBA=document.createElement("template"));var Q=SBA;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);u0m=G}G=u0m;return G},{mode:2});var BDh;var JCL;var W1=function(){return _.C.apply(this,arguments)||this};
_.T(W1,_.C);W1.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
W1.prototype.computeHasButtons_=function(G){return!(!G.dismissButton&&!G.confirmButton)};
W1.prototype.computeStyle_=function(G){return G||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],W1.prototype,"ytEventForwardingBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],W1.prototype,"data",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],W1.prototype,"positionType",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.A("design:type",Boolean)],W1.prototype,"hasButtons_",void 0);_.N([_.h({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.A("design:type",Boolean)],W1.prototype,"style_",void 0);_.N([_.fH({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],W1);
_.m(W1,"yt-bubble-hint-renderer",function(){if(JCL===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;BDh===void 0&&(BDh=document.createElement("template"));var Q=BDh;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);JCL=G}G=JCL;return G},{mode:2});var thi;var kg8;var zA=function(){var G=_.BE.apply(this,arguments)||this;G.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return G};
_.T(zA,_.BE);_.g=zA.prototype;_.g.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.g.attached=function(){var G=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){G.$.thumbnail.onShow();G.$["header-image"].onShow()})};
_.g.handleCheckBoxUpdateAction_=function(G){this.canShowCheckboxEnabledConfirmButton=G};
_.g.computeUseOverlayForSpinner_=function(G,H){return!!G&&H};
_.g.computeShowSpinner_=function(G,H){return G||!!H};
_.g.fireOnCloseActions_=function(){var G,H=_.I(((G=this.data)==null?void 0:G.onClosedActions)||[]);for(G=H.next();!G.done;G=H.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.g.fireOnOpenCommands_=function(G){var H,Z=(H=this.data)==null?void 0:H.onOpenCommands;if(Z)for(G.stopImmediatePropagation(),G=_.I(Z),H=G.next();!H.done;H=G.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.g.fireOnDismissCommands_=function(G){var H,Z=(H=this.data)==null?void 0:H.onDismissCommands;if(Z)for(G.stopImmediatePropagation(),G=_.I(Z),H=G.next();!H.done;H=G.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.g.openPopupHandler_=function(G){G.detail==this&&this.fireOnOpenCommands_(G)};
_.g.closePopupHandler_=function(G,H){_.xk(this,"yt-confirm-dialog-close-action",[H]);this.fireOnCloseActions_();(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.fireOnDismissCommands_(G)};
_.g.onHeaderImageChanged_=function(){var G;((G=this.data)==null?0:G.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.g.computeHasHeaderImageWidth_=function(G){return G!=void 0};
_.g.computeHasLoadingMessage=function(G){return!!G};
_.g.onHeaderImageWidthChanged_=function(){var G,H=(G=this.data)==null?void 0:G.headerImageWidth;if(H){if(G=1.25*H*2+H,this.$.main.style.width=G+"px",H=this.$.scroller.firstElementChild)H.style.minWidth=G+"px"}else this.$.main.style.width="100%"};
_.g.onThumbnailChanged_=function(){var G;((G=this.data)==null?0:G.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")};
_.g.onYtNavigate_=function(G){G=_.a_(G);G instanceof Node&&_.bS(this.$["confirm-button"]).contains(G)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.g.computePrimaryIsCancel_=function(G){return G};
_.g.computeIsCancelButtonHidden_=function(G){return G.skipCancelButton||!G.cancelButton};
_.g.computeIsCheckboxHidden_=function(G){return!G.checkbox};
_.g.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.g.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.g.onYtServiceRequestCompleted_=function(){var G;((G=this.data)==null?0:G.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.u4.Object.defineProperties(zA,{template:{configurable:!0,enumerable:!0,get:function(){if(kg8===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;thi===void 0&&(thi=document.createElement("template"));var Q=thi;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);kg8=G}G=kg8;return G}}});
zA.prototype.onYtServiceRequestCompleted_=zA.prototype.onYtServiceRequestCompleted_;zA.prototype.onYtServiceRequestSent_=zA.prototype.onYtServiceRequestSent_;zA.prototype.onThumbnailLoaded_=zA.prototype.onThumbnailLoaded_;zA.prototype.onYtNavigate_=zA.prototype.onYtNavigate_;zA.prototype.onThumbnailChanged_=zA.prototype.onThumbnailChanged_;zA.prototype.onHeaderImageWidthChanged_=zA.prototype.onHeaderImageWidthChanged_;zA.prototype.onHeaderImageChanged_=zA.prototype.onHeaderImageChanged_;
zA.prototype.closePopupHandler_=zA.prototype.closePopupHandler_;zA.prototype.openPopupHandler_=zA.prototype.openPopupHandler_;_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],zA.prototype,"ytActionHandlerBehavior",void 0);_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);
_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],zA.prototype,"ytEventForwardingBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],zA.prototype,"data",void 0);_.N([_.h({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.A("design:type",Boolean)],zA.prototype,"primaryIsCancel",void 0);_.N([_.h({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.A("design:type",Boolean)],zA.prototype,"isCancelButtonHidden",void 0);
_.N([_.h({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.A("design:type",Boolean)],zA.prototype,"isCheckboxHidden",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],zA.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.N([_.h({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.A("design:type",Boolean)],zA.prototype,"useOverlayForSpinner_",void 0);
_.N([_.h({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.A("design:type",Boolean)],zA.prototype,"showSpinner_",void 0);_.N([_.h({value:!1}),_.A("design:type",Boolean)],zA.prototype,"isActionInProgress_",void 0);_.N([_.h({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.A("design:type",Boolean)],zA.prototype,"hasHeaderImageWidth_",void 0);
_.N([_.h({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.A("design:type",Boolean)],zA.prototype,"hasLoadingMessage",void 0);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],zA.prototype,"openPopupHandler_",null);_.N([_.lq("yt-popup-closed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],zA.prototype,"closePopupHandler_",null);
_.N([_.gx("data.headerImage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zA.prototype,"onHeaderImageChanged_",null);_.N([_.gx("data.headerImageWidth"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zA.prototype,"onHeaderImageWidthChanged_",null);_.N([_.gx("data.thumbnail"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zA.prototype,"onThumbnailChanged_",null);
_.N([_.lq("yt-navigate"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],zA.prototype,"onYtNavigate_",null);_.N([_.lq("yt-img-shadow-loaded"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],zA.prototype,"onThumbnailLoaded_",null);_.N([_.lq("yt-service-request-sent"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.Mi]),_.A("design:returntype")],zA.prototype,"onYtServiceRequestSent_",null);
_.N([_.lq("yt-service-request-completed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,_.il]),_.A("design:returntype")],zA.prototype,"onYtServiceRequestCompleted_",null);_.N([_.fH({is:"yt-confirm-dialog-renderer",noInjection:!0})],zA);var DGs;var dGm;var Kv=function(){return _.C.apply(this,arguments)||this};
_.T(Kv,_.C);Kv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.F9(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Kv.prototype.computeConfirmButton_=function(G){var H={text:G.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};G.confirmNavigationEndpoint?H.navigationEndpoint=G.confirmNavigationEndpoint:G.confirmServiceEndpoint&&(H.serviceEndpoint=G.confirmServiceEndpoint);return H};
Kv.prototype.computeShowTitle_=function(G){return!(G==null||!G.title)};
_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Kv.prototype,"data",void 0);_.N([_.h({computed:"computeShowTitle_(data)"}),_.A("design:type",Boolean)],Kv.prototype,"showTitle",void 0);_.N([_.fH({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Kv);
_.m(Kv,"yt-fancy-dismissible-dialog-renderer",function(){if(dGm===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;DGs===void 0&&(DGs=document.createElement("template"));var Q=DGs;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);dGm=G}G=dGm;return G});var eQh;var n2q;var Mq=function(){var G=_.C.apply(this,arguments)||this;G.spinnerActive=!1;return G};
_.T(Mq,_.C);Mq.prototype.created=function(){taj(2201)};
Mq.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Mq.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Mq.prototype.onIronOverlayClosed=Mq.prototype.onIronOverlayClosed;Mq.prototype.onIronOverlayOpened=Mq.prototype.onIronOverlayOpened;_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.Fv),_.A("design:type",Object)],Mq.prototype,"tpYtIronOverlayBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],Mq.prototype,"data",void 0);_.N([_.h(),_.A("design:type",Object)],Mq.prototype,"spinnerActive",void 0);
_.N([_.lq("iron-overlay-opened"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mq.prototype,"onIronOverlayOpened",null);_.N([_.lq("iron-overlay-closed"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Mq.prototype,"onIronOverlayClosed",null);_.N([_.fH({is:"yt-loading-renderer",disableElementRegistration:!0})],Mq);
_.m(Mq,"yt-loading-renderer",function(){if(n2q===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;eQh===void 0&&(eQh=document.createElement("template"));var Q=eQh;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);n2q=G}G=n2q;return G},{mode:2});var Vhc;var $Gt;var jT=function(){var G=_.C.apply(this,arguments)||this;G.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);G.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);G.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";G.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return G};
_.T(jT,_.C);_.g=jT.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.g.onDarkModeToggledAction=function(G){this.isDarkTheme=G};
_.g.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.g.openPopupHandler_=function(G){G.detail===this.hostElement&&this.hostElement.hidden&&_.AZ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.g.onDismissButtonTap_=function(){var G;this.closeOnDismissButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.AZ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.g.onAcceptButtonTap_=function(){var G;this.closeOnAcceptButton_.has(((G=this.data)==null?void 0:G.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.AZ(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.g.computeHasHeader_=function(G){return!!G.headerBackgroundImage};
_.g.computeLayoutStyle_=function(G){return G};
_.g.computePopupSize_=function(G){return G};
_.g.computeIconType_=function(G){return G.dialogIcon&&G.dialogIcon.iconType?G.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":G.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":G.dialogIcon.iconType:""};
_.g.computeIsLogo_=function(G){return!!G.dialogIcon&&!!G.dialogIcon.iconType&&(G.dialogIcon.iconType==="YOUTUBE_LOGO"||G.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||G.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.g.computeHasCustomLogo=function(G){return!(G==null||!G.headerForegroundImage)};
_.g.computeCustomLogo=function(G,H){if(G!=null&&G.headerForegroundImage)return G.headerForegroundImageDark?H?G.headerForegroundImageDark:G.headerForegroundImage:G.headerForegroundImage};
_.g.computeHeaderBackgroundImage=function(G,H){if(G!=null&&G.headerBackgroundImage)return H&&(G==null?0:G.headerBackgroundImageDark)?G.headerBackgroundImageDark:G.headerBackgroundImage};
_.g.shouldShowIconContainer=function(G,H){return G&&!H};
_.g.shouldShowNonYouTubeIcon=function(G,H){return!G&&!H};
_.g.getLogoImageId=function(G){var H,Z,Q;return(G=(H=this.computeCustomLogo(G,this.isDarkTheme))==null?void 0:(Z=H.thumbnails)==null?void 0:(Q=Z[0])==null?void 0:Q.height)&&G%31===0?"custom-logo-with-padding":"custom-logo"};
jT.prototype.openPopupHandler_=jT.prototype.openPopupHandler_;jT.prototype.dataChanged_=jT.prototype.dataChanged_;_.N([_.v(_.Ii.YtRendererstamperBehavior),_.A("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.N([_.h(),_.A("design:type",Boolean)],jT.prototype,"isDarkTheme",void 0);
_.N([_.h({computed:"computeCustomLogo(data, isDarkTheme)"}),_.A("design:type",Object)],jT.prototype,"customLogo",void 0);_.N([_.h({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.A("design:type",Object)],jT.prototype,"headerBackgroundImage",void 0);_.N([_.h(),_.A("design:type",Object)],jT.prototype,"data",void 0);_.N([_.h({computed:"computeHasHeader_(data)"}),_.A("design:type",Boolean)],jT.prototype,"hasHeader",void 0);
_.N([_.h({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.A("design:type",Object)],jT.prototype,"layoutStyle",void 0);_.N([_.h({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.A("design:type",Object)],jT.prototype,"popupSize",void 0);_.N([_.h({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],jT.prototype,"hasLogo",void 0);
_.N([_.h({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.A("design:type",Boolean)],jT.prototype,"hasCustomLogo",void 0);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],jT.prototype,"dataChanged_",null);_.N([_.lq("yt-popup-opened"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],jT.prototype,"openPopupHandler_",null);
_.N([_.fH({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],jT);
_.m(jT,"yt-upsell-dialog-renderer",function(){if($Gt===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;Vhc===void 0&&(Vhc=document.createElement("template"));var Q=Vhc;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);$Gt=G}G=$Gt;return G},{mode:2});var X0m=_.y(function(G){return _.J("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.J(_.k,{cond:G.title,then:function(H){return _.J("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},H)}}))},"rj"),cCs=_.y(function(G){return _.J("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.J(_.SP,{data:G.closeButton},{buttonViewModel:function(H){return _.J("div",null,_.J(_.kg,{data:H.data}))}}))},"sj"),TDt=_.y(function(G){var H=G.data;
return _.J(_.kI,null,_.J("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.J("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.J(_.k,{cond:function(){return!!H().image&&!!H().title},
then:function(){return _.J(_.ib,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.J("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.J(_.k,{cond:function(){return H().title},
then:function(Z){return _.J("h3",{class:"miniAppGameInfoDialogViewModelTitle"},Z)}}),_.J(_.k,{cond:function(){return H().primaryGenre},
then:function(Z){return _.J("span",{class:"miniAppGameInfoDialogViewModelGenre"},Z)}}))),_.J(_.k,{cond:function(){var Z=H().description;
return Z&&Z.length<=150},
then:function(){return _.J("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.J("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return H().description}))}}))},"tj"),fhD=_.y(function(G){G=G.infoRows;
var H=_.tp().resolve(_.p_),Z=_.V("enable_displaying_ppn");return _.J("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.J(_.Cl,{each:G},function(Q){return _.J("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.J(_.k,{cond:function(){return Q.label},
then:function(p){return _.J("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},p)}}),_.J(_.k,{cond:function(){return Q.attributedLabel},
then:function(p){return _.J("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.J(_.Fe,{text:p,noPreWrap:!0}))}}),_.J(_.k,{cond:function(){return Q.value},
then:function(p){return _.J("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},p)}}),_.J(_.k,{cond:function(){return Q.attributedValue},
then:function(p){return _.J("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.J(_.Fe,{text:p,noPreWrap:!0}))}}))}),_.J(_.k,{cond:function(){return Z&&H.clientData.has("post_play_nonce")},
then:function(){return _.J("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.J("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.J("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},H.getData("post_play_nonce")))}}))},"uj"),v2j=_.y(function(G){var H=G.data;
return _.J("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.J(X0m,{title:function(){return H().dialogTitle}}),_.J(TDt,{data:H}),_.J(_.k,{cond:function(){return H().infoRow},
then:function(Z){return _.J(fhD,{infoRows:Z})}}),_.J(cCs,{closeButton:function(){return H().closeButton}}))},"vj");
v2j.idomCompat=!0;_.RX(v2j,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;return _.J("yt-gulp-triggering-dialog-view-model",{class:_.bb("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.J(_.ib,{data:function(){return H().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.J("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.J("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.J("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J(_.k,{cond:function(){return H().bodyText},
then:function(Z){return _.J(_.Cl,{each:Z},function(Q){return _.J("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.J(_.Fe,{text:Q}))})}})),_.J("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.J(_.SP,{data:function(){return H().dismissButton}},{buttonViewModel:function(Z){return _.J("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.J(_.kg,{data:Z.data}))}}),_.J(_.SP,{data:function(){return H().actionButton}},{buttonViewModel:function(Z){return _.J("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.J(_.kg,{data:Z.data}))}}))))},"wj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.b3}});var Wtk=_.y(function(G){var H=G.data;G=_.yy(function(){return H().agreements},[]);
return _.J("installment-agreements-view-model",{class:_.bb("ytInstallmentAgreementsViewModelHost")},_.J(_.Cl,{each:G},function(Z){return _.J("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.J("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.J(_.Fe,{text:Z.label})),_.J("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.J(_.SP,{data:function(){return Z.openButton}},{buttonViewModel:_.kg})))}))},"xj");
Wtk.idomCompat=!0;var zQs=_.y(function(G){var H=_.I(_.QF(function(){var L,H3;return((L=G.data().createPlaylistDialogFormSchema)==null?0:(H3=L.initialValues)==null?0:H3.title)?G.data().createPlaylistDialogFormSchema.initialValues.title:""})),Z=H.next().value,Q=H.next().value;
H=_.I(_.QF(function(){G.data();return!1}));
var p=H.next().value,l=H.next().value;H=_.I(_.QF(function(){G.data();return!1}));
var q=H.next().value,u=H.next().value;H=_.I(_.QF(function(){var L,H3;return(L=G.data().createPlaylistDialogFormSchema)==null?void 0:(H3=L.initialValues)==null?void 0:H3.visibility}));
var B=H.next().value,t=H.next().value;H=_.I(_.QF(function(){G.data();return!1}));
var D=H.next().value,d=H.next().value;H=_.I(_.QF(function(){var L,H3;return(L=G.data().createPlaylistDialogFormSchema)==null?void 0:(H3=L.initialValues)==null?void 0:H3.isCollaborative}));
var e=H.next().value,n=H.next().value,c=_.IA("div");_.yN(function(){var L=c.value.querySelector("textarea");L&&(L.value=Z())},"axFRaf");
_.mR(function(){var L;_.fYL((L=G.data().createPlaylistDialogFormSchema)==null?void 0:L.id,{onSubmit:function(){var H3=Z();var qX=B(),B3=e(),fW=G.data();H3={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:H3,privacyStatus:qX,videoIds:fW.videoIds,sourcePlaylistId:fW.sourcePlaylistId,params:B3?fW.createPlaylistParamsCollaborationEnabled:fW.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.tp().resolve(_.Dk).resolveCommand(H3)},
isValid:function(){return p()&&!q()&&!D()}})});
var W=function(L){if(L!==void 0&&(Q(L),!p()&&L.length>0&&l(!0),p())){var H3=$8o(G.data());if(H3){var qX=H3.minLength;H3=H3.maxLength;qX&&L.length<qX?u(!0):H3&&L.length>H3?u(!0):u(!1)}}},M=function(){var L=!(!e()||B()!=="PRIVATE");
d(L)},r=function(L){L!==void 0&&(t(L),M())},w=function(){if(D())return cgL(G.data())},x=function(){n(!e());
M()},U=function(){return{validate:function(L){if(p()){var H3=$8o(G.data());
if(H3){var qX=H3.minLength;H3=H3.translations;if(qX&&L.length<qX)return H3==null?void 0:H3.minLengthErrorMessage}}}}},R=function(){var L=$8o(G.data()),H3=L==null?void 0:L.maxLength,qX;
L=L==null?void 0:(qX=L.translations)==null?void 0:qX.maxLengthErrorMessage;if(H3&&L)return{maxChars:H3,errorMessage:L}};
return _.J("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.J("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:c},_.J(_.SP,{data:function(){return G.data().playlistTitle}},{textFormFieldViewModel:function(L){return _.J(_.PXq,{data:L.data,
text:Z,onInput:W,validation:U,characterLimit:R})},
textFieldViewModel:function(L){return _.J(_.jqD,{data:L.data,text:Z,onInput:W,validation:U,characterLimit:R})}})),_.J("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.J(_.SP,{data:function(){return G.data().playlistVisibility}},{dropdownViewModel:function(L){return _.J(_.mvh,{data:L.data,
onSelected:r,error:w})}})),_.J(_.k,{cond:function(){return!!G.data().playlistCollaborate},
then:function(){return _.J("div",null,_.J(_.SP,{data:function(){return G.data().playlistCollaborate}},{switchListItemViewModel:function(L){return _.J(_.drN,{data:L.data,
onTap:x})}}))}}))},"zj");var Kto=_.y(function(G){var H=G.data;return _.J("upsell-offer-table-cell-content-view-model",null,_.J("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.J(_.iW,null,_.J(_.wO,{when:function(){return H().iconType}},function(){return _.J("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.J(_.ll,{icon:function(){return H().iconType.toString()}}))}),_.J(_.wO,{when:function(){return H().title}},function(){return _.J(_.Fe,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return H().title}})}),_.J(_.wO,{when:function(){return H().subtitle}},function(){return _.J(_.Fe,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return H().subtitle}})}),_.J(_.wO,{when:function(){return H().infoText}},function(){return _.J(_.Fe,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return H().infoText}})}),_.J(_.wO,{when:function(){return H().featureDescription}},function(){return _.J(_.Fe,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.J(_.wO,{when:function(){return H().note}},function(){return _.J(_.Fe,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return H().note}})}))))},"Aj");
Kto.idomCompat=!0;var Mhj=_.y(function(G){var H=G.data;return _.J("upsell-offer-table-cell-view-model",null,_.J("div",{class:_.bb("ytUpsellOfferTableCellViewModelCellWrapper",function(){return H().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":H().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.J(_.SP,{data:function(){return H().contents}},{upsellOfferTableCellContentViewModel:Kto})))},"Bj");
Mhj.idomCompat=!0;var jDA=_.y(function(G){var H=G.data;var Z=G.upsellTableIsFirstRow;var Q=function(){return(Z==null?0:Z())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},p=function(){return(Z==null?0:Z())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.J("ytm-upsell-offer-table-row-view-model",null,_.J("div",{class:function(){return(Z==null?0:Z())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"}},_.J(_.SP,{data:function(){return H().rowHeaderCell}},{upsellOfferTableCellViewModel:function(l){return _.J("div",{class:Q},_.J(Mhj,{data:l.data}))}}),_.J("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.J(_.SP,{data:function(){return H().contentCells}},{upsellOfferTableCellViewModel:function(l){return _.J("div",
{class:p},_.J(Mhj,{data:l.data}))}}))))},"Cj");
jDA.idomCompat=!0;var Pyj=_.y(function(G){var H=G.data;return _.J("ytm-upsell-offer-table-view-model",null,_.J("div",{class:"ytUpsellOfferTableViewModelHost"},_.J("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.J(_.SP,{data:function(){return H().rows}},{upsellOfferTableRowViewModel:function(Z,Q){return _.J(jDA,{data:Z.data,
upsellTableIsFirstRow:function(){return Q()===0}})}}))))},"Dj");
Pyj.idomCompat=!0;var rCs=_.y(function(G){var H=function(){return G.data()},Z=_.yy(G.noPadding,!1),Q=function(){var l,q;
return(q=(l=H().logo.accessibilityData)==null?void 0:l.label)!=null?q:""},p={};
return _.J("upsell-view-model",{class:_.bb("ytUpsellViewModelHost",(p.ytUpsellViewModelHostNoPadding=function(){return Z()},p.ytUpsellViewModelHostWide=function(){return H().offerTable!==void 0},p))},_.J("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.J(_.k,{cond:function(){return _.zk(H().logo)},
then:function(l){return _.J(_.ib,{data:l,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:Q})}})),_.J("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.J(_.Cl,{each:function(){var l;
return(l=H().subtitles)!=null?l:[]},
keyBy:"INDEX"},function(l){var q={};return _.J("div",{class:_.bb("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(q.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return H().offerTable!==void 0},q))},_.J(_.Fe,{text:l}))})),_.J("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.J(_.Cl,{each:function(){var l;
return(l=H().benefitInfos)!=null?l:[]},
keyBy:"INDEX"},function(l){return _.J(_.k,{cond:function(){return l().info},
then:function(q){return _.J("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.J(_.ll,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.J(_.Fe,{text:q}))}})})),_.J(_.k,{cond:function(){return H().offerTable!==void 0},
then:function(){return _.J("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.J(_.SP,{data:function(){return H().offerTable}},{upsellOfferTableViewModel:function(l){return _.J(Pyj,{data:l.data})}}))}}),_.J("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.J(_.Cl,{each:function(){var l;
return(l=H().legalInfos)!=null?l:[]},
keyBy:"INDEX"},function(l){var q={};return _.J("div",{class:_.bb("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(q.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return H().offerTable!==void 0},q))},_.J(_.Fe,{text:l}))})))},"Ej");var w08=_.y(function(G){var H=G.data;G={};G=(G.ytMiniAppScoreChallengeViewModelScoreRadial=!0,G.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Tmk(),G);return _.J("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.J("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return H().title}),_.J("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return H().subtitle}),_.J("div",{class:_.Dq(G)},_.J("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return H().score})),_.J("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return H().prompt}))},"Fj");var hQo=function(){this.store=_.OI();this.formId=""};
hQo.prototype.onInit=function(G){G.formId&&(this.formId=G.formId,this.store.dispatch(_.Lo({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var CyD=_.y(function(G){function H(u){if(u&&(u=_.X(u,_.BV)))return Object.assign({},u,{isSelected:l()})}
var Z=_.I(_.QF(function(){var u,B;return(B=(u=_.X(G.data().option,_.BV))==null?void 0:u.isSelected)!=null?B:!1})),Q=Z.next().value,p=Z.next().value,l=Q;
_.mR(function(){var u;_.fYL((u=G.data().formSchema)==null?void 0:u.id,{onSubmit:function(){var B=_.tp().resolve(_.Dk),t=!!G.data().selectedCommand,D=!!G.data().unselectedCommand;if(l()){if(t)var d=G.data().selectedCommand}else D&&(d=G.data().unselectedCommand);d=_.Tt(d);H(G.data().option)&&!d?(B="",!t&&D?B="selected ":t&&!D&&(B="unselected "),t=new _.C$("No "+B+"command found for SelectionListItemFormViewModel"),_.me(t)):d&&B.resolveCommand(d)},
isValid:function(){return!0}})});
var q=function(){p(!l())};
_.oM(function(){var u,B,t=(u=G.data())==null?void 0:(B=u.formSchema)==null?void 0:B.id;t&&_.IS()().delete(t)});
return _.J("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.J("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.J(_.Fe,{text:function(){return G.data().paragraph}})),_.J(_.k,{cond:function(){return H(G.data().option)},
then:function(u){return _.J(_.L5,{data:u,isCompact:!0,hideSelectionTextChevron:!0,onTap:q,disableHorizontalPadding:!0})}}))},"Gj");var iDs=_.y(function(G){var H=G.data;var Z=G.disablePadding;var Q=G.className;var p=_.IA("yt-dialog-header-view-model"),l=function(){var u=H().imageBanner;a:switch(H().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var B="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:B="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:u,style:B,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},q=function(){return H().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.mR(function(){var u=function(){_.AZ(p.value,"yt-refit-popups-action")},B;
(B=p.value)==null||B.addEventListener("image-loaded",u);_.oM(function(){var t;(t=p.value)==null||t.removeEventListener("image-loaded",u)})});
G={};return _.J("yt-dialog-header-view-model",{el:p,class:_.bb(Q,(G.ytDialogHeaderViewModelHost=!0,G.ytDialogHeaderViewModelHostDisablePadding=Z,G))},_.J(_.k,{cond:function(){return H().imageBanner},
then:function(){var u={};return _.J("div",{class:_.bb(Q,(u.ytDialogHeaderViewModelBanner=!0,u.ytDialogHeaderViewModelBannerFullBleed=q,u)),style:_.pI({"max-height":function(){return H().assetContainerMaxHeight!==void 0?H().assetContainerMaxHeight+"px":void 0}})},_.J(_.kz,{data:l,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.J(_.k,{cond:function(){return H().headerBlock},
then:function(){return _.J("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.J(_.SP,{data:function(){return H().headerBlock}},{contentPreviewImageViewModel:function(u){return _.J(_.kz,{data:u.data,
notifyOnLoaded:!0})}}))}}),_.J(_.k,{cond:function(){return H().customBanner},
then:function(u){return _.J("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.J(_.SP,{data:u},{avatarStackViewModel:_.Rr}))}}),_.J(_.k,{cond:function(){return H().headline},
then:function(u){return _.J("h2",null,_.J(_.Fe,{text:u,className:"ytDialogHeaderViewModelText"}))}}))},"Hj");
iDs.idomCompat=!0;var ODo=_.y(function(G){var H=_.Jbe(function(){return G.data().formId}),Z=H.submitForm,Q=H.isValid;
return _.J("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.J(_.SP,{data:function(){return G.data().panelFooter}},{panelFooterViewModel:function(p){return _.J(_.V5,{data:p.data,
disablePadding:!0,disablePrimaryButton:function(){return!Q()},
onClickPrimaryButton:function(){Z()}})}}))},"Ij");var ahA=_.y(function(G){var H=function(){var Z,Q;return(Q=(Z=_.X(G.data().rendererContext,_.qc))==null?void 0:Z.label)!=null?Q:""};
return _.J("yt-dialog-image-content-view-model",{class:_.bb("ytDialogImageContentViewModelHost",G.className)},_.J(_.k,{cond:function(){return _.zk(G.data().image)},
then:function(Z){var Q={};return _.J("div",{style:_.pI((Q.width=(0,_.A7)(function(){var p;return(p=G.data().imageMaxWidth)!=null?p:""}),Q)),
class:"ytDialogImageContentViewModelImage"},_.J(_.ib,{data:Z,alt:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.J(_.Fe,{text:function(){return G.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Jj");var mGD=_.y(function(G){var H=_.oK(G,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),Z=H.elRefCallback;G=H.iconWiz;var Q=H.assetWiz,p=H.assetType,l=H.titleWiz,q=H.leadingActionHeaderWiz,u=H.trailingActionHeaderWiz,B=H.headerPosition,t=H.contentWiz,D=H.buttonLayout,d=H.buttonStyle,e=H.primaryButtonWiz,n=H.secondaryButtonWiz,c=H.contentAlignment,W=H.isFullscreen,M=H.width,r=H.maxHeight,w=H.isHeaderWizDefined,
x=H.headerWiz,U=H.isFooterWizDefined,R=H.footerWiz;H=_.IA("dialog-layout",function(W3){Z==null||Z(W3)});
var L=Q?function(){return Q({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,H3=e?function(){var W3={};
return e({buttonOverrides:function(){return{style:(d==null?void 0:d())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.bb((W3["yt-spec-dialog-layout__dialog-layout-button"]=!0,W3["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(D==null?void 0:D())===0||(D==null?void 0:D())===2},W3))})}:void 0,qX=n?function(){var W3={};
return n({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.bb((W3["yt-spec-dialog-layout__dialog-layout-button"]=!0,W3["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(D==null?void 0:D())===0||(D==null?void 0:D())===2},W3))})}:void 0,B3=function(){return(!!l||!!q||!!u)&&B()===0},fW={},e2={},$R={},ie={};
return _.J("dialog-layout",{el:H,class:_.bb((fW["yt-spec-dialog-layout"]=!0,fW["yt-spec-dialog-layout--dialog-layout-fullscreen"]=W,fW["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!W()},fW["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return r()===1},fW["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(p==null?void 0:p())===1},fW)),
style:function(){return(M==null?void 0:M())!==void 0?"width: "+M()+"px;":""}},G?_.J("div",{class:_.bb((e2["yt-spec-dialog-layout__dialog-layout-icon"]=!0,e2["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!Q&&B()===1},e2["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return c()===1},e2))},_.J(G,null)):null,_.J(_.k,{cond:w,
then:function(){return x?_.J("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.J(x,null)):null},
else:function(){return _.J(_.kI,null,_.J(_.k,{cond:B3,then:function(){return _.J(yCL,{contentAlignment:c,LeadingActionHeader:q,TrailingActionHeader:u,Title:l,isAboveAsset:!!L})}}),L?_.J("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.J(L,null)):null)}}),_.J("div",{class:_.bb(($R["yt-spec-dialog-layout__dialog-layout-container"]=!0,$R["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(c==null?void 0:c())===1},$R["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!l&&!(x&&w())||!!L&&(B==null?void 0:B())===0},$R))},_.J(_.k,{cond:function(){return l&&!x&&(B==null?void 0:B())===1},
then:function(){return _.J(yCL,{contentAlignment:c,LeadingActionHeader:q,TrailingActionHeader:u,Title:l,isAboveAsset:!1})}}),t?_.J("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.J("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.J(t,null))):null,_.J(_.k,{cond:U,
then:function(){return R?_.J("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.J(R,null)):null}}),H3||qX?_.J(o2h,{footerClasses:_.bb((ie["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,ie["yt-spec-dialog-layout__dialog-layout-footer"]=!0,ie["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(D==null?void 0:D())===2},ie["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(D==null?void 0:D())===1},ie)),
PrimaryButton:H3,SecondaryButton:qX}):null))},"Kj"),yCL=_.y(function(G){var H=_.oK(G,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),Z=H.contentAlignment,Q=H.LeadingActionHeader;G=H.Title;var p=H.TrailingActionHeader,l=H.isAboveAsset,q=H.enableLeadingActionHeader;H={};return _.J("div",{class:_.bb((H["yt-spec-dialog-layout__dialog-header-container"]=!0,H["yt-spec-dialog-layout__dialog-header"]=!0,H["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=l,H["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(Z==null?void 0:Z())===1&&q()},H))},_.J(_.k,{cond:function(){return q()},
then:function(){return Q?_.J("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.J(Q,null)):null}}),G?_.J("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.J(G,null)):null,p?_.J("div",null,_.J(p,null)):null)},"Lj"),o2h=_.y(function(G){var H=G.footerClasses;
var Z=G.PrimaryButton;G=G.SecondaryButton;return _.J("div",{class:H},G?_.J(G,null):null,Z?_.J(Z,null):null)},"Mj");var UGj=_.y(function(G){var H=G.data;return _.J("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.J("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.J(_.SP,{data:function(){return H().avatar}},{avatarViewModel:_.m9})),_.J("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J(_.Fe,{text:function(){return H().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Nj");var RQc=_.y(function(G){return _.J("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.J("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.J(_.Fe,{text:function(){return G.data().inviteMessage}})),_.J("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.J(_.Fe,{text:function(){return G.data().attributedAccountSectionHeaderText}})),_.J("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.J(_.SP,{data:function(){return G.data().accountAvatar}},{avatarViewModel:_.m9}),_.J("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.J(_.Fe,{text:function(){return G.data().accountName}}),_.J("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.J(_.Fe,{text:function(){return G.data().handle}}))),_.J(_.SP,{data:function(){return G.data().trailingButton}},{buttonViewModel:_.kg})),_.J("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.J(_.Fe,{text:function(){return G.data().termsOfService}})))},"Oj");var NDs=_.y(function(G){var H=G.data;return _.J("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.J("div",{class:"ytAccessConfirmationViewModelContent"},_.J(_.SP,{data:function(){var Z;return(Z=H().avatar)!=null?Z:H().dualAvatar}},{dualAvatarViewModel:function(Z){return _.J(_.lMc,{data:Z.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(Z){return _.J(_.U5,{data:Z.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.J("h2",{class:"ytAccessConfirmationViewModelTitle"},_.J(_.Fe,{text:function(){return H().title}})),_.J(_.Fe,{text:function(){return H().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Pj");var ACc=_.y(function(G){var H=G.data;var Z=void 0;G=_.I(_.QF(function(){var t;return((t=_.X(H().content,_.UB))==null?void 0:t.defaultSelectedKey)||""}));
var Q=G.next().value,p=G.next().value,l,q=function(){p("");var t;(t=Z)!=null&&t.store.dispatch(_.Lo({type:"RESET_COMMAND_MAP"}))};
_.mR(function(){Z=new hQo;window.addEventListener("yt-popup-closed",q)});
_.yN(function(){if(Z&&l!==H().formId&&(Z.onInit(H()),(l=H().formId)&&Q())){var t=Z,D={key:Q()};D.command&&t.store.dispatch(kvi(l,D.command))}},"c2n8Gf");
_.oM(function(){window.removeEventListener("yt-popup-closed",q)});
var u=function(t,D,d){D.key&&d&&D.key!==Q()&&(p(D.key),Z&&D.command&&Z.store.dispatch(kvi(d,D.command)))},B=function(){if(_.X(H().content,_.UB))return!(Q==null?0:Q())};
return _.J("yt-dialog-view-model",{class:_.bb("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.J(mGD,{headerWiz:function(){return _.J("span",{skip:!0},_.J(_.SP,{data:function(){return H().header}},{dialogHeaderViewModel:function(t){return _.J(iDs,{data:t.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!H().header},
contentWiz:function(){return _.J("span",{skip:!0},_.J(_.SP,{data:function(){return H().customContent?H().customContent:H().content}},{basicContentViewModel:_.gDa,
createPlaylistDialogFormViewModel:zQs,collaborativePlaylistInviteMessageViewModel:RQc,miniAppScoreChallengeViewModel:w08,radioButtonGroupViewModel:function(t){var D=t.data;return _.J(_.Wms,{data:D,selectedKey:Q,onSelected:u,groupName:function(){return D().formId}})},
selectionListItemFormViewModel:CyD,upsellViewModel:function(t){return _.J(rCs,{data:t.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:UGj,installmentAgreementsViewModel:Wtk,accessConfirmationViewModel:NDs,listViewModel:function(t){return _.J(_.fl4,{data:t.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:ahA}))},
footerWiz:function(){return _.J("span",{skip:!0},_.J(_.SP,{data:function(){return H().footer}},{panelFooterViewModel:function(t){return _.J(_.V5,{data:t.data,
disablePadding:!0,disablePrimaryButton:B})},
formPanelFooterViewModel:ODo,formFooterViewModel:function(t){return _.J(_.k96,{data:t.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!H().footer}}))},"Rj");
ACc.idomCompat=!0;_.RX(ACc,"yt-dialog-view-model",{props:{data:_.b3},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var xGh=_.y(function(G){var H=G.data;var Z=_.A1U(function(){return H().rendererContext});
G={};return _.J("yt-panel-header-view-model",{class:_.bb("ytPanelHeaderViewModelHost",(G.ytPanelHeaderViewModelHostHideDivider=function(){return!!H().shouldHideDivider},G.ytPanelHeaderViewModelHostCompact=function(){return!!H().subtitle},G)),
"aria-label":function(){var Q;return(Q=Z())==null?void 0:Q.label}},_.J("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.J(_.k,{cond:function(){return H().title},
then:function(Q){return _.J("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.J(_.Fe,{text:Q,className:"ytPanelHeaderViewModelTitle"}))}}),_.J(_.k,{cond:function(){return H().subtitle},
then:function(Q){return _.J(_.Fe,{text:Q,className:"ytPanelHeaderViewModelSubtitle"})}})),_.J("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.J(_.SP,{data:function(){return H().trailingButtons}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Sj");
xGh.idomCompat=!0;var Ltq=_.y(function(G){var H=_.Hh(function(l){var q;if((q=G.skipContentClick)==null?0:q.call(G))return!1;G.onContentWrapperClick(l);return!0}),Z,Q,p;
return _.J("div",{class:_.bb("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return G.isAnimating()?"transform: translateY("+G.currentY()+"px);transition: 0.2s":""}},(Z=G.header)==null?void 0:Z.call(G),_.J("div",{id:G.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.pI({"max-height":(0,_.A7)(G.maxHeightForContentWrapper)}),"on:scroll":zxs(G.onScroll),"on:touchmove":zxs(function(l){return void l.stopPropagation()})},_.J("div",{el:{onRender:G.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":H},(Q=G.body)==null?void 0:Q.call(G))),(p=G.footer)==null?void 0:p.call(G))},"Tj");
Ltq.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var E2c=_.y(function(G){var H=_.yy(G.leadingLabel),Z=_.yy(G.trailingLabel),Q=_.yy(G.footerButtonType),p=function(){return H()||Z()||G.hasPrimaryButton()||G.hasSecondaryButton()},l={},q=_.bb("yt-spec-bottom-sheet-layout__primary-button",(l["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return Q()===0&&G.hasPrimaryButton()},l["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return Q()===1&&G.hasPrimaryButton()},l["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return Q()===2&&G.hasPrimaryButton()},l["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return Q()===3&&G.hasPrimaryButton()},l));
l={};var u=_.bb("yt-spec-bottom-sheet-layout__secondary-button",(l["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return Q()===1&&G.hasSecondaryButton()},l["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return Q()===2&&G.hasSecondaryButton()},l["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return Q()===3&&G.hasPrimaryButton()},l));
return _.J(_.k,{cond:G.hasFooterOverride,then:function(){var B;return _.J(_.kI,null,(B=G.footerOverride)==null?void 0:B.call(G))},
else:function(){return _.J(_.k,{cond:p,then:function(){return _.J("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.J(_.k,{cond:function(){return H()||Z()},
then:function(){var B={};return _.J("div",{class:_.bb("yt-spec-bottom-sheet-layout__footer-label-wrapper",(B["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!G.hasPrimaryButton()},B))},_.J(_.k,{cond:H,
then:function(){return _.J("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},H)}}),_.J(_.k,{cond:Z,
then:function(){return _.J("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},Z)}}))}}),_.J(_.k,{cond:function(){return G.hasPrimaryButton()||G.hasSecondaryButton()},
then:function(){var B={};return _.J("div",{class:_.bb("yt-spec-bottom-sheet-layout__footer-button-wrapper",(B["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.sc4,B))},_.J(_.k,{cond:function(){return G.hasSecondaryButton()&&Q()!==0},
then:function(){var t;return _.J("div",{class:u},(t=G.secondaryButton)==null?void 0:t.call(G))}}),_.J(_.k,{cond:G.hasPrimaryButton,
then:function(){var t;return _.J("div",{class:q},(t=G.primaryButton)==null?void 0:t.call(G))}}))}}))}})}})},"Uj");
E2c.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var YBa=_.y(function(G){var H=_.yy(G.title),Z=_.yy(G.subtitle);return _.J("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:G.headerId,"on:touchstart":_.Hh(function(Q){var p;(p=G.touchstart)==null||p.call(G,Q);return!1}),
"on:touchmove":_.Hh(function(Q){var p;(p=G.touchmove)==null||p.call(G,Q);return!1}),
"on:touchend":_.Hh(function(Q){var p;(p=G.touchend)==null||p.call(G,Q);return!1})},_.J("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.J(_.k,{cond:G.hasHeaderOverride,
then:function(){var Q;return _.J(_.kI,null,(Q=G.headerOverride)==null?void 0:Q.call(G))},
else:function(){var Q={};return _.J("div",{class:_.bb((Q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Q["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=H,Q))},_.J("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.J(_.k,{cond:H,then:function(){return _.J(_.kI,null,_.J("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},H),_.J(_.k,{cond:Z,then:function(){return _.J("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
Z)}}))}})),_.J(_.k,{cond:function(){return H()&&G.hasActionHeader()},
then:function(){var p;return _.J("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(p=G.actionHeader)==null?void 0:p.call(G))}}))}}))},"Vj");
YBa.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.y(function(G){function H(qX){if(!x&&typeof MutationObserver!=="undefined"){var B3={childList:!0};"MutationObserver"in window&&(x=new MutationObserver(Z.bind(void 0,qX)),x.observe(qX,B3))}}
function Z(qX){typeof x!=="undefined"&&(U["content-wrapper"]===void 0&&(U["content-wrapper"]=qX.children[0].clientHeight),W(U["content-wrapper"]),c()>M()||r(c()))}
function Q(){n(window.innerHeight);c()>M()||r(c());R.isFullScreen[0]()&&c()>M()?L().dispatch("Snap To Full Screen",{maxHeight:w()}):L().dispatch("Snap To Neutral Position",{maxHeight:M()})}
function p(qX){document.body.style.overscrollBehavior="none";qX.preventDefault();L().dispatch("Touch Start",{event:qX})}
function l(qX){qX.preventDefault();L().dispatch("Touch Move",{event:qX,contentScrollable:c()>M(),fullContentWrapperHeight:w(),contentWrapperHeight:M(),heightMap:U,contentWrapperId:"content-wrapper",header:MDh(G),footer:MDh(G),headerDivHeight:U["bottom-sheet-header"],footerDivHeight:U["bottom-sheet-footer"]})}
function q(){document.body.style.overscrollBehavior="";R.isFullScreen[0]()?R.currentY[0]()>=60?L().dispatch("Snap To Neutral Position",{maxHeight:M()}):L().dispatch("Snap To Full Screen",{maxHeight:w()}):R.currentY[0]()>=60?u():R.currentY[0]()<=-60&&c()>M()?L().dispatch("Snap To Full Screen",{maxHeight:w()}):L().dispatch("Snap To Neutral Position",{maxHeight:M()})}
function u(){L().dispatch("Close Sheet",{clientHeight:e(),maxHeight:0});setTimeout(function(){Kyk()},250)}
var B=_.IA("div"),t=_.IA("div"),D=_.I(_.Ty(window.innerHeight,void 0,"CmOsU")),d=D.next().value;D=D.next().value;var e=d,n=D;D=_.I(_.Ty(0,void 0,"p0Flhb"));d=D.next().value;D=D.next().value;var c=d,W=D;D=_.I(_.QF(function(){var qX=MDh(G);return.6*e()-fH8(qX)-vH8(qX)}));
d=D.next().value;D=D.next().value;var M=d,r=D,w=function(){var qX=MDh(G),B3=e(),fW=U["bottom-sheet-header"],e2=U["bottom-sheet-footer"];return B3-(qX.hasHeaderFn&&fW!==void 0?fW:fH8(qX))-(qX.hasFooterFn&&e2!==void 0?e2:vH8(qX))-24-24},x=null,U={},R={initialY:_.Ty(0,void 0,"sxdESd"),
currentY:_.Ty(0,void 0,"GZzqeb"),isAnimating:_.Ty(!1,void 0,"vJBupc"),isFullScreen:_.Ty(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.QF(M)},L=function(){var qX=null;return function(){if(!qX){var B3={initialY:R.initialY[0](),currentY:R.currentY[0](),isAnimating:R.isAnimating[0](),isFullScreen:R.isFullScreen[0](),maxHeightForContentWrapper:R.maxHeightForContentWrapper[0]()};qX=Wyh(B3)}return qX}}();
_.mR(function(){window.addEventListener("resize",Q);L().subscribe(function(qX){R.initialY[1](qX.initialY);R.currentY[1](qX.currentY);R.isAnimating[1](qX.isAnimating);R.isFullScreen[1](qX.isFullScreen);R.maxHeightForContentWrapper[1](qX.maxHeightForContentWrapper)});
requestAnimationFrame(function(){B.value&&(U["bottom-sheet-header"]=B.value.clientHeight);t.value&&(U["bottom-sheet-footer"]=t.value.clientHeight)})});
_.oM(function(){window.removeEventListener("resize",Q);x&&(x.disconnect(),x=null)});
var H3=_.bb({"bottom-sheet-content-without-icon":function(){var qX;return!((qX=G.shouldShowIcons)==null?0:qX.call(G))}});
return _.J("bottom-sheet-layout",null,_.J(Ltq,{contentWrapperId:"content-wrapper",isAnimating:function(){return R.isAnimating[0]()},
currentY:function(){return R.currentY[0]()},
maxHeightForContentWrapper:function(){return R.maxHeightForContentWrapper[0]()},
shouldShowIcons:G.shouldShowIcons,skipContentClick:G.skipContentClick,onScroll:function(){var qX=document.getElementById("bottom-sheet-header"),B3=document.getElementById("content-wrapper");if(qX&&B3){var fW={};fW=(fW["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,fW["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,fW);qX.className=B3.scrollTop>1?_.Dq(fW):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Kyk,contentWrapperEl:function(qX){H(qX);requestAnimationFrame(function(){Z(qX)})},
header:function(){return _.J("div",{el:B},_.J(YBa,{touchstart:p,touchmove:l,touchend:q,title:G.headerTitle,subtitle:G.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:G.headerFn,hasHeaderOverride:G.hasHeaderFn,actionHeader:G.headerActionHeader,hasActionHeader:G.hasHeaderActionHeader}))},
footer:function(){return _.J("div",{el:t},_.J(E2c,{footerButtonType:G.footerButtonType,leadingLabel:G.footerLeadingLabel,trailingLabel:G.footerTrailingLabel,primaryButton:G.footerPrimaryButton,hasPrimaryButton:G.hasFooterPrimaryButton,secondaryButton:G.footerSecondaryButton,hasSecondaryButton:G.hasFooterSecondaryButton,footerOverride:G.footerFn,hasFooterOverride:G.hasFooterFn}))},
body:function(){return _.J(_.k,{cond:G.hasContentFn,then:function(){var qX;return _.J("div",{class:H3},(qX=G.contentFn)==null?void 0:qX.call(G))}})}}))},"Wj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var FtL=_.y(function(G){var H=_.tp().resolve(_.On);return _.J("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Hh(function(){return void H.closeSheet()})},_.J(_.k,{cond:function(){return!!G.header},
then:function(){return _.J("div",{class:"ytContextualSheetLayoutHeaderContainer"},G.header())}}),_.J(_.k,{cond:function(){return!!G.content},
then:function(){return _.J("div",{class:"ytContextualSheetLayoutContentContainer"},G.content())}}),_.J(_.k,{cond:function(){return!!G.footer},
then:function(){return _.J("div",{class:"ytContextualSheetLayoutFooterContainer"},G.footer())}}))},"Xj");
FtL.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var bDj=_.y(function(G){G=G.data;var H=_.IA("yt-sheet-view-model",function(Q){if(_.V("web_focus_first_element_sheet")||!_.V("sheet_focus_first_killswitch"))return Q.addEventListener("focus",function(){z2i(Q)}),function(){Q.removeEventListener("focus",function(){z2i(Q)})}}),Z={};
return _.J("yt-sheet-view-model",{"on:mousedown":_.Hh(function(Q){_.V("sheet_focus_first_killswitch")||Q.currentTarget!==Q.target&&Q.preventDefault()}),
"on:focus":_.Hh(function(){_.V("sheet_focus_first_killswitch")||z2i(H.value)}),
class:_.bb("ytSheetViewModelHost",(Z.ytSheetViewModelContextual=!0,Z.ytSheetViewModelDisableBackdropFilter=_.V("web_disable_backdrop_filter"),Z)),el:H,tabindex:-1},_.J(_.k,{cond:G,then:function(Q){return _.J(FtL,{header:function(){return _.J(_.SP,{data:function(){return Q().header}},{panelHeaderViewModel:xGh})},
content:function(){return _.J(_.SP,{data:function(){return Q().content}},{listViewModel:function(p){return _.J(_.fl4,{data:p.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:rCs,miniAppScoreChallengeViewModel:w08})},
footer:function(){return _.J(_.SP,{data:function(){return Q().footer}},{panelFooterViewModel:_.V5})}})}}))},"Yj");
bDj.idomCompat=!0;_.RX(bDj,"yt-sheet-view-model",{props:{data:_.b3}});var HRk=_.y(function(G){var H=function(){var Z;return(Z=G.data().enableDebuggingFeatures)!=null?Z:!1};
return _.J("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.J(_.Cl,{each:function(){var Z;return(Z=G.data().stickers)!=null?Z:[]}},function(Z){return _.J(GHm,{data:function(){return Z},
debugMode:H})}))},"Zj"),GHm=_.y(function(G){var H=_.oK(G,{debugMode:!1}).debugMode,Z=_.yy(function(){var B;
return(B=G.data().region)==null?void 0:B.w},0),Q=_.yy(function(){var B;
return(B=G.data().region)==null?void 0:B.h},0),p=_.yy(function(){var B;
return(B=G.data().region)==null?void 0:B.x},0),l=_.yy(function(){var B;
return(B=G.data().region)==null?void 0:B.y},0),q=_.Hh(function(){var B=G.data().onTap;
B&&_.zt(B)}),u={};
return _.J("div",{class:_.bb("ytStoriesStickerLayerViewModelSticker",(u.ytStoriesStickerLayerViewModelDebugMode=H,u)),style:_.pI({width:function(){return 100*Z()+"%"},
height:function(){return 100*Q()+"%"},
left:function(){return 100*p()+"%"},
top:function(){return 100*l()+"%"},
"flex-direction":function(){return jEm(G.data().flexDirection)},
"justify-content":function(){return P6s(G.data().justifyContent)},
"align-items":function(){return rgc(G.data().alignItems)}}),
"on:click":q},_.J(_.SP,{data:function(){return G.data().button||G.data().toggleButton}},{buttonViewModel:function(B){return _.J(_.kg,{data:B.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(B){return _.J(_.hf,{data:B.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"$j");var ZRo=_.y(function(G){var H=function(){return G.data()},Z={},Q=_.I(_.Ty(!1,void 0,"SegA3d")),p=Q.next().value,l=Q.next().value,q=_.yy(function(){return H().backgroundColor},0);
Q=_.yy(function(){return H().actionButtons},[]);
var u=_.yy(function(){return H().stickerLayer},{}),B=function(){var D,d;
return{animationRef:Z,animationConfig:{autoplay:!1,loop:!1,path:(d=(D=H().foregroundAnimation)==null?void 0:D.url)!=null?d:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){l(!0)},
complete:function(){G.navigateToNextItemOnLottieComplete()}}}},t=function(){var D,d,e,n,c,W,M,r;
return{animationConfig:{autoplay:(W=(D=H().backgroundAnimation)==null?void 0:(d=D.settings)==null?void 0:d.autoplay)!=null?W:!1,loop:(M=(e=H().backgroundAnimation)==null?void 0:(n=e.settings)==null?void 0:n.loop)!=null?M:!1,path:(r=(c=H().backgroundAnimation)==null?void 0:c.url)!=null?r:"",name:"stories_item_background_animation"}}};
_.yN(function(){if(G.isVisible()&&p()){var D;(D=Z.lottieEl)==null||D.play();G.animationRef()&&(G.animationRef().lottieEl=Z.lottieEl)}else{var d;(d=Z.lottieEl)==null||d.stop()}},"MxM2wb");
return _.J("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.pI({"background-color":function(){return _.c$(q())+";"}})},_.J("div",{class:"ytStoriesItemViewModelAssetContent"},_.J(_.k,{cond:function(){return!!H().backgroundAnimation},
then:function(){return _.J(_.cY,{data:t,animationName:function(){return t().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.J(_.k,{cond:function(){return!!H().backgroundImage},
then:function(){return _.J(_.ib,{data:function(){return H().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.J(_.k,{cond:function(){return!!H().foregroundAnimation},
then:function(){return _.J(_.cY,{data:B,animationName:function(){return B().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.J(_.k,{cond:function(){return!!H().foregroundImage},
then:function(){return _.J(_.ib,{data:function(){return H().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.J("div",{class:"ytStoriesItemViewModelTopShadow"}),_.J(_.SP,{data:function(){return u()}},{storiesStickerLayerViewModel:HRk})),_.J("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.pI({"background-color":function(){return _.c$(q())}})},_.J("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.J(_.Cl,{each:Q},function(D){return _.J(sW8,{data:function(){return D},
pauseAutoNavigation:G.pauseAutoNavigation})}))))},"bk"),QWi={style:"overlay",
type:"outline"},sW8=_.y(function(G){var H={};return _.J("div",{class:_.bb("ytStoriesItemViewModelActionButton",(H.ytStoriesItemViewModelStretchedActionButton=function(){return G.data().size==="STORIES_BUTTON_SIZE_STRETCH"},H)),
"on:click":_.Hh(G.pauseAutoNavigation)},_.J(_.SP,{data:function(){return G.data().button}},{buttonViewModel:function(Z){return _.J(_.kg,{data:Z.data,
buttonOverrides:QWi})}}))},"ck");var pps={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.RX(_.y(function(G){var H=function(){var e2;return(e2=G.data().startIndex)!=null?e2:0},Z=_.I(_.QF(H)),Q=Z.next().value,p=Z.next().value;
Z=_.I(_.Ty(!1,void 0,"qWlrrc"));var l=Z.next().value,q=Z.next().value,u=function(){var e2;return(e2=G.data().storyItems)!=null?e2:[]},B={},t=_.IA("yt-stories-viewer-view-model"),D=function(){return G.data().dismissButton},d=function(){var e2;
return _.Tt((e2=_.X(D(),_.HN))==null?void 0:e2.onTap)},e=_.IA("div"),n,c,W=!1,M=function(){var e2;
(e2=n)==null||e2.cancel();n=r(Q()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});n.onfinish=function(){var $R=_.X(u()[Q()],pRm),ie,W3;$R!=null&&$R.foregroundAnimation&&(($R==null?0:(ie=$R.foregroundAnimation)==null?0:ie.url)||($R==null?0:(W3=$R.foregroundAnimation)==null?0:W3.payload))||(Q()!==u().length-1?(p(Q()+1),M()):d()&&_.fX(d()))}},r=function(e2){return e.value.children[e2].children[0]},w=function(){for(var e2=0;e2<Q();e2++)r(e2).style.transform=
"scaleX(1)"},x=function(){W||(l()?q(!1):(Q()===u().length-1&&d()&&_.fX(d()),r(Q()).style.transform="scaleX(1)",Q()!==u().length-1&&(p(Q()+1),M())))},U=function(){W||(l()?q(!1):(r(Q()).style.transform="scaleX(0)",Q()!==0&&p(Q()-1),M()))},R=function(){q(!0)},L=function(){r(Q()).style.transform="scaleX(1)";
Q()!==u().length-1?(p(Q()+1),M()):d()&&_.fX(d())};
Z=function(){W=!1;c=setTimeout(function(){q(!0);W=!0},300)};
var H3=function(){clearTimeout(c);W&&l()&&q(!1)};
_.yN(function(){if(l()){var e2;(e2=n)==null||e2.pause();var $R;($R=B.lottieEl)==null||$R.pause()}else{var ie;(ie=n)==null||ie.play();var W3;(W3=B.lottieEl)==null||W3.play()}},"utQ8Hb");
_.yN(function(){w();Q()===H()&&M()},"UsBAlc");
var qX=function(e2){e2.key==="ArrowLeft"?U():e2.key==="ArrowRight"&&x()},B3=function(e2){if(e2.target===t.value){(e2=d())&&_.fX(e2);
clearTimeout(c);var $R;($R=n)==null||$R.cancel();window.removeEventListener("keydown",qX);window.removeEventListener("yt-popup-closed",B3)}},fW=function(e2){e2.target===t.value&&(window.addEventListener("keydown",qX),window.addEventListener("yt-popup-closed",B3))};
_.mR(function(){w();M();window.addEventListener("yt-popup-opened",fW)});
return _.J("yt-stories-viewer-view-model",{el:t,class:_.bb("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.J("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.J("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Hh(U),"on:mousedown":_.Hh(Z),"on:mouseup":_.Hh(H3),"on:mouseleave":_.Hh(H3)}),_.J("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Hh(x),"on:mousedown":_.Hh(Z),"on:mouseup":_.Hh(H3),"on:mouseleave":_.Hh(H3)})),
_.J("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.J(_.SP,{data:u},{storiesItemViewModel:function(e2,$R){var ie=e2.data;return _.J(_.k,{cond:function(){return Math.abs($R()-Q())<=1},
then:function(){var W3={};return _.J("div",{class:_.bb("ytStoriesViewerViewModelStoryItem",(W3.ytStoriesViewerViewModelActiveStoryItem=function(){return $R()===Q()},W3))},_.J(ZRo,{data:ie,
pauseAutoNavigation:R,navigateToNextItemOnLottieComplete:L,isVisible:function(){return $R()===Q()},
animationRef:B}))}})}})),_.J("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:e},_.J(_.Cl,{each:u},function(){return _.J("div",{class:"ytStoriesViewerViewModelProgressBar"},_.J("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.J("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.J(_.ib,{data:pps,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.J("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.J(_.SP,{data:D},{buttonViewModel:_.kg}))))},"fk"),"yt-stories-viewer-view-model",{props:{data:_.b3}});_.RX(_.y(function(G){var H=G.data;var Z=_.IA("yt-gen-ai-feedback-form-view-model"),Q=[];return _.J("yt-gen-ai-feedback-form-view-model",{el:Z,class:"ytGenAiFeedbackFormViewModelHost"},_.J(_.Fe,{text:function(){return H().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.J("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.J(_.SP,{data:function(){return H().feedbackChips}},{toggleButtonViewModel:function(p){var l=p.data;
return _.J(_.hf,{data:l,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(q){var u=l();u=_.X(u,_.ZD);u=_.X(u==null?void 0:u.defaultButtonViewModel,_.HN).trackingParams;q?Q.push(u):(q=Q.indexOf(u),q>-1&&Q.splice(q,1))}})}})),_.J(_.Fe,{text:function(){return H().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.J("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.J(_.SP,{data:function(){return H().submitButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){w4k(Z.value,Q,H().uniqueId)}})}}),_.J(_.SP,{data:function(){return H().moreFeedbackButton}},{buttonViewModel:function(p){return _.J(_.kg,{data:p.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"gk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.b3},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var P1=function(){return _.C.apply(this,arguments)||this};
_.T(P1,_.C);P1.prototype.created=function(){taj(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(qEo);var G=_.tp().resolve(_.Vga);G&&(G.container=this.ytPopupContainerBehavior);if(G=_.tp().resolve(_.On))G.container=this.ytPopupContainerBehavior;if(G=_.tp().resolve(_.aP)){var H=this.ytPopupContainerBehavior;G.containerWasInjected?_.Rp(Error("qj")):G.container=H}};
P1.prototype.ensurePopupBelowPlayer=function(G,H){var Z=_.tp().resolve(_.Jp(_.o0));if(!Z||!Z.isOnWatch()||!_.UO())return!1;Z=Z.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.SX().height>Z+this.getPopupHeight(G,H)?(G.style.top="auto",G.style.bottom="0px"):(G.style.top=Z+"px",G.style.bottom="auto");return!0};
P1.prototype.getPopupHeight=function(G,H){H&&(G.cachedPopupHeight=0);if(!G.cachedPopupHeight){H=0;var Z=G.clientHeight,Q=window.getComputedStyle(G);H+=parseInt(Q.marginTop,10);H+=parseInt(Q.marginBottom,10);G.cachedPopupHeight=Z+H}return G.cachedPopupHeight};
P1.prototype.getElement=function(G){return document.createElement(G)};
_.N([_.v(UDA.YtPopupContainerBehavior),_.A("design:type",Object)],P1.prototype,"ytPopupContainerBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],P1.prototype,"ytComponentBehavior",void 0);_.N([_.O({disableElementRegistration:!0,is:"ytd-popup-container"})],P1);
_.m(P1,"ytd-popup-container",function(){if(wJo!==void 0)return wJo;var G=document.createElement("template");_.f(G,"\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");G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);return wJo=G},{mode:1});var lbs;var g$s={};g$s.YtLogYpcFlowCommandsBehavior=[_.V6.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(G){_.X(G,cVk)&&(G=_.X(G,cVk))&&(G.serializedTransactionFlowLoggingParams?_.XRv(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&_.VV("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&_.VV("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=G.serializedYpcPauseFlowLoggingParams)&&
_.VV("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams?(G=G.serializedYpcRefundFlowLoggingParams)&&phm("YPC_EVENT_TYPE_START",G):G.serializedYpcDeactivateFlowLoggingParams?(G=G.serializedYpcDeactivateFlowLoggingParams)&&_.VV("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",G):G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(G=G.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.VV("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",G))},
handleLogYpcFlowDismiss_:function(G){_.X(G,XRs)&&(G=_.X(G,XRs),G.serializedTransactionFlowLoggingParams?_.cVf(G.serializedTransactionFlowLoggingParams):G.serializedYpcCancelFlowLoggingParams?(G=G.serializedYpcCancelFlowLoggingParams)&&_.VV("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",G):G.serializedYpcResumeFlowLoggingParams?(G=G.serializedYpcResumeFlowLoggingParams)&&_.VV("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",G):G.serializedYpcPauseFlowLoggingParams?(G=
G.serializedYpcPauseFlowLoggingParams)&&_.VV("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",G):G.serializedYpcRefundFlowLoggingParams&&(G=G.serializedYpcRefundFlowLoggingParams)&&phm("YPC_EVENT_TYPE_CANCEL",G))}}];var Ibm={};Ibm.YtCancelRecurrenceBehavior=[_.RT.YtComponentBehavior,_.F6a,{attached:function(){var G=this;bKD(this,function(H,Z){return G.ypcCancelRecurrenceHandler(H,Z)})},
ypcCancelRecurrenceHandler:function(G,H){var Z=this;if(!H||!H.ypcCancelRecurrenceEndpoint)return!1;if(!H.ypcCancelRecurrenceEndpoint.params)return _.FU(Error("Sl")),!0;_.W8(this.hostElement);var Q=_.Ph.instance,p=_.tp().resolve(_.Jp(_.J0));Q&&_.rb(Q,H)?_.wb(Q,H).then(function(l){Z.ypcCancelRecurrenceSuccess_(G,H,{data:l})},function(l){Z.ypcCancelRecurrenceFailure_(G,H,l)}).thenCatch(function(){_.FU(Error("Tl"))}):p?p.requestDataForServiceEndpoint(H).then(function(l){Z.ypcCancelRecurrenceSuccess_(G,
H,l)},function(l){Z.ypcCancelRecurrenceFailure_(G,H,l)}).thenCatch(function(){_.FU(Error("Tl"))}):_.FU(Error("Ul"));
return!0},
ypcCancelRecurrenceSuccess_:function(G,H,Z){_.zG(this.hostElement);Z.data||(Z={data:Z});Z.data&&Z.data.actions&&_.El(this.hostElement,Z.data.actions,this.hostElement);Z.data.messageRenderer?gVL(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(H=H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.VV("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",H);_.N5(G,"yt-service-request-completed",Z)},
ypcCancelRecurrenceFailure_:function(G,H,Z){_.zG(this.hostElement);gVL(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.N5(G,"yt-service-request-error",{error:Z,params:[G,H]})}}];var qt8=function(G,H){_.sj.call(this,H)};
_.T(qt8,K1c);var Sti={};Sti.YtCompleteTransactionBehavior=[_.RT.YtComponentBehavior,_.F6a,{attached:function(){var G=this;bKD(this,function(H,Z){return G.ypcCompleteTransactionHandler(H,Z)})},
completeTransaction:function(G,H){var Z=this;H={payments_payload:window.btoa(H.integratorData),buybucket_params:G.data.buybucketParams,offer_params:G.data.offerParams};var Q=_.tp().resolve(_.J0),p=G.data.completeTransactionEndpoint,l=this.get("ypcCompleteTransactionEndpoint.actions",p);l&&_.El(this.hostElement,l,this.hostElement);return(l=_.Ph.instance)&&_.rb(l,p)?_.wb(l,p,H).then(function(q){return!q||(q==null?0:q.error)?(q=Z.get("data.serializedTransactionFlowLoggingParams",G),_.DJ(new SF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
q))):{data:q}}).then(function(q){return Z.handleCompleteTransactionSuccess_(q,G)},function(){return Z.handleCompleteTransactionFailure_(G)}):Q.requestDataForServiceEndpoint(p,H).then(function(q){return Z.handleCompleteTransactionSuccess_(q,G)},function(){return Z.handleCompleteTransactionFailure_(G)})},
handleCompleteTransactionSuccess_:function(G,H){G.data||(G={data:G});if(G.data.messageRenderer)return _.DJ(new qt8(G.data.messageRenderer));if(G.data.trackingParams){var Z=_.$k(),Q=_.Va();Z&&Q&&_.je(Z,Q,_.BT(G.data.trackingParams))}H=this.get("data.serializedTransactionFlowLoggingParams",H);loh(H);return _.Yk(G)},
handleCompleteTransactionFailure_:function(G){G=this.get("data.serializedTransactionFlowLoggingParams",G);_.C3("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G);return _.DJ(new SF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G))},
ypcCompleteTransactionHandler:function(G,H){var Z=this;if(!H.ypcCompleteTransactionEndpoint)return!1;if(!H.ypcCompleteTransactionEndpoint.transactionParams)return _.FU(Error("Vl")),!0;H.ypcCompleteTransactionEndpoint&&H.ypcCompleteTransactionEndpoint.gtmData&&_.rW(H.ypcCompleteTransactionEndpoint.gtmData);var Q=_.tp().resolve(_.Jp(_.J0));if(Q){_.W8(this.hostElement);var p=_.Ph.instance;p&&_.rb(p,H)?_.wb(p,H).then(function(l){return!l||(l==null?0:l.error)?(l=Z.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
H),_.DJ(new SF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",l))):{data:l}}).then(function(l){_.N5(G,"yt-service-request-completed");
Z.ypcCompleteTransactionSuccess_(H,l)},function(){return Z.ypcCompleteTransactionFailure_(H)}):Q.requestDataForServiceEndpoint(H).then(function(l){_.N5(G,"yt-service-request-completed");
Z.ypcCompleteTransactionSuccess_(H,l)},function(){return Z.ypcCompleteTransactionFailure_(H)})}return!0},
ypcCompleteTransactionSuccess_:function(G,H){_.zG(this.hostElement);H.data||(H={data:H});_.AZ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);H.data.messageRenderer||H.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(G):(_.rW('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",G));H.data.actions&&(G=vjq(H.data.actions),H=Wnq(H.data.actions),G.length&&_.L9(this.hostElement,
G),H.length&&_.El(this.hostElement,H,this.hostElement))},
ypcCompleteTransactionFailure_:function(G){_.zG(this.hostElement);_.AZ(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",G,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(G,H,Z){if(H=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",H))H={serializedTransactionFlowLoggingParams:H},Z&&(H.errorType=Z),_.yR(G,H),_.op()}}];var uX8={};uX8.YtEndpointHandlerWithYpcBehavior=[_.F6a,_.V6.YtActionHandlerBehavior,[{openWalletDialog:function(G,H,Z,Q,p,l,q){var u=this,B=_.hQ();H=H.replace(/-/g,"+").replace(/_/g,"/");var t=_.lf().get("hl");_.Ohf(_.yj(_.iS),H,B.resolve,p,function(D){l&&l();B.reject(D)},t,function(D){return u.onServerBackendAnalyticEvent_(G,Z,D)},this.onDialogClose_.bind(this),Q,q);
return B.promise},
openFixFlowDialog:function(G,H,Z,Q){G=G.replace(/-/g,"+").replace(/_/g,"/");_.yj(_.iS).openFixFlowDialog(G,H,Z,Q)},
onDialogClose_:function(){_.AZ(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(G,H,Z){_.N5(G,"yt-commerce-action-init-done");H&&_.L9(this.hostElement,[H,{backend_analytics:Z}])}}],
_.e8.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(G,H){G=this.get("data.nativeFlowEndpoint",H);H=this.get("data.fallbackEndpoint",H);G?_.L9(this.hostElement,[G]):H&&_.N5(this.hostElement,"yt-navigate",{endpoint:H})}}],
Ibm.YtCancelRecurrenceBehavior,Sti.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 G=this;bKD(this,function(H,Z,Q){return G.handleYPCEndpoint(H,Z,Q)});
this.ypcRegisterActionMapJobId_=_.wM(_.Ui,function(){G.registerActionMap(G.buyFlowActionMap_)})},
detached:function(){var G=this;_.Ui.cancelJob(this.ypcRegisterActionMapJobId_);_.wM(_.Ui,function(){G.unregisterActionMap(G.buyFlowActionMap_)})},
handleYPCEndpoint:function(G,H,Z){var Q=H.ypcGetCartEndpoint;if(Q){_.VY("commerce_transaction");var p=Q.gtmId;p&&_.P9(p);(Q=Q.gtmData)&&_.rW(Q)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",H)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(G,H),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",H)!=null?(this.handleYPCFixInstrumentEndpoint_(G,H),!0):H.ypcPauseSubscriptionCommand?(U8D(this.hostElement,G,H,Z),
!0):H.ypcResumeSubscriptionCommand?(Agj(this.hostElement,G,H),!0):H.getPaymentInstrumentsParamsCommand?(ygq(this.hostElement,G,H),!0):H.ypcHandleTransactionEndpoint?(OYh(this.hostElement,G,H,Z),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(G,H){var Z=this;_.$K("ttcr",void 0,"commerce_transaction");H=H.ypcGetCartEndpoint;var Q=H.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,p=Q.encryptedPurchaseParams,l=Q.serializedTransactionFlowLoggingParams,q=Q.serializedPaymentsClientParams,u=this.createGetCartResponseFromParams_(Q,H.offerParams,l);this.changeButtonState(G,!0);_.fK(this.openWalletDialog(G,p,Q.ypcLogWalletAnalyticDataEndpoint,l,function(){Z.changeButtonState(G,!1)},function(){Z.changeButtonState(G,
!1)},q).then(function(B){return Z.handleBuyFlowCompleteCallback_(G,u,B)},function(){return Z.handleOnLoadError(u)}).then(function(B){return void Z.handlePostPurchaseSuccess_(G,u,B)},function(B){return void Z.handlePostPurchaseError_(B)}),function(){Z.changeButtonState(G,!1);
G instanceof Element&&_.N5(G,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(G,H,Z){var Q=G.completeTransactionEndpoint,p=G.handleTransactionEndpoint;H={data:{offerParams:window.btoa(H),serializedTransactionFlowLoggingParams:Z}};p?H.data.handleTransactionEndpoint=p:H.data.completeTransactionEndpoint=Q;G.onCartDismissCommand&&(H.data.onCartDismissCommand=G.onCartDismissCommand);return H},
onGetCartServiceRequestCompleted_:function(G,H){var Z=this,Q=G.target;if(H&&H.data&&H.data.messageRenderer)_.zG(this.hostElement),this.handleMessageRenderer_(H.data.messageRenderer),this.changeButtonState(Q,!1);else{var p=this.get("data.encryptedPurchaseParams",H),l=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",H),q=this.get("data.ypcLogWalletAnalyticDataEndpoint",H),u=this.get("data.serializedPaymentsClientParams",H),B=this.getLoggingParams_(H);if(B||p||l)G.stopPropagation(),_.$K("ttcr",
void 0,"commerce_transaction"),p||_.zG(this.hostElement),this.changeButtonState(Q,!1),l?_.AZ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.xI("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:l}}},this]):p&&(this.changeButtonState(Q,!0),G=null,G=this.openWalletDialog(Q,p,q,B,function(){_.zG(Z.hostElement);Z.changeButtonState(Q,!1)},function(){_.zG(Z.hostElement);
Z.changeButtonState(Q,!1)},u),_.fK(G.then(function(t){return Z.handleBuyFlowCompleteCallback_(Q,H,t)},function(){return Z.handleOnLoadError(H)}).then(function(t){return Z.handlePostPurchaseSuccess_(Q,H,t)},function(t){return Z.handlePostPurchaseError_(t)}),function(){Z.changeButtonState(Q,!1);
_.N5(Q,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(G,H){H&&H.endpoint&&H.endpoint.ypcGetCartEndpoint&&!H.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)&&_.El(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)],G.target),_.W8(this.hostElement),this.changeButtonState(G.target,!0))},
onServiceRequestError_:function(G,H){if(H&&H.params&&H.params.length){H=_.I(H.params);for(var Z=H.next();!Z.done;Z=H.next())if((Z=Z.value)&&Z.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",Z.ypcGetCartEndpoint)&&_.El(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",Z.ypcGetCartEndpoint)],G.target);_.zG(this.hostElement);this.changeButtonState(G.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(G,H,Z){var Q=Z.integratorData;return Q==null||Q===""||Z.error!=null?(Q=this.getLoggingParams_(H),String(Z.error)==="-1"?(H.data.onCartDismissCommand&&_.El(this.hostElement,[H.data.onCartDismissCommand],G),_.DJ(new SF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Q,!0))):_.DJ(new SF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Q))):H.data.handleTransactionEndpoint?aHc(this.hostElement,H.data.handleTransactionEndpoint,{payments_payload:Q,funds_guarantee_callback_client_data:Z.integratorClientCallbackData}):
this.completeTransaction(H,Z)},
handlePostPurchaseSuccess_:function(G,H,Z){H=Z.data;var Q=!1,p,l;if(H&&((p=H.command)==null?0:(l=p.commandExecutorCommand)==null?0:l.commands)){var q,u;p=(q=H.command)==null?void 0:(u=q.commandExecutorCommand)==null?void 0:u.commands;for(q=0;q<p.length;q++)if(_.X(p[q],_.F9p)){Q=!0;break}}Q||(H&&H.gtmDatas&&H.gtmDatas.length?_.rW(H.gtmDatas[0]):_.rW('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));Z.data&&Z.data.actions&&(H=vjq(Z.data.actions),Z=Wnq(Z.data.actions),H.length&&
_.L9(this.hostElement,H),Z.length&&_.El(this.hostElement,Z,G))},
handlePostPurchaseError_:function(G){G&&G.payload&&G.payload.isUserDismiss||_.me(Error("Xl"))},
handleOnLoadError:function(G){G=this.getLoggingParams_(G);return _.DJ(new SF("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",G))},
getLoggingParams_:function(G){return this.get("data.serializedTransactionFlowLoggingParams",G)},
handleMessageRenderer_:function(G){var H=_.Rz(G,"renderer"),Z=_.xI("openPopupConfig");H==="confirmDialogRenderer"&&Z&&_.AZ(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:Z.popupTypeMap[H],popup:G}},this])},
handleYPCFixInstrumentEndpoint_:function(G,H){var Z=this,Q=H.ypcFixInstrumentEndpoint;H=Q.encryptedFixInstrumentParameters;this.logFixFopEvent_(Q,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(G,!0);this.openFixFlowDialog(H,function(p,l){Z.onFixFlowCompleteCallback_(Q,p,l)},function(){return Z.changeButtonState(G,!1)},function(){Z.changeButtonState(G,!1);
Z.logFixFopEvent_(Q,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(G,H,Z){var Q=_.GF("payments.business.integration.scenario.FixInstrument");if(H==Q.IntegratorCallbackType.ON_COMPLETE){H="FIX_FOP_EVENT_TYPE_CANCEL";var p=null;Z.error!=null?Z.error!=Q.OnCompleteCallbackError.USER_CANCELLED&&(_.El(this.hostElement,[G.errorAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_FAILURE",p="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.El(this.hostElement,[G.successAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_SUCCESS");_.El(this.hostElement,[G.onFinishAction],
this.hostElement);this.logFixFopEvent_(G,H,p)}},
logFixFopEvent_:function(G,H,Z){(G=G.serializedFixFopLoggingParams)?(H={eventType:H,serializedFixFopLoggingParams:G},Z!=null&&(H.errorType=Z),_.yR("fixFopFlow",H),_.op()):_.me(Error("Yl"))},
changeButtonState:function(G,H){_.V("enable_ypc_spinners")&&G&&(G.is==="yt-button-renderer"||G.is==="ytd-button-renderer")&&(G.disabled=H)}}];var BAc=function(G){this.JSC$32751_clientRoot=G;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Ly6,"yt-feedback-dialog-requested":x8h,"yt-signal-action-help":EHL,"yt-signal-action-send-feedback":Yya,"yt-send-feedback-action":bYk,"yt-user-feedback-endpoint":GLm};_.p1(_.sS.getInstance(),this.feedbackCollectorActionMap,this.JSC$32751_clientRoot)},Jd8;var tIm=function(G){this.JSC$32756_clientRoot=G;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":HOk.bind(null,this.JSC$32756_clientRoot),"yt-signal-action-delete-all-downloads":ZOt,"yt-signal-action-delete-download":Qxi,"yt-signal-action-delete-playlist-download":l_D,"yt-signal-action-install-pwa":BPs,"yt-signal-action-refresh-downloads":SKj,"yt-offline-video-endpoint":t4i,"yt-offline-playlist-endpoint":DEo,"yt-update-local-app-setting-command":ePa,"yt-offline-orchestration-action-command":V4a,
"yt-signal-action-undo-delete-download":I_q,"yt-local-watch-history-command":cHh};_.p1(_.sS.getInstance(),this.downloadManagerActionMap,this.JSC$32756_clientRoot);_.P$.instance=new _.P$},kHk;var r_=function(){var G=_.C.apply(this,arguments)||this;G.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_"};G.remoteApi_=null;return G};
_.T(r_,_.C);_.g=r_.prototype;
_.g.ready=function(){_.V("polymer_enable_mdx")&&(pMo({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.V("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.V("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.V("enable_cast_short_lived_lounge_token")}),_.dM("yt-remote-connection-change",this.handleConnectionChange_,this),_.dM("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=JBm())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.g.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.g.handleConnectionChange_=function(G){(this.mdxConnected=G)?(G=IGq(),!G&&Nph()&&AlD()&&(G={key:"cast-selector-receiver",name:AlD()}),G=G.name):G=null;this.receiverName=G;_.S_(this.remoteApi_);(this.remoteApi_=JBm())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.g.handleReceiverAvailabilityChange_=function(){var G=gjt();Nph()&&_.dT("yt-remote-cast-available")&&G.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=G.length>0};
_.g.handleRemoteQueueChange_=function(){var G=this.currentVideoId_,H=this.currentListId_,Z=w9(this.remoteApi_);this.currentVideoId_=Z.videoId;this.currentListId_=Z.listId;this.currentVideoId_&&_.AZ(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.V("polymer_enable_mdx_queue")?this.currentListId_:null,G,H])};
_.g.handleAddToQueueAction_=function(G){G=_.X(G,lE8);this.remoteApi_&&(G.videoId?this.remoteApi_.addVideo(G.videoId):G.playlistId&&this.remoteApi_.addPlaylist(G.playlistId))};
_.g.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.g.handleInsertInQueueAction_=function(G){G=_.X(G,gnD);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20129_insertVideo(G.videoId)};
_.g.handleRemoveFromQueueAction_=function(G){G=_.X(G,IEi);this.remoteApi_&&G.videoId&&this.remoteApi_.JSC$20129_removeVideo(G.videoId)};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],r_.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h(),_.A("design:type",Object)],r_.prototype,"appId",void 0);_.N([_.h(),_.A("design:type",Boolean)],r_.prototype,"mdxConnected",void 0);_.N([_.h(),_.A("design:type",Boolean)],r_.prototype,"receiverAvailable",void 0);_.N([_.h(),_.A("design:type",Object)],r_.prototype,"receiverName",void 0);_.N([_.h(),_.A("design:type",Object)],r_.prototype,"currentVideoId_",void 0);
_.N([_.h(),_.A("design:type",Object)],r_.prototype,"currentListId_",void 0);_.N([_.fH({is:"yt-mdx-manager",disableElementRegistration:!0})],r_);_.m(r_,"yt-mdx-manager",void 0,{mode:2});var DMk;var dMm;var w_=function(){var G=_.C.apply(this,arguments)||this;G.APP_IDS={ytr:3,ytm:5};G.JSC$21360_timeoutId_=0;G.actionMap={"yt-open-create-family-dialog":"open"};return G};
_.T(w_,_.C);_.g=w_.prototype;_.g.created=function(){taj(2200)};
_.g.detached=function(){this.observer_&&this.observer_.disconnect()};
_.g.open=function(G,H){var Z=this,Q=G.serializedYpcFamilyCreateLoggingParams;this.JSC$21360_timeoutId_=setTimeout(this.abort_.bind(this,G.postFlowErrorEndpoint,Q),3E4);H&&(this.onReadyCallback_=H);var p=_.F9(this.hostElement).querySelector("#unicorn-iframe");Q&&Q&&Q0s("ypcFamilyCreateFlowStarted",Q);_.QHb("family_creation",function(){var l=_.GF("gapi.family_creation.render");_.GF("gapi.config.update")("iframes/family_creation/url",Z.getFamilyCreationUrlWithUnicornParams_());var q=3;G.appId&&G.appId in
Z.APP_IDS&&(q=Z.APP_IDS[G.appId]);q={authUser:_.xI("SESSION_INDEX")||0,clientId:q,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.xI("HL"),initialflow:[4,5,6,7],m:Z.isMobile?1:0,onFlowComplete:Z.onUnicornFlowComplete_.bind(Z,G.postFlowSuccessEndpoint,Q),onError:Z.onUnicornFlowError_.bind(Z,G.postFlowErrorEndpoint,Q),onReady:Z.onUnicornFlowReady_.bind(Z,G.referencePcidParams)};l(p,q)})};
_.g.close=function(){_.F9(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.g.onUnicornFlowComplete_=function(G,H){this.close();H&&H&&Q0s("ypcFamilyCreateFlowSucceeded",H);_.N5(this.hostElement,"yt-navigate",{endpoint:G})};
_.g.onUnicornFlowError_=function(G,H){this.close();H&&Q0s("ypcFamilyCreateFlowCancelled",H);_.N5(this.hostElement,"yt-navigate",{endpoint:G})};
_.g.onUnicornFlowReady_=function(G){var H=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();G&&_.GF("gapi.family_creation.setConfig")(0,G);this.observer_=new MutationObserver(function(){_.F9(H.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.F9(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.F9(this.hostElement).querySelector("#dialog").open()};
_.g.getFamilyCreationUrlWithUnicornParams_=function(){return _.xI("YTR_FAMILY_CREATION_URL")};
_.g.getCurrentUrl_=function(){return document.location.href};
_.g.abort_=function(G,H){this.clearTimeout_();this.onUnicornFlowError_(G,H)};
_.g.clearTimeout_=function(){clearTimeout(this.JSC$21360_timeoutId_)};
_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],w_.prototype,"ytActionHandlerBehavior",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],w_.prototype,"isMobile",void 0);_.N([_.h(),_.A("design:type",Object)],w_.prototype,"onReadyCallback_",void 0);_.N([_.h(),_.A("design:type",Object)],w_.prototype,"observer_",void 0);_.N([_.fH({is:"yt-create-family-dialog",disableElementRegistration:!0})],w_);
_.m(w_,"yt-create-family-dialog",function(){if(dMm===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);var H=G.content,Z=H.insertBefore;DMk===void 0&&(DMk=document.createElement("template"));var Q=DMk;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);dMm=G}G=dMm;return G},{mode:2});var eqt;var n$i;var hY=function(){var G=_.C.apply(this,arguments)||this;G.STEP=1;G.BLOCK_ON=80;G.MIN_PROGESS=0;G.MAX_PROGESS=100;return G};
_.T(hY,_.C);_.g=hY.prototype;_.g.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.g.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));_.tp().addProvider({provide:AJ6,useValue:this})};
_.g.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.g.finish=function(){var G=this;this.progress=this.MAX_PROGESS;TPc(function(){G.progress==G.MAX_PROGESS&&(G.hostElement.hidden=!0)})};
_.g.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.u4.Object.defineProperties(hY.prototype,{progress:{configurable:!0,enumerable:!0,set:function(G){this.progress_=G;var H="scaleX("+G/this.MAX_PROGESS+")",Z=_.F9(this.hostElement).querySelector("#progress").style;Z.transform=H;Z.webkitTransform=H;this.hostElement.setAttribute("aria-valuenow",String(G))},
get:function(){return this.progress_}}});
_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],hY.prototype,"ytComponentBehavior",void 0);_.N([_.fH({is:"yt-page-navigation-progress",disableElementRegistration:!0})],hY);
_.m(hY,"yt-page-navigation-progress",function(){if(n$i===void 0){var G=document.createElement("template");_.f(G,'\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');G.content.insertBefore(_.E().content.cloneNode(!0),
G.content.firstChild);var H=G.content,Z=H.insertBefore;eqt===void 0&&(eqt=document.createElement("template"));var Q=eqt;Z.call(H,Q.content.cloneNode(!0),G.content.firstChild);n$i=G}G=n$i;return G},{mode:2});var VIh={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"},$M8={"font-size":"12px","font-style":"italic"},XpL={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.zPc=function(){return _.S(function(G){_.K0(G)})};var cdo=_.y(function(G){var H=function(){return G.data().subtext},Z={};
return _.J("snackbar-view-model",{class:_.bb("snackbarViewModelHost",G.className)},_.J("div",{class:_.bb("snackbarViewModelEngagementBarWrapper",G.className)},_.J(_.k,{cond:function(){return G.data().image},
then:function(Q){return _.J(_.ib,{data:Q,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.J(_.k,{cond:function(){return G.data().imageContent},
then:function(){return _.J("div",{class:"snackbarViewModelAvatarContainer"},_.J(_.SP,{data:function(){return G.data().imageContent}},{decoratedAvatarViewModel:_.U5}))}}),_.J("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.J("div",{class:_.bb((Z.snackbarViewModelTitle=!0,Z.snackbarViewModelTitleWithSubtext=H,Z))},_.J(_.Fe,{text:function(){return G.data().text}})),_.J(_.k,{cond:H,
then:function(){return _.J("div",{class:"snackbarViewModelSubtext"},_.J(_.Fe,{text:function(){return H()}}))}})),_.J(_.k,{cond:function(){return G.data().buttons},
then:function(){return _.J("div",{class:"snackbarViewModelButtonClassWrapper"},_.J(_.SP,{data:function(){return G.data().buttons}},{buttonViewModel:function(Q){return _.J(_.kg,{data:Q.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:G.target})}}))}})))},"hk");_.RX(_.y(function(){function G(w,x,U){c(w);M(U);e("in");D(!0);H(w,x);q=setTimeout(function(){Z()},x)}
function H(w,x){var U,R=(U=w.text)==null?void 0:U.content;w=_.nG(w.rendererContext);R&&(x={label:R,command:w,durationMs:x},_.tp().resolve(_.pD).enqueue(x))}
function Z(w){e("out");w&&clearTimeout(q)}
function Q(){Z(!0)}
function p(w){if(w){var x=w.snackbarViewModel,U=w.durationMs,R=w.target;U||(U=3E3);x&&(w=_.tp().resolve(_.Jp(_.Gg)))&&w.enqueue({isOpened:t,open:function(){G(x,U,R)},
close:Z},0)}}
var l=_.qK("snackbar-container"),q=void 0,u=_.I(_.Ty(!1,void 0,"mDc5N")),B=u.next().value;u=u.next().value;var t=B,D=u;B=_.I(_.Ty("out",void 0,"FpOs5e"));var d=B.next().value,e=B.next().value;B=_.I(_.Ty(void 0,void 0,"jIDRob"));var n=B.next().value,c=B.next().value;B=_.I(_.Ty(void 0,void 0,"kOA3Mb"));var W=B.next().value,M=B.next().value,r=_.Hh(function(){if(d()==="out"){D(!1);c(void 0);M(void 0);var w=_.tp().resolve(_.Jp(_.Gg));w&&zSA(w,0)}});
_.mR(function(){var w=_.tp().resolve(_.Jp(_.eOk));w&&(w.showSnackbarFn=p,w.closeSnackbarFn=Q)});
return _.J("snackbar-container",{class:"ytSnackbarContainerHost",el:l},_.J(_.k,{cond:function(){return t()&&!!n()},
then:function(){var w={};return _.J("div",{class:_.bb("ytSnackbarContainerSnackbarContainer",(w.ytSnackbarContainerMobile=!1,w.ytSnackbarContainerPivotBar=function(){var x;return!((x=_.tp().resolve(_.Jp(_.nrj)))==null||!x())},w.ytSnackbarContainerOpened=function(){return t()&&d()==="in"},w.ytSnackbarContainerClosed=function(){return t()&&d()==="out"},w)),
"on:animationend":r},_.J(cdo,{data:function(){return n()},
target:function(){return W()}}))}}))},"ik"),"snackbar-container");_.RX(_.xpR,"yt-tooltip");var TAt=_.ZbL.ephemeralActionSelector;_.RX(_.y(function(){var G=_.SQ(TAt);return _.J("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var H;return(H=G())==null?void 0:H.announcement})},"jk"),"yt-ephemeral-actions");var AHs=new Map;var OHq=function(G,H){var Z=this;this.handleError=G;this.logEventInternal=H;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){Z.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
OHq.prototype.logError=function(G){this.handleError(G)};
OHq.prototype.logEvent=function(G,H){switch(G){case "IDB_DATA_CORRUPTED":_.V("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",H);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",H);break;case "IS_SUPPORTED_COMPLETED":_.V("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",H);break;case "QUOTA_EXCEEDED":fbq(this,H);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",H);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":G=Object.assign({},H,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",G)}};
var fbq=function(G,H){_.gD.getInstance().estimate().then(function(Z){Z=Object.assign({},H,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:LWA(Z==null?void 0:Z.usage),deviceStorageQuotaMbytes:LWA(Z==null?void 0:Z.quota)});G.logEventInternal("idbQuotaExceeded",Z)})};var v$L=_.y(function(G){var H=_.IA("yt-draggable"),Z=G.onDrag,Q=G.onDragStart,p=G.onDragEnd,l=_.oK(G,{allowClicks:!1,dragThreshold:5}),q=l.dragThreshold,u=l.allowClicks;G=l.children;l=l.className;var B=void 0,t=void 0,D=new _.UA(0,0),d=!1;_.mR(function(){B=new _.hq(H.value);t=new _.tc(n);e(B,t);if(u()){_.K_w(B,q());var W;(W=H.value)==null||W.addEventListener("click",c,{capture:!0})}_.oM(function(){var M;(M=B)==null||M.dispose();if(u()){var r;(r=H.value)==null||r.removeEventListener("click",c,{capture:!0})}})});
var e=function(W,M){_.tt(W,"earlycancel",function(){u()&&(d=!1)});
_.tt(W,"start",function(r){Q==null||Q(r);r.defaultPrevented||u()&&(d=!0)});
_.tt(W,"beforedrag",function(r){B&&t&&(r.preventDefault(),D=new _.UA(r.clientX-B.startX,r.clientY-B.startY),t.start())});
_.tt(W,"end",function(){M.stop();p==null||p();D=new _.UA(0,0)})},n=function(){D&&Z(D)},c=function(W){d&&(d=!1,W.stopPropagation(),W.preventDefault())};
return _.J("yt-draggable",{el:H,class:_.bb("ytDraggableComponentHost",l)},G)},"kk");var Wqo=_.y(function(G){var H=_.I(_.Ty(0,void 0,"Qf0tbc")),Z=H.next().value,Q=H.next().value;H=function(p){var l={},q={};return _.J(v$L,{className:_.bb("ytdMiniplayerComponentResizer",(l.ytdMiniplayerComponentResizerDisabled=function(){return p===G.horizontalAlignment()||p===G.verticalAlignment()},l.ytdMiniplayerComponentResizerNorth=p==="north",l.ytdMiniplayerComponentResizerEast=p==="east",l.ytdMiniplayerComponentResizerSouth=p==="south",l.ytdMiniplayerComponentResizerWest=p==="west",l)),
onDragStart:function(){Q(G.currentMiniplayerSize());if(G.onResizeStart)G.onResizeStart()},
onDrag:function(u){p!=="north"&&p!=="west"||u.scale(-1);var B;u=(B=p==="north"||p==="south")?u.y:u.x;var t=G.currentAspectRatio();B&&t>=1?u*=t:!B&&t<1&&(u/=t);B=u;G.onResize(Z()+B)}},_.J("div",{class:_.bb("ytdMiniplayerComponentResizerCorner",(q.ytdMiniplayerComponentResizerNorthCorner=p==="north",q.ytdMiniplayerComponentResizerEastCorner=p==="east",q.ytdMiniplayerComponentResizerSouthCorner=p==="south",q.ytdMiniplayerComponentResizerWestCorner=p==="west",q))}))};
return _.J("div",{class:"ytdMiniplayerComponentResizers"},H("north"),H("east"),H("south"),H("west"))},"lk");var zqq=16/9;_.RX(_.y(function(){var G=_.IA("ytd-miniplayer"),H=_.I(_.Ty(new _.M4(NaN,NaN),void 0,"NHaFyc")),Z=H.next().value,Q=H.next().value;H=_.I(_.Ty(!1,void 0,"a0rwG"));var p=H.next().value,l=H.next().value;H=_.I(_.Ty(!1,void 0,"f1jSeb"));var q=H.next().value,u=H.next().value;H=_.I(_.Ty(!1,void 0,"JojXKc"));var B=H.next().value,t=H.next().value;H=_.I(_.Ty(!1,void 0,"FjS8Db"));var D=H.next().value,d=H.next().value;H=_.I(_.Ty(!1,void 0,"z5WG9e"));var e=H.next().value,n=H.next().value;H=_.I(_.Ty(!1,void 0,"eUzZd"));
var c=H.next().value,W=H.next().value;H=_.I(_.Ty(zqq,void 0,"XsBIy"));var M=H.next().value,r=H.next().value,w=_.I(_.Ty(!1,void 0,"FJSvse"));H=w.next().value;var x=w.next().value;w=_.I(_.Ty(!1,void 0,"VDUFL"));var U=w.next().value,R=w.next().value;w=_.I(_.Ty(void 0,void 0,"nFeh4b"));var L=w.next().value,H3=w.next().value;w=_.I(_.Ty(DP()?"west":"east",void 0,"T7co7c"));var qX=w.next().value,B3=w.next().value;w=_.I(_.Ty("south",void 0,"QDUsLb"));var fW=w.next().value,e2=w.next().value;w=_.I(_.Ty(400,
void 0,"F7Vdze"));var $R=w.next().value,ie=w.next().value,W3=_.tp().resolve(_.WM).miniplayerPropSignalMap[0],DT=W3.data,UR=W3.externalPlaylistData;w=W3.toastData;var zx=W3.playabilityStatus,be=W3.isReadyToResume,J_=W3.isDisabled,rG=W3.watchWhile,Kw=W3.playerVe,cD=W3.expandVe,ec=W3.closeVe,gf=W3.readyToResumeVe,sR=W3.readyToResumeCloseVe,ep=W3.repositionVe,Qh=W3.resizeVe;W3=_.I(_.QF(be));var $w=W3.next().value,Zt=W3.next().value,rJ=_.SQ(_.KG.persistentPanelVisibleSelector),N7=!1,t_=!1,Bd;_.mR(function(){Q(_.SX());
G.value.addEventListener("animationend",function(Yw){Yw.target===G.value&&(n(!1),W(!1))});
HK6(G.value)});
_.gN("yt-window-resized",function(Yw){Yw&&Q(Yw)});
var HD=function(){Bd&&r(Bd.getVideoAspectRatio())},xR=function(){if(Bd){var Yw=Bd.getPlayerState()===1;
$w()&&Yw&&Zt(!1)}},V4=function(){var Yw=cD();
if(Yw){var vD=_.$k(3);vD&&_.Co(vD,Yw)}},nm=function(){var Yw=ec(),vD=sR();
Yw&&_.Co(_.$k(3),Yw);be()&&vD&&_.Co(_.$k(3),vD)};
_.gN("yt-activate-miniplayer",function(Yw){var vD;return _.S(function(gk){if(gk.nextAddress==1)return p()?gk.return():gk.yield((vD=_.tp().resolve(_.WM).getPlayerElement())==null?void 0:vD.getPlayerPromise(),2);Bd=gk.yieldResult;if(!Bd)return gk.return();!U()&&_.V("kevlar_watch_while_v2")&&(e2(Yw&&!_.V("kevlar_watch_while_bottom_align")?"north":"south"),B3(DP()?"west":"east"));var w3=Bd;w3.addEventListener("onVideoDataChange",HD);w3.addEventListener("onStateChange",xR);w3.addEventListener("onExpandMiniplayer",
V4);w3.addEventListener("onCloseMiniplayer",nm);r(Bd.getVideoAspectRatio());l(!0);Gwc()||n(!0);_.K0(gk)})});
_.gN("yt-deactivate-miniplayer",function(Yw,vD){return _.S(function(gk){if(!p())return gk.return();l(!1);Zt(!1);W(Yw);d(!1);u(!1);if(Bd){var w3=Bd;w3.removeEventListener("onVideoDataChange",HD);w3.removeEventListener("onStateChange",xR);w3.removeEventListener("onExpandMiniplayer",V4);w3.removeEventListener("onCloseMiniplayer",nm)}Gwc()||vD?vD&&n(!1):n(!0);_.K0(gk)})});
var E_=function(){return!(rG()&&_.V("kevlar_watch_while_modern"))},Ma=function(){var Yw;
return!((Yw=UR())==null||!Yw.contents)},yk=function(){var Yw=$R();
var vD=Z();vD=Math.min(Math.min(vD.width,vD.height)-32,720);var gk=M(),w3=E_(),hR=Ma()&&q(),EA=Math.min(Yw,vD);Yw=new _.M4(192,w3?116:192);gk=new _.M4(hR?zqq:gk,1);EA=new _.M4(EA,w3?EA-76:EA);EA=gk.aspectRatio()>EA.aspectRatio()?EA.width/gk.width:EA.height/gk.height;gk=gk.scale(EA);Yw.width<=gk.width&&Yw.height<=gk.height||(Yw=gk.aspectRatio()<=Yw.aspectRatio()?Yw.width/gk.width:Yw.height/gk.height,gk.scale(Yw),gk.width=Math.min(gk.width,vD),gk.height=Math.min(gk.height,vD));return new _.M4(gk.width,
_.cM(192,gk.height+pQh(w3,hR),720))},YJ=function(){var Yw=yk(),vD=E_(),gk=Ma()&&q();
return new _.M4(Yw.width,Yw.height-pQh(vD,gk))},IN=function(){var Yw=function(vD){vD.target===G.value&&D()&&(d(!1),G.value.removeEventListener("transitionend",Yw))};
Gwc()||(G.value.addEventListener("transitionend",Yw),d(!0));u(!q())};
_.yN(function(){var Yw=Kw(),vD=_.$k(3),gk=_.Va(3);if(vD&&gk&&Yw){_.je(vD,gk,Yw);gk=ep();var w3=Qh(),hR=cD(),EA=ec(),Nj=sR();hR&&EA&&Nj&&(_.PA(vD,Yw,[hR,EA,Nj]),_.w8(vD,[hR,EA]));gk&&w3&&_.PA(vD,Yw,[gk,w3])}},"UBpUDd");
_.yN(function(){var Yw=gf();if(Yw){var vD=_.$k(0),gk=_.Va(0);vD&&gk&&(_.je(vD,gk,Yw),_.w8(vD,[Yw]))}},"fQpBzb");
W3={};return _.J("ytd-miniplayer",{el:G,class:_.bb("ytdMiniplayerComponentHost",(W3.ytdMiniplayerComponentVisible=function(){return(p()||e())&&!(rG()&&_.V("kevlar_watch_while_counterfactual"))},W3.ytdMiniplayerComponentAnimatingSnap=B,W3.ytdMiniplayerComponentAnimatingPlaylistExpand=D,W3.ytdMiniplayerComponentAnimatingFade=e,W3),function(){if(e()){var Yw=fW();
var vD=p(),gk=c();Yw=vD?Yw==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":gk?Yw==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Yw==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Yw="";return Yw}),
style:_.pI({top:function(){return fW()==="north"?"16px":""},
right:function(){var Yw=qX(),vD=rJ();vD=(vD===void 0?0:vD)&&!DP()?400:0;return Yw==="east"?16+vD+"px":""},
bottom:function(){return fW()==="south"?"16px":""},
left:function(){var Yw=qX(),vD=rJ();vD=(vD===void 0?0:vD)&&DP()?400:0;return Yw==="west"?16+vD+"px":""},
width:function(){return yk().width+"px"},
height:function(){return yk().height+"px"},
transform:function(){var Yw=L();return Yw?"translate("+Yw.x+"px, "+Yw.y+"px)":""}})},_.J("div",{class:"ytdMiniplayerComponentContent"},_.J(v$L,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Yw){var vD=Qv6(qX(),fW(),Z(),yk(),L()),gk=YJ();Math.abs(Yw.clientY-(vD.y+gk.height))>15?(x(!0),Yw=_.$k(3),vD=ep(),N7||(N7=!0,Yw&&vD&&_.w8(Yw,[vD])),Yw&&vD&&_.Co(Yw,vD)):Yw.preventDefault()},
onDrag:function(Yw){H3(Yw)},
onDragEnd:function(){var Yw=svA(Qv6(qX(),fW(),Z(),yk(),L()),Z(),yk()),vD=ZKD(qX(),fW(),Z(),yk(),rJ()),gk=ZKD(Yw.horizontalAlignment,Yw.verticalAlignment,Z(),yk(),rJ());gk=new _.UA(gk.x-vD.x,gk.y-vD.y);var w3;vD=vD.y+(((w3=L())==null?void 0:w3.y)||0)+yk().height/2;var hR=function(){qX()===Yw.horizontalAlignment&&fW()===Yw.verticalAlignment||R(!0);B3(Yw.horizontalAlignment);e2(Yw.verticalAlignment);H3(void 0)},EA=function(Nj){Nj.target===G.value&&B()&&(t(!1),hR(),G.value.removeEventListener("transitionend",
EA))};
x(!1);fW()==="south"&&vD>Z().height?(hR(),_.tp().resolve(_.WM).close()):(G.value.addEventListener("transitionend",EA),t(!0),H3(gk))}},_.J(_.k,{cond:p,
then:function(){return _.J(_.las,{isDisabled:J_,playabilityStatus:zx,size:YJ})}}),_.J(_.k,{cond:E_,
then:function(){return _.J(_.Q1q,{isReadyToResume:$w,data:DT,expanded:q,onExpandClick:IN,playlistData:UR})}}),_.J(_.k,{cond:H,
then:function(){return _.J("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.J(_.k,{cond:function(){return Ma()&&q()||D()},
then:function(){return _.J(_.nYj,{className:"ytdMiniplayerComponentPlaylistPanel",data:UR,hideHeaderText:!0,withinMiniplayer:!0})}}),_.J("div",{class:"ytdMiniplayerComponentToast"},_.J(_.gNk,{toastData:w}))),_.J(Wqo,{onResize:function(Yw){ie(_.cM(192,Yw,720))},
onResizeStart:function(){var Yw=_.$k(3),vD=Qh();t_||(t_=!0,Yw&&vD&&_.w8(Yw,[vD]));Yw&&vD&&_.Co(Yw,vD)},
currentAspectRatio:M,currentMiniplayerSize:$R,horizontalAlignment:qX,verticalAlignment:fW}))},"ok"),"ytd-miniplayer",{});var Kqk=_.KG.persistentPanelVisibleSelector,Cv=function(){var G=_.C.apply(this,arguments)||this;G.tabGesturesIsActive=!1;G.persistentPanelEnabled=_.V("enable_ai_companion");G.hasDelegation=!1;G.isFrostedGlassInitialized=!1;G.frostedGlassExp=_.V("web_frosted_glass");G.hasPendingWatchNavigation=!1;G.mastheadHiddenFocusWithinKillswitch=_.V("web_masthead_hidden_focus_within_killswitch");G.clientOnlyWizTooltipsEnabled=_.V("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
G.scrollAtTop=!0;G.guideScrollTop=0;G.isTheaterModeSession=_.YI("START_IN_THEATER_MODE");G.iMaxTheaterMode=_.V("web_watch_imax_theater_mode");G.isFullWindowSession=_.YI("START_IN_FULL_WINDOW_MODE");G.hasCreateFamilyDialog=!1;G.mastheadHeight=56;G.networkStatusManager=new _.sN;G.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"};G.dynamicActionMap={"yt-run-attestation-command":function(H){var Z=_.l6j.instance,Q=_.X(H,_.JAR);return Q?_.V("use_rta_manager_for_async")&&
Txm()?pym(Z,Q,H.clickTrackingParams):QQ6(Z,Q,H.clickTrackingParams):_.DJ(Error("pi"))}};
G.isFrostedGlassDisabled=!1;G.isChannelOrPlaylistPage=!1;return G};
_.T(Cv,_.C);_.g=Cv.prototype;_.g.created=function(){var G=_.tp();_.V("kevlar_clear_duplicate_pref_cookie")&&_.wM(_.Ui,function(){var H=_.jA.get("PREF");H&&!/f\d=/.test(H)&&(H=_.n$("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=H?"PREF=null;domain="+H+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.V("gzip_gel_with_worker")&&_.Gqj();_.V("jspb_serialize_with_worker")&&LlA();_.V("web_worker_availability_check")&&xEq();_.V("nwl_init_killswitch")||Avh().then(function(){_.Ui.addLowPriorityJob(ech)});
this.pageManagerAttachedPromise=_.hQ();this.ytdAppBehavior.loadDepsPromise=_.Tw([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Zo(this.onThrottledScroll,200,this);_.V("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);aID();zAA=!!_.GF("ytappsettings.initialized");BI=_.GF("ytappsettings.previousValue");OXA=_.GF("ytappsettings.previousSnapshotTime");zAA||(zAA=!0,aJq());TqD();fGs();_.Ae("DEFERRED_DETACH",
_.V("kevlar_tuner_should_defer_detach"));_.Ae("REUSE_COMPONENTS",!0);_.Ae("STAMPER_STABLE_LIST",!0);_.Ae("SCHEDULED_LAZY_LIST",!0);_.Ae("openPopupConfig",Iuj);_.Ae("useClickHandler",!0);_.V("kevlar_shell_cleanup")&&_.Ui.addLowPriorityJob(W3D.bind(this,_.Qf.caches));_.YI("IS_SHELL_LOAD")&&_.ee({shellStartupDurationMs:Math.round((0,_.t3)()-_.JU())});P_6(this.networkStatusManager);_.V("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",f_o(VIh)),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!",
f_o($M8)),console.log("%cVisit http://go/join-youtube-web to apply today.",f_o(XpL)));_.$5k(G.resolve(_.Zh),1E3)};
_.g.ready=function(){var G=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var H=pTL();H&&!_.V("external_fullscreen_killswitch")&&document.addEventListener(H,this.setFullscreen.bind(this));(H=window.matchMedia("(prefers-color-scheme: dark)"))&&H.addEventListener&&H.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(H=_.tp().resolve(_.Jp(_.u5w)))H.subscribe("navigation-start",
function(Z){Z.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!0)}),H.subscribe("navigation-end",function(Z){Z.destinationPageSubtype==="watch"&&(G.hasPendingWatchNavigation=!1)})};
_.g.attached=function(){var G=this;_.ZO().processSignal("ci");_.V("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Zq2?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.HM(_.T5f(),"SUCCESS");this.updateIconSet();_.Ul(this.guideInnerContent,!1);_.v9().initVisibilityObserver();this.guideService.guideElement=this.guide;var H=document.createElement("ytd-miniplayer"),Z=_.F9(this.hostElement).querySelector("#content");
_.F9(this.hostElement).insertBefore(H,Z);_.ZO().processSignal("ma");_.tp().resolve(_.WM).init(H);this.persistentPanelEnabled&&_.c08(_.tp().resolve(_.yp),this.persistentPanelContainer,"APP");_.YI("IS_SHELL_LOAD")&&(Z=document.createElement("ytd-network-status-banner"),_.F9(this.hostElement).insertBefore(Z,H));_.V("kevlar_right_click_on_lockups")&&_.Es._onCaptureClick&&document.addEventListener("contextmenu",_.Es._onCaptureClick.bind(_.Es),!0);var Q=function(){var p=_.pi("yt-page-navigation-progress");
_.F9(G.hostElement).appendChild(p)};
setTimeout(function(){_.ZO().parkOrScheduleJob(Q,0,"eocs",16)},0);
_.V("service_worker_push_enabled")&&_.wM(_.Ui,ZID);_.p1(_.sS.getInstance(),this.dynamicActionMap,this.hostElement);_.N5(this.hostElement,"ytd-app-attached");_.ZO().processSignal("aa");eot(this.hostElement);_.u7("gapi.load",_.QHb);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.wM(_.Ui,
function(){var p=document.createElement("ytd-video-preview");_.F9(_.F9(G.hostElement).querySelector("#video-preview")).appendChild(p)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.wM(_.Ui,function(){KWc();G.registerWithViewTransitionManager()});
if(_.jX()&&this.isAppDarkTheme()!==_.K3())this.onDarkModeToggledAction();else H=_.Ml()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==H&&(_.V("enable_dark_theme_only_on_shorts")?_.zz(_.V("enable_dark_theme_only_on_shorts_control")?window.location.href:_.l0(window.location.href,{theme:"dark"})):_.Rp(new _.C$("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(B$o=new uRk(this.hostElement)),kHk=new tIm(this.hostElement),Jd8=new BAc(this.hostElement),jwh=new Mfa(this.hostElement)};
_.g.getThemeSettingsToLog=function(){var G=_.Ml()==="USER_INTERFACE_THEME_DARK";G=_.jX()?_.K3()?"os-dark":"os-light":G?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:G,cookiesEnabled:_.r7()}};
_.g.detached=function(){_.RO(this.guideInnerContent);_.Ui.cancelJob(gL);gL=0;_.Ui.cancelJob(qC);qC=0;_.Jtf(d$s);d$s.length=0;tkt=_.q0o=null;_.v9().dispose();_.V("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.lu(_.sS.getInstance(),B$o.playlistHandlerActionMap,B$o.JSC$32461_clientRoot);_.lu(_.sS.getInstance(),kHk.downloadManagerActionMap,kHk.JSC$32756_clientRoot);_.lu(_.sS.getInstance(),Jd8.feedbackCollectorActionMap,Jd8.JSC$32751_clientRoot);
for(var G=_.I(jwh.eventListeners),H=G.next();!H.done;H=G.next()){var Z=_.I(H.value);H=Z.next().value;Z=Z.next().value;Z=_.I(Z);for(var Q=Z.next();!Q.done;Q=Z.next()){var p=_.I(Q.value);Q=p.next().value;p=p.next().value;H.removeEventListener(Q,p)}}_.lu(_.sS.getInstance(),jwh.autonavPauseActionMap,jwh.JSC$20311_clientRoot)};
_.g.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.lf().getFlag(186)};
_.g.computeIsInlinePreviewEnabled=function(G,H,Z){return!Z&&_.Bjc({miniplayerIsActive:G,miniplayerPlaybackState:H})};
_.g.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_FROSTED_GLASS_MODE",payload:!_.V("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.g.computeIsFrostedGlassDisabled=function(G,H,Z,Q){return G||H||Z||Q&&_.V("web_frosted_glass_disable_watch")};
_.g.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.V("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.g.computeIsHomePage=function(G,H){if(!G||H==null||!H.endpoint)return!1;var Z;return((Z=_.X(H.endpoint,_.gT))==null?void 0:Z.browseId)==="FEwhat_to_watch"};
_.g.updateIsChannelOrPlaylistPage=function(){if(_.V("web_frosted_glass")){var G,H,Z=(H=(G=_.tp().resolve(_.Jp(_.o0)))==null?void 0:G.getCurrentPage())==null?void 0:H.pageSubtype;this.isChannelOrPlaylistPage=Z?["channel","channels","playlist"].includes(Z):!1}};
_.g.scheduleFrostedGlassInitialization=function(){var G=this;_.V("web_frosted_glass")&&_.ZO().parkOrScheduleJob(function(){G.isFrostedGlassInitialized=!0},0,_.$2(["eocs",
"cr"]),300)};
_.g.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.F4x(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Lo({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.g.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(dOh(!0))};
_.g.onYtSignalActionRequestPersistentStorage=function(){if(!_.V("request_persistent_storage_killswitch")){var G=_.tp().resolve(_.ibc);G.cachedPersistStatePromise||(G.cachedPersistStatePromise=Opa())}};
_.g.handleYtChannelCreationFormEndpoints=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.g.handleShowEngagementPanelEndpoint=function(G){G&&this.ytComponentBehavior.resolveCommand(G)};
_.g.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(dOh(!1))};
_.g.initIconDefs=function(G,H){var Z=document.createElement("iron-iconset-svg");Z.name=G;G=document.createElementNS("http://www.w3.org/2000/svg","svg");Z.appendChild(G);G.appendChild(H);document.body.appendChild(Z);return Z};
_.g.onWindowResized=function(){_.AZ(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var G=_.n2.getInstance();G.documentWidth_=document.body.clientWidth;Maq(G)};
_.g.onWindowScrolled=function(){var G=_.tp().resolve(_.o0).getCurrentPage();if(G!=null&&G.getScrollTop){var H=this.ytdReduxBehavior,Z=H.dispatch;G=G.getScrollTop()<=0;Z.call(H,_.Lo({type:"SET_SCROLL_AT_TOP",payload:G}))}};
_.g.guideIsVisibleButNotPersistentSelectorChanged=function(){var G=_.tp().resolve(_.o0).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=G.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"),
G.setScrollTop(this.guideScrollTop));_.xk(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.g.getCurrentPageScrollableElementType=function(){var G=_.tp().resolve(_.o0).getCurrentPage();if(G&&G.getPageScrollingElement())return G.getPageScrollingElement().nodeName};
_.g.observeGuideVisibility=function(){var G=_.n2.getInstance(),H=this.miniGuideVisible;G.guidePersistentAndVisible_=this.guidePersistentAndVisible;G.miniGuideVisible_=H;Maq(G)};
_.g.observePersistentPanelVisibility=function(){var G=_.n2.getInstance();G.persistentPanelVisible_=this.persistentPanelVisible;Maq(G)};
_.g.handleEduDismissAction=function(G){G&&G.eduDismissAction&&(_.AZ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.snt.getInstance(),_.dW.set(G.eduDismissAction.key+"-dismissed",!0))};
_.g.handleEduImpressionAction=function(G){if(G&&G.eduImpressionAction){var H=_.snt.getInstance();G=G.eduImpressionAction.key;H.JSC$13185_eduDisplayedThisLoad_[_.HSt[G].setKey||G]=!0;_.dW.set(G+"-impression",parseInt(_.dW.get(G+"-impression")||0,10)+1)}};
_.g.onYtSignalActionConfirmMentionsEdu=function(){_.AZ(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.$y.getInstance();_.VA.set("edu-dismissed",!0)};
_.g.onYtSignalActionRecordMentionsEduImpression=function(){_.$y.getInstance();var G=_.VA.set,H=parseInt(_.VA.get("edu-impressions"),10);G.call(_.VA,"edu-impressions",(isFinite(H)?H:0)+1)};
_.g.onYtPageManagerAttached=function(G){var H;((H=_.a_(G))==null?void 0:H.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.g.onInvokeInstrumentManagerAction=function(G,H){bOj(H,G)};
_.g.updateIconSet=function(){var G=this.hostElement.querySelector("#masthead");if(G){var H=_.bS(G),Z=H.querySelector("g#yt-logo-updated");Z&&(G=document.createElementNS("http://www.w3.org/2000/svg","defs"),G.appendChild(Z.cloneNode(!0)),(H=H.querySelector("g#yt-logo-red-updated"))&&G.appendChild(H.cloneNode(!0)),this.initIconDefs("yt-logos-ext",G))}};
_.g.updateMastheadData=function(){var G=this,H,Z,Q,p,l;return _.S(function(q){if(q.nextAddress==1){H=G.data;Z=G.hostElement.querySelector("#masthead");if(!Z)return q.return();_.q2(G,function(){Z.data=G.topbarData});
if(!G.get("response.topbar",H)||G.get("response.topbar.responseContext.maxAgeSeconds",H)===0)return q.jumpTo(0);if(Q=_.tp().resolve(_.C7))return q.yield(Q(),6);p=_.tp().resolve(_.Vp);return q.yield(p.put("service:topbar:fallback",new _.$E({innertubeResponse:G.get("response.topbar",H)})),0)}return(l=q.yieldResult)?q.yield(l.put("service:topbar:fallback",new _.$E({innertubeResponse:G.get("response.topbar",H)})),0):q.jumpTo(0)})};
_.g.computeTopbarData=function(G){if(!G)return null;var H;return this.isShortsPage&&this.topbarData&&!_.X((H=G.response)==null?void 0:H.topbar,Azs)?this.topbarData:G.response&&"topbar"in G.response?_.X(G.response.topbar,Azs)||null:null};
_.g.onSetTheaterModeEnabled=function(G,H){this.isTheaterModeSession=H.enabled;this.setTheaterModeStyles(H.enabled)};
_.g.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.g.onDarkModeToggledAction=function(){var G=_.vU(window.location.href);if(!_.BYX(G)){(G=!!_.p$(window.location.href).themeRefresh)&&_.Rp(new _.C$("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!G){aJq();G={themeRefresh:1};var H=_.tp().resolve(_.o0);if(H.isOnWatch()){var Z,Q;H=((Z=H.getPlayerFromWatch())==null?void 0:(Q=Z.getPlayer())==null?void 0:Q.getCurrentTime())||0;H>=1&&(G.time_continue=Math.floor(H))}_.r7()||_.Ml()!=="USER_INTERFACE_THEME_DARK"||(G.theme="dark");_.zz(_.l0(window.location.href,
G))}_.V("web_appshell_refresh_trigger")&&_.Qf.caches&&this.refreshAppShellResponse();Z=_.M5(window.location.href);_.TV(_.tp().resolve(_.fB),_.ya(Z,"theme"))}};
_.g.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.g.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.g.onPlayerFullscreen=function(G){_.oO();this.playerFullscreen=G};
_.g.setRestrictedMode=function(G){var H=_.lf();_.g8(0,58,G);H.save();_.tp().resolve(_.f2).reload()};
_.g.onPageChanged=function(G){G.detail.newPageType==="ytd-watch-flexy"||G.detail.newPageType==="ytd-watch-fixie"||G.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.dq("WEB_PAGE_TYPE_WATCH")):G.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.dq("WEB_PAGE_TYPE_SHORTS")):G.detail.newPageType==="ytd-browse"&&G.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.dq("WEB_PAGE_TYPE_MINI_APP")):_.V("web_frosted_glass")&&G.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.dq("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.dq("WEB_PAGE_TYPE_UNKNOWN"));G.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.g.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.g.onGuideToggleTap=function(){_.N5(this.hostElement,"yt-guide-toggle")};
_.g.onGuideToggleHover=function(){_.N5(this.hostElement,"yt-guide-hover")};
_.g.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.g.setMastheadTheme=function(){var G=_.bS(this.hostElement).querySelector("#masthead");G&&(G.dark=G.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),G.isDarkThemeForced=!1)};
_.g.onRequestPanelModeChange=function(G,H){this.hideHeaderShadow=H.mode!=="seamed"};
_.g.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.g.onDrawerIronSelect=function(G){_.a_(G).id==="guide"&&this.processDrawerIronSelect()};
_.g.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var G="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(G="opened"));_.N5(this.hostElement,"yt-autonav-pause-guide-"+G)};
_.g.onAddElementToApp=function(G){_.F9(this.hostElement).appendChild(G.detail)};
_.g.onThrottledScroll=function(){var G=_.tp().resolve(_.o0).getCurrentPage();G&&(this.scrollAtTop=G.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.g.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.g.setFullscreen=function(){if(_.V("external_fullscreen")||!this.isWatchPage){var G=_.V("kevlar_fullerscreen_root_only_killswitch")?!!_.oO():!!_.oO()&&_.oO()===document.documentElement;G=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(G||this.isFullWindowSession);this.fullscreen!==G&&((this.fullscreen=G)&&_.xk(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.mm().dispatch(_.an7(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.AZ(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.g.setFullscreenLoggingForShorts=function(G){var H,Z,Q;return _.S(function(p){if(p.nextAddress==1)return p.yield((H=_.UO())==null?void 0:H.getPlayerPromise(),2);Z=p.yieldResult;(Q=Z)==null||Q.setAppFullscreen(G);_.K0(p)})};
_.g.updateMastheadCssHeight=function(){var G=this.mastheadHeight;this.fullscreen&&(G=0);_.ZI(this.hostElement,{"--ytd-masthead-height":G+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.g.updateNetworkStatusBannerDisplayStatus=function(){var G="unset";this.fullscreen&&(G="none");_.ZI(this.hostElement,{"--ytd-network-status-banner-display":G})};
_.g.updateNetworkStatusBannerCssHeight=function(){var G="unset";this.fullscreen&&(G="0px");_.ZI(this.hostElement,{"--ytd-network-status-banner-max-height":G})};
_.g.updateScrollAndMasthead=function(G,H,Z,Q){this.iMaxTheaterMode||(Q=!1);var p=_.tp().resolve(_.o0).getCurrentPage();G||H||Q?(document.body.classList.add("no-scroll"),p.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.pH(this,this.onScroll)),p.setScrollTop(0),_.ZI(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.KR()+"px"})):Z?_.N5(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.N5(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
p.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.pH(this,this.onScroll)));this.mastheadHidden=G||H||Z;this.updateMastheadCssHeight();_.V("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.g.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.g.onYtNavigateAction=function(G){G=this.get("navigateAction.endpoint",G);_.N5(this.hostElement,"yt-navigate",{endpoint:G})};
_.g.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var G=document.createElement("yt-create-family-dialog");_.F9(this.hostElement).appendChild(G);this.hasCreateFamilyDialog=!0}};
_.g.onSetPushNotificationsEnabledCommand=function(G){var H=this,Z=_.X(G,NBL);Z&&typeof Z.enabled==="boolean"&&(Notification.permission!=="granted"?F38().then(function(){Notification.permission==="granted"?(wTo(!Z.enabled).then(iXs),Z.successAction&&_.L9(H.hostElement,[Z.successAction])):Z.failureAction&&_.L9(H.hostElement,[Z.failureAction])}):(wTo(!Z.enabled).then(iXs),Z.successAction&&_.L9(this.hostElement,[Z.successAction])))};
_.g.onYtSignalActionEnableChromeNotifications=function(){bXm(!0)};
_.g.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.X(this.topbarData.hotkeyDialog,Ez6)}}})};
_.g.onYtSignalActionShowKeyboardShortcutDialog=function(){_.AZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.g.onYtEndpointChangeHandler=function(G,H){var Z=_.yj(_.TP);Z.pendingPrefetchJob_&&(H=!(!H||H.autonav!="1"),Z.pendingPrefetchJob_.resolve(G&&_.S0j(G)?_.ufj(G,H):""),Z.pendingPrefetchJob_=null);_.AZ(this.hostElement,"yt-pause-active-page-context");_.AZ(this.hostElement,"ytd-log-youthere-nav");_.AZ(this.hostElement,"yt-prepare-page-dispose")};
_.g.handleCommandWithCommandHandler=function(G,H){_.HT.instance.resolveCommand(G,{form:{element:H}})};
_.g.onYtTimedCommand=function(G){var H=this;G=_.X(G,wbs);var Z=G.command;Z&&_.ZG(_.Ui,function(){var Q=_.X(Z,_.J4G);Q?(_.HT.instance.resolveCommand(Z),H.maybeLogGetAnswerRequestTick(Q)):_.El(H.hostElement,[Z],H.hostElement)},G.timeoutMs||0)};
_.g.maybeLogGetAnswerRequestTick=function(G){G&&G.isFirstRequest&&(_.VY("search_overview_answer"),_.$K("so_rq",void 0,"search_overview_answer"))};
_.g.onYtSignalActionSkipNavigation=function(){var G=_.tp().resolve(_.o0).getCurrentPage();_.lc(G)};
_.g.onYtSignalActionCopyDebugData=function(){BbL()};
_.g.handleEntityUpdateCommand=function(G){_.lX(_.X(G,_.CMa).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.g.logFlowLoggingEventCommand=function(G){if(G=_.X(G,_.A5e))if(G.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var H=G.flowEventNamespace,Z=G.flowEventType,Q=G.flowType;Q&&H&&Z&&_.skj(_.Zp(H,Z,G.flowEventMetadata),Q)}else{H=_.Q$();Z=G.flowEventNamespace;Q=G.flowEventType;var p=G.flowType;p&&Z&&Q&&H.logFlowEvent(_.Zp(Z,Q,G.flowEventMetadata),p,G.flowNonce)}};
_.g.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.g.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.g.onTouchStart=function(){var G=_.W9();_.$k()&&_.jQ(G.JSC$13307_screenManager,{visualElement:G.ve})};
_.g.handleSelectLanguageCommand=function(G){if(G=_.X(G,mAs).hl){var H=_.lf();H.set("hl",G);H.save();_.tp().resolve(_.f2).reload()}};
_.g.handleConfirmDialogEndpoint=function(G){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G)};
_.g.handleOpenPopupNavigationEndpoints=function(G,H){(G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(G))&&this.ytOpenPopupBehavior.openPopup(G,H)};
_.g.handleSaveCommandToSessionStorage=function(G){if(G=_.X(G,_.nqN)){var H=G.key;H&&G.command&&window.sessionStorage.setItem(H,JSON.stringify(G.command))}};
_.g.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(G){G&&G.active&&G.active.postMessage({type:"refresh_shell"})}).catch(function(G){G.name!=="SecurityError"&&_.me(G)})};
_.g.onDeviceThemeChanged=function(){var G=_.K3();_.g8(_.lf(),185,G);_.lf().save()};
_.g.handleYtRegisterPromoCommand=function(G){if(_.X(G,R9m)){var H=_.tp().resolve(_.o0).getCurrentPage()||this.hostElement;yJs().registerPromoCommand(_.X(G,R9m),H)}};
_.g.onYtNavigateHomeAction=function(){if(!_.V("kevlar_miniplayer_navigate_home_from_app_killswitch")){var G,H,Z,Q,p=(Q=(G=this.topbarData)==null?void 0:(H=G.logo)==null?void 0:(Z=H.topbarLogoRenderer)==null?void 0:Z.endpoint)!=null?Q:_.rU;this.ytComponentBehavior.resolveCommand(p)}};
_.g.onYtLocationCollectionCommand=function(G){WWk(_.X(G,Qoi))};
_.g.onYtGetLocationCommand=function(G){Knm(_.X(G,Zeq),this)};
_.g.updateRenderGuideFromBinding=function(G){this.renderGuide=G.detail.value};
_.g.updateGuidePersistentAndVisibleFromBinding=function(G){this.guidePersistentAndVisible=G.detail.value};
_.g.updateMiniGuideVisibleFromBinding=function(G){this.miniGuideVisible=G.detail.value};
_.g.onThemeSelected=function(G,H){var Z=_.lf(),Q=G||H?G:_.K3(),p=(Q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.BYX(_.vU(window.location.href));_.g8(0,165,G);_.g8(0,174,H);Z.save();p&&_.AZ(this.hostElement,"yt-dark-mode-toggled-action",[Q]);_.AZ(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.g.getCurrentTheme=function(){return _.jX()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Ml()};
_.g.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.g.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.g.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.g.handleShowConsentPrimitive=function(G){var H=this,Z,Q;return _.S(function(p){if(p.nextAddress==1){try{Z=(Q=_.UO())==null?void 0:Q.getPlayerPromise()}catch(l){}return p.yield(NPA(G,Z),2)}_.AZ(H.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.K0(p)})};
_.g.handleSelectActiveIdentityEndpointInternal=function(G){_.v$();G=_.X(G,_.KST);if(G!=null&&G.supportedTokens){G=_.I(G.supportedTokens);for(var H=G.next();!H.done;H=G.next())H=H.value,H.accountSigninToken&&_.zz(H.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.g.handleUpdatePermissionRoleCommand=function(G){if(G=_.X(G,_.jip)){var H;this.hasDelegation=!((H=_.X(G.renderer,_.M8R))==null||!H.status)}};
_.g.registerWithViewTransitionManager=function(){var G=_.tp().resolve(_.Jp(_.jB));if(G){var H,Z=(H=this.guide)==null?void 0:H.querySelector("#scrim"),Q;H=(Q=this.guide)==null?void 0:Q.querySelector("#contentContainer");Z&&H&&G.isAnyTransitionEnabled&&(Q={},G.viewTransitionCoordinator.registerElement(Z,(Q.slide="app-drawer-scrim-page-transition",Q["lockup-to-watch"]="app-drawer-scrim-page-transition",Q["learning-journey"]="app-drawer-scrim-page-transition",Q)),Z={},G.viewTransitionCoordinator.registerElement(H,
(Z.slide="app-drawer-container-page-transition",Z["lockup-to-watch"]="app-drawer-container-page-transition",Z["learning-journey"]="app-drawer-container-page-transition",Z)))}};
_.u4.Object.defineProperties(Cv.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.V("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.u4.Object.defineProperties(Cv,{template:{configurable:!0,enumerable:!0,get:function(){if(lbs===void 0){var G=document.createElement("template");_.f(G,'\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');
G.content.insertBefore(_.E().content.cloneNode(!0),G.content.firstChild);lbs=G}G=lbs;return G}}});
Cv.prototype.onOpenHotkeyDialog=Cv.prototype.onOpenHotkeyDialog;Cv.prototype.setFullscreen=Cv.prototype.setFullscreen;Cv.prototype.onAddElementToApp=Cv.prototype.onAddElementToApp;Cv.prototype.onDrawerIronSelect=Cv.prototype.onDrawerIronSelect;Cv.prototype.onGuideOpenButtonHover=Cv.prototype.onGuideOpenButtonHover;Cv.prototype.onRequestPanelModeChange=Cv.prototype.onRequestPanelModeChange;Cv.prototype.onPageDataUpdated=Cv.prototype.onPageDataUpdated;Cv.prototype.onPageChanged=Cv.prototype.onPageChanged;
Cv.prototype.onSetTheaterModeEnabled=Cv.prototype.onSetTheaterModeEnabled;Cv.prototype.updateMastheadData=Cv.prototype.updateMastheadData;Cv.prototype.onYtPageManagerAttached=Cv.prototype.onYtPageManagerAttached;Cv.prototype.observePersistentPanelVisibility=Cv.prototype.observePersistentPanelVisibility;Cv.prototype.observeGuideVisibility=Cv.prototype.observeGuideVisibility;Cv.prototype.guideIsVisibleButNotPersistentSelectorChanged=Cv.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Cv.prototype.isInlinePreviewEnabledChanged=Cv.prototype.isInlinePreviewEnabledChanged;Cv.prototype.isWatchPageChanged=Cv.prototype.isWatchPageChanged;Cv.prototype.dispatchFrostedGlassMode=Cv.prototype.dispatchFrostedGlassMode;_.N([_.v(_.Up),_.A("design:type",Object)],Cv.prototype,"ytdReduxBehavior",void 0);_.N([_.v(_.ry.YtEventForwardingBehavior),_.A("design:type",Object)],Cv.prototype,"ytEventForwardingBehavior",void 0);
_.N([_.v(_.e8.YtOpenPopupBehavior),_.A("design:type",Object)],Cv.prototype,"ytOpenPopupBehavior",void 0);_.N([_.v(_.V6.YtActionHandlerBehavior),_.A("design:type",Object)],Cv.prototype,"ytActionHandlerBehavior",void 0);
_.N([_.v({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.sS.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.V("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var G;((G=this.actionRouterNode.hostElement)!=null?G:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var G;((G=this.actionRouterNode.hostElement)!=null?G:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(G){this.actionRouter_.handleAction(G.detail)}}),
_.A("design:type",Object)],Cv.prototype,"ytActionRouterBehavior",void 0);_.N([_.v(xTk.YtdAppBehavior),_.A("design:type",Object)],Cv.prototype,"ytdAppBehavior",void 0);_.N([_.v(_.ni.YtEndpointBehavior),_.A("design:type",Object)],Cv.prototype,"ytEndpointBehavior",void 0);_.N([_.v(uX8.YtEndpointHandlerWithYpcBehavior),_.A("design:type",Object)],Cv.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.N([_.v(g$s.YtLogYpcFlowCommandsBehavior),_.A("design:type",Object)],Cv.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.N([_.v(_.Y.YtRendererBehavior),_.A("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.N([_.v(_.RT.YtComponentBehavior),_.A("design:type",Object)],Cv.prototype,"ytComponentBehavior",void 0);_.N([_.h({selector:_.KAa}),_.A("design:type",Object)],Cv.prototype,"tabGesturesIsActive",void 0);_.N([_.h(),_.A("design:type",Boolean)],Cv.prototype,"renderGuide",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"guidePersistentAndVisible",void 0);_.N([_.h({selector:_.zGD}),_.A("design:type",Boolean)],Cv.prototype,"guideIsVisibleButNotPersistent",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"standalone",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"miniGuideVisible",void 0);
_.N([_.h(),_.A("design:type",Object)],Cv.prototype,"persistentPanelEnabled",void 0);_.N([_.h({selector:Kqk,reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"persistentPanelVisible",void 0);_.N([_.h({selector:_.C13}),_.A("design:type",Number)],Cv.prototype,"miniplayerPlaybackState",void 0);_.N([_.h({selector:_.T9,reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"miniplayerIsActive",void 0);
_.N([_.h({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.A("design:type",Boolean)],Cv.prototype,"isInlinePreviewEnabled",void 0);_.N([_.h(),_.A("design:type",Boolean)],Cv.prototype,"isInlinePreviewDisabled",void 0);_.N([_.h({reflectToAttribute:!0,value:function(){return _.YI("START_IN_FULL_WINDOW_MODE")}}),
_.A("design:type",Boolean)],Cv.prototype,"mastheadHidden",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"playerFullscreen",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"fullscreen",void 0);_.N([_.h({value:!1,reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"hideHeaderShadow",void 0);
_.N([_.h({value:{GUIDE_ALT_LABEL:_.Zg("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.A("design:type",Object)],Cv.prototype,"menuStrings",void 0);_.N([_.h({computed:"computeTopbarData(data)"}),_.A("design:type",Object)],Cv.prototype,"topbarData",void 0);_.N([_.h({selector:_.P1e,reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"isWatchPage",void 0);_.N([_.h({selector:_.rfe,reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"isShortsPage",void 0);
_.N([_.h({selector:function(G){return _.fN(G)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.A("design:type",Boolean)],Cv.prototype,"isMiniAppPage",void 0);_.N([_.h({selector:function(G){return _.fN(G)==="WEB_PAGE_TYPE_BROWSE"}}),
_.A("design:type",Boolean)],Cv.prototype,"isBrowsePage",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Boolean)],Cv.prototype,"scrolling",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Cv.prototype,"hasDelegation",void 0);_.N([_.h({reflectToAttribute:!0,value:!1}),_.A("design:type",Boolean)],Cv.prototype,"guideScrolledByTouch",void 0);_.N([_.h(),_.A("design:type",Object)],Cv.prototype,"isFrostedGlassInitialized",void 0);
_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Cv.prototype,"frostedGlassExp",void 0);_.N([_.h({selector:function(G){return G.ui.chipBarIsSticky}}),
_.A("design:type",Boolean)],Cv.prototype,"chipBarIsSticky",void 0);_.N([_.h({computed:"computeIsHomePage(isBrowsePage, data)"}),_.A("design:type",Boolean)],Cv.prototype,"isHomePage",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Cv.prototype,"hasPendingWatchNavigation",void 0);_.N([_.h({reflectToAttribute:!0}),_.A("design:type",Object)],Cv.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.N([_.h(),_.A("design:type",Object)],Cv.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.N([_.RW("guide"),_.A("design:type",Object)],Cv.prototype,"guide",void 0);_.N([_.RW("guide-service"),_.A("design:type",CR6)],Cv.prototype,"guideService",void 0);_.N([_.RW("guide-inner-content"),_.A("design:type",HTMLDivElement)],Cv.prototype,"guideInnerContent",void 0);_.N([_.q6("#persistent-panel-container"),_.A("design:type",HTMLElement)],Cv.prototype,"persistentPanelContainer",void 0);
_.N([_.h({selector:_.iie}),_.A("design:type",String)],Cv.prototype,"frostedGlassMode",void 0);_.N([_.gx("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"dispatchFrostedGlassMode",null);_.N([_.h({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.A("design:type",Object)],Cv.prototype,"isFrostedGlassDisabled",void 0);
_.N([_.gx("isWatchPage"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"isWatchPageChanged",null);_.N([_.z("isHomePage","chipBarIsSticky"),_.A("design:type",Boolean),_.A("design:paramtypes",[])],Cv.prototype,"applyFrostedGlassToChipBar",null);_.N([_.h(),_.A("design:type",Object)],Cv.prototype,"isChannelOrPlaylistPage",void 0);
_.N([_.Jv("isInlinePreviewEnabled"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"isInlinePreviewEnabledChanged",null);_.N([_.gx("guideIsVisibleButNotPersistent"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.N([_.gx("guidePersistentAndVisible","miniGuideVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"observeGuideVisibility",null);_.N([_.gx("persistentPanelVisible"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"observePersistentPanelVisibility",null);
_.N([_.lq("attached"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Cv.prototype,"onYtPageManagerAttached",null);_.N([_.gx("data"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype",Promise)],Cv.prototype,"updateMastheadData",null);_.N([_.lq("yt-set-theater-mode-enabled"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent,Object]),_.A("design:returntype")],Cv.prototype,"onSetTheaterModeEnabled",null);
_.N([_.lq("yt-page-type-changed"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Cv.prototype,"onPageChanged",null);_.N([_.lq("yt-page-data-updated"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"onPageDataUpdated",null);_.N([_.lq("yt-request-panel-mode-change"),_.A("design:type",Function),_.A("design:paramtypes",[Event,Object]),_.A("design:returntype")],Cv.prototype,"onRequestPanelModeChange",null);
_.N([_.lq("yt-guide-hover"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"onGuideOpenButtonHover",null);_.N([_.lq("app-drawer-transitioned"),_.A("design:type",Function),_.A("design:paramtypes",[Event]),_.A("design:returntype")],Cv.prototype,"onDrawerIronSelect",null);_.N([_.lq("yt-add-element-to-app"),_.A("design:type",Function),_.A("design:paramtypes",[CustomEvent]),_.A("design:returntype")],Cv.prototype,"onAddElementToApp",null);
_.N([_.lq("yt-set-fullerscreen-styles"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"setFullscreen",null);_.N([_.lq("yt-open-hotkey-dialog"),_.A("design:type",Function),_.A("design:paramtypes",[]),_.A("design:returntype")],Cv.prototype,"onOpenHotkeyDialog",null);_.N([_.O({is:"ytd-app"})],Cv);_.ZO().processSignal("eor");
_.U1();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
